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
ce543f9c2b46e85ee8ec87555bcd6214c88c6126
c487af858ec7bdf45bb0872985d832e3f4584978
/src/mq2rest/mq2rest.py
079ea002e23a6ccf07476c931671fc3422e7e3c9
[]
no_license
MarkHallett/MySite
7054030b97c70bc4d3f507571102eef0e290408c
f2f4e8a1fb3acb234add5f5bca19e50cc0a8c68e
refs/heads/master
2021-01-20T09:55:48.475864
2019-05-13T18:25:19
2019-05-13T18:25:19
90,306,854
0
0
null
2018-02-16T14:38:42
2017-05-04T20:31:44
Python
UTF-8
Python
false
false
6,882
py
#!/usr/bin/env python2.7 # mq2rest.py import os import json import random #from tornado import websocket, web, ioloop import datetime from time import time import logging import logging.config import pika from requests import put, get, post, delete, request cl = [] # Random number generator r = lambda: random.ra...
[ "markhallett@Marks-MBP.connect" ]
markhallett@Marks-MBP.connect
f4e880e252d3c8acd16a6ca5305873e12ab1f18b
fe29a6362e8db8681ae3b460a820cac0a682f2cf
/lab3/colorhouse.py
945468025efb3d2a8d185cf0925a7f24b108d586
[]
no_license
ZhuofeiXieKatlin/CS-0008
8eb78910281f89fd60588e1792ceca237bad41ad
d9243cb4e5d8ac7747452456d89351d0972c06a1
refs/heads/master
2020-04-25T12:43:35.626587
2019-03-20T20:12:11
2019-03-20T20:12:11
157,258,637
0
0
null
null
null
null
UTF-8
Python
false
false
4,557
py
from turtle import * import turtle as t import math t.setup(800,800) ''' You are to use functions and turtle graphics to draw the colored house shown in the lab3 document. Choice of colors is up to you. Have fun. ''' def drawoutline(t): ''' This function draws the outline of a house using turtle t. ...
[ "zhx34@pitt.edu" ]
zhx34@pitt.edu
551a89bdfa5370cf71f92c90d382adbedcaedfdd
da1b0ea9baf236774d3956a0db981388bf2ef19d
/python/python_core_advanced/multi-threading/using_subclass.py
be240f2744c7e89305fc88fa841c9dcddacce4b8
[]
no_license
am3lla/projects
5418fe782033f14990ee608628525bea060c810b
b02ee17055dd9bfea472d44092bb357e618cd047
refs/heads/master
2022-07-27T14:21:19.167610
2020-05-12T11:53:29
2020-05-12T11:53:29
114,195,303
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
#!/usr/bin/env python3 from threading import current_thread, Thread class MyThread(Thread): def run(self): i = 0 print(current_thread().getName()) while i < 11: print (f"{i}", end = ' ') i += 1 print(current_thread().getName()) t = MyThread() t.start()
[ "andres.mella.romero@gmail.com" ]
andres.mella.romero@gmail.com
9daf85e11405dcc90c806f627978128430164a80
4db44e7eafa618672a3b6d4751c5c7d0715b429d
/realizeazaSintezaTexturii.py
9a09a00bc65ed8c6f39e61ccea5660da414aca01
[]
no_license
Asuciu1986/Texture-Synthesis-and-Transfer
74d914f84ece29c736cfbba13e57da702c6e2180
304255d3bfedf7f7ea176b4af09f4ccf4e03e9c8
refs/heads/master
2020-05-23T15:19:21.750045
2018-12-25T13:40:35
2018-12-25T13:40:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,432
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 24 21:17:56 2018 @author: gabriel """ import numpy as np import math from itertools import product from functiiUtile import (genereazaBlocuri, calculeazaDistantaSuprapunere, gasesteDrumMinim, floodFillIterativ) def realiz...
[ "noreply@github.com" ]
Asuciu1986.noreply@github.com
4c50b86c0bb3ed7ec5af1d5809396e964553638a
8a128b88c550ad777fe0d195790b14d30818c4b3
/python/axidraw_server.py
b61db6349ebad922929b10e404b719691b3a0965
[ "MIT" ]
permissive
NduatiK/elm-generative
89671d0ad1c69a4b008f40faee153448374e9304
e07f94e45240539ca1c7524e136c404f3199b31c
refs/heads/master
2023-04-25T02:04:52.264266
2021-05-20T10:47:24
2021-05-20T10:47:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,965
py
#!/usr/bin/env python3 """ A simple webapp that works with the elm-generative webpage EXTREMELY EXPERIMENTAL Author: Xavier Ho <xavier@jtg.design> ## To start axidraw-server on port 6743, listening from all hosts python axidraw_server.py ## REST API usage: * Content-Type is always `application/json` * Succe...
[ "xavier.ho@monash.edu" ]
xavier.ho@monash.edu
3ba82926b8b04c2a02d0f4ae63e753a070f95e62
cc9efde4edbf4739b8f2fd628e35ebc254866341
/Classifiers/CNN/ker_cnn_2.py
6d2dad2ef367fb672da23c1cb639851ed747acb4
[]
no_license
thomaspage/MNIST
47b99c3896f5afe6d22eb40f52b1a93fd423ceee
b16760dc3c765b77b6a4e8934bd40956a92f634c
refs/heads/master
2021-08-11T20:54:05.467475
2017-11-14T04:31:39
2017-11-14T04:31:39
108,304,951
1
0
null
null
null
null
UTF-8
Python
false
false
4,727
py
from __future__ import print_function import csv import keras import struct import numpy as np from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend as K from keras.preprocessing.imag...
[ "matthew.chan2@mail.mcgill.ca" ]
matthew.chan2@mail.mcgill.ca
ac216aebef88aa0f448d29380e7acea53e4a96c6
8979ad5a2073bf8715019d54983d30dcfe3b45f5
/ImageFormatter.py
ae5d149d641c7d0986db6e4528d608c2fe87a086
[]
no_license
jambobjambo/LUXCNN
014564b7c3c019d2e1ad3d92ad4ce3efec1df999
259721ced5946ef3277331a9cf5a89182bcef77c
refs/heads/master
2021-01-01T05:57:41.373922
2017-07-23T11:27:38
2017-07-23T11:27:38
97,319,071
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
from PIL import Image from resizeimage import resizeimage import os ImageDirectoryIn = "../RNNImages/" ImageDirectoryOut = "../TrainingData/Mask/" def ReFormat(ImageDir, Name): Filename = ImageDirectoryIn + ImageDir + '/' + Name with open(Filename, 'r+b') as f: with Image.open(f) as image: ...
[ "jamie.a.mcinally@gmail.com" ]
jamie.a.mcinally@gmail.com
de5732d2e5a0bc8f26e9b137e0fd51ba4282fdf3
ffdd1a9fb403d5cbea79c3e30b19502150b7f07b
/algorithms/morse_code.py
a357576d70f471df63496e452e6e97f70998519d
[]
no_license
yanik-ai/multy_crypter
ed86638d58fec0d2368f15474dcc76175b92013b
c6edc63a5b4fc26d95946ef79ad24804395960e3
refs/heads/master
2021-05-30T17:24:55.356946
2016-03-09T23:10:46
2016-03-09T23:10:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,961
py
# -*- coding: utf-8 -* from __future__ import unicode_literals class MorseCode(object): def __init__(self): # International Morse Code Alphabet # http://morsecode.scphillips.com/morse2.html self.alphabet = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', ...
[ "yanikkoval@devrecords.com" ]
yanikkoval@devrecords.com
a3432d391d2a981b089d443addec2146a9aa8e71
cf07288b1d6a9d352ca35414ad44ad1b4bbb557c
/stepik4_4.py
948fdd8d3cc6a678e92b67e5f49619eb4ba81815
[]
no_license
VetaGryff21/algorithms
2ba7c9b43f2ae87f87f5375051af67305604d2cb
c1b9ced159928c374b0712bc27f47a3ae7f74513
refs/heads/master
2020-12-07T07:34:03.721603
2020-01-08T23:16:25
2020-01-08T23:16:25
232,672,839
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
count = 0 list = [] with open('dataset_3363_4.txt') as file: for string in file: string = string.strip().split(';') print(string) for i in string[1::]: count += int(i) print(count / 3) string.append(count / 3) print(string) list.append(string) ...
[ "vetagryff21@gmail.com" ]
vetagryff21@gmail.com
6dc0a0220f04043e1874f030691529d0afc76d63
aa1fb9dfa629fb760b99c6de56685084256389f9
/Mission_to_Mars_Challenge.py
89f467d7c1ac84927b999974e381c629dc6d7079
[]
no_license
roxhensa02/Mission_To_Mars
b166cf160114d3dff22c16987c8ac54ef23538be
2655457412e282980ecc83c82ef59ee3bc78a3a2
refs/heads/main
2023-09-02T23:07:28.865954
2021-11-16T20:55:13
2021-11-16T20:55:13
428,810,327
0
0
null
null
null
null
UTF-8
Python
false
false
3,109
py
#!/usr/bin/env python # coding: utf-8 # In[1]: # Import Splinter, BeautifulSoup, and Pandas get_ipython().system('pip install webdriver_manager') from splinter import Browser from bs4 import BeautifulSoup as soup import pandas as pd from webdriver_manager.chrome import ChromeDriverManager # In[2]: # Set the exec...
[ "noreply@github.com" ]
roxhensa02.noreply@github.com
549d8f7ade40cfa0e6ba5544d528f1d7c8bcdccd
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/10_Modules/14_turtle_module/18_USA_flag.py
98d05fb7b9f945b3411273edc11fe92f22cc5bfa
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
#!/usr/bin/python """ Purpose: To create USA flag using turtle. """ import turtle import time # create a screen screen = turtle.getscreen() # set background color of screen screen.bgcolor('white') # set tile of screen screen.title('USA Flag') oogway = turtle.Turtle() # set the cursor/turtle speed. Higher value, fa...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
5c4046060f4537dc3aded470b9e0e04c2eddeb3b
3c7c8cd58ba38e222d459c202de5bc36213b8a51
/gunting_batu_kertas.py
c9b639eb41f2adb9b3cbf3ef1e9fb4846a4a6a71
[]
no_license
Guruh15/Projek_ku
b130ed8d0f63e485859ca089f79c310c7cea174a
c58c3aa4c68bc0dce61d23fce61244ce736ac7a1
refs/heads/main
2023-08-23T11:24:27.959062
2021-10-13T04:02:39
2021-10-13T04:02:39
416,572,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
from random import randint pilihan = ["Gunting", "Batu", "Kertas"] komputer = pilihan[randint(0,2)] player = False while player == False: #Set pemain ke True print("Masukkan pilihan anda") player = input("Gunting, Batu, Kertas : ") if player == komputer: print("Imbang") elif ...
[ "noreply@github.com" ]
Guruh15.noreply@github.com
b6a0047b357526884a40eaaa9456bbe0df2c1d73
f71ee969fa331560b6a30538d66a5de207e03364
/scripts/client/messenger/formatters/service_channel.py
1f37d8492abec598dcbad8d94a60152f7567d5d8
[]
no_license
webiumsk/WOT-0.9.8-CT
31356ed01cb110e052ba568e18cb2145d4594c34
aa8426af68d01ee7a66c030172bd12d8ca4d7d96
refs/heads/master
2016-08-03T17:54:51.752169
2015-05-12T14:26:00
2015-05-12T14:26:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
90,507
py
# Embedded file name: scripts/client/messenger/formatters/service_channel.py import types from FortifiedRegionBase import FORT_ATTACK_RESULT, NOT_ACTIVATED from adisp import async, process from chat_shared import decompressSysMessage from club_shared import ladderRating import constants from debug_utils import LOG_ERRO...
[ "info@webium.sk" ]
info@webium.sk
7f3573b907615326768f9b99f8b75c8208c8dc62
15785beca775f85c596ba3a3897f199ba7a09281
/codes/test.smple.py
58aebb616b4032a236f7873fbb378ef098c0ad68
[]
no_license
j4robot/tensorflow-with-tim
8b95576e736372414100c6da1f9a532aa9ea0636
e186d8c0cf0c0f59d734427616c7f3df438b8a26
refs/heads/master
2022-12-21T02:21:36.669877
2020-09-27T08:38:19
2020-09-27T08:38:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
def fashionably_late(arrivals, name): """Given an ordered list of arrivals to the party and a name, return whether the guest with that name was fashionably late. """ print((len(arrivals) / 2)) return (arrivals.index(name) + 1 != len(arrivals)) and (arrivals.index(name) >= (len(arrivals) / 2)) party...
[ "achanamosey@gmail.com" ]
achanamosey@gmail.com
7a0776d75b4d09bb0af39d568c302ed5fb0984b3
9fa4091b49772208fd1caf0734603f8dd39f52a6
/api/migrations/0004_auto_20150701_1903.py
4b13f2b398753c6f4f5d1df07f8b6304d67d4c92
[]
no_license
faderskd/Docs
e586454fcb15c7e9c0a2d6d97b6936d76b319c7a
9bd421af5afb3f839407653a8cdbc32ba0d7a7f3
refs/heads/master
2021-01-18T21:37:23.968717
2015-12-22T02:27:31
2015-12-22T02:27:31
38,111,451
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def copy_publishers(apps, schema_editor): Book = apps.get_model("api", "Book") for book in Book.objects.all(): authors = book.authors.all() for author in authors: author.publish...
[ "daniel.faderski@gmail.com" ]
daniel.faderski@gmail.com
09107cfb604f6b2991d2f609a97bce88bcd4bdc6
71115b689aeb58ece0e765b4589e5033d845e183
/scraper/export.py
20b2166fdf83b94cdee35a103e2c5a2f7a3165d4
[]
no_license
fcpauldiaz-archive/CronService-Keydex
112d0331e982f274e8225ca88e5d892662a44dbe
60c43dfb217a0f168d57ed314c278c699da110e0
refs/heads/master
2021-03-19T10:47:03.922441
2017-08-26T18:50:41
2017-08-26T18:50:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
import os import csv from datetime import datetime import psycopg2 import settings from helpers import log # conn = psycopg2.connect(database=settings.database, host=settings.host, user=settings.user, password=settings.password) # cur = conn.cursor() def dump_latest_scrape(): # Export everything # cur.execu...
[ "pablo5_diaz@hotmail.com" ]
pablo5_diaz@hotmail.com
f9e315f18a0e2d73e3e4b70e0e87cc8893975c0c
e169045b956ec50bafae3c729281f260ac45778e
/algs_searchproblem.py
a43a9e9840538edd4768dec7d5faf2dfae67be1d
[]
no_license
utmcontent/algs_poetry_whynotthisname
a10225d41dced525c00daa02c6c951f4752a1df9
39aa7ccb5d88451e851fec50438cbda71485e070
refs/heads/master
2023-02-12T14:48:45.899863
2020-10-19T19:51:57
2020-10-20T15:58:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
def x_2(a,b): atob=[] for i in a: if i not in b: for j in range(abs(a.count(i)-b.count(i))): atob.append(i) delete=[] for i in b: if i not in a: for j in range(abs(a.count(i)-b.count(i))): delete.append(i) return atob,delete class Ab(object): def __init__(self): pass
[ "d@d.com" ]
d@d.com
c04b01aae7001bb9c75d374b42c6394111250b51
6bb08a716a718482ab36bead873abc8fd22131a2
/hello.py
75d2ed7a0b4ba06a27c290c89a0e53f543038335
[]
no_license
RasulKg/intro2python
8692a9bafbc5df549cb24e41b50af86df6902346
c646fbc015b99839e2acdaa7f6e43f7a92ac1101
refs/heads/master
2021-01-10T16:14:55.034882
2015-12-14T08:42:57
2015-12-14T08:42:57
43,351,695
1
0
null
null
null
null
UTF-8
Python
false
false
61
py
print "Enter your name", name=raw_input() print "hello", name
[ "mashanlo_r@12-04.iuca.loc" ]
mashanlo_r@12-04.iuca.loc
27b5ab2a5b5b71f5124444c8ac9e574999e6b3de
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/eth.py
4a292a43afe90a446c9d2d8144317014fb34d1a0
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
470
py
ii = [('FerrSDO3.py', 2), ('CookGHP.py', 1), ('PettTHE.py', 2), ('AubePRP.py', 2), ('FitzRNS3.py', 3), ('ClarGE2.py', 1), ('KiddJAE.py', 2), ('BailJD1.py', 2), ('CrokTPS.py', 1), ('WestJIT2.py', 1), ('MedwTAI.py', 1), ('WadeJEB.py', 1), ('FerrSDO2.py', 3), ('KirbWPW2.py', 1), ('WheeJPT.py', 1), ('MereHHB3.py', 4), ('Me...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
40767c9568481a8c43dfe59b74dc14b435951af0
4185e7c695bbe41d0dd50e35bb54bdb76e3bd3ac
/scdc/initial/response.py
832abd113d53b0f0a83bbb3d8ffe991b3d961224
[]
no_license
LBJ-Wade/LightDM_in_superconductor
4ccc3851a13fdd4382c0c7b06fbbc393f666482a
c559ed6cdbb7e70f09808d35312c494ca36b5a7d
refs/heads/main
2023-08-04T16:22:33.190430
2021-09-13T00:00:42
2021-09-13T00:00:42
408,343,124
0
1
null
null
null
null
UTF-8
Python
false
false
1,554
py
"""This module defines coherence factors for use in computing the initial angular distribution of excitations produced by a hard scatter.""" import tensorflow as tf class ResponseFunction(object): """Base class for response functions.""" def __call__(self, r1, r2, q, omega): """Evaluate the response ...
[ "benvlehmann@gmail.com" ]
benvlehmann@gmail.com
3d366ea8ffb2b3fabe0d8947eb251746b25769d3
a74a0ec937006fb7e3ca18a430d422c1ce97faab
/labb7/labb7a.py
f627c3b76d172b04d0a4f5235c875688382ea259
[]
no_license
GlockenGold/TDDE23
74e751bda91afde6e37b3bcaa8424982e9022bf8
e98b102296c03cb97185c33fb0e0b3506877d384
refs/heads/master
2022-04-13T01:53:56.518465
2020-03-26T21:10:59
2020-03-26T21:10:59
250,372,153
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
def search(pattern, db): """ Returns all entries matching pattern in db """ books = [] for i in range(len(db)): temp = match(db[i], pattern) if temp: books.append(db[i]) return books def match(seq, pattern): """ Returns whether given sequence matches the given patte...
[ "glockengold19@live.se" ]
glockengold19@live.se
795a9dfe379f8cccfc7570f3fa55b128860921e1
f93a67890e54736d88d927a6e375b167e28e18a2
/100Days/DataStructure/set.py
bd280cd85d3bead8d034d5becfad37b717cf250d
[]
no_license
doubleZ0108/my-python-study
8b86e118239eefdc2dee7604448369f55515c02d
7ea30fe2c0518d23262fc89399949f21dac91d41
refs/heads/master
2021-07-03T02:08:35.159660
2020-10-07T15:42:26
2020-10-07T15:42:26
179,608,426
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
# 数据结构 ## 集合 set1 = {1,2,1,1,2,3} # 去重 len(set1) # [Output]: 3 set2 = set(range(1,11)) ### 添加元素 set1.add(4) set1.add(3) set2.update([11,12]) ### 删除元素 set2.discard(5) set2.discard(100) # set2.remove(888) # remove的元素如果不存在会引发KeyError set1.pop() # 删除第一个元素 -> 1 ## 集合运算 # 交 set1 & set2 set1.intersecti...
[ "noreply@github.com" ]
doubleZ0108.noreply@github.com
232137fe99281193eee58f17e65cc65bf909a510
72a729ba2c983f2892043b12d924390ecd8d381a
/ex8.py
45867536faf584f548c9c0531baf0e1458088152
[]
no_license
jskescola/exercicios_python_1-10
e16118d3e929a2a679e902fbc34fd1b3ea2d536f
bcace34d28a40d52c5f97e5b895cb25b3566c0c8
refs/heads/main
2023-06-29T05:19:48.782802
2021-08-02T12:12:09
2021-08-02T12:12:09
391,932,942
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
#8. Desenvolva um programa que receba duas notas de um aluno e calcule sua média. nota1 = float(input('Digite a primeira nota do aluno:')) nota2 = float(input('Digite a segunda nota do aluno:')) print('A média do aluno foi de: {:.1f}'.format((nota1+nota2)/2))
[ "noreply@github.com" ]
jskescola.noreply@github.com
6dc6c66022879503e8e6ed4991cf188bd229eabe
7029ca0804fd9440151736f3609e8b99e04c28f9
/models.py
9544bad927fc6c7db758f97f211d89b9a85803b7
[ "MIT" ]
permissive
michaelzhou0723/proxprop
a27a8f0687d80ed7b73c739c7b0176fd95143b51
42ce2800564f2d4bd13d5e00ed70a745e8d630d2
refs/heads/master
2020-05-27T18:03:40.813381
2019-03-17T18:58:52
2019-03-17T18:58:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,176
py
from functools import reduce from operator import mul import numpy as np import torch import torch.nn as nn import torch.nn.init as init import torch.utils.data as data import torch.nn.functional as F from torch.autograd import Variable from ProxProp import ProxPropLinear, ProxPropConv2d class ProxPropConvNet(nn.Mod...
[ "thomas.frerix@tum.de" ]
thomas.frerix@tum.de
1c10c895290852f2ecfd26e2b92da019494cea1c
18fd4062e7bdc626df99229eba78affa9b94859b
/flaskk/signals.py
26c50cddb1a0a666f07caa501f7bbcae25547fce
[]
no_license
root-sudip/Search-Engine
57290708924895a4d26dc5252a0300453b7d7b31
e24db9e14e3330b59f140269cbd687ab338e95d6
refs/heads/master
2021-01-20T05:52:41.168438
2017-05-11T11:29:38
2017-05-11T11:29:38
89,817,062
0
0
null
null
null
null
UTF-8
Python
false
false
2,155
py
# -*- coding: utf-8 -*- """ flask.signals ~~~~~~~~~~~~~ Implements signals based on blinker if available, otherwise falls silently back to a noop. :copyright: (c) 2015 by Sudip Das. """ signals_available = False try: from blinker import Namespace signals_available = True except ImportError...
[ "touch.das@gmail.com" ]
touch.das@gmail.com
5012216c82fce82b5a70774eb214395a73364ceb
3846dc3c1597d7728ddae16fbdcd4b5f6f745124
/benchmark/__init__.py
8371bc9a56e99e85960b8b037c45751783d093b5
[ "MIT" ]
permissive
OldhamMade/exemelopy
f4d49462333cd6e821651df188a7848bc18d213d
5f5141b169e61a5b6912146a995917f5d862ee9c
refs/heads/master
2020-03-25T13:08:34.010844
2015-02-20T16:41:54
2015-02-20T16:41:54
1,250,062
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
from basic import BasicBenchmark def main(): print 'Running benchmarks, please wait...' BasicBenchmark().run() if __name__ == '__main__': main()
[ "phillip.oldham@gmail.com" ]
phillip.oldham@gmail.com
7ee1eb09f3b377ee80873031e80cd55c2156a3e4
c27ea1b4a7947e850947d74508376f2658cb3fcc
/src/lib/item_utils.py
a026ceb2326990df6afdc797053052d0229b2aa8
[]
no_license
bmdeveloppement/back_boe
6441dc33ff13ececf582eac5146f106dd5152a72
6172886b55472f327d9a3c0d5c029998cc6e06bd
refs/heads/master
2021-01-10T21:06:40.869072
2014-04-20T22:18:57
2014-04-20T22:18:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
# -*- coding: utf-8 -*- def copy_items(from_obj, to_obj, items): for item in items: setattr(to_obj, item, from_obj[item])
[ "benoit.minard+1@gmail.com" ]
benoit.minard+1@gmail.com
f2da3199f091814377b762e379e23c9ca123ddca
e2dc65bbd279b137f40ed4991cb00cecc28ad5ac
/venv/Scripts/rstpep2html.py
ce50914731eafffa0dc6d291dd8af68885d67712
[]
no_license
zaka1/mj
79278a22355f261d157e591bfc9b06c7f6d5ae39
f43a2f205adcb2312db5d526f7432d7853be8afd
refs/heads/master
2021-01-11T10:19:09.487400
2016-11-05T09:01:11
2016-11-05T09:01:11
72,414,237
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
#!d:\mj\venv\scripts\python.exe # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Proposal) documents. """ ...
[ "q2821408@yahoo.com.tw" ]
q2821408@yahoo.com.tw
c93284732df89aa3c501500bf7a55d041b53fb72
f77028577e88d228e9ce8252cc8e294505f7a61b
/web_backend/backend_services/nvl_tracker_service/---nvltracker_server_specification.py
68efc79edf49df6b881f5f66c3a0c9d30b4aa1cf
[]
no_license
Sud-26/Arkally
e82cebb7f907a3869443b714de43a1948d42519e
edf519067d0ac4c204c12450b6f19a446afc327e
refs/heads/master
2023-07-07T02:14:28.012545
2021-08-06T10:29:42
2021-08-06T10:29:42
392,945,826
0
0
null
null
null
null
UTF-8
Python
false
false
7,146
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __version__ = '0.1.0' # INSERT IN TO HW MODULE POSITION VIEW -> NOT USER ANY MORE # TODO: REMOVE UNNECESSARY CODE query_str_detect = """ INSERT INTO hw_module_position_view (traceable_object_id, hw_module_id, position, raw_nmea, meta_information, show_on_map, active, d...
[ "sudhakar@satmatgroup.com" ]
sudhakar@satmatgroup.com
fe7f6915772aad3000be35c9ad18bfbfe1c29a61
f51505ad716c39b22a5577ff7431ccbe87dec67e
/assignments/models.py
97bbcf8e72718257fbc5013ff67f3002bcc9d9b3
[]
no_license
klenth/demo_assignment_tracker
d9c8524e751d068372e8e54b33efa37be10e2d60
cf48a9f00470d1cd0e9dad872d5d969ebe63d44d
refs/heads/main
2023-08-14T14:15:36.526973
2021-09-14T18:47:18
2021-09-14T18:47:18
401,784,423
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
from django.db import models # Create your models here. class Course(models.Model): title = models.CharField(max_length=64, null=False, blank=False) def __str__(self): return self.title class Assignment(models.Model): course = models.ForeignKey(to=Course, null=False, on_delete=models.CASCADE) ...
[ "klenth@westminstercollege.edu" ]
klenth@westminstercollege.edu
13345717d13107aaef24ff6a218de02358738b3b
57c64accbc491e8fb1d026a93d189f68c72287b3
/trabalho/trabalho/wsgi.py
8d4a35ea812eb43e517db437b139d6929b02fd19
[ "Apache-2.0" ]
permissive
Sparks-FIT/-404-----LMS-
fe0663de8a47fb1a336f3027725a27ef6fae6616
bb429cf07aef6dfc90baa97591c05c09fb24b6d4
refs/heads/master
2021-08-22T04:56:21.793102
2017-11-29T10:36:37
2017-11-29T10:36:37
110,590,395
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
""" WSGI config for trabalho 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
[ "noreply@github.com" ]
Sparks-FIT.noreply@github.com
8f2019f8cd0d5dc06b763af7e26628a31820a729
9d0ef5976b977338c05aca3931c8fab1a94de4de
/Decision Trees/metrics.py
b8cbf3c24fcdcbc9f1c540972d37d42dd4144a8a
[]
no_license
Flishworks/Machine-Learning
0eef1f480c04f15ac038877f99874ecb8ec75f6e
a7f719550a25b15d26cdf364c691aef5d1c1745b
refs/heads/master
2020-06-08T20:39:06.385960
2019-06-23T03:44:02
2019-06-23T03:44:02
193,303,054
1
0
null
null
null
null
UTF-8
Python
false
false
3,844
py
import numpy as np def confusion_matrix(actual, predictions): """ Given predictions (an N-length numpy vector) and actual labels (an N-length numpy vector), compute the confusion matrix. The confusion matrix for a binary classifier would be a 2x2 matrix as follows: [ [true_negatives, false...
[ "akazen@northwestern.edu" ]
akazen@northwestern.edu
75783a7101f7271039173747d73fbd0e2ac83521
7132d06b8ae153815d124007c28bfe43686beb88
/scripts/gen_hdf5_from_b.py
2617502a8af985c54d16d4b719a973be3595a8d6
[]
no_license
Rogety/TTS_DNN
a075aca2df0d100389a9cf323fa5b10cced8c61d
b84ed59664aa8c2eca7030c5f3b992a81da910c3
refs/heads/main
2023-07-22T20:48:12.400111
2021-09-03T13:49:06
2021-09-03T13:49:06
399,358,628
0
0
null
null
null
null
UTF-8
Python
false
false
7,940
py
import os import sys import h5py import numpy as np from os import path import tts import json import argparse as ap import torch as th import torch.utils.data as data import torch.optim as optim import pdb import shutil import utils as ut ''' SaveDirectory = os.getcwd() print(SaveDirectory) #h = ut.re...
[ "noreply@github.com" ]
Rogety.noreply@github.com
56aed275e818acd116fab05130fc7723f21b448d
ff5404ecdac6281b982376fcb664f28fda46ecef
/mars/conftest.py
cb1dbcfd6c8b6a1f27e194de981a2a51f36b189e
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "BSD-2-Clause" ]
permissive
qinxuye/mars
628aa106214eb85bcc84d3b5b27761d4b51c57f8
6ffc7b909c790c2b4094d8a80bd749a6d90d2006
refs/heads/master
2022-06-17T04:58:57.885557
2022-06-06T12:11:11
2022-06-06T12:11:11
160,643,357
0
2
Apache-2.0
2019-11-28T14:44:34
2018-12-06T08:28:59
Python
UTF-8
Python
false
false
8,702
py
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "noreply@github.com" ]
qinxuye.noreply@github.com
716729a67b142fe506fc9e95c95763d0e754a439
0d3cc48ea0912ce3dbae4acbf0974b9bd2683d13
/batch_norm_gradient_check.py
82e2032cc0dc26863aa73565fb856c085d4835a4
[]
no_license
maniizu/practice_DL
3d6101f53fcc55f05344472a1a2e5667267ce9e1
0b9170a3b266bf5f7bc2d587061f9d4063e3d6fb
refs/heads/master
2020-03-08T15:11:59.865870
2018-05-17T07:47:38
2018-05-17T07:47:38
128,205,399
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
""" Name: batch_norm_gradient_check.py Usage: ターミナルで python3 batch_norm_gradient_check.py Description: Batch Normalization の更新がうまくいくか調べる. """ import numpy as np from train_NN import get_mnist_data from multi_layer_net_extend import MultiLayerNetExtend #データの読み込み [x_train, t_train, x_test, t_test] = get_mnist_data(...
[ "hondakazunori@kc19.local" ]
hondakazunori@kc19.local
ef8232552a837998f23b8c3784733729c73d6cef
9ba97bf120f4bcc3a7844f8af9ddfd6592b5913b
/Exercicios Curso em Video/ex042.py
7c24784966329ea7d92b64e5c9f8b1e4814a7120
[]
no_license
renatomarquesteles/estudos-python
cbc1ae527e93f5282b7dadc1d6cc29778ea3b199
477e51393b1cef72cbf58f35acd85442dfe51e58
refs/heads/master
2020-07-08T10:59:51.054709
2019-10-08T21:52:33
2019-10-08T21:52:33
203,652,908
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
s1 = int(input('Primeiro segmento: ')) s2 = int(input('Segundo segmento: ')) s3 = int(input('Terceiro segmento: ')) if s1 < s2 + s3 and s2 < s1 + s3 and s3 < s1 + s2: print('Os segmentos acima PODEM FORMAR um triângulo ', end='') if s1 == s2 == s3: print('EQUILÁTERO') elif s1 == s2 or s2 == s3 or s1...
[ "renatomarquesteles@gmail.com" ]
renatomarquesteles@gmail.com
00d25ebb974f40d94fe4584e0efe92a3a94c5fe2
0123540469b176b0a9809d150c05714385676892
/build/lesson_move_group/catkin_generated/pkg.installspace.context.pc.py
68fc636c42dca0dcb5fa635f735d0c39b1481683
[]
no_license
MarcoMura85/VisualHatpic
9f27396e1e598bf3fbbe3a66a4616b0844e95b66
a4033a298b5af556cf53f322703832b9b71d17ed
refs/heads/master
2016-08-12T17:32:02.061211
2015-10-19T12:34:33
2015-10-19T12:34:33
44,103,395
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/yasmeen/MarcoStuff/catkin_ws/install/include".split(';') if "/home/yasmeen/MarcoStuff/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "moveit_ros_planning_interface;moveit_core;...
[ "m.mura@sssup.it" ]
m.mura@sssup.it
5269c25274b9f10bea869197ee9a4e6ac7b3ba56
f272f2c40ae4668b9ea3483cc1b8593bb3c9a369
/fit1.py
dd0cd02d07341ccea25450b73f3bd19fea57c731
[]
no_license
rlin264/Misc
8f36ec791b955c08cd635a0b12b95e1bb7a3150f
4b9fd136d363d1b971a6d4dd4a36ad67be260601
refs/heads/master
2020-04-01T08:26:42.653471
2018-10-15T00:14:34
2018-10-15T00:14:34
153,030,855
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit def func(x, a, b, c): return a * x ** 2 + b * x + c * x x = np.array([1.45631068, 1.496010638, 1.537410318, 1.612036539, 1.624548736]) y = np.array([0.539, 0.588, 0.637, 0.686, 0.735]) popt_cons, _ = curve_fit(func, x, y, bo...
[ "noreply@github.com" ]
rlin264.noreply@github.com
70623543690c376fabdc663860b226b007c66fc1
8240cbf57b645db8daaacf22bacba292a20ff0ca
/group3_ml_project/movies/migrations/0002_ml100kmovies.py
83acea2f0035aede5bf8486c86b9a7d844a25ea6
[]
no_license
bdowd91/Machine-Learning-Proj
2f404179dd21c7dfd75ea2db31dc0568c9f99a67
5717dfafce02c8b5755717b1c40114d603b5b70e
refs/heads/master
2022-06-20T02:56:58.922498
2020-05-08T12:17:01
2020-05-08T12:17:01
258,335,120
0
0
null
2020-05-08T12:11:17
2020-04-23T21:29:15
null
UTF-8
Python
false
false
562
py
# Generated by Django 3.0.6 on 2020-05-07 19:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movies', '0001_initial'), ] operations = [ migrations.CreateModel( name='ml100kmovies', fields=[ ('i...
[ "t_doan2@uncg.edu" ]
t_doan2@uncg.edu
e570b7d3b542a041d082343d2e862fc29bf101fc
581bcf321e0cc1cda534ec42632bc5902670e72f
/opportunities/urls.py
80e28f154c9085e721d7358d8f9148dcfd895343
[]
no_license
ToferC/careers
55514869604b99a6a7ba77bc0f8758a9871006ef
2d0144d54fc266667eb7a2204b15bd8915f1c163
refs/heads/master
2022-12-12T01:36:04.083525
2018-02-19T22:46:17
2018-02-19T22:46:17
122,020,129
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('opportunity/<str:opportunity_slug>/', views.view_opportunity, name='view_opportunity'), path('review_applicants/<str:opportunity_slug>/', views.review_applicants, name='review_appli...
[ "cgeist7@gmail.com" ]
cgeist7@gmail.com
0289a7e6b86fdae225bf9306639ad41ed91abc54
e0c9a8ee83d2fd8a61281b506365dba25d87ae08
/manage.py
103109d21aa99bb829d599396b4bc642752f570f
[]
no_license
kefassatrio/tugas-pti
56ce626b94900287e72c382394a6838f4ea6b716
e4c742946abde8a97b6abc6da8563d5435b64d12
refs/heads/master
2020-04-20T07:02:13.231719
2019-02-01T15:49:45
2019-02-01T15:49:45
168,700,909
0
1
null
null
null
null
UTF-8
Python
false
false
542
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TA_SBF_PTI.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. A...
[ "kefassatrio@gmail.com" ]
kefassatrio@gmail.com
fb0929a7b7ba8e0ee3d8e6d0241e8039a33ad34c
df46db080e0e5892851988534d1706c879c1a939
/nlmk/feature_selection.py
01dbb3cf455b39963a3f1488818a11c35b2f851b
[]
no_license
ivbelkin/raai_nlmk
d2523cf77bb3af4792525bbcec150f0c10fc8bcc
d7baaed969d5b2c9398124f791dfe9318d69da04
refs/heads/master
2022-01-14T02:09:00.902470
2019-07-22T04:25:41
2019-07-22T04:25:41
198,215,601
0
0
null
null
null
null
UTF-8
Python
false
false
4,442
py
import numpy as np import os from tqdm import tqdm_notebook as tqdm from collections import Counter from multiprocessing import Pool from sys import stderr, stdout from copy import deepcopy from xgboost import XGBRegressor def add_del(params, train_X, train_y, valid_X, valid_y, features_init=None, n_workers=1): ...
[ "ilya.belkin-trade@yandex.ru" ]
ilya.belkin-trade@yandex.ru
bc8d07d07fc59dbf3181e2e10dba2c7dc1c4c850
33d8fcecbca828085011a69b2aa29184e9f5be3f
/ascii.py
61df7aae183ae79518bc6d0b2e1e0c815e267f11
[ "MIT" ]
permissive
thomas-ayissi/EsotericTensorFlow
c68cf667dda8484e9feb87b8b86098e52218d705
dd4dc4eb8297799418d1f1e6eeba8cee5c54a27e
refs/heads/master
2023-03-17T03:24:02.331349
2017-11-17T08:02:03
2017-11-17T08:02:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf def ascii2char(x): default = tf.constant('', dtype=tf.string) table = tf.constant([chr(i) for i in range(127)], dtype=tf.string) co...
[ "kimura.akim.asa@gmail.com" ]
kimura.akim.asa@gmail.com
73baad18b527c56c73d4cd351649e759b1d161d3
8f2fe58d7d987507bba834f4bec67964b2c3bc6b
/server.py
6cd0daddb28d7569cd413a2e2e928f677f9a54ca
[]
no_license
jlbagrel1/demo_web_spa
963db1e5d1d7ac1df1858eb509edc28740b14e59
5d17a3ef86828aa430bf1162db2fc6715e626b7c
refs/heads/master
2023-06-09T04:08:54.900631
2021-06-25T09:56:15
2021-06-25T09:56:15
380,175,667
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
from flask import ( Flask, jsonify,render_template,send_from_directory,request, ) from flask_cors import CORS from base64 import b64encode app = Flask(__name__) app.config["DEBUG"] = True CORS(app) STATIC_DIR = "/home/jlbagrel/Bureau/demo_web_spa" tickets_restants = 10 def creer_numero(n, nom, prenom): retu...
[ "jloup.13.bagrel@gmail.com" ]
jloup.13.bagrel@gmail.com
53297db8ae1040f1cbdd14102ee8561fab00635f
8239a6d4f47e510c79b9ca9266bdae74a4a65c62
/stats_scripts/LineageSeqAnalysis.py
68d6e566ed1d2d4f744f5298e0094c85e4b864a5
[ "Apache-2.0" ]
permissive
MitsuhaMiyamizu/altanalyze
37e41e31be5b8e0bda3bbc21a49ae38a0e5bb0b1
6cf103d14eb0d1643345b23a82a73ed969e75d40
refs/heads/master
2022-12-16T00:45:33.075476
2020-09-13T19:49:06
2020-09-13T19:49:06
295,673,614
1
0
Apache-2.0
2020-09-15T09:08:18
2020-09-15T09:08:18
null
UTF-8
Python
false
false
3,442
py
import sys,string,os sys.path.insert(1, os.path.join(sys.path[0], '..')) ### import parent dir dependencies import export import unique import traceback """ Intersecting Coordinate Files """ def cleanUpLine(line): line = string.replace(line,'\n','') line = string.replace(line,'\c','') data = string.replac...
[ "nsalomonis@gmail.com" ]
nsalomonis@gmail.com
9006ea41b14767232ecfeab06e0a211bf3355c55
5e7a09799bcd965e94763439d2cdddb85e961f82
/converter.py
5abeeda33452121b95f9c0fdcd0eb7878c431c91
[]
no_license
volsn/TextCorrector
c6fccf20d95db56a67085dfef5c0e303dc344890
e232b1d8b3be8e9c5dbfd2d692a7c900b27bda0f
refs/heads/master
2022-08-09T18:01:16.408447
2019-07-19T15:50:47
2019-07-19T15:50:47
197,633,686
0
0
null
2022-06-21T22:21:56
2019-07-18T17:58:11
Python
UTF-8
Python
false
false
3,113
py
import cv2 import numpy as np import os import svgwrite def locate_letters(image): output = image.copy() gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) ret, thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU) img_cnt, cnts, hierarchy = cv2.findContours(thresh.copy(), cv...
[ "noreply@github.com" ]
volsn.noreply@github.com
59ffaa062f026bd109f7179f6a030914c71a1fcb
d8e28eadab859095e3653812d9d32ed4df3e8323
/LeetCode/590.N-ary_Tree_Postorder_Traversal.py
14d12b35e8d6822a87f32ae3dad801aefb5ab317
[]
no_license
prashkumara/Data-Structures
d72b9e9845de7eeda62fd21b80e0942317ea85e1
b95fe9a28aad61b54cc685ee7d44cb501f32e631
refs/heads/master
2020-04-15T11:30:40.121096
2019-05-02T11:10:14
2019-05-02T11:10:14
164,633,582
0
0
null
2019-05-02T11:10:15
2019-01-08T11:23:19
Python
UTF-8
Python
false
false
498
py
""" # Definition for a Node. class Node(object): def __init__(self, val, children): self.val = val self.children = children """ class Solution(object): def postorder(self, root): """ :type root: Node :rtype: List[int] """ res = [] self.dfs(root,r...
[ "prashkumar.a@gmail.com" ]
prashkumar.a@gmail.com
88c11e5aa905c12f6ff1d2337df5c7c5f384719f
2fa0ce90609924c807c66dac2d0435f50fc2213f
/clustering_coef.py
6245d1ec8f8a0b7b1e4e0f3a9b2de3d1a66c84ed
[]
no_license
sheyma/nonlinear_dynamics
3fd1f603989ba92e6b18b5a8f9ca9db152b1727b
c81e652aaa6489e7441a7dbc27dc783c57ca489b
refs/heads/master
2021-01-01T20:42:05.656048
2014-07-16T18:14:36
2014-07-16T18:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- import networkx as nx import numpy as np import itertools import random import math import networkx as nx from networkx.generators.classic import empty_graph, path_graph, complete_graph import matplotlib.pyplot as pl B = np.array([[0,1,1,1],[1,0,0,1],[1,0,0,1],[1,1,1,0]]) ...
[ "seymaba@gmail.com" ]
seymaba@gmail.com
6d5350b4a2529f526f2b40301f9e064b6f4d99f2
56062fb29e67a27585934add78343e066352c72c
/blog/models.py
7ce064dc87da4930f7985609caaec49caf149169
[]
no_license
AhmadKafi/blog_app
cb05a391c35df0ed91ea710e51e29182d0e435c1
bd8edeee3f2fc92c8a98405605edde43be4bd7a5
refs/heads/master
2022-12-26T10:29:13.882569
2020-10-05T21:29:20
2020-10-05T21:29:20
287,182,863
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
from django.db import models from django.utils import timezone # Create your models here. class Post(models.Model): author = models.ForeignKey('auth.User', on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=timezone....
[ "kafi@Ahmadkafi.localdomain" ]
kafi@Ahmadkafi.localdomain
7a00bbe92188c8b80c2648067c697f5945fa472f
146db8997ca59945d63750089fe03aea2ce9c77d
/src/cool/compiler/checksemantics.py
53716c10fcd96fc6a6045a9123e7faadf13429ca
[ "MIT" ]
permissive
arod40/cool-compiler-rodrigo-alejandro-jorge
91321a99e42dd4aea15ac23b921b23399f53765c
3647846cd4c8ad83c2698cbd941efde4fdb3ac85
refs/heads/master
2023-06-16T05:15:29.199042
2019-06-25T18:59:23
2019-06-25T18:59:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,175
py
from cool.utils import visitor from cool.structs.environment import * import cool.structs.cool_ast_hierarchy as cool from cool.utils.config import * class CheckSemanticsVisitor: def __init__(self): self.errors = [] self.environment: Environment = Environment(self.errors) @visitor.on("node") ...
[ "r.garcia@estudiantes.matcom.uh.cu" ]
r.garcia@estudiantes.matcom.uh.cu
7dbe7a3f1fe497edaf1092a26bf86d082b359138
3ea205870103ac5557ef429e063a9b03f931ebb3
/getData.py
0ad18810cb188483015d13362a963afad4f3a745
[]
no_license
bascoe10/flask-api-for-discoversalone-db
05e192c61049cf0e974d73321c182e2fc019f3cd
fc6d08aa26ef3fb7b95687c589a132bfe338ae48
refs/heads/master
2021-06-07T12:59:22.316570
2015-11-05T15:36:50
2015-11-05T15:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,437
py
#!/usr/bin/python from flask import Flask,jsonify,abort, make_response import MySQLdb, re app = Flask(__name__) db = MySQLdb.connect("localhost", "root", ENV["password"], "db_name") @app.route('/api/v1.0/all', methods=['GET']) def all(): hotels = get_hotels() return jsonify({'HOTELS': hotels}) @app.route('/api...
[ "bassco10@gmail.com" ]
bassco10@gmail.com
7e813c0b2cfbb074bc7a5adfa1cbe7ec0151f91d
44bacf97ba9e92e6460a58a423db6cdfc09c9b74
/HTML_JS/Week5/Multiples1.py
87ebf59173c8538b9b7330c1a8b8eb019cbb7da0
[]
no_license
junhwang77/Jun-s-Repository
ce0f3e20f54ad356ef95af85dbe3e6c03291b0d8
4bc35c04586948d59ab9d93dcb918e96f838f8f6
refs/heads/master
2021-01-19T21:45:18.335953
2017-04-19T04:58:35
2017-04-19T04:58:35
88,701,284
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
for count in range (1, 1000): if count%2 != 0: print count
[ "junhwang@Jun-Hyuns-MBP.hsd1.ca.comcast.net" ]
junhwang@Jun-Hyuns-MBP.hsd1.ca.comcast.net
b8e8b3edbc2c89ee54390fb4adb926604db20551
4716b0a77fc101e7268b4e7b5372dc501d22c5ae
/src/MyData.py
5f4ef1c818b91bdb36280fde10e81fd7c38c97fd
[]
no_license
chinasilva/cat_vs_dog
81e3100b2d09aa000a743ab033b8600c33899b39
fe6fb6547024e0ceb00ac9c73b5cc45683624189
refs/heads/master
2020-05-28T02:56:24.109573
2019-05-28T13:12:48
2019-05-28T13:12:48
188,852,987
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
import os import torch import numpy as np from torch.utils import data from PIL import Image class MyData(data.Dataset): def __init__(self,path): super().__init__() # self.dataset=dataset self.path=path self.dataset=[] # 以列表形式链接所有地址 self.dataset.extend(os.listdir(path...
[ "YSP@email.com" ]
YSP@email.com
1a340439e7d0d09ad7a844c67259b4dc90b85c4d
0220af0584cb5b9df56aa09d81b8d450b3733156
/Easy/Brackets, extreme edition.py
18465f2c9047fb2f5ace051d71f045df83879a21
[]
no_license
SpiralT/Codingame
5cb1afbe58daccd9c1474a369b700e5a31a2684a
d4c4e0a4754870740f2db6bafa981e78461ca9d8
refs/heads/master
2020-06-11T16:14:05.504063
2019-07-02T14:20:05
2019-07-02T14:20:05
194,020,120
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
import sys import math # Auto-generated code below aims at helping you parse # the standard input according to the problem statement. expression = input() opens = tuple("{[(") close = tuple("}])") match = dict(zip(opens,close)) check = [] for i in expression: #print("i is",i) if i in opens: check.a...
[ "noreply@github.com" ]
SpiralT.noreply@github.com
6000db7daccd37a78e2c96d02dc7fc51ee9b2d74
7d787c2f9b2cb2130a1f3b8cdbc773d2d157b85e
/2012/03/blogging-with-wordpress/set-to-publish.py
20637ded020320c445bf5239887143011ca378bd
[]
no_license
ananelson/dexy-blog
632162996937b36832f57d1dde1867fc5c8237ea
70402f003bd471ac6e4277e8ec168ef84328b6cf
refs/heads/master
2016-09-01T18:58:38.102986
2015-01-28T04:44:13
2015-01-28T04:44:13
3,689,629
1
0
null
null
null
null
UTF-8
Python
false
false
210
py
import json import sys filename = sys.argv[1] with open(filename, "rb") as f: data = json.load(f) data['publish'] = True with open(filename, "wb") as f: json.dump(data, f, sort_keys=True, indent=4)
[ "ana@ananelson.com" ]
ana@ananelson.com
edd8e5eff2a1895c50da85b6e8978dc81f62a573
dc25934eaf8ec6f4eb6b91db48e53554243dad18
/utils/data_pro_for_nnsum.py
e6fb147424c6ae8d00bfa2be95b5c75b070dd2be
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Warren195/ecml-pkdd-2019-J3R-explainable-recommender
7bf70b4e84545020fed2a885dfd9fd0eed7b9579
e3de264bca9b7f4de1026527341ff519d8ab6856
refs/heads/master
2020-09-15T04:50:33.642127
2019-07-16T11:29:01
2019-07-16T11:29:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,918
py
import numpy as np import re import itertools from collections import Counter import csv import os import pickle import argparse import spacy import sys import tensorflow as tf import codecs from nltk import word_tokenize import json def mkdirp(path): if path == '': return try: os.makedirs(path...
[ "avinesh@aiphes.tu-darmstadt.de" ]
avinesh@aiphes.tu-darmstadt.de
a7bc9a7df0c9d94eb1eede66c7194282299df1c4
e7ed228f9f54d3911e3ee76dd7876bce2609240e
/src/christmas_tree_firework.py
853e0628462b053fd4d3cd55f48e019cd0e2e501
[]
no_license
Inndy/tkinter_samples
ea1f8f30b11e78e6925a6f4318c9db3174026b8d
a5e299694caa6040024b60769fee8f1acbcaaf2e
refs/heads/master
2023-08-31T10:22:12.192690
2015-06-07T06:27:48
2015-06-07T06:27:48
37,006,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,652
py
import random import math from tkinter import * colors = [ "#00f", "#0f0", "#0ff", "#f00", "#f0f", "#ff0" ] def draw_triangle(canvas, top, dx, dy): p1 = (top[0] - dx, top[1] + dy) p2 = (top[0] + dx, top[1] + dy) canvas.create_polygon(top + p1 + p2, fill = "#0B610B") def draw_christmas_tree(canvas, top, n...
[ "inndy.mail@gmail.com" ]
inndy.mail@gmail.com
7f2b05a37101aba648ba6c7debe31e448876d76b
23d474495347a5270006356e36ac074a7650b350
/helper.py
9d463c265e248063c04455e8d1289896ebc6f404
[]
no_license
kailunxu/eecs445_pj1
bbcad171740c2b8edec0d904e948a180c4e12571
fa2c54a0173a64e2e8b36127978c9178d5a1c78a
refs/heads/master
2020-12-28T10:59:43.403072
2020-02-04T20:51:22
2020-02-04T20:51:22
238,302,208
0
0
null
null
null
null
UTF-8
Python
false
false
5,651
py
# EECS 445 - Fall 2019 # Project 1 - helper.py import pandas as pd import numpy as np import project1 def load_data(fname): """ Reads in a csv file and return a dataframe. A dataframe df is similar to dictionary. You can access the label by calling df['label'], the content by df['content'] the ratin...
[ "xukailun@dc3sp13.dc.umich.edu" ]
xukailun@dc3sp13.dc.umich.edu
05178addab477cfead26f5762abbc06e719fc755
70cd46dcd43c6a2e197043f70d664abc7b203251
/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceMaintenanceAttributesRequest.py
877c6b6b68a8af5af3a553860b5087a1c0b72363
[ "Apache-2.0" ]
permissive
gbhayana96/aliyun-openapi-python-sdk
2d5e6aaeafba28d6735bff51f1ae2ea60f1bc5fb
59c93f507342bc094ca7d7cf244a611ce2eb5c40
refs/heads/master
2023-03-01T18:27:57.938577
2021-02-08T02:28:19
2021-02-08T02:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,174
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 u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
16c2af5664d1d04814a411a2f4af13814e1c0552
1c015a97448e5390aa501dc5a8347579611463ef
/features/steps/login.py
d949827124bf72c07c47df87f339da552a72bdaf
[]
no_license
kruczyna/behave_python_with_page_object
442e627f9b8cc9cd525351e8503d6fade1585f6f
f3b5894d848ffbfd7c1d628d8a754d1d00f2b061
refs/heads/master
2022-04-04T03:10:16.106446
2020-02-23T10:43:37
2020-02-23T10:43:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
from behave import given, use_step_matcher, when, then from features.page_objects.login_page import LoginPage use_step_matcher("re") @given('I navigate to Sign In form') def main_page(context): page = LoginPage(context.driver) page.navigate_to_sign_in() @when('I submit "([^"]*)" and "([^"]*)"') def submit...
[ "victoria.kruczek@stxnext.pl" ]
victoria.kruczek@stxnext.pl
9354365fdbc89661fb16a9f1d392e782d4f4d306
fc2c13f82401bf3476d306ca83a6971933cfcd9b
/pairsamtools/pairsam_phase.py
4f9a9602df5623df18d5e4b272e5190017bdb32e
[ "MIT" ]
permissive
OlgaVT/pairsamtools
e86750485f84d1dd4527855634fc0713e45f470d
a951a3982e464a62b93c8e8594436f5a2d7b1f2d
refs/heads/master
2020-03-17T11:04:38.449324
2018-05-08T11:17:44
2018-05-08T11:17:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,658
py
import sys import click import re, fnmatch from . import _fileio, _pairsam_format, cli, _headerops, common_io_options UTIL_NAME = 'pairsam_phase' @cli.command() @click.argument( 'pairsam_path', type=str, required=False) @click.option( '-o', "--output", type=str, default="", help='out...
[ "agalitzina@gmail.com" ]
agalitzina@gmail.com
cefce502e45b0f5489d3a2c4b13d4c0838bba046
6a61f19dd5e5d8cc9e6d7c20af2df93a17a85d94
/Notes/Python/src/exercise/reverse_iter_demo.py
71c5a85d2527fd411d9e15c701ae09b097c205fa
[ "MIT" ]
permissive
liuhll/BlogAndNotes
4d6e8aa426a6bb511c4b2c16039bdfb60ccaf13b
23b3b69178b0616837cd6f0b588bda943366b448
refs/heads/master
2021-06-12T06:00:28.489670
2016-12-12T14:25:48
2016-12-12T14:25:48
65,984,223
2
0
null
null
null
null
UTF-8
Python
false
false
671
py
# -*- coding:utf-8 -*- class FloatRange(object): def __init__(self,start,end,step=0.1): self.start = start self.end = end self.step = step def __iter__(self): t = self.start while t <= self.end: yield t t += self.step def __reversed__(self)...
[ "1029765111@qq.com" ]
1029765111@qq.com
80553f6f8277ae9b88e910fd2ce12233c9070760
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02389/s602338133.py
30cae6914208cdbb7161fe208d08cdf68b405004
[]
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
64
py
k = map(int,raw_input().split()) print k[0]*k[1],k[0]*2+k[1]*2
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
19160147765c6671b5a24625c6fcd96f28b45701
dc965a62709bbb2c6c9ad01859a83507d7457941
/Assignments/Class Assignments/ownfromkeysMethod.py
d6966305ed7b2703cc1cfe6cc77ddcc6e01db57a
[]
no_license
JyotiSathe/Python
ead31a84cde86d734acdf0ad83c27c6bb1c1a331
846371d678ba225c210493605233b262a51bd950
refs/heads/master
2021-05-11T22:38:30.299035
2018-06-24T14:08:37
2018-06-24T14:08:37
117,364,196
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
def fromkeys_my(x,y): temp={} if(type(y)==int): temp=dict.fromkeys(x,y) else: i=0 if(len(y)>=len(x.keys())): for key in x: temp[key]=y[i] i+=1 elif(len(y)<len(x.keys())): for key in x: if(len(...
[ "noreply@github.com" ]
JyotiSathe.noreply@github.com
1f0b4dca55699e00e3c7e179f5cb4a1a40c1a91b
2080822bc6a185c7b76e11dd6f0cfa7f1d2c3e5e
/lib-test/test_serialize.py
9510b866528e09d88a6d80f4968091260f633f53
[]
no_license
yunlongmain/python-test
13cbd4ca89397547a404622ca683053d1179b7a9
791d714651bbf132e21ba89b83e31d7a200ed05e
refs/heads/master
2020-04-06T07:00:10.241178
2015-04-13T08:43:58
2015-04-13T08:43:58
33,234,227
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
# coding=utf-8 ''' cPickle包的功能和用法与pickle包几乎完全相同 (其存在差别的地方实际上很少用到),不同在于cPickle是基于c语言编写的,速度是pickle包的1000倍 如果想使用cPickle包,我们都可以将import语句改为: ''' import cPickle as pickle # define class class Bird(object): have_feather = True way_of_reproduction = 'egg' summer = Bird() # construct an object ...
[ "yunlong@baidu.com" ]
yunlong@baidu.com
87b90834369ef9117e632a6ed4d575c6e8ab8f1b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_011/ch29_2019_04_12_15_04_40_053669.py
9f61e6f295344ce342be9d70439027af77e7c7e8
[]
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
125
py
def calcula_aumento(x): calcula_aumento=x*0.10 if x<=1250: calcula_aumento=x*0.15 return calcula_aumento
[ "you@example.com" ]
you@example.com
e8161252e675f5b794937524d2cf6fe8ac4544e2
a9bc638b83cbb4023bf9ee974b258922a6b4e19b
/projeto/consulta/models.py
c8ad218375a926785389e7ac6e1ad9904ea99064
[]
no_license
ThiagoRossiRocha/sistemaPythonDjangoTriagemCovid19
9916205cee622019a3076da8ca414d2f57128088
25a9cced7b09b9621dd7a4b1f0461de7c2e17789
refs/heads/main
2023-04-29T23:00:55.391971
2023-04-13T14:29:52
2023-04-13T14:29:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,392
py
from __future__ import unicode_literals from datetime import datetime from django.core.validators import MaxValueValidator, MinValueValidator from django.conf import settings from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from utils.gerador_hash im...
[ "alexandre.o.zamberlan@gmail.com" ]
alexandre.o.zamberlan@gmail.com
c8d4fac6b49562381cb01ed28c0a2a36f666b573
004f8f49e335f8e41462eae512bbe20d750fce8c
/rldb/db/paper__dudqn/algo__human/__init__.py
b357cc070b9982d22f87cc8a797e54ab755442e6
[ "MIT" ]
permissive
seungjaeryanlee/rldb
3ab4317e26a39e6fa9b6e7ed9063907dc6a60070
8c471c4666d6210c68f3cb468e439a2b168c785d
refs/heads/master
2020-04-29T15:50:26.890588
2019-12-19T08:31:12
2019-12-19T08:31:12
176,241,314
52
2
MIT
2019-05-16T06:33:17
2019-03-18T08:54:24
Python
UTF-8
Python
false
false
425
py
""" DuDQN scores from DuDQN paper. 114 entries - 49 human entries from Gorila DQN ------------------------------------------------------------------------ 65 unique entries """ from .entries import entries # Specify ALGORITHM algo = { # ALGORITHM "algo-title": "Human", "algo-nickname": "Human",...
[ "noreply@github.com" ]
seungjaeryanlee.noreply@github.com
68e787e4648287ca6ae2ab5203c404c0bd1053f8
9102f34f89867d2cc9b31ba64ab352019ccdc623
/wordSegment/lstm.py
b950a3172be32ade046029511c07e89968cd342c
[]
no_license
sadscv/NLP_assignment
8d8632ac17da68620d66b13aef6858997d3912a7
3231f96810e188d1d54dee0c521b703eac68d1a3
refs/heads/master
2021-01-17T15:46:52.435967
2017-06-13T13:08:09
2017-06-13T13:08:09
83,686,202
2
0
null
null
null
null
UTF-8
Python
false
false
4,729
py
import os import theano import theano.tensor as T import numpy as np class LSTM(object): def __init__(self, embedding_dim, hidden_dim, num_clas, wind_size, vocab_size, bptt_truncate=-1): ''' embedding_dim : dimension of word embeddings hidden_dim : dimension of hidden layer num_...
[ "sadscv@hotmail.com" ]
sadscv@hotmail.com
44131fa42f5759fc67f906e586dd6a2cf2a72c78
10388e24c0668a6176d2b961a9465bc02e3535b9
/lib/ua/agents/yahoo.py
36573fd8724de97f4047bb88557e9bd620722092
[ "BSD-2-Clause" ]
permissive
hdknr/ua
5d6e90b23b94200136ceb3be986566df066c8fcd
bc41f5b46fb99d0d576c7542c2184b39679f4ebf
refs/heads/master
2021-05-16T02:03:18.266356
2016-10-02T20:55:07
2016-10-02T20:55:07
18,771,412
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
''' Yahoo Bot ''' from . import BaseAgent, DeviceClass class Agent(BaseAgent): CLASS = DeviceClass.OTHER
[ "hdknr@ic-tact.co.jp" ]
hdknr@ic-tact.co.jp
8073129917effeaa239d559288fe4dff61937ca0
37fdc797f0060a67c1e9318032bc7102d4fd9ecd
/spider/beautifulsoup_test/lib/python3.7/site-packages/twisted/conch/ssh/keys.py
fe5798703c0ab2b1464a40a85cc1d996b054efc6
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Change0224/PycharmProjects
8fa3d23b399c5fb55661a79ca059f3da79847feb
818ba4fd5dd8bcdaacae490ed106ffda868b6ca4
refs/heads/master
2021-02-06T15:37:16.653849
2020-03-03T14:30:44
2020-03-03T14:30:44
243,927,023
0
0
null
null
null
null
UTF-8
Python
false
false
55,143
py
# -*- threading_test-case-name: twisted.conch.threading_test.test_keys -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Handling of RSA, DSA, and EC keys. """ from __future__ import absolute_import, division import binascii import itertools from hashlib import md5, sha256 import base6...
[ "lijj0224@163.com" ]
lijj0224@163.com
4ad6c645c3472bd641fdab6e780eb708a37c8502
8a7071ecb065b03a5ed5d685bffa34109a728c45
/Pandas/06_summary_of_dataframe.py
dd601e6fcbad51faadd76bf0425d0b6ae2550138
[]
no_license
RinkuAkash/Python-libraries-for-ML
a932dfc0aefae15e4c9047075b5de9de32207b39
c9e4393631b4b77b71e771021f4946f900c091b3
refs/heads/master
2020-12-14T11:48:29.131421
2020-01-24T12:19:38
2020-01-24T12:19:38
234,731,712
0
1
null
null
null
null
UTF-8
Python
false
false
715
py
''' Created on 21/01/2020 @author: B Akash ''' ''' Problem statement: Write a Python program to display a summary of the basic information about a specified Data Frame and its data. Sample Python dictionary data and list labels: ''' import pandas as pd import numpy as np exam_data = {'name': ['Anastasia', 'Dima', ...
[ "akashrinku2@outlook.com" ]
akashrinku2@outlook.com
b87e493684eee5cb2ba9da10d55a6b2bef34c4b5
adb47f48c7cf998ec673ec7c975e71fbbcdc65d9
/maximising_xor.py
0282d03832694b7f019f4c0970dea95509101574
[]
no_license
jamoemills/misc
6f9d362926d05b587bd10735cdfeb4ee3f8252a0
9fc011b6ccaf0f549ae38023c57be0df61942085
refs/heads/master
2021-01-11T03:17:48.158088
2015-01-20T12:19:06
2015-01-20T12:19:06
28,448,119
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
#!\usr\bin\python # -*- coding: utf-8 -*- import sys def maxXor( l, r): Xor_values = [] x = r - l while x != 0: for i in range(l + x, r + 1): # O(n**2) Xor = (l + x) ^ i Xor_values.append(Xor) x -= 1 return max(Xor_values) _l = sys.stdin.readline() _r = sys.stdin.readline() _l = int(_l) _r = i...
[ "jamiermiles@me.com" ]
jamiermiles@me.com
0269e2a46b181e82f34c2d0a59334f0cbc1bfd5d
fd09b4aff625d7a7c960e10af3c12a1107085c65
/01_using_azure_ml/project_1_optimizing_an_ml_pipeline_in_azure/train.py
89ceed821b5eb7f1642bde97e8eb3f547e9e4dc6
[]
no_license
sebastianbirk/udacity-aml-engineer-nanodegree
d5eb752f63662ffae39001aba1050abb224d28f1
ce31bd06b7a925cc8cbc61330e71fdff779b5ea7
refs/heads/master
2023-02-02T04:37:26.236319
2020-12-18T15:39:04
2020-12-18T15:39:04
318,105,050
0
2
null
null
null
null
UTF-8
Python
false
false
3,002
py
from sklearn.linear_model import LogisticRegression import argparse import os import joblib import numpy as np from sklearn.metrics import mean_squared_error import joblib from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder import pandas as pd from azureml.core.run impor...
[ "sebastian.birk@outlook.com" ]
sebastian.birk@outlook.com
5fe834ca4a1aa9f6217f7c8772b850527aa6581d
6646f40d8a43c03e3499141d3388220add677d94
/exception.py
c16aeaf1d1a6781737d1c1ba9c172791a4bd4377
[]
no_license
andrewnnov/Auto_py
63a14bc7d6532d3b02ac7a59e02d82c2fe2aad53
cf3aa1b7cfde4f305282f44164a7af24c24b03be
refs/heads/master
2021-02-20T23:56:55.851037
2020-04-21T19:29:59
2020-04-21T19:29:59
245,347,276
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
def boxPrint(symbol, width, height): if len(symbol) != 1: raise Exception('Переменная symbol должна быть односимвольной строкой.') if width <=2: raise Exception('Значение width должно превышать 2.') if height <=2: raise Exception('Значение height должно превышать 2.') print(symbo...
[ "andrewnnov@yandex.ru" ]
andrewnnov@yandex.ru
e2a3e21bc440b7674cd5fa8ed950cbe961441ebb
4f409ce499d941139e8db3afadc9a880947c01c0
/Experiments/DBpedia/VBMLTM/p_error.py
4652df0838ea5453cd95f1b3b78bcf809f1450eb
[]
no_license
manirupa/MLTM
62177b9648f02fd529e558e8d41cedf864dc5211
355c469a814b50618a31bdbdd550ccdad8ed543b
refs/heads/master
2020-06-23T02:28:01.188003
2017-04-02T14:24:04
2017-04-02T14:24:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,177
py
import numpy as np import os, re, sys #from sklearn import metrics #from sklearn.linear_model import LogisticRegression #sys.path.insert(0, '/'.join(os.getcwd().split('/')[:-4])) #import myAUC #Code = '../../../../../Code/MLTMVB/MLTMVB' #LDACode = '../../../../../Code/LDA_VB_Parallel/lda_vb' Datapath = '../../../Dat...
[ "hosein.soleimani@gmail.com" ]
hosein.soleimani@gmail.com
ace86fe08576352c4ef4471b8c321b4110a7ab16
c4bb2d8ecc521287afeba251a176d7a8837b6bf7
/sentences/classify_parser/science_spot_parser.py
1c80da77a5f2b94a31b57f93ff4373ee111613a0
[]
no_license
17680329677/Forestry_LAW
057080e175ffa4aab50a1751f75a3f63c757b926
4b9bd2c3e1b614f6f180950f169fc9eebe028a8e
refs/heads/master
2022-12-22T06:36:44.838644
2020-06-13T09:54:08
2020-06-13T09:54:08
204,466,380
16
3
null
2022-12-08T07:01:26
2019-08-26T12:01:41
Python
UTF-8
Python
false
false
3,071
py
# -*- coding : utf-8 -*- # coding: utf-8 # 风景名胜管理条例相关法律法规的解析---并存入mysql数据库中做初步的格式化 import os from data.property_collect import law_parse from data_resource import conn def science_spot_parser(file_path): dir_path = "C:\\Users\\dhz1216\\Desktop\\washing\\风景名胜" file_name = file_path.split("\\")[-1] cursor =...
[ "laobahepijiu@163.com" ]
laobahepijiu@163.com
7412475f7a6305dc02e7b0f8dced96e2ee15c394
4000a83fdd095726d382eeb55552dff3db688cc1
/LoadAndDeliverPackages.py
ce80b6e05bf710d942dd699a2dec0701c18da5d2
[]
no_license
JasonPBurke/Package_Delivery_System
3f02856c18d3a866239e810a05d8f3ce71500274
ba59cde436951aa82560cabd93daf4ce08d76c07
refs/heads/master
2020-05-06T15:34:45.649589
2019-04-25T21:18:03
2019-04-25T21:18:03
180,197,249
0
0
null
null
null
null
UTF-8
Python
false
false
20,851
py
# Jason Burke from QuadraticProbingHashTable import EmptyBucket from interface import interface from truck import Truck from datetime import datetime, time, timedelta # This greedy algorithm will find the closest vertex from our starting hub vertex(WGU) # and add the package(s) to the first truck that are to be deliv...
[ "jpburke77@gmail.com" ]
jpburke77@gmail.com
fee5d4a3265c202f2fc23c7c9191ad8f717f107d
bf5a4d4d943d1a6f398bb4a0703f602fc825f846
/gym_SmartPrimer/examples/plotAgentAnalysis.py
8ed67cc7487b1c79afbd2c9ff8d70d50f7afd883
[ "MIT" ]
permissive
StanfordAI4HI/SmartPrimer_Gym
b76ea0bc1bbd2aa94cb59c2351095461181babbe
12f379ed9553c75f0e2924d11d603a2e975a1871
refs/heads/main
2023-08-18T04:31:10.030153
2021-05-15T16:46:17
2021-05-15T16:46:17
354,095,079
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
import numpy as np data = np.loadtxt('/Users/williamsteenbergen/PycharmProjects/SmartPrimerFall/gym_SmartPrimer/examples/actionResultsAcrossModels', delimiter=',') dataSeed = np.loadtxt('/Users/williamsteenbergen/PycharmProjects/SmartPrimerFall/gym_SmartPrimer/examples/actionResultsAcrossModelswSeed', delimiter=',') a...
[ "wsteen@federato.ai" ]
wsteen@federato.ai
3e188b609c688851ce26ca9a52386d9c724d1b03
f782a8e8ba31a09c03d160c5813b592590e4ab1e
/rugby_team_create/urls.py
a5fe9153c5f304c851eefb62daa0a8ece868d576
[]
no_license
nicemiddle/rugby-team-create
fdba9b9542232f9c50da968671a13a26cc75c3b4
a97cecf7e82efc9dd698624878fcbea7502132c7
refs/heads/master
2022-05-31T21:59:25.701082
2020-05-05T04:25:47
2020-05-05T04:25:47
254,811,406
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
from django.urls import path from . import views app_name = 'rugby_team_create' urlpatterns = [ path('top/', views.TopTemplate.as_view(), name='top'), path('team_list/', views.TeamList.as_view(), name='team_list'), path('team_detail/<int:pk>', views.TeamDetail.as_view(), name='team_detail'), path('tea...
[ "p20lite1108@gmail.com" ]
p20lite1108@gmail.com
231cbae623fed0554cc23c8c6a61a1fc68693fe3
cd9031cd698d23b4117106e1fba1a26c74e543a9
/dattq/logger.py
0091cb9bee575406b6f909a8b1969e6f0fb0f221
[]
no_license
dattran2346/rsna-2019
89150cdec26da3fcdb67125b50925efaa9a027da
d454e049a267fdade1a81a02a696a0cb3ad33b5b
refs/heads/master
2020-09-18T18:45:40.115631
2019-11-26T14:28:18
2019-11-26T14:28:18
224,168,197
10
2
null
null
null
null
UTF-8
Python
false
false
4,714
py
import logging from pathlib import Path from terminaltables import AsciiTable import time import sys import numpy as np class TrainingLogger: ## TRAINING LOGER def __init__(self, args): ## Setup training logger # checkdir = Path(f'{args.checkdir}/{args.checkname}') self.args = args ...
[ "v.datnt41@vingroup.net" ]
v.datnt41@vingroup.net
b1f7422ef4b4a059e84976566cc78d4d683fde87
c3d8e82100f02482f1a9ea1fa8e92e176982ecee
/printable.py
9766102c5013de00fe1dd9257c6942e68f14ccb2
[]
no_license
sopoour/blockchain-python
ba83704c20a0c1b06486b4307c9eb65adfa1a1ba
2bc9e18a5ffbe2bbb617f8cd4b6029007843b29f
refs/heads/main
2023-06-01T06:55:55.942060
2021-07-05T19:01:40
2021-07-05T19:01:40
265,257,624
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
class Printable: #Convert the transaction objects to a dict and in order to be printable as string convert that to string def __repr__(self): return str(self.__dict__)
[ "sophia,auer@googlemail.com" ]
sophia,auer@googlemail.com
88cc5ef0a54f620a14398b2249217be062c7e877
6e5e455223109d808ce6397beddb71be25c3d8eb
/builder/__init__.py
962f058f1a1f7a280ea451d89ea1445847ce2d9e
[]
no_license
tdesposito/Pi-Appliance
cfbba185ebe40660ddb2fa400286dc5340504b80
355dbbd5aedba3a70dcc6c3323da3735fd94bd93
refs/heads/main
2023-04-04T14:34:53.434970
2021-04-20T19:35:38
2021-04-20T19:35:38
357,302,269
0
0
null
null
null
null
UTF-8
Python
false
false
2,968
py
# Builder - common functions import functools import json from pathlib import Path import subprocess from urllib.parse import urlparse CONFIG_FILE = Path(__file__).parent.parent / "appliance_config.json" SECRETS_DIR = Path(__file__).parent.parent / 'secrets' SECRETS_FILE = SECRETS_DIR / 'secrets.json' SECRETS_NAMES = ...
[ "todd@toddesposito.com" ]
todd@toddesposito.com
cedc61464047cd576e65a826c10359d22cbf1609
72774acfc4aebe83b40cab2b57046b3fd46cdadc
/main.py
aad820b048399dfc0592ff771ef11f0546dfb9b0
[]
no_license
matosagencia/Functions-to-MySQL
b06cdcb7d75533d1ab3712084c5ca8ca32e75cd1
46ae32284c6eb3077ec5d633270263bec16e2a83
refs/heads/main
2023-04-22T00:16:12.892881
2021-04-27T08:02:06
2021-04-27T08:02:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,742
py
from mysql.connector import connect #show_schemas = "SHOW SCHEMAS" #params = None # ################################## >>>>>> FUNÇÃO DE EXECUÇÃO <<<<<< ######################################### def execute(sql, params=None): # Executa um comando no mysql e salva os valores. Serve para: # insert, upd...
[ "noreply@github.com" ]
matosagencia.noreply@github.com
471512ef653813c7a297681963b7ff21e648036a
bd10597dc133237e68d07d8d6f9a2a1914e551ad
/MCA/Machine Learning/swap.py
6bf8294e6020ae1bffac2e3d6670237ee697ea7c
[ "MIT" ]
permissive
muhammadmuzzammil1998/CollegeStuff
a1bf16a3d9a5b8586c10dd4ea2c0078baaae64fa
618cec9ebfbfd29a2d1e5a182b90cfb36b38a906
refs/heads/master
2021-12-26T16:57:33.875599
2021-12-21T21:43:15
2021-12-21T21:43:15
125,047,706
3
0
null
null
null
null
UTF-8
Python
false
false
99
py
a, b = 5, 6 print("a = {}, b = {}".format(a, b)) a, b = b, a print("a = {}, b = {}".format(a, b))
[ "muhammadmuzzammil.cs@gmail.com" ]
muhammadmuzzammil.cs@gmail.com
11002ce9a66d6dd01dd3255c64061bf99832f835
35fc3136ca3f4af52ebeb36cedcd30b41d685146
/RNASeq/pipelines_reg/RNASeq_MDD6.py
063bd01f225742f1770e18d723c47a560ede2e36
[]
no_license
stockedge/tpot-fss
cf260d9fd90fdd4b3d50da168f8b780bb2430fd1
d1ee616b7552ef254eb3832743c49a32e1203d6a
refs/heads/master
2022-09-19T13:10:30.479297
2020-06-02T15:43:16
2020-06-02T15:43:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
import numpy as np import pandas as pd from sklearn.ensemble import ExtraTreesClassifier from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline from sklearn.preprocessing import MinMaxScaler # NOTE: Make sure that the class is labeled 'target' in the data file tpot_data = pd.re...
[ "grixor@gmail.com" ]
grixor@gmail.com
f55e9b9731ecf77dcf752f1daaf3c8e570512a0a
ee4a142eb9f7e7f86ef2f74821ed07ff2bed23cc
/snort_csv.py
e8f55dfe4ddc16d38038f426e675dc04d193c1b8
[ "Apache-2.0" ]
permissive
kairotavares/snortrules-csv
046ce7e9947344462a3d342a5fd2e3238d2ad6ec
b985c8e89ef41a6ae9d2d559e8f0458f9e021705
refs/heads/master
2022-09-03T17:51:09.266372
2020-05-29T21:43:31
2020-05-29T21:43:31
260,497,254
0
0
null
null
null
null
UTF-8
Python
false
false
3,080
py
import snortparser.snortparser import csv import sys from os import listdir from os.path import isfile, join all_options = [] ignore_options = ['msg', 'metadata', 'classtype', 'sid', 'rev', 'reference', 'tag'] ignore_list = ['snort3-deleted.rules'] def is_rule(rule_line): return len(rule_line) > 100 def read_rul...
[ "kairo.ces.tavares@hpe.com" ]
kairo.ces.tavares@hpe.com
b0e54b36346883493651de7f791ebe6ef592ed6a
f5cef01c9786a265d69a2f180057b4ac59e96c0e
/ml/m23_FI4_cancer.py
89e50b8471b65134ac5f9c52a36c8ee4332ac15d
[]
no_license
4dv3ntur3/bit_seoul
5cb018dd1932100a15ad431034ba80515c7108be
8e1ee8a0c648e92abc14b47b271876d43861a0ad
refs/heads/master
2023-02-03T14:03:40.191623
2020-12-20T14:54:51
2020-12-20T14:54:51
311,263,882
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
#2020-11-25 #feature importance:cancer #기준은 xbgoost # 0. 디폴트 xgboost # 1. feature importance=0인 것 제거. 압축 아님 or #2. 하위 30% 제거 # 1. feature_importance=0인 것 제거 # 실행 3번 import numpy as np from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from sklearn.ensemble import RandomForestClassifier, Gradient...
[ "allyep13.07@gmail.com" ]
allyep13.07@gmail.com
ca8ec424843b1095331a340c03a555af12aca256
c901d523500aaedd9d87ce9b14c83db216890fc2
/itech/asgi.py
b1c515b11c90d847468b1485e615974840f3cacb
[]
no_license
Imran122/personal_blog
9bcd76605ea69f138618bbdb429f8ce5c823810c
e240ed9bcc374cc51441b3f3b08fa09e0cb051d4
refs/heads/master
2023-01-05T09:20:04.958620
2020-11-07T17:31:27
2020-11-07T17:31:27
310,887,933
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" ASGI config for itech project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
[ "imransardar122@gmail.com" ]
imransardar122@gmail.com
de0387838dc323a425a63d71b630a0d224917274
070b693744e7e73634c19b1ee5bc9e06f9fb852a
/python/problem-dynamic-programming/jump_game.py
199c3094474b5251eda2a8fedf6bc3b8892e146a
[]
no_license
rheehot/practice
a7a4ce177e8cb129192a60ba596745eec9a7d19e
aa0355d3879e61cf43a4333a6446f3d377ed5580
refs/heads/master
2021-04-15T22:04:34.484285
2020-03-20T17:20:00
2020-03-20T17:20:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
140,306
py
# https://leetcode.com/problems/jump-game # https://leetcode.com/problems/jump-game/solution class Solution: # Time Limit Exceeded def canJump0(self, nums): if nums is None or 0 == len(nums): return False dp = [False] * len(nums) dp[0] = True for i, n in enum...
[ "agapelover4u@yahoo.co.kr" ]
agapelover4u@yahoo.co.kr
871dd366f3cab995150d2469f9261cd3a22f2c52
01ec1578126240ec8fb300de5290d02e0a8335dc
/books/admin.py
76c5517d3ab5b7de09b89a56d1bc40e923304746
[]
no_license
mitun94/MyBooks
3f10852ebb532c0ae10b0ca7f852be802ed6cc9e
ba5e1a37e1d1f1d63495db75fd97b154f4eefbcb
refs/heads/master
2020-03-08T22:23:49.454677
2018-04-08T06:51:21
2018-04-08T06:51:21
128,429,643
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
from django.contrib import admin from .models import Category,BookItem # Register your models here. admin.site.register(Category) admin.site.register(BookItem)
[ "tohidulalammitun@gmail.com" ]
tohidulalammitun@gmail.com
2cfe58bb9928d5ecdf0e6bbb00070b0faf7c1d78
85a718eca22f79c7b140615c9c8643bc148a5ba8
/manage.py
d23ac384e0efb49303bc802e24c58092a43c4b60
[ "CC-BY-NC-SA-4.0", "CC-BY-NC-4.0", "CC-BY-NC-SA-3.0", "CC0-1.0" ]
permissive
CircleCI-Public/circleci-demo-python-django
9298b8167fe1b3a10c91cabe540ab5759cd2c130
2bbf84b270e6de0888ea7f551a749b938f6194ba
refs/heads/master
2023-04-30T02:24:06.716277
2022-01-14T19:49:12
2022-01-14T19:49:12
89,367,810
127
428
CC0-1.0
2023-04-21T20:53:14
2017-04-25T14:07:09
Python
UTF-8
Python
false
false
810
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "locallibrary.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that...
[ "hamishwillee@gmail.com" ]
hamishwillee@gmail.com
2f1cacdc9741a25f7bee9438d600cb9411fc01a8
79536b68be2785c1ccc49daddc38fec986315360
/guardianapi/fetchers.py
766ea398ea7acf7ca8db525852db916465106e53
[]
no_license
tsmarsh/guardianmobile
fca20a86f365b9019cbf9a5f90883b0b14de228e
76e11f7b8a3645a999c08596ea8d61c6e1b9b30a
refs/heads/master
2016-09-10T01:34:06.506503
2009-08-18T14:27:46
2009-08-18T14:27:46
148,282
1
0
null
null
null
null
UTF-8
Python
false
false
1,824
py
import urllib2, pickle try: import httplib2 except ImportError: httplib2 = None from errors import HTTPError def best_fetcher(): if httplib2: return CacheFetcher() # Uses an in-memory cache else: return Fetcher() class Fetcher(object): "Default implementation, using urllib2" de...
[ "ts.marsh@gmail.com" ]
ts.marsh@gmail.com
0b5e32768ed6868c934b8e5ec4cba959792d7629
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_log_group_response.py
88d154cc80b2f35af312418104e51138729d3714
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
6,117
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateLogGroupResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
8106fafdb5ec6258491ec9ff4ac9cf282149f318
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/15966000.py
e27a25452c4fbe673648adb9fa2006914a890e86
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/15966000.py generated: Fri, 27 Mar 2015 16:10:12 # # Event Type: 15966000 # # ASCII decay Descriptor: [Lb => (D0 -> K+ K- pi+ pi-) X]cc # from Configurables import Generation Generation().EventType = 15966000 Generation().SampleGenerationTool = "SignalPla...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
ecb5033566867cb000d040c50eafc4011199a97e
21aa0289a371504992ae234f7f2cfe3a508804ec
/lab3/main.py
6a6ed68e2c566a771184c00838af88b9a1c89158
[]
no_license
markporoshin/mathstat
434fa72dd55b33e8b2523c6f346ea978fccac4f2
e4fca53986c0ac84f986326de2fae47af873cae2
refs/heads/master
2021-04-20T12:52:51.634558
2020-07-12T18:38:41
2020-07-12T18:38:41
249,685,258
1
0
null
null
null
null
UTF-8
Python
false
false
1,959
py
import numpy as np from math import sqrt, pi, exp, pow, factorial, fabs, ceil import matplotlib.pyplot as plt distributions = [ { 'name': 'normal', 'func': lambda size: np.random.normal(size=size), 'destiny': lambda x: 1 / sqrt(2 * pi) * exp(-x * x / 2) }, { 'name': 'poisson...
[ "mark.poroshin@yandex.ru" ]
mark.poroshin@yandex.ru
6a5a73bb8bebce97725c37554303abc4ba6939d4
d5160ebcb62307f08e729c38c17d53eb4ddbfa7a
/Face-Recognition/frame_extraction.py
b38cd437cba9d81745483460ef45518a60a7fa31
[ "MIT" ]
permissive
huylv69/Face-Recognition
4a1ccd35885c5a79abbedc160d281e66a9b7b30c
6235d707a20562f4b06d6a0980a2c07e69b83a74
refs/heads/master
2020-03-17T12:47:11.448580
2018-05-31T15:38:23
2018-05-31T15:38:23
133,602,987
5
1
null
null
null
null
UTF-8
Python
false
false
2,224
py
import numpy as np import cv2 #function to detect face using OpenCV def detect_face(img): #convert the test image to gray image as opencv face detector expects gray images gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) #load OpenCV face detector use LBP more accurate but slow Haar classifier face_...
[ "levanhuy96@gmail.com" ]
levanhuy96@gmail.com
b97d143ad661ee089527547470fea808e5cb764d
99572bef8a2371a71f1414d4aa0a48764bbcc2c3
/manage.py
98b4971841df1a1003514267d92630b8f8d53802
[]
no_license
solarflare626/IITOverflowWeb
c4e7784f0e056d8f74503f77fc37fdae44d3b37b
390fa4370d741b03f2083b59f49c98ef58ad5148
refs/heads/master
2021-04-06T02:48:20.648507
2018-08-09T12:39:28
2018-08-09T12:39:28
124,879,533
2
1
null
null
null
null
UTF-8
Python
false
false
1,833
py
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from app import app, db, models from app.models import User, Bucket, BucketItem import unittest import coverage import os import forgery_py as faker from random import randint from sqlalchemy.exc import IntegrityError # Initializing the...
[ "johnkagga@gmail.com" ]
johnkagga@gmail.com
0a6a43b54aeecd180ee3e7ec5e7e6177d82472fe
a76dc1b81d802401721d51b7ab7d2f88562bc05a
/ce/python3.6_windows_gpu_models/variational_seq2seq/_ce.py
c1fc10b968a52272d6f0aea0d83c19a7dfde4502
[]
no_license
PaddlePaddle/paddle-ce-latest-kpis
353a132d1c4c31305ebd4eeeb1a729c025a2fffc
f9a9ca792c4c7b659b8fa4cdf07cacb063db4f11
refs/heads/develop
2021-12-22T08:36:52.083618
2021-12-13T11:27:18
2021-12-13T11:27:18
127,693,333
29
128
null
2023-05-05T06:26:26
2018-04-02T02:40:42
Python
UTF-8
Python
false
false
1,244
py
# this file is only used for continuous evaluation test! import os import sys sys.path.append(os.environ['ceroot']) from kpi import CostKpi from kpi import DurationKpi test_nll_kpis = CostKpi('test_nll', 0.02, 0, actived=True) test_ppl_kpis = CostKpi('test_ppl', 0.02, 0, actived=True) tracking_kpis = [ test_...
[ "jiaxiao243@126.com" ]
jiaxiao243@126.com
e156d6f45f221cee8eb82b24e63a2092d4185d22
1f613d0e8a0603128b3c44ae20f2a88b7bd1fd0f
/manage.py
9d1ad7e5f90442bc51d334d7db18fe5c5b55d540
[]
no_license
Korek-F/Django-WordsApp
55bb64ee1137fb1bdb31f46b196407cbcfc36922
97ede8ac6499538929544232c084dd285f67a553
refs/heads/master
2023-03-20T21:07:41.834896
2021-03-09T11:19:22
2021-03-09T11:19:22
344,179,025
1
0
null
null
null
null
UTF-8
Python
false
false
625
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', 'words.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
[ "filip.korycki2222@gmail.com" ]
filip.korycki2222@gmail.com