hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
837739a005a237684a780c9335e0ae3dc01c7873 | 730 | py | Python | configProvider.py | misc77/dsegenerator | 3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4 | [
"MIT"
] | null | null | null | configProvider.py | misc77/dsegenerator | 3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4 | [
"MIT"
] | null | null | null | configProvider.py | misc77/dsegenerator | 3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4 | [
"MIT"
] | null | null | null | from resources import Resources
import configparser
| 29.2 | 109 | 0.642466 |
8378ea628ccc21371175ad9061b5e8ae8ef0a59b | 3,041 | py | Python | H5_News_Tracker/gui/ticker_window.py | Mouse-Diplodicus/H5-NewsTracker | a771105463db6757171ea28e847208960c7ac598 | [
"BSD-2-Clause"
] | null | null | null | H5_News_Tracker/gui/ticker_window.py | Mouse-Diplodicus/H5-NewsTracker | a771105463db6757171ea28e847208960c7ac598 | [
"BSD-2-Clause"
] | 20 | 2020-02-27T01:39:28.000Z | 2021-12-13T20:39:17.000Z | H5_News_Tracker/gui/ticker_window.py | Mouse-Diplodicus/H5-NewsTracker | a771105463db6757171ea28e847208960c7ac598 | [
"BSD-2-Clause"
] | null | null | null | """
Program displays a window with text using Tkinter when run.
"""
import tkinter
import webbrowser
from tkinter import font
from tkinter import ttk
| 39.493506 | 117 | 0.64584 |
837a6c35581467319f1075c05fa1224fd922d268 | 3,562 | py | Python | Yu/Web.py | Hiroshiba/KotohiraYu | 1ab5a5376e01aae5c730ae163298e1c34980b586 | [
"MIT"
] | null | null | null | Yu/Web.py | Hiroshiba/KotohiraYu | 1ab5a5376e01aae5c730ae163298e1c34980b586 | [
"MIT"
] | 1 | 2019-05-18T13:16:25.000Z | 2019-05-18T13:16:25.000Z | Yu/Web.py | Hiroshiba/KotohiraYu | 1ab5a5376e01aae5c730ae163298e1c34980b586 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import configparser
import glob
import sqlite3
import traceback
import json
from bottle import route, run, auth_basic, abort, response
from sqlite3 import OperationalError
config = configparser.ConfigParser()
config.read('config/config.ini')
def WEBRUN():
run(port=7878)
| 31.522124 | 174 | 0.571028 |
837a8a805f3fa86050a9f939d897eba29f04412d | 1,713 | py | Python | urduhack/stop_words.py | fahdrazavi/urduhack | a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8 | [
"MIT"
] | null | null | null | urduhack/stop_words.py | fahdrazavi/urduhack | a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8 | [
"MIT"
] | null | null | null | urduhack/stop_words.py | fahdrazavi/urduhack | a2370b0d8c1ee3f260ff90ca5056f45ed9b73ee8 | [
"MIT"
] | null | null | null | # coding: utf8
"""
Complete collection of stopwords for the Urdu language.
Maintainer: Ikram Ali(mrikram1989@gmail.com)
version = 2019.04.07
Source = https://github.com/urduhack/urdu-stopwords
"""
# Urdu Language Stop words list
STOP_WORDS = frozenset("""
... | 57.1 | 101 | 0.76474 |
837ad353a450f945fc5a6b024a1362ed9689c173 | 3,982 | py | Python | src/sequencemodel_09.py | PatrikValkovic/neural-networks-step-by-step | 86f5f98de1dbeb3a69ba101f06e303dbaabe6b8e | [
"MIT"
] | 1 | 2021-02-04T09:01:44.000Z | 2021-02-04T09:01:44.000Z | src/sequencemodel_09.py | alexdevero/neural-networks-step-by-step | 55e12e82c78f9be2d942fc1bff252b92fb61c1dd | [
"MIT"
] | null | null | null | src/sequencemodel_09.py | alexdevero/neural-networks-step-by-step | 55e12e82c78f9be2d942fc1bff252b92fb61c1dd | [
"MIT"
] | 2 | 2021-01-30T15:17:50.000Z | 2021-02-04T09:01:45.000Z | import numpy as np
from progressbar import progressbar
| 45.770115 | 120 | 0.566298 |
837c932ac45c8e6207580a84130808a7f51d5177 | 685 | py | Python | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | 1 | 2021-11-16T15:16:08.000Z | 2021-11-16T15:16:08.000Z | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.views import View
from ..core import app_settings
| 26.346154 | 74 | 0.694891 |
837cbe3de90b812a9c90cd64972dc52fe2924f87 | 8,989 | py | Python | tests/components/multimatic/__init__.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 7 | 2019-08-15T13:36:58.000Z | 2020-03-18T10:46:29.000Z | tests/components/multimatic/__init__.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 73 | 2020-10-01T06:39:39.000Z | 2022-03-31T06:16:15.000Z | tests/components/multimatic/__init__.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 4 | 2019-10-26T14:25:13.000Z | 2020-11-10T11:00:18.000Z | """The tests for multimatic integration."""
from __future__ import annotations
import datetime
from typing import Any
from unittest.mock import AsyncMock, patch
from pymultimatic.model import (
ActiveFunction,
BoilerStatus,
Circulation,
Device,
Dhw,
EmfReport,
Error,
FacilityDetail,
... | 26.206997 | 82 | 0.585938 |
837cd4561ed86c61a564513e1e29e4b4eaead664 | 4,877 | py | Python | test/e2e/test_200_header_invalid.py | elukey/mod_h2 | 3418fc31b8ffe9fe477899d60ccfdecdfac1df34 | [
"Apache-2.0"
] | null | null | null | test/e2e/test_200_header_invalid.py | elukey/mod_h2 | 3418fc31b8ffe9fe477899d60ccfdecdfac1df34 | [
"Apache-2.0"
] | null | null | null | test/e2e/test_200_header_invalid.py | elukey/mod_h2 | 3418fc31b8ffe9fe477899d60ccfdecdfac1df34 | [
"Apache-2.0"
] | null | null | null | #
# mod-h2 test suite
# check handling of invalid chars in headers
#
import copy
import os
import re
import sys
import time
import pytest
from datetime import datetime
from TestEnv import TestEnv
from TestHttpdConf import HttpdConf
| 43.159292 | 119 | 0.565717 |
837d850bff1c24037cf6a37770c38618903819c0 | 7,529 | py | Python | controller/controller.py | angelocarbone/MoDelS | 5bfee8d0b6e719c1d2445acf4e332597427ac906 | [
"MIT"
] | 1 | 2021-12-02T07:29:29.000Z | 2021-12-02T07:29:29.000Z | controller/controller.py | angelocarbone/MoDelS | 5bfee8d0b6e719c1d2445acf4e332597427ac906 | [
"MIT"
] | null | null | null | controller/controller.py | angelocarbone/MoDelS | 5bfee8d0b6e719c1d2445acf4e332597427ac906 | [
"MIT"
] | null | null | null | from scenarios import helper
from scenarios.builder import Builder
from model.enumerations import e_ExperienceFactor, e_MentalOrEmotionalFactor, e_PhyOrPhyFactor, e_EntityType, e_Relation, e_CausalFactorType
from model.knowledge_base import kb
from model.entities import Entity, CausalFactor
from model.utils import Boun... | 37.272277 | 140 | 0.504582 |
837e4da85868086f6aef55e405fd04f2686a56f3 | 1,567 | py | Python | stan/data/data_lex.py | chappers/Stan | 61c189ab12ea50214390804cff5694ac51f8df35 | [
"MIT"
] | 1 | 2015-01-06T11:10:24.000Z | 2015-01-06T11:10:24.000Z | stan/data/data_lex.py | chappers/Stan | 61c189ab12ea50214390804cff5694ac51f8df35 | [
"MIT"
] | null | null | null | stan/data/data_lex.py | chappers/Stan | 61c189ab12ea50214390804cff5694ac51f8df35 | [
"MIT"
] | null | null | null | """
The :mod:`stan.data_lex` module is the lexer for SAS-like language.
"""
from pyparsing import *
from stan.data.data_expr import EXPR_, ID_, DATA, SET, RENAME, RUN, DROP, KEEP, SEMI_, LOGICAL_
# set up logic
dataStepStmt = Forward()
# data/set inline options
rename_stmt = (OneOrMore(Group(ID_ + Suppress("=") ... | 35.613636 | 139 | 0.613912 |
837e63fb36e90c2f7dc83ee4de463a8b38b3fbca | 2,334 | py | Python | setup.py | JayDwayne/Neopo | 964e1a13ed016b5a74ccb33b7384a0f783100cd7 | [
"MIT"
] | null | null | null | setup.py | JayDwayne/Neopo | 964e1a13ed016b5a74ccb33b7384a0f783100cd7 | [
"MIT"
] | null | null | null | setup.py | JayDwayne/Neopo | 964e1a13ed016b5a74ccb33b7384a0f783100cd7 | [
"MIT"
] | null | null | null | import os
from platform import system
from setuptools import setup
from subprocess import run, PIPE, CalledProcessError
running_on_windows = system() == "Windows"
running_in_docker = os.path.isfile("/.dockerenv")
# Consistent version as AUR
try:
count = run(["git", "rev-list", "--count", "HEAD"],
stdo... | 35.363636 | 81 | 0.70437 |
837ecef31551741e285f87a84d5925f220afb694 | 2,045 | py | Python | jmetal/core/operator.py | LuckysonKhaidem/ProjectAlpha | e4b4779a8968a83f1e8add3490a4d2c4ad145d55 | [
"MIT"
] | 1 | 2020-05-26T18:57:31.000Z | 2020-05-26T18:57:31.000Z | jmetal/core/operator.py | LuckysonKhaidem/ProjectAlpha | e4b4779a8968a83f1e8add3490a4d2c4ad145d55 | [
"MIT"
] | null | null | null | jmetal/core/operator.py | LuckysonKhaidem/ProjectAlpha | e4b4779a8968a83f1e8add3490a4d2c4ad145d55 | [
"MIT"
] | 2 | 2019-01-08T11:52:52.000Z | 2020-05-25T13:21:26.000Z | from abc import ABCMeta, abstractmethod
from typing import TypeVar, Generic, List
S = TypeVar('S')
R = TypeVar('R')
"""
.. module:: Operator
:platform: Unix, Windows
:synopsis: Templates for operators.
.. moduleauthor:: Antonio J. Nebro <antonio@lcc.uma.es>
"""
| 21.989247 | 90 | 0.627873 |
8383163f22959bd98885d5ed979d31561a7823ce | 1,389 | py | Python | foo/pictureR/wordsTemplate.py | MangetsuC/arkHelper | 02705294f1bc3ecf926e0a9c62c59026494f62f8 | [
"MIT"
] | 147 | 2020-05-06T10:36:13.000Z | 2022-03-17T13:03:16.000Z | foo/pictureR/wordsTemplate.py | MangetsuC/arkHelper | 02705294f1bc3ecf926e0a9c62c59026494f62f8 | [
"MIT"
] | 34 | 2020-07-21T01:20:10.000Z | 2022-01-30T06:38:11.000Z | foo/pictureR/wordsTemplate.py | MangetsuC/arkHelper | 02705294f1bc3ecf926e0a9c62c59026494f62f8 | [
"MIT"
] | 17 | 2020-12-10T14:42:34.000Z | 2022-02-26T15:23:58.000Z | from PIL import Image, ImageDraw, ImageFont
from numpy import asarray
from cv2 import cvtColor, COLOR_RGB2BGR, imshow, waitKey
from os import getcwd | 37.540541 | 101 | 0.670266 |
8383af1ee3c86c7a8396f853fcb82a399a1772cb | 1,185 | py | Python | bin/concat_msa.py | HadrienG/arbetsprov | ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f | [
"MIT"
] | 5 | 2021-10-11T09:30:52.000Z | 2022-01-03T07:03:17.000Z | bin/concat_msa.py | HadrienG/arbetsprov | ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f | [
"MIT"
] | null | null | null | bin/concat_msa.py | HadrienG/arbetsprov | ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f | [
"MIT"
] | 1 | 2022-01-03T07:03:51.000Z | 2022-01-03T07:03:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
from Bio import AlignIO
def concat_msa(msas, output):
"""concatenate msas together"""
alignments = []
for msa in msas:
align = AlignIO.read(msa, "fasta")
# shorten id so the concatenated alignment keeps it
for record i... | 23.7 | 63 | 0.592405 |
8384d1480db51cc6251738da74aa3074adb07e4f | 11,099 | py | Python | rendez-vous.py | MrDarkness117/parseTsum | 03f9f4d7c9e90a48eec5c689082a4274a160f501 | [
"MIT"
] | null | null | null | rendez-vous.py | MrDarkness117/parseTsum | 03f9f4d7c9e90a48eec5c689082a4274a160f501 | [
"MIT"
] | null | null | null | rendez-vous.py | MrDarkness117/parseTsum | 03f9f4d7c9e90a48eec5c689082a4274a160f501 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys... | 39.080986 | 136 | 0.594918 |
838511c8e3372a6ae2d5fbb109dbbc9156779d54 | 171 | py | Python | stdlib/getpass_qs.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | 3 | 2015-11-20T14:30:53.000Z | 2015-12-19T05:55:19.000Z | stdlib/getpass_qs.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | null | null | null | stdlib/getpass_qs.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | 1 | 2016-01-05T20:54:49.000Z | 2016-01-05T20:54:49.000Z | import getpass
# prompt user without echoing output
print getpass.getpass()
print getpass.getpass(prompt="Custom Prompt:")
print "user login name:", getpass.getuser()
| 17.1 | 46 | 0.766082 |
8385780ba677837b4c5c4c3d8cf272c764342143 | 385 | py | Python | backend/todo/migrations/0008_auto_20190403_0812.py | Bhunesh2000/todoWithDjango | e5fa52a087180b66ae283e6b36fe790323d7b920 | [
"MIT"
] | null | null | null | backend/todo/migrations/0008_auto_20190403_0812.py | Bhunesh2000/todoWithDjango | e5fa52a087180b66ae283e6b36fe790323d7b920 | [
"MIT"
] | 11 | 2019-04-03T09:49:17.000Z | 2022-02-10T08:23:26.000Z | backend/todo/migrations/0008_auto_20190403_0812.py | Bhunesh2000/todoWithDjango | e5fa52a087180b66ae283e6b36fe790323d7b920 | [
"MIT"
] | 1 | 2019-10-21T19:26:29.000Z | 2019-10-21T19:26:29.000Z | # Generated by Django 2.2 on 2019-04-03 08:12
from django.db import migrations, models
| 20.263158 | 57 | 0.58961 |
8385a072d6737fbd7ff6db50b44b8505e7dcadb3 | 1,797 | py | Python | public/neumeeditor/models/fields/short_code_field.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | null | null | null | public/neumeeditor/models/fields/short_code_field.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | null | null | null | public/neumeeditor/models/fields/short_code_field.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | null | null | null | import re
from django.db import models
unacceptable_chars = "[^a-z0-9\._]"
duplicate_spaces_and_dots = "[\ .]+"
def sanitize_short_code(input):
"""
We want to filter-out the undesirable characters.
"""
# Turn spaces and dots into single dots
new_code = re.sub(duplicate_spaces_and_dots, '.', inpu... | 28.983871 | 82 | 0.582638 |
8386475aa5d024fe1d36e6904efce3bbf70bc22b | 328 | py | Python | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | def som(a, b):
"""Bereken de som van twee getallen. Als de som groter is dan nul return je de som.
Als de som kleiner is dan nul, dan return je nul.
Args:
a (int): het eerste getal
b (int): het tweede getal
"""
pass
assert som(1, 2) == 3
assert som(-1, -2) == -3
assert som(0, ... | 20.5 | 87 | 0.570122 |
83882ea566cc14498c7c6f7269a02089a389aa86 | 2,862 | py | Python | src/plugins/pipeline_plugins/utils/blob.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | 11 | 2021-03-23T22:03:00.000Z | 2022-03-30T17:12:38.000Z | src/plugins/pipeline_plugins/utils/blob.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | 3 | 2021-07-21T10:13:24.000Z | 2021-10-18T03:44:03.000Z | src/plugins/pipeline_plugins/utils/blob.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | 5 | 2021-05-07T03:30:29.000Z | 2021-11-03T21:05:00.000Z | # python3
# coding=utf-8
# Copyright 2020 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 37.657895 | 75 | 0.677149 |
8388c207ef02a512832cd36b34b04ff91b5bc7e2 | 2,636 | py | Python | LinearModel/scripts/three_classes_train.py | SMZCC/TF-deep-learn | 7517685d8b4fb51f1823d4595165538305739fc7 | [
"MIT"
] | null | null | null | LinearModel/scripts/three_classes_train.py | SMZCC/TF-deep-learn | 7517685d8b4fb51f1823d4595165538305739fc7 | [
"MIT"
] | null | null | null | LinearModel/scripts/three_classes_train.py | SMZCC/TF-deep-learn | 7517685d8b4fb51f1823d4595165538305739fc7 | [
"MIT"
] | null | null | null | # coding=utf-8
# date: 2019/1/1, 19:38
# name: smz
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from LinearModel.modules.model3 import ModelThreeClasses
from LinearModel.configuration.options import opts
from LinearModel.scripts.gen_data import generate_d... | 35.621622 | 119 | 0.65478 |
83894f358de50ff81cde8fdfc6091027cb2fdbb8 | 21,108 | py | Python | trio/_core/tests/test_multierror.py | JefffHofffman/trio | d8631117ce4ca19017bbe3850704dd5ce6cfaeb1 | [
"Apache-2.0",
"MIT"
] | 4 | 2017-03-01T22:14:46.000Z | 2020-07-31T07:18:18.000Z | trio/_core/tests/test_multierror.py | JefffHofffman/trio | d8631117ce4ca19017bbe3850704dd5ce6cfaeb1 | [
"Apache-2.0",
"MIT"
] | 81 | 2017-01-22T11:58:29.000Z | 2017-05-27T22:17:49.000Z | trio/_core/tests/test_multierror.py | JefffHofffman/trio | d8631117ce4ca19017bbe3850704dd5ce6cfaeb1 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-05-28T19:38:09.000Z | 2020-05-28T19:38:09.000Z | import logging
import pytest
from traceback import extract_tb, print_exception, format_exception, _cause_message
import sys
import os
import re
from pathlib import Path
import subprocess
from .tutil import slow
from .._multierror import MultiError, concat_tb
from ..._core import open_nursery
def raiser1():
r... | 29.646067 | 88 | 0.648664 |
838a825c230b5aebf0d63f09c997caea89e365c9 | 3,896 | py | Python | servo/drv/ec3po_gpio.py | mmind/servo-hdctools | c7d50190837497dafc45f6efe18bf01d6e70cfd2 | [
"BSD-3-Clause"
] | 2 | 2019-09-25T22:44:39.000Z | 2020-07-26T22:29:20.000Z | servo/drv/ec3po_gpio.py | mmind/servo-hdctools | c7d50190837497dafc45f6efe18bf01d6e70cfd2 | [
"BSD-3-Clause"
] | null | null | null | servo/drv/ec3po_gpio.py | mmind/servo-hdctools | c7d50190837497dafc45f6efe18bf01d6e70cfd2 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Driver for gpio controls through ec3po.
Provides the following console controlled function:
_Get_single, _Set_single, _Get_multi, _Set_multi
"""
imp... | 25.973333 | 76 | 0.652977 |
838aa6ee041eb5a569fe74b2aa529125b8e2fda2 | 2,595 | py | Python | scipy_util/util.py | idf/sci_util_py | 53b4d961a1a8faeb444d2972ca7a2baf4a966f6e | [
"BSD-3-Clause"
] | null | null | null | scipy_util/util.py | idf/sci_util_py | 53b4d961a1a8faeb444d2972ca7a2baf4a966f6e | [
"BSD-3-Clause"
] | 1 | 2016-02-10T19:17:20.000Z | 2016-02-10T20:04:59.000Z | scipy_util/util.py | idf/scipy_util | 53b4d961a1a8faeb444d2972ca7a2baf4a966f6e | [
"BSD-3-Clause"
] | null | null | null | """
Adapted from https://github.com/bytefish/facerec
"""
import os
from PIL import Image
import numpy as np
import random
def asRowMatrix(X):
"""
Creates a row-matrix from multi-dimensional data items in list l.
X [list] List with multi-dimensional data.
"""
if len(X) == 0:
return np... | 23.807339 | 74 | 0.570713 |
838c4a8c221ca4daa94ec9e1d608b97fed7bdb05 | 110 | py | Python | cmsplugin_markdown/apps.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_markdown/apps.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_markdown/apps.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
| 18.333333 | 41 | 0.8 |
838edfd8c862125c349c121325bcacc9bf203166 | 1,177 | py | Python | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 111 | 2015-02-03T02:57:27.000Z | 2022-03-01T23:57:09.000Z | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 12 | 2016-03-22T14:44:32.000Z | 2020-03-18T13:30:29.000Z | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 55 | 2015-02-03T05:28:12.000Z | 2022-03-31T05:00:03.000Z | ##########################################################################
# Copyright (c) 2009, ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstrasse 6, CH... | 33.628571 | 80 | 0.605777 |
8391c2e017e6f922119fae69c3e8b24e0d685ffc | 2,959 | py | Python | grad_cam.py | SamuelCahyawijaya/pytorch-smoothgrad | d9a5a359aab520a500e19359b309d1c030babb20 | [
"MIT"
] | 77 | 2017-07-28T15:54:44.000Z | 2018-04-21T08:25:36.000Z | grad_cam.py | SamuelCahyawijaya/pytorch-smoothgrad | d9a5a359aab520a500e19359b309d1c030babb20 | [
"MIT"
] | null | null | null | grad_cam.py | SamuelCahyawijaya/pytorch-smoothgrad | d9a5a359aab520a500e19359b309d1c030babb20 | [
"MIT"
] | 12 | 2019-10-11T16:00:51.000Z | 2021-12-10T03:21:54.000Z | import argparse
import os
import sys
import numpy as np
from scipy import misc
import cv2
import torch
import torch.nn as nn
from torch.autograd import Variable
from torchvision.models import vgg16, vgg19
from torchvision.utils import save_image
from lib.gradients import GradCam, GuidedBackpropGrad
from lib.image_uti... | 29.29703 | 84 | 0.677256 |
83927dd68fcacbf5d7c2a21161a37e8eb6342054 | 1,021 | py | Python | Task2G.py | asew4/Flood-Warning-System-8 | 66f436caf8307232604b830e4dc4ab385de0556e | [
"MIT"
] | null | null | null | Task2G.py | asew4/Flood-Warning-System-8 | 66f436caf8307232604b830e4dc4ab385de0556e | [
"MIT"
] | null | null | null | Task2G.py | asew4/Flood-Warning-System-8 | 66f436caf8307232604b830e4dc4ab385de0556e | [
"MIT"
] | 1 | 2022-02-06T02:27:29.000Z | 2022-02-06T02:27:29.000Z | from floodsystem import stationdata, datafetcher, station
stations = stationdata.build_station_list()
stationdata.update_water_levels(stations)
#Empty lists for each of the risk categories
severe_level_station = []
high_level_station = []
moderate_level_station = []
low_level_station = []
for station in stations: #S... | 30.939394 | 66 | 0.712047 |
83929360847de74ce432577b4612ddd776a07618 | 3,472 | py | Python | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | #//-------------------------------------------------------------------
#/*/{Protheus.doc} ACDA035 -
#
#@author PEDRO ANTONIO MISSAGLIA
#@since 23/09/2019
#@version P12
#
# CT001 - Incluso de Lanamento de Inventrio
# CT002 - Viso de um lanamento de inventrio
# CT003 - Visualizao das legendas
# CT004 - Alt... | 27.125 | 88 | 0.692396 |
8392df442da4b2f8acf4cb05c261720a7e2145a4 | 967 | py | Python | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | 2 | 2021-01-22T07:34:35.000Z | 2021-01-23T04:36:41.000Z | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | 1 | 2021-02-27T05:56:45.000Z | 2021-02-27T05:57:03.000Z | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from jina import Flow, Document
from jina.executors import BaseExecutor
from jina.parsers import set_pea_parser
from jina.peapods.peas import BasePea
cur_dir = Path(__file__).parent
| 31.193548 | 110 | 0.733195 |
8393065c4b6aeffae6a10f048cd67e3a8fa65388 | 373 | py | Python | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 9 | 2021-03-16T20:21:54.000Z | 2022-01-08T09:15:10.000Z | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 1 | 2021-02-28T21:27:17.000Z | 2021-02-28T21:27:17.000Z | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 1 | 2021-05-24T11:34:48.000Z | 2021-05-24T11:34:48.000Z | # for loops
# for letter in "Cihat Salik":
# print(letter)
friends = ["Hasan", "Mahmut", "Ali", "Veli"]
for friend in friends:
print(friend)
for index in range(3, 10):
print(index)
for index in range(len(friends)):
print(friends[index])
for index in range(5):
if index == 0:
print("Fi... | 15.541667 | 44 | 0.600536 |
839340ab08b4524ada1d06b4a611b58353ecf4dc | 3,813 | py | Python | ricga/ricga_server.py | MeteorKepler/laughing-invention | 6f856d7ba27f956d8dceb18fe14ba2575beae6aa | [
"Apache-2.0"
] | 1 | 2018-04-12T01:44:32.000Z | 2018-04-12T01:44:32.000Z | ricga/ricga_server.py | MeteorKepler/RICGA | 6f856d7ba27f956d8dceb18fe14ba2575beae6aa | [
"Apache-2.0"
] | null | null | null | ricga/ricga_server.py | MeteorKepler/RICGA | 6f856d7ba27f956d8dceb18fe14ba2575beae6aa | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cgi
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import tensorflow as tf
from ricga import configuration
from ricga import inference_wrapper
from ricga.inference_utils import caption_g... | 37.019417 | 115 | 0.59402 |
839409e02d06e81916f52fdb0dab1efe39b69585 | 2,190 | py | Python | rotation_analysis/analysis/probe/gui/gui.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | null | null | null | rotation_analysis/analysis/probe/gui/gui.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | 3 | 2021-08-09T21:51:41.000Z | 2021-08-09T21:51:45.000Z | rotation_analysis/analysis/probe/gui/gui.py | Sepidak/spikeGUI | 25ae60160308c0a34e7180f3e39a1c4dc6aad708 | [
"MIT"
] | 3 | 2021-10-16T14:07:59.000Z | 2021-10-16T17:09:03.000Z | import os
import sys
if sys.platform.startswith('linux'):
from OpenGL import GL
from PyQt5.QtQml import QQmlApplicationEngine
from PyQt5.QtWidgets import QApplication
from analysis.probe.gui.backend_classes import PythonBackendClass1, Logger
from analysis.probe.gui.image_providers import PyplotImagePro... | 35.322581 | 135 | 0.719635 |
83944542d560f5e410e723d98ca83aade353b2f1 | 3,701 | py | Python | test/integration/test_forcemerge.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | null | null | null | test/integration/test_forcemerge.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | null | null | null | test/integration/test_forcemerge.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | null | null | null | import opensearchpy
import curator
import os
import json
import string
import random
import tempfile
from time import sleep
import click
from click import testing as clicktest
from mock import patch, Mock
from . import CuratorTestCase
from . import testvars as testvars
import logging
logger = logging.getLogger(__name... | 37.765306 | 94 | 0.604431 |
8394cbef054df0807f179df99652e99fb23bca5e | 7,331 | py | Python | datacube_alchemist/_utils.py | erin-telfer/datacube-alchemist | 4c37b2243027769f01ce0729e5ff56d0f6354316 | [
"Apache-2.0"
] | 15 | 2020-06-23T06:03:41.000Z | 2021-12-23T00:19:01.000Z | datacube_alchemist/_utils.py | erin-telfer/datacube-alchemist | 4c37b2243027769f01ce0729e5ff56d0f6354316 | [
"Apache-2.0"
] | 69 | 2019-08-14T02:03:38.000Z | 2022-03-04T03:38:20.000Z | datacube_alchemist/_utils.py | erin-telfer/datacube-alchemist | 4c37b2243027769f01ce0729e5ff56d0f6354316 | [
"Apache-2.0"
] | 3 | 2020-09-21T22:01:34.000Z | 2021-09-22T03:02:26.000Z | import json
from pathlib import Path
import re
from typing import Dict
import boto3
import structlog
from datacube.model import Dataset
from datacube.virtual import Measurement, Transformation
from eodatasets3 import DatasetAssembler, serialise
from eodatasets3.model import DatasetDoc, ProductDoc
from eodatasets3.prop... | 32.438053 | 105 | 0.657755 |
8394cda94ca23da8940ee7626693fe1126d8fab2 | 834 | py | Python | HMBBF/migrations/0015_auto_20161202_1733.py | HLoveMe/HWMBBF_Serve | a11fb5b67c913b62df839ce3438a3be433e3865b | [
"Apache-2.0"
] | null | null | null | HMBBF/migrations/0015_auto_20161202_1733.py | HLoveMe/HWMBBF_Serve | a11fb5b67c913b62df839ce3438a3be433e3865b | [
"Apache-2.0"
] | null | null | null | HMBBF/migrations/0015_auto_20161202_1733.py | HLoveMe/HWMBBF_Serve | a11fb5b67c913b62df839ce3438a3be433e3865b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
| 27.8 | 134 | 0.588729 |
83963bff306e66c0a55e66eed48eb8e977fd0dbd | 4,649 | py | Python | rb/processings/text_classifier/text_classifier.py | readerbench/ReaderBench | f0588a9a63ba21e3b8c2e5e5bc474904c07f6897 | [
"Apache-2.0"
] | null | null | null | rb/processings/text_classifier/text_classifier.py | readerbench/ReaderBench | f0588a9a63ba21e3b8c2e5e5bc474904c07f6897 | [
"Apache-2.0"
] | 2 | 2021-10-17T14:00:52.000Z | 2021-10-17T14:00:52.000Z | rb/processings/text_classifier/text_classifier.py | readerbench/ReaderBench | f0588a9a63ba21e3b8c2e5e5bc474904c07f6897 | [
"Apache-2.0"
] | null | null | null | from rb.core.lang import Lang
from rb.core.document import Document
from rb.complexity.complexity_index import ComplexityIndex, compute_indices
from rb.similarity.word2vec import Word2Vec
from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel
from rb.similarity.vector_model_factory import VECT... | 35.219697 | 113 | 0.591955 |
839812d03b6dbafa768b4338253f5ebbd452fe07 | 821 | py | Python | vault_importer/csv.py | rpetti/vault-keepassxc-importer | 7258a1062a52426e44fddce57d0f841f98f3c2c1 | [
"Apache-2.0"
] | null | null | null | vault_importer/csv.py | rpetti/vault-keepassxc-importer | 7258a1062a52426e44fddce57d0f841f98f3c2c1 | [
"Apache-2.0"
] | null | null | null | vault_importer/csv.py | rpetti/vault-keepassxc-importer | 7258a1062a52426e44fddce57d0f841f98f3c2c1 | [
"Apache-2.0"
] | null | null | null | import csv
| 26.483871 | 75 | 0.483557 |
839832c0e53eab95cbbd979af3ec19abef8086bb | 3,069 | py | Python | src/reader/_plugins/enclosure_tags.py | mirekdlugosz/reader | d929b88f1981085b68e82019aa59af126479d4a9 | [
"BSD-3-Clause"
] | 205 | 2018-07-14T12:54:21.000Z | 2022-03-29T06:47:13.000Z | src/reader/_plugins/enclosure_tags.py | mirekdlugosz/reader | d929b88f1981085b68e82019aa59af126479d4a9 | [
"BSD-3-Clause"
] | 275 | 2018-01-28T20:57:13.000Z | 2022-03-29T21:45:11.000Z | src/reader/_plugins/enclosure_tags.py | mirekdlugosz/reader | d929b88f1981085b68e82019aa59af126479d4a9 | [
"BSD-3-Clause"
] | 12 | 2021-01-01T17:15:53.000Z | 2022-03-22T09:38:12.000Z | """
enclosure_tags
~~~~~~~~~~~~~~
Fix tags for MP3 enclosures (e.g. podcasts).
Adds a "with tags" link to a version of the file with tags set as follows:
* the entry title as title
* the feed title as album
* the entry/feed author as author
This plugin needs additional dependencies, use the ``unstable-plugins`` ext... | 26.008475 | 81 | 0.640274 |
8398b2a65cd51b95d6dff4f5e09806cedb08e588 | 454 | py | Python | sqllite/delete_the_data.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | sqllite/delete_the_data.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | sqllite/delete_the_data.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | import _sqlite3
mydb = _sqlite3.connect(database = 'namelist')
with mydb:
cur = mydb.cursor()
name = 'update_name_placeholder'
cur.execute('DELETE FROM users WHERE First_name = ?', (name,))
mydb.commit()
print('Data deleted!!!')
cur = mydb.cursor()
selectquery = 'SELECT * FROM users... | 16.814815 | 66 | 0.627753 |
8398ea34b25e65cea834c631c5374561393da5cc | 35,415 | py | Python | tools/messages/aura4_messages.py | AuraUAS/aura-core | 4711521074db72ba9089213e14455d89dc5306c0 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 8 | 2016-08-03T19:35:03.000Z | 2019-12-15T06:25:05.000Z | tools/messages/aura4_messages.py | AuraUAS/aura-core | 4711521074db72ba9089213e14455d89dc5306c0 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 4 | 2018-09-27T15:48:56.000Z | 2018-11-05T12:38:10.000Z | tools/messages/aura4_messages.py | AuraUAS/aura-core | 4711521074db72ba9089213e14455d89dc5306c0 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 5 | 2017-06-28T19:15:36.000Z | 2020-02-19T19:31:24.000Z | import struct
# Message id constants
command_ack_id = 10
config_airdata_id = 11
config_board_id = 12
config_ekf_id = 13
config_imu_id = 14
config_mixer_id = 15
config_mixer_matrix_id = 16
config_power_id = 17
config_pwm_id = 18
config_stability_damping_id = 19
command_inceptors_id = 20
command_zero_gyros_id = 21
comma... | 30.742188 | 86 | 0.472766 |
839c15c319f76f2a4d3c57f98d73d5a1cfa11959 | 1,563 | py | Python | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 5 | 2016-05-16T22:35:09.000Z | 2020-11-13T16:03:45.000Z | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 2 | 2017-11-28T00:01:19.000Z | 2022-01-21T14:04:58.000Z | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 9 | 2015-12-03T00:37:57.000Z | 2021-09-08T09:23:05.000Z | """
Query construction tests.
"""
from hamcrest import assert_that, is_, equal_to
from influxdbnagiosplugin.query import ExplicitQueryBuilder, SingleMeasurementQueryBuilder
| 26.948276 | 90 | 0.627639 |
839cf93a477b1ceb19582913fdf13770dea82220 | 27,056 | py | Python | sfftk_migrate/test_sfftk_migrate.py | emdb-empiar/sfftk-migrate | fc8941082256456edb61fe22ecbf932f6258352a | [
"Apache-2.0"
] | null | null | null | sfftk_migrate/test_sfftk_migrate.py | emdb-empiar/sfftk-migrate | fc8941082256456edb61fe22ecbf932f6258352a | [
"Apache-2.0"
] | 2 | 2020-04-02T15:25:10.000Z | 2020-04-03T14:32:12.000Z | sfftk_migrate/test_sfftk_migrate.py | emdb-empiar/sfftk-migrate | fc8941082256456edb61fe22ecbf932f6258352a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import types
import unittest
import inspect
from lxml import etree
from . import XSL, XML, VERSION_LIST
from .core import get_module, get_stylesheet, get_source_version, get_migration_path, list_versions
from .main import parse_args
from .migrate import migrate_by_styleshe... | 50.383613 | 120 | 0.623965 |
839e9ac3360c11d26c97e8b4677e721f25a025a1 | 11,298 | py | Python | ross/stochastic/st_shaft_element.py | hssaabbl/ross | 5e548d24c8522c8a9a294479c580c21b4eb3bb65 | [
"MIT"
] | 69 | 2018-12-26T19:21:26.000Z | 2022-02-10T08:48:03.000Z | ross/stochastic/st_shaft_element.py | hssaabbl/ross | 5e548d24c8522c8a9a294479c580c21b4eb3bb65 | [
"MIT"
] | 639 | 2018-12-18T16:44:11.000Z | 2022-03-27T16:46:41.000Z | ross/stochastic/st_shaft_element.py | hssaabbl/ross | 5e548d24c8522c8a9a294479c580c21b4eb3bb65 | [
"MIT"
] | 136 | 2019-01-08T12:37:32.000Z | 2022-03-30T07:14:35.000Z | """Shaft element module for STOCHASTIC ROSS.
This module creates an instance of random shaft element for stochastic
analysis.
"""
from ross.shaft_element import ShaftElement
from ross.stochastic.st_materials import ST_Material
from ross.stochastic.st_results_elements import plot_histogram
from ross.units import Q_, ch... | 32.28 | 88 | 0.547354 |
839ec849aea4ca2defce43d38650cfab96daff56 | 2,873 | py | Python | sympy/benchmarks/bench_symbench.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | sympy/benchmarks/bench_symbench.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | sympy/benchmarks/bench_symbench.py | vprusso/sympy | d5aa27ec88bb076f59087aada97d99bfff8b2f4c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, division
from sympy.core.compatibility import xrange
from random import random
from sympy import factor, I, Integer, pi, simplify, sin, sqrt, Symbol, sympify
from sympy.abc import x, y, z
from timeit import default_timer as clock
def bench_R1():
"real(... | 21.765152 | 78 | 0.484859 |
839f729c16c6176bd93a48ef474f3a2349aae65f | 774 | py | Python | tests/test_capture.py | atac/c10-tools | 278acfaab8bb42dff448fe1fbe08e7b7f75b1752 | [
"BSD-3-Clause"
] | 5 | 2021-06-10T01:32:06.000Z | 2021-12-22T23:05:52.000Z | tests/test_capture.py | atac/c10-tools | 278acfaab8bb42dff448fe1fbe08e7b7f75b1752 | [
"BSD-3-Clause"
] | 17 | 2020-08-03T16:35:26.000Z | 2022-03-30T17:29:41.000Z | tests/test_capture.py | atac/c10-tools | 278acfaab8bb42dff448fe1fbe08e7b7f75b1752 | [
"BSD-3-Clause"
] | null | null | null |
from tempfile import NamedTemporaryFile
import os
import pytest
from c10_tools.capture import main
| 22.114286 | 70 | 0.595607 |
83a0c16822a34d798946b9dc4c088ff91cd8ad8d | 330 | py | Python | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | # TODO: tle
import re
import sys
m = {"?": ".?", "*": ".*?"}
for ln in sys.stdin:
p, s = ln.rstrip().split()
res = re.findall(tr(p), s)
print(score(min(res)) if res else -1)
| 15.714286 | 61 | 0.50303 |
83a1781aa9bd0a390115621e83bce23ea229c38b | 1,025 | py | Python | dino.py | panpepson/DinoBot-chroma-offline | a6587555bf52c1545e69d79a4d30f19ad911eff2 | [
"MIT"
] | null | null | null | dino.py | panpepson/DinoBot-chroma-offline | a6587555bf52c1545e69d79a4d30f19ad911eff2 | [
"MIT"
] | 3 | 2021-06-08T21:14:50.000Z | 2022-03-12T00:22:40.000Z | dino.py | panpepson/DinoBot-chroma-offline | a6587555bf52c1545e69d79a4d30f19ad911eff2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import numpy as np
import cv2
from mss.linux import MSS as mss
from PIL import Image
import time
import pyautogui as pg
#mon = {'top': 480, 'left': 130, 'width': 70, 'height': 35}
mon = {'top': 200, 'left': 410, 'width': 50, 'height': 30} #git-b01
screen_record()
| 26.282051 | 80 | 0.62439 |
83a1f16b819638b10f8073878aae0693547c3238 | 5,085 | py | Python | trove/tests/scenario/groups/instance_create_group.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 1 | 2019-09-20T08:31:54.000Z | 2019-09-20T08:31:54.000Z | trove/tests/scenario/groups/instance_create_group.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | trove/tests/scenario/groups/instance_create_group.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2015 Tesora 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 a... | 34.828767 | 78 | 0.73117 |
83a21e9300920f882ecbddf58f262c3769b6771a | 20,066 | py | Python | reco_utils/recommender/deeprec/models/dkn.py | suhoy901/recommenders | 8ec9f1950d694a5aeaa3d463ac23cad661a30a11 | [
"MIT"
] | 28 | 2021-11-12T08:26:40.000Z | 2022-03-27T07:21:24.000Z | reco_utils/recommender/deeprec/models/dkn.py | shobhit-agarwal/recommenders | 8ec9f1950d694a5aeaa3d463ac23cad661a30a11 | [
"MIT"
] | 5 | 2021-11-10T02:58:32.000Z | 2022-03-21T16:13:11.000Z | reco_utils/recommender/deeprec/models/dkn.py | shobhit-agarwal/recommenders | 8ec9f1950d694a5aeaa3d463ac23cad661a30a11 | [
"MIT"
] | 9 | 2021-11-03T07:14:47.000Z | 2022-02-22T13:42:04.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import numpy as np
import tensorflow as tf
from reco_utils.recommender.deeprec.models.base_model import BaseModel
__all__ = ["DKN"]
| 41.630705 | 126 | 0.546397 |
83a22a3ba1efc66d7ca002b326c88281fa4ad1f6 | 2,193 | py | Python | LeNet-5/LeNet-5.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | LeNet-5/LeNet-5.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | LeNet-5/LeNet-5.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics, losses
# 1.
(x, y), (x_val, y_val) = datasets.mnist.load_data() #
x = tf.convert_to_tensor(x, dtype=tf.float32) / 255. # 0~1
y = tf.convert_to_tensor(y, dtype=tf.int32) #
print(x.shape, y.shape)
train_dataset =... | 47.673913 | 106 | 0.674875 |
83a488662edcd23d97eb9c55b24ca7fbca5d6193 | 7,727 | py | Python | gw_full_latest/CloudTTN.py | rendikanyut/LowCostLoRaGw | a4bce0cf123ffeb48a01e779a62d76b1bf1c4486 | [
"Linux-OpenIB"
] | 654 | 2016-03-01T08:43:24.000Z | 2022-03-22T06:55:27.000Z | gw_full_latest/CloudTTN.py | rendikanyut/LowCostLoRaGw | a4bce0cf123ffeb48a01e779a62d76b1bf1c4486 | [
"Linux-OpenIB"
] | 315 | 2016-02-25T10:36:11.000Z | 2022-03-31T20:59:21.000Z | gw_full_latest/CloudTTN.py | rendikanyut/LowCostLoRaGw | a4bce0cf123ffeb48a01e779a62d76b1bf1c4486 | [
"Linux-OpenIB"
] | 388 | 2016-02-16T14:40:36.000Z | 2022-03-15T04:03:20.000Z | #-------------------------------------------------------------------------------
# Part of this Python script is taken from the Pycom NanoGateway
# https://github.com/pycom/pycom-libraries/tree/master/examples/lorawan-nano-gateway
#
# Adapted by Congduc.Pham@univ-pau.fr
#
# This file is part of the low-cost LoRa gatewa... | 31.410569 | 162 | 0.640611 |
83a6888316b1c7a494fc6ea76d1fb65b1293789a | 2,651 | py | Python | pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | null | null | null | pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | null | null | null | pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | null | null | null | try:
import tkinter as tk
except ImportError:
import Tkinter as tk
| 36.819444 | 180 | 0.606941 |
83a72aa00c8eb33d1a3ee2b6393e98bf6532dbf4 | 6,467 | py | Python | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "SIqbal"
app_title = "SIqbal"
app_publisher = "RC"
app_description = "Customizations for SIqbal"
app_icon = "octicon octicon-file-directory"
app_color = "green"
app_email = "developer@rccorner.com"
app_l... | 28.117391 | 101 | 0.706355 |
83a7ad962e9be184926ad2137bbbb0b45b02188c | 4,781 | py | Python | testing/python/tests/test_dcgm_reader.py | omertuc/DCGM | 904e1600e5924ef60ac5256d492d0b7f6a7244bc | [
"Apache-2.0"
] | null | null | null | testing/python/tests/test_dcgm_reader.py | omertuc/DCGM | 904e1600e5924ef60ac5256d492d0b7f6a7244bc | [
"Apache-2.0"
] | null | null | null | testing/python/tests/test_dcgm_reader.py | omertuc/DCGM | 904e1600e5924ef60ac5256d492d0b7f6a7244bc | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, NVIDIA CORPORATION. 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 appli... | 35.947368 | 94 | 0.69316 |
83a81a83e057b3d3c679bc9510ffe5779a6f5647 | 14,761 | py | Python | tests/lava/lib/dl/slayer/neuron/test_alif.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 37 | 2021-09-30T16:47:15.000Z | 2022-03-07T22:29:21.000Z | tests/lava/lib/dl/slayer/neuron/test_alif.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 36 | 2021-11-04T16:54:55.000Z | 2022-03-31T02:26:29.000Z | tests/lava/lib/dl/slayer/neuron/test_alif.py | timcheck/lava-dl | e680722071129fde952ea0d744984aa2a038797a | [
"BSD-3-Clause"
] | 20 | 2021-10-29T22:55:58.000Z | 2022-03-22T17:27:16.000Z | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
import sys
import os
import unittest
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.nn.functional as F
from lava.lib.dl.slayer.neuron import alif
verbose = True if (('-v' in sys.argv) or ('--verbose' in sys.... | 34.569087 | 78 | 0.492175 |
83a83633ab9542d9e22f77076652f1c0ce78f53a | 526 | py | Python | amount_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | null | null | null | amount_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | 2 | 2015-11-08T18:50:11.000Z | 2015-11-08T18:50:42.000Z | amount_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | null | null | null | import decimal
import pytest
from amount import Amount as A
| 21.04 | 46 | 0.452471 |
83a84321ea0a0bc9570475d0ce3c63e9712bd0ca | 4,449 | py | Python | DiscoGAN/discogan_train.py | sumersumerdjl/kozistr-Awesome-GANs | 6e20e9cd07d0ec413a187d496159b97d793dab0c | [
"MIT"
] | 1 | 2021-08-16T01:40:46.000Z | 2021-08-16T01:40:46.000Z | DiscoGAN/discogan_train.py | Psyche-mia/Awesome-GANs | 6e20e9cd07d0ec413a187d496159b97d793dab0c | [
"MIT"
] | null | null | null | DiscoGAN/discogan_train.py | Psyche-mia/Awesome-GANs | 6e20e9cd07d0ec413a187d496159b97d793dab0c | [
"MIT"
] | 1 | 2021-08-16T01:35:21.000Z | 2021-08-16T01:35:21.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import tensorflow as tf
# import numpy as np
import time
import discogan
import sys
sys.path.insert(0, '../')
import image_utils as iu
from datasets import Pix2PixDataSet as DataSets
results = {
'sampl... | 34.757813 | 111 | 0.537199 |
83a940e2ed8e27f8008df09f81164f38241b0cc0 | 303 | bzl | Python | examples/index.bzl | SebastianPodgajny/rules_nodejs | 7d1fbd9b6751225f502eccf2a91d1059371d461d | [
"Apache-2.0"
] | null | null | null | examples/index.bzl | SebastianPodgajny/rules_nodejs | 7d1fbd9b6751225f502eccf2a91d1059371d461d | [
"Apache-2.0"
] | null | null | null | examples/index.bzl | SebastianPodgajny/rules_nodejs | 7d1fbd9b6751225f502eccf2a91d1059371d461d | [
"Apache-2.0"
] | null | null | null | "Used to reference the nested workspaces for examples in /WORKSPACE"
ALL_EXAMPLES = [
"angular",
"app",
"kotlin",
"nestjs",
"parcel",
"protocol_buffers",
"user_managed_deps",
"vendored_node",
"vendored_node_and_yarn",
"web_testing",
"webapp",
"worker",
]
| 18.9375 | 68 | 0.617162 |
83a97810070d0ec137e7706e16cb2e0d4e501275 | 2,611 | py | Python | testproject/testproject/views.py | Najiva/django-tables2-column-shifter | 90695d5890c4ef6d7ba58a189a53d712aa8b9e14 | [
"BSD-3-Clause"
] | 19 | 2017-01-04T19:17:57.000Z | 2021-08-05T20:06:32.000Z | testproject/testproject/views.py | Najiva/django-tables2-column-shifter | 90695d5890c4ef6d7ba58a189a53d712aa8b9e14 | [
"BSD-3-Clause"
] | 16 | 2017-02-20T20:24:01.000Z | 2021-07-23T12:50:35.000Z | testproject/testproject/views.py | Najiva/django-tables2-column-shifter | 90695d5890c4ef6d7ba58a189a53d712aa8b9e14 | [
"BSD-3-Clause"
] | 8 | 2017-01-26T07:15:54.000Z | 2022-03-22T18:03:24.000Z | from django.views.generic import TemplateView
from django_tables2.config import RequestConfig
from django_tables2_column_shifter.tables import (
ColumnShiftTableBootstrap2,
ColumnShiftTableBootstrap3,
ColumnShiftTableBootstrap4,
ColumnShiftTableBootstrap5,
)
from .models import Author, Book
from .tabl... | 32.234568 | 86 | 0.73152 |
83ab1978e9bfcb9289cdc6a850d6619b639f3ad4 | 967 | py | Python | experiments/12_wiki_training.py | dddaga/word-tree | ed6c59c16feee04d5c6003b3f5f4df68e6808e04 | [
"MIT"
] | null | null | null | experiments/12_wiki_training.py | dddaga/word-tree | ed6c59c16feee04d5c6003b3f5f4df68e6808e04 | [
"MIT"
] | null | null | null | experiments/12_wiki_training.py | dddaga/word-tree | ed6c59c16feee04d5c6003b3f5f4df68e6808e04 | [
"MIT"
] | 1 | 2020-12-02T09:07:06.000Z | 2020-12-02T09:07:06.000Z | import numpy as np
EXPERIMENT_NAME = 'EXP_12'
CORPUS_PATH = '/home/dddhiraj/Documents/stuff/data/wiki_en.txt'
TRAINING_WINDOW = 5
CONTEXT_DIMENSION = 64
LEANING_RATE = 1
DROPOUT = 0.05
CONTEXT_DECAY = 1 - TRAINING_WINDOW ** -0.5
CONTRASTIVE_WEIGHT = 1#0.1
NEGATIVE_SAMPLE_SIZE ... | 21.021739 | 82 | 0.680455 |
83ab5e631ea0bec7a174bfa753c93a724a3979a9 | 49,562 | py | Python | yasi.py | arenadotio/yasi-sexp-indenter | f64cd332b3f41d7c2b3458b4279a13ec26df16b8 | [
"MIT"
] | null | null | null | yasi.py | arenadotio/yasi-sexp-indenter | f64cd332b3f41d7c2b3458b4279a13ec26df16b8 | [
"MIT"
] | 1 | 2020-07-14T16:07:38.000Z | 2020-07-14T16:07:38.000Z | yasi.py | arenadotio/yasi-sexp-indenter | f64cd332b3f41d7c2b3458b4279a13ec26df16b8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
""" yasi
Date: 20th November 2013
Author: nkmathew <kipkoechmathew@gmail.com>
Dialect aware s-expression indenter
"""
from __future__ import print_function
import argparse
import hashlib
import os
import re
import shutil
import sys
import time
import collections
import json
i... | 38.994493 | 115 | 0.57877 |
83aba0fd5dc8afef0605fcfd0ba5992a35684f2e | 12,989 | py | Python | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | 3 | 2021-10-12T08:17:01.000Z | 2021-12-21T01:17:54.000Z | import asyncio
from collections import deque
from . import *
CmdHelp("animoji").add_command(
'think', None, 'Use and see'
).add_command(
'ccry', None, 'Use and see'
).add_command(
'fap', None, 'Use and see'
).add_command(
'lmao', None, 'Use and see'
).add_command(
'nothappy', None, 'Use a... | 26.781443 | 81 | 0.528755 |
83abb74e341537b5ab6f003c11360924411e10b7 | 4,014 | py | Python | Chapter09/01-optimize-mlp-layers.py | KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python | ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686 | [
"MIT"
] | null | null | null | Chapter09/01-optimize-mlp-layers.py | KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python | ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686 | [
"MIT"
] | null | null | null | Chapter09/01-optimize-mlp-layers.py | KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python | ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686 | [
"MIT"
] | null | null | null | from deap import base
from deap import creator
from deap import tools
import random
import numpy
import mlp_layers_test
import elitism
# boundaries for layer size parameters:
# [layer_layer_1_size, hidden_layer_2_size, hidden_layer_3_size, hidden_layer_4_size]
BOUNDS_LOW = [ 5, -5, -10, -20]
BOUNDS_HIGH = [15, 10... | 31.359375 | 89 | 0.623069 |
83abd40caac456af21954f1d6b702333668a6968 | 14,410 | py | Python | tokenizer/state_table.py | xxronvel/foobar | 0e4ca414a532eaa69803888a65ac1a2e0114183e | [
"MIT"
] | 1 | 2016-04-28T02:20:59.000Z | 2016-04-28T02:20:59.000Z | tokenizer/state_table.py | xxronvel/foobar | 0e4ca414a532eaa69803888a65ac1a2e0114183e | [
"MIT"
] | null | null | null | tokenizer/state_table.py | xxronvel/foobar | 0e4ca414a532eaa69803888a65ac1a2e0114183e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2016 Aarn Abraham Velasco Alvarez
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 righ... | 83.294798 | 151 | 0.373352 |
83ade6c082d1004a672714e19137f8f4cc8ec685 | 748 | py | Python | notifications_utils/__init__.py | cds-snc/notifier-utils | c3a205ac4381312fe1884a39ffafa7ffb862736f | [
"MIT"
] | 3 | 2020-04-29T17:13:43.000Z | 2020-12-04T21:08:33.000Z | notifications_utils/__init__.py | cds-snc/notifier-utils | c3a205ac4381312fe1884a39ffafa7ffb862736f | [
"MIT"
] | 21 | 2020-04-16T12:29:46.000Z | 2022-02-28T17:17:15.000Z | notifications_utils/__init__.py | cds-snc/notifier-utils | c3a205ac4381312fe1884a39ffafa7ffb862736f | [
"MIT"
] | 4 | 2020-02-21T20:20:00.000Z | 2021-02-11T19:00:59.000Z | import re
SMS_CHAR_COUNT_LIMIT = 612 # 153 * 4
# regexes for use in recipients.validate_email_address.
# Valid characters taken from https://en.wikipedia.org/wiki/Email_address#Local-part
# Note: Normal apostrophe eg `Firstname-o'surname@domain.com` is allowed.
hostname_part = re.compile(r"^(xn-|[a-z0-9]+)(-[a-z0-9]... | 44 | 92 | 0.667112 |
83af8ba0d0f4e817ed4ef6eadece62ddc41fd7db | 1,230 | py | Python | respondd/Cache.py | FreiFunkMuenster/py-respondd | 4b59b0fa2418ed021abe2dca5906b8290e4600d0 | [
"MIT"
] | null | null | null | respondd/Cache.py | FreiFunkMuenster/py-respondd | 4b59b0fa2418ed021abe2dca5906b8290e4600d0 | [
"MIT"
] | null | null | null | respondd/Cache.py | FreiFunkMuenster/py-respondd | 4b59b0fa2418ed021abe2dca5906b8290e4600d0 | [
"MIT"
] | null | null | null | import time | 22.363636 | 66 | 0.652846 |
83b09d2ad07562da3b8e8e789cc7815800d89928 | 1,338 | py | Python | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | from jsonclasses.cgraph import CGraph
from .import_lines import import_lines
from .string_query import string_query
from .int_query import int_query
from .float_query import float_query
from .bool_query import bool_query
from .sort_order import sort_order
from .data_enum import data_enum
from .data_class import data_cl... | 34.307692 | 64 | 0.724963 |
83b0ae650bd55397213c23d819dd2927624d8665 | 121 | py | Python | common/utils/__init__.py | jl1990/alpha-zero-general | 6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4 | [
"MIT"
] | null | null | null | common/utils/__init__.py | jl1990/alpha-zero-general | 6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4 | [
"MIT"
] | null | null | null | common/utils/__init__.py | jl1990/alpha-zero-general | 6a1549f9cd1b2ebdffee30f8de1be9cbefecd5f4 | [
"MIT"
] | null | null | null | """Useful utils
"""
from .eval import *
from .misc import *
# progress bar
from .progress.progress.bar import Bar as Bar
| 17.285714 | 45 | 0.719008 |
83b152d0790dab9900fa13fb39789949a2ecb7fe | 6,664 | py | Python | examples/move_presets.py | crazy-djactor/OnVifControlCam | 36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d | [
"MIT"
] | null | null | null | examples/move_presets.py | crazy-djactor/OnVifControlCam | 36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d | [
"MIT"
] | null | null | null | examples/move_presets.py | crazy-djactor/OnVifControlCam | 36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d | [
"MIT"
] | null | null | null | import zeep
import asyncio, sys
from onvif import ONVIFCamera
import cv2
import numpy as np
import urllib
from urllib.request import urlopen
IP="192.168.2.22" # Camera IP address
PORT=80 # Port
USER="admin" # Username
PASS="C0nc3ll0M4r1n" # Password
XMAX = 1
XMIN = -1
YMAX = 1
YMIN = -1
mov... | 36.415301 | 144 | 0.620048 |
83b20a373bfc0ad0b76d049c2ba241c013b10033 | 737 | py | Python | utils.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | utils.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | 2 | 2022-01-11T15:50:04.000Z | 2022-01-13T01:53:53.000Z | utils.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | from string import ascii_lowercase, digits
from random import choice
from re import compile
| 28.346154 | 72 | 0.58616 |
83b36d8e12e62551ee0f6bc0e1772654ff4d0f33 | 232 | py | Python | comment/admin.py | Samurai-XHe/myblog | c9e182b84c3cb06b3207e7359f0a4d352c28d043 | [
"MIT"
] | 1 | 2018-09-25T09:11:17.000Z | 2018-09-25T09:11:17.000Z | comment/admin.py | Samurai-XHe/myblog | c9e182b84c3cb06b3207e7359f0a4d352c28d043 | [
"MIT"
] | null | null | null | comment/admin.py | Samurai-XHe/myblog | c9e182b84c3cb06b3207e7359f0a4d352c28d043 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Comment
| 29 | 105 | 0.728448 |
83b3965c73ce131b836c28e365aa820a33396d8f | 2,602 | py | Python | DiSPy/core/path.py | munrojm/DiSPy | c1ae9e213d16bfd098b362e7d54d997cd95f8919 | [
"MIT"
] | 19 | 2018-10-05T01:49:36.000Z | 2021-11-23T13:35:22.000Z | DiSPy/core/path.py | munrojm/DiSPy | c1ae9e213d16bfd098b362e7d54d997cd95f8919 | [
"MIT"
] | 1 | 2019-03-27T20:13:08.000Z | 2019-03-28T23:22:22.000Z | DiSPy/core/path.py | munrojm/DiSPy | c1ae9e213d16bfd098b362e7d54d997cd95f8919 | [
"MIT"
] | 6 | 2019-06-05T21:41:16.000Z | 2021-04-07T09:23:42.000Z | import numpy as np
from typing import Dict, List
from monty.json import MSONable
from pymatgen.core.structure import Structure
from pymatgen.symmetry.groups import SymmOp
from DiSPy.core.dg import DistortionGroup
from DiSPy.core.vecutils import closewrapped
# -- Path object and its attributes
| 30.97619 | 112 | 0.593774 |
83b4ad592dcb04cd2de490a6b0d70c2d9d26c009 | 2,815 | py | Python | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | from django.db import models
import datetime as dt
from django.urls import reverse
# Create your models here.
from cloudinary.models import CloudinaryField
# class Post(models.Model):
# title = models.CharField(max_length=200)
# author = models.ForeignKey('auth.User',
# on_delete=models.CASC... | 29.946809 | 79 | 0.671403 |
83b730a44041eeddf60233b1f8b68fb907f48e86 | 2,386 | py | Python | tests/unit/test_product.py | jeantardelli/architecture-patterns-with-python | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | [
"MIT"
] | 1 | 2021-04-07T18:04:56.000Z | 2021-04-07T18:04:56.000Z | tests/unit/test_product.py | jeantardelli/architecture-patterns-with-python | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | [
"MIT"
] | null | null | null | tests/unit/test_product.py | jeantardelli/architecture-patterns-with-python | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | [
"MIT"
] | null | null | null | from datetime import date, timedelta
from allocation.domain import events
from allocation.domain.model import Product, OrderLine, Batch
today = date.today()
tomorrow = today + timedelta(days=1)
later = tomorrow + timedelta(days=10)
| 39.114754 | 86 | 0.720034 |
83b9a7791d97770f25fe0980d7aaeedc83bafde6 | 6,129 | py | Python | tests/unit/states/test_grafana.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-03-31T22:51:16.000Z | 2020-03-31T22:51:16.000Z | tests/unit/states/test_grafana.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/unit/states/test_grafana.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-30T07:00:01.000Z | 2021-09-30T07:00:01.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
'''
# Import Python libs
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase
from tests.suppo... | 44.093525 | 81 | 0.498287 |
83b9dae35ff849de97a8ab5c1b5b328eee4bf2a8 | 517 | py | Python | 08.Graph/Kruskal.py | SP2021-2/Algorithm | 2e629eb5234212fad8bbc11491aad068e5783780 | [
"MIT"
] | 1 | 2021-11-21T06:03:06.000Z | 2021-11-21T06:03:06.000Z | 08.Graph/Kruskal.py | SP2021-2/Algorithm | 2e629eb5234212fad8bbc11491aad068e5783780 | [
"MIT"
] | 2 | 2021-10-13T07:21:09.000Z | 2021-11-14T13:53:08.000Z | 08.Graph/Kruskal.py | SP2021-2/Algorithm | 2e629eb5234212fad8bbc11491aad068e5783780 | [
"MIT"
] | null | null | null | # 5 7
# 0 1 1
# 0 2 3
# 1 2 3
# 1 3 6
# 2 3 4
# 2 4 2
# 3 4 5
import sys
import heapq as hq
N, M = map(int, sys.stdin.readline().split(" "))
W = [[float('inf')] * N for _ in range(N)]
h = []
for _ in range(M):
i, j, w = map(int, sys.stdin.readline().split(" "))
hq.heappush(h, (w, i, j))
print(h)
print(Krusk... | 16.15625 | 55 | 0.537718 |
83babd001889716c3b9b2382b50058698f6c9529 | 4,701 | py | Python | resources.py | kordimsan/FreeWorker-Api | f4566d2d500328725c88d5fc5df7a4763cb4c185 | [
"MIT"
] | null | null | null | resources.py | kordimsan/FreeWorker-Api | f4566d2d500328725c88d5fc5df7a4763cb4c185 | [
"MIT"
] | null | null | null | resources.py | kordimsan/FreeWorker-Api | f4566d2d500328725c88d5fc5df7a4763cb4c185 | [
"MIT"
] | null | null | null | #from flask_restful import Resource, reqparse
from flask_restplus import Resource, reqparse,fields
from models import UserModel, RevokedTokenModel
from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt)
from run import api
pars... | 34.313869 | 147 | 0.605829 |
83bb637db13a5d4678648b8d28c8559126ac4919 | 3,176 | py | Python | archivist/parser.py | Serhiy1/archivist-python | 70c7acf29eecd303bb1517d3636663d83f36cc2c | [
"MIT"
] | 2 | 2021-05-04T15:12:37.000Z | 2021-09-08T10:04:41.000Z | archivist/parser.py | Serhiy1/archivist-python | 70c7acf29eecd303bb1517d3636663d83f36cc2c | [
"MIT"
] | 35 | 2021-05-04T12:39:26.000Z | 2022-03-28T09:20:19.000Z | archivist/parser.py | Serhiy1/archivist-python | 70c7acf29eecd303bb1517d3636663d83f36cc2c | [
"MIT"
] | 6 | 2021-04-28T14:49:48.000Z | 2022-01-07T15:29:05.000Z | """common parser argument
"""
# pylint: disable=missing-docstring
# pylint: disable=too-few-public-methods
import argparse
from enum import Enum
import logging
from sys import exit as sys_exit
from . import archivist
from .logger import set_logger
from .proof_mechanism import ProofMechanism
LOGGER = logging.getL... | 25.821138 | 90 | 0.630668 |
83bc85a7d09d10f1f239ce0341b95393b82459b8 | 6,635 | py | Python | skytap/models/UserData.py | mapledyne/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 3 | 2019-04-17T13:07:30.000Z | 2021-09-09T22:01:14.000Z | skytap/models/UserData.py | FulcrumIT/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 10 | 2016-11-02T20:48:38.000Z | 2021-09-15T15:29:34.000Z | skytap/models/UserData.py | FulcrumIT/skytap | c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45 | [
"MIT"
] | 3 | 2016-03-03T07:25:13.000Z | 2016-08-30T15:33:03.000Z | """Support for the UserData resource in Skytap.
Specifically, this is for custom ('user data') that's applied to an environment
or VM. This data can be text or, in the context of using it with this Skytap
script, it can also be JSON or YAML and will then be re-parsed.
This allows users to put data into a VM user data... | 29.753363 | 79 | 0.505803 |
83bdd2c382d1213ade5ce2c23b12fd693e9a4c32 | 700 | py | Python | example.py | six-two/py_derive_cmd | ae821f16a057a809166b287ab9f203a8cf4b34b3 | [
"MIT"
] | null | null | null | example.py | six-two/py_derive_cmd | ae821f16a057a809166b287ab9f203a8cf4b34b3 | [
"MIT"
] | null | null | null | example.py | six-two/py_derive_cmd | ae821f16a057a809166b287ab9f203a8cf4b34b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=unused-wildcard-import
from py_derive_cmd import *
import cmd
s = Settings(MyCmd, print_warnings=False)
CommandInfo(s, test_register, ['registered', 'r'], 'Test for register', raw_arg=True).register()
shell = MyCmd()
shell.cmdloop() | 25 | 96 | 0.708571 |
83be1a3a3ee334b7ce8506d005b0c751dcb0f57c | 2,474 | py | Python | tf_quant_finance/datetime/constants.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 3,138 | 2019-07-24T21:43:17.000Z | 2022-03-30T12:11:09.000Z | tf_quant_finance/datetime/constants.py | Aarif1430/tf-quant-finance | 9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6 | [
"Apache-2.0"
] | 63 | 2019-09-07T19:16:03.000Z | 2022-03-29T19:29:40.000Z | tf_quant_finance/datetime/constants.py | Aarif1430/tf-quant-finance | 9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6 | [
"Apache-2.0"
] | 423 | 2019-07-26T21:28:05.000Z | 2022-03-26T13:07:44.000Z | # Lint as: python3
# 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 agr... | 26.891304 | 80 | 0.696847 |
83bf94a78ac2eb29dfd1c2b50e991146823fcf6e | 2,345 | py | Python | generate_trajectories.py | keuntaeklee/pytorch-PPUU | 0ba8c953df9cdb1e9937e301ed3384ac6b66ea73 | [
"MIT"
] | 159 | 2019-01-23T07:17:36.000Z | 2022-03-29T14:33:31.000Z | generate_trajectories.py | keuntaeklee/pytorch-PPUU | 0ba8c953df9cdb1e9937e301ed3384ac6b66ea73 | [
"MIT"
] | 44 | 2019-04-29T15:11:44.000Z | 2022-02-21T18:28:46.000Z | generate_trajectories.py | keuntaeklee/pytorch-PPUU | 0ba8c953df9cdb1e9937e301ed3384ac6b66ea73 | [
"MIT"
] | 61 | 2019-01-23T12:31:54.000Z | 2022-03-07T09:25:20.000Z | import argparse, pdb
import gym
import numpy as np
import os
import pickle
import random
import torch
import scipy.misc
from gym.envs.registration import register
parser = argparse.ArgumentParser()
parser.add_argument('-display', type=int, default=0)
parser.add_argument('-seed', type=int, default=1)
parser.add_argumen... | 24.946809 | 103 | 0.704478 |
83c0b7884ac12f94ceaeb582cc3c5f5cebb5a227 | 999 | py | Python | main.py | mvazifeh/gridart | 78c01d6e660ca9c61f1220e102975ca632a2af6b | [
"MIT"
] | null | null | null | main.py | mvazifeh/gridart | 78c01d6e660ca9c61f1220e102975ca632a2af6b | [
"MIT"
] | null | null | null | main.py | mvazifeh/gridart | 78c01d6e660ca9c61f1220e102975ca632a2af6b | [
"MIT"
] | null | null | null | import matplotlib.pylab as plt
import numpy as np
import random
from scipy.ndimage import gaussian_filter
mu =9
N = 50
k = 10
eta =10
sigma = 2
p0 = 0.5
inverse_random = False
L = range(N*N)
Q = np.zeros((N*mu,N*mu))
for o in range(mu*mu):
print(o)
F = 1000*k
a = np.ones((N,N))
for k_ in range(1000):
... | 24.975 | 79 | 0.573574 |
83c0d18d58ec56ff811ed70776d16216d48d95ed | 9,841 | py | Python | fixture/contact.py | ruslankl9/python_training | 7bcaf2606a80935a4a0c458af4e6a078f241fb38 | [
"Apache-2.0"
] | null | null | null | fixture/contact.py | ruslankl9/python_training | 7bcaf2606a80935a4a0c458af4e6a078f241fb38 | [
"Apache-2.0"
] | null | null | null | fixture/contact.py | ruslankl9/python_training | 7bcaf2606a80935a4a0c458af4e6a078f241fb38 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import re | 43.737778 | 117 | 0.648206 |
83c1d004633b6b337c6d2bc2c9a3fefc61d57d42 | 789 | py | Python | setup.py | nakagami/pure-pyawabi | 5ffafcaa381727af7f84013cf036a4e8f7dd51da | [
"MIT"
] | 1 | 2021-12-13T11:29:04.000Z | 2021-12-13T11:29:04.000Z | setup.py | nakagami/pure-pyawabi | 5ffafcaa381727af7f84013cf036a4e8f7dd51da | [
"MIT"
] | null | null | null | setup.py | nakagami/pure-pyawabi | 5ffafcaa381727af7f84013cf036a4e8f7dd51da | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="pure-pyawabi",
version="0.2.4",
description='A morphological analyzer awabi clone',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type="text/markdown",
url='https://github.com/nakagami/pure-pyawabi/',
classifi... | 30.346154 | 64 | 0.628644 |
83c2085a8eb1b76f57b29dca121b213d911376c1 | 3,137 | py | Python | vacancies_and_studentships/models.py | okyame/Arkestra | 4aa22816b33d8f2d7a6bc8f7a498957134b557dd | [
"BSD-2-Clause"
] | 1 | 2020-01-15T15:17:06.000Z | 2020-01-15T15:17:06.000Z | vacancies_and_studentships/models.py | okyame/Arkestra | 4aa22816b33d8f2d7a6bc8f7a498957134b557dd | [
"BSD-2-Clause"
] | null | null | null | vacancies_and_studentships/models.py | okyame/Arkestra | 4aa22816b33d8f2d7a6bc8f7a498957134b557dd | [
"BSD-2-Clause"
] | null | null | null | from django.db import models
# from cms.models.fields import PlaceholderField
from cms.models import CMSPlugin
# from filer.fields.image import FilerImageField
from arkestra_utilities.output_libraries.dates import nice_date
# from arkestra_utilities.models import ArkestraGenericModel
from arkestra_utilities.generic_... | 36.057471 | 157 | 0.723621 |
83c27bbb12a53e327e73c5820df10eeefe5bccca | 239 | py | Python | examples/django/015_deploy_app/project/example/views.py | HalfBottleOfMind/website | 9bc83f11127ebb4f65124f794a7138373c95ab81 | [
"Apache-2.0"
] | 12 | 2020-09-08T03:33:43.000Z | 2021-09-03T12:31:38.000Z | examples/django/015_deploy_app/project/example/views.py | HalfBottleOfMind/website | 9bc83f11127ebb4f65124f794a7138373c95ab81 | [
"Apache-2.0"
] | 39 | 2021-01-29T16:11:45.000Z | 2021-12-08T08:34:27.000Z | examples/django/015_deploy_app/project/example/views.py | HalfBottleOfMind/website | 9bc83f11127ebb4f65124f794a7138373c95ab81 | [
"Apache-2.0"
] | 23 | 2020-09-07T14:42:39.000Z | 2021-12-07T20:41:29.000Z | from rest_framework import viewsets
from .models import Label
from .serizalizers import LabelSerializer
| 23.9 | 49 | 0.799163 |
83c2e6b596e3c848fe9f97b575c98a5ef638509f | 2,660 | py | Python | src/olympia/github/tests/test_views.py | gijsk/addons-server | 7c38f379e3a0b4a5ca231f98ac0c049450c224bd | [
"BSD-3-Clause"
] | null | null | null | src/olympia/github/tests/test_views.py | gijsk/addons-server | 7c38f379e3a0b4a5ca231f98ac0c049450c224bd | [
"BSD-3-Clause"
] | null | null | null | src/olympia/github/tests/test_views.py | gijsk/addons-server | 7c38f379e3a0b4a5ca231f98ac0c049450c224bd | [
"BSD-3-Clause"
] | null | null | null | import json
from django.utils.http import urlencode
import mock
import requests
from olympia.amo.tests import AMOPaths, TestCase
from olympia.amo.urlresolvers import reverse
from olympia.files.models import FileUpload
from olympia.github.tests.test_github import (
GithubBaseTestCase, example_pull_request)
| 31.666667 | 77 | 0.642105 |
83c369bbe9d3c23a66d5fe993029ea43352f5559 | 676 | py | Python | exopy_qm/tasks/tasks/GetIOValuesTask.py | rassouly/exopy_qm | 82eb7e4b4fc7364df3462bb7faa7a0880d699afc | [
"BSD-3-Clause"
] | null | null | null | exopy_qm/tasks/tasks/GetIOValuesTask.py | rassouly/exopy_qm | 82eb7e4b4fc7364df3462bb7faa7a0880d699afc | [
"BSD-3-Clause"
] | null | null | null | exopy_qm/tasks/tasks/GetIOValuesTask.py | rassouly/exopy_qm | 82eb7e4b4fc7364df3462bb7faa7a0880d699afc | [
"BSD-3-Clause"
] | null | null | null | from exopy.tasks.api import (InstrumentTask)
from atom.api import Unicode, Bool, set_default
import sys
from exopy_qm.utils.dynamic_importer import *
| 26 | 58 | 0.653846 |
83c3b7af49b5b0a425d6a463dbe982452346eedf | 4,381 | py | Python | src/ns_web_api/web/ptx/thsr.py | steny138/PyNintendoEPrice | def9c95690cf3cf72615ae4216fee8fca2934de1 | [
"Apache-2.0"
] | null | null | null | src/ns_web_api/web/ptx/thsr.py | steny138/PyNintendoEPrice | def9c95690cf3cf72615ae4216fee8fca2934de1 | [
"Apache-2.0"
] | 3 | 2020-06-22T15:38:18.000Z | 2021-11-24T02:01:51.000Z | src/ns_web_api/web/ptx/thsr.py | steny138/PyNintendoEPrice | def9c95690cf3cf72615ae4216fee8fca2934de1 | [
"Apache-2.0"
] | 1 | 2018-08-04T08:15:05.000Z | 2018-08-04T08:15:05.000Z | import requests
import logging
from .auth import Auth
domain = "https://ptx.transportdata.tw/MOTC/v2/Rail/THSR/"
default_limit_count = 20
logger = logging.getLogger('flask.app')
auth = Auth()
def get_station():
"""GET /v2/Rail/THSR/Station
Returns:
[dict] --
"""
action = "Station"
u... | 20.471963 | 105 | 0.582059 |
83c3ff2e3e7205ac40f986b841cd8fa73336b765 | 1,158 | py | Python | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet/fixed-pipeline/GarnetRouter_PNET_Container_d.py | pnkfb9/gem5_priority | fbf766277df78a470758cf7d798d12fb1e7c51c4 | [
"BSD-3-Clause"
] | null | null | null | # Authors: Davide Zoni
from m5.params import *
from m5.proxy import *
from BasicRouter import BasicRouter
| 52.636364 | 120 | 0.740069 |
83c5d489d870a160b110a47da3fc244bdbe0bd80 | 4,699 | py | Python | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | import os
location = os.path.join(os.path.dirname(__file__), 'Functions\\')
#location = 'Tests\\'
execfile(location + 'getVersion.py')
execfile(location + 'writeSBML.py')
#execfile(location + 'computeSteadyStateValues.py')
execfile(location + 'evalModel.py')
#execfile(location + 'getAvailableSymbols.py')
... | 44.330189 | 72 | 0.770377 |
83c6045e3e675c58b5fec8fdf9881ebf94e9feda | 334 | py | Python | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | null | null | null | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | null | null | null | condition/models.py | SamusChief/myth-caster-api | 76a43f48b70c6a4b509c90757d7906689799cc25 | [
"MIT"
] | 1 | 2021-08-14T18:46:52.000Z | 2021-08-14T18:46:52.000Z | """ Models for Conditions app """
from django.db import models
from common.models import OwnedModel
| 23.857143 | 71 | 0.700599 |
83c68825efc5cb85db8af2cf295d7be0c83834f7 | 11,214 | py | Python | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 115 | 2017-12-06T16:31:10.000Z | 2022-03-01T13:13:55.000Z | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 21 | 2017-11-15T18:28:16.000Z | 2021-04-22T15:26:45.000Z | curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py | coco-robotics/rllab-curriculum | f55b50224fcf5a9a5c064542eb0850a966cab223 | [
"MIT"
] | 46 | 2017-12-22T22:26:01.000Z | 2022-02-17T06:34:15.000Z | from curriculum.utils import set_env_no_gpu, format_experiment_prefix
set_env_no_gpu()
import argparse
import math
import os
import os.path as osp
import sys
import random
from multiprocessing import cpu_count
import numpy as np
import tensorflow as tf
from rllab.misc.instrument import run_experiment_lite
from rllab... | 40.05 | 124 | 0.626895 |
83c83c646b4979fd4f5db5513084e63e8c7ce3e0 | 2,176 | py | Python | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | health_reminder.py | carlkho-cvk/tbe_discord | f1dc05d0cd288b1be4e8d164f58056422627fcc1 | [
"MIT"
] | null | null | null | # Fitness monday variables
morning_1 = "10:00"
morning_2 = "8:00"
afternoon_1 = "13:00"
afternoon_2 = "14:30"
afternoon_3 = "15:30"
afternoon_4 = "17:55"
evening_1 = "20:30"
evening_2 = "21:10"
date_announce = [1, 2, 3, 4, 5]
image_file_list = [
'Exercise_Three.png',
'Exercise_Two_2.png'
]
... | 31.085714 | 94 | 0.664522 |
83ca8eae1114abccb3186c9a6251ba6c788bcf35 | 6,559 | py | Python | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | 1 | 2021-04-16T02:08:39.000Z | 2021-04-16T02:08:39.000Z | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | 1 | 2021-07-27T16:17:41.000Z | 2021-07-27T16:17:41.000Z | Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py | PonceLab/as-simple-as-possible | a4093651f226d749b204c48b623acb28221c3bc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: https://kazuto1011.github.io
# Date: 07 January 2019
from __future__ import absolute_import, division, print_function
import click
import cv2
import matplotlib
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import... | 34.161458 | 309 | 0.639579 |
83cb1b811a0c4db430f4a4ca89a5f71fcbd3b310 | 1,131 | py | Python | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 14 | 2019-04-15T08:51:10.000Z | 2022-03-25T20:37:28.000Z | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 4 | 2019-03-09T22:02:50.000Z | 2021-08-24T21:03:48.000Z | setup.py | kvietcong/md-tangle | 4170c72f7119adc62eeb75822081a6858ed3c9dc | [
"MIT"
] | 3 | 2020-12-24T05:23:53.000Z | 2022-03-23T14:00:44.000Z | import setuptools
import md_tangle
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=md_tangle.__title__,
version=md_tangle.__version__,
license=md_tangle.__license__,
author=md_tangle.__author__,
author_email=md_tangle.__author_email__,
description="Ge... | 31.416667 | 76 | 0.650752 |
83cb7ebba4b89b28bb78615faadb44744d2cc3e7 | 3,658 | py | Python | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | 5 | 2021-10-04T06:11:21.000Z | 2022-02-22T17:57:43.000Z | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | src/dvi/bayes_models.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from .bayes_layers import VariationalLinearCertainActivations, VariationalLinearReLU
from .variables import GaussianVar
| 37.71134 | 124 | 0.61099 |
83cdd7dc6122382de1e26b815171dea31d9c7f62 | 917 | py | Python | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | from datetime import date
from django.db import models
# Create your models here.
| 28.65625 | 66 | 0.715376 |