blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4bbdbd678b27608a4aa9e8cac61a1a47f748f054 | 15b008c82d0f564f321a1a55c1275f21c1dc1387 | /tbs_dc_dtv/libs/display/templatetags/mytags.py | ce4a0c2ed7ca81eeac7bce2a6c6b5f9c548f60a0 | [] | no_license | WallaceWGT/tbs-dc-dtv-new | 519e632f1c3cb86a65cf06ef04429b8dc0ffd699 | 7fce2a71fc8aeb9f131dabbb4cfe9de73b0b5f40 | refs/heads/master | 2020-05-04T15:39:46.424238 | 2019-04-03T09:05:04 | 2019-04-03T09:05:04 | 179,250,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# auth: wallace.wang
"""
标签:更加前端传递数据,对模板进行数据处理
"""
from django import template
from tbs_dc_dtv.libs.display import models
register = template.Library()
@register.filter
def get_report_title(menu_obj):
"""
获取所有的菜单对象
:param menu_obj:
:return:
"""
f... | [
"1241499917@qq.com"
] | 1241499917@qq.com |
6a365c4146e1e1c107834735b5f35457205291ff | bdb183769c133f25e92dd6f2a9653fe69cecb715 | /fds.analyticsapi.engines/fds/analyticsapi/engines/configuration.py | 745c05de417115239b6199f7ee811b047c402ec7 | [
"Apache-2.0"
] | permissive | saigiridhar21/analyticsapi-engines-python-sdk | 5e6ec364791b63250ef7157eee8635c15e31b4f2 | bb7c3d20c37dc7a30071962f610ad02db6440117 | refs/heads/master | 2022-12-06T22:13:11.551527 | 2020-09-02T17:30:07 | 2020-09-02T17:30:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,160 | py | # coding: utf-8
"""
Engines API
Allow clients to fetch Engines Analytics through APIs. # noqa: E501
The version of the OpenAPI document: 2
Contact: analytics.api.support@factset.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import logging
import m... | [
"afernandes@factset.com"
] | afernandes@factset.com |
ad5bab40d479dd14bb8226a16d9ccc4d7805b718 | f9c0365f4f28700e2a815124a13d80f19ee17fa2 | /app/calculator/views.py | 415f2693332c8715dc6e849143f71a028e7708dc | [
"MIT"
] | permissive | dev-johnlopez/assignably | ddc1062f43c6030e5b0b9470b5bb04178bae1ec3 | 056960556dd75dfce064970887f37a44a8c66aec | refs/heads/master | 2023-02-09T03:20:20.124887 | 2019-12-03T01:30:50 | 2019-12-03T01:30:50 | 188,880,472 | 1 | 0 | MIT | 2023-02-02T04:59:54 | 2019-05-27T16:57:22 | JavaScript | UTF-8 | Python | false | false | 10,975 | py | from flask import g, render_template, flash, redirect, url_for, request, \
Blueprint
from app import db
# from app.forms.search import SearchForm
from flask_security import current_user
from app.deals.models import Deal
from app.calculator.models import Proforma, LineItem
from app.calculator.forms import ProformaFo... | [
"johnlopez@Johns-MacBook-Pro.local"
] | johnlopez@Johns-MacBook-Pro.local |
cae68092f8a6f68f028bad871d76ed88fac3892b | 2079f77161365aaa6b89e00be85f80c09d3edf18 | /Python/PythonFundamentals/9-python-fundamentals-m08-classes-exercise-files/demos/demos/series.py | 4c35b56bb49297b850153de8dd7c10b7bbb2dd80 | [
"Unlicense"
] | permissive | yong0011/Research | 4ad590f26037c8821480eea6cdd14cbf8e99ac41 | 92d9c6d24c30f81467a7616402a24757b0a88c50 | refs/heads/master | 2020-12-02T00:49:38.147443 | 2019-12-11T09:27:03 | 2019-12-11T09:27:03 | 230,835,046 | 1 | 0 | Unlicense | 2019-12-30T02:42:44 | 2019-12-30T02:42:44 | null | UTF-8 | Python | false | false | 312 | py | '''Read and print an integer series.'''
import sys
def read_series(filename):
with open(filename, mode='rt', encoding='utf-8') as f:
return [int(line.strip()) for line in f]
def main(filename):
series = read_series(filename)
print(series)
if __name__ == '__main__':
main(sys.argv[1])
| [
"ngohungphuc95@gmail.com"
] | ngohungphuc95@gmail.com |
c2bad9c8a1bc1bbb43e1d35ccde5911f97d02932 | 410611bc3f2f66506a19a684579be67eeaf8db9d | /batalla.py | 7449bc1413c14a4d98ce8f7c729285caf8a0fc48 | [] | no_license | geronix97/exercici1 | eb801ed0f0f2716fddc780375d071a7e46398f46 | a8ab6af2f18adc39427e3ae24ffd0f044f0a0b66 | refs/heads/master | 2020-12-26T11:49:18.758041 | 2020-02-07T18:55:09 | 2020-02-07T18:55:09 | 237,499,644 | 0 | 0 | null | 2020-02-07T19:41:43 | 2020-01-31T19:17:40 | Python | UTF-8 | Python | false | false | 16,266 | py | import random
class vaixell:
posicio1=[]
posicio2=[]
posicio3=[]
posicio4=[]
tamany=0
tipus=""
vida=True
def enfonsat(self):
if self.tamany==0:
vida==False
return self.tipus+"enfonsat!"
class Taulell:
a = [[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0... | [
"gerard@lacetania.com"
] | gerard@lacetania.com |
644e40c6107325bbd5bc83d943dae5342e6840d2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_347/ch60_2020_06_20_17_50_00_812398.py | c56e6538b8f07b28a41785924f0cb42c34347010 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def eh_palindromo(string):
if string == string[-1]:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
603bbba91b93d5d00d52322fde39e6fdd220e999 | 67c13f25cc77d8eea040efb78287a4af56510cb2 | /modules/__init__.py | 0cd8292cb911976e0a04225d0d888612fa108c76 | [] | no_license | ulgenatakan/fake | 410f11fe442c1a9774600ebadae5dfcc92938fc1 | 524e180c6f14adb060da5c7f7806592d160728ed | refs/heads/master | 2020-08-07T11:36:22.196312 | 2019-10-11T18:33:52 | 2019-10-11T18:33:52 | 213,434,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from .database import db_add_item, db_clear, db_del_item, db_get_all
from .elimination import create_row_data, filter_dicts, eliminate
from .random_mac_generator import generate_devices, print_devices, generate, get_devices
| [
"ulgenatakan@gmail.com"
] | ulgenatakan@gmail.com |
57a0faa230f7260f44d5ae7dbf3ff16be5f6ad0f | 5b3bd326998606188b45a7870852643eda024a97 | /meta_architectures/context_rcnn_lib_tf2.py | 4989db07136dc450d1fa5058e58e27365b79dd29 | [] | no_license | KuznetsovIllya/clearml_od_toy | 31556d0726d15a054c1c18317c361d97801381a4 | 92f15f04a023d4e0e165a250fddc3129144913d0 | refs/heads/main | 2023-04-11T05:55:56.248478 | 2021-04-14T15:59:40 | 2021-04-14T15:59:40 | 357,827,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2ba0224b6fe0f919228a83b2f2a2bef6bbff4e7f747358231bdc235456d58197
size 9287
| [
"illia.kuznietsov@modern-expo.com"
] | illia.kuznietsov@modern-expo.com |
f823640b891cf7e82a82904b7a0dc3559f3ae4ae | b5ed18a8400c0ac287fc2c4a3a7fa4804ee0cc05 | /scripts/run_celery.py | 73db6db576fb3a60adcd2c33436c9d532a574a8e | [
"MIT"
] | permissive | MartykQ/flask-celery-postgres-template | db0e5234afac0f986c0501e0e6dabf4f99f9ac9a | 808d00de77a878ac78442d2956fd54c09fe932f8 | refs/heads/master | 2023-06-29T03:19:37.053167 | 2021-07-28T11:28:12 | 2021-07-28T11:28:12 | 389,961,725 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | """Helper script to make sure celery worker is started correctly"""
from web_app.extensions import FlaskCelery
from web_app import create_app
app = create_app()
celery = FlaskCelery(app=app)
| [
"fmartyka16@gmail.com"
] | fmartyka16@gmail.com |
6ff9ff95fefbaa276dd64e822f01857ee7a656b9 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190608162053.py | ead3b46f62d91c9428c264a9f24afe6a0e5ba598 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py |
class Room1():
def enter():
print("You enter room 1")
class Room2():
def enter():
print("You enter room 2")
class Map():
def __init__(self, starting_room)
self.starting_room = starting_room
self.locations = {
'room1': Room1(),
'room2': Roo... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
83d0a74593c54ec76d33cb5485a9903692decdc3 | 0de5810c702046d8f00c8bcda8543c66f608222f | /venv/bin/tor-prompt | d17b63310b066687ee943f2ad5db6d165708806a | [] | no_license | Subhash1998/product_sale | 26a688869009035e785791cac1fb2707cab1e221 | a76f9e75ea1d96832d9280b98da08d0b3c6520fe | refs/heads/master | 2022-12-12T12:13:37.392530 | 2020-06-18T12:46:45 | 2020-06-18T12:46:45 | 128,992,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | #!/home/subhash/payment/venv/bin/python
# Copyright 2014-2017, Damian Johnson and The Tor Project
# See LICENSE for licensing information
import stem.interpreter
if __name__ == '__main__':
stem.interpreter.main()
| [
"you@example.com"
] | you@example.com | |
b7336e4073879a97412a0238f8bf3bf8ace67454 | 32fa2eac81a214133196294c23ebbc41b066f969 | /data.py | 2155731f858ec4f998e9a23a1fadf16c9055d8a4 | [] | no_license | Animatory/DMD_project | f741aaefb0c94548650bed2226d942bfe38a0356 | 956c3f3495f77c91bee5e49ea5a45ff70df93394 | refs/heads/master | 2020-04-07T14:01:38.565461 | 2018-11-26T20:57:24 | 2018-11-26T20:57:24 | 158,431,278 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | model_classes = ['X', 'S', 'Z', 'C', 'L', 'M']
names = ['ABC', 'XYZ', 'EFG']
colors = ['red', 'green', 'blue', 'yellow']
names = ['Rurk', 'Alex', 'Jhon', 'Ann', 'Jee', 'Markus', 'Marry', 'Stas', 'Li', 'Subham', 'Perry', 'Harry', 'Mia',
'Slava', 'Vova', 'Vlad', 'Olya', 'Jija']
car_parts = [i.strip() for i in ... | [
"rinat.babichev@gmail.com"
] | rinat.babichev@gmail.com |
16cd7bab7cf50b112d42ab69847e26c54e5fe48f | 7575f049b4a8d42d1714dba514e9d3bdb4c45a82 | /maxflow.py | 595e1e0db6dc83e3b5cfa56dd0ef7fc21960f0fc | [] | no_license | thorehusfeldt/proglager | 750cd8f44e466e8141552fc4fdffdd8a66affe69 | 247c592252e327f65a524a0b418fffaaa0182c83 | refs/heads/master | 2020-04-20T11:00:22.006163 | 2019-02-02T11:09:40 | 2019-02-02T11:09:40 | 168,804,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | # Edmonds-Karp with multiedges and capacity scaling
from collections import defaultdict
from collections import deque
n, m, s, t, = map(int, raw_input().split())
N = defaultdict(list) # neighbourhood lists, N[u] = [(w_1, cap_1), (w_2, cap_2), ...]
R = [dict() for _ in range(n)] # R[u][v] = residual cap in G_f from ... | [
"thore.husfeldt@gmail.com"
] | thore.husfeldt@gmail.com |
c3182071b0e894204d18f4939e191f802569f245 | c1d68638ccff1d72dd04e4f85bedf5b3146d1c7e | /site-packages/PytoClasses.py | f61abae06651d5db273c0bf55b7b660deab90c81 | [
"MIT"
] | permissive | luoyu1993/Pyto | ac61f296756a0df9131e50a203cb31efd261b843 | 4f874e0b9203ae8dc0cd447b599358d726c98f10 | refs/heads/master | 2022-07-26T10:44:58.987630 | 2018-12-09T19:05:41 | 2018-12-09T19:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
"""
This module contains classes from the main app used by Pyto.
This module is only for private use. Use the `pyto` API instead.
"""
from rubicon.objc import *
NSBundle = ObjCClass("NSBundle")
def __Class__(name):
return ObjCClass("Pyto."+name)
PyMainThread = __Class__("PyMainThread")
... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
e562f50add3ca69f109499c50dd0a57425564f89 | 9e5e49444a3fe4856e0884cf812926000f51056e | /MBRCommentary/obj/Release/Package/PackageTmp/MBRCommentary/settings.py | b92f015f0d4e3ae50aecf47881afd18610a9aad7 | [] | no_license | comonroe/mbrcommentary | e8a3c0b74a4e50e9662303951294df20816c8bbe | a703afebbcc2c12c30c7b7617547e34c2171de95 | refs/heads/master | 2020-08-30T01:21:24.916820 | 2017-06-21T19:25:44 | 2017-06-21T19:25:44 | 94,387,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | """
Django settings for MBRCommentary project.
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import... | [
"coleman.c.monroe12@gmail.com"
] | coleman.c.monroe12@gmail.com |
a7eab3d12285d063f0110ae15dee34d6fe079b01 | ccef9fa406db259f0db515a39bb28691f506b30f | /mnist.py | cc59d6d043838ae1abc321f8df555393ba41132a | [
"MIT"
] | permissive | fanchy888/digit_ANN | 5358564b0691a132bcc90231db9eaa7d10f2591c | 5faf0e574321ff5e3c6b8ec82992d20177be15a0 | refs/heads/master | 2020-03-28T17:08:52.344050 | 2018-09-25T08:48:11 | 2018-09-25T08:48:11 | 148,761,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py |
import numpy as np
import struct
from PIL import Image
import os
data_file = 'train-images.idx3-ubyte' #需要修改的路径
# It's 47040016B, but we should set to 47040000B
data_file_size = 47040016
data_file_size = str(data_file_size - 16) + 'B'
data_buf = open(data_file, 'rb').read()
magic, numImages, numRows, numColumn... | [
"fanchy888@gmail.com"
] | fanchy888@gmail.com |
d62122698bcb4a6081b643082fd8fb9a2df8278c | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /pqu/Check/t07.py | e3c5cacee7c2ca293bce9a269a6a1976e4be1703 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 972 | py | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import sys
sys.path.insert( 0, '../../' )
from pqu.PQU import PQU
print()
a2 = PQU( "2.300000000000(1) MeV" )
print(a2)
pri... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
f8d82c2d92729091f1103b49971f703460124072 | a696aefd4af0fd0f5d9573136e86caeb912c0fce | /Naive Bayes Classifier/nblearn.py | f50194e11cd549934b86195a7155512eb8bb1e1a | [] | no_license | soumyaravi/NLP | 137493bec7c492addb9358f07cc3ed69cbd744f8 | 4ab513388d278d8f3efcbcd6fd3ab17e820bc957 | refs/heads/master | 2020-05-30T19:10:06.352700 | 2017-01-27T02:06:22 | 2017-01-27T02:06:22 | 69,060,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | import sys, os
spam = {}
ham = {}
prob_spam = {}
prob_ham = {}
distinct = {}
# read the files and split it into tokens
# call the required functions from the main function
def main(args):
spam_files = 0
ham_files = 0
for subdir, dirs, files in os.walk(args[0]):
for file in files:
if (... | [
"soumyara@usc.edu"
] | soumyara@usc.edu |
d1b60da90d9782510c69bfde3e81f8eda6aea1e4 | c72ad7227924948f5ec6b402e476144c2997d47a | /learn_python_the_hard_way/ex11_ex12.py | fb13d3141a3468b495be0238b136588afbd7fe0f | [] | no_license | AbyAbyss/python | da510817df2876b6f9264a03c6025b414513ec0c | d5386685d5406bb745dc22b926d531005943cd1b | refs/heads/master | 2021-09-25T22:25:04.234344 | 2018-10-25T22:45:59 | 2018-10-25T22:45:59 | 105,034,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # ex11.py and ex12.py done in python3
# raw_inupt() was renamed to input() in python3
# input() will always take string, int(input()) is used to convert age to int
age = int(input("How old are you? "))
height = input("How tall are you? ")
weight = input("How much do you weigh? ")
print("So, you're %r old, %r tall and %... | [
"abyrocksaji@gmail.com"
] | abyrocksaji@gmail.com |
21894e55971b88bf10b449c64acfb93fcede1059 | 146a64a969476f4f8e62959991518193d062fbf1 | /Week 2 Table Import/import_january_data.py | a4d2675d2d3eb9a0b85dfd9619402240e50d4623 | [] | no_license | qandrew/Andorra-UROP | 9ad913b6d73ec4c8fcccf631b184fa7190a20323 | d3c9cf9b273135f0441c17471b2bb8676194ba9a | refs/heads/master | 2021-01-10T04:49:34.577740 | 2016-03-23T01:09:39 | 2016-03-23T01:09:39 | 53,598,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | # March 4 2016
# Andrew Xia importing Data for Andorra Media Lab UROP
# input: DWFET_CDR_CELLID_201501.csv.
# we want day, city, hour, cell phone tower (and others also)
import os
import csv
print 'started'
# print os.getcwd()
#os.chdir('/run/user/1000/gvfs/sftp:host=andorra.media.mit.edu/home/data_commons/cdrs')
... | [
"axia@mit.edu"
] | axia@mit.edu |
a96f77fd3df9978f4177dda73f49efb9812076f4 | 46c91eba77a1564f911064c95aa5a730f8dd7bfe | /decoder.py | 9d9e8b58fe1c5bb30fab4acd493fe73636bb8baa | [] | no_license | chayan/image_captioning | 2e5ec156b9ed417bd6f8441219e64f777ef4875b | b0771d2cb50b86c144c0c0e7e4175591979bdffe | refs/heads/master | 2020-04-21T20:09:54.606283 | 2019-02-09T06:18:58 | 2019-02-09T06:18:58 | 169,833,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,556 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 9 09:33:46 2019
@author: chayan
"""
#import tensorflow as tf
#from tensorflow.contrib import keras
#L = keras.layers
#import vocab_utils as vutil
#
#vocab = vutil.get_vocab()
#
#IMG_SIZE = 299
#IMG_EMBED_SIZE = 2048
#IMG_EMBED_BOTTLENECK = 120
#WOR... | [
"noreply@github.com"
] | noreply@github.com |
6f6d4de96ca0a1c2543a30b808a0d01e7cebf842 | 7b0f8e5e3dd02f47096bc35322063c7581f95aca | /chapter12/avazu_ctr/future_selection.py | 51daffbfe3d66f4915cfa3d050b08282ce2e8a3f | [] | no_license | michaelliu03/Search-Recommend-InAction | 94f8342573fffa0016bc6b66b0100a81423e5438 | 06408c9a4ec23aad0e604267903be96cb2892ea1 | refs/heads/master | 2022-02-25T21:57:56.445082 | 2022-02-17T10:45:15 | 2022-02-17T10:45:15 | 226,252,089 | 40 | 17 | null | 2022-01-10T09:53:50 | 2019-12-06T05:24:50 | Python | UTF-8 | Python | false | false | 3,906 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
# @File:future_selection.py
# @Author: Michael.liu
# @Date:2020/6/4 17:49
# @Desc: this code is ....
import pandas as pd
import numpy as np
import xgboost as xgb
from xgboost.sklearn import XGBClassifier
from sklearn.metrics import accuracy_score
from sklearn.metrics import roc... | [
"liuyu5@liepin.com"
] | liuyu5@liepin.com |
4a5381736226c7eb801e79763c2469848140b24c | a1e8d1211e2265fa91a044c7a70534938a16ba7c | /summarization.py | 41c4c996d9c706a58639a7115c07104266b4cabd | [] | no_license | tamires/HS-MVideoSumm | 7abe0116a2c0b801caeee4ed29e278826e9ad9bd | 4788101895d75bf01b1f7b8770c376b47c1adc2a | refs/heads/main | 2023-06-25T09:56:02.528467 | 2021-07-27T20:22:05 | 2021-07-27T20:22:05 | 360,651,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | import os
from moviepy.editor import *
import utils
def get_reference_info(redundancy, segments):
"Obtem informacoes necessarias para a producao do sumario, em especial, para cronologia."
# estrutura:
# info {} -> armazena, para cada topico, o numero do texto de origem ("text") e
# posicao do top... | [
"noreply@github.com"
] | noreply@github.com |
15b779590d80c43d72cf8b994fd28ae31823e94b | e54852b7a28d617f249c26bc2a7baa1a71d2000f | /LeetCodePython/559.n叉树的最大深度.py | 456c32d53b806bd4fb7824906a9aaade6e507371 | [] | no_license | CarnoZhao/Leetcode | 4aaa77fdf168779e4182900b6cc38d522291009f | 61e03e55e93fb909f01f1b318fe1014badb6d93b | refs/heads/master | 2020-05-17T09:48:40.888108 | 2020-01-09T07:10:27 | 2020-01-09T07:10:27 | 183,642,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #
# @lc app=leetcode.cn id=559 lang=python3
#
# [559] N叉树的最大深度
#
# @lc code=start
"""
# Definition for a Node.
class Node:
def __init__(self, val, children):
self.val = val
self.children = children
"""
class Solution:
def maxDepth(self, root: 'Node') -> int:
if not root:... | [
"43026195+CarnoZhao@users.noreply.github.com"
] | 43026195+CarnoZhao@users.noreply.github.com |
2e32069c83261894997d74d96a146dafe51ebab7 | 4a89841fa3a73a6826d47d1e66f965759335118b | /askbot-devel-master/askbot/management/commands/send_unanswered_question_reminders.py | 42ce51196170a8a2bd64d75309e60f36b0ad5fb4 | [] | no_license | liyonghelpme/askbotDataWriter | 38e2515712a8a6f9db45ce69ba21d36fd1e2dcc9 | f88d343f8fd699b2d55b94d6dff4edda8e352301 | refs/heads/master | 2021-01-22T10:08:01.173519 | 2013-07-19T07:12:35 | 2013-07-19T07:12:35 | 11,522,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | from django.core.management.base import NoArgsCommand
from django.template.loader import get_template
from askbot import models
from askbot import const
from askbot.conf import settings as askbot_settings
from django.utils.translation import ungettext
from askbot import mail
from askbot.utils.classes import ReminderSch... | [
"liyonghelpme@gmail.com"
] | liyonghelpme@gmail.com |
325ef11b155fbaa8e4e993bad295a14bd10f0da1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2698/60825/298860.py | fabee180d1ca0e439e1ce0a2a785aa0d0d867e9a | [] | 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 | 345 | py | t=""
while True:
try:
ts=input()
t+=ts
except:
break
if t=='2 2':
print(3, end='')
elif t=='3 5':
print(58871587162270592645034001, end='')
elif t=='2 3':
print(21, end='')
elif t.startswith('2 4'):
print(651, end='')
elif t.startswith('4 3'):
print(83505, en... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
249262a720d03350f1217fcb41e876722b33343e | d3eb39fd54b8eaed104cee33da853b904b244344 | /src/Analysis/MC/plot_ac_sums.py | 7ea34bfd2c9fa1faa64044df8b33d66da70d7fb0 | [] | no_license | MuffinSpawn/Dissertation | aab509c879752067cf799bd77abcf3cccf6eeff2 | 87047ecfbb41ab3dcde5db4c3c9768926afa27bb | refs/heads/master | 2021-01-25T13:06:08.733871 | 2018-03-02T05:16:27 | 2018-03-02T05:16:27 | 123,528,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 19 16:28:19 2016
@author: plane
"""
#%load_ext autoreload
#%autoreload 2
import math
import subprocess as proc
import sys
import platform
import numpy as np # NumPy (multidimensional arrays, linear algebra, ...)
import matplotlib as mpl
import matplotlib.... | [
"muffinspawn@gmail.com"
] | muffinspawn@gmail.com |
f769efd583a1443d13ef6822ba32e7143583ca0e | e909e9bb4b2e54bb64d6bee9cf9fbaf14c584e04 | /malib/rpc/data/data_client.py | 9f234eee232e8402b6f1b1d21719a6bc1572db22 | [
"MIT"
] | permissive | zhihaolyu/malib | 9cd8fdcdc1c613c11fc1e6f385adac5312474509 | 1c7ca1819325796a6ec604aa1ae8c771708fc50c | refs/heads/main | 2023-05-13T03:41:05.211832 | 2021-06-08T04:35:10 | 2021-06-08T04:35:10 | 374,880,657 | 0 | 0 | MIT | 2021-06-08T04:29:26 | 2021-06-08T04:29:25 | null | UTF-8 | Python | false | false | 385 | py | import grpc
import sys
sys.path.append("..")
from ..proto import data_pb2_grpc, data_pb2
def send(server_port, **kargs):
with grpc.insecure_channel(server_port) as channel:
stub = data_pb2_grpc.DataRPCStub(channel)
pr = data_pb2.PullRequest(
type=kargs["tid"], schema_id=kargs["sid"],... | [
"kornbergfresnel@outlook.com"
] | kornbergfresnel@outlook.com |
2bdac2a7ef87c9f5e2fa61c75798686e288c01d7 | df0e28b0e218372cbdc649b282ccab31ed48946c | /setup.py | 5d94c42b2850e0807faf17f80dd4994bf68a763c | [
"MIT"
] | permissive | vargash1/vBinaryTree.py | 2945e8f246f278871e57c3597b1e94233ac00cc3 | aabf53d25e213e568eabf0bee7e307eb5468661f | refs/heads/master | 2021-01-10T02:12:09.552644 | 2017-06-02T18:58:29 | 2017-06-02T18:58:29 | 45,970,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: vargash1
# @Date: 2015-11-11 03:42:08
# @Email: vargash1@wit.edu
# @Name : Vargas, Hector
# @Last modified by: vargash1
# @Last modified time: Wednesday, August 17th 2016, 7:30:53 pm
import os
from setuptools import setup
# Utility function to read the REA... | [
"vargash1@wit.edu"
] | vargash1@wit.edu |
63568f42668b1cb677e679e4790b41644c7a5172 | 316210a64f9cd5836571396104170a460a2ef625 | /Example/PlotTrajectory1.py | 96d7e271343c090f2f91df9c3bb431751098fa18 | [] | no_license | llcc343/PL_VO | 6547d28a39941568951af758e56b94cc2d7d1703 | a33a371e3194e807f9deeb2de2fde7cf825ad855 | refs/heads/master | 2023-06-22T19:57:19.657836 | 2018-03-08T03:21:35 | 2018-03-08T03:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # import necessary module
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
# load data from file
# you can replace this using with open
data1 = np.loadtxt("../cmake-build-debug/tum_trajectory1.txt")
data2 = np.loadtxt("../cmake-build-debug/groundtruth1.txt");
tx = data1[:, 1]
... | [
"452271058@qq.com"
] | 452271058@qq.com |
ff1bf64c5cb89b7c89723338a47cc6801ec96ed2 | 19650491514004f5a9fba674ab3ff481b15d55f5 | /mail.py | 2adc6a18cf9a55b33cfe66c7e378d04250da6742 | [] | no_license | Felraya/LockHome-2 | a5eeff6e800c0bb4bf032f9b94688dd9aaf84a3b | 0e5c3ac72dda067c3cfa144e97d5947636f622b1 | refs/heads/master | 2022-10-24T02:56:03.063549 | 2020-06-22T13:18:53 | 2020-06-22T13:18:53 | 274,114,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | import smtplib
from string import Template
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
#to accept less secure applications
#https://myaccount.google.com/lesssecureapps
#CONSTANTS
MY_ADDRESS = 'mylockhome@gmail.com'
PASSWORD = 'lockhome_85'
#VARIABLES
DEST_MAIL = 'adri85be... | [
"adri85bernard@gmail.com"
] | adri85bernard@gmail.com |
583f053a5f5f31217decbeaed149f301f2056bf9 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /.c9/metadata/environment/database_submissions/dup_query.py | 537917265b85ff92fabc4fa0426f9e0112175932 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 24,298 | py | {"filter":false,"title":"dup_query.py","tooltip":"/database_submissions/dup_query.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":81,"column":58},"end":{"row":81,"column":59},"action":"insert","lines":["="],"id":1827},{"start":{"row":81,"column":59},"end":{"row":81,"column":60},"action":"insert",... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
c1e1c4a84a8d39bcd2026e291f5dc94c6b2300a3 | 8c5a1efaef84c5208c5887d0d7044192d113f93b | /Source/plugin.video.sample/default.py | d982bc12d21e89e1393f1d79b5cec3cddf237d46 | [] | no_license | gitter-badger/YPC | e18cf9c1f73e85a1d095e1048388d09119a981fb | 870578b3728f40bfea28d34dbdaf2de323170ea2 | refs/heads/master | 2020-04-04T21:31:52.729669 | 2015-12-05T06:22:50 | 2015-12-05T06:22:50 | 48,638,355 | 0 | 0 | null | 2015-12-27T08:33:54 | 2015-12-27T08:33:54 | null | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
# Based on code from youtube addon
#------------------------------------------------------------
import os
import sys
import plugintools
import xbmc,xbmcaddon
from a... | [
"marduk191@gmail.com"
] | marduk191@gmail.com |
c72e6534d57e3dd3bc29b4a3c2aea036437df45e | 009096c66d3b8072cc4f079d0f9b043a6626f4b8 | /visualize.py | 7abeba40fe95cabaae2e9db607b7864b633d89d0 | [] | no_license | ytwushui/tile_defect | cfba068a0498a68612eabc044bc244d49a6eb264 | dafe4767b9c51bb8e2de959641100f249db74706 | refs/heads/master | 2023-02-08T19:09:06.116688 | 2021-01-04T05:52:53 | 2021-01-04T05:52:53 | 324,282,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import cv2
import numpy as np
class Visualizer:
def visulize_orig(defects_dataloader_train):
# the type of dataloader is [0] for original [i] for ith image(depending on batch size) 0 for channel
# the last 0 is negligible, heer we need to merge the 3 channel original pic with the single channel lab... | [
"wy710@163.com"
] | wy710@163.com |
a3d0b31035ad6f2f5e0791e55ddbc835e3dea369 | e0262bf061e7a11b78a83eeb5f9fc196254dfa8b | /GenerateOnnxPerfData.py | f17ed3721128a78a62f72d882d11398a9dce6a6d | [] | no_license | motus/onnx_perf_data | d70f9c7f46aea729b65ed4fa9394447e7e1b4650 | b834d1a07b09790a17a941c6336fff92efd393d9 | refs/heads/master | 2020-11-26T17:45:52.386902 | 2020-04-29T00:35:18 | 2020-04-29T00:35:18 | 229,163,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python3
r"""
Generate test data for ONNX Runtime onnxruntime_perf_test tool.
Run:
python.exe GeneratePerfData.py --model .\model\model.onnx --output .\model\data\
This call will create a directory ./model_data/ and produce protobuf files
containing data for ONNX model inputs, one file for each inpu... | [
"sergiym@microsoft.com"
] | sergiym@microsoft.com |
d5e9da7158d1d9e5da3315f240ce40a568384534 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/13114025.py | 94da046c51675f492cbb850c1728133a7ed747e7 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/13114025.py generated: Wed, 25 Jan 2017 15:25:30
#
# Event Type: 13114025
#
# ASCII decay Descriptor: [B_s0 -> (phi(1020) -> mu+ mu-) mu+ mu-]cc
#
from Configurables import Generation
Generation().EventType = 13114025
Generation().SampleGenerationTool ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
95217192c353378d62e5bf472e9fe7efb3b4f83e | d4f9d104479b6f9a64175a3fe8554860bf0d62b2 | /popular_words.py | 77bfe82384de8cab45193f40caf3c730eae4076c | [] | no_license | pohily/checkio | 9a09c9c52b4f07438cfe4e00914e8d1cfe844c5d | 8a0a49126af6e09b9e5e6067f28efbf085cd87f6 | refs/heads/master | 2020-05-16T03:18:18.068186 | 2019-07-06T13:22:20 | 2019-07-06T13:22:20 | 182,674,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | def popular_words(text: str, words: list) -> dict:
# your code here
text = text.lower()
result = {}
for word in words:
text1 = text
count = 0
while text1:
if word not in text1:
break
found = text1.index(word)
if found != 0:
... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
dd9dda3934d0b1202eb87e210710a14d45fce19a | a0929da4ad91f9d271b3da8fb7a64f351c993774 | /Week03-consuming XML/py08-trains.py | 824abbed664ad6d619e4f9b23fa8aa575ac14dc0 | [
"MIT"
] | permissive | bexiturley/DataRepresentation | 6ca7a522d190cb8d5530bebf3ee625be632cb13a | 30a20cd737e6c63d0f3d6e50b5f65b4742df76aa | refs/heads/master | 2023-01-04T09:23:46.478585 | 2020-10-22T12:17:16 | 2020-10-22T12:17:16 | 299,306,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py |
# This program gets all the trains that are located south of Dublin
# and stores the data associated with them
# A program like this would normally store all the data into the csv file
# and let another part of the program analysis the data.
# I am only doing this to demonstrate how you can reduce a dataset as you a... | [
"bexiturley@gmail.com"
] | bexiturley@gmail.com |
72ea75c6443a35f07952a2a265ddc5a6f52c1814 | e13f571a26c22f3867a4134d7be9cbd2e85baf78 | /ast_reductions.py | d46748b610d1f27eee4cb7941a1541ef769f7b1d | [] | no_license | teberger/cs554-project2 | 0e2796a5b9f085cf7cea453a8d0c6d6bb2bf2de0 | fd0b8feec04ff2e015c646f1266bbe5a3462a1fd | refs/heads/master | 2021-01-13T01:58:44.831568 | 2014-12-01T06:50:58 | 2014-12-01T06:50:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,191 | py |
from cfg import Grammar, EOF
from ast_parser import Parser, Rose_Tree
import pydot
def simplify_ast(ast):
'''Reduces the AST to a concrete syntax tree (CST), which removes
all the extraneous non-terminal symbols and creates a logical
program structure.
For example a _while_ loop should be represente... | [
"tberge01@cs.unm.edu"
] | tberge01@cs.unm.edu |
4a0aba86ee4d608bc14315f230e19377831ef137 | 7b85adcdb8383d853b576d1fc0ac81431d3c1958 | /blog/views.py | ec6c8f0b61060625f78e28eacb9618b303e570c2 | [] | no_license | imsharvanj/portfolio | 1a6baf257a42a84eef6efa2bceba4e3090f8821e | f9af19c31501e0a56e1ba275f0cb9e921eafc1ed | refs/heads/master | 2020-09-05T15:39:13.550136 | 2020-05-03T18:08:29 | 2020-05-03T18:08:29 | 220,145,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.shortcuts import render
from django.shortcuts import get_object_or_404
from .models import Blog
# Create your views here.
def allblogs(request):
blogs = Blog.objects
return render(request, 'blog/allblogs.html', {'blogs':blogs})
def detail(request, blog_id):
detail_blog = get_object_or_404(Blog,... | [
"imsharvanj@gmail.com"
] | imsharvanj@gmail.com |
4454ab9a9dac1ad7a248c47a69b70de9fd2fbbc8 | 931593c3bdaab1b28b389e0717341cff59543e02 | /Python/third-maximum-number.py | 02e43e5d45d504058a8a309595ecc6a990df5d28 | [
"MIT"
] | permissive | Kakoedlinnoeslovo/LeetCode | 56719a0a2b5aa95e08cfcf7826da6041da82ae44 | 63f59214430fb899cd1436532b310d1687f33f55 | refs/heads/master | 2020-05-03T18:54:42.075923 | 2016-10-10T08:14:39 | 2016-10-10T08:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # Time: O(n)
# Space: O(1)
# Given an array of integers, return the 3rd Maximum Number in this array,
# if it doesn't exist, return the Maximum Number.
# The time complexity must be O(n) or less.
class Solution(object):
def thirdMax(self, nums):
"""
:type nums: List[int]
:rtype: int
... | [
"noreply@github.com"
] | noreply@github.com |
2677c37484b604158cb49492aa1b8bab56eead09 | 64ec6605fbdd2f65779f2305840897a10857e24c | /collector.py | defb8b388f3d17ac5cdac36ae16ea943ac1a43ef | [] | no_license | Ckzzz1/Homework2 | ff0c16dea7a9128b4647e0340d749da438c2d6ee | 4f8e00a5b4a3d545b018220c4c1424c815714353 | refs/heads/master | 2020-05-18T20:13:04.948211 | 2019-05-02T17:55:18 | 2019-05-02T17:55:18 | 184,626,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | import requests
import time
code = {"年末总人口": '"A030101"', "男性人口": '"A030102"', "女性人口": '"A030103"', "经济活动人口": '"A040101"', "农业总产值": '"A0D0402"', "林业总产值": '"A0D0403"', "牧业总产值": '"A0D0404"', "渔业总产值": '"A0D0405"'}
globals = {
'true': 0,
'false': 1
}
def gettime(): # 用来获取 时间戳
return int(round(time.time()... | [
"chenkangzzz23@gmail.com"
] | chenkangzzz23@gmail.com |
aed9d8a521f0e1c53b73413d7f5f5d17712daaff | 478a4a0495fafc62000dc53cef749b87b7a9be55 | /virtual/bin/pip3 | 95352667bd7817eab73dd4a6da56bdc610064dcd | [] | no_license | DavidNganga/simple-error | 696a0f9e6482b38c5670b5d618120a9220b7fcaf | 351c5ace3c1487570d19ee0b5e0ade70d40f1b1c | refs/heads/master | 2020-03-18T23:38:56.974235 | 2018-06-03T15:30:48 | 2018-06-03T15:30:48 | 135,416,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/home/david/simple-error/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ngashiedavid@gmail.com"
] | ngashiedavid@gmail.com | |
3e38359b554e84357eb028484eb265f71435fb2d | d3417e6c71a351d1a29098c454a204578a302ef4 | /staff_version.py | 2d98876ee9e4d4bdd70fce66f71ebfbed9976887 | [] | no_license | GeethikaSuharshani/Student-Progression-Outcome-Prediction-System | 685b81df8153665a2e2d7bc516d54c3d51471f82 | 9713fbbb994f1e4369244e118e2394ddd4b4d882 | refs/heads/main | 2023-04-30T08:51:35.705173 | 2021-05-17T15:40:19 | 2021-05-17T15:40:19 | 368,132,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,885 | py | # start of user-defined functions
def introduction(): # gives an introduction about the program
print('''Hi, This program will be allowed you to get your students` progression outcome of this academic year.''')
print()
print('To get a student`s progression outcome, please enter the following details of th... | [
"61249152+GeethikaSuharshani@users.noreply.github.com"
] | 61249152+GeethikaSuharshani@users.noreply.github.com |
17f4fc655f4d36fb7ed667cc4f4de886cc99a35b | 561d351ca16e3cb4c121445624620c7d727eebbe | /LeeBros/모의시험/조삼모사.py | 68cd45d28137f7c05e7edd07184b7357143d2bd5 | [] | no_license | lcg5450/algorithm | 7a91b032a731978a8124c64d2ae01ad323ed659d | 88d99e60b9707c916c86cb01f4e09cda36d2c41f | refs/heads/master | 2023-03-21T05:32:15.545646 | 2021-03-11T05:56:33 | 2021-03-11T05:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | n = int(input())
arr = []
for i in range(n):
arr.append(list(map(int, input().split())))
both=[]
diff=[]
for h in range(0,n,w):
for w in range(1,n,2):
both.append(arr[h][w] + arr[w][h]) | [
"seoyoung_00@hufs.ac.kr"
] | seoyoung_00@hufs.ac.kr |
8efe74872adef5632364a95d1cc58619fe6392aa | 9dded9364d7a5dd969c7ebb3026c884c8bd3053f | /AUDIOCATE/APP/migrations/0007_bookmar.py | 3f48ecfe06144f2fa60f1fab68e12ab87a7f095c | [] | no_license | ehizman/AUDIOCATE | 5a45828b3e1c6de16826e45195e68b8b0e08ab25 | edbd7677025d4a431240bf253966d11658e7652d | refs/heads/master | 2023-01-31T03:48:05.645443 | 2020-12-16T02:31:02 | 2020-12-16T02:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.4 on 2020-12-14 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('APP', '0006_explore_date'),
]
operations = [
migrations.CreateModel(
name='Bookmar',
fields=[
('id',... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
9735c162d8b0e9232fff475b339a46daf883680c | 1d5976ffa323596ed0f1a60646c5ed45b2753f6f | /get_releases.py | 1a7e067ca3b68d2073d4400fc192baca9c72cdce | [] | no_license | ming4real/pymender | 7cc8f4ba5dfe363396c2e27c599cd0867552d970 | 7fea1975858a26cc6fed8cf4294a766004e4442d | refs/heads/master | 2023-07-01T08:55:40.497154 | 2021-08-09T09:39:50 | 2021-08-09T09:39:50 | 394,232,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | #!/usr/bin/python3
import configparser
import json
import mysql.connector
import pymender
config = configparser.ConfigParser()
config.read('config.ini')
username = config["mender"]["username"]
password = config["mender"]["password"]
db_host = config["database"]["host"]
db_user = config["database"]["user"]
db_passw... | [
"ming@siliconbladeconsultants.com"
] | ming@siliconbladeconsultants.com |
aab43a32bb73e22eec08bb5f0047cfe3df1306c8 | 466130cdd16cb6283a8c8545202455734ffcc852 | /SConscript | 6f2a9fdcc36907f8671da11c6f3e482a2c797693 | [
"Apache-2.0"
] | permissive | Guozhanxin/tcpserver | dc9cf2d90245fa1bf56738b988a767461ed5bb0c | f37429584db669984a2d453220eb067733993d78 | refs/heads/master | 2022-06-18T06:02:00.252808 | 2022-05-19T02:33:55 | 2022-05-19T02:33:55 | 196,307,789 | 6 | 6 | Apache-2.0 | 2022-05-19T02:33:56 | 2019-07-11T02:44:17 | C | UTF-8 | Python | false | false | 284 | from building import *
src = ['tcpserver.c']
cwd = GetCurrentDir()
include_path = [cwd]
if GetDepend(['PKG_TCPSERVER_SAMPLE']):
src += ['tcpserver_sample.c']
group = DefineGroup('tcpserver', src, depend = ['PKG_USING_TCPSERVER'], CPPPATH = include_path)
Return('group')
| [
"guozhanxin@rt-thread.com"
] | guozhanxin@rt-thread.com | |
9f9ec82dae908a1835582a9ba4ff8f9f610f7a5a | cee3863c2cdc531734091353df3a95f52c9cf978 | /SecondProgram/Modules and Functions/TKINTER/frames.py | 7caeb7e995e823d1852f80021fbe34434e096407 | [] | no_license | evaristrust/Courses-Learning | b6dc0d0ed12e5aa4d06e37efcb5ca1bb266091af | c2040b12b78c6819927faada99d03d1637c6a564 | refs/heads/master | 2023-07-16T13:40:41.518558 | 2021-09-05T08:43:26 | 2021-09-05T08:43:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | try:
import tkinter
except ImportError: # python 2
import Tkinter as tkinter
# print(tkinter.TkVersion)
# print(tkinter.TclVersion)
# tkinter._test()
# Try something out of tkinter
main_window = tkinter.Tk()
main_window.title("INTRODUCTION TO TKINTER")
main_window.geometry('640x480+8+200')
label = tkinter.... | [
"evaristenizey@gmail.com"
] | evaristenizey@gmail.com |
a6c86e6bb027e41f316e6cc38c464aac0eb447e7 | dd7c22891de26e4c90c3ba7e71c0dd2b65e83740 | /ConvertHtmlToExecl1point3acre.py | ac52e7bcf55f48e88b95a166bc79174f5f1228f2 | [] | no_license | Leogaogithub/pythonUtils | 572dbdf45bfa18d5b2ad258ab045918a32dc56ce | 464877f9b2a50434587fe0abfdf4b5218368047c | refs/heads/master | 2021-07-03T03:20:10.812998 | 2019-03-31T22:55:18 | 2019-03-31T22:55:18 | 146,221,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | # This Python file uses the following encoding: utf-8
import os, sys
from lxml import html
import csv, os, json
import requests
from exceptions import ValueError
from time import sleep
from lxml import html
from lxml import etree
# https://www.python.org/dev/peps/pep-0263/
from FileReader import FileReader
from Excel... | [
"longhaogao@gmail.com"
] | longhaogao@gmail.com |
209448ef6a5c27fc999b9937731a9e813d506e57 | c7f49a513978561dfa2eac9a5b32ae9833772a82 | /ecommerce/users/migrations/0001_initial.py | fa39af867dfc9a3df26e06b50c02160ca1e1114b | [] | no_license | Darioc2280/ecommerce | b00932ba90d51aec3e285915932b8385776af5d7 | c54236966b9991ee62c13f985ed822232faf86e5 | refs/heads/master | 2020-09-24T06:00:21.666452 | 2019-12-04T16:22:13 | 2019-12-04T16:22:13 | 225,682,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | # Generated by Django 2.2.2 on 2019-12-03 18:49
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"jcvb2004@gmail.com"
] | jcvb2004@gmail.com |
b1e4c8de22d0b5e677f7feaf538511f49067c141 | 99f01660e30d7e6267c107689a762159564f680d | /four.py | c4676ec9640a325b87345832b6df9d35aaa530be | [] | no_license | saurabhsood91/advent-of-code | c3c837176fe825b2ffa1a8a27eb98fce9f7fc84b | 4aae6539b544b07c2c625e8789e0ccb22ef4f1a6 | refs/heads/master | 2020-09-24T17:23:42.015575 | 2019-12-11T07:31:23 | 2019-12-11T07:31:23 | 225,807,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | MIN = 254032
MAX = 789860
def in_range(num):
return num >= MIN and num <= MAX
def ltr_does_not_decrease(num):
digits = [int(char) for char in str(num)]
prev = digits[0]
for digit in digits[1:]:
if digit < prev:
return False
prev = digit
return True
def contains_doub... | [
"saurabhsood91@gmail.com"
] | saurabhsood91@gmail.com |
0d9a39959f87ab5c544d3d87cf06fa0b349d1680 | 81efc66e005091a94983238ab44d3102e8c6d35b | /final_submit_sourcecode/source_code/read_data_pd.py | c0d3af5da0deab56e967e9893c505af2c3232bec | [
"MIT"
] | permissive | weslai/stabilo_ubicamp2020 | de4bc8ddd4a8efdb1f68b491b6c61aedfa6372e6 | 3caeca909836ad86430693322500f20b51745927 | refs/heads/master | 2023-01-19T14:02:41.813789 | 2020-11-24T22:36:24 | 2020-11-24T22:36:24 | 315,753,042 | 0 | 0 | MIT | 2020-11-24T22:37:23 | 2020-11-24T21:09:20 | Python | UTF-8 | Python | false | false | 10,079 | py | import os
import sys
from typing import List, Tuple
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from icecream import ic
from pandas import DataFrame
from stage_1.utils import as_windowed_np
ic.includeContext = True
max_raw_vals = {"Acc1": 32768, "Acc2": 8192, "Gyro": 32768, "Mag": 8192, ... | [
"we8403964@gmail.com"
] | we8403964@gmail.com |
224ef1320f603a86c4059b47859ebb3afa4c02b3 | 4ab1f49be834eb4ac9fd87edae94b338cbe97044 | /test/test_flask_wtk.py | e79734821074cdddfd797cda96ad55bd6f0548d9 | [] | no_license | chenchonghust/pywtk | 19dac2613c694654b672a3de825a171fab215a2e | 230164a3eaa872a01f24b3686e821d7c38f62a18 | refs/heads/master | 2020-04-05T02:15:00.662526 | 2017-07-26T15:40:49 | 2017-07-26T15:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | import json
import numpy
import pandas
from unittest import TestCase, skip
import flask_wtk
from pywtk.wtk_api import FORECAST_ATTRS
import urllib
class TestFlaskWTK(TestCase):
def setUp(self):
self.app = flask_wtk.app.test_client()
def test_sites(self):
site_id = "102445"
req = '/site... | [
"harry.sorensen@nrel.gov"
] | harry.sorensen@nrel.gov |
711832ad027cebcd4da1a6f103b54de05e2338a2 | a819210511351f55f799040c40dd193a83572919 | /session4/creat2.py | 03e85e26a61ee833203e872a99b676cdac224969 | [] | no_license | notthumann/nguyentrangan-fundametals-c4e22 | 39f1b1ed90e54a348c95c276ff2ec787d2cd5d06 | 259e3cf7c9eb9d3299742e33cce36190f7591fcd | refs/heads/master | 2020-03-29T14:16:30.534116 | 2018-09-30T17:09:20 | 2018-09-30T17:09:20 | 150,008,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | movie = {
"film":"Pulp Fiction",
"year":1994,
}
movie[input("Keys?")] = input("Value?")
print(movie) | [
"xero0696@gmail.com"
] | xero0696@gmail.com |
a373cc0a67cbee414789762011dca58198fc5ca6 | 015db123e6c79968787965390a71a877be1b87b4 | /djangoSite/djangoSite/settings.py | 7811deb553f454a884dc13327d757f6b6cde87e7 | [] | no_license | IncredibleQuark/pythonIntro | 9894f9e6456f48b01c7b2837d5e0a9a9fb96d33c | 399b77e43d23b25b05d1779f92a6a73bf98b0c6d | refs/heads/master | 2020-03-22T14:46:14.020414 | 2019-01-13T18:50:17 | 2019-01-13T18:50:17 | 140,204,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | """
Django settings for djangoSite project.
Generated by 'django-admin startproject' using Django 2.1.4.
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... | [
"lkupinski@gmail.com"
] | lkupinski@gmail.com |
2f6a1eeb798db63a03d8bc5094e0b47cfa06081e | f616e5d8d09e156c0fa1b08241106121eca9c810 | /alipay/direct/operate.py | 6014ded1fba2ee5c579c71406e46aa49db3e10b6 | [
"BSD-2-Clause"
] | permissive | amyhoo/payment | 8516226fa6bea8cec1270fb5e3406aa86f2a72e0 | c243450681650bc3318a337bd550ae0af44ba3e7 | refs/heads/master | 2021-01-10T13:47:31.340937 | 2016-01-07T01:57:15 | 2016-01-07T01:57:15 | 42,905,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # -*- coding: utf-8 -*-
#######################################################################################
# 提交直接支付请求,被payment所调用
#######################################################################################
from billing_payment.alipay.conf import DIRECT_PARAMS
from billing_payment.alipay.gatewayinf... | [
"yamin_xu@163.com"
] | yamin_xu@163.com |
e6a40ac9b3d5b601e26251a61ac8dff11ebac2bd | 8ac5dc1f54440f186f1c736cd95be7a28a0bb958 | /2010/dice.py | 4331d0f13c342cfeb85c6eb1ff84bd656866a1ac | [] | no_license | joeiddon/british_informatics_olympiad | 604cfce98cc54f0de757e9ea083175f842fafb24 | 3fe6a1f294429b22624a81ba6ef8c365913b204a | refs/heads/master | 2021-09-25T07:07:10.433774 | 2018-10-19T09:23:36 | 2018-10-19T09:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | class Dice:
x = 5
y = 5
up = 1 #to sky
right = 4 #to right
top = 2 #to front (away)
heading = "forward"
def move(self):
global grid
v = grid[y][x]
v = (v + self.top - 1) % 6 + 1
def modPos(self):
self.x = (self.x + 11) % 11
self.y = (... | [
"joedominciddon@gmail.com"
] | joedominciddon@gmail.com |
d78166b045ca1249faed5e2e6179a0bde644dd95 | fdee3863c5fa0181b5e478a824a6468059cb958c | /AULA_31_COMPREENSAO_EM_LISTA.py | 9f1d1de5311607ab10ed2c8ddddfc385b2c5cd5e | [] | no_license | afaqueti/python_udemy | 5ab0ca251143b6c4d169a642903c7676f475150e | ee0e8f2f15665401ca0cce166a3cd55135f42a2d | refs/heads/master | 2020-04-12T07:05:00.363820 | 2019-03-04T13:45:46 | 2019-03-04T13:45:46 | 162,356,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # COMPREENSÃO EM LISTA
x = []
for i in range(0,10):
x += [i]
print(i)
x2 = [i for i in range(0,11)]
print(x2)
x3 = [i* 2 for i in range(1,11)]
print(x3)
x4 = [i for i in range(0,21) if i % 2 == 0]
print(x4)
lista = []
lista = [variavel_igual for variavel_igual in 'alessandro']
print(lista)
print(len(lista)... | [
"afaqueti@gmail.com"
] | afaqueti@gmail.com |
6a00d42b5a145a315a3ece2a6f86be6e55ab9489 | 4ecd7a780ecbb9c3375d95360eaac0e1638185c8 | /Python/main.py | b304c76691819045d72a067cd372dc7df2b6316d | [
"MIT"
] | permissive | Sasmita-cloud/Hacktoberfest2021_PatternMaking | dd50c8a81bce9da25650b3b497330a9c150d54da | af48c242c10b08b74cf42c35b8550a45f1d9cbff | refs/heads/main | 2023-08-29T22:56:59.953119 | 2021-10-14T11:49:43 | 2021-10-14T11:49:43 | 415,092,226 | 0 | 0 | MIT | 2021-10-08T18:38:33 | 2021-10-08T18:38:32 | null | UTF-8 | Python | false | false | 86 | py | n=5
for i in range(n):
for j in range(i+1):
print("*",end="")
print()
| [
"satakshi.pal.civ19@itbhu.ac.in"
] | satakshi.pal.civ19@itbhu.ac.in |
0079ec1753397ec8e2d4db72f17762047e237974 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_113/ch20_2020_09_16_11_25_21_743333.py | 2edf4921f042e6256794183644e3ed17b47e767a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | dist = int(input('Qual a distancia de sua viajem?: '))
if dist <= 200:
preco = dist * 0.5
print(preco)
elif dist > 200:
dist -= 200
preco = dist * 0.45
preco += 100
print ('{0:.2f}'.format(preco))
| [
"you@example.com"
] | you@example.com |
1609c6c3f1c94842f8f310f93f085fce5e8c1f17 | 66e66b87029c6ab498c48823545800ef0af4ac7c | /Python/LX/7/7.9.py | 8e121db2fe9623db56424c20917f4c79b348696f | [] | no_license | zhenyuzzc/source-code | aced32c5177e3a8822a0eefcfd1f1800646b7e2b | c243c79608c585ae10362735081fc06f672248b9 | refs/heads/master | 2023-08-10T15:39:29.428196 | 2021-10-09T12:38:57 | 2021-10-09T12:38:57 | 406,938,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | sandwich_orders = ['yanmaipeigen','pastrami','jingqiangyu','pastrami','jidanhuotui','pastrami','tudouni']
print("五香徐牛肉已经卖完了(pastrami)")
while 'pastrami' in sandwich_orders:
sandwich_orders.remove('pastrami')
print("只有这些了:")
print(sandwich_orders)
| [
"zehnchao_zhu@qq.com"
] | zehnchao_zhu@qq.com |
9b8d5b002e735a2f759c9eabe3156845f8be7fde | dcf104fd22872b09a2e5c34d998d37282ae61b21 | /build/lib/mrcnn/model.py | 9923736652e74d49d00786a7d3723f8bd3b09c1d | [
"MIT"
] | permissive | SAFARIZADEH/Stone_Detection_MRCNN | 159d3bc48b629e70f68b79c6066736202cae4e09 | 5554291c0c4f59ffaa02accf50689e2f7336b088 | refs/heads/main | 2023-03-22T02:12:37.373327 | 2021-03-20T14:25:26 | 2021-03-20T14:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126,959 | py | """
Mask R-CNN
The main Mask R-CNN model implementation.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import os
import random
import datetime
import re
import math
import logging
from collections import OrderedDict
import multiprocessing
im... | [
"deolipankaj94@gmail.com"
] | deolipankaj94@gmail.com |
5aba40b94b3f2255d4c544bddbc1b7ac1e8899e6 | 902b02a62e28e7c767bc9e084a36a363383c8e0e | /libStash/books/migrations/0004_auto_20200920_0907.py | bdcc221cbe94291f82e4abbc468522a40f16d185 | [
"MIT"
] | permissive | Dev-Rem/libStash | 8030a07f1924455cb54827d628a3d588aa9ee4b8 | a364e9997c1c91b09f5db8a004deb4df305fa8cf | refs/heads/master | 2023-04-06T01:27:34.930198 | 2021-05-01T14:21:26 | 2021-05-01T14:21:26 | 296,617,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.1.1 on 2020-09-20 09:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0003_auto_20200920_0822'),
]
operations = [
migrations.AlterField(
model_name='author',
name='address',
... | [
"Rem_files@Aremus-MacBook-Air.local"
] | Rem_files@Aremus-MacBook-Air.local |
059c904f3d531856298874d795a6cf925be019fc | 548444cdf0ebdefe73c5f1c7c044079f21ccd54a | /2 - Variáveis.py | 85d5a9bd44ff1aad40cc377d1aefdc36e5adbba2 | [
"MIT"
] | permissive | gednt/Python-Projects | a4d62e83d3a27798ed67e6bccca41d6e4405234f | 45a6dd160b7ec2d1bb2a7aa1289802dc294e1a3d | refs/heads/main | 2023-05-03T06:40:42.715637 | 2021-05-17T01:04:32 | 2021-05-17T01:04:32 | 368,018,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | a = 1
b = 5.2
c = a+b
d = "Eu sou uma string"
e = True;
f = False;
print (c)
print (d)
print (e)
print (f)
| [
"big.gamesedicas@gmail.com"
] | big.gamesedicas@gmail.com |
6451035e29061d208fd1945893c984c0c86d26a1 | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/add_faces_by_url_response.py | a0b5174b327a3d9e652b2d8df2e8c1d453bf59e8 | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,991 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AddFacesByUrlResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
db92b7df978f1d2ea37151b6a3e0b0ba066b14b1 | 0f2c708469c9ad413644636268c58d8853719489 | /source/histogram_window.py | 1445e4f39aa81cd83d779c0873f75a82032fd35a | [
"MIT"
] | permissive | alex-turantsev/Misoi_kontr1 | 0f50b68d3cfc1b4cfbbe80573956c41edba82cc3 | 874a04b609eb7cfd5b7717ec4b7dd2321362855f | refs/heads/master | 2021-01-11T18:17:52.378472 | 2016-10-07T12:39:59 | 2016-10-07T12:39:59 | 69,336,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import Tkinter as tk
from PIL import ImageTk, Image
import ntpath
class histogram_window(tk.Tk):
def __init__(self, image, path):
tk.Tk.__init__(self)
self.root = self
self.title('Histogram '+ntpath.basename(path))
self.geometry('530x... | [
"alex.turantsev@gmail.com"
] | alex.turantsev@gmail.com |
48d3d2345ecb774006b7797e6dfb19ea0489873f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/147/28536/submittedfiles/swamee.py | 87c492832ea836815b97f42dfba4a884abe8852b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
g=9.81
epsilon=0.000005
f=float(input('digite valor de f:'))
L=float(input('digite valor de L:'))
Q=float(input('digite valor de Q:'))
deltaH=float(input('digite valor de deltaH:'))
v=float(input('digite valor de v:'))
d=((8*f*L*(Q**2))/((math.pi**2)*g*deltaH)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7ebfec0556e46db57e2c4d1eca4d13ef6452d0ce | 005a6421cd6159fb6be8c61cc675654377e8f226 | /cairis/core/TemplateObstacleParameters.py | dd6ad8c3e8c2351b3464509195afd601d5e88470 | [
"Apache-2.0"
] | permissive | cairis-platform/cairis | d667bc91ba28f0b7cd4fc88e6528eb3339e4ee6f | 55abb93a9377664f5b03c027bad7ce3cf168c5ad | refs/heads/master | 2023-04-06T17:04:08.781186 | 2023-02-17T22:51:15 | 2023-02-17T22:51:15 | 3,790,944 | 105 | 36 | Apache-2.0 | 2022-03-19T15:04:14 | 2012-03-21T20:17:05 | Python | UTF-8 | Python | false | false | 1,712 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
e0cef3709184ba38a5b1c49088dd488ff94fe2d7 | 5a4436884af5341ce855c0e84866b972a0f61c05 | /day4/classes/student/13.py | 42d32a7eccc68bd225d21bb75b5d00847af1380c | [] | no_license | sreejithev/pythoncodes | 74a420c4f025b893e27f17ba85632a4a096f17fd | 70df14871a9687916d1c4ada76c055607f13e8ce | refs/heads/master | 2021-01-21T20:59:47.056167 | 2017-06-19T09:43:17 | 2017-06-19T09:43:17 | 92,292,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class student:
def __init__(self, name, age, rank):
self.name = name
self.age = age
self.rank = rank
def __str__(self):
return 'name = %s, age = %d, rank = %d' % (self.name, self.age, self.rank)
def __lt__(self, other):
if self.rank > other.rank:
return True
else:
return False
student1 = student('J... | [
"sreejithevwyd@gmail.com"
] | sreejithevwyd@gmail.com |
33986ed30f53a19439cdd7d07c782a582f0d133e | 18d087b0fca0f80018861da6197e30d712fc248b | /S05/question_files/main.com.py | 9a975a8ffc12d8004a7b40ff9d66beceaed06180 | [] | no_license | pymft/mft-05 | 6a92f3e9e9e9568b602f0de8daae310e76646fac | dde1ff239163123494535ab1b4c3c86c4b01599f | refs/heads/master | 2020-06-03T21:56:12.289836 | 2019-08-29T13:52:02 | 2019-08-29T13:52:02 | 191,747,168 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import glob
def path_to_root(dct, number):
parent = dct[number]
if parent == 0:
return [number]
return path_to_root(dct, parent) + [number]
def convert(parents):
children = {0: []}
for k in parents:
children[k] = []
for k in parents:
val = parents[k]
childre... | [
"naeini.v@gmail.com"
] | naeini.v@gmail.com |
1e7f94b39fd5b2962a68f37cebd211a87940d2eb | da5aba84c12fe9fcb6c2743295977f6efa3f3198 | /ManacherPalindromicTest.py | 61474f7f9e7e8e455b5eacbc2c7e3df69e920b9a | [] | no_license | JayFu/learningnote | e123dd465f3caf1bd1a18cb9056dad37c7e899d0 | c2c0e819f59754d5dbe67d6e22cd011f899a6106 | refs/heads/master | 2021-01-19T07:06:52.144444 | 2018-07-16T04:00:23 | 2018-07-16T04:00:23 | 87,522,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # -*- coding: utf-8 -*-
s = 'ababa'
import pdb
# THE_ANSWER = 42
# T = [THE_ANSWER]
# for c in s:
# T.append(c)
# T.append(THE_ANSWER)
# m = 0
# c, r, size = 1, 2, len(T)
# P = [0, 1] + [None] * (size-2)
# maxIndex , maxCount = 0, 1
# for i in range(2, size):
# print(P)
# print(i, c, m, r)
# m... | [
"382603080@qq.com"
] | 382603080@qq.com |
9a9b569145dc076f76a7d6fdce9825a684656da8 | edf8c5d748c8dd495a6173f355b7ba7bb6a0e662 | /results-combinations/Subplot_gradient_density_isolation.py | 3ae7eb0399d364cd55e0dbc95a6d0e8a78544e54 | [] | no_license | mdodovic/Flybys-galactic-simulation | 66de7f2cc5e805db800bd911d9cc21ba7f8d0c67 | 78d11f8dda261d21c97575910b4d916ba48fd8a8 | refs/heads/master | 2022-12-16T22:35:53.563458 | 2020-09-22T09:01:05 | 2020-09-22T09:01:05 | 296,823,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import numpy as np
import matplotlib.pyplot as plt
import math as math
putanja_load = "C:/Users/matij/Desktop/Kodovi_za_analizu/rezultati/M31_izolacija/gradijent/1FI_RO_"
putanja_sacuvaj = "C:/Users/matij/Desktop/Kodovi_za_analizu/rezultati/Gradijenti_gustine/"
ugao_0, gradijent_0 = np.loadtxt(putanja_load... | [
"noreply@github.com"
] | noreply@github.com |
d4ae837f8ee5ab3da832697da7fc9e396c228f27 | 3c9cba5c6b94300d97486408b79ddd85112599f9 | /examples/esp32spi_wpa2ent_simpletest.py | d8d2a143992eadbf92258198a560a27e3cbd44bc | [
"MIT"
] | permissive | lemonkey/Adafruit_CircuitPython_ESP32SPI | cd6b77dd77c54a35e5742316cae69009acfb373e | 85248eff0727172ef3c656fb916f670d6a2264ea | refs/heads/master | 2020-06-17T21:08:25.347921 | 2019-07-18T21:43:14 | 2019-07-18T21:43:14 | 196,055,225 | 0 | 0 | MIT | 2019-07-09T17:38:32 | 2019-07-09T17:38:32 | null | UTF-8 | Python | false | false | 3,335 | py | # Example code implementing WPA2 Enterprise mode
#
# This code requires firmware version 1.3.0, or newer, running
# on the ESP32 WiFi co-processor. The latest firmware, and wiring
# info if you are using something other than a PyPortal, can be found
# in the Adafruit Learning System:
# https://learn.adafruit.com/adding... | [
"docmollo@gmail.com"
] | docmollo@gmail.com |
374356a21b4334113e480f33ccacdbbfdf194a45 | f9b0e99cc026cb8e0adf4e33f935d6f3b21c861d | /script/mpd/old/mpd_album_art.py | 1979e7f00d3e438d370524b89c0f070272455f80 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | DamienRobert/dotfiles | 66fec5eee5fc83d3a59f1c41bc96ad2b11dcd57b | 3a2beac107a9b4a0e04770fccdafbf834c5126a7 | refs/heads/master | 2021-05-15T02:19:44.166903 | 2020-03-13T16:45:20 | 2020-03-13T16:45:20 | 12,380,199 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,231 | py | #! /usr/bin/env python3
# From: https://github.com/jameh/mpd-album-art
# Modifications by Damien Robert
# MPD Album Art
# 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 3 of the Li... | [
"damien.olivier.robert+git@gmail.com"
] | damien.olivier.robert+git@gmail.com |
071d6d5852eff59b3a1dc1dfe98706254fa481ae | 901944f407f4a06a4c4027d6139ce21165976857 | /RL4/rl_mar2018_99_stableversion_andimplicit/train4.py | 0e03a42afd50da8c62faf9a50b887d5278e716f9 | [] | no_license | chriscremer/Other_Code | a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05 | 7b394fa87523803b3f4536b316df76cc44f8846e | refs/heads/master | 2021-01-17T02:34:56.215047 | 2020-05-26T13:59:05 | 2020-05-26T13:59:05 | 34,680,279 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 13,372 | py |
import os
from os.path import expanduser
home = expanduser("~")
import sys
for i in range(len(sys.path)):
if 'er/Documents' in sys.path[i]:
sys.path.remove(sys.path[i])#[i]
break
import copy
import glob
import os
import time
import gym
import numpy as np
import torch
import torch.nn as nn
impo... | [
"chris.a.cremer@gmail.com"
] | chris.a.cremer@gmail.com |
d251d96aa118620cf5b52cd71eb9e82cbb437e15 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/TestFrameworks/pytest_practice/test_pytest_requests.py | f15e998dc821c7bb5c3b6d0ca5291bb0d4f895cd | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # http://pythontesting.net/framework/pytest/pytest-fixtures-nuts-bolts/#scope
import pytest
@pytest.fixture()
def my_fixture(request):
print('\n-----------------')
print('fixturename : %s' % request.fixturename)
print('scope : %s' % request.scope)
print('function : %s' % request.function.__nam... | [
"sebastian_anish@bah.com"
] | sebastian_anish@bah.com |
af8494e947871f48f118b9641e19590b73ad4e2b | b9b495a55e55f4c227aedfd55c6e409503353991 | /simulation.py | 9dc68c46b0b264421cd09eec4f62ffa6f094799d | [] | no_license | Pontiky/path-following-mobile-robot | 6e5f0bbbe9b83bef34e970577c9a26a18a1e6b00 | 04a35c6b83f131fdf1912158e870d9aea040b43a | refs/heads/main | 2023-02-10T10:34:25.959747 | 2021-01-07T22:13:17 | 2021-01-07T22:13:17 | 322,663,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,257 | py | from suiveur import Suiveur
from cible import Cible
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from collections import namedtuple
from threading import Thread
import time # Log temporel
temps = []
erreurs = [ [[], []], [[], []] ]
lyapunov = []
n_err, n_sim = 0, 0
close =... | [
"noreply@github.com"
] | noreply@github.com |
0f3a73e751671254e4991470d00ff51b9c7ef8c4 | 1ace6b79b41b69006de37fe936964b3087e67736 | /1-5.py | 9f9b5076ac092e9e7cb6d4f14ebb4149b3ebfd2c | [] | no_license | thlong78984278/Crypto | 77f38d94e727a7872f89cd565b675024f0a7c932 | 2f3f46aa744c7292f6e31260b05329bc0cada817 | refs/heads/main | 2023-04-11T09:11:06.785153 | 2021-04-21T13:54:06 | 2021-04-21T13:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from turing_machine import TuringMachine2
transition_function = {
("init"," "):("q0","R"),
("q0","0"):("q1","X"),
("q0","1"):("n","1"),
("q0","X"):("y","X"),
("q1","X"):("q2","R"),
("q2","0"):("q2","R"),
("q2","X"):("n","X"),
("q2","1"):("q3","R"),
("q3","1"):("q3","R"),
("q3","0"):("n"... | [
"noreply@github.com"
] | noreply@github.com |
618747c026393c3f4992753224e43445c535883a | 771d4422f57e275c73b331fd8c2b3157456b99df | /Filtering_Server/Filters/ideal_low_pass.py | e980b1a4c7814f16ae695d526ba4a1eccb47c223 | [
"MIT"
] | permissive | FullPint/Frequency-Filter-Server | bd6c7d8e01b3598f2809abcc771125a9763c9df8 | 60ed3f17f8873ff92b6f52e7dd861c9d99dea40c | refs/heads/master | 2020-04-08T10:05:48.355837 | 2018-12-08T04:55:25 | 2018-12-08T04:55:25 | 159,253,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import numpy as np
from .filter import Filter
class IdealLowPass(Filter):
def __init__(self, shape, cutoff):
super().__init__(shape)
self.cutoff = cutoff
def build_filter(self):
mask = np.zeros(self.shape)
index_iterator = np.nditer(mask, flags=['multi_index'])
while no... | [
"davila.alec@gmail.com"
] | davila.alec@gmail.com |
90006734794ffa89b6727b8d9bd24e1921e6c7d1 | e465773cf0bbcdde70da6062a99cc94c23eab71d | /sensors/apps.py | a1ad8dafc62164785847466f4959adffbd3fc3be | [] | no_license | mkotha33/WaterManagementSystem | 0cff3ba808c59e88b7e69b053c8759415d5927c7 | f62a1b4f36407ce7e13d1dd14c8579306cddff59 | refs/heads/master | 2020-04-26T10:02:21.369656 | 2019-03-02T11:40:11 | 2019-03-02T11:40:11 | 173,475,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class SensorsConfig(AppConfig):
name = 'sensors'
| [
"maahi.kotha@gmail.com"
] | maahi.kotha@gmail.com |
ea1ba40bbb985fe5ead1c94c1eb2832e03ae4197 | 72058fc820cd7703f371d170d8ea04e372a12d42 | /lafilm_rental/model/sale.py | 4a875e25d785bd67887c9c74a9740bb9662a1b1a | [] | no_license | billyxu-lafilm/lafilm | 7767e2b792fbacd385beea4193da4e49bf9e3066 | 75e6d5df74c5cbaea610ed5beaca190257c49204 | refs/heads/master | 2020-12-19T21:23:43.996244 | 2020-04-21T05:55:57 | 2020-04-21T05:55:57 | 235,857,172 | 0 | 0 | null | 2020-04-21T05:57:16 | 2020-01-23T18:18:01 | JavaScript | UTF-8 | Python | false | false | 955 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
import logging
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger(__name__)
class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
@api.on... | [
"dshah@adalogic.co"
] | dshah@adalogic.co |
67878e053fb1001efd8f2518f446de52112fa2b8 | 940bb431eff5192f7332e749fba0a4874630beb8 | /src/middleware_security/utils.py | 81cdf4f30af14ea902c502d845cfa62dcef032db | [] | no_license | red-cientifica-peruana/middleware-security | 63c9374f3547cb5ed4b4848860f1f976aba457b7 | 23479f532d26353291c2972881a29a7df31f2f5c | refs/heads/master | 2021-01-12T10:15:19.866181 | 2018-07-18T14:55:37 | 2018-07-18T14:55:37 | 76,400,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from functools import wraps
from falcon_exceptions import HTTPException
def scope_verify(scope=None):
""" Decorator for scope verify """
def method_decorator(func):
@wraps(func)
def method_wrapper(*args, **kwargs):
scope_obj = args[0].scope if not scope else scope
cont... | [
"noreply@github.com"
] | noreply@github.com |
a42e82398aa18becbcfed7a7470e597ea6fa315e | 34b424abf175eb85ad32f7c3eeb6c1ccf388b66f | /Clases/Invasor.py | 588d274ed1990afd8261ca9e6e8973b58638f539 | [] | no_license | Rexwar/G1SpaceInvader | 9dc660665034b47ff9a090d65f630674189386d7 | bb68d8ceafab929e07c9eaf26e55e56e6f46b627 | refs/heads/master | 2020-09-27T19:18:56.464673 | 2019-12-09T01:38:42 | 2019-12-09T01:38:42 | 226,590,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import sys, pygame, math
from pygame.locals import *
from random import randint
from . import Proyectil
class Invasor(pygame.sprite.Sprite):
def __init__(self, posx, posy, distancia, imagenUno, imagenDos):
#propiedades del invasor
pygame.sprite.Sprite.__init__(self)
self.frec = 1
self.imagenA = pygame.image... | [
"reyvaldesm@gmail.com"
] | reyvaldesm@gmail.com |
d5d79bc641bfa5323938802c7e9287693b1ac8f5 | 98c7bf36a116078d8a84984ea4cf30eb5293cd14 | /functional_tests/test_layout_and_styling.py | 90d82cf2402103a63b40fe456cbc5cc78623abc3 | [] | no_license | maugravena/python-tdd-book | 54dccabb523fdb498fe5394328b943ab975c3535 | 913a98ccf7b5db44c27f2f05a7e2edeacedb0a4c | refs/heads/master | 2021-07-11T16:53:38.126014 | 2020-05-19T23:32:39 | 2020-05-19T23:32:39 | 246,428,029 | 0 | 0 | null | 2021-06-10T22:40:12 | 2020-03-10T23:13:56 | JavaScript | UTF-8 | Python | false | false | 922 | py | from selenium.webdriver.common.keys import Keys
from .base import FunctionalTest
class LayoutAndStylingTest(FunctionalTest):
def test_layout_and_styling(self):
# Edith goes to the home page
self.browser.get(self.live_server_url)
self.browser.set_window_size(1024, 768)
# She notice... | [
"maugravena@gmail.com"
] | maugravena@gmail.com |
08a69238bd7160d33ffd5cf0c96d89c94638de23 | 13d52041d7ba53ccc1708a5931b69f8b13ebd0f6 | /4_observer_pattern/good_exemple/api/user.py | c65384b673d0e8b3f1da61a0ee9710fbd3569e62 | [] | no_license | iemsec/DesginPattern | 0967c5cae53e228311e3003900eeafd1bccc908d | 80b5426f1f83b646819188c7fb22c207ba1d05c7 | refs/heads/main | 2023-07-12T19:44:08.563756 | 2021-08-06T05:46:28 | 2021-08-06T05:46:28 | 389,579,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from lib.stringtools import get_random_string
from lib.db import find_user, create_user
from .event import post_event
def register_new_user(name:str, password: str, email:str):
user = create_user(name, password, email)
post_event("user registred", user)
def password_forgotten(email: str):
user = find_us... | [
"edouard.mortier@gmail.com"
] | edouard.mortier@gmail.com |
e70987c307aca85353a6a8cf1ef04ea55045f210 | da0398358decb9d8a5d6d56c14708721096b4694 | /ex20.py | aa62b29949d7990121dc4fd31849cf52723b7937 | [] | no_license | hninyu46/coding-sprint | 8e867c3ebabe91b455ba23349b7e7ee22e3a71a7 | 1be34b422a992a1afc2ae0fd25c777220a36afaa | refs/heads/master | 2020-03-21T20:45:29.580098 | 2018-07-06T15:16:15 | 2018-07-06T15:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from sys import argv
script, input_file = argv
def print_all(f):
print(f.read())
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print(line_count, f.readline())
current_file = open(input_file)
print("First let's print the whole file: \n")
print_all(current_file)
print("Now let's rewind, ki... | [
"hninyuaungcu@gmail.com"
] | hninyuaungcu@gmail.com |
3e4bd1d9a17337e27b4205d675eb8514769efaf1 | f36ba051f333cfcc28d04938461e26bc13d10545 | /Assignment 3/client_udp.py | 459c86c7c8181479c0335ff9f551c18656ee0971 | [] | no_license | wi15b045/OEC | d6b5f80ebc64aa0f85197a418f99c576f5ebd71b | f4b9f050acccdf20e702007cd1163b866379d293 | refs/heads/master | 2021-01-25T11:49:39.995457 | 2017-06-14T06:50:53 | 2017-06-14T06:50:53 | 93,949,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import socket
import uuid
import struct
CLIENT_ID = uuid.uuid4()
MCAST_GRP = '192.168.1.255'
MCAST_PORT = 5007
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 2)
sock.sendto(bytes("C_CON:"+str(CLIENT_ID),"UTF-8"), (MC... | [
"wi15b045@technikum-wien.at"
] | wi15b045@technikum-wien.at |
bc4d884d0c92d2823f1ba3f94f059e5ec5ea1670 | 3586b39f6c2a587077dd60cd518e862b65bec47e | /100-Days-of-Python/Day-17/main.py | 80d3a1a2fda636bef136753773feeee959abd5aa | [] | no_license | hpisme/Python-Projects | 9e7f483a228ab18f4cb22810a8e23cf379f315bc | 2d8605c324c30e83390dafd6bf63b164372905ba | refs/heads/main | 2023-05-20T12:40:37.122173 | 2021-06-05T23:18:14 | 2021-06-05T23:18:14 | 367,402,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from question_model import Question
from data import question_data
from quiz_brain import QuizBrain
question_bank = []
for question in question_data:
question_text = question["text"]
question_answer = question["answer"]
new_question = Question(question_text, question_answer)
question_bank.append(new_qu... | [
"noreply@github.com"
] | noreply@github.com |
c8d9b002d12d8875c9916bb4aebc75003313354f | 13270c82b319dc288e588466b39708f5cc7a869d | /keyvalue/parsetriples.py | 79d017768744525fbf18c0afcf7fcc4b3fde7265 | [] | no_license | ian27diaz/Practica1_Cloud | 20dd03ac41cca194d4748d38bdfaab84a53b6ed8 | 51c51e6e5becc4602d4f734344e60f8ee7f0cf17 | refs/heads/master | 2022-04-05T13:10:01.226226 | 2020-02-23T01:05:19 | 2020-02-23T01:05:19 | 242,435,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import re
class ParseTriples():
def __init__(self,filename):
super().__init__()
self._filename = filename
self._file = open(self._filename,"r",errors='ignore')
def getNext(self):
if(self._file.closed):
return None
line = self._file.readline()
w... | [
"anand_ian@hotmail.com"
] | anand_ian@hotmail.com |
705a2e2159d701decdd09d78d2292c2ae8353281 | 25af4e33f78e43169befe796aba842e02d7c0de3 | /exe039 - alistamento Militar.py | 33140b5e157c35cbdfbae4d9aa4b91fdbfb555b4 | [
"MIT"
] | permissive | carlosbandelli/Exercicios_em_Python | c6415e458c524493435be53dcddec5a1780ed3d9 | 2cd5bd837fdc51932f9605db32366ad0e3871d87 | refs/heads/main | 2023-08-18T03:58:40.084727 | 2021-09-19T00:08:00 | 2021-09-19T00:08:00 | 380,223,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from datetime import date
atual = date.today().year
nasc = int(input('Ano de nascimento: '))
idade = atual - nasc
print(f'Quem nasceu em {nasc} tem {idade} anos em {atual} ')
if idade == 18:
print('Você tem que se alistar IMEDIATMENTE!')
elif idade < 18 :
saldo = 18 - idade
print(f'Ainda faltam {saldo} anos... | [
"carlosbandelliv@gmail.com"
] | carlosbandelliv@gmail.com |
c585322fee69db35d2475c2f9d5d331d9b590f4e | d5b64a2a9b1846aa7cc394f8d12da61c0ddcad8c | /ess_gym_env/erdosstate.py | 767dbc2e696f21bdc7c6ac10d372da761f19712c | [] | no_license | mzaffran/DRL_ESS_games | c09e9c47d9f50761752f3a8a18bb6ae3616dd5db | beecaefd504bee53e863f7ecc65fd37b474be45d | refs/heads/master | 2023-04-05T10:07:50.135450 | 2022-06-13T16:33:17 | 2022-06-13T16:33:17 | 243,806,048 | 0 | 0 | null | 2023-03-26T19:47:01 | 2020-02-28T16:26:21 | Jupyter Notebook | UTF-8 | Python | false | false | 11,183 | py | import numpy as np
import gym
class ErdosState(gym.Space):
"""
State type for Erdos game. Input looks like spaces.ErdosState(K, potential, weights, dist_probs, high_one_prob)
K is of type int, giving the number of levels, potential the difficulty of the game
and weights just to recycle computation, gi... | [
"luismontero@hotmail.fr"
] | luismontero@hotmail.fr |
56d1d7f52cb51f97c009df9a03ed9f71b02fa6a5 | a1becad0595e29ac56645eeb22d7dee675107c50 | /tests/test_kernel.py | 9c832f845bc4c275df45b3e150697ee20da78b5b | [
"MIT"
] | permissive | tagordon/specgp | afa87f718af1c27f42f6cf86e532f708f80b95ad | de09ef4d05c6eadad02d407f03b71cfce4d65c76 | refs/heads/master | 2022-11-19T18:59:53.626083 | 2020-07-21T14:46:53 | 2020-07-21T14:46:53 | 272,232,294 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | import exoplanet as xo
import specgp as sgp
import numpy as np
import theano.tensor as tt
import theano
logS0 = tt.scalar()
logw0 = tt.scalar()
logQ = tt.scalar()
logS0.tag.test_value = -5.0
logw0.tag.test_value = -2.0
logQ.tag.test_value = 1.0
term = xo.gp.terms.SHOTerm(S0=tt.exp(logS0), w0=tt.exp(logw0), Q=tt.exp(l... | [
"tagordon@uw.edu"
] | tagordon@uw.edu |
14082e84e8cc42dec1bcbc028a0ce10087db4dd4 | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/migrations/0039_auto_20201111_1329.py | 4d48ca91318e70def9c7828155e6812d0e528f18 | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # Generated by Django 3.1.2 on 2020-11-11 13:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('uds', '0038_auto_20200505_config'),
]
operations = [
migrations.RemoveField(
model_name='metapool',
name='accessCalendars',
... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
9832a16a7fbbfe46de219209e3666a1f73284be1 | d946f613a88e02abc1ecd07b93ce44271bc9baa9 | /Tests.py | 4eaef73d379a59360cc02cbc79991ecb19abf11a | [
"MIT"
] | permissive | dwelch91/RegExpBuilder | a4b4e3f5cbaff2b02eefeae9e41be0d6cbc67bcf | 3bbbfe7599160a4ef4c90ec0f78e23eeeb48c6a0 | refs/heads/master | 2021-01-16T00:47:36.790640 | 2013-09-03T22:57:41 | 2013-09-03T22:57:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,477 | py | import unittest
from RegExpBuilder import RegExpBuilder
class Test(unittest.TestCase):
def test_start_of_line(self):
regex = RegExpBuilder()
regex.start_of_line()
regex.exactly(1).of("p")
regex = regex.get_regexp()
self.assertTrue(regex.match("p") is not None)... | [
"thebinarysearchtree@gmail.com"
] | thebinarysearchtree@gmail.com |
48123256affe557478e48fe3db0412f0b90416ef | 96bf3f197930199d51959d42fce2c516d8d8693c | /older_settings/8-17-2021/30000.3000.100.04.20000.py | 32e6d3822e65f60cc9973b4ff375da3ad5f07cc2 | [] | no_license | NuttareeB/partition-query | 4903f57ba1c75968f2f36cff0de65761640d1818 | 3bae47ac9093bac9a7b0c828b5d4340ebc2e55ae | refs/heads/master | 2023-07-05T11:37:12.316878 | 2021-08-26T00:11:12 | 2021-08-26T00:11:12 | 387,634,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | import numpy as np
from nestedloop import run
#run(2000, 50, 1000)
run(20000, 2000, 512, 60, 0.4, 9000) | [
"doskenob@oregonstate.edu"
] | doskenob@oregonstate.edu |
488891e2153d459e2a52cb6f3815d37c56249090 | 3656aaf1dc614ae18e396b0bf6759e0d7aaeb28f | /Verification.py | 84f6fd7dc7c61382d76ebfe11f3b0dceb4156973 | [] | no_license | cncn0069/catanddog | 66890b19033a609264dfd40ebc78724af3869b47 | e5533c0e640bf49ff335ae0286e1c5ff082271e1 | refs/heads/master | 2022-12-16T02:05:00.433481 | 2020-09-20T05:25:34 | 2020-09-20T05:25:34 | 297,008,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import matplotlib.pyplot as plt
import read
acc = read.history.history['acc']
val_acc = read.history.history['val_acc']
loss = read.history.history['loss']
val_loss = read.history.history['val_loss']
epochs = range(1, len(acc) + 1)
plt.plot(epochs, acc, 'bo', label='Training acc')
plt.plot(epochs, val_acc, 'b', labe... | [
"cncn0069@naver.com"
] | cncn0069@naver.com |
fd23825963857085e6a758aa9e4ce4ade0c26564 | 8d0613d5c8b14ad86408ea58507a8006886fdfbb | /lab14/code/torchTest.py | aec043952f0acfad73f9ad9c3b5266f5ddd6f780 | [
"MIT"
] | permissive | StCzzZ/EE208-labs | deeac192dd9c8423e28399e8dde0278840b28ee4 | 5e6fc8208c0d0bfa5c338d1294e23fc6848d6fc6 | refs/heads/main | 2023-03-19T15:07:31.899774 | 2021-01-15T12:22:07 | 2021-01-15T12:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import time
import numpy as np
import torch
from utilities import readAndPreprocessImage, normalize
from torchvision.datasets.folder import default_loader
model = torch.hub.load('pytorch/vision', 'resnet50', pretrained=True)
print(model) | [
"953327699@qq.com"
] | 953327699@qq.com |
9177310144ac6320e28207fa88ccaac564986c25 | f827a5caefb76c3b34bc4264f05b8f6e02846be8 | /assignment2/cs231n/solver.py | 1733b52c5e35c740651ea2c8c0403545dbd73e37 | [] | no_license | kujira70/CS231 | 8cdf279d231088f3a7b4068e2199394c2ff2e2c2 | 8c837bc7ec2afece1aebcf0724dd18908aec61c9 | refs/heads/master | 2022-04-26T01:10:20.259944 | 2022-04-17T03:35:10 | 2022-04-17T03:35:10 | 138,230,742 | 1 | 0 | null | 2018-06-21T23:08:04 | 2018-06-21T23:08:04 | null | UTF-8 | Python | false | false | 12,147 | py | from __future__ import print_function, division
from future import standard_library
standard_library.install_aliases()
from builtins import range
from builtins import object
import os
import pickle as pickle
import numpy as np
from cs231n import optim
class Solver(object):
"""
A Solver encapsulates all the ... | [
"noreply@github.com"
] | noreply@github.com |
01e16c5be3860add1a9a44be60f7efbac7e004a4 | 2b5213572cec414bcc32e34a8e50c7bec98f4edb | /org_tel_spider/settings.py | 82f81f197c2b9c752dbf780b77976084b86ee1fa | [] | no_license | zhangdaniel0715/org_tel_spider | b5f051c6afd522ce8f2c39068c689408c1349faa | 2eb29e53b390bd4c4549164b8ba06ae68280bbea | refs/heads/master | 2021-07-06T00:39:17.333774 | 2017-09-29T03:51:35 | 2017-09-29T03:51:35 | 104,741,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | # -*- coding: utf-8 -*-
# Scrapy settings for org_tel_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en... | [
"zhangdaniel0715@gmail.com"
] | zhangdaniel0715@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.