blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d79b7801e234433e8bc93bd5f80827c3dfe3bb1 | 5bc2e45a8e8c256ab8ed332ebc5323eaac6631eb | /bandit/arch/analyzer/base_analyzer.py | 64c6f93d9efdb8dffd3ae2e40a03c166f2a16775 | [] | no_license | ru-fix/permanent_predictor | 1ed4a31cdaaf42ec8e882d679ff68522845138cc | a7662d31f887a5a5edb45e7114a281ba039b8884 | refs/heads/master | 2023-06-01T01:28:59.580346 | 2021-06-22T21:16:09 | 2021-06-22T21:16:09 | 379,379,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,833 | py | from plotly.graph_objects import Figure
from arch.analyzer.utils.graphic_container import GraphicContainer
from consts import html_bases
class BaseAnalyzer:
def __init__(self, **kwargs):
for key in kwargs:
setattr(self, key, kwargs[key])
def __format_graphics(self, metrics):
graph... | [
"rduryagin@fix.ru"
] | rduryagin@fix.ru |
eacf58fddef56680e7da230bfefdd089d05d179f | b786ad8fdf75f0e132affd40de5a6809628fa071 | /venv/Scripts/easy_install-script.py | 6ef1646d4956685bccb239122bfeb7fa8863c96a | [] | no_license | Bhuvan-Rm/WebScraping | e703c673b321cad716f6289248a1cb1d55434f7f | 9a3f1c967d7e3dba82a975a72913902774c914c1 | refs/heads/master | 2020-09-07T11:32:10.197385 | 2019-12-14T09:56:36 | 2019-12-14T09:56:36 | 220,765,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #!A:\PycharmProjects\WebScraping\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__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'(-script\.pyw?|\.exe)?$',... | [
"bhuvaneshrm@gmail.com"
] | bhuvaneshrm@gmail.com |
e35ef6540b47da980333bbf7d153523adc956efb | eb2b13d90d54e6e1e7f348b34e23f19bdbca9e90 | /9_class.py | a3e5c7569600970550504b29070a609f43c5584d | [] | no_license | diassor/platzi_pyhton_2019 | 6df0d4d9a996ee454aac05f88e1d5c5aff7e8f76 | fdf74d41f6077069cdad8f8df291315d86783b40 | refs/heads/master | 2020-04-20T10:37:02.171540 | 2019-03-10T04:07:47 | 2019-03-10T04:07:47 | 168,794,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # -*- coding: utf-8 -*-
"""
Las funciones
Las funciones es lo mas importante en la programacion
En el contexto de la programación, una función es una secuencia
enunciados (statements) con un nombre que realizan un cómputo
Una función tiene un nombre, parámetros (opcional) y valor de regreso
(return value)(opcional)... | [
"gruasedwin@gmail.com"
] | gruasedwin@gmail.com |
2bc9a632cf25a60f9ffb85dca3488916585b641e | 732cf97fdd3b730938ed8fc383d8f6b0c82625bf | /examples/04_decoding/plot_discrete_decoders.py | e0b2aac1bf698e1a1b37b1cbe4e19b3321238f4a | [
"MIT"
] | permissive | akimbler/NiMARE | 6c76980d0a008e99a6e2533e4b89de8d96f59ae1 | 717697035b04ff0244aa4aa170f5aa16a9fba69a | refs/heads/master | 2022-12-09T05:17:22.041543 | 2020-08-08T21:10:07 | 2020-08-08T21:10:07 | 286,131,857 | 0 | 0 | MIT | 2020-08-08T23:00:19 | 2020-08-08T23:00:19 | null | UTF-8 | Python | false | false | 2,291 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 et:
"""
.. _decode1:
==============================================================
Decode regions of interest and subsets of Datasets
==============================================================
... | [
"noreply@github.com"
] | akimbler.noreply@github.com |
087e986ecd374552b6acb1cab52581815e712c5e | 573f1901b444e35a616f10923751a52ffe1d66a3 | /combine-audio-video/cmdline_merging.py | ba98b96a23885e1ae2d240756422375ac318113b | [
"MIT"
] | permissive | dracogamer123/pytube-implementation | 9d6280efec214c3b76b3e9003dc3f2a2f8db5b1e | 84c856441f91b0f15e9ec6918e879e0c720c42a7 | refs/heads/master | 2023-08-25T10:37:10.670027 | 2021-10-19T01:47:46 | 2021-10-19T01:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from pytube import YouTube
def copy(video_path, audio_path, name, final_path):
"""
FFMPEG-COPY
------
video_path: path of video on disk
audio_path: path of audio on disk
name: name of output file
final_path: path of output video on disk
"""
import ffmpeg
video = ffmpeg.input(a... | [
"technotebook@yahoo.com"
] | technotebook@yahoo.com |
240e21a8d399705b7c01de6ad24a1a73c2a7b0ad | baa9b9544c9e69c8ccd732c47de16f19247e91dd | /model/trainer.py | 1c705156805175156653e4ad9e47eae2e3c5c90d | [] | no_license | amirveyseh/rumor- | d2a20e29a657c08e6de07113a9c64f2f5155ec08 | ce501f2827d3b9de076b4607b080c7f87376d5a4 | refs/heads/master | 2020-06-07T12:09:17.683256 | 2019-06-21T02:56:06 | 2019-06-21T02:56:06 | 193,019,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,167 | py | """
A trainer class.
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
from model.gcn import GCNClassifier
from utils import constant, torch_utils
class Trainer(object):
def __init__(self, opt, emb_matrix=None):
raise NotImplemen... | [
"apouranb@iq.cs.uoregon.edu"
] | apouranb@iq.cs.uoregon.edu |
ede5626aeb578a8f801688300ee8b55922c731a5 | 36e66b509260bf15266f89a7bcbbc8bc5a413d7f | /SinglePageApplication/SinglePageApplication/wsgi.py | 412a6dd818aae42656f691bdaca7c55df352fc06 | [] | no_license | Asdor1996/TestTable | 66c18f54822bc55f71b95a55be2606c0d8cfdf32 | 09ba885af293743d3246fc03fcc34fa4bc5d7781 | refs/heads/master | 2023-04-24T06:40:46.580063 | 2021-05-18T12:42:22 | 2021-05-18T12:42:22 | 368,520,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for SinglePageApplication 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... | [
"quazun@yandex.ru"
] | quazun@yandex.ru |
b104fecc770ce509c27e2eec648f77b12ab83bd8 | 3b92548f49ead02f3655efc2f867659706dbfa59 | /MidExamSimulation/Practice/2.py | e3925d331872a091ef058586572f76e15367991e | [] | no_license | hengkysanjaya123/Computational_Mathematic | f50c651bbbfb0d46f92ee10b25a1e28cc671b27e | 566a827936a971aff1bf0111d184a165db84b46c | refs/heads/master | 2020-05-09T10:10:56.313919 | 2019-07-08T12:40:30 | 2019-07-08T12:40:30 | 181,025,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import numpy as np
import matplotlib.pyplot as plt
data = [
5.5, 1.1, 6.5, 4.9, 6.4,
7.0, 1.5, 5.7, 5.9, 5.4,
6.1, 1.2, 7.3, 6.1, 4.4,
]
x = [1]*len(data)
print(x)
# x = [1, 10, 50]
# y = [2, 5, 20]
# plt.plot(x, y, 'red')
# plt.plot(x, y, 'bo')
#
# plt.plot(x, y, color='green', marke... | [
"hengkysanjaya204@gmail.com"
] | hengkysanjaya204@gmail.com |
013b58beacb2a8913cad6063f400be40ffbc1cd4 | a96874d67911e51e60e903776264350887e8e486 | /first poroject | 1ba8f1305b5518116d47c616486a06382bfd9016 | [] | no_license | MRALAMs/first-project | 284c1f72056f22ee60723805a888eef9436282a2 | 7db00d4b99a32b21e89979e4ccabc21b22f7abfb | refs/heads/master | 2022-11-11T10:52:09.294997 | 2020-07-02T08:58:01 | 2020-07-02T08:58:01 | 276,602,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | #! /usr/bin/python3
def moadel(math,physics,dini,exersise):
return ((int(math)*3)+(int(physics)*4)+(int(dini)*2)+(int(exersise)*1))*0.1
mylist =["reza","ali","mohamad"]
for i in range(len(mylist)):
a=input("math score ? ")
b=input("physics score ? ")
c=input("dini score ? ")
d=input("exersise score... | [
"mr.alamshah222@gmail.com"
] | mr.alamshah222@gmail.com | |
046a3e964f46637b57ab5238becb3ebecbc1227f | a9878b55be543468cc94758cac5544a48100fa14 | /TreeIntro.py | 730647e3d35b997e27b88da1788871f56ea3db7b | [] | no_license | Vishalkapoor123/Data-Structures-and-Algorithms | b1e392bc189b831f0641c82bc3fd3bf91a984882 | 1a0048d1ed0843cebc7dfaa72901b3e0a24bbc29 | refs/heads/master | 2023-09-02T14:36:15.446584 | 2021-10-30T13:23:53 | 2021-10-30T13:23:53 | 417,809,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
class BinaryTree:
def __init__(self, data):
self.root = Node(data)
#Internal insert methpd i.e. not client facing
def insert(self, root, data):
newNode = Node(data)
... | [
"vishal.kapoor@cgi.com"
] | vishal.kapoor@cgi.com |
7cdb29f9b285de5b818b392bf4e6f7bffb440a44 | ed6fb97371218d6c7e779280924ca14ccfa8921c | /iris/utils/logging.py | 4bbc7ba540044c5b5c820cfc615d68b5e51cfc03 | [
"Apache-2.0"
] | permissive | lowks/lymph | d27e35d94f47836ac770158651db74e59aacd170 | b4c68feb603b2c5347aaa61e112328eb82c22061 | refs/heads/master | 2020-12-25T16:02:43.004588 | 2014-06-25T09:25:31 | 2014-06-25T09:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | from __future__ import absolute_import
import logging
import six
import zmq.green as zmq
from iris.utils.sockets import bind_zmq_socket
def get_loglevel(level_name):
level = level_name.upper()
if level not in ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'):
raise ValueError("unknown loglevel: %s"... | [
"johannes.dollinger@deliveryhero.com"
] | johannes.dollinger@deliveryhero.com |
ac365906676b84c1bb52b685f557dc14488325b5 | 57cf4f1a6da938b630039b2cab2ada2d017af82e | /clothing/migrations/0002_clothingitem_owner.py | eb6ae2805f508d12adac155523d61f125fcfdf23 | [
"MIT"
] | permissive | shailevi23/iWear | babe5eb5bb281037bb9c434d25aac1e30185bcd8 | 4f28fd4aa4cc1a50695412bdf21fa5a0f174d554 | refs/heads/main | 2023-09-04T00:11:51.970694 | 2021-11-08T09:09:29 | 2021-11-08T09:09:29 | 425,762,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 3.2.5 on 2021-07-28 19:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('clot... | [
"aharoni94@gmail.com"
] | aharoni94@gmail.com |
16b96c658327248f2648d6e852c807401832b0b5 | 775fdf65590a4947bbbc4055e25f914577e730fd | /字符串格式化.py | f53a071a4be425978cf2a89815af8edbc52b7d83 | [] | no_license | focusshell/Python | 155c823037ddf6d31bf7915d2ebf7a2adbf52bdf | 70ad14b6413ab97058db051403ccc34a5ee28cc2 | refs/heads/master | 2023-02-22T04:38:10.318959 | 2023-02-10T06:54:23 | 2023-02-10T06:54:23 | 143,408,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | #!/usr/bin/python3
print("我叫%s 今年 %d 岁!" % ( '陈情',22))
print("我是%s 今年 %d岁!" % ( '一菲',27)) | [
"1106328167@qq.com"
] | 1106328167@qq.com |
f84af80af296086f1881227d43ec06c829202f8e | 0b699b4c6081b3b06acd0b64d8bb1f84bbb9c956 | /manage.py | c04731a2df3f9d49fbdeabcd66b213e421d1e6cf | [] | no_license | rxy0424/django-learn | 267d5b947e4d896cc2ddb29ef8b807342d5e0f84 | 735a6629911c1b455c0c68443031973f8b60593d | refs/heads/master | 2021-01-20T06:12:03.705250 | 2017-04-30T13:17:00 | 2017-04-30T13:17:00 | 89,851,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ksxt.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"rxy0424@gmail.com"
] | rxy0424@gmail.com |
8179861a56b00ea0aae727ab31ba65679ea3dcb6 | 5c0e83b07e01983b064980b805e6067cd1123714 | /rd_caltech.py | 81e59b15ea802ee43b2828b30359ef9bfbe9dc85 | [
"MIT"
] | permissive | zyg11/MTCNN-TF | 750ec7b6533b639deba5126e19a434da615585ac | 4d41c5fd2dc13008d39b868aa2e921a7ff731e10 | refs/heads/master | 2020-08-26T14:24:41.084820 | 2019-04-02T09:02:23 | 2019-04-02T09:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | #author : lxy
#time: 2018.3.23/ 11:30:00
#tool: python3
#version: 0.1
#modify:
#project: pedestrian detection
################################
import numpy as np
import glob
import os
import argparse
def args():
parser = argparse.ArgumentParser(description="read caltech txt")
parser.add_argument('--dir_in',ty... | [
"lixiaoyu283284@163.com"
] | lixiaoyu283284@163.com |
31d24fc92e38e24e03ce1742b7ceec5868ba5c7e | b54b6168ba35ce6ad34f5a26b5a4a3ab8afa124a | /kratos/applications/ShapeOptimizationApplication/test_examples/03_Strain_Energy_Minimization_3D_Shell/optimization_settings.py | 5e1b07aab234b21e628b0a82c683e10309050967 | [] | no_license | svn2github/kratos | e2f3673db1d176896929b6e841c611932d6b9b63 | 96aa8004f145fff5ca6c521595cddf6585f9eccb | refs/heads/master | 2020-04-04T03:56:50.018938 | 2017-02-12T20:34:24 | 2017-02-12T20:34:24 | 54,662,269 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,125 | py | # ================================================================================================================
# Workspace settings
# ================================================================================================================
# Define directory with a relative or absolute path
design_history_... | [
"dbaumgaertner@4358b7d9-91ec-4505-bf62-c3060f61107a"
] | dbaumgaertner@4358b7d9-91ec-4505-bf62-c3060f61107a |
f099e8563d50a673936df3dfddd48a1bcda5b76d | 2b3ed6bef2f569448918b8be72c733614c231fce | /hdf5_example.py | dd3342f3c57d95a4688d33cb9ed830c521fb325f | [] | no_license | jackdbd/dask-playground | 8e67024ba60fbac3ff1ad77b94363731c04c0afd | 721bc234eadf13e9ef24173bbbc9a68761bf1a7c | refs/heads/master | 2021-04-25T19:58:47.303280 | 2017-11-01T12:49:00 | 2017-11-01T12:49:00 | 109,123,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import os
import h5py
import numpy as np
import dask.array as da
h5file_path = 'myfile.hdf5'
if os.path.exists(h5file_path):
os.unlink(h5file_path)
# create a continuous uniform distribution between 0.0 and 1.0
arr = np.random.random(size=(10000, 2000))
with h5py.File(h5file_path, 'w') as h5f:
h5f.create_dat... | [
"jackdebidda@gmail.com"
] | jackdebidda@gmail.com |
fa70a0452b646b1a21cf73baf1168baf012e94fb | 089d3832f25c0e4167acd9f3ac692c78e808e1d6 | /pymms/data/hapgood.py | 6300784c2a9483074b59061ca11583b073a782e5 | [
"MIT"
] | permissive | argallmr/pymms | ea135b57dd62370a0065680e573d09317e8575c0 | 69b2a0934f5fac548a47c6d9233cd345ea209b93 | refs/heads/master | 2023-07-22T17:48:35.022075 | 2023-07-06T19:49:55 | 2023-07-06T19:49:55 | 124,706,809 | 5 | 17 | MIT | 2020-05-31T02:52:15 | 2018-03-10T23:20:50 | Python | UTF-8 | Python | false | false | 35,757 | py | import numpy as np
import pandas as pd
from scipy.spatial.transform import Rotation as R
from scipy.stats import binned_statistic
from pathlib import Path
# IGRF Coefficients
sample_data_path = Path(__file__).parent / 'swfo' / 'data'
igrf_coeff_file = sample_data_path / 'igrf13coeffs.txt'
class IGRF_Coeff():
# Se... | [
"matthew.argall@unh.edu"
] | matthew.argall@unh.edu |
e6247400b23975a02a38404955166d70d6f867d6 | f4e20f45fafae6cb0e6c21e2d47a2a31892c2408 | /PythonExercicios/ex011.py | 552c3fcf1c692efc57ffc779bbe4656321464e4c | [
"MIT"
] | permissive | andrei406/Meus-PycharmProjects-de-Iniciante | 6e03accac46d75ee0973ae7e32fd059ddae59a82 | 6d59350eaa6538b68aca90046226cbc7b1f9f621 | refs/heads/main | 2023-03-01T22:18:08.141485 | 2021-02-07T14:06:06 | 2021-02-07T14:06:06 | 325,803,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | h = float(input('Sua parede mede quantos metros de altura?'))
l = float(input('E de comprimento?'))
a = h * l
print('\033[1;30mVocê vai precisar de {} litro(s) de tinta\033[m'.format(h / 2)) | [
"76476855+andrei406@users.noreply.github.com"
] | 76476855+andrei406@users.noreply.github.com |
0668cf1f54afe3f62d779d41ce8620b2ba97cb0e | c289c9472ce1f6eb80a9831b930674d3b71e85e4 | /chap_10/client.py | bc6efd1313359fa57d236efa16aeaf20313f3c99 | [] | no_license | Jordan-Rowland/oop-practice | a6ba2ad9f6323f58b7e4ac521c2885e5bd5b9571 | b442c62bbc45ad599bb964b22f98d6237f2e0297 | refs/heads/master | 2020-07-10T00:22:51.433643 | 2019-11-20T05:48:17 | 2019-11-20T05:48:17 | 204,117,797 | 1 | 0 | null | 2019-11-20T05:48:18 | 2019-08-24T06:21:08 | Python | UTF-8 | Python | false | false | 163 | py | import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('localhost', 2401))
print(f"Received: {client.recv(1024)}")
client.close
| [
"36084892+Jordan-Rowland@users.noreply.github.com"
] | 36084892+Jordan-Rowland@users.noreply.github.com |
25324867b9607040353779c80fb44f1218bdd375 | 86762033dd59308e764bad95acbdcc53f3b74598 | /d04/guess number.py | 236d9aad076eb991ef44ed3d1cb78657a9dc1f59 | [] | no_license | HuaMa001/python001 | 59a992c4c485e4bb1c27bbc64e01d6fd672d612e | 12b15585e1b3ef569ed01b30660146f72d699518 | refs/heads/master | 2022-11-26T22:59:42.499122 | 2020-08-11T10:47:42 | 2020-08-11T10:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import random
ans=random.randint(1, 99)
min, max=0, 100
amount=5 #可猜五次
while amount>0:
amount-=1
guess=int(input('請在%d-%d之間猜數字:'%(min, max)))
#驗證範圍?
if guess <=min or guess>=max:
print('輸入範圍錯誤')
continue
#是否猜對 ?
if guess > ans:
max=guess
elif guess < ans:
... | [
"chenenlin2@gmali.com"
] | chenenlin2@gmali.com |
fc111a7c2540a79d6929363fbcd5d364985612e9 | 9c04dfec0c7e6a5e82fc5bf0ddf2e06c2308cdef | /packages/auto-nlp-deployment/src/deployments/entities/deployment_info.py | b5e8275c19aee3ff65293d93f3451400512a6665 | [
"MIT"
] | permissive | fhswf/tagflip-autonlp | 8d678c780476d20d4d870a23320e5908a4e8972f | f94abb35ed06198567e5d9cbb7abb7e112149d6c | refs/heads/main | 2023-04-07T10:19:01.108884 | 2022-04-10T19:56:48 | 2022-04-10T19:56:48 | 410,777,896 | 5 | 2 | MIT | 2022-04-10T12:19:35 | 2021-09-27T07:07:28 | TypeScript | UTF-8 | Python | false | false | 544 | py | from typing import Any, Literal, Optional, Union
from pydantic import AnyHttpUrl, BaseModel
from deployments.entities.deployment_status import DeploymentStatus
class ModelSignature(BaseModel):
input: Optional[Any]
output: Optional[Any]
class Endpoint(BaseModel):
url: AnyHttpUrl
method: Union[Liter... | [
"timo@n.euhaus.net"
] | timo@n.euhaus.net |
8a9e6a093b51b04808ac6f330219095ad90cc1ac | cfdaf5972763d29df295dec0451546e7c3eec629 | /bpsx-forghp.py | 1ea2bda407641731e6c7aa95f161a653da01dc97 | [] | no_license | setosato/myprivatecode | a452c3c0635942f0e8188198d8bea2f2f8d5eab8 | 5aa21759a35049cc67571bf888b5372572645ab1 | refs/heads/master | 2020-07-19T14:01:02.685777 | 2019-09-06T07:06:04 | 2019-09-06T07:06:04 | 206,461,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | '''
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "... | [
"noreply@github.com"
] | setosato.noreply@github.com |
23262b3f947db8170a051fb2936e3230dcb7c642 | 96bd5be700b926c598f8c69ee774cc24ca072f1f | /pykapa/xls_functions.py | 1d323bab11e1ba645d2b96e72f2595e333b6d989 | [
"Apache-2.0"
] | permissive | ikapadata/pykapa | b847bb6309300db99bf7db0ab2591b639a6a9ee4 | 24109a16dee380d2d4e688930b2a58883ba116ba | refs/heads/master | 2021-07-14T04:02:55.489870 | 2020-05-22T11:41:06 | 2020-05-22T11:41:06 | 165,073,988 | 0 | 0 | Apache-2.0 | 2020-05-19T08:11:32 | 2019-01-10T14:28:14 | Python | UTF-8 | Python | false | false | 8,980 | py | from dateutil import parser
from datetime import datetime, timedelta
import uuid as UUID
# check if the selected field is equal to the expected value
def selected(field,value):
sel = str(field).split(" ")
print('Selected: %s'%sel)
print('Value: %s' %value )
if str(value) in sel:
return Tru... | [
"noreply@github.com"
] | ikapadata.noreply@github.com |
fa1ba4629c3a01734531a8062cab51667e0fbbe7 | 33a09a5221c4fa748b7cf7d7522e30f1d7068beb | /Alzheimer's/feature_selection_alz.py | 044cca130d04720aca6bf434bd3e4a830535738a | [
"MIT"
] | permissive | Claudmj/Microarray-analysis-with-Bayesian-networks | 17968fe20caf68fd87c3c4e7c9c1a877d20de042 | 4bf6640fa6ffcffb60922269eded83ace0678072 | refs/heads/main | 2023-07-14T11:08:01.286613 | 2021-08-20T14:05:12 | 2021-08-20T14:05:12 | 305,335,675 | 5 | 3 | null | 2020-10-20T14:16:18 | 2020-10-19T09:45:33 | Python | UTF-8 | Python | false | false | 1,682 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 21 11:32:09 2020
@author: claud
"""
import pandas as pd
import numpy as np
import seaborn as sns
from sklearn import preprocessing
#import data into dataframe
#golub = pd.read_csv("Golub_Dataset.txt", delimiter='\t')
filename='processed_alz.csv'
golu=pd.r... | [
"noreply@github.com"
] | Claudmj.noreply@github.com |
27986b86b5af74996374d397e67b3192010b6e91 | c0561a83b9950d3558d8e2a5dc3335fa68f6ec66 | /ch6/heap_sort.py | 961c7978e9cca24f00eed24e5baf5e51a947986b | [] | no_license | statco19/doit_pyalgo | e19800eb12ff34b89fefb8a88c1612b18ec931e8 | 55dfab8d0b62f73f59268cbef7ed099a21b53817 | refs/heads/master | 2023-03-03T09:01:53.229280 | 2021-02-08T06:58:34 | 2021-02-08T06:58:34 | 298,769,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | def heap_sort(a):
def down_heap(a, left, right):
temp = a[left]
parent = left
while parent < (right + 1)//2:
cl = parent * 2 + 1
cr = cl + 1
child = cr if cr <= right and a[cr]>a[cl] else cl
if temp >= a[child]:
break
a[parent] = a[child]
parent=child
a[parent] = temp
... | [
"noreply@github.com"
] | statco19.noreply@github.com |
9df4c2da6b9587b435ea6909bb0ad98bd2d3b8c8 | ecdb29762e4554fe9b3202f56688802c6d68683e | /blog/views.py | 70e0d0624346d14d03e18b44270e7fd933f5eeaa | [] | no_license | zhangsjv/my-first-blog | 236603365de0835469b02b5fef0489f0ff7245ec | 4c2f64e6e30afc6e7b7f41a79e4d2457a1ee27ac | refs/heads/master | 2022-12-27T02:49:10.435076 | 2020-10-10T11:26:09 | 2020-10-10T11:26:09 | 302,367,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
# Create your views here
def post_list(request):
posts=Post.objects.filter(publised_date__lte=timezone.now()).order_by('-publised_date')
return render(request,'blog/post_list.html',{'posts':posts})
| [
"zhangsj0209@gmail.com"
] | zhangsj0209@gmail.com |
58e81452937dfd410170e2ea91ccccbc72c18e66 | 99f26a233369d80c37938507bb16e648c640afc6 | /neutronclient/tests/unit/test_cli20_network_ip_availability.py | eb325a8f68856adb41f1a3d136050916f8a0f158 | [
"Apache-2.0"
] | permissive | starlingx-staging/stx-python-neutronclient | 2d621ad4bd260474e6cc200bc5188a673cc5ff35 | c64a68a330f7f938249523492068dd94fc8d46ea | refs/heads/master | 2020-03-18T00:57:13.786897 | 2018-11-23T18:45:06 | 2018-11-24T01:18:08 | 134,120,728 | 0 | 3 | Apache-2.0 | 2018-11-24T01:18:10 | 2018-05-20T04:51:37 | Python | UTF-8 | Python | false | false | 2,357 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"manjeet.s.bhatia@intel.com"
] | manjeet.s.bhatia@intel.com |
e88f9fca86593c9f58548a9b9ee9d1d925f8edac | d3a836353ff223f76fa005215560bb9a0d5e1250 | /tensorflow/python/grappler/layout_optimizer_test.py | d9c1c3ce41aee5a5a8bac5f9dd164771611413de | [
"Apache-2.0"
] | permissive | jhabikal21/tensorflow | 9ee926adc0217aa379202fd5c714b7c03e4514f6 | 98d20962172301385aae694141801a375debd2bc | refs/heads/master | 2021-07-15T20:10:13.666688 | 2021-06-23T11:12:14 | 2021-06-23T11:12:14 | 117,846,715 | 0 | 0 | null | 2018-01-17T14:22:49 | 2018-01-17T14:22:48 | null | UTF-8 | Python | false | false | 45,939 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9dd7670dd482869fa273d037703679c2bf9427de | f66e717c600c0bd1e3272e4501491ec99185fd4e | /Andelabs Day 2/CarClass/CarClass.py | b0340dc623d8edc76241cadc7f08fa491a52a7da | [] | no_license | Andretalik/Adrian-Otieno-bc17-week-1 | 8e1814769d3498b1de6fc2c71aec67ca6bf58722 | 555420ec71a524053629e39f6dcf0601a661553d | refs/heads/master | 2021-01-18T23:03:58.841109 | 2017-04-06T16:00:15 | 2017-04-06T16:00:15 | 87,086,288 | 0 | 0 | null | 2017-04-06T16:00:16 | 2017-04-03T14:54:48 | Python | UTF-8 | Python | false | false | 964 | py | class Car(object):
def __init__(self, name='General', model='GM', type_car='saloon', num_of_doors=4, num_of_wheels=4, speed=0):
self.name = name
self.model = model
self.num_of_doors = num_of_doors
self.num_of_wheels = num_of_wheels
self.type_car = type_car
self.speed ... | [
"noreply@github.com"
] | Andretalik.noreply@github.com |
d624ff4893bd574e6c0d2ea5f9b242a26fa6d711 | 33698eb3976bbc8a64bc68787a24a7adb53c5c33 | /projetojogo/venv/projetoflask.py | 9cd4ee9eb1b48bd7dbf2e62d2b41de1e438e4ee0 | [] | no_license | jacksonwsup/study_flask-microframework | f225470cbdf887b5345648aa3c52220b04e71c8d | 72f263510ea7f52d5768bef1beea2d81574c404d | refs/heads/main | 2023-08-31T17:03:39.816094 | 2021-11-02T04:37:13 | 2021-11-02T04:37:13 | 423,698,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from flask import Flask, render_template #funcção render_template utilizamos para renderizar qualqer formato
app = Flask(__name__)
#app.run(host='0.0.0.0', port=8080)
@app.route('/inicio')
def hellow():
return render_template('lista.html', titulo='Jogos')
app.run() | [
"86334378+jacksonwsup@users.noreply.github.com"
] | 86334378+jacksonwsup@users.noreply.github.com |
6e2270dae209181b8af5ff3dcc9eea8dc4033c64 | f6ed7bc808f5536bc77166fe5c3571e5c028f308 | /neptune/internal/cli/commands/executing/null_executor.py | b7ba6ca006a08ffa645f0c58a15b0419a5cec32f | [
"Apache-2.0"
] | permissive | jiji-online/neptune-cli | d086bb59725b7545f3e0f80bd89e8f99ff3851a0 | 50cf680a80d141497f9331ab7cdaee49fcb90b0c | refs/heads/main | 2023-07-18T17:56:10.671562 | 2021-09-14T07:54:13 | 2021-09-14T07:54:13 | 406,275,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | #
# Copyright (c) 2017, deepsense.io
#
# 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 w... | [
"serhii.freidin@jiji.ng"
] | serhii.freidin@jiji.ng |
e2a012ec71783edc7049afbffecf672773bea279 | b71cbb9604d3ff09af51fb7d6df771a1198f545e | /home/bin/find_burnable_quantities.py | 946fa92c784d624aadeac96e04e903cf805373ad | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ssokolow/profile | 74ed45f2eccd692da92b05cf5069b3d4e28d4ef2 | 0e1bb67e1c83b58e2c49d89b06b1fd3928273614 | refs/heads/master | 2022-09-18T06:05:59.220154 | 2022-09-04T19:13:25 | 2022-09-04T19:13:25 | 367,158 | 9 | 9 | null | null | null | null | UTF-8 | Python | false | false | 8,524 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""A simple little script to walk a filesystem subtree from the leaves upwards
and draw a tree of of folders large enough to be backed up to DVD+R.
(Displayed size values for parent directories do not include content which
matches the exclusion filter)
"""
from __future_... | [
"http://www.ssokolow.com/ContactMe"
] | http://www.ssokolow.com/ContactMe |
b70471b30ed693024129232b607386dcc2056eed | 4d05be863b63a56a90b4c46b15069827b33ecaae | /Algorithms/leetcode/088_merge_sorted_array.py | cdc7c4756f42f6563a0e1d9faa78195016a55fbc | [] | no_license | leeo1116/PyCharm | e532fa9754056019508cc454214ee1a8ad9b26a9 | b6942c05c27556e5fe47879e8b823845c84c5430 | refs/heads/master | 2022-11-06T00:43:14.882453 | 2017-07-13T04:50:00 | 2017-07-13T04:50:00 | 36,851,636 | 0 | 1 | null | 2022-10-20T10:44:39 | 2015-06-04T06:09:09 | Python | UTF-8 | Python | false | false | 775 | py | __author__ = 'Liang Li'
class Solution:
# @param {integer[]} nums1
# @param {integer} m
# @param {integer[]} nums2
# @param {integer} n
# @return {void} Do not return anything, modify nums1 in-place instead.
def merge(self, nums1, m, nums2, n):
i = m-1
j = n-1
k = m+n-1
... | [
"leeo1116@gmail.com"
] | leeo1116@gmail.com |
24516fbfe12de0980aa098f7de5d754300afa400 | 5fb8b98ed56253954cce5b82727f48a90ea89807 | /standalone-modules/OneHotEncoder/run.py | 1fe2ecd48f77ed379678ff1c818f1b80b73a5570 | [] | no_license | gitter-badger/datacanvas-modules | 2d96c922dcc866b3326c667b8467891484b9df2b | a4c50defe84166b282961a0f1d5601b27dea5434 | refs/heads/master | 2021-05-02T07:04:30.121612 | 2018-02-09T06:43:14 | 2018-02-09T06:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import pandas as pd
import category_encoders as ce
def main(params, inputs, outputs):
columns_param = params.columns
data = inputs.data
data_new = outputs.data_new
data_0 = pd.read_pickle(data)
encoder = ce.OneHotEncoder(cols=[col for col in columns_param.split(",")])
data_1 = encoder... | [
"yunky.dong@gmail.com"
] | yunky.dong@gmail.com |
2b40da75789f55119d250b7354c69c87b1f8de71 | b23d294fdffabe72c336644f119860f5ce704eef | /python_1000phone/预科/day1-turtle/01-第一个python代码.py | bc791ddb4d9c798be10d6dc7d7d522d3d4d2a228 | [] | no_license | ikaros274556330/my_code | 65232758fd20820e9f4fa8cb5a6c91a1969862a2 | 92db21c4abcbd88b7bd77e78d9f660b4534b5071 | refs/heads/master | 2020-11-26T09:43:58.200990 | 2019-12-23T02:08:39 | 2019-12-23T02:08:39 | 229,032,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | # 打印hello world!
print('hello world!') | [
"274556330@qq.com"
] | 274556330@qq.com |
100bf1b290d658349122b8ccac599bd77cba14c7 | 2f6511ae1ebe993754a5ec056186259cae213658 | /selenium/main/login/main.py | 88e4ba2f30fa47b36df77da91f33696754092ab2 | [] | no_license | arvigupt/connect | 508f16b2fcec03b1ecad90697d0f02730fd83af4 | 7dca766c8aae9bdb2f97366ed101dcc0f25a39c2 | refs/heads/main | 2023-03-28T04:10:34.990081 | 2021-03-31T07:15:46 | 2021-03-31T07:15:46 | 350,322,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,875 | py | from core.common import commoncomponent
from core.common.repository import data_platform
from core.common.repository import dp_applicant_login_info
from core.common.models.UserCredential import UserCredential
import uvicorn
import datetime
import json
import os
from typing import Optional
from fastapi import FastAPI, H... | [
"arvind@Arvinds-MacBook-Pro.local"
] | arvind@Arvinds-MacBook-Pro.local |
0bb311e3db55cf3f8c9eb6227d012f33756a20b9 | f19ba7a733013aa9897f2ce9a1d25268bc26ba97 | /Robot_e grafi_solutions/es_grafo_orientato_bassignana.py | d0c5579552d8043dc0598b934644a40fb6aef82a | [] | no_license | My-Students/Python-robotics | d876cb5a01aca583dbe48c4885e892a86e31e6ed | 7b70f5dd1a62ef6f1ad305a3bd096b6eb1f87bd5 | refs/heads/master | 2021-02-13T14:32:37.153082 | 2020-03-30T15:31:45 | 2020-03-30T15:31:45 | 244,704,397 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import network as nx
import matplotlib.pyplot as plt
def main():
num_nodi = int(input("Inserire il numero di nodi"))
dict = creaDictDaNumNodi(num_nodi)
stampaDict(dict)
stampaMatrice(creaMatriceDaDict(dict, num_nodi), num_nodi)
disegnaGrafo(dict)
def creaMatriceDaNumNodi(num_nodi):
... | [
"noreply@github.com"
] | My-Students.noreply@github.com |
392ab4ad3209f4bb37e55cbada92691ad36b9f56 | 294f1ae78a6b0edf6857e3316ace22a7503c40fd | /app/crud/__init__.py | a0da9acee5fb1366c9bec782d7c2ad813a8473db | [
"Apache-2.0"
] | permissive | vampire725/EchoProxy | ecc535f7f9ea61fec208e858ecf28ac58c266d47 | 0273f47397b76fa0292db267d99eeb9dccc4e869 | refs/heads/master | 2022-04-06T05:54:14.824916 | 2020-03-08T13:41:09 | 2020-03-08T13:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/3/4 0004 21:25
# @Author : Gpp
# @File : __init__.py.py
| [
"gpp0725@outlook.com"
] | gpp0725@outlook.com |
9910357a988f65c5b80d36a05e1c1bf939455313 | 9d2bb59a7c7528750be78fc9b44081648f63364a | /pytils/date.py | 1f50531f420b2ddb4003fa15057640fbcd114227 | [] | no_license | johanlundahl/pytils | 368ece19cf666a319811e269d3798dc1b681b10f | bae78dbe2e5025254b01d901134667ee7ac37454 | refs/heads/master | 2023-01-03T17:57:54.317305 | 2022-12-28T20:10:20 | 2022-12-28T20:10:20 | 143,716,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | from abc import ABC, abstractmethod, abstractproperty
from datetime import datetime, timedelta
import calendar
class Period(ABC):
def __init__(self, dt=datetime.now()):
self._datetime = datetime(dt.year, dt.month, dt.day)
@classmethod
def now(cls):
return cls(datetime.now())
@classm... | [
"johan.t.lundahl@gmail.com"
] | johan.t.lundahl@gmail.com |
d71d23c9bd97b0cc2e634b08122a66d17abfe9d2 | 08ab8bfeee89992e294a9ae34310ff349a104885 | /pyserini/dsearch/_dsearcher.py | d1dffbeb57114bb7c527305cc12774db1818bfeb | [
"Apache-2.0"
] | permissive | RootofalleviI/pyserini | 9b80cf3743dfb9331b7c37e239717870f6e01169 | 5023349d2ad1e8900d866b3e37b6afb3b74ef970 | refs/heads/master | 2023-08-08T08:24:58.811915 | 2021-09-15T22:18:52 | 2021-09-15T22:18:52 | 367,443,046 | 0 | 0 | Apache-2.0 | 2021-09-15T21:59:43 | 2021-05-14T18:03:08 | Python | UTF-8 | Python | false | false | 22,902 | py | #
# Pyserini: Reproducible IR research with sparse and dense representations
#
# 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... | [
"noreply@github.com"
] | RootofalleviI.noreply@github.com |
7b8c22e8a79c520dc513ac590e68f17e2239679c | e2be1907175772072e41781373afc7f82974e0f1 | /src/factories/trainer_factory/GAN.py | ba89719767893b17426c78a6a58753948c3f3e2c | [] | no_license | MiuLab/TaylorGAN | 6cdd40d0f035832e68cf22ee8bf5ce6bffdb2bcc | 2f4b62aaa50e6d0b485bf3d33e1a19892d50527e | refs/heads/main | 2023-04-08T10:22:53.161981 | 2021-01-26T02:54:57 | 2021-01-26T02:54:57 | 306,371,483 | 40 | 3 | null | 2021-01-26T03:30:18 | 2020-10-22T14:55:35 | Python | UTF-8 | Python | false | false | 3,218 | py | import tensorflow as tf
from core.objectives.GAN import (
BCE,
GANObjective,
GANLossTuple,
ReinforceEstimator,
StraightThroughEstimator,
TaylorEstimator,
GumbelSoftmaxEstimator,
)
from core.train import DiscriminatorUpdater, GANTrainer
from factories.modules import discriminator_factory
fro... | [
"jsaon92@gmail.com"
] | jsaon92@gmail.com |
436a25cdd1f502b59ba9088db92cf9788b40dfa7 | 0d041257a0633bb1654cad262462acb898616008 | /Tech_Hub/urls.py | d5cb584db429be209a43c548bef12c60f9a0fa13 | [] | no_license | SibghatShaikh/Tech | dd725ae3f54e758bcbf33cc675b80187015a7c1e | 4da96f6cb5019bb026e284c3aa6afaee417714ce | refs/heads/master | 2023-04-27T17:29:40.895915 | 2021-05-25T07:02:37 | 2021-05-25T07:02:37 | 366,473,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """Tech_Hub URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Cl... | [
"noreply@github.com"
] | SibghatShaikh.noreply@github.com |
8975a6bd1fdea6404bbd69a7286fd7c7f358b085 | 7b164b810f84988ef0bb2016caf07433f12d4e8a | /library_management_system/Lib MS/LIBRAY_MANAGEMENT/ret.py | 74e0f1519acf9851ade81d392a63bb2e0fed5b20 | [] | no_license | iAnas19/Library-Management-System-project | b96b891a5cbf9d2a2ba2fa48d3fa48c5c0f326f0 | 52249b300020a33573fbf4c98fe639907fa7bf9e | refs/heads/main | 2023-05-07T10:20:38.139817 | 2021-04-08T21:28:24 | 2021-04-08T21:28:24 | 356,052,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | from tkinter import *
from tkinter import messagebox
import os,sys
import mysql.connector
from mysql.connector import Error
from datetime import datetime,date
py = sys.executable
class ret(Tk):
def __init__(self):
super().__init__()
self.iconbitmap(r'libico.ico')
self.title("R... | [
"noreply@github.com"
] | iAnas19.noreply@github.com |
48b118b90caf47d3f1600ff81ab6b6d79a875e12 | 891cc1e3e9e452e9bf104fb19aa47c96077efd7d | /finding_cipher_key.py | 1220c645661476cd730b28906274905475570ba4 | [] | no_license | saemsheth/Co-relation-attack-on-A5-stream-cipher | 4ef689e08eec35265758a69adabefbdba290d9fe | 01aa095f978e47dbb65fd4545edaa10f60784aa0 | refs/heads/master | 2022-12-02T01:08:06.526733 | 2020-08-20T18:29:16 | 2020-08-20T18:29:16 | 289,075,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,971 | py | # -*- coding: utf-8 -*-
"""Finding_cipher_key.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1a_ydQwmXrzCV8F4GVzFh1mLt-zHkw4ni
"""
ai=[]
bi=[]
ci=[]
m1=[]
m2=[]
m3=[]
a=[]
b=[]
c1=[]
def LFSR1(x):
for i in range(0,520):
x3=x&1
x = ... | [
"saemsheth11196@gmail.com"
] | saemsheth11196@gmail.com |
c88410f5381d6ce6f915c44be912399406094dbc | 2a08e70a1b893cb6b621635d83a86f15598cbd0c | /file.py | 16800c32f5b8256526db2999dfc1c30c153d0833 | [] | no_license | AlinaPy/python | b7543aba987f198f95b9984ccf714cf12388ae4d | db180579c12d9a8fd7bb1eccef3a83599a5b51a2 | refs/heads/master | 2020-06-17T19:09:44.023284 | 2019-07-09T17:45:36 | 2019-07-09T17:45:36 | 196,019,600 | 1 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 364 | py | print('Hello world!')
print('Hi Marina!')
answer = input("А ты в курсе, что можно запускать питоновский файл напрямую и вводить туда значения? (Y/N)")
if answer == 'Y':
print("умничка")
else:
print("А я не знаю как запустить файл напрямую((((((((") | [
"ino4kayo1@mail.ru"
] | ino4kayo1@mail.ru |
bcf372a4ab7f0066d27d9f6f396a77ddb6dfb14b | da1037bdf6620861cf971115a9ad6ed8115a25cc | /backend/app/fastapi-tutorial/sample/tutorial/06-07-path-parameters-and-numeric-validations.py.py | 893e2a79374dfff44e151f0e748202e8c916e3a1 | [] | no_license | nukopy/past-application-architectures | b814124f21c581979e2e26533429ebb3010bd812 | 4f20a11ea7d0dd1d6c2278e8e82a3ca801da0c3a | refs/heads/master | 2023-01-11T17:47:08.290825 | 2020-11-10T02:06:52 | 2020-11-10T02:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | from typing import Any, Dict, List, Optional, Type, TypeVar
from fastapi import FastAPI, Path, Query
from pydantic import BaseModel
T = TypeVar("T", bound="ObjectBase")
class ObjectBase(BaseModel):
@classmethod
def create(cls: Type[T], data: Dict[str, Any]) -> T:
""" Factory method: Create pydantic... | [
"pytwbf201830@gmail.com"
] | pytwbf201830@gmail.com |
d53eaa87254e74faa3a0cef995970e6ac910efe1 | b728bf1e9dc90b1ae6d56aa70b5f5c598b87c097 | /0x01-python_async_function/1-concurrent_coroutines.py | 1ed8cdf6ce6faa0e5099e34058ab3df9dd71a049 | [] | no_license | usfbelhadj/holbertonschool-web_back_end | 2d0ad2271368abb380dc13c9ce1371ddc580767b | c3c9174b79539069d9f830381dff217e8d9688b5 | refs/heads/master | 2023-06-01T20:26:12.359948 | 2021-06-13T01:21:09 | 2021-06-13T01:21:09 | 310,302,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python3
'''
Let's execute multiple coroutines at the same time with async
'''
import asyncio
import random
from typing import List
wait_random = __import__('0-basic_async_syntax').wait_random
async def wait_n(n: int, max_delay: int) -> List[float]:
'''
Import wait_random from the previous pyth... | [
"usf.belhadj@gmail.com"
] | usf.belhadj@gmail.com |
4f8393409c232a000d3656181248c1ee0309bd84 | c85c42d2d2bd565b462a0a0fe689488ed296cea8 | /Studentinfoproject.py | 7970dc551390204b80447392d2ea25f9ab0d3f71 | [] | no_license | maryniya/hello | bd8b84429dbe386e68cc7374d31e63632e614ad9 | de5a72675d6636c0c9f542837a7ffa1d999454d4 | refs/heads/main | 2023-06-04T01:13:27.836538 | 2021-07-04T15:17:35 | 2021-07-04T15:17:35 | 376,457,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | #Project1: Basic school administartion tool
import csv
def write_into_csv(info_list):
with open('student_info_list.csv','a', newline='') as csv_file:
writer = csv.writer(csv_file)
if csv_file.tell() == 0:
writer.writerow(["Name", "Age", "Contact Number", "E-mail ID"])
... | [
"noreply@github.com"
] | maryniya.noreply@github.com |
c82abc0f8f4240cc626ac3743057ba07fbf408e2 | a65f9b9c40f7919004cb6e740bc9173a69487094 | /oblig2/Exercise2.py | ce46c0d6eb191dd76e511f99cba0f591579685dc | [] | no_license | andrthu/mek4250 | e99a66347fdfc68b8b70fd47ea0e6cca05f2b2b9 | d8dbf2afa1e5bc2185cc8cf6f3fb86bf18eb08e9 | refs/heads/master | 2021-01-24T20:48:20.168198 | 2017-07-27T12:02:11 | 2017-07-27T12:02:11 | 51,002,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,580 | py |
from dolfin import *
from numpy import pi,matrix,sqrt,diagflat,zeros,vstack,ones,log,array,size,exp
from scipy import linalg
import matplotlib.pyplot as plt
#defining lists with h values and lambdas, and setting my=1
Lam = [1,100,10000]
my = 1
H = [8,16,32,64]
#Expression u exact
ue = Expression(("pi*x[0]*cos(pi*... | [
"andrthu@student.matnat.uio.no"
] | andrthu@student.matnat.uio.no |
5fdd9607564a70b74cbab892584f6c9f6a83d532 | 3ee67adff6e3b08a821b51ac9935ca8c06b844b6 | /Recursividade/elefantes.py | 10fceabced39d590d7b666366cc82b49bafe4a2b | [] | no_license | vinaud/Exercicios-Python | 5952b11701604b2068709e2fd86f3b62ad3ccc09 | 7575b8b90b52bf77f4b20c63224808466d187d40 | refs/heads/master | 2021-05-17T15:03:47.796947 | 2020-05-01T19:29:10 | 2020-05-01T19:29:10 | 250,834,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | """
Implemente a função incomodam(n) que devolve uma string contendo "incomodam "
(a palavra seguida de um espaço) n vezes. Se n não for um inteiro estritamente positivo,
a função deve devolver uma string vazia. Essa função deve ser implementada utilizando recursão.
Utilizando a função acima, implemente a função ele... | [
"leyenasd@gmail.com"
] | leyenasd@gmail.com |
5a8545f7845617099448aca9ffa37ec6059aadcb | b8bf409d1d1e38950c1b194c2d3c460920807bf0 | /Python/Madlibs.py | 0f5f1dbac134411c6ac06e45c4c9fa5bfc2c1aea | [
"MIT"
] | permissive | hhaslam11/SmallProjects | caf0e0c16a2f174361e549f9ceea2f3a98c841b1 | 3c861b1b42fdd564739717d2deae49bc0cdc24b4 | refs/heads/master | 2021-01-10T10:02:26.245979 | 2017-10-06T21:58:41 | 2017-10-06T21:58:41 | 55,207,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | """
Madlibs.py
Kaleb Haslam
https://www.codecademy.com
"""
print("Mad Libs || Kaleb Haslam")
print("Enter a name: ")
name = raw_input()
adj_1 = raw_input("Enter an adjective: ")
adj_2 = raw_input("Enter another adjective: ")
adj_3 = raw_input("Enter a final adjective: ")
verb_1 = raw_input("En... | [
"kalebmarc@hotmail.com"
] | kalebmarc@hotmail.com |
6e35a820c430f2cff165c270e40d72afcb703803 | 7f7445e378de3ccb51387714607aa11949bf8f53 | /config.py | 7d492aeaee4ee968462f4fcf6f7a61604b1294bd | [] | no_license | HienB1812267/disaster_tweet | 7e0b0d9fd4ba232e6bb069629cf7049a18359bcb | fd9ea29b37f73b57b1ef93133b23336450bcb49e | refs/heads/main | 2023-09-03T08:49:44.942076 | 2021-10-27T15:35:07 | 2021-10-27T15:35:07 | 407,450,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | DATA_TRAIN_PATH = "./train.csv"
DATA_TEST_PATH = "./test.csv"
SAMPE_SUBMISSTION_PATH ="./sample_submission.csv"
ACRONYMS_PATH = "./acronyms_tweets.txt"
TRUE_TARGET_PATH = "./real_target.csv" | [
"kgha2099@gmail.com"
] | kgha2099@gmail.com |
2316ed9192f542f72a25d3038b16c60e3271862f | 68b7d7b72a9d87123373f1e4523bf3655564769d | /backend/course/migrations/0001_initial.py | 0ce22a04074cfc9aad1aacd1a19265b0239921a5 | [] | no_license | crowdbotics-apps/help-procrastinatio-22418 | c5a85b31e85b87e9d4e39f402ca3f037d916c990 | b2a967a5b930ba5cacbeeea702ca9aba71899687 | refs/heads/master | 2023-01-09T12:19:42.589420 | 2020-11-08T23:45:22 | 2020-11-08T23:45:22 | 311,177,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | # Generated by Django 2.2.17 on 2020-11-08 23:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e2e47c06e98fbfb0bdd1cc0fa413a8b3deb1e123 | 99b4956b0026c1c4cb023424342fc75f523aa4fa | /04.adventure/18.ui_preparation/scene.py | 3032ff988bbdaff179596bf01bfd8d648f09c58b | [
"MIT"
] | permissive | Gaetz/python-training | 37c234128d834ee29e0e625f265cf0b68158c228 | 542f658883c66aaa932fb9e385225cfd573bb6de | refs/heads/master | 2021-05-09T03:44:22.990658 | 2020-10-02T18:29:50 | 2020-10-02T18:29:50 | 119,250,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | import pygame
from sprite_controlled import SpriteControlled
from sprite import Sprite
from warp import Warp
from ui_group import UiGroup
from ui_panel import UiPanel
class Scene:
path = 'D:\\Code\\ArtFx\\Python\\python-training\\01.adventure\\15.scene_amelioration\\'
def __init__(self, filename):
... | [
"gaetan.blaisecazalet@gmail.com"
] | gaetan.blaisecazalet@gmail.com |
fad3a00b467541c57ee6edf27a6e4a28dee2abe7 | 54c3e0f24c1eb82fafd4d8f4ef7037f2a656f8a9 | /extract.py | c64ef1de563c1cac223e6758b1da3a333787c6ca | [] | no_license | zeeker999/music-source-separation | 4accd950675efdc81fa9ced2139bb368de1de69c | 3e1067b7fbb91ceefa3c616ec9063ddd3617b9ad | refs/heads/master | 2022-01-29T10:22:54.634784 | 2019-07-28T01:57:15 | 2019-07-28T01:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
By Dabi Ahn. andabi412@gmail.com.
https://www.github.com/andabi
'''
import os
import librosa
import numpy as np
import tensorflow as tf
from config import EvalConfig, ModelConfig
from model import Model
from preprocess import soft_time_freq_mask, to_wav, write_wav
fr... | [
"sunmoon1997@gmail.com"
] | sunmoon1997@gmail.com |
3b769885947b5d6041a315b1fcab32fb408af28c | cd85ea1a17cb0f3ec5b47e0c020c28c508c650ff | /020.finance.py | 9b730a1a435184f22d6215f3603f50480b4c1d2e | [] | no_license | HappyPM/proj1 | 6181ee054e0c4a1bbfba669986e28f9127b9a293 | 08c0805f63f428ac381ccdbee602cd26a95e0932 | refs/heads/master | 2020-04-05T14:03:31.230156 | 2016-08-31T00:12:27 | 2016-08-31T00:12:27 | 34,797,301 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | #-*- coding: utf-8 -*-
import json
import urllib2
from pymongo import MongoClient
try:
from BeautifulSoup import BeautifulSoup
except ImportError:
from bs4 import BeautifulSoup # exception import
gnUrl = 'http://companyinfo.stock.naver.com/v1/company/cF1001.aspx?finGubun=MAIN&cmp_cd='
gnOpener... | [
"runnablek@gmail.com"
] | runnablek@gmail.com |
a04be61f7ffc613e9dba0bc3abe9e559b9929aee | 4dc66e732ccd873490b79cf97b8dafa09fba803c | /chapter_9/car.py | e2773cf8ba3836004dbacccf24265ef1cde17fac | [] | no_license | AaronLaw/Python-Crash-Course-Bootcamp | 18bf5e8cb2aa77af7c9e78afccb5f38941a50dd9 | 233cc7d82db7a90a11dd5c3dfce894b8dac939de | refs/heads/master | 2020-06-07T14:45:50.410474 | 2019-07-06T22:24:31 | 2019-07-06T22:24:31 | 193,043,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | """A class that represents car."""
class Car():
"""A simple simulation of car."""
def __init__(self, make, model, year):
"""Initial attributes of car."""
self.make = make
self.model = model
self.year = year
self.odometer_reading = 0
def get_descriptive_name(sel... | [
"aaron.law@gmail.com"
] | aaron.law@gmail.com |
39890e2873138702a15f6a3eb09242e782e318da | 4d4d99a79e27eb4950724935caf64cf6298e9558 | /touchpoint_distribution.py | b1189b34b8bfa22cdb10839c134a317921307730 | [] | no_license | mathycee/Digital-Data-Analysis | 6cf645fb66aaf77c8a1bf72e52801327e902971a | ce6f8332d93d4591c6519cdcdcb4d7d2c7b98a0b | refs/heads/master | 2021-01-15T15:37:37.739991 | 2016-09-09T01:17:07 | 2016-09-09T01:17:07 | 37,562,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | ##################################################################################
# Touch Point Distribution
# The purpose of this script is to create touchpoint distribution.
#Output: touchpoint_distribution.txt file
#Author: Xiaomeng Chai <chaixiaomeng@gmail.com>
#Date: 08/18/15, 08/24/15
#
########################... | [
"chaixiaomeng@gmail.com"
] | chaixiaomeng@gmail.com |
57982798e64264e70d17cad7d0d66871381e92be | f9dbf7d57606ded7f7800ee3c2eb50880d45a4f7 | /python/daaltk/doc/docutils.py | d2f2ac936f94d27ce03c09fb5f6594e67b9a9a39 | [
"Apache-2.0"
] | permissive | dmsuehir/daal-tk | bc96976719dc0918152c838be347d5927f7fe6bd | f2ed2307fb436fc4f976c46317d367f8c2aa56db | refs/heads/master | 2021-04-30T18:48:31.301277 | 2016-11-07T17:19:18 | 2016-11-07T17:19:18 | 75,002,896 | 0 | 0 | null | 2016-12-13T01:48:07 | 2016-11-28T18:37:19 | Scala | UTF-8 | Python | false | false | 9,526 | py | """
Post-processes HTML generated by pdoc
"""
import re
import datetime
import os
import sys
import shutil
import tempfile
import logging
logger = logging.getLogger(__file__)
def pre_process_py(path):
def go(full_name, reader, writer):
text = reader.read()
output = str(DocExamplesPreprocessor(tex... | [
"rene.o.dorado@intel.com"
] | rene.o.dorado@intel.com |
4639ffa783d2b6bac7000b63fbf2f0edebce684a | f61ac85822e491007d7459504c9cf94fd5d2f79c | /fluent_python/decorator/average_oo.py | 1385225d466a47517a174ecd6778da28b9831070 | [
"MIT"
] | permissive | ftconan/python3 | 9b587d17d125159b9b0b3bf1a6dc5817e7cd2838 | 74628fcfcfed439ee8dc5498d138b4d019f1ea58 | refs/heads/master | 2023-07-06T23:17:59.962048 | 2023-06-28T08:15:45 | 2023-06-28T08:15:45 | 138,450,461 | 1 | 1 | MIT | 2022-11-22T09:15:49 | 2018-06-24T03:28:02 | Jupyter Notebook | UTF-8 | Python | false | false | 1,198 | py | """
@author: magician
@file: average_oo.py
@date: 2020/10/20
"""
class Averager():
"""
Averager
"""
def __init__(self):
self.series = []
def __call__(self, new_value):
self.series.append(new_value)
total = sum(self.series)
return total / len(self.series)
de... | [
"1508907793@qq.com"
] | 1508907793@qq.com |
e737f30ee336c86d11634c5ffc31dd2d27b89f09 | 313b7c5dbd4e028f4ae5b27f7f293bc5b991fcd4 | /Excercise5_2_Sinlawat_S.py | b832755dcf4d035f0fbc836c71a96440f70303c8 | [] | no_license | Sinlawat/Laland | ae72a0e47142dbe13f9503dffb550f9ffeb5ac95 | f8fd74dc0efda969e6529994407ec501e19bdabd | refs/heads/master | 2020-11-28T22:58:41.593540 | 2020-06-22T00:03:02 | 2020-06-22T00:03:02 | 229,943,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | S = int(input("insert your Speeds = " ))
T = int(input("insert your Times = " ))
V = int(S/T)
print(V , "m/s") | [
"Sinlawats58@gmail.com"
] | Sinlawats58@gmail.com |
ce4d36e018e297df509215b25d6af8cbe17f9cd9 | 53b61ab08427f5e7a246bc2752b98be97cf299c1 | /segmentation_framework/models/deeplabv3p/aspp.py | 19d2e5179650cf326f48ebcda7017d4aacd68778 | [] | no_license | branislavhesko/segmentation_framework | 0822e1a367d21cf205c7cdaa479aa425171acb0e | 8d4c55a219786930e97f6e57d98cbc10fe4b4da5 | refs/heads/master | 2022-08-27T12:47:09.160324 | 2022-08-01T21:28:35 | 2022-08-01T21:28:35 | 189,777,229 | 1 | 0 | null | 2020-11-01T22:48:41 | 2019-06-01T21:01:58 | Python | UTF-8 | Python | false | false | 3,611 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from models.deeplabv3p.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
class _ASPPModule(nn.Module):
def __init__(self, inplanes, planes, kernel_size, padding, dilation, BatchNorm):
super(_ASPPModule, self).__init__()
... | [
"branislavh@protonmail.ch"
] | branislavh@protonmail.ch |
99681c36be3784e520c6d493f540d54bbb5b6ac4 | d8a5fc2195165c970e2340eee87ae2ad5322da29 | /{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/photos/views.py | 48573cfdc703cc624f8d89eccaf4fa0037280c73 | [
"BSD-3-Clause"
] | permissive | lendlsmith/chrisdev-cookiecutter | b76e6194aa8369c2dbf1dac73e3282e025d2b146 | e0ab2d16bd1a066800ce46bb1740b1254c259a70 | refs/heads/master | 2021-10-11T22:20:02.391847 | 2014-07-21T16:57:32 | 2014-07-21T16:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.views.generic import ListView, DetailView
from filer.models import Folder
class GalleryListView(ListView):
#context_object_name = "gallery_list"
try:
queryset = Folder.objects.get(
name='Gallery').children.all().order_by('-created_at')
except Folder.DoesNotExist:
qu... | [
"lendl.smith@gmail.com"
] | lendl.smith@gmail.com |
86158901edcbeb0e119d14f7e1d9a3dbc67a7ab7 | beead56b100b562eb4eb03262a5fb6d688309166 | /pydw/__init__.py | abdb214ea9ec9389d7b10b7fed00dd7e116f3188 | [
"Apache-2.0"
] | permissive | quzhengpeng/pydw | b01f64c3a00ffdac53393ed977972ff87728b66c | afc003fdd0bc3ca243c81134fb6c660cc26d7c2e | refs/heads/master | 2020-05-09T22:43:24.580879 | 2019-12-25T10:37:39 | 2019-12-25T10:37:39 | 181,480,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from pydw.utils import config
from pydw.utils import connection
def connect(db_conn):
conf = config.get_config(db_conn)
conn = connection.get_conn(conf)
return conn.conn
def create(db_conn):
conf = config.get_config(db_conn)
conn = connection.get_conn(conf)
return conn
| [
"quzhengpeng@gmail.com"
] | quzhengpeng@gmail.com |
4528a59aa0db7486bbbf2a3cb6b8db98636d7a1b | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/poolLoop.py | 0a25964115c941e48f0dbddf08013eda3d965d6c | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 1,366 | py | from __future__ import print_function
import os
import pool
import rcExceptions as ex
from rcUtilities import lazy, justcall
class Pool(pool.Pool):
type = "loop"
capabilities = ["rox", "rwx", "roo", "rwo", "blk"]
@lazy
def path(self):
return self.oget("path")
def translate(self, name=No... | [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
1fbcda7f3f1f05a9abcfa9a66315a7410e7cebba | cc38367d207e28e76fa087d0098757235208bbef | /Code/irc/banterbot_plugins/xkcd.py | f081cd7a7afa4612c3fdca06e8b46e56f0469c22 | [] | no_license | RussellChamp/tilde-projects | c1943ac2120977f9bb6eb47b779266ed06326115 | 210200a8832e58f6197fe264567862a567b13d1a | refs/heads/master | 2020-12-09T07:36:33.170952 | 2020-03-02T21:31:58 | 2020-03-02T21:31:58 | 28,719,355 | 8 | 4 | null | 2019-01-28T16:49:32 | 2015-01-02T16:48:52 | HTML | UTF-8 | Python | false | false | 189 | py | #!/usr/bin/python3
import pinhook.plugin
import util.xkcdApropos
@pinhook.plugin.register('!xkcd')
def xkcd_plugin(msg):
return pinhook.plugin.message(util.xkcdApropos.xkcd(msg.arg))
| [
"RussellChamp@gmail.com"
] | RussellChamp@gmail.com |
f57a5a411bc4bd9daee914c2fc13faf4310bdc9b | 97ca8aedfc7959f99bf5add51c2fbb9d535c5aff | /tcml_tools/slurmer/parse/group.py | 6142cd427c107f81a3ddab7c8eda3c9d7558ae77 | [] | no_license | cogsys-tuebingen/tcml_tools | 74b930b8109ef0ad559584bb51808edb83fe4e8c | 4eabeb08e34993143c729136dc4349043dde00ad | refs/heads/main | 2023-06-02T02:27:13.915943 | 2021-06-09T07:01:23 | 2021-06-09T07:01:23 | 359,801,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,582 | py | import numpy as np
from typing import Union
from collections import OrderedDict, defaultdict
from tcml_tools.slurmer.parse import Result, Metrics
class Group:
"""
A group of slurm jobs that share parameters (except e.g. seed)
metrics will be computed over groups
"""
default_result = Result("__def... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
6fd918e202a3968d5ca574c8f67d5791cf00f0a3 | 2785249737774981c54448096bfeb145aeedf08f | /run.py | 273f2056a542cda4462cb1b00ab137c2e1192627 | [
"MIT"
] | permissive | ninoseki/hash-hush | 44e0029bb807e7c00cffc0b9068fdc7d40c7683a | 20212ab23fec922dec4542acd2e20a6487da9e83 | refs/heads/master | 2022-07-18T06:34:22.380257 | 2019-10-25T04:41:46 | 2019-10-25T04:41:46 | 216,987,219 | 1 | 1 | MIT | 2020-08-07T00:43:50 | 2019-10-23T06:46:40 | TypeScript | UTF-8 | Python | false | false | 50 | py | import os
from app import app
app.run(port=5000)
| [
"noreply@github.com"
] | ninoseki.noreply@github.com |
9498aefa8f146488465c0dc49bcdcfecb6c2c61c | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/compute/resource_views/resources/add.py | 91a1766af1560f7ca696cc64491c0c49bb5e745d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 2,988 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""'resourceviews resources add' command."""
from apiclient import errors
from googlecloudsdk.api_lib.compute import rolling_updates_util as util
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import lo... | [
"joe@longreen.io"
] | joe@longreen.io |
8ac9eb56ba0571fcfba55fe637d4b74150921482 | 67b69fc833f5dc9b32146b8bc3261f7bb84324bb | /sns/forms.py | f7a761da1158bd2f7c74fc95efe22d513d7ea524 | [] | no_license | SotaEndo0214/My-SNS-app | 08caf43244fba878a9153a2fc91c5f367472b9e7 | 72597f3689f976d46e9fb59198351a067896ea56 | refs/heads/master | 2022-11-05T04:59:18.222051 | 2020-06-26T10:30:05 | 2020-06-26T10:30:05 | 275,092,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import AuthenticationForm
from .models import Message, User
class UserCreateForm(UserCreationForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['us... | [
"sotapea@gmail.com"
] | sotapea@gmail.com |
4a515d5d729fa2b04b9fa633eeb2936a85a81110 | ce392e553ddf78d6d52781db93f2ba128020f770 | /docentes/forms.py | 933c752a221176e7471604eba0d9cf3988ceb1ae | [] | no_license | orionkmc/sigpa | d7b3834ad1dc8dd64750733fe9bdc762da5aaf57 | 37a10df9096295c89fd6115ea32b8d784d2e5661 | refs/heads/master | 2023-07-06T11:39:22.253318 | 2020-01-21T06:16:07 | 2020-01-21T06:16:07 | 38,455,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
from django.forms import ModelForm
from docentes.models import Docentes
from django.forms import formset_factory
class DocenteForm(ModelForm):
class Meta:
model = Docentes
fields = '__all__'
def __init__(self, *args, **kwargs):
super(DocenteForm, self).__init__... | [
"orionkmc@gmail.com"
] | orionkmc@gmail.com |
5a57d2d08af4a4dd8ad93e96047312d2f03db104 | 6e9a1c5f5095b5ebc78d264ce3adbdfeea113905 | /affordance_gym/src/affordance_gym/trajectory_parser.py | 37ac0d4de5c4391e7cbbbd2198db0a856aee4e45 | [
"MIT"
] | permissive | AXINLETTER/affordance_gym | 051fd2b085ec81130626bb80318638b45e7aefae | e2e6eeafd4d725c5c912ac97d4d5ad1cf318af5f | refs/heads/master | 2020-06-19T19:16:04.150276 | 2019-04-08T17:40:12 | 2019-04-08T17:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import numpy as np
import os
import pickle
'''
This is used in generating a trajectory dataset.
'''
def parse_trajectory(trajectory):
trajectory = trajectory.joint_trajectory.points
time_steps_raw = np.array([motion.time_from_start.to_sec() for motion in trajectory])
positions_raw = np.stack(np.arra... | [
"aleksijonathanhamalainen@gmail.com"
] | aleksijonathanhamalainen@gmail.com |
bf827dd87006c899990aacccbb562772fcbfd3e6 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_load_balancer_frontend_ip_configurations_operations.py | be7b0ac5d709fb10ed6105bb3d5c250f99998522 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 9,049 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
abca959b9a298575138870b50ef3fb6c239191e7 | 6cb52959dbadaa610e91a6769079ff0ddee2422e | /exercices/008/solution.py | a61f843cd4dadeaafbb9e3579c749b05006babef | [] | no_license | LOUISvASS/hackinscience | 9042e4f1a204c9cfd08ebcfc8178a93fa4d4f027 | a2ec85cdf2a0851ee7e220481d17a7c44fa01b90 | refs/heads/master | 2021-01-13T15:35:11.209514 | 2016-12-19T19:23:03 | 2016-12-19T19:23:03 | 76,887,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | ! /usr/bin/python
string = "Hello World !"
for x in string:
print(x)
| [
"louis.vasselin@cri-paris.org"
] | louis.vasselin@cri-paris.org |
7aa3530f559c27d7df393c936929fb4de6ee002b | ae101d2e6d75fb21243c90a9de99bcb0738e7b06 | /keeper/views.py | 1c4ee7fd8cd952d7fc7fffaaab3a6933641d41c4 | [] | no_license | mikhail-vlasenko/Romanov_Key_Keeper | 5fbc8cde8ea3b3b760a99abf63e4c3d017a1a76a | a228195518d310929178417469a558c3c02015b8 | refs/heads/master | 2022-12-12T17:36:13.956979 | 2019-11-03T10:05:43 | 2019-11-03T10:05:43 | 168,011,927 | 0 | 0 | null | 2022-12-08T01:45:59 | 2019-01-28T18:17:16 | Python | UTF-8 | Python | false | false | 13,499 | py | from .models import *
# from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import get_object_or_404, render
from .forms import *
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from... | [
"medvedek2002@gmail.com"
] | medvedek2002@gmail.com |
1107fd771f87376fcefbb02c4824430d8b657594 | 77a432201ab9e8429de1f6f2190d8048ea6c920b | /metREx/app/main/controller/scheduler_controller.py | bb859f9d2ce6f163dca35c2746bf83a5b49c6eb1 | [
"Apache-2.0"
] | permissive | homedepot/metREx | 0f794f12e803a89992a4658de29839e791a39139 | d30f084fb0bf906372aa14b448d5d8a8fc9fe833 | refs/heads/master | 2023-04-03T02:21:26.706911 | 2023-03-29T14:45:41 | 2023-03-29T14:45:41 | 246,633,031 | 9 | 3 | Apache-2.0 | 2023-03-29T14:45:43 | 2020-03-11T17:11:48 | Python | UTF-8 | Python | false | false | 1,637 | py | from flask_restx import Resource
from flask_apscheduler import api as aps_api
from ..util.dto import SchedulerDto
api = SchedulerDto.api
@api.route('')
class Scheduler(Resource):
@api.doc('get_scheduler_info')
def get(self):
"""Gets the scheduler info."""
return aps_api.get_scheduler_info()... | [
"MICHAEL_PHILLIPSON1@homedepot.com"
] | MICHAEL_PHILLIPSON1@homedepot.com |
c5fc0a190aeb1eaa17bd948694bd6a152fcbd0d0 | 0c08f2101d6be5fc40f14d6b761fcd883b880035 | /main1.py | 34f4a017ca43eb0b0c0990e534a6e07d67a542c6 | [] | no_license | shashank0786/Notification-alert-system | 641ccc4006d3559d92cd6e1591adb1cc70ab0f95 | 11470902249c951b8354cd185372e8a0c28fa0a5 | refs/heads/master | 2023-04-22T10:05:55.164384 | 2021-05-01T18:23:00 | 2021-05-01T18:23:00 | 363,478,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from plyer import notification
import requests
from bs4 import BeautifulSoup
import time
def notifyMe(title,message):
notification.notify(
title=title,
message=message,
app_icon="G:\covid project new\images.ico",
timeout=7
)
def getData(url):
r=requests.get(url)
return r... | [
"srivastavashashank80@gmail.com"
] | srivastavashashank80@gmail.com |
ee258a87e04e9ce5067d6218cbcd67df78c5b3f8 | 395b84c81af098192defb3540c48d5983c34cc5d | /stock_util/nadex.py | 25442de5a58518fc84aaa9d3dc8011d169a0bb03 | [
"MIT"
] | permissive | mpthomas/CNN-Forex-Trader | c41a25ae94cfeed9048fae516d7c730196bc1022 | 58f11e2c2b47c8c3cf570af8165c22707969fbdb | refs/heads/master | 2022-12-08T06:17:15.677533 | 2020-09-26T19:18:08 | 2020-09-26T19:18:08 | 195,927,480 | 1 | 0 | MIT | 2022-12-08T05:51:48 | 2019-07-09T03:40:45 | Jupyter Notebook | UTF-8 | Python | false | false | 3,458 | py |
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import configparser
import time
class Nade... | [
"matthomas@gmail.com"
] | matthomas@gmail.com |
8f4e42b65ce09e4a562f2d4b298babce0fd4be3b | 2417d9f6afe95ba19354c65bfb400556f2eb2e19 | /setup.py | 2a91c65f19fbb3863f4728098116fca13710074a | [
"Apache-2.0"
] | permissive | rakeshnb/pixiedust | 39f1249a867719919441488f085e1f60519dae58 | fb5198c7564589c267147d7bdee1f798e7b361ef | refs/heads/master | 2020-05-23T08:09:42.603871 | 2016-10-07T22:08:10 | 2016-10-07T22:08:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from setuptools import setup
setup(name='pixiedust',
version='0.38',
description='Misc helpers for Spark Python Notebook',
url='https://github.com/ibm-cds-labs/pixiedust',
install_requires=['maven-artifact','mpld3'],
author='David Taieb',
author_email='david_taieb@us.ibm.com',
... | [
"david_taieb@us.ibm.com"
] | david_taieb@us.ibm.com |
f68cd316f77807458ca751c95bccb75bd365fa5b | 227038c529ce9ad5dbc3040555724afa910f2aeb | /dialogue_manager.py | aaf84f31be676faac9eb316979fb055df8554e85 | [] | no_license | EriChen0615/QAQ_chatbot | a5a78deb1049cf53d4820b9524baf682d7811f96 | ecd7cb547a6ce78b02d8f32b64c8b0472e1db750 | refs/heads/main | 2023-01-06T20:01:22.279267 | 2020-10-25T14:55:34 | 2020-10-25T14:55:34 | 306,833,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,126 | py | from dumb_nlu import Dumb_NLU
from component import Component
import pandas as pd
import numpy as np
"""
Intellegent: if one field is empty but only one candidate, can autofill
gives suggestions based on historical features
feature to be added: 1. suggestions refer to online forum
2. add top searc... | [
"wonnor-pro@gmail.com"
] | wonnor-pro@gmail.com |
56264f51c911aa35397825287da9b3ea40fae6b1 | a9ddbd4a48fbaffabcae12c1ead1ac21416c6f32 | /server.py | 51af13766bb51d9398847203797173cbf03328be | [] | no_license | Krzysztof-Wojtczak/Allegro-Task | 625790281461e5c2c90d02224a9e0fbc0b43a0da | 0d1921c0403d83c06357502fa0680df8cfcb8770 | refs/heads/master | 2020-05-17T15:48:14.304053 | 2019-12-08T19:29:15 | 2019-12-08T19:29:15 | 183,801,968 | 2 | 0 | null | 2019-07-21T16:01:04 | 2019-04-27T17:22:16 | Python | UTF-8 | Python | false | false | 2,242 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
import re
from urllib.request import urlopen
import cv2
import numpy as np
from mozaika import Mozaika
class Serv(BaseHTTPRequestHandler):
def do_GET(self):
w = 2048 # default width
h = 2048 # default height
losowo = 1 # random image placem... | [
"noreply@github.com"
] | Krzysztof-Wojtczak.noreply@github.com |
ffb4d6b50b4e12caf33c65ea3356284a98460588 | e9978cdfe6754a1f9712bdd8d20221313b4c1ea4 | /com/jefferson/test/test_operacoes.py | dcb2d61f3f176bcdd8132493b0e0f42fc981c688 | [] | no_license | jefferson-paixao/devops_ac02 | 94b93eea987418d321befbd9810ce701074307fb | 571bcfc581a9700df51922544a859673149c7767 | refs/heads/master | 2021-05-22T00:01:23.574384 | 2020-04-04T02:52:38 | 2020-04-04T02:52:38 | 252,871,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from unittest import TestCase
from com.jefferson.operacoes import Operacoes
class TestOperacoes(TestCase):
def setUp(self):
self.operacoes = Operacoes()
def test_multiplicacao(self):
self.assertEqual(self.operacoes.multiplicacao(5,5),25,"Deveria ser 25!")
| [
"jefferson.paixao@aluno.faculdadeimpacta.com.br"
] | jefferson.paixao@aluno.faculdadeimpacta.com.br |
e5f98ccd8f816d3621fa6a5b9fd0132e0965826b | 30a89ae47ca79e4ced151908f4059cd77ade30ef | /order/forms.py | 0c700dce796932a329f19a1102f5113624a6fcd8 | [] | no_license | harshit8858/mindful_project1_salesapp | 0bd80c40b2349fe08744dcd0625283c5b6ba4029 | 66f7c7af868518898aa6422d1b17ca9f7cf433ef | refs/heads/master | 2020-03-24T00:02:49.972583 | 2018-08-18T07:56:49 | 2018-08-18T07:56:49 | 142,269,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from django import forms
from .models import *
class OrderForm(forms.ModelForm):
class Meta:
model = Order
fields = [
'customer',
'remark',
'product',
'quantity',
'price',
'discount',
'tax',
'total',
... | [
"harshit8858@gmail.com"
] | harshit8858@gmail.com |
a233dcc9c0864f3ff92942cdb4396157abb00221 | 436c40d8965274a32e48b0d92553efa14177db25 | /intrusion-v2/src/estimator.py | 33cf6c907625831eba850165f30ed96a0a08e78f | [
"Apache-2.0"
] | permissive | anuj-kh-quantela/end-to-end | daa1fad9beb96b2eb664ca38e9762a223b3ca1d7 | b00009b80f680c3d1f79f56eee9cdb949963dfb2 | refs/heads/master | 2020-03-25T12:06:50.716637 | 2018-08-06T17:41:48 | 2018-08-06T17:41:48 | 143,760,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,476 | py | import itertools
import logging
import math
from collections import namedtuple
import cv2
import numpy as np
import tensorflow as tf
from scipy.ndimage import maximum_filter, gaussian_filter
import common
from common import CocoPairsNetwork, CocoPairs, CocoPart
logger = logging.getLogger('TfPoseEstimator')
logger.se... | [
"anuj.khandelwal@quantela.com"
] | anuj.khandelwal@quantela.com |
510b99d849b64f9db7ba0753063b53024e27520a | 1a8dea7c14d807413d4e2ab38e72df78138778b3 | /ao3_downloader/gui.py | 595d76ec0b312eb77bd718e94293da55ab8da021 | [] | no_license | ivywong/ao3-downloader | aa95f605b4c3a5bac5fbfe66bdc610108b201dac | 46981482103d146818094393946ed5a3f64ad6cb | refs/heads/master | 2022-04-08T03:42:40.906296 | 2020-02-27T10:20:01 | 2020-02-27T10:20:01 | 217,447,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | import PySimpleGUI as sg
import pathlib
import sys
from multiprocessing import Process
import downloader
# hacky debug window for showing progress
print = sg.Print
downloader.print = sg.Print
class Gui():
def __init__(self):
sg.theme('SystemDefault') # Add a touch of color
user_home = str(pat... | [
"ivy.wong022@gmail.com"
] | ivy.wong022@gmail.com |
b169441fb11c3aeb41ab3908e6be615f9254a595 | 14a5610f114b87485233b90f393f73ab377e0edb | /cart/.~c9_invoke_MERYI.py | f4af78caec2edbcd912fb47fafcbd685e9f6c2be | [] | no_license | Code-Institute-Submissions/ves-weather-app-1 | 8a15eb3fa2d54fdc371a971b66b03d942e322b01 | 77ae1eca6b7c9d0da8a8881bd66f3bb94815e686 | refs/heads/master | 2022-11-10T20:59:53.377370 | 2020-07-01T23:55:34 | 2020-07-01T23:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.shortcuts import render
from .models import Cart
def cart_home(request):
cart_obj, new_obj = Cart.objects.new_or_get(request)
products = cart_obj.products.all()
return render(request, "cart/cart.html", {}) | [
"ubuntu@ip-172-31-83-24.ec2.internal"
] | ubuntu@ip-172-31-83-24.ec2.internal |
80304d1407e829f6971a6388dcbebcba61816075 | 4664e47fda25736687d8ab958356fcaa9447f139 | /techa/momentum.py | c985d822a368d45b9aee6284233b2a356462d6b3 | [
"Unlicense"
] | permissive | kkc-krish/techa | eb67d0ecf41ca3020d4a91676b852a827a6513ba | 518f90805b0728466836993b88e820bc8b0405b1 | refs/heads/master | 2020-12-13T18:17:53.692915 | 2019-08-23T04:14:26 | 2019-08-23T04:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,981 | py | # -*- coding: utf-8 -*-
"""
Momentum Indicators
"""
import pandas as pd
from finta import TA
from talib.abstract import Function
from overlap import MA
from volatility import ATR
__all__ = ['ADX', 'ADXR', 'APO', 'AROON', 'AROONOSC', 'ATR', 'BASP', 'BASPN', 'BOP', 'CCI', 'CFI', 'CMO', 'COPP', 'DX',
'EBBP', ... | [
"danielumpierrezdelrio@gmail.com"
] | danielumpierrezdelrio@gmail.com |
9e970d6b5a4196876c2d30a1e3a820a778e6aabc | 4fe0d37eb4810d3aa5fca50a60bd8f57c2558673 | /build/ros_arduino_bridge/ros_arduino_python/catkin_generated/pkg.develspace.context.pc.py | cfcd6131b4b1dad06511bc5b36495eba4e78533a | [] | no_license | jim1949/gpsbot_ws | f0aa961472d65633f1d385426e6e0fd489a8e104 | 0dfa36223620ae226f6a40735179b6cae265693d | refs/heads/master | 2021-05-07T05:55:08.584882 | 2017-11-22T08:45:06 | 2017-11-22T08:45:06 | 103,118,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ros_arduino_python"
PROJECT_SPACE_DIR... | [
"jim1949@163.com"
] | jim1949@163.com |
aea5124f9f2718dae828e8f08e419c0c88fa27e0 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Analyst with Python - Career Track/01. Introduction to Data Science in Python/04. Different Types of Plots/05. Modifying histograms.py | 1ce32da1b97d613df25adfdb3b264ed5dbd7b8c8 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | '''
Modifying histograms
Let's explore how changes to keyword parameters in a histogram can change the output. Recall that:
range sets the minimum and maximum datapoints that we will include in our histogram.
bins sets the number of points in our histogram.
We'll be exploring the weights of various puppies from the Da... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
857a4621182c97e535493ea4340e8ca458dd3fdf | 39ce19349f32f62cdd87cbc86b89dee0fe145b90 | /namespace/graph/comp_printer.py | 06da72fc07b68d2427149d52832bbd133eaf683c | [
"MIT"
] | permissive | justjazz903/TFTCompEnumerator | cb01e5430061fb2b56447ccbda8af3c132cadf5b | a94d257c9fe4b670bcc17dc646c67ae9c113f32d | refs/heads/main | 2023-09-01T02:15:42.885804 | 2021-10-22T02:47:59 | 2021-10-22T02:47:59 | 401,531,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | import json
import numpy as np
from namespace.graph.coder import bit_code_to_comp_id
from constant import CONSTANT
def get_comp_matrix(comp_id, champion_matrix, trait_matrix):
cost = champion_matrix[comp_id][:,-1]
comp_trait = np.sum(champion_matrix[comp_id], axis=0)[:-1]
comp_trait = comp_trait * trait_m... | [
"31698772+justjazz903@users.noreply.github.com"
] | 31698772+justjazz903@users.noreply.github.com |
4642e5f6dd8a3f91769fb2903013e098207ac562 | 5a22ff4bf71dde6ade4ddbe9d688c8a6370baa80 | /src/_ctype_c.py | d588b7f46643038cab0bcac448761ae8c32ffa3f | [] | no_license | sorenmulli/pyspeed | 58ac7cb141954c1f8823ebef2089718a3d314117 | 1a51615713e32a2f5aac28fc1dc7b84ec93a4e96 | refs/heads/master | 2022-12-31T22:19:18.822724 | 2020-10-24T17:17:39 | 2020-10-24T19:07:13 | 288,703,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import sys, os
from ctypes import CDLL, c_double
so_file = os.path.join( os.path.dirname( sys.argv[0] ), 'src', 'c_src', 'lib.so' )
c_lib = CDLL(so_file)
rootloop = c_lib.rootloop
rootloop.restype = c_double
| [
"swholm@protonmail.com"
] | swholm@protonmail.com |
823ffb55f2f8f86439af50c36e239d023bb8afd2 | e7196fd6e0fc1cab8ffc0417fca30947f673f774 | /Remember/config.py | 3c27d0a99411da95ef55720640a4ede50b3465de | [
"Apache-2.0"
] | permissive | maxis1314/pyutils | 6298dc054bd9585e33179755b10e7723713ee053 | 7e0666c650209155b3da186d09c54cf14825df1e | refs/heads/master | 2020-12-23T20:30:09.406487 | 2017-07-06T10:11:36 | 2017-07-06T10:11:36 | 92,569,049 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | '''
this is the config file of Remember
'''
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
DB_BASE_DIR = os.path.join(BASE_DIR, "db")
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(DB_BASE_DIR, "app.db")
SQLALCHEMY_MIGRATE_REPO = os.path.join(DB_BASE_DIR, "db_repository")
| [
"maxis1314@163.com"
] | maxis1314@163.com |
bc46d8ec26ee147ba88221d428f5a54885ec59e4 | e061ab21018ac80573d03ef0c3cba8f448c4b7cc | /backend/alembic/versions/2023_01_05_1144-d4161e384f83_added_messagetreestate_table.py | 778808cac77d094c4b4896e12badab8b30fb55dd | [
"Apache-2.0"
] | permissive | LAION-AI/Open-Assistant | 8b82c24fac954da421d66c3e90fbae6776ae6280 | 8c0e1a31bea1542dd39716b1dbbecd46785d9d23 | refs/heads/main | 2023-08-25T23:33:38.114219 | 2023-08-22T21:04:33 | 2023-08-22T21:04:33 | 577,603,990 | 34,014 | 3,206 | Apache-2.0 | 2023-09-11T19:13:48 | 2022-12-13T05:24:17 | Python | UTF-8 | Python | false | false | 1,899 | py | """added MessageTreeState table
Revision ID: d4161e384f83
Revises: 8d269bc4fdbd
Create Date: 2023-01-05 11:44:02.630633
"""
import sqlalchemy as sa
import sqlmodel
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "d4161e384f83"
down_revision = "8d2... | [
"noreply@github.com"
] | LAION-AI.noreply@github.com |
84000dc843dc3b9bda62c43a3739cf9e263d6ba1 | ecf2fa7f946b631d61c4ae88499976f1749e8b20 | /P3B2/lstm_text_synthsis.py | 14f673a21753cce27ba6b41c1cf2484ed59e780d | [
"MIT"
] | permissive | tianxiangchen2015/Benchmarks | 92cae3059f29ac5860332ccef7d658d0270f98be | 93359c5e33aed01fb0bc089198c1b194a452e0c8 | refs/heads/master | 2021-01-19T01:50:56.284600 | 2017-03-30T19:37:46 | 2017-03-30T19:37:46 | 84,397,274 | 0 | 0 | null | 2017-03-09T04:13:28 | 2017-03-09T04:13:28 | null | UTF-8 | Python | false | false | 4,115 | py | import keras
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout
from keras.layers import LSTM
from keras.optimizers import RMSprop
import numpy as np
import os
import datetime
import cPickle
class LossHistory( keras.callbacks.Callback ):
def on_train_begin( self, logs= {} ):... | [
"rarvind@arvind2.ornl.gov"
] | rarvind@arvind2.ornl.gov |
5b9ce34590b5d06b5110ae260649e03585017ebf | 7189f6cdbdf2fe9a374c7aeb59034043edfbca08 | /pythonProjects/fileMoverGUI2.0/fileMoverGui.py | 689cc4073b2b37614225311f2bcc979f8b9ca5ed | [] | no_license | tayharrison/AcademyProjects | 072d42c9b5225c307decdc88e6ff99b619c186b8 | 22c1d3553384e2acba409d76d369f32f85f78fae | refs/heads/master | 2020-06-24T23:16:13.908263 | 2017-10-24T20:05:40 | 2017-10-24T20:05:40 | 96,948,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | # File Mover GUI
# Taylor Harrison
# Python 3.6
from tkinter import *
from tkinter import messagebox
import tkinter as ttk
from datetime import *
from datetime import timedelta
import shutil
import os
import fileMoverGuiMain
import fileMoverGuifunc
def load_gui(self):
# Create and place t... | [
"noreply@github.com"
] | tayharrison.noreply@github.com |
5e3ba54958a37cce2e223b5d076283b9591fe10e | c4551a6266e2a92fad6964f5764ebd849a4e3f4d | /runPboc_online.py | 0f9ddf609c677851c44167065f2fc702dddf1b63 | [] | no_license | xueyizhiyong-UUU/featureEngineerOnline | eaedf1557019053c4041130a81704b18a06922a1 | 1eb61e911a623910021fc4e71f110e0abab658db | refs/heads/master | 2023-08-17T22:09:52.277120 | 2021-10-27T03:38:04 | 2021-10-27T03:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389,035 | py | # coding:utf-8
import pboc_features
from model_handle import *
import features_func
import bh_data
from new_bhData import *
from main_score import *
import datetime
from dateutil.relativedelta import relativedelta
from pandas import json_normalize
from handle_third import *
from joblib import Parallel, delayed, load, ... | [
"youzhengjie@qnvip.com"
] | youzhengjie@qnvip.com |
86df1e55a9124a5ef39b58a13013e3833bb34158 | a4575a8628de6cf49fd2a8901d7f75e65fedbecf | /setup.py | 3ce490f30cdf003ac59b8194d4031d4431757d8c | [
"MIT"
] | permissive | Skorii/Henallux-Project-2019 | 6a3228797cd33e32aa81091b87599315dc88e2e1 | 1376f4f143963b3309f545f7f80e8ded32fa21f4 | refs/heads/master | 2022-12-23T04:15:49.632171 | 2020-09-24T18:05:33 | 2020-09-24T18:05:33 | 229,773,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from setuptools import setup
def readme():
with open('README.md') as f:
README = f.read()
return README
setup(
name='master-slave',
version='1.0.0',
description='package to communicate with infected devices trought a local network',
long_description=readme(),
long_d... | [
"noreply@github.com"
] | Skorii.noreply@github.com |
cc2f87dd75c15312568839c8506425e329400ef6 | 7815090f077e0c83e13a41b15aab324d0d6e89fa | /python_example_1/download_file.py | 3ea5ac4495d7088db3272a2504e6c8157a9482d9 | [
"BSD-3-Clause"
] | permissive | namolo2017/hackZEISS | 61e525bcaa3de469a5f0e86649691524c61bd526 | fdb2c7342fbe0adf9b137f90bf54e8899b1924fb | refs/heads/master | 2021-01-11T18:08:19.065875 | 2017-01-19T23:35:48 | 2017-01-19T23:35:48 | 79,501,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/python3
import boto3
s3 = boto3.resource('s3')
# Print out bucket names
for bucket in s3.buckets.all():
print(bucket.name)
# download a file
s3_client = boto3.client('s3')
s3_client.download_file('z0001-bucket', 't_0002.png', 't_0002.png')
| [
"oliver@momo.Speedport_W_724V_Typ_A_05011603_00_009"
] | oliver@momo.Speedport_W_724V_Typ_A_05011603_00_009 |
0f57847960a06f7e8f4b1adc58374dbc48ad303d | 29976a5db2873bf084137ca5dc0920efe0b5a1f2 | /lora/__init__.py | 32c547656e83fa88e0ef64782f40460e6e997670 | [
"MIT"
] | permissive | jieter/python-lora | 874540b3c68588022afaae8a1b0954e0c82b28cc | 5452c5aad29247d1bb0c1c57b409c976592a4190 | refs/heads/master | 2023-02-21T13:09:57.342877 | 2022-10-27T20:15:24 | 2022-10-27T20:15:24 | 53,316,778 | 67 | 24 | MIT | 2023-02-08T00:43:15 | 2016-03-07T10:27:45 | Python | UTF-8 | Python | false | false | 18 | py | VERSION = "1.1.9"
| [
"noreply@github.com"
] | jieter.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.