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
451dfab3ed62aae3876fa15fbc9c2a21fb406512
8b937b1dd346494b8e2de51f589bc71504f73019
/fro9.py
b1bc1127b517b81cf9e8654f287233569ffa810d
[]
no_license
Vivekg95/Python-Tutorial
b50c48a56958743cbd1392fd17ad0500bda7eaf2
10a5307a3fa273c4780f05c32869fc2abb01980f
refs/heads/master
2020-06-09T14:30:46.877224
2019-07-10T03:27:17
2019-07-10T03:27:17
193,452,387
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
def factorial(n): if n == 1: return 1 else: return n * factorial(n-1) print(factorial(3)) import sys sys.setrecursionlimit(5000) def factorial1(m): if m == 1: return 1 else: return m * factorial(m-1) print(factorial(30))
[ "ipsa77390@gmail.com" ]
ipsa77390@gmail.com
e1a06a73f73b2fd764c7ffc3b8a93a8b59ec2dab
b264dde95141cd0cd2eeac9f64135647d4da38ed
/check_ttis.py
3fcac0bd6944d3341b68c8a6509b91e6de500448
[]
no_license
ChrisLMartin/cal_data_processing
12e3831bd18c7b0304d117e82e946b14fcaa058a
73b59b74ee1ca4ab0f4893d183db08711a8af3f8
refs/heads/master
2018-12-04T18:39:24.967394
2018-11-07T05:13:27
2018-11-07T05:13:27
125,007,575
0
0
null
null
null
null
UTF-8
Python
false
false
1,538
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 23 08:40:50 2018 @author: christopher.martin """ import matplotlib.pyplot as plt import os import pandas as pd def file_walk(): folder_name = '//ICAL8000/Users/Public/Documents/Calmetrix/CalCommander/Export' paths = (os.path.join(root, filename) fo...
[ "christopherlancemartin@gmail.com" ]
christopherlancemartin@gmail.com
8315b2c6c23754084561971e0514e2576d3f7184
1f3435e0698c062bebec79af4c2ed7bf5f865000
/demo/functions/filter_demo.py
35d5174300fee65a444402dcfb580c1f899a3d58
[]
no_license
srikanthpragada/PYTHON_02_FEB_2021
d879f5aadc3717d342e21e69d56f74b1a3967ca6
c900b5745cf8343d5b00c345c0c13c9c7656cb5a
refs/heads/master
2023-03-07T11:57:09.199601
2021-03-01T03:18:07
2021-03-01T03:18:07
335,815,633
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
def ispositive(n: int) -> bool: print('Checking ',n) return n > 0 def hasdigit(s: str) -> bool: for c in s: if c.isdigit(): return True return False nums = [10, -20, 0, 9, -8, -6] names = ['abc', 'xyz123', 'bc12', 'pqr'] for n in filter(ispositive, nums): print(n) # for n ...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
7a48e04dfc240929c06ae1b00ddb33f64a9b466b
f2415be2a2359d7a15ecd23d454ffd964dcfb84b
/build/pygments/tests/test_shell.py
eb09e8d17c911c9b5533fdde340fc78396a9f958
[ "MIT", "BSD-2-Clause" ]
permissive
sagangwee/sagangwee.github.io
9032658383ed577e762838440bfc570f16599e60
cbe39c5bb1691c6cca4ec1f50bfafe5e0f7140a0
refs/heads/master
2021-01-19T03:19:57.949882
2019-04-10T07:31:28
2019-04-10T07:31:28
49,043,796
0
1
null
null
null
null
UTF-8
Python
false
false
1,940
py
# -*- coding: utf-8 -*- """ Basic Shell Tests ~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import unittest from pygments.token import Token from pygments.lexers import BashLexer class BashTest(unittest.TestCase): ...
[ "sagangwee@yahoo.com" ]
sagangwee@yahoo.com
a39cf79c6b01e34ff8646714d6eb9d54aa6ab1d3
2959cbd1727c452d1806e42011b704add664fbf0
/cesar00.py
4c9c726f4858c875cce0ef2f1f22ff814b787b59
[]
no_license
GuilhermeRamous/python-exercises
2f8c60aec952c0ba2e8914289215ebfa1ab90f0b
02ba796440ef3caa66614ac51250cd2e4e937600
refs/heads/master
2021-04-26T23:45:32.643108
2018-03-05T02:16:47
2018-03-05T02:16:47
123,851,138
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
def low_or_upper(string): if 97 <= string <= 122: return 0 else: return 1 def cesar_encrypter(texto, key): resultado = "" alfabeto_low = "abcdefghijklmnopqrstuvwxyz" alfabeto_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in range(len(texto)): if texto[i] in alfabeto_low or texto[i] in alfabeto_upper or texto[i...
[ "society66601@gmail.com" ]
society66601@gmail.com
f9f22339c66dce36ef39681ab09a8329b03d5019
03aebbf4fe13a3a0d79f738a0c2cd7741a788cdd
/Book_automation/ch4/passingReference.py
fe403f96341f517c3c38c7504e890d24f4369afd
[]
no_license
Maxim-Krivobokov/python-practice
c69d2fbe601ed7e8388a564bf20a7ceab283919d
718698dfaeabd5ea000bce3a20bf18d1efe938c2
refs/heads/master
2021-05-24T10:27:29.022718
2020-07-22T14:34:15
2020-07-22T14:34:15
253,518,510
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
def dobavka(someParameter): someParameter.append('Hello') words = ['preved', 'hi', 'ola'] dobavka(words) # someparameter takes a link to list, modifies it, and printing list words shows changes print(words)
[ "maxim.krivobokov@gmail.com" ]
maxim.krivobokov@gmail.com
2a8d7dc7341a2f0a3ec6c4fe31c35f2aa330f901
859787784f3e2aa1b89116197da5d9d7cae4dbfb
/packs/common_files/common_infos.py
715e6a892732f7f32c017b5598261439b5699fe6
[]
no_license
santana-daniela/adm_impress
b5fd89abcc3357cb1e277396b98f7d0c59bb26f2
c1847d94a4188f405ed2448bb19ccb80fe67a403
refs/heads/master
2021-01-07T09:10:30.900253
2020-02-02T20:06:19
2020-02-02T20:06:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
import copy import numpy as np class CommonInfos: def get_local_t(self, T, volumes): T2 = T[volumes][:,volumes] data = np.array(T2.sum(axis=1).transpose())[0] data2 = T2.diagonal() data2 -= data T2.setdiag(data2) return T2 def copy(self): return copy.d...
[ "jprandrade2@gmail.com" ]
jprandrade2@gmail.com
8f97d18dcbd8a750d1ce616076ea9059e0c30ac9
9397a453a4b9c4ddd9988235fe4a8ee6720358c1
/analysis/visualization/geobia_Fig3.py
3c6f7f3e298c6c0220b120e9a6953f123d7b2f3c
[]
no_license
komazsofi/myPhD_escience_analysis
33e61a145a1e1c13c646ecb092081182113dbce3
5f0ecdd05e7eaeb7fce30f0c28e0728642164dbc
refs/heads/master
2021-06-04T21:39:58.115874
2020-06-18T12:59:53
2020-06-18T12:59:53
119,659,750
0
1
null
null
null
null
UTF-8
Python
false
false
883
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns font = {'family': 'normal', 'weight': 'bold', 'size': 18} plt.rc('font', **font) workdir='D:/Geobia_2018/Results_17ofApril/' filename='3all_tiles_clean.txt_PC1__PC2__PC3segm_parameters' segm_optimal=pd.read_...
[ "komazsofi@gmail.com" ]
komazsofi@gmail.com
0873a4c3d5838c4306f5b1c919ab449235b82590
a03abf3628a6ba7b117daed34ab95213ac280d78
/Orig_Proj/ordered_list.py
b4175f6f5b8d735f7892d96732caf172b32686c0
[]
no_license
DennisJGlennon/cpe102project1
996f40f4c85667058d33fdff8c6c66359059dc21
10654ecf8c7c62b7326bf3beff136cb9ca19c853
refs/heads/master
2021-01-01T18:08:11.211957
2015-04-23T00:25:36
2015-04-23T00:25:36
33,385,275
1
1
null
null
null
null
UTF-8
Python
false
false
780
py
class OrderedList: def __init__(self): self.list = [] def insert(self, item, ord): size = len(self.list) idx = 0 while (idx < size and self.list[idx].ord < ord): idx += 1 self.list[idx:idx] = [ListItem(item, ord)] def remove(self, item): size = len(self.list) ...
[ "dmritter@calpoly.edu" ]
dmritter@calpoly.edu
ed59feea2ea0c8d539121a236416d59f52212059
eb4b0419d3843b68b16e8136556e9dc37dbc6701
/dba3/day5/c_pachong.py
d3d2f299ac60b17477f965a073ede902d6fa33ee
[]
no_license
YuyeeYouzi/youzi
9a2e7682896c4d13edf5394bf6f3357729a849e2
942df08f42a715704d188a685f6dccc7dfe47162
refs/heads/master
2021-07-23T20:50:17.986272
2017-11-03T15:02:49
2017-11-03T15:02:49
109,358,961
0
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
+#import urllib #urllib urllib2 #urllib.request from urllib import request,error from lxml import etree url = 'http://www.51job.com/' response = request.urlopen(url) # 打开url获取内容 #html = response.read() #bytes #html=html.decode('gbk') #print(html) #headers = { # 'User-Agent':'Mozilla/5.0 (Windows NT 6.1...
[ "YuyeeYouzi@example.com" ]
YuyeeYouzi@example.com
10a6e8075d142d8ef31be740aa4f0af798748102
547af1246bb04acdd3313c0cf02a14831251b841
/tools/releasetools/edify_generator.py
d4a35fb519165d1992d7c96d51a2f7c596875de0
[ "Apache-2.0" ]
permissive
deneydeville/android_build
572463b167c34d7a47e7df5e3e69329eff0dd199
554ed99e8fa723ad39cd3ec2e89892332765f65e
refs/heads/master
2021-01-20T13:22:49.173725
2016-06-10T13:29:49
2016-06-10T13:29:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,887
py
# Copyright (C) 2009 The Android Open Source Project # # 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 ...
[ "renosang@gmail.com" ]
renosang@gmail.com
be1929dd1be553a6bedfcf9381fe86c19edf1a79
79ef95f92c459f896986077db960bf237c430380
/lab/merge_sort.py
5424bacf630f8324e908cb3ea631daeb66049c26
[]
no_license
SpeechieX/algorithms-and-data-structures
67e9ac613d197d096964c077c2c45a0f08f2ff60
566d7d3884bf58880fcb3718f6870d632820d424
refs/heads/master
2020-05-25T21:08:31.806574
2018-07-30T22:55:03
2018-07-30T22:55:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
def merge(a, b): i = 0 j = 0 sorted = [] inversions = a[1] + b[1] a = a[0] b = b[0] while (i < len(a) and j < len(b)): if a[i] < b[j]: sorted.append(a[i]) i+=1 elif a[i] == b[j]: sorted.append(a[i]) sorted.append(b[...
[ "jtamsut1993@gmail.com" ]
jtamsut1993@gmail.com
c361766ebc265679ff6af2f6299d746627145288
b09aefec305ec7926fb85cbfdc9fcb6b4757aa22
/tr/text_recognition/Preprocess/Image_Preprocess.py
400616ae5005719bcdf6a5ae603c4232388b61e7
[]
no_license
thydeyx/recognize
182d164163c9165ad9fc2733f85e77ae9698056a
5af79b4e6606ea2fd78a586152b8b8125c8f3e63
refs/heads/master
2020-03-27T21:49:18.410454
2018-09-03T09:13:22
2018-09-03T09:13:22
147,178,020
0
0
null
null
null
null
UTF-8
Python
false
false
17,172
py
# -*- coding: utf-8 -*- import sys import os import re import random import numpy as np from PIL import Image, ImageDraw from matplotlib import pyplot as plt from sklearn.utils.extmath import cartesian import cv2 as cv class Image_Database(object): def __init__(self, image_dir_path, gt_dir_path, image_height, i...
[ "hanyi_tang@apple.com" ]
hanyi_tang@apple.com
df3512fd4a973632fa8a3375b5162dae22014eaf
23934d631c8504e4ce04b4c39bd423776453d466
/dou/spiders/dou_spider.py
430b9b0b9ddbd19d0bc080f8115c6ed7a8424f7f
[]
no_license
OlehMalichenko/dou_data_with_scrapy
8eec87966f3a54ec6b95b977326aec2deff69508
b80f733e21b05e651108bffc07df889d72fe8e38
refs/heads/master
2020-12-02T05:54:49.530344
2019-12-30T12:38:11
2019-12-30T12:38:11
230,913,323
0
0
null
null
null
null
UTF-8
Python
false
false
6,905
py
# -*- coding: utf-8 -*- import scrapy import csv from dou.items import DouItem from pprint import pprint from time import sleep import random class DouSpiderSpider(scrapy.Spider): name = 'dou_spider' allowed_domains = ['jobs.dou.ua'] def start_requests(self): with open('needed_csv.csv', newline=...
[ "advokat1141@gmail.com" ]
advokat1141@gmail.com
248090511984e8a8a5bc1b4ac31562347c35d8f7
10e1839b504fc18ab6cf19bcaac64593d7bf7f37
/hackerrank/python/10. printDoormat.py
c72b0bc2bdef1cbbf8e5af0c00cbb614c95b5aa2
[]
no_license
hideyk/Challenges
bfb4f77bf3aefa855899fb9f32dc2d84549ab65b
5b01f1d58442f71cfdb3231fc338d68f13af79b3
refs/heads/main
2023-07-19T18:14:13.999347
2021-01-17T10:46:10
2021-01-17T10:46:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
# Enter your code here. Read input from STDIN. Print output to STDOUT def doormat(r, c): for i in range(r//2): print((".|."*(i*2+1)).center(c, "-")) print("WELCOME".center(c, "-")) for i in range(r//2-1, -1, -1): print((".|."*(i*2+1)).center(c, "-")) def main(): rows, columns = [int(s...
[ "automationhidey@gmail.com" ]
automationhidey@gmail.com
d14e6f6a6abfde25ec14975c731e0b395db426dc
dbb320f62c06433b2ca92ee3dd51a6bde8527143
/design_hit_counter.py
4a764144a5c10539c184f4511604eb6b68851bc5
[ "MIT" ]
permissive
pranavdave893/Leetcode
3c051f4510d8907f04534b27c1fa76602f205852
1f30ea37af7b60585d168b15d9397143f53c92a1
refs/heads/master
2021-06-10T12:12:34.782733
2021-03-22T00:37:44
2021-03-22T00:37:44
140,044,356
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
from collections import deque class HitCounter(object): def __init__(self): self.dq = deque() self.curr_count = 0 def hit(self, timestamp): if not self.dq or self.dq[-1][0] != timestamp: self.dq.append([timestamp, 1]) else: self.dq[-1][1] += 1 ...
[ "pranavdave893@gmail.com" ]
pranavdave893@gmail.com
716f9858e08437626c4799f63d4487ab054a99ef
d9e620594239a7ad77654134e59b8780d2dc6133
/python/BobRossBot/bin/app.py
6bb30d7000c75a8b49c1e7b5f414abb17679e512
[]
no_license
adamriggs/reddit-api
c86824d1c71ab77b929573518127f55b3fbf6afe
f64cec053f3a801e480fff17102d237b5288e0d4
refs/heads/master
2016-09-05T11:19:41.435636
2013-06-16T23:56:04
2013-06-16T23:56:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,973
py
#----------------- # ShittyWatercolorBot # By: Adam Riggs # v 0.1 # 5/19/2013 #----------------- #----------------- # imports #----------------- import praw import MySQLdb from random import randint import time from time import sleep from pprint import pprint from pgmagick import Image from imgfx import ImgFX import...
[ "phlux1111@gmail.com" ]
phlux1111@gmail.com
b716bd2e0194fef8998be5cb4394c18d86a8e1f8
00ee5387bbac76666c7099165fc3cd9f449bfc31
/src/einsteinpy/symbolic/predefined/bessel_gravitational_wave.py
161bb108c4292e5941e389c0f46e17f7a3be4686
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
GTron-1729/einsteinpy
dafd1885fe4b0184c1c4332dc3eea97e5c213b72
0d14579abb790edcc8f5990a6123889ba732b585
refs/heads/master
2021-03-30T14:44:37.001809
2020-03-18T07:29:43
2020-03-18T14:46:51
248,064,349
1
0
MIT
2020-03-17T20:14:05
2020-03-17T20:14:04
null
UTF-8
Python
false
false
1,606
py
from sympy import Function, Symbol, besselj, cos, diag, exp, sin, sqrt, symbols from einsteinpy.symbolic import constants from einsteinpy.symbolic.metric import MetricTensor def BesselGravitationalWave(C=symbols("C")): """ Exact gravitational wave solution without diffraction. Class. Quantum Grav., 16:L7...
[ "s.ritwik98@gmail.com" ]
s.ritwik98@gmail.com
9ee673ca981a636ee2e60a8f4ae3a5a38fa35162
163959194f7affb1fac6fdc8bb0d7fdf1162d513
/getPic_web/keyword_extraction/new_keyword.py
3834c08d15191203a38e901d8d9ad5f0e3819bf5
[]
no_license
yookyungkho/getPic
bfe648aaa5071d42403fceb25048ef47b4063636
2d12d343c519b157f64829067dc4b3c9b97d1e07
refs/heads/master
2023-03-05T05:14:15.090213
2021-02-22T10:45:20
2021-02-22T10:45:20
280,839,513
0
2
null
null
null
null
UTF-8
Python
false
false
635
py
from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd class new_KeywordSummarizer: def __init__(self, tokenize=None): self.tokenize = tokenize def new_keyword(self, sents): tfidf_vectorizer = TfidfVectorizer(tokenizer = self.tokenize.tokenizer) tfidf = tfidf_vectorizer.fit_tr...
[ "kmmnjng528@gmail.com" ]
kmmnjng528@gmail.com
94f1dfb204610733217a723111e92cc59c5c0a91
7d8ba9231df27c12b86a58e55d9b7b85ad47ef8f
/app/decorators.py
3674087e3318433ee3dc3a05c3891550dab571d0
[]
no_license
lence-wl/flask-myBlog
0d2eb65452306c652d613dfb1eb1e7a1051f5d04
1f4ae07efff44c165690f8667d64e0deb8cf44c0
refs/heads/master
2020-04-11T10:48:51.807751
2018-12-14T03:42:05
2018-12-14T03:42:05
161,727,046
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
#!sur/bin/env python #-*- coding:utf-8 -*- """ @author: lence @file: decorators.py.py @time: 2018/11/01 """ from functools import wraps from flask import abort from flask_login import current_user from .models import Permission #检查常规权限的装饰器 def permission_required(Permission): def decorator(f): @wraps(f) ...
[ "lence0516@163.com" ]
lence0516@163.com
b09385c1908e01162b4d125b5b156ad5bece8328
ddbe710362cd1c00d068964f905b8f2b509d7b32
/Final_Database/TableSchema.py
90b68416e6ab84168be78fb87cb04c49868f2bc5
[]
no_license
lnicholsonmesm/ETL-Project
20964183331ea68cecc48136ccfbd422dd1d357d
835e50d1551459e652a05af703a6dd138d1b6705
refs/heads/master
2022-11-08T05:33:10.431304
2020-06-14T06:20:31
2020-06-14T06:20:31
270,881,335
2
0
null
2020-06-13T22:34:30
2020-06-09T02:12:20
Jupyter Notebook
UTF-8
Python
false
false
1,593
py
import psycopg2 #from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT from config import username, password #CREATE DATABASE create_db_query = 'CREATE DATABASE MovieDB' create_schema_query = 'CREATE SCHEMA IF NOT EXISTS ETL' # CREATE TABLE SCHEMA ETL_actors = '''DROP TABLE IF EXISTS actors_role; ...
[ "61956735+lnicholsonmesm@users.noreply.github.com" ]
61956735+lnicholsonmesm@users.noreply.github.com
f907f8844bc20138ecc531023bbcc84f708cbf9f
256cb39311d30ce25c27842dd156b0e381f6e820
/app/model/Job_Action.py
3be07e42159f5a18cf56fdf5f7ed2cb68af7918b
[ "MIT" ]
permissive
bvbgrad/betterJob
d274898fd424267cee0755c865452be7331589d6
d54962d31eafde428fa7309c8bf5ac238bf6a640
refs/heads/master
2023-05-09T02:38:38.588070
2021-05-31T02:50:33
2021-05-31T02:50:33
322,061,685
0
0
null
null
null
null
UTF-8
Python
false
false
2,274
py
""" Database model and methods business object: Job Actions """ from sqlalchemy import Column, ForeignKey, Integer, String, Date from app.model import Base from datetime import date class Job(Base): __tablename__ = 'job' job_Id = Column(Integer, primary_key=True) job_name = Column(String(50)) ...
[ "bvbgrad@gmail.com" ]
bvbgrad@gmail.com
0861499e55823f78d671498aeddd26d9b458d104
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_67/85.py
d68b82b4d6c548dceb594577cb58f6b243360429
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,630
py
def readInts(): r = raw_input() s = r.split() if len(s) == 1: return int(s[0]) return [int(ss) for ss in s] def readString(): r = raw_input() return r def main(): t = readInts() case = 1 for i in xrange(t): r = readInts() brd = {} ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f310e26c49fb95a9932897541a80ff45b89157ef
c10ee508ab7dbfd2053849aa964219a0831936fe
/read_camera.py
7dec92f6afda55ae54d615258cb5ea71766f65e0
[]
no_license
amiltonwong/traffic_sign
a2aceba6ede9b5f70b4c8735dfbce7fcad9ea0da
d7a80bcd42e26f6a8a98b645e9cbf7efc5031dd6
refs/heads/master
2020-05-04T19:50:28.482519
2019-04-04T02:55:14
2019-04-04T02:55:14
179,409,891
0
1
null
null
null
null
UTF-8
Python
false
false
640
py
import sys import os import cv2 from PIL import Image directory = sys.argv[1] imagecount = int(sys.argv[2]) os.makedirs(directory, exist_ok=True) video = cv2.VideoCapture(0) filename = len(os.listdir(directory)) count = 0 while True and count < imagecount: filename += 1 count += 1 _, frame ...
[ "mb55420@umac.mo" ]
mb55420@umac.mo
41fee592304b050544009c33fb9927497f274ee1
cba0f1286e4271ac35101a25d5040b2e4f405bde
/cgi-bin/admin/severe2/advanced/cases/release.py.cln
9ba0f67d21bb665fbc00853ee76a3e4f9b6eba5d
[]
no_license
akrherz/pals
271c92d098909abb5b912db4ae08f0c3589e5ec7
adc213333fb23dc52d6784ce160c4ff8a8f193e3
refs/heads/master
2021-01-10T15:01:59.570168
2019-12-18T16:59:08
2019-12-18T16:59:08
45,484,297
0
0
null
null
null
null
UTF-8
Python
false
false
1,865
cln
#!/usr/local/bin/python # This will allow instructors to release cases # Daryl Herzmann 12-7-99 import pg, cgi, time, SEVERE2 form = cgi.FormContent() mydb = pg.connect('severe2','localhost', 5555) mydb2 = pg.connect('severe2_adv','localhost', 5555) def list_cases2(): print '<SELECT name="caseNum" size="10">' case...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
978d29b943992807aa0a8037ada1eeff0540ba1c
287b60b06bed640418c9a4fc49b03ddb4ac53345
/models/miura_sheet/analyze_traj.py
08834223fcaad2875e4def020be85919bb2fb7e5
[ "MIT" ]
permissive
saridut/FloriPy
29f56e63354073a57281b00dea4f2c6af28027d4
0117d358b9c2362ea32ecf9ec719fdaed87d3e14
refs/heads/main
2023-01-25T01:30:29.617918
2020-12-02T00:48:56
2020-12-02T00:48:56
317,380,514
0
0
null
null
null
null
UTF-8
Python
false
false
3,755
py
#!/usr/bin/env python import math import csv import numpy as np from floripy.mathutils import xform as tr from floripy.mathutils.linalg import unitized from .miura_sheet_trajectory import MiuraSheetTrajectory def get_phi_theta(v): ''' v: (3,) ndarray Returns phi and theta in degrees. phi: Angle measu...
[ "saridut@gmail.com" ]
saridut@gmail.com
1c80d581650c8d33363badd30f0b28cf5ee5a1d2
5680657baab8d64612c8a4cdeeb09ce69c9120e2
/yolo_detection/yolo.py
632e5123e5bf05ddfc0c66c8a69914a7d7ff9919
[]
no_license
vinodgit44/opencv
d489f0426a65e90f5390f2aa5b5fb5b701fa87bb
dce5cad3b783b869a5396b457bad6fe210b75c9d
refs/heads/master
2023-08-04T05:07:12.289034
2021-09-26T12:17:20
2021-09-26T12:17:20
408,375,335
0
0
null
null
null
null
UTF-8
Python
false
false
2,079
py
import cv2 as cv import numpy as np cap = cv.VideoCapture("video.mp4") width = 320 height = 320 confThreshold =0.5 nmsThreshold= 0.2 #### LOAD MODEL ## Coco Names classesFile = "coco.names" classNames = [] with open(classesFile, 'rt') as f: classNames = f.read().rstrip('n').split('\n') print(classNames) ## Model ...
[ "bhandarivinod43@gmail.com" ]
bhandarivinod43@gmail.com
aa6d18ea83f9ad6357f4c67f63f1c726924bc095
85aecab4c2bfeb7791eed44ac87998e809918a69
/communityprofiles/profiles/urls.py
dde460ae400410f597a96e3294a54a154e50ac58
[]
no_license
DataSparkRI/Profiles
ab5b4042123f3061d3dbb2b58c2138c96a298b06
64123355a9d2dc19aa6b97a0ee936d77ddcc64d1
refs/heads/master
2021-10-11T21:15:56.679229
2019-01-29T21:35:24
2019-01-29T21:35:24
18,562,836
0
1
null
null
null
null
UTF-8
Python
false
false
1,496
py
from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^data_display/', include('data_displays.urls')), url(r'^dataview/(?P<level_slug>[-\w]+)/(?P<geo_slug>[-\w]+)/(?P<indicator_slug>[-\w]+)/$', 'profiles.views.data_view', name='data_view'), url(r'^indicator/info/$', 'profiles.views.indicato...
[ "asmedrano@gmail.com" ]
asmedrano@gmail.com
b4623a921ad3dc6202d291d2c9b1fc536769e4e5
8f16434074a47d2b646fb6c56275bea94155954e
/src/currency/api/views.py
f595bfbd147619fcda632ca045a9b9a9112dc853
[]
no_license
VadimNedojnov/currency_exhange
fe9bff3f1bc92db0eed2ac51c04a3f747b76ba97
10ba4fc19345ac52b27cb7788ba593f2f91f5753
refs/heads/master
2022-12-10T02:10:46.235623
2020-04-06T18:37:02
2020-04-06T18:37:02
240,323,235
0
0
null
2022-12-08T03:43:51
2020-02-13T17:43:11
Python
UTF-8
Python
false
false
1,442
py
from rest_framework import generics from django_filters import rest_framework as filters from django_filters import DateFromToRangeFilter from django_filters.widgets import RangeWidget from currency.api.serializers import RateSerializer, ContactSerializer from currency.models import Rate from account.models import Co...
[ "vadim.nedoynov@gmail.com" ]
vadim.nedoynov@gmail.com
6d58e5c66006d6909676396794ce59a4dcc2c967
0141eec18296ef01c17fd2004c257fc95af93d0c
/wildcat/Attention_pooling.py
c14ad0d6c50e70d74277873483c0646b9751bd0c
[ "MIT" ]
permissive
ngonthier/wildcat_box
d03067e8970cdc9e8abf087298241246fca06eae
0d321dac85d4edbe615a3c609501a688f162f799
refs/heads/master
2023-04-04T13:50:51.412299
2021-04-23T09:13:01
2021-04-23T09:13:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self,sizeMaps,num_maps,num_classes): super(Attention, self).__init__() self.num_maps = num_maps #self.L = 500 # Number of neurons of the last layers self.D = 128 self....
[ "nicolas.gonthier@telecom-paristech.fr" ]
nicolas.gonthier@telecom-paristech.fr
1456280d503130f6d93613f592d8e3f393f9dc5d
723ec2becc30c37e0686649f5497066fb99371ed
/C22_Algorithms/C22_FizzBuzz.py
161d299e42cb59afa3d59228e0e5cf57be02d9b4
[]
no_license
eztaban/theselftaughtprogrammer_althoff
bc2abb4e2d821337782052fcd43c03267e5cdcb5
cf4d1a544f6b33f4ce103cd8fa5fa7cdbd037f31
refs/heads/main
2023-07-15T03:43:44.589053
2021-08-25T14:15:48
2021-08-25T14:15:48
399,367,647
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
def fizz_buzz(): for i in range(1,101): if i % 3 == 0 and i % 5 == 0: print("FizzBuzz") elif i % 3 == 0: print("Fizz") elif i % 5 == 0: print("Buzz") else: print(i) fizz_buzz()
[ "iasonasmg@protonmail.com" ]
iasonasmg@protonmail.com
9c2449a93b94ae03b31f80d3b9aab1392fda13c6
14d7075dc32fe6206a3a946f01600c608f090378
/demo.py
9a210a48e727f6477da3dddd23c2389fdf4b6bfe
[]
no_license
CPS-AI/Learning-in-Frequency
2d4d434498a3efbff4db19da150daa38c7e82614
3708fe96d5042c2891ab4e880f62ae3be7ef6fa4
refs/heads/master
2023-04-06T20:26:48.982306
2021-04-14T20:03:58
2021-04-14T20:03:58
289,206,412
1
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
import os import numpy as np import tensorflow as tf from tfrecord_utils import get_dataset from stfnet import STFNet LAYER_TYPE = "conv" BATCH_SIZE = 32 SERIES_SIZE = 512 SENSOR_CHANNEL = 3 SENSOR_NUM = 2 CLASS_NUM = 10 EPOCH_NUM = 10000000 SAVE_EPOCH_NUM = 500 TRAIN_TFRECORD = os.path.join("tfrecords", "speech", ...
[ "leowangx2013@outlook.com" ]
leowangx2013@outlook.com
e16230916f670e5d95b4539713a019cea4511803
646a83d3de5ff2d2dc0c6f7efbd3f459a6479a63
/HW2TermStructure/TermStructure.py
d3877d9c37e09e3f0e5935bfaa9bc2b1ccc7c0a3
[]
no_license
Wangvory/AdvQuantFin
f35454f04ddcb80e80bd76bcf7e0e378322113ae
c198a7b04d4e88996c4baec2f926d71d566faddf
refs/heads/master
2020-12-26T20:57:05.019188
2020-12-14T19:30:18
2020-12-14T19:30:18
237,636,629
1
0
null
null
null
null
UTF-8
Python
false
false
5,113
py
import math from Bond import * class TermStructure(object): def __init__(self): self.bonds = [] self.spot_rates = [] self.forward_6m_rates = [] self.discount_factors = [] for _ in range(20): self.spot_rates.append(0.0) self.forward_6m_rat...
[ "noreply@github.com" ]
Wangvory.noreply@github.com
c6156127858d51a22d6fb2d77f57845b5803867c
8bdcf59378fcb9fc9d6ac4a1e75d8dd689cf5262
/testpaper/migrations/0020_auto_20200907_1255.py
f6920a79e1cdb05f9b39bdc39ae4cbd5e74d9b1b
[]
no_license
gauravmakode/backend
f1407a410e7d1276dee2fafb9b088a386cbafed1
746f8ab85255e61ae9d21f73eb2f72b08ff7692d
refs/heads/main
2023-01-04T22:23:52.143601
2020-10-27T17:26:44
2020-10-27T17:26:44
307,774,046
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 3.1 on 2020-09-07 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('testpaper', '0019_auto_20200906_1323'), ] operations = [ migrations.AlterField( model_name='userresult', name='test_na...
[ "gouravmmakode002@gmail.com" ]
gouravmmakode002@gmail.com
2cd2652921cd3489a23bca8b196de9bd001c7f0b
4ed9d9e6fcbf0382af37135a9eb0d4d6bab6df82
/utils/model_utils.py
d22ab9fa94989f20daa51daed43031bb83bd2bbf
[ "MIT" ]
permissive
haowei772/nli_test_bed
51bf8cde77d859ac3f3f40a377f6e88c11ba44a5
ed104398e12354200f77b4eefac53e0caa744431
refs/heads/master
2020-04-15T20:01:46.068627
2018-10-09T16:48:06
2018-10-09T16:48:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
import copy import seaborn import torch.nn as nn def clones(module, N): "Produce N identical layers." return nn.ModuleList([copy.deepcopy(module) for _ in range(N)]) def clones_sequential(module, N): "Produce N identical layers." return nn.Sequential(copy.deepcopy(module) for _ in range(N)) class Bo...
[ "amir.kargarb@gmail.com" ]
amir.kargarb@gmail.com
81ac21d7b63b06175e93fa6285ede6e54ec7a47b
df997d83d44a50242f1f0468c48d6fe678194cd7
/dheerendra.py
53f5e53bc960f306b4b71b8ce4fe7aec08193f6b
[]
no_license
ashsingh16/Ashish_test
85c84bb871c247c2499cf7840302a19bacb8ae26
4772e8051ce357605b12ef69fac85face3168bcc
refs/heads/master
2022-02-13T13:11:57.130637
2018-03-08T14:04:26
2018-03-08T14:05:57
124,188,200
0
0
null
null
null
null
UTF-8
Python
false
false
3,124
py
# -*- coding: utf-8 -*- import sys,re,os,time,signal,datetime def signal_handler(signum,frame): raise Exception("Time Out !!!!") fh=open("exam_1", "w+") a=datetime.datetime.now().hour*60+datetime.datetime.now().minute+datetime.datetime.now().second/60 result=[] def exam(): print """Question 1 : In which one of the fo...
[ "ashish301979@gmail.com" ]
ashish301979@gmail.com
edcc2376fd7627d14edf000a76f493cfd3be1586
20cd34df5d9b2b5257f673c0abd577c7b64760f4
/boggle_gui.py
468534e278ea7f56aeadf5744013b9584ef78ac6
[]
no_license
Michaliv/boggle-game
c2654dd07c57e806cf10660d7e52158042607f96
e2192dcf74e6253ee3255fb9f4697de8b9171127
refs/heads/master
2023-08-26T04:48:49.391464
2021-11-10T11:53:43
2021-11-10T11:53:43
397,701,449
0
0
null
null
null
null
UTF-8
Python
false
false
15,540
py
########################### # FILE: boggle.py # WRITER: michal ivianski , michaliv , 207182452 # maya kedem, maya_kedem, 209544121 # EXERCISE: intro2cs1 ex12 2021 # DESCRIPTION: A program that runs Boggle game using GUI. # WEB PAGES I USED: https://katzr.net/9da5f0 # https://katzr.net/d47847 #...
[ "michal.ivianski@mail.huji.ac.il" ]
michal.ivianski@mail.huji.ac.il
eafbc12700a5b5ca6d92534e9b63be154bb929a5
cef874e7aa937b3b7c2d16dd7468a676f4bdf479
/day76/bbs/blog/views.py
befc6ec033304dcfb1efeb269d90d0c5bbc04b93
[]
no_license
YB947624487/RBAC
88e8a79985ba78874c6346e32de02f0ca26641d6
cc0c13ad666d3a61d38b06b6f027d53816d82e1e
refs/heads/master
2020-08-07T10:39:29.962517
2019-10-07T15:31:59
2019-10-07T15:31:59
213,415,777
0
0
null
null
null
null
UTF-8
Python
false
false
7,395
py
from django.shortcuts import render, redirect, HttpResponse from django.http import JsonResponse from django.contrib import auth from geetest import GeetestLib from blog import forms, models # Create your views here. # VALID_CODE = "" # 自己生成验证码的登录 # def login(request): # # if request.is_ajax(): # 如果是AJAX请求 # ...
[ "947624484@qq.com" ]
947624484@qq.com
ef18296744eaa63797c87bf223f1135977cbf646
c2666b4da3e35a1d7222cfa78bd8575bb11cfda2
/ticketmodifiedfiles/__init__.py
b807a5a2e730f52abc60b05cce6fc6b61fe9eb33
[]
no_license
manicstar/trac-ticketmodifiedfiles
a2a383cfc5dbea93b515218908082ee166e3a015
0dbda18fde13083eaad18318c7a141806de5b9c0
refs/heads/master
2021-01-10T07:51:23.171184
2016-02-19T12:36:09
2016-02-19T12:36:09
52,072,746
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
# -*- coding: utf-8 -*- # ticketmodifiedfiles module #from ticketmodifiedfiles import * import web_ui import api
[ "manicstar@users.noreply.github.com" ]
manicstar@users.noreply.github.com
58287c8f16ad52e7eb29b9100bdfe1a92737cd7f
0b909f1657083407bfedb9742770ae2e31211f5e
/AttentionModel/model/Image_AttModel.py
e431011b4894bb2d98183adfdd76f1e579a0f4cb
[]
no_license
jwonged/Visual-Question-Answering
4ee3eef84f6d638699ae71bab21b3dac594ae13e
9f4e1b2c8bc91ca801747beceadca14f37752640
refs/heads/master
2021-09-14T15:14:35.725572
2018-05-15T13:10:24
2018-05-15T13:10:24
107,781,120
4
1
null
null
null
null
UTF-8
Python
false
false
12,614
py
''' Created on 15 Jan 2018 @author: jwong ''' import csv import json import os from model.Base_AttModel import BaseModel from utils.model_utils import getPretrainedw2v import tensorflow as tf class ImageAttentionModel(BaseModel): ''' VQA Model implementing attention over images ''' def __init__(sel...
[ "dsjw2@cam.ac.uk" ]
dsjw2@cam.ac.uk
782afe4b89cc895ef7db3febec0d8ea4d1fe68bd
48a522b031d45193985ba71e313e8560d9b191f1
/baekjoon/python/10845.py
03ba76a2e3bda466570074981b85970ee3ff655e
[]
no_license
dydwnsekd/coding_test
beabda0d0aeec3256e513e9e0d23b43debff7fb3
4b2b4878408558239bae7146bb4f37888cd5b556
refs/heads/master
2023-09-04T12:37:03.540461
2023-09-03T15:58:33
2023-09-03T15:58:33
162,253,096
4
1
null
null
null
null
UTF-8
Python
false
false
1,337
py
import sys class myqueue(): def __init__(self): self.queue = list() self.count = 0 def push(self, num): self.queue.append(num) self.count += 1 def pop(self): if self.count == 0: return -1 else: self.count -= 1 return...
[ "dydwnsekd123@gmail.com" ]
dydwnsekd123@gmail.com
f75aed436c24e9d2538883eb78396f37e7a6cd54
b30b7d7054b5d0cbe26193744f2413028f3572b5
/Tasks/Lebedev_Tasks/WH/Task2H/time.py
ae8fa6b36cb0c3fb6cd8932cb80654f0251751fa
[]
no_license
LappoAndrey/M-PT1-37-21
92b5d6506d672c273455ed692218d1974e28b245
face0917445435fd6b4b52fe4074ae1008d39567
refs/heads/main
2023-05-29T20:13:17.196826
2021-06-11T15:33:55
2021-06-11T15:33:55
347,397,556
0
0
null
null
null
null
UTF-8
Python
false
false
5,770
py
import time #c_datetime = time.strftime("%H:%M") #print(c_datetime) c_datetime=input('Введите текущее время: ') #create a list c_datetime_list = c_datetime.split(":") #separate the list h = c_datetime_list[0] m = c_datetime_list[1] h_int=int(h) m_int=int(m) #Hours with endings hours_WE={ "00" : 'первого', "...
[ "lebedev.023046@gmail.com" ]
lebedev.023046@gmail.com
c232749d16c4bdf311f885b5125932b5fac40854
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/tlm/sero/runner/mes_zero_handle_debug.py
c86af0614314dbdd51dc12cbb8a2402f2613f6a9
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
1,734
py
from my_tf import tf from taskman_client.wrapper import report_run from tf_util.tf_logging import tf_logging, MuteEnqueueFilter from tlm.model.mes_sel_var import MES_const_0_handle from tlm.model_cnfig import JsonConfig from tlm.sero.mes_mask_debug_model import model_fn_binary_classification_loss from tlm.training.flag...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
6fb21e9904ab1f37489b526de098d10c517a749a
df8233daf32997022c50dd26e93cdd13257657d7
/redelivery_model.py
0debddce544ca09fc46a39eef9a1dc7c5fcc37d9
[]
no_license
gympohnpimol/Last-Mile-Logistics
57b65fe60c5a40318fd465b490090237443e3a7f
ae4f4022a2058d74d244e62f07a77611a754cd0e
refs/heads/master
2023-03-28T04:49:36.864120
2021-04-03T17:22:14
2021-04-03T17:22:14
331,338,075
19
0
null
null
null
null
UTF-8
Python
false
false
1,949
py
import sys import os import numpy as np import pandas as pd import time from docplex.mp.model import Model from scipy.spatial import distance_matrix # from scipy.spatial import distance_matrix df = pd.read_csv("/Users/gym/Desktop/research/Benchmark_nSTW/lc101.csv") Q = 10000 cust_size = df.shape[0]-1 n = [2, 6, 7, 10...
[ "gympohnpimol@gmail.com" ]
gympohnpimol@gmail.com
dde78d0e969fb24139d8b9d41e9e210b9753402d
621dd2995f7b7a7ca814d15f37f86f98ed4cbbfe
/Game1.py
bb52e48b16128c47a4702550a41b411c5f079815
[]
no_license
AkshayAlt/FinalArcade
68ccefe5586bbd345dceaf5e3ce8b0fb752f8b85
ea9b69e0b54fae3e25323da5354bb190aa3e1307
refs/heads/master
2022-04-22T16:42:26.754186
2020-04-12T15:37:53
2020-04-12T15:37:53
255,114,281
0
0
null
null
null
null
UTF-8
Python
false
false
3,455
py
import os, sys import pygame import random import time pygame.init() green = [0,255,0] black = [100,0,0] white = [255,255,255] red = [255,0,0] blue = [0,0,255] window_width = 800 window_height = 600 gameDisplay = pygame.display.set_mode((window_width,window_height)) pygame.display.set_caption("Snake"...
[ "noreply@github.com" ]
AkshayAlt.noreply@github.com
4b2291a81c251957eab2419c9c40272462bbfcb3
a6df2f31e8ac71529491b6de5989dafc3447cd04
/44/pentagonNumbers.py
8972c5b0473200ea1ce3c695a404257c26df0976
[]
no_license
triplejay2013/ProjectEuler
fcc32a135dc83569e9f0fb82cc32c0c0e9acae16
09a011bf22bf9fbebdd34373cd177b65543939e2
refs/heads/master
2021-04-30T04:42:31.398547
2018-11-08T23:01:49
2018-11-08T23:01:49
121,542,981
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
# Pentagonal numbers are generated by the formula, P(n)=n(3n−1)/2. The first ten # pentagonal numbers are: # # 1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ... # # It can be seen that P(4) + P(7) = 22 + 70 = 92 = P(8). However, their difference, 70 # − 22 = 48, is not pentagonal. # # Find the pair of pentagonal numbers, ...
[ "triplejay2013@gmail.com" ]
triplejay2013@gmail.com
e15318eec56ae80e8449fe36614c11cab71997af
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_068/ch1_2020_04_01_00_28_02_782231.py
c3f7b5170aa04c0fd8eef7a720671cf05649681c
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
def calcula_valor_devido(valor_emprestado, número_de_meses, taxa_de_juros): a = (valor_emprestado) * ((1 + taxa_de_juros) ** número_de_meses) return a resultado = calcula_valor_devido(10, 1, 0.2) print(resultado)
[ "you@example.com" ]
you@example.com
8dcb5177d7252d183b9810c7a7d1f52501f1e0f3
fa3b5a7293ffcb8f0bb6fe744e74f9192330d590
/my_testing.py
382144b051b7c4d41430987cb8e68b0da7dfdea1
[]
no_license
Alvaru89/crypto_RL_project
7c749a8760cf5ed9c072300a210649ca54a7ad59
d8b5b82de14672c78acccbebba85134577bef718
refs/heads/master
2023-07-11T16:24:03.579200
2021-08-12T10:21:49
2021-08-12T10:21:49
394,950,744
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import numpy as np from my_env import Crypto_Env import random start_date="2014-01-01" end_date="2021-07-06" trial_dict = {'try': [], 'prob_buy': [], 'end_wallet':[], 'max_reached':[]} for i in range(0,100): #100 trials env = Crypto_Env() # initialize our environment ...
[ "alvaro.rodriguezdelgado@gmail.com" ]
alvaro.rodriguezdelgado@gmail.com
8ba5356bb4ab76f98101238c56a70d702bc4d8ab
96a34a048c783a75736bf0ec775df22142f9ee53
/services/web/server/src/simcore_service_webserver/studies_dispatcher/__init__.py
da93464a56f2cc9d34ea34d4cf4cb80fe01cf85b
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
143
py
""" This app module dispatches pre-configured or on-the-fly studies to a user from a permalink that is redirected to the front-end """
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
60fcecd50b8626d70912fffe094466339b77dc16
4370f6d89b01e06cdeacf25a464c3455fcefe215
/src/kondisi_if/kondisi_ketiga.py
6dcdf03f0f78ebd999f583343b41b846813fcb64
[]
no_license
frestea09/Python
7d4ba210be327dedead395965cc6160f24a29b43
6fa1abeb419970506c9ebbd9ac4775333a68d97b
refs/heads/master
2020-04-25T19:48:01.702084
2019-03-08T14:17:53
2019-03-08T14:17:53
173,032,978
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
#name-file : kondisi_pertama.py from __future__ import print_function def main(): #input inputKalimatPertama = input('Kalimat Pertama : ') inputKalimatKedua = input('Kalimat Kedua : ') #membuat satu variabel penampung hasilPembanding = " " if(inputKalimatPertama==inputKalimatKedua): ha...
[ "ilmanfrasetya@gmail.com" ]
ilmanfrasetya@gmail.com
9b82e4e6bc26f150094c12115fbbac9688d3cf99
11d2d067f5103acf844377236a525de908b29e1f
/0x01-python-if_else_loops_functions/2-print_alphabet.py
3b60af6d598440521a9b17c1aabc158544114651
[]
no_license
jagrvargen/holbertonschool-higher_level_programming
0a9815c08cea848b5190f4acd4adb44b89cd3360
510c52c5f48b05aaed62b8f9add90af8dbef909c
refs/heads/master
2021-09-14T09:07:25.930617
2018-05-11T00:11:10
2018-05-11T00:11:10
113,070,512
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
#!/usr/bin/python3 for l in range(97, 123): print('{}'.format(chr(l)), end='')
[ "229@holbertonschool.com" ]
229@holbertonschool.com
66adda6a51cfd981791f7639a62eccbeb494543c
33824a028810a1ea0cbe16cd1bdfe9b55f6b275b
/Week 5- Object Oriented Programming/9. Classes and Inheritance/Exercise- Spell
a673467f7ed13f4a9df74636d480ab4ce7dfbbec
[]
no_license
kavithacm/MITx-6.00.1x-
ff56dc254e2516b621aa1bbedd3b916d336081c7
ae18cb9dfc3e5241ba603d4ca16cba13c5f8e334
refs/heads/master
2021-07-08T05:10:31.710929
2020-08-04T17:29:58
2020-08-04T17:29:58
155,975,547
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 22 14:35:16 2018 @author: Kavitha """ ''' Exercise: spell 9.0/9 points (graded) ESTIMATED TIME TO COMPLETE: 12 minutes Consider the following code: class Spell(object): def __init__(self, incantation, name): self.name = name s...
[ "kavithamohan0404@gmail.com" ]
kavithamohan0404@gmail.com
98850ccfd0eb4e6595d4644d14f5ccf787eeb799
cfa4d505b10b0f8637210031a4709e2d99958e1d
/Histogram.py
8f461b02f00417676e829a655e2e6ce0fd165e7a
[]
no_license
FominVlad/Computer-graphics
3d4ee0497c1c408bc566caae1a49db31cb46c7c2
943485bfcf7bbd465aba409e49570377d7be482c
refs/heads/master
2022-09-15T09:27:53.043384
2020-06-02T11:21:17
2020-06-02T11:21:17
268,129,543
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from PIL import Image from pylab import * img = Image.open('images/profile.jpg').convert('L') img_array = array(img) #img.show() figure() hist(img_array.flatten(),500) show()
[ "vladislav.fomin@kizv.gov.ua" ]
vladislav.fomin@kizv.gov.ua
3e554690085a9f9b019a352ca8d7d7968991c1d8
97a3f1f9ae76ddfcab4a6be9d4fe493a5a9e2727
/dataset_utils/Tokenizer.py
c1603f8fa58e68e41cfd4a92072cff157099772b
[]
no_license
1cipher/NaiveBayesTextClassifier_AI
04737f9937cd0199842ea6fac124811c5e8d6428
626fda91494f244e7a6aff1f8c98bddf977f7516
refs/heads/main
2023-04-02T04:49:20.140663
2021-04-05T13:49:54
2021-04-05T13:49:54
331,957,409
0
1
null
null
null
null
UTF-8
Python
false
false
545
py
from nltk.corpus import stopwords from nltk.stem.porter import PorterStemmer import string import re from nltk import word_tokenize class Tokenizer(object): def __init__(self): self.regex = re.compile('[%s]' % re.escape(string.punctuation)) #Core function for tokenization def __cal...
[ "noreply@github.com" ]
1cipher.noreply@github.com
a2a13a58086d60404137b9a201ee59c00653f220
ab1410b0c7de1b165199a457b24eae7c834acb93
/qrhunt/qrmaster/urls.py
40225e6a2d9a0f622c6bd5e13185ac0b4b47c449
[]
no_license
augustoerico/qrhunt
d23b957a8efe31e14406ad481a6d254b489e1bfe
f44e93071534c5c3db75d07fb53af2d05cc808b6
refs/heads/master
2021-01-10T14:01:23.099385
2017-02-26T22:51:33
2017-02-26T22:51:33
43,642,441
1
1
null
null
null
null
UTF-8
Python
false
false
924
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^login/$', views.do_login, name='login'), url(r'^logout/$', views.do_logout, name='logout'), url(r'^quests/(?P<pk>[0-9]+)/$', views.quest, name='quest'), url(r'^quest/create/$', views....
[ "augusto.ericosilva@gmail.com" ]
augusto.ericosilva@gmail.com
6c3901233177962dcbd90a56dcf59e086be9167b
12b8ecb48089aabf70f890b65115b79330794d44
/backend/manage.py
6d3daffa6e6e52a7b10ab519931e21e13c7cc550
[]
no_license
crowdbotics-apps/vncopaken-insurance-21368
d186a9414fac8d003b0466c316e9e2f9cc3d8e4d
15740f76f03ccae4716b2e4a817dccd92f7035cf
refs/heads/master
2022-12-29T07:39:35.203942
2020-10-11T18:40:10
2020-10-11T18:40:10
303,188,178
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "vncopaken_insurance_21368.settings" ) try: from django.core.management import execute_from_command_line except ImportEr...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
80bb4c4d4f30b02e1e473b7632e7bf3fe24f1724
658c5de92605229e569e39563f6fdaa8a08c807d
/2016/day16.py
19667b4f20c569eebc9a5267f985c44f82e339b5
[]
no_license
bufordsharkley/advent_of_code
861a920cc5ec94bec44a1afd209cae32c56d3c62
a8baf06c792fe5397071ba7ce6526322b6cdea16
refs/heads/master
2021-01-10T12:54:38.752683
2017-11-17T02:10:35
2017-11-17T02:10:35
47,371,956
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
def translate(char): if char == '1': return '0' elif char == '0': return '1' else: return char def checksum(text): resp = [] for ii in range(0, len(text), 2): if text[ii] == text[ii + 1]: resp.append('1') else: resp.append('0') res...
[ "bufordsharkley@gmail.com" ]
bufordsharkley@gmail.com
fa17bd0ab2ddad5e39e110fbd035c6e644f077f3
39b75cc0944192abb7362551a828f99b13071cdb
/EBC/python/setup.py
42e1224b13785ae4c4a40e22f6a3dcf474d3d5e2
[ "MIT", "Apache-2.0" ]
permissive
wenzuochao/antchain-openapi-prod-sdk
afa34fbfa0bbfcff7ec3c4417ecbf56a381317ad
7b83983b880bf32025614479e680ad9c665b72da
refs/heads/master
2022-12-03T04:01:45.648840
2020-07-13T13:10:26
2020-07-13T13:10:26
284,925,309
0
0
MIT
2020-08-04T08:43:52
2020-08-04T08:43:51
null
UTF-8
Python
false
false
2,436
py
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
4823e857f0fd6789502ebdbfa8fcc92232b23d74
e5b469b80def40cc0e1178a1306ad9517c83fd0c
/src/api_info.py
0a0598017b14d2f70e2416e16a93b909c7a02e77
[]
no_license
seorakwon/project-mongodb-geopartial-queries
ebfc66f15016310e8ff9edfd4f9fec1780b3aab2
347bb5903d2a57e38dad87626c957319f332786f
refs/heads/master
2020-09-11T04:45:07.545477
2020-01-12T13:14:53
2020-01-12T13:14:53
221,942,738
0
0
null
2019-11-22T11:45:59
2019-11-15T14:42:08
Jupyter Notebook
UTF-8
Python
false
false
1,883
py
import requests import json import sys import os from dotenv import load_dotenv load_dotenv() import pandas as pd # yellp request function def requestyelp(business): yelp_api_key = os.getenv("YELP_API_KEY") if not yelp_api_key: raise ValueError("No key provided") else: print("The key provi...
[ "seorakwon@gmail.com" ]
seorakwon@gmail.com
fb5c88bbf473447647caa9171dec878fc534c6e2
9580cfa5e34137db9b9f5f4a1c5708539e60b667
/projects/DensePose/densepose/vis/densepose_outputs_vertex.py
a9c0c561dfef00e6df16a20ac0d17b7f7d07937a
[ "Apache-2.0" ]
permissive
ivanpp/detectron2
31759b11f4c3ad8dd39ece557710b0a6522648f7
57e9a631bc9ab96c314af70a1aec1437d19300fb
refs/heads/windows
2021-08-15T09:06:42.004337
2021-08-01T08:39:44
2021-08-01T08:39:44
238,376,055
28
13
Apache-2.0
2021-01-16T15:23:09
2020-02-05T05:35:16
Python
UTF-8
Python
false
false
8,432
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import json import numpy as np from functools import lru_cache from typing import Dict, List, Optional, Tuple import cv2 import torch from detectron2.utils.file_io import PathManager from densepose.modeling import build_densepose_embedder from den...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
2a0ca3b44cfea8ffd2ee7f2e77226ffcad22c6da
264b789b89dce7c55860463bacf9fb804e10c2fc
/view.py
78ce8a005defb5d9fee08f54f3d761574b35265c
[]
no_license
rwu780/project_gui
b851137fb127820508ff5afb0179863b59687329
8f52f81c61513498b0344cb62fc05f90ce9ddbd7
refs/heads/master
2020-03-08T00:11:59.848099
2018-04-02T19:11:45
2018-04-02T19:11:45
127,800,536
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
import wx import wx.xrc import wx.grid as gridlib OUTPUT_FILE = "output.txt" class MainFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, id = wx.ID_ANY, title = title, pos = wx.DefaultPosition, size = wx.Size(500, 408), style = wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL ) panel...
[ "rwu4@ualberta.ca" ]
rwu4@ualberta.ca
063495c24383602ceca3d91d5accd9543399bf73
6e857ce7f134284b520129cdb673a4581ecfbafa
/Data augmentation.py
42c6187fd1bc05b1b3a59d7604c2ec58538dc7fd
[]
no_license
arkanivasarkar/Bacterial-Cell-Classification
31a8c0c4dbea649260a1c9ae0d068d31ba9e8dcd
64bd3c128e0e321ecc4c9ed60b0bba2b138696f8
refs/heads/main
2023-08-23T05:12:04.139475
2021-10-15T14:30:09
2021-10-15T14:30:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
import os from keras.preprocessing.image import ImageDataGenerator,load_img,img_to_array #data augmentation parameter datagen = ImageDataGenerator( rotation_range=120, width_shift_range=0.2, height_shift_range=0.2, shear_range=0.1, zoom_range=0.2, horizontal_fl...
[ "noreply@github.com" ]
arkanivasarkar.noreply@github.com
0dc96aa1ecef2bd663aa44978dda26774af79e69
93d29717570ace199ed3db8c5f40fb1baa127fc8
/app/check_db.py
7277c5b49d3c91bc938f04e8a8c67bf79ac23693
[]
no_license
akramhussein/herdit-django
77dc6bd3e23871a76ae839907700cf6b7ab4facb
eb843738e9ce1d6fb7810dcea459f2d322b32113
refs/heads/master
2021-01-11T14:49:58.405007
2017-01-27T17:01:37
2017-01-27T17:01:37
80,225,775
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
#!/usr/bin/python """ Test connection to database """ import os import sys import psycopg2 db_host = os.environ['DB_HOST'] db_name = os.environ['DB_NAME'] db_port = os.environ['DB_PORT'] db_user = os.environ['DB_USER'] db_password = os.environ['DB_PASS'] db_check_timeout = os.environ['DB_CHECK_TIMEOUT'] try: pr...
[ "akramhussein@gmail.com" ]
akramhussein@gmail.com
5577d6eec3a7f31cd64b42298ec68c478d934d16
86cd22354f2431087c9b3ff06188f071afb3eb72
/710. Random Pick with Blacklist.py
573343a2bb000d9af8213541e8815e74745a24f5
[]
no_license
tlxxzj/leetcode
0c072a74d7e61ef4700388122f2270e46c4ac22e
06dbf4f5b505a6a41e0d93367eedd231b611a84b
refs/heads/master
2023-08-31T11:04:34.585532
2023-08-31T08:25:51
2023-08-31T08:25:51
94,386,828
2
0
null
null
null
null
UTF-8
Python
false
false
773
py
class Solution: def __init__(self, N: int, blacklist: List[int]): n = len(blacklist) m = N - n if m <= 100000: self.seq = [] black = set(blacklist) for i in range(N): if i not in black: self.seq.append(i) else: ...
[ "tlxxzj@qq.com" ]
tlxxzj@qq.com
a68aa928fe1fc0a3a409e2a12b28372f45b00c1d
ca58ba9d1246279f93feaf4a51a3de0f0adff738
/804.py
5ba4aa349006e954384349093f99c5807399753b
[]
no_license
BigbyNick/LeetCode_notes
bd55161b190439ef7cdd14a71e133e2162b06dd8
41261c7864a6456193f86fa704c0980a22481d24
refs/heads/master
2018-11-01T02:18:01.212659
2018-09-03T15:54:28
2018-09-03T15:54:28
143,669,284
1
0
null
null
null
null
UTF-8
Python
false
false
1,317
py
# -*- coding: utf-8 -*- """ Created on Fri Aug 24 15:33:18 2018 @author: NickYue """ class Solution(object): def uniqueMorseRepresentations(self, words): """ :type words: List[str] :rtype: int """ code = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".--...
[ "noreply@github.com" ]
BigbyNick.noreply@github.com
dac5b27e96fa3bfce9abbe7545c50fab816838ca
d29ebc34734aefc6845ac58306fc6a802e775730
/postprocessing/gz-results.py
fbb2c33a00bc28ab414cd5c84f2a7a0703a42aad
[]
no_license
bergey/ASHRAE-RP-1449
bbe596832e30d31eefd5b40e8721423e57ed7aa2
eeac8e92265ad8ca26a81a31fa328b4012f8c0f4
refs/heads/master
2016-09-06T10:47:30.963376
2013-01-09T19:09:51
2013-01-09T19:09:51
2,482,557
3
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
#!/usr/bin/env python # zip (or unzip) every regular file in a given directory tree from os import listdir, system from os.path import isdir, join from optparse import OptionParser parser = OptionParser() parser.add_option('-q', '--quiet', help='only report errors', dest='verbose', action='store_false', default=True)...
[ "bergey@alum.mit.edu" ]
bergey@alum.mit.edu
8ba4083f6c01ce0cd3c3907414ccb8bb4d1439da
6ce8bac9967ad98db865321cc7a3ca9481e846a1
/task3_tree/draw.py
c708b9e8447a4495d3b3a48765aa77f57aa45f45
[]
no_license
ArtyomKaltovich/ib_ml
d56fe6a3e557586dec1b91df8d29cdd2869abdb7
d3e3d3e705bfd5018ee123d1e8469aae17d734aa
refs/heads/master
2021-01-05T04:35:31.442984
2020-05-09T21:46:01
2020-05-09T21:46:01
240,882,417
0
0
null
null
null
null
UTF-8
Python
false
false
3,616
py
import matplotlib.pyplot as plt import numpy as np from task3_tree.tree import DecisionTreeNode def plot_roc_curve(y_test, p_pred, save_path=None, show=True): positive_samples = sum(1 for y in y_test if y == 0) tpr = [] fpr = [] for w in np.arange(-0.01, 1.02, 0.01): y_pred = [(1 if p > w els...
[ "KaltovichArtyom@gmail.com" ]
KaltovichArtyom@gmail.com
fe3a54f610a846262df9a9407063628ad2f42d5c
aa06aa622a43fc52af376776229f38c8c931163d
/lesson16_1.py
4ee11fe9e65ec63592a21a401706a64abb774337
[]
no_license
DazzleTan/Turle
e55cf8f7126ccdb0a91147c497213d3096a15500
a151c64112062a9a6c7559d90ea9f0fb7a634cd2
refs/heads/master
2023-02-28T17:58:49.675002
2021-02-04T10:13:05
2021-02-04T10:13:05
314,497,839
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
''' 顺序结构绘制十字形图案 ''' import turtle as t t.fd(50) t.lt(90) t.fd(50) t.lt(90) t.fd(50) t.rt(90) t.fd(50) t.lt(90) t.fd(50) t.lt(90) t.fd(50) t.rt(90) t.fd(50) t.lt(90) t.fd(50) t.lt(90) t.fd(50) t.rt(90) t.fd(50) t.lt(90) t.fd(50) t.lt(90) t.fd(50) t.rt(90) t.done()
[ "377648526@qq.com" ]
377648526@qq.com
c5de8f16af42b546b41504875a5e68942e82afd8
b3fd61fdfd6ea82695d805c95321619423b836e6
/Pratik_Trend_Micro.py
df8e679f7d4c93e8dcf2c256008144ecf2e90677
[]
no_license
sjogleka/General_codes
761967fd1175c97804d49290af9db10828d4900f
2772ea7b723c4ca680864b40b41fd34cc197726d
refs/heads/master
2021-07-16T07:41:05.841942
2020-10-14T01:49:12
2020-10-14T01:49:12
218,369,391
7
8
null
null
null
null
UTF-8
Python
false
false
2,032
py
def MaxTime(A, B, C, D) ArrayElements = [A, B, C, D] if ArrayElements == ArrayElements - [0, 1, 2]: return "NOT POSSIBLE" TimeReturn = " : " if ArrayElements.include?(2): TimeReturn[0] = ArrayElements.delete_at(ArrayElements.find_indexOf(2)).to_s1 elif ArrayElements.include?(1): ...
[ "sjogleka@uncc.edu" ]
sjogleka@uncc.edu
2667aeb61866ef3940a2f09655a0a16202037b54
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03437/s131014636.py
d165f68f0df6b573cd860e5f700d5753c9a77d8a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
a,b =list(map(int,input().split())) if a%b == 0: print(-1) else: print(a*(b-1))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
46dedff450414944a6e5a9c5d83b9053ca4dfc20
aa7574b7eaa56eacca9c176470f33d0fc5890680
/app/providers/nlpprovider/nlp_provider.py
02db44986777102633b83feb88297384889f20ae
[]
no_license
Grinnbob/g_theclone
2f07715f0b48e71b3fb2ba517d8ba52adf7cc2a8
8bc8b07b9800356c64f98156f36fbea8eafb08ac
refs/heads/main
2023-03-01T00:45:23.348207
2021-02-10T14:41:05
2021-02-10T14:41:05
337,743,129
0
0
null
null
null
null
UTF-8
Python
false
false
3,366
py
from app.exceptions import * from typing import Any import traceback import os from app.core.config import settings import pandas as pd from .topics import TopicStatistics from .entities import EntityStatistics from .dummy_topics import dummy_topics_list class NlpProvider(): def __init__(self, direct=True): ...
[ "grifon12358@gmail.com" ]
grifon12358@gmail.com
5d0494f09f1df3f8be4a967f863027493cac9073
31cae5035cac9e839f82a782f6bb57bde672d108
/mdp_grid_world
e7d75889916b9b806ee16a579914486b2d97585e
[]
no_license
abdalmoniem/MDP_GridWorld
ca86db1913550c49a56d8b7f82dda6a171b33ec2
3541c49126b2067f196245b2a4f096dc21d8483c
refs/heads/master
2020-06-10T21:04:59.945030
2016-12-08T00:00:04
2016-12-08T00:00:04
75,874,198
7
2
null
null
null
null
UTF-8
Python
false
false
3,788
#!/usr/bin/env python3 ########################################### # @author: AbdAlMoniem AlHifnawy # # # # @email: hifnawy_moniem@hotmail.com # # # # @date: Thu Dec 1 5:28:03 PM # ########################################### from tkinter import * from GridWorld import GridWorld from G...
[ "hifnawy_moniem@hotmail.com" ]
hifnawy_moniem@hotmail.com
2e140b4f3ffeeaba4d020b9e77a7076b45123bc9
1a634742ec485cdf14fb38e8baa3b90357215c24
/Cipher-one-Cipher/core/migrations/0012_upcoming_patient.py
a4bf046f79701e99419b7e1cba79b1f7c93b16f1
[]
no_license
Vishalmast/PCP-management
249230cdb6880e6724680d0328924f7a2e0c2c38
3940a3db5472ea779bd1732ed15eded3bfaa23a6
refs/heads/master
2022-12-22T05:53:01.758663
2020-09-27T12:53:59
2020-09-27T12:53:59
289,913,693
1
0
null
null
null
null
UTF-8
Python
false
false
617
py
# Generated by Django 3.1.1 on 2020-09-24 12:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0011_auto_20200923_1758'), ] operations = [ migrations.CreateModel( name='Upcoming_patient', fields=[ ...
[ "kumarvishalmast@gmail.com" ]
kumarvishalmast@gmail.com
ce8c5a4b65e03f2ca0b87c3ed02b4dcceed91544
5bf4d693c2d0ef152eeb299c7b11ae62f5a24d67
/tut53 - diamond shape problem in multiple inheritance oops14.py
1dea0ba195866023b77e8f0647e8d68bfa63305f
[]
no_license
Python-Geek-Labs/learn-python-
ff8faa9d0676fc9677e937c8bfcd2163a80b88de
411e611ef8dbab5090868ef5c84879fd7277c1fd
refs/heads/master
2023-03-17T19:46:57.620975
2020-03-26T22:47:39
2020-03-26T22:47:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
class A: def met(self): print('This is a method from class A') class B(A): def met(self): print('This is a method from class B') class C(A): def met(self): print('This is a method from class C') class D(B, C): def met(self): print('This is a method from class D') a = ...
[ "52421094+mr-vaibh@users.noreply.github.com" ]
52421094+mr-vaibh@users.noreply.github.com
1dd73119d46c94c6ae20a8bbb5f88f0a121068b2
255021fadf9f739db042809ca95f5b9f75609ec5
/D3/3408 세가지합구하기.py
076a44d353d49b9dc9e80cb3eae5e69402e79435
[]
no_license
unsung107/Algorithm_study
13bfff518fc1bd0e7a020bb006c88375c9ccacb2
fb3b8563bae7640c52dbe9324d329ca9ee981493
refs/heads/master
2022-12-13T02:10:31.173333
2020-09-13T11:32:10
2020-09-13T11:32:10
295,137,458
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
results = [] for rounds in range(int(input())): result = [] N = int(input()) result.append(str(N*(N+1)//2)) result.append(str(N**2)) result.append(str(N**2+N)) results.append(f'#{rounds + 1} {" ".join(result)}') print('\n'.join(results))
[ "unsung102@naver.com" ]
unsung102@naver.com
80bc927b02f46308bf74bba86251982a165f1ba2
ad1fd7cbe87fe6545dc4c09479fb2064ff6f8487
/python_scripts/set_colors.py
c4eb7a7b1c6175423344acccc4d593be6d156bd2
[]
no_license
lruhlen/CppHenyeyCode
ea61df59aec0ff01c91589e79b6dfdc7d583bdec
8e670f95008a35aab998985fb2be4a363fb6645b
refs/heads/master
2021-01-17T14:32:32.905693
2015-04-19T20:28:38
2015-04-19T20:28:38
20,532,838
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import matplotlib, random def set_colors(NumColors=8): import matplotlib, random cc = [0] * NumColors for item in range(NumColors): cc[item] = ( (item) * 256 / NumColors) random.shuffle(cc) rcParams['axes.color_cycle'] = list(cm.hsv(cc)) rcParams['lines.linewidth'] = 2
[ "lruhlen@ucsc.edu" ]
lruhlen@ucsc.edu
2a60b3d2786853d877585aa5e29db5d3cc8e568e
cc1d11339b22bb6d62cc1529b63eb2f1437ebf0b
/dfs/MinDepthOfBinaryTree.py
a48a4acd88fc860b9d5d9199089a772612d3df70
[]
no_license
munkhtsogt/algorithms
38f408295ca8a91f40661f85f64b0020da1b483b
0428189510b0742c7270ffbe73f71ba165b0ad42
refs/heads/master
2020-03-07T08:31:13.994374
2018-07-25T13:56:11
2018-07-25T13:56:11
127,380,698
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None import sys class Solution(object): def minDepth(self, root): """ :type root: TreeNode :rtype: int """ if root == None: return 0 self....
[ "munkhuu48@gmail.com" ]
munkhuu48@gmail.com
9165489745cbf9d388db49cd43e80d475ddd628b
8d8f0ce57775c3cd79e99fd992eac5658e7e1c77
/dipy/core/benchmarks/bench_sphere.py
8e56e85aafec734ca2ad18d2d8f38ca327ddf684
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MNagtegaal/dipy
16e75768e770aa337e1f44aba16b1cd32b705e75
cfc259b5dfb7dc585f098f9000456fd4948517d8
refs/heads/master
2020-12-05T23:44:04.669013
2020-01-07T12:04:36
2020-01-07T12:04:36
232,279,846
0
1
NOASSERTION
2020-01-07T08:33:20
2020-01-07T08:33:19
null
UTF-8
Python
false
false
3,966
py
""" Benchmarks for sphere Run all benchmarks with:: import dipy.core as dipycore dipycore.bench() With Pytest, Run this benchmark with: pytest -svv -c bench.ini /path/to/bench_sphere.py """ from __future__ import with_statement import sys import time import dipy.core.sphere_stats as sphere_stats impo...
[ "jon.haitz.legarreta@gmail.com" ]
jon.haitz.legarreta@gmail.com
48df0d26d34bda96ca1e48b42d964a4ae7afb4b3
abe67b1777755e053d7a739c37e7486f767bb89c
/PagerankPySpark.py
7cf58db958ad554901aec93af357608fbe70bfce
[]
no_license
AlesundPE/PageRank
764ad42d860494cff9a83e6d07332b20685d388c
2b59a898ee83c12b7aafcc649412b6ccc5bbed94
refs/heads/main
2023-04-21T17:48:20.013331
2021-04-27T10:58:58
2021-04-27T10:58:58
362,079,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
def destReceive(data): dests, PageRank = data[1] contribution = [] for dest in dests: contribution.append((dest,PageRank/len(dests))) return contribution import findspark findspark.init("D:/spark-3.0.1-bin-hadoop2.7") # you need to specify the path to PySpark here. from pyspark import Sp...
[ "noreply@github.com" ]
AlesundPE.noreply@github.com
bc41cc014ae80e7e855d634a8b71826cf8f32bab
6fb37fee016346120d4c14c4343516532304055a
/src/genie/libs/parser/iosxe/tests/test_show_flow.py
b8b395d32c1bed5e1602f1cb7df54ef910a695eb
[ "Apache-2.0" ]
permissive
devbollinger/genieparser
011526ebbd747c6dcd767535ce4bd33167e15536
ad5ce7ba8f5153d1aeb9cffcfc4dde0871f3401c
refs/heads/master
2020-12-20T11:36:00.750128
2020-01-24T18:45:40
2020-01-24T18:45:40
236,061,155
0
0
Apache-2.0
2020-01-24T18:38:43
2020-01-24T18:38:42
null
UTF-8
Python
false
false
18,650
py
# Python import unittest from unittest.mock import Mock # Metaparser from genie.metaparser.util.exceptions import SchemaEmptyParserError,SchemaMissingKeyError # ATS from ats.topology import Device from ats.topology import loader # iosxe show_flow from genie.libs.parser.iosxe.show_flow import (ShowFlowMonitor, ...
[ "karmoham@cisco.com" ]
karmoham@cisco.com
4d4106f5f500ab131f597624202fcac34758728c
1cc158417f5b8e54cacbb1789740907ff7004a94
/SB52/DictionaryPharser.py
869d6343dd76f8b58874d02581e419469ece6d43
[]
no_license
SoftwareBound/Project-II
74a142f63ad5bfc418126b1496abb932512c14cc
6c59200efc7515f10b8b9551b7d4da18028359ee
refs/heads/master
2020-04-14T05:42:34.314230
2019-01-01T02:48:54
2019-01-01T02:48:54
163,666,795
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
import Dictionaries import pprint pp = pprint.PrettyPrinter(indent=4, width=5) class DictionaryPharser(): def __init__(self): self._EscapedUnicodeEmoticonsDic = None self._NegativeStopWordsList = None self._NickNamesList = None self._NRC = None self._SlangDic = None self._StopWordsList = N...
[ "noreply@github.com" ]
SoftwareBound.noreply@github.com
2621d432474e7927bf4834d87da959177a7aea3d
3abdb4694b18c97cd3954e4b51a7390540c6be2d
/app.py
ed4e7cd36a5fe357195070f2a3c1c039eb713c8b
[]
no_license
Zinia96/Flask_Restful_Api
09d8bb5bd0c0075400503469bb1e4bd4dda1d68e
c9badc64b4560f1228c677c992a45fc18ec8dcee
refs/heads/master
2023-03-13T23:01:19.526600
2020-04-14T15:52:17
2020-04-14T15:52:17
255,183,754
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from models import db, ma from config import Config app = Flask(__name__) def create_app(): #app = Flask(__name__, instance_relative_config=False) app.config.from_object(Config) db.init_app(app) ma.init_app(app) from routes import api...
[ "ziniajahan96@gmail.com" ]
ziniajahan96@gmail.com
fba6f63119d80358ed974127cbcd8fbca287a8dc
4fc8fe478a6a5b8b82a7f4df9e041d9a4b04e7b8
/tariffs/admin.py
0bd24d93c5400f840686f077bbed4f864a028e97
[]
no_license
vadosl/thesame
92f5f4debc5e645244e79a5e2713b7c3bd791585
ec3d54f2cf6204c8761536ac9813bc18dfae98ea
refs/heads/master
2020-12-28T09:31:29.317622
2014-06-03T04:26:07
2014-06-03T04:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# -*- coding:utf-8 -*- from django.contrib import admin from .models import Tariff class TariffAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'is_best') search_fields = ['title', 'slug'] prepopulated_fields = {"slug": ("title",)} admin.site.register(Tariff, TariffAdmin)
[ "yesnik@yandex.ru" ]
yesnik@yandex.ru
65e8f78f3a5867d100fe988a915c1ce5af44854a
71db5bd517d3cd01a7d529d54eafc6a75808a845
/venv/Scripts/pip3.6-script.py
e71a440a94a12161a5771d1da0dc6b8f1d29f1df
[]
no_license
rahulkhanna2/djangoProject
c1d3c20f11c55ba5b6fe40e6028067f0fa4b90e1
77a827a5ff655b80cf3a012ac47977eef9085250
refs/heads/master
2021-07-07T06:00:39.113270
2018-10-29T11:04:19
2018-10-29T11:04:19
155,196,748
0
1
null
2020-07-22T22:59:16
2018-10-29T10:58:30
Python
UTF-8
Python
false
false
431
py
#!C:\Users\twinkle.arora\PycharmProjects\djangoproject\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$...
[ "Twinkle.Arora@igglobal.com" ]
Twinkle.Arora@igglobal.com
710c732859dc60851588862c31a1d5d9204b7e18
8773daa6983d12a9675aa1f22327b38f567efd12
/cos-python-sdk-v4.0.0.24/test.py
793651415433e506505ef3f3fc3b39ebe70c207a
[]
no_license
StorageLab/cos-python-sdk-ut
31e4300557d307facf85028a523c2ecb4bb18fcf
7158813cdc57a07a54f3d889770a723d75d75832
refs/heads/master
2021-09-13T05:26:27.120856
2018-04-25T11:35:02
2018-04-25T11:35:02
119,129,698
0
0
null
null
null
null
UTF-8
Python
false
false
6,528
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from qcloud_cos import CosClient from qcloud_cos import UploadFileRequest from qcloud_cos import UploadFileFromBufferRequest from qcloud_cos import UpdateFileRequest from qcloud_cos import UpdateFolderRequest from qcloud_cos import DelFileRequest from qcloud_cos import Del...
[ "dutie123@qq.com" ]
dutie123@qq.com
a39c9a964d0c9bf4f46583a60e85ab9ac89b78a8
a8459d984202c84c95348966dc01e75a09dad9f3
/tfplus/data/synset.py
8cef9c9992cf422ac92decba821d951d56405d13
[ "MIT" ]
permissive
ziyu-zhang/tfplus
9a538f4dd5dd0f074efb3ad8b44703fbbec74b7a
0629b955c2f461b5ad75cfde81547acccb476e45
refs/heads/master
2020-12-14T18:44:51.229344
2016-08-03T17:22:42
2016-08-03T17:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,076
py
synset = [ "n01440764 tench, Tinca tinca", "n01443537 goldfish, Carassius auratus", "n01484850 great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", "n01491361 tiger shark, Galeocerdo cuvieri", "n01494475 hammerhead, hammerhead shark", "n01496331 electric ray, cra...
[ "renmengye@gmail.com" ]
renmengye@gmail.com
6ed44f67958f79a7134e38728c3e883ea0abf140
bb31c0062354bbb0df70692e904c949a00973503
/37_while_1.py
b462a9aa6885cd401da0ea0fee90a49dfd5977a2
[]
no_license
millanmilu/Learn-Python-with-Milu-
c42df5aa7832fba75015b7af29d6009489e00ec5
3b4714b849dff0a0ef3cc91fd102840fbcf00e43
refs/heads/master
2022-04-26T03:29:38.990189
2020-04-28T13:17:28
2020-04-28T13:17:28
259,634,227
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
i = 0 while i <6: print(i) i+= 1
[ "noreply@github.com" ]
millanmilu.noreply@github.com
0eba5c2872ed5bfd2a2e9f47d8ddbd71dee310a3
9af701670dcbfb4500fd2d49775fb7dee9bc4b11
/belajar-python/keyword_argument_list.py
886c7e6ec4e062bc93fc43a4fed40d0a79163c18
[]
no_license
prisetio/Python
1e5223087754a13c3a852e045bd27f3ff7508433
9f1da560ec47bfb47587980d731ce35ab5c26845
refs/heads/master
2022-12-11T01:04:15.210763
2020-09-15T02:08:08
2020-09-15T02:08:08
292,768,216
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
# belajar Keyword Argument List def create_html(tag, text, **attributes): html = f"<{tag}" for key, value in attributes.items(): html = html + f" {key}='{value}'" html = html + f">{text}</{tag}>" return html html = create_html("p", "Hello Python", style="paragraf") print(html) h...
[ "noreply@github.com" ]
prisetio.noreply@github.com
1d8a899277896a76ca310712e1c39d52a3f6f64f
ad2ad3e42ecd201e3004cc03518dbef245e57b5a
/1week.py
2f6ab88c3517e290dd484891baf972ae8bbe851a
[]
no_license
choichiwo/Pstudy
5ed595c9e9b9dd0857b9216fb4f31eebb58574aa
d42df9a0e3773cd00c8262a3c6ef589a2234acf5
refs/heads/master
2023-06-27T00:56:28.355066
2021-07-10T07:14:50
2021-07-10T07:14:50
371,884,674
0
0
null
null
null
null
UTF-8
Python
false
false
2,816
py
x="Hello" y="world" print("Hello") print(x) # 변수형에는 정수형(3)int, 실수형(3.14)float, 문자열("Hello")str print(type(x)) print(7//2) #정수나누기 몫 print(7%2) #나머지연산자 나머지 print(7/3) print(x+y) x=3 print(5*"hello") #이항연사자중 *만 정수와 문자열로만 가능 print("x =", x) x = 13 y = 25 print("x =", x,",","y =", y,",", "sum =", x+y,",", "multi ="...
[ "ccu12345@naver.com" ]
ccu12345@naver.com
a8ea2400ab3bd4077d9515a83ac1e63f8b1cf550
f1488619d32e72360deb25c2ae709fdb299e3269
/ogbg-code/tg/dataloader.py
a613503fcecd948894477323bd23d54f37560500
[ "MIT" ]
permissive
animeshbchowdhury/DAGNN
5cf0794d56ff4d989da36e4deab87e9536ddcad3
02062bd2b24c6a23ef1fa8093d082df72ece98cd
refs/heads/main
2023-04-29T10:47:36.050410
2021-05-07T17:41:11
2021-05-07T17:41:11
365,308,808
0
0
MIT
2021-05-07T17:36:10
2021-05-07T17:36:10
null
UTF-8
Python
false
false
5,335
py
import torch.utils.data from torch.utils.data.dataloader import default_collate from torch_geometric.data import Data, Batch from torch._six import container_abcs, string_classes, int_classes # from src.tg.batch import Batch class Collater(object): def __init__(self, follow_batch, ndevices): self.follow_b...
[ "veronika.thost@ibm.com" ]
veronika.thost@ibm.com
2ed52b5c3a91f498507c3864bdca88031dafc7d2
2c678444e3798a2b0d23a6f37690051a5217ffd0
/account/admin.py
2786157161025fa9930fc76920ac2f764b446566
[]
no_license
rahimifh/online-store
e5b1768ede0aeea890c4e1a554b6e183ee1ee6e4
25b59724121072743f120a42eb62fccea911f034
refs/heads/master
2023-05-24T08:33:46.544565
2021-05-31T04:14:38
2021-05-31T04:14:38
369,862,898
0
0
null
2021-05-31T04:14:39
2021-05-22T17:02:32
CSS
UTF-8
Python
false
false
310
py
from django.contrib import admin #****003 from .models import Profile,wholesale_pass #****003 @admin.register(Profile) class ProfileAdmin(admin.ModelAdmin): list_display = ['user', 'date_of_birth', 'photo'] @admin.register(wholesale_pass) class Profilepass(admin.ModelAdmin): list_display = ['wpass']
[ "rahimi.f.h@gmail.com" ]
rahimi.f.h@gmail.com
794a350ce9733a4e7139b34e2046f03fd88ea508
068994631929aafd4a16e02844748a13da375258
/xos/cord/models.py
5a81109f5687dc09714ae4b96cb28de782a61478
[ "Apache-2.0" ]
permissive
Intellifora/xos
a2e01e150f8dde37025e0dd22aebe472543bdcd5
192da22e69130873310c092c7a64e53a90f277a7
refs/heads/master
2021-01-21T16:21:56.699323
2015-07-09T02:01:56
2015-07-09T02:01:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,435
py
from django.db import models from core.models import Service, PlCoreBase, Slice, Sliver, Tenant, Node, Image, User, Flavor, Subscriber from core.models.plcorebase import StrippedCharField import os from django.db import models, transaction from django.forms.models import model_to_dict from django.db.models import Q fro...
[ "smbaker@gmail.com" ]
smbaker@gmail.com
4186546486ee703fdb689e95487f89dd8bc981fd
b8f77ec8e4c6da4a2117140a3eeac0201ab08678
/script_Bonprix.py
30f164b32a0268527a813dfdced614b94fefdccf
[ "MIT" ]
permissive
CyrilShch/SeleniumBase
b07571172c173278eaf49b88ee24dd0eac779936
269e367d2b7bcd3741840241c5da184d7a3b2bc7
refs/heads/master
2023-06-11T20:42:13.325171
2021-07-04T12:56:30
2021-07-04T12:56:30
381,798,302
0
0
MIT
2021-06-30T18:29:27
2021-06-30T18:29:27
null
UTF-8
Python
false
false
12,379
py
# imports from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import TimeoutException import pan...
[ "noreply@github.com" ]
CyrilShch.noreply@github.com
7ae17b127984f7619dc186fbff81f71f10cf3c66
dac0aff3add7e53152f16f4c2900ac594b590b9f
/FunesDroid-master/AndroLeakPR.py
7a5f6c2ca11ee863bb2362e9df0aac0cda40780c
[]
no_license
PorfirioTramontana/CodiceFiscale
7876e826411a3a23a4e76eb8cae3bab04e76c631
67fa1fabfc36f447fbc5b5ece5d3049d04f560d5
refs/heads/master
2022-05-03T15:27:05.887067
2022-03-17T17:52:19
2022-03-17T17:52:19
129,233,499
0
6
null
null
null
null
UTF-8
Python
false
false
6,469
py
# -*- coding: utf-8 -*- import os import sys import shutil from subprocess import call import time sys.path.insert(0, 'Utils') import AndroLeakUtil # SINTASSI DEL COMANDO # python AndroLeak.py [target device] [stimulus type] [stimulus number]. # target device: the device where to execute experiments on. # stimulus typ...
[ "porfirio.tramontana@gmail.com" ]
porfirio.tramontana@gmail.com
4e96e72e9b87a3d8603a2712197fd36e2f830b7f
0daf2422f8a6663b652d46e9e500be9419558ce7
/claim_frags.py
a3804d0e875069fc67f77d2d3a8bd4759a42e811
[ "Apache-2.0" ]
permissive
aschamberlain/adfs-tools
6065d49a949fed4e645967fc2ac63c0bc0e19fa7
ab1e90903086d23f489c20d94241b2635f0bcbba
refs/heads/master
2022-12-28T15:16:47.226667
2020-10-01T11:48:18
2020-10-01T11:48:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
#! /usr/bin/python from objects import Map from utils import find_map fd = open("Loader", "r") fd.seek(0,2) loader_len = fd.tell() fd.close() print "Loader is {0} bytes long.".format(loader_len) if len(sys.argv) != 2: print("Usage: claim_frags <device>") exit(1) fd = open(sys.argv[1], "r+b") map_address, m...
[ "cjohns@isotek.co.uk" ]
cjohns@isotek.co.uk
85978ad9a31d7cda93360bf464bf792d3b7226bd
4f268ddcaf6e1b3bc7930b6fcfd5d2f1b5d0d492
/backend/dating/migrations/0001_initial.py
13b8666dc826be40e503ef6acf0a339c3b86731c
[]
no_license
crowdbotics-apps/cuisine-culture-21918
00de77062779a583fc4ca1294ae7eec78a88d03f
c7366e19397a6f3f8ad3fc860a18be4f0b50bcd0
refs/heads/master
2023-02-08T02:57:00.029866
2020-12-14T22:43:54
2020-12-14T22:43:54
306,964,135
0
0
null
null
null
null
UTF-8
Python
false
false
4,408
py
# Generated by Django 2.2.16 on 2020-10-24 20:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
eaf640b26e9f808e6e8a1f59b805d8fa3222252b
c3f8f9d6732427f3addbc11c820ac4f8d3243109
/server/routes/consumerRoute.py
8aab24898a2b1ca62e67a485229146f986152c8a
[]
no_license
kirtfieldk/RamHacks
7588fab878387265c41d6a7e7871a63805c62306
17bfb5499f5445ef4d8b723afd0ac5510cdc2899
refs/heads/master
2023-05-11T07:59:13.602701
2019-10-24T17:08:45
2019-10-24T17:08:45
211,519,086
0
0
null
2023-05-01T19:38:09
2019-09-28T15:13:01
Python
UTF-8
Python
false
false
181
py
# TODO fetch all consumer def get_consumer(): # TODO connect to SQL # TODO check for errors # TODO return list of consumers # TODO Create middleware for quering
[ "keithryankirtfield@gmail.com" ]
keithryankirtfield@gmail.com
ad9e1f55ee886837c2a1994ab3ce4d79b4ff88c4
aba4cb29a0861c1900b617da852a868004b17184
/app/filters.py
48488bf0b22022a1bb88b30582a65213b31d208b
[]
no_license
userok17/flask-shop
bc58b5edf3a88e043f66e1135033448b2440506c
66f7caf84b24a7ba2ec0794210e69b37a1bd2a37
refs/heads/master
2020-04-01T21:40:13.326265
2018-10-18T18:42:31
2018-10-18T18:42:31
153,669,452
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
#!/usr/bin/env python3 import re from jinja2 import evalcontextfilter, Markup, escape _paragraph_re = re.compile(r'(?:\r\n|\r|\n){2,}') @evalcontextfilter def nl2br(eval_ctx, value): result = u'\n\n'.join(u'<p>%s</p>' % p.replace('\n', '<br>\n') \ for p in _paragraph_re.split(escape(value))) if eval_ct...
[ "admin@1rpi.ru" ]
admin@1rpi.ru
3fac4557184a378f037a1f8a094f75ef73791d60
3728feabb1ff663d1c7f16e41b1f60df8c52affb
/gibdd_application/wsgi.py
3b7ea10d86d697a1fc3e3b2ed79818a3e36c2b85
[]
no_license
MarinaChekulina002796/GIBDD
4ef63fef817251adb8b5c30997d71f35b449abac
b26e666b6fc6dd6434cc2bbdd1b868af86de4249
refs/heads/master
2021-04-26T22:17:44.984528
2018-05-15T06:48:57
2018-05-15T06:48:57
124,063,950
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" WSGI config for gibdd_application project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "Marina_Chekulina" ]
Marina_Chekulina
228f779cf45eb59c5458794d4fbc8c469920c1fb
e38b0288417f55640a14ffa28c1f76b8dead9df3
/5x5_gaussian/lib/datasets/loadDataset.py
36964dc6bc4074132c9f60e5d111bfe07349b8a6
[]
no_license
B1ueber2y/NDiv
e706b9026134fad8bf4c6d50d4e2354c2079dfd1
0729eac3b9fdbf1bd586486c7685c0afcf484597
refs/heads/master
2023-07-20T00:52:25.851635
2019-07-25T20:51:53
2019-07-25T20:51:53
180,195,055
14
2
null
2023-07-06T21:35:25
2019-04-08T17:01:04
Python
UTF-8
Python
false
false
567
py
from datasets.gaussianGridDataset import gaussianGridDataset from datasets.gaussianRingDataset import gaussianRingDataset def getDataset(dataset_config): dataset_name = dataset_config['name'] if dataset_name == "gaussian_grid": return gaussianGridDataset(dataset_config['n'], dataset_config['n_data'], d...
[ "b1ueber2y@gmail.com" ]
b1ueber2y@gmail.com