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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2c5a124b1d605b156114ec0a8636fb103cbd5d3 | 2c9677180eeec4e1657765b2095828ba43f041ee | /src/python/grpcio/grpc/_runtime_protos.py | 88863e0306dc137bd06225c46e2e2b19e0c01eca | [
"Apache-2.0"
] | permissive | morganwu277/grpc | a82e4348184a27b273159808327e7f6778a6d448 | 7c4bdd9c6ba176ad65ecea323de8ea4fd6999cf9 | refs/heads/master | 2022-11-29T22:01:10.376948 | 2020-08-18T23:53:02 | 2020-08-18T23:53:02 | 288,634,896 | 0 | 0 | Apache-2.0 | 2020-08-19T04:43:28 | 2020-08-19T04:40:57 | null | UTF-8 | Python | false | false | 5,718 | py | # Copyright 2020 The gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"j.belleville.richard@gmail.com"
] | j.belleville.richard@gmail.com |
6b6b9d93703d5e9c0504afc1991151ab87a572fe | ef5e55482a431e94860960025e7aed0e08ce8bf5 | /dp/longest_common_subsequence.py | deaf646cb366f69b7e29537316a358fa3d8465dd | [] | no_license | ajitluhach/algorithms | c2ef4392fc73ffb11bf24863251fd4ef8a25d31e | 1e9ed8a5e95f6b1735516461a0aa15ceb78608f2 | refs/heads/master | 2021-03-27T19:37:08.934630 | 2017-08-30T17:46:38 | 2017-08-30T17:46:38 | 89,777,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | def LCS(X, Y):
"""Return the LCS Table of the two substrings X and Y"""
n, m = len(X), len(Y) # length of both the strings
L = [[0]*(m+1) for _ in range(n+1)] # create a n+1*(m+1) table, each = 0
# one column and row more because 0th row is zero, and 0th column is
# also zero, the value for the c... | [
"ajit96singh@gmail.com"
] | ajit96singh@gmail.com |
1e22197683ad05ab1e08e3e0579f3d39e930dc88 | 2c0ba020172ff3129576e9698be7d3c9c6688a3c | /blog/models.py | bdde4ddd977f43575f12e73d62c83b3a4efdbf45 | [] | no_license | Cyusa-G/blog-app | 793dcfe2426db3d98a2fed52e76760ae71ae7b5f | 034a564376d56d9f80ebe064dc60a059c7425231 | refs/heads/main | 2023-04-23T06:57:45.904534 | 2021-05-02T15:20:17 | 2021-05-02T15:20:17 | 363,417,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.db import models
from django.urls import reverse
class Post(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey('auth.User',
on_delete=models.CASCADE,
)
body = models.TextField()
def __str__(self):
return self.title
def get_absolute_url... | [
"cyusagedeon@gmail.com"
] | cyusagedeon@gmail.com |
116f6963b88edfdb0db9fda927ba4e4947b376fa | 5ec7d0bad8a77c79843a2813f5effcb3a2b7e288 | /lean/models/brokerages/cloud/tradier.py | fd5e10b9f48bced5ac4faae3e74d4fac7886ec50 | [
"Apache-2.0"
] | permissive | xdpknx/lean-cli | aca9b9c9c4e156c9faefcfa8ccdfc20423b510a0 | c1051bd3e8851ae96f6e84f608a7116b1689c9e9 | refs/heads/master | 2023-08-08T02:30:09.827647 | 2021-09-21T21:36:24 | 2021-09-21T21:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache... | [
"jaspervmerle@gmail.com"
] | jaspervmerle@gmail.com |
19f3c8b7d94aae6549e86646e36334cb826a906e | 6e820756b82ffbe9837348937e53f1a0ce0e6cca | /Lib/site-packages/pandas_datareader/io/jsdmx.py | d602ca88beb058636aceaac714662ee2f457a6c4 | [] | no_license | AndreasPatsimas/pms_papei | c2afd941de6ae234dd37784d746e794183ebb8d3 | da10220ea468304c1066bed55b8f92ba9e5ada8a | refs/heads/master | 2023-02-01T23:33:39.221747 | 2020-12-19T12:17:59 | 2020-12-19T12:17:59 | 321,115,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | # pylint: disable-msg=E1101,W0613,W0603
from __future__ import unicode_literals
from collections import OrderedDict
import itertools
import re
import sys
import numpy as np
import pandas as pd
from pandas_datareader.io.util import _read_content
def read_jsdmx(path_or_buf):
"""
Convert a SDMX-JSON string t... | [
"45208441+AndreasPatsimas@users.noreply.github.com"
] | 45208441+AndreasPatsimas@users.noreply.github.com |
14ef77722f048f2df87d9027535bf38755c8fe85 | 906f230699aa5017660140e7f2032c46db75086d | /feature_matching.py | 4eef2b03912cd5044833e599456915d626fce331 | [] | no_license | gubo2012/opencv_tutorial | b3e10d41442052eb245f91e38f407dc67ef29a47 | e90ecb4701731e4ed19c30bd32b58d9b9fda9763 | refs/heads/master | 2020-03-10T03:21:07.153053 | 2018-04-17T17:26:11 | 2018-04-17T17:26:11 | 129,162,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 11 22:05:40 2018
@author: gubo
"""
import numpy as np
import cv2
import matplotlib.pyplot as plt
img1 = cv2.imread('opencv-feature-matching-template.jpg',0)
img2 = cv2.imread('opencv-feature-matching-image.jpg',0)
orb = cv2.ORB_create()
kp1, des... | [
"gubo@boyipricing.com"
] | gubo@boyipricing.com |
42242438bea8875d7471ea2ddf09291f67a15799 | 30a34b3503decf1b4516039df3106cd152631819 | /4AL17IS050_T_K_HARSHITH_PRASAD/19_05_2020/2.py | 90236ef15cb59e0d27deb74598351d1745cafda7 | [] | no_license | alvas-education-foundation/ISE_3rd_Year_Coding_challenge | 8ddb6c325bf6ab63e2f73d16573fa0b6e2484136 | b4074cab4a47aad07ed0fa426eacccbfafdef7f8 | refs/heads/master | 2022-11-23T20:52:19.204693 | 2020-07-23T11:28:15 | 2020-07-23T11:28:15 | 265,195,514 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # This program adds two numbers
num1 = 1.5
num2 = 6.3
# Add two numbers
sum = float(num1) + float(num2)
# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) | [
"noreply@github.com"
] | alvas-education-foundation.noreply@github.com |
190c0b7174e3ee074dcee7447dd6149444d96d20 | 9030481ef925278a174cbbf58c74bc5058e8d302 | /contrib/testgen/base58.py | 0b6e6e1ae339c3c25f894b09b621c4777509d655 | [
"MIT"
] | permissive | hideoussquid/aureus-13-gui | 1b8f85f262cbc1970c3d8072b064956073bc4182 | 8865c958ba1680d4615128dabcc3cc4d47a24c51 | refs/heads/master | 2021-01-19T08:22:45.795165 | 2017-04-26T07:34:19 | 2017-04-26T07:34:19 | 87,622,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,999 | py | # Copyright (c) 2012 The Aureus Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Aureus base58 encoding and decoding.
Based on https://aureustalk.org/index.php?topic=1026.0 (public domain)
'''
import hashlib
# ... | [
"thesquid@mac.com"
] | thesquid@mac.com |
bd89005298fc7cb04640f30108944021ea926373 | 862126fc5d0b920501a75913ddd563a0fb6c942a | /Trabajo_Final/gSLICrPy/gSLICrPy.py | 16315f9e0d597b11c819adb08ab60e4aed3c42fa | [] | no_license | jhuni45/TCG-Laboratorio | 60cc5a735e98fafd6c171e92b7d0d9ae71ba5378 | e2841e6ea30880142a47e7aa3dc4158c5c0fe4d3 | refs/heads/master | 2023-03-08T13:24:17.849817 | 2021-02-15T17:49:32 | 2021-02-15T17:49:32 | 257,342,390 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | import ctypes
from ctypes import POINTER
def __get_CUDA_gSLICr__(path_to_shared='./build/libDEMO.so'):
"""
:return: Callable
"""
dll = ctypes.CDLL(path_to_shared, mode=ctypes.RTLD_GLOBAL)
func = dll.CUDA_gSLICr
"""
int* CUDA_gSLICr(unsigned char* image,
int img_size_x,
... | [
"jhunier12@gmail.com"
] | jhunier12@gmail.com |
58bb40f95b996bb5aaf4c9706c5271c0c5978cc2 | 25d8bac5635ac1cc3577a3593a4512e042ea7ecd | /scripts/asyncore-example-2.py | 27a4738c22e98525faf3534d4f880e283ad582e0 | [] | no_license | mtslong/demo | 2333fa571d6d9def7bdffc90f7bcb623b15e6e4b | a78b74e0eea7f84df489f5c70969b9b4797a4873 | refs/heads/master | 2020-05-18T18:28:48.237100 | 2013-11-11T16:10:11 | 2013-11-11T16:10:11 | 4,136,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import asyncore
import socket, time
# reference time
TIME1970 = 2208988800L
class TimeChannel(asyncore.dispatcher):
def handle_write(self):
t = int(time.time()) + TIME1970
t = chr(t>>24&255) + chr(t>>16&255) + chr(t>>8&255) + chr(t&255)
self.send(t)
self.close()
class TimeServer(... | [
"mofeng@netease.com"
] | mofeng@netease.com |
23360d6f5e4397081856508eee1b3434081d5f72 | d3325fb51a99a8fb25a5bef8f61dc943333417a1 | /neuron_models/experiments/MLI_exp_current_param_sweep.py | 5a57bb949b4acca06601302e59cb1bab6d24e2ea | [] | no_license | blennon/research | e26ccfb5a33543f72e84d96655b69f857b4ff422 | 6579a4d9636332267d0f26d8d4c8226e4fecf85d | refs/heads/master | 2022-09-18T02:53:11.056480 | 2015-02-10T17:37:54 | 2015-02-10T17:37:54 | 7,845,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | '''
This script performs a grid search for the current parameters that best match the data
from Hausser and Clark (1997)
'''
import datetime
import os
import gc
import multiprocessing
import itertools
from brian import *
import sys
from neuron_models import *
import cPickle
import time
set_global_preferences(useweave=T... | [
"blennon86@gmail.com"
] | blennon86@gmail.com |
deece369baf689aed3e350790563652c99e1df4c | ca0d710ed0469beb7f87ae53f5efdef7bac19a27 | /MainView/migrations/0001_initial.py | c421c7915ab1a3ced242749c9b05288a7231a3c2 | [
"MIT"
] | permissive | CiganOliviu/wedding_invitation | 5d441d786f742d6a4baf5ff418370c0cfbb1b81e | 8b243b287b6577b4f5f899e33ade1fec651152f0 | refs/heads/main | 2023-03-03T08:12:36.345173 | 2021-02-08T15:37:04 | 2021-02-08T15:37:04 | 333,568,503 | 0 | 0 | MIT | 2021-02-08T15:37:05 | 2021-01-27T21:43:34 | null | UTF-8 | Python | false | false | 646 | py | # Generated by Django 3.0.8 on 2020-08-10 08:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ConfirmAnswer',
fields=[
('id', models.Auto... | [
"ciganoliviudavid@gmail.com"
] | ciganoliviudavid@gmail.com |
42ac27e191cdf443e6d63d711278ad947615b5d6 | cb5f2d4943b65d53a7c36080a48057f79dcb4c4a | /core/admin.py | 56624ea61d601f822467e9b4962fdab83d5ee951 | [] | no_license | radaevalex/Portal | 54be04808f52fdda0c7a12919f3d4d152d10d5db | 7134336289e0bf425124c20bcd5c85e33f938591 | refs/heads/master | 2022-05-01T19:23:46.800454 | 2019-10-31T17:46:12 | 2019-10-31T17:46:12 | 218,718,710 | 0 | 0 | null | 2022-04-22T22:34:38 | 2019-10-31T08:28:50 | JavaScript | UTF-8 | Python | false | false | 804 | py | from django.contrib import admin
from .models import Office, Indicator, Dynamic
# Register your models here.
@admin.register(Office)
class OfficesAdmin(admin.ModelAdmin):
list_display = ('id', 'department', 'city')
list_filter = ('id', 'department', 'city')
search_fields = ('id', 'department', 'city')
... | [
"57213368+radaevalex@users.noreply.github.com"
] | 57213368+radaevalex@users.noreply.github.com |
9e18ca0c910a39afcedd81193e4b16ecdffb726e | 01494c3ac2e3281d71066ee220628afc452beb70 | /Chapter IV/dostep_swobodny.py | 24b2e875deb371d3f45b0076b3882a8bab9ddd20 | [] | no_license | PatrykDagiel/Python_Dawson | b3a4aab8dbb875eda54c0cd46ceed3650edc3dc7 | d3a04a5041df5ac728e2596331521191f941f536 | refs/heads/master | 2020-07-17T12:58:47.390099 | 2017-10-11T21:11:37 | 2017-10-11T21:11:37 | 94,321,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import random
word = "indeks"
high=len(word)
low=-len(word)
for i in range(10):
position = random.randrange(low, high)
print("word[", position, "]\t", word[position])
input("\nAby zakonczyc program nacisnij enter") | [
"patryk.dagiel@gmail.com"
] | patryk.dagiel@gmail.com |
86a20d0a802a3b77e91c16b62fb4c5702450b991 | dc69872f21492d34d7da6eee9f0d03f7c09a8a8d | /libraries/edge/opensearch/granuleisoresponse.py | fd3ed16eb03bd91778c8ff34354a963de13a58c8 | [
"Apache-2.0"
] | permissive | isabella232/incubator-sdap-edge | 125e9ba8cb1738d8407222f9d21f5452fc5fa840 | c725dad1098096048faed9a42a56f3cfc5c25bc5 | refs/heads/master | 2022-03-19T18:49:03.752184 | 2019-12-02T23:40:12 | 2019-12-02T23:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import datetime
from edge.opensearch.isoresponsebysolr import IsoResponseBySolr
class GranuleIsoResponse(IsoResponseBySolr):
def __init__(self, linkToGranule):
super(GranuleIsoResponse, self).__init__()
self.linkToGranule = linkToGranule.split(',')
def _populateChannel(self, solrResponse):
... | [
"lewis.mcgibbney@gmail.com"
] | lewis.mcgibbney@gmail.com |
8119ae09255af8a153504009ba5d56f6a35a0562 | 841e606be767cf7d6fdfa551daaa887c4400ec36 | /branches/pgasync-branch/src/database/postgresql/pgasyncpool.py | e97ea8e8230c51048d5ad26ea5510701675dd5c9 | [
"MIT"
] | permissive | BackupTheBerlios/weever-svn | e4dfda7be1fc64c2d38b5d0420deee7daa5b462a | d7b9969f107cd9e38f633b1314416e7a50a95c50 | refs/heads/master | 2021-01-10T18:33:52.245594 | 2005-03-15T12:14:56 | 2005-03-15T12:14:56 | 40,748,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | from twisted.internet import defer
import pgasync
class ConnectionPool(object):
def __init__(self, dbadapter, dsn, *args, **kwargs):
self.params = dsn
def runOperation(self, query, args={}):
d = defer.Deferred()
conn = pgasync.connect(**self.params)
dd = conn.cursor... | [
"dialtone@a440c657-b6e6-0310-a3b3-b76a39be4160"
] | dialtone@a440c657-b6e6-0310-a3b3-b76a39be4160 |
ef27d9265109ae830f5ca62402fffac9b1752587 | f2f8b2f31859608d98ef644a6114991733adc964 | /asposeslidescloud/models/workbook.py | 3f1f395f402ebbf10a5ca5e5de7bef334ed4ce5d | [
"MIT",
"Python-2.0"
] | permissive | aspose-slides-cloud/aspose-slides-cloud-python | ece60566bcf755d7350773b6ea46b44cde2d038a | 0627d09c65a776d8ea138f97c7487d47fb98fbce | refs/heads/master | 2023-08-05T00:19:21.417406 | 2023-07-30T13:32:16 | 2023-07-30T13:32:16 | 161,640,927 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose">
# Copyright (c) 2018 Aspose.Slides for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associa... | [
"victor.putrov@aspose.com"
] | victor.putrov@aspose.com |
e06f6bad831d1fe03750409f2f19f010a7b6ddc3 | 4b23349fa42462acd842b713bbb9cb0868f2e8fe | /while.py | fa5438934e19b97c945b72b2951c6eb0069bc192 | [] | no_license | kkb1028-i-want-be-a-good-datascientist/TEST | 663c80fefc510fb8d56f4c15ca6c781341fe5e10 | cb918a2fd1ce7fdf935c82f29a354bf3b386cdf3 | refs/heads/master | 2020-07-08T02:20:16.283456 | 2019-08-21T08:24:43 | 2019-08-21T08:24:43 | 203,538,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | num, sum = 1, 0
while True:
sum+=num
if sum > 100:
break
else:
num += 1
print('num 값이 %d일 때 while문 탈출!!' % num)
| [
"54340933+KKB1028@users.noreply.github.com"
] | 54340933+KKB1028@users.noreply.github.com |
c88104d5615bd51adb47e4cdb4bcf60a416fae65 | 4cc2ad8ff00012095980bd98f4ec26437bf02feb | /form.py | ba4fbcf24556ee808a8bd7c05c332619b489b8a9 | [] | no_license | abcelso/Web-con-Python-y-flask | b57d562b592b2c5ff29936eccef7aaef7dadc5db | 9de9b51abbb86880afdd5107973a1dd11156bafd | refs/heads/master | 2022-06-09T23:10:41.734142 | 2020-04-21T04:29:28 | 2020-04-21T04:29:28 | 257,466,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py |
from wtforms import Form
from wtforms import StringField, PasswordField
class LoginForm(Form):
username = StringField('username')
password = PasswordField('password')
| [
"silvestroalejandro@gmail.com"
] | silvestroalejandro@gmail.com |
64295ef2699c0f0ee65e91e48a6268e1df7ef44b | 3ac02ea9f521d34cc385f67ad3fe19749311a551 | /elvis/constants.py | 71169d8779b2590bba7790acc597aab7b6a52ce2 | [
"MIT"
] | permissive | nghenzi/elvis | 79886bd88c3fa01e7a7b8e80be4e0c8018c81ad3 | 57cc4e83b790d9970566cdd09c5aeb056534e2b5 | refs/heads/master | 2022-09-06T09:35:49.993300 | 2020-05-29T09:54:02 | 2020-05-29T09:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from enum import Enum
class LayoutTheme(Enum):
light = 'light'
dark = 'dark' | [
"lvankouwen@gmail.com"
] | lvankouwen@gmail.com |
2070f5d6b0de0efb6739eb2fd4df1b8420de7296 | aeaa059ff404bbf08d94fa9d5affbcdbc8cd5e51 | /nbp_task/models/exchange_rate.py | 59d4b5d58084b6e2ad77de1d972d5f44d39fafd8 | [] | no_license | durejkol/nbp_pyramid | 8391f351b32b04f17161324e3e06ecb123713756 | 70361906697c2ed27a317681404b48967852cb05 | refs/heads/master | 2020-03-23T06:04:34.292549 | 2018-07-16T19:55:01 | 2018-07-16T19:55:01 | 141,187,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from nbp_task.models import Base
from sqlalchemy import Column, Float, Integer, String
class ExchangeRate(Base):
__tablename__ = 'currencies'
id = Column(Integer, primary_key=True)
currency = Column(String)
currency_code = Column(String)
exchange_rate = Column(Float)
def __init__(self, curre... | [
"wendzior@gmail.com"
] | wendzior@gmail.com |
ee35bcd0011f2a65f079aa4d10f48e44c32ac16b | 44873fa0398bfb8f613f7b4e40a6c6e70aceaa9a | /ClassicUserAccounts/managers.py | 479b39c1f0b475e195d44db23ae87aa0b27e88d8 | [
"BSD-2-Clause"
] | permissive | shyampathak/django-classic-user-account | 8c6b9b9a32cfc556f9abb569f4bdc279cd302178 | 49e086de6feb2ee19fce4b8463dd8760694d03c6 | refs/heads/master | 2020-04-13T05:33:31.013708 | 2018-12-24T10:50:25 | 2018-12-24T10:50:25 | 162,995,683 | 1 | 0 | BSD-2-Clause | 2018-12-24T13:55:46 | 2018-12-24T13:55:45 | null | UTF-8 | Python | false | false | 1,008 | py | from django.contrib.auth.base_user import BaseUserManager
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, email, password, **extra_fields):
"""
Creates and saves a User with the given email and password.
"""
if not email:
raise V... | [
"suman.k@skysoft.net.in"
] | suman.k@skysoft.net.in |
22cce56ad1cf624ac9db09d203ea57c2bd8a72fe | e34d4bf879910b8f41068c1efb90915897e53d53 | /sprint/SquaresOfSortedArray.py | a58ff6bd16baa33b009ff18fbabf44af40766e9e | [] | no_license | ZhouningMan/LeetCodePython | 6cfc30f0b76f6162502410fef5639fde4801bd74 | cad9585c440efb329c9321648f94c58ded198438 | refs/heads/master | 2020-12-10T03:53:48.824344 | 2020-01-13T02:29:02 | 2020-01-13T02:29:02 | 233,494,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | class Solution:
def sortedSquares(self, A):
size = len(A)
squares = [0] * size
for i in range(size):
squares[i] = A[i] * A[i]
copy = [0] * size
begin = 0
end = size - 1
i = size - 1
while begin <= end:
if squares[begin] > square... | [
"linfenglee321@gmail.com"
] | linfenglee321@gmail.com |
cad5f850e0c474633290f1d954bf25d14c77d53a | d16813727de339ec61c02c60cf1ac8bcd9636802 | /PreProcessamento/reducao.py | eef04034e60b70d536c42f45c11ec40ac1944875 | [] | no_license | joaocbrito/DataMining | 5324d9309d67fd3ce8243007458eef7efe1466b0 | 0efe85500ce55675eee85ecae31ce058f92cba41 | refs/heads/main | 2023-06-08T22:38:39.502623 | 2021-07-02T12:55:02 | 2021-07-02T12:55:02 | 351,207,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | import pandas as pd
import numpy as np
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
import matplotlib.pyplot as plt
def main():
# Faz a leitura do arquivo
input_file = './Dataset/air-quality-clean.data'
df = pd.read_csv(input_file)
columns = list(df.columns)
... | [
"joao.brg@hotmail.com"
] | joao.brg@hotmail.com |
3173c7fc8e6eed2af73d82af36bdbc28a65b6521 | 070a6843e24c0eee6397d47495effcce5e8130df | /rcs/account/apps.py | bbbb347859ab7524a9dc981f8f9692877a61dfcf | [] | no_license | Forrest-Z/rcs | 5e86edd08d292adafcf9ef694ed7894ff12bf2ef | 9dd5cd9d3693b6bae9014dff365b2968b45313b7 | refs/heads/main | 2023-07-06T13:39:38.938705 | 2021-08-10T08:30:35 | 2021-08-10T08:30:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class AccountConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'rcs.account'
| [
"pazzitul@163.com"
] | pazzitul@163.com |
3b0858bb9df04478fdbea75686d088f8c57597c3 | 303f984c9668fd2a099939abf1982e79b1a70f3e | /roll_graph.py | 80b0fc5bbab7cf8c6ebcc3b836f400b2cc000cc8 | [
"MIT"
] | permissive | nate-r-a/catan-receipts | 2bbc620d887fd18c849d1d2110b59f8e97275d1d | 37254983a9847dc13409f9f312d542293ff34f3a | refs/heads/master | 2021-01-10T22:42:49.150403 | 2016-11-16T22:35:46 | 2016-11-16T22:35:46 | 69,703,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | import plotly.plotly as py
from plotly.graph_objs import Bar, Scatter, Figure, Layout
from plotly import __version__
def create_graph(actual_rolls):
#x-axis
NUMBERS = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
#relative odds of a number being rolled
ODDS = [1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1]
#calculate expecte... | [
"noreply@github.com"
] | nate-r-a.noreply@github.com |
81286eab7404c79ae264329c873fd324031b3ce5 | b7054c7dc39eeb79aa4aecb77a8de222400b19a7 | /object.py | deee2a4715df5ac355f73bac61921bfff028351c | [] | no_license | csuxh/python_fullstack | 89027133c7f9585931455a6a85a24faf41792379 | f78571976b3bef104309e95304892fdb89739d9e | refs/heads/master | 2023-05-11T09:36:40.482788 | 2019-06-12T14:21:26 | 2019-06-12T14:21:26 | 145,090,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #!/usr/bin/env python
#!-*-coding:utf-8 -*-
#!@Auther : jack.xia
#!@Time : 2018/5/29 21:56
#!@File : object.py
class Stuf(object):
count = 0
__slots__ = ('name', 'id', 'position')
def __init__(self, name, id, position):
self.__name = name
self.__id = id
self.__position = position... | [
"csuxh@foxmail.com"
] | csuxh@foxmail.com |
35871975b31c4ba2ba0b34d40db9e1991e766f36 | f662a5fb79627d22723ee91b49613b63221160ff | /cbv3/bin/flake8 | c880345fa3c8189ed2ebb38bbe5f62e8f1a00130 | [] | no_license | brylie/django-concept | bd9bcbaf6dfe0bf2c25dcd2ff34a4d621275c619 | 4003222dc2a1fc441ac6bf21b03f1bad6a51ae23 | refs/heads/master | 2020-07-21T11:11:08.225802 | 2019-10-06T06:14:39 | 2019-10-06T06:14:39 | 206,844,463 | 0 | 0 | null | 2019-09-06T17:36:51 | 2019-09-06T17:36:50 | null | UTF-8 | Python | false | false | 256 | #!/Users/lpnotes/Desktop/django-concept/cbv3/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flake8.main.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lpnotes@Lindas-MacBook-Pro-2.local"
] | lpnotes@Lindas-MacBook-Pro-2.local | |
08f4aced36fe56bcec48deaa99f0e5ad628d5792 | b978cf7f47c5cd6295f3c0c104752d3e1e9d89d6 | /test.py | f88b6b9a5b2b21a543c221161f595e2588fd53b5 | [] | no_license | sepidmnorozy/backup-crawler | 1e4cd62d5a48b6e3bf974f89d1d513765e5d9c5b | 73beddd2febd0dec3a0d1f5706557de073035a06 | refs/heads/master | 2022-11-18T19:56:43.507394 | 2020-07-22T13:11:53 | 2020-07-22T13:11:53 | 281,674,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from pymongo import MongoClient
from rss import rss_reader
import json
if rss_reader('https://www.khabaronline.ir/rss') == 'Success':
with open("links.json", 'r') as f:
urls = json.load(f)
else:
urls = []
client = MongoClient()
db = client['newsdb_week']
articles = db.weekarticles
start_urls = []
for... | [
"alireza97hi@gmail.com"
] | alireza97hi@gmail.com |
e286247caef6608e64d3f83668b0e57d5c35c469 | 07e6fc323f657d1fbfc24f861a278ab57338b80a | /python/test_chem_reaction.py | a45fb01f6793461a249921c48059b569c7d781b2 | [
"MIT"
] | permissive | ProkopHapala/SimpleSimulationEngine | 99cf2532501698ee8a03b2e40d1e4bedd9a12609 | 47543f24f106419697e82771289172d7773c7810 | refs/heads/master | 2022-09-05T01:02:42.820199 | 2022-08-28T10:22:41 | 2022-08-28T10:22:41 | 40,007,027 | 35 | 4 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/python
import re
import numpy as np
import sys
from pySimE import chemistry as ch
#print ch.str2composition( sys.argv[1] )
#sides = ch.parseReaction( 'Fe+O2=Fe2O3' )
#sides = ch.parseReaction( 'C12H22O11+KNO3=H2O+CO2+K2CO3+N2' )
#print sides
#print ch.reaction2string( sides )
#print ch.balanceReactionStr... | [
"ProkopHapala@gmail.com"
] | ProkopHapala@gmail.com |
17a54c49e8b54a1afc88c363e32b08adf3f15a77 | 239f70d1d68feec739ae309fdb1ae9432b528277 | /flaskblog/models.py | 0ae84f782ea263195f3a2a656e05501717eb7d2a | [] | no_license | Acejoy/Blog-WebApp | 5321287b396a765c832649caaa06ffb25773cfe0 | bea38213e67f220939b40da2d2e18a11394ea9d9 | refs/heads/main | 2023-04-18T20:38:18.100653 | 2021-05-06T06:55:23 | 2021-05-06T06:55:23 | 360,434,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from datetime import datetime
from flask_login import UserMixin
from flaskblog import db, login_manager
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), unique=... | [
"srinjoym98@gmail.com"
] | srinjoym98@gmail.com |
730fe30426ac70c128ee92b95ce2c55d3c99b67e | 85f3dcf42563767d55994160e50fab175d51304b | /resumeproject/edu/urls.py | 67630c62865efc1cd742aebfb016ec9be7ada2c1 | [] | no_license | surya-pratap-2181/All-django-Projects | ac6bb3f9fa4122b618d42edc5aedf726ecff2c83 | fd7c7be19810794bade1f61ecfd5423489801c43 | refs/heads/main | 2023-06-24T00:26:47.861780 | 2021-07-28T02:59:59 | 2021-07-28T02:59:59 | 390,193,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.urls import path
from . import views
urlpatterns = [
path('/skill', views.skill, name="skill"),
]
| [
"rathoresurya21@gmail.com"
] | rathoresurya21@gmail.com |
2d0cf1dd1d5942321fd949a7ccdd5f5a5be62e1b | 1fda2038157bfc9cce18edba04fd345c882851c9 | /test scripts/tesst.py | 4800010862a7114a180021885e9abb9d4b6fbd3e | [] | no_license | yotovtsvetomir/Cloud-Providers-Notifier | 6df8241f6980c044d3c8850dab02ff99206bbe0c | 7d84f32bc51b2739f4c0e748a89908d8c62a958f | refs/heads/master | 2021-06-27T01:21:33.815140 | 2017-09-13T11:57:17 | 2017-09-13T11:57:17 | 103,392,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from pymongo import MongoClient
import datetime
client = MongoClient()
db = client.aws_us_east
posts = db.posts
#Find by region
#f = posts.find({"_id":{'$regex' : ".*-us-east"}})
#for post in f:
# print post
#Find by timeframe
#start = datetime.datetime(2016, 9, 14, 1, 31, 0, 0)
#end = datetime.datetime(2016, 9... | [
"noreply@github.com"
] | yotovtsvetomir.noreply@github.com |
4d838de8a7073096520f06dfb7f090cada807e65 | f0364f2511721d22599eb46eda40ed3d0f3b4b00 | /autotest_ecutest4.5/ui_Complete.py | ae196cd9419880f8b4a5f6114e797c7ad06eb703 | [] | no_license | KnightCpp/HIL-test-Base-On-ECU_TEST | 19c2f4d3f0ac0e625194c8780fe5c4c15dd68372 | 4860d888e7599b3fbd7a2372bb9a3f6038c97ace | refs/heads/main | 2023-03-30T01:33:45.922283 | 2021-03-25T13:24:29 | 2021-03-25T13:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'E:\temp\py\GUI\autotest_ecutest4.5\Complete.ui'
#
# Created: Fri Jan 04 10:23:27 2019
# by: PyQt4 UI code generator 4.10
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fr... | [
"noreply@github.com"
] | KnightCpp.noreply@github.com |
52dfc7c479bffded54241d1449539d22e9a4a7ca | fd8dbd377277a8cd41883ee19fa01ed8285f17af | /casey_prototype/urls.py | 91a6aece9fe891b009545c38c982f99f50801652 | [] | no_license | tomlouismurphy/casey_prototype | 691c3ee06c5db23e1db9baaa1b159b3f40af692e | 0cc03cf06e3fc7bc1eb60330d689b02393e68461 | refs/heads/master | 2021-08-23T17:19:19.337301 | 2017-12-05T21:27:16 | 2017-12-05T21:27:16 | 112,775,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | """casey_prototype URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"tom.louis.murphy@gmail.com"
] | tom.louis.murphy@gmail.com |
fb4d6144389ec8eb93a016186bb5908c2683cdc8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_clattering.py | 3893e7f6289447dca25d947171005c4f61ce3729 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _CLATTERING():
def __init__(self,):
self.name = "CLATTERING"
self.definitions = clatter
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['clatter']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
03bcd0f092ca2843a4d023d01e64e3e166b7e627 | c1bb8c962e565749576cad0207ada9b80676c49c | /test/bitflyer.py | a860b613293eb7fb71e800c6d83fb693c38f877b | [] | no_license | mayabaha/vcts | ad57a5b567fd850fb0d0dbe7f37569adc49ca2f2 | 37d4fde6d16f36703c96eda5a19ad8c448710f37 | refs/heads/master | 2021-09-06T08:44:41.433365 | 2018-01-22T14:26:27 | 2018-01-22T14:26:27 | 107,733,425 | 0 | 0 | null | 2018-01-14T09:59:46 | 2017-10-20T22:47:08 | Python | UTF-8 | Python | false | false | 9,825 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import time
import requests
import pandas as pd
import datetime
import argparse
class bitflyer:
"""
bitFlyer API module
see the following for details:
https://lightning.bitflyer.jp/docs/api?lang=ja&type=ex&_ga=2.136056049.1965297882.1509160469-180... | [
"takashi@hermit"
] | takashi@hermit |
ab550e443a8102657df2f405460ad1185bd0c03e | 6d2f5ab1d568b1b44591e8cc85865b37539d6b22 | /HumourDetection/src/util/katz_walk.py | 053df3ddf0c9ccb9eaac458daee4718a3453db09 | [] | no_license | acattle/HumourTools | ed350bb36c3f4d886653f6625577fba0f020e3e1 | a4522e55ca8003745eff9bc032a10c56b9cdd6fe | refs/heads/master | 2021-03-27T19:50:25.225543 | 2019-06-30T22:34:32 | 2019-06-30T22:34:32 | 63,935,056 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,400 | py | '''
Created on Jul 6, 2018
@author: Andrew Cattle <acattle@connect.ust.hk>
Utility functions related to Katz Spreading Activation.
For more information see:
Simon De Deyne, Daniel J. Navarro, Amy Perfors, Gert Storms, 2016,
'Structure at every scale: A semantic network account of the
similarities between unrelated c... | [
"acattle@connect.ust.hk"
] | acattle@connect.ust.hk |
ad614d1c10782d42d169c7a5b58b58df2d9e4ac2 | caceb60f71165772b6d6155f619e79189e7c80a9 | /第一期/北京-沧澜/ini文件读写.py | a7089ca87611d7a683cc4043345514b042aed299 | [
"Apache-2.0"
] | permissive | beidou9313/deeptest | ff41999bb3eb5081cdc8d7523587d7bc11be5fea | e046cdd35bd63e9430416ea6954b1aaef4bc50d5 | refs/heads/master | 2021-04-26T23:06:08.890071 | 2019-04-03T02:18:44 | 2019-04-03T02:18:44 | 123,931,080 | 0 | 0 | Apache-2.0 | 2018-03-05T14:25:54 | 2018-03-05T14:25:53 | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding utf-8 -*-
import configparser
if __name__ == "__main__":
config = configparser.ConfigParser()
# 先新增一个section
config.add_section('中国')
# 在新增的section下新增key-value对
config.set('中国', '河北', '石家庄')
config.set('中国', '河南', '郑州')
config.set('中国', '山东', '济南')
# 再新增一个section,但是不增加键值对
... | [
"15201036511@163.com"
] | 15201036511@163.com |
d5962b41aa960e1b40b3de9eb56fc4a6813c6491 | a7ad18e70d9f46429281490af40ce7595825640f | /clients/services.py | e2a193dff132933a0de5f0388ebfd50b424cc7a0 | [] | no_license | JEBT28/Curso-de-python-CRUD | 2f02d4450440ead037cd4ea5f65a8a45b0baf8dd | ab7d3aa9bcf063eeae3c858c030784053ec6a88a | refs/heads/master | 2022-12-15T07:44:53.843546 | 2020-08-24T18:10:53 | 2020-08-24T18:10:53 | 287,862,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | import json
import uuid
from clients.models import Client
class ClientService:
def __init__(self,file_clients):
self.file_clients=file_clients
self.load_clients()
# print('Se cargaron los metodos')
def load_clients(self) :
file=open(self.file_clients,'r')
var =... | [
"juanbal2808@gmail.com"
] | juanbal2808@gmail.com |
56ab51ce296ac609989c894b2c80f0e70076ecf9 | be2cd3e1696fa3b506c2fdcac4d388f886950811 | /PY_files/file1.py | 3c2f00669db616f8c7c29624c9f2f77d26e942a2 | [] | no_license | mhkr007/PY_Prgms | bc171f4e09cbc088d48336f597cdb476251794ca | ebda4d0728bc6751fd4abbdb049ed278277772d1 | refs/heads/master | 2020-06-20T12:56:46.218362 | 2019-07-23T07:19:41 | 2019-07-23T07:19:41 | 197,130,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | ################################## FILE HANDLINGS ##################################################
"""These are 5 properties of files @ name,mode,readable,writable,closed"""
f=open("abc.txt",'r+')
print("File Name: ",f.name)
print("File Mode: ",f.mode)
print("Is File Readable: ",f.readable())
print("Is File Writable:... | [
"mhkr007@gmail.com"
] | mhkr007@gmail.com |
be150c5153affabe985e44548c355a01e4c22fda | 1f908c05155bd905458ef0a740f67026ec4d83ea | /karatsubaalgorithm.py | 5c3820c48291831348acbec9a2108d6316ed89b2 | [] | no_license | amirali1690/algorithm-coursera | c3214f49a14dc1daaa93f80be4109d767e8d0411 | 19d7e2246a489e939c9e3a47a70c08e0e3df0d4a | refs/heads/master | 2020-05-04T13:23:27.640717 | 2020-01-23T04:49:12 | 2020-01-23T04:49:12 | 179,158,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 7 18:18:49 2019
@author: amir
"""
import math
def karatsuba(x,y):
if x<10 and y<10:
return x*y
else:
n=math.log(x,10)
nf=n//2+1
a=int(x/10**(nf))
b=int(x%10**(nf))
c=int(y/10**(nf))
d... | [
"amirali1690@gmail.com"
] | amirali1690@gmail.com |
004f6ee2f5299f8fa21061fd22b3afc3270998c3 | c5087f002963ca81c32fb1f7b801125955dd484f | /main.py | eb653007dc8acbc884353abac64969a681c84230 | [] | no_license | davidhjp/pysosj | a6ee12c99f14b6cf56ef975fed65f5cf740c9084 | cb955fbae0f745ef7c1787be62c54c989d28483d | refs/heads/master | 2021-06-10T21:47:42.735106 | 2017-01-24T03:39:53 | 2017-01-24T03:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import pysosj
if __name__ == "__main__":
sss = pysosj.SJChannel("127.0.0.1", 1200, "127.0.0.1", 1100);
while 1:
val = sss.receive("CD2.I", "CD.I")
print "received " + val
sss.send("CD2.I2", "CD.I2", "hallo")
print "sent"
sss.close()
while(1):
pass
| [
"hpar081@aucklanduni.ac.nz"
] | hpar081@aucklanduni.ac.nz |
93a3267e51df3e2d5d2bf140872b6e2e1a563f40 | 53b2358c6089be2c51ac2768a77fc303d563550d | /assembly-scripts/combine_cds.py | 3703c7cac212c41cfac0a5244748a064d01f18fd | [] | no_license | bethsheets/Population-Genomics-via-RNAseq | 684e7cd5a667a335f7b3e1111e1ccd6eb85533c6 | 3cb3ee912f855e8a9981874f4ff160551f8b8db3 | refs/heads/docs | 2020-04-12T05:42:48.038672 | 2019-07-12T17:24:37 | 2019-07-12T17:24:37 | 60,875,099 | 2 | 10 | null | 2017-04-14T15:16:23 | 2016-06-10T20:29:39 | Python | UTF-8 | Python | false | false | 773 | py | #usage: python combine_coding.py input_cds_grepped_from_gff_then_gff2bed_awk_prepend_strand.fa out.fa
import sys
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
coding=SeqIO.parse(sys.argv[1],'fasta',generic_dna)
combined=dict()
for cds in coding:
name=cds.id
transcript=name.... | [
"bethsheets@gmail.com"
] | bethsheets@gmail.com |
b0199dbaf2cbde5fff7bebea9f30687f1e16eeeb | 6dc6287827a8b2e9bfb948624f62cc465c54fe12 | /ch09/qos.py | ff5584e1ff5cb30938d1ed42cd0db0c752f3f34c | [
"MIT"
] | permissive | AzureCloudMonk/Python-Networking-Cookbook | c1f8db96037e6c6a0d24cf4d9339e32d3ba513a0 | 26945c781a51fe72cc01409df6b5c5fa7df53f4c | refs/heads/main | 2023-07-13T09:20:51.416840 | 2021-08-22T18:10:01 | 2021-08-22T18:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import os
import sys
import requests
base_url = "https://api.meraki.com/api/v1"
key = os.environ.get("MERAKI_DASHBOARD_API_KEY", None)
if key is None:
print("Please provide an API key. Aborting.")
sys.exit(-1)
sess = requests.Session()
sess.headers.update({
"X-Cisco-Meraki-API-Key": key
})
network_id = "L_78362... | [
"marcel.neidinger@nlogn.org"
] | marcel.neidinger@nlogn.org |
0bb86cc88e336ab207cb59291392165129948a10 | c2e43c48aefa729962097d5fb470777c044c5a85 | /venv/bin/f2py3.9 | 66a4eb1360ee8269a0e9a5ce727cd677237fc0f7 | [] | no_license | HiroshigeAoki/Optiver_Realized_Volatility_Prediction | 57a14d374a65fe2419eb3c84ed9d9f6fc3faeef6 | 21bdbe2ec2ed193db6c28ebfa3f5313539c0a188 | refs/heads/main | 2023-07-11T01:47:49.631676 | 2021-08-17T06:47:02 | 2021-08-17T06:47:02 | 397,778,792 | 0 | 0 | null | 2021-08-19T01:19:57 | 2021-08-19T01:19:57 | null | UTF-8 | Python | false | false | 289 | 9 | #!/home/bi18056/VScode_workplaces/Optiver_Realized_Volatility_Prediction/venv/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lqqq0528636@gmail.com"
] | lqqq0528636@gmail.com |
a0c529fe9ac1114d4ea620a3a09ab644868c12c2 | 7c59bbd4ff413a95dc9d25fbfccd11c6db60202a | /python_stack/full_stack_django/test_orm/apps/test_orm_app/migrations/0001_initial.py | ff84e3ca46db76c12c5baaeb018a42283bcbe193 | [] | no_license | soikatesc/DojoAssignments | 9a185a1164e42a985aea5e49d0ee270fd476d42a | c5c84bc9bd4aedd0fe6aa26bf75793e284edb248 | refs/heads/master | 2021-01-23T04:34:19.617679 | 2017-05-16T03:52:58 | 2017-05-16T03:52:58 | 86,211,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-04-19 00:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"soikatesc@gmail.com"
] | soikatesc@gmail.com |
a135986681b422aa38dc0f73eb018ec8b5e5de5b | ae8a2e748976c702da93be5fceb415683e26dae4 | /sumit1136/cartoonifyRealTime.py | 488f4c9475a76e657648fbf4469ba2a39a9a6b03 | [] | no_license | hackslash-nitp/cartoonify | 1a19e1c57959103f61d968e773f11babdf2f699c | 7f4ac7329de79c63855dd80727a18c0eab6be577 | refs/heads/main | 2023-02-17T11:11:23.705255 | 2021-01-19T23:35:03 | 2021-01-19T23:35:03 | 322,804,672 | 1 | 6 | null | 2021-01-19T23:35:04 | 2020-12-19T08:48:18 | Jupyter Notebook | UTF-8 | Python | false | false | 1,080 | py | # import the opencv library
import cv2
import numpy as np
# define a video capture object
vid = cv2.VideoCapture(0)
while True:
# Capture the video frame
# by frame
ret, frame = vid.read()
# Display the resulting frame
cv2.imshow('frame 1', frame)
# frame=cv2.cvtColor(frame, cv2.COLOR_BGR2RG... | [
"sumit.sav1136@gmail.com"
] | sumit.sav1136@gmail.com |
e1ca4ac4ad045dfef7ec413194552a242acdc4be | 1636f64b079a7cbb9e27bb27947eddc6c88aef61 | /Chapter7/second/models/model.py | 74f2a137eb79352e4745898fdc33774c888c0e1c | [] | no_license | TJJTJJTJJ/pytorch__test | 436a74a57f83c800b90dc063ef1976c20a3abc2b | e8bf4e9f6a3d23a7d577c0c78b93d9f5a7561ca5 | refs/heads/master | 2020-03-27T18:11:24.889333 | 2018-10-04T09:45:20 | 2018-10-04T09:45:20 | 146,904,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py |
# coding: utf-8
# In[1]:
from torch import nn
from .BasicModule import BasicModule
from torch import autograd
import torch
# ### 定义生成器 init(),forward()
# In[2]:
class NetG(BasicModule):
"""
生成器定义
__init__()
forward()
"""
def __init__(self,opt):
super(NetG,self).__init__()
... | [
"18810906582@163.com"
] | 18810906582@163.com |
8c8ddb6eb22d55c5cb1ea8f0c1998adaff30342f | 28811880a917a1e1ec24a844999d950dc1a5d057 | /0x07-python-test_driven_development/4-print_square.py | 4d81d08b600778252b9240006e576c46b7c1393d | [] | no_license | OrangeB0lt/holbertonschool-higher_level_programming | b591ceb8e0710cb26c78407a266421488f325678 | f50668f78ffb861b305e0d691c29cd1b817d9ec0 | refs/heads/master | 2020-05-18T03:55:07.262414 | 2019-09-26T23:22:01 | 2019-09-26T23:22:01 | 184,158,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!/usr/bin/python3
"""
Prints squares
based on size input
woohoo
"""
def print_square(size):
"""
print_square: prints a square based on input number for size
"""
if not isinstance(size, int):
raise TypeError("size must be an integer")
if size < 0:
raise ValueError("si... | [
"667@holbertonschool.com"
] | 667@holbertonschool.com |
f41fa5c42bc1aebcc2d08cd24120b101b406944b | a370f6b81cbfe2a956b59db40fffc32526088b00 | /analytical.py | 012d1f5e47ba62858606750415e1bfbb70c99284 | [] | no_license | Mountiko/armageddon | 10d607335e72a47078efa5f30811e607fb1fb4bc | 0244ee604fbea2ecb1e9d54cd2e186b176b9d9a9 | refs/heads/master | 2020-11-24T04:13:57.740850 | 2019-12-14T18:05:52 | 2019-12-14T18:05:52 | 227,960,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
def anal_sol(H_plot, radius=10, velocity=20e3, density=3000, strength=10e5, angle=45,
init_altitude=100e3, radians=False):
'''
Solves analytical solution for meteroid impact
Parameters
----------
radius : float
... | [
"56032588+acse-ncv19@users.noreply.github.com"
] | 56032588+acse-ncv19@users.noreply.github.com |
c819640f419b8ec2a2e4db92176f8a8578bd998a | f9483d708e9df7b38b7ae1d58726a4e186780473 | /app/core/models.py | e976e6abe197bd1e740b9b98e95f5c3609ea0be1 | [
"MIT"
] | permissive | dev-tanvir/rest_api_docker | 6db6bf616484ab29e9446795158c8facc2489fae | 09804cfbc6332d6cfbb25b09813b36c338051ba3 | refs/heads/main | 2023-06-20T08:41:53.535214 | 2021-07-18T11:16:19 | 2021-07-18T11:16:19 | 367,130,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | import uuid
import os
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
from django.conf import settings # recommended way to import settings in django
def synthesize_image_file_path(instance, main_file... | [
"tanvirfaisaldev@gmail.com"
] | tanvirfaisaldev@gmail.com |
b6cd32dd7c58e44b484925d0981c527b8eb6d61f | ddd09683d9cbd681db5dae4e2d036d28bd4d24c1 | /PA3/BAL3.py | f82978400cd729be26ca286631abcea6caa2356a | [] | no_license | nivedn3/DL4CV-EE6132- | 41f9cd877a4c43db0a2f511a57df8b624fbc0a07 | 2cd97c7d2170a8e4fe36b6ccc8443c009e3d003a | refs/heads/master | 2021-01-20T05:41:37.019460 | 2017-11-22T10:17:16 | 2017-11-22T10:17:16 | 101,465,640 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,240 | py | import tensorflow as tf
import numpy as np
sess = tf.InteractiveSession()
def data(number,size):
a = []
b = []
out = []
for i in range(number):
a_in = np.random.choice([0,1],size)
a_in = a_in.tolist()
#a_in = [1,0,0,0,0]
b_in = np.random.choice([0,1],size)
b_in = b_in.tolist()
#b_in = [1,0,0,0,0]
a... | [
"nivedn3@gmail.com"
] | nivedn3@gmail.com |
cdfc02d15189f0e0ad498bfae17a3ee08c544cc0 | d9cf5ce593b91c63139e4bd831f3ba99a3407d05 | /analyze_timings.py | 486158770c30fe74fa794ad1a058012d75a1ccb6 | [] | no_license | MaxwellDeJong/parallel_mcmc | 51c6d7794424c4adf2d3e7ed85d8d3ade07dce57 | 4d9f41e402c35a295141057d8caab0bf85d1b033 | refs/heads/main | 2023-02-20T05:04:55.999668 | 2021-01-10T03:13:39 | 2021-01-10T03:13:39 | 328,289,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_timings(n):
filename = 'timings_' + str(n) + '.txt'
timings = np.loadtxt(filename)
plt.scatter(timings[:, 0], timings[:, 1])
plt.xlabel('Number of Steps')
plt.ylabel('Execution Time (ms)')
plt.title('Scaling with ' + str(n) + ' Dimen... | [
"maxwelldejong@gmail.com"
] | maxwelldejong@gmail.com |
a981d72e03c71c1df680fd7aebeddc9f0d707d99 | 58c0c6cd1da0a0b70c14787fbbd5a5af5161ac15 | /venv/Scripts/rst2odt.py | 6925f5b6c183bc706e358ba95f88170286c59ba7 | [
"MIT"
] | permissive | RafaelHMachado/Cioffis_Automation | 6454d33558a4f4b63412d1d068726ca73feddeea | 07965ca71c3d4e78f5cee1fce4ba0bbfe2db9811 | refs/heads/main | 2023-06-06T07:04:11.182106 | 2021-07-03T07:39:28 | 2021-07-03T07:39:28 | 382,553,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!C:\Users\Eng\Documents\Project\venv\Scripts\python.exe
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
A front end to the Docutils Publisher, producing OpenOffice documents.
"""
import sys
try:
... | [
"rafael_henriquemachado@hotmail.com"
] | rafael_henriquemachado@hotmail.com |
2892259f2d817721cf02d7066f632c0970f63743 | c9317c7703f05c3dd17c29aaadf9062b60bedd37 | /website/view.py | 1b984a7eb87633e8ebc56c91044d081162c065c0 | [] | no_license | gliv001/appointment_webapp | 778bd5983fad27cfcf2a159f1f72ff9efa37e989 | bb7a003c5d25c1364e25b0c6e160e9b24b66f490 | refs/heads/main | 2023-05-26T12:57:59.134742 | 2021-06-14T01:13:02 | 2021-06-14T01:13:02 | 371,082,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,255 | py | from website.forms import AppointmentForm, EmployeeForm, ServiceForm
from flask import Blueprint, render_template, request, redirect, flash
from flask.helpers import url_for
from .models import (
Appointments,
Employees,
LoginHistory,
Services,
ApptUsers,
UserLevel,
db,
)
from datetime impor... | [
""
] | |
f0921f29f3f682945a8f671213dc391d565db088 | 9d41570295cc05b66fd52584a90fe87f29155943 | /src/crawler/delay.py | 649fb6282c26a77936487a5bcd18eeda56ff6aa7 | [
"MIT"
] | permissive | diegojromerolopez/relwrac | ed56feeb2a5e455e0fa58f6bc130445e5a0831bd | 23ee278ab4019b98269419c53feed2194f079c25 | refs/heads/master | 2022-12-11T08:06:19.888698 | 2019-11-16T12:35:34 | 2019-11-16T12:35:34 | 219,372,323 | 0 | 0 | MIT | 2022-12-08T06:49:05 | 2019-11-03T22:09:35 | Python | UTF-8 | Python | false | false | 294 | py | import random
class Delay(object):
@classmethod
def none(cls):
return None
@classmethod
def uniform(cls, lower_bound: float, upper_bound: float):
def uniform_delay_():
return random.uniform(lower_bound, upper_bound)
return uniform_delay_
| [
"diegojromerolopez@gmail.com"
] | diegojromerolopez@gmail.com |
7730264c505a3c732597e1d232c28b694ce63cd6 | 75d41c04791c047309607ce554f0b3e72f94b4cb | /app.py | 3de14fdca36e861dfd5823560a0333681018862f | [
"MIT"
] | permissive | lyfyork/LAB2 | 6e84d18dc22c98e9b0f2a1e550d39eb7cf022fe8 | a76adfbe0e8077e06e2c25457df5ace67e64bc10 | refs/heads/master | 2020-05-14T15:17:38.807117 | 2019-04-17T09:05:28 | 2019-04-17T09:05:28 | 181,841,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | //This is app.py
| [
"noreply@github.com"
] | lyfyork.noreply@github.com |
4e716e88211d1235e4eb2d17c6c4c7d49c93d68d | 9a9b4b88485101f23dd84f12187dcc3dd0638fb4 | /code/chp14/mailbox.py | 6458bd18a929b09f9ea1fc106a9b5ccc949b3a5f | [] | no_license | hongdago/fopnpcode | 0d8ce279a51068e4ae92fc305c11f299991f50b7 | ef55cdff12a1f07c3f91cf80ca6745c2448de765 | refs/heads/master | 2021-09-03T12:46:55.009501 | 2018-01-09T07:14:24 | 2018-01-09T07:14:24 | 115,104,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
FileName:mailbox.py
DESC: 使用POP的list命令
"""
import getpass, poplib, sys
def main():
if len(sys.argv) !=3:
print('Usage: %s hostname username ' % sys.argv[0])
exit(2)
hostname, username = sys.argv[1:]
passwd = getpass.getpass()
p = popl... | [
"hongdago@yahoo.com"
] | hongdago@yahoo.com |
e5ab664edb4752d26689ea1f5d8c70d0327cb7b4 | c876cc3d3bdb9020bf906c53f0f060379cd52b09 | /rename.py | 5671cda9ebf8909a59997ba752c73d1a314200f8 | [
"Apache-2.0"
] | permissive | shinysuraj/python-project | 328660cb3203cceb76ce78d974ac543891970eed | 7d7e31898e021d8c4c05d7d6445c5645f6452b11 | refs/heads/master | 2020-08-27T12:50:38.855019 | 2017-09-17T22:14:20 | 2017-09-17T22:14:20 | 217,374,680 | 0 | 0 | Apache-2.0 | 2019-10-24T19:09:20 | 2019-10-24T19:09:20 | null | UTF-8 | Python | false | false | 499 | py | #This programe rename all the files from current directory and remove Number or digits from their
#names
import os
def rename_files():
#replace your own Directory address
file_list = os .listdir(r"home/ved/hello")
saved_path = os.getcwd()
print("Current Dir is %s" %saved_path)
os.c... | [
"noreply@github.com"
] | shinysuraj.noreply@github.com |
11716fe8e719fd08d9305e4d39864d7c53af3e8a | 268e00212b4e863e35b2113496f1a71c4b7b4a04 | /11_对dict的list去重.py | 7af9b4a7b79ae15743f7087432b1449da813482a | [] | no_license | MrCat9/Python_Note | ee5c2fa86b0f77538e1feacdaaadfa9afec884ef | 6b81cdf4d46a6d1f1a78170c47151ae519e087d4 | refs/heads/master | 2022-08-20T22:28:17.730325 | 2022-08-08T02:44:47 | 2022-08-08T02:44:47 | 146,618,466 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | # -*- coding: utf-8 -*-
# 根据dict中的某一key的value,对dict的list去重,value相同视为重复
# def dict_list_duplicate(dict_list, duplicate_key):
# temp_list = []
# new_dict_list = []
# for a_dict in dict_list:
# value = a_dict[duplicate_key]
# if value not in temp_list:
# temp_list.append(value)
# ... | [
"noreply@github.com"
] | MrCat9.noreply@github.com |
5f1c2a99593a7553184a6e88dacd5cfddfa94dc2 | 11286e7989264134a8a8d610e0f609e6fbff9140 | /ch06/ch06_6.py | 611bb36abeda2b0457a21b95c8675ec3d9cc42ed | [] | no_license | p2c2e/machine_learning_with_python_cookbook | 04eeed2e00e0a3e9c0681d4b2f4125aa85485a1d | b176323a02f5b5722e312a579ad764a0276ec9c6 | refs/heads/main | 2023-01-30T06:54:34.138786 | 2020-12-13T05:02:07 | 2020-12-13T05:02:07 | 320,987,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Load libraries
import unicodedata
import sys
# Create text
text_data = ['Hi!!!! I. Love. This. Song....',
'10000% Agree!!!! #LoveIT',
'Right?!?!']
# Create a dictionary of punctuation characters
punctuation = dict.fromkeys(i for i in range(sys.maxunicode)
if uni... | [
"sudharsan.rangarajan@publicissapient.com"
] | sudharsan.rangarajan@publicissapient.com |
2b59d2bc871b13882aa71629e364e5ee5cde3a00 | 186736f265fa7954e95198955546305ab1b9b981 | /notesApi/settings.py | d3fd465d97e808c8f69bde9fd61320c402413ffb | [] | no_license | nova-sangeeth/notes-api | 6449669870dfb69a72e1aad71c8859ca9de8bfbb | d5d15a4df615b0b276ccf8f49efc9e21eb177b65 | refs/heads/master | 2022-12-22T11:38:03.065884 | 2020-09-23T19:58:14 | 2020-09-23T19:58:14 | 298,022,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | """
Django settings for notesApi project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"novasangeeth@outlook.com"
] | novasangeeth@outlook.com |
a2c679a999c8aa27009e451be46263c0baafba57 | b60c2ce1b3f5ae8e4381cad4564d2fb189cd325b | /source_manipulation/nt_parser_zefania_english.py | 00ec14cfdd8d73f344443e416c23121bfdb9ecd3 | [] | no_license | jasonamyers/SacredPy | 840659d4e192f88dac7fe08eac3159bbb0433491 | 2ed4951619d124aaa8f1a8d183ac0b3f816302ae | refs/heads/master | 2021-01-16T21:18:08.046217 | 2013-12-08T14:07:26 | 2013-12-08T14:07:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | from lxml import etree
from pprint import pprint
ons = {'o': 'http://www.bibletechnologies.net/2003/OSIS/namespace'}
class Processor(object):
def __init__(self, fname):
self.tree = etree.parse(fname)
print self.tree
self.books = list()
self.process_book()
def process_verses(sel... | [
"jtim.arnold@gmail.com"
] | jtim.arnold@gmail.com |
7a8c6b2fe81d9938e242e7bf859ec30576c2dab4 | c550b7993524ef3598d7b93900d36e022ad2b16f | /venv/Scripts/pip3.8-script.py | d9a1cebc9fc049c6a56f94b005a001e14004390f | [] | no_license | 19982084685/network-simulation | 523e3205eb94a312a6105946f31e031d660dcd52 | ce825730742e6adf2d968bfe3e210c38b4419798 | refs/heads/master | 2022-12-25T07:05:05.536120 | 2020-09-11T15:21:24 | 2020-09-11T15:21:24 | 294,640,613 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 446 | py | #!D:\Users\玉明\Documents\教学文档\网络挑战课\pyProject\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"3010201649@qq.com"
] | 3010201649@qq.com |
7c5501a793a8b3dcf3fe33d63e771c53c854e673 | fd8eb0edf514fca4f25b885de86e1503463a8264 | /polls/admin.py | 3cd232b8b20f28c45a93edda83a4e2180351d1d8 | [] | no_license | ubiopen/project1 | 7f6dd1bf56721449c5e61d9c40c6c132721384e1 | 89ee8f5914bfe28627018d2b07749d17f0f63e92 | refs/heads/master | 2021-01-25T09:59:31.794667 | 2014-06-15T10:54:21 | 2014-06-15T10:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from polls.models import *
from django.contrib import admin
admin.site.register(Poll)
admin.site.register(Choice) | [
"kfisac@kfisacui-MacBook-Pro.local"
] | kfisac@kfisacui-MacBook-Pro.local |
4c92871a9b092599b369eba37b5e69ca438f451d | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week4/Practice/Trace1.py | 6db80027484d73a47f843382e033603034f1470c | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | def onesDigit(n):
return n%10
def ct1(L):
for i in range(len(L)):
L[i] += sum(L) + max(L)
# The function onesDigit is called on each element before
# making comparison.
return sorted(L, key=onesDigit)
a = [2,1,0]
print(ct1(a))
print(a)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
b43a8c8f46ebf074abafe2fe804dd6281bc08def | 9506d1d978882f1310e31f05624f9123f7d1e4c4 | /model.py | 2572da3a20621fc9fcdb81728adc3ec4b507dbb5 | [] | no_license | mindninjaX/AI-Chatbot | 6e9b3420cb5cde85138ace552b5cd6f22fe8c26a | eb839a538c0067485264f9f03a8a46176e66ebc0 | refs/heads/master | 2023-03-30T10:38:29.420301 | 2021-04-01T05:27:54 | 2021-04-01T05:27:54 | 329,689,986 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import torch
import torch.nn as nn
class NeuralNet(nn.Module):
def __init__(self, input_size, hidden_size, num_classes):
super(NeuralNet, self).__init__()
self.l1 = nn.Linear(input_size, hidden_size)
self.l2 = nn.Linear(hidden_size, hidden_size)
self.l3 = nn.Linear(hidden_size, num_... | [
"rishabhsinghs90s@gmail.com"
] | rishabhsinghs90s@gmail.com |
ebf03cfdd8a51f8ebfe2b59fa37239f887dc4074 | a6518cd4bdb5d8d3fde49a805208d34d6381191a | /server/application/models/window.py | 33c1b4ea4f3fc57f312a3debcdabc0df9eba1e29 | [
"MIT"
] | permissive | coloration-production/basic-saas | c43b09515be3ec08e044d25b33d69a4482e39855 | 91656e4cb70ace6b94cd0f5f6fa54f7d996106c0 | refs/heads/main | 2023-06-03T06:00:32.003920 | 2021-06-16T13:03:05 | 2021-06-16T13:03:05 | 375,542,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | # encoding: utf-8
from application.models.base_entity import BaseEntity
from application import db
from sqlalchemy_serializer import SerializerMixin
from application.models.window_widget import registrations
from application.models.widget import Widget
from datetime import datetime
class Window(BaseEntity, Serializer... | [
"binyu.wang@zgcechuang.com"
] | binyu.wang@zgcechuang.com |
ddb617b3840deff9580b1979fa5f9a1accfb1906 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/you-get/2016/8/common.py | a5a0fbab63c9d5e6a52916b9ad5356b87ef836b7 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 46,179 | py | #!/usr/bin/env python
SITES = {
'163' : 'netease',
'56' : 'w56',
'acfun' : 'acfun',
'archive' : 'archive',
'baidu' : 'baidu',
'bandcamp' : 'bandcamp',
'baomihua' : 'baomihua',
'bigthink' : 'bigthink',
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
4ccf7450ab45e16ee470b9508c1564a341691058 | 5eb84c7ca6572b6503f94e53813bdab018cbbe2d | /rocket.py | 477d44fb1fa2af8ee9499fc0b79d9cca28082cfc | [] | no_license | AlexanderHHS/new | fa161a04d5a56a7aba8da322825f4143100a7ccf | b3ecdf6acbb6fc19892bcb1029e4a31b2e91435c | refs/heads/master | 2020-05-29T17:26:47.167837 | 2019-05-30T20:52:02 | 2019-05-30T20:52:02 | 189,277,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | from math import sqrt
class Rocket():
# Rocket simulates a rocket ship for a game,
# or a physics simulation.
def __init__(self, name = "TBD", x=0, y=0):
# Each rocket has an (x,y) position.
self.x = x
self.y = y
self.name = name
def move_rocket(self, x_in... | [
"alexandt@hsd.k12.or.us"
] | alexandt@hsd.k12.or.us |
7b7065c44f46e1fc431ba62723c83f4e085bc20d | 9801dd62f1c2a4454f104d26c2d7d9d75167a31c | /build-osmosis-script.py | 305bfb15e1e3ea41596da49c3ed30e372b752c36 | [] | no_license | hholzgra/Extractotron | cc232f25bcc9609013ff2ecdf36dc8cd7fc2cf20 | 5c67734aa1107a93832d37317b6059fd5225ec3e | refs/heads/master | 2021-01-15T23:35:22.356427 | 2011-09-24T03:57:42 | 2011-09-24T03:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from sys import argv, stderr
from csv import DictReader
cities = list(DictReader(open('cities.txt'), dialect='excel-tab'))
try:
(osmosis, ) = argv[1:]
except ValueError:
print >> stderr, 'Usage: show-cities.py <osmosis command file>'
exit(1)
osmosis = open(osmosis, 'w')
print >> osmosis, 'bunzip2 -c pla... | [
"mike@stamen.com"
] | mike@stamen.com |
e813294ef6a1fd27fd5b6a35d25c3055e06eb8fd | 309963b86e666efceb3a816ca19ced70447d3d82 | /crawl/test_url.py | 6d6b805d036044512b3bc0976675029cc62ff533 | [] | no_license | player7450/ml-py | fd42cfa0248437ca8883702b3bd48df1771f36cc | 0e10736498f0fe42431399ffd6980b9b5e1609c9 | refs/heads/master | 2021-09-03T08:16:42.011010 | 2018-01-07T12:26:52 | 2018-01-07T12:26:52 | 109,000,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import urllib2
__author__ = 'liuzheng'
def test_url():
r = urllib2.urlopen("http://www.baidu.com");
url_text = r.read()
print url_text
def foo():
a = [1,2,3,4]
print a
a.append(5)
print a
b = tuple(a)
print b
c = (1,2,3,4)
if __name__=='__main__':
print 'hehe'
# test_... | [
"lz109550@alibaba-inc.com"
] | lz109550@alibaba-inc.com |
67c8f6e68f42cf14fa5dda19c602fbd7976c47fc | b61efe2686feb44c5b0d2fb3094dd2ea94e6ca93 | /src/control_decision_4.py | be6dc49f088a3f399c8bf5df9b0a6c7de0b509ca | [] | no_license | idrissahil/bat_wifi_exploration | 888f0f7243cc4bedeba6fe8d702762e6e2ad5da9 | 5a1bc74c1b35360d21d01e5e2a721b38fb380ac8 | refs/heads/master | 2020-05-31T16:38:49.118742 | 2019-06-29T14:03:28 | 2019-06-29T14:03:28 | 190,386,321 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | #! /usr/bin/env python
import rospy
import math
from sensor_msgs.msg import BatteryState
from geometry_msgs.msg import Twist, PoseArray, Pose, PoseStamped
rospy.init_node('control_decision_drone')
control_decision_pub = rospy.Publisher('/mavros/setpoint_position/local', PoseStamped, queue_size=1)
state=1
curr_pos =... | [
"idrissahil3@gmail.com"
] | idrissahil3@gmail.com |
c2137568a2e94f717e43fd034e129651b46804a3 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/operations/_inputs_operations.py | 890d33f1b8b1901067d5182d5396b9ae6a0bfef4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 28,587 | 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"
] | scbedd.noreply@github.com |
73be6a781970e67e35078a012c9ece685a4f9bb3 | 36671c0625da3599bd2a6b3750bc837f159ac045 | /Tools/NEOREC/EMGdecode.py | 797624344376fd5453b25b56bb7ae64f1cdbbe91 | [] | no_license | KKaplun/MyoSynse | dcda7a9ca57359f332a5db6d007db533016b5041 | b4225aeb6646631ce09954c966165d911959fcc5 | refs/heads/master | 2020-12-15T08:28:11.131237 | 2020-01-21T10:01:28 | 2020-01-21T10:01:28 | 235,046,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,369 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 26 21:15:26 2018
@author: Александр
"""
import scipy.io
import numpy as np
import h5py
import PNinterpolate
from EMGfilter import envelopeFilter
import tqdm
from matplotlib import pyplot as plt
class EMGDecoder:
def __init__(self):
self.emg... | [
"k.kaplun@gmail.com"
] | k.kaplun@gmail.com |
88fa0f7981f3210b9998f330762fc45808b2a807 | 8a5444d37a9d926bd38261689f6c0e3f477961bb | /ExportToDWGsExportOptions.py | c43572875815b46df7395c5e0ab63fba423fb955 | [
"MIT"
] | permissive | tuskin40/pyDynamo | 6d27dead162685f96a894e8fcb963c880e73f80d | 550e105ec27c29e9055c16b46e0b8ecc0960421b | refs/heads/master | 2023-08-02T11:06:28.691378 | 2021-09-29T02:34:42 | 2021-09-29T02:34:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | __author__ = 'Danny Bentley - danny_bentley@hotmail.com'
__twitter__ = '@danbentley'
__Website__ = 'http://dannybentley.tech/'
__version__ = '1.0.0'
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persi... | [
"danny.bentley@som.com"
] | danny.bentley@som.com |
4cb683ce0b6fa1bdbf35d8661b4e1bb6cf8b8627 | 18c6073d1d9e1a1e22a1c5f734377ebc5ceb4b40 | /stock_predictor/stockprediction/models.py | 3ed79fd2f70c2a0aaeeb453053f51b5b82c21dcf | [] | no_license | shashankgd/mokshtech | 734846d7a1466385c42bda36f705c32918e61e60 | f533de0fe99a9646413a5ed48bdeeb55a11578a9 | refs/heads/master | 2020-04-05T21:48:23.594195 | 2018-11-05T01:21:39 | 2018-11-05T01:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,415 | py | import numpy as np
from keras.layers.core import Dense, Dropout
from keras.layers.recurrent import LSTM
from keras.models import Sequential
from sklearn import neighbors
from sklearn import svm
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics impor... | [
"34120423+shashankgd@users.noreply.github.com"
] | 34120423+shashankgd@users.noreply.github.com |
ab8675c96b935a51728df70ac5b5869ed48e9804 | 37fd5a148523aed620426cc3f39c653e02ba2e17 | /opencensus/trace/exceptions_status.py | a57bdec60434f73c96ac2a6102656e4fd033636a | [
"Apache-2.0"
] | permissive | dineshkrishnareddy/opencensus-python | 8ebfa74e5b487c91ec1fe5734487c9d673a77fad | e5e752ceab3371ec4b78cec23a717168e2ed9372 | refs/heads/master | 2022-02-18T08:40:07.319320 | 2019-10-01T22:41:07 | 2019-10-01T22:41:07 | 212,539,887 | 1 | 0 | Apache-2.0 | 2019-10-03T09:16:46 | 2019-10-03T09:16:46 | null | UTF-8 | Python | false | false | 914 | py | # Copyright 2017, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"reyang@microsoft.com"
] | reyang@microsoft.com |
0c479cef93df6818cbeead1bcb7fcd72addeaa01 | 6ce41ca757269d8dff0ebac9aa88b098b4328a4e | /Data_Connect/MySQL/mysql_to_redis.py | 84e4ee2e55dd30db6ea0bf0e278b800fe058ccde | [] | no_license | HankTsai/Smart__Fridge | e7abcc0017880b59e4d61c6095064c0a3ab38a9a | ab850517c38d06db45e8d71dcab2f849578f5ba7 | refs/heads/master | 2023-01-13T20:01:58.820911 | 2020-11-30T15:40:21 | 2020-11-30T15:40:21 | 312,780,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,199 | py | import redis
import pymysql
from user_db_api import DataBaseConnector
'''
# 這叫做範本
# 使用者冰箱資料轉成字典型態再寫入redis
user_id_list = ["user1","user2","user3","user4"]
user_refri_dict = [{"蘋果":"1,顆,2020/10/23",
"香蕉":"2,根,2020/10/23",
"芭樂":"5,個,2020/10/24",
"蓮霧":"7,個,2020/10/... | [
"hank_black@icloud.com"
] | hank_black@icloud.com |
20b930f94ee43cd25a74f1887b8c7cef39c6b5ef | bc51fcd3fbea140dd7c47da83881aee5dbeb607a | /awscli/style.py | 4ad34b34667ea227f795aa70ae7f0ee249838959 | [
"Apache-2.0"
] | permissive | hiroakis/aws-cli | 46a3fce37e2e5dd86d807856a457f6a8643e0c4d | 2f44552beb48ba02f2e7e1f410ee264bfe94a04c | refs/heads/master | 2021-01-23T22:30:18.951608 | 2013-02-22T00:33:52 | 2013-02-22T00:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | [
"mitch@garnaat.com"
] | mitch@garnaat.com |
1e47b7d55a3b5b0dd7d1bb4083416b058727c5c6 | 2b40312991aee831532551de4524e9a6182ad2dd | /auto_otc_confirm_chk.py | 90344acd9554491c54c5542538618c0b02c4faf7 | [] | no_license | PyBack/AutoExcelData | 58d86b49eb8a9708bf455336741c479e6b31b437 | c1e33ffd6895ca610f3591672ca9c548a16f4a30 | refs/heads/master | 2021-06-06T10:57:40.514629 | 2020-07-01T06:37:06 | 2020-07-01T06:37:06 | 146,445,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,609 | py | # -*- coding: utf-8 =*-
from __future__ import print_function
import time
import datetime as dt
import logging
import getpass
import pandas as pd
import clipboard
import auto_helper as helper
import xlwings as xw
from handler_hnet import handle_hnet
from read_data_file import read_otc_termination_f... | [
"noreply@github.com"
] | PyBack.noreply@github.com |
ca9362d170a5e072bbd92f1841f0cc91721cf3e2 | 69954cf777a73db48a7efabe8ef8cf655e5c2864 | /NetworkLib.py | 83838037506da9a84f389a1140b094679cbc19e5 | [] | no_license | batuhannzorlu/Network-Project | e215dc6bf65c668b79af69d591427bd3a7a5191b | ec23b0f101528b00c2d953fa7ae1a33a3ee5a75f | refs/heads/main | 2023-07-09T11:54:21.394920 | 2021-08-08T17:32:56 | 2021-08-08T17:32:56 | 394,027,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | import paramiko
import time
import threading
class Switch:
def __init__( self,IP, EnableSecret='-1',SshHname='admin',SshPsswd='admin'):
self.IP = IP
self.EnableSecret = EnableSecret
self.SshHname = SshHname
self.SshPsswd = SshPsswd
class Router:
def __init__(self, IP, EnableSecret='-1'... | [
"noreply@github.com"
] | batuhannzorlu.noreply@github.com |
dac0cd123134ee900137c144d2a10237f3321f84 | 75b85d55fd3e88813e04d5798fc69d4f42b4b7b0 | /deprecated_nasa_r2_common/r2_control/nodes/r2_ready_pose_high.py | 13f64a6a301d90869675813d122e3875b9a33952 | [] | no_license | hspy/rosit | 9d4560f0cbf4f286c6e0cbc0a1555912dd74e9e1 | c5ba04b7e870ce807da61d4e23ba80a9404e5f2c | refs/heads/main | 2023-01-19T17:23:02.197874 | 2020-12-02T07:42:21 | 2020-12-02T07:42:21 | 309,916,632 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,308 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest('r2_control')
import rospy
import actionlib
import math
import random
from control_msgs.msg import *
from trajectory_msgs.msg import *
from sensor_msgs.msg import JointState
from copy import copy, deepcopy
TORAD = math.pi/180.0
TODEG = 1.0/TORAD
class r2Read... | [
"xkqrpdla@gmail.com"
] | xkqrpdla@gmail.com |
72883fcb5f9f5eef71f870b19b65d9612ea0ebf7 | 35fa64dbeb1dae686c703a5a96c33cc9df0dcf57 | /djangogirls/djangogirls/settings.py | 67c544a46171e2547d577016ad4049f0c17bc547 | [] | no_license | hanadevnyc/my-first-blog | acb545e0f01bc80880d95dcd794db8119c51a51b | 680b68c4e692fe2508f0e1a31b892c3f8a3ab7cf | refs/heads/master | 2021-01-10T11:35:18.417905 | 2016-02-27T20:37:06 | 2016-02-27T20:37:06 | 52,678,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | """
Django settings for djangogirls project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import o... | [
"hdickman@credibly.com"
] | hdickman@credibly.com |
8b151a74b1e4f2022e1042b3a62cfa99f382ba1b | f7f45300cb7ae8a2bb1c9db79f835a402d11da33 | /orig_py_files/ex_generators.py | 34b437f25bad8daa10c2ee0eadde5683b957cfac | [] | no_license | rob-kistner/modern-python | d025eb6c26a0c5c16846086f59625867c92909f6 | d23f7d2fb00f27255a11290deda8759346117a04 | refs/heads/master | 2021-05-25T22:50:40.063110 | 2020-09-02T20:06:08 | 2020-09-02T20:06:08 | 253,953,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from printutils import *
big_banner("""
Exercise: Week Generator
------------------------
""")
# creates generator when run
def week():
weekdays = ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
for day in weekdays:
yield day
weekgen = week()
# Above solutio... | [
"robkistner@mac.com"
] | robkistner@mac.com |
17989c3088b3000ff5653aa61f6730d7a718bb06 | 75258c8efa8e756234f7d32f729f1089e1667594 | /DawgCTF 2020/Coding/Miracle Mile/client0.py | aff5a4e950aab4fac76367a1705d9fa58bcc478f | [] | no_license | darkvoid32/CTF-writeups | 7c9452a74930d63c26246311fc9de89a568c65f1 | ea19afefa93b4cfb08f3d655bbf1065bb94cd6ac | refs/heads/master | 2021-04-05T05:53:43.055056 | 2021-03-07T15:18:52 | 2021-03-07T15:18:52 | 248,516,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | # -*- coding: utf-8 -*-
"""
Created for Spring 2020 CTF
Cryptography 0
10 Points
Welcome to my sanity check. You'll find this to be fairly easy.
The oracle is found at umbccd.io:13370, and your methods are:
flg - returns the flag
tst - returns the message after the : in "tst:..."
@author: pleoxconfusa
"... | [
"tangyetong666@gmail.com"
] | tangyetong666@gmail.com |
8bd8bd551bfb95270ba2e3e1d5d5e796dbca4b01 | 897d4052dcb89233ed20872ef14f0e41fdbbf6ae | /wallet/bin/versioneer.py | ec182a73c746d71bf471ac4b758a967ec044d482 | [
"MIT"
] | permissive | jvkatzman/tigoctm | 0f83f1eb7ddb9d107943f708651778b6cdf66b0b | 047e66b570ecc09bd2198229546cd9c605b20632 | refs/heads/master | 2020-04-02T01:29:48.856298 | 2018-10-20T01:22:05 | 2018-10-20T01:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,804 | py | #!/home/chriss/Sites/guld/guldWallet/wallet/bin/python3
"""versioneer.py
(like a rocketeer, but for versions)
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Version: 0.7+
This file helps distutils-based projects manage their version number by just
creating version-control ta... | [
"jkatzman@infsoftware.com"
] | jkatzman@infsoftware.com |
6ba85c1726abfdec9f1ff343711d9becab558a89 | c45ddd5464d8e9415b41543cbe6fb2d1593c3b23 | /exercicios_em_sala/exe05/exe05_client.py | 9a943859703d364324ff13589bea641d51d84610 | [] | no_license | msouto/20172-redes-2v-programacao-redes | 38eb59f269840ea7062af48816720e262e91d880 | 5da51989270ff1de35019c014f99ba0b007ef939 | refs/heads/master | 2021-01-19T16:02:39.679034 | 2017-12-18T20:27:58 | 2017-12-18T20:27:58 | 100,985,051 | 21 | 25 | null | 2017-11-20T20:14:49 | 2017-08-21T19:23:51 | Python | UTF-8 | Python | false | false | 280 | py | from jsonsocket import Client, Server
host = '127.0.0.1'
port = '8001'
# Client code:
client = Client()
client.connect(host, int(port)).send({'some_list': [123, 456]})
response = client.recv()
print(response)
# response now is {'data': {'some_list': [123, 456]}}
client.close()
| [
"moises.souto@gmail.com"
] | moises.souto@gmail.com |
7459710f51cc4fc67c81c661b1cdbb49a98825ab | 4e4171d9e94dd44b98b7010d86fd31b8a3c8c33e | /bb8/template.py | 43fd985415ae80cd75cb7d1068de791347c6026e | [] | no_license | thongdong7/bb8 | 1582d4f4bde06f17b95410c7ae67647189036744 | 2b771bd12584250456b1fc5b27ceeb37c55bbb14 | refs/heads/master | 2021-06-17T10:25:30.520708 | 2016-11-08T08:08:54 | 2016-11-08T08:08:54 | 59,622,849 | 0 | 0 | null | 2021-03-25T21:27:51 | 2016-05-25T02:01:40 | Python | UTF-8 | Python | false | false | 261 | py | from jinja2 import Template
class TemplateEngine(object):
def __init__(self):
self.params = {}
def load_params(self, params):
self.params.update(params)
def render(self, text):
return Template(text).render(**self.params)
| [
"thongdong7@gmail.com"
] | thongdong7@gmail.com |
59944bb8fa971396a0f7e49931ba6f9bf8ed1091 | 4b29c3e3c8a2cad5071a3fb2ea674253c6f0ef21 | /pycharm/digiin/case/TestLogin.py | 70e3880684b38a0a5d5a1bb7b50cd59768931663 | [] | no_license | yz9527-1/1YZ | a0303b00fd1c7f782b7e4219c52f9589dd3b27b7 | 5f843531d413202f4f4e48ed0c3d510db21f4396 | refs/heads/master | 2022-11-30T23:50:56.682852 | 2020-08-10T02:11:13 | 2020-08-10T02:11:13 | 286,354,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | #coding=utf-8
import ddt,data
from common.ExcelUtil import ExcelUtil
import time
import unittest
from selenium import webdriver
def self(args):
pass
class Case(object):
def __init__(self):
pass
def get_case(self):
"""
获取数据
得到有用的数据,并且使数据以邮箱地址、密码、预期结果定位、预期结果的顺序返回
... | [
"2447025220@qq.com"
] | 2447025220@qq.com |
2d24c2b1849fbb578426985672e634ca4e13e282 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/keyword/api/__init__.py | d86d7640ef2ab230105e5b576757bc5d81a011fe | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 151 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from baiduads.keyword.api.keyword_service import KeywordService
| [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
6bb7357e4c3c78a71da4398592fc78ff38a7ab5c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_09_14_14_36_41_642784.py | 986bff292e3d397ff9a597fd31a1ee3912e49175 | [] | 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 | 160 | py | import math
def calcula_gaussiana (x,mu,sigma) :
f1 = 1/(sigma*math.sqrt(2*math.pi))
f2 = math.exp((-0.5*((x-mu)/(sigma)**2))
y = f1*f2
return y | [
"you@example.com"
] | you@example.com |
91b306ecb2af69f0d6d781d57251266678f159f2 | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/syntaxnet/dragnn/python/file_diff_test.py | 9e9f1daa40a64ff9595724e30dbc95591ae299c2 | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 1,631 | 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 a... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
22e70becf6b691016982f2b828b13d8eeaf45564 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02571/s663642129.py | 60a84cc30f58c36b037db16bb95f49473b02d187 | [] | 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 | 314 | py |
def main():
s = input()
t = input()
min = int(1e9)
for i in range(len(s)-len(t)+1):
cnt = 0
for j in range(len(t)):
if s[i+j] != t[j]:
cnt += 1
if min > cnt:
min = cnt
print(min)
if __name__ == "__main__":
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a54c06f19a3583c531d27b86a0c4953aa5d59fd | 147ad0231450e0b2ad14a8da8cc515a52f6a425a | /venv/bin/pyrsa-encrypt | 4beb1da65ee6918a981d2ce17c2ef9186a773101 | [] | no_license | ayush-patel/PriceDrop-backend | 4950956a801c8172ba6b05effd4415e50c4d9cf1 | 8721fafd3061f15f606db3f642693dd195b309dc | refs/heads/master | 2021-01-19T08:13:19.704727 | 2017-04-08T06:15:09 | 2017-04-08T06:15:09 | 87,612,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/ayush/Documents/Development/PriceChange/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt())
| [
"ayushp3435@gmail.com"
] | ayushp3435@gmail.com | |
56c1035dc9a2ff3dd0e77b2fe3db2a127c3c1dbb | 59c5820be32dd498b6cda019b268c05db90a9ab3 | /soundscapes/soundscape_splitter.py | e49c6f52a7a5f781bf3e63a009ad153df941d0c9 | [
"Apache-2.0"
] | permissive | thesteve0/birdclef21 | 1d881035e9e90f95536e1382b796f25c11326438 | 9c8748edbd6febe88191736406d838787e3c7a71 | refs/heads/main | 2023-05-02T21:52:35.733043 | 2021-05-21T16:28:24 | 2021-05-21T16:28:24 | 357,412,620 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | import librosa
import librosa.display
import matplotlib.pyplot as plt
import numpy as np
import math
import os
def audioToSlicedSpecto(input_file, output_stub):
chunk_length_sec = 5
# Set some of the values we use for the Spectrogram
n_fft = 2048
n_mels = 256
hop_length = 256 # This is basically... | [
"steve.pousty@gmail.com"
] | steve.pousty@gmail.com |
d88d6f3bdc2be3adcfbba3b7fc2622208a6b2bb7 | 68db6583160de733d950ef0ff087c0f7e826cbd1 | /blog/blog/urls.py | 26461cb704b50676a605ade9a8210fa98f54d82a | [] | no_license | alllenmartin/django-tdd-project | 636975b9d1842554f81e7bcb41b5ff4bdac644b2 | f37f65c70f7b6e89b1d20598330259c57f05f0a0 | refs/heads/master | 2023-08-07T12:21:47.698974 | 2021-06-09T13:12:13 | 2021-06-09T13:12:13 | 270,918,823 | 1 | 0 | null | 2021-09-22T19:11:34 | 2020-06-09T06:14:54 | Python | UTF-8 | Python | false | false | 746 | py | """blog 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-based vi... | [
"allen@localhost.com"
] | allen@localhost.com |
92103479da3362929c2772f8d99d3221ed2b97d9 | 5c786fbc05076b9286669c1e844d50f4d474d899 | /Chapter_2/ReturnKthToLast.py | 9c6ab3a010024c6a5db10f05dddc9e735ef69afa | [] | no_license | LaloGarcia91/CrackingTheCodingInterview | 2e25b06153f4248a3e377b2a912b2052d7634d0d | cff401ff8a5bcb14c65e7f030d63dd80a22ac14e | refs/heads/master | 2022-11-24T09:26:43.917068 | 2020-07-26T04:01:51 | 2020-07-26T04:01:51 | 282,564,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from Chapter_2.LinkedList import *
llist = LinkedList()
llist.append(1)
llist.append(22)
llist.append(3)
llist.append(6)
llist.append(3)
llist.append(3)
llist.append(45)
llist.append(4)
llist.append(5)
llist.append(9)
llist.printKthToLast(llist, 4)
| [
"lalo.garcia.g91@gmail.com"
] | lalo.garcia.g91@gmail.com |
554dca6916ae0978656c3e216f1079c587f4d1ee | 6029273b26f70d408752adc4502bfb9dba662e67 | /switch/predictor.py | bf9a8557e50e967117722a5de1af1b1005d6f4f4 | [] | no_license | valzam/switch | 05cbb367dfb0efee112fb86f21eb6ed819768f5a | 92aa6e4f198001f7128d275a68be3e76984a7cae | refs/heads/master | 2022-12-25T16:33:23.928896 | 2019-10-21T21:54:28 | 2019-10-21T21:54:28 | 159,875,640 | 0 | 0 | null | 2022-12-08T01:19:44 | 2018-11-30T20:33:26 | Python | UTF-8 | Python | false | false | 1,212 | py | from .pb import machine_failure
from . import logging, get_timestamp
import datetime
import time
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class MachineFailurePredictor:
def __init__(self, *args, **kwargs):
self.a = 0.5
self.b = 0.5
self.c = 1
def predict(sel... | [
"valentin.zambelli@gmail.com"
] | valentin.zambelli@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.