blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d573fe5931b3f1063ba73647b84291d080f1c8a | 2ad32d08c66cc02f5a19b3a9e2fbb7c5c25ed99c | /wolf_alg/Data_structures_and_algorithms_py/floyd.py | e459f00b0c5d7f500a47fb6c30e2f2b617c4b4ac | [] | no_license | wqjzzgci/wolf-ai | 5038dee45748809d16482ff6ecac7a2ae00dcbcf | 42cb88a312e1137ad1c59c8a82fc3c15b3cd5092 | refs/heads/master | 2020-03-10T03:20:58.453867 | 2018-04-09T10:23:10 | 2018-04-09T10:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #coding=utf-8
def floyd(double_list, vertexs):
for k in xrange(1, vertexs + 1):
for i in xrange(1, vertexs + 1):
for j in xrange(1, vertexs + 1):
tmp = min_value if double_list[i][k] >= min_value or double_list[k][j] >= min_value else double_list[i][k] + double_list[k][j]
... | [
"jiexu@pptv.com"
] | jiexu@pptv.com |
fe9c7209dd4a7584a2c31ef2e4c6e61b8ed1d687 | 24e1026b75445e3b08abd3f095c0853992d0d01d | /archive/2021-22_semester1/dash_example/app.py | 6b7d39c34cf27981f2a0e3ae45fecc690960ed88 | [
"MIT"
] | permissive | gabrielecalvo/Language4Water | acc0e87f5e02dde553535c44b99aae9102562218 | 46dea366b4e3a05d9d1a1c8172baef39b799c7d0 | refs/heads/main | 2023-04-02T08:22:03.680932 | 2023-03-24T23:21:52 | 2023-03-24T23:21:52 | 208,568,316 | 4 | 1 | MIT | 2023-02-11T01:31:43 | 2019-09-15T09:07:17 | Jupyter Notebook | UTF-8 | Python | false | false | 1,458 | py | import dash
from dash import dcc, html, dash_table
from dash.dependencies import Input, Output, State
import plotly.express as px
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv')
df_2007 = df[df.year == 2007]
app = dash.Dash(__name__)
app.lay... | [
"gcalvo87@gmail.com"
] | gcalvo87@gmail.com |
1ec53324e7087ba13ccf9d00edbe8084baaa016d | 23f63d4f10be484a133e5c279ce6782cc2b24319 | /lesson_4/task_2.py | 61f3a590abf83e0b81980aa285e051c90fa188be | [] | no_license | maelizarova/python_geekbrains | d556dbb921ea16453ba4f9f6179668a1fc27a4c2 | 8abe352388b4db15b6fc23cba29c4d0861960cde | refs/heads/master | 2020-12-31T09:00:45.178100 | 2020-09-16T05:16:26 | 2020-09-16T05:16:26 | 238,964,383 | 0 | 0 | null | 2020-09-16T05:16:27 | 2020-02-07T15:56:21 | Python | UTF-8 | Python | false | false | 160 | py | my_list = [10, 2, 25, 30, 15, 50, 86, 1]
new_list = [my_list[ind + 1] for ind in range(len(my_list) - 1) if my_list[ind] < my_list[ind + 1]]
print(new_list)
| [
"noreply@github.com"
] | noreply@github.com |
e6874392c8edf6d718560d3a91ebeb226324e9b0 | bd7f75e3acebad3f08959223365f0dfc84990f1b | /voc_label_multiClass_with_poly_non_interest.py | b51db2f55b8ab681e3427a2cebd54e58a8be0e7f | [
"MIT"
] | permissive | nghigd10/PyScripts | b6fcfb83dc9fe61f8c4f9972775b4b8ac53ffe2e | df8a37696b92b452b108d74f69e027b6a004670a | refs/heads/master | 2023-01-03T05:41:37.280633 | 2020-10-30T10:15:21 | 2020-10-30T10:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,328 | py | import xml.etree.ElementTree as ET
import pickle
import os
import re
import sys
import shutil
import math
from os import listdir, getcwd
from os.path import join
import cv2
import numpy as np
car = ["saloon_car", "suv", "van", "pickup"]
other = ["shop_truck", "unknown"]
bicycle = ["bicycle", "motorcycle"]
targettypes... | [
"765305261@qq.com"
] | 765305261@qq.com |
7ba255fb78308d4323ab8b667f7225453d3e3e30 | ac0f92dea3f7c635a13c0821eb03416fa1b2c7df | /pylowiki/lib/activate.py | a2929615f525d4363d1ae04816ca0c426259b8c2 | [] | no_license | rskoenig/civinomics | adfaec9ba3bca0cbb9cf3f4c0f412defa4807225 | 74048c1c1446c15b0a10cd8acafcf2af0024b834 | refs/heads/master | 2020-04-16T01:57:19.681388 | 2015-01-12T22:06:21 | 2015-01-12T22:06:21 | 29,212,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
import logging
from pylons.controllers.util import redirect
from pylons import session, config, request, tmpl_context as c
import helpers as h
from pylowiki.model import get_user_by_email, commit
from pylowiki.lib.mail import send
log = logging.getLogger(__name__)
"""Sets the activation stat... | [
"drewmoore@ucsc.edu"
] | drewmoore@ucsc.edu |
28eda83fbf073b8f4f4a39bf19744af227895eb7 | 3b7f74d5abb6212399ef9219f44f4d64198f2909 | /Programs/diffCS.py | d29bdf4ead39b0954ca3698ff456b168a3ccfe41 | [] | no_license | seanbsm/FYS4560_final | 02926c134f4d4273c2f59767067f1d4b3d13bf26 | 04c5048e7551aa6d64ca1b35708027aafbd312a1 | refs/heads/master | 2021-06-01T09:35:13.431036 | 2016-06-07T13:23:52 | 2016-06-07T13:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py |
from math import sqrt, cos, sin, pi
import numpy as np
import matplotlib.pyplot as plt
#SM free parameters
alpha = 1/137. #n.u.
mZ = 91.1875 #[GeV]
WSin2Ang = 0.23126
WCos2Ang = 0.76874
#Sm dependant parameters
s = 40000 #[GeV]
#taken from p.423 Thomson
Ve = Vt = -0.04
Ae = At = -0.5
fullWidth = 2.4952... | [
"Guild_wars100@hotmail.com"
] | Guild_wars100@hotmail.com |
7966f534ec77a570dd3e458d288196e4076983ae | 4c01b40d11a09b2828f32369be010e8967dda38c | /meiduo/apps/payments/urls.py | 48fd62791b2c43257c905723817461e5b110cc12 | [] | no_license | tymon-fan/meiduo_site | 18b1164f13abb4cab96e0113c0e01da87e080701 | 8cc2f74d0b849683072f33ee9cd039e0696e6cd4 | refs/heads/master | 2022-09-18T15:57:23.534029 | 2018-11-12T13:13:51 | 2018-11-12T13:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.conf.urls import url
from . import views
urlpatterns =[
url("^orders/(?P<order_id>\d+)/payment/$",views.PaymentView.as_view()),
url('^payment/status/$',views.PaymentStatusView.as_view())
] | [
"tim_fans@163.com"
] | tim_fans@163.com |
96003468cb14629caa91f495f005e6fbf4aeed5a | 0bcd719aa330c5c73d1a074e50b247d5fcc2c2cb | /api/urls.py | 9c634ef97a4b9ff471c8fbf887f646bbbbd3180e | [] | no_license | fanceenyoung/markone_server | 98216ead4bd4f3220e6e8afe579589de6fb77576 | 28ae6daa0b465e96164a4c5cdb8027e85f9711d4 | refs/heads/master | 2020-03-21T18:28:05.523124 | 2018-08-27T16:27:28 | 2018-08-27T16:27:28 | 138,893,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url, include
from api.views import (LocalUrlView, DashboardView)
urlpatterns = [
url(r'^local_url/$', LocalUrlView.as_view(), name='local_url'),
url(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
url(r'^users/', include('users.urls')),
... | [
"zhangtianyi1234@126.com"
] | zhangtianyi1234@126.com |
354af91557abc5587e4c6a68abaf64e39f6c2d67 | 6e64eb9a4353dc6bd89c649d27bb20aa61173d7d | /core/products/views/product/views.py | cd1644f54713f542333f36d4ef3078e2019fa4f8 | [] | no_license | RoodrigoRoot/deploy_django | 0d4b76ae41bab907d5d69b4e7c34d5151f9827bd | 593b4613f1c224e236ac7f798e771e447ada677d | refs/heads/master | 2022-11-28T05:39:37.350224 | 2020-03-19T19:42:04 | 2020-03-19T19:42:04 | 248,580,750 | 0 | 0 | null | 2022-11-22T03:38:31 | 2020-03-19T18:50:40 | JavaScript | UTF-8 | Python | false | false | 2,418 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from core.products.forms import ProductForm
from core.prod... | [
"roodrigoroot@gmail.com"
] | roodrigoroot@gmail.com |
69d54c98b4a0289f3db3282dd3dddc955731a36b | 79a3b2c5d743a88751e8678e3f307ce5b74b1333 | /project1/RegressionMethods.py | 3caf1c131292ee3526b4629f277575c4b63bc497 | [] | no_license | ejhusom/FYS-STK4155 | 7fcaf51eb3cfa8c191a8c293bb5729c9e52f715e | 825d0f8d8b814682494a0c560295bdc23ca3cded | refs/heads/master | 2020-05-30T08:51:40.660182 | 2019-12-14T16:56:53 | 2019-12-14T16:56:53 | 189,627,217 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | import numpy as np
import sklearn.linear_model as skl
class RegressionMethods:
"""
Class implementation of the OLS, Ridge and Lasso regression methods.
Initiate with a specification of which method to use, and hyperparameter alpha for Ridge and Lasso.
The OLS and Ridge methods find the analytical bet... | [
"ejlgkvam@online.no"
] | ejlgkvam@online.no |
ef9a4ea8eed4603b330ac5ca72ae06d678c5c239 | 1bc774f00304214d84825d2a33921bfe29cbe613 | /fetch_tweets.py | 4499358470379696f54ebd3e1cb91e9b2479683c | [] | no_license | felizxia/Tweets_database | 83e0e462fe561c60490e2e5ef1a7167445039422 | e989c3aefdfe716f6304c4e87a3d3df876feefb3 | refs/heads/master | 2021-01-21T14:49:45.644329 | 2017-06-25T07:38:58 | 2017-06-25T07:38:58 | 95,345,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | import tweepy
import sqlite3
from tweepy import OAuthHandler
import json
CONSUMER_KEY = 'kbm9lBjjsG4vzhvruZKSzriD1' # enter your consumer key
CONSUMER_SECRET = 'm4UF9oZcBEDLjpWFdiwNwDMFrFQnWjMTIW0bpGUwP8Qzn0GnEx' # enter your consumer secret
ACCESS_TOKEN = '778631251934769152-d1GudDjfHjwpXV6X827PmtAByZSihcr' #... | [
"noreply@github.com"
] | noreply@github.com |
dcee7e1d5f1bbca723313fd44bf237ca98866529 | a557b643ac7980b49bb25d52e528c556ad4ef101 | /postwall/main/views.py | 086f4b8ab8cb4047323c486223ebdb72ef4dc923 | [] | no_license | dhruv-shakya/self-projects | 555cd9d09ba7abd7b8707163dba836735f6d2dc1 | 098d1e4da9c2ad6f9fdfd9377a9684bd5ff54fba | refs/heads/main | 2023-07-10T22:54:58.567338 | 2021-08-18T10:50:21 | 2021-08-18T10:50:21 | 397,390,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | import json
from django.shortcuts import render, redirect
from django.http import HttpResponse
from . import models
from .forms import *
from django.contrib.auth.models import User, auth
from django.contrib import messages
from datetime import datetime
def dashboard(request):
login = request.user.is_authenticated
... | [
"sdhruvkant1410@gmail.com"
] | sdhruvkant1410@gmail.com |
86efd66ff50c3c1d885902473b23dc4219c140ef | 636ba2700eaf3a151b73144b510f38c75ab1919d | /keras/keras41_cnn3_cancer.py | bcc17705355071195af58fd2c38ee42f0dba3b2c | [] | no_license | Taerimmm/ML | 17997f388e18c28dfd9de83af98a6d4bebe7e1f0 | 6147cede81ebcc95f21adebf75731fbbb11edfab | refs/heads/master | 2023-06-10T14:26:45.335219 | 2021-07-05T15:30:47 | 2021-07-05T15:30:47 | 324,874,959 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # CNN으로 구성
# 2차원을 4차원으로 늘여서 하시오.
import numpy as np
# 1. 데이터
from sklearn.datasets import load_breast_cancer
dataset = load_breast_cancer()
x = dataset.data
y = dataset.target
print(x.shape) # (569, 30)
print(y.shape) # (569,)
from tensorflow.keras.utils import to_categorical
y = to_categor... | [
"noreply@github.com"
] | noreply@github.com |
43c07454753909afed5dc71cb7ef52426b278069 | b34d7c5f810287ebaab09c58754bc59f03589ac3 | /ltc/controller/migrations/0005_auto_20220316_1624.py | df6da7a23d585093998fc8bdab84b883a059ef11 | [
"MIT"
] | permissive | r1990v/JMeter-Control-Center | 11d00276a35a502f91f05bf2adf5c88bf56fbfed | 6bfd13f008fce42c78badcb9d2579f069b064fe9 | refs/heads/master | 2023-01-07T12:40:43.370688 | 2022-09-27T11:05:56 | 2022-09-27T11:05:56 | 162,960,150 | 0 | 0 | null | 2018-12-24T06:53:26 | 2018-12-24T06:53:26 | null | UTF-8 | Python | false | false | 567 | py | # Generated by Django 2.2 on 2022-03-16 15:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('controller', '0004_auto_20210608_1506'),
]
operations = [
migrations.DeleteModel(
name='Proxy',
),
migrations.RemoveField(... | [
"german.syomin@innogames.com"
] | german.syomin@innogames.com |
071769e3065363d357c8cf2a27a15878d8f5bbbc | badc556efd2d66f087fa8993b09b1efa78ba6d25 | /stack_overflow/ret2libc/32bit/homework/exp_home.py | 4317c3b61762b2816a5ce36683b3ce265cd511b3 | [] | no_license | pwnkk/CTF-training | bacae8741db086e399dc0b1495f2451bc43d5354 | 4231a885447b3655b2a04d9d9356b94af3540c76 | refs/heads/master | 2020-08-10T22:38:10.048441 | 2019-10-31T03:31:53 | 2019-10-31T03:31:53 | 214,435,270 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from pwn import *
import sys
debug = 1
arch_64 = 0
exe = "./home"
r = lambda x:p.recv(x)
ru = lambda x:p.recvuntil(x)
rud = lambda x:p.recvuntil(x,drop=True)
rul = lambda x:p.recvline()
sd = lambda x:p.send(x)
sl = lambda x:p.sendline(x)
sea = lambda x:p.sendafter(x)
sela... | [
"enoughdream@163.com"
] | enoughdream@163.com |
77033e72c919326263997d93270b9b8b9a6a2b4a | 5fd7cc980597beeabb2f0c4332f8e29c8480b63e | /mycode/3_string/str_test.py | eed48e586f513413bf4fb58d89d50c9e7bcf0031 | [] | no_license | Jaewoo12/python_basic | a5dc18ccdb748e981a6da19237ad00f0ac943fe0 | b9336ee3c4a610399a7250c0a7a5d91f07c85d6b | refs/heads/master | 2023-02-09T12:14:03.391352 | 2021-01-05T02:46:16 | 2021-01-05T02:46:16 | 326,850,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | '''
문자열 관련 내용들
'''
# escape 문자
greet = 'hello '* 4 + '\n'
end = '\tgood \'bye\' !!'
end2 = "\t Good 'morning' ??"
print(greet + end + end2)
# bool 타입과 str 타입
is_flag = True
my_str = 'true'
my_str1 = 'false'
print(type(is_flag), type(my_str))
if is_flag:
print(my_str)
else:
print(my_str1)
# 문자열 인덱스(오프셋)
greeti... | [
"jaewoo.jeongg@gmail.com"
] | jaewoo.jeongg@gmail.com |
5bb96f223b4ce105e3385b6ae17784e688c2bc5d | 10c708b194dbb412812b2b2308a5daaa8e43095b | /model/torch_martinez.py | 89ecfd1cb950a80c921af329b3ffe967c8921e32 | [
"MIT"
] | permissive | miaowu99/depthpose | 4121c0a8ba0fc6708088dfb5ef5721f07472ea7b | e40f46e018dc0feea095634dcbde5b07fc3e1305 | refs/heads/master | 2020-05-09T22:29:15.583680 | 2019-01-25T12:29:07 | 2019-01-25T12:34:40 | 181,473,224 | 2 | 0 | null | 2019-04-15T11:30:57 | 2019-04-15T11:30:57 | null | UTF-8 | Python | false | false | 2,299 | py | import torch.nn as nn
class DenseBlock(nn.Module):
def __init__(self, dense_size, n_layers, activation, dropout, residual_enabled,
batchnorm_enabled, normclip_enabled, name=None):
super(DenseBlock, self).__init__()
assert residual_enabled, "residual_enabled==False is not im... | [
"vegesm@gmail.com"
] | vegesm@gmail.com |
67a1d6a0454f093b5796251f877f4a20defa9f7f | dffc544d29bce01eb6bd758e22352761a0559533 | /fca/fca/settings.py | 5f9166b6684e5802c2e55857e1fefb1429b5d940 | [] | no_license | ajmerisahil/FlattenCOVID-19Aid | fa51bd3b045fa20e5c2b70937c0c7a9375fea529 | 964d2b617435837f21281e3a5e7bfc481519e0c1 | refs/heads/master | 2023-04-11T12:02:05.853937 | 2021-04-12T05:46:42 | 2021-04-12T05:46:42 | 348,583,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | """
Django settings for fca project.
Generated by 'django-admin startproject' using Django 3.1.7.
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/
"""
import os
from pa... | [
"sahil.ms1113@gmail.com"
] | sahil.ms1113@gmail.com |
7df713c6d27a30122bb093277d9212602c441695 | 6a0b9581195400a93027aca881b1bc687401913d | /hackerrank-python/contests/world_cup/world_cup_team_formation.py | e702e9c67af3d7c45e54f7514b371704816cfd93 | [] | no_license | 108krohan/codor | 1d7ff503106ad6b2c18bc202d4c88f296600f28e | 2e485607080f919f273aa6c8c0d9cb3516cf4443 | refs/heads/master | 2021-04-28T21:13:34.604020 | 2018-02-18T11:55:26 | 2018-02-18T11:55:26 | 86,153,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | """world_cup_team_formation at hackerrank.com"""
lst = [int(raw_input()) for _ in xrange(10)]
lst.sort(reverse = True)
print lst[0] + lst[2] + lst[4]
"""
take sum of the first odd three numbers sorted in reverse order.
"""
| [
"108krohan@gmail.com"
] | 108krohan@gmail.com |
0be0942de5813826695fa4f6b6dbc4a182a87df3 | 9ca20f6bcc25a2806fd6e308fb6664352fee7dec | /Ex1.py | 650a27860698fa0700ba64a226885817a4d61919 | [] | no_license | gshen2/tkinter_stuff | b0bf5cf1788bf91b90752959804c86c6cea5a299 | ffa243d2333ee5c49a0118f0a3043d612c2f2f16 | refs/heads/master | 2023-03-08T05:05:14.451049 | 2021-02-27T06:23:36 | 2021-02-27T06:23:36 | 342,472,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | x=11
y=2
print("3%d%d" % (x, y))
| [
"gshen2@uh.edu"
] | gshen2@uh.edu |
996800500c74f15861191e0d0013276f1dbb2768 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/base/test_ops.py | 2693eb12dda711c9a9025040a68ec054f6b7c9e1 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 33,362 | py | from datetime import datetime, timedelta
from io import StringIO
import sys
import numpy as np
import pytest
from pandas._libs.tslib import iNaT
from pandas.compat import PYPY
from pandas.compat.numpy import np_array_datetime64_compat
from pandas.core.dtypes.common import (
is_datetime64_dtype,
is_datetime64... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
07150183016c2400b9a771eb89026b2b9180a25d | afb11ea4486b44ec858cc6d560e2359ab713e350 | /face_recognition/examples/facerec_from_webcam_faster.py | fa5e1ffcfb06b408ecd4e7df440462dfa45dd761 | [
"MIT"
] | permissive | kalkaprasad/face-recognition-using-python | 57dac40aac54d7fb3135b2944111654600d95a4c | 80758219839eeea1747f179c1845e8dab4d7f6ec | refs/heads/master | 2023-01-09T09:14:04.222663 | 2020-01-21T20:17:27 | 2020-01-21T20:17:27 | 235,430,881 | 1 | 0 | null | 2022-12-26T20:31:52 | 2020-01-21T20:03:45 | Python | UTF-8 | Python | false | false | 4,067 | py | import face_recognition_models
import cv2
import numpy as np
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to make things run a lot faster:
# 1. Process each video frame at 1/4 resolu... | [
"noreply@github.com"
] | noreply@github.com |
5636ec2f4bd6f5145d337f7d81c8b49c8a66ed42 | bf6931d761630b5653519b44167275d11c1f7532 | /ForFun/test/linkedList_unittest.py | 0f302075d948e95199380c1ff1e08036184ba456 | [] | no_license | manofdale/pythonProgramming | 8d1aabe8f636c292c18734dc9b6f540109cd7722 | f685ae33e38d2956a9abc0d01a907789f8564a31 | refs/heads/master | 2020-06-06T20:43:36.500419 | 2015-11-19T13:44:20 | 2015-11-19T13:44:20 | 42,064,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | '''
Created on Jul 26, 2015
@author: agp
'''
import unittest
from programmingPuzzles.linkedList import LinkedList
class Test(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
'''def testInit(self):
linked=LinkedList([0]);
#linked.printContents()
... | [
"agplt@hotmail.com"
] | agplt@hotmail.com |
fe1fd303ebe11d72f5f2d9b983f2f62259734849 | 41895944c76504bf32c959da40198cee8819a01c | /q47.py | 3ca165cd7aa9b3044c58b17694b29425f9a70e5a | [] | no_license | utoooo/math_puzzle | 93850b72d39e2a7e90e6619ff36efc5d9db97ce7 | eb28b090908f22a942498150152775c446bc1fcc | refs/heads/master | 2022-10-24T02:02:50.703182 | 2020-06-02T09:00:16 | 2020-06-02T09:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Q47
"""
import itertools
N = 4
MEMO = {}
for pattern in itertools.product([1, 0], repeat=N*N):
count = []
for col in range(N):
count_row, count_col = 0, 0
for row in range(N):
count_row += pattern[col+row*N]
count_col... | [
"45305605+y-tetsu@users.noreply.github.com"
] | 45305605+y-tetsu@users.noreply.github.com |
2426d6f721f250035982853d00b43b3b488861af | be15b2ec2bcbcc782d9e45648e8ffcccdc64cc8c | /Xcao19_yjhang_zy0105/policeStation.py | 0fb955aa5f516f6a5070ddf100b57924d8327f09 | [] | no_license | maximega/course-2019-spr-proj | 71d67d1a48bc21fb6120e3689bc12654625970ff | 90284cf3debbac36eead07b8d2339cdd191b86cf | refs/heads/master | 2020-04-22T18:06:00.856289 | 2019-05-01T22:00:49 | 2019-05-01T22:00:49 | 170,565,563 | 2 | 0 | null | 2019-04-30T02:51:47 | 2019-02-13T19:21:24 | HTML | UTF-8 | Python | false | false | 3,300 | py | import urllib.request
import json
import dml
import prov.model
import datetime
import uuid
class policeStation(dml.Algorithm):
contributor = 'Jinghang_Yuan'
reads = []
writes = ['Jinghang_Yuan.policeStation']
@staticmethod
def execute(trial=False):
startTime = datetime.datetime.now()
... | [
"yangjh95@yeah.net"
] | yangjh95@yeah.net |
92da769247f3fb50dd79a9b459fb65f75b6b22dc | 9732a831009d04fd5c8046f484f05a9352f91a4e | /Development/Retrieval/main.py | b8645b1ed7fd6957fdbab95813eade6ad0ab64a8 | [] | no_license | shaoqiming1028/Shopping-AI | 548d230a536da46aa6dc47e742cb9cc45589540b | cc8f48b967c3fd08544ecd691c49fb970d3cff56 | refs/heads/master | 2023-01-11T10:12:13.575364 | 2019-07-25T12:01:23 | 2019-07-25T12:01:23 | 160,287,983 | 4 | 1 | null | 2023-01-11T00:55:59 | 2018-12-04T03:01:39 | Java | UTF-8 | Python | false | false | 6,226 | py | import os
import argparse
import torch
import torch.optim as optim
from PIL import Image
from tensorboardX import SummaryWriter
from model import *
from utils import *
from DB import Database
import csv
import sys
def hashing_loss(b, cls, m, alpha):
"""
compute hashing loss
automatically consider all n^2... | [
"shaoqiming@gmail.com"
] | shaoqiming@gmail.com |
2531ce9aeb1858b5483a5190d9bb62e7c5ae2207 | d878f3f84f67b49879b6b26f2349efbfb3026df9 | /MEF/main.py | 532eecd02c2f2e489ec4c08515c205e3e4e4bf0d | [] | no_license | AndreevP/MEML | b6266dcc9db29cf2ae9c3a37dab05870d89af50b | 3f7b3a289107f6b7dd71ee5a3b6ca93adaacfeac | refs/heads/main | 2023-02-01T19:30:28.386976 | 2020-12-19T19:43:12 | 2020-12-19T19:43:12 | 321,376,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,254 | py | import os
import json
import time
import datetime
import argparse
import numpy as np
#import sys
#sys.path.append("../")
import torch
import torch.optim
import torchvision
from torchvision import datasets, transforms
from .optim.adam import Adam
from .optim.adamax import Adamax
from .models.nets import Model
from .... | [
"andreev.pk@phystech.edu"
] | andreev.pk@phystech.edu |
fb85fc48364053745fd714bdcc66f59589f8a5e5 | 0853b6dd32955e9261362d3204cdb705343f62c6 | /[Tree]LevelSum.py | 854226618aece9478c9432dfd0bbd203931016fe | [] | no_license | Nhatcao99/AlgorithmWpython | 993ca5de48776488293164c687ab73dd9536c898 | d2f9ab079eee3164008002f2ff077dca525e3e55 | refs/heads/master | 2020-12-07T01:28:37.461650 | 2020-03-06T13:18:28 | 2020-03-06T13:18:28 | 232,601,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | def maxLevelSum(self, root: TreeNode) -> int:
dic = {} # depth and value
def DFS(root: TreeNode, depth: int):
if root is not None:
if depth not in dic:
dic[depth] = 0
dic[depth] += root.val
DFS(root.left, depth + 1)
DFS(root.right, depth ... | [
"caominhnhat99@gmail.com"
] | caominhnhat99@gmail.com |
e26833183e66a8213241f6e0351fc7da369a112b | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /aloe/aloe/common/plot_2d.py | b295d55c7794a134eb4930874648ecfc1df9b8c4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,275 | py | # coding=utf-8
# Copyright 2023 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4f924c45e2943eb17d60d4755812979f08366dac | f9d0f850a63ba69d0a4c86e984c24d7b8d9c01f9 | /main.py | c512b158124068d93684bd57c207befbb8a0d97b | [] | no_license | china-shang/hddns | 3effe1f4bfc242f25a466a5cc168ac53f1fe5d41 | e6a27d493d17b10fc4a3af00273f02863d55fa10 | refs/heads/master | 2023-02-17T20:12:03.993372 | 2023-02-12T06:41:39 | 2023-02-12T06:41:39 | 206,747,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,887 | py | # coding=utf-8
import requests
from aiohttp import ClientSession, ClientResponse, ClientRequest
from requests import Response, Request
from apig_sdk import signer
import asyncio
import sys
import json
from socket import socket, AF_INET, SOCK_DGRAM
import argparse
import os
Key = '----in file'
Secret = ''
EndPoint =... | [
"china-shang@users.noreply.github.com"
] | china-shang@users.noreply.github.com |
b612e949fa09b9d5342ab4e03ed8c38a3bc59ff8 | 599a00d496ab38a659fd578a40a1a5abe641b036 | /src/sql_statements.py | 28ca941c092cee13898714e95d6ecfe26fc0552d | [
"MIT"
] | permissive | sbcharr/mysql-to-s3 | a929ee4a52896f177445fb2526b0dbe6263adaca | b73e2fb00ca210aa0f9e9ad6100804bc9ad9c1b4 | refs/heads/master | 2021-10-11T11:42:16.985759 | 2019-01-25T13:04:44 | 2019-01-25T13:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import sys
sql_statements = {"sql_db_bakery_cakes": "select cake_id, flavor from cakes;",
"sql_db_bakery_customers": "select customer_id, first_name, last_name, phone, street_address, city, zip_code, referrer_id from customers;",
"sql_db_bakery_orders": "select order_id, cake_id, cu... | [
"subhashish2012@gmail.com"
] | subhashish2012@gmail.com |
b53fe631fbbe3bae49798ea486ad1b37cf7a89b5 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002589.py | e50690dda9b20734f0885f36379c31fb7774fe82 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
790de665253a07cb134572ae39e081a44f3f550a | 78f69f065a6b6f2195e0e73f82cbc4fb5a5591a4 | /samples/payments/authorize_payments/basic_payment_authorization.py | 9ba0febff752e7988c88221321baa4d005abdf0f | [] | no_license | khaaldrogo/cybersource-rest-samples-python | f9e71875d84c7bb30cd3248e3862e3329c4e822c | 1732788f54dc37a4d1821896fb4489849002cfbf | refs/heads/master | 2020-03-31T17:00:02.710078 | 2018-10-17T12:22:57 | 2018-10-17T12:22:57 | 152,400,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from cybersource_rest_client_python import *
import json
def basic_payment_authorization():
try:
request = CreatePaymentRequest()
client_reference = V2paymentsClientReferenceInformation()
client_reference._code = "1234567890"
request.client_reference_information = client_reference.... | [
"sjagarag@visa.com"
] | sjagarag@visa.com |
b25ad99d54465169e298d7e083d8bdab4876bdd9 | bc035331453d2f10e6179700ba74702158f28abf | /week1_2/storage/exceptions.py | 6ce04351444f3c784d6488edafd7fa99d4f4735b | [] | no_license | NikolaPavlov/Hack_Bulgaria_Django | ade6813ae19d7fb7f00f74b6ec800d5927313f12 | 74ee14ddae885e0ea457ef89cee361b9dc34206c | refs/heads/master | 2021-01-17T14:05:40.444361 | 2017-05-19T19:12:32 | 2017-05-19T19:12:32 | 83,479,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | class UserDoesNotExist(Exception):
pass
| [
"nikola.pavlov1955@gmail.com"
] | nikola.pavlov1955@gmail.com |
af98085c15c437d8af8e20c6ec1fa2def9b88ede | dd41deff08b1b4b5c8bb397366e5ea0dee9ac31d | /Home/Median/median.py | 4c5325d7b594a35674425fe82379ec33998c076c | [] | no_license | GM3D/CheckIO | d73107a069ae6cb679587bc29bd66c7a21c7c4fd | a15b757c48154b11b8a506ce4874bab040b2aeec | refs/heads/master | 2021-01-16T00:22:11.250877 | 2014-02-22T18:11:35 | 2014-02-22T18:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | def checkio(data):
l = sorted(data)
q, r = divmod(len(l), 2)
return float(l[q - 1 + r] + l[q]) / 2.0
if __name__ == '__main__':
print checkio([1, 2, 3, 4, 5])
print checkio([3, 1, 2, 5, 3])
print checkio([1, 300, 2, 200, 1])
print checkio([3, 6, 20, 99, 10, 15])
assert checkio([1, 2, 3... | [
"gmomma940@gmail.com"
] | gmomma940@gmail.com |
ae5649ae75bb354ebf0886b22cefe2a95f5c79a8 | 45ea3b2df542477ea0ced5b96f1c8b5459ebc401 | /dicttools.py | c36648fcd52f934cec59ad3de7667db9fdead770 | [] | no_license | FedesMM/python_morsels | b41e429c9c5c30502ed7c5181c4b7cc07b724055 | bba3ac84b6bc5fe9f3905a166508d4db527a847f | refs/heads/master | 2023-02-13T15:44:53.217649 | 2021-01-04T14:45:12 | 2021-01-04T14:45:12 | 286,997,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | def pluck_one(data, keys_path, sep='.', default=KeyError, **rest):
keys_path = keys_path.split(sep)
print(f"keys_path= {keys_path}")
value = data
print(f"value={value}")
for key in keys_path:
print(f"\nkey={key}")
try:
value = value[key]
print(f"\nvalue={valu... | [
"fmatonte@gmail.com"
] | fmatonte@gmail.com |
0e70015803a4d7152fc8cc490ee13015b51cb679 | 279cc7fc01538d1f1f103ba792ab2469ea8a3840 | /main.py | 56a729630190a8519ce0f9d391706da069b7ecb3 | [
"MIT"
] | permissive | bot-zz/roc | c3d3986bed4ac41d0aba6cd941ca3d387f19cf51 | 4dc80b2c885ba867b9dd2bbe5e4c2caee3ab275c | refs/heads/master | 2022-12-10T12:55:17.585988 | 2020-08-23T16:52:38 | 2020-08-23T16:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from classes.AttackBarbarians import AttackBarbarians
attack = AttackBarbarians(level=36)
while True:
attack.start()
| [
"smallfish06@cau.ac.kr"
] | smallfish06@cau.ac.kr |
1e533cf8627b494ddf4a1b8dbecb2ecf6c3953a0 | 7d4aeb62af932f46607a21c2b38f6ae3fadf53a3 | /manage.py | 41369088cdd8e5e20d1f767d859d29bfb623ba66 | [] | no_license | crysolite-1997/my-first-blog | a65cfbeeae283b66253be7ccf2ace39d6baead92 | a4ce16246b35ff6ca25e1c0fa378766be0f7fab1 | refs/heads/master | 2020-08-07T23:46:44.267220 | 2019-10-08T12:30:13 | 2019-10-08T12:30:13 | 213,628,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangogirlsdemo.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"crysoliteangeline@jmangroup.com"
] | crysoliteangeline@jmangroup.com |
1b738b1f4a9f0e4d538166114b1a6f0ed0888a56 | 5466431e7f9e9f3ae6b1b3650c0ab00ce68c79b4 | /thresher/algs/sgd/compute.py | d871078458de794554faa660b7cbad7c9f8dae21 | [
"MIT"
] | permissive | oskar-j/thresher | 5c8c5c62cb92c27562dfec4a7e3918a9bf6e367b | 91724ce584c7b1ed4425a8cf39258406a08a8312 | refs/heads/main | 2022-12-31T06:20:41.595569 | 2020-10-17T18:09:18 | 2020-10-17T18:09:18 | 302,882,794 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | import numpy as np
from thresher.algs.common.stochastic import stochastic_process
from thresher.utils import get_or_default
num_of_iters_default = 200
stop_thresh_default = 0.001
alpha_default = 0.01
def sgd_solver(eval_func, starting_point, gradient, verbose, num_of_iters, stop_thresh, alpha):
previous_eval_po... | [
"oskar.jarczyk@gmail.com"
] | oskar.jarczyk@gmail.com |
568fad17206fd645defb2cc4276ae1fc93ba66bc | 06a2a44e2de6f9f6ac815762468ba63b82cd00e1 | /apps/account/context_processors.py | 932c6e47b78fb03f1996728b8cd4ab0d9ddf9feb | [] | no_license | hqpr/marketcsgo | 153e0f3b180e6cc5eb771ba60e7cf5b6e7f31929 | dec9cdf1cafb836f5303a773ad77cf4824665722 | refs/heads/master | 2021-01-10T10:08:33.323776 | 2019-03-17T10:13:40 | 2019-03-17T10:13:40 | 48,641,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from apps.account.models import UserProfile
def check_profile(request):
if request.user.is_authenticated():
try:
UserProfile.objects.get(user=request.user)
return {'valid': 1}
except UserProfile.DoesNotExist:
return {'valid': 0, 'user_id': request.user.id}
re... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
ff182f9b100200830046a02c716aa8402cbfcb4a | e0ae2daaaf0db90a04b3509ed914a62961bbb7e4 | /lemmatizer.py | 88d541bbcabdba321edf6d79692a240e432c1bcc | [
"MIT"
] | permissive | ggustilo/state_of_the_union_topic_analysis | 4586ede32c21eacb24c7ffb4c0bfd1db2fcd15f8 | ae4a7d3b50e0666ffc8ab15a1d197f63091d79e0 | refs/heads/master | 2021-04-15T22:44:58.162426 | 2020-03-23T01:28:14 | 2020-03-23T01:28:14 | 249,306,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import nltk
import string
import re
def remove_punct(text):
text_nopunct = "".join([char for char in text if char not in string.punctuation])
return text_nopunct
def tokenize(text):
tokens = re.split('\W+', text)
return tokens
def remove_stopwords(tokenized_list):
stopword = nltk.cor... | [
"noreply@github.com"
] | noreply@github.com |
6f5ad1837126c4dcff4b1725c14f978b32355d2e | bd0eb403faee83c8a0ed04b43a88dcfc2893855a | /cpf.py | 859ebb9b87a4cdbcd241251886b9f6ccc1ccfb95 | [] | no_license | isaiascleiton/Verificador-de-CPF | 4996f197fe961ebbe8974207622143b318577911 | b6e58150e9df81187e3c9071c1615b0f6d995c6a | refs/heads/main | 2023-02-12T07:44:39.405830 | 2021-01-13T19:46:07 | 2021-01-13T19:46:07 | 329,414,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | print("="*30)
print("VERIFICADOR DE CPF")
print("="*30)
print("\033[31mEX : 111.222.333-44\033[m")
print("\033[31mOBS: Digite com os '.' e '-' \033[m")
cpf = str(input("Digite o cpf que deseja ser analisado: ")).strip()
n1 = int(cpf[0])
n2 = int(cpf[1])
n3 = int(cpf[2])
n4 = int(cpf[4])
n5 = int(cpf[5])
n6 = int(cpf[6... | [
"isaiascbsouza@gmail.com"
] | isaiascbsouza@gmail.com |
35eb6fc30d3e990f126f51ee12c62958116da548 | 3554cea07a654ce1f60f2b011b34eeec340382cb | /models/SIIS_Kernel.py | a3625fbdc16dcd7ddedac2fb3d2c4bfaaabb2cae | [] | no_license | sunstarchan/SIINet | 5fee6c14a23289c13c150288488d3477eb90bdeb | 417bcae232c88d9bc5183a27efd223fdb5d738ec | refs/heads/master | 2022-11-10T03:40:57.924272 | 2020-06-23T11:15:58 | 2020-06-23T11:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,569 | py | '''
SIIS
'''
import torch
from torch import nn
from torch.nn import functional as F
import math
class SegRNNCell(nn.Module):
'''ConvRNN Cell for segmentation.
Args:
dim - The number of features in the input tensor.
ks - The size of conv kernel.
input: [N,dim,width,1,W] or [... | [
"noreply@github.com"
] | noreply@github.com |
1dc11d54d1dfac5b787fddc7a6e886173250838b | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/contenttypes/test_contenttypes01.py | 616bc445ea0552bde833c1b5083dd3f662857947 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...contenttypes import ContentTypes
class T... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
453a732cf91a039a5a88d6f4064d7e2b4713ea05 | 87cb7804d4a1c464334619f34a5755d0eb651264 | /checkmate.py | 4526de300ca3fdbd20492a72cbc1d66376cb35de | [] | no_license | crknuchu/PSIML7 | 99114f820850bb27db6c52c5883fb316e718143d | 1075d211c21f1018ea00414d9ad6f8f3a643658d | refs/heads/main | 2023-08-17T05:31:22.597089 | 2021-09-23T21:41:55 | 2021-09-23T21:41:55 | 349,184,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | import numpy as np
import PIL
from PIL import Image
import os
# used some code from here for the first task https://stackoverflow.com/questions/14767594/how-to-detect-object-on-images
#/home/mihailo/Desktop/PSIML/checkmate_public/public/set/0
os.chdir(input())
def coords(image):
image_data = np.asarray(image)
... | [
"noreply@github.com"
] | noreply@github.com |
bc0b6e71c5f958ce968eddfb15673e84988d1f8c | ab2262b2d147c3a936dcff6cfbdbdf81c6761a0a | /Algorithms/pascal_triangle2.py | 91a457fcffcf4fd3b3d21b35f0eeb53096db1672 | [] | no_license | SolidFighter/leetcode | 43222eb12fe5ed088e6391fe75b83c36e5e3251c | 5f6615f61d179443a206c452b354c2d2fc0b4e05 | refs/heads/master | 2021-01-22T05:06:17.378545 | 2015-10-22T08:18:04 | 2015-10-22T08:18:04 | 33,861,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Given an index k, return the kth row of the Pascal's triangle.
#
# For example, given k = 3,
# Return [1,3,3,1].
#
# Note:
# Could you optimize your algorithm to use only O(k) extra space?
__author__ = 'myang'
class Solution:
# @param {integer} rowIndex
# @return {integer[]}
def getRow(self, rowIndex):... | [
"myang199088@163.com"
] | myang199088@163.com |
e81b997e68036cdf35265aa603f9459629fc05d1 | 8a8bae1fc33dc503e55b1c6a5a67d90469331891 | /ppy_terminal/sketches/tarbell/happyplace_port/archive_code/happyplace_port_2880275_20200918_112602_000.png.py | 8a9f02346216e30caa2158a2bb5e3042747bd85c | [
"MIT"
] | permissive | LSturtew/generative_art | 071f168c92d2bb31b57558058d881bad6cf4d7aa | 76d98d8fa63e2c952055481d14ab53f56717b6dd | refs/heads/master | 2022-12-30T02:41:36.391487 | 2020-10-12T01:43:48 | 2020-10-12T01:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,542 | py | ################################################################################
# porting Jared Tarbell's Happy Place to Python Processing
# all credit for the algorithm goes to them
#
# code and images by Aaron Penne
# https://github.com/aaronpenne
#
# released under MIT License (https://opensource.org/licenses/MIT)
... | [
"aaronpenne@users.noreply.github.com"
] | aaronpenne@users.noreply.github.com |
6ecb0830a31ef2f1511f5a0b3920344955ddcfee | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /components/exo/wayland/DEPS | 067074d486aaceee495cbd61658e383ec476bff5 | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 54 | include_rules = [
"+third_party/wayland/include",
]
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
15557ec55d046d13a411ecad3c12e525ccbea8ef | 1c2a0744f5a858894bdefd96687cb64b91fbb7c4 | /assignment2/q1_softmax.py | 95bb95aee18a89e417279ed936a96cbb1fb50153 | [] | no_license | Kolento93/cs224n | 516f5deb56124c91c900dbdf89eb4e5ea75592c4 | 1c3709ab05022e4547fc0a0280315b83143d98a5 | refs/heads/master | 2021-08-23T23:44:13.607862 | 2017-12-07T03:57:33 | 2017-12-07T03:57:33 | 112,143,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | import numpy as np
import tensorflow as tf
from utils.general_utils import test_all_close
def softmax(x):
"""
Compute the softmax function in tensorflow.
You might find the tensorflow functions tf.exp, tf.reduce_max,
tf.reduce_sum, tf.expand_dims useful. (Many solutions are possible, so you may
n... | [
"haorangu93@hotmail.com"
] | haorangu93@hotmail.com |
8c53548654e83b80cccb9cb2c5bdeddcb599f6d4 | 7a17a7eafd464f945bd34c96a0a022b3f45808a9 | /dump/dump_xlst.py | 3b69be6229245ace890c741690a00a2cccf36ddd | [] | no_license | kzwhui/ugc_cluster | 4f97765919d0cbe2021a1cfa2df252679b3b9380 | 69ef57a50440800cd91c5c29006d8d06facbaafd | refs/heads/master | 2021-01-21T19:54:05.542058 | 2017-05-26T11:48:44 | 2017-05-26T11:48:44 | 92,173,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | #encoding=utf8
import sys
sys.path.append('../common/')
from util import *
from db_wrapper import *
db_conf = {
'host' : '127.0.0.1',
'user' : 'root',
'passwd' : 'zheng',
'db' : 'd_ugc_video',
'charset' : 'utf8'
}
db_conn = DBWrapper(db_conf)
sql = "select c_title , c... | [
"kzwhui@gmail.com"
] | kzwhui@gmail.com |
bab573d9ddc62bbac6473f57d1ded548ae61f7f2 | 01a3b4da84d6f64e119a958cb28fa7c0bc5b740f | /StackMath.py | aef7c31fd314c3d65bc498b5266d925dd3bf25ba | [] | no_license | ModerateWinGuy/ADS | c9adf37432fed5867229454ee3311d52dbf146ce | b1d4c468cad8bcfb5ca292e9aa692a41a69b92bd | refs/heads/master | 2016-09-06T04:22:12.411839 | 2015-11-17T04:18:13 | 2015-11-17T04:18:13 | 40,685,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | operators = ["(", "+", "-", "*", "/"]
def do_math(equation):
"""Do A Math"""
temp = ""
operator =""
for chars in equation:
if chars.isdigit():
temp += chars
else:
operator = chars
int_one = int(temp)
temp = ""
int_two = int(temp)
t... | [
"moderatewinguy@gmail.com"
] | moderatewinguy@gmail.com |
c3edce48a1d1a594c3acbd5ccba68626ed736452 | ae1c1775016876d2d6829ab06a5d0cb5a41f9eb8 | /DjangoApp/DjangoApp/env/Scripts/django-admin.py | 22dc1dbbe31b0e91da2cb69102f16ca1288ec70f | [] | no_license | rohitman4165/IAC_BPU | fa52f4c5b747f72aea73fa601f967d8c32f2ebb9 | f00b5d3a58f91d34fc7a1f5e6e87b1d99f106d72 | refs/heads/master | 2021-01-22T03:18:21.788168 | 2017-05-25T05:46:25 | 2017-05-25T05:46:25 | 92,368,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!c:\users\rnair\documents\visual studio 2017\Projects\DjangoApp\DjangoApp\env\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"rohitnair.infinity@gmail.com"
] | rohitnair.infinity@gmail.com |
951c312095219525a2e2afd0d01c02d394bf304a | b9d6e7a564c55862aab1bb17c024923ff9271ca6 | /ball.py | 19b0e8137ed4d55ef4820d6203a51fa7b7231db4 | [] | no_license | simon19-meet/YL1-201718 | ef649f3f7f2a0f53d32db27517d07b2dbf2b9c2f | 20cbc5625488e714418aff6e610d4cc44e66e298 | refs/heads/master | 2021-09-07T01:07:36.357218 | 2018-02-14T17:20:26 | 2018-02-14T17:20:26 | 110,852,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | from turtle import *
class Ball(Turtle):
def __init__(self,x,y,dx,dy,r,color):
Turtle.__init__(self)
self.pu()
self.x = x
self.y = y
self.goto(x,y)
self.dx = dx
self.dy = dy
self.r = r
self.shape("circle")
self.shapesize(r/10)
... | [
"simon19@meet.mit.edu"
] | simon19@meet.mit.edu |
0b3e1d3daec909aa9133f771604ba8b14346abc0 | d77c3bbfaca7e0570ce053c7d905efa222c0145e | /fsck_pyspark.py | 019bb8af916383d574def8f46c1599aa8ecab027 | [] | no_license | davyam/fsck-small-files-analyzer | 633dcee73dc63129e6d04008e873a6b500ef15ce | 2adbc003013ae33fb2aa17e3b5a8b7a92a60b440 | refs/heads/master | 2023-03-21T19:27:26.038335 | 2019-04-22T21:54:27 | 2019-04-22T21:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # Author: Shashank Naik
# ********************************DESCRIPTION************************************
# This script is part of the process to load the fsck data into a hive/impala table
# The script runs automatically once the shell script - fsck_prepare.sh is run
# ***************************************... | [
"noreply@github.com"
] | noreply@github.com |
3ed03d4991ef4fa680cfdf726f1c96e4d2300b78 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/151.py | 49b83dba5bc8007dbb2ae77e379ddb2c54516d06 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | import os
pdir = os.getcwd(); print(pdir)
os.chdir('..'); print(os.getcwd())
os.chdir(pdir); print(os.getcwd())
| [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
2ccd0c56573b8d4ebf2b4eb4ab16bbffb3144290 | 79c8ca0ff33ec5a1453749f18b5dd70f3f223408 | /student_mini_project/venv/bin/pyreverse | 3e1f057bce7117f910ed37dcecec3c984e131daa | [] | no_license | quocbaocs/Django-one-day- | a0f27358ce5870634231c44b6665cc86e3e9b892 | d66fb3d4ca3b9711b33f500fb1111088b04fe79f | refs/heads/master | 2021-03-31T12:42:45.618943 | 2020-03-19T05:13:11 | 2020-03-19T05:13:11 | 248,106,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/home/quocbao/Desktop/student_mini_project/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"quocbao1997la@gmail.com"
] | quocbao1997la@gmail.com | |
407bf5e3d865565a63d71d38351ec11784634a45 | 6745bd6b607bbfb00dcf641980925753ec60f7d8 | /company/migrations/0025_auto_20170507_1103.py | 0800c545ee6393dc10ad6d843f09ee8a4204948f | [] | no_license | happychallenge/chemicals | 4a1822d32354ce85499f42ada47103d3f27e163c | aa2b08c92cefe1650591d965f2e7f4872c445363 | refs/heads/master | 2021-01-20T09:21:55.769758 | 2017-05-07T06:03:54 | 2017-05-07T06:03:54 | 90,245,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,089 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-07 02:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0024_remove_allprocess_send_msds'),
]
operations = [
migrations.Al... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
164ee01f0e4816c42f7066c594e07cc3384e4f8d | 006e39b0e3d6ef52eb8185f00ebd4f55ef837ec9 | /Variable.py | cd17ff22d7fd01ba72bd292571d3c1284c0bad2f | [] | no_license | shaidazmin/Python-for-Data-Science | d1dadf2fffe4d425e9855252a843035c77d1014c | 25c71b95d96cad8e147157e62ffc863dfd46d8a7 | refs/heads/master | 2023-06-29T03:14:01.348750 | 2021-08-04T05:25:20 | 2021-08-04T05:25:20 | 378,159,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | userName = "Shaid Azmin"
userId = 12430
userSeNo = 0o0001
def sum(a, b):
return a+b
print("userDetail : \n",userName, userId, userSeNo)
print(sum("N", "z"))
print(sum(10, 10))
del userId
#print("userDetail : \n",userName, userId, userSeNo)
| [
"shaidazmin@gmail.com"
] | shaidazmin@gmail.com |
8f845237886ab89489dd3336c4b7f70fc9312afb | 331ecc5d84072e2b8ecf722b5e17dbe9a171a855 | /2048/src/tests/repository_test.py | f759420805c53d647fae71ffc2831567c1e07184 | [] | no_license | ItsTuukka/ot-harjoitustyo | 858c33667c90918c37f6a8bdb50c90341b64a77c | 39519a7a1c8c6ed2896d54abf3fba14fc63d0ec3 | refs/heads/master | 2023-04-07T16:57:42.160192 | 2021-04-19T14:14:35 | 2021-04-19T14:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py |
import unittest
from repositories.score_repository import ScoreRepository
from repositories.initialize_database import initialize_fake_database
from repositories.database_connection import get_fake_database_connection
class TestRepository(unittest.TestCase):
def setUp(self):
initialize_fake_database()
... | [
"8mixu8@gmail.com"
] | 8mixu8@gmail.com |
bd7a9a26fd311ea7acdf131684a5e555675fccf7 | 719853613b5b96f02072be1fde736d883e799f02 | /server/photos/migrations/0013_fill_in_iiw.py | 28e85fb066fa8095a74481b03e994527ba4f4b4b | [
"MIT"
] | permissive | anmolkabra/opensurfaces | 5ba442123586533a93eb29890fa1694e3efdbfe8 | a42420083a777d7e1906506cc218f681c5cd145b | refs/heads/master | 2020-03-20T01:11:05.182880 | 2018-06-13T14:55:45 | 2018-06-13T14:55:45 | 137,068,945 | 0 | 0 | MIT | 2018-06-12T12:32:53 | 2018-06-12T12:32:52 | null | UTF-8 | Python | false | false | 28,398 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.db.models import Q
class Migration(SchemaMigration):
def forwards(self, orm):
Photo = orm['photos.Photo']
Photo.objects... | [
"sbell@cs.cornell.edu"
] | sbell@cs.cornell.edu |
c0b9d56b36e4f7450e0a1a999efb6157775e183c | 4ce4ff271c5302e23c252dd9c94121941744431f | /predict.py | 1db047f3b7a4c87a6c0d0c5d54a708b334e7ad5f | [] | no_license | r4jrandy/BERT-NER-Enitiy-Extraction | 34ea69baaeffc7a475803055078f2007346463ae | 2a8cc76c725107c1c09bdeaa8b7b5acb76308071 | refs/heads/main | 2023-04-07T11:45:36.449860 | 2021-04-07T18:08:30 | 2021-04-07T18:08:30 | 355,638,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | import numpy as np
import joblib
import torch
from ber_ner import EntityDataset
from ber_ner import EntityModel
if __name__ == "__main__":
meta_data = joblib.load("meta.bin")
enc_pos = meta_data["enc_pos"]
enc_tag = meta_data["enc_tag"]
num_pos = len(list(enc_pos.classes_))
num... | [
"noreply@github.com"
] | noreply@github.com |
1381edf36fb363b531e4ef1d84b51910010dc909 | cace862c1d95f6b85a9750a427063a8b0e5ed49c | /binaryapi/ws/chanels/buy_contract_for_multiple_accounts.py | 014f93aa8f29ed48abbf5dc467f1f260ff845547 | [] | no_license | HyeongD/binaryapi | 65486532389210f1ca83f6f2098276ecf984702b | e8daa229c04de712242e8e9b79be3b774b409e35 | refs/heads/master | 2023-08-29T13:24:58.364810 | 2021-10-26T19:00:59 | 2021-10-26T19:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | """Module for Binary buy_contract_for_multiple_accounts websocket channel."""
from binaryapi.ws.chanels.base import Base
from decimal import Decimal
from typing import Any, List, Union, Optional
# https://developers.binary.com/api/#buy_contract_for_multiple_accounts
class BuyContractForMultipleAccounts(Base):
""... | [
"mdn522@gmail.com"
] | mdn522@gmail.com |
a74dae37dd2eb625ec36f5221f795e18d2d0da1b | 6efe2b8db49afa5a227b3975b066f56d7432a334 | /shroomme/shroomme/userprofile/migrations/0008_auto_20150815_1055.py | 6da7e2469e7448567fe93e687d44783cc2d6d97f | [] | no_license | roomiehunt/roomiehunt.github.io | 84b9845b116421835016c5bd6339876b4a78488f | df77db8d25def043246af9ddbcb7552ebddbeb04 | refs/heads/master | 2021-03-12T21:56:53.765807 | 2016-01-19T07:19:15 | 2016-01-19T07:19:15 | 39,287,258 | 0 | 1 | null | 2016-01-19T07:19:17 | 2015-07-18T05:00:37 | Python | UTF-8 | Python | false | false | 685 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0007_profile_private'),
]
operations = [
migrations.RemoveField(
model_name='friends',
... | [
"abrahamdio@gmail.com"
] | abrahamdio@gmail.com |
8e176688e64036a77c9795a43117abb3117e65a6 | ceae3b7ee0bd37d92a74fe248d8106979aa71ce4 | /camera.py | 58047cc34c101473391194cd0cc430073d29094d | [] | no_license | haduki1208/hello-raspberry-pi | 510527ff9b281955f004f1c1957b3ddfb2dce793 | eb6301850d43bd56915e2dcb4f839ce4c4519612 | refs/heads/master | 2020-05-27T19:14:22.166162 | 2019-05-27T02:26:51 | 2019-05-27T02:26:51 | 188,757,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from picamera import PiCamera
from time import sleep
camera = PiCamera()
# カメラが画像の取得を開始する
camera.start_preview()
# 5秒待つ
sleep(5)
# 画像を収録して保存
camera.capture('tmp.jpg')
# カメラが画像の取得を停止する
camera.stop_preview() | [
"syo4kante2@gmail.com"
] | syo4kante2@gmail.com |
4b4b634d8717f72db3a4362a998aacc34d5ee4a6 | 73260ecd9705afab374e750289388654cbfd8148 | /app/upload/admin.py | f11aaff91a8e89b8bc1a9999bf1521d372a5a798 | [] | no_license | 2ewqasd/gallery | b6c0d457249e537e5282042f4767bddde9b67606 | 491186858f97e51175095d12876e0bdaea8630c6 | refs/heads/main | 2023-03-03T09:52:12.737921 | 2021-02-05T10:10:38 | 2021-02-05T10:10:38 | 305,112,596 | 0 | 0 | null | 2021-02-05T10:10:39 | 2020-10-18T13:51:05 | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from upload.models import Picture
admin.site.register(Picture) | [
"specforworkwithpeop@gmail.com"
] | specforworkwithpeop@gmail.com |
4e774a1aa6fe310459d22dc4f3ca389b9a343ea6 | 71d378a0ffab667af20828464de421bf4948bda8 | /problem 25 (1000-digit Fibonacci number) .py | fe2f84c66b9c6a5290ff4e96804b50f1b5e3b141 | [] | no_license | mcitoler/project-euler | 4ed713bc830e59a23997d49b67dde6e99b7e2d1f | 360b8c5019e06b2e7441c1fb45ff45058d6bd812 | refs/heads/master | 2021-10-11T00:48:39.959603 | 2017-01-27T02:00:03 | 2017-01-27T02:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | fibon=[1]*2
while len(str(fibon[-1]))<1000:
fibon.append(fibon[-1]+fibon[-2])
print(len(fibon))
print(fibon[-1])
| [
"relotic@gmail.com"
] | relotic@gmail.com |
01556f9337247afd98d454a49549be0f6298ac8b | 01ba2e2ebbe13d5221e1c474ca84c6acad700d21 | /topo/faketopo.py | a5bb85b57411b4f47e88597d909f6410fd7b447e | [] | no_license | zhehaotao/ryu-controller | 3a0637066a6f9b2eeafa8773a47a683f0f034a40 | d0a0700f51ca16e3791f344d40aca3cdc67199da | refs/heads/master | 2021-03-03T18:33:04.162256 | 2020-05-13T07:22:43 | 2020-05-13T07:22:43 | 245,978,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/python2
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.log import setLogLevel
from mininet.cli import CLI
from mininet.node import OVSSwitch, Controller, RemoteController
class SingleSwitchTopo(Topo):
"Single switch connected to 2 hosts in the same network."
def build(se... | [
"zhehaotao@gmail.com"
] | zhehaotao@gmail.com |
f193c9b1500ff81b738bb6bb1c9fc10800bf5226 | 629e669bae7c14f06002c6c6449a408c8d706b9e | /challange.py | e935b5d59499aa47ed3a6d6fde9d65fcee99d1c4 | [] | no_license | raulsteleac/BitDefender_Challange | eee65d7bc2f7127a2a1cf226c141183d5fa82246 | b747c74e57fff35b038f1db60aa13ff6eb3e33cd | refs/heads/master | 2020-05-19T22:21:43.105020 | 2019-10-22T13:51:50 | 2019-10-22T13:51:50 | 185,244,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,184 | py | #%% Change working directory from the workspace root to the ipynb file location.
import tensorflow as tf
import numpy as np
import os
try:
os.chdir(os.path.join(
os.getcwd(), 'challange'))
print(os.getcwd())
except:
pass
data_file_train = 'challenge_train.csv'
data_file_test = 'challenge_test.csv'... | [
"noreply@github.com"
] | noreply@github.com |
643d8479d0d4be592474bfdee79d5f9f22cb89e1 | bb87579e47fc04b299694b8a8fe318f022f54ee8 | /Automate the Boring Stuff/Ch.12 - Web Scraping/attribute.py | c4f59a6a44dfa7c2b6213063120b221b7c1a6447 | [] | no_license | QaisZainon/Learning-Coding | 7bbc45197085dfa8f41ac298d26cf54e99e7b877 | a3991842e79c30f24d7bc0cca77dbd09bc03372f | refs/heads/master | 2022-12-23T05:47:26.512814 | 2020-09-25T08:10:20 | 2020-09-25T08:10:20 | 297,945,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from selenium import webdriver
browser = webdriver.Firefox()
browser.get('https://inventwithpython.com')
try:
elem = browser.find_element_by_class_name('cover-thumb')
print('Found <%s> element with that class name!' %(elem.tag_name))
except:
print('Was not able to find an element with that name.') | [
"noreply@github.com"
] | noreply@github.com |
a3a5e17eac7ea709474d9cd15efa15eab16ab25c | 22a96bf2861245329581f00d348fc8eb3881f097 | /reservation_project/asgi.py | 4f96ca3db92d376fa9daba644ffc55370ea04881 | [] | no_license | shahinAbolqasemi/ettesal_reservation_project | c734355e798eb1ec737db025a415c342e67693f8 | 0af5f4326f57c323f344c4097f8e723e3fe4e80c | refs/heads/master | 2023-04-01T08:55:20.397814 | 2021-04-13T07:19:33 | 2021-04-13T07:19:33 | 356,468,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for reservation_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('... | [
"shahin.abolqasemi@yahoo.com"
] | shahin.abolqasemi@yahoo.com |
f5def84a34ccd18f04b931811e64d9b77e6b1f6d | e463902624f6338cc7a5bf07258198930f5840ae | /chapter11/mysum.py | 1357168f14595706fa3a3f6440f4557226282464 | [] | no_license | Vo7ice/PyProject | 6d3cf7cdd0a0e56a66c86bdc659e5cafb6c3521e | 5ed630315afb9051ec2aebf4d43209ca638b8e3e | refs/heads/dev | 2021-01-18T21:17:03.199418 | 2016-05-12T03:03:12 | 2016-05-12T03:03:12 | 44,912,228 | 0 | 0 | null | 2016-05-14T06:29:04 | 2015-10-25T13:55:52 | Python | UTF-8 | Python | false | false | 84 | py | #!/usr/bin/env python
print 'the total is: ', reduce((lambda x,y: x+y), range(5))
| [
"vo7ice@outlook.com"
] | vo7ice@outlook.com |
3dbfcb9047ef3b1c630219ce6c0f41be3f1d93e3 | 9d222fefa38420957ef77e43b9982498cc067ad4 | /blogapp/migrations/0016_auto_20191017_2229.py | 551e9c725caf5069ce3828b50e5d048186b57485 | [] | no_license | DrowLegend/TestBlog | 54aca15f2632b6fa9915589f8dc069a4ab241049 | 87b7eab4c93d28e0da575ab86b4d61f7f2c2b228 | refs/heads/master | 2022-12-12T10:01:46.595072 | 2019-10-29T20:20:44 | 2019-10-29T20:20:44 | 218,375,196 | 0 | 0 | null | 2022-12-08T06:15:14 | 2019-10-29T20:13:59 | Python | UTF-8 | Python | false | false | 1,466 | py | # Generated by Django 2.2.5 on 2019-10-17 19:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0015_auto_20191017_2043'),
]
operations = [
migrations.AlterFie... | [
"chernikovao38@gmail.com"
] | chernikovao38@gmail.com |
6a96abf7081ed54fa7415c25429ce67e25a21b98 | 27be188c899683bf46076f51ab4f2b9651d38214 | /cf_docs_scraper/items.py | c1196593ed8ffe08072fe54123a3d64c5530bdc4 | [] | no_license | royhodgman/cloud-formation-codegen | 1159d864482582bc41030bd7535443dc1973e32e | d99c31531914479a8e5539786302c27f08a37d3f | refs/heads/master | 2020-05-20T11:47:38.676643 | 2015-09-14T11:28:50 | 2015-09-14T11:28:50 | 41,844,256 | 1 | 1 | null | 2015-09-10T03:11:29 | 2015-09-03T05:53:59 | Ruby | UTF-8 | Python | false | false | 654 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CfDocsScraperItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class CloudFormationObjectD... | [
"royhodgman@yahoo.com"
] | royhodgman@yahoo.com |
eb19a9e76546f3274aeb55a5941ccfbf0c448ec4 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/time_util.py | fa4aca709d2e13980911d752c895797f68fe0372 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,224 | py | # Copyright 2016 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 ag... | [
"toork@uw.edu"
] | toork@uw.edu |
98fab1f0de73796ef769a8a4f729188096167ece | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/MybankCreditLoantradePayerBillrepayConsultResponse.py | 384aaa839bacae7ad07341b1ed1c53574be2462c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,716 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.CreditPayBillDetailVO import CreditPayBillDetailVO
class MybankCreditLoantradePayerBillrepayConsultResponse(AlipayResponse):
def __init__(self):
super(My... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
cd0a8b364f8f54cdefe92822a38bee0c74439da3 | 0b3b139737a100c4846918108106aea1ca9ee9dc | /logger.py | 4239f4153caaa8d9a34bd9e12883b49b51325d36 | [] | no_license | panxiaobai/lits_pytorch | b240d285a797904701e5bc26930adb7ec4835378 | b76380b22d78226e25ab8021ec885894ed125f20 | refs/heads/master | 2020-06-20T17:44:42.424510 | 2019-07-16T13:13:28 | 2019-07-16T13:13:28 | 197,197,135 | 52 | 10 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | # Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514
import tensorflow as tf
import numpy as np
import scipy.misc
try:
from StringIO import StringIO # Python 2.7
except ImportError:
from io import BytesIO # Python 3.x
class Logger(object):
def __init__(self, log_dir):
... | [
"panyucsu@163.com"
] | panyucsu@163.com |
6959b4c9ba3b87040a8e31e260f2243d2fc88cba | b5f5c749ad8ba774da04a3dcf44ea2e66aea6cd6 | /background/05geo/coverage.py | a80d605b766bf88a40e1d82d403f040d271128b2 | [] | no_license | yj-git/SearchRescueSys | 2329be5f3caf57f11a2e606da87382344698eff4 | 44347aef4cd5f75f1c9adcea76c21aa97b41e8ae | refs/heads/master | 2022-08-05T12:41:54.967248 | 2020-05-21T04:55:37 | 2020-05-21T04:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from geoserver.support import ResourceInfo
from geoserver.catalog import Catalog
class Coverage(ResourceInfo):
def __init__(self, catalog: Catalog, store_name, work_space):
super().__init__()
self.catalog = catalog
self.store_name = store_name
self.work_space = work_space
s... | [
"evaseemefly@126.com"
] | evaseemefly@126.com |
dafe49b17603d8eadb148389ab9eb4eb1123eefb | 9a996f4fb2972b1b3f562bb5a3d33167a41a8b6b | /ecs-sample/post/models.py | 69b292bc2818bfa05be70bfe1334371ec2003b38 | [
"Apache-2.0"
] | permissive | cyleong1992/ecs-fargate-sample-app | edb4a272d76b809c2bd3b2ad5d888fcb5560357a | 3575e1afd97afac4ec2b3ab253b845b491c3f5eb | refs/heads/master | 2023-01-04T20:54:30.676274 | 2020-11-07T19:41:19 | 2020-11-07T19:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
import datetime
from django.db import models
from django.contrib.auth import get_user_model
from django_mysql.models import Model
User = get_user_model()
class Post(Model):
title = models.CharField(max_length=128)
body = models.TextField(blank=True, default="", help_text="HTML")
t... | [
"nujabes8@mironi.pl"
] | nujabes8@mironi.pl |
acb81f1540f0055e25b0f0a54939abd0fb3de5a7 | c2fc762e87570a54c2384247d08484d2d6e26207 | /seldasforUSST.py | e58427455bb6cbcbb6e80465a1325b7221548389 | [] | no_license | ITSRW/ScrapyforUSST | dbf30014b9ad62498929aecb9c0220f317694d93 | 44817606d7360a7cc3dc05ccf5fb4dbdd343f36f | refs/heads/main | 2023-03-23T06:42:05.469328 | 2021-03-21T06:44:06 | 2021-03-21T06:44:06 | 348,682,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,028 | py | import pandas as pd
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support.select import Select
import time,os,xlwt,copy
class scrapyclass():
base_url = "http://yjsxt.usst.edu.cn/wsxk/jsp/T_PYG... | [
"noreply@github.com"
] | noreply@github.com |
11d4291260a4c085ac7079fecd528572d8e4af1f | cd47ea6a8fa0a8944d90eaf23c869f5e42b48f5c | /Radar_works/Loss_Assemble.py | c881adf13a700f143ec0c9e999e18387c044b773 | [] | no_license | kannyjyk/Meteorology_FZL | c39a1f1dc9c319325fd6c677886ccf4038c01195 | f2d2f218426a0a0b328386c8a60d0759b19a7fd2 | refs/heads/master | 2023-01-02T03:53:12.685572 | 2020-10-19T07:47:40 | 2020-10-19T07:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,455 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 10 11:41:36 2020
损失函数集成
@author: fzl
"""
#%%
"""
1. BMAELoss() ;MAE损失中给强回波处的误差更大的权重,权重固定
2. BMSELoss() ;MSE损失中给强回波处的误差更大的权重,权重固定
3. BMSAELoss() ; MSE和MAE损失中给强回波处的误差更大的权重,同时将BMSE 和 BMAE按照不同权重累加起来,权重固定
4. STBMSELoss() ;MSE损失在空间中给强回波处的误差更大的权重,在时间序列上给时间靠后帧更多的权重, 权重固定
5. STBMAE... | [
"fangzuliang17@mails.ucas.ac.cn"
] | fangzuliang17@mails.ucas.ac.cn |
3d22bfbdb2134ca589569268383e9095adcd4f4b | 4699297c7ab7895f0b573d00695ad15ca66fe419 | /myvenv/bin/django-admin.py | 291f76748a4eaa563198b20540050dca3f19a930 | [] | no_license | naowal/Stake-test | bf66f7426f8cd0372900f4d06e12e8d7213ef925 | 52a7cc2393a9b399c8df4fd4d99f3908bd48b289 | refs/heads/master | 2020-03-30T18:52:04.320273 | 2018-10-30T01:09:45 | 2018-10-30T01:09:45 | 151,517,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | #!/home/naowal/Desktop/Django_Test/myvenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"naowalzaza@gmail.com"
] | naowalzaza@gmail.com |
8e6b2a6221270da9a79fd2ca74b668333a09b391 | 47ae678aa432deb0eb4f99b6a9787853315ab899 | /qikan/spiders/SAGE58.py | ab7d30ebca329e46bdc015cf20b378342d85b27b | [] | no_license | RoggerLuo/python-scrapy-journal | 1f3fb2ac41d90d25a0b635932600ff2327bf22d1 | 38d8e714f346e5951bcb55487fc0056a834f30d8 | refs/heads/master | 2020-04-05T20:32:42.201876 | 2018-11-13T06:35:59 | 2018-11-13T06:35:59 | 157,185,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,153 | py | # -*- coding: utf-8 -*-
import scrapy
from qikan.items import QikanItem
import re
import time
from .config import Config,postItemWithPdf,postItem,proxyRequest
class Sage58Spider(scrapy.Spider):
name = 'SAGE58'
start_urls = ['http://journals.sagepub.com/toc/apca/5']
base_url = 'http://journals.sagepub.com... | [
"luojie.5408@163.com"
] | luojie.5408@163.com |
b6c5a4d058f84a9afe6e711fe3f4ece89cfe6630 | bb778fab7d19d219b5a0cce4f64c0ebe8cb3baa2 | /main.py | 1c3bd2ce3bbc02aa0ab27fe30e0a3d721732e7e2 | [] | no_license | MarkLimML/GIT-Activity | 01709f27ec8b27be45eede946e7463f152ddf532 | 33782714341ab1679635bc0afb988d352e1194e6 | refs/heads/master | 2020-03-29T15:34:49.362974 | 2018-09-24T06:55:50 | 2018-09-24T06:55:50 | 150,070,473 | 1 | 0 | null | 2018-09-24T07:54:20 | 2018-09-24T07:54:20 | null | UTF-8 | Python | false | false | 703 | py | def make_sqaure(size):
pass
def make_rectangle(length, width):
pass
def make_triangle(size):
pass
def main():
while(True):
print('Hello, please enter what to print')
print('1\tsquare')
print('2\trectangle')
print('3\ttriangle')
shape = (int)(input('Input: '))
... | [
"joshua_cruzada@dlsu.edu.ph"
] | joshua_cruzada@dlsu.edu.ph |
0bc60f23731424fe5898e28b2074f5662c17e943 | e05c6a78b16f1d39b8e77db3ee5cea83b44ddf8a | /migrations/versions/0305m_add_pinpoint.py | 6dd09943085a1a433ea9ebe35523a519e6c9f0ff | [
"MIT"
] | permissive | cds-snc/notification-api | 7da0928f14608a2c7db1e229e17b9dbfaaf3d0f0 | 99558db51784925942d031511af3cfb03338a28d | refs/heads/main | 2023-08-18T00:08:42.787361 | 2023-08-17T20:58:47 | 2023-08-17T20:58:47 | 194,884,758 | 49 | 12 | MIT | 2023-09-14T18:55:07 | 2019-07-02T14:57:01 | Python | UTF-8 | Python | false | false | 896 | py | """
Revision ID: 0305m_add_pinpoint
Revises: 0305l_smtp_template
Create Date: 2020-04-20 12:00:00
"""
import uuid
from alembic import op
revision = "0305m_add_pinpoint"
down_revision = "0305l_smtp_template"
id = uuid.uuid4()
def upgrade():
op.execute(
f"""
INSERT INTO provider_details (id, di... | [
"noreply@github.com"
] | noreply@github.com |
deeb9d630afc55024948ed24950f7d02a56863fd | 2f06ddc0106d6781fc518b2a4e29c07b40d6266b | /src/data_loader/data_input.py | 6a2f474d6391ee8ea76fe766afba8f4c1efb1759 | [
"MIT"
] | permissive | endsley/Interpretable_Kernel_Dim_Reduction | 9f6ebd26fd632d42d823a7bfc8d93af4771ae83e | 520c7517f633ce4f0eac534c924d2e7e687d0160 | refs/heads/master | 2020-04-20T01:22:39.420734 | 2019-01-31T15:20:19 | 2019-01-31T15:20:19 | 168,543,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/env python
from test_base import *
import sklearn.metrics
import numpy as np
from DLoader import *
class data_input(DLoader):
def __init__(self, db):
db['data_name'] = 'LSDR'
self.dtype = np.float64 #np.float32
self.training_mode = 'training' # training, test, validation
self.array_format = 'n... | [
"juliusctw@gmail.com"
] | juliusctw@gmail.com |
34ee3e6f2f7b20cb8ed17c811a02c4c431f70dc9 | 629c75eedbd85f9175f662af6ccb85a86da02bcd | /task/xml/print-Name-Title.py | e0792a575595b9a1681d33d507cb7ddf4bcd726b | [] | no_license | JavidSalmanov/hackerrank | 89f826664b79a622d97675ab463ace574f685a33 | 2d95929e20d123f9905fee10908ca053420f4e95 | refs/heads/master | 2022-11-18T17:54:41.962699 | 2020-07-02T21:27:50 | 2020-07-02T21:27:50 | 269,281,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Write script that will print all books and their titles like “Alice in Wonderland” Lewis
# Carroll.
import xml.dom.minidom
doc = xml.dom.minidom.parse("books.xml")
books = doc.getElementsByTagName("book")
for book in books:
title = book.getElementsByTagName("title")
author = book.getElementsByTagName("aut... | [
"javid_salmanov@epam.com"
] | javid_salmanov@epam.com |
64ab8a6c01d0415e7803b94479c9cf5e45b04cfc | 9b9545e25bb8df391c2e130c5c0a83de45f4dece | /Business/migrations/0006_auto_20190731_1101.py | 092eb5ff7ce2f99b6cf56522252ac017ac647724 | [] | no_license | nstilt1/django-unchained | 348adfc1277354ea37349e97a2f35ec330de188b | c10e0cf9871e19d30c97b4d6789ade8e90cdf323 | refs/heads/master | 2020-06-17T17:41:59.815505 | 2019-08-12T16:33:49 | 2019-08-12T16:33:49 | 195,996,313 | 0 | 0 | null | 2019-08-12T16:33:50 | 2019-07-09T11:36:00 | Python | UTF-8 | Python | false | false | 554 | py | # Generated by Django 2.2.3 on 2019-07-31 16:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Business', '0005_auto_20190731_1053'),
]
operations = [
migrations.RenameField(
model_name='businessemployee',
old_name='bus... | [
"nstilt1@lsu.edu"
] | nstilt1@lsu.edu |
6c48547a235e13dd79bfbfb0037381c16ae5f5df | 1fcec50b7e24ed3c742be4410f97a3eae091fb15 | /shop/views.py | 1e089a8b5cb88cf699bb8340f2f01104741e2fb1 | [] | no_license | Dariashariko1990/api | cc43042d3a7a85aafcca190467d29ecbb40abe58 | 4f0d4ad9835e58ffdac47826f7ef2fbbf60630c9 | refs/heads/master | 2023-07-19T12:33:22.423596 | 2021-09-04T14:17:17 | 2021-09-04T14:17:17 | 291,034,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | from django.db import IntegrityError
from django.db.models import Q, ProtectedError
from rest_framework.generics import ListAPIView, get_object_or_404
from rest_framework.response import Response
from rest_framework.views import APIView
from orders.models import Order, OrderItem
from orders.serializers import OrderSer... | [
"Ganesh0192"
] | Ganesh0192 |
667daad31b55d2edb932fc7aa0f3b03b66022a84 | abd5867e559d2382764fa82419f78d0b1f63cd81 | /solutions/pe4_test.py | 6277ee4a31772b751eb53134807f77859e2c098a | [] | no_license | c-ripper/project-euler | 5c272169b52f834dee9106409158a38ed5d6ee41 | 1f35c2c9f61031fd5c69ec6c0eb4e5a44f999d24 | refs/heads/master | 2023-09-02T02:03:01.451371 | 2021-11-22T10:35:32 | 2021-11-22T10:35:32 | 430,596,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import unittest
from pe4 import solve
class Pe4Test(unittest.TestCase):
def test_solution(self):
self.assertEqual(solve(1000), 906609)
if __name__ == '__main__':
unittest.main()
| [
"oleksandr.berezovskyi@ihsmarkit.com"
] | oleksandr.berezovskyi@ihsmarkit.com |
cfc1b386f4a20a5d866800567c6b0b276a19ef98 | 469772806152cff25b13a1e73ec5133ba3d0f283 | /src/reversi_zero/agent/api.py | 6ba0bb23675d7c7cd12f8ccfc0178d0c3a3fbb6a | [
"MIT"
] | permissive | awesome-archive/reversi-alpha-zero | 880e92cb02a8b4d21e824baed3584a7eec823bfe | 90ba711f2233660bbf36d8203873b3fc16f7a1e8 | refs/heads/master | 2022-03-30T13:22:21.547259 | 2017-11-22T01:16:59 | 2017-11-22T01:16:59 | 111,628,182 | 0 | 0 | MIT | 2020-01-10T11:11:25 | 2017-11-22T02:47:19 | Python | UTF-8 | Python | false | false | 688 | py | from reversi_zero.config import Config
class ReversiModelAPI:
def __init__(self, config: Config, agent_model):
"""
:param config:
:param reversi_zero.agent.model.ReversiModel agent_model:
"""
self.config = config
self.agent_model = agent_model
def predict(self... | [
"mokemokechicken@gmail.com"
] | mokemokechicken@gmail.com |
6a59715a153f5d75eaad6e0472e11a0cf1a173d3 | 87dd4fac705eaf161346f1394f2122feade652bb | /version 1.0/__init__.py | ee07b4244880063f857a02ae12c7077e852ee572 | [] | no_license | CnBDM-Su/develop_project_on_pyautogui | 076b1b779d39f8609d1da561a6c8029943be7f65 | 632aa2a95a5c606f91f2db4f87cb4024a4a47302 | refs/heads/master | 2020-04-07T04:07:57.207575 | 2019-01-15T10:07:38 | 2019-01-15T10:07:38 | 158,040,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,158 | py | # PyAutoGUI: Cross-platform GUI automation for human beings.
# BSD license
# Al Sweigart al@inventwithpython.com (Send me feedback & suggestions!)
"""
IMPORTANT NOTE!
To use this module on Mac OS X, you need the PyObjC module installed.
For Python 3, run:
sudo pip3 install pyobjc-core
sudo pip3 install pyobjc... | [
"noreply@github.com"
] | noreply@github.com |
1fa2a2c5eb3f3ccaa05c14a529a03d19cd3c7a02 | 42f26c7a46a362f00fa97c4f03d3c5831fab74a0 | /cbin/wsgi.py | e3ef3cb7ec4e7e916f3667a5f13bbd50747c6ca4 | [] | no_license | connectprabhjeet/codebin | cc8ec79b6e5c0e654fbe0d67da1c2e83377ce324 | ddfb40832e19ba2b4b782e2137423f5df99ccf21 | refs/heads/master | 2020-06-25T23:06:17.608798 | 2019-07-29T12:37:54 | 2019-07-29T12:37:54 | 199,449,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for cbin project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"connectprabhjeet@gmail.com"
] | connectprabhjeet@gmail.com |
1bfb37fd8a7fdad73e3394fb67e758cc3068b5b0 | 20927c6b6dbb360bf0fd13d70115bdb27e7196e7 | /0x0F-python-object_relational_mapping/1-filter_states.py | 2896d23cb05252078d33fd4184cfa458f4fcb904 | [] | no_license | PauloMorillo/holbertonschool-higher_level_programming | 27fc1c0a1ae5784bd22d07daaedb602ee618867d | 8a42a60aa4ea52b5cc2fb73e57f38aa6c5196c98 | refs/heads/master | 2021-08-16T17:13:45.568038 | 2020-07-29T01:20:25 | 2020-07-29T01:20:25 | 207,305,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/python3
"""This Module prints all of a database"""
import sys
import MySQLdb
def main():
"""main function"""
db = MySQLdb.connect(host='localhost',
user=sys.argv[1],
passwd=sys.argv[2],
db=sys.argv[3],
... | [
"pauloan@hotmail.com"
] | pauloan@hotmail.com |
8cc23c018979ea408e442d0eddec5e9dcc8a20dc | 5f1bbbed42fdede161f55336898d364e328b907c | /python-flask-admin/auth/views.py | ab53e1d1a3c4c6e5ef3e66fcb243dcb4f839ea52 | [] | no_license | axondevgroup/examples | 0014cbb94908b0258b20b4e1521f2828875b4e73 | 98cf66fc3aa941221e19b6a566e2711c3df13ea3 | refs/heads/master | 2020-05-29T22:56:17.680074 | 2019-05-30T14:21:46 | 2019-05-30T14:21:46 | 189,421,604 | 0 | 2 | null | 2019-09-09T14:50:57 | 2019-05-30T13:46:45 | TypeScript | UTF-8 | Python | false | false | 1,293 | py | # Third party import
from flasgger import swag_from
from flask import (
Blueprint,
request,
jsonify,
session
)
# Local application imports
from app.auth import utils
auth_blueprint = Blueprint(name='auth',
import_name='auth',
url_prefix='/auth')
@auth_b... | [
"vyacheslav.knysh@axondevgroup.com"
] | vyacheslav.knysh@axondevgroup.com |
9312da41cd3eb37528dd16cc6f4eef4985bb243e | 4c1646655ea6672f4e471e9949193e17d13193c6 | /pattern2.py | d217bf0f5d853fc0310163f613ee2f1cf75944ed | [] | no_license | darshanmest47/keypresspatterns | f95f6e2c047d8f4f49599b11f746c214df295ed2 | 98eb0fb2ec777ae061ea06c80ba19a45dc98bf4e | refs/heads/master | 2023-01-04T09:16:49.103967 | 2020-11-04T11:40:06 | 2020-11-04T11:40:06 | 309,983,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
for j in range(1,6):
print(j*'*') | [
"surajmesta47@gmail.com"
] | surajmesta47@gmail.com |
dd640670b21f8c39a4aec196fd61bb48b781644e | a9ca47eddea033e7d3ea530ee62dc3c70c07702e | /leet_code165.py | 3defffae76385b7be4e14d3be9efbf6cefbe3499 | [] | no_license | tejamupparaju/LeetCode_Python | 94d5eb80ea038dfdfc6ce5e8d833af9404215f01 | 6e4894c2d80413b13dc247d1783afd709ad984c8 | refs/heads/master | 2021-01-22T05:33:58.443569 | 2018-11-05T18:00:42 | 2018-11-05T18:00:42 | 81,676,499 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | """
165. Compare Version Numbers
Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.
You may assume that the version strings are non-empty and contain only digits and the . character.
The . character does not represent a decimal poi... | [
"teja.mupparaju@gmail.com"
] | teja.mupparaju@gmail.com |
7389d460abe517d9e993221e0b2c9acc6154d6ab | 916c49b17d730ae36ce3fe8178146baac53fb15d | /common/ecmp/base.py | 10d355316e17a8b6561646a9b9de047fdebde323 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | absurya4/tf-test | ec96955ed9ddd662112173d2ff14059cd8d49552 | f1faeca6e8a0abbc0efd77455379163d61e3a3d7 | refs/heads/master | 2022-12-18T08:25:20.375604 | 2020-09-21T07:31:53 | 2020-09-24T07:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | from common.base import GenericTestBase
import os
from tcutils.util import get_random_name, get_random_cidr
class ECMPTestBase(GenericTestBase):
@classmethod
def setUpClass(cls):
super(ECMPTestBase, cls).setUpClass()
cls.inputs.set_af(cls.get_af())
try:
# Mgmt VN
... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
9336dee0c0c105be809337acc25a1ec185012420 | 807f5d7b227d08b7135c4ceed9f257ea6ce265fc | /src/criterion/sdr.py | 0ad3831712793b09ebb6c0b2f7487b16d05369c6 | [] | no_license | FuriMORI/DNN-based_source_separation | a8fbdf13f8371bb5851181867aa6f0d9917ec55b | ea44d101fb69edce9566195dcdd67d06507f1493 | refs/heads/master | 2022-12-18T05:36:21.717813 | 2020-09-16T23:28:55 | 2020-09-16T23:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | import torch
import torch.nn as nn
EPS=1e-12
"""
Scale-invariant-SDR (source-to-distortion ratio)
See "SDR - half-baked or well done?"
https://arxiv.org/abs/1811.02508
"""
def si_sdr(input, target, eps=EPS):
"""
Scale-invariant-SDR (source-to-distortion ratio)
Args:
input (batch_size,... | [
"delta9guitar97@gmail.com"
] | delta9guitar97@gmail.com |
5e50baac929a6e64e65d334d5456747280a5306c | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_6/models/logs_async_response.py | 246f276f1a09d0b9999298ed29d41641fb5f13a5 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,125 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
592f8f711a8f8c9acabd18c4ec72c3f961501888 | 4a462234de7a52bd1d99a89954484948276c98a8 | /models/raw_save_file.py | 5b8822084e58ca7614910d3322ac39f8fe26993e | [
"MIT"
] | permissive | starrify/hades_save_editor | d81f935206bb8c6cd7f717330c422bda6a05e50a | 86d4fbb1690d26b8d2ab51edc623a576b066bef8 | refs/heads/master | 2023-04-03T00:09:29.173197 | 2020-12-02T18:29:37 | 2020-12-02T18:29:37 | 325,308,396 | 0 | 1 | MIT | 2021-03-23T21:36:54 | 2020-12-29T14:31:20 | null | UTF-8 | Python | false | false | 2,726 | py | from typing import Dict, Any
from bin_utils import rpad_bytes
from constant import SAVE_DATA_V14_LENGTH, SAVE_DATA_V15_LENGTH
from schemas.sav_14 import sav14_schema, sav14_save_data_schema
from schemas.sav_15 import sav15_schema, sav15_save_data_schema
from schemas.sav_16 import sav16_schema, sav16_save_data_schema
f... | [
"astrozees@gmail.com"
] | astrozees@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.