hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4b2b65f20de9c3b980e6d6e57bd05701477f757 | 1,142 | py | Python | nlpproject/main/Node.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | nlpproject/main/Node.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | nlpproject/main/Node.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | from .words import *
linked_list_data = {}
for word in unique_words_all:
linked_list_data[word] = SlinkedList()
linked_list_data[word].head = Node(1,Node)
word_freq_in_doc = {}
idx = 1
for file in glob.glob(file_folder):
file = open(file, "r")
text = file.read()
text = remove_special_characters(tex... | 31.722222 | 63 | 0.665499 |
f4b2fdd280ccde354efc42b0cbc21ae404482ade | 2,201 | py | Python | _open_source/examples/state_space_explain.py | daviddewhurst/daviddewhurst.github.io | d782bc7e8f9c821705fc83c7705006f40e29f360 | [
"CC0-1.0"
] | null | null | null | _open_source/examples/state_space_explain.py | daviddewhurst/daviddewhurst.github.io | d782bc7e8f9c821705fc83c7705006f40e29f360 | [
"CC0-1.0"
] | null | null | null | _open_source/examples/state_space_explain.py | daviddewhurst/daviddewhurst.github.io | d782bc7e8f9c821705fc83c7705006f40e29f360 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
import pathlib
import matplotlib.pyplot as plt
import torch
import pyro
from state_space import state_space_model
SEED = 123
torch.manual_seed(SEED)
pyro.set_rng_seed(SEED)
if __name__ == "__main__":
main()
| 27.5125 | 87 | 0.663789 |
f4b40d349ff11c549cfc166ba441afac71e1529b | 11,554 | py | Python | modred/tests/testera.py | shubhamKGIT/modred | 6c585084a76a975c47b0eaa3e408ccdb8abd76e3 | [
"BSD-2-Clause"
] | null | null | null | modred/tests/testera.py | shubhamKGIT/modred | 6c585084a76a975c47b0eaa3e408ccdb8abd76e3 | [
"BSD-2-Clause"
] | null | null | null | modred/tests/testera.py | shubhamKGIT/modred | 6c585084a76a975c47b0eaa3e408ccdb8abd76e3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""Test era module"""
import unittest
import os
from os.path import join
from shutil import rmtree
import numpy as np
from modred import era, parallel, util
from modred.py2to3 import range
def make_time_steps(num_steps, interval):
"""Helper function to find array of integer time steps.
... | 44.610039 | 80 | 0.481305 |
f4b531bd4f8e27016a07006efb457088789ed103 | 368 | py | Python | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# import additional code to complete our task
import shutil
import os
# move into the working directory
os.chdir("/home/student/mycode/")
# copy the fileA to fileB
shutil.copy("5g_research/sdn_network.txt", "5g_research/sdn_network.txt.copy")
# copy the entire directoryA to directoryB
shutil.... | 24.533333 | 78 | 0.774457 |
f4b74cdb7ebe0043071f600b703680593e743888 | 3,020 | py | Python | Scripts-python/addRulesIptables.py | Brotic66/Script-Python | fd9094efabacc38d4aec46d43cae20f83791d83b | [
"CNRI-Python"
] | null | null | null | Scripts-python/addRulesIptables.py | Brotic66/Script-Python | fd9094efabacc38d4aec46d43cae20f83791d83b | [
"CNRI-Python"
] | null | null | null | Scripts-python/addRulesIptables.py | Brotic66/Script-Python | fd9094efabacc38d4aec46d43cae20f83791d83b | [
"CNRI-Python"
] | null | null | null | # coding=utf-8
'''
Ce fichier contient un script permettant de lier une application web en, PHP 5.6 avec Symfony et doctrine, avec l'administration d'un serveur et nottament de son pare-feu (iptables)
Permet d'ouvrir des ports pour des adresses IPs rcuprer en base de donnes et ajout via l'application web.
'''
__author... | 32.826087 | 181 | 0.648344 |
f4b8a8b015a6aaabe3f827c4ba3d679bcb91d751 | 2,277 | py | Python | src/vardb/deposit/annotation_config.py | Dabble-of-DevOps-Bio/ella | e38631d302611a143c9baaa684bcbd014d9734e4 | [
"MIT"
] | null | null | null | src/vardb/deposit/annotation_config.py | Dabble-of-DevOps-Bio/ella | e38631d302611a143c9baaa684bcbd014d9734e4 | [
"MIT"
] | null | null | null | src/vardb/deposit/annotation_config.py | Dabble-of-DevOps-Bio/ella | e38631d302611a143c9baaa684bcbd014d9734e4 | [
"MIT"
] | null | null | null | from typing import Any, List, Mapping, Sequence
import jsonschema
from dataclasses import dataclass, field
from sqlalchemy.orm import scoped_session
from vardb.datamodel.jsonschemas.load_schema import load_schema
from vardb.datamodel import annotation
def deposit_annotationconfig(
session: scoped_session, anno... | 33.485294 | 105 | 0.724199 |
f4b8b68f4b6ed74ffd5cdd6c3f4a46584a38442e | 1,266 | py | Python | yolov5/temp.py | shuyansy/A-detection-and-recognition-pipeline-of-complex-meters-in-wild | 15bc2b97078d3216cfd075ccba1cf2d2e42af54f | [
"MIT"
] | 17 | 2022-03-20T05:41:51.000Z | 2022-03-25T04:53:17.000Z | yolov5/temp.py | shuyansy/A-detection-and-recognition-pipeline-of-complex-meters-in-wild | 15bc2b97078d3216cfd075ccba1cf2d2e42af54f | [
"MIT"
] | null | null | null | yolov5/temp.py | shuyansy/A-detection-and-recognition-pipeline-of-complex-meters-in-wild | 15bc2b97078d3216cfd075ccba1cf2d2e42af54f | [
"MIT"
] | 1 | 2022-03-23T03:06:51.000Z | 2022-03-23T03:06:51.000Z | import os
import cv2
import numpy as np
from utils.augmentations import Albumentations, augment_hsv, copy_paste, letterbox
from models.common import DetectMultiBackend
from utils.datasets import IMG_FORMATS, VID_FORMATS, LoadImages, LoadStreams
from utils.general import (LOGGER, check_file, check_img_size, check_imshow... | 36.171429 | 117 | 0.751185 |
f4babdf08efb27d0c5a43cf914340fd4c9566f63 | 884 | py | Python | Devashish/PythonScriptExecution/PythonScriptExecution/PyScript.py | ishmeet1995/AutomationHour | a7aeb343974d080e98a7eca09d547cda59a4abd5 | [
"MIT"
] | null | null | null | Devashish/PythonScriptExecution/PythonScriptExecution/PyScript.py | ishmeet1995/AutomationHour | a7aeb343974d080e98a7eca09d547cda59a4abd5 | [
"MIT"
] | null | null | null | Devashish/PythonScriptExecution/PythonScriptExecution/PyScript.py | ishmeet1995/AutomationHour | a7aeb343974d080e98a7eca09d547cda59a4abd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
if __name__=='__main__':
print(get_age("Ram"))
print(get_all_above_age(25))
print(get_2_values("Ram"))
| 22.1 | 82 | 0.578054 |
f4bd8e380a3348632ea15635269d008f2995dbbf | 8,638 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | AaronLPS/CarND-Capstone | 5d5cc347b5d875c71b8f034eb5718ecdab7d46ee | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | AaronLPS/CarND-Capstone | 5d5cc347b5d875c71b8f034eb5718ecdab7d46ee | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | AaronLPS/CarND-Capstone | 5d5cc347b5d875c71b8f034eb5718ecdab7d46ee | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import cv2
import os
import rospy
from timeit import default_timer as timer
from styx_msgs.msg import TrafficLight
CLASS_TRAFFIC_LIGHT = 10
MODEL_DIR = 'light_classification/models/'
IMG_DIR = 'light_classification/img/'
DEBUG_DIR = 'light_classification/result/'
| 40.938389 | 129 | 0.606275 |
f4bdc5828e958cecb388cd84228d0eef206f8bdc | 3,540 | py | Python | src/lib/training/scene_sampler.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 44 | 2020-12-09T06:15:15.000Z | 2022-03-31T02:37:47.000Z | src/lib/training/scene_sampler.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | null | null | null | src/lib/training/scene_sampler.py | pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution | 0bc51075db31a747eeebb7f4775a3cd26ad5f870 | [
"MIT"
] | 7 | 2020-12-09T10:08:32.000Z | 2021-08-17T01:53:51.000Z | import math
import torch
from torch.utils.data import Sampler
import torch.distributed as dist
import numpy as np
| 34.368932 | 96 | 0.646045 |
f4be1ae12ce6a24db3379525a913d9920ff8ef2d | 1,680 | py | Python | aiovault/client.py | johnnoone/aiovault | 03e1bfb6f0404dcf97ce87a98c539027c4e78a37 | [
"BSD-3-Clause"
] | 1 | 2022-01-31T22:37:57.000Z | 2022-01-31T22:37:57.000Z | aiovault/client.py | johnnoone/aiovault | 03e1bfb6f0404dcf97ce87a98c539027c4e78a37 | [
"BSD-3-Clause"
] | null | null | null | aiovault/client.py | johnnoone/aiovault | 03e1bfb6f0404dcf97ce87a98c539027c4e78a37 | [
"BSD-3-Clause"
] | null | null | null | from . import v1
from .request import Request
from .util import task, extract_id
| 25.846154 | 70 | 0.621429 |
f4bec0b744cca8c20ff1afc50477b19675f4e48d | 2,559 | py | Python | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | 3 | 2016-01-24T06:22:10.000Z | 2016-06-15T00:16:56.000Z | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | null | null | null | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | null | null | null | import json,sys,re,math
from random import random
import numpy as np
from pprint import pprint
from sklearn import svm
from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import CountVectorizer,TfidfTransformer
from sklearn.feature_extraction import DictVectorizer
from sklearn.naive_bayes import... | 34.12 | 96 | 0.718249 |
f4bf1220f5c2ae8aefe49cfbdd4d189a426ccba9 | 121 | py | Python | wsgi.py | pointerish/Brevis | 0cf32b964ad151456bd73ed510ebe41cbbbfbdb7 | [
"MIT"
] | 3 | 2020-10-28T23:16:33.000Z | 2021-10-10T03:53:57.000Z | wsgi.py | pointerish/Brevis | 0cf32b964ad151456bd73ed510ebe41cbbbfbdb7 | [
"MIT"
] | null | null | null | wsgi.py | pointerish/Brevis | 0cf32b964ad151456bd73ed510ebe41cbbbfbdb7 | [
"MIT"
] | null | null | null | from api import app
if __name__ == '__main__':
with open('urls.json', 'w') as fj:
fj.write('')
app.run() | 20.166667 | 38 | 0.561983 |
f4c0503cca138822ab25ce843524463359b2e111 | 932 | py | Python | CustomerReviewSummarizer/main.py | shashwatsagar/ReviewSummarizer | 6ed36140f30c555794a3f41e70c1c1946beae762 | [
"Apache-2.0"
] | null | null | null | CustomerReviewSummarizer/main.py | shashwatsagar/ReviewSummarizer | 6ed36140f30c555794a3f41e70c1c1946beae762 | [
"Apache-2.0"
] | null | null | null | CustomerReviewSummarizer/main.py | shashwatsagar/ReviewSummarizer | 6ed36140f30c555794a3f41e70c1c1946beae762 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Shashank Sapaliga, Shashwat Sagar, Ishpreet Kaur, Dhwani Shah
"""
from Processor.Processor import Processor
from WebScrapper.Scrapper import Scrapper
import json
import os
print("The Data is being scrapped please wait!!!!!!!!!!")
start=0
flag = 1
scrap = Scrapper()
... | 23.3 | 71 | 0.707082 |
f4c05a42ec953c452d55a44c9ab74a2e629db782 | 259 | py | Python | Python 2/code/json1.py | gabrielwolf/5-python-kurse | cabc2b6706f6f384963c026749fd39eb042736c6 | [
"MIT"
] | null | null | null | Python 2/code/json1.py | gabrielwolf/5-python-kurse | cabc2b6706f6f384963c026749fd39eb042736c6 | [
"MIT"
] | null | null | null | Python 2/code/json1.py | gabrielwolf/5-python-kurse | cabc2b6706f6f384963c026749fd39eb042736c6 | [
"MIT"
] | null | null | null | import json
data = '''
{
"name" : "Chuck",
"phone" : {
"type" : "intl",
"number" : "+1 734 303 4456"
},
"email" : {
"hide" : "yes"
}
}'''
info = json.loads(data)
print 'Phone:',info["phone"]
print 'Number:',info["phone"]["number"]
| 14.388889 | 39 | 0.490347 |
f4c06ea3329c774be01f9918ed296584dc1358f6 | 2,384 | py | Python | samples/python/minimal_service/minimal_service_client.py | OrhanKupusoglu/ecal | 3f8d24929bfae18b0399497858c30199be96ec57 | [
"Apache-2.0"
] | null | null | null | samples/python/minimal_service/minimal_service_client.py | OrhanKupusoglu/ecal | 3f8d24929bfae18b0399497858c30199be96ec57 | [
"Apache-2.0"
] | null | null | null | samples/python/minimal_service/minimal_service_client.py | OrhanKupusoglu/ecal | 3f8d24929bfae18b0399497858c30199be96ec57 | [
"Apache-2.0"
] | null | null | null | # ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
#
# 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... | 32.657534 | 115 | 0.665268 |
f4c080828534b9de9bdd23a9d40729bc926da372 | 5,022 | py | Python | model.py | yz540/Behavioral_Cloning | ef3c60766f6235256af99f455cd4502d21c47c28 | [
"MIT"
] | null | null | null | model.py | yz540/Behavioral_Cloning | ef3c60766f6235256af99f455cd4502d21c47c28 | [
"MIT"
] | null | null | null | model.py | yz540/Behavioral_Cloning | ef3c60766f6235256af99f455cd4502d21c47c28 | [
"MIT"
] | null | null | null | import csv
import cv2
import numpy as np
from scipy import ndimage
# Setup Keras
from keras.models import Sequential, Model
from keras.layers import Flatten, Dense, Lambda, Dropout
from keras.layers.convolutional import Conv2D
from keras.layers.pooling import MaxPooling2D
from keras.layers import Cropping2D
from sklear... | 44.052632 | 180 | 0.69096 |
f4c2cb83bfca6f4e55c555206abdc246480c784b | 3,414 | py | Python | vsphere_network_plugin/tests/ippool_test.py | Vladimir-Antonovich/cloudify-vsphere-plugin | 25299fd2908f8f7411fb66a1115244ceaeae2e87 | [
"Apache-2.0"
] | 10 | 2016-10-26T19:48:17.000Z | 2022-03-23T12:13:30.000Z | vsphere_network_plugin/tests/ippool_test.py | Vladimir-Antonovich/cloudify-vsphere-plugin | 25299fd2908f8f7411fb66a1115244ceaeae2e87 | [
"Apache-2.0"
] | 26 | 2016-08-29T16:01:43.000Z | 2021-04-30T07:31:52.000Z | vsphere_network_plugin/tests/ippool_test.py | Vladimir-Antonovich/cloudify-vsphere-plugin | 25299fd2908f8f7411fb66a1115244ceaeae2e87 | [
"Apache-2.0"
] | 16 | 2016-08-11T14:19:43.000Z | 2021-06-15T12:23:27.000Z | # Copyright (c) 2014-2020 Cloudify Platform Ltd. 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 b... | 34.836735 | 75 | 0.620094 |
f4c3eeb99cd13bf33d9ab5ff221738ac9379ca5d | 370 | py | Python | common/migrations/0002_auto_20180722_1316.py | Red-Teapot/bbyaworld.com-django | 6eb8febd2cfa304a062ac924240cbdf060499cfc | [
"MIT"
] | 1 | 2020-01-11T18:04:15.000Z | 2020-01-11T18:04:15.000Z | common/migrations/0002_auto_20180722_1316.py | Red-Teapot/bbyaworld.com-django | 6eb8febd2cfa304a062ac924240cbdf060499cfc | [
"MIT"
] | 2 | 2018-08-24T08:53:27.000Z | 2019-07-05T16:08:28.000Z | common/migrations/0002_auto_20180722_1316.py | Red-Teapot/bbyaworld.com-django | 6eb8febd2cfa304a062ac924240cbdf060499cfc | [
"MIT"
] | 1 | 2018-11-22T16:19:52.000Z | 2018-11-22T16:19:52.000Z | # Generated by Django 2.0.7 on 2018-07-22 10:16
from django.db import migrations, models
| 19.473684 | 47 | 0.583784 |
f4c5360b157971c47ab67890d1de372c50e60d6a | 282 | py | Python | MTS/__init__.py | ohhorob/pyMTS | e7553b96e72ac6d4f91657bdb7c632aeeaba3c9b | [
"Apache-2.0"
] | 1 | 2021-04-28T12:23:42.000Z | 2021-04-28T12:23:42.000Z | MTS/__init__.py | ohhorob/pyMTS | e7553b96e72ac6d4f91657bdb7c632aeeaba3c9b | [
"Apache-2.0"
] | null | null | null | MTS/__init__.py | ohhorob/pyMTS | e7553b96e72ac6d4f91657bdb7c632aeeaba3c9b | [
"Apache-2.0"
] | null | null | null | # MTS Log protocol -- http://www.innovatemotorsports.com/support/downloads/Seriallog-2.pdf
# Serial: 8-N-1-19.2 kbit/sec
# Packet periodicity: 81.92 milliseconds (12.2 hertz) (8 MHz / 655360)
# Sample resolution: 10 bits (0..5V at 0.1% resolution)
import Header
from word import *
| 35.25 | 90 | 0.734043 |
f4c6a6f5ec87a73f6a0b0260e13c8a0bf8dbe17d | 6,688 | py | Python | savecode/threeyears/idownclient/clientdbmanager/dbsqlite/tbdata.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2019-05-19T11:54:26.000Z | 2019-05-19T12:03:49.000Z | savecode/threeyears/idownclient/clientdbmanager/dbsqlite/tbdata.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 1 | 2020-11-27T07:55:15.000Z | 2020-11-27T07:55:15.000Z | savecode/threeyears/idownclient/clientdbmanager/dbsqlite/tbdata.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2019-01-17T15:01:28.000Z | 2019-09-20T09:32:17.000Z | """
data
create by judy
2019/02/20
data
update by judy 2019/03/22
uniqueid
accountuniqueid
update by judy 2019/03/27
"""
from datacontract.outputdata import EStandardDataType
import traceback
from commonbaby.helpers import helper_time
from commonbaby.sql import (SqliteColumn, SqliteConn, SqliteTable,
... | 33.108911 | 89 | 0.495963 |
f4c6b6cc0643ccdb4de80f086a1cffd76a93cea5 | 4,461 | py | Python | resorganizer/task.py | anton-pershin/research-organizer | ce92ab65a28b54d78d966291cafd42efb2e62090 | [
"MIT"
] | null | null | null | resorganizer/task.py | anton-pershin/research-organizer | ce92ab65a28b54d78d966291cafd42efb2e62090 | [
"MIT"
] | null | null | null | resorganizer/task.py | anton-pershin/research-organizer | ce92ab65a28b54d78d966291cafd42efb2e62090 | [
"MIT"
] | null | null | null | from resorganizer.aux import * | 49.566667 | 145 | 0.679892 |
f4c827b88627c2e4404e7cb9829cbdc85d36c383 | 931 | py | Python | orbit/coe2mee.py | lasr/orbit | 19c1a4d0554c7c14784a2f0dfe2ab38520e7e26a | [
"MIT"
] | null | null | null | orbit/coe2mee.py | lasr/orbit | 19c1a4d0554c7c14784a2f0dfe2ab38520e7e26a | [
"MIT"
] | null | null | null | orbit/coe2mee.py | lasr/orbit | 19c1a4d0554c7c14784a2f0dfe2ab38520e7e26a | [
"MIT"
] | 1 | 2019-03-12T04:04:53.000Z | 2019-03-12T04:04:53.000Z | """Created on Sat Oct 01 2015 16:24.
@author: Nathan Budd
"""
import numpy as np
def coe2mee(COE, mu=1.):
"""
Convert classical orbital elements to modified equinoctial elements.
Parameters
----------
COE : ndarray
mx6 array of elements ordered as [p e i W w nu].
mu : float
S... | 21.159091 | 72 | 0.542427 |
f4c845969dcb245e178d58873d955a0721ef9c69 | 2,602 | py | Python | contrib/bulk_operations/metadata.py | tzhaoredhat/automation | a1867dc2d3591fdae1fa7f80d457c25f9705070e | [
"MIT"
] | 18 | 2015-12-15T17:56:18.000Z | 2021-04-10T13:49:48.000Z | contrib/bulk_operations/metadata.py | tzhaoredhat/automation | a1867dc2d3591fdae1fa7f80d457c25f9705070e | [
"MIT"
] | 303 | 2015-11-18T07:37:06.000Z | 2021-05-26T12:34:01.000Z | contrib/bulk_operations/metadata.py | tzhaoredhat/automation | a1867dc2d3591fdae1fa7f80d457c25f9705070e | [
"MIT"
] | 27 | 2015-11-19T20:33:54.000Z | 2021-03-25T08:15:28.000Z | #
# Copyright (c) 2015 Red Hat
# Licensed under The MIT License (MIT)
# http://opensource.org/licenses/MIT
#
"""
Use the provided metadata generator if you wish to support OPTIONS requests on
list url of resources that support bulk operations. The only difference from
the generator provided by REST Framework is that it... | 37.710145 | 81 | 0.645273 |
f4c98af364b66028736488dbda6874b1d12ba9a4 | 83 | py | Python | str/regex_example.py | gitdummyac/Python | 5bd4acaaa707877822bef5d2b2c0a6f62b19ad8a | [
"MIT"
] | null | null | null | str/regex_example.py | gitdummyac/Python | 5bd4acaaa707877822bef5d2b2c0a6f62b19ad8a | [
"MIT"
] | null | null | null | str/regex_example.py | gitdummyac/Python | 5bd4acaaa707877822bef5d2b2c0a6f62b19ad8a | [
"MIT"
] | null | null | null | import re
txt = "Hello welcome to hacktober fest"
x = re.search("hacktober", txt)
| 16.6 | 39 | 0.710843 |
f4c9927b909dfb773cd0b0bd92024436cca40bcc | 324 | py | Python | web/templatetags/tags.py | codeschule/koodikoulu-site | dde9932564f36dce6f4dbfd31e7923f1bae83293 | [
"MIT"
] | 5 | 2015-09-16T10:50:53.000Z | 2016-01-16T09:10:37.000Z | web/templatetags/tags.py | codeschule/koodikoulu-site | dde9932564f36dce6f4dbfd31e7923f1bae83293 | [
"MIT"
] | 10 | 2015-09-07T05:58:03.000Z | 2019-02-15T10:36:48.000Z | web/templatetags/tags.py | codeschule/koodikoulu-site | dde9932564f36dce6f4dbfd31e7923f1bae83293 | [
"MIT"
] | 6 | 2015-09-06T19:42:46.000Z | 2019-12-29T21:31:07.000Z | from django import template
register = template.Library() | 29.454545 | 62 | 0.771605 |
f4cbf5dfb144c1dccb1554376a7cd38916728ee3 | 2,040 | py | Python | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 74 | 2015-04-10T02:57:26.000Z | 2022-02-28T16:10:03.000Z | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 126 | 2015-04-26T02:55:26.000Z | 2022-02-16T22:43:28.000Z | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 163 | 2015-01-22T14:05:24.000Z | 2022-03-17T12:24:34.000Z | #
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may n... | 30.447761 | 62 | 0.726961 |
f4cc2588e5b4784c45799a725e16c31ecaab3c64 | 1,347 | py | Python | Guitar Training Remote/music_theory/mode.py | keremkoseoglu/Python-Library | f66ab246da4eabea94596494cf2bc9b416b65b1d | [
"MIT"
] | 3 | 2018-06-28T07:09:04.000Z | 2019-03-04T14:43:52.000Z | Guitar Training Remote/music_theory/mode.py | keremkoseoglu/Python-Library | f66ab246da4eabea94596494cf2bc9b416b65b1d | [
"MIT"
] | null | null | null | Guitar Training Remote/music_theory/mode.py | keremkoseoglu/Python-Library | f66ab246da4eabea94596494cf2bc9b416b65b1d | [
"MIT"
] | 5 | 2018-06-28T07:12:28.000Z | 2021-06-03T18:20:21.000Z | import random
from music_theory.note import Note
| 24.490909 | 65 | 0.507053 |
f4cc9923dfd51c7eac4621172705c16b6f05d784 | 878 | py | Python | test/py/t-searchmem.py | alexbudmsft/dbgscript | 76dc77109bbeb8f09a893e9dd56012ff8a4b601f | [
"PSF-2.0"
] | 27 | 2015-11-05T22:19:34.000Z | 2021-08-21T02:03:52.000Z | test/py/t-searchmem.py | alexbudmsft/dbgscript | 76dc77109bbeb8f09a893e9dd56012ff8a4b601f | [
"PSF-2.0"
] | null | null | null | test/py/t-searchmem.py | alexbudmsft/dbgscript | 76dc77109bbeb8f09a893e9dd56012ff8a4b601f | [
"PSF-2.0"
] | 2 | 2015-11-06T04:32:31.000Z | 2016-08-22T18:24:20.000Z | from utils import *
car = get_car()
# Positive cases. Can't print the result because the address may change
# from run to run.
#
dbgscript.search_memory(car['name'].address-16, 100, b'FooCar', 1)
dbgscript.search_memory(car['name'].address-16, 100, b'FooCar', 2)
# Negative cases.
#
# 4 is not a multipl... | 25.085714 | 72 | 0.692483 |
f4cd42c245f80917627216ad30dc10c24df5fd00 | 234 | py | Python | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | words_file = open('wordlist.txt')
print("export const VALIDGUESSES6 = [")
for word in words_file.read().split('\n'):
word = word.strip()
if word.isalpha() and len(word) == 6:
print(' "%s",' % word.lower())
print("];") | 33.428571 | 42 | 0.598291 |
f4cd5226f40c7efc92c4acddffbdcf13a2052324 | 1,132 | py | Python | 03_BFS_DFS/01_DFS_BFS/01_DFS_BFS.py | ki-yungkim/Algorithm_Step_1_Stack_Queue | 14798d37166c8803d3bf3021e79df920a15eae10 | [
"MIT"
] | null | null | null | 03_BFS_DFS/01_DFS_BFS/01_DFS_BFS.py | ki-yungkim/Algorithm_Step_1_Stack_Queue | 14798d37166c8803d3bf3021e79df920a15eae10 | [
"MIT"
] | null | null | null | 03_BFS_DFS/01_DFS_BFS/01_DFS_BFS.py | ki-yungkim/Algorithm_Step_1_Stack_Queue | 14798d37166c8803d3bf3021e79df920a15eae10 | [
"MIT"
] | null | null | null |
graph = {}
n = input().split(' ')
node, edge, start = map(int, n)
for i in range(edge):
edge_number = input().split(' ')
n1, n2 = map(int, edge_number)
if n1 not in graph:
graph[n1] = [n2]
elif n2 not in graph[n1]:
graph[n1].append(n2)
if n2 not in graph:
graph[n2] = [... | 22.64 | 56 | 0.49735 |
f4cd5e973a9c8cb0c4e46de8ba320355f64f5848 | 1,470 | py | Python | server/rtracker/mainapp/tests.py | Aqudei/RTrackerv3 | 17d769d33a64b56680c046359489f16304293d0c | [
"Apache-2.0"
] | null | null | null | server/rtracker/mainapp/tests.py | Aqudei/RTrackerv3 | 17d769d33a64b56680c046359489f16304293d0c | [
"Apache-2.0"
] | null | null | null | server/rtracker/mainapp/tests.py | Aqudei/RTrackerv3 | 17d769d33a64b56680c046359489f16304293d0c | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from . import models
# Create your tests here.
| 32.666667 | 75 | 0.672109 |
f4ce0a1fac889f4443a1f231c3c08f75f3120a52 | 6,094 | py | Python | topfarm/tests/test_topfarm_utils/test_utils.py | DTUWindEnergy/TopFarm2 | cba70b20431f7a828370447117fe2e7533edf7c2 | [
"MIT"
] | 4 | 2019-02-18T08:46:00.000Z | 2021-01-28T06:35:52.000Z | topfarm/tests/test_topfarm_utils/test_utils.py | DTUWindEnergy/TopFarm2 | cba70b20431f7a828370447117fe2e7533edf7c2 | [
"MIT"
] | 1 | 2019-11-26T12:12:12.000Z | 2019-11-26T12:12:12.000Z | topfarm/tests/test_topfarm_utils/test_utils.py | DTUWindEnergy/TopFarm2 | cba70b20431f7a828370447117fe2e7533edf7c2 | [
"MIT"
] | 8 | 2019-01-14T09:33:26.000Z | 2021-06-30T11:56:03.000Z | from topfarm.utils import smart_start
import numpy as np
from topfarm.tests import npt
from topfarm import TopFarmProblem
from py_wake.examples.data import hornsrev1
from py_wake.deficit_models.noj import NOJ
from topfarm.easy_drivers import EasyScipyOptimizeDriver
from topfarm.constraint_components.boundary import Ci... | 34.429379 | 113 | 0.600591 |
f4ce1feb2ee3a9c2af47ae2d5bda19d6ec7488f1 | 1,459 | py | Python | Jinja/002_BGPtemplate/config_render.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | 1 | 2021-07-10T09:22:55.000Z | 2021-07-10T09:22:55.000Z | Jinja/002_BGPtemplate/config_render.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | null | null | null | Jinja/002_BGPtemplate/config_render.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | null | null | null | import yaml
from jinja2 import Template
from argparse import ArgumentParser
parser = ArgumentParser("Specifying the YAML File")
parser.add_argument("-d", "--data-file",
help="Please specify the YAMl file.",
required=True
)
parser.add_argument("-t", "--templat... | 33.159091 | 78 | 0.596299 |
f4cec63eb86b3e248b58b034bd83c2efbe098bbe | 2,415 | py | Python | src/gans/wgangp.py | universuen/RVGAN-TL | d370673063a3dfd9cc4a20bfd1c18bc95aadabca | [
"MIT"
] | null | null | null | src/gans/wgangp.py | universuen/RVGAN-TL | d370673063a3dfd9cc4a20bfd1c18bc95aadabca | [
"MIT"
] | null | null | null | src/gans/wgangp.py | universuen/RVGAN-TL | d370673063a3dfd9cc4a20bfd1c18bc95aadabca | [
"MIT"
] | null | null | null | import torch
from src import config, models
from src.models import WGANGPGModel, WGANGPDModel
from src.datasets import PositiveDataset
from ._base import Base
| 36.044776 | 98 | 0.558592 |
f4cf23c9e4011531fcde6ef317ab2fd1e345946a | 2,050 | py | Python | brainlit/napari_viterbrain/viterbrain_plugin.py | neurodata/mouselight | 462112e62d14c97dbf73970995bf3a178623e02c | [
"Apache-2.0"
] | null | null | null | brainlit/napari_viterbrain/viterbrain_plugin.py | neurodata/mouselight | 462112e62d14c97dbf73970995bf3a178623e02c | [
"Apache-2.0"
] | 6 | 2020-01-31T22:21:10.000Z | 2020-01-31T22:24:59.000Z | brainlit/napari_viterbrain/viterbrain_plugin.py | neurodata/mouselight | 462112e62d14c97dbf73970995bf3a178623e02c | [
"Apache-2.0"
] | null | null | null | import pickle
from sys import intern
from numpy import uint32
import numpy as np
import zarr
from napari_plugin_engine import napari_hook_implementation
from qtpy.QtWidgets import QWidget, QHBoxLayout, QPushButton
from magicgui import magic_factory
import pathlib
import napari
| 26.973684 | 86 | 0.649268 |
f4d1b1ae7affabc3c3876c429d445f6eb5d699b7 | 5,122 | py | Python | examples/twisted/resource.py | florath/spyne-1 | 88d7b9b9020d5067b80927a30e229c3c5d64af85 | [
"BSD-3-Clause"
] | null | null | null | examples/twisted/resource.py | florath/spyne-1 | 88d7b9b9020d5067b80927a30e229c3c5d64af85 | [
"BSD-3-Clause"
] | null | null | null | examples/twisted/resource.py | florath/spyne-1 | 88d7b9b9020d5067b80927a30e229c3c5d64af85 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf8
#
# Copyright Burak Arslan <burak at arskom dot com dot tr>,
# Arskom Ltd. http://www.arskom.com.tr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are m... | 34.146667 | 80 | 0.684889 |
f4d2efff6733a7fa83b900da723a343483f0adb4 | 488 | py | Python | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | 1 | 2021-09-18T08:01:19.000Z | 2021-09-18T08:01:19.000Z | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | null | null | null | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | 1 | 2018-05-13T08:39:46.000Z | 2018-05-13T08:39:46.000Z | import pandas as pd
import re
import numpy as np
import os
import sys
from collections import OrderedDict, defaultdict
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
# from theano import *
# load state data
az_year = pd.read_csv("data/csv/price_expenditures/sector/az/price/teacd.csv", e... | 28.705882 | 129 | 0.788934 |
f4d365edd139d60dd0919dc1d55ad6225c11b8e7 | 3,657 | py | Python | pysnmp/TPLINK-COMMANDER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/TPLINK-COMMANDER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/TPLINK-COMMANDER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TPLINK-COMMANDER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TPLINK-COMMANDER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:16:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 114.28125 | 477 | 0.76292 |
f4d5f261aed4ef24ae543278e27504f15ab846bc | 2,410 | py | Python | autoPyTorch/pipeline/components/setup/augmentation/image/Resize.py | ravinkohli/Auto-PyTorch | a1512d56d4db89133e895e85765e3b72afbfe157 | [
"Apache-2.0"
] | 1 | 2021-05-12T10:11:58.000Z | 2021-05-12T10:11:58.000Z | autoPyTorch/pipeline/components/setup/augmentation/image/Resize.py | maxpark/Auto-PyTorch | 06e67de5017b4cccad9398e24a3d9f0bd8176da3 | [
"Apache-2.0"
] | 1 | 2021-06-23T21:48:03.000Z | 2021-06-23T21:48:03.000Z | autoPyTorch/pipeline/components/setup/augmentation/image/Resize.py | maxpark/Auto-PyTorch | 06e67de5017b4cccad9398e24a3d9f0bd8176da3 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Dict, Optional, Union
from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.hyperparameters import (
CategoricalHyperparameter,
)
import imgaug.augmenters as iaa
from imgaug.augmenters.meta import Augmenter
import numpy as np
from autoPyTorch.datasets.base_datas... | 44.62963 | 110 | 0.63195 |
f4d627ca669c90b09e3db2646cd7e31702dfedac | 974 | py | Python | test/unittests/chemical/building_blocks/aminoacids.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/unittests/chemical/building_blocks/aminoacids.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/unittests/chemical/building_blocks/aminoacids.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | '''
Unittests/Chemical/Building_Blocks/aminoacids
_____________________________________________
Unit tests for aminoacid lookups.
:copyright: (c) 2015 The Regents of the University of California.
:license: GNU GPL, see licenses/GNU GPLv3.txt for more details.
'''
# load modules/submodules
import ... | 21.644444 | 69 | 0.691992 |
f4d7dad198309996969b7b1a6b4a53071fcc5d86 | 61,304 | py | Python | firewall/firewallManager.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | firewall/firewallManager.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | firewall/firewallManager.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | #!/usr/local/CyberCP/bin/python
import os
import os.path
import sys
import django
sys.path.append('/usr/local/CyberCP')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings")
django.setup()
import json
from plogical.acl import ACLManager
import plogical.CyberCPLogFileWriter as logging
from plogical.virtual... | 38.0062 | 129 | 0.511745 |
f4d8b0ea61e089a5c1497a5c73511f8dba6105a9 | 8,970 | py | Python | operacoes.py | cleber-si/Calculadora-Clebsh-Gordan | e9645b0145d8a0148bf7c57e56ed9b5859335e91 | [
"MIT"
] | null | null | null | operacoes.py | cleber-si/Calculadora-Clebsh-Gordan | e9645b0145d8a0148bf7c57e56ed9b5859335e91 | [
"MIT"
] | null | null | null | operacoes.py | cleber-si/Calculadora-Clebsh-Gordan | e9645b0145d8a0148bf7c57e56ed9b5859335e91 | [
"MIT"
] | null | null | null | import sympy as sp
from sympy.solvers.solveset import linsolve
# Soma termos iguais que resultarem da aplicao do J(+) em cada ket
# Acha os ms possveis de um estado na troca se subespao
| 29.313725 | 125 | 0.535897 |
f4d92ae8855426c9f556531456dc67c3b915c5e8 | 1,653 | py | Python | src/routers/user.py | momonoki1990/fastapi-todo-list | fffcc072ab1181ce63f163c2bf0614551b3e40ed | [
"MIT"
] | 1 | 2022-02-17T07:35:43.000Z | 2022-02-17T07:35:43.000Z | src/routers/user.py | momonoki1990/fastapi-todo-list-api | fffcc072ab1181ce63f163c2bf0614551b3e40ed | [
"MIT"
] | 2 | 2021-12-05T06:37:35.000Z | 2022-01-04T11:08:10.000Z | src/routers/user.py | momonoki1990/fastapi-todo-list | fffcc072ab1181ce63f163c2bf0614551b3e40ed | [
"MIT"
] | 1 | 2022-01-11T02:02:31.000Z | 2022-01-11T02:02:31.000Z | from typing import List
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.ext.asyncio import AsyncSession
from src.schema import user as user_schema, task as task_schema
from src.cruds import user as user_crud
from src.libs import authen... | 42.384615 | 104 | 0.762855 |
f4da84214e93efb0d8a87ad63fc141e1f58417ac | 166 | py | Python | maguey/tests/test_systems_api.py | andrewmagill/maguey | 54efb60a5cab432cf5a3f1cbdaae0d1ffd1f3763 | [
"MIT"
] | null | null | null | maguey/tests/test_systems_api.py | andrewmagill/maguey | 54efb60a5cab432cf5a3f1cbdaae0d1ffd1f3763 | [
"MIT"
] | null | null | null | maguey/tests/test_systems_api.py | andrewmagill/maguey | 54efb60a5cab432cf5a3f1cbdaae0d1ffd1f3763 | [
"MIT"
] | null | null | null | from unittest import TestCase
import maguey
| 16.6 | 33 | 0.704819 |
f4da92b5feb63df688048e6a9100c1156f6d1d4b | 1,321 | py | Python | ml/regressor_with_kerasModel.py | shilang1220/tfwrapper | 36b8097d63636d93e93a0a8023a535fded9f1455 | [
"MIT"
] | null | null | null | ml/regressor_with_kerasModel.py | shilang1220/tfwrapper | 36b8097d63636d93e93a0a8023a535fded9f1455 | [
"MIT"
] | null | null | null | ml/regressor_with_kerasModel.py | shilang1220/tfwrapper | 36b8097d63636d93e93a0a8023a535fded9f1455 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 18-5-15 4:54
# @Author : Guoliang PU
# @File : regressor_with_kerasSquential.py
# @Software: tfwrapper
import numpy as np
np.random.seed(1337)
from keras.models import Model
from keras.layers import Dense
from keras.layers import Activation
import matplo... | 24.018182 | 64 | 0.694928 |
f4dc218ab525c8b2b47959492cb994fb65259ae5 | 13,238 | py | Python | isolates/download_accession_list.py | josl/ASM_challenge | f6bc31ab29d7589e259e1f3a2acbb613db6f03f3 | [
"Apache-2.0"
] | 2 | 2015-11-12T11:18:11.000Z | 2015-11-12T22:29:59.000Z | isolates/download_accession_list.py | josl/ASM_challenge | f6bc31ab29d7589e259e1f3a2acbb613db6f03f3 | [
"Apache-2.0"
] | null | null | null | isolates/download_accession_list.py | josl/ASM_challenge | f6bc31ab29d7589e259e1f3a2acbb613db6f03f3 | [
"Apache-2.0"
] | 1 | 2015-11-10T16:10:36.000Z | 2015-11-10T16:10:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a skeleton file that can serve as a starting point for a Python
console script. To run this script uncomment the following line in the
entry_points section in setup.cfg:
Then run `python setup.py install` which will install the command `download`
inside your c... | 40.48318 | 136 | 0.5769 |
f4dde28343298262f6e5c42a2d685e3d288155a3 | 344 | py | Python | tkinker/Code/messageBox.py | siddhantjoshi/Thinker | d86bf064b5753b30d56d17b9e9b5e88c4478c1bf | [
"Apache-2.0"
] | null | null | null | tkinker/Code/messageBox.py | siddhantjoshi/Thinker | d86bf064b5753b30d56d17b9e9b5e88c4478c1bf | [
"Apache-2.0"
] | null | null | null | tkinker/Code/messageBox.py | siddhantjoshi/Thinker | d86bf064b5753b30d56d17b9e9b5e88c4478c1bf | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from tkinter import messagebox
rootWidget = Tk()
rootWidget.title("Message Box Example")
Button(rootWidget,text= "Click Me!!", command = messageBox).pack()
rootWidget.mainloop() | 28.666667 | 70 | 0.729651 |
f4de5cc58d12df4855fb7893f7de106c2f5a9481 | 5,409 | py | Python | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 129 | 2015-06-23T08:06:23.000Z | 2022-03-31T12:38:20.000Z | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 6 | 2016-05-20T11:05:27.000Z | 2021-03-23T06:05:52.000Z | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 166 | 2015-07-15T16:24:05.000Z | 2022-03-02T20:54:36.000Z |
# 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
# ... | 29.396739 | 79 | 0.765391 |
f4dfb6b1e34d706321fd96235fbfa3fb0950437c | 2,977 | py | Python | blogproject/blog/views.py | MrWolffy/django-tutorial | 4b00e35092d47e9a04a7019c3f803c5b09630ec6 | [
"MIT"
] | null | null | null | blogproject/blog/views.py | MrWolffy/django-tutorial | 4b00e35092d47e9a04a7019c3f803c5b09630ec6 | [
"MIT"
] | null | null | null | blogproject/blog/views.py | MrWolffy/django-tutorial | 4b00e35092d47e9a04a7019c3f803c5b09630ec6 | [
"MIT"
] | null | null | null | import re
import markdown
from django.contrib import messages
from django.db.models import Q
from django.shortcuts import render, get_object_or_404, redirect
from django.utils.text import slugify
from django.views.generic import ListView, DetailView
from markdown.extensions.toc import TocExtension
from pure_pagination.... | 31.336842 | 88 | 0.664091 |
f4dfdc2828ad759886241cbe8ceb66c9cfe90377 | 87 | py | Python | apps/sentry/apps.py | ShAlireza/Sentry-Telegram | adf5384a4bb2be1fd91fa948f636d00622ea9c04 | [
"MIT"
] | null | null | null | apps/sentry/apps.py | ShAlireza/Sentry-Telegram | adf5384a4bb2be1fd91fa948f636d00622ea9c04 | [
"MIT"
] | null | null | null | apps/sentry/apps.py | ShAlireza/Sentry-Telegram | adf5384a4bb2be1fd91fa948f636d00622ea9c04 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.5 | 33 | 0.747126 |
f4e13e171e02dd82b6bb13fe5bf5609262caa599 | 4,284 | py | Python | tests/test_compare.py | grst/jupytext | 0bbcd61297d8ee75b4f0329e2617acbbade3eb10 | [
"MIT"
] | null | null | null | tests/test_compare.py | grst/jupytext | 0bbcd61297d8ee75b4f0329e2617acbbade3eb10 | [
"MIT"
] | null | null | null | tests/test_compare.py | grst/jupytext | 0bbcd61297d8ee75b4f0329e2617acbbade3eb10 | [
"MIT"
] | null | null | null | import pytest
from nbformat.v4.nbbase import new_notebook, \
new_markdown_cell, new_code_cell, new_raw_cell
import jupytext
from jupytext.compare import compare_notebooks, \
test_round_trip_conversion as round_trip_conversion
jupytext.file_format_version.FILE_FORMAT_VERSION = {}
| 34 | 78 | 0.613445 |
f4e45601dde17142d5458f76f7251eb01214f0cd | 1,921 | py | Python | hashing/pdq/python/pdqhashing/utils/matrix.py | larrycameron80/ThreatExchange | 00f9c140360fd6189e2be7de4ad680d474cbeebb | [
"BSD-3-Clause"
] | 1 | 2021-10-11T21:43:04.000Z | 2021-10-11T21:43:04.000Z | preprocess/third_party/pdqhashing/utils/matrix.py | vegetable68/sbb | 5949632fbd95a9dd6f40fca806b9a9d56b41652a | [
"CC0-1.0"
] | null | null | null | preprocess/third_party/pdqhashing/utils/matrix.py | vegetable68/sbb | 5949632fbd95a9dd6f40fca806b9a9d56b41652a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
| 27.442857 | 61 | 0.401353 |
f4e541181a3113f28e637d5fa10bb1de655a01f7 | 4,279 | py | Python | Scripts/simulation/plex/plex_service.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/plex/plex_service.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/plex/plex_service.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\plex\plex_service.py
# Compiled at: 2020-03-06 03:39:09
# Size of source mod 2**32: 8464 bytes
from ... | 44.572917 | 156 | 0.699696 |
f4e75c309e61dbe358567d5b645b34ee9b7c97aa | 962 | py | Python | youtube.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | youtube.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | youtube.py | yappy2000d/MoodBot | b62fc96fb15aa6f7bc95696f7a1614f1f50614dd | [
"MIT"
] | null | null | null | import os
KEY = os.environ['KEY']
from urllib.parse import parse_qs, urlparse
import requests
| 22.372093 | 68 | 0.576923 |
f4e91ac9a8dab12776325390648132e24eca6eb5 | 6,109 | py | Python | Course_4_Week_4_Project_2.py | Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate | c48f2040631a87d973ea8cbe534af9cd8f715d4a | [
"Apache-2.0"
] | null | null | null | Course_4_Week_4_Project_2.py | Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate | c48f2040631a87d973ea8cbe534af9cd8f715d4a | [
"Apache-2.0"
] | null | null | null | Course_4_Week_4_Project_2.py | Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate | c48f2040631a87d973ea8cbe534af9cd8f715d4a | [
"Apache-2.0"
] | null | null | null |
"""
This is is a part of the DeepLearning.AI TensorFlow Developer Professional Certificate offered on Coursera.
All copyrights belong to them. I am sharing this work here to showcase the projects I have worked on
Course: Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning
... | 32.668449 | 134 | 0.647405 |
f4eed8815cb84898320683d05ba025d24a490e96 | 182 | py | Python | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | 2 | 2020-12-04T09:45:38.000Z | 2020-12-07T14:06:12.000Z | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | null | null | null | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | null | null | null | with open("input.txt") as input_file:
lines = input_file.readlines()
result = 0
for line in lines:
print(line.strip(), result)
result += int(line.strip())
print(result)
| 20.222222 | 37 | 0.67033 |
f4effd5fe4c5a3fbe7c1088d05cb3e53feff8a3e | 1,435 | py | Python | packages/models-library/tests/conftest.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | packages/models-library/tests/conftest.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | 17 | 2020-10-15T16:06:05.000Z | 2022-03-21T18:48:21.000Z | packages/models-library/tests/conftest.py | GitHK/osparc-simcore-forked | 5b01a28d1b8028afcf9a735e1d46a73daa13686e | [
"MIT"
] | null | null | null | # pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-import
import json
import subprocess
import sys
from pathlib import Path
from typing import Callable, Dict
import pytest
import models_library
pytest_plugins = [
"pytest_simcore.repository_paths",
"pytest_simcor... | 27.596154 | 82 | 0.710105 |
f4f1160d71bb5c4176834eb20e1ed9451bb439a5 | 3,974 | py | Python | cellular-automata/examples/forest_fire_parameter_exploration.py | enthought/ets-examples | 3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2017-07-22T11:04:20.000Z | 2018-10-01T15:30:16.000Z | cellular-automata/examples/forest_fire_parameter_exploration.py | enthought/ets-examples | 3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2018-01-18T17:06:59.000Z | 2019-12-17T12:08:42.000Z | cellular-automata/examples/forest_fire_parameter_exploration.py | enthought/ets-examples | 3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-12-28T14:15:15.000Z | 2018-12-28T14:15:15.000Z | # Copyright (c) 2017, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only
# under the conditions described in the aforementioned license. The license
# is also available online at http://www.ent... | 27.597222 | 78 | 0.681429 |
f4f2a5cbf30192318f4590d2be79888593d3e6c9 | 1,146 | py | Python | src/RobotFrameworkPercy/RobotFrameworkPercy.py | carlosnizolli/robot-framework-percy | dff3f4a8bcde1b33ff7b84ae35d0440137432803 | [
"MIT"
] | null | null | null | src/RobotFrameworkPercy/RobotFrameworkPercy.py | carlosnizolli/robot-framework-percy | dff3f4a8bcde1b33ff7b84ae35d0440137432803 | [
"MIT"
] | null | null | null | src/RobotFrameworkPercy/RobotFrameworkPercy.py | carlosnizolli/robot-framework-percy | dff3f4a8bcde1b33ff7b84ae35d0440137432803 | [
"MIT"
] | 2 | 2021-01-30T01:53:14.000Z | 2021-06-09T09:22:44.000Z | from robot.libraries.BuiltIn import BuiltIn
import os
import percy
| 28.65 | 73 | 0.63438 |
f4f65f4899bacd28b8ccabd10ebc4817d077ad11 | 3,434 | py | Python | source/clusters.py | ehutt/text2topics | f79ff78b79c1ef2006350672ce9bfeb15de14b9c | [
"MIT"
] | 2 | 2019-08-14T03:07:59.000Z | 2020-09-17T21:55:38.000Z | source/clusters.py | ehutt/text2topics | f79ff78b79c1ef2006350672ce9bfeb15de14b9c | [
"MIT"
] | 2 | 2019-06-14T16:34:18.000Z | 2019-06-21T21:02:25.000Z | source/clusters.py | ehutt/text2topics | f79ff78b79c1ef2006350672ce9bfeb15de14b9c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 17 11:02:21 2019
@author: elizabethhutton
"""
import pandas as pd
import numpy as np
from sklearn.manifold import TSNE
from matplotlib import pyplot as plt
from sklearn.cluster import KMeans
from wordcloud import WordCloud
from yellowbrick.cluster ... | 32.093458 | 90 | 0.625801 |
f4f6dd9ec34601f8c73911a269e4b2611744f766 | 1,095 | py | Python | week_2/ex1a.py | scodes1/pyneta | 73012860b49488b882898ddf0060e3f662212ed7 | [
"Apache-2.0"
] | null | null | null | week_2/ex1a.py | scodes1/pyneta | 73012860b49488b882898ddf0060e3f662212ed7 | [
"Apache-2.0"
] | null | null | null | week_2/ex1a.py | scodes1/pyneta | 73012860b49488b882898ddf0060e3f662212ed7 | [
"Apache-2.0"
] | null | null | null | from netmiko import ConnectHandler
from getpass import getpass
device1 = {
'host' : 'cisco4.lasthop.io',
'username' : 'pyclass',
'password' : getpass(),
'device_type' : 'cisco_ios',
'global_delay_factor' : 2,
}
net_connect = ConnectHandler(**device1)
print(net_connect.find_prompt())
output = net_... | 32.205882 | 88 | 0.761644 |
f4f6fa07769f11d38fee60f54fe27a3c1a45cc34 | 4,094 | py | Python | bot.py | egor5q/hawkeyegame | c951cce856736099603903bd2aa98d763a01c68b | [
"MIT"
] | null | null | null | bot.py | egor5q/hawkeyegame | c951cce856736099603903bd2aa98d763a01c68b | [
"MIT"
] | null | null | null | bot.py | egor5q/hawkeyegame | c951cce856736099603903bd2aa98d763a01c68b | [
"MIT"
] | 2 | 2019-05-14T17:23:44.000Z | 2019-05-14T17:31:14.000Z | # -*- coding: utf-8 -*-
import os
import telebot
import time
import random
import threading
from emoji import emojize
from telebot import types
from pymongo import MongoClient
import traceback
token = os.environ['TELEGRAM_TOKEN']
bot = telebot.TeleBot(token)
fighters=[]
btimer=10
names=['', '', '', ' ', '']
def c... | 28.430556 | 148 | 0.533952 |
f4f8ac48bcc18b69231760309200fe77cd389fd6 | 2,404 | py | Python | napari_svg/_tests/test_get_writer.py | nclack/napari-svg | 0e222857c3a61befe1ea4b4e97fd48b285877d02 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T12:20:00.000Z | 2020-04-13T12:20:00.000Z | napari_svg/_tests/test_get_writer.py | nclack/napari-svg | 0e222857c3a61befe1ea4b4e97fd48b285877d02 | [
"BSD-3-Clause"
] | 13 | 2020-04-26T04:27:12.000Z | 2021-12-17T16:56:46.000Z | napari_svg/_tests/test_get_writer.py | nclack/napari-svg | 0e222857c3a61befe1ea4b4e97fd48b285877d02 | [
"BSD-3-Clause"
] | 8 | 2020-04-19T21:47:37.000Z | 2022-01-25T16:39:01.000Z | import os
import numpy as np
import pytest
from napari_svg import napari_get_writer
from napari.layers import Image, Labels, Points, Shapes, Vectors
def test_get_writer(tmpdir, layer_data_and_types):
"""Test writing layers data."""
layer_data, layer_types = layer_data_and_types
path = os.path.join(tmpdi... | 26.417582 | 64 | 0.682196 |
f4fa097f769833133255ddd66d6f8877c26fd01c | 4,701 | py | Python | django_easy_report/migrations/0001_initial.py | ehooo/django_easy_report | b6e42946693cf5144ee8902ecc7ab7e8626d7439 | [
"MIT"
] | null | null | null | django_easy_report/migrations/0001_initial.py | ehooo/django_easy_report | b6e42946693cf5144ee8902ecc7ab7e8626d7439 | [
"MIT"
] | 6 | 2021-11-29T20:23:30.000Z | 2022-02-02T23:09:50.000Z | django_easy_report/migrations/0001_initial.py | ehooo/django_easy_report | b6e42946693cf5144ee8902ecc7ab7e8626d7439 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 61.855263 | 220 | 0.635397 |
f4fadeeded9f37b94879f47ef805c3a9011fce5c | 29,988 | py | Python | post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null |
# Running!
if __name__ == '__main__':
selection_10()
| 154.57732 | 1,310 | 0.800053 |
f4fbc7791249dd3dc8759c139bed36e338524bfa | 4,198 | py | Python | games_logger/games/migrations/0001_initial.py | HaeckelK/games_logger_django | 0a8a51e73f56e68d2dea6252a263c408ca86071e | [
"MIT"
] | null | null | null | games_logger/games/migrations/0001_initial.py | HaeckelK/games_logger_django | 0a8a51e73f56e68d2dea6252a263c408ca86071e | [
"MIT"
] | 3 | 2021-01-10T10:45:32.000Z | 2021-01-10T13:31:05.000Z | games_logger/games/migrations/0001_initial.py | HaeckelK/games_logger_django | 0a8a51e73f56e68d2dea6252a263c408ca86071e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-07 21:50
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
| 45.139785 | 193 | 0.595045 |
f4fd4b6da503b9271301852273d340f511178dff | 505 | py | Python | button.py | anas652/button | ce1436332f491815e1a0e760c725589372d3c0cb | [
"MIT"
] | null | null | null | button.py | anas652/button | ce1436332f491815e1a0e760c725589372d3c0cb | [
"MIT"
] | null | null | null | button.py | anas652/button | ce1436332f491815e1a0e760c725589372d3c0cb | [
"MIT"
] | null | null | null | n kjhimport Tkinter
window = Tkinter.Tk()
button = Tkinter.Button(window, text="do not press this because i will kill you.", width=40)
button.pack(padx=10, pady=10)
clickCount=0
button.bind("<ButtonRelease-1>", onClick)
window.mainloop() | 20.2 | 92 | 0.716832 |
7600037bb80f567062423e8740b15ff55e0fa33b | 5,381 | py | Python | corehq/apps/fixtures/interface.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/fixtures/interface.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/fixtures/interface.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from django.contrib import messages
from django.http import HttpResponseRedirect
from django.utils.functional import cached_property
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_noop, ugettext_lazy
from couchdbkit import ResourceNotFound
from memoized import memoized... | 33.42236 | 113 | 0.660472 |
7600e325b061a3eb01042d3e6b2023bf522e3722 | 53,884 | py | Python | pyDR/blopt.py | ClayCampaigne/pyDR | ef07d19db09b1bc57955e7ec99c9861c6d3c296f | [
"MIT"
] | null | null | null | pyDR/blopt.py | ClayCampaigne/pyDR | ef07d19db09b1bc57955e7ec99c9861c6d3c296f | [
"MIT"
] | null | null | null | pyDR/blopt.py | ClayCampaigne/pyDR | ef07d19db09b1bc57955e7ec99c9861c6d3c296f | [
"MIT"
] | null | null | null | """
Code for the optimization and gaming component of the Baselining work.
@author: Maximilian Balandat, Lillian Ratliff
@date Mar 2, 2016
"""
import numpy as np
import pandas as pd
import logging
from gurobipy import GRB, Model, quicksum, LinExpr
from pandas.tseries.holiday import USFederalHolidayCalendar
from datet... | 50.311858 | 113 | 0.52806 |
760122620b3c96cc231d8b54ec99cb4d4690794d | 380 | py | Python | setup.py | edjdavid/aiml | 6035cf3575137a8022fd373b8be9cfe16ee4ec61 | [
"Apache-2.0"
] | null | null | null | setup.py | edjdavid/aiml | 6035cf3575137a8022fd373b8be9cfe16ee4ec61 | [
"Apache-2.0"
] | null | null | null | setup.py | edjdavid/aiml | 6035cf3575137a8022fd373b8be9cfe16ee4ec61 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(name='aiml',
version='1.0',
description='ML Automation',
author='MSDS ML',
author_email='edjdavid@users.noreply.github.com',
packages=find_packages(),
install_requires=[
'numpy',
'pandas',
'matplotlib',
... | 22.352941 | 55 | 0.55 |
760133bec2625c1f79501f59184ee12e8243bf4b | 315 | py | Python | python_scripts/wikiracer/__init__.py | gulyas/network_games_analysis | 2e6bdd2a2275702495af1c18043758193d94377b | [
"MIT"
] | null | null | null | python_scripts/wikiracer/__init__.py | gulyas/network_games_analysis | 2e6bdd2a2275702495af1c18043758193d94377b | [
"MIT"
] | null | null | null | python_scripts/wikiracer/__init__.py | gulyas/network_games_analysis | 2e6bdd2a2275702495af1c18043758193d94377b | [
"MIT"
] | 1 | 2021-03-30T18:39:08.000Z | 2021-03-30T18:39:08.000Z | """
WikiRacer is a project of stong1108.
https://github.com/stong1108/WikiRacer
Rewritten for Python 3.8 by Tams Csertn (csertant)
"""
from .wikiracer import check_pages, find_shortest_path, get_result, redirected
from .wikiracer_threaded import check_page_threaded, find_shortest_path_threaded, result_threaded
| 35 | 97 | 0.828571 |
7601a6df6f49fcbee94c63c43de55ef018409e87 | 1,115 | py | Python | provisioner/python/prp_provisioner/provisioner.py | sfiligoi/prp-htcondor-portal | 8db9fb75d706111fa02f9f57c18fb7b3fb441206 | [
"BSD-2-Clause"
] | null | null | null | provisioner/python/prp_provisioner/provisioner.py | sfiligoi/prp-htcondor-portal | 8db9fb75d706111fa02f9f57c18fb7b3fb441206 | [
"BSD-2-Clause"
] | null | null | null | provisioner/python/prp_provisioner/provisioner.py | sfiligoi/prp-htcondor-portal | 8db9fb75d706111fa02f9f57c18fb7b3fb441206 | [
"BSD-2-Clause"
] | null | null | null | #
# prp-htcondor-portal/provisioner
#
# BSD license, copyright Igor Sfiligoi 2021
#
# Main entry point of the provisioner process
#
import sys
import time
from . import provisioner_logging
from . import provisioner_htcondor
from . import provisioner_k8s
from . import event_loop
if __name__ == "__main__":
# execut... | 28.589744 | 106 | 0.741704 |
76049c2dadfdef13db9c5eaee735b3b43dbdb154 | 33,142 | py | Python | linetools/isgm/abscomponent.py | marijana777/linetools | 73720a2f6df42b7dde1f35055cd40ad970200f7f | [
"BSD-3-Clause"
] | null | null | null | linetools/isgm/abscomponent.py | marijana777/linetools | 73720a2f6df42b7dde1f35055cd40ad970200f7f | [
"BSD-3-Clause"
] | null | null | null | linetools/isgm/abscomponent.py | marijana777/linetools | 73720a2f6df42b7dde1f35055cd40ad970200f7f | [
"BSD-3-Clause"
] | null | null | null | """ Class for absorption line component
"""
from __future__ import print_function, absolute_import, division, unicode_literals
# Python 2 & 3 compatibility
try:
basestring
except NameError:
basestring = str
import pdb
import numpy as np
import warnings
from astropy import constants as const
from astropy impo... | 38.13809 | 167 | 0.535665 |
7604f665e3aa02bc719696d186c91d7d6c300052 | 3,305 | py | Python | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | # Front matter
##############
import os
from os import fdopen, remove
from tempfile import mkstemp
from shutil import move
import glob
import re
import time
import pandas as pd
import numpy as np
from scipy import constants
from scipy.optimize import curve_fit, fsolve
from scipy.interpolate import interp1d
import matpl... | 34.072165 | 86 | 0.681392 |
76052e516679e30b2741000942a893a95667ab5b | 1,730 | py | Python | classes/strategies.py | noaillypau/Polyvalent_Backtester_3 | 19c11014300b5cf629c037cc5a6b18123237647f | [
"MIT"
] | 2 | 2021-04-30T21:36:29.000Z | 2021-06-10T23:34:38.000Z | classes/strategies.py | noaillypau/Polyvalent_Backtester_3 | 19c11014300b5cf629c037cc5a6b18123237647f | [
"MIT"
] | null | null | null | classes/strategies.py | noaillypau/Polyvalent_Backtester_3 | 19c11014300b5cf629c037cc5a6b18123237647f | [
"MIT"
] | null | null | null | import numpy as np, pandas as pd, json, os, datetime, time
from order import Order
'''
Strategy object
create a strategy object with :
dataset_name: can be string or list string, set on whioch asset the order will be passed
trigger: function of dic of numpys (datas._dic) and index: will determine ... | 28.833333 | 126 | 0.602312 |
7607e44458b7d06d849dd60ccf1c72d8f4d87ce2 | 9,129 | py | Python | orders/api.py | terryjbates/restbucks | 31ed117f67b6c205838f89b45162fb000d49578c | [
"MIT"
] | null | null | null | orders/api.py | terryjbates/restbucks | 31ed117f67b6c205838f89b45162fb000d49578c | [
"MIT"
] | null | null | null | orders/api.py | terryjbates/restbucks | 31ed117f67b6c205838f89b45162fb000d49578c | [
"MIT"
] | null | null | null | import os
from datetime import datetime
from dateutil import parser as datetime_parser
from dateutil.tz import tzutc
from flask import Flask, url_for, jsonify, request
from flask.ext.sqlalchemy import SQLAlchemy
from utils import split_url
basedir = os.path.abspath(os.path.dirname(__file__))
db_path = os.path.join(ba... | 31.156997 | 80 | 0.621536 |
760878fec74dfca0b18e914746679e0b6733291a | 411 | py | Python | __findLengthsNoEmptyStrings.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __findLengthsNoEmptyStrings.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __findLengthsNoEmptyStrings.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | #License: https://bit.ly/3oLErEI
strs = ['cat', 'car', 'fear', 'center']
print("Original strings:")
print(strs)
print("Lengths of the said list of non-empty strings:")
print(test(strs))
strs = ['cat', 'dog', 'shatter', 'donut', 'at', 'todo', '']
print("\nOriginal strings:")
print(strs)
print("Lengths of the said li... | 27.4 | 60 | 0.652068 |
760c099ccfce0265d0163471803afb16f5cff523 | 2,644 | py | Python | speedtest2dynamodb_test.py | ujuettner/speedtest2DynamoDB | 73229088d20556928ad6df2e263e5e6452be22fa | [
"Apache-2.0"
] | null | null | null | speedtest2dynamodb_test.py | ujuettner/speedtest2DynamoDB | 73229088d20556928ad6df2e263e5e6452be22fa | [
"Apache-2.0"
] | null | null | null | speedtest2dynamodb_test.py | ujuettner/speedtest2DynamoDB | 73229088d20556928ad6df2e263e5e6452be22fa | [
"Apache-2.0"
] | null | null | null | """Test cases."""
import unittest
import logging
from speedtest2dynamodb import parse_output
if __name__ == '__main__':
unittest.main()
| 30.744186 | 78 | 0.561271 |
760e0de8aa3b473af5ac0c6c5fd6434bc4cb2ea6 | 2,078 | py | Python | freenet/lib/file_parser.py | augustand/fdslight | f3d82465aaa27160438b22f9b474be8c5dc100cc | [
"BSD-2-Clause"
] | null | null | null | freenet/lib/file_parser.py | augustand/fdslight | f3d82465aaa27160438b22f9b474be8c5dc100cc | [
"BSD-2-Clause"
] | null | null | null | freenet/lib/file_parser.py | augustand/fdslight | f3d82465aaa27160438b22f9b474be8c5dc100cc | [
"BSD-2-Clause"
] | 1 | 2019-06-22T23:25:56.000Z | 2019-06-22T23:25:56.000Z | #!/usr/bin/env python3
""",dnsrulesip
:,#:
"""
def __drop_comment(line):
""""""
pos = line.find("#")
if pos < 0:
return line
return line[0:pos]
def parse_host_file(fpath):
""","""
lines = __read_from_file(fpath)
results = []
for line in lines:
find = line.find(":")
... | 21.645833 | 63 | 0.559673 |
761081e986ec7c695959355edb65bc9f26566336 | 2,918 | py | Python | src/duty/context.py | pawamoy/duty | dac90183543b73fdd6e5fab354a56c5484d5762a | [
"0BSD"
] | 25 | 2020-10-09T08:46:12.000Z | 2022-03-16T18:58:39.000Z | src/duty/context.py | pawamoy/duty | dac90183543b73fdd6e5fab354a56c5484d5762a | [
"0BSD"
] | 4 | 2020-11-12T19:27:41.000Z | 2021-08-01T13:24:31.000Z | src/duty/context.py | pawamoy/duty | dac90183543b73fdd6e5fab354a56c5484d5762a | [
"0BSD"
] | null | null | null | """Module containing the context definition."""
import os
from contextlib import contextmanager
from typing import Any, Callable, Dict, List, Union
from failprint.runners import run as failprint_run
from duty.exceptions import DutyFailure
CmdType = Union[str, List[str], Callable]
| 27.018519 | 101 | 0.589788 |
76108263a77b26ab3e9db3181d3179bc7218f2f9 | 2,802 | py | Python | Tests/TestImgRecognitionAndMotorControl/Test2048Detect4.py | robdobsn/RobotPlay2048 | 0715fd67313ccf6015871c2a73f38de3ca014f10 | [
"MIT"
] | null | null | null | Tests/TestImgRecognitionAndMotorControl/Test2048Detect4.py | robdobsn/RobotPlay2048 | 0715fd67313ccf6015871c2a73f38de3ca014f10 | [
"MIT"
] | null | null | null | Tests/TestImgRecognitionAndMotorControl/Test2048Detect4.py | robdobsn/RobotPlay2048 | 0715fd67313ccf6015871c2a73f38de3ca014f10 | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
import picamera
import time
if __name__ == '__main__' :
# Acquire source image.
cam = picamera.PiCamera()
cam.capture('newimg.jpg')
# Read source image.
im_src = cv2.imread('newimg.jpg')
# Resize image
newWidth = 640.0
rat1 = newWidth / im_src.shape[1]... | 30.791209 | 113 | 0.578515 |
761129398336f1e31011977bfec9f9dd0ac8ed7c | 7,193 | py | Python | utils/views/modals/tag.py | DiscordGIR/Bloo2 | bb4d8b6ac54f2242ad0ce3663e4ae97f05064dff | [
"MIT"
] | null | null | null | utils/views/modals/tag.py | DiscordGIR/Bloo2 | bb4d8b6ac54f2242ad0ce3663e4ae97f05064dff | [
"MIT"
] | null | null | null | utils/views/modals/tag.py | DiscordGIR/Bloo2 | bb4d8b6ac54f2242ad0ce3663e4ae97f05064dff | [
"MIT"
] | 1 | 2022-03-31T07:32:30.000Z | 2022-03-31T07:32:30.000Z | import re
import discord
from data.model import Tag
| 39.092391 | 137 | 0.553177 |
7614576866838e113eac6ed1704be36e192c3e82 | 3,096 | py | Python | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import pandas as pd
# In[4]:
weather_data = pd.read_csv("weatherHistory.csv")
# weather_data.columns = weather_data.iloc[0]
# weather_data.columns
# weather_data
# weather_data.head()
weather_data.columns.values
# In[5]:
weather_data = weather_data.iloc[1:]
# ... | 15.557789 | 101 | 0.699935 |
7615add91618b64986aa97f7ee8e80579bbbb020 | 1,263 | py | Python | JPS_NLP/python/caresjpsnlq/NLQ_Chunker.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 21 | 2021-03-08T01:58:25.000Z | 2022-03-09T15:46:16.000Z | JPS_NLP/python/caresjpsnlq/NLQ_Chunker.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 63 | 2021-05-04T15:05:30.000Z | 2022-03-23T14:32:29.000Z | JPS_NLP/python/caresjpsnlq/NLQ_Chunker.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 15 | 2021-03-08T07:52:03.000Z | 2022-03-29T04:46:20.000Z | import NLQ_Preprocessor as preProcessor
import NLP_Engine as nlpEngine
import NLQ_Interpreter as interpreter
import nltk
import time
#
#
#
#
#
# chunker = NLQ_Chunker()
# sentence = input('Ask: ')
# start = time.time()
# chunker.chunk_a_sentence(sentence)
# print('took ' , time.time() - start, 'seconds') | 31.575 | 129 | 0.726841 |
76165e8ec95b875db9cb06e3ee130e980b0505a2 | 2,722 | py | Python | build/lib.linux-armv7l-2.7/bibliopixel/drivers/LPD8806.py | sethshill/final | 0ab89f437076a81e5059aa0f6acd2d16c41fd766 | [
"MIT"
] | 6 | 2017-06-09T18:43:17.000Z | 2018-09-10T19:14:35.000Z | bibliopixel/drivers/LPD8806.py | ManiacalLabs/BiblioPixel2 | bc79ac786af9d98f7f562e6a5b712c4250832a38 | [
"MIT"
] | null | null | null | bibliopixel/drivers/LPD8806.py | ManiacalLabs/BiblioPixel2 | bc79ac786af9d98f7f562e6a5b712c4250832a38 | [
"MIT"
] | null | null | null | from spi_driver_base import DriverSPIBase, ChannelOrder
MANIFEST = [
{
"id": "LPD8806",
"class": DriverLPD8806,
"type": "driver",
"display": "LPD8806 (SPI Native)",
"desc": "Interface with LPD8806 strips over a native SPI port (Pi, BeagleBone, etc.)",
"params": [{
... | 32.404762 | 105 | 0.443424 |
76166cfac04a442fdc8322c4a6b91bc6654b2abd | 3,476 | py | Python | tests/test_tokenizers.py | GateNLP/python-gatenlp | a27f1152064e2e251dc8a477aa425ebe904542ad | [
"Apache-2.0"
] | 30 | 2020-04-18T12:28:15.000Z | 2022-02-18T21:31:18.000Z | tests/test_tokenizers.py | GateNLP/python-gatenlp | a27f1152064e2e251dc8a477aa425ebe904542ad | [
"Apache-2.0"
] | 133 | 2019-10-16T07:41:59.000Z | 2022-03-31T07:27:07.000Z | tests/test_tokenizers.py | GateNLP/python-gatenlp | a27f1152064e2e251dc8a477aa425ebe904542ad | [
"Apache-2.0"
] | 4 | 2021-01-20T08:12:19.000Z | 2021-10-21T13:29:44.000Z | import os
import time
from gatenlp import logger, Document
| 44.564103 | 113 | 0.641542 |
76179c4c064e78d6f85438575931fbff3c4f84e8 | 282 | py | Python | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | from src.neural_networks.art_fuzzy import ARTFUZZY
import numpy as np
| 25.636364 | 50 | 0.695035 |
7617fbe8c353222fa1397cf03f0913d339c82e46 | 2,801 | py | Python | tests/unit/test_para_helper_utilities.py | lizschley/number_six | a427202397822fca1f49d43d138c24fffdbe95da | [
"MIT"
] | 1 | 2020-07-14T20:13:05.000Z | 2020-07-14T20:13:05.000Z | tests/unit/test_para_helper_utilities.py | lizschley/number_six | a427202397822fca1f49d43d138c24fffdbe95da | [
"MIT"
] | 3 | 2021-04-06T20:40:08.000Z | 2021-06-03T21:54:21.000Z | tests/unit/test_para_helper_utilities.py | lizschley/number_six | a427202397822fca1f49d43d138c24fffdbe95da | [
"MIT"
] | null | null | null | '''Tests for methods in helpers/no_import_common_class/utilities.py'''
# pylint: disable=missing-function-docstring
# pylint: disable=redefined-outer-name
import pytest
import helpers.no_import_common_class.paragraph_helpers as helpers
import utilities.random_methods as utils
import testing.data.dict_constants as cons... | 42.439394 | 99 | 0.702963 |
76180c0856e5a2882537ef401da7a0993a51ee7b | 17,823 | py | Python | scripts/train.py | dowalder/gym-duckietown | 6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e | [
"MIT"
] | null | null | null | scripts/train.py | dowalder/gym-duckietown | 6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e | [
"MIT"
] | null | null | null | scripts/train.py | dowalder/gym-duckietown | 6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e | [
"MIT"
] | 2 | 2018-08-28T07:40:14.000Z | 2018-08-28T07:49:10.000Z | #!/usr/bin/env python3
"""
DEPRECATED: better use trainv2.py together with conf files. This file persists as not everything in it has been moved to
trainv2.py, but in most cases the other one should be used.
"""
import argparse
import os
import pathlib
import yaml
from typing import Dict
import collections
import to... | 36.373469 | 120 | 0.586489 |
76189c1c0f0a1c092eecb8d9cdb55104a570a87d | 9,020 | py | Python | oskb/ui_editkey.py | rushic24/oskb | d453a707d2a1d78d859d5e1648fe3804e40b4148 | [
"MIT"
] | 6 | 2020-05-06T16:59:48.000Z | 2021-09-18T12:48:21.000Z | oskb/ui_editkey.py | rushic24/oskb | d453a707d2a1d78d859d5e1648fe3804e40b4148 | [
"MIT"
] | 1 | 2022-03-24T19:19:11.000Z | 2022-03-24T19:19:11.000Z | oskb/ui_editkey.py | rushic24/oskb | d453a707d2a1d78d859d5e1648fe3804e40b4148 | [
"MIT"
] | 3 | 2020-05-06T16:59:52.000Z | 2021-09-18T12:48:54.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'EditKey.ui'
#
# Created by: PyQt5 UI code generator 5.14.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 54.337349 | 124 | 0.704656 |
761906b76105e1a9bca359fb807ff73effa0fbb1 | 5,584 | py | Python | variaveis.py | OHolandes/Athena-Public | ed697b012b0507d31e906026607be69dcb3460ce | [
"BSD-3-Clause"
] | null | null | null | variaveis.py | OHolandes/Athena-Public | ed697b012b0507d31e906026607be69dcb3460ce | [
"BSD-3-Clause"
] | null | null | null | variaveis.py | OHolandes/Athena-Public | ed697b012b0507d31e906026607be69dcb3460ce | [
"BSD-3-Clause"
] | null | null | null | CANAIS_ADM = {
"diretoria": 441263190832185350,
"secretaria": 731689039853518848
}
SAUDACOES = ["Ol!", "Oi!", "Iai!"]
GUIA_ANONIMA_ID = 956319073568976967
msg_ajuda = "**::ola** | **::oi** | **::iai** | **::athena**: Mande um ola caloroso para mim, e responderei!\n" \
"**::cool** `texto`: Voc pode... | 62.044444 | 377 | 0.604047 |
7619f9011026e05240115c2ac1df6ac827fae015 | 187 | py | Python | neodroidagent/utilities/signal/experimental/__init__.py | gitter-badger/agent | 3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11 | [
"Apache-2.0"
] | 8 | 2017-09-13T08:28:44.000Z | 2022-01-21T15:59:19.000Z | neodroidagent/utilities/signal/experimental/__init__.py | gitter-badger/agent | 3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11 | [
"Apache-2.0"
] | 4 | 2019-03-22T13:49:16.000Z | 2019-03-25T13:49:39.000Z | neodroidagent/utilities/signal/experimental/__init__.py | gitter-badger/agent | 3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11 | [
"Apache-2.0"
] | 3 | 2017-09-13T08:31:38.000Z | 2021-11-09T11:22:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = ""
from .discounting import *
from .generalised_advantage import *
from .nstep import *
| 18.7 | 39 | 0.705882 |
761c0b280845fe16bd537d8ef77d6e2fcaf9c26d | 1,376 | py | Python | NSI/Chapitre 6/Mini projet 5 AB/morse.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | NSI/Chapitre 6/Mini projet 5 AB/morse.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | NSI/Chapitre 6/Mini projet 5 AB/morse.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | from arbre_binaire import AB
def parfait(ngd):
"""
Fonction qui renvoit un arbre binaire parfait partir de
son parcourt en profondeur prfixe ngd de type str
"""
cle = ngd[0]
ab1 = AB(cle)
if len(ngd) > 1:
ngd_g = ngd[1 : len(ngd) // 2 + 1]
ngd_d = ngd[len(ngd) // 2 + 1 :]
... | 28.081633 | 98 | 0.52907 |
761c58ccf71d7166432217958e8a864a1a872340 | 12,091 | py | Python | spharpy/samplings/coordinates.py | mberz/spharpy | e74c30c297dd9ad887e7345c836a515daa6f21f4 | [
"MIT"
] | null | null | null | spharpy/samplings/coordinates.py | mberz/spharpy | e74c30c297dd9ad887e7345c836a515daa6f21f4 | [
"MIT"
] | null | null | null | spharpy/samplings/coordinates.py | mberz/spharpy | e74c30c297dd9ad887e7345c836a515daa6f21f4 | [
"MIT"
] | null | null | null | import numpy as np
from spharpy.samplings.helpers import sph2cart
from scipy.spatial import cKDTree
def find_nearest_point(self, point):
"""Find the closest Coordinate point to a given Point.
The search for the nearest point is performed using the scipy
cKDTree implementation.
Par... | 29.634804 | 79 | 0.574642 |
761c83dc8dbc123b6c4c63657c6e0437d9f3bf9f | 11,572 | py | Python | 09_Recurrent_Neural_Networks/05_Creating_A_Sequence_To_Sequence_Model/05_seq2seq_translation.py | maxim5/tensorflow_cookbook | 0db6d340970a09fbbc4a7f698fe59b82126aa203 | [
"MIT"
] | 2 | 2017-12-21T05:44:07.000Z | 2017-12-24T07:58:33.000Z | 09_Recurrent_Neural_Networks/05_Creating_A_Sequence_To_Sequence_Model/05_seq2seq_translation.py | maxim5/tensorflow_cookbook | 0db6d340970a09fbbc4a7f698fe59b82126aa203 | [
"MIT"
] | null | null | null | 09_Recurrent_Neural_Networks/05_Creating_A_Sequence_To_Sequence_Model/05_seq2seq_translation.py | maxim5/tensorflow_cookbook | 0db6d340970a09fbbc4a7f698fe59b82126aa203 | [
"MIT"
] | 2 | 2019-01-28T09:53:03.000Z | 2021-03-16T22:46:29.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Creating Sequence to Sequence Models
# -------------------------------------
# Here we show how to implement sequence to sequence models.
# Specifically, we will build an English to German translation model.
#
import io
import os
import string
import sys
from collect... | 39.494881 | 120 | 0.606032 |
761ca9f6ac724fb2550f3f650971c0642f340690 | 6,077 | py | Python | hxmirador/settings/prod.py | nmaekawa/hxmirador | c5e364a92c3631126a7fd9335af506270f52fe68 | [
"BSD-3-Clause"
] | null | null | null | hxmirador/settings/prod.py | nmaekawa/hxmirador | c5e364a92c3631126a7fd9335af506270f52fe68 | [
"BSD-3-Clause"
] | null | null | null | hxmirador/settings/prod.py | nmaekawa/hxmirador | c5e364a92c3631126a7fd9335af506270f52fe68 | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for hxmirador project.
Generated by 'django-admin startproject' using Django 2.0.7.
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
... | 28.665094 | 96 | 0.632549 |
761e7270b2e52e796a66290cdfaca9f03af0e43f | 3,757 | py | Python | Conecta 4/AlphaZero/test.py | alberto-maurel/Aprendizaje-por-refuerzo-Fundamentos-te-ricos-del-algoritmo-AlphaZero-e-implementaci-n | 8c4b54ad897b32fb43058713ff658b97c44ec578 | [
"MIT"
] | null | null | null | Conecta 4/AlphaZero/test.py | alberto-maurel/Aprendizaje-por-refuerzo-Fundamentos-te-ricos-del-algoritmo-AlphaZero-e-implementaci-n | 8c4b54ad897b32fb43058713ff658b97c44ec578 | [
"MIT"
] | null | null | null | Conecta 4/AlphaZero/test.py | alberto-maurel/Aprendizaje-por-refuerzo-Fundamentos-te-ricos-del-algoritmo-AlphaZero-e-implementaci-n | 8c4b54ad897b32fb43058713ff658b97c44ec578 | [
"MIT"
] | null | null | null | from board import Game
from agent import Agent
from humanAgent import HumanAgent
from randomAgent import RandomAgent
from MCTS import *
from NeuralNetwork import Connect4Zero
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
#AI VS RANDOM
'''
def main():
builder = Connect4Ze... | 30.056 | 97 | 0.541389 |
761ec4083d73522c128e2f27edb3c3a48ac0baed | 4,390 | py | Python | fabio/pilatusimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | null | null | null | fabio/pilatusimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:43:41.000Z | 2019-06-13T08:54:02.000Z | fabio/pilatusimage.py | boesecke/fabio | 11350e445a6def4d02c6860aea3ae7f36652af6a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Project: X-ray image reader
# https://github.com/silx-kit/fabio
#
#
# Copyright (C) European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jrme Kieffer (Jerome.Kieffer@ESRF.eu)
#
# Permission is hereby granted, free of charge, to any person obtaini... | 35.983607 | 92 | 0.650342 |
762066f7d39644fbbdc113555a1f0d651b3596ba | 8,699 | py | Python | tests/components/tasks/gqa_tests.py | aasseman/pytorchpipe | 9cb17271666061cb19fe24197ecd5e4c8d32c5da | [
"Apache-2.0"
] | 232 | 2019-04-15T20:49:06.000Z | 2022-03-31T06:44:08.000Z | tests/components/tasks/gqa_tests.py | aasseman/pytorchpipe | 9cb17271666061cb19fe24197ecd5e4c8d32c5da | [
"Apache-2.0"
] | 53 | 2019-04-19T22:50:16.000Z | 2019-08-07T21:23:08.000Z | tests/components/tasks/gqa_tests.py | aasseman/pytorchpipe | 9cb17271666061cb19fe24197ecd5e4c8d32c5da | [
"Apache-2.0"
] | 34 | 2019-04-15T20:49:22.000Z | 2021-12-07T17:04:01.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) tkornuta, IBM Corporation 2019
#
# 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 require... | 42.642157 | 222 | 0.620991 |