blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
2b842410ff09b5c4c5ee02673863363ca749c5e3
e6af4bb164fe4361a3f016bde78087997851a96c
/AI/src/tools/build_negative.py
b2406b4468f5d0c95576ccf5d435c861b752ef34
[]
no_license
gagerblog/Oscar-smart-trash
c158582d755fb6dcb8bc5a21a41989a5756e8f23
b4cd78cdc56deb6482965016026e8e0a94e2e2d8
refs/heads/master
2020-08-24T00:09:30.231705
2018-07-17T08:00:46
2018-07-17T08:00:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,291
py
"""Build TFRecords from ImageNet dataset.""" import os import csv import random import logging import xml.etree.ElementTree as ET import tensorflow as tf from logging_utils import setup_logging from utils import process_dataset FLAGS = tf.flags.FLAGS def define_flags(): """Define flags to config building proc...
[ "mamacintoshc@MACs-MacBook-Pro-4.local" ]
mamacintoshc@MACs-MacBook-Pro-4.local
bbbfc6df2ceef7fe88b55150129b9adcebb1bfbb
f5214006a587cf363ced0945af144d7c96ff65b7
/resources/hoja_control.py
d0c12c624f99fd8a44f9e536ffa11e31ac384766
[]
no_license
lcevallo/sistagua-api
73fd985a3a98f0db9c8b192469aac1e6f356eb65
361bb9a2b0ba00a68d924ac675ca6a9f64f8d095
refs/heads/main
2023-04-17T09:36:14.000522
2021-05-08T09:39:00
2021-05-08T09:39:00
331,178,077
0
0
null
null
null
null
UTF-8
Python
false
false
25,448
py
import datetime import re from http import HTTPStatus from flask import request from flask_restful import Resource import myconnutils from models.ficha_tecnica import FichaTecnica from models.hoja_control import HojaControl from models.hoja_control_detalle import HojaControlDetalle from models.temp.hoja_control_tmp i...
[ "lcevallo@gmail.com" ]
lcevallo@gmail.com
d2b9df7e94f38ee983c30d5363ebc16205dda68c
b3bb0d8e42e1a38e5cd84e64e9990bf05d63ddde
/ft/tests.py
7ff0161f40a31368a807238d6d6df32b473c74ad
[]
no_license
vassily-la/obey01
7a9b2433f1b7c09a210ab77c108d3caa097f26e4
958badabf5549dd627150b5f94af13324dfd159b
refs/heads/master
2020-03-08T20:38:43.552362
2018-04-09T17:59:52
2018-04-09T17:59:52
128,387,334
0
0
null
null
null
null
UTF-8
Python
false
false
5,570
py
import os, time from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.keys import Keys MAX_WAIT = 10 class NewVisitorTest(StaticLiveServerTestCase): def setUp(self): ...
[ "vasil.deville@gmail.com" ]
vasil.deville@gmail.com
77d43ac1bd2334701f9e03ccc7ded589d57e8c40
77c820198567519f8ce106c75000a03167942347
/credentials.py
0a0604a817841e7318db81318ae50f8c23ca0222
[]
no_license
cmhoc/cmhocclerk
6a3be10f89100104d3468e3c0354baddbdaa1917
f973f57a28b731e2d474cb2c8077ef9813f423f7
refs/heads/master
2020-03-15T11:45:16.850778
2018-05-20T15:07:49
2018-05-20T15:07:49
132,127,321
0
1
null
2018-05-05T22:35:10
2018-05-04T10:43:11
Python
UTF-8
Python
false
false
1,400
py
#Authorization Credentials for Google Sheets and this specific bot #Code made by google, modified by /u/thehowlinggreywolf from __future__ import print_function import os from oauth2client.file import Storage from oauth2client import client from oauth2client import tools SCOPES = 'https://www.googleapis.com/...
[ "noreply@github.com" ]
noreply@github.com
80257832860ad0a22b6782d158b13e16675b9141
339ee457c642bd7990d312b6e309dcf636a04c62
/Codechef Lunchtime 2019/April/FASTFOOD.py
1e4b67df2b0a4dbf3dd713a67bb9f08dbbc39643
[]
no_license
RajatGupta2138/Programming-Practice
e8c6341172560845d62cae5467102e5fc92ae5b9
ddef427396494ab9cb345f2c38c9bf52fda2911b
refs/heads/master
2022-11-13T04:51:29.624023
2020-07-05T16:02:35
2020-07-05T16:02:35
277,070,055
2
0
null
null
null
null
UTF-8
Python
false
false
289
py
for _ in range(int(input())): N=int(input()) A=list(map(int, input().split())) B=list(map(int, input().split())) profit=sum(A) maxprofit=profit for i in range(N-1,-1,-1): profit=profit-A[i]+B[i] maxprofit=max(maxprofit, profit) print(maxprofit)
[ "rajatgupta2138@gmail.com" ]
rajatgupta2138@gmail.com
0f972d9e866b624fe94d02c98fb1a139c1dfd6d9
4294eac3ddd33e3e14b8de0b8f5cea3be891bc0f
/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_21/numpy/numpy/random/setup.py
44af1806412da18376739329ce96f027f30d29b3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause", "Python-2.0", "BSD-3-Clause", "MIT" ]
permissive
VPetras/mobile-test-app
9093a4bd3b17c9db96f08e413216753d2f0af263
6708dade6873ae2fb1ecb13aa70662f95fb42dc6
refs/heads/master
2020-11-30T19:46:17.148262
2019-12-30T20:51:19
2019-12-30T20:51:19
230,459,305
0
0
null
null
null
null
UTF-8
Python
false
false
2,289
py
from __future__ import division, print_function from os.path import join import sys from distutils.dep_util import newer from distutils.msvccompiler import get_build_version as get_msvc_build_version def needs_mingw_ftime_workaround(): # We need the mingw workaround for _ftime if the msvc runtime version is #...
[ "vojtech.petrasek@hardwario.com" ]
vojtech.petrasek@hardwario.com
65d79a8adef04fdbc70e590cb1025aa748e9e9a7
eae50e84483d129d915ea62692ef34b9ac64af68
/moss/core/migrations/0001_initial.py
5ad773d1cb1eff1326054797c9e83c3ab9813c35
[]
no_license
Elicarlos/ifpi-project
785cba465a90bf93f0ac61674f990e1853d96fd5
fb13556726fe4e2317223e88ed4fc53261667d04
refs/heads/master
2020-03-23T14:08:13.390179
2018-07-27T06:08:25
2018-07-27T06:08:25
141,658,552
0
0
null
null
null
null
UTF-8
Python
false
false
1,469
py
# Generated by Django 2.0.6 on 2018-07-26 23:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Chamado', fields=[ ('id', models.AutoField(...
[ "elicarlosantos_@hotmail.com" ]
elicarlosantos_@hotmail.com
42ae24c5e27301e7c1af69885ee6fb72db779a79
89f1c415c744170e268f33c403214ecc197d8375
/Chapter11/CNN_TDC_STRATEGY.py
9f94cc245da8e221c319e855b5f9d7efe17e4548
[ "MIT" ]
permissive
deadphilosopher/Artificial-Intelligence-By-Example
620abc5e05689b537249ee84c3b0b6370ebd3ec1
fbb5fb56c816d5cefefe2cdad0affcd7b3321081
refs/heads/master
2022-11-02T08:21:14.271368
2022-06-13T15:07:54
2022-06-13T15:07:54
193,830,647
0
0
MIT
2019-06-26T04:41:05
2019-06-26T04:41:05
null
UTF-8
Python
false
false
2,418
py
#Copyright 2018 Denis Rothman MIT License. See LICENSE. from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array import matplotlib.pyplot as plt import keras import numpy as np from keras.preprocessing.image import ImageDataGenerator from keras.models import model_from_json from...
[ "prasadr@packtpub.com" ]
prasadr@packtpub.com
fefc9585e3a091c97ccd12fa459892e979c1dbf5
55d82976caaad6ef095b8a43cf4edd73f7bd54f3
/4_django/board/board/settings.py
e8d169ff69c4017df6ff44e41595c4d30baa2ddc
[]
no_license
asy0239/TIL
bfa2bf2856bd534777edc1cdf53465cc1f78784a
8493cf08cca43c5b0947a3469bae9a6d057c760a
refs/heads/master
2020-05-27T19:18:53.910448
2019-06-18T07:37:42
2019-06-18T07:37:42
188,759,004
1
0
null
null
null
null
UTF-8
Python
false
false
3,101
py
""" Django settings for board project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # B...
[ "asy0239@gmail.com" ]
asy0239@gmail.com
88c2a025bf018c2548daf79a448628a19daa9545
8c522f3f1116882c9a83db8faa6730a154b3d212
/python/Clicker.py
1181580587abce3d3cf2c986af2c7a8ed77b86a1
[]
no_license
jaredad7/CSC_BACKUPS
c6efb86edcfa234f765e2dd51288d101a616a980
271652edac1f1783922782d37b519a71be90a868
refs/heads/master
2020-03-21T09:27:57.993691
2018-06-23T13:03:02
2018-06-23T13:03:02
138,401,086
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
# Click Counter # Demonstrates binding an event with an event handler from tkinter import * class Application(Frame): def __init__(self, master): super(Application, self).__init__(master) self.grid() self.button_clicks = 0 #Number of times the button has been clicked self...
[ "jaredad7.jd@gmail.com" ]
jaredad7.jd@gmail.com
0d253c67c05313df25a84c93f04f1a0f4bb03981
d7ecb49576e6b0e2582a7473ac3e9712b23adc83
/datasets/transforms.py
4016b6d0bd18b110da7fc23e02e74fb163f22858
[ "MIT", "Apache-2.0" ]
permissive
Tarandro/MOTR_4
9a6fe6928ddf2de40d2ceabdb3ffd0d791ac3bd9
bd8e53d7ea0584f06ccf032b056b327c87986ca7
refs/heads/master
2023-08-03T03:31:53.804147
2021-09-24T21:19:12
2021-09-24T21:19:12
408,173,045
0
0
null
null
null
null
UTF-8
Python
false
false
23,758
py
# ------------------------------------------------------------------------ # Copyright (c) 2021 megvii-model. All Rights Reserved. # ------------------------------------------------------------------------ # Modified from Deformable DETR (https://github.com/fundamentalvision/Deformable-DETR) # Copyright (c) 2020 SenseT...
[ "alexis.gassmann@expleogroup.com" ]
alexis.gassmann@expleogroup.com
dfef6512a4ea340a12e92ce730d9052f302614d1
c7bca86a776c3f1a267fc8bad37b1badb3985a42
/scraper.py
585e027ab419692015761038bf3afd1c9c58aa78
[]
no_license
taenin/Riot-Games-NURF-Project
59df22e13c9cd630fff98e8cffa4d6046d978ddb
e7dab5e0d079168b65c0b882bacc2646689db65f
refs/heads/master
2021-01-10T19:14:12.640683
2015-04-11T00:20:00
2015-04-11T00:20:00
33,195,545
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
import timers import time import sys import updater def main(args): startTime = int(args[1]) mainWorker = updater.Worker(startTime) comThread = timers.BackgroundUpdater(1.5, mainWorker.updateInformation).start() try: while True: time.sleep(1) except: print "Exiting ..." if __name__ == '__main__': main(sys....
[ "persons.matthew@gmail.com" ]
persons.matthew@gmail.com
a944005aa57a366320289b4317d4667ee2b9e3e1
f2a2f7eb7a8819365909bcf84f258273a4f1e086
/mlp/errors.py
712fe594949595e97fb61ce0b8c6d2f9cbcec120
[]
no_license
gracecxj/mlpractical
73398ba0de8b67de47a93f955772622ff23cde12
24cf59b04e7d106f143fdb84573639f1e39bd628
refs/heads/mlp2017-8/master
2021-07-20T05:17:01.758744
2017-09-29T17:00:52
2017-09-29T17:00:52
106,006,944
1
0
null
2017-10-06T13:19:57
2017-10-06T13:19:57
null
UTF-8
Python
false
false
1,452
py
# -*- coding: utf-8 -*- """Error functions. This module defines error functions, with the aim of model training being to minimise the error function given a set of inputs and target outputs. The error functions will typically measure some concept of distance between the model outputs and target outputs, averaged over...
[ "antrikohs@gmail.com" ]
antrikohs@gmail.com
5c53c405c769ad6e96eb92359df716a95fa1a8c6
02de7815b28c3ea7c311365f9ea3fcd64a35da4b
/tests/tests.py
30f06a85495130f4bed585b5f8316c2dd6c067e4
[]
no_license
cheeseywhiz/pyt
73499b3a734c2702b7082fffd571da1224d2a006
73ffa77ac347fe6b4c9a00e5ef12b4a0d29ee7ec
refs/heads/master
2020-03-25T06:15:31.495862
2019-01-31T21:41:24
2019-01-31T21:41:24
143,491,919
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
from chars import * def join(*lines): return ''.join(lines) def escape_command(seq): return ESC + seq def control_sequence(final_byte, *args): body = SEP.join(map(str, args)) return escape_command(f'{CSI}{body}{final_byte}') def cursor_character_absolute(nth_col=None): if nth_col is None: ...
[ "cheesy.mac.dott@gmail.com" ]
cheesy.mac.dott@gmail.com
270dfd7fcb19c5dee5f5d2c6f5ec30f802192865
83586573a57401d6f35c88b9753efe65afcae612
/hw1/exp1_2.py
0a85262d203bdfc4aeabfeaaf57e6ec1277b32ca
[]
no_license
wcLegend/data_mining
0f96f25a9761f9b6df4337e31c7f7020b774b059
59c888f43a7e52a0f77b8972c4a9fe08db6d9a7c
refs/heads/master
2020-07-29T08:56:01.643618
2019-12-24T02:06:11
2019-12-24T02:06:11
209,737,296
0
0
null
null
null
null
UTF-8
Python
false
false
10,174
py
""" ======================================= Clustering text documents using k-means ======================================= This is an example showing how the scikit-learn can be used to cluster documents by topics using a bag-of-words approach. This example uses a scipy.sparse matrix to store the features instead of ...
[ "noreply@github.com" ]
noreply@github.com
07322d8ea7f676088aa2cbbcdaf68b58ce468bf3
e6ce5cfa880637c651580eaf013916fb915ad019
/TR2_RP/src/rp_mlp_loo.py
007ba952819ad404c36c7071624891bef884640e
[]
no_license
faellacurcio/rp
f3c760deff16a411ed55121baf2a4741934aed36
a23d31f12382d36a5e2b03a39f7a6800a7194566
refs/heads/master
2020-05-03T11:56:42.253345
2019-06-18T12:48:29
2019-06-18T12:48:29
178,612,615
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
#importa as bibliotecas import numpy from sklearn.model_selection import LeaveOneOut from sklearn.neural_network import MLPClassifier from plot_confusion_matrix import plot_confusion_matrix import matplotlib.pyplot as plt def fix_Y(vec_input): mat = numpy.zeros([vec_input.shape[0], int(numpy.amax(vec_input))]) ...
[ "rafael.acurcio@gmail.com" ]
rafael.acurcio@gmail.com
a3f1d4931d6678a9032dead8c990899a2745e000
969b7d3c27e0d29ef994616fd1b6c50966168835
/sprint.py
1c8a8d8e24bcff5d60251e6b79bde5d220313265
[]
no_license
liamh17/Python_Files
d8f9e8ed726f184167f1d4af3ea370e0127cdb48
968297ab2b25e4fef9c5538f54d51924c3f4f4e4
refs/heads/master
2020-12-24T20:24:17.109795
2016-06-02T03:22:44
2016-06-02T03:22:44
58,249,602
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
import msvcrt import time high_score = 50 name = "no-one" while True: distance = int(0) print("\n--------------------------------------------------------------") print('\n\nWelcome to the 100m sprint, tap z and x rapidly to move!') print('* = 10m') print("\n**Current record: " + ...
[ "Liam Heisler" ]
Liam Heisler
d80efee932216f2f43dc9d15c1826b6099035c05
ccf7b194ecdff46f02a9e280511709d716d311aa
/ecommercedev/ecommercebd/ecom/views.py
ac9695321f7340532297df91c5772f1570555480
[]
no_license
imon91/test12
24a505a5545eca217436cf6ccff7e54acaca4d30
0c28a50f0b66be5c717f5ad28d8e189fbe21b002
refs/heads/master
2020-12-17T22:44:04.640363
2020-01-21T09:37:39
2020-01-21T09:37:39
235,298,680
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
import datetime from django.http import HttpResponse from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.shortcuts import get_object_or_404 from django.contrib.auth import login as auth_login, logout as auth_logout, aut...
[ "39309@wgbd.com" ]
39309@wgbd.com
515ab8d53a5ddeadafdaff27d99130f0b0011aa6
682a4ab5047a54c56c4585e768afacb209eef42e
/mail_message.py
e0a88a3f3f183632a25056403cbd285f258a4ca1
[]
no_license
rheami/myMail
7fbf245250d57bd82ec4eb5950a89896e36df509
5a7a193c4cd4751150eaef53c3320e40f98e0d46
refs/heads/master
2022-12-26T03:43:46.179053
2018-08-13T18:45:54
2018-08-13T18:45:54
302,132,305
0
0
null
null
null
null
UTF-8
Python
false
false
6,949
py
# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api, _ html_escape_table = { "&": "&amp;", '"': "&quot;", "'": "&apos;", ">": "&gt;", "<": "&lt;", } def html_escape(text): return "".join(html_escape_table.get(c,c...
[ "rheaultmichel@gmail.com" ]
rheaultmichel@gmail.com
eb2bd8abbc7f912dfa40133c45c02f66526b71a2
994c1b533fe64265715231d6458a9f316ce82cbf
/users/forms.py
34d47092d282474eb8c2de50d4c673242cd68db6
[]
no_license
zerobubus/hw05_final
07320a8fcc1119f28cf3bd5e3285d381470f7f47
ed89bdd5fa088c71bdb127a780fc2eac3bcda47c
refs/heads/master
2022-11-24T23:09:29.335507
2020-07-29T16:49:10
2020-07-29T16:49:10
282,685,996
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model User = get_user_model() # создадим собственный класс для формы регистрации # сделаем его наследником предустановленного класса UserCreationForm class CreationForm(UserCreationForm): class Meta(UserCreationForm...
[ "spb.etr@yandex.ru" ]
spb.etr@yandex.ru
0eba2abfbc6b06e28fc7e2042a9f4aeaf406d89e
91f0ada382a529bb928d3eb122fd65900d0702f5
/03.Third_week_exersice/03Football_cards.py
309caf08577fd76f7ab6edecfc7eb6f6c5f285a2
[]
no_license
skafev/Python_fundamentals
aa62208ae0fdfc9ed6a9dcc0905c4a8e5aefd2be
959f9bca948cc901ac3f10694f540d1d533585b5
refs/heads/main
2023-06-09T19:33:21.370459
2021-07-01T16:29:30
2021-07-01T16:29:30
382,092,763
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
text = input().split(" ") team_A = 11 team_B = 11 less_then_seven = False for text_one in set(text): if "A" in text_one: team_A -= 1 if "B" in text_one: team_B -= 1 if team_A < 7: less_then_seven = True break if team_B < 7: less_then_seven = True break pri...
[ "s.kafev@gmail.com" ]
s.kafev@gmail.com
7481b35cd014efbfc7a8d72bee9a65e12c4e0c85
12938461fe1cc5617d3e425937a5d79ceb61a76a
/development/shenzyn/emailTrigger/jobseeker_email.py
83532fcbcb79a3fd5153c8943da5c9e9e2dead4c
[]
no_license
Megha566/Shenzyn-Test-Aut
15847b6c50a48957e3738ba40b567be3521360ce
487751e94fb2bc4745cb1902f76530c58f4bd870
refs/heads/master
2023-02-11T19:28:53.923332
2021-01-08T07:45:17
2021-01-08T07:45:17
327,862,517
0
0
null
null
null
null
UTF-8
Python
false
false
1,840
py
# Python code to illustrate Sending mail with attachments # from your Gmail account # libraries to be imported import smtplib import glob import os from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders #Hotmail account, for ...
[ "saravjeet.singh@hotmail.com" ]
saravjeet.singh@hotmail.com
bf00ede1eb6695ab64ca14b24995b1e1df06d68d
5c6d7ddebb3a3b7a5e8bd60b92f7ee28d23edb28
/tile/side/__init__.py
86bf1a2e8bc80f8276eba4cc8a341a0991e2238d
[]
no_license
jgrowl/pycarcassonne
6bb4d19813fe31065064d7035d273aaac9eabb6c
fb989b4fcc8005cfc2d1b951f3968ec8fe5b43af
refs/heads/master
2021-01-18T14:02:02.394650
2009-06-17T08:27:39
2009-06-17T08:27:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
#!/usr/bin/env python from side import Side from top import Top from right import Right from bottom import Bottom from left import Left
[ "j.growl1983@gmail.com" ]
j.growl1983@gmail.com
a6a2daf271ad89e416af84ed992ecfd9e12ae0b7
cba3aea3b0f2614f5d7674e93a19caac43508178
/db.py
5ba46608243e0dc6b9e080a7d6661370af481ced
[]
no_license
joshua-deans/FitTrkr
a92682d0f0cf880e68186b396c5c89b3d57cf87d
cae51dd19a40d3e9f63e4663bd004396621aeb4b
refs/heads/master
2020-03-26T07:25:34.263140
2019-11-20T08:00:25
2019-11-20T08:00:25
144,653,775
0
1
null
2019-11-20T08:00:26
2018-08-14T01:42:23
HTML
UTF-8
Python
false
false
208
py
def DBconfig(): dbconfig = { "host": 'localhost', "user": 'root', "password": 'fitness2018!', "DBName": 'fitTrkr', "dictDB": 'DictCursor', } return dbconfig
[ "giovanni.hosang@gmail.com" ]
giovanni.hosang@gmail.com
bb9ea5783768afdeea7cd6a5508620b2d7af587d
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/tags/wxPy-2.9.2.2/wxPython/cfg_version.py
ebe70ff24da82d693db9366fc5c3806f62d8c9c3
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
# wxPython version numbers used in build VER_MAJOR = 2 # The first three must match wxWidgets VER_MINOR = 9 VER_RELEASE = 2 VER_SUBREL = 2 # wxPython release num for x.y.z release of wxWidgets VER_FLAGS = "" # release flags, such as prerelease or RC num, etc.
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
6e2244a1026602e0f26a5f99c52efe0e60411d11
bd8fde6dbf227013c9af44ea29646c397b91ca75
/demo/book/migrations/0001_initial.py
8556db280c06fd6d6d0efc58352831b990938a8b
[]
no_license
hersinniji/git_demo_drf
4aef66008fb808d0bc48c45a5025407d14399df9
6a06e0943e88b658d7b3278e2058a7b9de695157
refs/heads/master
2020-06-16T08:33:30.915129
2019-07-09T15:24:40
2019-07-09T15:24:40
195,524,695
0
0
null
null
null
null
UTF-8
Python
false
false
2,061
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-06-16 05:40 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
[ "noreply@github.com" ]
noreply@github.com
307573fb0a6e3d11504211c85b45339e89642a92
066ee4df594a5dc90335d271b9d5a1b1e2a4d34c
/y/google-cloud-sdk/platform/google_appengine/google/appengine/api/app_identity/app_identity.py
3e92c752ad31a363b9b061b8fc72201afdbe81a1
[ "Apache-2.0", "LGPL-2.1-or-later", "BSD-3-Clause", "MIT", "GPL-2.0-or-later", "MPL-1.1", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ychen820/microblog
a2d82447525325ec58285c2e5db58b79cceaca1b
d379afa2db3582d5c3be652165f0e9e2e0c154c6
refs/heads/master
2021-01-20T05:58:48.424357
2015-04-28T22:03:09
2015-04-28T22:03:09
32,948,331
0
2
BSD-3-Clause
2020-07-25T05:04:35
2015-03-26T19:45:07
Python
UTF-8
Python
false
false
17,342
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "ychen207@binghamton.edu" ]
ychen207@binghamton.edu
c38f76869d89fa31fa4b8ef71ec6a19879b98f2c
41e02a6cb11149501c8cb05cf549e6497da146b3
/social_networking_project/settings.py
710df13989abd3782da33747c3675a1f9f71d4d4
[]
no_license
muffajal53/holiday_list_by_IP_address_django
f47e8de99ed6455754240d8d8b6f683672e8730d
d05a39a1314c72acd71a7af22ee83ae58ea2d823
refs/heads/master
2023-04-26T22:22:20.825232
2021-05-31T19:44:28
2021-05-31T19:44:28
372,609,723
0
0
null
null
null
null
UTF-8
Python
false
false
4,638
py
import os from pathlib import Path from datetime import timedelta # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ ...
[ "muffajalbohra53@gmail.com" ]
muffajalbohra53@gmail.com
4e0dfcb09266aa4877dbacacaf17ce807eaf09d9
289818a63e8213606fd437c0ab29f0dba6750357
/search/urls.py
147bf92651599f02ee1e91018879a0b443ddbdda
[]
no_license
dzynin/django-mtr
642b9e4b7f568d89059cedcf3dd8a4061a94ba83
15c9ba13b2f91cacd76b9c04da1c6ee4cdfe9aeb
refs/heads/master
2021-05-29T07:29:42.303984
2015-09-06T13:54:41
2015-09-06T13:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from django.conf.urls import patterns, include, url urlpatterns = patterns('', #url(r'^$', include('haystack.urls')), #url(r'^advanced/$', 'search.views.index'), #url(r'^autocomplete/$', 'search.autocomplete.autocomplete'), url(r'^$', 'search.views.results', name='search'), )
[ "derek@disflux.com" ]
derek@disflux.com
526eb57ef6986d95baa70b2a0a489faab9ae04ff
3b0feb458896e588297db26aab635b45b3765cbc
/hbaseread2.py
7106b530f5b27b128083e180b0e743803be1d8bb
[]
no_license
guoch/sparkproject
af384551be26261471cc8ad766010c3f8cda8252
2afd598ec7d6849268230f28e9ffc970a5a61d88
refs/heads/master
2021-01-10T11:03:26.060566
2015-12-26T13:16:07
2015-12-26T13:16:07
47,060,497
0
0
null
null
null
null
UTF-8
Python
false
false
8,971
py
# -*- coding: utf-8 -*- from __future__ import print_function import json # from jieba import analyse import jieba from pyspark import SparkContext import sys reload(sys) sys.setdefaultencoding('utf-8') """ author:Kira(Chenghao Guo) 根据时间筛选top k Create test data in HBase first: hbase(main):016:0> create 'test', 'f...
[ "linuxwalkers@163.com" ]
linuxwalkers@163.com
60e7629da9f99587fad3ae8ca2de4fb0451aa8b9
a2c66f592770b04d27319b470ff12ec0342bf326
/Reinforcement-Learning/K_armed_bandit.py
7322f6d932093342c34af29782e7a55f9222e7d3
[]
no_license
Zhangyxyyx/Machine-Learning
5f4ffcd4604dcf72105512f37606f866c1b0fd00
434b71d884905e88c4535249109cca757924b6a7
refs/heads/master
2022-02-23T13:40:26.890800
2019-10-16T08:22:14
2019-10-16T08:22:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
""" a implementation of K armed bandit, the algorithm is in page 375 of book <Machine Learning> """ import random R = [1, 2, 3, 4, 5] e = 0.5 r = 0 arms_num = 5 Q = [0 for i in range(arms_num)] count = [0 for i in range(arms_num)] T = 100000 for i in range(T): p = random.random() if p <0.001: k = rando...
[ "zhangyxxxxx@163.com" ]
zhangyxxxxx@163.com
72d9567ddd4b1974eda07d6f6f72ea3423236bd1
f16eaef4075a55f46d53729ab0612b5111b176d4
/00_data_structure/binary_tree.py
c425f9de960ade636c14ee2118274fe230d46f46
[]
no_license
K-AlfredIwasaki/coding_interview
cfc590feb2414e0a7403a2f5a3d2497ea78a4f02
470ccbc8ee18f3d23bfa5bbdc93b72867d0b2647
refs/heads/master
2021-08-23T23:06:48.112588
2017-12-07T01:03:01
2017-12-07T01:03:01
103,080,454
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
class BinaryTree: def __init__(self, content, left=None, right=None): self.content = content self.left = left self.right = right self.depth = -1 def __str__(self): return "(" + str(self.content) + " ( " + str(self.left) + " | " \ + str(self.right) +...
[ "alfredki@umich.edu" ]
alfredki@umich.edu
37d58cea0c7347774b5080d6bb595b4f918caefd
5edded0c82e56dd57b120fec7ff0f3ba9ed18961
/shape_calculator.py
d1308e70467b64062286ab87dc9f6a1aa8769684
[]
no_license
jorgechavarriaga/PolygonAreaCalculator
933d87798c6c5f5ae8c4fb6de3fd4d0de978b492
32c7604e938d68569075afd0bcc91b344b930d44
refs/heads/main
2023-03-28T19:43:53.056877
2021-03-29T13:00:28
2021-03-29T13:00:28
351,799,693
0
0
null
null
null
null
UTF-8
Python
false
false
2,379
py
import math # Rectangle class class Rectangle: # When a Rectangle object is created, it should be initialized with `width` and `height` attributes. def __init__(self, width, height): self.width = width self.height = height # If an instance of a Rectangle is represented as a string, it sho...
[ "jorge.chavarriaga@chavazystem.tech" ]
jorge.chavarriaga@chavazystem.tech
d2a77564db9f4569384851f86e6be093484a266c
5b56c0695d0582186f8aa902e51551c2c297c292
/python/generateNormalizedData.py
5e5dc13c2095ee25e5cb3dc4fb056ce8a22717d5
[]
no_license
IamcalledPhil/bechdel-test-data-visualisation
caab8d3ea8ee04c3f5028ca5e99f2d6c4ffcf62c
ff26f695e9c1af7eacad83c67e8b570aa6610b76
refs/heads/master
2022-09-19T00:41:56.358308
2020-01-11T23:12:45
2020-01-11T23:12:45
267,276,358
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
import json import io with open('moviesBechdel.json') as f: moviesBechdel = json.load(f) with open('moviesBudget.json') as f: moviesBudget = json.load(f) normalizedMovies = [] for movie in moviesBudget: for bechMovie in moviesBechdel: if movie["imdb_id"] == 'tt' + bechMovie["imdbid"]: ...
[ "philip.cohn@speakap.nl" ]
philip.cohn@speakap.nl
a4208a1024afaa7f06714847c3404d14fb8e0bcc
d9a1d531af2a553c214f29bdff0f8f69352c862a
/Exp 6/script.py
1bf87580f4864cecb6466c78a1c75b5ce89ff926
[]
no_license
kante95/FP2
7831685878c916960262d13a444097077c34cd67
7f58ed3be0b74ce526ddceaccd38e624cfbee305
refs/heads/master
2021-05-15T15:12:17.925441
2018-01-25T10:58:34
2018-01-25T10:58:34
107,283,219
0
0
null
null
null
null
UTF-8
Python
false
false
7,425
py
import numpy as np from scipy.optimize import curve_fit import matplotlib.pyplot as plt plt.rcParams['font.size'] = 16 directory = "data_rubidium/" def multi_lorentz_peak(w, Voff, Vlorentz, width, wresonance, Vlorentz2, width2, wresonance2, Vlorentz3, width3, wresonanc...
[ "canterimarco@gmail.com" ]
canterimarco@gmail.com
0dd949bf525d884fb0afce61ba4dc913e5040fd5
c9b1460e5620bb37aa3b087a25395aa722438bf2
/decorators.py
f8985725ea12d357b3f708bde59dfa6412b1f58d
[]
no_license
11Nithya/Python_Training_task
cdddc9c046aa7e37a2bf838beaea42633a8e27d9
1262caaec0848925a793da50b3fbc32901a6f729
refs/heads/main
2023-05-09T11:12:27.247617
2021-05-18T07:08:39
2021-05-18T07:08:39
346,230,221
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
#Explain what are all the use case of Decorators, How control flows in decorator invoke, Code Examples of use cases Def: A decorator is function which add extra functionality to the existing code without changing the existing code Eg: Time decorator def _time(func): def wrapper(*args ,**kwargs): sta...
[ "noreply@github.com" ]
noreply@github.com
2358df38a615ac477179f9b02b827d6a91d6cba4
45b2504be9214e1b4e25aa41b9043ffa808215fa
/blog/blog/urls.py
4325a6851fc976aebac6b58c669670f3676f81fe
[]
no_license
jai-singhal/pyclub
b53a9d2ac1f5f2e8332d242c681700e67af20afc
a7d1eca85e225d9d852c126bfe58da233ba1e363
refs/heads/master
2021-07-09T09:18:49.653342
2017-10-06T17:27:42
2017-10-06T17:27:42
106,029,120
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "=" ]
=
321e86f6cf9ddfe5c8462d2bcd3d5a5937364cdf
f086cbd31a55226ba4d04545abeca0953fffa6af
/build.py
02942ef81a552c4a1795df0a2c55fc13e79404db
[]
no_license
kyungjejo/exprgram__old
603f8c245a1364a6c29fff8c48e78e15862c1b5b
8f29527c0a319f0e427d48077c50334cf7524aa6
refs/heads/master
2022-12-14T09:59:24.137871
2018-08-03T10:56:41
2018-08-03T10:56:41
139,372,160
0
0
null
2022-12-07T23:51:49
2018-07-02T00:18:28
JavaScript
UTF-8
Python
false
false
1,371
py
import subprocess, re, os # move build folder from exprgram-front to backend # subprocess.call("rm ./backend/build") PATH = os.getcwd() subprocess.call("cp -rf %s/exprgram-front/build %s/backend/" %(PATH,PATH), shell=True) # # subprocess.call("python ./backend/manage.py collectstatic", shell=True) subprocess.call(...
[ "kyungjejo@gmail.com" ]
kyungjejo@gmail.com
09fe65322acf3ae806998d7a71fd25ea26018983
b639a3fbda373b0efb5e6eac6ca682f0be789cb0
/modules/worker.py
0ecc62afc41e4590ca2cb0771dffab0e6248b2c9
[ "MIT" ]
permissive
Dinxor/tstore
98b497c873124c492a9b35ff1f87df218e4d2bfd
ff2bb229ad2169926046076022b5a37025e98877
refs/heads/main
2023-08-07T03:38:40.645754
2021-10-02T05:56:44
2021-10-02T05:56:44
412,704,997
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
from time import sleep def worker(tt): name = 'worker' sleep(1) cnt = 0 source = tt[name].get('queue') while 1: if not tt[name].get('is_working', False) and tt[name].get('is_enable', False): tt[name].update({'is_working':True}) elif tt[name].get('is_working', False) and ...
[ "61650836+Dinxor@users.noreply.github.com" ]
61650836+Dinxor@users.noreply.github.com
3dd993f6f03823131322acc17b971c0a91733cae
26938c6646e7a645037c037a3361633f568cdd6d
/src/DSSCDB/cron_wsgi.py
aab7ab613d311980cb7f9ff05d13041531d122ed
[ "AFL-3.0" ]
permissive
Elsenety/DSSCDB
4f2fc9533d82de2e1d65c155e086ad2d7e4791a0
6631110c1bb477d45eab9c15324826958cd61ed6
refs/heads/master
2023-04-18T08:19:46.391491
2018-06-11T21:47:23
2018-06-11T21:47:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
import os from django.core.management import call_command from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DSSCDB.settings") application = get_wsgi_application() from django.conf import settings try: import uwsgidecorators @uwsgidecorators.timer(60) def...
[ "carljohan.hambro@gmail.com" ]
carljohan.hambro@gmail.com
e48aaced021300f583f462fe3ef463ac9d0e8899
039b316064097dddce158adfd66684eb8c573760
/NumberClassificationPerceptron/constantsNegative.py
47b5fccf30e14394e384717a30b3d1cdd0aeeb72
[]
no_license
Akshat-Raj-Vansh/neural-networks-classification
df7c1fe7a7a09f923a5824f29d1d7e8a0f56e4d2
0e2fb6d86ff738d66015de86a1617153945cc91d
refs/heads/main
2023-07-26T11:20:14.625710
2021-09-06T10:35:52
2021-09-06T10:35:52
403,593,374
0
0
null
2021-09-06T11:16:36
2021-09-06T11:16:35
null
UTF-8
Python
false
false
1,453
py
#-1 : 111 1-11 1-11 1-11 111 #1 : -11-1 -11-1 -11-1 -11-1 -11-1 #2 : 111 -1-11 111 1-1-1 111 #3 : 111 -1-11 111 -1-11 111 #4 : 1-11 1-11 111 -1-11 -1-11 #5 : 111 1-1-1 111 -1-11 111 #6 : 111 1-1-1 111 1-11 111 #7 : 111 -1-11 -1-11 -1-11 -1-11 #8 : 111 1-11 111 1-11 111 #9 : 111 1-11 111 -1-11 111 import numpy as np i...
[ "puniayash@gmail.com" ]
puniayash@gmail.com
fae9fc8b3c6d53c95d9785dffe79b4025eb110d9
cab84979234c907896275290fdfcbe6d6db7857d
/src/api_time_set/migrations/0001_initial.py
14b7184903365c8e16af300b3bdd0e6fb2ff99be
[]
no_license
ntdo2506/Football_pitching
80eea36fa48ee060b795146fbea64f81e6875f15
b344d3fd38bf1777381db9973a40550fda3adf94
refs/heads/master
2023-04-07T14:04:41.558422
2021-03-01T12:46:32
2021-03-01T12:46:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
# Generated by Django 3.1.2 on 2020-10-05 15:48 from django.db import migrations, models import django.utils.timezone import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TimeSetModels', fi...
[ "ntdo.13cdt1@gmail.com" ]
ntdo.13cdt1@gmail.com
4dafe2fa7f0fdf91b426d21f9eba0438c236c084
966108cddefb96ea53b579483afe54f60dfd174d
/args.py
fada44f45b6497efcd9785b63c1db7251a2be7d3
[]
no_license
adelaidehsu/Personalized-Dialogue-Response-Generation-from-Monologues
9f9aaa32f2e5a476be855752c474e91690d71166
85f1b9596cfb6abfe5a0ab803ff860203579de15
refs/heads/master
2021-10-25T19:33:52.437441
2019-10-21T07:45:01
2019-10-21T07:45:01
188,363,218
4
1
null
null
null
null
UTF-8
Python
false
false
3,576
py
import argparse def parse(): parser = argparse.ArgumentParser( description='You have to set the parameters for seq2seq, \ including both maximum likelihood estimation and \ generative adversarial learning.') parser.add_argument("--file-head", type=str, default='None') parser.ad...
[ "hsu.adelaide@gmail.com" ]
hsu.adelaide@gmail.com
99ecf43ecf798e941c912684222865758bf4ac30
37279a6b70fd432d96087f2154ded529ffbc0c9e
/dynamic_programming/1143-Longest-Common-Subsequence.py
19ae64fa6848196a1a789fa9fc58963e6ac563b1
[]
no_license
abhishek-jana/Leetcode-Solutions
cfe1bad64fda2421ba85f23121ca50ffc59357da
9cd5d12b7438c646226a5e174571e3dbf339a179
refs/heads/master
2020-12-02T02:04:41.784082
2020-01-22T13:07:13
2020-01-22T13:07:13
230,852,748
0
0
null
null
null
null
UTF-8
Python
false
false
2,187
py
''' Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from the original string with some characters(can be none) deleted without changing the relative order of the remaining characters. (eg, "ace" is a subsequence of "abcde" wh...
[ "abhishekjana6@gmail.com" ]
abhishekjana6@gmail.com
9693eb29e019a30e3f90532099f41b13e8b5c7c6
5d4bf79b0eabb6cd3a659f14d1d8471956a32a85
/pyBrisbane.py
20b8aa2d7f3d8ede3f12a6e17c17304f7df6222a
[]
no_license
crystalmanner/scrapy_source
8c08d1b4aafc16df58d647ad308506e252a6c0d5
5cbdca543bc05a40942c801334f45e4b27555725
refs/heads/master
2023-02-21T10:33:00.857451
2021-01-21T06:58:01
2021-01-21T06:58:01
331,528,735
0
0
null
null
null
null
UTF-8
Python
false
false
3,127
py
import pyMsql import gsheet import json import re def get_price(cloth_pattern_number): ucpn = str(cloth_pattern_number).replace(" ","").upper() if 'Chiltern'.upper() in ucpn: return 6.95 elif 'Cotswold'.upper() in ucpn:return 8.25 elif '530' in ucpn: return 7.25 elif '531' in ucpn: return 7.25 ...
[ "crystalmanner130@gmail.com" ]
crystalmanner130@gmail.com
a3c3810d6ff9529ce543b09f87cac82f6a091422
7b772acb8daf788f44191becb32accfee866a06c
/nociones_basicas/indices_slicing.py
44337fbfbef05e573a56885bfff0b4e07bb96640
[]
no_license
jeysonrgxd/python
5793b912f5c0fe1929fdba40b9a4c50ecb49fbad
f3ac045e6ef4862b24da7ff16f5e195cf0bfb7f0
refs/heads/master
2023-08-15T22:16:51.767219
2021-10-23T17:48:41
2021-10-23T17:48:41
258,714,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,376
py
palabra = "python" ''' | P | Y | T | H | O | N | ------> | 0 | 1 | 2 | 3 | 4 | 5 | <------ | -6 | -5 | -4 | -3 | -2 | -1 | ''' print(palabra[0]) print(palabra[1]) print(palabra[2]) print(palabra[3]) print(palabra[4]) print(palabra[5]) print("\n") print(palabra[-6]) print(palabra[-5]) print(p...
[ "jeysonrgxd@gmail.com" ]
jeysonrgxd@gmail.com
5928531477adae181ea7e8284d8747a773a140c6
622b9e5f5c58b746574898dda24d4eb992fdc78b
/app/utils/file.py
d03b18fe992083f7e9e862e1f6e03d01829bf98a
[]
no_license
chajeehyung/hackathon-finish
9953b403e2434c55c31238642b67c8caad950c11
3c8b9235ff8e76b4950e6282d8ab5a911c316af6
refs/heads/master
2022-12-10T07:32:54.939835
2018-11-16T10:16:24
2018-11-16T10:16:24
157,850,240
0
0
null
2022-12-08T01:17:46
2018-11-16T10:15:33
Jupyter Notebook
UTF-8
Python
false
false
536
py
import urllib.request # from io import BytesIO # # import magic # import requests # # # url로부터 파일을 임시 다운로드 # def download(url): # response = requests.get(url) # binary_data = response.content # temp_file = BytesIO() # temp_file.write(binary_data) # temp_file.seek(0) # return temp_file # # # 파일 ...
[ "chajee308@gmail.com" ]
chajee308@gmail.com
4d0dc9942b5c1604a67ef352576e93d48ef56627
22319631f2027c3bfa724c283bf7762992336b5b
/wsgi.py
b4080b9296ea0f3fa14dfb463816e253ff9b7db3
[]
no_license
rodolfolotte/webgis
eefcb7912ae40d3ae353c154ad08d5fe67f75e15
e27d1d14f08262ea37de6079abc3e7dd12c74bb6
refs/heads/master
2022-12-03T02:04:51.409836
2020-08-19T17:50:24
2020-08-19T17:50:24
288,797,772
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for webgis 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "rodolfo.lotte@gmail.com" ]
rodolfo.lotte@gmail.com
ee126199d7cd2366e17798ecf8a532b5b6192bb8
1b83e95009f7e883c9da4ec50aa19f9902ccc9ab
/python/dazl/cli/sandbox.py
0b46a18f9aa01aa4038d3d51f011f02545301360
[ "Apache-2.0" ]
permissive
ballon3/dazl-client
327ec6d2a3acbd3748fd03766d93acb2699a7805
baa9eb975cac26a000fed076f3d1c23569068f5b
refs/heads/master
2021-02-27T06:29:45.046458
2020-02-11T22:03:17
2020-02-11T22:03:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 from asyncio import get_event_loop from argparse import ArgumentParser from .. import sandbox from ..util.dar import DamlcPackageError from ._base import CliCommand class SandboxCo...
[ "davin.tanabe@digitalasset.com" ]
davin.tanabe@digitalasset.com
8b61f441f981bd4050e418c7940bb4153e5c05ff
1f813c3cd6a9d293acfbc81f198c64f816a9a95d
/devel/.private/pkg_ros_iot_bridge/lib/python2.7/dist-packages/pkg_ros_iot_bridge/msg/_msgRosIotActionResult.py
f1b43f02572883f9b6a4854923a6d4c6c3dfc006
[]
no_license
koteshrv/Vargi_Bots_1418
5ada79746785a9f9cc0e1d686a1dd2702c9e0f0f
6bcf843c7150c93caee2b596e0864749c51b6155
refs/heads/main
2023-01-06T03:42:53.555701
2020-11-08T17:36:59
2020-11-08T17:36:59
302,916,294
0
0
null
null
null
null
UTF-8
Python
false
false
13,021
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pkg_ros_iot_bridge/msgRosIotActionResult.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import actionlib_msgs.msg import genpy import pkg_ros_iot_bridg...
[ "kkotesh100@gmail.com" ]
kkotesh100@gmail.com
00cb52e288e09752cd4ee585a1331f3674043452
d3b3a68db7d70f85a72d30818ee198bb52f5720a
/venv/bin/pip
f0b1636348c46fac420d468426f2a9f1afd58c5f
[]
no_license
Cloudxtreme/billing-7
70cef72acb5979395148e50974f0bddd8f9927bc
484b18735c38da2010b7fc98451db5abecf616a3
refs/heads/master
2021-05-28T22:54:49.313520
2015-07-03T03:58:42
2015-07-03T03:58:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
#!/Users/nlaird/git/billing/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nicholas.laird@invincea.com" ]
nicholas.laird@invincea.com
285229b76942c122d76afab9973196c4ef8e92cf
9f613a4cb3496be67ff8e8975f8f2af6ad3823d8
/DFT.py
02aabbafe38f2938587b6ba3bbda6c408ca543a9
[]
no_license
anguyen216/blob-detection
902156a62e6960015e2c9bd60f3de379e98a5cba
3ad952655e693f65321a70c0d0ca1cc1f3478b04
refs/heads/master
2022-12-14T10:43:58.046624
2020-09-11T00:41:06
2020-09-11T00:41:06
294,551,246
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
#!/usr/bin/env python3 import numpy as np def DFT2(image): """ Implementation of 2D FFT using a numpy built-in FFT Input: - image: 2-D image of grayscale image that need to be transformed Output: - 2-D matrix of fourier transform of original image """ # only take grayscale image or 2D ...
[ "noreply@github.com" ]
noreply@github.com
eb1bf55848c22eab9a285c204849f1f620852fed
6c4f6ce13304b6a440a44dc175b2a1c796988835
/etc/gunicorn.conf.py
252518bc9788cf9b3c4f78c27548487998728d8f
[]
no_license
timmyomahony/bitbucket-jekyll-hook
6e72dc5797177d0d5b5e7aef24987732f5ac55b3
92836af4545e72184c9a93fbbe3b1e12c58d2803
refs/heads/master
2021-01-19T12:36:27.791591
2019-02-26T09:09:30
2019-02-26T09:09:30
13,768,277
6
1
null
null
null
null
UTF-8
Python
false
false
156
py
bind = "127.0.0.1:50100" accesslog = "/path/to/virtualenv/logs/gunicorn/access.log" errorlog = "/path/to/virtualenv/logs/gunicorn/errors.log" workers = 1
[ "me@timmyomahony.com" ]
me@timmyomahony.com
f5ff027f63b9767fc250dafaf13777bd3b9f2eca
0473079081af2d3490ba96313914940e00c3eb2e
/RLcode/run_lander.py
473d41bce17cca17f2777c50ff9c92116d116e95
[]
no_license
sandra-93/Reinforcement_learning_project
070a9fe1ca7100c983e9999952bffcd53089ebea
bac0ecded78dbba25b2964b39dd20ce54b5fddfa
refs/heads/master
2020-12-29T10:18:28.938665
2020-02-03T00:04:53
2020-02-03T00:04:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,243
py
import linear_policy import nn_policy import random_agent import gym import sys def run_lunar_lander(env, num_episodes, policy_function): """ runs the lunar lander environment for a specific number of episodes with a specified policy function. """ rewards = [] for episode in range(num_episod...
[ "christof.bless@uzh.ch" ]
christof.bless@uzh.ch
3cddee9c805ccbe332f83e058515fb0d2098e8de
bb285aa0fa9203ab07c092c47ff5470fa5034ee9
/myEnv/bin/chardetect3
d4c9ac50d31e65d01e518921aa3858d4cf1b4cf4
[]
no_license
surathjhakal/programming-voting-app
eac7871942ab9ebe488d598ead9692a0b78bacf4
ed4bd8c517dea889c5ec9240d7151dbc469c5fc7
refs/heads/master
2023-04-15T05:35:10.491455
2023-04-08T09:24:15
2023-04-08T09:24:15
339,997,752
0
0
null
null
null
null
UTF-8
Python
false
false
278
#!/home/surath/Desktop/myWork/django-folder/djangoProjects/myEnv/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jhakal.surath@gmail.com" ]
jhakal.surath@gmail.com
7dcadc05edd75d419a5e1e3209018e6647099169
1756a97999baa79b2ab066ea548b631ec61506a5
/cs399_Theater/main/migrations/0001_initial.py
4e79b19524c09726186cfbf6275bd2921aab601c
[]
no_license
sk367/cs399_Theater
b8dd84a05f3521ac69337bf2f789b2826930791f
2c1c47b97d5e2db409d009d85c7334ebe204ea74
refs/heads/master
2016-09-05T11:24:51.074328
2015-02-06T15:49:40
2015-02-06T15:49:40
29,934,928
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Events', fields=[ ('id', models.AutoField(verbo...
[ "sirbubbles42@gmail.com" ]
sirbubbles42@gmail.com
b0dbd6c7e93b2d90b29a38a86057e7e9f6e8d77b
cbbf17379c05ece1bab8a128c03bdca53e74c3e2
/convolution.py
e137218cd61b457aab775e77d3bb8eac7fd7d99a
[]
no_license
pooplar/Bio2Vec
f75558ad65165fb5cf33976c87324409b56df5ec
a5f781f81169909d3a6716e6e7988d3c0c1e4ca4
refs/heads/master
2023-09-02T19:55:51.091149
2021-10-21T03:14:19
2021-10-21T03:14:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,503
py
''' 1.Loading data and then divide it into x_train, y_train,x_test, y_test. 2.Forward propagation. 3.Back propagation. 4.Training the network ''' from keras.models import Sequential from keras.layers import Conv1D, MaxPooling1D, Input, Dense, Flatten, Dropout,concatenate from keras.layers.advanced_activations ...
[ "noreply@github.com" ]
noreply@github.com
cbb569ecca9d675c16c2e00f858612a271a98327
d4cbfd493ecc5b9e17ce3c11f303793b3d1f1fae
/Miscellaneous/RemoveDuplicatesFromList.py
80cbfca933d172227674a63d13cc8f4c997d8c8b
[ "MIT" ]
permissive
ArmenBaghdasaryan14/Algorithms
45aa18cb26eaa6711ac9aa4b914af905ca61e1b5
8581947c8e73d50bb3324377dea7914afc066de6
refs/heads/master
2020-12-14T17:06:05.112448
2020-02-10T00:37:04
2020-02-10T00:37:04
234,818,885
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
# Remove duplicates from an unsorted array/list # # The following method consists in iterating over the list and # adding each element to a set. By definition, a set consists of # unique values, therefore, duplicates won't be added. def remove_duplicate(inputList): filterSet = set() for i in inputList: ...
[ "armen.baghdasaryan14@gmail.com" ]
armen.baghdasaryan14@gmail.com
b9ab2321337dd00ca4e9a93c95c612a4f9be0b0f
0591ab396b78fa873187e49e0feb873a9c6bbfb9
/DjangoUeditor/forms.py
984de90d4fd8045bbf37632a539daf33d2da8053
[]
no_license
Xiao01/news
eb7daa2afb5308b56439050c401d88e49b3e9750
0c63169772f41af855bebd8e3fa408654c013daf
refs/heads/master
2022-12-08T23:13:00.057529
2019-06-24T08:04:52
2019-06-24T08:04:52
193,461,512
0
0
null
2022-12-08T01:47:09
2019-06-24T08:04:12
JavaScript
UTF-8
Python
false
false
1,427
py
#coding: utf-8 from django import forms from .widgets import UEditorWidget from DjangoUeditor.models import UEditorField as ModelUEditorField class UEditorField(forms.CharField): def __init__(self,label,width=600, height=300, toolbars="full",imagePath="", filePath="",upload_settings={},settings={},command=...
[ "401607178@.qq.com" ]
401607178@.qq.com
019ef2966945369f5a6c2c5b55fe3039f975488f
a4ea411b64409f72cea45f6014afdf08869b9e28
/ros/benz_navigation/scripts/wheel_odometry_benz_dirimu.py
81bee863d8e1706578c59666cdf9035abf10b914
[]
no_license
SiChiTong/TukubaChallenge
858a168180e9db5d03446e9917ef8d4093319074
a4b19bdad743cee3b0d6e131ea09db511b03253e
refs/heads/master
2021-12-26T06:53:00.057330
2017-12-12T12:16:07
2017-12-12T12:16:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,908
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import roslib; #roslib.load_manifest('wheel_odometry') import rospy import time from std_msgs.msg import * from nav_msgs.msg import Odometry from geometry_msgs.msg import Twist from geometry_msgs.msg import TransformStamped from numpy import * from tf.transformations import...
[ "terakenxx@hotmail.co.jp" ]
terakenxx@hotmail.co.jp
0840c9f42cbaad01720dc6260a1278c6e4d69ae1
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/nilearn/2017/8/conf.py
518d965d16cfb73d3a77f680140733488b524154
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
10,384
py
# -*- coding: utf-8 -*- # # nistats documentation build configuration file, created by # sphinx-quickstart on Fri Jan 8 09:13:42 2010. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
dfacabd6e8e05e277bf6e7d67608128c52ab31b9
6b984499993b757d094afb773c74bce48629cc8c
/sito/payrol/views.py
8c16313b245eb41d2fcc5d122cb9c2e23ee8ce8a
[]
no_license
joemash/django-ansible-deploy
9e5f825e24144f71d1f388f156fbf389bba2c699
c04f9e3f1ef20620571b3242bbdbf4bf4bd21597
refs/heads/master
2020-03-18T16:52:22.006457
2019-01-10T21:30:34
2019-01-10T21:30:34
134,990,830
0
0
null
null
null
null
UTF-8
Python
false
false
3,393
py
from django.shortcuts import render from django.views.generic import TemplateView from django.http import HttpResponseRedirect,HttpResponse,JsonResponse class BaseView(TemplateView): template_name = 'payrol.html' def post(self,request,*args,**kwargs): myitems = [] import locale locale.setlocale(...
[ "josemash4@gmail.com" ]
josemash4@gmail.com
f852a218085e5ed1cd1d88039a328daaf2000cb3
3aca185c65285b4dd37d7fd5b82c225a61d6af6b
/helper/__init__.py
712e4717a9aa95c1eb7f30697218847a673fca16
[ "MIT" ]
permissive
m2u/m2u
04947236d269619ed33b8ea5730ee2ce76307820
121a9cded0ff10d10a438c8510ece7f6b0cb6176
refs/heads/develop
2021-01-02T08:14:23.231967
2017-05-19T19:05:07
2017-05-19T19:05:07
28,252,425
31
20
null
2017-09-08T07:10:04
2014-12-20T01:02:00
Python
UTF-8
Python
false
false
48
py
from systemhelper import * from helper import *
[ "alfalfasprossen@gmail.com" ]
alfalfasprossen@gmail.com
83f3c70c6a5fc372506556fa465a2440a9cd0dde
a84acc182863362951b3b5405732c822f92e1d48
/navier-stokes/data/16x16/t1/ns.py
c03786902725528cf42b877cef49b8eb644c608f
[]
no_license
mulligatawny/me408-final
86edd7bc82a928bbca6dce3ec9365219b0c2f5f7
ffbd01c4a0d849ad186c2ade87716d01fb54668f
refs/heads/main
2023-03-23T07:30:00.253904
2021-03-19T23:24:11
2021-03-19T23:24:11
349,128,933
0
0
null
null
null
null
UTF-8
Python
false
false
3,230
py
############################################################################### # 2D Incompressible Navier-Stokes Solver with Periodic Boundaries, Galerkins' # # Method and Adams-Bashforth Time Integration # ############################################################################### ...
[ "mail.markbenjamin@gmail.com" ]
mail.markbenjamin@gmail.com
7143e094b37877a6546a35c155447afe22e4ac98
ee50c362e090b03276fcda9509632df3f2088292
/easyirctests/test_connection.py
a65059446ddf4999e1c824fc2cc01ccbbe7605c8
[ "BSD-2-Clause-Views" ]
permissive
youknowone/easyirc
a208eacaeefb29eca8e83e9691f9ec7f5f136454
294630acb4ec931b0deff342faf1904120200650
refs/heads/master
2021-01-01T15:44:31.606522
2017-12-29T14:59:58
2017-12-29T14:59:58
9,749,876
3
1
null
null
null
null
UTF-8
Python
false
false
4,284
py
# -*- coding: utf-8 -*- import time import pytest from easyirc.connection import DispatchConnection, CallbackConnection, EventHookConnection from easyirc.command import protocol from easyirc.event import EventManager from easyirc.const import * from easyirc import util from mocksocket import MockSocket from test_sock...
[ "jeong@youknowone.org" ]
jeong@youknowone.org
bd5682cfb8e9da71bcfca361cb7399d2afc94949
c70e49ec20fbae95e34321d01381859b08e48397
/12/script2.py
b5c72b706882867b790ec86edbc68cd71c569db1
[]
no_license
benx45h/advent-2020
4c915f1d00c589244ce83ab212790b888d3874a7
a12f0b8dbf5041131a693d8202585353f88a6e07
refs/heads/master
2023-03-31T19:07:32.046285
2021-04-02T19:39:38
2021-04-02T19:39:38
319,415,795
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
ifile = open('input.txt','r') lines = ifile.readlines() lines = [line.strip() for line in lines] wpos = [10,1] dpos = [0,0] for line in lines: cmd = line[0] num = int(line[1:]) if(cmd == 'F'): dpos[0] = dpos[0] + num * wpos[0] dpos[1] = dpos[1] + num * wpos[1] if(cmd == 'N'): ...
[ "benx45h@gmail.com" ]
benx45h@gmail.com
10d022c28ea04f0d29c2b03b00f591c964714d6c
1b7da2f11e509828476e21ca665279602de7b509
/config/urls.py
67cbc34adf85f12a64480899e9d4644511448717
[]
no_license
rosenene/oap
922f3955e4f3a583e6829eed0d518f2c7f806d58
32598b7d6c9d6677c889258f21752878ad30d0a5
refs/heads/master
2022-04-26T20:31:37.850145
2020-04-16T07:47:19
2020-04-16T07:47:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,330
py
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin # from django.conf.urls import url from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView from portal.cv_registration import urls a...
[ "marijani.hussein@eganet.com" ]
marijani.hussein@eganet.com
d1f2ea3914e215f6474197ddc8d3171da4a83c96
fd7ae9a979302bf868f681a16215d425cb62afe2
/config2.py
ad060d9fb824bac5d0d5d6148d386788c507f409
[]
no_license
b0olean/bot-discord
2e5a9980375db367eee3c62cc6ab4c816188a88f
604f8da5ac83217beec3af17c7d7b58fed511ee7
refs/heads/master
2023-02-19T05:12:58.456059
2021-01-20T15:05:07
2021-01-20T15:05:07
323,875,879
1
0
null
null
null
null
UTF-8
Python
false
false
56
py
TOKEN2 = 'тут может быть ваш токен'
[ "noreply@github.com" ]
noreply@github.com
4a276c24541e49c8fd21b853d4155a98f2eb287a
f6ffcb2111c677916525fb25554ef5b7d2c9cbbe
/blackjax/inference/hmc/trajectory.py
81f75b3d97167ee2e57ed28debe907fd3e765112
[ "Apache-2.0" ]
permissive
prashjet/blackjax
748b4b91c279217af7870ec18516510a3d0799e4
fe10807d04c8d1c2dcdd51e0db0ba54b4dceb88e
refs/heads/main
2023-08-11T20:17:40.395768
2021-08-05T20:06:22
2021-08-05T20:06:22
399,069,946
0
0
Apache-2.0
2021-08-23T11:02:01
2021-08-23T11:02:00
null
UTF-8
Python
false
false
22,197
py
"""Procedures to build trajectories for algorithms in the HMC family. To propose a new state, algorithms in the HMC family generally proceed by [1]_: 1. Sampling a trajectory starting from the initial point; 2. Sampling a new state from this sampled trajectory. Step (1) ensures that the process is reversible and thus...
[ "noreply@github.com" ]
noreply@github.com
59cc5665c38dbcef218d2ee55b0b38ceec76cb87
eb93eae6d0dc4de84cb90ae0b87843551979e794
/pytest/test_code/test_employee.py
e3844b67e10c834eb9ae1a36b5fe6ca3761805f4
[]
no_license
mashilu/hello-python
d891f7a12bc4d2dbd6dacd509ba3d491046bb687
e5c45a6a4ebc7694c46243790000a7433a68ebf9
refs/heads/master
2020-04-28T11:10:51.407808
2018-07-20T09:10:55
2018-07-20T09:10:55
30,918,503
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
# -*- coding: utf-8 -*- import unittest from employee import Employee class TestEmployee(unittest.TestCase): def setUp(self): self.employee = Employee('Ma', 'Shilu', 10000) print('setUp') def test_give_default_raise(self): self.employee.give_raise() self.assertEqual(self.emp...
[ "mslbuaa@163.com" ]
mslbuaa@163.com
8be463a908ee6202a38eb8019c0ad190142115ff
369bcbbdecf3163889358bd340c33b8ec53e52ae
/modules/python/models/train_distributed.py
3000907a58e6413bcedee108cebf8f3ddab85339
[ "MIT" ]
permissive
tianap/pepper
47e9b22d834623a12cae243c85b88cf4b9b5d61e
1c6d2cdad11489ca873b97566c15f70213ad2824
refs/heads/master
2021-02-13T20:28:39.506309
2020-02-24T07:42:57
2020-02-24T07:42:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,609
py
import sys import torch import os from tqdm import tqdm import torch.distributed as dist import torch.nn as nn import torch.multiprocessing as mp # Custom generator for our dataset from torch.utils.data import DataLoader from modules.python.models.dataloader import SequenceDataset from modules.python.TextColor import T...
[ "kishwar.shafin@gmail.com" ]
kishwar.shafin@gmail.com
31c31dd70f600c146fbe4ca24233f4d5559ece54
ffbce1ba05737fc8403e91a565bd64b72f7c3ab9
/.history/vicky/views_20210512104007.py
995108e3690c927c1bc9fc0cdfe4fa44e10b7300
[]
no_license
Crixtiancub/Feedback_Vicky2.0
ffa1f9af8e81abb55540dbb10e3324866d23be2d
bc97740eba40c1edcacc309b8206f94fdee62cb6
refs/heads/master
2023-04-12T05:39:21.113454
2021-05-19T21:54:28
2021-05-19T21:54:28
368,983,043
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
from django.shortcuts import render, redirect import os from modelo_IA.archivos_Python.pipeline import Pipeline from vicky import templates from .models import * from django.template.response import TemplateResponse model = Pipeline() # Create your views here. def home(request): num_visits = request.session.get...
[ "Cristian.cubillos@interedes.com.co" ]
Cristian.cubillos@interedes.com.co
64ccbfab35ff229a7e7c14c48ddff5226a783295
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/bpycollada/import_collada.py
1bb5360d157006d7285bc4d686a2d5d8c0514da8
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,215
py
import os import math from tempfile import NamedTemporaryFile from contextlib import contextmanager import bpy from bpy.ops import BPyOpsSubModOp from bpy_extras.image_utils import load_image from mathutils import Matrix, Vector from collada import Collada from collada.camera import PerspectiveCamera, OrthographicCam...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
8cd818444c27b4f781c9fcb4f938acbe5fb6b0aa
97c5af22476b1efb5cacb91686a2e704f4249437
/Topic/recieve_logs_topic.py
49400f7daf78dbb7fb53cfd52637148c4d8c228d
[]
no_license
mcclayac/RabbitMQ_python
5b3a6f8604123901eb63878c5a37e216d7e6c60b
f2a743b1187499bc79a6b0045b508f92c457243b
refs/heads/master
2021-01-11T02:50:12.542891
2016-10-15T13:00:57
2016-10-15T13:00:57
70,917,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
__author__ = 'anthonymcclay' __project__ = 'RabbitMQ' __date__ = '10/15/16' __revision__ = '$' __revision_date__ = '$' #!/usr/bin/env python import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters( host='localhost')) channel = connection.channel() channel.exchange_declare(excha...
[ "anthony.mcclay@nielsen.com" ]
anthony.mcclay@nielsen.com
5048510bf141c45aed2624550198d8896bcd32cb
a6ccd2da44e4b1d91e562dc68ad49f8396f8bd4c
/main.py
a6b37d1827596dec7fc6ac48f55d6b5aafc746fa
[]
no_license
Zarreen-Davis/Password_Generator
39cd1cebd5837b97b7eb16d340f5719a5f064a06
774ac2e3b47956464efe08ba9acec339863847fe
refs/heads/master
2023-01-02T08:39:45.228744
2020-10-27T18:57:06
2020-10-27T18:57:06
307,798,907
1
0
null
null
null
null
UTF-8
Python
false
false
1,547
py
#enter and reenter password to ensure they match password= input ("Please create a password: ") password_2 = input ("Please re-enter you password: ") #if passwords don't match an invalid message is displayed if password != password_2: print("Invalid! These passwords don't match.") #checks password length is valid....
[ "zarreen.davis@outlook.com" ]
zarreen.davis@outlook.com
33b7fafb2c489da4c821b0f2d6c5bd2e4a4f86d4
28e6ef83fa54713c70a3f0115d390ddfa91d00a1
/mmfeat/miner/freesound.py
e3ac502f630f5960767499f4963d54bf5d05871e
[ "BSD-3-Clause" ]
permissive
braingineer/mmfeat
11029fb680460a242ce71807a2d22b31adda6c35
fdb59c4f60f5d910722ab72b469b7e317046e2d2
refs/heads/master
2020-12-27T15:15:05.376984
2016-08-15T15:23:27
2016-08-15T15:23:27
66,103,807
1
0
null
2016-08-19T18:27:23
2016-08-19T18:27:21
Python
UTF-8
Python
false
false
3,181
py
''' FreeSound API miner ''' import os import requests import shutil import time import urllib from .base import BaseMiner class FreeSoundResult(object): def __init__(self, result, api_key): self.ID = result['id'] self.format_url = 'http://www.freesound.org/apiv2/sounds/{}/?token={}' self....
[ "douwe.kiela@cl.cam.ac.uk" ]
douwe.kiela@cl.cam.ac.uk
ea2f67c98f18b60516584d6e34cfb6f1083eee5d
19a39bc9ec8c300f60e17a61cd4c6ec911842573
/count_coins_and_bills.py
3796cf18cdb818d95dbb4a39ea83cd1e52307568
[]
no_license
caiosuzuki/conta-moedas-e-notas
07f6d89b2be43eaa2508087de550e985e7822d86
3843d6c9e70c51b57f5666dfb307dc6601a70b5c
refs/heads/master
2020-08-27T15:01:27.400193
2019-11-09T01:26:05
2019-11-09T01:26:05
217,414,629
0
0
null
null
null
null
UTF-8
Python
false
false
3,968
py
import cv2 as cv import numpy as np MATH_MORPH_KERNEL_SIZE = 3 BLUR_KERNEL_SIZE = 11 DEFAULT_INPUT_IMG_PATH = './notas-e-moedas-exemplo/0c2n-3.jpg' def calculate_area_of_rect(rect): return rect[1][0] * rect[1][1] def calculate_rect_ratio(rect): width = rect[1][0] height = rect[1][1] if width > height...
[ "cpolidoro@gmail.com" ]
cpolidoro@gmail.com
62cbf0a6b75da95841744b5f398c31d871e00a6d
3591e440d74b5cd40a3fbfedb88ed103f22c9722
/mysite/polls/migrations/0018_auto_20170425_0041.py
8b8b6a6752bf58c30b261d59b5eb9ac85b23d893
[]
no_license
larako/web_4A_S2
072b0c597e9771cb9d2a75fc70d89b0d08557a08
454a4ede3c588cd37e4ed1416e2ebd1b32c8c5a8
refs/heads/master
2021-01-22T22:08:15.722787
2017-04-28T15:17:48
2017-04-28T15:17:48
85,509,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,383
py
# Generated by Django 2.0.dev20170317160306 on 2017-04-25 00:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('polls', '0017_auto_20170424_2342'), ] operations = [ migrations.CreateModel( na...
[ "yoola78@gmail.com" ]
yoola78@gmail.com
3bf874bd99dc884003dd3e452e0eeb8d382a3467
84b046d70ed94d8db9e8ea82798597c0e1ca7cd2
/bionlp/data/document.py
a6f8f7a39971b25f022b751e38ec73ade2c124a8
[ "MIT" ]
permissive
Honghan/ade_ann
20ead66c051ad57903b7514979b2d624b47eb32e
1cbbe47a1c6c2af3477f6c0c1398bae683c8d601
refs/heads/master
2021-04-30T23:22:39.465704
2016-11-04T11:49:50
2016-11-04T11:49:50
69,241,232
1
1
null
null
null
null
UTF-8
Python
false
false
268
py
class Document: def __init__(self,SentenceList,id=-1): self.id=id self.value=SentenceList self.attr={} def __str__(self): s ="Document id: {0}, value: {1}, attributes: {2}".format(self.id,self.value,self.attr) return s
[ "abhyudaynj@gmail.com" ]
abhyudaynj@gmail.com
915fbfd3f6cb8e8d8b28b0a9abf61ad77b62bb96
6e758147e0cf2b9e7440f1b09daef4ad84132a81
/mySite/offerStream/models.py
9a7528b51f900cd7f66a6eda9d456097553e7068
[]
no_license
joha0123/djangoProject
31fed982dba4298cdc1e4b72e29e87064b1676dc
c700c9b65cd2404674bfd72506fa3e6824a46a6d
refs/heads/master
2021-01-01T03:46:51.016060
2016-05-18T09:58:21
2016-05-18T09:58:21
58,851,299
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
from django.db import models class Adress(models.Model): street = models.CharField(max_length=150) city = models.CharField(max_length=100) zipCode = models.CharField(max_length=10) def __str__(self): return "%s, %s %s" % (self.street, self.zipCode, self.city) class Store(models.Model): na...
[ "johamayer@web.de" ]
johamayer@web.de
e3e0d9bd3cd8849299f63bd764b5c02cc8ae2980
699d28b11032360f076ba21aa95ca00111bc97f6
/calcs.py
5586e5c93d8a887634807c41463a40fe5a90d03c
[]
no_license
kthyng/ai65
840058f8ee717df01a02d8177a94ce5a4cc714db
5bebedd0033c64cb5a5cf64c8e2f9d9d827bfdd7
refs/heads/master
2020-04-05T12:35:02.211547
2019-07-28T15:47:54
2019-07-28T15:47:54
95,168,859
0
0
null
null
null
null
UTF-8
Python
false
false
13,033
py
''' Calculations. ''' import xarray as xr import pandas as pd import matplotlib.pyplot as plt import cartopy.crs as ccrs import cmocean.cm as cmo from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER import cartopy.feature as cfeature import matplotlib.ticker as mticker import netCDF4 as netCDF imp...
[ "kthyng@gmail.com" ]
kthyng@gmail.com
faf221e81366357c9bf8a59f9df555323d2f696f
ab764ffb00c82ad029f45a0d229cd2025f697985
/main/migrations/0002_auto__add_field_portrit_user_tutorial_completed__add_field_portrit_use.py
2edf987e934c7ca1df8807a6a6675fc515424318
[]
no_license
joneath/portrit
d1ae9b346fca29fd905cca300dfbca8b8a51641e
529047437d459905abb81618c2c1b85358d09a59
refs/heads/master
2020-03-29T20:43:27.487989
2011-12-14T06:02:34
2011-12-14T06:02:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,095
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Portrit_User.tutorial_completed' db.add_column('main_portrit_user', 'tutorial_completed', ...
[ "jonathan.eatherly@gmail.com" ]
jonathan.eatherly@gmail.com
7f9f7598857398906030166bc1343996c02e03ee
1121089b07e29cce020acf76190071600b6879bb
/maison.py
15d2edbf14ce2f9db2ea0aa1f06580911120c85c
[]
no_license
PapaBaGAYE/Python_Turtle_project
3dc1db7090a3536bfa608fa65463d89dd9da34df
ec59e734e65cce2fec9e859a7e2c27fc3d14b091
refs/heads/master
2023-06-19T08:51:50.932433
2021-07-24T12:57:41
2021-07-24T12:57:41
378,640,412
2
3
null
null
null
null
UTF-8
Python
false
false
1,197
py
import turtle import dessinMSDA as des # Dessin du rectangle en fond noir du bas des.tl.begin_fill() des.rectangle(100, 20, 'black') des.tl.end_fill() # Dessin du rectangle en fond noir du bas des.carre(100, 'black') # Dessin du triangle et son deplacement en haut pour le toit des.tl.penup() des.tl.setpos(-20, 100)...
[ "pba.gaye@univ-thies.sn" ]
pba.gaye@univ-thies.sn
752ae727504fb4dbb3e6323303b9b031869a2448
71a4cfb6747d728dfc97b29366bf8fdfcd790ac3
/rest_api/tests/unit/test_submit_requests.py
d1e5ac9f44e270c6cc2451a6c6d442e4e15260ab
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
suparnadhar/SuparnaGit
430c335934ded1649ae8a2dac387fed0c2ec1f5b
bec2704d8b6bc1802523ec26dcb902f59a747a4d
refs/heads/master
2021-01-25T00:39:33.420153
2017-06-16T18:52:02
2017-06-16T18:52:02
94,685,783
1
0
null
null
null
null
UTF-8
Python
false
false
16,720
py
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
[ "delventhalz@gmail.com" ]
delventhalz@gmail.com
9d036bb0095c09ecccfc0ff1a1f322a58a874a5e
d4f5c7629c992fcb5b73f5bbdee480a7dcf21701
/bot_deriv_btc.py
62b85b87db063c15f6130efc919b7dd73b2d4fe1
[]
no_license
xkayo29/deriv_b3_btc
d827e218b9244ae81532bfeb009386db894a7c6c
19244c27bb6c43c03c3243c12591b61397e013b0
refs/heads/main
2023-04-25T00:44:54.813517
2021-05-07T16:44:44
2021-05-07T16:44:44
365,296,718
0
0
null
null
null
null
UTF-8
Python
false
false
5,781
py
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import MetaTrader5 as mt5 # pip install MetaTrader5 import pandas as pd import numpy as np import telebot # pip install pyTelegramBotAPI from datetime import datetime, time import time as tm # %% # Função para inicializar o M...
[ "noreply@github.com" ]
noreply@github.com
ab1cd998831a83dfff01278c0eb0f2a0825fb1cb
14a2a310a0b1022e12858bed60e5b0235c6d2cc4
/demo/oop/concatenate.py
773ba6984fec5ddadfaed4071e134e85916f38b6
[]
no_license
srikanthpragada/python_18_jan_2021
0f32b8ea05b5a7ebfc747c86161543711225bfa5
5197176e39b4f72a486d8bbe4f108ca783dd51ea
refs/heads/master
2023-03-13T14:25:20.046629
2021-03-01T14:18:14
2021-03-01T14:18:14
331,602,844
1
0
null
null
null
null
UTF-8
Python
false
false
161
py
def cat(st1, st2): if isinstance(st2,str): return st1 + st2 else: return st1 + str(st2) print(cat("abc", "xyz")) print(cat("abc", 10))
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
f72b7398402b93378a713bc1e809276281b5c7d3
b631ee6ebf35f9c09bb0f288e3be3eb3c9667504
/src/pedidos/apps.py
3389169b43c7bc12b0841a54c0a5a8f7f9b27068
[]
no_license
loristron/SimuladorDePedidos
39145602f87944217e55747c8acd64f98144627a
81c99c6c1ff9bc3a1df258176fcf54d722ffff50
refs/heads/master
2023-03-16T13:56:44.823338
2021-03-07T21:10:09
2021-03-07T21:10:09
345,128,838
1
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.apps import AppConfig class PedidosConfig(AppConfig): name = 'pedidos' def ready(self): import pedidos.signals
[ "loremmiranda@gmail.com" ]
loremmiranda@gmail.com
5d277728e53b34fd3d324366e0405a9c9147368d
b73eab67f1ec87b91160a59b1f35db226bbaf4a7
/half_analytical_const_lensz.py
c193bb92e5549ba15d5b6bf4ea50b9c92c915d3d
[]
no_license
lingxz/lightbending
35833a7d99afbb62bc2dc8ffdf95e9d04ff8d46f
b27f8a1ea9733b7d79b0794a78416f14179845db
refs/heads/master
2022-05-16T20:47:21.233309
2018-05-07T03:58:29
2018-05-07T03:58:29
106,876,699
0
0
null
null
null
null
UTF-8
Python
false
false
16,514
py
''' origin at lens ''' # diff_lambdas_small2: latest, diff z_lens, 100 per Omega_Lambda, but wrong DL # diff_lambdas_small: same z_lens, diff z_source, 100 per Omega_Lambda # diff_lambdas_small3: same as diff_lambdas_small2, but with correct DL # diff_lambdas_small4: same as previous, but the step size in kottler solv...
[ "lingyihuu@gmail.com" ]
lingyihuu@gmail.com
e76ce8a2f472e3b1aa0ab5ddaf95486255b9ea6d
89841a2b522b7b1ab7965560f62b4b401b2d0a4d
/gravity physics/gravity simulation.py
105b78ee8eb670cd9124ca39718d4366f32d17f6
[]
no_license
sidd5sci/python-basics
14d621d52d3219943e2b0136c610dd769cc36a29
fea620141292cb6beee782cddb5a7d4eeb067e9a
refs/heads/master
2021-01-20T00:22:29.496330
2017-04-22T17:03:00
2017-04-22T17:03:00
89,123,461
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
import random import math from Tkinter import * import time PI = 3.14159 g = 9.87 #m/s2 ctime = 0.0 class vector: def __init__(self): self.direction = 0.0 self.magnitude = 0.0 def asign(self,drct,mag,angletype): if(angletype == 'R'): self.direction = ...
[ "sidd5sci@gmail.com" ]
sidd5sci@gmail.com
e6c5e5cdf587ad79fbec86f6c8696f8beba6a0fb
c3131577f706b25623da31f1d5af668c717eb91b
/jmt/check_trimout.py
f5f3d31b8210123445a574364265c67a7db66d1c
[]
no_license
cmspixelpilot/POSOverlay
29e5739cf4f1556802ca02ae8ee1663dcd941b22
abdd29afe0aeddefc111a14f723ec365329b34a8
refs/heads/master
2020-04-04T04:17:25.383958
2016-10-14T14:19:15
2016-10-14T14:19:15
29,026,300
1
13
null
2016-11-24T19:45:07
2015-01-09T17:04:16
C++
UTF-8
Python
false
false
1,789
py
from JMTTools import * try: run = run_from_argv() except ValueError: run = None if run is not None: calib = calib_dat(run) calib_rocs = calib.rocs pixels = calib.pixels detconfig = detconfig_dat(run) rocs_qual = detconfig.rocs['qual'] rocs_noqual = detconfig.rocs['noqual'] trim_f...
[ "cmspixelpilot@yahoo.com" ]
cmspixelpilot@yahoo.com
d0d63a9a8cd95eb9efff60c2a9ff226382464f4d
6e0d936d3b308ea0a2b179abf58d1e9520022174
/fiskalnavenv/bin/iptest3
2ecac9b10d4626665dafc2b64f9a3be508cb70f4
[]
no_license
robizd/fiskali
e9273697fab7593cabfe7c898ec8b16b3f62ecf1
4e27b08a08de44fcf6a5459866b1b59b2c31b89c
refs/heads/master
2022-12-16T21:50:06.538824
2020-09-23T10:51:23
2020-09-23T10:51:23
292,207,854
1
0
null
null
null
null
UTF-8
Python
false
false
264
#!/home/r/Desktop/fiskalna/fiskalnavenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from IPython.testing.iptestcontroller import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "robert.anic1@gmail.com" ]
robert.anic1@gmail.com
a04c4b33ed76bd6588fc389d6e747735858613ee
1236a8208138a6f8d15a0fc576fdec98e01f7d8f
/mypy/10.模块/10.3.包的概念.py
2f2bc8c81b8c103b7806125e81809343dc9cd2ae
[]
no_license
dingzishidtc/dzPython
cfb26ca7c38b1ed44a0e42ba5d1541aa8169ae19
3adf8aba5fe12ab28bd6d02e4e6baa60b828985d
refs/heads/master
2023-01-30T00:35:12.915290
2020-12-09T13:04:48
2020-12-09T13:04:48
260,984,723
0
0
null
null
null
null
UTF-8
Python
false
false
2,111
py
# 包即 package, 模块即 module, # 可以这样简单的理解,module 是文件,package 是文件夹 # package 包含 module,package 也可以包含 package # # 当然还要做一些前期的工作,文件夹需要增加 __init__.py 才会被 python 解析为 pakage (实际测试的时候发现可以没有,可能是版本的关系,建议还是添加) # __init__.py 中的代码将是包的内容,如可以在其中定义变量、方法等 # # 如一个目录结构如下,环境变量定义为 D:\environment\python\modules # # D:\environment\python\modules...
[ "443155612@qq.com" ]
443155612@qq.com
60cdc12212c922a0f11ab3f0c6b2a4088eef2a80
f0e2a0190c0b9e4591ec25c525882cfeec6c1b87
/mahjong/yaku_checker/kokushi.py
c647e6e9d9a8ea963931f9715c2cc43f033f7ead
[]
no_license
thgwon-yaho-qcw/Mahjong
33d893c30a284e8b59664638bc6061a6e92845aa
25ef2684507225260e020eba1f841ec656204a3f
refs/heads/master
2023-08-29T00:28:42.136910
2021-10-19T09:04:02
2021-10-19T09:04:02
347,359,493
1
0
null
2021-10-19T09:04:03
2021-03-13T12:04:32
Python
UTF-8
Python
false
false
202
py
from mahjong.divider import Division from mahjong.yaku_checker.yaku import Yaku class Kokushi(Yaku): def is_satisfied(self, division: Division, hand_info): return len(division.parts) == 1
[ "gwontaeho96@gmail.com" ]
gwontaeho96@gmail.com
2db24c5c9eb872707f7249df40008aa9ac62b2b6
e5d130e183b5dea1b7aad23a047c703fa0d2b3bf
/lightbus_vendored/aioredis/abc.py
5c1bed890fcba6bae0602711e53bf29b7d888982
[ "Apache-2.0" ]
permissive
adamcharnock/lightbus
4a86428b8203bfe98f77a32375ac961ef398ce16
cf892779a9a9a8f69c789ffa83c24acfb7f9a336
refs/heads/master
2023-08-26T04:19:39.395735
2023-08-23T11:07:44
2023-08-23T11:07:44
94,617,214
193
22
Apache-2.0
2023-08-10T21:21:51
2017-06-17T10:39:23
Python
UTF-8
Python
false
false
3,746
py
"""The module provides connection and connections pool interfaces. These are intended to be used for implementing custom connection managers. """ import abc __all__ = [ 'AbcConnection', 'AbcPool', 'AbcChannel', ] class AbcConnection(abc.ABC): """Abstract connection interface.""" @abc.abstractm...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
4c2d33c12259b37ebf02f8da514795c25f84d6b8
36ace720c8507b8724957f6c85a5962d15a2f99c
/tests/unit/broker/test_simulated_broker.py
5168d71e8f8346c5f1026d4661877b98204b2e2b
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
simongarisch/qstrader
8ce950036f6404dd4d6c61016cb6c77805942cd5
557f2fc2598b631a005309e415a5dab12793fd14
refs/heads/master
2021-06-27T04:51:24.588474
2020-08-29T05:58:08
2020-08-29T05:58:08
102,059,555
0
0
MIT
2020-08-29T04:36:52
2017-09-01T01:11:25
Python
UTF-8
Python
false
false
21,014
py
import queue import numpy as np import pandas as pd import pytest import pytz from qstrader.broker.portfolio.portfolio import Portfolio from qstrader.broker.simulated_broker import SimulatedBroker from qstrader.broker.fee_model.zero_fee_model import ZeroFeeModel from qstrader import settings class ExchangeMock(obje...
[ "mike@quarkgluon.com" ]
mike@quarkgluon.com
625de4297ccafd3c704bbe927b431be4cfafbc38
6066eba4314ee5c8c26894e8864103e27bc547ba
/test/algorithms/ground_state_solvers/minimum_eigensolver_factories/test_vqe_ucc_factory.py
7da78201563cde2ea1075c5052f0467f010e1f09
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Global19/qiskit-nature
8098857e014fbc984028d1b8b1cb0a5055ecc407
5e932f6055e68649b4d6b0140dc926b07ba316e4
refs/heads/master
2023-04-15T01:42:49.663502
2021-04-09T15:56:08
2021-04-09T15:56:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,922
py
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
[ "noreply@github.com" ]
noreply@github.com
19881f72f2314c238faa43508926f8455e67eeb1
0d1f88e0c9e463c5e42b3c78c708df8b03f99a2b
/word/models.py
3b1f49939b5a14ff2e4e64a009898574f25f5d7a
[]
no_license
sefaky/Pre4Define
67784cf1ca61df81683dcad3e32cd9b15eb7d7d3
ad45d8b6cda778cb554ff2ee46df09b3276fb1ba
refs/heads/main
2023-02-18T17:03:36.785752
2021-01-20T10:17:45
2021-01-20T10:17:45
330,632,030
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
from django.db import models class WordsDefining(models.Model): word = models.CharField(max_length=30) category = models.CharField(max_length=30) pegi = models.CharField(max_length=3) commentCount = models.CharField(max_length=11) downloads = models.CharField(max_length=12) ranking = models.C...
[ "1sefakaya@gmail.com" ]
1sefakaya@gmail.com
7bc5e16bd591b8abde3f6bbdc886d227d1cb9588
85ed63e6ae798cc26bb7db989912405c2675dbb2
/MarkowitzSerde.py
2fbc40b496a5c6a26c09f1e47016064ee0391bbf
[ "MIT" ]
permissive
LaplaceKorea/APIClient
3608011f81e432237ed8c047b28e6323db3121fa
e772482c3d9cbedee98f46a3529dca5acc254f3c
refs/heads/main
2023-07-20T06:33:37.141537
2021-08-26T15:48:42
2021-08-26T15:48:42
380,518,632
0
0
null
null
null
null
UTF-8
Python
false
false
2,458
py
from dataclasses import dataclass from typing import Any, Dict, List, Union import numpy as np from UserTokenSerde import * import orjson import json from dataclasses_serialization.json import JSONSerializer @dataclass class Markowitz: # min_p (w - p)^T S (w-p) # s.t. sum_i(p_i) = 1 S: np.ndarray w: np...
[ "renoir42@yahoo.com" ]
renoir42@yahoo.com
672679732bb66c1cc979a3bd42a4d337e9a4a74a
a468016412cc2b435501de4d3ee5c4d2be5fa19f
/coupons/views.py
0a2a87766e6bc3b9517fd0e671635ecb1af860dd
[]
no_license
sadakchap/first-full-ecom
ef022596c05c29cae0842bae34d201cd4af08b93
881b39ec60dff3aef04105e3d08e3be3e16f6420
refs/heads/master
2020-08-07T05:02:48.165873
2019-10-07T06:16:16
2019-10-07T06:16:16
213,308,847
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
from django.shortcuts import render,redirect from django.views.decorators.http import require_POST from .models import Coupon from .forms import CouponApplyForm from django.utils import timezone # Create your views here. @require_POST def coupon_apply(request): now = timezone.now() form = CouponApplyForm(reque...
[ "aliceprerna@gmail.com" ]
aliceprerna@gmail.com
998c833201d5781dff44b53d3b39f08131db1f84
edcfa1f24be85d356305c23fb488d1a3ba626ce4
/django/app/wsgi.py
7d395aac3dcfafb08868de90288904b12dfc502c
[ "Apache-2.0" ]
permissive
isabella232/pycon-2021-workshop-app-search
9b0cafafc0ee7fea484f4c47103b66170b6ba93f
aa2a24715ccae222f2dc53a85c9a65ac2dbae6d9
refs/heads/main
2023-04-25T06:00:29.362636
2021-05-14T20:55:48
2021-05-14T20:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
""" WSGI config for pycon_2021 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.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
[ "seth.larson@elastic.co" ]
seth.larson@elastic.co