blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
dc695c39f94e3e5033de601ceb8c069fc23d9a58
41731334f3f792b731acb807eaf5059f6be6fb3b
/Gayathri-Chandrasekaran-individual-project/Code/mywork/modeling_seq2seq.py
c8b514440da2b8d335fccf543ae3788ed5891286
[ "MIT" ]
permissive
redhairedcelt/Final-Project-Group1
591350cdad18360fea9625fca6845f3225315098
084ebc51cdaeb3d61a673bdde2214b73a0438b41
refs/heads/main
2023-03-27T04:25:32.822161
2021-03-29T10:08:54
2021-03-29T10:08:54
307,972,757
1
3
MIT
2020-12-23T22:31:01
2020-10-28T09:54:50
Python
UTF-8
Python
false
false
12,263
py
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from pickle import load from sklearn.metrics import classification_report, cohen_kappa_score, confusion_matrix from keras.models import Model from keras.layers import Dense, Input from keras.layers import LSTM # set run nam...
[ "patrickfmaus@gwu.edu" ]
patrickfmaus@gwu.edu
00b7d3262afb03b29695861e71ac12ee040ea78f
047b1d8f93420fc799c6f7214d3ef7f1ed7bb950
/students/migrations/0009_auto_20160126_1533.py
361b76d043bc8d6daa7644f2249f6eb55051e1f8
[]
no_license
alferum/django_beginners
922e933c30f292877502d3f1e7c6d685e3bb6de1
e96c7d979571b46914a9fab5053d613f764ea868
refs/heads/master
2021-01-18T21:08:52.457315
2016-06-10T17:42:22
2016-06-10T17:42:22
44,047,521
0
1
null
null
null
null
UTF-8
Python
false
false
992
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('students', '0008_auto_20160125_1824'), ] operations = [ migrations.AlterField( model_name='exam', na...
[ "alamzaker@yandex.ua" ]
alamzaker@yandex.ua
2831374c95558c3e2e891d0c7ba3c1ecbab6e0a2
372c0e129f5240db55bdca4da025f30506e977bf
/django/user/urls.py
67f316998edd3d8e0107a5ff9ad2b6ae669f57e0
[ "MIT" ]
permissive
rem1niscence/bank-app
b8f38e908a2673b3e7f59d5b83d567580a5c9dc4
d16977a3fc8edc52c4271ee24521e543d981cd8a
refs/heads/master
2021-10-11T04:14:09.075975
2019-01-04T22:31:43
2019-01-04T22:31:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
from django.contrib.auth.views import LogoutView, LoginView from django.urls import path from user import views app_name = 'user' urlpatterns = [ path('login', LoginView.as_view(), name="login"), path('logout', LogoutView.as_view(), name="logout"), path('register', views.registrationFormExtended, name="reg...
[ "roniel_valdez@outlook.com" ]
roniel_valdez@outlook.com
99d528e6a75d5e5451e88cab9b20cc94d9bf4a70
ff89ab582608c442d223966c077ee47f7a99f3b1
/2222.py
84133ae9ca260bcbf1d8e419efc2a15db622c4f4
[]
no_license
JunPengRen/lll
48ac5d9cf7ad8a46a8f4fdb00cd4dde29c70b53a
11d76301f1f32a7d05dc4dee2a5f5a2df2886532
refs/heads/master
2020-03-18T13:38:09.456445
2018-05-25T03:45:02
2018-05-25T03:45:02
134,797,002
0
0
null
null
null
null
UTF-8
Python
false
false
12
py
number = 122
[ "15110624119@163.com" ]
15110624119@163.com
21efb74694d004e4bde09a3fbf8c6fb83384a6c6
e17b5454f2dd01b0e8de98579c3fff5979ef5d64
/company/migrations/0005_alter_company_address.py
1861e1355c0b0f4baac0f9ec3abae7d62a7e8940
[]
no_license
knyshman/crm1
89e178bdd6f0920229468c7bd521759265f1e0e5
8730f2b454bcd84d3440f6e0a2bbb9d95ed98bc2
refs/heads/main
2023-07-15T03:47:56.590080
2021-08-22T10:16:53
2021-08-22T10:16:53
397,689,223
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 3.2.6 on 2021-08-09 07:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0004_auto_20210809_1048'), ] operations = [ migrations.AlterField( model_name='company', name='address', ...
[ "88670748+knyshman@users.noreply.github.com" ]
88670748+knyshman@users.noreply.github.com
836b76b01fc12ad24e8d5601219287b0420d878d
200b0fbe48d87857d12bd737456c0a68432d9fe9
/5. mouse_events/more_mouse_events_2.py
bea8efeda088eb6659f39993df7e61eeffaf63b5
[]
no_license
mclods/gods-eye
d5640a2dbe7296040ec08f7d7997c3e2e1155a62
70449b82f8c1e3abfbdc8f197abf5e3936584e78
refs/heads/master
2022-12-13T07:16:12.777312
2020-09-04T22:24:39
2020-09-04T22:24:39
291,174,699
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
# Importing Libraries import numpy as np import cv2 def click_event(event, x, y, flags, param): if event == cv2.EVENT_LBUTTONDOWN: blue = img[y, x, 0] green = img[y, x, 1] red = img[y, x, 2] cv2.circle(img, (x, y), 3, (0, 0, 255), -1) myColorImage = np.zeros((512, 512, 3), ...
[ "47282664+mclods@users.noreply.github.com" ]
47282664+mclods@users.noreply.github.com
82b102860dad12c81b3575f99ab5d3102e7229e3
927d23e5fbcbd7001b1007990b9a28014bfb8219
/mnist_classification.py
373bf1d62d3f945e2554161b608f5dc3b439098b
[]
no_license
minar09/tensorflow-practices
5822cf784063223bc0a5a62570fa0a5548cf1ef0
7982860ce2ec6df0c57a5389711464cbddad89fe
refs/heads/master
2020-03-28T21:09:32.658650
2018-10-08T15:25:08
2018-10-08T15:25:08
149,133,679
0
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
#### MNIST classification ### # Hide the warning messages about CPU/GPU import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Import libraries import tensorflow as tf import time import numpy as np old_v = tf.logging.get_verbosity() tf.logging.set_verbosity(tf.logging.ERROR) # Download/Read MNIST from tensorflow.ex...
[ "minar09.bd@gmail.com" ]
minar09.bd@gmail.com
5ea8085f35c9778a5a1d4aae6dc84dacc2eb3e30
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D08A/MOVINSD08AUN.py
546f7086b78b82989b1b35deabc5ccb25f908114
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
1,740
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD08AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 1}, {ID: 'RFF', MIN: 0, MAX: 9, LEVEL: [ ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
82680248823c227421e846392ab57040f5801f30
35083763215f56821cd26366b47eda9776e6013f
/python/prime.py
66f8c0323230651a757fe9216ff3ee043b33805b
[]
no_license
tushargayan2324/2019
95f5f39b99a27584087eafdd8688c0b65aa8583f
f4d065c8ae4123f7c195040590917e177b775d46
refs/heads/master
2021-07-19T03:30:56.896731
2020-09-08T05:46:25
2020-09-08T05:46:25
211,306,322
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
#!/usr/bin/python lower = input("Lower Bound ") upper = input("Upper Bound ") print("Prime numbers between",lower,"and",upper,"are:") for num in range(lower,upper + 1): # prime numbers are greater than 1 if num > 1: for i in range(2,num): if (num % i) == 0: break else...
[ "noreply@github.com" ]
tushargayan2324.noreply@github.com
096a2503c110b091215e0f93241cf12953d85604
47832a9ad8f617002edcb585d116f66903a60306
/extraction/clean.py
8a7fd04bfca95c2af500b26fb4be4f0116fb9c02
[]
no_license
Sharad24/multilingual_kws
66435298839c5fb19d091208b219881a0d0944d0
22b5ddb4bcbad294100637a426a6fcf0465f1140
refs/heads/main
2023-07-22T13:12:38.055350
2021-08-25T19:30:46
2021-08-25T19:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,676
py
#%% from cvutils import Alphabet from cvutils import Validator from pathlib import Path from tqdm import tqdm import os, multiprocessing, shutil data = Path('/mnt/disks/std3/compressed/generated/common_voice/frequent_words/') # langs = os.listdir(data) langs = ['lt'] # %% map, nolang = {}, set() # langs = ['en'] #%...
[ "sharadchitlangia24sc@gmail.com" ]
sharadchitlangia24sc@gmail.com
84bfeef7e85c19ed296904133c14e8638368f918
95b4aba4d9b5652eea5c17849205b8fbe484e053
/nli/RUN_ERROR_ANALYSIS.py
e2fd9bfe8ab11941fcb14a06fc33c074107cc49e
[]
no_license
vasudev13/discharge-summary-albert
eb8811c2ca5792bc96aa4a60107ea35347f4b1ef
332d07c94cac30e648b53e7aecbe2e8a67f19897
refs/heads/main
2023-05-03T16:27:02.068486
2021-05-23T19:26:57
2021-05-23T19:26:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
"""This script is a runner script for executing code during batch jobs.""" import torch import pytorch_lightning as pl import transformers import pandas as pd import argparse from path import Path from config import CONFIG from nli_finetune import NLIFineTuningModel from mnli import mnli_df from error_analysis import...
[ "vasudev.w13@gmail.com" ]
vasudev.w13@gmail.com
2e06ff1551d9602442f61381074c53b5775bb2e0
e66bbd54067184b40d82968f68aa23e0944ec9d4
/rand.py
2bb1e0e3a3576f83cc850bdf9547f1ae279ecd45
[]
no_license
mfiels/single-server-queue-sim
451874f4a4e549d669d911a930c7ead59278ff63
0a9873ffb15135a2138ab09c3a009c5b95fe78f8
refs/heads/master
2020-06-08T03:00:44.343793
2013-10-29T15:30:21
2013-10-29T15:30:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
import math class ExpRand(object): def __init__(self, parameter, generator): self.parameter = parameter self.generator = generator def next(self): return -1 / self.parameter * math.log(self.generator.next()) class LCG(object): def __init__(self, a, m, seed): self.a = a self.m = m sel...
[ "mfielbig@gmail.com" ]
mfielbig@gmail.com
06186cc49912bee6062a948f30bf667d3200eda5
63b0fb34672015ad6ca7be6a379340c19a20deba
/Top teen Programmer/Week2/dprime.py
bc97930571f00377f389e64cf24ad422f1ccdc15
[]
no_license
Roberto09/Competitive-Programming
dbc291bb33f3e61a48bd62407a392ac0e3a6cfd2
29fb64c6931e5a27871f75dd7394735e454d5309
refs/heads/master
2021-05-15T12:45:36.314768
2018-05-29T04:39:34
2018-05-29T04:39:34
108,482,061
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
import sys def alg(p): z=True for n in range(2,(p/2)+1): y=float(p)%float(n) if y != 0: continue else: z=False break return z """for x in range(ninicial,nfinal): if alg(x): print(x)""" casos=int(sys.stdin.readline()) for caso in range(casos): respuesta=0 numero=int(sys.stdin.readline()) for x...
[ "roberto_garcia_torres@outlook.com" ]
roberto_garcia_torres@outlook.com
088dc88aa4aeb64878d97237118802a64edf1d5f
48db7bebad4309a7bca8b7dec2cc9193551f46a3
/returns/_generated/pointfree/bind_io.pyi
192094dd7cdfecddb6d6bb7c83451e2b4d7e27ae
[ "BSD-2-Clause" ]
permissive
kenjihiraoka/returns
bff6196a059d411b6c36f4a2e284e4439d24fd73
4589973520d7226b18acd7295d1a9a10ff032759
refs/heads/master
2022-11-20T13:20:41.094871
2020-07-07T08:23:05
2020-07-07T08:23:05
277,863,697
0
0
BSD-2-Clause
2020-07-07T16:09:25
2020-07-07T16:09:25
null
UTF-8
Python
false
false
1,779
pyi
from typing import Callable, TypeVar, overload from typing_extensions import Protocol from returns.context import RequiresContextFutureResult, RequiresContextIOResult from returns.future import Future, FutureResult from returns.io import IO, IOResult _ValueType = TypeVar('_ValueType', contravariant=True) _ErrorType ...
[ "mail@sobolevn.me" ]
mail@sobolevn.me
70429f73bbca6c8c28bbffeb622ee490018c69d8
95f21bdadb48a25321f76980ba72887255033343
/torch/fx/graph.py
0975962ff45a803dd2244f6ce861e2ca16d18f36
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
chen-chentao/pytorch
e4f5215270aeb25c61ec700c4e142962ac1e56de
caa377f546306f8885fba1df230ae4db91dea2a4
refs/heads/master
2023-03-08T06:26:15.628237
2021-02-24T00:29:34
2021-02-24T00:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,433
py
from .node import Node, Argument, Target, map_arg, _type_repr, _get_qualified_name from typing import Callable, Any, List, Dict, NamedTuple, Optional, Tuple, Set, FrozenSet from dataclasses import dataclass from contextlib import contextmanager import torch import keyword import re import builtins import math # Mappi...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
77ffe1bf4264412518a3abe490c66cde3c819ab3
2f2079f23ce7373fe96d08cfd24577fac6f40962
/accounts/views.py
a1e39e376209acaeb346a33be8cd3bb29bbcbf4f
[]
no_license
shinhaan/greatkart
f1195eb81276be3541df22c1830e89cc77a8dff1
bd0215de9ec98f17de7084cc94f48647a4401151
refs/heads/main
2023-06-14T10:26:20.195947
2021-07-11T11:09:55
2021-07-11T11:09:55
384,908,455
0
0
null
null
null
null
UTF-8
Python
false
false
11,895
py
from django.shortcuts import render, redirect, get_object_or_404 from .forms import RegistrationForm, UserForm, UserProfileForm from .models import Account, UserProfile from orders.models import Order, OrderProduct from django.contrib import messages, auth from django.contrib.auth.decorators import login_required ...
[ "noreply@github.com" ]
shinhaan.noreply@github.com
611aafa0d2bc9469f0e2adc62ea0a5eca3ae4e61
45b799fbce7b2475a122859f78861df8935a464e
/SendMail.py
2ef1252772c985d53a9c24fd652fd4d688f649d8
[ "MIT" ]
permissive
patrickjmccauley/Stock_Data_HBF
b1b389ee5e2c9ff469c838b6b8e6a7f343f51613
96649f0f838864fcecba2dc714a3c0851c01cec0
refs/heads/master
2023-04-11T08:03:46.947073
2021-04-23T15:56:27
2021-04-23T15:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
import smtplib, ssl SMTP_SSL_PORT = 465 EMAIL_ADDRESS = "patrickjmccauley.dev@gmail.com" def send_mail(subject, message, to_address=EMAIL_ADDRESS): """ Simple wrapper to send email. Intent is to be used on script failure """ # Init values, consume credential port = SMTP_SSL_PORT f = open("cred.pic...
[ "pmccau@seas.upenn.edu" ]
pmccau@seas.upenn.edu
cfd9fe7c1d360679dde3f2d9087ae5b08aa89dea
ccf95d8916dfb1773898a96b3b35e10f276181cc
/Chapter4/try10541.py
97a6c0bd5d06c4096956b33371ad801c848a0fc6
[]
no_license
Janet-ctrl/python
ad5761875b4eaa2cb1d4194cb9f41a787a1ac5ce
666cfe9e82aaae245d6648e2fc97e60184a99704
refs/heads/master
2022-11-06T17:08:01.151639
2020-06-11T20:28:43
2020-06-11T20:28:43
270,942,344
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
pizzas =['pikkant', 'meaty treat','three cheese'] for pizza in pizzas: print(pizza.title()) for pizza in pizzas: print(f'I enjoy the {pizza.title()} on the pizza menu.') print(f'\nI really really really like pizza!')
[ "janet.eras@outlook.com" ]
janet.eras@outlook.com
61a7de6458a93abbd4bcecb609a66744676cb232
dc9791ba93f46274c859823ec4c94cfd5e7b314f
/mne/lib/python2.7/site-packages/mne/realtime/mock_lsl_stream.py
d30654dd044407b4ad234122d037895f4a440744
[]
no_license
GanshengT/INSERM_EEG_Enrico_Proc
84f8225920227dee89b98d9065fa6036b54a66d7
343edc32e5c9705213189a088855c635b31ca22b
refs/heads/master
2020-06-11T08:31:08.689920
2020-04-23T07:29:44
2020-04-23T07:29:44
193,898,744
2
0
null
null
null
null
UTF-8
Python
false
false
3,355
py
# Authors: Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import time from ..utils import _check_pylsl_installed, deprecated from ..io import constants RT_MSG = ('The realtime module is being deprecated from `mne-python` ' 'and moved to its own package, `mne-realtime`. ' 'To insta...
[ "aegean0045@outlook.com" ]
aegean0045@outlook.com
4a010a42bfbd615afad1fd018c160396fa4dbd69
40f4626ec26f23923c2b19d7ed24f3c512495182
/src/kangqi/task/compQA/model/module/cross_attention_indirect.py
3606a67410715c49755b69f8e4e28061ab9a5fcc
[]
no_license
Zjhao666/CompQA
c937c382a2f0a0fce4fdda8efda7c916b3e4c978
4bb2abc40428373481909e02543062a7388615bd
refs/heads/master
2023-02-09T02:28:09.966576
2020-12-31T21:18:32
2020-12-31T21:18:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,278
py
""" Author: Kangqi Luo Goal: Combine the structure of ABCNN-1 and AF-attention (A Decomposable Attention Model for Natural Language Inference) We are using the module in compQA scenario, where the rhs (path) is represented by both pwords and preds. Therefore, we send'em together into the module, making it a little bit ...
[ "luo.kangqi@qq.com" ]
luo.kangqi@qq.com
6276ed8fbaf501f6fe6c7314d1eee780a50c0c89
270d7f88e47683abd55c0191466c80513b2aa9f9
/tests/test_tta.py
9d0ba17296509b58febeed4a4f4c0b193716299d
[ "MIT" ]
permissive
williamberrios/pytorch-toolbelt
abdf8e455a4ffc79d2afbc92e80005a821fb97a9
4a24e6324b8270d31c08b8b2f667d740b9823377
refs/heads/master
2023-07-06T06:35:24.197821
2021-08-12T07:47:20
2021-08-12T07:47:20
400,866,088
1
0
MIT
2021-08-28T18:43:12
2021-08-28T18:43:12
null
UTF-8
Python
false
false
4,994
py
from collections import defaultdict import cv2 import torch import numpy as np import pytest from torch import nn from pytorch_toolbelt.inference import tta from pytorch_toolbelt.modules import GlobalAvgPool2d from pytorch_toolbelt.utils.torch_utils import to_numpy from pytorch_toolbelt.zoo import resnet34_unet64_s4...
[ "ekhvedchenya@gmail.com" ]
ekhvedchenya@gmail.com
0998d7b83e0b0f823115e7d2c6b0d79aadab41fd
191863e86029b0e5866bf810ec7bf209fce88b6f
/frameworks/mxnet/code/test_train.py
bba2094bb5d9a7e52f1fc55b1c7a9e19bf647552
[ "Apache-2.0" ]
permissive
EmilyWebber/amazon-sagemaker-examples
237efa2211a5d26854ece7da2356d627d4f5f225
fb5a8ba5298bb7879ee9b8c10cb0842ac078b84b
refs/heads/main
2022-04-06T10:29:56.728806
2022-04-05T14:54:25
2022-04-05T14:54:25
331,713,808
3
3
Apache-2.0
2021-01-21T18:13:20
2021-01-21T18:13:19
null
UTF-8
Python
false
false
2,221
py
# coding=utf-8 # Copyright 2020 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
[ "noreply@github.com" ]
EmilyWebber.noreply@github.com
b06eb50e6c329475c873b1a0734e44d1e58e64c5
38576a9ac324d6b8d870f812ea6e6589c45c0386
/maps/oldstuff/ai/fleet.py
e1fe28199c46bacc460a521bcf6a8189b644f939
[]
no_license
arsatiki/star-admiral
8aa19210d6763230ce8e81a73130b9395e53041a
8d5d66dcf79484528ff3b6c2472f357044424722
refs/heads/master
2021-01-01T15:30:27.066128
2009-03-02T20:01:35
2009-03-02T20:01:35
96,899
4
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
from future import division from math import radians import cmath class Ship(object): """Ship(mass=100, speed=5, attack=20, hitpoint_mul = 2, pos = 0)""" def __init__(self, mass=100, speed=5, attack=20, hitpoint_mul = 2, pos = 0j): super(Ship, self).__init__() self.mass = mass self.ine...
[ "ars@iki.fi" ]
ars@iki.fi
b8d68f6a9354e092d8ff50325b16555fda027803
b1fdbdbf52bd5c4f9c31dffa51c56f33a4f5271f
/chronic2.py
a6a172294b298c314e24be3f680aca3d3a5f4b8e
[]
no_license
mannylopez/DemolitionsPDX
02fbcfb487f0f6a43e1777c15af5a6c05de3327a
5805b9bd80ce882c5c17be74c7b38d12ef671263
refs/heads/master
2021-01-10T19:47:23.724461
2015-06-11T02:47:28
2015-06-11T02:47:28
37,211,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
from lxml import html import requests page = requests.get('http://www.portlandchronicle.com/demolition-permits-issued-may-18-may-24/') tree = html.fromstring(page.text) mayEighteenHead = tree.xpath('//*[@id="post-2931"]/div/p[3]/strong/text()') mayEighteenBlock = tree.xpath('//*[@id="post-2931"]/div/div[2]/p/strong...
[ "manuel.est.lopez@gmail.com" ]
manuel.est.lopez@gmail.com
dc34c1f11f334a3d915def0a7e3345ee0781e7e9
38ea041a35d6e1bbdcb875cfff1a313b02476e81
/appModules/AddContact.py
515d8116725ef529922d9747efd7df54bad352c6
[]
no_license
saraliuhou/DataDriverTestFrameWork
1824d0b771c20a87ce3d0b5cebf5cf1e70b4226b
5f243026e9f03e96fa010f945fb31b7545759798
refs/heads/master
2020-06-01T00:19:32.435417
2019-06-12T09:10:09
2019-06-12T09:10:09
190,554,542
0
0
null
2019-06-06T09:29:50
2019-06-06T09:29:50
null
UTF-8
Python
false
false
2,262
py
from pageObjects.HomePage import HomePage from pageObjects.NewContact import AddContactPage from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from util.ParseConfigurationFile import ParseConfigFile class NewContactPersonAction(object): def __...
[ "281754043@qq.com" ]
281754043@qq.com
c7b2d0f1eb9fca968cf444a988542cce3378ac43
128ca08737d72d78d33530e4150fb406bbca78e2
/upwork/utils.py
588a218c0f4fe983cf21887c9a9acbb9e8ae05b5
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
frolenkov-nikita/python-upwork
ef25828285caff8f310ac86cf9d6de414cb67937
d052f5caedc632c73ad770b1f822a8a494f6b34b
refs/heads/master
2023-06-01T09:28:48.092216
2021-07-01T16:07:10
2021-07-01T16:07:10
208,970,493
1
0
NOASSERTION
2019-09-17T05:57:01
2019-09-17T05:57:00
null
UTF-8
Python
false
false
4,989
py
# Python bindings to Upwork API # python-upwork version 0.5 # (C) 2010-2015 Upwork from datetime import date from upwork.exceptions import ApiValueError def assert_parameter(parameter_name, value, options_list): """Raise an exception if parameter's value not in options list.""" if value not in options_list: ...
[ "mnovozhilov@upwork.com" ]
mnovozhilov@upwork.com
0116aadc905532d21ffd01fd445c5a00907e42da
d692e868819b7eaf2f69017056b8d3f46b8f265b
/python/stopwatch.py
65b41a1794b69d46f6b1ba767e47f0a46cfb3bd3
[]
no_license
ksen0/submission
bee665b68aa6d6930224578aa2de5a428da866dc
ffef4e3fd3ec75eebed98dc661ef865e26398b6e
refs/heads/master
2021-06-16T22:04:20.954064
2017-04-24T13:56:20
2017-04-24T14:20:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
import time class Stopwatch: def __init__(self): self.counts = {} self.times = {} self.reset() def reset(self): self.clock = time.time() def lap(self, task, verbose = 0): elapsed = time.time() - self.clock self.reset() self.counts[task] = s...
[ "cscw1306@users.noreply.github.com" ]
cscw1306@users.noreply.github.com
0c6ec38b710115292a757031f6f00f64e4877fb2
44924df18da6a8400ad97014d486d176d3098753
/test/geometry/test_homography.py
5edb347580663a84ef0f62743efd9e5094f9cd9b
[ "Apache-2.0" ]
permissive
ducha-aiki/kornia
d41cd60fdcb3f03c9bcb8f304efa70db8a6436ce
0aa7a7110872f610f3947eccc4a35f0f0c7d79bd
refs/heads/master
2023-01-30T12:37:45.760726
2021-10-13T13:09:30
2021-10-13T13:09:30
192,566,129
3
0
Apache-2.0
2023-01-15T21:02:45
2019-06-18T15:21:56
Python
UTF-8
Python
false
false
12,160
py
import random import pytest import torch from torch.autograd import gradcheck import kornia import kornia.testing as utils from kornia.geometry.homography import ( find_homography_dlt, find_homography_dlt_iterated, oneway_transfer_error, symmetric_transfer_error, ) from kornia.testing import assert_cl...
[ "noreply@github.com" ]
ducha-aiki.noreply@github.com
b13fd0bd13938b71d53b4ba7187e81aa986fa5b7
379f65890dbdcc773f98ecba5f77a9f5ac7b3cde
/temp/SVM_Classifier.py
ead9e90c12749e9814ac4cd4d2bd264b18c15973
[]
no_license
SiriusExplorer/LiuZhen_Project
9ed3983f652bb002e3b9dc7aa4ae578920d3fde4
4f8d8e1a2e99cbdba74fdf41417a7a6fe3619cd6
refs/heads/master
2021-09-03T18:05:37.377363
2018-01-10T23:56:25
2018-01-10T23:56:25
108,834,956
1
0
null
null
null
null
UTF-8
Python
false
false
578
py
import numpy as np from sklearn.svm import SVC vector = np.load('./sieved_dataset_acc_pssm/trainset/right_pssm/n1/vector_np_lam39.npy') label = np.load('./sieved_dataset_acc_pssm/trainset/label_digit_nucleus01_np.npy') clf = SVC() clf.fit(vector, label) test_vector = np.load('./sieved_dataset_acc_pssm/testset/right_ps...
[ "noreply@github.com" ]
SiriusExplorer.noreply@github.com
70237c341ae1c9585377c6c6ec289173ce92bdae
148044ba8412cfe9227201e82360770d6a7e9780
/check_screen.py
095f92651215f811b52a37d88fe1c3fbc9022209
[]
no_license
mwaskom/sticks_experiment
9e0b2af851e20f82cd8a3011b08ac061b0061191
fcfd98cb4528e9011168be27b2121a96514b3fa3
refs/heads/master
2023-08-24T06:22:27.939464
2015-08-28T23:53:16
2015-08-31T04:38:24
38,704,521
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
import sys from psychopy import visual, event import cregg def main(arglist): p = cregg.Params("scan") p.set_by_cmdline(arglist) win = cregg.launch_window(p) visual.Circle(win, p.array_radius, edges=128, lineColor="white", lineWidth=2).draw() ...
[ "mwaskom@stanford.edu" ]
mwaskom@stanford.edu
30bb87520457b778c50a45b260ec8d4f109784c7
2f0d81065ccfe27a73b66d82e1d938ec565cbe13
/111.py
e70c4ae2eb15d74893927282fec361268441bea0
[]
no_license
likaon100/bootcamp_alx
bbdc82ac3d6f254326051e9360e89aeac33b5b02
5f0d1c99261ee1ef6241a506bec82ff5c1413eed
refs/heads/master
2020-03-31T10:09:44.717419
2018-12-17T22:55:02
2018-12-17T22:55:02
152,124,563
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
produkty = { "ziemniaki": 3, "cebula": 2, "woda": 1.5, "piwo": 2.5, "zimioki": 3.5, "browarek": 4.0, } koszyk = {} while True: print("W naszym sklepie oferujemy: ") for produkt in produkty: print(f" - {produkt} - w cenie: {produkty[produkt]} PLN") print() wybor_produkt...
[ "luk.podlewski@gmail.com" ]
luk.podlewski@gmail.com
78d31fe9f28ab2f74a52fd05337904956f1874d5
cff557ebdc39d7f71228bdb3f52c86888b4bf64f
/app7 - Data from web/realEstate.py
2468c011970a3d8ff8534ba58e868dc9f22dd1ed
[]
no_license
masih68kh/Python-Projects
e2a388678db1d4d4b8e88b93f1d565b8fb7d8c00
7ab4fa504202f15706225fa4ce9970fffdbb51e4
refs/heads/master
2020-07-18T00:04:35.514791
2019-09-19T21:32:38
2019-09-19T21:32:38
206,130,304
0
1
null
2019-11-25T06:26:03
2019-09-03T17:08:29
HTML
UTF-8
Python
false
false
1,925
py
import requests from bs4 import BeautifulSoup import pandas as pd def number_extractor_from_string(strg): ''' accepts <strg> : string, that has \n and space char in it return the int value of the price that comes after $ ''' number = '' for char in strg: if char != '\n' and...
[ "masihkhodabandeh@Masihs-MacBook-Pro.local" ]
masihkhodabandeh@Masihs-MacBook-Pro.local
b27c4576f2f1687fb477e3b6b56692c1d6919617
ead7dbba151265230638a8dc609407fd07ad598c
/final_pro/clustering/main.py
e6a63dad25ae82753b4f962147df16b8a0662b6d
[]
no_license
immrz/CityU-ML-PA
6a24865e0e1d151223a2c8349bc8a9ad5c8cf370
19bb3d6210b0ecd44b24ecb1cf093f55c964ad68
refs/heads/master
2020-04-08T18:30:47.417077
2019-04-11T09:10:05
2019-04-11T09:10:05
159,611,024
0
0
null
null
null
null
UTF-8
Python
false
false
8,185
py
import os import numpy as np from ass02.part_a import kmeans, mean_shift from final_pro import utility from final_pro.clustering import spectral import time from sklearn import metrics import argparse import scipy.cluster.vq as vq import multiprocessing as mp def load_feat_and_target(folder): feat_file = os.path....
[ "runzemao2@ad.cityu.edu.hk" ]
runzemao2@ad.cityu.edu.hk
c09e78fbea37df5389c7c187b4ba191210940cd3
9569555f262c6cb8701a8e4c56b2c0d3499b068a
/main/views.py
96058f887f8e186f7e7c9146a3eaaaae3fb50ea6
[]
no_license
hanelso/mysitepy
6af327d92bbe103794712a20d4a3ffc65e0d5022
8e6facdc6baa79b66452b03d6c251d9d5f95e5fd
refs/heads/master
2020-04-01T13:20:42.330778
2018-10-26T07:08:32
2018-10-26T07:08:32
153,248,563
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
from django.db.models import Max from django.shortcuts import render # Create your views here. from user.models import User def index(request): print(User.objects.aggregate(id=Max('id'))['id']) print(type(User.objects.aggregate(id=Max('id'))['id'])) return render(request, 'main/index.html')
[ "gjsxj1992@gmail.com" ]
gjsxj1992@gmail.com
6ca39e346afe1a24d2e9392a806a89b65aac8f46
5e04722e7b1e259065af53db329ef49517f78212
/blog/migrations/0008_auto_20180427_1739.py
f38793c3e22f7cf5a01ca59476ef2db1bca1b4b5
[]
no_license
luckyqiang123/gitmyblog
d4c52dadec2fb542e7b4eaafb424034004d06a9e
b51b5bbfbd7013169e22ff1d25908fcf845b90b1
refs/heads/master
2020-03-12T05:32:11.667077
2018-06-19T11:07:17
2018-06-19T11:07:17
130,465,467
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
# Generated by Django 2.0 on 2018-04-27 09:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20180306_2107'), ] operations = [ migrations.AlterField( ...
[ "zhangzhiqiang@zhangzhiqiang-X450VB.lan" ]
zhangzhiqiang@zhangzhiqiang-X450VB.lan
34f4aaaee0d22405b25fc632c1962fb509840b62
8fe200d255cae8bb17caa0f6827bb3d5b034f9e3
/TEST/test2.py
509f4f9ba2fd4fd4ca8cd5a6e2ce8859d8f80510
[]
no_license
WoojungChoi/Python_Algorithm
3a3358cfe4108faf8936746966d0b5695be7b11d
9766c1900daf0bdd0df32bb253067ccc3cbe98a3
refs/heads/master
2020-06-11T17:43:25.088592
2020-05-25T13:55:38
2020-05-25T13:55:38
194,038,787
1
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
class node: def __init__(self, key=None, left=None, right=None): self.key = key self.left = left self.right = right class Dict: x = p = node z = node(key=0, left=0, right=0) z.left = z z.right = z head = node(key=0, left=0, right=z) def search(self, search_key): ...
[ "44879897+WoojungChoi@users.noreply.github.com" ]
44879897+WoojungChoi@users.noreply.github.com
c0b4fa2db3f14cfcc949209826036005ad046e4e
8ff3a04cebb9f6b99d113fc3d19382396c77a0c7
/cs211/FiveTwelve-Notes.py
ad3dddb07b47c2e17788edd5437cf850d90366c8
[]
no_license
lmjim/year1
20d533a5e8e7a1474d0477614096e172fd9bf976
c31701c819a003066b48fc0d8d98e64cff2defe1
refs/heads/master
2021-05-18T23:27:42.168825
2020-03-31T02:23:10
2020-03-31T02:23:10
251,476,503
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
>>> tiles = [] >>> for row in range(4): columns = [] for col in range(4): columns.append(None) tiles.append(columns) >>> print(tiles) [[None, None, None, None], [None, None, None, None], [None, None, None, None], [None, None, None, None]] >>> rep = [] >>> for row in tiles: value_list = [] for ti...
[ "ljim@uoregon.edu" ]
ljim@uoregon.edu
d1b636ed6f52579d24b77748566ee0b2b1321c0c
2fae7d7ba6b2a4590fd4d90b1a491e919ec744de
/myPy/day04/day04-exam03-최소값찾기.py
3c02cc8ee23cca83d662d69c45d87e0a1108605f
[]
no_license
sw-Jack/Python
0952ded606f79c07c77a021b075e09b1e95caca4
c139301bf3a98f9b5289807ca8141febb947603b
refs/heads/master
2023-02-02T11:06:18.264799
2020-12-21T13:11:32
2020-12-21T13:11:32
290,997,124
1
0
null
null
null
null
UTF-8
Python
false
false
254
py
# 최소값 구하는 프로그램 def min(lst) : a = len(lst) minVal = lst[a-1] for i in range(1,a) : if lst[i] < minVal : minVal = lst[i] return minVal exlst = [10,43,46,2,100,12,9,78] print(min(exlst))
[ "jacksuwon@gmail.com" ]
jacksuwon@gmail.com
1b51d266eac14d71dc95534f42206ded8f0809a1
59d03a204de30d6d2160ae8b3346f852b7bd5fce
/meiduo_mall/meiduo_mall/utils/exceptions.py
be9036e00b9ce684272ae64bdf3e1ed2e29ed1d4
[]
no_license
eninem123/meiduo_mall
40d8b67f95ef98d6b3e9810a9fdbd7ef87dd323e
4d6d0b526e026bf31515abb546c72d7ed48495c6
refs/heads/master
2020-04-06T10:40:19.614955
2018-11-13T14:46:19
2018-11-13T14:46:19
157,387,690
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
""" 由于一些数据库的异常django不能捕获,要自己捕获 做个异常处理的方法 """ from rest_framework.views import exception_handler as drf_exception_handler import logging from django.db import DatabaseError from redis.exceptions import RedisError from rest_framework.response import Response from rest_framework import status # 获取在配置文件中定义的logger,用来记录日志 ...
[ "2442972114@qq.com" ]
2442972114@qq.com
5e634d96c95aaf800062ab559c679f183064a4e5
8356b36e54b04c469104660f7e3a116e3147dc34
/top_headlines.py
c9b15180bd08ce35beabbf803ba366f97e08c90c
[]
no_license
skyyi1126/SI507_HW11
d0066cb443d4636d93f599c9b260898b8e40d7b3
2e13ea4cb01d9eec55c1d8dee2c87696da01ea14
refs/heads/master
2022-12-10T00:06:15.882770
2018-12-03T03:02:02
2018-12-03T03:02:02
160,121,919
0
0
null
2022-12-08T01:27:33
2018-12-03T02:36:51
Python
UTF-8
Python
false
false
1,608
py
from flask import Flask, render_template import requests from secrets import api_key import json import datetime app = Flask(__name__) def get_articles(section): url = "https://api.nytimes.com/svc/topstories/v2/" + section + ".json" params = { "api_key": api_key } results = requests.get(url, p...
[ "sky971126@163.com" ]
sky971126@163.com
48193ed877c9dc01d8759a30ba0ef88a6bbd6f53
daaefa367aad90d6977bb94d9208d7a35606cf26
/rent_crawl.py
c3989dc0a25688e5a8a4e43e3472b972286d6443
[ "MIT" ]
permissive
montypaws/crawl_smth
27d93bcdbb8266616f4e35be44251a8cda172158
1848dba19417c206a229fa8f53a909f940ad6359
refs/heads/master
2020-04-05T03:02:54.516377
2017-04-06T02:41:25
2017-04-06T02:41:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
#!/usr/bin/python # coding:utf-8 from bs4 import BeautifulSoup import re import os import sys import urllib import time import random import time #################### 配置开始################# # 版面配置 # 支持爬多个版面,取消下面的注释即可 # 二手房 # board = 'OurHouse' # 二手市场主版 # board = 'SecondMarket' # 租房 boards = ['OurEstate', 'PolicyEst...
[ "hustos@qq.com" ]
hustos@qq.com
6872ae8eb5ec75cbb2419ad2d62cff26fed5eae2
1a31dfb66512aa66c407484f2ea8b0fb370669a4
/dstt/urls.py
ea10b8d0b93dbfa3fb49d2bb5b02982685ef0ae0
[]
no_license
nisha-eng/dstt
790129f2918e0210421039baba0a4e8c877a7627
bab89000242aec3a1a6fb05447ec52b14722809f
refs/heads/main
2023-03-01T02:50:20.767421
2021-02-05T05:23:08
2021-02-05T05:23:08
336,171,818
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
"""dstt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "mdipakpatidar@gmail.com" ]
mdipakpatidar@gmail.com
2132ca489839efb59eecac3da30efd56457831e6
18eac94ff076c1eecd72870ef93ae656906e8673
/supervised_learning/0x06-keras/13-predict.py
e2426676d174b5ff52b5fd6940693d363bda35a2
[]
no_license
dgquintero/holbertonschool-machine_learning
c1331ff87e053f9c143a0e503e8db177dfc7aafe
c80073d0ef68deeedbe2d991e296ef75f58a220f
refs/heads/master
2022-12-19T21:49:10.581793
2020-10-15T14:56:22
2020-10-15T14:56:22
279,329,167
0
1
null
2020-09-25T19:11:52
2020-07-13T14:42:03
Python
UTF-8
Python
false
false
574
py
#!/usr/bin/env python3 """function predict""" import tensorflow.keras as K def predict(network, data, verbose=False): """ function that tests a neural network Arguments: network: the network model to test data: the input data to test the model with labels: are the correct one-hot l...
[ "dgquintero02@hotmail.com" ]
dgquintero02@hotmail.com
924fb21f59270b7ce97c1bb05d536a81999db58b
b0f287876ac885504c8d52b343edd56e58ee147d
/reference.py
197777c73e663bc6d72e60c5fe2234c9964337f6
[]
no_license
Swoorup/idapylibs
a751b622748a58a056a0ea2b36f451d5abb3c68c
0f10241c99ec326a45b9d35a411f66da4a1f2521
refs/heads/master
2016-09-05T18:06:57.068118
2015-09-14T04:12:56
2015-09-14T04:12:56
10,644,433
3
0
null
null
null
null
UTF-8
Python
false
false
121
py
import find class Filter(object); def __init__(self): def debugprint(self, str): print("FILTER: " + str) def
[ "satanic_dementia143@yahoo.com" ]
satanic_dementia143@yahoo.com
3ac7c0c35f95782cfbb951672eedb64836413325
1de5f94c0296bfd38a8524647b8bd6522a2b3c3a
/oac_web_service/views/sparql.py
51f7b85a802340ad88c3e6867c2bdce613764eeb
[]
no_license
Brown-University-Library/oac_web_service
dc36711318ce4eaf038d4608adb305a99a8bba6a
165d7bb773f5a2b53fd6b0196107ccd001f312bb
refs/heads/main
2021-07-14T08:30:07.809468
2021-07-06T14:34:31
2021-07-06T14:34:31
4,136,850
1
0
null
2021-07-06T14:34:32
2012-04-25T13:35:43
Python
UTF-8
Python
false
false
1,937
py
import traceback from flask import request, jsonify, make_response from oac_web_service import app from oac_web_service.models.annotation import Annotation, AnnotationError from java.lang import String, NullPointerException from com.hp.hpl.jena.tdb import TDBFactory from com.hp.hpl.jena.query import QueryParseException...
[ "wilcox.kyle@gmail.com" ]
wilcox.kyle@gmail.com
d8f3167c34525042bfc9833d02d8d53673ff7978
79aa4b99a48bb16a907916ad63c902443420541a
/0019.py
e1253c96f9a4ecabdca22315f7ecd7d39377a98c
[]
no_license
mach8686devops/leetcode-100
62dec66c719d7cfa120ca9505701df49d8d5b982
f90526c9b073165b86b933cdf7d1dc496e68f2c6
refs/heads/main
2023-04-11T06:28:15.059587
2021-04-13T12:11:54
2021-04-13T12:11:54
329,346,572
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: l = [] while head: l, head = l + [head], head.next if n != len(l): l[-n - 1].next = ...
[ "zhangjohn202@gmail.com" ]
zhangjohn202@gmail.com
abee20e74748f84b81263b5a7dca482647bdac3d
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/9/v4g.py
947f100ab07df7782ca283e84a091c434fd16de6
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
e849c39bca34e650268bdd2541dc18a59e06f6a8
739d713d21528853c879ed404787272d8a7eca12
/launch/Loggings.py
f8b47faefd0c33cb3709aeeb2b2af2a1547afd4b
[]
no_license
primus2019/Ressistant
1dc0e4a7981d3bf9b36561f7be82d8cd9e0d7177
cca4fe6b688caf82ec94a9c806d95c00553a79a5
refs/heads/master
2020-06-16T11:49:46.684401
2019-07-29T07:53:28
2019-07-29T07:53:28
195,562,134
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
import sys sys.path.append('.') import os def ReadLog(listNo, ENList): fileName = 'log/List_' + (str)(listNo) + '.log' if not os.path.isdir('log'): os.mkdir('log') if not os.path.isfile(fileName): with open(fileName, 'a+') as log: log.write((str(0) + ' ') * len(ENList) + ...
[ "linchengji@Sha-51433-Mba.local" ]
linchengji@Sha-51433-Mba.local
38330c2113ca389eab763c88370aae6d7a5fbc3e
26a36f20246724bf9be0f2050e1185e1e647014a
/python/mirror.py
b155d5db5db0d83f065936ca4be55bc129b31f2c
[]
no_license
lddsjy/leetcode
b80b108637ea65220516b4ffb565bdd6fee7b008
5fee1609d3610fdc1ddfdaf998cd1eade6ddc14e
refs/heads/master
2021-07-05T01:33:02.762558
2021-01-24T08:05:45
2021-01-24T08:05:45
218,760,249
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # 返回镜像树的根节点 def Mirror(self, root): if not root: return None root.left, root.right = root.right, root.left self....
[ "710910630@qq.com" ]
710910630@qq.com
c4a498197bd65892c63d8b651006a2e100b27e0c
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/media/v20210601/get_transform.py
2d5107073354128ca98d5c3db8d4db0c9a68f79d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,036
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
69aed622e4876c23b75c4b21c7f103a89fbf8bc9
2f081a778580db03fec64e17f7633ce4acfa0cee
/model.py
fc181f1e919f594d818ebd3d588d303f48397f2b
[]
no_license
karaiyaashu/chat-bot
23554258f2d36b2478054b4bab490e776c93509d
b373b23f99f0cf1c816eb572c2d99de7ec9a4145
refs/heads/master
2023-03-01T11:36:16.515911
2021-01-31T10:55:53
2021-01-31T10:55:53
334,605,618
0
0
null
null
null
null
UTF-8
Python
false
false
584
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...
[ "karaiyaashutosh@gmail.com" ]
karaiyaashutosh@gmail.com
54ab201680f25d7abaa8c55274625c3ed557baa0
417bb035cb6cc60aa085c6ebbd62c37be75834cd
/backend/image/migrations/0001_initial.py
522ec51d3c1631d358e8b9954c36930633b00b0d
[]
no_license
linkedweb/image_upload
c62caf6d1afb2a89cc18bc9b6bb14afb43191f06
08176c31b95b1e46cf84cc3feafa76fc8319b044
refs/heads/main
2023-06-08T13:58:45.420061
2021-06-25T19:08:46
2021-06-25T19:08:46
379,767,837
0
4
null
null
null
null
UTF-8
Python
false
false
554
py
# Generated by Django 3.2.4 on 2021-06-24 00:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField...
[ "brkicb1@gmail.com" ]
brkicb1@gmail.com
7cd68e68d92dd9238eb4990c45759f3df352627e
960c564f5084643786dfcf85e5f1004677c080e1
/models/__init__.py
cda91e5d3e129e4bac32881fd524e29eb78a7365
[]
no_license
1204136013/web
cdc8fbe0039aff049213a379d0ca2bdd9166d662
570d242e8649dfbdca91995c8af9db99e77b1686
refs/heads/master
2020-08-22T21:10:54.929257
2019-10-21T05:40:05
2019-10-21T05:40:05
216,478,048
3
0
null
null
null
null
UTF-8
Python
false
false
5,521
py
import json import time from utils import log def save(data, path): """ data 是 dict 或者 list path 是保存文件的路径 """ s = json.dumps(data, indent=2, ensure_ascii=False) with open(path, 'w+', encoding='utf-8') as f: # log('save', path, s, data) f.write(s) def load(path): with open...
[ "1204136013@qq.com" ]
1204136013@qq.com
2f876f6a85661251f0ba85f749269bb1b2e63c24
e2efa339cf6fb017e1d1898325b363a69c227409
/app.py
6367bcdbeda570b322259488161e00e0d12605db
[]
no_license
lm10pulkit/update_delete
201b22b3816606640ab22a0f63c7bf2d58ed6295
c9c935e070f555c006dca00fd0940863fcc0790d
refs/heads/master
2020-04-15T18:32:53.239716
2019-01-09T19:07:40
2019-01-09T19:07:40
164,915,990
0
0
null
null
null
null
UTF-8
Python
false
false
3,733
py
from flask import Flask ,session, render_template, request, redirect,url_for,g from flask_mysqldb import MySQL from flask_bcrypt import Bcrypt import os # intializing the app app = Flask(__name__) #secret key app.secret_key= os.urandom(24) # setting up database app.config['MYSQL_HOST']='localhost' app.config['MYS...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1fbf4a18a1e4ea48b4004288139d3c955df1f4aa
503545b5e39fe8cc88b73618de270fffb23b0ecd
/valid_tlds.py
34913b7fe391c9ddacef5e1f855fd5b36ed07487
[]
no_license
areusecure/python
ae3c6589fe20e2d7d4b8550a72a2186feb078f6d
a4f5482b16b9d5a6d844ccdc65af3f351998f425
refs/heads/master
2020-12-25T10:49:19.395240
2016-07-09T20:02:24
2016-07-09T20:02:24
62,964,556
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
import requests # Retrieved the list from http://data.iana.org/TLD/tlds-alpha-by-domain.txt tlds = "" tlds += "tlds = [" #with open('/Users/jj/Desktop/tlds.txt','r') as f: f = requests.get("http://data.iana.org/TLD/tlds-alpha-by-domain.txt") for line in f.iter_lines(): if "#" not in line: tlds += ("," + "'" + line.s...
[ "jj@areusecure.se" ]
jj@areusecure.se
32508c5eceee6c55b16c8bf3f92d09b0b222487b
4c9d97989a2b716e4b3e942c0453ea2b0473c61a
/tests/test_utils.py
bdd51d4d3df44c91f96fff3a2875dc65909c509d
[ "BSD-2-Clause" ]
permissive
andvikt/mqtt_decorator
23418a8dae2844bed840f8f5fe26e4b3222d37e5
36bf76d3d6fa548172db32cdf002d68c96c7a535
refs/heads/master
2020-05-24T16:18:28.481000
2019-06-24T20:56:18
2019-06-24T20:56:18
187,354,204
0
0
null
null
null
null
UTF-8
Python
false
false
4,696
py
from logging import basicConfig, DEBUG basicConfig(level=DEBUG) import smarthome.rules from smarthome import utils, const import pytest import asyncio import typing from dataclasses import dataclass, field def test_proxy(): from smarthome.utils.proxy import LambdaProxy, proxy @dataclass() class TestObj: ...
[ "andvikt@gmail.com" ]
andvikt@gmail.com
4aeb5076c559a2d62968ac097e20666249770856
03f9b8bdea312636afb4df3737b55cb0cc4b21ff
/CanIWin.py
3d81f1f782f454808169ef87a967ad9bee42ec2d
[]
no_license
ellinx/LC-python
f29dd17bbe15407ba0d06ad68386efdc9a343b56
9190d3d178f1733aa226973757ee7e045b7bab00
refs/heads/master
2021-06-01T15:21:24.379811
2020-10-29T04:37:07
2020-10-29T04:37:07
132,704,788
1
1
null
2019-05-15T03:26:11
2018-05-09T05:13:26
Python
UTF-8
Python
false
false
2,052
py
""" In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach or exceed 100 wins. What if we change the game so that players cannot re-use integers? For example, two players might take turns drawing from a common pool of number...
[ "ellin.xll@gmail.com" ]
ellin.xll@gmail.com
42b3478a1ae10ed36c842324a2e9135bffe1ac66
12fcd999322c946b160bb43fc3b8b255a60cc48e
/demo.py
b878babe9f39eb2f85c697cac1a5a9efbea51a41
[]
no_license
hongduhong/HTMLTestRunner-BSTestRunner
5c8cadfb7b906ff44dd4042558fe5e1cfc94a20a
ec61265a5a7182b182f1af3b1fe5743641d65dfd
refs/heads/master
2020-07-26T18:56:52.828744
2019-09-16T07:32:28
2019-09-16T07:32:28
208,738,697
4
0
null
null
null
null
UTF-8
Python
false
false
237
py
import unittest import BSTestRunner class DemoTest(unittest.TestCase): def test_pass(self): self.assertTrue(True) def test_fail(self): self.assertTrue(False) if __name__ == '__main__': BSTestRunner.main()
[ "1918991791@qq.com" ]
1918991791@qq.com
0c0753a19e552559e99c3692b53e252d6e7c2f17
a394b1053f018ff8be63221c61682df03af4937b
/website/files/models/swift.py
d2f2d3e7d18987a01adea9d6d4c897ddbf6b2d2c
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
RCOSDP/RDM-osf.io
81b11d9511f6248ec9bccb6c586b54a58429e1e7
5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e
refs/heads/develop
2023-09-01T09:10:17.297444
2023-08-28T04:59:04
2023-08-28T04:59:04
123,298,542
12
24
Apache-2.0
2023-09-12T08:58:28
2018-02-28T14:46:05
Python
UTF-8
Python
false
false
302
py
from website.files.models.base import File, Folder, FileNode __all__ = ('SwiftFile', 'SwiftFolder', 'SwiftFileNode') class SwiftFileNode(FileNode): provider = 'swift' class SwiftFolder(SwiftFileNode, Folder): pass class SwiftFile(SwiftFileNode, File): version_identifier = 'version'
[ "fujimoto@dhcp-200-009.soum.co.jp" ]
fujimoto@dhcp-200-009.soum.co.jp
34da5761c6f73408870ae13fc19165a6137f3d16
310763ba0b9d4803fa727555913e0e4751177557
/gr-MyRadio/python/qa_time_calc.py
0b9fd0b33427b06e56c0bc149b0fded90dc40f19
[]
no_license
cbodes/radio
b10fbbdef26fd32beb246fc6cada36f78824585f
92d9f11552d316ca8f04a3759705883121f0b87c
refs/heads/master
2020-04-08T15:32:21.632324
2018-12-06T23:49:55
2018-12-06T23:49:55
159,482,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 <+YOU OR YOUR COMPANY+>. # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. #...
[ "bode4444@yahoo.com" ]
bode4444@yahoo.com
7bff68f50a734ac45c488785772ff0fd493eb306
ef46d01cb207aaea773e95e32e871000be3a1dc1
/stack_implementation.py
8c573cbfbf952cf19e3567adc5e591e0b17bc86e
[]
no_license
karthiknandiraju/Datastructures_Algorithms.py
d81c989c3cabdbc4e83d1337c65c540c151af3c3
3efb546bc29f22c83b031c1bda429fe0c50a4e5b
refs/heads/master
2020-03-24T04:33:17.491280
2018-07-31T15:46:38
2018-07-31T15:46:38
142,456,998
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
class Stack : #Initialize the stack def __init__ (self) : self.stack = [] #Check if the stack is empty o(1) def isEmpty(self) : return self.stack == []; #Push data into the stack o(1) def push(self, data) : self.stack.append(data); #Pop data from the stack o(1) ...
[ "karthiknandiraju@Karthiks-MacBook-Pro.local" ]
karthiknandiraju@Karthiks-MacBook-Pro.local
ca972e2602a74cbbbc8bb86ccc454360091054c8
51eeec4731f99b2d9a990d9f22a00d95e5165eb9
/temperature_celsius_or_farenheit.py
53689b2615cc1d1e700c18185ce1ae7248c53b98
[]
no_license
LRG84/python_assignments
d54c7cac5313d5d8f60a2669c1ba5a251b70306d
64eb9e0faaef72a1b56fc141a4e546dea7866d1b
refs/heads/master
2020-02-26T13:56:23.822193
2016-07-18T15:10:48
2016-07-18T15:10:48
62,674,163
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
#psuedo code #enter temperature #if temp >60 and <90 print "warm" #if temp >90 print "hot" #if temp <60 print chilly #give celsius or farenheit option #convert celsius to farenheit #convert farenheit to celsius (F° - 32) × 5/9 temp = input("Are you entering data in Celsius or Farenheit? Type C or F: ") if temp == "C" ...
[ "lisa.renee.goldberg@gmail.com" ]
lisa.renee.goldberg@gmail.com
bfb74d3585be70cdde795e3d0cd1c184f9d9ae8b
fa1dea1fe0fdefb7dee1f475b5aced0798b15b80
/matmult-pure.py
53854ae4b8d4d28c526cb24efe5468381a956cd8
[]
no_license
JeremyBYU/ROB550-WK1
319dcf5c31097632625574593324283ad2a81359
d0fd3cf72367821f5f4d84134f45217d76a087e5
refs/heads/master
2020-09-19T09:22:54.147750
2016-09-12T14:23:01
2016-09-12T14:23:01
67,654,854
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
#!/usr/bin/python # Author: Jeremy Castagno # Date: Sept 7 2016 # Summary: # This program will multpy two matrices (A, B) together using pure Python # The user will prompted for the sizes of A and B # The matrices are defined in two files (A.csv, B.csv). import sys import common # Common functions module # Rea...
[ "jeremybyu@gmail.com" ]
jeremybyu@gmail.com
3ad6b6e4e9387b3b9cc5855347a729c5a5d8be58
49caef1f93bd4673530e0a4c54c59028fb7b54e6
/npg7/web_printscreen_zb/controllers.py
f5da2a2deb809c478d12f54592606a9e2f4de36e
[]
no_license
slevenhagen/addons-extra7.0
7622024198c0cf637f3f4767eb2b955532af3710
85611a86a0e1522fd88b5e6fbb217f425c4ae12d
refs/heads/master
2020-03-17T14:12:42.082766
2018-05-16T13:02:05
2018-05-16T13:02:05
133,663,372
0
0
null
null
null
null
UTF-8
Python
false
false
7,142
py
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (c) 2013 ZestyBeanz Technologies Pvt. Ltd. # (http://wwww.zbeanztech.com) # contact@zbeanztech.com # # This program is free software: you can redistribute it and/or modify # it under the...
[ "slevenhagen@novapointgroup.com" ]
slevenhagen@novapointgroup.com
d2fc626eaf7afbb9d52a38a71bba35eb3a73bd85
9b5e8478e627dc0b71948ed1f78efa5854b60f27
/comment_service/comments/migrations/0001_initial.py
07a823a6a302cdb690925b7fe2b6c934142ba5e5
[]
no_license
Nurinuri2020/Comment-Service
b1dfdccb0cc5474c3ce8ce606e3d2215aa541298
b22eea2e7d836496318a4e18d0bdf51e836f2955
refs/heads/master
2023-01-10T19:20:02.070985
2020-11-09T07:03:26
2020-11-09T07:03:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
# Generated by Django 3.1.1 on 2020-10-08 07:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('posts', '000...
[ "nuraimaratova50@gmail.com" ]
nuraimaratova50@gmail.com
ed1eca89d11a78b66ce87c266840ae4b34b7ed9b
d32a9eeff0ec270002f27e8c7b15b4ab8f2b5911
/backend/backend/api/logger.py
79c5abd955ac17a0d7550e0140b46b33a555ec11
[ "MIT" ]
permissive
DOUGLASMENDES/alpharithmic-trading
538a8568432ea16a4b2d6e0b722c80f14712a6c7
41f3da302b97f0d67bb5e1af41800d92d3319e72
refs/heads/master
2023-07-07T07:50:47.729258
2019-10-21T02:54:48
2019-10-21T02:54:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
from websocket import create_connection class Logger: msg_placeholder = "{\"message\": \"%s\"}" def __init__(self, channel): self.ws = create_connection("ws://alpharithmic.herokuapp.com/ws/logs/%s/" % channel) def __del__(self): self.ws.close() def log(self, msg): self.ws.se...
[ "zhangjack27@gmail.com" ]
zhangjack27@gmail.com
8691eddb8151192864bb39bc919ebce0fa029a30
4abce61314c64510ccd337b2fc144e2edbe38a5d
/api/my_env/bin/easy_install
743c85b1b9218ab0eadef8d7d245c793db1df23b
[ "MIT" ]
permissive
mogmog/tracker
ed442c36fb2130ba479da9b7b70355fde99a0f10
d2cff0a93330104b2138e384de301ee55c16c0ef
refs/heads/master
2020-03-21T08:12:20.854243
2018-07-05T11:40:48
2018-07-05T11:40:48
138,328,153
0
0
null
null
null
null
UTF-8
Python
false
false
280
#!/c/Users/graha/OneDrive/Documents/Dev/HD/api/my_env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mogmog@gmail.com" ]
mogmog@gmail.com
11d3b382c3b1106935701e438e3452320d470392
8c41e9196b891920f3045498a4f0c9815a95e312
/api/src/base.py
962ee2f506e8a5390f524065ba62e3c14ce886b6
[]
no_license
JustChasti/markets_selenium_parser
f271389ba7f1c1df70dcc5dada6a6a439bee18e0
3a1434be792013008e7d329bdd37302d04fbbd83
refs/heads/master
2023-07-05T06:14:39.378279
2021-08-20T16:46:20
2021-08-20T16:46:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,475
py
from time import sleep from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.engine.url import URL import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AU...
[ "chastytim@mail.ru" ]
chastytim@mail.ru
0e8bd19dbae95853ce77bbf96277626db3436873
199ad938261bb0549e43ec43c92ebdf0c915071f
/variation6/tests/test_distance.py
6af7cc6d0d63458100e9eed882e24f1b805b5b0a
[]
no_license
pziarsolo/variation6
71492eb8f9a7e4335d0fb170064e131a40c9b6fe
f07b23743beea3349fd5b7d4b9f4f26da8a17713
refs/heads/master
2020-08-29T15:44:03.909890
2020-06-12T09:35:21
2020-06-12T09:35:21
218,078,637
1
0
null
null
null
null
UTF-8
Python
false
false
19,357
py
import unittest import math import numpy as np import dask.array as da import variation6.array as va from variation6.stats.distance import (calc_kosman_dist, _kosman, calc_pop_pairwise_unbiased_nei_dists, calc_dset_pop_distance) from variati...
[ "pziarsolo@upv.es" ]
pziarsolo@upv.es
18941734a91d4caff0a60bd79814784876847b1e
d9a8d175c149e7c148bf9d2e8dc39427e1726f0a
/hurl/rl_utils.py
08a72eac9a43862bc474a4a0b98a67a865534786
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
parkerhzb/HuRL
de9e1bd5700975926015ac63206373de36b82dc2
c9d0710ff6fd67b3cdbd46fc031cdbc3b3738cd2
refs/heads/main
2023-08-28T04:49:13.586899
2021-11-02T23:59:42
2021-11-02T23:59:42
424,127,074
1
0
MIT
2021-11-03T07:20:49
2021-11-03T07:20:48
null
UTF-8
Python
false
false
5,979
py
# Some helper functions for using garage import numpy as np import torch from garage.torch.policies import GaussianMLPPolicy, TanhGaussianMLPPolicy, DeterministicMLPPolicy from garage.torch.q_functions import ContinuousMLPQFunction from garage.torch.value_functions import GaussianMLPValueFunction from garage.sampler...
[ "chinganc0@gmail.com" ]
chinganc0@gmail.com
d5e1939f099cf3e03251eb29a08dac4f28524a6f
7eedbe5c7d0a0d602d03bfe7d73878adca4c61e4
/src_old/calculus.py
20c434bac11cde88912e6138766eb575a8dce5ea
[ "MIT" ]
permissive
johndpope/GeLaTo
da413da5e718ed67b620af313ba99abb87b49c4e
e00577924b7d13f3d5d387583f457caf8065b004
refs/heads/master
2020-03-29T23:05:27.981692
2018-07-30T15:16:54
2018-07-30T15:16:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,757
py
# coding: utf-8 # TODO add action of diff operators on sympy known functions import numpy as np from itertools import groupby from collections import OrderedDict #from sympy.core.sympify import sympify from sympy.simplify.simplify import simplify from sympy import Symbol from sympy import Lambda from sympy import Fu...
[ "ratnaniahmed@gmail.com" ]
ratnaniahmed@gmail.com
8e2f6c94432692471d2dfc15299ebd9960577801
5f5ee86190e4f666f7fc58494c09caee013c1e6c
/main.py
13bfeaeddc63e52bd454afa431ea7124984c8edd
[]
no_license
menghsin-2021/air
e3c98ed78f79e1af4f99b58468a8dffa40f33831
ffdd4f318edd745383ffe55b3d1542243331dfc6
refs/heads/main
2023-04-27T07:52:38.463727
2021-05-02T13:21:04
2021-05-02T13:21:04
363,655,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,865
py
from typing import List # TGS2600 import serial import time # SDS011 import struct from datetime import datetime # db from dbwrapper import DBWrapper db = DBWrapper() # TGS2600 COM_PORT = 'COM4' # 指定通訊埠名稱 BAUD_RATES = 9600 # 設定傳輸速率 # SDS011 PORT = 'COM3' UNPACK_PAT = '<ccHHHcc' ser_tgs = serial.Serial(COM_...
[ "lloivne4119@gmail.com" ]
lloivne4119@gmail.com
6f1348161cd3335d346bf92ea041c7be63205db0
bf1c7016681b5b7c6569a5f20d037e9c5db37854
/IV_semester/os/kernel/resources/task_at_hd.py
456ee60b8beec3db0c6ce99d2e9b41a2bd3194e1
[ "Beerware" ]
permissive
dainiusjocas/labs
ae62d4672f4c43d27b4e9d23e126fa9fb9cf58a9
25aa0ae2032681dbaf0afd83f3d80bedddea6407
refs/heads/master
2021-01-23T23:03:10.271749
2011-12-13T15:38:48
2011-12-13T15:38:48
6,511,648
1
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!/usr/bin/env python import sys sys.path.append('.') from kernel.resource import Resource from kernel import kernel_data from kernel.helpers.bin_sm import BinarySemaphore class TaskAtHD(Resource): ''' ''' def __init__(self, opts = {}): opts['name'] = 'task_at_hd_' + str(kernel_data.RID) Res...
[ "hanniph@gmail.com" ]
hanniph@gmail.com
0d646cb06b16ff13f94f7a541d1365b439cf9847
db987bc58a44d6bfbc4d29407b2cb4e98746f0a7
/fun/_select.py
763c0a24b5c712e8156a6357d274490245f019d3
[ "Apache-2.0" ]
permissive
jburgy/blog
605e9134f51041213f06427869188bc96c4f6a64
dfcb3c62f3cc52ad95c7d0319be690625d83346e
refs/heads/master
2023-08-24T21:42:42.253622
2023-08-21T11:35:57
2023-08-21T11:35:57
182,797,432
4
1
null
null
null
null
UTF-8
Python
false
false
1,109
py
from collections import namedtuple from itertools import groupby from operator import attrgetter, itemgetter Foo = namedtuple("Foo", "foo bar baz") Baz = namedtuple("Baz", "qux quux") Quux = namedtuple("Quux", "foo bar") _prefix_sep = itemgetter(0, 1) _remainder = itemgetter(2) def nest(paths): return { ...
[ "jburgy@gmail.com" ]
jburgy@gmail.com
19edfb5d48f61044424ab6c2a3dd832edbd0612a
daae0cf103b6c9f26065f7546a7dc79281fc0bde
/16/3.py
297df94c2bd4b2df86a41fbc8e26d6952e1e12d4
[]
no_license
oc0de/pyEPI
97a5d4db91d5459f407c9d414fc999de56885124
2b7cedecdd5b8665ab4f1ca4762a3fd5adcc9864
refs/heads/master
2021-09-05T09:32:53.646441
2018-01-26T03:58:10
2018-01-26T03:58:10
119,003,665
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
def number_of_ways(n, m): cache = {} def helper(x,y): if x == y == 0: return 1 if (x,y) not in cache: ways_top = 0 if x == 0 else helper(x-1, y) ways_left = 0 if y == 0 else helper(x, y-1) cache[(x,y)] = ways_top + ways_left return cache[(x,y)] re...
[ "valizade@mail.gvsu.edu" ]
valizade@mail.gvsu.edu
43bdd8748422792459050ea42d50e3bfced01a2b
6a220b93215b1ddde7e04622da9a7ae20cccd1c3
/libs/csv_reader.py
046884685b64fb8257fbeacf82a1acee326ee328
[]
no_license
open-sourcepad/python-testing-framework
527e36efba25c43eed8fe6d65774b686ead9b009
6043d95a85c93201eff46cccdbc8cd1a4cb36079
refs/heads/master
2022-07-10T13:29:31.673528
2020-05-26T10:13:28
2020-05-26T10:13:28
250,014,497
0
0
null
2022-06-27T16:11:17
2020-03-25T15:20:25
Python
UTF-8
Python
false
false
588
py
import csv from pathlib import Path from config import Config from .logger import Logger class CsvReader: def __init__(self, **kwargs): self.config = Config() pwd = self.config.get('root_url') file = f"{ pwd }" self.file = f"{ pwd }/assets/{kwargs.get('file')}.csv" def read(sel...
[ "djy@sourcepad.com" ]
djy@sourcepad.com
b7e5c8ca9b89d3f15ba5ce45bd9f238361b9aea3
05eb7c2795da0059819ae4f964d0c71764010cf1
/utils.py
dcd9f40c7a7a25a24070e45ff1edf5b3fd9af0f9
[]
no_license
galyaminavas/FormalLangMatrixMult
095a7fc96cc760f01b5778100641a66550d331b3
a3ab5f1ab554105bad9168975d09b9b13442b3d8
refs/heads/master
2020-04-17T05:40:28.274817
2019-03-03T21:32:55
2019-03-03T21:32:55
166,291,447
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
import sys class Grammar: def __init__(self): self.terms = [] self.nonterms = [] self.rules = [] def add_terms(self, terms): for t in terms: self.terms.append(t) def add_nonterms(self, nonterms): for n in nonterms: self.nonterms.append(n) ...
[ "galyaminavas@gmail.com" ]
galyaminavas@gmail.com
c8dea1507ff8ae3d457df3085dc71c9c9935b51c
02faf850cb4282f419a75f27f1e32f7dbbc6abd2
/boards/tests/test_view_edit_post.py
8fce9709d2a08804dc0dc45d9dcd6b1d5e4b20a4
[ "MIT" ]
permissive
Berreyol/SpiralMediaTest
c7036a9726ff17d82a96ad4a3da0cf17c2d11a99
55d3b4900586ce9cf01b7f943a401358e50ab670
refs/heads/master
2020-12-21T01:12:40.069049
2020-01-27T08:20:03
2020-01-27T08:20:03
236,258,762
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
from django.contrib.auth.models import User from django.test import TestCase from django.urls import resolve, reverse from django.forms import ModelForm from ..models import Board, Post, Topic from ..views import PostUpdateView class PostUpdateViewTestCase(TestCase): ''' Base test case to be used in all `PostU...
[ "alexberre97@gmail.com" ]
alexberre97@gmail.com
2b15a8c4ea4e67a5056db053d6d3882075fb2628
9caaacb9ff660cf24619ed65e6f18daaa51c5b51
/praticeProg/hashtable.py
da6690e2577c7e218c23e5b6231d73b1fce4008c
[]
no_license
pavan097/Data-Structures
5bd1d9f04aa2cb782f80af55de9772e731a8bfa3
b4ba7d7f4e0e8bedc1fe45e3bb291d0368115b9e
refs/heads/master
2020-04-01T07:32:56.235685
2020-01-02T16:12:01
2020-01-02T16:12:01
152,993,741
0
0
null
2019-06-01T18:28:32
2018-10-14T16:18:36
Python
UTF-8
Python
false
false
470
py
# lst=[1,2,3] class Hash(): def insert(self,lst) size_of_table=10 hash_table = [list() for _ in range(size_of_table)] for i in range(len(lst)): index=int(i%size_of_table) ht[index]=a[i] print(hash_table) def search(self,value): ...
[ "noreply@github.com" ]
pavan097.noreply@github.com
e23b5f2e5fa60aa2d69a5bf41e58564aecd13058
683bd37c4f728a1c2330f7dcd2f2c7dfb01e29a6
/sudoku/ac3_basic.py
ed0ec57bf589d7e9ea1c5f0893e83756d5f3fde9
[]
no_license
NunotabaS/assignments
10da1d9e2db897a7f79049436a45288bcbf09570
6a0d586f53b2a400bee9cc252598dafd1db2fd23
refs/heads/master
2021-01-01T15:41:07.441899
2013-10-27T05:06:49
2013-10-27T05:06:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,026
py
import collections def generate_domain(puzzle): """Generate the domain maintaining binary constraints""" domain = dict() for x in xrange(0,9): for y in xrange(0,9): if puzzle[x][y] != 0: domain[(x,y)] = [puzzle[x][y]] else: domain[(x,y)] = [1,...
[ "knh_ch_mainland@126.com" ]
knh_ch_mainland@126.com
130ef8765129f5bc1fdc767ebd8d062140d8c3b7
26f0b99b71d736962dfc371989429402c4a73ab6
/migrations/versions/45d712a6312a_user_table_created.py
fd1d2e0aceeecd391a284e5b3ba86b69cfe0ca4f
[]
no_license
Bowrna/microblog
d7a6e45a42a4e6cd016d2ef18abfbac1e35742ff
14f6eac549d180d798f1d516039122b08e222f2b
refs/heads/main
2023-08-02T23:57:40.781357
2021-10-03T12:45:45
2021-10-03T12:45:45
404,637,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
"""user table created Revision ID: 45d712a6312a Revises: Create Date: 2021-09-09 14:51:31.641960 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '45d712a6312a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto...
[ "mailbowrna@gmail.com" ]
mailbowrna@gmail.com
7299e4632f35352b74252a94b66eb182b8449e29
1fd6bffd21d94b488aa57e1b30a89ce2da24a434
/classifier/linear_classifier.py
db2769c4e43521b61f75b2c92a5d2520ef12528e
[]
no_license
caozhang1996/CS231N_svm_and_softmax
69afd5b0fe0cff1dbd3af0c0b9f6a2ae5efd184e
b5351b136a3a57f47e0e7a5f9f52ad1421dcadfb
refs/heads/master
2020-05-24T20:54:41.916910
2019-05-19T10:55:34
2019-05-19T10:55:34
187,464,816
0
0
null
null
null
null
UTF-8
Python
false
false
4,209
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Dec 26 21:39:11 2018 @author: caozhang """ from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np from classifier.linear_svm import * from classifier.softmax import * class Lin...
[ "caozhang1996@gmail.com" ]
caozhang1996@gmail.com
860b005825acb032d0f94414142accddd28459a9
e98becd113452518f46252f0afe0df4724cd2120
/products/models.py
49eeb5d67b48c9072127b56543be72a71ecbad40
[]
no_license
Just-Drue/producthunt-django
fb1105a28ca4361c886740b54fd9d9d20a0af5f7
42dd5481e67d713a9a32735bfdf24aba4d6427ce
refs/heads/master
2020-06-22T14:42:34.687593
2019-07-23T13:25:54
2019-07-23T13:25:54
197,731,485
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
from django.db import models from django.contrib.auth.models import User class Product(models.Model): title = models.CharField(max_length=255) url = models.CharField(max_length=255) pub_date = models.DateTimeField(auto_now=True) votes_total = models.IntegerField(default=0) image = models.ImageFiel...
[ "Justinas.DRUSKIS@akka.eu" ]
Justinas.DRUSKIS@akka.eu
3c53acc7a394cdd39b839e2d9ea9db430e1ffd07
a1ef11a1861bc94495f5cc1bc0de2355080f5c3f
/17/17_1.py
d5454f4a85de93caebdb95c901f5867ce50ed9fc
[]
no_license
womogenes/AoC-2020-solutions
85208d1a2b24daf299150a40056fe9cb3c52355d
72c4673a24c1d06d8f385536f1881c9202991d10
refs/heads/main
2023-02-08T01:03:30.384345
2020-12-25T19:20:10
2020-12-25T19:20:10
318,245,689
3
4
null
null
null
null
UTF-8
Python
false
false
2,473
py
with open("17_input.txt") as fin: data = fin.read() def next_state(state): # Return the next state given the current state # State is represented by a big enough 3-dimensional matrix minz = 0 maxz = len(state) - 1 miny = 0 maxy = len(state[0]) - 1 minx = 0 maxx = len(state[0]...
[ "williamfeng1729@gmail.com" ]
williamfeng1729@gmail.com
71bf5967f752f1802458b6fe7e2ea379a85e712a
4c2924bce6058ecbddc3781c9b946da8e3f90f0f
/omegawatt.py
f72d48c93841d30a36b4c4139412ce000021dcb0
[]
no_license
Kayoku/G5K-energy
f7887ec2d90b98acdb5d85f86447d15e88bd2c1c
5df70a73c8b7dd27e1e555aa217d0c3600b39463
refs/heads/master
2020-05-02T12:44:20.691774
2019-04-16T11:10:20
2019-04-16T11:10:20
177,965,990
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
""" Specific module for Lyon/Grenoble G5K wattmetter (OmegaWatt) Source from: https://gitlab.inria.fr/delamare/wattmetre-read/raw/master/tools/getwatt.py """ def getwatt(node, from_ts, to_ts): """ Get power values from Grid'5000 Lyon Wattmetre (requires Execo) :param node: Node name :param from_ts: T...
[ "jordan.bouchoucha@protonmail.com" ]
jordan.bouchoucha@protonmail.com
b166238bfdde8ebbd7f891ca2753c9ec07746959
85ea5a6adb2806ce556105916339bad6ae94a1ed
/musicRooms/wsgi.py
a4555e2c9d5c406e02964e77e41c36d26ec28091
[]
no_license
MrDahaniel/musicRooms
34fa864495dd5c63218d59c3a9a4f38981402267
2970099fe63f00a8afa9d9e67fdfbc4dfa063a2f
refs/heads/master
2023-06-06T08:43:19.261925
2021-06-30T01:53:42
2021-06-30T01:53:42
381,430,130
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for musicRooms 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/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "danieldavid2001@gmail.com" ]
danieldavid2001@gmail.com
17209eaf388e9000e886e9e48250dc9fc3dd072b
ca65e958071df2775b2ee6ab380d315f9e3a252b
/expensiveoptimbenchmark/solvers/IDONE/test.py
0409d48cffde3a20b2531667874d3ee359e0d1a2
[ "MIT" ]
permissive
ZhihaoLiu-git/ExpensiveOptimBenchmark
56bf814a8033fc84ced257dbde08bfee9914eded
642056f8d94c7f953e50c3cd05bbbf9f39ad5c3d
refs/heads/master
2023-07-13T11:54:19.491931
2021-08-24T08:08:47
2021-08-24T08:08:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
import numpy as np d = 3 # Define basis functions Z=ReLU(W*x+B) W = [] # Basis function weights B = [] # Basis function bias lb = [-5] * d ub = [15] * d # Add a constant basis function independent on the variable x, giving the model an offset W.append([0]*d) B.append([1]) # Add basis functions dependent on one varia...
[ "arthur.guijt12@gmail.com" ]
arthur.guijt12@gmail.com
e11630ca7d98b098071e4dbe2e4d7ccbd0e87332
525dc175d55c2f5f33f87df6915f3633537da17c
/oas_dev/notebooks/eusaari/02-02-Sizedistrib/02-02-sizedistribution_allstations-sec_and_mod_separately.py
d470894aa30e6884b01c96e3bce822ef6d69d6b6
[ "CC0-1.0" ]
permissive
sarambl/OAS-DEV
1b4c020ff862075034536ea38f30a131968791fb
8dec6d29ef23dee8135bc937cd6ee1ef5b64d304
refs/heads/master
2023-04-09T07:59:31.051158
2021-10-26T12:20:04
2021-10-26T12:20:04
310,578,324
0
0
null
null
null
null
UTF-8
Python
false
false
16,442
py
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% import xarray as xr from oas_dev.util.Nd.sizedi...
[ "samebr@gmail.com" ]
samebr@gmail.com
883d265d36da118961861848f49fe6ec28c13473
5b52313c813c3b0e2cce6bc1096ee292fccdbada
/djcrm/settings.py
167aeee1b63834b21bb9b3f17bc9e7bf15886e53
[ "MIT" ]
permissive
frenchdubliner/djangoTest
4240568e8c7159981a2f1c945c1c84d1534e64c6
8cb279964f902af3f524844782ca4b977f7c6ee7
refs/heads/main
2023-09-05T11:59:48.617318
2021-11-06T01:24:06
2021-11-06T01:24:06
421,076,547
0
0
null
null
null
null
UTF-8
Python
false
false
3,470
py
""" Django settings for djcrm project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib i...
[ "olivier.chambon@gmail.com" ]
olivier.chambon@gmail.com
9030713c7c930ffabe85beaff385f9f272140ffe
2e6105480d6e99ca6c290e3ed64cb64d36de6491
/Database_Server/Views.py
491bf883dcc3074eea921035e39fe9281fe2ea96
[]
no_license
avpatel26/CityAnalyticsOnCloud
fb65f01e647b5835b1f12bc4f562ae3ede1a2683
1c06569ed13e8c48bc89a85da0777be721a940a7
refs/heads/main
2023-07-11T21:19:24.834187
2021-08-13T03:08:21
2021-08-13T03:08:21
395,503,582
0
0
null
null
null
null
UTF-8
Python
false
false
3,382
py
#-------------------------------- #Group No. 31 #Team Members #Akshay Agarwal, 1141290,Melbourne #Avi Patel,1143213,Melbourne #Monit Patel,1135025,Melbourne #Prabha Choudhary,1098776,Melbourne #Shubham Parakh,1098807,Melbourne #-------------------------------- import couchdb import couchdb.design import os ...
[ "avipatel2610@gmail.com" ]
avipatel2610@gmail.com
7cc04ea24305a25eb8010faa7a224d022844a5ca
ce71d887986a3c7a90ab9dfadf70c9e2d64147f2
/day07/07_qiushibaike.py
1602bc6a2aeea0664174f460fe83e86fe9bcb943
[]
no_license
Chenqianwu/AID1904
361b9d3640ad63519d8cea64e9241f15f8543161
5e5a0908ba24b3708d9ae832194d08b93cb89318
refs/heads/master
2020-06-05T18:34:14.752026
2019-08-13T03:37:53
2019-08-13T03:37:53
192,512,781
1
0
null
null
null
null
UTF-8
Python
false
false
410
py
from selenium import webdriver browser = webdriver.PhantomJS() browser.get('https://www.qiushibaike.com/text/') # 单元素查找 xpath = '//div[@class="content"]' div = browser.find_element_by_xpath(xpath) # print(div.text) # 多元素查找 xpath = '//div[@class="content"]/span' span_list = browser.find_elements_by_xpath(xpath) for s...
[ "noreply@github.com" ]
Chenqianwu.noreply@github.com
f33932b9a9946978806f121ae5d679489ba405d3
5f2d9ca4c7fa970ca5e51c223baa1379dbc295e6
/kalmanFilter1D.py
93ef701d8ac9149e1e339c992ca6594aaa117325
[]
no_license
davincy33/Kalman-Filter-Python
039d8e30f9368d058c9a56f4873fc7f4fc72ec70
8bc21cadbc6fe9d010e8ddc334c6554f421b23ed
refs/heads/master
2022-08-24T22:54:24.902733
2020-05-20T17:32:57
2020-05-20T17:32:57
265,639,466
0
0
null
null
null
null
UTF-8
Python
false
false
10,618
py
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import math # State Matrix stateX = []; class KalmanFilter: def __init__(self, initStateX, delT): # Initial Conditions self.deltaT = delT; # Delta T; Unit: Seconds self.x_2dot = 0; # Acceleration in X directi...
[ "vincent.tracsens@gmail.com" ]
vincent.tracsens@gmail.com
d5d776f59da1238f1032e6305e2eeb6e866c8e96
e0d5423de509451c56a4ac18549142c70842445f
/DailyPractice/Linkedlist/148_Sort_List.py
7b2a4f8895f37f81a8222e54d48bc47d5b9b8be1
[]
no_license
xyliu09/DailyPractice
82e39259972260c62289483f5227265715ea08f8
aa925ef83624261fd5b4b8ba140de26ba8cd0074
refs/heads/master
2021-06-15T22:21:36.505334
2021-05-14T01:59:47
2021-05-14T01:59:47
196,878,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def sortList(self, head): """ :type head: ListNode :rtype: ListNode """ if not head: return None def...
[ "38929468+xyliu09@users.noreply.github.com" ]
38929468+xyliu09@users.noreply.github.com
24d2af17dd3749befa8832fee7ee08d62a1a9063
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/JgYPQrYdivmqN4KKX_18.py
51bf0ca4c9e57c6e4d4df644268825f4357b96e2
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
def BMI(weight, height): if "kilos" in weight: fBmi = round(float(weight.split()[0]) / float(height.split()[0])**2,1) else : a = (float(weight.split()[0])) * 0.453592 b = (float(height.split()[0])) * 0.0254 fBmi = round(a/b**2,1) if fBmi < 18.5: return "{0} Underweight".format(fBmi) eli...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
eb4cc5b31c4a9629a928412b4df80c8ee843fe8e
9e35d755536790a8dd28c1ee7473d1e70deec8b9
/Testy/Dictionaries.py
d3db2897e6aa727a4eaac3a3731dc74cf63c8f8d
[]
no_license
cichali/praktykiGIT
805210b047b01fc9ee814d0a8a222992af763e44
8b36ba6e3bbfc72b9b1ebf110b4477ad668cceef
refs/heads/master
2020-06-30T02:55:28.630883
2019-09-20T10:25:37
2019-09-20T10:25:37
200,699,753
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
monthConversions = { "Jan": "January", "Fab": "February", "Mar": "March", "Apr": "April", "May": "May", "Jun": "June", "Jul": "July", "Aug": "August", "Sep": "September", "Oct": "October", "Nov": "November", "Dec": "December", } print(monthConversions.get("Deg", "Error"...
[ "cichyakms@gmail.com" ]
cichyakms@gmail.com
716aca32e454d7b820d8e09254aa93a48ca27a20
21be53b22a5ecc8a6c3f49e7378a78904b5c9c85
/main.py
286729c95c730e334a1825639ed56e367c0f5656
[]
no_license
S-Hani/pythonProject
983e56e0116782c78a3ed33b8c932ae0834e5579
6bb4c8f139e35d33b08d3c7f200b8473eafeba42
refs/heads/master
2023-08-12T22:31:54.983548
2021-09-30T12:23:52
2021-09-30T12:23:52
412,055,034
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import requests import json import csv prtcl = "http" url = "www.omdbapi.com" params = { "apikey": "926c06e4", "s": "Avengers" } payload = {} headers = {} def dict_to_query(parameters, domain, protocol): query = '' for key in parameters.keys(): query += str(key) + '=' + str(parameters[key]) +...
[ "shettyhanish@gmail.com" ]
shettyhanish@gmail.com
ff1f313894df0d8ce05f9613010ff31d92abca19
a21982c4c56944c2c852efa947f0f2ee4afb374a
/setup.py
941b183739c4ecef99377b723bdbd0da1aedea33
[]
no_license
mephicide/semantic-version-updater
0920586528218d0aef7db98f8ec21625a21ae5e3
2d2947259ad5f520653bb44457ddbb49716968b3
refs/heads/master
2023-02-05T18:11:46.731500
2020-12-21T13:17:58
2020-12-21T13:17:58
322,597,760
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
from setuptools import setup, find_packages entrypoints = {} console_scripts = entrypoints['console_scripts'] = [ 'update-version = version_updater.main:main', ] try: long_description = open('README.md').read() except IOError: long_description = '' setup( name='version_updater', version='0.0.2',...
[ "jeremyvickery@gmail.com" ]
jeremyvickery@gmail.com
9d7cbfab03ab9199772ad7b3dddca430afc55551
94226c24eb31fff29af3403b7b0672b032277b23
/settings/development.py
42f1ee7423e8eb8d862817056fa638d530c98be8
[]
no_license
vaibhavmathur91/zsavs
deba23511023b0efe3c1c2d8a9b2faef93c3625f
a7040d218bc4cce06657cefa6d57137ec38f502e
refs/heads/master
2020-03-16T11:53:09.865619
2018-05-08T19:28:28
2018-05-08T19:28:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
# Import base settings from .base import * BASE_URL = 'http://127.0.0.1:8000' DEBUG = True # Secret key (default value is set in development # settings so that the .env file is not necessary) SECRET_KEY = os.getenv('SECRET_KEY', 'fruh-%ut#q*2av0@d+vf!*gkc=vbnxwox^h6-a-$9avh32z+ya') # Database DATABASES = { 'defa...
[ "robin@bisping.ch" ]
robin@bisping.ch
44c462d9e7b54f0d65128ccbeaeac6d1bea09293
738d53191472e3322d332c22b9a39bf8e243a549
/flaskr/auth.py
b546bee70b8485634407588e4db48e939fdf0b6d
[]
no_license
bahatiphill/flaskr
bfa75bd0326db406094aecdfff4cf8b902d1c035
7df397cd3491a37955f7a2e2abc48d58d0d676cf
refs/heads/master
2020-08-16T23:30:09.516042
2019-10-17T13:58:43
2019-10-17T13:58:43
215,570,800
0
0
null
null
null
null
UTF-8
Python
false
false
2,532
py
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from flaskr.db import get_db bp = Blueprint('auth', __name__, url_prefix='/auth') @bp.route('/register', methods=('GET', 'POST...
[ "phill@localhost.localdomain" ]
phill@localhost.localdomain
e0b7367a019a91e2fa1bcd3bff959a74b8b7323a
e8cc4cd00990a4f8a75e538ca68fa77456f37e3c
/telebot/apps.py
f6201278a2003ae19e1031d371370381cf66d2e3
[]
no_license
devRayanwv/djangoTest
950b5d54a3a53f52f615e2ed0a99bac975fb0db9
71bb9377f70fde5b28c5685e8800c4209f265a9f
refs/heads/master
2020-04-06T04:28:08.942379
2017-02-24T22:20:08
2017-02-24T22:20:08
82,883,125
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from __future__ import unicode_literals from django.apps import AppConfig class TelebotConfig(AppConfig): name = 'telebot'
[ "you@example.com" ]
you@example.com