blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
d05e122a02664553647074deb6e7d9fd588ebee5
4df1982d0fec414fd4729867b8cfc426546ba45a
/bigdata_noahdata/workplace/PythonDemo/com/mypthon/practices/DateTiemeModule.py
7ecdf273824208d4855f2ae90a80388cfa11f49f
[]
no_license
LakshmiNarasimman/Python-Projects
b8d362995064ec47d4a123dc48be9a4ccc2fd722
f9c05b2c3759e53c29144cbe7f7a9c81541d688f
refs/heads/master
2021-08-15T05:45:47.648500
2017-11-17T12:19:00
2017-11-17T12:19:00
111,093,732
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
DateTiemeModule.py
''' Created on 25-Oct-2017 @author: bigdata ''' import datetime from datetime import date import time import os import json print time.time() print date.fromtimestamp(time.time()) print date.fromordinal(10000) currentDate=date.fromtimestamp(time.time()) print currentDate.strftime("%d-%m-%Y") print os.pardir print d...
38c2425961455942dc430559230dfbab8921dc8c
4c5633934474df54a98d3693f9f6f9282aedfcf8
/genetic_TSP.py
88cdc6ddd50001fc891251fc3f185535abba7292
[]
no_license
naghim/AI_HW_4
6d436089cfd1da9bd00ffd3556cf9cffb4ebe86b
80a81157d0d2e6ef74a0d0197a80bc73131ca1ae
refs/heads/master
2021-04-18T00:15:45.977749
2020-04-04T19:02:58
2020-04-04T19:02:58
249,488,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
genetic_TSP.py
import array import random import sys import multiprocessing import numpy as np from deap import algorithms from deap import base from deap import creator from deap import tools # because we want to minimise the distance we will mark the distance between the same cities with 1000 distance_map = [[1000, ...
5edf12088e3b2a2a33083af8ca4b429829f475c9
7a6e4f5c7ff9e2cab5a7371a952efd99020b6f38
/ops/move_deps.py
46234be19b1126c6f088e102a6e6051a2800484c
[ "Apache-2.0" ]
permissive
arunraman/fil_backend
70a1ddd7ea69d125d80f84f7034de1fe283b3ab2
42d93ce1d6f1f71a35432f25e774d882646efd31
refs/heads/main
2023-07-07T04:57:46.077858
2021-07-30T18:14:10
2021-07-30T18:14:10
392,106,789
0
0
Apache-2.0
2021-08-02T22:04:46
2021-08-02T22:04:45
null
UTF-8
Python
false
false
3,421
py
move_deps.py
#!/usr/bin/env python3 import os import re import subprocess import shutil from pathlib import Path MISSING_REGEX = re.compile(r'\n\t(.+)\ =>\ not\ found') FOUND_REGEX = re.compile(r'\n\t(.+)\ =>\ (.+)\ (\(0[xX][0-9a-fA-F]+\))') def ldd(path): """Get output of ldd for given file""" ldd_out = subprocess.run(...
505fb9e5d2ab5d8b28869c3d541178202a4159ef
9d71a1e294ac2507bb5e024476cffc754f2ed2a9
/fiction/spiders/biquge.py
f9b652e1281379cebdd74afb3ba35c29285c7981
[]
no_license
9I-zytk/fiction
3fb8cf6a84139cf2ce87036a3b52dbadec42cd70
2228905ac8dd897d29e6dd8f6a4c3d61ca3e3007
refs/heads/master
2020-05-03T02:59:48.837554
2019-03-29T10:36:59
2019-03-29T10:36:59
178,385,792
0
1
null
null
null
null
UTF-8
Python
false
false
3,142
py
biquge.py
import scrapy from urllib.parse import urljoin from scrapy.http import Request from fiction.items import FictionItem, FictionDetailItem from fiction import util # from scrapy.loader.processors import MapCompose, Join from scrapy.loader import ItemLoader class biqugeSpider(scrapy.Spider): name = "biquge" allo...
9ffab2ba1f922959e344abe0cadbe948316e895f
bba7355232bfed3498b24c5272d561b6dbc8caeb
/skräp/mapper.py
3d28937c464d50da334b7358b245c17d7c3bbf11
[]
no_license
mosh98/spark
c73d9f9e19ba7a13929360d6a0390550844c9711
de8e99e0db20342f8ebb13b631c6ab3ee72f249d
refs/heads/master
2023-02-14T17:31:59.730676
2021-01-06T11:13:47
2021-01-06T11:13:47
321,952,002
0
1
null
null
null
null
UTF-8
Python
false
false
640
py
mapper.py
#!/usr/bin/env python import sys # input comes from STDIN (standard input) """" What is *MAP phase*? The map or mapper’s job is to process the input data. Generally the input data is in the form of file or directory and is stored in the Hadoop file system (HDFS). The input file is passed to the mapper function line...
14a23d84ddb928525b19c05e6177694576646fdc
7b737fac31b928feec9fe0e52839d51ddf85a57d
/game/structure.py
cda1b295f881766008844298cce9d146b45b875e
[]
no_license
mblnv/P3_mac_gyver
5c1a727045363b72d5d1ab8720dfa06f5a061e2f
f96a4ad6593ff8edeeca51ecf96d622e8d43c59c
refs/heads/master
2022-06-30T11:21:35.877774
2020-05-09T13:55:18
2020-05-09T13:55:18
262,079,718
0
0
null
null
null
null
UTF-8
Python
false
false
6,032
py
structure.py
#! /usr/bin/env python3 # coding: utf-8 import os import random import pygame import game.game import game.items """ This module creates the skeleton of the game and add visual elements on it. The skeleton is a structure with a form of a grid in 2 dimensions. This grid is materialized in a list of lists (ma...
8d038dcd02978204048e6440d40308500261c57b
1adac2229e3bdbdaed54569805e7192e04b52536
/auto_server/rpc_auto_server.py
7bed64ca979ea356e35d88655e77e77a301c0582
[]
no_license
Chris19920210/AutoML
8cfee2562ff30a76486f5344e0daadc9709e8b32
88acff29c842f71d2bab7ed4b9c0d162e8d843b2
refs/heads/master
2021-04-12T05:17:53.748918
2018-03-28T07:09:46
2018-03-28T07:09:46
125,829,390
1
0
null
null
null
null
UTF-8
Python
false
false
2,079
py
rpc_auto_server.py
import argparse import configparser import multiprocessing as mp from rpc import RpcServer from utils_rpc import * """ The main function launching rpc server """ argparser = argparse.ArgumentParser(description='configuration setting') argparser.add_argument('--basic-config', type=str, default='./config.properties', ...
20ff36443a726633da98a8f252ff40f6c2f7c13d
4924beddd2801d29e64abf0d1ad428e82ef33442
/app.py
4dfcf1c6620a21e3eab520ecb2717d2d2b826348
[]
no_license
Safe-ly/Safely-Python-Flask
b3cf0cf762d6db2d3f9af1345a724dd23fe55d32
8feb2dd77d646630da608ddfb025356a8df1d843
refs/heads/master
2020-08-12T11:05:54.813849
2019-10-13T03:47:39
2019-10-13T03:47:39
214,756,019
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
app.py
from flask import Flask, request from flask_cors import CORS import pandas as pd import warnings import json warnings.filterwarnings("ignore") app = Flask(__name__) CORS(app) def get_df(): csv_train = pd.read_csv('accidents.csv') csv_train = csv_train.drop(columns=['target']) csv_test = pd.read_csv('test...
80a376341d337aa443381323864fb8412291197f
a65af63a20901f972e4309589171e277f104ea5a
/exchange/model/MarketDataEvent.py
01bc8ec5cbfe463f70a418094b9a9c09f210c110
[]
no_license
bradleymiles17/bristol_stock_exchange
68f848b26e465c66680f522de60a6af0bc538608
5fb513908642662d2c5c672dee12a44c5dc4f141
refs/heads/master
2020-04-22T16:15:04.144335
2019-04-15T11:03:33
2019-04-15T11:03:33
170,502,093
1
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
MarketDataEvent.py
from typing import Optional class MarketDataEvent: timestamp = None class LastSalePrice(MarketDataEvent): def __init__(self, timestamp, symbol: str, price: float, qty: int, volume: int): self.timestamp = timestamp self.symbol = symbol self.price = price self.qty = qty ...
a45355d073f6595814290cc6bdb95995d253869e
00e5c456fdfc83dd6314a587ce91ab76f3307378
/lab2.py
9c049b5343775cff89693c6810e964db62732e9e
[]
no_license
levYKpi/db_python_postgresql
07957afe6816217b5ed099bbef5c3d7539cba482
cb474624a6428e284050a4e80c14971f14c0c316
refs/heads/master
2020-06-29T10:43:32.086858
2019-08-04T16:06:13
2019-08-04T16:06:13
200,513,489
0
0
null
null
null
null
UTF-8
Python
false
false
11,400
py
lab2.py
from sqlalchemy import * from sqlalchemy.sql import select from sqlalchemy.orm import relationship import sqlalchemy from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base import psycopg2 # metadata = MetaData() # it_companies = Table('it_companies', metadata, # ...
feb8ed922cb18ca78353d9fc20032692d8491eb3
6c0657d7fe12761a7b8ac43949afc697bf673b21
/StartSecurity/Teclado/ColubridaeFirst.py
cc0a0a31fff266f89f632241c2a5403cead28e53
[]
no_license
Mephisto-G/Heavensdoor
23cbe766f9d71b6652a8b4d1734323647ebc2d1e
38086c77194c12fe2e9640e38f03b46fef888197
refs/heads/master
2020-07-10T20:55:57.318199
2019-10-14T23:18:37
2019-10-14T23:18:37
204,369,952
3
2
null
null
null
null
UTF-8
Python
false
false
368
py
ColubridaeFirst.py
#Start Security by Link Dragon TM import json #Senha s=[] senha=s[0]+s[1]+s[2]+s[3] #LogIn #Cadastrar Biometria (Kuan, Deprê na Cacahça) #Integração com o Helix #Leitura da Biometria (Kuan, Deprê na Cacahça) #Integração com o Helix #Senha da Biometria #Menu de Criar Outros U...
cca3de39c9c6407b77c4a48b8a9f79dc33430c1c
3b2f1461ea9e98db978a3824c8c6b937e710f070
/Metodos/SOR.py
00e706c6d6aa5adc6cb3f23977ba809f70e0c825
[]
no_license
josejoab/AlphaNumericApp
4fddd6a558ccad209dc154518dce41ea227f719b
3ede26533f361a3484d97d772cf5bec3010d066c
refs/heads/main
2023-01-19T14:26:02.321607
2020-11-25T15:28:02
2020-11-25T15:28:02
314,080,917
0
1
null
2020-11-25T15:28:03
2020-11-18T23:10:41
JavaScript
UTF-8
Python
false
false
1,627
py
SOR.py
import numpy as np from scipy import linalg as LA import pandas as pd import copy def sor(A, b, x0, w, tol, Nmax): results = {} message = '' det = np.linalg.det(A) if det != 0: d = np.diag(A) D = np.diagflat(d) L = -np.tril(A) + D U = -np.triu(A) + D T = np.lina...
f9f070c348258d0de8278222d152d92adf7e71ca
e6273058cc2592342f8972e7c56c978e2b881055
/dota_chat/migrations/0006_auto_20190830_1721.py
645117a7c414500d928e92af67978c19ef714b4c
[]
no_license
brojonat/pipe_of_insight
b620a3e6479402d628646d68e0754d0123fd3f8f
7e8c61a6ac3e042e40652983148f482e075754a9
refs/heads/master
2020-07-27T02:11:29.608865
2019-11-22T03:24:39
2019-11-22T03:24:39
208,832,015
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
0006_auto_20190830_1721.py
# Generated by Django 2.1.5 on 2019-08-30 17:21 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dota_chat', '0005_auto_20190830_1720'), ] operations = [ migrations.AlterField( model_name...
3b3d4d82a1306f52733c1a9e5591844ec4517a6a
1c7ec2f4011fcd3005cb80a445a15e0f9f9b56bf
/misc/signalCascade.py
bbe596e203fe858ae2c75f9cd9c1bee15d5dc1f7
[ "BSD-3-Clause" ]
permissive
noukernel/neurokernel
20b833e2f5c7c96e1026fa3c0b7200a76ea9e9e9
e9d4fd6d4c634727afb53af52a016a70e69013ab
refs/heads/master
2021-01-21T21:15:29.572360
2014-05-14T16:24:22
2014-05-14T16:24:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,168
py
signalCascade.py
import pycuda.autoinit import pycuda.driver as drv import numpy from pycuda.compiler import SourceModule import random mod = SourceModule(""" #define Kp 0.3 #define Kn 0.18 #define mp 2 #define mn 3 #define m 2 #define hM 40 #define hPLC 11.1 #define hD 37.8 #define hTpos 11.5 #define hTneg 10 #define ArateG...
41b3837dfe6eac489cb5a18bbcd57fd1ad8b9ebf
a1a43879a2da109d9fe8d9a75f4fda73f0d7166b
/api/tests_v2/while_loop.py
bba3b22d0ff9753ac686a20aa6c984a4cd727040
[]
no_license
PaddlePaddle/benchmark
a3ed62841598d079529c7440367385fc883835aa
f0e0a303e9af29abb2e86e8918c102b152a37883
refs/heads/master
2023-09-01T13:11:09.892877
2023-08-21T09:32:49
2023-08-21T09:32:49
173,032,424
78
352
null
2023-09-14T05:13:08
2019-02-28T03:14:16
Python
UTF-8
Python
false
false
3,709
py
while_loop.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
0f35079d9a6e880133740d3005e79fe81cf96b78
6bc5ad10947b60151051813e2d2653d591876863
/vision-hw2/tryit.py
c9c7167e40dd3de869b4d3f7fe23727f3990b6cb
[]
no_license
ashnaider/Computer-Vision-course
1ba6468085ba251837ca22301afdefe0f3387dcd
c0a74e6fe5d2fdd82a1be537560af15b700707bb
refs/heads/main
2023-06-29T19:49:40.642742
2021-07-22T16:28:27
2021-07-22T16:28:27
388,524,204
0
0
null
null
null
null
UTF-8
Python
false
false
2,227
py
tryit.py
from uwimg import * # im = load_image("data/dogsmall.jpg") # a = nn_resize(im, im.w*4, im.h*4) # save_image(a, "dog4x-nn") # b = nn_resize(im, 713, 467) # save_image(b, "dog_custom_size") # im = load_image("data/dogsmall.jpg") # a = bilinear_resize(im, im.w*4, im.h*4) # save_image(a, "dog4x-bl") # im = load_image("da...
3347b48d448221987dacacf858603d96e6f9f63a
373e1ef47138e739ed7a3f2a2df26d0ffadb7c1a
/create_input_files_f30k.py
7a7285ce8d02c75ac16c91a9efed8ef3f391f81e
[ "MIT" ]
permissive
sulabhkatiyar/show_tell
dd0a7b99409342a519179d5c1af5980ea546e494
995fa806ff7bb74d4fb12a40122d6556994f5cbd
refs/heads/main
2023-04-10T07:30:06.581018
2021-04-22T17:24:09
2021-04-22T17:24:09
340,899,124
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
create_input_files_f30k.py
from utils import create_input_files """ To create files that contain all images stored in h5py format and captions stored in json files. Minimum word frequencies to be used as cut-off for removing rare words to be specified here. """ if __name__ == '__main__': create_input_files(dataset='flickr30k', ...
cdbda449fa4f233026df1e70a037ed711cf3ecba
599f81f54041012a8e30845b376c9651f535f479
/face_rec/file_handler.py
b3378ba110e8f7fdaa347834fd75c34086a97e57
[]
no_license
gaborgulyas/recognEYEz
dd916754d8f87e3e2629a493cb6e9f33a4ce719d
3c02793e4cc070668e8f965c03f20a9a338a92f5
refs/heads/master
2020-04-30T22:19:39.221959
2019-05-14T19:07:38
2019-05-14T19:07:38
177,115,800
0
0
null
2019-03-22T09:57:23
2019-03-22T09:57:23
null
UTF-8
Python
false
false
2,880
py
file_handler.py
import os import sys from shutil import copyfile, rmtree, move import glob from imutils import paths class FileHandler: def __init__(self, stat="Images"): self.main_image_folder_path = os.path.dirname(sys.argv[0]) + "/" + stat def get_all_dnn_pic_name_for_person_name(self, name): ...
f864767e775aa6fd1d5a7501ea9aaa0b7a2a7498
57f1c75c92e83f13e8016cdf505c20771f35ed8c
/Task3.py
2f6d38dc8098832bb1731461c4f6caff5bd63cc1
[]
no_license
anilmndl/algo_p1
c6af81140e0b1763b5e4f4dde9593bf0d2e8c1ce
22f7f98615633a18ed9bd520497e53eeaf77c0fb
refs/heads/master
2020-12-20T11:02:34.388019
2020-01-24T17:40:52
2020-01-24T17:40:52
236,052,059
0
0
null
null
null
null
UTF-8
Python
false
false
3,483
py
Task3.py
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 3: (080) is the area code for fixe...
5631a251bec5120a39f78c1ca2602a4bf7cac9d6
723142b29dfcafb393b0eaefb8936dff7dd7e744
/utils/applications.py
71f7f0db9e38e68d5901cc777f637376d9cb1a91
[]
no_license
ehazlett/lightrail
e73aa1bab2b360b314969dd522348e5a0c96c6b9
063be3ec00880b4d748aab3f7b8342026deba500
refs/heads/master
2020-04-15T17:45:01.383724
2012-03-31T02:45:05
2012-03-31T02:45:05
2,777,610
0
0
null
null
null
null
UTF-8
Python
false
false
7,242
py
applications.py
import zipfile import tempfile import os import shutil import logging import subprocess from config import create_app import time import pwd from queue import task try: import simplejson as json except ImportError: import json from utils import generate_uwsgi_config, generate_nginx_config app = create_app() c...
32056421f41681a6390302aa150c6a27ca8c98d6
43fa2796c310937c038411407123bdae3de7789a
/extdirectrpc/views.py
42a238a7ce7724c3e6cff3fa5c743769bec657b3
[]
no_license
maxvyaznikov/extdirectrpc
60f2759ec05d352e9e4326b49d557ca950895694
52130a7c260cfc911c347ae70f53414e2f4b9663
refs/heads/master
2021-01-22T08:59:51.654466
2013-04-16T11:14:13
2013-04-16T11:14:13
9,466,059
1
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
views.py
# coding=utf-8 ''' Copyright 2012-2013 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
21004f6ff397e3132f6645217aab86c05be0ab95
06bb61c4d07a2be753b46977f2307f04aef6e2d3
/greedy/bag.py
677e2d892bf56e520fa5ba9ea8efe1085268df2a
[]
no_license
Pengjp/lc
2f8ab34e4a902caac320052037b53347a32d0006
1680b1c1d58ccdfb3d311716f61926b3e2b9755f
refs/heads/main
2023-06-01T09:19:36.935023
2021-07-11T19:59:35
2021-07-11T19:59:35
358,338,542
0
1
null
null
null
null
UTF-8
Python
false
false
1,255
py
bag.py
def process(w,v,index,already,bag): if already > bag: return -1 if index == len(w): return 0 p1 = process(w,v,index+1,already,bag) p2next = process(w,v,index+1,already+w[index],bag) p2 = -1 if p2next != -1: p2 = v[index] + p2next return max(p1,p2) w = [1,3,5] v = [1,...
95d864033d9df8651d64deb2dcaba14af2cd9f23
b1f70485bb2f64389f1fe58584d70ae6f63fe655
/hashing/hashing.py
45e1e35dec825ca18ae7e99999b2b3621bfee2af
[]
no_license
nesteves/ctds
69b2abed7e1cee52a2a9547744b9377036473158
f3aeecf11840f51e2cca7630f32ca141f8c6f02f
refs/heads/master
2021-03-12T19:38:46.372437
2015-03-21T19:10:35
2015-03-21T19:10:35
32,646,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
hashing.py
__author__ = 'nunoe' def int_from_str(s): """ Simple hashing function The indexes return grow bigger as the provided string grows :param s: str, given string :return: the hash value for s """ index = '' for c in s: index += str(ord(c)) return int(index) def hash_str(s, table_...
06a92a80f583c27d8e21597bdbb3eb2bfc131ba7
58c2e9bb8d4bc8b265f56d9d9f6e7ed4474f721b
/aix360/algorithms/dipvae/discriminators/base/base_discriminator.py
cf0efd66e57ed5e6b0e343c05f505e580945eecb
[ "Apache-2.0" ]
permissive
bhanuk31/AIX360
8879d5861aae499125fa2f3c0b44e9aae2ff2b87
4369baa018e3da1acfec7a15746c1eb275bf0159
refs/heads/master
2020-12-02T08:33:07.322062
2020-01-11T22:07:32
2020-01-11T22:07:32
230,942,377
0
0
null
2019-12-30T15:56:59
2019-12-30T15:56:58
null
UTF-8
Python
false
false
306
py
base_discriminator.py
import torch.nn as nn class BaseDiscriminator(nn.Module): def __init__(self, latent_input, protected_dim): super().__init__() self.latent_input = latent_input self.protected_dim = protected_dim def forward(self, *input): raise NotImplementedError
4c8389594cb23311a99cc1784d72f7d539491137
77da5ba1e98379080a918916014b3fa438769e28
/neuralnetwork/fourth_version_general_circ.py
34eeac1a92b4c38a2bb2bd4b16e4acf639ef7e7c
[]
no_license
liaocs2008/Algorithms
e92daad76b81b170008c1965e30f399c5976f704
efb56bc09fa30eda8826558c458b6ff1bc83ad12
refs/heads/master
2023-03-09T11:29:24.811554
2023-03-01T21:32:30
2023-03-01T21:32:30
12,486,879
2
1
null
2023-03-01T21:32:31
2013-08-30T13:21:45
Python
UTF-8
Python
false
false
17,811
py
fourth_version_general_circ.py
#!/usr/bin/env python from __future__ import print_function import sys import os import time os.environ["THEANO_FLAGS"] = "device=gpu2" import numpy as np import theano import theano.tensor as T from theano.tensor import fft import lasagne theano.config.exception_verbosity = 'high' theano.config.optimizer = 'Non...
f0fe4c5e8476f58b34682305c4a8d69babbd944d
cf7c5f5c2b45dd17d3dd74418560501aba2f35de
/webapp/app_liang.py
670cdeb07f1c6300673de0127c8add861c0a34d5
[]
no_license
yajun0601/KnowledgeGraph
4f94e99316d96b6bdb5419fbdccea80f1dd23680
8c0baadc9763c09f655301a8e109fca3b9da30ab
refs/heads/master
2020-05-09T20:02:07.224882
2019-04-15T01:51:14
2019-04-15T01:51:14
181,393,521
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
app_liang.py
# coding: utf-8 # @Time : 2019-04-09 15:58 # @Author : Libra # @Site : # @File : app_liang.py import os import sys from flask import Flask sys.path.append(".." + os.path.sep) from webapp.views.graph_view import graph app = Flask(__name__) app.register_blueprint(graph) if __name__ == '__main__': app....
e6c86d443655b0b85b5dd72a0e8ccb5bef0fceab
361e0ef132f8689dfa0890fdfcf7d5794c2b6915
/ds_and_algos/recursion/permutations.py
07465a3c9086182ccde7b66bd34725a2282b7541
[]
no_license
BMariscal/study-notebook
53751460d837d910b9cf286674e7739815588d9e
0ff851359cf91519c3ee2adfd704494ed08b8d6d
refs/heads/master
2020-08-25T05:53:45.061917
2020-08-12T20:15:08
2020-08-12T20:15:08
216,971,214
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
permutations.py
from collections import Counter def permuations(c, res, word): if len(res) == len(word): st = "".join(res) ans.append(st) return for key in c: if c[key] > 0: res.append(key) c[key] -= 1 permuations(c, res, word) res.pop() ...
3df6aab32a99311723e37faa1b75163c2177494e
bdf4feecb01828abebd4b8c1384b0c153dd7eced
/CrackingTheCodingInterview/SortingAndSearching/QuickSort.py
ab76a841dac6aaebf50c96485f3e1aa5da2ac585
[]
no_license
dxmahata/elements-of-programming-interviews-python-solutions
612e145a5ade0c507f8e729f8c32beaccf94b8bf
3d9e89861b8cdd7549dbada5fe29a5774b0a185b
refs/heads/master
2020-05-05T01:08:30.929854
2015-07-06T00:27:08
2015-07-06T00:27:08
36,894,236
8
11
null
null
null
null
UTF-8
Python
false
false
958
py
QuickSort.py
''' Created on Jun 25, 2015 @author: Debanjan Mahata ''' def partition(A, start, end): pivot_point = start pivot_value = A[pivot_point] left = start+1 right = end done = False while not done: while left <= right and A[left] <= pivot_value: left = left + ...
2c8f7bf17021f15993afe011568f250cb1b41d93
89e430e5e47642132b272ab454c0bd40344c40a7
/LeetcodePython/LeetCode/62.不同路径.py
d32e347ad2c34d799df6e6c116f7ce1a4b194038
[]
no_license
selonsy/leetcode
bebde23e0e13ba236adb3d905a701a34602f98df
b8f705a77cfcdb7d498d3422f9c4ee88fd61a3b3
refs/heads/master
2021-06-28T06:23:36.422766
2021-02-23T12:34:40
2021-02-23T12:34:40
220,758,861
0
0
null
null
null
null
UTF-8
Python
false
false
2,923
py
62.不同路径.py
''' 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 问总共有多少条不同的路径? 例如,上图是一个7 x 3 的网格。有多少可能的路径? 说明:m 和 n 的值均不超过 100。 示例 1: 输入: m = 3, n = 2 输出: 3 解释: 从左上角开始,总共有 3 条路径可以到达右下角。 1. 向右 -> 向右 -> 向下 2. 向右 -> 向下 -> 向右 3. 向下 -> 向右 -> 向右 示例 2: 输入: m = 7, n = 3 输出: 28 ''' import ti...
936d25d4b9bc277f205685966c0884f82e0850c7
4305cdc8f1d42ce244a47641f2dbca5d54d041d8
/1. variables/demo2.py
00e6aaa8207133796a46e3b05593e400bfad62af
[]
no_license
mehrabcz/Python-Exercise
d58d346540702605c491664df8f8a13f969ab0a0
0e37c04858087aea03ef91e50da07996d18f5099
refs/heads/master
2020-03-26T14:01:18.622267
2018-08-16T10:40:34
2018-08-16T10:40:34
144,967,793
1
0
null
2018-08-16T09:39:15
2018-08-16T09:39:15
null
UTF-8
Python
false
false
739
py
demo2.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # تعریف متغیر x = 12 y = 6 print('x = '+str(x)) print('y = '+str(y)) # در پایتون شما میتوانید متغیر هاتون رو جایگزین کنید که جلو تر بیشتر راجع بهش میبینید # برای جمع اعداد در پایتون از + استفاده میشود total = x + y print("x + y = "+str(total)) # برای تفریق اعداد از ...
c4f7eddfc6864546a05019448b55fbbb742b42e5
47caacdded347b9d222591b48f1be2a70eadb642
/video/PiVideoCameraCapture.py
6d084b71c21deff7a45df0356af160d0459c4532
[]
no_license
andriylysenko/RaspberyPiSecurityCamera
ac8f30d4908b8d1f352dfd5f82a3d23fd3eeb160
9f4ba5bf593092859cfbb4df3edec23da87303a4
refs/heads/master
2020-04-17T00:47:39.883724
2019-01-22T15:41:14
2019-01-22T15:41:14
166,062,637
0
1
null
null
null
null
UTF-8
Python
false
false
636
py
PiVideoCameraCapture.py
from picamera.array import PiRGBArray from picamera import PiCamera class PiVideoCameraCapture: __camera = None __rawCapture = None __format = None def __init__(self, resolution=(640, 480), frameset=32, format="bgr"): self.__camera = PiCamera() self.__camera.resolution = resolution ...
6689d237cf7d74abba2b16d989d99058769e55c6
13b14c9c75143bf2eda87cb4a41006a52dd6f02b
/AOJ/0361/0361.py
c5b204c82a846900273763b028c4c4ce4ede2640
[]
no_license
yutaka-watanobe/problem-solving
2c311ac856c79c20aef631938140118eb3bc3835
f0b92125494fbd3c8d203989ec9fef53f52ad4b4
refs/heads/master
2021-06-03T12:58:39.881107
2020-12-16T14:34:16
2020-12-16T14:34:16
94,963,754
0
1
null
null
null
null
UTF-8
Python
false
false
137
py
0361.py
def gcd(x, y): return gcd(y, x % y) if y > 0 else x x, y = map(int, input().split()) print((x + 1) + (y + 1) - (gcd(x, y) - 1) - 2)
f012aab768d7a3c1f7eb5134656d20986781fadf
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2752/60693/256113.py
cb7bc337ecb033535b9e04892566d35213a4ed33
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
954
py
256113.py
def distance(forest,sr,sc,tr,tc): row,column = len(forest),len(forest[0]) queue=[(sr,sc,0)] visited={(sr,sc)} while queue: r,c,d=queue.pop(0) if r == tr and c == tc: return d for nr,nc in ((r-1,c),(r+1,c),(r,c-1),(r,c+1)): if 0<=nr<row and 0<=nc<column and...
508ef5acf6e100f0627bf2c7e55b565ea7c17fdf
bf3cdb8bbf73874e8b6b402ffba267b66864fa7d
/Day-2/BMI_calculator.py
19750120be7b62607292e066218adc9d565d166e
[]
no_license
tharunnayak14/100-Days-of-Code-Python
84d446040fc07bb83b25f453c48d9c643de7266d
65c0d99f1c7dbbd6a4c676725a6fc7f26c16f1f1
refs/heads/main
2023-06-15T19:47:40.574045
2021-07-12T12:14:21
2021-07-12T12:14:21
375,900,555
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
BMI_calculator.py
weight = float(input('Enter your weight in kg: \n')) height = float(input('Enter your height in m: \n')) # BMI = Weight(kg)/Height**2 BMI = int(weight / height**2) print("Your BMI is:") print(BMI)
ce81f1b925a5f95426aa404e17713b612eedc7f8
832fe2888959fbee93be4e9185c0fee61cd85849
/PyFiles/FileParser/FieldTest_File.py
4479b3d638106f1e577c1e1eaeecbe69993e90e5
[]
no_license
pwalker91/CSUMB_CalSPEED_Parser
7c380100081599134719f8c7baea51d8ab52df48
7f65a8e3e6411e2f4d770da937f7f124958148ea
refs/heads/master
2021-01-25T09:53:33.930369
2015-05-08T16:21:18
2015-05-08T16:21:18
33,910,942
1
1
null
null
null
null
UTF-8
Python
false
false
21,979
py
FieldTest_File.py
""" ------------------------------------------------------------------------ FIELDTEST_FILE.PY AUTHOR(S): Peter Walker pwalker@csumb.edu PURPOSE- This object will hold a raw data file's header information (see list of variables) and then parses individual tests from the remaining text, storing them...
e17ff50de2ef495689cf0457393ff0faa08a9648
64042a3752501e2d2f9217a8b48ff992665f5b47
/NeuralNetworkBackPropagation.py
96bb707572d51c85a8f8dc7d89ad5a295937258d
[]
no_license
HamdiAmroun/Ecigarette
1579b43f4fd7209cb8964af5d26ea0c5f2595a8c
ed3f47c14d0101f833bb51cf3196f216c8e0be4d
refs/heads/master
2020-04-23T20:17:49.122337
2019-02-19T09:21:57
2019-02-19T09:21:57
171,435,004
1
0
null
null
null
null
UTF-8
Python
false
false
4,527
py
NeuralNetworkBackPropagation.py
import numpy as np import sklearn as sk import sklearn.datasets from sklearn.neural_network import __all__ # ---- Acticvation function tanh def tanh(x): return np.tanh(x) # ---- derivation de la fonction tanh def tanh_deriv(x): return 1.0 - np.tanh(x) ** 2 # ---- Acticvation function logistic def logist...
d238afc469f82c8b39048c00562502f2ea614cad
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/ARC/136_c.py
0e01d0c7ea4f1064a90132a3b8da86de76b6ba95
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
136_c.py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): import sys input = sys.stdin.readline from pprint import pprint #import pypyjit #pypyjit.set_param('max_unroll_recursion=-1') import math INF = 1 << 63 ...
e17534d149ec7c2e36202a222dfc2a70569edaa9
c40b162e1d3533002b3a262b8209d761a1bb10d4
/backup/ai/server.py
31372f64b24ef3722e159efd24e96c347e298b44
[]
no_license
rugern/metropolis
dec9814b8d0bf29b82b5df0a4ed7427d27a2ecf3
1c744c069b39a037c92297de1fdd393e49d5b06a
refs/heads/master
2022-09-29T10:56:39.097569
2017-06-06T06:12:51
2017-06-06T06:12:51
58,861,416
0
0
null
null
null
null
UTF-8
Python
false
false
5,157
py
server.py
import os from os.path import isfile, join import shutil import numpy from flask import Flask, jsonify, request from flask_cors import CORS from flask_socketio import SocketIO import keras from utility import readHdf, getFileList, getDirectoryList, createPaths from train import train app = Flask(__name__) CORS(app) s...
f0c7adb94de020922303cab92261780836f6524d
0f8303248ba3d12304b9104350d1b254c02cd7e4
/param_sweep.py
85f28a4441c3b270780528d3c660b0c09c5a44a1
[]
no_license
michaele77/trading_bot
f1bd88d2363c8ea00d3259fbf512313ebb01829e
73380ebc7fd7761e8cef584f31a616d213860949
refs/heads/master
2023-01-11T07:25:56.298628
2020-11-17T03:39:49
2020-11-17T03:39:49
290,422,246
0
0
null
null
null
null
UTF-8
Python
false
false
5,619
py
param_sweep.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ alpaca_marker_data --> param_sweep (do only once) | | | uses | | these | |classes| V V ...
409dbadd2f662dce4ab4d6244522f6cccb80f6f2
d7d0d3d9fbdf470cfdbaf2496297168d29d06078
/cassandra/delete_data.py
0d9ba3066f40f1f4f34ac0635b3539892ee65326
[]
no_license
tapanagupta/ooi-tools
6bf6f8f323b9e3b86f35153072e411b73ba058b4
61c35f47dc929c034923d29f3cf016604b07f16c
refs/heads/master
2021-01-12T20:48:38.302896
2016-01-15T19:53:39
2016-01-15T19:53:39
24,337,369
0
0
null
null
null
null
UTF-8
Python
false
false
3,282
py
delete_data.py
#!/usr/bin/env python """ Delete data for a specific reference designator from cassandra. Usage: delete_data.py <refdes> <contact_ip>... """ from cassandra.cluster import Cluster class Deleter(object): def __init__(self, contacts, refdes): self.contacts = contacts self.refdes = refdes ...
adaacfe5eba288b07ddd084f8f2fc1ce289502ed
ab73fdf7a1d0ed40b9b5e3ca386321f9aaefd148
/models/model.py
a34009febc894a8627921662df3d1d6c16773cdc
[]
no_license
gorthar/yazilim_muh
f69fcd2f690ba6868bb28182d2fdf0445b70f47b
b93b302d3f4c9a908ee88c0b440bed1b1651a081
refs/heads/main
2023-08-23T09:39:35.173819
2021-01-16T14:20:31
2021-01-16T14:20:31
329,438,804
0
0
null
null
null
null
UTF-8
Python
false
false
8,324
py
model.py
import random from flask_sqlalchemy import SQLAlchemy from datetime import datetime db = SQLAlchemy() class teacher(db.Model): __tablename__ = 'teacherTable' email = db.Column("email", db.String(100), primary_key=True) name = db.Column("name", db.String(100), nullable=False) password = db.Column("pas...
ad3432353f8c5d1f096dba3e3fd86b8d6e9fe537
9e64c2585d03680cc4dc73997d1e1bff375c223b
/src/calculate_metrics.py
70168862865319d04b925b03e28eeca54f3db68b
[]
no_license
apof/Undergrad-Thesis---Deep-Learning
d34723ebb54e9cd467851c4738c2e3e25e17ebc7
5e6f77cb1766673eea40111c7db68dda5ac83d15
refs/heads/master
2021-10-17T03:12:43.089251
2019-02-13T13:52:34
2019-02-13T13:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
calculate_metrics.py
import imageio import glob import numpy as np import math import os from skimage.measure import compare_ssim as ssim TEST_NUMBER = 10000 def key_func(x): print(os.path.split(".")[0]) return os.path.split(".")[0] def load_dataset(dir_name): list_of_images = [] list_image_parth = [] i=1 for image_path in sorted(...
c8384acf484a9ca956c2d978ed616e5e3795e6ab
dee81ab182a829b3737779d280cab91d30b7bcc4
/attachment/lime/LIME_analyse.py
1376c6605eab1ddd1bc9bbeea1c135fc2c0d14d5
[ "MIT" ]
permissive
wscjxky/AAD-framework
f749c89e1729242349344552066442b971dc8d98
e96e1d4ff7178702efdbd718c6f4fe137fe50f43
refs/heads/master
2021-10-26T00:12:13.922294
2021-10-16T04:54:33
2021-10-16T04:54:33
174,692,952
0
0
null
null
null
null
UTF-8
Python
false
false
6,323
py
LIME_analyse.py
import os import matplotlib.pyplot as plt import numpy as np def balance_rar_gt(rar, gt): new_rar = np.zeros((299, 299)) rar_count = rar[rar == 2].size gt_count = gt[gt == 1].size area = (np.where(gt == 1)) max_x = np.max(area[1]) min_x = np.min(area[1]) max_y = np.max(area[0]) min_y ...
fda5f65d07f9d9fdb16df1fabeb9af37b50ce713
424038630d846cd74b726cf7cfb37c13980405f6
/7.py
0baf6cb1577bd40560d2d24d81cc8289d42ab6ee
[]
no_license
grickoff/-GeekBrains_8HW
136e3128d1fd31bfbee6653ce8df0c3e3a082b34
750c787278fb78543a67de0266ed8c6c73608454
refs/heads/master
2023-04-01T12:35:32.804404
2021-04-06T20:23:46
2021-04-06T20:23:46
355,319,373
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
7.py
# Реализовать проект «Операции с комплексными числами». # Создайте класс «Комплексное число», реализуйте перегрузку методов сложения и умножения комплексных чисел. # Проверьте работу проекта, создав экземпляры класса (комплексные числа) # и выполнив сложение и умножение созданных экземпляров. Проверьте корректность...
f927d8d38c5ecf50d6efc50e4e13a6b3598ce750
1614b04a1eee49662319372d825888b621215dd2
/Santhoshi/Python_hackerrank/capitalize-15.py
a357519320f058bbe9112a5d313f420a668afd6a
[]
no_license
srivalli-project/BI_Team_Status
3e14dead73077fb4e4dbb25d816f7765e6ff14e0
c32128f08d8c11e23b13ae7715c9da274f639174
refs/heads/main
2023-03-09T02:25:30.470576
2021-02-22T15:09:05
2021-02-22T15:09:05
325,808,621
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
capitalize-15.py
#!/bin/python3 import math import os import random import re import sys # Complete the solve function below. def solve(s): #n = s.split(" ") n = s.split(" ") words = [w.capitalize() for w in n] ret=" ".join(words) return ret ''' for i in n: names = i.capitalize() editname=" ".join(names) ret...
c301853e7da5e048b12d1983d974d3a61b7f3d8f
a51a28348275a0f73054afaf5b2711300a8a355a
/huawei/HJ9.py
8b58b3fc67e54deb9c5f67ad2feaadd5ff97dc6d
[]
no_license
kiyoxi2020/leetcode
98f8ef8044742179a925a9d0ecfac295ae804c60
ad1eabfa27dda65b743d7d93524f1ec8f1e0ebfc
refs/heads/main
2023-07-08T21:19:55.577592
2021-08-23T05:33:42
2021-08-23T05:33:42
382,379,981
3
1
null
null
null
null
UTF-8
Python
false
false
637
py
HJ9.py
''' HJ9 提取不重复的整数 描述 输入一个int型整数,按照从右向左的阅读顺序,返回一个不含重复数字的新的整数。 保证输入的整数最后一位不是0。 输入描述: 输入一个int型整数 输出描述: 按照从右向左的阅读顺序,返回一个不含重复数字的新的整数 ''' while(1): try: data = raw_input() out = 0 d = set() for i in data[::-1]: if i not in d: d.add(i) ...
02e9ec2be86fed4e423c5224d6a5864dd48fa34d
60103c6afd02217277a8b925215ce7c836b131c2
/src/case.py
85f6562f5a9d3d3ee2b7afc88d4a9b0bf0a339d9
[]
no_license
keekdown/pyIBM
2ad983b6d2415934fdc6db29e9c25453bdd5ef81
6829f76d70e0833189108e95aece2f273e0c0b21
refs/heads/master
2021-01-18T08:33:25.139427
2015-03-24T07:48:53
2015-03-24T07:48:53
30,970,582
0
0
null
2015-02-18T15:10:56
2015-02-18T15:10:55
null
UTF-8
Python
false
false
597
py
case.py
# file: $pyIBM/src/case.py # author: Olivier Mesnard (mesnardo@gwu.edu) # BarbaGroup (lorenabarba.com) import os class Case: """Sets up information about the case.""" def __init__(self, path): """Gets the path and name of the case. Arguments --------- path -- location of the case folder (root is the p...
af63114e22484db29c847c5574a34f14be44068e
c061f40440f7a3ad952892b0655d8cc1c9923c89
/SubHistory/views.py
d9467fbd4ba88e52d5898d454e02c7c0e90c4c3d
[]
no_license
tkingkehl/OPS
1548ee37421572ed8ca98fbdbdeec1fde73543c6
d82531f3e5f4645ade5a92cfd8f78ac22036c2a0
refs/heads/master
2023-08-31T09:15:31.432840
2023-08-30T03:49:03
2023-08-30T03:49:03
162,036,463
0
0
null
null
null
null
UTF-8
Python
false
false
4,910
py
views.py
from django.shortcuts import render, HttpResponse import os from pathlib import Path from django.conf import settings from django.core.files.storage import FileSystemStorage from django.contrib.auth.models import User from users.models import CustomUser from django.contrib.auth import get_user_model from TLS.models im...
ceb337ac52dc8c2b61be3f3dde3c1f96b1315cd4
b8906d008b169ff7406304b8d09a85428fb47984
/Python_Language/0002_MinMax.py
11cfb639ecb859452d04349b9467dacc4411c534
[]
no_license
Watanai1245/programming.in.th
dc564187bf106327ceaa3e4b3382c0764a7ac7dc
4593fc94eccc30d35b3f5a628e6ca6b6c902f5b6
refs/heads/main
2023-08-10T23:32:05.938750
2021-09-22T03:10:15
2021-09-22T03:10:15
407,619,718
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
0002_MinMax.py
A = int(input()) Lock = [] for i in range(A): C = int(input()) Lock.append(C) print(min(Lock)) print(max(Lock))
55d3b5095c2581fb0d106d4d5667c6c67baa0cbd
3e4163267aa40d68fc74906a81575c5459d4b5dd
/criss-cross-multi-step-word-guessing-game.py
ea1c6009869c7dfc87f2d25202a5050e6910d7c2
[]
no_license
novouss/criss-cross-multi-step-word-guessing-game
c7b293530c65a19adeaf8c6058214ef8de15d6de
b84119139d3e998b6393292f6189c1764ed07ff6
refs/heads/main
2023-01-06T00:55:44.293188
2020-11-08T15:00:28
2020-11-08T15:00:28
311,077,488
0
0
null
null
null
null
UTF-8
Python
false
false
4,184
py
criss-cross-multi-step-word-guessing-game.py
import os import random word = "" # A string representing the word being guessed by the player. word_length = 0 # An integer representing the length of the word being guessed by the player. guess_no = 1 # An integer representing how many guesses the player has made. board = [] scores = [] # Records score. # The gu...
eaf2df54b106e397463124dfe8687dcb8b737ea2
81364ffa7910319615df25125f74bfa69ee68054
/test.py
54988b182d3a7d09d35b346247b6a486c849295c
[]
no_license
jkim-hyla/playground
f44ed7f8fb85ccd9a915d36bd96168b0bc7a72ef
e9c2d2331d1cb5a3dd010c4a96946da589601af6
refs/heads/master
2020-03-25T21:26:27.593862
2018-08-10T13:12:05
2018-08-10T13:12:05
144,175,425
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
test.py
import os import numpy as np def main(): print('hello')
a785accc77b4256a79bb4bfa38ebfe48e24f0be9
ef3f33758707d15ca125aa112ceb41c091e96450
/sample_machine_learning.py
645e8900638c3ac705f585082c84973bfae11810
[]
no_license
AlexanderGracetantiono/TF_ML_CAT_DOG
6d6d55a631e9deb229e97457e1f11261a20efa3f
9411a29c883be20f51f6ea48c993d4169849a078
refs/heads/master
2023-04-25T00:07:08.958828
2021-05-13T12:09:00
2021-05-13T12:09:00
367,033,462
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
sample_machine_learning.py
# -*- coding: utf-8 -*- """ Created on Thu May 13 15:56:11 2021 @author: alexa """ print('hellow world')
3163cbd2f0c274ca9947232fb9e2e4fe24e957ec
066ef79f1759a40c436d63325cb2b815a645dc3b
/supertagging/admin.py
6b7861b6061c9fdccc85961a189f4f4bd8a1e889
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
uclastudentmedia/django-supertagging
5145bd3d3e476d026b6b7e8f9b6328e8d808d9d5
7d49fdbb79c7c69ec17fcd038b1f906864b5e67f
refs/heads/master
2020-06-01T09:52:53.401330
2009-07-01T23:24:38
2009-07-01T23:24:38
656,040
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
admin.py
from django.contrib import admin from supertagging.models import SuperTag, SuperTaggedItem, SuperTagRelation, SuperTaggedRelationItem from django.contrib.contenttypes.models import ContentType class SuperTagAdmin(admin.ModelAdmin): list_display = ('name', 'slug', 'stype', 'properties' ) ordering = ('name', ) ...
7d2a9c7016a70962b99259e1f43d58a90a0ce817
c9d626ac3cb5c27e9e5281f47825e082d61de7fa
/current_bot/warrior_dispatcher.py
64dcffddcb6800cbdc86057ee09c9f666ad36a72
[]
no_license
lorenzoriano/AI-Challenge
32d05f1b6acd98dd840cc7e0ab2700c9dfcbb802
78bce2d750f78d1fedb9963c49a95e6ae63c2009
refs/heads/master
2016-08-02T21:14:48.006647
2011-12-19T20:15:14
2011-12-19T20:15:14
3,014,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,218
py
warrior_dispatcher.py
import warrior import logging import pezz_logging import math logger = logging.getLogger("pezzant.warrior_dispatcher") class WarriorDispatcher(object): """ Creates Warriors. """ def __init__(self, world, bot): self.world = world self.bot = bot self.ants = [] #...
c7b2ba7dcf9c0f05d9cd9a17bf3b1302e9971067
e55c6f8b8923b345bea05e7457da1c3e387da9e1
/GameOfLife.py
a453c343c9e4a2d8b54f5e84d4fdb7aabbfaad97
[]
no_license
AlejandroGY/GameOfLife
baea9b211b87b25d8bd27f6c3144eec36656ca38
ef5e7ecf60866861e986bc95473d85f4cba2d821
refs/heads/master
2020-07-10T11:07:35.559632
2019-08-25T16:35:51
2019-08-25T16:35:51
204,249,265
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
GameOfLife.py
# /usr/env/bin python # encoding:utf-8 import random import itertools import os, time UNIX = False clear = lambda: os.system('clear') if UNIX else os.system('cls') class GameOfLife(object): def __init__(self, filas, columnas): self.filas = filas self.columnas = columnas fila_vida = lambda: [ran...
6f99bc8d9fa93187f913fdfc2a127de2ff256d9a
718007221d2b683280d7e8d7eef9fe1b8c1d79b0
/API_DOC/swagger_server/models/campaign.py
84efdb89589acab47619ed472015f72adba29ab5
[]
no_license
FedericoCalonge/TweetMaster
e4a72269ceab1f22377e3b428263d8fb4d189664
ef20f1f83e8953fe447f92a32d9a5f5c9e720d41
refs/heads/master
2020-06-11T16:58:39.417893
2019-07-08T17:48:14
2019-07-08T17:48:14
194,030,676
1
0
null
null
null
null
UTF-8
Python
false
false
4,680
py
campaign.py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class Campaign(Model): """NOTE: This class is auto generated by the swagger co...
bba281bd632455971beec7bd33fc8cd4a5ab140b
00635918b3297c8016501370b2bbb7bbbdbc8e41
/aioupnp/constants.py
333023bcb5b15a4e70b29db61de542f890dc656b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pataquets/aioupnp
667fa5e944a7a8ec11ffdf731a4d911222da095c
0bfaee35aecf0a45fa6683ea3fc6a64f47107dfc
refs/heads/master
2021-07-11T16:07:39.319851
2021-06-17T17:04:20
2021-06-17T17:04:20
247,324,985
0
0
MIT
2020-03-14T17:46:07
2020-03-14T17:46:07
null
UTF-8
Python
false
false
961
py
constants.py
POST = "POST" ROOT = "root" SPEC_VERSION = "specVersion" XML_VERSION = "<?xml version=\"1.0\"?>" XML_VERSION_PREFIX = "<?xml version=\"1.0\"" FAULT = "{http://schemas.xmlsoap.org/soap/envelope/}Fault" ENVELOPE = "{http://schemas.xmlsoap.org/soap/envelope/}Envelope" BODY = "{http://schemas.xmlsoap.org/soap/envelope/}Bod...
4a978791ced0b5ed796033a1d1933b322dcce812
a9a71eb4c9424274770b0d187fc0bf800149b298
/Python/classwork.py
3125b33553515d1209f929f06825780208668d22
[]
no_license
mayank-17/Practice-Programs
eac361f66b90ae654c7fb3de107eca5f61686573
d549195056259e5885c16805bbb9385d727b8dba
refs/heads/master
2020-04-03T03:31:24.500312
2018-12-08T19:51:25
2018-12-08T19:51:25
154,988,133
0
0
null
null
null
null
UTF-8
Python
false
false
25,773
py
classwork.py
# radius = eval(input("Enter radius:")) # area = (radius ** 2) * 3.14159 # print("The area for the circle of radius", radius, "is", area) # print(int(5.9999999)) # a = input("Enter the value:") # def evenOrOdd(num): # if num % 2 == 0: # return "Even" # else: # return "Odd" # num ...
344555053f0bedbef83289864d7987a57d328fab
ef13599285ef505e51b5d0db9575ac7d6a4047b8
/genesis/length_scales/variability.py
409d8a045872e6322302d215ba88ca43b5ab5cc8
[ "BSD-3-Clause" ]
permissive
leifdenby/genesis
4298d20d4a75e85d10e690a7b30cb61f0c427280
be73a78100c940db5f8ac39d0e48a644c091664c
refs/heads/master
2023-04-14T14:04:11.891361
2022-08-23T08:09:54
2022-08-23T08:09:54
120,655,892
4
1
BSD-3-Clause
2022-08-23T08:09:55
2018-02-07T18:43:03
Python
UTF-8
Python
false
false
8,856
py
variability.py
""" Methods for quantifying coherent length-scales in the convection boundary-layer """ import numpy as np from scipy import ndimage from tqdm import tqdm from genesis import utils model_name = "uclales" case_name = "rico" def _patch_average_splitting(d, s, shuffle_mask=False): """ Split data d into 2**s pa...
02963d5d84bd1d53954378c54556f2b6a729022c
8aff692ba932a52d550aa9302e5b8062778e8faf
/addition_interiors_project/urls.py
0c120c8d671fbd8d0f69ae00b3ad7bf75289273c
[]
no_license
rdthree/addition_interiors_project
3d1c4164816e26a284648ee26e585c7d31398d0a
2485b71ac9a8894fa59ac2b8b71db3c1d7d3d167
refs/heads/master
2022-02-09T19:35:51.499562
2014-03-30T03:31:33
2014-03-30T03:31:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from django.views.generic.base import TemplateView from django.contrib.staticfiles.urls import staticfiles_urlpatterns #DJANGO-FILEBROWSER from filebrowser....
1c394081e919dc3abb7013947405df72b3bb3edc
c7e765a9bed33d3bfb21774e3995bf4a09e04add
/adminmgr/media/code/python/red2/BD_018_121_123_4173.py
ae819245f6294fb730298b91581ee1d2850ff2d5
[ "Apache-2.0" ]
permissive
IamMayankThakur/test-bigdata
13dd2ac7fb76c9baed6c3a0aa943057a22e2d237
7f507918c7bec31c92eedcd94491a83486623049
refs/heads/master
2022-05-03T00:59:44.127494
2022-02-10T19:50:16
2022-02-10T19:50:16
201,585,028
10
4
Apache-2.0
2022-04-22T23:39:45
2019-08-10T05:34:09
Python
UTF-8
Python
false
false
1,499
py
BD_018_121_123_4173.py
#!/usr/bin/python3 from operator import itemgetter import sys import csv current_count_delivery = 0 current_count_runs = 0 current_key_batsman = "" current_key_bowler = "" Dict = {} for line in sys.stdin: line = line.strip() line_val = line.split("\t") bowler,batsman,delivery,runs = line_val[0],line_val[1],line_val...
8e5ee53e7c2fb6cc51ba9836a5a9ec413cc1a808
5761eca23af5ad071a9b15e2052958f2c9de60c0
/generated-stubs/allauth/account/models.pyi
852e85dd7e1f698bede27b4d7a7210156dea4f06
[]
no_license
d-kimuson/drf-iframe-token-example
3ed68aa4463531f0bc416fa66d22ee2aaf72b199
dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b
refs/heads/master
2023-03-16T13:52:45.596818
2021-03-09T22:09:49
2021-03-09T22:09:49
346,156,450
0
0
null
null
null
null
UTF-8
Python
false
false
1,621
pyi
models.pyi
from . import app_settings as app_settings, signals as signals from .adapter import get_adapter as get_adapter from .managers import EmailAddressManager as EmailAddressManager, EmailConfirmationManager as EmailConfirmationManager from .utils import user_email as user_email from django.db import models from typing impor...
8919b0388eca0dd2bd754dfa7735a3f059de089a
8f81418c90c36f27973f7cd552952e5d436629e8
/application/onlinecourse/course_recommendations.py
a11cf0d9b886ca6dd91d406a9ad486a204eafcac
[ "MIT" ]
permissive
eugom/analytics_backend
4d3880bba217c6d83d27ece88fc6ac5d6ff22a56
b2b929afdf5806a9f0d8009fbdb0bb0957f17b67
refs/heads/master
2023-08-29T05:28:53.410314
2021-10-11T09:29:09
2021-10-11T09:29:09
371,522,608
0
0
MIT
2021-05-27T22:58:14
2021-05-27T22:51:42
null
UTF-8
Python
false
false
6,237
py
course_recommendations.py
from .models import OnlineCourse from workprogramsapp.models import WorkProgram, Topic, DisciplineSection import pandas as pd import numpy as np import re import nltk; nltk.download('stopwords') from nltk.corpus import stopwords from pymorphy2 import MorphAnalyzer from sklearn.feature_extraction.text import TfidfVector...
59b77d9e3afd34bcccb47f5b3b897886e3be8d88
dad812290c67376b09df7e58795da93ce156682e
/MarioPleaseMove/src/NEAT/__init__.py
82c0ca98cd526ee3a01103351ca65a351cd01774
[]
no_license
AlreadyAsleep/Super-Mario-64-AI
2c5f9a9a88139251de350c71549c667fe62f1194
b76ade558b55f22a65ef8c1cc355a2866686426d
refs/heads/master
2020-03-10T02:42:42.836634
2018-04-12T16:23:52
2018-04-12T16:23:52
129,143,487
0
0
null
2018-04-11T19:25:48
2018-04-11T19:25:48
null
UTF-8
Python
false
false
99
py
__init__.py
from . import GeneticOperation, NodeController, InputNode, OutputNode, HiddenNode, Node, Connection
9e7dd600a16bd44548e304d4145302d0b58fb3a6
e0b627ff8a777f187b67460f990733383403c556
/main.py
29e0cd42fff71a5be6245770492cd52bf455f62f
[]
no_license
Mark-Lok/skynet
e80dc8b3ea5199332703dfa1d284fc34a9c5f334
cd86e788885930c5802f3b819ccebc28ccf0404f
refs/heads/master
2021-01-09T20:04:55.145897
2016-08-07T01:56:27
2016-08-07T01:56:27
64,421,001
0
0
null
null
null
null
UTF-8
Python
false
false
3,727
py
main.py
# import the necessary packages from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 import RPi.GPIO as gp import os import serial # camera 0(A) and 1(C) are using # selection Pin | Enable 1 | Enable 2 | # for Selecting Cam 0 # 0 | 0 | 1 | # for Selecting...
d4b598b28d0fd463a3bf2c240ab4eb2f93ae2974
036a41c913b3a4e7ae265e22a672dd89302d3200
/0201-0300/0234/0234_Python_2.py
64bf87b1c4ed909b3d8890709f413d0e3fd67c57
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,376
py
0234_Python_2.py
from toolkit import ListNode class Solution: def isPalindrome(self, head: ListNode) -> bool: if head is None or head.next is None: return True # 定位到链表中点(奇数个为绝对中点,偶数个为中线右侧) slow = head fast = head while fast and fast.next: slow = slow.next ...
73ad299d090b5ccf00456ab294749e33549f6c93
bbef967a7a8eef8f6b707fd65ddfb67f0a394976
/challenges/multi_bracket_validation/multi_bracket_validation/multi_bracket_validation/multi_bracket_validation.py
31e5596a36e5c8c203e6217f2dd5547ea5a0879b
[ "MIT" ]
permissive
nsinner1/data-structures-and-algorithms-python
e2dfdbaed5dbcf7285cd6d192bcd2e721ecc46f5
6c15d3805ba052d6b884c8ddae1c926d81b97118
refs/heads/master
2022-12-20T12:17:53.497181
2020-10-03T18:52:27
2020-10-03T18:52:27
268,688,818
0
0
MIT
2020-10-03T18:52:28
2020-06-02T03:09:10
Python
UTF-8
Python
false
false
943
py
multi_bracket_validation.py
def multi_bracket_validation(input): stack = [] for bracket in input: if bracket in ["(", "{", "["]: stack.append(bracket) else: if not stack: return False current_bracket = stack.pop() if current_bracket == '(': ...
90de2ffc94d833fa9d2a14ca54a1a538dfc07943
9957e9ad7240534227ed0f05bc0a2b78c169041b
/Ejercicios_basicos/ej2.py
c33c80329adbe46bf5c972829c1e1eebdb12186b
[]
no_license
Angel-cuba/Python_Udemy-Ejercicios-
ef4ef3dad5f7778103e976a34e7a680e2a87345d
633d8c30e16cda0f077264ff7b24930106ff22cb
refs/heads/main
2023-03-16T01:37:43.544824
2021-03-11T15:31:54
2021-03-11T15:31:54
341,126,336
0
0
null
2021-02-24T17:45:36
2021-02-22T08:16:40
Python
UTF-8
Python
false
false
799
py
ej2.py
edad = int(input("Ingresa edad: ")) if edad >= 18: print("Eres mayor de edad") else: print("Eres menor de edad") print("**********__10__**************") rep = 0 limit = int(input("Dame numero de limite: ")) texto= input("Dame un texto: ") while(limit > rep): print(rep, "---", texto) ...
f194d696bcf5244f0172778f90b673f4d9575505
79dabb0010cd3502dbf6b565c157910fb3e52771
/Lab 4/datetime.py
27d102a16a6355945e936e3377309929e654d95b
[]
no_license
otisscott/1114-Stuff
5cf06fd574706ca6b6656a43e4ae69062c015a13
913eb14b020b7a708c441f4e28c61f969225a3f9
refs/heads/master
2020-03-30T03:14:47.499473
2018-12-14T00:50:30
2018-12-14T00:50:30
150,677,575
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
datetime.py
# Otis Scott # CS - UY 1114 # 27 Sept 2018 # Lab 5 import datetime curr_year = 2018 name = input("Please enter the student's name: ") grad_year = int(input("Please enter the year that the students will graduate: ")) levels = ["Graduated", "Senior", "Junior", "Sophomore", "Freshman"] level = levels[grad_year - curr_y...
f82ab0ccf8640d858649891f423fed3f4995cbbf
eaabb5e166a358ac19a5aae6d0c001f18c7e05e8
/Extra-Things/DSA-Rev/BST/1st.py
27743b70fa1eab4fc501d8136cf94709b1f68f22
[]
no_license
Srinivas-Rao-au27/Accomplish_classes-
749d4cf6e0d9d572f92d11a5f8b704dd7a120d45
9e35fa9541cdff2203e71962cb8ccf36e2963fbc
refs/heads/master
2023-07-14T22:19:18.532502
2021-08-18T07:45:29
2021-08-18T07:45:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
1st.py
# class Node: # def __init__(self, data): # self.data = data # self.left = None # self.right = None def findTarget(tree, target): if tree == None: return False if tree.val == target: return True if tree.val < target: return findTarget(tree.right, ta...
720a6d0c39099f9ee2bf2277d2f20af24ea431b1
a1989586378dd3eba1572bfdc36a688f2fb46333
/optimize_performance/products/migrations/0002_auto_20191130_1619.py
8f5bffc375ca7ea7932db03eba84b2b029330685
[]
no_license
tadak1/optimize_performance
c84af1c66eae2cec38124d3af5910340f1d466fe
6abafa74e6d4b3aeeb463efdc897c443919c7e4d
refs/heads/master
2022-03-15T09:51:00.819026
2019-12-01T13:20:36
2019-12-01T13:20:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
0002_auto_20191130_1619.py
# Generated by Django 2.2.7 on 2019-11-30 16:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='product', ...
c4c76178bfe6c5696594274950e48b251b110397
e47fd6d7d5465b9a4f7b643b082625bafd722910
/api.py
a74825b8583b385cbbdebb87c6e260ddd639425f
[]
no_license
BlackMalrangcow/BlackMalrangcow-backend
bc6281dd99ddde1194395b5174a912f9531c749f
601f416233700c22721a5987bcf3093d690c19c9
refs/heads/master
2020-04-01T03:49:48.870866
2018-10-13T23:57:06
2018-10-13T23:57:06
152,838,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
api.py
import os import re import psycopg2 import model from flask import Flask, request, jsonify from flask_cors import CORS app = Flask(__name__) CORS(app) DATABASE_URL = os.environ['DATABASE_URL'] conn = psycopg2.connect(DATABASE_URL, sslmode='require') cursor = conn.cursor() db = model.Database(cursor) @app.route('/ne...
3661ab336560bde90054b5fd6614f1fc696aaeeb
db7e551afc838c16abf3dd872b5cadf67cef6ef3
/ExtractFeature/GetIosGeodesic.py
2a14793dcdccb06d5a39c1299684d766a5a82176
[]
no_license
shalppppp/FR
3171db4ef1ed98025de953a417a0ac8013a090f8
ac62d04dc2280beaea56978f522daa908cbd83f7
refs/heads/master
2023-01-09T12:34:50.188073
2020-11-10T08:18:51
2020-11-10T08:18:51
299,163,590
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
GetIosGeodesic.py
import os import time import scipy.io as sio from tools.PCS import * import h5py import numpy as np import pandas as pd from scipy.interpolate import griddata, interp1d from tqdm import tqdm from ExtractFeature.RayLikeCurveMakePictureSet import * from tools.utils import * def ReadBntfile(filename): fp = open(filen...
f50f512788504b2a89e5e00dca65ac7a3a748718
7885efce7642ae39c8ee3215d0fb6617752f6c57
/Unix Path Resolution.py
4baa16e05b7d3f20520c87dcd20d7566d9798a13
[]
no_license
dhhruv/Binary-Search-Solutions
b942c7ec66627058daab23b5dd82202c4ae4ebc1
377a8d5d27828274a4c128b3c50f86111ca7d253
refs/heads/master
2023-01-21T09:14:07.623583
2020-11-26T19:40:18
2020-11-26T19:40:18
315,567,374
18
3
null
null
null
null
UTF-8
Python
false
false
386
py
Unix Path Resolution.py
""" Intuition If ".." then pop() values from the list else append values till the end of traversal. """ class Solution: def solve(self, path): ls = [] for i in path: if i == "..": if len(ls) != 0: ls.pop() elif i == ".": pas...
b08a6ab604a4469f0b996ad18abd0e72b6dfeec2
1eafa3758cc801cfc14e06fa5034978b38493401
/chp39.py
6ba58f92f01fa5eed1bddda36913e55b28a15012
[]
no_license
Ziadpydev/PythonTutorials
44772c4a6c0a99687944a72cb3bcae2e835171fa
7191b5d43ee0a40666ff04e49ab1bc40bc6b4b3b
refs/heads/master
2020-04-16T14:24:25.593295
2019-01-14T13:47:56
2019-01-14T13:47:56
165,665,684
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
chp39.py
import calc a=9 b=7 print(calc.add(a,b))
2483e0a17205c8f75cd59a06fbddb25338cc8704
6f21115d9cc72aa9afb95aec554501f835d16899
/code/incremental_searches.py
7c1e905ec7ac959f92dc7816ad19b70bf2093a62
[]
no_license
rocampocastro604/panalysis
049be3105e267d9cef6cb489ff5060ecbe5da5b6
d53901d023dbe3f554367952a9f46082c0382b68
refs/heads/master
2020-04-02T07:43:10.828446
2018-11-20T05:04:56
2018-11-20T05:04:56
154,211,374
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
incremental_searches.py
#NOT WORKING def same_sign(a, b): return a*b > 0 def incremental_searches(f, value, delta): xnew = value + delta #assert not same_sign(f(value), f(xnew)) for i in range(54): if same_sign: value = xnew xnew = value + delta else: print("["+ value , xn...
cf1f4b73c42a8889d86ca2254e4172c38846e524
7650cc823ca17dc26fca057046ae8c116ce25cba
/GUI_App/compare.py
b4d2e832fa0e3de316c85b1a6cbdd51669d6609c
[]
no_license
Budzon/CTMM17
8904ce69db4c310aa3fa0ed2b911bab7d3270a56
28fe9a768e27487c51283c9935dd03d9fb770089
refs/heads/master
2021-09-01T17:08:49.871538
2017-12-28T02:16:18
2017-12-28T02:16:18
104,794,353
0
1
null
null
null
null
UTF-8
Python
false
false
3,005
py
compare.py
# 7. Провести расчет для K равного 10 50 100 200 500 1000. # 8. На одном графике построить графики времени расчета для различных # методов в зависимости от числа точек. Подписи по оси X - число точек. # Подписи по оси Y - время. # На втором графике построить ускорение во времени работы программы по # сравнению с самым ...
5f3fe43c857cd5f1733a99c51b146ee5e73e2f45
feaac00dc8301807a12124dfcd91ae0b3df16744
/trainer/trainer_types/trainer_2dt/trainer_triangle2d.py
14ce83bd5524d133732de8cadd3be9e3c6a68619
[ "Apache-2.0" ]
permissive
NEISSproject/tf_neiss
7a79e63f9e4992dcb2605175ae6162af08093d62
50df6153d0d1f5d471dd9ec0bc52617805001f79
refs/heads/master
2020-11-23T22:23:07.326383
2020-04-20T06:58:23
2020-04-20T06:58:23
227,844,262
0
1
Apache-2.0
2019-12-16T16:04:44
2019-12-13T13:17:28
Python
UTF-8
Python
false
false
1,685
py
trainer_triangle2d.py
import os import logging from trainer.trainer_base import TrainerBase import model_fn.model_fn_2d.model_fn_2dtriangle as models import util.flags as flags from input_fn.input_fn_2d.input_fn_generator_triangle2d import InputFn2DT # Model parameter # =============== flags.define_string('model_type', 'ModelTriangle', 'Mo...
f1c11f4b5cc029462eb5b6edd7271f7f9d1eaf17
3a689f2468da4fa7759474a7de2a7dcbfebdec93
/python/Week1/Q2.Product_of_Array_Except_Self.py
f45e7298feb2a2c21762fee8d090092dffce317e
[]
no_license
brillianthhj/Algorithm_TIL
f2c674f08ef114000b3b2ba463ae2c7c9abe56ad
371cb511096094628ccb25ad158581ef7e8b80b7
refs/heads/master
2023-08-06T09:39:29.264828
2023-07-27T04:39:40
2023-07-27T05:00:44
216,022,221
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
Q2.Product_of_Array_Except_Self.py
class Solution: ''' O(N) / O(N) ''' def productExceptSelf(self, nums): length = len(nums) L = [1] * length R = [1] * length ans = [0] * length for i in range(1, length): L[i] = L[i-1] * nums[i-1] for i in range(length-1, 0, -1): ...
0ac2740e883631c26c5809a242e7cb2f1e9452f0
1a85aadba4334dfc07ceaa0085abbe178d7b10df
/app/models.py
83440cacee614386fedd6d4dee7a9312b2896509
[]
no_license
DDecoene/ExaBGPmon
6754d28b169b93f22d11f5c99e2542812eb9f509
437c28461e7f5c9526c12266fcb3f825f6d108c9
refs/heads/master
2021-01-16T22:36:56.157783
2016-06-09T14:55:25
2016-06-09T14:55:25
60,530,148
2
0
null
2016-06-06T13:30:21
2016-06-06T13:30:21
null
UTF-8
Python
false
false
771
py
models.py
from pymongo import MongoClient client = MongoClient() db = client.exabgp_db bgp_updates = db.bgp_updates adv_routes = db.adv_routes bgp_peers = db.bgp_peers bgp_config = db.bgp_config peer = { # db.bgp_peers 'ip': '10.10.1.1', 'asn': 65000, 'state': 'up', 'current_prefixes': ['1.1.1.1/32', '200.200....
56c68b7945577c0b74ca076f2d3fb3c0b55c0360
7c99470676f285a9583e79842d37d74860ecb5e3
/lstm_client/bin/my_process/manager_uid.py
c7019584eeb6988b95e620bbe8d08968a21075e7
[]
no_license
weigebushiyao/python-project
c0c06f79265753ca68d65cc555b4ec996e02a3fd
d8affe283922c7d90590c004d539660645ab448d
refs/heads/master
2022-04-24T17:36:33.560050
2020-04-26T07:59:47
2020-04-26T07:59:47
258,935,949
0
0
null
null
null
null
UTF-8
Python
false
false
6,662
py
manager_uid.py
#!/usr/bin/python # -*- coding: utf-8 -*- import time import my_process.global_obj as global_obj def thread_manager_uid_link(): # 获取需要学习用户信息(执行一次) learning_data = global_obj.get_uid_from_db(global_obj.uid_status.learning) if not learning_data == None: for item in learning_data: u_id...
05ee493072ede1febe5a452681233e5a9053b706
07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8
/lib/python3.6/site-packages/zmq/backend/cffi/utils.py
fe79f49473e3ba17eb1c99b15b3086827d812d78
[]
no_license
cronos91/ML-exercise
39c5cd7f94bb90c57450f9a85d40c2f014900ea4
3b7afeeb6a7c87384049a9b87cac1fe4c294e415
refs/heads/master
2021-05-09T22:02:55.131977
2017-12-14T13:50:44
2017-12-14T13:50:44
118,736,043
0
0
null
2018-01-24T08:30:23
2018-01-24T08:30:22
null
UTF-8
Python
false
false
129
py
utils.py
version https://git-lfs.github.com/spec/v1 oid sha256:8e82f1cf4edd7fc16caf450e42cc7db8ce927eedce483136022c3823056b805b size 1487
83ba2cd5855c1dfa305d650813c0d7c223fc098a
7460e871eb0ce9062e56048d330c9a7693e67941
/Plotting/Throughput/parser_speed.py
b158fa8c7bfc5fda47d1158035babfcb111c274a
[]
no_license
ayourtch/VPP-ACL
75ad24d2a42c6d56121404655bfa14381cdefca7
e3b594a3113b0aea57cc4123cb6904803dd1112c
refs/heads/master
2020-06-04T00:27:51.493674
2019-02-26T23:00:11
2019-02-26T23:00:11
191,795,013
0
0
null
2019-06-13T16:09:21
2019-06-13T16:09:20
null
UTF-8
Python
false
false
1,143
py
parser_speed.py
import sys import numbers try: print("read file: \t" + str(sys.argv[1])) print("write file: \t" + str(sys.argv[2])) filenamer = str(sys.argv[1]) filenamew = str(sys.argv[2]) fr = open(filenamer, 'r') fw = open(filenamew, 'w') except IndexError: print("Error: no Filename") sys.exit(2) val_line={} inside=Fals...
698a3f4bb713618d2c9b06de6335e9a4d6632964
84420acc4b8fd295e242a6755813584d65dfb424
/django-layout/src/python/ovid/tests/tests.py
c414d8c1d89137b384edcaa50415f721289ebd02
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
rentalita/django-layout
2605ca863b716dbd1aeb2865188b2c5c410799a1
a05941c934e62cf9ba0d178dc9f8ccf11fafd19a
refs/heads/master
2016-09-16T02:24:58.982043
2012-05-22T22:59:14
2012-05-22T22:59:14
2,330,766
1
0
null
null
null
null
UTF-8
Python
false
false
172
py
tests.py
# -*- coding: utf-8 -*- from .. import development from .. import production from .. import urls # Local Variables: # indent-tabs-mode: nil # End: # vim: ai et sw=4 ts=4
8da89d0e80459e3af12186bd4e06fdc8eb3a60b2
05e634a232574f676434dfa8e4183f3d0a1a4bc9
/tutorials/pp-series/HRNet-Keypoint/lib/core/export_utils.py
c1ae5ead943c6118fc065dcb6da9239866dbd586
[ "Apache-2.0" ]
permissive
PaddlePaddle/models
67ac00d93c5255ac64a9d80ae5be2e8927e47cee
8042c21b690ffc0162095e749a41b94dd38732da
refs/heads/release/2.4
2023-09-04T15:23:59.543625
2023-07-20T11:54:16
2023-07-20T11:54:16
88,868,842
7,633
3,597
Apache-2.0
2023-09-05T23:23:54
2017-04-20T13:30:15
Python
UTF-8
Python
false
false
3,878
py
export_utils.py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
2d6b786baf6cdc0229536387344301c641f8d0b4
367e7c4e46b5e401525d5e5da7d412b13691faef
/test/cardvalue/放款与各状态数关系.py
9836a3371daef14a00f5233698104cc867e3ccfb
[]
no_license
xisafe/mypython
7f1fb218ef811929029059a7d486ad137dfb74c8
32900324b7bc5d7c0b473aa68393bb84c9cd4790
refs/heads/master
2021-07-23T07:15:07.378741
2017-11-03T15:12:31
2017-11-03T15:12:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
放款与各状态数关系.py
# encoding=utf-8 import pandas as pd from myworks import cv_dw dates = pd.date_range('2015-06-01', periods=200,freq="D") mssql = cv_dw.MSSQL() sql2 = """select t.DDate,p.[意向],p1.[新申请],p2.[评估额度完成],p3.[资料审核完成],p4.[签约前审核完成],p5.[批准],p6.[放款] from t_dim_day t LEFT JOIN( SELECT creationTime,count(1) 意向 FROM Dim_leads where cr...
21a24e51413503a67e46fa04e27d952cebf04f01
7a453cebb56072d1b0a2da2cd5011b5c5e9ab808
/detectors/orb_detector.py
84ecb68b6e94396497229c7c56fb624ef15bed0d
[]
no_license
Andrey-2310/Image-Similarity-Flask
c95902cafc457588508256713619b30d89454148
346bd590670d44b71e221fc76c4bbc3c559dbce0
refs/heads/master
2020-05-27T03:12:21.163318
2019-06-19T14:41:48
2019-06-19T14:41:48
188,461,738
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
orb_detector.py
import cv2 class OrbDetector: def __init__(self): self.orb = cv2.ORB_create() self.index_params = dict(algorithm=6, # FLANN_INDEX_LSH table_number=6, # 12 key_size=12, # 20 multi_probe_level=1) #...
2dee069124ab2e54bd71fb3d2302eb4f02de33b3
8f534567573e25da492600bdc21e29b678ec0ae1
/md2trello.py
b08ebdd1e3298f29d21748820d8a511e99d387e4
[ "MIT" ]
permissive
jeanCarloMachado/markdown_to_trello
4453bff9be07187bb8133e6a035e4750ae77736e
f8bd959993ef4a05819cdb3a7a90f988e0665bdb
refs/heads/master
2020-09-27T19:00:18.091027
2019-12-08T11:25:40
2019-12-08T11:25:40
226,586,575
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
md2trello.py
#!/usr/bin/env python import sys from markdown_to_trello.markdown_to_trello import MarkdownToTrello, SaveCards content = sys.stdin.read() cards = MarkdownToTrello(content).convert_to_cards() SaveCards(board = "Jeans Life", lane = "Today").perform(cards)
fa1b9c6fd4dda375017feaffd5b36f49addb1b6b
e9f858ad048da7fc3451af190327eab9beccd2d5
/setup.py
9088f349e98951735f8881ecc52042d89a262e6b
[]
no_license
pseudoPixels/vizAI
a17a42fe4dd4c5070489c3a1a50372afddc39425
042d4925650b908db71230bfd84bf266cdb0a9f3
refs/heads/master
2023-04-15T14:12:21.051012
2020-08-03T05:21:05
2020-08-03T05:21:05
226,988,235
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
setup.py
from setuptools import setup, find_packages with open('requirements.txt') as f: DEPENDENCIES = f.read().splitlines() setup(name='vizAI', version='0.0.2', description="vizAI", license='', packages=find_packages(), zip_safe=False, install_requires=DEPENDENCIES )
b7ede245ff44c1af2e77ba6d889d8d6a67e547f8
306a8cd5e54565bf5c5d9bbe16ff31abde0ab772
/main.py
b24cbe8df41badd8018d9e36f41dd65aa7b1d1ca
[]
no_license
dilsahgursoy/operator
f25fbc851f3bdabe364c456e9053a6466a58218a
af84be27508dadad7d8f43b79adf97e4a0212a29
refs/heads/main
2023-03-04T17:41:27.017496
2021-02-21T09:49:15
2021-02-21T09:49:15
340,866,331
0
0
null
null
null
null
UTF-8
Python
false
false
1,688
py
main.py
sms=int(input("Kullandığınız sms sayısını giriniz.")) data=int(input("Kullandığınız data miktarını giriniz.")) if dk<=1000: if sms<=500: if data<=5000: print(tarife) print(tarifeTutarı) else: print(asımTarifesi) print(f"Tarife aşım: {data-5000} mb'tır...
168ec20ddc1e0ed84ec4a10d28c0401336cd8be8
44e92fa8cd4a12cce6bd27b29abcd5b20fbafee2
/octavia/amphorae/backends/agent/api_server/osutils.py
008ed59dfa02c18516ed84c3c5260d262b250821
[ "Apache-2.0" ]
permissive
sapcc/octavia
676410861f76b866cf1f90b729657c685a09868f
fe248b973ecbd7f5ba036e2b8b4149fa19dc7f56
refs/heads/stable/yoga-m3
2023-05-25T19:17:49.759850
2022-12-15T15:20:21
2022-12-15T15:20:21
207,777,544
0
0
Apache-2.0
2023-03-24T19:38:30
2019-09-11T09:45:45
Python
UTF-8
Python
false
false
5,159
py
osutils.py
# Copyright 2017 Red Hat, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
53202a669143964ac3a67d86456c52fe05eb000f
95d40d13400d76c5b63b06ef587fce46c52b3aa0
/modules/object_detector/TrainCascade.py
4bd16ab9fba6862ab78540865a27e948667de8b8
[]
no_license
yxiao1996/RoboVision
0349c60a88f75519f13ced51280c9e9757bdbb92
44375716db34268377ac5ad2aac6bd2f998845c0
refs/heads/master
2021-09-13T19:59:52.403269
2018-05-03T16:19:00
2018-05-03T16:19:00
113,276,812
4
3
null
2018-01-27T03:55:28
2017-12-06T06:14:17
Python
UTF-8
Python
false
false
8,074
py
TrainCascade.py
""" verision: alpha update: 12-5-2017 author: Aramisbuildtoys """ import numpy as np import cv2 import os import glob def _detect_annotation(event,x,y,flags,param): global DOWN_X, DOWN_Y global UP_X, UP_Y, DRAW_FLAG IMAGE = param[0] if event == cv2.EVENT_LBUTTONDOWN: DOWN_X = x DOWN_Y...
b1b55dcb051e0c60315b16c8cde626998d41a1a9
6516f49fd375829d420a550ecfb857b3596c50c3
/babymaker/batchsubmit/NEW_WORKFLOW/run.py
8262fc52957a9cc02cea9cad16044e5f7d65badb
[]
no_license
cmstas/MT2Analysis
c2fe67ee19632c1ece6bd41dced72e003914fcca
8f227858ccf18fb85972feeaadabf5c445d7bebb
refs/heads/master
2023-08-21T14:45:58.807579
2023-08-13T19:41:07
2023-08-13T19:41:07
17,522,563
0
2
null
null
null
null
UTF-8
Python
false
false
10,381
py
run.py
import glob import os import subprocess import socket import time import sys import cPickle as pickle from utils import * USER = os.environ["USER"] # tag = "V00-10-16_2016fullYear" # tag = "V00-10-16_2017fullYear" tag = "V00-10-18_2018fullYear" # tag = "RebalanceAndSmear_V00-10-16_2016fullYear" # tag = "RebalanceAndS...
2906a3c8d667b7511dd5598d935286d2d61df594
eb3c05046e7663edcf23c28f735980b0ae719c8c
/ikea_view/productos_view.py
8195f83e1c2402aee52c64fee62ed62dc894065b
[]
no_license
PamelaAbrego/IKEA-AvanceFinal
0e41234df0cb5006dda089a97de797cbafdd84fb
a72488c20d75b206a0e12a1fc29af1b612ecf74d
refs/heads/main
2023-01-27T17:39:36.393939
2020-12-09T00:49:08
2020-12-09T00:49:08
319,785,883
3
0
null
null
null
null
UTF-8
Python
false
false
5,291
py
productos_view.py
from prettytable import PrettyTable from ikea_logic.productos_logic import ProductosLogic from ikea_view.clases_view import tablaClase class tablaProductos: def __init__(self): self.logic = ProductosLogic() self.getAllProductosView() def getAllProductosView(self): productos...
a4f95ebd602a4212c60d42565b7ecb3282384137
9dc652d06b0b5ee3fd95f75f335de96f33da8947
/potts/prova.py
f11eaf54bb94d00cc81fe78a3a75991ace9411cf
[]
no_license
entangled90/computazionale_m
24e3175087b14fcb3de4a568185ec271df3fcf8f
a547c9e2607cce2996d032d0014dea974ad4f68f
refs/heads/master
2016-09-05T12:53:37.817799
2014-04-04T15:39:42
2014-04-04T15:39:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
prova.py
import random as rd import numpy as np N = 32 def init( m ,s): for i in range(N): for j in range(N): if (rd.random()<0.5): m[i][j] = 1 else: m[i][j] = -1 s[i][j]=-1 def get_neighbours (m,s, i,j): c = set(range(-1,1)) n = set() for x in c: for y in c: xx = yy = (j+y+N)%N if s[(i+...
ed28aa2ad76d474b185b2c960f2c5693cb673771
363f7c43dbbf36cec32c83a8d95d410d5715b39b
/7-kyu/make-a-box.py
cd31f2014973f8f70ac5915af12abd56a610682c
[]
no_license
artbohr/codewars-algorithms-in-python
cffc7c24d141c8ca1f313405486835cb74616009
1cb87c5b74076556ce649eb615dd2a3d3c51b437
refs/heads/master
2021-06-17T10:11:18.872347
2019-10-29T16:21:32
2019-10-29T16:21:32
104,100,778
2
0
null
null
null
null
UTF-8
Python
false
false
366
py
make-a-box.py
def box(n): output = ['-' * n] for x in range(n-2): output.append('-' + ' ' * (n-2) + '-') return output + ['-' * n] ''' Easy; Make a box Given a number as a parameter, return an array containing strings which form a box. Like this: n = 5 [ '-----', '- -', '- -', '- -', '-----'...
974a381f29faa40e363078299cba765f862d5408
66cbd55c128be7c3abbd09fd4e17c122a1a316c5
/arbol_invo.py
44003bf4c623a4d8817c5f09cdb00a445f1a653c
[]
no_license
FranciscoPereira987/TpAlgo1
ad2a43ff32ea524e50f9df889ea78438fe4124c8
0ed948fb5a1dd8e3071402f61b334a6eed1798cb
refs/heads/master
2022-12-03T03:13:42.077689
2020-08-11T19:12:13
2020-08-11T19:12:13
275,023,333
0
0
null
null
null
null
UTF-8
Python
false
false
3,344
py
arbol_invo.py
def rellenar_dict(archivo, diccionario): """ [Autor: Augusto D'Avola ] [Ayuda: Rellena el diccionario de llamadas a funcion con 0 en todas las funciones] """ with open(archivo, 'r') as archivo_codigo: for linea in archivo_codigo: linea = linea.split(',') diccion...
9ab024f82b36e2b570b6ef3828f34084a9247b6b
f2dbe1387c57a99f80dc33bb5316f7991455aa68
/imgs/svg/MRR/mrr_cp.py
fac6a8bebcab22fa86eca8f510221a035a91c367
[]
no_license
dapingQ/master-thesis
3fe0edd37ff7a83b81e4209774c34c5dd9ed7bc8
0cbb4b754341a34d2ac5211927383328f790fb98
refs/heads/master
2022-11-10T14:40:43.507981
2020-01-31T01:56:57
2020-01-31T01:56:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
mrr_cp.py
import numpy as np import matplotlib.pyplot as plt plt.style.use('classic') a = .9 r = .9 def trans(x, a, r): return (a**2-2*a*r*np.cos(x)+r**2)/(1-2*a*r*np.cos(x)+a**2*r**2) x = np.linspace(-3*np.pi, 3*np.pi, 500) aList = [0.9, 0.5] rList = [0.9, 0.8] linestyles = ['-', '--', '-.', ':'] fig, ax = plt.subplots(f...
841e0c906632972e4cd1ca7ee52f375e4cb4810c
d8522d4045e9fd04c82ae28c0be37f20cd99cac3
/config/production.py
6fe8efd824f204b91a493cc081c2584d760d93f4
[]
no_license
AuTa/aniseed
3c1dd9b2cff3c0c4403633006e426fc66ab6ca06
b5f2da6a3450531b4337aa24f6e572132d34589f
refs/heads/master
2021-01-11T11:56:49.866251
2016-12-17T03:22:19
2016-12-17T03:22:19
76,701,292
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
production.py
# coding: utf-8 import os basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \ 'sqlite:///' + os.path.join(basedir, 'data.db')
d0b24bca30c283f9b5a707ccccc582995bd51f4c
789e0a2a9759f3d3e5b0ed7c319567da5fa342da
/src/test_steer_twist.py
5c80adef4021555ee396586e2f35341141e13cc4
[]
no_license
swane/ceres
5c453be0dfbe9cbd1fda91722de49c46d12a2fc5
ccba36ffca2596575d65cb990929021c40401b98
refs/heads/master
2023-03-18T16:33:30.273943
2023-03-11T17:58:25
2023-03-11T17:58:25
233,298,333
1
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
test_steer_twist.py
#!/usr/bin/env python import rospy from std_msgs.msg import String from math import pi, sin, cos, tan, sqrt, atan2 from geometry_msgs.msg import Twist from std_msgs.msg import Float64 from std_msgs.msg import Int16 from latlongtoutm import * from sensor_msgs.msg import NavSatFix, NavSatStatus, Imu from ublox_msgs.msg...