hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b32885657370cb4b8b7d916d4f131943c631e50 | 421 | py | Python | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | import requests
import json
def initialize_app(config):
return Fexr(config)
class Fexr:
"""interface"""
def __init__(self, config):
self.botEmail = config["botEmail"]
self.botPassword = config["botPassword"]
self.usageId = config["usageId"]
self.config = None
self.... | 21.05 | 48 | 0.638955 | 337 | 0.800475 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.111639 |
2b32a48c0617127fad513107b6b55bc15c45960a | 15,313 | py | Python | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import requests\n",
"\n",
"from splinter import Browser\n",
"from selenium import webdriver\n",
"from bs4 import BeautifulSoup"
]
},
{
"cel... | 26.724258 | 606 | 0.46614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11,128 | 0.726134 |
2b349e7b7c259815a84ae590fa15ba7d1700f32b | 2,339 | py | Python | app/api/inventory_routes.py | jon-wehner/MyPantry | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 9 | 2021-03-02T16:52:40.000Z | 2021-03-03T16:51:46.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 50 | 2021-03-12T16:04:49.000Z | 2022-03-17T20:47:00.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | null | null | null | from flask import Blueprint, request
from app.models import UserItem, User, db
from app.forms import InventoryItemForm
from flask_login import login_required
from app.utils import validation_errors_to_error_messages
inventory_routes = Blueprint('inventory', __name__)
# Get all of a user's Items
@inventory_routes.rou... | 33.898551 | 75 | 0.655408 | 0 | 0 | 0 | 0 | 1,999 | 0.854639 | 0 | 0 | 415 | 0.177426 |
2b359813930ee57144554a0a7d67900329a97efb | 1,208 | py | Python | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 2 | 2018-02-28T19:03:28.000Z | 2021-09-30T13:40:23.000Z | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 6 | 2020-02-11T21:53:58.000Z | 2022-02-10T07:57:58.000Z | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:05:20.000Z | 2019-12-05T06:05:20.000Z | """
Copyright 2014-2018 University of Illinois
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 writ... | 32.648649 | 94 | 0.701159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 765 | 0.633278 |
2b37b39bc7440eb3efd9fb78397787d52e20da21 | 760 | py | Python | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T00:32:44.000Z | 2022-01-09T00:32:44.000Z | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/jpivarski/doremi/blob/main/LICENSE
from ._version import version as __version__
from typing import Optional
import doremi.parsing
import doremi.abstract
import doremi.concrete
def compose(
source: str,
scale: doremi.concrete.AnyScale = "C major",
bpm: floa... | 26.206897 | 81 | 0.743421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 112 | 0.147368 |
2b39d94acac82237469a41ceac176d9288d8268a | 522 | py | Python | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null |
import flask_excel as excel
from app.api import bp
from flask import request
from app.utils.user_auth import token_auth
from app.models import Alert, InactivityAlert
from sqlalchemy.orm import with_polymorphic
from dateutil import parser
@bp.route('/utility/csv', methods=['POST'])
@token_auth.login_required
def get_c... | 23.727273 | 51 | 0.758621 | 0 | 0 | 0 | 0 | 167 | 0.319923 | 0 | 0 | 39 | 0.074713 |
2b3b7c8eae4ae649f3b1f6cafa46b3e7c9a4ac45 | 20,937 | py | Python | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 28 | 2016-02-26T00:54:16.000Z | 2022-02-24T12:21:15.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T21:49:09.000Z | 2016-07-12T22:11:39.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 9 | 2016-06-08T14:42:28.000Z | 2021-11-11T03:51:34.000Z | """
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
bu... | 47.910755 | 169 | 0.580742 | 19,997 | 0.955103 | 0 | 0 | 0 | 0 | 0 | 0 | 6,972 | 0.332999 |
2b3e16bac852a65f995976462d16cdfaa6ccae29 | 36,434 | py | Python | networks_utils.py | jviquerat/U-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | null | null | null | networks_utils.py | jviquerat/U-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | 1 | 2021-11-18T09:29:19.000Z | 2021-12-14T08:33:44.000Z | networks_utils.py | jviquerat/u-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | 1 | 2021-07-20T08:23:27.000Z | 2021-07-20T08:23:27.000Z | # Import stuff
import sys
import math
import keras
# Additional imports from keras
from keras import regularizers
from keras import optimizers
from keras.models import Model
from keras.layers import Input
from keras.layers import conca... | 41.261608 | 124 | 0.625542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,598 | 0.181095 |
2b3e41b019fe6b2d3864d763d679862e197cea39 | 7,447 | py | Python | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. 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 applicable law or a... | 35.293839 | 79 | 0.674903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,657 | 0.356788 |
2b3fd90b08b658e73198cb9b547400cb33e29f70 | 10,934 | py | Python | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 2 | 2019-09-05T13:26:55.000Z | 2019-11-27T17:23:13.000Z | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | null | null | null | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 3 | 2018-09-20T13:03:05.000Z | 2021-12-09T09:31:07.000Z | import argparse
import numpy as np
import os
import sys
import matplotlib
matplotlib.use('Agg')
import json
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import mpl_toolkits.axes_grid.inset_locator
import helper as hf
import plot_helper as phf
import seaborn as sns
import scipy.stats as stat
fr... | 36.691275 | 247 | 0.587525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,596 | 0.328882 |
2b3fdcb67a067b54f957d1bd2d0f7f8ff8e0d97e | 4,306 | py | Python | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | 1 | 2020-08-11T15:40:02.000Z | 2020-08-11T15:40:02.000Z | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | # importing all required libraries
import os
import traceback
# importing libraries for computer vision
import numpy as np
import cv2
import imutils
from imutils import contours
from imutils.perspective import four_point_transform
from skimage.filters import threshold_local
# importing libraries to read text from im... | 30.323944 | 114 | 0.594055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 636 | 0.147701 |
2b421ace835f65630586818249ab3197ef13ff58 | 1,991 | py | Python | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | import sqlalchemy
import pyodbc
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, DateTime, Float
from sqlalchemy.sql import func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_utils import database_exists, create_database
from sqlalchemy.orm import sessionmak... | 28.855072 | 115 | 0.705173 | 576 | 0.289302 | 0 | 0 | 0 | 0 | 0 | 0 | 792 | 0.39779 |
2b42e860d0ae1b98081e8bfa9a5444fe0146b12b | 943 | py | Python | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman_title = r"""
____ ____ ____ ____ ____ ____ ____
||H ||||a ||||n ||||g ||||m ||||a ||||n ||
||__||||__||||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\||/__\||/__\| """
hangman_stages = [r"""
____
|/ |
|
|
|
|
==... | 16.839286 | 52 | 0.139979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 894 | 0.948038 |
2b43532c39ab8e6417a57dfd057de5791661d19d | 7,572 | py | Python | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 Derek Selander
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | 35.716981 | 155 | 0.644216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,245 | 0.692684 |
2b446474ab736a03796add587552ea1e155e2ffd | 888 | py | Python | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | 1 | 2017-01-19T02:02:15.000Z | 2017-01-19T02:38:58.000Z | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
from django import forms
from django.contrib.auth import authenticate
#from django.contrib.auth import login
class LoginForm(forms.Form):
username = forms.CharField(max_length=255, required=True)
password = forms.CharField(widget=forms.PasswordInput, required=True)
def clean(self):
... | 32.888889 | 91 | 0.699324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 886 | 0.997748 |
2b452016fd5d89254447c86f05dc5c9a851e0645 | 7,251 | py | Python | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import math
from matplotlib import patches
from matplotlib import transforms
import matplotlib.colors as colors
from matplotlib import cm
from matplotlib import rc
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=False)
rc('mathtext', fontset='cm... | 35.028986 | 119 | 0.655358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,488 | 0.205213 |
2b46780622ca167e59a3a3ad6cc2146cc6ba62f4 | 4,309 | py | Python | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | 3 | 2020-11-29T06:36:23.000Z | 2021-11-28T13:10:46.000Z | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | import os
import flask
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objects as go
import dash_defer_js_import as dji
import numpy as np
from components import solve
external_sty... | 33.403101 | 159 | 0.609654 | 0 | 0 | 0 | 0 | 318 | 0.073799 | 0 | 0 | 1,563 | 0.362729 |
2b489fbcfce2c4d5dd4a28fb019c7e2eb148afb0 | 18,525 | py | Python | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-03-12T00:40:13.000Z | 2021-03-12T00:40:13.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-04-02T04:40:38.000Z | 2021-04-02T04:42:20.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | null | null | null | from imports import WDShorcuts
from imports import press_key_b4, activate_window, tk_msg
from imports import TimeoutException, ElementClickInterceptedException, NoSuchElementException, NoAlertPresentException
from imports import ActionChains
from imports import Keys, By, WebDriverWait, expected_conditions
from imports ... | 40.097403 | 134 | 0.577436 | 17,981 | 0.969274 | 0 | 0 | 0 | 0 | 0 | 0 | 5,117 | 0.275834 |
2b4920cd2300bafcb005d22098eb6361aa94da89 | 15,125 | py | Python | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | 2 | 2021-04-09T20:38:57.000Z | 2022-01-03T09:19:27.000Z | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | """
## =========================================================================== ##
MIT License
Copyright (c) 2021 Roman Parak
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction... | 42.130919 | 204 | 0.579967 | 8,418 | 0.55568 | 0 | 0 | 3,126 | 0.20635 | 0 | 0 | 9,977 | 0.658591 |
2b4a35412c05702e2d3412785226759c63a9cac5 | 1,175 | py | Python | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 10 | 2017-01-05T17:30:48.000Z | 2021-09-18T15:04:20.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 2 | 2019-07-21T10:48:42.000Z | 2022-02-16T20:36:45.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 12 | 2017-01-05T18:50:30.000Z | 2021-10-05T07:35:45.000Z | # installer for the 'basic' skin
# Copyright 2014 Matthew Wall
from weecfg.extension import ExtensionInstaller
def loader():
return BasicInstaller()
class BasicInstaller(ExtensionInstaller):
def __init__(self):
super(BasicInstaller, self).__init__(
version="0.1",
name='basic... | 32.638889 | 74 | 0.469787 | 1,016 | 0.864681 | 0 | 0 | 0 | 0 | 0 | 0 | 441 | 0.375319 |
2b4a876ac0b876943151201b66e9e6e75e65f68a | 4,953 | py | Python | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | 1 | 2021-12-02T15:13:47.000Z | 2021-12-02T15:13:47.000Z | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | null | null | null | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | null | null | null | import os
import shutil
import re
import pytest
from archiver.extract import decrypt_existing_archive
from archiver.helpers import get_absolute_path_string
from .archiving_helpers import assert_successful_archive_creation, assert_successful_action_to_destination, add_prefix_to_list_elements, compare_listing_files, val... | 43.447368 | 236 | 0.816475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 478 | 0.096507 |
2b4b5ab3945168fc3e2cef39dd3c30ec01ea875a | 116 | py | Python | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | text = """
#include "TreeNeighbor.cc"
namespace Spheral {
template class TreeNeighbor< Dim< %(ndim)s > >;
}
"""
| 12.888889 | 49 | 0.637931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 108 | 0.931034 |
2b4bd98e0c177ca5b3a4dad706f295999dd8004f | 10,469 | py | Python | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | #dictawtor
#t.me/dictawt0r
import os
import time
import requests
from threading import Thread
proxy = {"https": "127.0.0.1:8000"}
def snap(phone):
#snap api
snapH = {"Host": "app.snapp.taxi", "content-length": "29", "x-app-name": "passenger-pwa", "x-app-version": "5.0.0", "app-version"... | 73.20979 | 1,080 | 0.650014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,010 | 0.669596 |
2b4bf872bc2a27fddc6346a99b6908fbc9a52903 | 515 | py | Python | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | null | null | null | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | null | null | null | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | 1 | 2021-08-10T14:33:24.000Z | 2021-08-10T14:33:24.000Z | from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
import random
import time
app = Ursina()
from ursina.shaders import lit_with_shadows_shader # you have to apply this shader to enties for them to recieve shadows.
EditorCamera()
Entity(model='plane', scale=10, color=color.g... | 30.294118 | 121 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.161165 |
2b4cafa0713ccff87fbd45632542831ae46ce20c | 3,331 | py | Python | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 1 | 2020-02-08T08:45:47.000Z | 2020-02-08T08:45:47.000Z | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 2 | 2020-03-09T11:31:19.000Z | 2020-03-11T08:00:51.000Z | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 5 | 2019-05-17T10:44:49.000Z | 2022-03-21T18:54:58.000Z | # -*- coding: utf-8 -*-
# Copyright © 2014 Cask Data, Inc.
#
# 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... | 36.206522 | 113 | 0.667067 | 2,542 | 0.762905 | 0 | 0 | 298 | 0.089436 | 0 | 0 | 1,043 | 0.313025 |
2b4fc66f8378ab47766265034b510874f15cbe9d | 1,784 | py | Python | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | 2 | 2016-07-01T21:44:21.000Z | 2016-07-04T01:40:46.000Z | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | null | null | null | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Historian discovers what you did last quarter."""
from datetime import datetime, timezone
from os import mkdir
from shutil import rmtree
from sys import exit
from configobj import ConfigObj
import sources
def main():
"""Generate reports of online activity."""
try:
config ... | 30.237288 | 78 | 0.598094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 452 | 0.253363 |
2b522e42fdec51401cf2c96d9e000b4b82299579 | 4,445 | py | Python | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | null | null | null | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | null | null | null | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | 1 | 2021-11-16T14:38:22.000Z | 2021-11-16T14:38:22.000Z | import numpy as np
import pandas as pd
from abc import ABC, abstractmethod
class AbstractEnsembleVote(ABC):
@abstractmethod
def fit(self, train):
pass
@abstractmethod
def predict(self, predictions):
pass
class UnweightedVote(AbstractEnsembleVote):
def __init__(self):
pass... | 28.312102 | 78 | 0.564004 | 4,352 | 0.979078 | 0 | 0 | 118 | 0.026547 | 0 | 0 | 955 | 0.214848 |
2b5509332abe32e34973d35ac1a06d05d2a1a9d0 | 1,581 | py | Python | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pika
import random
import time
import sys
import datetime
import QoECurve
'''
MsgBroker Configuration
'''
max_priority = 250
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
c_properties = dict()
c_properties['x-max-priority'] = ... | 29.277778 | 96 | 0.68754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 573 | 0.362429 |
2b5653d2af00c13103b575ebb27d1a523e5c40b6 | 1,723 | py | Python | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | 1 | 2019-05-29T23:54:24.000Z | 2019-05-29T23:54:24.000Z | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | """Project Euler - Problem 12 - http://projecteuler.net/problem=12"""
import sys
import time
import tools.timeutils as timeutils
def number_of_factors(n):
"""
Returns the number of factors of number n
Using a list to keep the factors found of number n
"""
max_limit = 0
nr_factors = 2 # 1 and... | 29.706897 | 77 | 0.612304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 803 | 0.466048 |
2b56b38a493baecfbe24f9c81a16e03dcfd892d0 | 5,203 | py | Python | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | from scipy import stats
import pandas as pd
import numpy as np
path_mutlivariate_feat_imps = '/n/groups/patel/samuel/EWAS/feature_importances_paper/'
Environmental = ['Clusters_Alcohol', 'Clusters_Diet', 'Clusters_Education', 'Clusters_ElectronicDevices',
'Clusters_Employment', 'Clusters_FamilyHistory'... | 74.328571 | 573 | 0.645397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,609 | 0.501441 |
2b57ab90dea74a7557a373ef4b1e5309bd66e57b | 2,255 | py | Python | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
import functools
from typing import Optional, Type, Any, Callable
from types import TracebackType
import tensorflow as tf
from ..tensor.factory import AbstractTensor
__PROTOCOL__ = None
global_cache_updators = list()
nodes = dict()
class Protocol(ABC):
"""
Protocol is t... | 27.168675 | 145 | 0.68071 | 672 | 0.298004 | 0 | 0 | 560 | 0.248337 | 0 | 0 | 713 | 0.316186 |
2b581a0af9feed5e1273d75efc1dc50c412e4639 | 42 | py | Python | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 129 | 2015-10-08T18:49:38.000Z | 2022-02-19T23:16:24.000Z | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 941 | 2015-08-31T17:57:54.000Z | 2022-03-16T22:02:34.000Z | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 31 | 2016-03-06T09:25:02.000Z | 2021-02-03T11:53:29.000Z | default_app_config = 'ui.config.UIConfig'
| 21 | 41 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0.47619 |
2b58ade6112166878322d31fab707c7a8ad56963 | 820 | py | Python | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z | #setup
def countingSort(a = []):
finalList = [0] * len(a)
maxVal = a[0]
minVal = a[0]
for i in range(1, len(a)):
if a[i] > maxVal:
maxVal = a[i]
elif a[i] < minVal:
minVal = a[i]
k = maxVal - minVal + 1
countList = [0]*k
for i i... | 20.5 | 55 | 0.452439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0.023171 |
2b58d366bf3ed1f98d609fd61a964c71dab67651 | 8,544 | py | Python | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | 3 | 2022-01-17T14:29:26.000Z | 2022-03-31T13:06:55.000Z | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | import math
import numpy as np
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as pb
import random
from datetime import datetime
import time
import sys
import csv
def dist(x, y, pos):
return math.sqrt((pos[0]-x)**2 + (pos[1]-y)**2)
area... | 42.934673 | 193 | 0.622659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,611 | 0.422636 |
2b5ab16f7eac57edcf489858361268d92f9398a8 | 538 | py | Python | devito/devito/foreign/__init__.py | LukasMosser/stochastic_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 20 | 2019-08-01T19:08:10.000Z | 2022-03-20T05:04:06.000Z | devito/devito/foreign/__init__.py | esgomi/gan_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 1 | 2019-12-05T13:00:14.000Z | 2019-12-05T13:00:14.000Z | devito/devito/foreign/__init__.py | esgomi/gan_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 12 | 2019-10-03T14:47:48.000Z | 2021-09-22T14:06:47.000Z | """
The ``foreign`` Devito backend is meant to be used by codes that don't
run Python natively. This backend is only capable of generating and compiling
kernels; however, kernels must be executed explicitly from outside Devito.
Further, with the ``foreign`` backed, Devito doesn't allocate any data.
"""
# The following... | 44.833333 | 84 | 0.789963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 369 | 0.685874 |
2b5d21bc7f3bf38099a6104d053f835c59544b6b | 2,764 | py | Python | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | 1 | 2018-02-24T19:13:01.000Z | 2018-02-24T19:13:01.000Z | #/usr/bin/env python3.4
#
# Copyright (C) 2016 The Android Open Source Project
#
# 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 requir... | 35.435897 | 79 | 0.678365 | 1,894 | 0.685239 | 0 | 0 | 0 | 0 | 0 | 0 | 826 | 0.298842 |
2b5f8027129b5d5b1861d24a6459864da8da66d7 | 293 | py | Python | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | null | null | null | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | null | null | null | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | 1 | 2022-03-19T16:11:53.000Z | 2022-03-19T16:11:53.000Z | from src.config_load import input_data, steel_data, plots_cfg
from src.data.data import getFullData
from src.plotting.plot_all import plotAllFigs
outputData = getFullData(input_data.copy(), steel_data)
figsDefault = plotAllFigs(outputData, input_data.copy(), plots_cfg, global_cfg='webapp')
| 36.625 | 88 | 0.822526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.027304 |
2b5f838d508a37329b5f07cb4bf0d798c35b1875 | 125 | py | Python | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 55 | 2020-09-02T20:10:30.000Z | 2022-03-16T01:25:15.000Z | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 1 | 2021-01-24T12:21:27.000Z | 2021-12-07T02:10:14.000Z | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 5 | 2020-09-13T13:48:28.000Z | 2021-11-18T09:45:02.000Z | from .colornamer import get_color_from_rgb
from .colornamer import get_color_from_lab
from .colornamer import get_color_json
| 31.25 | 42 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2b60e2628d815b25ace1f2175354070d83869ce9 | 242 | py | Python | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | 2 | 2020-12-25T20:13:04.000Z | 2021-02-04T19:09:11.000Z | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | """This module defines the main router among all ROOT endpoints"""
from fastapi import APIRouter
from .healthcheck import router as healthcheck_router
router = APIRouter()
router.include_router(healthcheck_router, include_in_schema=False)
| 26.888889 | 66 | 0.822314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 0.272727 |
2b61d7390ab2819c257c38fbffc3a703a9852f12 | 5,176 | py | Python | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-03-30T11:18:37.000Z | 2022-03-30T11:18:37.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-02-23T10:26:38.000Z | 2022-02-23T10:26:38.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | null | null | null | from PEPit import PEP
from PEPit.functions import SmoothStronglyConvexFunction
def wc_accelerated_gradient_convex(mu, L, n, verbose=1):
"""
Consider the convex minimization problem
.. math:: f_\\star \\triangleq \\min_x f(x),
where :math:`f` is :math:`L`-smooth and :math:`\\mu`-strongly convex (:mat... | 41.079365 | 118 | 0.624614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,063 | 0.784666 |
2b61ffc6917a5f272ca7c83fd65079c3be07964c | 3,797 | py | Python | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import pcraster
import pcraster.framework.dynamicPCRasterBase as dynamicPCRasterBase
import pcraster.framework.mcPCRasterBase as mcPCRasterBase
import pcraster.framework.pfPCRasterBase as pfPCRasterBase
import pcraster.framework.staticPCRasterBase as staticPCR... | 27.316547 | 121 | 0.738214 | 3,432 | 0.903871 | 0 | 0 | 0 | 0 | 0 | 0 | 195 | 0.051356 |
2b62bceba3f71a5c3bc433ee4f5eefd5ac1873e5 | 4,052 | py | Python | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 5 | 2020-07-30T02:35:20.000Z | 2020-12-24T01:26:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 6 | 2021-03-04T10:30:11.000Z | 2022-03-16T16:47:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 2 | 2020-12-08T10:05:02.000Z | 2022-03-10T09:41:19.000Z | #!/usr/bin/env python
# SPDX-License-Identifier: MIT
# Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
from __future__ import print_function
import os
import sys
import json
import psycopg2
import argparse
import gzip
sys.path.append(os.path.join(os.path.dirname(__file__), '../../comm... | 32.15873 | 107 | 0.67152 | 2,358 | 0.581935 | 0 | 0 | 0 | 0 | 0 | 0 | 998 | 0.246298 |
2b663e447ff6dde531cade9c45704d5b63408a17 | 4,618 | py | Python | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | import torch
from src.transforms import MultiNodeData
import collections
import dill
import os
from src.utils import create_dirs
class Sequencer(object):
"Determines sequences in a dataset and annotates elements accordingly."
def __init__(self, path_to_dir : str, node_classes : list = [], graph_classes :... | 40.867257 | 153 | 0.60654 | 4,473 | 0.968601 | 0 | 0 | 728 | 0.157644 | 0 | 0 | 796 | 0.172369 |
2b676d4042d46bee66b146595fc707221e3e2e2a | 2,184 | py | Python | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | from math import sqrt, sin, cos, pi, ceil
class HexLattice:
def __init__(self, pitch, pattern):
self.pitch = pitch
self.pattern = pattern
def num_nodes(self):
return len(self.pattern)
def num_rings(self):
return ceil((1 + sqrt(1 + 4 / 3 * (self.num_nodes() - 1))) / 2)
... | 33.6 | 104 | 0.42674 | 2,133 | 0.976648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2b682e0dcc50ac9dca2be35fefa089b6c34ff322 | 798 | py | Python | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | 3 | 2016-01-19T19:41:19.000Z | 2016-11-23T13:42:06.000Z | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | null | null | null | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
from argparse import ArgumentParser
from jwkest.jwk import RSAKey, import_rsa_key_from_file
from oic import rndstr
from oidc_fed.util import write_private_key_to_jwk, write_key_to_jwk
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("hostname")
parser.add_... | 38 | 112 | 0.729323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 143 | 0.179198 |
2b696f156bbe3a81a3af6dc7e753998acc610ace | 7,144 | py | Python | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 3 | 2019-04-21T13:13:02.000Z | 2020-10-15T12:44:23.000Z | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | null | null | null | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 2 | 2018-11-06T18:34:33.000Z | 2019-04-04T14:16:57.000Z | #!/usr/bin/env python3
from LoLIM.stationTimings.plot_multiple_data_all_stations import plot_blocks
## these lines are anachronistic and should be fixed at some point
from LoLIM import utilities
utilities.default_raw_data_loc = "/exp_app2/appexp1/public/raw_data"
utilities.default_processed_data_loc = "/home/brian/p... | 62.666667 | 962 | 0.656355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,086 | 0.711926 |
2b6ab14e30c87422b9c8105893ef622c024762db | 121 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 1 | 2020-06-25T02:17:26.000Z | 2020-06-25T02:17:26.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | <warning descr="Unused import statement 'import spam'">import <error descr="No module named spam">spam</error></warning>
| 60.5 | 120 | 0.760331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 61 | 0.504132 |
2b6c7237fa9a38e57467338c82e8ab717aefaf34 | 2,383 | py | Python | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | 1 | 2018-12-24T09:07:43.000Z | 2018-12-24T09:07:43.000Z | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | null | null | null | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | null | null | null | import json
import sys
import pytest
from ansible.compat.tests.mock import patch
from ansible.module_utils import basic
from ansible.module_utils._text import to_bytes
# FIXME: paths/imports should be fixed before submitting a PR to Ansible
sys.path.append('lib/ansible/modules/cloud/kubevirt')
import kubevirt_vm_sta... | 35.044118 | 79 | 0.718003 | 1,784 | 0.748636 | 0 | 0 | 1,593 | 0.668485 | 0 | 0 | 657 | 0.275703 |
2b6e420a92dfca372820374b206351ebdc97a95a | 1,105 | py | Python | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 6 | 2021-07-29T03:26:20.000Z | 2022-01-28T15:11:45.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 2 | 2021-09-30T09:47:23.000Z | 2022-01-31T03:08:24.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 5 | 2021-08-10T06:41:11.000Z | 2022-01-29T17:50:20.000Z | """
# CREATE BINARY TREE FROM POSTORDER AND INORDER
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
For example, given
inorder = [9,3,15,20,7]
postorder = [9,15,7,20,3]
Return the following binary tree:
3
- -
9 20... | 24.021739 | 75 | 0.58733 | 720 | 0.651584 | 0 | 0 | 0 | 0 | 0 | 0 | 380 | 0.343891 |
2b700bb220db47ad3294d7a1cf69cd6666d04ddf | 460 | py | Python | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | import theano
def test_stack_trace():
orig = theano.config.traceback__limit
try:
theano.config.traceback__limit = 1
v = theano.tensor.vector()
assert len(v.tag.trace) == 1
assert len(v.tag.trace[0]) == 1
theano.config.traceback__limit = 2
v = theano.tensor.vecto... | 27.058824 | 45 | 0.606522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2b707d6571d63f6cfb0ac8817d11200f9196de51 | 1,208 | py | Python | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | 1 | 2022-02-22T12:22:48.000Z | 2022-02-22T12:22:48.000Z | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | import torch
from torchdiffeq.covar.solvers import FixedGridODESolver_Covar
from torchdiffeq._impl.rk_common import rk4_alt_step_func
class Euler_Covar(FixedGridODESolver_Covar):
order = 1
def __init__(self, eps=0., **kwargs):
super(Euler_Covar, self).__init__(**kwargs)
self.eps = torch.as_te... | 30.974359 | 77 | 0.664735 | 1,065 | 0.881623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2b70cc37176d4ff82b56496b3bb0b59777850b06 | 1,317 | py | Python | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-04 17:25
from django.db import migrations, models
import p2.core.validators
class Migration(migrations.Migration):
dependencies = [
('p2_core', '0021_auto_20190517_1647'),
]
operations = [
migrations.AlterField(
model_name='blob',
... | 42.483871 | 369 | 0.686409 | 1,197 | 0.908884 | 0 | 0 | 0 | 0 | 0 | 0 | 658 | 0.49962 |
2b710f90f0702741396a2856184f7a5db291acfa | 303 | py | Python | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
__all__ = ['TraceControl', 'TraceControlInterface']
class TraceControlInterface(ApiInterfaceBase):
max_trace_timeout_ms: int
class TraceControl(PropertyMapper, TraceControlInterface):
pass
| 21.642857 | 58 | 0.805281 | 143 | 0.471947 | 0 | 0 | 0 | 0 | 0 | 0 | 37 | 0.122112 |
2b73520f6d9b5c53da710ad7256889ffc791f69c | 2,627 | py | Python | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | import cStringIO
import tempfile
import mock
from attrdict import AttrDict
from logit.main import get_arg_parser, main
from logit.crypt import get_secret_key, encrypt_json, decrypt_json
def test_get_arg_parser():
"""Test get arg parser."""
get_arg_parser()
@mock.patch('logit.main.get_console_input')
@mock... | 30.195402 | 118 | 0.644081 | 0 | 0 | 0 | 0 | 1,057 | 0.40236 | 0 | 0 | 797 | 0.303388 |
2b76612269c85e9f247752fe2f6a4d09415e6758 | 2,644 | py | Python | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null |
"""Json utils to print, save and load training results."""
import os
import json
from bson import json_util
import tensorflow as tf
from tensorflow.python.saved_model import builder as saved_model_builder, tag_constants
from tensorflow.python.client import device_lib
import keras.backend as K
from gradient_sdk impor... | 28.430108 | 87 | 0.655446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 468 | 0.177005 |
2b774945cd3adbd39f821d0dd8b129b94b59f146 | 2,941 | py | Python | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 3 | 2021-12-30T19:45:24.000Z | 2022-03-07T19:14:26.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 29 | 2022-01-07T20:07:48.000Z | 2022-03-30T01:10:16.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 4 | 2022-01-07T20:17:56.000Z | 2022-03-24T00:20:50.000Z | import os
import disnake
from disnake.ext import commands, tasks
from dotenv import load_dotenv
class Taunts(commands.Cog):
"""Replies with taunts from AoE2"""
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="1")
async def yes_1(self, ctx: commands... | 29.118812 | 80 | 0.555593 | 2,771 | 0.941236 | 0 | 0 | 2,561 | 0.869905 | 1,981 | 0.672894 | 1,281 | 0.435122 |
2b77f7eedc8e7e3dc9ed83b6fd8ae34f45c97d94 | 2,475 | py | Python | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | import config
import tensorflow as tf
import tensorflow.keras.layers as layers
from models.Blocks import *
class DeepCNN(tf.keras.Model):
def __init__(self, hparams, *args, **kwargs):
super(DeepCNN, self).__init__(*args, **kwargs)
self.layers_count = hparams[config.HP_DEEP_LAYERS]
self.d... | 35.869565 | 93 | 0.623434 | 2,364 | 0.955152 | 0 | 0 | 0 | 0 | 0 | 0 | 54 | 0.021818 |
2b78cd2e8c328cd6e908ab353389cea7a0e9d949 | 4,517 | py | Python | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Finding celebrities problem in Z3
#
# From Uwe Hoffmann
# "Finding celebrities at a party"
# http://www.codemanic.com/papers/celebs/celebs.pdf
# """
# Problem: Given a list of people at a party and for each person the list of
# people they know at the party, we want t... | 26.570588 | 109 | 0.590658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,395 | 0.530219 |
2b79194f124eff83fdb228ce81236856c628bf5e | 3,495 | py | Python | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 35 | 2020-06-23T05:33:50.000Z | 2021-11-22T08:22:42.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 15 | 2020-12-28T05:31:06.000Z | 2021-01-22T06:49:28.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 2 | 2020-06-30T10:02:05.000Z | 2021-05-22T09:57:19.000Z | import os
import pandas as pd
from base import BaseFeature
from encoding_func import target_encoding
from google.cloud import storage, bigquery
from google.cloud import bigquery_storage_v1beta1
class CountEncodingPresentDomains(BaseFeature):
def import_columns(self):
return [
"tweet_id",
... | 35.663265 | 109 | 0.578827 | 3,230 | 0.924177 | 0 | 0 | 0 | 0 | 0 | 0 | 1,640 | 0.469242 |
2b7933c47db153c1ec83f5874cfd167e2b409ed3 | 1,214 | py | Python | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def prior(mu):
"""
Densidad de probabilidad de mu
"""
p = np.ones(len(mu))/(mu.max()-mu.min())
return p
def like(x, sigma, mu):
"""
Likelihod de tener un dato x e incertidumbre sigma
"""
L = np.ones(len(mu))
for x_i,sigma_i in ... | 22.072727 | 86 | 0.581549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 272 | 0.224053 |
2b795e47993f764317453f8d08fc171b991375f7 | 582 | py | Python | quickSorting.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z | def partition(arr, low, high):
i = (low - 1)
pivot = arr[high]
for j in range(low, high):
if arr[j] <= pivot:
i = i + 1
arr[i], arr[j] = arr[j], arr[i]
arr[i + 1], arr[high] = arr[high], arr[i + 1]
return i + 1
def quickSorting(arr, low, high):
if low < hig... | 25.304348 | 49 | 0.536082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 0.049828 |
990bb4f11a86c646dac3a761a312f8d1164528ff | 10,032 | py | Python | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | import bpy
import math
from . import data
# create a flat lens surface
def flat_surface(half_lens_height, ior, position, name):
bpy.ops.mesh.primitive_circle_add(vertices = 64, radius = half_lens_height, fill_type = 'TRIFAN', calc_uvs = False, location=(0,0,0), rotation = (0, -3.1415926536/2.0, 0))
bpy.ops.ob... | 53.935484 | 324 | 0.718501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,367 | 0.235945 |
990d44c23c9a98487c5847b19f0dbb7393d43a48 | 326 | py | Python | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | 7 | 2020-02-11T23:32:22.000Z | 2022-03-11T23:37:06.000Z | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.generics import (CreateAPIView, UpdateAPIView,)
from api.account.REST_API.serializers import UserProfileSerializer
class CreateUserAPIView(CreateAPIView):
permission_classes = (AllowAny,)
serializer_class = UserProfileSerial... | 29.636364 | 67 | 0.840491 | 121 | 0.371166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
990efde977aade2108c67c75a84ae6c564a508e6 | 3,321 | py | Python | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null |
from python_anticaptcha import AnticaptchaClient, NoCaptchaTaskProxylessTask
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
import config
api_key ... | 41.5125 | 227 | 0.776272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,258 | 0.679916 |
99140dc5ada574c50a6593e547dcee3d99a877a7 | 360 | py | Python | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import claripy
import logging
from ..java import JavaSimProcedure
log = logging.getLogger(name=__name__)
class Random(JavaSimProcedure):
__provides__ = (
('java.lang.Math', 'random'),
)
def run(self):
log.debug('Called SimProcedure java.lang.Math.random with args')
return clarip... | 21.176471 | 72 | 0.691667 | 250 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 87 | 0.241667 |
99149757f665b2f4b37b4dcf179960c645b6306b | 2,437 | py | Python | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 10 | 2021-07-25T12:44:34.000Z | 2022-03-23T04:07:12.000Z | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | null | null | null | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 5 | 2021-07-25T12:44:35.000Z | 2022-03-26T16:51:44.000Z | import os
import sys
import h5py
import _pickle as cPickle
import numpy as np
import requests
import torch
from torch.utils.data import Dataset
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from utils.dataset import Dictionary
MAX_QUES_SEQ_LEN = 26
NO_OBJECTS = 36
URL_FEATURE_SERVER =... | 30.08642 | 76 | 0.591301 | 2,078 | 0.852688 | 0 | 0 | 0 | 0 | 0 | 0 | 275 | 0.112844 |
9915026ad17aa054b3b1dcf4b6564ca6416fe1c6 | 1,963 | py | Python | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# from __future__ import unicode_literals
__author__ = "d01 <Florian Jung>"
__email__ = "jungflor@gmail.com"
__copyright__ = "Copyright (C) 2015-16, Florian JUNG"
_... | 27.263889 | 72 | 0.665818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 847 | 0.431482 |
99175e305e91f74cfd9b97e4031f7f7524add878 | 6,639 | py | Python | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
demo_nonlinear_data_fitting.py
Fit a model A * sin(W * t + phi) to the data f(X, ti) = yi to find A, W, and phi
m = number of data points
Solve a system of non-linear equations f(X, ti) - yi = 0:
x1 * sin(x2 * t + x3) - y = 0, where X = [x1 = A, x2 = W, x3 = phi].T, t = [t1, t2, ..., tm].T and y = [y1, y2, ..... | 45.163265 | 166 | 0.613044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,204 | 0.482603 |
99192fe19d128cae27dbb4d9d6db56cd2b6e1efe | 2,885 | py | Python | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | 1 | 2018-09-22T23:58:55.000Z | 2018-09-22T23:58:55.000Z | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) 2018-2019 Nekoka.tt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without li... | 28.564356 | 89 | 0.693934 | 322 | 0.111612 | 0 | 0 | 0 | 0 | 0 | 0 | 1,987 | 0.688735 |
991a025602e05e7286a371a273b532009c3af8bd | 3,379 | py | Python | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# 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 ... | 33.127451 | 100 | 0.643682 | 2,494 | 0.738088 | 0 | 0 | 73 | 0.021604 | 0 | 0 | 1,489 | 0.440663 |
991a268e1607c44fc5fec2b754da258201620b92 | 4,247 | py | Python | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 256 | 2020-09-09T03:27:57.000Z | 2022-03-30T10:06:06.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 604 | 2020-09-08T12:29:49.000Z | 2022-03-31T21:51:08.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 160 | 2020-09-09T14:06:07.000Z | 2022-03-30T14:50:48.000Z | """
Copyright (c) 2019 Intel 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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 36.612069 | 98 | 0.607252 | 3,453 | 0.813045 | 0 | 0 | 0 | 0 | 0 | 0 | 791 | 0.186249 |
991b66a79e8a75a7529bdc08213b2d0422fc5350 | 6,598 | py | Python | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 2 | 2020-04-09T16:41:25.000Z | 2020-08-25T21:07:53.000Z | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 15 | 2020-02-12T14:57:30.000Z | 2020-11-27T23:34:15.000Z | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 2 | 2020-02-12T14:57:38.000Z | 2021-07-30T11:32:28.000Z | # coding: utf-8
"""
Cherwell REST API
Unofficial Python Cherwell REST API library. # noqa: E501
The version of the OpenAPI document: 9.3.2
Contact: See AUTHORS.
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pycherwell.configuration imp... | 26.18254 | 157 | 0.573052 | 6,257 | 0.948318 | 0 | 0 | 2,834 | 0.429524 | 0 | 0 | 3,028 | 0.458927 |
991d664b4a7ff9ae7464e55cf36f369519e4ab24 | 2,319 | py | Python | release/scripts/addons/oscurart_tools/object/distribute.py | noorbeast/BlenderSource | 65ebecc5108388965678b04b43463b85f6c69c1d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2019-09-16T10:29:19.000Z | 2022-02-11T14:43:18.000Z | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 32.661972 | 76 | 0.645106 | 586 | 0.252695 | 0 | 0 | 0 | 0 | 0 | 0 | 972 | 0.419146 |
991f03bbfaaa813ef12bac646842c1f1126bf936 | 15,782 | py | Python | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | 4 | 2022-01-15T19:50:36.000Z | 2022-01-15T20:16:10.000Z | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
import functools
import multiprocessing
import random
import unittest
import numpy as np
import scipy.special
import helper.basis
import helper.grid
import tests.misc
class Test45SpatAdaptiveUP(tests.misc.CustomTestCase):
@staticmethod
def createDataHermiteHierarchization(p):
n, d, b = 4,... | 34.234273 | 79 | 0.528577 | 15,543 | 0.984856 | 0 | 0 | 4,548 | 0.288176 | 0 | 0 | 734 | 0.046509 |
9920d5f5a9ac7040e34a0fe7f0d9cf42084fcf0a | 776 | py | Python | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | '''
For a flawless upload of many files to all the desired items the following
variables have to be set:
upload_list which is a list of 2-element lists
e2 the 2-element list containing 1. the item id and 2. the folder
from which all files will be upload to the item on TUdatalib
Replace <dir... | 31.04 | 76 | 0.675258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 752 | 0.969072 |
99210064002fc688a9b877de13f6df78c1529245 | 462 | py | Python | unify/tool/create-application.py | unify/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 8 | 2015-03-14T12:23:27.000Z | 2021-01-09T18:00:53.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 1 | 2016-09-29T08:00:57.000Z | 2016-09-29T08:00:57.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 4 | 2015-02-09T05:42:32.000Z | 2018-03-29T07:56:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess, os, sys, optparse
fullpath = os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))
capath = os.path.abspath(
os.path.join(fullpath, "..", "..", "qooxdoo", "qooxdoo", "tool", "bin", "create-application.py")
)
skeletonpath = os.path.abspath(
os.... | 30.8 | 100 | 0.634199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 154 | 0.333333 |
9922c34386986c8e072fc243b53715d54edecc95 | 92 | py | Python | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 3 | 2020-04-01T15:28:25.000Z | 2020-06-06T18:30:34.000Z | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | null | null | null | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 1 | 2020-07-09T06:05:24.000Z | 2020-07-09T06:05:24.000Z | __author__ = """Marcelo Miranda"""
__email__ = 'mesmacosta@gmail.com'
__version__ = '1.1.1'
| 23 | 34 | 0.706522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0.543478 |
9922ce4cce1ba80f386b53ad7c8ac19416945962 | 3,957 | py | Python | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 2 | 2019-04-08T03:42:59.000Z | 2019-10-28T13:42:59.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | """create_slinket_cases.py
Code to create Slinket unit test cases. Runs by taking all SLINKs from a
Timebank parse and put them in files, one for each SLINK relType, as potential
test cases. Files are named slink-cases-RELTYPE.txt, where RELTYPE stands for
one of the relation types.
The output files have lines like
... | 36.638889 | 95 | 0.678039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,201 | 0.303513 |
992435ff8981f52e289f680e8ef2931bd9e513ff | 7,259 | py | Python | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Microsoft 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36.114428 | 98 | 0.688111 | 5,371 | 0.739909 | 0 | 0 | 1,982 | 0.27304 | 0 | 0 | 1,822 | 0.250999 |
99246f4bb7500baea9d62654feeafcb83b335876 | 1,269 | py | Python | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | import pytest
from year_2020.day15.rambunctious_recitation import get_number_spoken
@pytest.mark.parametrize(
"starting_numbers,num_turns,expected",
[
("0,3,6", 1, 0),
("0,3,6", 2, 3),
("0,3,6", 3, 6),
("0,3,6", 4, 0),
("0,3,6", 5, 3),
("0,3,6", 6, 3),
... | 34.297297 | 73 | 0.538219 | 0 | 0 | 0 | 0 | 1,181 | 0.930654 | 0 | 0 | 205 | 0.161545 |
9925c9a2bda0f481aaea1d23f4f43156ce4186d1 | 3,345 | py | Python | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 142 | 2018-06-07T07:43:10.000Z | 2021-10-30T21:06:32.000Z | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 282 | 2018-06-07T08:35:03.000Z | 2021-03-31T03:14:32.000Z | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 19 | 2018-06-19T11:07:53.000Z | 2021-05-13T20:57:04.000Z | import unittest
import clpy
import numpy
class TestConcatenate(unittest.TestCase):
"""test clpy.manipulate.join.concatenate method"""
def get_numpy_clpy_concatenated_result(self, dtype, shapes, axis):
length = []
numpy_ar = []
clpy_ar = []
num_array = len(shapes)
for... | 30.409091 | 76 | 0.616442 | 3,251 | 0.971898 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 0.034679 |
99267bd9ac180f84f2a46d8243bfde7f8c870cf7 | 3,422 | py | Python | pygluu/kubernetes/postgres.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-18T14:51:41.000Z | 2022-03-31T19:59:40.000Z | pygluu/kubernetes/postgres.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 236 | 2020-04-22T08:59:27.000Z | 2022-03-31T07:21:12.000Z | pygluu/kubernetes/postgres.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-19T15:25:59.000Z | 2022-03-16T17:17:36.000Z | """
pygluu.kubernetes.postgres
~~~~~~~~~~~~~~~~~~~~~~~~~~
License terms and conditions for Gluu Cloud Native Edition:
https://www.apache.org/licenses/LICENSE-2.0
Handles Postgres operations
"""
from pygluu.kubernetes.helpers import get_logger, exec_cmd
from pygluu.kubernetes.kubeapi import Kubernetes
from pygluu.... | 52.646154 | 117 | 0.542957 | 3,012 | 0.880187 | 0 | 0 | 0 | 0 | 0 | 0 | 1,309 | 0.382525 |
9928a567b8706306f43d40e3be66c386cb2b3fea | 1,659 | py | Python | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | """
Base class for objects that support entry and exit tracing.
"""
import inspect
from sys import stderr
class TracedObject(object):
entry_trace = False
perf_count = None
@classmethod
def _print_stack(cls, stack, args, levels=6):
print >>stderr, 'Enter:', stack[1][3], stack[1][1], stack[1][... | 28.118644 | 81 | 0.575045 | 1,548 | 0.933092 | 0 | 0 | 1,439 | 0.86739 | 0 | 0 | 202 | 0.12176 |
992c24f78534fed26453b87520fe3136459de217 | 4,333 | py | Python | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 7 | 2021-09-02T08:20:58.000Z | 2022-01-12T11:48:07.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 76 | 2021-09-17T23:01:50.000Z | 2022-03-18T16:42:03.000Z | students/K33421/laboratory_works/Lakiza_Alexander/laboratory_work_3/college_app/views.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | 60 | 2021-09-04T16:47:39.000Z | 2022-03-21T04:41:27.000Z | from rest_framework.authentication import TokenAuthentication
from rest_framework.generics import *
from rest_framework.permissions import *
from .serializers import *
class IsManager(BasePermission):
def has_permission(self, request, view):
return request.user.type == 'manager'
class IsDeputy(BasePermi... | 27.08125 | 61 | 0.769213 | 4,087 | 0.943226 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 0.003923 |
992c259fa36e64e7447e2e6321c3223d9e19047a | 813 | py | Python | hubconf.py | qibaoyuan/fairseq | eabd07fdcfd5b007d05428e81a31b7f3fc5de959 | [
"BSD-3-Clause"
] | 6 | 2020-11-17T18:54:08.000Z | 2022-01-21T16:21:18.000Z | hubconf.py | vineelpratap/fairseq | 208295dfc76492748500f97a4f9a808d8053a184 | [
"BSD-3-Clause"
] | 2 | 2021-01-01T10:57:32.000Z | 2021-01-13T01:17:35.000Z | hubconf.py | vineelpratap/fairseq | 208295dfc76492748500f97a4f9a808d8053a184 | [
"BSD-3-Clause"
] | 1 | 2020-12-29T12:02:44.000Z | 2020-12-29T12:02:44.000Z | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import functools
from fairseq.mod... | 26.225806 | 78 | 0.696187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 443 | 0.544895 |
992cb7733bef125104b89301a157784a8f392eb2 | 1,677 | py | Python | tests/unit/project/libs/user/application/test_password_forget_service.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | 2 | 2020-08-14T21:01:22.000Z | 2021-02-03T12:04:39.000Z | tests/unit/project/libs/user/application/test_password_forget_service.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | null | null | null | tests/unit/project/libs/user/application/test_password_forget_service.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | 1 | 2022-01-10T16:03:59.000Z | 2022-01-10T16:03:59.000Z | from typing import final
from unittest.mock import Mock
import pytest
from aioddd.testing import mock
from project.libs.user.application.password_forget_service import (
UserPasswordForgetService,
)
from project.libs.user.domain.repositories import UserNotifier, UserRepository
from tests.unit.project.libs.user.do... | 39 | 99 | 0.768634 | 1,219 | 0.726893 | 0 | 0 | 1,226 | 0.731067 | 770 | 0.459153 | 100 | 0.05963 |
992d31ef563a84f77f44d14348541fc61f975cc8 | 11,799 | py | Python | tests/test_extractors/body/test_form_fields_extractor.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | 4 | 2022-02-07T05:12:51.000Z | 2022-02-28T12:34:57.000Z | tests/test_extractors/body/test_form_fields_extractor.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | 2 | 2022-01-25T02:05:02.000Z | 2022-01-25T02:38:59.000Z | tests/test_extractors/body/test_form_fields_extractor.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | null | null | null | import sys
import typing
from dataclasses import dataclass
if sys.version_info < (3, 9):
from typing_extensions import Annotated
else:
from typing import Annotated
from pydantic import BaseModel
from starlette.responses import Response
from starlette.testclient import TestClient
from xpresso import App, Form... | 30.567358 | 87 | 0.625053 | 2,067 | 0.175184 | 0 | 0 | 2,309 | 0.195695 | 2,639 | 0.223663 | 1,077 | 0.091279 |
992ddf01dad6535bf2ac6a07d23c7afdf0b6b5ac | 6,777 | py | Python | sdk/python/pulumi_aws_native/servicediscovery/instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/servicediscovery/instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/servicediscovery/instance.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 41.323171 | 186 | 0.653091 | 6,221 | 0.917958 | 0 | 0 | 3,866 | 0.570459 | 0 | 0 | 2,282 | 0.336727 |
992ee557b197ee2455ec41b1fe058f029f7123c9 | 5,526 | py | Python | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | 1 | 2018-07-09T09:09:02.000Z | 2018-07-09T09:09:02.000Z | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | null | null | null | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import (absolute_import, division, print_function, unicode_literals)
import os
import surprise
from surprise import KNNBaseline, Reader
from surprise import Dataset
from surprise import evaluate, print_perf
import csv
from surprise import SVD,SVDpp
from surprise import G... | 34.322981 | 236 | 0.668114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,824 | 0.321807 |
992f18514be68650cca7e7206bf7d259cbca8f31 | 1,690 | py | Python | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | 1 | 2022-03-30T22:42:51.000Z | 2022-03-30T22:42:51.000Z | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | """Tests for the Bulb API with a socket."""
from typing import AsyncGenerator
import pytest
from pywizlight import wizlight
from pywizlight.bulblibrary import BulbClass, BulbType, Features, KelvinRange
from pywizlight.tests.fake_bulb import startup_bulb
@pytest.fixture()
async def socket() -> AsyncGenerator[wizligh... | 29.649123 | 77 | 0.684615 | 0 | 0 | 271 | 0.160355 | 1,422 | 0.84142 | 1,341 | 0.793491 | 291 | 0.172189 |
99332f040f38016f3fe08830a1b001ac9221e1ec | 10,303 | py | Python | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | null | null | null | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | 52 | 2020-02-25T09:56:54.000Z | 2021-09-22T18:40:50.000Z | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | null | null | null | # from __future__ import print_function
# import sys
# import getpass
import os
import requests
import json
# from set_credentials import the_secret_function # borrar esta linea, es solo para el hello world
#Clase necesaria para devolver por APIRest lo correspondiente a los trending podcast
class TrendingPo... | 44.029915 | 116 | 0.615646 | 8,644 | 0.836786 | 0 | 0 | 0 | 0 | 0 | 0 | 4,854 | 0.469894 |
9938d918011113c87124249147a2d55af4319cd2 | 1,465 | py | Python | klimaat_helpdesk/cms/migrations/0011_auto_20200803_1507.py | Arfor/website | d67b19e9be5a33f58f607962e665389b7695cccc | [
"MIT"
] | 5 | 2020-10-22T07:02:11.000Z | 2020-11-02T10:24:43.000Z | klimaat_helpdesk/cms/migrations/0011_auto_20200803_1507.py | Arfor/website | d67b19e9be5a33f58f607962e665389b7695cccc | [
"MIT"
] | 71 | 2020-10-21T18:11:10.000Z | 2022-02-09T14:11:18.000Z | klimaat_helpdesk/cms/migrations/0011_auto_20200803_1507.py | Arfor/website | d67b19e9be5a33f58f607962e665389b7695cccc | [
"MIT"
] | 5 | 2020-10-21T17:51:47.000Z | 2021-03-21T16:33:17.000Z | # Generated by Django 3.0.5 on 2020-08-03 15:07
from django.db import migrations, models
import klimaat_helpdesk.cms.blocks
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('cms', '0010_categoryanswerrelationship'),
]
operations = [
... | 39.594595 | 314 | 0.644369 | 1,283 | 0.875768 | 0 | 0 | 0 | 0 | 0 | 0 | 273 | 0.186348 |
9939b2f449ad6c580c0471f4d517b6daee730bac | 415 | py | Python | custom_components/ping_socket/model.py | gtjamesa/hacs-ping-socket | f6573085c93b08227b2c9146589cdf52ee07208b | [
"Apache-2.0"
] | null | null | null | custom_components/ping_socket/model.py | gtjamesa/hacs-ping-socket | f6573085c93b08227b2c9146589cdf52ee07208b | [
"Apache-2.0"
] | null | null | null | custom_components/ping_socket/model.py | gtjamesa/hacs-ping-socket | f6573085c93b08227b2c9146589cdf52ee07208b | [
"Apache-2.0"
] | null | null | null | """Models for Ping Socket platform."""
from __future__ import annotations
from typing import TypedDict
from homeassistant.helpers.template import Template
class PingSocketSensorConfig(TypedDict):
"""TypedDict for PingSocketSensor config."""
name: str
host: str
port: str
timeout: int
payload... | 20.75 | 51 | 0.720482 | 255 | 0.614458 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 0.19759 |
993a49824daba6f94a6ddb3110d512c3b971d0fc | 3,460 | py | Python | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | """年を補完した日付を付加する。(for 東京都福祉保健局/都内感染者の状況)
東京都の資料には日付の項目に年の情報がないので、それを補完する。
各レコードの終端に、 Y/M/D 形式のリリース日、発症日、確定日を追加する。
使い方
------
data/0104.csv から data/0104_c.csv (ファイル名に _c 追加、Y/M/D タイムスタンプ追加)を作る場合:
$ cmp_year.py data/0104.csv
レコード構成
------------
0:'リリース日'
1:'居住地'
2:'年代'
3:'性別'
4:'属性(職業等)'
5:'渡航歴'
6:'接触歴'
7:'発症日... | 23.221477 | 91 | 0.575145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,123 | 0.636957 |
993ab93218e3036d090d453fc1cde516f0a53099 | 1,544 | py | Python | django_cloud_deploy/workflow/_file_bucket.py | GoogleCloudPlatform/django-cloud-deploy | d316b1e45357761e2b124143e6e12ce34ef6f975 | [
"Apache-2.0"
] | 61 | 2018-10-17T17:39:08.000Z | 2022-02-20T06:16:49.000Z | django_cloud_deploy/workflow/_file_bucket.py | ggurbet/django-cloud-deploy | 0b7c0bb0f40ba81c48ba3db374dbd5c596f4064c | [
"Apache-2.0"
] | 202 | 2018-10-16T18:15:51.000Z | 2021-11-11T19:05:33.000Z | django_cloud_deploy/workflow/_file_bucket.py | ggurbet/django-cloud-deploy | 0b7c0bb0f40ba81c48ba3db374dbd5c596f4064c | [
"Apache-2.0"
] | 23 | 2018-10-31T00:01:52.000Z | 2021-10-09T03:43:59.000Z | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.761905 | 80 | 0.716969 | 817 | 0.529145 | 0 | 0 | 0 | 0 | 0 | 0 | 1,085 | 0.70272 |
993d36b65ce681aebaefed1af68a07d3f0057018 | 18,409 | py | Python | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import netCDF4 as nc
from scipy.stats import linregress
import cartopy.crs as ccrs
import cartopy as car
#========== IMPORT INPUT AND FUNCTIONS FROM MODULES ===================================================================
import pygem_input as i... | 31.361158 | 145 | 0.722581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,651 | 0.306969 |
993dcfa2a570da9e634a847c20c71d05390a7639 | 260,269 | py | Python | instances/passenger_demand/pas-20210422-1717-int18e/37.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/37.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/37.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 34483
passenger_arriving = (
(6, 8, 12, 6, 7, 5, 6, 1, 4, 0, 1, 2, 0, 14, 9, 4, 3, 9, 4, 3, 1, 7, 3, 5, 0, 0), # 0
(6, 15, 6, 15, 7, 6, 2, 5, 3, 0, 1, 3, 0, 8, 8, 5, 7, 6, 6, 7, 5, 4, 2, 2, 1, 0), # 1
(10, 7, 9, 8, 8, 6, 5, 8, 3, 4, 0, 2, 0, 7, 17, 3, 9, 10, 7, 2, 2, 3, 7, 0, ... | 278.362567 | 490 | 0.771298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,038 | 0.019357 |
993ec8cc9eaca5be7b60d45d5603b3cb294439a2 | 276 | py | Python | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-07-27T07:32:57.000Z | 2020-07-27T07:32:57.000Z | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | null | null | null | Code coach problems/Easy/Python/Jungle_Camping.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-11-07T12:45:21.000Z | 2020-11-07T12:45:21.000Z | a = input()
for i in range(len(a)):
if i == 0 or a[i] == ' ':
if i != 0:
i+=1
if a[i] == 'S':
print("Snake", end = " ")
elif a[i] == 'G':
print("Lion", end = " ")
elif a[i] == 'R':
print("Tiger", end = " ")
elif a[i] == 'C':
print("Bird", end = " ")
| 19.714286 | 28 | 0.402174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 53 | 0.192029 |
9940e845e28cff0d578b7b5aa631c7d7f5fdd50a | 3,884 | py | Python | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | import csv
import numpy as np
import cv2
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
# Reading image paths and steering angles from excel
samples = []
with open('/opt/carnd_p3/data/driving_log.csv') as csvfile:
reader = csv.reader(csvfile)
## Skipping first line to av... | 31.577236 | 82 | 0.595005 | 0 | 0 | 1,428 | 0.367662 | 0 | 0 | 0 | 0 | 644 | 0.165808 |
9941155b73b50825f4c22e8bd60744aecb14e706 | 38 | py | Python | savecode/threeyears/idownserver/dnsreq/__init__.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2019-05-19T11:54:26.000Z | 2019-05-19T12:03:49.000Z | savecode/threeyears/idownserver/dnsreq/__init__.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 1 | 2020-11-27T07:55:15.000Z | 2020-11-27T07:55:15.000Z | savecode/threeyears/idownserver/dnsreq/__init__.py | Octoberr/swm0920 | 8f05a6b91fc205960edd57f9076facec04f49a1a | [
"Apache-2.0"
] | 2 | 2021-09-06T18:06:12.000Z | 2021-12-31T07:44:43.000Z | from .dnsreqdealer import DnsReqDealer | 38 | 38 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |