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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a726761b329c956b3768f904b22bebfcb704b34 | 2359121ebcebba9db2cee20b4e8f8261c5b5116b | /configs_pytorch/f30_pt.py | ab367f0af0238b8e8079026ca000938067363cfa | [] | no_license | EliasVansteenkiste/plnt | 79840bbc9f1518c6831705d5a363dcb3e2d2e5c2 | e15ea384fd0f798aabef04d036103fe7af3654e0 | refs/heads/master | 2021-01-20T00:34:37.275041 | 2017-07-20T18:03:08 | 2017-07-20T18:03:08 | 89,153,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,549 | py |
#copy of j25
import numpy as np
from collections import namedtuple
from functools import partial
from PIL import Image
import data_transforms
import data_iterators
import pathfinder
import utils
import app
import torch
import torchvision
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional... | [
"frederic.godin@ugent.be"
] | frederic.godin@ugent.be |
345299af5764903387076aba966b197662eecedb | 154fb5b8e733452dcb1f8e01fd4379d24d8b111c | /GUI0/ErsterTermin/Utils/miniircd | 3f3de5db793edd8254a8137b928d2753c79dce78 | [] | no_license | ag-syssoft/Components2016 | f57cb4a642eb49e4ae7a5ed4f5c05257dae50046 | 552e652d4f252ac0817959f23eb587ca8c7dae2b | refs/heads/master | 2022-05-12T12:10:33.731797 | 2017-04-16T20:04:20 | 2017-04-16T20:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,197 | #! /usr/bin/env python
# Hey, Emacs! This is -*-python-*-.
#
# Copyright (C) 2003-2016 Joel Rosdahl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at yo... | [
"jk@jascha-knack.de"
] | jk@jascha-knack.de | |
33270c868df62e8cea87b36283aa0cb8d68e895d | 184ab8ee0e754bf917960dbb0f3840fc41ca0241 | /S4L30-Classes & Objects.py | a0672d1e49a0ad9d8c43eab60a0a42733c1f0b5b | [] | no_license | sumitpagrawal/PythonProject | 0df3b15b3fa5fc67f98a94a06a26492d25be7a80 | da7cc993e810cefddbcc2dbd61a1fb5e65c9b358 | refs/heads/master | 2020-03-09T10:49:43.648384 | 2018-04-15T04:25:20 | 2018-04-15T04:25:20 | 128,746,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import random
class Enemy:
atkl = 60 #Attak low
atkh = 80 #Attak high
def getAtk(self): # self - its the object instanciated from the class
print(self.atkl)
enemy1 = Enemy()
enemy1.getAtk()
enemy2 = Enemy()
enemy2.getAtk()
| [
"sumitpagrawal@gmail.com"
] | sumitpagrawal@gmail.com |
c83e72ec6ca1cb3d7f9fad995ad7f2a8f2ac895d | bf4013eb486725ed81f5b15d3d5efcd287a59460 | /books/opera_book/export.py | 727e66f9be1551042f8e2bbdf57e3c5a0c76d15e | [] | no_license | Majestychen/wordjoy | 30e9b6e28f7b4e83600961f4b50a0521bd6e8c8c | 12dfc03a56d4a7d53dcc24f39dd05941399936ec | refs/heads/master | 2021-01-15T18:00:42.091867 | 2013-06-11T06:46:37 | 2013-06-11T06:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import sqlite3
class Export():
"""导出所有单词列表
"""
def __init__(self, database):
"""
"""
self.__database = database
self.__connect()
def __connect(self):
"""
"""
self.conn = sqlite3.connect(self.__database... | [
"oyea9le@gmail.com"
] | oyea9le@gmail.com |
9a305329c97e4fbed897b2e6c3ebc39494f48300 | ef40704fc73b5423e8fd5265215c1e903561e0f7 | /test-django/venv/bin/easy_install-3.6 | b57325a5e629753bb15ae027e3f23df8bfb5bd77 | [] | no_license | jason44406/python-projects | cfd397dec89ab6194ecca614d5bfde2cb0df8f65 | 7ced5ad511d8ccdb59d88b4594ea53a0430b290b | refs/heads/master | 2020-04-16T08:09:13.637890 | 2019-01-26T14:13:21 | 2019-01-26T14:13:21 | 165,413,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 6 | #!/Users/jason/python-projects/test-django/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Jason C"
] | Jason C |
18e31e1e83c1f0f49a540005162919c6751fe8c5 | 859ba7e7d7e4f0670ded1343e052deee1554c70e | /untitled1_ex40.py | 08d5c44cbbce69d79ada405e4349a96bbb669907 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rafaelblira/exerc-ciospython | 7eb258b8068ade66f75aea43f8550b696786d12e | ffe7182ac25c22ac0f799d6ecf13e68e998875ec | refs/heads/master | 2022-05-25T05:08:32.463962 | 2020-05-01T13:37:03 | 2020-05-01T13:37:03 | 260,466,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
media = (n1 + n2) / 2
if media >= 7:
print('Tirando {} e {}, a média do aluno é {}'.format(n1, n2, media))
print('O aluno está APROVADO')
elif media > 5 and media <= 6.9:
print('Tirando {} e {}, sua média é {}'. forma... | [
"noreply@github.com"
] | rafaelblira.noreply@github.com |
bd33d71fa665d86364b9bba84ccd0d1a1e8b02ce | 94938d2bea24052f95a6b07ede220229d5c2bc87 | /source_code/neural_network_ml_classifier/data_processor/split_data_set.py | d8070b8f8d30eae80b16474ae2e10e63aaeaace9 | [] | no_license | pushpit-UIUC-courses/TextInformationSystem-CourseProject | b24e81d20bf7109619141b57bb9c8a1fe66d1eda | f100a0dbed3f1dfd953bc5a9ea72f3ac2e8962e2 | refs/heads/main | 2023-01-29T14:31:42.199290 | 2020-12-13T21:36:55 | 2020-12-13T21:36:55 | 306,724,829 | 0 | 1 | null | 2020-12-13T21:36:56 | 2020-10-23T19:07:09 | Jupyter Notebook | UTF-8 | Python | false | false | 1,537 | py | import pickle
from sklearn.feature_extraction.text import TfidfVectorizer
import numpy as np
from sklearn.model_selection import train_test_split
# This script reads the data from the paths defined in "pos_data", "neg_data" variables
# Shuffles the data and split in to 85% training set, 15% test set.
# pos_data: posit... | [
"pushpit.saxena1511@gmail.com"
] | pushpit.saxena1511@gmail.com |
a3a3903cd807e179bed29599e95bd731499ab7cb | 16791f2f2fc0655238a06c8799663c2a13b8bf3e | /bin/Legacy/test_existing_vs_layer_v2.py | 3d56e5e2b65345376c868c3473acd36748b25af4 | [] | no_license | wongliangze/drunken-ironman | 19e12f82fd457d5893f15d22c3757e4b5befc1ac | 2575ead4c27374830d6330c1f1e2cfc8a86b1549 | refs/heads/master | 2021-01-01T20:06:02.978298 | 2014-06-19T02:40:31 | 2014-06-19T02:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 28 17:32:18 2014
@author: Liang Ze
"""
from __future__ import division
import numpy as np
import Core
# Parameters
hidden_size = 2
visible_size = 7
samples = 50
sparse_rate = 0.1
sparse_weight = 0.5
decay_weight = 0.6
data = np.random.rand(samples,visible_size)
costs... | [
"liangze.wong@gmail.com"
] | liangze.wong@gmail.com |
7691280ef45508cee67dc040a51eff74f7c5704b | d5eb3295a7384e5cd00de4f9ca582bc3baf20e3f | /COLLECT-IOS-OUTPUT/Link_Result.py | 908a22d9c5d5c53848e0a8b2a2a3e2c5b6fd4c58 | [] | no_license | wucooper/SSH-CISCO | d54ebb7986201f71cfbf51a2b2be1ea6ba64442b | 3548bc28bdf667df2f058b15039667a02fd3f05b | refs/heads/master | 2020-08-08T07:15:50.893590 | 2019-10-09T01:12:40 | 2019-10-09T01:12:40 | 213,775,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python
import yaml
from flask import Flask, render_template
import jinja2
DEV_LIST = []
app = Flask(__name__)
@app.route('/')
def load_html():
global DEV_LIST
yml_stream = open('./GHD_HA_MONITORING_CUR.yml','r')
DEV_LIST = yaml.load(yml_stream)
yml_stream.close()
return r... | [
"wuwei168@gmail.com"
] | wuwei168@gmail.com |
a08b38faa2ac4577fbc67d293749443a33a6e5f5 | e40376750d8e5b37715bfa1a349824ca3613a794 | /Part1/mapper.py | 66343b96fdd99a7b97ae966f98d0da188d3adbde | [] | no_license | livieee/MapReduce | d2e0a02e4b4517bb14ad67b4aed7a772537eda5c | 890fc5346c69d18cec304f30ddbc310abb759915 | refs/heads/master | 2022-08-08T01:37:58.111462 | 2020-05-16T00:00:08 | 2020-05-16T00:00:08 | 264,323,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | #!/usr/bin/env python
import csv
import sys
reader = csv.reader(sys.stdin, delimiter=',')
next(reader)
for row in reader:
# Write the key-value pair to stdout to be processed by
# the reducer.
# The key is anything before the first tab character and the
# value is anything after the... | [
"noreply@github.com"
] | livieee.noreply@github.com |
631b80890ec2de9a99b09a99a04c8962afd187d6 | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /tests/unit/cli/utils/test_hpo.py | a71d48a0cbb6160a41c64b495c9d45ad40b43c95 | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 27,415 | py | import json
from copy import deepcopy
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import List
from unittest.mock import MagicMock
import pytest
import otx
from otx.api.configuration.helper import create as create_conf_hp
from otx.api.entities.model import ModelEntity
from otx.api.enti... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
9308e6343a4a33ebc579f7fae36f2709be7556a5 | fc55afe8b8a7fb436b27459602730274eaa3beed | /flaskin/milkncookies.py | 6597c5437d48cfdd7a987b742c508b8e12641765 | [] | no_license | weissro/pyapivz | 86a48101ff3c4f8afa3ad70b730e747cabfd291a | 6ebbf14793e736774c413d1de1fd691cf98831fc | refs/heads/master | 2020-07-07T16:25:52.101978 | 2019-08-22T20:31:28 | 2019-08-22T20:31:28 | 203,405,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/python3
from flask import Flask, make_response, request, render_template
## write some python code that connected to the database and pulled out the information you needed.
app = Flask(__name__)
@app.route("/index")
@app.route("/")
def index():
return render_template("index.html")
@app.route("/setco... | [
"robert.weiss@verizon.com"
] | robert.weiss@verizon.com |
2b9bacb7050fe1eb24ece4e8eb572e2926d53cb4 | 4f340ed313a67bddf077a9d8da2205b9c2feb29a | /emv/util.py | dd9f8ac0b99ed0b904b87cec4e819cd092561dd2 | [
"MIT"
] | permissive | russss/python-emv | 49b645be9ec60acc8cd23e95e5423a1b2c90a175 | ce316ba05165e9b82026f72b55329b9bc287c0b8 | refs/heads/main | 2023-06-21T19:09:10.124472 | 2023-06-01T18:44:34 | 2023-06-11T15:26:11 | 76,971,486 | 105 | 30 | MIT | 2023-06-11T15:26:12 | 2016-12-20T16:10:14 | Python | UTF-8 | Python | false | false | 1,096 | py | import re
def hex_int(val):
"""Convert an integer into a decimal-encoded hex integer as bytes,
which the EMV spec seems awfully keen on.
>>> hex_int(123456)
[0x12, 0x34, 0x56]
>>> hex_int(65432)
[0x06, 0x54, 0x32]
"""
s = str(val)
if len(s) % 2 != 0:
s = "0" + s
return... | [
"russ@garrett.co.uk"
] | russ@garrett.co.uk |
ca27d18394796f107ef0fb502c5dca401b10f406 | 6b007189eb46861fba91d2b36f08e59fb2e448e0 | /LeetCode/InterviewQuestions/PasarPolis/second_largest_int_conversion.py | e61acc610d7dc9ee26d55104b9aa812a538a14fb | [
"Unlicense"
] | permissive | shreykhare/LeetCodeSolutions | bbd895f430db2b810c184425edfd5fc67642f869 | 92543c954801e5006a5059c1213d7b833b290e2e | refs/heads/master | 2023-08-23T14:00:13.357835 | 2021-10-06T21:34:48 | 2021-10-06T21:34:48 | 296,578,251 | 0 | 0 | Unlicense | 2020-09-18T09:38:26 | 2020-09-18T09:38:25 | null | UTF-8 | Python | false | false | 1,761 | py | """
Write a function which takes an array of integers given as string as an argument and returns
second max value from the input array. If there is no second max return -1.
let's take some examples:
1. For array ["3", "-2"] should return "-2"
2. For array ["5", "5", "4", "2"] should return "4"
3. For array ["4", "4",... | [
"fvs@qlik.com"
] | fvs@qlik.com |
f77f5363d6f47553328de36b6662574d65ffb2f4 | dece3823ce6321b28463865f30b39dcfaaf8826c | /main_001.py | 5801fa984bdad46bedde1f78ee70fe6446e6b941 | [] | no_license | ordepzero/ensemble | 7e40f9e34fdecec1f354c0e68133cbaac705ee2d | b8a5da6a5f50c3248433f3075a4603e94da9b071 | refs/heads/master | 2020-04-25T16:42:40.601404 | 2019-04-17T00:54:28 | 2019-04-17T00:54:28 | 172,921,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,189 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 14 07:30:16 2018
@author: PeDeNRiQue
"""
import svm as svm
import scipy.io as sio
import numpy as np
import configuration
import config_enviroment as config_e
import preprocessing as prep
import read_file as rf
import sample
import bases
channels_names = ["FC5","FC3",... | [
"pedro.ul@hotmail.com"
] | pedro.ul@hotmail.com |
8c56d3befb43633e8ded89b547f95b0ad2fe6cfd | 3b21e66188a646c2a876fc283a19265ef891e277 | /py/第二章:字符串和文本/2_16_以指定列宽格式化字符串.py | af2c985c37c77b666d02e82ab7d6f2ffbc095def | [] | no_license | Minsc016/ggstudy | f8139322d3f19b20fd39c43b972fe65d887592b4 | 00a75caad76eea213e7ece22f774ea4aace2bb13 | refs/heads/master | 2021-01-06T10:49:24.103229 | 2020-10-15T02:00:51 | 2020-10-15T02:00:51 | 241,302,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #########################################################################
# File Name: 2_16_以指定列宽格式化字符串.py
# Author: Crow
# mail:qnglsk@163.com
# Created Time: Thu Nov 21 16:15:51 2019
#########################################################################
#!/usr/bin/env python3
# 有一些长字符串,想以 指定的列宽将它们重新格式化
# 使用 textt... | [
"qnglsk0@gmail.com"
] | qnglsk0@gmail.com |
c2be0c25c26720b8ccf2c12804b1ff8608c92969 | 55d0b65c7b9f725467355bbfa728dd5cf3e34657 | /deep_boltzmann/deep_boltzmann/models/mueller_potential.py | 1aeafeef1e472e0f6e0fee03e07c9364454b3148 | [] | no_license | mohit2909/Boltzman_Generators | b06200dd6b565e6a04e7c80e24e00cacf6dc0eab | afe79fa584abe2ee429031387bb10d0d0b8cf7e2 | refs/heads/master | 2020-11-23T21:51:19.377901 | 2020-03-12T10:25:44 | 2020-03-12T10:25:44 | 227,761,578 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | import numpy as np
import tensorflow as tf
class MuellerPotential(object):
params_default = {'k' : 1.0,
'dim' : 2}
aa = [-1, -1, -6.5, 0.7]
bb = [0, 0, 11, 0.6]
cc = [-10, -10, -6.5, 0.7]
AA = [-200, -100, -170, 15]
XX = [1, 0, -0.5, -1]
YY = [0, 0.5, 1.5, 1]
d... | [
"mohit299@yahoo.in"
] | mohit299@yahoo.in |
7766872f7f542d461cbfe297d569640b5dd8760e | c33af8bb9b753b53a0bc2c2b1003ffc4962215bd | /flappy.py | 52faf94f93c4d086cca84f43cd45652509295d4b | [] | no_license | MitanshGor/FlappyBirdPython | dc8e84ecec55ecbdb6c10881cd3d33006b2edd28 | b085589ce4091b9346108d005f831dae25cb88e4 | refs/heads/main | 2023-09-01T15:14:31.422516 | 2021-10-21T18:12:28 | 2021-10-21T18:12:28 | 419,284,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,145 | py | '''
Branch : CE
Div : A
Sem : 5
Authors:
IU1941050060 : Raj Madhu
IU1941050035 : Mitansh Gor
IU1941050052 : Manav S Patel
'''
import pygame,sys,random
from pygame.constants import GL_MULTISAMPLEBUFFERS
#this fn will draw 2 floors which will move one after other to show cont. motion
def draw_floor():
screen.bl... | [
"gormitansh.com"
] | gormitansh.com |
4e3dbf1d5e5f1322b18d30e741a4ecefa93b1978 | e7795082c0131682803a09e929a86b2deddeab74 | /common/PackageRequest.py | 55551a9dd599fd01e2d21b48e965acf577cdcab7 | [
"MIT"
] | permissive | liwanlei/FXTest | 01de3ad55849b16c49d93b58d1aae21fd0fdafa0 | aeda58d01c14194290ca149d411c3a8596cca82d | refs/heads/master | 2023-04-01T15:45:26.668688 | 2023-03-19T05:19:54 | 2023-03-19T05:19:54 | 97,098,845 | 807 | 419 | MIT | 2022-04-23T06:52:16 | 2017-07-13T08:27:48 | Python | UTF-8 | Python | false | false | 5,324 | py | # -*- coding: utf-8 -*-
# @Date : 2017-07-20 15:13:25
# @Author : lileilei
'''
requets模块的简单的封装
'''
import requests, json
from config import Interface_Time_Out
from requests import exceptions
from common.systemlog import logger
class reques():
def get(self, url, headers, parms): # get消息
try:
... | [
"leileili126@163.com"
] | leileili126@163.com |
ae6eddaab99d4c2f15b97d125ccfdbfc13bfbc99 | eda107e9318a0b2aaa82a6790a26a63d926f804d | /src/training/training.py | 64dc60cee80238152f16338a58bf2b556baf7373 | [] | no_license | horribleslug/SHOTTA-FLOW-4-REMIX-FT.-BLUEFACE | e3c3c35a875a18c39c6757d75d27e8fbd9500c46 | 1fddb13fb5110d52fc502e8d5c56cd1c91e609a1 | refs/heads/master | 2020-08-26T20:43:29.737621 | 2019-12-16T04:02:35 | 2019-12-16T04:02:35 | 217,140,758 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,118 | py | import numpy as np
import cv2
import glob
from keras import layers
from keras import models
from keras import optimizers
from keras.utils import plot_model
from keras import backend
PATH = "/home/kausik/enph353/SHOTTA-FLOW-4-REMIX-FT.-BLUEFACE/src/training/pictures"
LETTER_WIDTH_THRESH = 60
LETTER_HEIGHT_THRESH = 60
... | [
"kausikkris10@gmail.com"
] | kausikkris10@gmail.com |
4ef748121769af0048bb15f3f9278cf2ebd0a706 | 7cdcfd6dd28fc75e11a4f34b26ebe0a50405f23a | /catalog/models.py | eb3efa06e40cff7035cebed0a3da9e94c8b57b38 | [] | no_license | green4x/django_local_library | 2dd24c6715d9f458ed3235e782f745d9264030b7 | 728cadfb3881eb2fcddfbb01807c701eb6424a31 | refs/heads/master | 2020-04-24T03:47:22.119326 | 2019-02-21T11:08:37 | 2019-02-21T11:08:37 | 171,681,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,146 | py | from django.db import models
from django.contrib.auth.models import User
from datetime import date
# Create your models here.
class Genre(models.Model):
"""Model representing a book genre."""
name = models.CharField(max_length=200, help_text='Enter a book genre (e.g. Science Fiction)')
def __str__(self):... | [
"red4x.mail@gmail.com"
] | red4x.mail@gmail.com |
bc02bd5d06610caebebf2ffa034ff85777eb4b1d | d51e67abc7709b17664ee08eb9d68ecb938f00a9 | /utils/farmbot.py | 1ace2bcc577c12cf3db231e381d3c13f6f25e1c8 | [] | no_license | averdier/farmware_watering_farmdesign | bb6d3d2615c8ac5294e3bbd61cea97cf0950e05c | d474d78629504907971c7f7b2ee6b88954f6f4cf | refs/heads/master | 2020-03-30T09:26:40.012409 | 2018-10-02T09:16:04 | 2018-10-02T09:16:04 | 151,075,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # -*- coding: utf-8 -*-
import uuid
from time import time, sleep
from .api import send_celery_script, log, get_resource
from .geometry import Point3D
def prepare_move_absolute_script(position, speed):
return {
'kind': 'rpc_request',
'args': {
'label': 'farmware_circle_' + str(uuid.uui... | [
"a.verdier@outlook.fr"
] | a.verdier@outlook.fr |
03f18ee3bcca0419cb117de29e680bb955e83e41 | b723dce343758f83c9df3f68f986f8e19eff215e | /spider_qiubai/qiubai_tpool.py | 0f85f53fa5f52a19a7055469c36c887fe6b9e7ba | [
"MIT"
] | permissive | lp1225/other_spider | 5af2fec6e886965e6d14584069ec63400ecca069 | 7fc246dda41a35bb8db6c33979fb702b5ebddaf8 | refs/heads/master | 2020-04-10T05:38:54.548588 | 2018-12-08T06:36:41 | 2018-12-08T06:36:41 | 160,833,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | import requests
from lxml import etree
from bs4 import BeautifulSoup
from queue import Queue
from multiprocessing.dummy import Pool
import time
class SpiderQiuBai:
def __init__(self):
self.base_url = 'http://www.qiushibaike.com/8hr/page/{}'
self.headers = {
"User-Agent": "... | [
"1402412786@qq.com"
] | 1402412786@qq.com |
11cb64337e777c7ad3b65b63ecacbe284df42f95 | 46a9d8e7e2c9c5ff0c0ec88f36a8cff97491ebb7 | /code/botcommon/models/person.py | b922259b79e74ded9e65a4c18d4ede6533534755 | [] | no_license | marcgurevitx/comprendebot | c189e760239d59514b9c1f050b13bf32d45de0e1 | 6c02defb54b293a026d5645b22326e0cbddd0eb3 | refs/heads/master | 2023-03-17T08:06:30.477703 | 2021-02-26T16:07:37 | 2021-02-26T16:07:37 | 339,143,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,357 | py | import datetime
import logging
from nonelib import nonelist
from psycopg2.extras import Json
from botcommon.bottypes import ChallengeTypeCode
from botcommon.choosers.challengetype import challenge_type_chooser
from botcommon.config import config, calc_ratios
from botcommon.models.basemodel import BaseModel
logger = ... | [
"marcgurevitx@gmail.com"
] | marcgurevitx@gmail.com |
2197ccaebce20b9ef0d05e424bad79bdff870009 | 7897d47317a0bcf213a08754cdf51ff9e0e42869 | /project/routes.py | de74bd9687ac286ff40d6533ddfc12fa27dfd7e9 | [] | no_license | KevChr93/pineapple | cb69be3ddac3108ae97375910873a3870ba9b29d | 5e51762af9d08a13293f5d176d6333e801b7d6cc | refs/heads/master | 2022-12-11T00:25:46.643006 | 2019-04-21T02:50:19 | 2019-04-21T02:50:19 | 182,477,326 | 0 | 0 | null | 2021-06-01T23:40:14 | 2019-04-21T02:25:47 | HTML | UTF-8 | Python | false | false | 3,304 | py | from flask import Flask,request, render_template, flash, url_for, redirect
import json
from project.models import User
from project import app,host,db
from project.forms import RegForm,LoginForm,subForm
from project import bcrypt
from flask_login import login_user, current_user,logout_user,login_required
@app.befor... | [
"sendit2kev@live.com"
] | sendit2kev@live.com |
dcd489a422ae85f38833f3b3b6951d818d3c6c12 | a489a2abad91ae603b99d322b68f53b3d5831083 | /compress_images.py | 10ee2146c849bc9cf45ce55d28b8c3351ec6e4f3 | [] | no_license | gbourgarel/Project | f0f025bd00dc55fde6593403de01737994367811 | 974ef00746673379d7e5331253376167e280e716 | refs/heads/master | 2021-03-07T05:09:23.858024 | 2020-03-10T12:50:57 | 2020-03-10T12:50:57 | 246,248,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from PIL import Image, ImageFilter
from tqdm import tqdm
import glob, os
paths=['RAIN_DATASET/ALIGNED_PAIRS/CG_DROPLETS/',
'RAIN_DATASET/ALIGNED_PAIRS/CLEAN/',
'RAIN_DATASET/ALIGNED_PAIRS/REAL_DROPLETS/',
'RAIN_DATASET/LABELLED/LABELLED_CG_RAIN_INPUTS/',
'RAIN_DATASET/LABELLED/LABELLED_CLEA... | [
"noreply@github.com"
] | gbourgarel.noreply@github.com |
47e5e4c57698095c9e2f74a95446661e89c5b11c | a8e8b9edd45bc2f0ddd6db133dcdf82df7473970 | /src/measure.py | 51a474c0c708ba353e22cc6e15e085654c38537a | [] | no_license | Kelvinson/hypocotyl-UNet | f3fc8434c9903db26e6efad6a6b933b66c10c331 | f4d701dbf8df8e6aeec0544f1cd7f82142ed0412 | refs/heads/master | 2020-05-29T13:22:23.841663 | 2019-04-26T12:15:50 | 2019-04-26T12:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import torch
from argparse import ArgumentParser
from unet.utils import *
from unet.unet import UNet
parser = ArgumentParser()
parser.add_argument("--images_path", type=str, required=True)
parser.add_argument("--model", type=str, required=True)
parser.add_argument("--result_folder", type=str, required=True)
parser.a... | [
"theodore.danka@gmail.com"
] | theodore.danka@gmail.com |
e7ebc86bfcb5313184a0af5bf3d21c0db55d2c53 | f6951e101981f8b7c8c9a8e3f82b61d401653689 | /src/masking.py | 0993c9040a5401f35d93bbd23f8ed2a4cb9f9d5e | [] | no_license | gbfelgas/cpe793-codec | d21e26a828dc523220489c02caf1b3d814332367 | 84c9168ae72bd8b7b7180e6f3ae310adbac31a7f | refs/heads/main | 2023-08-25T07:13:03.631473 | 2021-10-28T02:18:44 | 2021-10-28T02:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | import numpy as np
from src.utils import bark
def delta_tone_masking_noise(z, delta):
return delta + z
def masking_model(bark, SPL, peaks, delta=15):
sf_peaks = np.zeros((len(bark), len(bark)))
teta = np.zeros_like(bark)
for i in peaks:
dz = bark - bark[i]
teta[dz > 0] = 1
... | [
"gbfelgas@gmail.com"
] | gbfelgas@gmail.com |
c2d01b5d527ad76dc88ed38af49bfe7bbfe6dcf6 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_8838.py | 9260c4cc09a99e6f082dc00d995fd8e8dba08d41 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,842 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
9f3c5e089ae047eccc7409ba654d7febe65e6240 | 6068923fe0c65f3cb79d00b01772356d8c14729a | /sw expert academy/Intermediate/기본 - Tree/1_subtree/subtree.py | b4cd7c07a7f435990c6b2da1de609165b601f78c | [] | no_license | jslee6091/SW_Algorithm | 8eab8f1f07ddc6135a3b63a55d37b11002fd8b22 | d5e580e4acd60e192fdc14fe6754a27f3ee95c84 | refs/heads/master | 2023-08-13T05:26:25.782693 | 2021-10-04T14:09:02 | 2021-10-04T14:09:02 | 330,440,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import sys
sys.stdin = open("subtree_imputs.txt", 'r')
T = int(input())
def subtree(num):
number = 1
if len(nodes[num-1]) != 0:
for i in nodes[num-1]:
number += subtree(i)
else:
return number
return number
for test_case in range(1, T + 1):
E, N = map(int, input().sp... | [
"jslee6091@naver.com"
] | jslee6091@naver.com |
1b392e96dea3bc4c7baebfd90006596440762416 | 30ba09b0a746b1cef4c817fd87f1f310904a6d88 | /test/test_dialogs/test_title_screen.py | 770f143c244c1bfcf20b45cf482ac9f12c0d5667 | [
"MIT",
"Artistic-1.0-Perl"
] | permissive | krother/tilegamelib | 69e610959294ed950f49fefd8e7d50ceb1ba09ed | a8165f27b166acca37f81e8432a70e0b2e028338 | refs/heads/master | 2022-07-21T20:07:35.031330 | 2022-07-10T20:18:19 | 2022-07-10T20:18:19 | 1,045,043 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py |
from unittest import TestCase, main
from conftest import MENU_RECT, TITLE_IMAGE, TITLE_RECT
from tilegamelib.dialogs.title_screen import TitleScreen
from tilegamelib.events import QUIT_EVENT, EventGenerator
from tilegamelib.menu import VERTICAL_MOVES
class TitleScreenTests(TestCase):
def setUp(self):
se... | [
"krother@academis.eu"
] | krother@academis.eu |
3691e477e08a65c1542c4a6e65956ea567717323 | afa26c330b19046337c396645fcf7a208ab8e8bb | /codes/data/licensePlateDataset.py | e45d1681eedb79a3f0626d8b6429551c80d622a6 | [
"Apache-2.0"
] | permissive | taily-khucnaykhongquantrong/EDVR | 83456eaaa1c2a8f14ea713707126c62171e1606c | d432fd3dca0b231ba74789067e54bbd6ef2340a1 | refs/heads/master | 2023-05-12T21:28:56.890013 | 2019-12-26T18:57:19 | 2019-12-26T18:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,334 | py | """
REDS dataset
support reading images from lmdb, image folder and memcached
"""
import os.path as osp
import random
import pickle
import logging
import numpy as np
import cv2
import lmdb
import torch
import torch.utils.data as data
import data.util as util
try:
import mc # import memcached
except ImportError:
... | [
"lythanhtaiyoung666@gmail.com"
] | lythanhtaiyoung666@gmail.com |
d9b5abcacb080e839be9f2b9bf7f674eb5a4faf9 | f3b1b06470f4ca0db3f42250d340b7d4924c5d9d | /Array/contains_duplicateII.py | 6ae764b70e73e61b9d543d45f723932d0602bba2 | [] | no_license | tusharkailash/LeetCode-Problems-Python | 008d152e064cf5a8baa8062b6e490d0d20ca62bc | f86951a21c296eeeb4e55ec8287c7c4415f94570 | refs/heads/master | 2020-08-22T19:54:30.789960 | 2019-11-10T21:20:21 | 2019-11-10T21:20:21 | 216,468,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | ###Contains DuplicateII###
"""
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array
such that nums[i] = nums[j] and the absolute difference between i and j is at most k.
"""
class Solution(object):
def containsNearbyDuplica... | [
"tusharkailash29@gmail.com"
] | tusharkailash29@gmail.com |
8a1893e0ebd3b9e02b9ffda42dd79279306cdc05 | 6a4547451ec67acd9205b914060bf03f0b1081e1 | /src/code1.py | 810ade0b424b67cbdbd12ca3acdb9fdb77d2dda1 | [] | no_license | Ryndom/Monte_Carlo | 63da0dbe912c12cc490953d96f3a065e56e2f8d7 | 4dc78af55f2b982617f6ef53d371e0a3b1f76a08 | refs/heads/master | 2020-03-07T01:13:24.719516 | 2018-03-28T18:13:26 | 2018-03-28T18:13:26 | 127,178,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from random import random
from math import hypot
from PIL import Image
from PIL import ImageDraw
TRIALS=10**6
XMAX=500
YMAX=500
def main():
help = 1
inside = 0
img = Image.new('RGB', (XMAX, YMAX), "white")
draw = ImageDraw.Draw(img)
for i in xrange(TRIALS):
x = random()
y = random(... | [
"wood.shop@mac.com"
] | wood.shop@mac.com |
3742ff611dc02b777b4f83d39a8aade1e7dc7cfc | a2cd609a52eb5be16a248c054fb014394f12d344 | /build/globalplanner/catkin_generated/pkg.installspace.context.pc.py | a04cf5b45702ff3cf2cd28d70712504d7506b0de | [] | no_license | rfzeg/simon_thesis_ws | c5e6d6b20ee63010ffede91d17ba144527e5f6c5 | dc79635f628dade14cab1a631cc4eb24aee1762c | refs/heads/master | 2021-09-16T12:43:41.270235 | 2018-06-20T12:40:57 | 2018-06-20T12:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/simoneforno/simon_ws/install/include".split(';') if "/home/simoneforno/simon_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;pluginlib;costmap_2d;base_local_planner;nav_core".r... | [
"s.forno@student.tue.nl"
] | s.forno@student.tue.nl |
2d7f558b324dfd6d7556166e0210be7ec85673f6 | e94e911c6db1f876afdb21f7410514a7ca453dd6 | /Library Management Simulation/migrations/versions/0a8dc5d62b6a_.py | 3f21a910ba50fe6524ccfab8bb45b8c492090571 | [] | no_license | Radha34/Web-Development-Assignment- | 914860e3f98b3106a5f7da2d39b5d0745ea71835 | 8b446374383ea9106f5d030e86a1d2f9cba1ccb7 | refs/heads/main | 2023-05-05T21:03:06.180370 | 2021-05-19T22:40:04 | 2021-05-19T22:40:04 | 349,371,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """empty message
Revision ID: 0a8dc5d62b6a
Revises: 4510c826385d
Create Date: 2021-05-17 09:58:54.666083
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0a8dc5d62b6a'
down_revision = '4510c826385d'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"noreply@github.com"
] | Radha34.noreply@github.com |
6ba857f45be0a377186287819331c0f00d600dc2 | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/attack/LinearProjectile.py | f5e3003258b6aada6e2dd3d56c10f9ceea59b384 | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 484 | py | from src.coginvasion.attack.BaseProjectile import BaseProjectile
from src.coginvasion.attack.LinearProjectileShared import LinearProjectileShared
class LinearProjectile(BaseProjectile, LinearProjectileShared):
def __init__(self, cr):
BaseProjectile.__init__(self, cr)
LinearProjectileShared.__init_... | [
"maverick.liberty29@gmail.com"
] | maverick.liberty29@gmail.com |
a4b7b587d368deac92984432976cbcaf3071e9d9 | f514c9238598a313c36cf998a5c069ec3ef2f8e4 | /pydsa/tests/test_min_heap.py | f3775cd1ec42804663f5a8b9823818cca625679e | [] | no_license | ishitaverma/pydsa | 9a7c0da860aa486df80b9ccec5ba0d7fc72a6c8a | d59912763f6b633fd6f3bd8ac2f87e5177663237 | refs/heads/master | 2021-01-15T09:14:18.609910 | 2016-03-06T06:17:19 | 2016-03-06T06:17:19 | 53,156,496 | 0 | 0 | null | 2016-03-04T18:20:35 | 2016-03-04T18:20:34 | Python | UTF-8 | Python | false | false | 318 | py | from pydsa.min_heap import *
def test_min_heap():
bst = MinHeap()
bst.add(30)
bst.add(20)
bst.add(40)
bst.add(70)
bst.add(60)
bst.add(80)
assert bst.top()==20
assert bst.top()==30
assert bst.top()==40
assert bst.top()==60
assert bst.top()==70
assert bst.top()==80 | [
"ishita.verma178@gmail.com"
] | ishita.verma178@gmail.com |
704aee2dc27d64ac278a3cc960debdfaab0a7f88 | 3b72891ba5e6c6341f4825e964041f55f14bd6be | /lessons/export/a.py | 6e7d9d73050066bba5d0ef687ad8d90ad2ad7816 | [] | no_license | evjeny/qt_learning | a335a92688e06361289e32aa3ee1d5bf57973b1f | ae6666c6ba9402fd5b71fbfecd870c6ae62b2ba3 | refs/heads/main | 2023-06-20T13:48:05.307118 | 2021-07-16T11:45:14 | 2021-07-16T11:45:14 | 384,947,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import sys
import random
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QStackedWidget
from named_widget import NamedWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.stack = QStackedWidget(self)
self.names = []
self.widgets = dict()
... | [
"gkanafing@gmail.com"
] | gkanafing@gmail.com |
9e2cccb2792e78e7dba3a3e963b4ae202e698169 | ca42942904fa16cf2b66be9390956b2d5fbbbf36 | /SWM/IC_BC.py | e8dcbe0ce487cffbd189a32e0e0283c41f7c93d2 | [] | no_license | kelseymalloy/CFD | 5228a84e90f75e527c688b138ee47ce8cdfb5408 | 1ec57235bba94d22cba88e59888bc4fd25a03802 | refs/heads/master | 2023-01-22T12:37:45.532512 | 2020-11-17T20:01:39 | 2020-11-17T20:01:39 | 289,296,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | import numpy as np
def gauss(X,Y,nx,ny,amp,radius):
# returns gaussian bubble
return amp*(np.exp(-((X-nx/2)**2/(2*(radius)**2) + (Y-ny/2)**2/(2*(radius)**2))))
def wave(X,Y,alpha,m,n,a,b):
return alpha*(np.cos(m*np.pi*X/a))*(np.cos(n*np.pi*Y/b))
def wave_channel(X,Y,alpha,l):
return alpha*(np.exp(-(X*... | [
"kelseymalloy4@gmail.com"
] | kelseymalloy4@gmail.com |
354335a4af4d357ab0f090ed34153d0b327c5635 | d70e7b52cc748d5d98ead25c28fd59ecfcefc6b3 | /polyglot/node_servers/hue/hue.py | 00145d9775e1357f9b9a2a71c4ccfa568fef3a97 | [
"MIT"
] | permissive | PlanetJ/Polyglot | ec3765efb315f5860756557ce91a2a68fa12b7f2 | 66e319e1c1617edf335f393c9bff2bb5a8f295d4 | refs/heads/master | 2021-01-23T10:56:45.126872 | 2016-03-16T04:40:05 | 2016-03-16T04:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | #!/usr/bin/python
""" Phillips Hue Node Server for ISY """
from converters import id_2_addr
try:
from httplib import BadStatusLine # Python 2.x
except ImportError:
from http.client import BadStatusLine # Python 3.x
from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector
from node_types import... | [
"support@universal-devices.com"
] | support@universal-devices.com |
f3b348d7c621626f1a7d630d16e42082f7bea5a1 | eb568bdbe6052e7fbcb84aa6abd22918d7561a1c | /MenuButton.py | 2b734ceee9bd936f56e5a4c8eabd8b9fd29ed9a4 | [] | no_license | willholt1/ToyPlanet | 9803a3b2b4feabf30249812d4e3a7f84a11b49ee | 36f197e5bc9bec4a6bf766c5102495e3f50d1c7f | refs/heads/main | 2023-04-14T20:09:42.676995 | 2021-05-02T20:16:41 | 2021-05-02T20:16:41 | 355,202,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | ##################################################
#simple class for button sprites used in the menu#
##################################################
#libraries
import pygame
class MenuButton(pygame.sprite.Sprite):
def __init__(self, image, x, y):
pygame.sprite.Sprite.__init__(self)
self.original... | [
"will.holt.xyz@gmail.com"
] | will.holt.xyz@gmail.com |
1b596ba2f3040bc44907728413eccf542b109417 | 2525646c323496d71ff6c2110a5d72c1b4720187 | /src/nbClassify.py | cb0d9043a35a1ed4cdd837bddb91a2aaf2d9b0dc | [] | no_license | yumiobuchi/shape-of-stories | a6afc232c2ddc482d4a862089af5e393ece24ccd | c9f04db50713b7d7a4a81bcd4bfe512821db90eb | refs/heads/master | 2022-11-19T22:56:42.469010 | 2020-07-11T23:34:24 | 2020-07-11T23:34:24 | 276,186,613 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,136 | py | import re
import nltk
import pickle
import string
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from nltk.classify import NaiveBayesClassifier
from collections import Counter
import matplotlib.pyplot as plt
import matplotlib.ticker ... | [
"yumiobuchi97@gmail.com"
] | yumiobuchi97@gmail.com |
988f40c87dda776c6d782725d1bcf3c7cc9bf0da | 61c13e9efc64357256fd9fd18740ca8229135928 | /listDevices.py | eac84c9710e27bc2f9a3b9c860a7481edb88234f | [
"MIT"
] | permissive | Numerix-DSP/GoogleAssistant | b3f6c3531f113494fb51a60405e9983111d7efc4 | 2d0b279132dad1b0821b4c22795e6005f9b94982 | refs/heads/master | 2022-08-23T22:36:50.513079 | 2020-05-24T18:12:30 | 2020-05-24T18:12:30 | 266,597,715 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | #!/usr/bin/env python3
import pyaudio
HOSTAPINUMBER=0
p = pyaudio.PyAudio()
info = p.get_host_api_info_by_index(HOSTAPINUMBER)
numdevices = info.get('deviceCount')
print("hostAPIcount = ", str(p.get_host_api_count()))
print("numdevices = ", str(numdevices))
if numdevices:
for i in range(0, numdevices):
... | [
"johned0@gmail.com"
] | johned0@gmail.com |
40588bf2eb6710f2c002e9f78e67d105b7e2ae10 | 2bebb34164385c8f858e3474536fdadb2d268f97 | /blog/migrations/0001_initial.py | 0a40a4e4a1c94fd0a544d6310fb05dd0bf8ab47c | [] | no_license | melay6/my-first-blog | 46ac0fc606cf27752e39c1e221047a8eba35d889 | 5b922ce55540485c1737628f725b18aea480c3ba | refs/heads/master | 2021-01-20T13:23:40.531547 | 2017-02-21T14:18:43 | 2017-02-21T14:18:43 | 82,688,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-21 04:51
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"1016239774@qq.com"
] | 1016239774@qq.com |
575dcad18b12804754dbe2c263b5eda9c4da5b29 | 2a4290c36832e7080faa4104d58083c29ed1ea09 | /experiments/model_cat_wgan_old.py | ecc8c9353358f06089f1942e0c62a1566ac4eba8 | [] | no_license | jerryli27/my_dtn | 0380e22fb7892f5d46084339a5edb24c8ed5b8c8 | 54b16f403a480c35d5ae331dbbfd0efed53880b9 | refs/heads/master | 2021-01-19T17:17:19.787195 | 2017-03-05T21:48:06 | 2017-03-05T21:48:06 | 82,433,878 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,037 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
class DTN(object):
"""Domain Transfer Network
"""
def __init__(self, mode='train', learning_rate=0.0003, num_classes = 10, hw = 32, alpha=15, beta=15):
self.mode = mode
self.learning_rate = learning_rate
self.num_classe... | [
"jerrylijiaming@gmail.com"
] | jerrylijiaming@gmail.com |
058b61906b6cae83cc48a1feb07d5e6ddbdf8b2c | 3d1fc80dbb85f789546057c57c6ed29096228847 | /scripts/hdmi_brightness | ff4f70677a8cf48933db03759e4fbd868dcb1ba4 | [] | no_license | ftravers/pscripts | fb0ad379a06a5434b4bd3bdc823cfb257e126b92 | ea9859b58e319d315dc316173fc583dabefc7ab3 | refs/heads/master | 2021-07-09T07:35:04.409462 | 2015-10-25T17:27:02 | 2015-10-25T17:27:02 | 105,721,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | #!/usr/bin/env python
import argparse, sys
import pscripts.hdmi_control as hdmi
from pdb import set_trace
parser = argparse.ArgumentParser(
description='Control brightness on HDMI')
parser.add_argument('--increase','-i', action='store_true', help='Increase brightness')
parser.add_argument('--decrease','-d', acti... | [
"fenton.travers@oracle.com"
] | fenton.travers@oracle.com | |
3871c040feaf2dba614d49189b4216d7792c429d | c4e1dc923b73fe9f8ab30a391d1608d796d25737 | /test_classful/test_base_args.py | f7f7889aa87525862f5360dc707f8ca27449d379 | [
"BSD-3-Clause"
] | permissive | hjc/flask-classful | 2d9be97d19ec3fabb54310f3d184e6809ea50aee | ee88fb3bca4f782b485f851e156f7edfd0df26e1 | refs/heads/develop | 2021-06-24T16:16:53.350586 | 2017-09-11T01:54:46 | 2017-09-11T01:54:46 | 103,169,831 | 0 | 0 | null | 2017-09-11T17:58:58 | 2017-09-11T17:58:58 | null | UTF-8 | Python | false | false | 2,803 | py | import json
from flask import Flask
from flask_classful import FlaskView
from webargs.flaskparser import use_args
from webargs import fields
from nose.tools import eq_
# we'll make a list to hold some quotes for our app
quotes = [
"A noble spirit embiggens the smallest man! ~ Jebediah Springfield",
"If there ... | [
"hoatle@teracy.com"
] | hoatle@teracy.com |
03a615323699874d0b2c3456177c7e1a60e68236 | 7b66fdf306a18efe9b2f9827f5a09b80ed99da3d | /crawl_celery/crawl/exceptions.py | dbe08ccaeaf75011a805aac59dca66bd40400bfe | [] | no_license | junzisheng/cbg | cc8936180276f45b46a430400de5a9cfd833adcf | ef7380f453b701d86c0335bd6b72644dca0c458b | refs/heads/master | 2020-03-23T12:18:19.250961 | 2018-07-26T16:21:46 | 2018-07-26T16:21:46 | 141,550,542 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class NotTarget(Exception): # 返回数据但不是目标服务器
pass
class IPBanned(Exception):
pass
class DataMiss(Exception):
pass
class StatusNot200(Exception):
pass
class SystemBusy(Exception):
pass
class Empty(Exception):
pass
class ParamsError(Exception):
pass
class OterStatus(Exception):
... | [
"1298477514@qq.com"
] | 1298477514@qq.com |
b37adaa183985a6427d59edcc2ac306a2e973bca | aefe82c9c535fc384958f34a94977ab55a56d392 | /exercise/12/ip_table.py | 50aa47e527420cfe135883f05c3650421d4b34f9 | [] | no_license | mityagz/pyneng | 28e2b7814062215edc91117679210cacffc70656 | 5067f0a3e45e2b8f9f3d9087332fe49840f9985a | refs/heads/master | 2020-03-21T00:30:48.218881 | 2018-12-01T13:19:03 | 2018-12-01T13:19:03 | 137,896,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | #!/home/python/n/pyneng/bin/python
# -*- coding: utf-8 -*-
'''
Задание 12.3
Создать функцию ip_table, которая отображает таблицу доступных и недоступных IP-адресов.
Функция ожидает как аргументы два списка:
* список доступных IP-адресов
* список недоступных IP-адресов
Результат работы функции - вывод на стандартный по... | [
"mityagz@gmail.com"
] | mityagz@gmail.com |
99cc72f8fadc078fb5a29992d3f79ea463e24715 | a7fb49ec630e825ae86fe40a2eb3611e64a2a27c | /src/exchange/currency_converter_v5.0.py | b73e7391274a00a39fe50a93d1de79302d3c20c2 | [] | no_license | pengpengzxm1234/python | e77321497eeab2bacfa8bdb472e08f3f497d1d96 | 4e38a30aaa400cca21b00d53d2fa627a38ab072f | refs/heads/master | 2021-08-14T09:52:18.127327 | 2017-11-15T08:59:26 | 2017-11-15T08:59:26 | 109,957,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | """
功能:汇率兑换
版本:4。0
2。0 新增功能:根据输入判断是人民币还是美元,进行相应的转换计算
3。0 新增功能:程序可以一直运行,直到用户退出
4。0 新增功能:将汇率兑换功能封装到函数中
5。0 新增功能:(1)使程序结构化 (2)简单函数定义 lambda
"""
# def convert_currency(im, er):
# """
# 汇率兑换函数
# """
# out = im * er
# return out
def main():
"""
主函数
"""
# ... | [
"pengpeng@100tal.com"
] | pengpeng@100tal.com |
58e720ee47b707bc593b93409029945a57fa4617 | 3d389d0f095513da7d238d4d80452b4de7b9d509 | /nadocoding/gui_project/auto_screenshot.py | 51d60e46a7f02136e6d9733ff4aa3dd6989ecb7c | [] | no_license | HongSun2da/Python | 989c24e56e8dbd5bd8b2f16f46754ea1ed9a5449 | adad94d8645d60053b6d12165667ae69f94c4368 | refs/heads/main | 2023-02-10T11:20:35.878859 | 2021-01-05T07:11:44 | 2021-01-05T07:11:44 | 325,512,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import time
from PIL import ImageGrab
time.sleep(5)
for i in range(1, 11):
img = ImageGrab.grab()
img.save("image{}.png".format(i))
time.sleep(2)
| [
"hongsun2da@gmail.com"
] | hongsun2da@gmail.com |
280b60d0e3b097e45c49ec6db0db8f323a43d3c5 | 9568dee77459304ad0f7e01c9dea9432c11377d0 | /maxlike_sim_filehandler.py | c91d4799c888691d93117cefde6a1784acc6f66d | [
"MIT"
] | permissive | lbaumo/wtgpipeline | c101c7e7ec1491a1c40cbe14102662770641bb9a | 73de01736e33769c09c4467e3c040545d7070407 | refs/heads/master | 2021-06-20T14:40:38.263891 | 2017-08-14T21:08:24 | 2017-08-14T21:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | #############################
# Handles loading files for a simulation run
#############################
import ldac, cPickle, numpy as np
import astropy.io.fits as pyfits
import pdzfile_utils, nfwutils, varcontainer
#############################
__cvs_id__ = "$Id$"
#############################
class SimFilehandl... | [
"dapple@xoc7.stanford.edu"
] | dapple@xoc7.stanford.edu |
a6cac7d77145dd89deb708f5be1407ffe096d320 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_suffocated.py | 8b356fe7d1d8ac09890ee20e1e5dc5a7719a80ba | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
from xai.brain.wordbase.verbs._suffocate import _SUFFOCATE
#calss header
class _SUFFOCATED(_SUFFOCATE, ):
def __init__(self,):
_SUFFOCATE.__init__(self)
self.name = "SUFFOCATED"
self.specie = 'verbs'
self.basic = "suffocate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
361df6254470db5dbc78923d28d0eb7260dcf6f3 | 661029d044304393ffe78b770f4742a8adec89af | /deploy.py | 9165bc6d09e68f872e8c0ca9d166299ff21da39f | [] | no_license | MolVlad/Ethereum-Blockchain-Project-MIPT | e50da20b3db8f92a8ea5674357898d69d09abeff | 5898f47b19d6056f6d34dd73c002ea354cb008cf | refs/heads/main | 2023-01-18T23:33:02.734031 | 2020-11-22T19:31:32 | 2020-11-22T19:31:32 | 309,914,836 | 1 | 1 | null | 2020-11-20T21:05:47 | 2020-11-04T06:47:08 | JavaScript | UTF-8 | Python | false | false | 647 | py | from web3 import HTTPProvider, Web3
import web3
import json
web3 = Web3(HTTPProvider('http://127.0.0.1:7545'))
if web3.isConnected():
print("Test net is connected")
web3.eth.defaultAccount = web3.eth.accounts[0]
trufflePath = 'contract'
truffleFile = json.load(open(trufflePath + '/build/contracts/Monopoly.json')... | [
"molvlad@frtk.ru"
] | molvlad@frtk.ru |
7df6e282195210189ad1b0668fe6ec04141118cc | 9fac208c0f0ee88a0aacaf26ed2fdd3f8d6a09f5 | /graphing/graphmake-csvreader.py | 1f2c5fc96ad9155aef4f688cd9577d6dbe2258d5 | [] | no_license | angelaliu2015/mycode | 84c292ba98667049b79873adc2db16664c219bee | d86cbb0d80bd2f514acb84384dd5aa3b6656b1f7 | refs/heads/master | 2020-08-13T23:49:43.154973 | 2019-10-18T17:19:59 | 2019-10-18T17:19:59 | 215,058,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/env python3
import csv
import numpy as np
import matplotlib.pyplot as plt
def parsecsvdata():
"""returns a list. [0] is LAN and [1] WAN data"""
summary = [] # list that will contain [(LAN), (WAN)]
# open csv data
with open("/home/student/mycode/graphing/2018summary.csv",\
"r") as downt... | [
"angelayh.liu@gmail.com"
] | angelayh.liu@gmail.com |
bda30a3322f66ed38e7c8fe07a600a37992ac9c3 | 1f61e06271f8e9582669686457c40336235d1eee | /Module 2/Chapter 6/ch6_feature_engineering_basics/score_trolls_randomforestregressor_example.py | 3b658b8746f4936e664cf298d48824bfd79ce905 | [
"MIT"
] | permissive | PacktPublishing/Python-Real-World-Machine-Learning | f1747fdd73937544a243059ac7476bfbfac6d113 | 669e793cf80c35b6d2028f74bff2cd87b9458791 | refs/heads/master | 2023-04-13T11:48:13.459731 | 2023-01-30T09:21:10 | 2023-01-30T09:21:10 | 70,907,139 | 108 | 111 | MIT | 2023-04-04T14:38:41 | 2016-10-14T12:13:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,678 | py | # this script provides a demonstration of how the cleaned, vectorized feature set might be incorporated into a model.
# for a performant model that takes a much bigger & optimised range of input features, consult the model provided in the "detect insults - kaggle competitor version" directory.
import numpy as np
impor... | [
"eganl@packtpub.com"
] | eganl@packtpub.com |
d3265e7888364eddc658f959bcbe4ca229b970eb | e92dd1dba5ca5703167dbac1a10e140ab5aaf3d1 | /venv/lib/python3.9/site-packages/botocore/__init__.py | e016f63be83837e950674e07e4e2677fa2f1d1d0 | [] | no_license | bhavyabgada/rekodjango | 36c391741530bfd28385264a72b48174ff11c59d | 00a75bec11900cf54a8932b2fa19bc407b34bc55 | refs/heads/master | 2023-06-19T16:41:44.602429 | 2021-07-23T09:45:08 | 2021-07-23T09:45:08 | 388,734,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http... | [
"bhavyabgada@gmail.com"
] | bhavyabgada@gmail.com |
1b7795733d0335b5bd8004044e8ceed8278c724e | 909308c6af5c566af7931be18d51a768cd80fccb | /esgf_fetch/fetch.py | 07acf19f397cf29ee38d1248ccd07932d5360bc2 | [
"Apache-2.0"
] | permissive | cp4cds/cmip6_range_check_2 | f3568d74f3fcaff49fa8bdeed9b7b8c78b9a0c85 | 6fca2632029a2adb9736bfc1382b39f82d8a27e1 | refs/heads/main | 2023-08-30T15:08:25.013965 | 2021-10-06T15:06:05 | 2021-10-06T15:06:05 | 327,068,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,452 | py | import urllib.request
import json, collections, os, glob, csv
from dreqPy import dreq
template_001 = "http://esgf-index1.ceda.ac.uk/esg-search/search/?offset=%(offset)s&limit=10000&type=Dataset&replica=false&latest=true&activity_id=CMIP&source_id=%(source_id)s&mip_era=CMIP6&facets=mip_era%%2Cactivity_id%%2Cmodel_cohor... | [
"Martin.Juckes@stfc.ac.uk"
] | Martin.Juckes@stfc.ac.uk |
1d483a76ea0064ddee68569fb474fa2474afb07f | 67ceafeb0042a2bcc49fdb60ae36e800ef354b42 | /app/maps/graphical_stitcher.py | de1ccae05042aaacfad20e3efed1d0ea2b0943c4 | [] | no_license | henrymwestfall/Platformer | 9095874482b64df78e49bdc167561be45f929648 | 56ac08f37b74a5469ea94f870d5eef19bb35e426 | refs/heads/master | 2022-10-29T06:04:29.622020 | 2020-06-14T19:39:59 | 2020-06-14T19:39:59 | 267,941,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | import os
import pickle
import pygame as pg
WHITE = (255, 255, 255)
FOREST_GREEN = (34, 139, 34)
def load_tile_map(name, *subdirs):
if ".pkl" in name:
file_name = name
else:
file_name = name + ".pkl"
path = os.path.join(*subdirs, name)
with open(path, "rb") as f:
raw_data = pi... | [
"henrymwestfall@gmail.com"
] | henrymwestfall@gmail.com |
adeb59d010bdfae9169f837cf998303af2c9df2e | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/models/jax/misc.py | 02ebd98fd261b684769013ef6b2f7fd3ba31bc62 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 2,287 | py | import time
from typing import Callable, Optional
from ray.rllib.utils.framework import get_activation_fn, try_import_jax
jax, flax = try_import_jax()
nn = np = None
if flax:
import flax.linen as nn
import jax.numpy as np
class SlimFC:
"""Simple JAX version of a fully connected layer."""
def __init... | [
"noreply@github.com"
] | pdames.noreply@github.com |
48238c52ba2a6aa069efd3ce03a88648f8ad6eef | 885e1ac4e2c3eb94932ea33bed82e6098a8f1864 | /A4/rnn_lstm_attention_captioning.py | cebddaa6bb0760be3a07b54fe93af65eca043c06 | [] | no_license | nsanghi/umich_deeplearning_eecs498 | 427c8928aa59b2edf083b1b97f6348d4efe68204 | c52904cc3585bc6d91e9b6d221d75d0b2dce8021 | refs/heads/master | 2023-08-24T16:49:36.646274 | 2021-10-07T13:33:31 | 2021-10-07T13:33:31 | 393,313,530 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,564 | py | """
Implements rnn lstm attention captioning in PyTorch.
WARNING: you SHOULD NOT use ".to()" or ".cuda()" in each implementation block.
"""
import torch
import math
import torch.nn as nn
from a4_helper import *
from torch.nn.parameter import Parameter
def hello():
"""
This is a sample function that we will try t... | [
"nimish.sanghi@gmail.com"
] | nimish.sanghi@gmail.com |
026fa01d40203fd51b0628786ac718b0eea8982c | 21d2bc38139841269bbeb33c761e3c1396b85247 | /genentech/analysis.py | a00f1d0d62e21d8a9551bf3f18a1a554f7d275fa | [] | no_license | cdever01/ani-2x_results | 4389097b918b5b49da42eeb963400955ea46e85d | 077e01ff614daec560e69bef3984f8647a7ab50c | refs/heads/master | 2023-04-21T13:57:11.583758 | 2021-05-10T20:10:36 | 2021-05-10T20:10:36 | 269,153,132 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | import pandas as pd
import numpy as np
import os
import re
import torch
import torchani
from torchani.units import HARTREE_TO_KCALMOL
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
def read_xyz(file):
import numpy as np
xyz = []
typ = []
Na = []
ct = []
fd = open(file, ... | [
"cdever01@ufl.edu"
] | cdever01@ufl.edu |
2ab4879b68c702266ed923a5a2e754131db423bd | 671c79b2609c78e6ffad3077aa0862e38284bfa8 | /templet/Basetemplet.py~ | 03d8ae04cd8e3819f5d468216b36ee6f5e48795d | [] | no_license | yxxhero/pandamonitor | 89c30efdf84ef799f24cd188fe515ed64a870952 | 918cd40f8cd2a78e41001fbeaaa390564304b250 | refs/heads/master | 2020-12-06T23:27:38.381077 | 2016-09-21T15:40:38 | 2016-09-21T15:40:38 | 68,614,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | #!/usr/bin/env python2.7
# _*_ coding:utf-8 _*_
class basetemplet(object):
def __init__(self):
self.host_ip=''
self.group=''
class linuxtemplet(basetemplet):
def __init__(self):
super(linuxtemplet,self).__init__()
self.server=['mem_info']
self.name='linux'
self.me... | [
"526169407@qq.com"
] | 526169407@qq.com | |
d395865c3605eeb941bb91b09298508c591b437a | a8425bd731abfaa2c7bc797ce1b4d00aa8b46fa2 | /anytree/__init__.py | 295891bec7000b8494dbf942641d4a1f8fc9e872 | [
"Apache-2.0"
] | permissive | nline/anytree | 45103dea6b4ce397711a33bb873b3478fc48cd20 | 73492fb96d77a6973f3c48489064a12452646965 | refs/heads/master | 2023-02-14T03:42:42.853455 | 2021-01-04T20:41:06 | 2021-01-04T20:41:06 | 287,288,337 | 0 | 0 | Apache-2.0 | 2020-08-13T13:30:56 | 2020-08-13T13:30:55 | null | UTF-8 | Python | false | false | 1,587 | py | # -*- coding: utf-8 -*-
"""Powerful and Lightweight Python Tree Data Structure."""
__version__ = "2.8.0"
__author__ = "c0fec0de"
__author_email__ = "c0fec0de@gmail.com"
__description__ = """Powerful and Lightweight Python Tree Data Structure.."""
__url__ = "https://github.com/c0fec0de/anytree"
from .search import Co... | [
"c0fec0de@gmail.com"
] | c0fec0de@gmail.com |
b4478669f088f5f58f21409e1f3fc37cb0e517fc | a1f24731bd9888e462c8159d6c33353908778b32 | /unr_sandroad_1.py | 9ead6904db9f151902ab8afee2a940b1523f70b0 | [
"MIT"
] | permissive | lancelee82/rockrose | b22f9032262a34853da7eff928bbaa888842eca2 | 15b600e91e93291c8b0ad814e00160142381bbea | refs/heads/master | 2021-01-11T22:25:49.689304 | 2017-03-17T12:21:30 | 2017-03-17T12:21:30 | 78,961,775 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | """
"""
import random
import numpy as np
import argparse
import gym
from rockrose import preprocessor
from rockrose import replay_memory
from rockrose.models import unreal as rr_model_unr
from rockrose.trainers import unreal as rr_trainer_unr
from bluegym import env_bluelake
ENV_GAME_NAME = 'Sandroad-v0'
BLG_GA... | [
"lancelee82@163.com"
] | lancelee82@163.com |
a1f12e1a399ccb2f167547bc22020b8415ea2f24 | 36f08c580a6146d3543d4089191e93f642bb7801 | /GPyOpt/methods/auto_tune.py | 561159afba082014992f4b7eab7187518e98ea1c | [
"BSD-3-Clause"
] | permissive | FlorianWilhelm/GPyOpt | 19f3b81106f85b0b9a80671a8f04263ce3131428 | 62dd0750ae8c252d1f71bab2767f31ac4746f226 | refs/heads/master | 2021-01-22T20:55:05.154786 | 2016-05-25T23:04:09 | 2016-05-25T23:04:09 | 59,822,050 | 1 | 0 | null | 2016-05-27T09:18:06 | 2016-05-27T09:18:06 | null | UTF-8 | Python | false | false | 2,960 | py | # Copyright (c) 2015, Javier Gonzalez
# Copyright (c) 2015, the GPy Authors (see GPy AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from .bayesian_optimization import BayesianOptimization
class autoTune(BayesianOptimization):
def __init__(self, f, bounds=None, max_iter=None, eps = None, ... | [
"j.h.gonzalez@sheffield.ac.uk"
] | j.h.gonzalez@sheffield.ac.uk |
fb5a5721930126c3778a322493c74d40ed3939f2 | 2809f97b8c3997b9ad3423073cc628bacf45a288 | /Lab 1.2.py | ec00df2241c4bf235077385940376229479401c5 | [] | no_license | HengYiJun/DPL5211Tri2110 | a39b9ed962a1b3da41b240246f3661d6477a99d5 | 3f8ae443527341162f575e819e40fa95de01f800 | refs/heads/main | 2023-08-24T21:28:59.283452 | 2021-10-11T02:37:30 | 2021-10-11T02:37:30 | 403,464,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Lab 1.2 get input two numbers and display the sum of the two numbers
number_1 = int(input("Please enter number 1: "))
number_2 = int(input("please enter number 2: "))
total = number_1+number_2
# print("The total number is ", total)
# print("The sum of ",number_1," and ",number_2," is ",total)
# prin... | [
"noreply@github.com"
] | HengYiJun.noreply@github.com |
b2eeeceb59b10f12e3b463c73a0aa1e29380f918 | c27b07ae8d14e6c248bde5cc804b6145d2d8cf4b | /polaris/polaris/management/commands/check_trustlines.py | ef6e45500df171fb3361cd2ad9a5b1488bd80b8d | [
"Apache-2.0"
] | permissive | msfeldstein/django-polaris | c7547edcef8c8860d0de49bff71eeb5a0612a2ea | 2671afed7cb2bbbff6a0b428d98d5c9189edb6bb | refs/heads/master | 2020-09-12T20:41:01.729104 | 2019-11-15T22:34:01 | 2019-11-18T17:10:05 | 222,548,494 | 0 | 0 | Apache-2.0 | 2019-11-18T21:31:01 | 2019-11-18T21:31:00 | null | UTF-8 | Python | false | false | 1,963 | py | import time
import logging
from polaris import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command
from stellar_sdk.exceptions import BaseHorizonError
from polaris.models import Transaction
logger = logging.getLogger(__name__)
class Command(Bas... | [
"jake@stellar.org"
] | jake@stellar.org |
b0a17a9049632cdda496378aac8bda8d0fea9d3f | 42f6b8d17262e76a18015fe489a432d54ed1b27a | /setup.py | cb59f1e6c1c794ea0038c1b0bd401d1c40ffc8c7 | [
"MIT"
] | permissive | suda/dashing-mining-agent | e8f2420817eed8059ee23de6f5efbf753ccb5e65 | c99e2783a131dad3c188d748c9d1a56e220d1102 | refs/heads/master | 2023-06-01T10:09:56.793850 | 2020-05-26T08:00:51 | 2020-05-26T08:00:51 | 15,683,538 | 3 | 2 | MIT | 2023-05-22T21:34:12 | 2014-01-06T19:58:11 | Python | UTF-8 | Python | false | false | 75 | py | from distutils.core import setup
import py2exe
setup(console=['agent.py']) | [
"admin@suda.pl"
] | admin@suda.pl |
ab151524e7823fa8d8cea54e810081d78b60deec | 3d543d32624738e2d4d2b33e2c6379812779a2b3 | /not_used/old_viban_functions.py | 326b81f0a35bc291bfa4d48d3e64e19d1db8b84e | [] | no_license | eebrandt/male_vib | dfaf9bdf8760870af7d4f755821c15f12e3fb994 | b2a58f3e719ffc6ebbbb4800d8c0341715d4b80e | refs/heads/master | 2021-01-19T08:11:30.451899 | 2018-02-20T21:23:23 | 2018-02-20T21:23:23 | 19,896,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | def ratecalcs (durationinfo, srfile):
"""
This function takes in information about the duration of a given feature (usually scrape-rate regions), and the path of a file that lists each scrape-rate region and the number of scrapes found in that region. It plots the rates/length of the song (normalized to 1), and retu... | [
"brandt.erine@gmail.com"
] | brandt.erine@gmail.com |
08b869e8d8559db4d477d360515bc7c627507ca5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03129/s302066927.py | 0887597072b00c7f90e5a7d87138c543cb18fc6f | [] | 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 | 156 | py | import sys
N, K = map(int, input().split())
ans = 0
for i in range(1,N+1,2):
ans = ans + 1
if ans >= K:
print("YES")
sys.exit()
print("NO")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1301f31631459997d39f2eb0f8204bcd23850b20 | bf2b2b04b0d27ccbb83fac8e4f9f2f807eddd4d1 | /AI -Try - using A Star algo (Python)/q2_single_agent_training.py | a792bb35ae3ee352301288a30c095ec02d8e1224 | [
"MIT"
] | permissive | yellowRanger1111/Personal-Projects | 334d752fda401af2ee2a29801d87445510d0bdc8 | 159dcb4e3943875aed1a0b0cc69df7474728cc71 | refs/heads/main | 2023-08-26T18:19:03.690936 | 2021-10-16T08:00:10 | 2021-10-16T08:00:10 | 417,749,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | from argparse import Namespace
from collections import deque
#base_dir = Path(__file__).resolve().parent.parent
#sys.path.append(str(base_dir))
from reinforcement_learning.dddqn_policy import DDDQNPolicy
import numpy as np
import torch
from utils.observation_utils import normalize_observation
from utils.environment_... | [
"54380416+yellowRanger1111@users.noreply.github.com"
] | 54380416+yellowRanger1111@users.noreply.github.com |
77ee6f121ff4c31ffa03f663dcf5e8f9becf9668 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /binarysearch/공유기.py | f88af0df8eb7ac12ed7e91b46ea583cc0b2bc2c3 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 1,570 | py | N, C = [int(i) for i in input().split()]
L = []
for i in range(N):
L.append(int(input()))
L.sort()
two_left=False
def chop(low, high):
global two_left
#print(low,high)
m = (low+high)//2
if low>=high: # 경우의 수가 하나 남았을 때
return low
if high-low==1: # 경우의 수 두개 남았을 때
two_left=True
... | [
"74404132+JannaKim@users.noreply.github.com"
] | 74404132+JannaKim@users.noreply.github.com |
4c124ae97420c1086994cd22cd216aee050422c6 | 03272607560cd1807fb044bc7b4ae08354d3b7e2 | /strlam.py | 888d3c299b55d626a0dc4974dd2e262e76e934b5 | [] | no_license | aawaskita/triacmix | 0a04651c19a3f11a007ae0c99dc8e2123fc0a6cb | 6e8717fcf7f5623aba161cb8f28aa837b5babf97 | refs/heads/master | 2020-04-19T02:40:07.310691 | 2019-09-13T08:06:34 | 2019-09-13T08:06:34 | 167,910,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | import globalVar
from vau import VAU
from reyn import REYN
from xire import XIRE, XIRE1
from ethag import ETHAG
"""
BERECHNET DIE KONSTANTEN FUER DIE STROEMUNGSBERECHNUNG
Perhitungan konstan untuk aliran
"""
def STRLAM(ifxkk):
for nv in range(globalVar.verti['nverti']):
for n in range(1,globalVar.ui['nm1']):
glo... | [
"aawaskita@gmail.com"
] | aawaskita@gmail.com |
3accbac65582ec80871a4a4cecfea0f3da64d7f1 | 75065010d58f7feb5b755a8a53a87fda7aed2b25 | /zun/objects/fields.py | 8b49e957acf1208d14a2abdca531e6d63196620c | [
"Apache-2.0"
] | permissive | yuywz/zun | f9cadb36c220252ae0e4bb9eff98a8f2bb1600a7 | 12e9b36f066797ac9af1e1c07ae3b76cf43903d8 | refs/heads/master | 2021-01-11T01:44:16.070332 | 2016-10-07T15:41:04 | 2016-10-07T15:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # 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, software
# d... | [
"hongbin.lu@huawei.com"
] | hongbin.lu@huawei.com |
dace36c15b534c7dffff376bb4598fb9ff665b68 | 733f92f20412370b4a653aefb78d52941b36646b | /partition/data/reshardosm.py | da36abb035ac41e102ba1324a2c143fde869d28e | [] | no_license | ablimit/hadoopgis | b0ef9bdc852859e5b388d9fdd995058d0a58d684 | 4e0fe84c14b4f7cee55ff00eca26c984b938c8c3 | refs/heads/master | 2020-04-16T00:24:25.740421 | 2015-08-24T17:13:20 | 2015-08-24T17:13:20 | 7,951,350 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | #! /home/aaji/softs/bin/python
import sys
import re
import math
def main():
if len(sys.argv) <2:
print "Usage: "+ sys.argv[0] + " [osm Map]"
sys.exit(1)
dic = {}
ID_IDX = 0
POLYGON_IDX = -1
for line in sys.stdin:
sp = line.strip().split()
if (len(sp) >= 2):
... | [
"aaji@mathcs.emory.edu"
] | aaji@mathcs.emory.edu |
161017ae74be54ab13d82f983516cd0d36f0431a | 54e797ded1fea168ddd7864b7b595bb4764562fb | /stack/hlsconstructs/sentinel_step_function.py | bbd71b21f9aaa18b137b49de8e632fcef3c1eca7 | [] | no_license | jsrikish/hls-changes-23dec2020 | 5876af2ea3a7d16d1e069478d2e7200097929265 | e9786ad90ae076aa11037fa4a7f202f28cd262d7 | refs/heads/main | 2023-02-12T18:16:30.405434 | 2021-01-06T21:18:05 | 2021-01-06T21:18:05 | 327,430,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,130 | py | from aws_cdk import (
aws_stepfunctions,
aws_iam,
core,
)
import json
class SentinelStepFunction(core.Construct):
def __init__(
self,
scope: core.Construct,
id: str,
check_twin_granule: str,
laads_available_function: str,
outputbucket: str,
outpu... | [
"jayanthi.srikishen-1@nasa.gov"
] | jayanthi.srikishen-1@nasa.gov |
1ad619d89775334c5265b7dc7afb1661a44e38d8 | 6feed288eeae89d39e302cc1bfd07bd8a6e06884 | /python/thingspeak.py | 0104852e640612c90e8974fd6acc1a90a4074e31 | [] | no_license | kongdej/pudza | 6af622eed2e70ed892a38d681665b5605fe88119 | 50ee06631462dece4a144e29c49caa0e59d7c784 | refs/heads/master | 2020-02-26T16:32:12.630755 | 2017-01-09T05:59:13 | 2017-01-09T05:59:13 | 69,976,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import requests
#import urllib2
api_key = "MHTC88ZRMETT82P9"
#urlThingspeak = "https://api.thingspeak.comupdate?api_key=%s" % api_key
#print urlThingspeak
#lux = "10"
#params = urllib.urlencode({'key': keyThingspeak})
#f = urllib.urlopen(urlThingspeak+"update?field1="+msg, data=params)
#f = urllib2.urlopen(urlThings... | [
"kongdejs@gmail.com"
] | kongdejs@gmail.com |
0a6dc4ee4b583d0cf7e827021a9f45d63b36db1d | a036e97331d0a4a04fdb1d3024e0fa248fc1f983 | /src/retrieval_core/models/head/part_based.py | 773e9c14ace9a3b7fc0c0e5222581d0e222c8317 | [
"MIT"
] | permissive | RImbriaco/OML | e935549fcd199e4c7b89c28d79b761db1e484e3d | 4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b | refs/heads/main | 2023-08-03T03:35:46.589272 | 2021-09-14T09:41:20 | 2021-09-14T09:41:20 | 404,034,220 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | import torch
import numpy as np
from torch import nn
class BNNeck(nn.Module):
def __init__(self, in_dim, inter_dim, num_classes):
"""
Batch-norm neck as defined in: "Bag of Tricks and A Strong Baseline for
Deep Person Re-identification" https://arxiv.org/abs/1903.07071
:param in_di... | [
"spars3batteryhors3"
] | spars3batteryhors3 |
77ec1a307afebd5162f2ea1d4eaaece759d3fd15 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_0/Python/BIPUL/a.py | 3b8209e6b92d12243001a0707948776e81fe2d81 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | ############### Author: Bipul Ranjan @ranjanbipul ###############
import sys
import time
import os
import math
import operator
import random
from functools import lru_cache
from decimal import Decimal as D
from fractions import Fraction as F
#sys.setrecursionlimit(10000)
#@lru_cache(maxsize=None)
MOD = 1000... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
ceded759228bb0777bedea895838fa0d899859bb | abb739ee7a025fdb03c5b619b5495708924ec351 | /Easy/Sorted Squared Sum/sol.py | b7e6a4d5fa90602ac997b9a4921b6c9040d9cfa9 | [] | no_license | ravi-ror/algoexpert-1 | ca7edecbb2c7fd2c4919af24abd4c48eb677b4c6 | 5b1f6653b4e11ac781be956cdd7ca9f7ad4f7ab6 | refs/heads/main | 2023-06-24T19:23:48.725464 | 2021-07-28T17:53:21 | 2021-07-28T17:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # Time Complexity: O(nlogn)
# Space Complexity: O(n)
def sortedSquaredArray1(array):
solution = []
for a in array:
solution.append(a**2)
return sorted(solution)
# Time Complexity: O(n)
# Space Complexity: O(n)
def sortedSquaredArray(array):
array_length = len(array)
solution = []
left = 0
for i in range(... | [
"shubhamc183@gmail.com"
] | shubhamc183@gmail.com |
86218a23aecd745bf875efe5c8bcfe080d67e1ac | 1f6f9196a936ff975506a0a91ac6de4f6cb81c5f | /virtual/bin/flask | 87ca091d63b74db9b123633bbc618aecfaa5df8d | [] | no_license | EnockOMONDI/MOVIEWATCHLIST-ishows- | 02f8581733a88098e41c8b33c0eb969215ec700d | 0663c990d598a84e2e0f1af799c7620b21a35944 | refs/heads/master | 2020-03-10T01:20:07.224783 | 2018-04-11T15:55:13 | 2018-04-11T15:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/home/sean/Desktop/PROJECTS/PYPROJECTS/NEWWATCHLIST/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"djseanizellkenya@gmail.com"
] | djseanizellkenya@gmail.com | |
ac6d4db8c9c186c23b51f9690ba1d838c76936cc | b9662213e143acea87e9af6f41143c50f23bec95 | /main.py | 3bcc258a67bac8bb863e85ccfce47cd210cce045 | [] | no_license | elprofedotti/python-mvc | 3442680dc20d7cb0ec9c3bf09442daecda4c8e4e | 9beee06de2e7a04ad872e037157a08dd2bb3dcc6 | refs/heads/main | 2023-08-04T08:17:03.886448 | 2021-04-20T12:57:17 | 2021-04-20T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | """Entry point."""
from app.app import Application
from app.views import MainPage
from app.models import Book
if __name__ == "__main__":
app = Application(MainPage(Book.list()))
app.run()
| [
"mbriolet.ma@gmail.com"
] | mbriolet.ma@gmail.com |
ba9a432d0ad050ac5a0d3d0553cf31f1a7d96b88 | f9b3fd94cfa424ceb9ec6e175a619f1a24a0e000 | /project09/dataset.track1.sample/track1/createUserRatingList.py | 5d5243a6f64dd00991798a3ec356ec22f411838a | [] | no_license | ojchase/csci568 | 7ec9b467096fae5e92e8c77a2e15525f52422c3f | 38174a5efcf41f1c480ab52aca7f0349850341c3 | refs/heads/master | 2020-05-17T08:21:54.161775 | 2011-12-17T08:39:30 | 2011-12-17T08:39:30 | 2,292,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | fileName = open('trainIdx1.firstLines.txt', 'rb') #substitute different file names here
fileName2 = open('userRatedList.txt', 'w') #substitute different file names here
content = fileName.readline()
content = content.strip()
i = 0
userID = str(-1) #why? just so the file.write() doesn't complain about types
while (conte... | [
"ojchase@gmail.com"
] | ojchase@gmail.com |
22b29b9db0278b7d46b3fece2b2d881a2a7606b8 | 5ff51341de4bef8df471395a3637171231ffcde9 | /anggaxd/cid/crack-dec.py | 1ef18d3bfbbaac9d343376ec643498f144ab41c0 | [
"Apache-2.0"
] | permissive | printelseif/ReversE-EngineerinG | 7f05fdea90b98f1fdde13fabecd425deb599f939 | a3da838cd95e003ef009458e3bcdd907955e8c0e | refs/heads/master | 2022-12-30T08:16:16.957062 | 2020-10-14T08:57:01 | 2020-10-14T08:57:01 | 295,187,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,581 | py | # uncompyle6 version 3.7.3
# Python bytecode 2.7
# Decompiled from: Python 2.7.16 (default, Oct 10 2019, 22:02:15)
# [GCC 8.3.0]
# Embedded file name: dg
import os, sys, time, datetime, random, hashlib, re, threading, json, urllib, cookielib, getpass
os.system('rm -rf .txt')
for n in range(5000):
nmbr = random.ran... | [
"noreply@github.com"
] | printelseif.noreply@github.com |
1dc9013797db5056f16f1cae259e3a6f85402f4a | ec23fabf63bd8c37ce2619b40ddfac3092e4e9bc | /esprov/provda_record.py | 155cb74eeb70926311e32903b74522d525d22002 | [] | no_license | ihmeuw/fungi | 1727d0fc0cbb1f3faf12a277ee3bc7480e20ff21 | e51dc7ed40775b18137833c5e6ec768940f88eca | refs/heads/master | 2021-03-16T05:10:29.806270 | 2017-01-27T03:45:58 | 2017-01-27T03:45:58 | 72,963,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | """ Definition of a provda-created provenance record w.r.t. Elasticsearch.
Provda is a package for provenance tracking of data and processes, with an
emphasis on process-oriented provenance. Created by Andrew Dolgert for the
Institute for Health Metrics and Evaluation (IHME) at the University of
Washington (UW), it is... | [
"vr24@uw.edu"
] | vr24@uw.edu |
a9c5cf603568c48ce2727e50114f055bea8f7da5 | 3edc26fafdc7a3d864b5a41cfee8850c48557fd7 | /try1/attempt1/migrations/0015_auto_20200724_0029.py | 83b5f61e3d3b157410b79570cc70341e1193cbf9 | [] | no_license | Jinay01/Unicode-Task | ee3cc8535933bf5d3a73299eb0f5c6aae575c9b6 | 885dd6acb37106b9dfb50b6538e9f959beedf277 | refs/heads/master | 2022-11-30T03:53:04.564331 | 2020-08-11T19:05:25 | 2020-08-11T19:05:25 | 281,713,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.0.8 on 2020-07-23 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('attempt1', '0014_auto_20200724_0026'),
]
operations = [
migrations.AlterField(
model_name='apiinput',
name='counter'... | [
"jinayparekh2001@gmail.com"
] | jinayparekh2001@gmail.com |
d641b78fbf285d9990e4e6f1f59ccad03ba5b92c | aa663d4567f8a34a6705df71a6b829cb6ac353ed | /count_primes.py | 2ca6a4b0dcc03be24f6797751316bb6c0963bcff | [] | no_license | snigdhasambitak/python-scripts | cd5df9cde2e31a4427ff1db6d078c91988e9eca4 | f059d36a13657e33e0261d4d3a7805d90d8b382b | refs/heads/main | 2023-05-03T22:23:45.454773 | 2021-05-17T17:28:25 | 2021-05-17T17:28:25 | 360,143,354 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #### COUNT PRIMES: Write a function that returns the *number* of prime numbers that exist up to and including a given number
# count_primes(100) --> 25
# By convention, 0 and 1 are not prime.
def count_primes(num):
counter = 0
primes = []
for n in range(2,num+1):
prime=1
for i in rang... | [
"snigdhasambit.aryakumar@here.com"
] | snigdhasambit.aryakumar@here.com |
4879d32724d4a17f00e950a3d91a20a190f174e3 | 8cf34194d19dcec16b70e9dfe1f95bcd93654bee | /app.py | d7df2c22993ab9d4b4e5be861c0b175ea6b81701 | [] | no_license | saeedahamed007/SkinDiseaseDetection | b34295ea3057f82beb6186930c53080d3e409467 | dbd3a4cb6a063f927fa02e10f94f5e5852830285 | refs/heads/main | 2023-06-14T21:08:23.791039 | 2021-07-03T18:53:43 | 2021-07-03T18:53:43 | 379,689,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from flask import render_template, jsonify, Flask, redirect, url_for, request
import random
import os
import numpy as np
from keras.applications.mobilenet import MobileNet
from keras.preprocessing import image
from keras.applications.mobilenet import preprocess_input, decode_predictions
from keras.models import... | [
"noreply@github.com"
] | saeedahamed007.noreply@github.com |
6849c6d7fd667e1e598f90a74fce82d987a48349 | 511f4b427b14ee7bd4d93a76d03243ae4a80dcdb | /py/treenode.py | f680b94438d7e7a924acba9112d09fa84977c7d1 | [] | no_license | lusanshi/leetcode-sol | b515932a5cec0e87e53706a8459fbdbbbbc27526 | 03e03b80fb283435fae700998ac3386c5693f566 | refs/heads/master | 2020-08-07T18:56:16.996826 | 2020-04-11T18:22:45 | 2020-04-11T18:22:45 | 213,557,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #! usr/bin/python3
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def inordtrv(self):
root = self
if not root:
return
inordtrv(root.left)
print(root.val)
inordtrv(root.right)
| [
"noreply@github.com"
] | lusanshi.noreply@github.com |
211ed6c49ca3a646738d8e60c222220806b4ede5 | 64a5f3cdc75445af5fbbd8f4ebc470e1df8a2b9a | /wx_python/snippets/spacers.py | 9104760018f3a7acf955d2534315464615d91698 | [] | no_license | psionman/psionman_set | a3998cd345329198b7a951a1fbcf2fbfdbdbb8db | 3246188872327ebf08271932370aeb544a5000c8 | refs/heads/gh-pages | 2022-10-27T19:58:36.199192 | 2020-05-12T13:11:29 | 2020-05-12T13:11:29 | 249,749,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | """Demonstrate the use of wxPython spacers."""
import wx
class MainFrame(wx.Frame):
"""Create and show the frame for the application."""
def __init__(self, *args, **kwargs):
"""Initialise the MainFrame class."""
super(MainFrame, self).__init__(*args, **kwargs)
panel = MainPanel(self)
... | [
"jeffwatkins2000@gmail.com"
] | jeffwatkins2000@gmail.com |
ebdd4d095e69b8ab947bda9f0795b22d3c7ccfee | 5c40c631514f595bf5eec4e3278bcc65bc93ab0e | /src/raspi_stub.py | 1ab7677d0fde49ea98c866b255f58a3ecec88082 | [
"MIT"
] | permissive | vickeykumar/raspi-mgr | 7c02177f3cf4f3967f6ad7c10d12b70bc2ca9813 | 9e0974bbe30de6ac659846888151e5ab8511c794 | refs/heads/master | 2020-06-26T02:27:25.790876 | 2019-11-11T14:15:41 | 2019-11-11T14:15:41 | 199,497,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # implements RPi.GPIO stubs for testing
BOARD=True
OUT=True
class GPIO:
BOARD = True
OUT = True
LOW = False
def setmode(x):
print("GPIO.setmode: ",x)
pass
def setwarnings(x):
print("GPIO.setwarning: ",x)
pass
def setup(x, y, initial=False):
print("GPIO.... | [
"kumarvickey45@gmail.com"
] | kumarvickey45@gmail.com |
0a67f283ef42dca44daf76bbc4a66abe4d8c48dd | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /Solu86.py | e7e90402710c612a3e2d5f06db28be58e7c62afc | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # # 86. 分隔链表
# 给定一个链表和一个特定值 x,对链表进行分隔,使得所有小于 x 的节点都在大于或等于 x 的节点之前。
#
# 你应当保留两个分区中每个节点的初始相对位置。
#
# 输入: head = 1->4->3->2->5->2, x = 3
# 输出: 1->2->2->4->3->5
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def partition(s... | [
"452681917@qq.com"
] | 452681917@qq.com |
5494e82d4348484b2d1a327ed8bd604bef7b1bc9 | d5c97320762c6b72f2c008708824266c63b7e984 | /mysite/settings.py | f90272946cf418b95d16cca2025859217cb36666 | [] | no_license | haris6099/polls-project | 47faf114e9637a729173635344ad1e532538a1f1 | 09ad965f847df88fd2c76eb6639e159bdaf2fc28 | refs/heads/master | 2020-03-28T18:03:15.331290 | 2018-09-14T22:48:31 | 2018-09-14T22:48:31 | 148,848,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"hwk6991@aol.com"
] | hwk6991@aol.com |
782ce93a0a256fec41cbd6777146f5c3cd2c5695 | b3586235dc1e1acbd49fab996f581269a808480b | /sistema/planeamento/migrations/0013_ordemproducao_num_paletes_stock_in.py | 1fcbb090362b7154911b2ca6ccc20eb7e102cd64 | [] | no_license | gonfersilva/Sistema | 37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3 | 4c6d9ade22040972efbe892eae0130939d7b5c46 | refs/heads/master | 2021-10-23T23:21:51.262723 | 2021-10-13T19:45:49 | 2021-10-13T19:45:49 | 155,545,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.2.7 on 2020-08-06 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('planeamento', '0012_auto_20200805_1401'),
]
operations = [
migrations.AddField(
model_name='ordemproducao',
name='nu... | [
"goncalo.silva@elastictek.com"
] | goncalo.silva@elastictek.com |
9fe698949e0fa7bcc12ff20c747f8136ef8836c3 | 03fe7ee6bdb387efb4ba312abf30f0aa5bc61606 | /main.py | 20613cfe4d07c4f05dcbf36c83e09db29ac2e269 | [] | no_license | nanvenomous/StrawberryBotSprings | 7f47f1f0000f18d27df2160fd637877457b46fd5 | 07aae11be0226b6f0cc4b72150cb91cf00ddfb0d | refs/heads/master | 2023-04-25T09:17:43.886347 | 2020-12-06T05:25:54 | 2021-05-01T11:02:05 | 363,520,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/env python3
import time
from src.tools import StrawberryBot
short_interval = 2
long_interval = 45
async def getHotspringReservations(strawberrybot):
try:
await strawberrybot.delay(4)
await strawberrybot.message(f'[Started StrawberryBot]\n\tfor {strawberrybot.userCreds.email}\n\t@{straw... | [
"mrgarelli@gmail.com"
] | mrgarelli@gmail.com |
81f0758ac1e26edbb0d98db4be63957709d38e8b | 7350ccd6e296ad20c0932fc9af32a5739b855492 | /Calculus/vectorfields.py | bc408286948715ee2340c1af4c5614c1edc4245c | [] | no_license | HarryVTripathi/MLEx | 4d84272eb5a557f965bc4ca0249a797facf4bf7e | bc84b6e05266a2875cd4327622f874b0575b6e7b | refs/heads/master | 2020-09-22T12:23:36.121730 | 2019-12-29T06:19:16 | 2019-12-29T06:19:16 | 225,192,444 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import numpy as np
from matplotlib import pyplot as plt
x, y = np.arange(-10, 11, 2), np.arange(-10, 11, 2)
U, V = np.meshgrid(x, y)
X = V**3 -9*V
Y = U**3 -9*V
fig1, ax1 = plt.subplots()
Q = ax1.quiver(U, V, X, Y, units='width')
qk = ax1.quiverkey(Q, 1, 1, 2, r'$2 \frac{m}{s}$', labelpos='E', coordinates='figure')... | [
"helmuthziggler@gmail.com"
] | helmuthziggler@gmail.com |
b5d365bea221a900608893f2b51a0e20be91666b | 78eb654a0f6d0154692eac24231ca0a5e52b20f3 | /Codes/Second_Paper/FirstTest/RankedBO_3_3.py | 07491aa0bb8682f54402238a8e1bc88cd45a9995 | [] | no_license | biaohe/PRaDA_BO | da4abeeb794f1ce6412cf9b95ecd40dc5f83953a | 504277de03156297b451beee9a3eb1eccc7c903f | refs/heads/master | 2021-09-25T12:59:18.029349 | 2018-10-22T01:50:22 | 2018-10-22T01:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,673 | py | from __future__ import division
from scipy.stats import norm
import warnings
from copy import deepcopy
import GPy
from scipy.stats import mvn
import GPyOpt
import numpy as np
import os.path
from termcolor import colored
from numpy import linalg as LA
import numpy as np
import sys
from matplotlib import pyplot as plt
im... | [
"majid@deakin.edu.au"
] | majid@deakin.edu.au |
ad0c1bbbf2baf95ea3e20041d65695b30f7788da | 5b02bc5c60729685481c2ea724c51a59180b21e3 | /floyd-warshall.py | 3dc1a9f2ccb4756f1398319dee7f642c45fb7531 | [] | no_license | jaleonro/Classic-algorithms | a045dd3f6d7fe33e82bc18e9d343385f54947499 | 46d713e7fe40ccaa5d25969ec75d22f5acecd73b | refs/heads/master | 2021-01-16T14:12:58.457838 | 2020-02-26T02:34:23 | 2020-02-26T02:34:23 | 243,149,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import math
INF = math.inf
def floydWarshall(graph,source,destiny):
dist = graph
V= len(graph[0])
parents = [[-1] * V for i in range(V)]
for i in range(V):
for j in range(V):
if i==j or graph[i][j] == INF:
parents[i][j]=-1
else:
... | [
"noreply@github.com"
] | jaleonro.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.