blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2203668db377a10685419a408b6e9a15f41782ba | a8927d693f885e202021379da0244d5991fdcba5 | /classe4/test_devices.py | 2df110cbbaf95cc28efbc41158c59fd8e530b16c | [] | no_license | HassanHbar/pynet_ansible | 28c007193c612752b212763c3f38d0f5c024dc3b | a0cc9cd696bf1e9d0448876d39022da1140a55be | refs/heads/master | 2020-04-15T13:37:21.042826 | 2016-08-31T10:32:43 | 2016-08-31T10:32:43 | 58,642,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
pynet1 = {
'device_type': 'cisco_ios',
'username': 'pyclass',
}
pynet2 = {
'device_type': 'cisco_ios',
'username': 'pyclass',
'secret': '',
}
juniper_srx = {
'device_type': 'juniper',
'username': 'pyclass',
}
| [
"Hassanhbar@gmail.com"
] | Hassanhbar@gmail.com |
cb09beba8a6df9801c13f0845c0c182a4d71c943 | 5c729eb7b7d294482f5c614e99205f12047006bb | /Modulo_4_Ciencia da Computacao/Bloco 36: Algoritmos e Estrutura de Dados/dia_3: Algoritmos de ordenação e busca/conteudo/merge-sort.py | 8ff4b733daa4ab78e1efcea7ac8912dd55997841 | [] | no_license | marcelosoliveira/trybe-exercises | 132c42304cdaf9a82d3d1b030fdf12a456a096da | 025d81eba6e14dc2abf1600f4a271dde06d593d9 | refs/heads/master | 2023-07-17T20:35:30.013110 | 2021-08-24T21:38:22 | 2021-08-24T21:38:22 | 288,297,968 | 1 | 0 | null | 2020-08-18T22:23:49 | 2020-08-17T22:19:09 | Shell | UTF-8 | Python | false | false | 2,554 | py | # # Vamos supor os números não ordenados
# - coleção = 7 5 1 2 8 4 6 3
# # Separamos nosso array em porções menores
# - 7 5 1 2 8 4 6 3
# # continuamos fazendo isto
# # até a menor porção possível (1)
# - 7 5 1 2 8 4 6 3
# # Até a menor porção possível (1)
# - 7 5 1 2 8 4 6 3
#... | [
"msbobsk8@gmail.com"
] | msbobsk8@gmail.com |
b515d720289ec7fabc547f59cebd2a8436f4be7e | 7f8d6b47c41d7ca312c94779230dd00101eb305d | /TaxiFareModel/encoders.py | 0c35c630f670aaa069a215164d766b10ded70e75 | [] | no_license | pierrevermeulen/TaxiFareModel | ee3a7cab334b4c247e690615d76613bfe5d585ad | f871e85fdcacefd6831f3a17779370157e64a6f5 | refs/heads/master | 2023-01-21T13:26:17.978691 | 2020-12-03T20:20:05 | 2020-12-03T20:20:05 | 317,551,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,530 | py | import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
import pygeohash as gh
from TaxiFareModel.utils import haversine_vectorized, minkowski_distance
DIST_ARGS = dict(start_lat="pickup_latitude",
start_lon="pickup_longitude",
end_lat="dropoff_l... | [
"pierre.vermeulen@espci.org"
] | pierre.vermeulen@espci.org |
8ec54b6d8b7c076822df3455b18119ff1f057e01 | 13058b4d2b4a8d02f529e1a06d3080fc07afaf40 | /orderportal/scripts/messenger.py | 945cad0f1ee6cae11e29b238c24f92335ed46c03 | [
"MIT"
] | permissive | ewels/OrderPortal | c23f2c2c76235373d2cdfd20a12cfd799f575ab4 | 4c15981558e84389eda8136a4e56993ce1c7d659 | refs/heads/master | 2021-01-15T09:46:34.414406 | 2015-12-11T14:59:33 | 2015-12-11T14:59:33 | 29,193,166 | 0 | 0 | null | 2015-12-11T14:59:35 | 2015-01-13T14:19:56 | Python | UTF-8 | Python | false | false | 11,247 | py | """OrderPortal: Send messages to users about recent events from log records.
The logic is that it gets the timestamp for the latest message, and looks
through all log entries since that timestamp for new events that require
messages to be sent.
The messaging rules and texts are configured in the files defined by
sett... | [
"per.kraulis@scilifelab.se"
] | per.kraulis@scilifelab.se |
9ced7efaf19574dd504e7070e03dd19af25de5e0 | 230bc6445bac6aa009284eb7bbd0665bba0ef3c6 | /run.py | a083ada2e3eb1038e298fc9955f43fd45687737c | [] | no_license | bioinfo-fr/pythonfaitlanumba | a8f7373f987ae17ddf14b19d2186959dd659f726 | 13fd5a5183d8a160af1494e1d618e914267d787e | refs/heads/master | 2021-01-20T04:32:29.791015 | 2014-10-30T15:47:52 | 2014-10-30T15:47:52 | 25,976,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | # coding: utf-8
import random
import timeit
import matplotlib.pyplot as plt
from numba import autojit
from taille_cython import cython_test, cython_test_nocdef
####################
## TEST FUNCTIONS ##
####################
### TRIPLE FOR
def triplefor(taille):
count = 0
for i in xrange(taille):
for... | [
"yohanjarosz@yahoo.fr"
] | yohanjarosz@yahoo.fr |
3bc05a9a9df7031514ea03d8d64ed1360cc8e2e9 | 789a8d480b2b1accb30a01e5c7e8eb8698418c19 | /setup.py | c61a6ed7eeedbf172b4801ac92118e500c1e7290 | [
"MIT"
] | permissive | wuyeguo/qqbot | edeb0b126ef228ad8a7539e652f12e3c8eb80d47 | 77fd6c927e9700598f4ded449d370244c8a82cb6 | refs/heads/master | 2021-05-11T05:21:36.455917 | 2018-01-15T11:59:38 | 2018-01-15T11:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # -*- coding: utf-8 -*-
from setuptools import setup
version = 'v2.3.9'
setup(
name = 'qqbot',
version = version,
packages = ['qqbot', 'qqbot.qcontactdb', 'qqbot.plugins'],
entry_points = {
'console_scripts': [
'qqbot = qqbot:RunBot',
'qq = qqbot:QTerm'
]
}... | [
"pandolia@yeah.net"
] | pandolia@yeah.net |
e376c31e4f81b43df7a1f8bd768f7d4051f9029b | 0eb0fc983eab95e06d412249fbf3d0f52727e34c | /party.py | b9616e34bc1637e58005c53bb2a1317ec30c8fec | [] | no_license | groovycol/testing-py | 0b1f79559ed8742aaad5608d7ddc717c429cf308 | 0cd38c04f44709aed02887e012458ac93381edb1 | refs/heads/master | 2016-09-12T20:47:59.648040 | 2016-04-22T19:54:12 | 2016-04-22T19:54:12 | 56,881,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | """Flask site for Balloonicorn's Party."""
from flask import Flask, session, render_template, request, flash, redirect
from flask_debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
app.secret_key = "SECRETSECRETSECRET"
def is_mel(name, email):
"""Is this user Mel?
>>> is_mel('Mel Melitpolski'... | [
"hackbright@hackbright.com"
] | hackbright@hackbright.com |
37f1f7cf6b1d633e238e4303987ac629fc97486e | e4de33a639446e329e058a67e0418d97f5c0d1a9 | /venv/Scripts/pip3.7-script.py | a2f0581dbbe1e0da6ea7535ae01c4550378892d8 | [] | no_license | bopopescu/LyricsSearchEngine_python_API | 1fd761f8a36758c142a10d9d39c235d235f5a989 | a321a92cf9874e7cf84df58f0265d8a83b139a6c | refs/heads/master | 2022-11-22T19:01:39.712625 | 2020-02-26T15:25:29 | 2020-02-26T15:25:29 | 281,265,993 | 0 | 0 | null | 2020-07-21T01:36:32 | 2020-07-21T01:36:31 | null | UTF-8 | Python | false | false | 420 | py | #!D:\PyCharm\PyCharm_workspace\0208exercise\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"799168496@qq.com"
] | 799168496@qq.com |
24fb13323f0a0122a05a534bc09c6891d1ff7451 | f505bc6cb86d783569b3c3dcfc8dc6047cfe7ebe | /Loading model.py | 3a66d947872ffe298cfd9c0d902d35ab225265c2 | [] | no_license | se7ven012/Keras | 58627d6863e255865bfa3da80d03170034452efa | 0fa0880fa3c5bd655ed9200deb7daf7fff8ac72d | refs/heads/master | 2020-07-25T19:40:55.266541 | 2019-09-14T07:33:27 | 2019-09-14T07:33:27 | 208,405,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | #%%
import keras
import numpy as np
import matplotlib.pyplot as plt
#傻瓜式网络结构模块
from keras.models import Sequential
#Dense全连接层
from keras.layers import Dense,Activation
#
from keras.optimizers import SGD
from keras.models import load_model
#%%
#生成100个点
x_data = np.linspace(-0.5,0.5,200)
noise = np.random.normal(0,0.02,... | [
"noreply@github.com"
] | noreply@github.com |
380aeccf87ff7ee654c887306c7c69d1c1b96697 | 8f24e443e42315a81028b648e753c50967c51c78 | /python/ray/data/datasource/parquet_datasource.py | 674410a1c29b24325030d270b2eab7d5f232104d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 18,880 | py | import itertools
import logging
from typing import TYPE_CHECKING, Callable, Iterator, List, Optional, Union
import numpy as np
from ray.data._internal.output_buffer import BlockOutputBuffer
from ray.data._internal.progress_bar import ProgressBar
from ray.data._internal.remote_fn import cached_remote_fn
from ray.data.... | [
"noreply@github.com"
] | noreply@github.com |
9a6110eea7dd40e138e1870e4daa4a6be79d007a | 44b28bbe3f01428417c20ea712e5999aa3dc950a | /mmdet/datasets/extra_aug.py | 0e48c08869deab649bd1b618447abf6fd34e0252 | [
"Apache-2.0"
] | permissive | gfjiangly/AerialDetection | 1ce9e15685b19c8228b0269ee3d7a54e67b5008e | ee8a945c67c8e9ddef725900ac300d2d5a785e08 | refs/heads/master | 2023-04-02T17:03:28.711163 | 2021-04-08T03:10:24 | 2021-04-08T03:10:24 | 322,861,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,319 | py | import mmcv
import numpy as np
from numpy import random
from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps
from mmdet.core.mask.utils import mask_expand, mask_crop
class MixUp(object):
"""暂未实现在loss上对label按mix加权"""
def __init__(self, p=0.3, lambd=0.5):
self.lambd = lambd
self.p = p
... | [
"jgf0719@foxmail.com"
] | jgf0719@foxmail.com |
215b0cc5ee454bc4870b1fc88195a77867b0fa9c | a066134017b7d4cb7ac6f342b18f75c3b768fb87 | /3-exceptions/1-basics/FinallyBlock.py | da3b0ef05534f4166a184889876a3c38c8ca423d | [] | no_license | akyare/Python-Students-IoT | e6612af05629a32bae841225f17c5076a4499ca9 | 3886e7cced42622e3989873749d33476cc6b5f6f | refs/heads/main | 2023-01-22T04:43:41.723276 | 2020-12-03T10:56:01 | 2020-12-03T10:56:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | path = 'GeneralExceptions.py'
# There are times in Python that we need to work with resources like:
# files;
# DB connections;
# network connections;
# ...
# And if we are using certain resources we should always close those resources at the end of our program.
# We can handle this in the following w... | [
"intec.alexander.keisse@gmail.com"
] | intec.alexander.keisse@gmail.com |
745ebd5a93fa292c9280ac4ca66f3ec83dcc627b | 6dee59b96671f2adcfbfe4d5732b7a585e05a419 | /bin/wheel | cf05771a23e8690b10679a2739fe9f0a3b0eae70 | [] | no_license | arnoldblandon/microserviciodocumento | dbd747a459caef63125bbf7fa1920ef5f66724b0 | 73889ab1acbbfef317c03b4a074a866e751a73d8 | refs/heads/master | 2021-06-27T07:18:26.632327 | 2017-09-14T17:10:41 | 2017-09-14T17:10:41 | 102,908,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/arnold/Escritorio/microservicio/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ay.blandon.mesfix.co"
] | ay.blandon.mesfix.co | |
5316a4c200e07018aca93fa33bea460da0c3a5ad | e31fd8de16f5d928ad7f8a423bb6f26cfd0871b1 | /Python/Day 4/To find cubes of all numbers of list using 'map' fn.py | e6868cf4f2d4eba3ba1dd8b913057f586e5c40da | [] | no_license | adrija24/languages_learning | 47f8755b950058658501e69748457bbda9529c52 | 851bafca2c27cb87a6ea2f4edf316da178168d8b | refs/heads/master | 2023-08-24T07:28:08.233696 | 2021-10-02T13:38:03 | 2021-10-02T13:38:03 | 412,806,715 | 0 | 0 | null | 2021-10-02T13:37:52 | 2021-10-02T13:37:51 | null | UTF-8 | Python | false | false | 108 | py | """To find cubes of all numbers of list using 'map' fn"""
a=[1,2,3,4]
print(list(map(lambda x:pow(x,3),a))) | [
"aritraroy24@gmail.com"
] | aritraroy24@gmail.com |
58a1479231c6df07a1390e753e25667f72519694 | 7a2965bb69ca8e0966fd9077f8e9180e63e1b6a2 | /app.py | 81d2cf878b6628e4b362c45e5298506a9f1eac7d | [] | no_license | thorntcj/team1 | f085271e712da7f3ced87520765906e1b6731d65 | 26bf976e9979dff711132324e49751780c90f8e2 | refs/heads/main | 2023-06-21T22:12:07.039039 | 2021-07-12T22:19:25 | 2021-07-12T22:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!/usr/bin/env python3
#
# Installed packages:
#
#
from flask import (Flask, redirect, render_template, url_for)
from markupsafe import escape
app = Flask(__name__)
@app.route('/')
def index():
return redirect('http://127.0.0.1:5000/welcome')
@app.route('/welcome')
def welcome():
return render_template... | [
"codyjamisonthornton@gmail.com"
] | codyjamisonthornton@gmail.com |
b922221aa6a8d382df22ff335a91e74dc8ce015a | becf33483b318e0101f2e23cc57eda5c76626fbd | /model/bert.py | e28e6bef3e9abd6ba9125bf39bd6c9c8d9b00466 | [] | no_license | LearningHarder/query_similar_tianchi_2020 | fc74aa1d74423faf6ac53e254abba6f6f097ef3d | 6208a0b1ff9b896b56179989200a1c48372e3ad3 | refs/heads/master | 2023-08-11T02:25:11.982982 | 2021-09-17T07:14:46 | 2021-09-17T07:14:46 | 269,318,002 | 1 | 0 | null | 2020-06-04T09:36:17 | 2020-06-04T09:36:16 | null | UTF-8 | Python | false | false | 965 | py | from bert4keras.bert import build_bert_model
from tensorflow.keras.layers import Dropout, Dense
from tensorflow.keras import Model
class BertModel:
def __init__(self, config_path: str, checkpoint_path: str):
"""
初始化预训练的模型参数
:param config_path :
:param checkpoint_path:
""... | [
"anxiang1836@126.com"
] | anxiang1836@126.com |
c3d0c5088b17dc4892ea8a5da270c9658f67e475 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stdlib/email/errors.pyi | 656cbd374ac4c6ac5b1341328348f5c65ab2666a | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,532 | pyi | import sys
class MessageError(Exception): ...
class MessageParseError(MessageError): ...
class HeaderParseError(MessageParseError): ...
class BoundaryError(MessageParseError): ...
class MultipartConversionError(MessageError, TypeError): ...
class CharsetError(MessageError): ...
class MessageDefect(ValueError):
de... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
3af0d9e86e8534f2ebc70878d3b6cc81f137dbe0 | 21700527a1a4d572331fc2d236fdf4e5920e7834 | /Domashka/env/bin/pip3 | c116a1464b98aa3b884ddc49dffacc16bbbb21f8 | [] | no_license | ilovepizzawithpineapples/dz | 7d68030554e2bec65472030348cd1745e09f873a | 1e7df1fbd51b1a552db58cf51abec66b0e2c4b43 | refs/heads/master | 2020-05-19T17:15:26.839101 | 2019-05-06T05:39:19 | 2019-05-06T05:39:19 | 185,129,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/home/pixelsmaker/Projects_for_study_django/Youtube_molchanov/env/bin/python3
# -*- 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())
| [
"pixelsmaker666@gmail.com"
] | pixelsmaker666@gmail.com | |
8fd967ac11f6f58b538c09958fa15f834b7c0f27 | 34bfba985cf6a2ae98e9ea19b58b3f7c25dda9d9 | /alembic/versions/23a622f768da_initial_revision.py | cc9e947b84af99fe1d293ecd12effd0d2336b86f | [] | no_license | buddyup/buddyup | 19c05fa5d83abe9611f4dad407538a9ea898969a | c5a64ff1680b48e3bc552434539d051166e665fd | refs/heads/master | 2021-03-27T20:15:13.772744 | 2015-08-11T03:21:39 | 2015-08-11T03:21:39 | 18,304,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | """Initial Revision
Revision ID: 23a622f768da
Revises: None
Create Date: 2013-11-19 21:15:03.210863
"""
# revision identifiers, used by Alembic.
revision = '23a622f768da'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
pass
def downgrade():
pass
| [
"devskag@gmail.com"
] | devskag@gmail.com |
aa3a6e385c0912000d5014878d7a916a15c8ceb6 | 7dab8df68b1a11011d401555471cd74b965626b7 | /plotter.py | e78bbc1ac4339820ef86812b451755618523863d | [] | no_license | brilund/3D-PAWS | cb4cd31ec53850302d75cb4da55d6c6b0b9ffa0a | fb973d32cd3699ee01c02a7b68a803cdafc86833 | refs/heads/master | 2023-07-15T15:52:41.911569 | 2021-02-04T00:57:31 | 2021-02-04T00:57:31 | 269,197,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,133 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 4 16:05:12 2020
@author: blund
"""
###############################################################################
'''
_____ _____ _ ____ ___ ___ _____
| \ | / \ | \ | \ / | |
... | [
"60402705+brilund@users.noreply.github.com"
] | 60402705+brilund@users.noreply.github.com |
9771e560a49f34cfc2e40084ce20457d90961989 | ab42fea7aaf909a9cdf63cbde2d169be841e4c01 | /SHDY/merchant_agent_foreign/There_is_no_card/银二交易/银二提现.py | 0661da3b483161be175ddd1e7636274f1db3096c | [] | no_license | niah161951/pytest | 0e9692086f9ec450a7b1d5a3b310db807ab8982f | 14b48950d956bbf05d226ba8dd39223a4bdd40e3 | refs/heads/master | 2022-11-05T16:54:10.408068 | 2020-06-22T08:18:36 | 2020-06-22T08:18:36 | 265,437,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # -*- coding: utf-8 -*-
# @The_author: Lenovo
# @Time : 2020/2/5 9:17
import requests
from SHDY.Public.conf import Config
tradeNo = Config().get_param("mer_order_no")
dyMchNo = Config().get_param("mercid")
dyMchNo1 = Config().get_param("id")
url = 'http://localhost:8080/DemoJava/settle/mer/pay'
data = {
"o... | [
"ma.jingbin@chinaebi.com"
] | ma.jingbin@chinaebi.com |
b2fd0b0e0edb47a2a5bbc7365ac7cf6d117dd589 | 1470cc68d35157084fca66ce76f342b3dd481d22 | /test.py | 18b1c2a3c4d4d315fec7a4d8b0116763cf30d26c | [] | no_license | desmondykl/AI-assignment-2 | c44a35d946945ee4e48f265d7ba92a1f1a29deeb | b5074e9fe00c5c6217e890d2c157442179410b9d | refs/heads/main | 2023-04-08T16:43:01.549268 | 2021-04-04T09:44:53 | 2021-04-04T09:44:53 | 354,506,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,165 | py | import argparse
import random
from environment import TreasureCube
import numpy as np
import matplotlib.pyplot as plt
import pprint
import pandas as pd
# you need to implement your agent based on one RL algorithm
class RandomAgent(object):
def __init__(self):
self.action_space = ['left','right','forward... | [
"42940055+desmondykl@users.noreply.github.com"
] | 42940055+desmondykl@users.noreply.github.com |
d78ef6ecd64be809897d19645a1bbe40685bf247 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_2xra_D.py | d4d58ac3ba1c1b78c36a4f1f987552c3ea5935e1 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
af6fb6ffc288d9afb0dd158a13136688eab72366 | 4d2ece7d5ba6ac767ffac5d8a14a0f0bee4e2d70 | /class_linked.py | b51aaf8eb14a5f32876752c10d1301d3c5dd7895 | [] | no_license | HarshSharma009/Python | dec5ba5ab535d949b396e5b3d1f597d15eceb6c9 | a2393b88b58b740a0fd710eb4e9d67b8e26c6b61 | refs/heads/master | 2021-06-26T14:25:58.397856 | 2021-06-12T05:38:49 | 2021-06-12T05:38:49 | 228,650,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 2 14:43:41 2020
@author: Harsh Sharma
"""
class Node:
def __init__(self,value=None):
self.value=value
self.next=None
def isempty(self):
return (self.value==None)
def append(self,v):
if self.isempty():
... | [
"noreply@github.com"
] | noreply@github.com |
d9e98f51953a04b22a2f8bc4fd66c62fb3eb046a | 18dca9a552f5aa9303536613ec39f19cebf6647c | /Evaluation/OnlineEvaluation/grouped_nlppapers.py | 6d8de263c13fa0316b9700846890cd35bbd31a54 | [
"MIT"
] | permissive | ashwath92/MastersThesis | 9a39ed7eec825ed559d09507721c21bd12e2ab9c | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | refs/heads/master | 2021-08-16T12:01:33.282459 | 2020-06-27T16:00:16 | 2020-06-27T16:00:16 | 197,282,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import pandas as pd
import re
import contractions
from gensim.parsing import preprocessing
from HyperDoc2Vec import *
hd2vmodel = HyperDoc2Vec.load('/home/ashwath/Programs/MAGCS/MAG-hyperdoc2vec/models/magcsenglish_window20.model')
def clean_text(text):
""" Cleans the text in the only argument in various steps
... | [
"ashwath92@gmail.com"
] | ashwath92@gmail.com |
62ac8f0793cc301b038d63a9b03e49348f29bf26 | 49e703cdf72110b2be85e94b71dcbe88660f05e7 | /ssz/sedes/integer.py | 2ec7bae305f54ce570acc64bc3aea1c19db8fd3a | [
"MIT"
] | permissive | vapory-staging/py-ssz | becf67f5b03e171719c7166ffe28eaa1a9f09b30 | 4968148ff7fd86d53d7d082fc0f218d18fc6a4c9 | refs/heads/master | 2021-10-10T10:20:53.913112 | 2019-01-07T05:48:51 | 2019-01-07T05:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | from ssz.exceptions import (
DeserializationError,
SerializationError,
)
class UnsignedInteger:
"""
A sedes for integers (uint<N>).
"""
num_bytes = 0
def __init__(self, num_bits):
# Make sure the number of bits are multiple of 8
if num_bits % 8 != 0:
raise Valu... | [
"somubhargava97@gmail.com"
] | somubhargava97@gmail.com |
d92679ec536a61db4990fe12808f260b7736ae90 | a43c965e30916dc197b0995efcc8370627fe4d70 | /runTrial.py | 91a81bb60e8f898103de159f63dbbc87bfe5dbb9 | [
"MIT"
] | permissive | avkhadiev/mdfun | 021200d369a6946d5b036fc741359f848abf2c6d | cbf5b5ab01f6f14dd2cb9e3078a035d62ef3228f | refs/heads/master | 2021-01-19T09:27:25.447428 | 2017-04-26T14:53:00 | 2017-04-26T14:53:00 | 82,113,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | # -*- coding: utf-8 -*-
#
# 1D Simple Harmonic Oscillator MD simulation
# launches a single simulation based on the provided configuration
# TODO calculates and saves required observables in the file
#
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-n", "--name",
action="store", ... | [
"aavkhadi@gmail.com"
] | aavkhadi@gmail.com |
9b8b6cb47acb3e04aeeb079a08753d5a1a3e9123 | 3f47573a56d7347b125c91f69114b440f3f868ce | /bundle/jedi-vim/jedi/test/test_utils.py | 049dffd0f3cede659fb389acd518036d3558d647 | [
"MIT"
] | permissive | utylee/.vimwin | 25c53eabeea8a5e6e69e4b7fab761e1e442840e3 | a7714412d6cdc7744fe510617c62aa18358bdd99 | refs/heads/master | 2021-06-24T18:07:39.201913 | 2017-09-13T01:24:39 | 2017-09-13T01:24:39 | 103,337,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | try:
import readline
except ImportError:
readline = False
from jedi import utils
from .helpers import unittest, cwd_at
@unittest.skipIf(not readline, "readline not found")
class TestSetupReadline(unittest.TestCase):
class NameSpace(object):
pass
def __init__(self, *args, **kw... | [
"utylee@gmail.com"
] | utylee@gmail.com |
5643d6fa09f8461e8561a37f89cf1607c6f6d73f | 9e02354f6cbfd6529e0003b79c5a6ce0926ff573 | /rtcommit.py | 78fdc1e1b2b711327ec250fa79775745db3e3e30 | [] | no_license | jhuttner/rtcommit | 40997f1335d66a374e1df8db28fa2e75481ca55e | a0ca34131c0ae48fb484092980217cf6d338eae9 | refs/heads/master | 2021-03-12T23:48:11.178757 | 2011-03-22T21:33:56 | 2011-03-22T21:33:56 | 1,444,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,617 | py | #!/usr/local/bin/python
# Written by Joseph Huttner -- jhuttner@appnexus.com
# Licensed under the GNU General Public License
#
# Change Log
#
# Jan 7, 2011.
# First release. Commit against an RT ticket and have the
# commit message automatically populate with the RT subject.
#
# Jan 17
# Add support for use as ... | [
"jhuttner@appnexus.com"
] | jhuttner@appnexus.com |
a1bc22d85ebb4a4a6709a2b40fc1b66ac428833b | 312732cce4737a33bd0a13137936b14424db884e | /filter_month11_good_data.py | 38755d2f3cda21807aaa952864f9a829cb2bdd7e | [] | no_license | marlboroug/mscode | 21c7f6408c4869aeb90b08ae9a29a0f7d09344fb | ee453c958d3d1d07eb8cff693f913fe4176926c6 | refs/heads/master | 2021-01-21T17:13:48.932367 | 2017-12-22T08:19:18 | 2017-12-22T08:19:18 | 98,517,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,070 | py | # encoding: utf-8
"""cross_validation_month_detail
Usage:
cross_validation_month_fault_detail.py
[--fault_disk_take_top=<fault_disk_take_top>] [--good_disk_take_top=<good_disk_take_top>] [--source_file_name=<source_file_name>] [--model_type=<model_type>]
cross_validation_month_fault_detail.py (-h | --help)... | [
"noreply@github.com"
] | noreply@github.com |
0d30e60a3c74c1f03015f06c6518907a8ddaad1f | 8d5ab4d889a596eb3f6e367fcf6a9cd849c5df94 | /node_modules/ccxt/python/ccxt/paymium.py | 4b01786877e77812bf7004170a588ac16b468ac0 | [
"MIT"
] | permissive | dleonard00/cryptoBot | 0ea9c1d73513ae446f3ab67ea1186cf786de4857 | 1195823102989b6d37698d0da676dcc37d342a4c | refs/heads/master | 2021-08-20T09:37:35.461416 | 2017-11-28T20:56:55 | 2017-11-28T20:56:55 | 112,361,285 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,890 | py | # -*- coding: utf-8 -*-
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
class paymium (Exchange):
def describe(self):
return self.deep_extend(super(paymium, self).describe(), {
'id': 'paymium',
'name': 'Paymium',
'countries': ['FR', ... | [
"douglaswleonard+gitlab@gmail.com"
] | douglaswleonard+gitlab@gmail.com |
a7c0223148294123bd1252311d60669270ab2677 | 421338e0f5ad029885b7ae1b198dfde85798e313 | /auxilaries/config_str.py | 09b1bab56017945c0488842f5e8813742d12a321 | [] | no_license | HaiFengZeng/nsynth_wavenet | 985b0b0bea59b3a8cdee6be267259cdad5242a6c | 1c276ea9f8f98d25aad7d9049c6e03101429ac53 | refs/heads/master | 2020-03-25T01:50:13.018446 | 2018-07-28T14:28:41 | 2018-07-28T14:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | from wavenet import parallel_wavenet, wavenet, masked
import json
import subprocess
from argparse import Namespace
import time
from auxilaries import reader
def get_config_srt(hparams, model, tag=''):
prefix = 'ns_' # nsynth
if model == 'wavenet':
model_str = 'wn'
elif model == 'parallel_wavenet'... | [
"sansword1989@sina.com"
] | sansword1989@sina.com |
576f0fbb13855a3291afaad145ffb5d1e107c293 | b6152611cfccc0289844293d693f98a88287de2e | /mysite/settings.py | 8dc7584886955556b8e2a7065d68d8f86230e726 | [] | no_license | babelcisco/mysite | 059c30c3ce148fc15c4d8e06d46d5e012bde6af6 | 5a506c82e4ead1d463d9b7b03abe3253a88dc8b8 | refs/heads/master | 2021-04-12T02:41:07.395607 | 2018-03-19T16:10:40 | 2018-03-19T16:10:40 | 125,883,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"root@entreprise.com"
] | root@entreprise.com |
bb370fde71b86ce2b71d05a6b9c496760a47ffed | af7f6e1a1e4d964c3cce0d224effed08e9096ad0 | /Garden.py | eb94cd01d530d383378342388ec3bb615de1b156 | [] | no_license | saharsh2008/Ballon-Fight | e1cd4028822b35fd142dca400c1dc2c1c1b49f9f | 3e70929a57f2328ac9fb604689bd20808a0c11e5 | refs/heads/master | 2022-11-26T22:42:57.174998 | 2020-08-03T16:45:38 | 2020-08-03T16:45:38 | 284,748,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | import pgzrun
from random import randint
import time
WIDTH = 800
HEIGHT = 600
CENTER_X = WIDTH / 2
CENTER_Y = HEIGHT / 2
game_over = False
finalised = False
garden_happy = True
fangflower_collision = False
time_elapsed = 0
start_time = time.time()
cow = Actor("cow")
cow.pos = 100, 500
flower_list = [ ]
wilted_li... | [
"noreply@github.com"
] | noreply@github.com |
3f4fc8fb10f2b958cdadc43fb4838be1ffd9d192 | e76683547c26a6f902e3c68ebfc207a1d9abe79f | /13_IntroductionToDjangoRESTFramework/djlibrary/app_api/v1/catalog/urls.py | 9982bc10639cbc000410d116ff4887b82bcf13b6 | [] | no_license | antoshkoo/python_django | 03b19f3307b9aef1cc4c2bf2858b550334442ebe | ecb8b1c3edfe3e1af6a531cb237bb5d9f4e50601 | refs/heads/master | 2023-03-19T18:52:54.257903 | 2021-03-05T16:09:56 | 2021-03-05T16:09:56 | 339,375,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.urls import include, path
from rest_framework import routers
from app_api.v1.catalog.api import AuthorViewSet, BookViewSet
router = routers.DefaultRouter()
router.register('authors', AuthorViewSet)
router.register('books', BookViewSet)
urlpatterns = [
path('', include(router.urls)),
] | [
"antoshkoo@gmail.com"
] | antoshkoo@gmail.com |
e72ba02c8a3a0527c9964bf64f11e21586fa69ad | 9b443b52a0eae62d624592a6fe7a73c05f046f64 | /ex11_second_intro_rover/robot.py | 462197bb9c615d8583b567c89ba2d4102d4043ee | [] | no_license | bruiken/DES-Exercises | 93cc4b84f02c6c2e4fddcc4e9f49bc710cda8aea | 2ae1c0d15bfdaf491e8b3dd7404a53fdea0bec2b | refs/heads/master | 2023-02-20T10:57:43.369508 | 2021-01-27T13:20:44 | 2021-01-27T13:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | from ev3dev2.motor import OUTPUT_A, OUTPUT_D, MoveDifferential, SpeedRPM, SpeedPercent, SpeedDPS
from ev3dev2.unit import STUD_MM
from ev3dev2.wheel import EV3EducationSetTire
from ev3dev2.sensor.lego import UltrasonicSensor, TouchSensor, ColorSensor
from ev3dev2.led import Leds
from ev3dev2.sound import Sound
from dat... | [
"bobruiken@gmail.com"
] | bobruiken@gmail.com |
de81d1f7b6fa8546f1762a7e9b75f0a7e76b89af | adcdc01294ef1563f063b26c4513825879d34262 | /spider/spider_server/app/service/service_user.py | d7a52343623b1b1afd5b2719d983e9d119227d88 | [] | no_license | clearloveyin/Cararote | 0312d18061fd6b23e72450d956ff2a4f07deb31a | 2d764d5d682391a8909650387e84eb735044c5ff | refs/heads/master | 2023-01-29T07:08:32.696111 | 2019-08-03T04:12:15 | 2019-08-03T04:12:15 | 200,329,856 | 0 | 0 | null | 2023-01-04T06:14:17 | 2019-08-03T04:07:49 | Python | UTF-8 | Python | false | false | 5,560 | py | import json
import ldap
from flask import g
from flask import current_app
from requests import post
from ..service import *
from token_manage import serializer
from app.db import db
from app.controller.ctrl_user import CtrlUser
ldapServer = 'LDAP://apolo.storm'
domain = 'storm'
class ServiceUser(object):
def __i... | [
"1484091708@qq,com"
] | 1484091708@qq,com |
a4822140a61b3189d8c7e9ef0a5f04e97a365ed7 | 538f6481bcfcfacdd64d75e920862fd22a0e8dc0 | /references/cpsc2019/CPSC0437_qrs8921_hr928/unet_lstm_mse_simple_9pool.py | 81aafa06504eee130add55edc8495396ec82b76e | [
"MIT",
"BSD-3-Clause"
] | permissive | wenh06/cpsc2020 | cdf6097dc9d920b29a852a2896ba3f5a275a74f4 | 47acb884ea1f2f819e564d8a17ad37001ed0df27 | refs/heads/master | 2023-07-27T01:56:41.442556 | 2021-05-26T00:10:39 | 2021-05-26T00:10:39 | 370,730,725 | 0 | 0 | BSD-3-Clause | 2021-05-25T14:56:02 | 2021-05-25T14:56:01 | null | UTF-8 | Python | false | false | 9,833 | py | from keras import optimizers
from keras.models import Model
from keras.layers import Dropout, Lambda, Input, average, Reshape, UpSampling1D, Multiply,Concatenate
from keras.layers import Conv1D, Flatten, Dense, Add, AveragePooling1D
from keras.layers import ZeroPadding1D, Cropping1D, BatchNormalization, MaxPooling1D
fr... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
eec69d7432435bb5123ce3378e2025ce0c3989f1 | b4da3119fbf64b789566066a3c96a1c8fc9c5370 | /cmframework/src/cmframework/lib/__init__.py | 09f53caf10b16878d66bab068b291122b62db446 | [
"Apache-2.0"
] | permissive | akraino-edge-stack/ta-config-manager | 0c2ccf3d786829a77ad427cbc17673864640d482 | 8a3f88d0dbf6afdb0130b9d35e563f8a54d15d44 | refs/heads/master | 2023-05-25T16:42:32.723250 | 2020-01-16T08:11:37 | 2020-01-16T10:42:08 | 199,550,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Copyright 2019 Nokia
# 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, softwar... | [
"jyrki.aaltonen@nokia.com"
] | jyrki.aaltonen@nokia.com |
8130915fa36c2153f2eda28f95c56be4542177f8 | f93da4fe323a4fb403f3a57eecd2387c8a6789ac | /doctype/extend_the_test_period/test_extend_the_test_period.py | 8c81114919be0c1a658f57462ff429c1058c442c | [] | no_license | beshoyAtefZaki/hr-update | 35d893eff958a151b96b0a3477f292fb86fd9d95 | 2601ecf70c02d893a01872ad6d63336f51491e5c | refs/heads/master | 2020-08-18T09:20:04.126142 | 2019-10-17T11:16:36 | 2019-10-17T11:16:36 | 215,773,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestExtendthetestperiod(unittest.TestCase):
pass
| [
"beshoyatef31@gmail.com"
] | beshoyatef31@gmail.com |
53a60bad2c5be52e6f5ce4f820cdccc85af98f97 | e60dd32858b162eb28e673ac9cfdb1b2a403c695 | /execptions_try_syntax.py | d9be623e83328f3919ab3a18116142ec8c1d70bb | [] | no_license | Hemanthtm2/playing_python | 8d3419a46d50b2801283aa020be89a8003d4ad31 | cb896916c6d84c564f7036a4ed6a2a5481bf2fd6 | refs/heads/master | 2020-05-23T13:10:51.753218 | 2019-02-20T21:52:34 | 2019-02-20T21:52:34 | 186,767,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
def try_syntax(numerator,denominator):
try:
print('In the try block {}/{}'.format(numerator,denominator))
result=numerator/denominator
except ZeroDivisionError as zde:
print(zde)
else:
print('The result is:',result)
return result
finally:
... | [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
037e831a39a806490ee2f27ca98d8361163fd71f | 6625575b7e6f020f25c7a099be940b5dae823b26 | /transform_utils/dict_utils.py | ba78796bcdd88e0b9539d9214238fcf5576af02f | [] | no_license | dparadise28/transform | 143cd43486f5f32938b2a18f7ff661069726099a | 03ad9992ae57b3015016643a64df422362759bee | refs/heads/master | 2020-12-24T07:55:04.508787 | 2016-11-10T06:59:08 | 2016-11-10T06:59:08 | 73,355,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | from copy import deepcopy
def unpack(nested_dict, dict_name = 'main'):
'''
unpacks nested dicts
example:
nested_dict = {
"1": "1",
"2": {
"2": ["4"]
},
"3": [{
"1": "1",
"3": [{
"1": "1"
}]
}]
}
return:
[
{
"main": {"2": {}, "1": "1", "3": []... | [
"dparadis28@gmail.com"
] | dparadis28@gmail.com |
1c7f9d355a8043570fbd6cc9913253ef39384e0a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02771/s627765878.py | 85fc06f4995007009269de5397302bc187300a6f | [] | 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 | 143 | py | a,b,c = map(int,input().split())
if (a == b and b != c) or (a == c and a != b) or (b == c and c != a):
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4a2405497961bc1b2a51c82a38be173a43bf86e | de9204aa4a471c266e7654571c5f88c798d41519 | /rbaas/wsgi.py | 468ec99d01293df59580d40543505a062d0fb525 | [] | no_license | noxor0/async-rbaas | 2bd1289ffbeda50beaf76e672b76d3b6fa0f2afb | 8af47bc0904c6d170de0641689a603dc9a4bb002 | refs/heads/main | 2023-05-14T03:09:56.490615 | 2021-06-07T02:16:49 | 2021-06-07T02:16:49 | 374,504,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for rbaas project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"noxor@noxor.io"
] | noxor@noxor.io |
22d1a3fd1c35d3c2c8d208486e40387a58501dbb | 40aad3eefe91dfd9ec1673d35e98ad2e03b0cc37 | /deepleanrning_practice.py | 4c5f6e5698456de8cb2280ca46cec75a6fb99512 | [] | no_license | xuxvming/ML-practicals- | 7f3b8848113d7b707a816f167490dd5fec0c660f | 24757f754aa497b7a5a86473c1ff0c75d01fc2c2 | refs/heads/master | 2020-03-22T19:58:42.694501 | 2018-10-06T17:32:25 | 2018-10-06T17:32:25 | 140,565,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,187 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 6 15:35:41 2018
@author: xxiu
"""
'''
input >weight> hidden layer2(activation function)> weights>hidden layer 2
(activation function)>weights> output
1.pass data straight through: feed forward nueral network
2.campare output with intended output > cost or loss fucntion... | [
"oliverxiu18@gmail.com"
] | oliverxiu18@gmail.com |
0a0aca32b392add0215c19553757eddf63b407b5 | 5013057778b9e0b0bce78185d5367eb8495521ec | /CVbook/ch1/interActiveAnnot.py | 13577b6d39f9ee0b1cea35de0841ae02a4ccc367 | [] | no_license | AdamBioprinter/OpenCV-Python-Tutorials | a31358b2b8bdb3bbb5b6c349ce067d2da680f822 | 5ab082c514e6bc554436e263c8e3b3aa2b1a27ee | refs/heads/master | 2021-01-09T09:36:02.369649 | 2016-08-02T06:24:28 | 2016-08-02T06:24:28 | 60,224,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # This script shows how to interacti with an image by marking points
# the function that is used to do this is ginput()
from PIL import Image
from matplotlib import pyplot as plt
import numpy as np
im = np.array(Image.open('building.jpg'))
plt.imshow(im)
print('Please Click 3 points')
x = plt.ginput(3)
print('you cli... | [
"adamrauff@gmail.com"
] | adamrauff@gmail.com |
b04a2a475e28f99b108ae6b96553f7c9218c2d58 | cc8b0e1b215834aefb2cf0f9f025fe2a1763ccdd | /agents/sarsa/sarsa_fa.py | b358b5ba028054ea214047739cadd00403fcd47c | [
"MIT"
] | permissive | afcarl/DeepRL-arnomoonens | abf929814934feebdbc24ee6e4d920349d7ea369 | 3e5a3ed1dc77c0abc3a5b9f413f51b7054ff9798 | refs/heads/master | 2020-03-22T08:06:45.393738 | 2018-07-03T14:29:30 | 2018-07-03T14:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | # -*- coding: utf8 -*-
from gym import wrappers
from policies.e_greedy import EGreedy
from agents.sarsa import Sarsa
from traces.eligibility_traces import EligibilityTraces
from functionapproximation.tile_coding import TileCoding
# def draw_3d(tile_starts):
# states = []
# for i in range(n_x_tiles):
# ... | [
"x-006@hotmail.com"
] | x-006@hotmail.com |
57d4f0aa35b2142b608fef3059072af4dcb8f224 | cb98df00075e55ea39d9e73662c9c575d197430b | /todolist/settings.py | 615e51aff0f5aed5b26e36ac4203c4be623ee3d1 | [] | no_license | phil-fiess/TodoList | c66bcc99333cc96d35e8078e1d5e7e7fb15180a0 | 02d5b789d0c3f8ca3e07bb004405f4356f0bbc18 | refs/heads/main | 2023-01-13T19:51:41.466170 | 2020-11-21T00:15:08 | 2020-11-21T00:15:08 | 314,699,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | """
Django settings for todolist project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"pfiess@protonmail.com"
] | pfiess@protonmail.com |
470ab45981ad7834924041e8f6b3fadccffa08a2 | 3f0e403ccece5d35af9dcef40855e648d444f81d | /hw3/gene_finder.py | 06cf0005510bafadfc4769125a275c92675564b9 | [] | no_license | paulruvolo/SoftwareDesign | fbcf40c40cb8d62ae69d64a8cf15742fc1398e91 | 3c4f2d9b196653226dc5dba1b30583aca48731df | refs/heads/master | 2020-05-20T10:04:25.879779 | 2014-05-01T15:45:17 | 2014-05-01T15:45:17 | 16,159,399 | 1 | 1 | null | 2014-04-03T07:01:41 | 2014-01-23T02:09:47 | Python | UTF-8 | Python | false | false | 4,780 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 2 11:24:42 2014
@author: YOUR NAME HERE
"""
# you may find it useful to import these variables (although you are not required to use them)
from amino_acids import aa, codons
def collapse(L):
""" Converts a list of strings to a string by concatenating all elements o... | [
"paullundyruvolo@gmail.com"
] | paullundyruvolo@gmail.com |
0d8d9931fc39e117e208a6bbb14e8e319c51f5d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03618/s852100353.py | 4ec50b5b200e61ec44a631e25644e2e5e81fbb35 | [] | 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 | 257 | py | A = input()
N = len(A)
count = {}
ans = 1
for i in range(N):
if A[i] in count.keys():
count[A[i]] += 1
else:
count[A[i]] = 1
L = list(count.values())
M = len(L)
for i in range(M):
for j in range(i+1,M):
ans += L[i] * L[j]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0d8b708a8a3d87139068832ed3780276e9387b0f | 71e640ac44a47e88a813b0019f1ce3031edaad3a | /BookZelle/10_animation.py | 64fd9ba63655a7d3133700de5d96af58f17f8273 | [] | no_license | PyRPy/algorithms_books | ef19b45f24c08a189cb9914f8423f28d609700e2 | 1804863ca931abedbbb8053bcc771115d0c23a2d | refs/heads/master | 2022-05-25T20:22:03.776125 | 2022-05-10T13:47:33 | 2022-05-10T13:47:33 | 167,270,558 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,987 | py | # 10_animation.py
from math import sqrt, sin, cos, radians, degrees
from graphics import *
from projectile import Projectile
from button import Button
class ShortTracker:
def __init__(self, win, angle, velocity, height):
"""Win is the GraphWin to display the shot angle, velocity,
and... | [
"noreply@github.com"
] | noreply@github.com |
3be9437daa2a35e743a7785af6fc9535115a66b2 | a61ffe4cde938b993202cd172c84d03cfc7ea955 | /c3d_svm_py_develop/c3d_svm_create_inputlist_and_outputprefix.py | 6a8156f7ef4e51584c25bdec7b4bf547e6db3735 | [] | no_license | wujinjun/wujinjun_py | 33f372944bcb0aa961503207df2c5743b309f46c | 6cb100b06ebe8a66c59198b2a4dcdf263f91f521 | refs/heads/master | 2021-01-19T10:54:06.250551 | 2017-11-20T09:14:44 | 2017-11-20T09:14:44 | 87,911,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | #此py脚本用于c3d_svm,可以用这个脚本可以得到inputlist.txt, outputprefix.txt
#Usage:“数据集路径”“inputlist文件名”“ outputprefix文件名”,"起始video序号" ,"结束video序号" ,“帧采样间隔”
#Example:create_inputlist_ouputprefix("/home/wjj/HDD/HDD/dataset_pytest/","input_list.txt","output_list_prefix.txt",1,13,8)
#Author:Wu jinjun
import re
def change_to_outputprefix_f... | [
"noreply@github.com"
] | noreply@github.com |
3f506c4228fece459ff8e304cb3ff7c1c8f44ed0 | 4273556f701f70baccd7151ce0c51cb89e68a610 | /moult/color.py | c8ae3a6dfebf203ea0be218df9986ab90917fda7 | [
"MIT"
] | permissive | intermezzo-fr/moult | bef6166a99a181a91e610232d599cd669ca5f6fe | 59f5f08931c7ed306d83a7a1696d95082c259c60 | refs/heads/master | 2021-01-16T17:59:35.345622 | 2015-04-27T18:51:02 | 2015-04-27T18:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | import sys
FG_BLACK = 30
FG_RED = 31
FG_GREEN = 32
FG_YELLOW = 33
FG_BLUE = 34
FG_MAGENTA = 35
FG_CYAN = 36
FG_WHITE = 37
FG_RESET = 39
BG_BLACK = 40
BG_RED = 41
BG_GREEN = 42
BG_YELLOW = 43
BG_BLUE = 44
BG_MAGENTA = 45
BG_CYAN = 46
BG_WHITE = 47
BG_RESET = 49
enabled = True
_enabled = hasattr(sys.stdout, 'isatty'... | [
"tommy@tweek.us"
] | tommy@tweek.us |
64bc51802cab2944f30ecdc0a80ee6c55b246561 | 966e52a65041fffb09cc66c5b3593a4af6d2aadb | /tut_01_hello_triangle/__init__.py | d015788299204f0c562468eac7b44ee0004c8c23 | [] | no_license | tymonpitts/pygltut | 489c0fd2a6a10076624b76cfc77c777e034e8c2a | 11868a764ffadae0bc439440e9f2273896ae7b3f | refs/heads/master | 2021-01-06T20:36:54.883409 | 2014-04-06T22:49:40 | 2014-04-06T22:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,292 | py | import glfw
from OpenGL import GL
from OpenGL.GL.shaders import compileShader, compileProgram
from gltut_framework import AbstractTutorial
VERTEX_SHADER = """
#version 330
layout(location = 0) in vec4 position;
void main()
{
gl_Position = position;
}
"""
FRAGMENT_SHADER = """
#version 330
out vec4 outputColor;
vo... | [
"tpitts@wetafx.co.nz"
] | tpitts@wetafx.co.nz |
39d2d1b7c2d82e8e5f7f14bf5ac912849bac3e28 | ac06fe47b7b8bca32cce00823d5bf6b974634e53 | /Geospatial/texas_freeze_NDVI.py | 348b04388374000651d3e2cb5cf5bdcab1b418e9 | [
"BSD-2-Clause"
] | permissive | veeeology/portfolio_projects | 3277d99faad84785bcc67e52a353762292c23960 | 6ba7ae934bb678091815262f9af553dffc407f4f | refs/heads/main | 2023-03-30T16:36:19.553748 | 2021-04-06T14:56:15 | 2021-04-06T14:56:15 | 347,794,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,267 | py | import os, zipfile, time, datetime, re
import datetime as dt
import rasterio
import rasterio.mask
import geopandas as gpd
import numpy as np
import matplotlib.pyplot as plt
# File locations and configuration
raster_crs = '+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +ellps=sphere +units=m +no_defs +type=crs'
ra... | [
"vandersondatawork@gmail.com"
] | vandersondatawork@gmail.com |
1dc803b5cbb87ff7d2b65bfecab4e5e6aa6afee4 | c4a33b613ffc77dccf96d33c3a5cc127405c0e95 | /home/tests.py | 9124cedbe903776e5f9e6fcac0320003030903d1 | [] | no_license | tsokac2/new-irish-life | 25f49bd0b74dfa7c0a449772249f6cb51925b643 | d09934b60a1fd4fbd4540d412dc5dab726f5b502 | refs/heads/main | 2023-07-02T09:54:55.082587 | 2021-07-30T04:42:57 | 2021-07-30T04:42:57 | 379,245,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from django.test import TestCase
class TestViews(TestCase):
def test_home_page(self):
""" Test home page renders correct page """
response = self.client.get('/')
self.assertEqual(response.status_code, 200)
self. assertTemplateUsed(response, 'home/home.html') | [
"tsokac2@gmail.com"
] | tsokac2@gmail.com |
fc819fae94e9a16c18e0c3eede6e3712240680ff | ade1ad9128f7c31c69d468225bbf032fe96e0783 | /src/StateHandler.py | 22c3048426a0b2190fe0430cb9a55c5059274123 | [] | no_license | UHSProgramming/StrategyGame | a59bef78916654bcf0f42a94693672b16af594eb | 0795dc656e32903818e9f5aea47b9751f8471f7e | refs/heads/master | 2021-09-02T12:49:20.202234 | 2018-01-02T19:44:37 | 2018-01-02T19:44:37 | 105,717,547 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import pygame
"""
StateHandler
Handles all the given GameStates.
StateHandler handles swapping states and maintaining state
"""
class StateHandler:
def __init__(self):
self.states = []
self.stateIndex = 0
def addState(self, newState): # add a state to the list of states
self.states.ap... | [
"ben.greenberg@sixgables.com"
] | ben.greenberg@sixgables.com |
744795bf937a40082cce84199fe73e053eeeed12 | 9983450fb504387c767a4ea59cc149786388b245 | /tests/mowgli_etl_test/pipeline/food_on/food_on_extractor_test.py | b76c05ca2a55c099f7c3cdf20e1dc5dc0ae4cd8a | [
"MIT"
] | permissive | tetherless-world/mowgli-etl | 2e354f00df22f70323c3e05b3504c272903ded6d | 28c19eba41e03e053ae4addff56a313d926e18d7 | refs/heads/master | 2023-04-18T15:16:14.051190 | 2021-01-04T15:32:01 | 2021-01-04T15:32:01 | 235,866,968 | 6 | 1 | MIT | 2021-04-20T20:05:35 | 2020-01-23T19:11:35 | Python | UTF-8 | Python | false | false | 416 | py | import os.path
from mowgli_etl.pipeline.food_on.food_on_extractor import FoodOnExtractor
def test_food_on_extractor(pipeline_storage):
result = FoodOnExtractor().extract(force=False, storage=pipeline_storage)
assert len(result) == 1
file_path = result["food_on_owl_file_path"]
assert os.path.dirname(f... | [
"gordom6@rpi.edu"
] | gordom6@rpi.edu |
30c8425b09e3e4075bc5a238bd98f31b25ea39e6 | a4dbabcae5bbc6f9aef63bd7dfad12eb92e3b1f9 | /venv/Scripts/easy_install-3.7-script.py | c39a3d704356584c70032a4e0d652d4f704a4dc6 | [] | no_license | RFarrow9/Zeitgeist | 18de1ffdb4d8c2bbe3354d46f71011069b5ffe0f | 9b2b90720a5be6ab1c46783110a09a855201a6c6 | refs/heads/master | 2020-08-01T07:37:41.541660 | 2019-09-25T19:36:29 | 2019-09-25T19:36:29 | 210,916,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!C:\Users\robfa\PycharmProjects\SparkZeitgeist\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scri... | [
"rob.farrow@hotmail.com"
] | rob.farrow@hotmail.com |
c5e76a9cc1641319109e8b0d11e62b3cc0fcd669 | 302c5257598ef7e66606672bc73183b0f41d97fd | /wsgi.py | f07be02fec44860e7144109cd42a9e91c05c52d3 | [
"MIT"
] | permissive | jjmartens/mmq | 87955c3d2437a757e5adf6f2e9ba394d46e12b5d | 6fbff737e7c4ece100fcb4ab2844859d05b59dd2 | refs/heads/master | 2021-06-06T08:51:07.822333 | 2016-11-03T10:24:03 | 2016-11-03T10:24:03 | 33,864,801 | 5 | 1 | MIT | 2023-01-19T14:45:27 | 2015-04-13T11:35:55 | Python | UTF-8 | Python | false | false | 304 | py | from werkzeug.contrib.fixers import ProxyFix
from app import app, db
app.config['SQLALCHEMY_DATABASE_URI'] ='mysql://root:@localhost/mmq'
app.wsgi_app = ProxyFix(app.wsgi_app)
@app.errorhandler(500)
def internal_error(error):
db.session.rollback()
if __name__ == '__main__':
app.run(debug=True) | [
"jan-martens@hotmail.com"
] | jan-martens@hotmail.com |
519e6292e702c8402b2db2212eabdbe6b3b18ae9 | e7ebcf6603d134180f5b793643795c10a888aeca | /th23.py | ccb54cac015e7aa561cd2fdfd4c2885de5a56914 | [] | no_license | tranvanquan1999/k-thu-t-l-p-tr-nh | c7469e78423e293062920ee11973d44c9c802857 | 5c9c5fff4b0d49a6eb62f041ac9bed8d4d6954e0 | refs/heads/master | 2020-04-28T02:57:20.890902 | 2019-06-01T05:40:06 | 2019-06-01T05:40:06 | 174,917,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # viết chương trình kiểm tra số chẵn lẻ in ra màn hình
n=int(input("nhap so can kiem tra---->"))
if n % 2==0:
print("so chan");
else:
print("so le ") | [
"noreply@github.com"
] | noreply@github.com |
a475483643b30fae89103e4f7a12d3e27b64a13f | 452c6ab91b09d4bec46cf49188c03cd6c7d4225c | /cifar100.py | d9de5d2a74dfd3097bb85f2e03ce8f39239f99ee | [] | no_license | bahar-j/computer-vision | a66197db8a75b2572e311a6c0daa530012e72adb | 5703028e427f716a58036605ee99297b974fe54e | refs/heads/master | 2022-12-24T21:17:21.639830 | 2020-09-06T12:21:19 | 2020-09-06T12:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | import tensorflow as tf
import matplotlib.pyplot as plt
from tensorflow.keras import layers, datasets
import numpy as np
# Hyperparameter Tuning
num_classes = 100
input_shape = (32, 32, 3)
# Prepare Dataset
(train_x, train_y), (test_x, test_y) = datasets.cifar100.load_data()
print(train_x.shape, train_y.shap... | [
"joonie811@naver.com"
] | joonie811@naver.com |
1b44382e8d09fb8bedca579dabdd3e87fc880555 | 6cdd96cf0a7f3aab3dbd9f870d6b1bf3fea214c0 | /models/crnn.py | e08de010f001d7661fe16244ca9d28bc40d98a88 | [
"MIT"
] | permissive | yanhongyu111/crnn.pytorch | 40492ea2a0e9f59afd9e35d0addbd293fd79543c | 143c28fc5abc585fc97c19e2e57090d39a7140c5 | refs/heads/master | 2020-06-20T01:40:53.034038 | 2019-07-14T06:50:22 | 2019-07-14T06:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,916 | py | # -*- coding: utf-8 -*-
# @Time : 18-11-16 下午5:46
# @Author : zhoujun
import torch
import torchvision
from torchvision.models.densenet import _DenseBlock
from torch import nn
class VGG(nn.Module):
def __init__(self, in_channels):
super(VGG, self).__init__()
self.features = nn.Sequential( # co... | [
"572459439@qq.com"
] | 572459439@qq.com |
48ca5b34d8e4d69c03c18a6308499de393e3a28a | 1f187ab1fea83acec04fed50aeb4e406670124cc | /django_events/users/managers.py | dbdfa46906009c03b8e4771962a5765283e338e2 | [
"MIT"
] | permissive | chrisBrookes93/django-events-management | b231e4f7ff275a0910640e8138c06256b525f1fe | 93886448a7bb85c8758324977ff67bcacc80bbec | refs/heads/master | 2022-11-14T03:04:13.807371 | 2020-07-07T23:11:18 | 2020-07-07T23:11:18 | 275,236,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | from django.contrib.auth.base_user import BaseUserManager
from django.utils.translation import ugettext_lazy as _lazy
class UserManager(BaseUserManager):
def create_user(self, email, password, **other_fields):
"""
Creates a standard user
:param email: Email Address (username)
... | [
"dev@net.com"
] | dev@net.com |
ec88518eb53c3c0dded01a3e0c3b84a151e70586 | 3abf30632aae0d19510f206e8fb477b36e5873f1 | /dijkstra's_algorithm_queue.py | f93edc2517f7d7caf9e5ec5d848629d2623e885d | [] | no_license | ankita0204/DSA | 2df8e7fda1b2c08dc6945bb0136a2bdacc194c78 | 03ad051476e97a02b20d3ded4163fe178128536c | refs/heads/main | 2023-02-15T02:09:41.065637 | 2021-01-08T17:58:50 | 2021-01-08T17:58:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | """
Created on Fri Sep 11 23:10:36 2021
@author: Ankita Dasgupta
Dijkstra's Algorithm application with the help of Queue
"""
import numpy as np
class queue:
size = None
tail = None # End of the Queue: Elements enter from here
head = None # Front of the Queue: Elements are d... | [
"noreply@github.com"
] | noreply@github.com |
1fc7d09608203891efb389abfb3844062c39d487 | b40ce231d42e8291f0150987a2c95a12be5ec021 | /05_Regression/myridge.py | 518c89d2b946a4274a5149955ee78dd3abbc3ec5 | [] | no_license | Chenxu-nmsu/CS487_Applied_Machine_Learning_Python | 43ebd87a97bd7ea088f4f4500d6b9107bd603dbd | 8e9883576fc7592c1f0cd79cb1dc964d7c75b520 | refs/heads/master | 2022-12-16T21:30:49.174678 | 2020-09-28T06:03:41 | 2020-09-28T06:03:41 | 299,200,871 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from sklearn.linear_model import Ridge
ridge = Ridge(alpha=1.0, solver='auto')
| [
"chenxuzhuang@chenxus-MacBook-Pro.local"
] | chenxuzhuang@chenxus-MacBook-Pro.local |
e91054180f016f14be9cad61fb09ea51c6127794 | 9d57a7c07f25905d393d96412c406754b37d8201 | /CodeChallenge/TestSuites/conftest.py | 88e6b5494737c7c69a1b92aae0b690b0bb05556a | [] | no_license | git4bess/HearQAChallenge | ee1b5b28d5ccb6f732e368c438c760542f29442d | f9312438d4cd1420c27272b36784a59f0326c24c | refs/heads/master | 2022-11-26T20:25:57.280909 | 2020-08-09T16:59:34 | 2020-08-09T16:59:34 | 286,273,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | import pathlib
from pathlib import Path
import pytest
from selenium import webdriver
# from selenium.webdriver.support.select import Select
@pytest.fixture()
def setup(request):
base_path = Path.cwd()
file_path = base_path.parent
driver_path = file_path.as_posix() + "/Utilities/allDrivers/chromedriver"
... | [
"s.befolo@gmail.com"
] | s.befolo@gmail.com |
53b23974f6b368076f2691763ddb41b5e9498d13 | c7787b22849ea99e94c030ea16b67fb6c96e370a | /tests/providers/aws/aws_dynamodb_test.py | ec28aa7fc0e96fe1b8415ce3d66b1e6a23335a7e | [
"Apache-2.0",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"Classpath-exception-2.0",
"BSD-3-Clause",
"MIT",
"AGPL-3.0-only"
] | permissive | mengdong/PerfKitBenchmarker | b8ec428f5c1a306d3375d699fafb39922fa0233b | e2b6ac90a4a62c2db4cba7a3b3ce8717c804df7f | refs/heads/master | 2023-05-03T15:21:28.401706 | 2021-06-02T07:06:48 | 2021-06-02T07:07:19 | 264,105,279 | 0 | 0 | Apache-2.0 | 2020-05-15T05:36:32 | 2020-05-15T05:36:31 | null | UTF-8 | Python | false | false | 9,165 | py | """Tests for perfkitbenchmarker.providers.aws.aws_dynamodb."""
import json
import unittest
from absl import flags
from absl.testing import flagsaver
from absl.testing import parameterized
import mock
from perfkitbenchmarker import errors
from perfkitbenchmarker.providers.aws import aws_dynamodb
from perfkitbenchmarke... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
77f36774bc76d5d058496c9255280c51d8b36293 | 9ba1b921dd0c2e68345b3793131ad13aad671e20 | /cnn_class/benchmark.py | 5de59462bb63dfa48498c99a0b7ceb3854b3b81e | [] | no_license | racingicemen/DLCNNITT | 3ceda12e3d70e80764465112aca8a97415c94ca5 | 4f3c3b8b017279ab0502f7c3bc715befa6f115d6 | refs/heads/master | 2020-06-10T12:39:14.561287 | 2016-12-06T02:45:33 | 2016-12-06T02:45:33 | 75,960,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from scipy.io import loadmat
from sklearn.utils import shuffle
from datetime import datetime
K = 10 # num classes
def y2indicator(y):
N = len(y)
ind = np.zeros((N, K))
for i in range(N):
ind[i, y[i]] = 1
return ind
de... | [
"rajesh.kommu@gmail.com"
] | rajesh.kommu@gmail.com |
3fa5bea453f85362291bf14b95b767b1c41d51f4 | 4203f7d65fb93fc5907821907be0e57dff3a9bf6 | /monitor/migrations/0004_auto_20190329_1514.py | 2acb231f88b78e876edaa49b1a487c8047fbacaa | [] | no_license | Wesly-Yu/Xmonitor | 48afdd28ff24e5db7980b70b5f35ccf3b060d6ba | b8fc34adc3925fbd556fb94b302ad7ebede33528 | refs/heads/master | 2020-05-02T10:42:26.203476 | 2019-04-15T07:49:41 | 2019-04-15T07:49:41 | 177,904,853 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 2.1.5 on 2019-03-29 07:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('monitor', '0003_auto_20190329_1513'),
]
operations = [
migrations.AlterField(
model_name='serviceindex',
name='index... | [
"1633235633@qq.com"
] | 1633235633@qq.com |
f6e138d073472eb92edd8d8cdf87d9e963f1c4be | d6d1192e6817f5c37386b671328a238326611c04 | /day6.py | a4c79f50464e0af8a0e75217bf3dc35e38768e49 | [] | no_license | 12cheny/Leetcode | 0a3fdc8e2f8c8e2ccfacedec7446089508af7988 | e1b90cb2a3dfd03590ce7511d56a9f3be02c60ff | refs/heads/master | 2020-03-15T00:36:10.268271 | 2018-06-09T05:01:15 | 2018-06-09T05:01:15 | 131,872,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #Add the two numbers and return it as a linked list.
'''
class ListNode(object):
def __init__(self,x):
self.val=x
self.next=None
'''
def num(l):
k=0
i=0
while l.next!=None:
k+=l.val*pow(10,i)
i+=1
l=l.next
k+=l.val*pow(10,i)
return k
class Solution(object):
def ... | [
"noreply@github.com"
] | noreply@github.com |
d3f3761b4a237bbd0387788cc97266cc727c4f45 | e9d93dd6b3b5ca9e11add097f700d6248ddff7ae | /fizzbuzz-test.py | d62aadb16cc15ace89bfdf8999b6e780d733ffd6 | [] | no_license | ANDINDAE/Daytwochallenge | 9fe203444bcedacc91c2c1e7920e5d7fd995d687 | 1a7cc03e3cbe5a5190eef0adf168cadcf554a507 | refs/heads/master | 2020-04-05T17:00:22.870745 | 2018-11-26T17:14:56 | 2018-11-26T17:14:56 | 157,039,489 | 0 | 0 | null | 2018-11-11T02:37:44 | 2018-11-11T02:10:51 | null | UTF-8 | Python | false | false | 815 | py | import unittest
from fizzbuzz.fizzbuzz import fizzbuzz
class TestFizzBuzz(unittest.TestCase):
def test_non_list_inputs(self):
self.assertEqual(fizzbuzz(5, 8), "Invalid input")
def test_non_list_input(self):
self.assertEqual(fizzbuzz([2, 3, 4], 7), "Invalid input")
def test_fizz(self):
... | [
"favorlizzy@gmail.com"
] | favorlizzy@gmail.com |
c178f9017052339821c9a6ed7d596670dc281221 | c2704596fa9e8def1731bfbda3299b6d19a4721b | /nse.py | 310071d51dba565e4135f30ab102212c042e6e30 | [] | no_license | say-paul/finblitz | 391485f5b8da9cbe6af734b8f1f38dda34f6ef50 | e3305fc2dac549ae6ffad4c6c5789bcc24cdd319 | refs/heads/master | 2022-10-19T00:52:37.835403 | 2020-06-11T22:28:28 | 2020-06-11T22:28:28 | 270,297,074 | 0 | 0 | null | 2020-06-12T05:48:07 | 2020-06-07T12:18:48 | Python | UTF-8 | Python | false | false | 5,405 | py | import urllib.request
import json
import time
import os
from queue import Queue
from threading import Thread
from utils import combiner
import datetime
def import_web(ticker):
"""
:param ticker: Takes the company ticker
:return: Returns the HTML of the page
"""
url = 'https://www.nseindia.com/live_m... | [
"saypaul@redhat.com"
] | saypaul@redhat.com |
7b840d26e327da2dc003c0647989f1e088499f46 | 2b23e732ae616f6a3c07866906e14a1e3883a693 | /Pandas Practice/Data Frames/dataframes.py | b4206591b7430020d600f928f3c67aa56f13b9cd | [] | no_license | JitenKumar/Data-Analysis-Visualization-With-Python | 7d045e49b16ad30fb5e2b558a3e4f69457bf4697 | d53d3738c10efc6882757692215d381321ee20a3 | refs/heads/master | 2020-03-18T12:28:40.146060 | 2018-05-28T18:28:12 | 2018-05-28T18:28:12 | 134,728,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | import numpy as np
import pandas as pd
from pandas import Series,DataFrame
# importing browser
# import webbrowser
# website_url = 'https://en.wikipedia.org/wiki/List_of_all-time_NFL_win%E2%80%93loss_records'
# webbrowser.open(website_url)
# copying a data from clipboard
nfl_data = pd.read_clipboard()
print(nfl_data)... | [
"jitenderpalsra@gmail.com"
] | jitenderpalsra@gmail.com |
b4d3b672bf6814c0dd201d85c23b36d481f41e82 | ec74eaaadc95dad2bc6f43a17687744c8e605787 | /vsbuy_backend/products/models/products.py | 75822f362644c7ba987b568f2468f3fd668c7cd3 | [
"MIT"
] | permissive | leis94/vsbuy_backend | 115c65eb3d6ccc3678f2956a0a7edfb64b4515bb | 16dd21b7da9a454187fe8605d4c5d075a151adb7 | refs/heads/master | 2022-12-22T11:34:37.956384 | 2020-10-05T04:48:39 | 2020-10-05T04:48:39 | 296,889,339 | 0 | 1 | MIT | 2020-10-05T04:48:40 | 2020-09-19T14:43:42 | Python | UTF-8 | Python | false | false | 437 | py | """Products mode. """
# Django
from django.db import models
# Utilities
from vsbuy_backend.utils.models import VSbuyModel
class Product(VSbuyModel):
"""Products model."""
name = models.CharField(
max_length=20,
)
is_active = models.BooleanField(
default=True,
help_text='Bool... | [
"bukaro.dany@gmail.com"
] | bukaro.dany@gmail.com |
32b375c749e72bc27f65d0e72ccc6839db65e9d6 | 06516db27e5c3f4467ef34b79c12256f986e2f7b | /remove_nth_node/remove_nth_node.py | 0579e7bc57fe66c5933e941433f30827fea80b4b | [] | no_license | ryandavis3/leetcode | c4c6dc5a1606d204a2cf1beebb5b7f0e0cff3053 | 07f096c592053efd51bc2efbd3261380c0980b77 | refs/heads/master | 2023-04-06T17:44:15.036258 | 2021-04-09T16:17:48 | 2021-04-09T16:17:48 | 186,537,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # https://leetcode.com/problems/remove-nth-node-from-end-of-list/
class ListNode:
"""
Node in singly linked list.
"""
def __init__(self, x):
self.val = x
self.next = None
def removeNthFromEnd(head: ListNode, n: int) -> ListNode:
"""
Remove nth node from end of a linked list. So... | [
"davisr137@gmail.com"
] | davisr137@gmail.com |
80ec25164dfa6d31167df667c3d4783afccf3b86 | a8212baae786a140242d1de0d5b13aa925649661 | /information_gain_ratio.py | 1a45cc78130602283f99cda7cfa90fb2b699fb46 | [] | no_license | wenyu-z/py_programming | 8e218c82f176f5b22fe35b11855cd43d523786f2 | 2d832f9babc9e9e24e910009a4ef7e002b4b59a5 | refs/heads/master | 2021-01-23T10:54:46.539501 | 2018-07-14T00:23:10 | 2018-07-14T00:23:10 | 93,103,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | # Reference
# http://www.ke.tu-darmstadt.de/lehre/archiv/ws0809/mldm/dt.pdf
def calc_var_entropy(df, var):
total_count = len(df)
levels = df[var].unique()
per_level_count = df.groupby(by=var).agg('count').values[:,0]
prob = map(lambda x: x/float(total_count), per_level_count)
neglog = map(lambda x:... | [
"noreply@github.com"
] | noreply@github.com |
b19e7f283ced51c9136bab66a234faa7a1349d94 | b1c4a3fc1605e1b1da113fd1a2b97f7432866d9b | /Wm_UI_TEST/test_case/test_sellershop.py | 47ddc3b5c7f17da33af2faa8aa780dc3c2b7c24c | [] | no_license | AdilSky/PyWork | f1b46bb1bea849621f8226029ecbe668e60052bb | fcd7e8a8d69c1a70ae874ce94c20f518d961ef6a | refs/heads/master | 2021-08-24T14:09:21.819356 | 2017-12-10T05:04:42 | 2017-12-10T05:04:42 | 113,413,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,106 | py | #-*-coding:utf-8-*-
#商城单店功能自动化测试用例
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from selenium import webdriver
import time
import unittest
from selenium.webdriver.common.action_chains import ActionChains
import baseinfo
#from Wm_UI import baseinfo
class sellershop(unittest.TestCase):
'''单店功能测试'''
####... | [
"adilsky@aliyun.com"
] | adilsky@aliyun.com |
04619a2702ef2cecb1bc087adfc35c077a819f38 | ea0223cda77710734c34408d86b54a2cc989bd45 | /tests/metadata/mtl/test_ls7_definitive.py | db442ada15fd81ea2359ce8f7619c244231e7c6d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | omad/eo-datasets | 2b2d74707e57d4fb90606177450c5f445482410e | 8a32120aa2cdf68dcb7003e1d61fa3a62fcf6b79 | refs/heads/develop | 2021-07-07T23:20:33.833426 | 2019-06-21T00:25:19 | 2019-06-25T02:01:35 | 197,543,844 | 0 | 0 | Apache-2.0 | 2019-07-18T08:18:26 | 2019-07-18T08:18:25 | null | UTF-8 | Python | false | false | 3,620 | py | # coding=utf-8
from __future__ import absolute_import
import unittest
import uuid
import datetime
import os
from pathlib import Path, PosixPath
import eodatasets.type as ptype
from tests.metadata.mtl import assert_expected_mtl
FILENAME = 'ls7_definitive_mtl.txt'
EXPECTED_OUT = ptype.DatasetMetadata(
id_=uuid.UU... | [
"jez@stulk.com"
] | jez@stulk.com |
ae7548d0538a443f1d20f3522313b3a6250ecaa7 | b6c6b3e631984e80ae18e2665aa7bc5dd9e2750c | /modules/jobs.py | d3d53a671fdc2be2ef442848e3a568fe14f0bb51 | [] | no_license | larryklean/soag | 41d6edd4a00504867d1efa5e34e56e6b4670a5ed | 4736fce81bacf558f7671e7d32425a14b6e0f58d | refs/heads/master | 2020-03-25T05:07:07.695537 | 2013-09-09T21:13:18 | 2013-09-09T21:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,619 | py | # -*- coding: utf-8 -*-
from datetime import date
import utilities as utl
import datetime, traceback, os
import ColunasEntidades
def lrecl(db, entidade_id):
retColunasEntidades = ColunasEntidades.ColunasEntidades(db).\
selectColunasEntidadesResolvidasByCodigoEntidade(entidade_id)[1]
length ... | [
"flavio@casacurta.com"
] | flavio@casacurta.com |
f37580c24968dd1c773b2fadeb70ecf90b5e8744 | 44791c21090478681c4d0b83154b7bebc6f398f0 | /server/mongoModel.py | 748fc29ac2663e9676842a26a0701a4ed5a22ecf | [] | no_license | prestondoris/OBP_AuthServer | ad916c29af0e956c0c42414abd59e39263275918 | a4caf57592e09c74d5400484ef40fe63285fa43c | refs/heads/master | 2022-12-27T18:23:01.935357 | 2019-06-27T23:16:41 | 2019-06-27T23:16:41 | 192,974,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | import json
from bson.objectid import ObjectId
from bson.json_util import dumps, loads
from flask_pymongo import PyMongo
builtin_list = list
mongo = None
def _id(id):
if not isinstance(id, ObjectId):
return ObjectId(id)
return id
def init_app(app):
global mongo
mongo = PyMongo(app)
m... | [
"Preston.Doris@paradigmcorp.com"
] | Preston.Doris@paradigmcorp.com |
0c36af70f72e559ca91174c96852a456071cc657 | 424717bb2008a93b374e958b730f4062c20314c0 | /desginer_pattern_state.py | fbc9a8c374a73bf8fe7914418df4507e2ef084ad | [] | no_license | renatolaq/Python-Design-Paterns | 5dcfe7a6c014c946efe6ba63bc0bae248180e45f | 31237df5d74eab3bb60fb5f3c70d785ea4a459d5 | refs/heads/master | 2020-08-05T04:25:29.595037 | 2019-10-04T12:29:47 | 2019-10-04T12:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | class ComputerState(object):
name = "state"
allowed = []
def switch(self, state):
if state.name in self.allowed:
print('Current:', self, ' => switched to new state', state.name)
self.__class__ = state
else:
print('Current:', self, ' => switching to', state... | [
"renato.laq@gmail.com"
] | renato.laq@gmail.com |
8d1410c3b1419e23f80b80067b065a269fdcbe9f | 5267ce24d7c8c5b5d742bffc22f9f8f3b80eb05f | /code/replot.py | 67c70c0248cb20c210dd11d4df942a6a31dfad60 | [
"MIT"
] | permissive | go-smart/glossia-quickstart | b6d31abd2a8dde964c3020d6c3539d43301bee41 | b4245f29b184f7e8e7d643d1af8a95719af43954 | refs/heads/master | 2016-09-14T14:10:05.529552 | 2016-04-26T11:32:56 | 2016-04-26T11:32:56 | 56,546,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from __future__ import print_function
import numpy as N
import matplotlib.pyplot as P
import sys
import variables as v
if len(sys.argv) < 2:
print("Must have a filename!")
exit(1)
filename = sys.argv[1]
# Output cumulative coverage curves as CSV
output_arrays = N.loadtxt(filename)
output_arrays = zip(*outp... | [
"phil.weir@numa.ie"
] | phil.weir@numa.ie |
8298fe4b188526c579e1d765177c96f7516d529e | c3bf6dd16fe96246baa6ee122202ae380d2eb91b | /ch06a/ex0602.py | a2edb01dc6dd041a204625c00a0ebaf94f085ff5 | [] | no_license | flyupwards/python3_source_code | f944c0965259a1848026d9794db63d9fffcbac94 | 2736c995f99c0db8c9ecd4021b1c06e1204bac26 | refs/heads/master | 2023-02-24T12:00:17.092864 | 2021-01-27T15:38:32 | 2021-01-27T15:38:32 | 333,469,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | '''
计算圆的面积s
'''
def getcirclearea(r):
print("圆的面积s={:8.2f}".format(3.14 * r * r))
return
getcirclearea(3)
getcirclearea # 函数名变量在内存中的地址
print(getcirclearea(3)) # return语句无返回值时,返回None
| [
"19754752@qq.com"
] | 19754752@qq.com |
34ecf6296f533149652bcc9bdfc768e47934f237 | 7bb2ce3785d3aecd357be03651f3a7ee8b0d7ade | /ssd/evaluate/evaluate_net.py | b365975bb3c488193e98ee3574c2adc9c5a7cf5c | [] | no_license | yangfly/additions_mxnet | db930f781d991ae8c744d4cee7e51852011fd12c | 8ed564a9e8fd4a50079baeb22aa5f2fdefc178fc | refs/heads/master | 2020-05-29T22:41:11.270796 | 2017-12-06T08:08:33 | 2017-12-06T08:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,991 | py | from __future__ import print_function
import os
import sys
import importlib
import mxnet as mx
from dataset.iterator import DetRecordIter
from config.config import cfg
from evaluate.eval_metric import MApMetric, VOC07MApMetric
import logging
from symbol.symbol_factory import get_symbol
from tools.do_nms import do_nms
... | [
"eldercrow@gmail.com"
] | eldercrow@gmail.com |
772bc6013f219ad1c46eadc9d8058b9393df3313 | 883ddb559c7b54af22202685b279d899af48f497 | /examen/models.py | 28aa9e8af52fcbb70211e30c61652ff3364aa9ec | [] | no_license | kikega/oposiciones | 3bd64e8b955b33ca5be0b24faf17de4e7c235310 | 65a33c47c95645e5499942982f2e6855ef81ee8b | refs/heads/master | 2020-06-09T10:39:28.241903 | 2019-08-22T22:40:30 | 2019-08-22T22:40:30 | 103,585,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django.db import models
from django.contrib.postgres.fields import ArrayField
# Create your models here.
class Examen(models.Model):
fecha = models.DateField(auto_now=True)
p_falladas = ArrayField(models.IntegerField())
p_acertadas = models.IntegerField()
fallos = models.IntegerField()
nota = ... | [
"kikega@telefonica.net"
] | kikega@telefonica.net |
94d04dee1f8e390d9c5217e7c519fccc0f5fc0de | a82be1ed4ec980c45ee963ccbe15fa3c574d6c78 | /Bike Rent Count.py | 4c5b187fa709de4e61d9014f0a392347bcc440b2 | [] | no_license | ytnvj2/bikerent | 82326e25be66078a22a327512f00ff8e06277dd4 | 711f466f8e03fe545546928cf5bd0d9dd7569125 | refs/heads/master | 2020-04-08T18:51:16.164408 | 2018-12-01T03:47:26 | 2018-12-01T03:47:26 | 159,627,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py | import os
import pandas as pd
import numpy as np
import fancyimpute
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.tree import DecisionTreeRegressor... | [
"ytn.vj2@gmail.com"
] | ytn.vj2@gmail.com |
98529b4cb54decdf4e7df6ee449955d6f8fe354c | 91cdc8cf41dff4d179f9e8319bf9e5b19da64b1f | /backend/home/migrations/0003_hgfdjfd.py | d8c1aae2adf8e892905df603dde5c9609a4539fc | [] | no_license | crowdbotics-apps/mobile-1666-dev-7710 | 8b752505addfe8ae946f061d6fb57445f2eca1a5 | 4b2fba070ce3d95eb9b3c153a16af9d527079d03 | refs/heads/master | 2022-11-21T13:33:33.758230 | 2020-07-17T14:18:12 | 2020-07-17T14:18:12 | 280,130,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 2.2.14 on 2020-07-17 07:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0002_load_initial_data"),
]
operations = [
migrations.CreateModel(
name="Hgfdjfd",
fields=[
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
879e9eec961a0ae978e683b4e0a3c9e98b728095 | 203d26cb680c9ab4fc45990123ae9b17574a4908 | /tools/grammar.py | 430ebedab3d86d9658a7c731fe4fc1f1c439c089 | [] | no_license | jprimeau/DE1-JP80 | b608870a63c5a56063fb24bdd1f60ae653f399de | 08d2150bd2153e540aa6e987c10abeef135b5492 | refs/heads/master | 2016-09-06T10:09:29.129759 | 2015-01-03T03:40:48 | 2015-01-03T03:40:48 | 26,215,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | grammar = {
'ACI':['D', 2, 'CE'],
'ADC':['R', 1, {'A':'8F','B':'88','C':'89','D':'8A','E':'8B','H':'8C','L':'8D','M':'8E'}],
'ADD':['R', 1, {'A':'87','B':'80','C':'81','D':'82','E':'83','H':'84','L':'85','M':'86'}],
'ADI':['D', 2, 'C6'],
'ANA':['R', 1, {'A':'A7','B':'A0','C':'A1','D':'A2','E':'A3','H':'A4','L':'A5','M'... | [
"jonathan.primeau@gmail.com"
] | jonathan.primeau@gmail.com |
973987e590757c2014e474ea2435574e52da4589 | bdc59a03b8bc589eeda1f4c5a97d7e283f5cc81c | /Add_Project_GUI.py | b6e20a76544d2da6013c881b4955612d13b67999 | [] | no_license | simplesports/ProjectManager | 111e8f6a55afeaad7d0754008a329e99bcbbea9f | bf8ccb584bd25a4651e8be602cd9cb83fac5d046 | refs/heads/master | 2020-12-30T12:34:47.809607 | 2017-07-07T22:53:08 | 2017-07-07T22:53:08 | 91,388,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,615 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Add_Project_GUI.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Add_Projects(object):
def setupUi(self, Add_Project... | [
"noreply@github.com"
] | noreply@github.com |
1a3d25ee2ab2d6274bd90c30781999f1a956cbdb | 61afd923551491846ae827821f55c4fb5fd04c98 | /packages/levylab_lib_lockin_multichannel/levylab_lib_lockin_multichannel-2.14.0.59.spec | d493c1230e5f712ce6a5b1e7090368ee412a0a98 | [
"BSD-3-Clause"
] | permissive | laserengineer/levylabpitt.github.io | b74b711aff2a5eb1b46f880a1071ac0873f1a9ac | cdf9aeb6faaf136211291ce2232c239229d85bbe | refs/heads/master | 2023-04-29T02:36:48.736236 | 2021-05-14T19:20:40 | 2021-05-14T19:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,044 | spec | [Package]
Name="levylab_lib_lockin_multichannel"
Version="2.14.0.59"
Release=""
ID=3e298bc47804f097168f0d0fcf0f1965
File Format="vip"
Format Version="2017"
Display Name="Multichannel Lockin"
[Description]
Description="Multichannel Lockin for National Instruments' Dynamic Signal Acquisition hardware (4431, 4461, 4462)... | [
"p.irvin@levylab.org"
] | p.irvin@levylab.org |
cb18200e2c81369663359804149cff1c5d66c90f | c9c33bbb53f73459f3d8642ba5bebda75d2d6bf3 | /v01/sheets03.py | f94b06ac5fec554a6b11d5e616c219dceebd4270 | [] | no_license | ernbilen/POS | 90faa0c278b4ebbdd2470004b17227ff7b1b8a5b | 43fa9316039f8640a8386d47ade62c2972638f06 | refs/heads/main | 2023-03-14T11:12:24.532756 | 2021-03-02T23:01:26 | 2021-03-02T23:01:26 | 343,936,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,220 | py | import tkinter as tk
from tkinter import filedialog
import csv
from generate_pdf import *
#-----------LOADS THE OUTPUT PATH-------------#
def loadConfig():
file = open('config.csv','r')
reader = csv.reader(file)
path = ""
for row in reader:
if row[0]: return row[1]
file.close()
retur... | [
"31449793+ernbilen@users.noreply.github.com"
] | 31449793+ernbilen@users.noreply.github.com |
792fdbb3cc101530963c57eaaf2b741d3620df5d | 13bf0967b6421c990699677c327b252269fb75e4 | /rapidz/core.py | 86634359d5920c4725221f50ab7cf972426883e7 | [
"BSD-3-Clause"
] | permissive | xpdAcq/rapidz | 712b549a3d3cde3a08ed5a91d343d15fb7f0768e | a354853695a054477ce361d104f55c77a77c7d5d | refs/heads/main | 2023-08-08T19:55:40.629387 | 2023-07-25T08:23:33 | 2023-07-25T08:23:33 | 150,287,875 | 6 | 7 | BSD-3-Clause | 2023-07-25T08:16:56 | 2018-09-25T15:26:41 | Python | UTF-8 | Python | false | false | 43,036 | py | from __future__ import absolute_import, division, print_function
from collections.abc import Sequence, Hashable
from collections import deque
import copy
from datetime import timedelta
import functools
import logging
import six
import sys
import threading
from time import time
import weakref
import tool... | [
"simon.billinge@gmail.com"
] | simon.billinge@gmail.com |
cc3b85e9670631473525625c285ccfe5825c620d | 4e28bb44058b3bfdaf24d1117838e6736e9b0ed5 | /app/extensions.py | 0e7fd9811c53f92bd480e7471b41dccd79179a8d | [] | no_license | Polikarpova/ad-vk-bot | 130917752f4c354b09242cf8b548514d649581a6 | 1867ed1accb9f0483570f7c52aa46e44676fa624 | refs/heads/main | 2022-12-28T23:16:35.720661 | 2020-10-09T11:18:06 | 2020-10-09T11:18:06 | 302,617,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import os
from flask_sqlalchemy import SQLAlchemy
from apscheduler.schedulers.background import BackgroundScheduler
# SQLAlchemy
db = SQLAlchemy()
# APScheduler
scheduler = BackgroundScheduler(daemon=True)
weeklyJobName = 'weekly_job'
playerAlarmName = 'player_alarm'
# Данные о сообществе
album_id = int(os.environ.g... | [
"policarpova97@mail.ru"
] | policarpova97@mail.ru |
8c3c73ad65673c805d4e2f9b4a49f2cebb653539 | b45f75091463b302c95daf6cd6fa2dea6ab7081b | /src/signer/context_processors.py | 5e38c849199f40a6a76dfbd9d8dcfdf359da20f5 | [] | no_license | joka/signer | 3dd6b4b0838923690fae4ab766058097f9372fe5 | 1f0f84009221599e979410df1cf7bc33d490985e | refs/heads/master | 2021-01-13T01:28:18.675061 | 2010-01-07T17:50:15 | 2010-01-07T17:50:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
from django.conf import settings
def currentpage(request):
return {
'page_url': request.build_absolute_uri(),
# 'page_url': '%s%s'%(settings.BASE_URL, request.get_full_path()),
}
| [
"nico@campact.de"
] | nico@campact.de |
f20ae41427efa6bdfaf815d9104ff68383036252 | fc98574ce6f6adb571d53e32dcb8041b032c4aae | /report2.py | a650dcde5f4a3d904417f4f7a9d692b71f591af5 | [] | no_license | aTentori/REST_assignment | d23bb4f7d08193a22d50e11f6f184b8c6339f3a8 | 8da5bb23eef5f01695373212f3c3d564d95fee46 | refs/heads/master | 2022-12-09T10:38:10.136022 | 2020-09-02T01:50:55 | 2020-09-02T01:50:55 | 292,141,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import requests
import time
start = time.time()
report = requests.get("http://localhost:21212/report").json()
print('{:<2} {:<20} {:<10} {:<10} {}'.format('ID:', 'Name:', 'Num Loc:', 'Avg value:','Categories:'))
for r in report:
#print({} ).format(str(r[0]) + "\t\t\t" + str(r... | [
"atentori@studentskennesaw.edu"
] | atentori@studentskennesaw.edu |
60f17c6b3275abd5fe5fa0a5fdf553adf57b8a9f | 093b415a408e3770c60c370dea539c1c7dbb1a2b | /netbox/virtualization/migrations/0013_deterministic_ordering.py | b5b0451a17ed3e38ca8fb9b474029a3bc208ce98 | [
"Apache-2.0"
] | permissive | jathanism/netbox | 0f710b9196226c049fc86bd3b15830c3e717463b | a94e5c7403a0aa07d60536a487cea2c868c9fa41 | refs/heads/develop | 2023-04-13T00:55:29.862161 | 2021-03-12T15:59:23 | 2021-03-12T15:59:23 | 347,462,807 | 1 | 0 | Apache-2.0 | 2023-04-04T01:41:13 | 2021-03-13T19:40:48 | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 2.2.8 on 2020-01-15 18:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('virtualization', '0012_vm_name_nonunique'),
]
operations = [
migrations.AlterModelOptions(
name='virtualmachine',
options={'... | [
"stretch@packetlife.net"
] | stretch@packetlife.net |
47b9800f33759447156595cdedc80af7b88a3786 | 8320eb6213ca1648129519603818e637e78aed2a | /streamlit_multiapp.py | 2e6e6617941e5631a839eb63db20de3507ae4fa8 | [
"MIT"
] | permissive | NIH-CARD/AlignedUMAP-BiomedicalData | 0147749f79e11eae52b8ce757ade41c349972fe4 | d583e9ac0b9081ec2cd8bf2e3c26b88cadf0689b | refs/heads/main | 2023-04-29T06:13:20.390510 | 2023-04-21T21:59:49 | 2023-04-21T21:59:49 | 591,063,147 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """Frameworks for running multiple Streamlit applications as a single app.
"""
import streamlit as st
class MultiApp:
def __init__(self):
self.apps = []
def add_app(self, title, func, params):
self.apps.append({
"title": title,
"function": func,
"params": pa... | [
"adadu2@illinois.edu"
] | adadu2@illinois.edu |
0228f114db266e3c412cd650e31d2e3ba5b42cae | 523f5c919a5dbf56985a91373b00dd91556a7bae | /myproject/urls.py | c24b6a10e385774124e25ae5817be0b31fbd8d8d | [] | no_license | liuliansp/Vue_Django_Mysql | 8000d4d92bc4213f0cc1d2feb73e3c3247d11f2b | e7b582d35de8f63e5b6592f360236450516dce8a | refs/heads/master | 2022-01-29T23:40:54.159792 | 2019-09-02T06:40:20 | 2019-09-02T06:40:20 | 205,355,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"260692292@qq.com"
] | 260692292@qq.com |
38cbaca239856f031f96c679a20502407b7e7761 | df1eb6867a174910daae78f5436bf89810d52c29 | /release.py | 341bea189ea43cc6d7ccc16371d6b3cecfdec179 | [
"MIT"
] | permissive | containers-tools/cct | 26f38699c3853a157ce7e3ccdbfbab622540bf46 | 20bacd4b859a1dd0bcddb085eed9c4c887961135 | refs/heads/master | 2020-05-21T04:22:19.022569 | 2017-09-20T14:05:33 | 2017-09-20T14:05:33 | 36,220,969 | 12 | 10 | null | 2017-07-27T13:53:46 | 2015-05-25T09:03:41 | Python | UTF-8 | Python | false | false | 268 | py | #!/bin/python
import os
from zipfile import ZipFile
with ZipFile('cct.zip', 'w') as zf:
zf.write('__main__.py')
for root, directory, files in os.walk('cct'):
for f in files:
arc_file = os.path.join(root, f)
zf.write(arc_file)
| [
"goldmann@users.noreply.github.com"
] | goldmann@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.