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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10fd14ffad39bd5b02627e93c4a2e36424183645 | 3,065 | py | Python | test/test_tae/test_serial_runner.py | dengdifan/SMAC3 | 4739741fe9f6b0b92d419bac8f0a6252858a55dc | [
"BSD-3-Clause"
] | 1 | 2021-05-12T10:11:59.000Z | 2021-05-12T10:11:59.000Z | test/test_tae/test_serial_runner.py | dengdifan/SMAC3 | 4739741fe9f6b0b92d419bac8f0a6252858a55dc | [
"BSD-3-Clause"
] | 1 | 2021-06-17T07:57:05.000Z | 2021-06-17T07:57:05.000Z | test/test_tae/test_serial_runner.py | dengdifan/SMAC3 | 4739741fe9f6b0b92d419bac8f0a6252858a55dc | [
"BSD-3-Clause"
] | null | null | null | import time
import unittest
import unittest.mock
from smac.configspace import ConfigurationSpace
from smac.runhistory.runhistory import RunInfo, RunValue
from smac.scenario.scenario import Scenario
from smac.stats.stats import Stats
from smac.tae import StatusType
from smac.tae.execute_func import ExecuteTAFuncDict
fr... | 36.488095 | 92 | 0.651876 |
10fd538c1e9b6fd2668077d80094be203d83e7ee | 531 | py | Python | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | 1 | 2020-09-14T04:23:07.000Z | 2020-09-14T04:23:07.000Z | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | null | null | null | backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | ManuelRivera98/AdminGym | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-09-09 05:08
import django.core.validators
from django.db import migrations, models
| 26.55 | 170 | 0.642185 |
10fefb6ca4d9966756b86304037f68034335c7e9 | 3,467 | py | Python | tests/test_cli.py | mbbroberg/SEODeploy | 5de0c3f8f3658638128445e78854e6a6e2daa8cf | [
"MIT"
] | 48 | 2020-06-16T21:15:34.000Z | 2022-02-17T14:01:52.000Z | tests/test_cli.py | mbbroberg/SEODeploy | 5de0c3f8f3658638128445e78854e6a6e2daa8cf | [
"MIT"
] | 2 | 2020-07-06T12:22:19.000Z | 2021-03-31T19:52:07.000Z | tests/test_cli.py | mbbroberg/SEODeploy | 5de0c3f8f3658638128445e78854e6a6e2daa8cf | [
"MIT"
] | 8 | 2020-06-18T17:56:18.000Z | 2021-12-10T09:21:37.000Z | #! /usr/bin/env python
# coding: utf-8
#
# Copyright (c) 2020 JR Oakes
#
# 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,... | 30.412281 | 86 | 0.694837 |
8004c7034a1064cc38f2bbc44ad4467b6a218067 | 2,909 | py | Python | deeplodocus/callbacks/overwatch.py | samuelwestlake/deeplodocus-dev | 12b283ca4eb39abf13ddc56eabc78e01e90627ff | [
"MIT"
] | null | null | null | deeplodocus/callbacks/overwatch.py | samuelwestlake/deeplodocus-dev | 12b283ca4eb39abf13ddc56eabc78e01e90627ff | [
"MIT"
] | null | null | null | deeplodocus/callbacks/overwatch.py | samuelwestlake/deeplodocus-dev | 12b283ca4eb39abf13ddc56eabc78e01e90627ff | [
"MIT"
] | null | null | null | from deeplodocus.utils.generic_utils import get_corresponding_flag
from deeplodocus.utils.notification import Notification
from deeplodocus.flags import *
from typing import Union
| 29.383838 | 95 | 0.588518 |
8006430bdd0d52a353c5652143e970dab52dd84f | 2,483 | py | Python | _utils/merge.py | louiscklaw/kicad-automation-scripts | 1ac8780a5cedb89b5bc5099488b95847b75ff1e1 | [
"Apache-2.0"
] | null | null | null | _utils/merge.py | louiscklaw/kicad-automation-scripts | 1ac8780a5cedb89b5bc5099488b95847b75ff1e1 | [
"Apache-2.0"
] | null | null | null | _utils/merge.py | louiscklaw/kicad-automation-scripts | 1ac8780a5cedb89b5bc5099488b95847b75ff1e1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# reference build https://travis-ci.org/louiscklaw/test_git_repo/builds/625335510
# https://docs.travis-ci.com/user/environment-variables/
import os, re, subprocess
import slack
from fabric.api import local, shell_env, lcd, run, settings
SLACK_TOKEN = os.environ['SLACK_TOKEN']
BRANCH_TO_MERGE... | 40.048387 | 212 | 0.733387 |
800672400ab002d273b97749a1115a2fe16e3cc8 | 876 | py | Python | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | ## Built-in packages
import getopt
import json
import os
import sys
## Third-party packages
from PIL import Image
import joblib
import numpy as np
import tqdm
## Tensorflow
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropout
from... | 22.461538 | 54 | 0.833333 |
80067fa86a93ff0387d74613770e2eaa71c29680 | 7,715 | py | Python | src/unpackaged/abm/AnimationBehaviour/model8.py | agdturner/geog5990m | b6417820e6aaff7f0c785415c0d63eae3753a098 | [
"Apache-2.0"
] | null | null | null | src/unpackaged/abm/AnimationBehaviour/model8.py | agdturner/geog5990m | b6417820e6aaff7f0c785415c0d63eae3753a098 | [
"Apache-2.0"
] | null | null | null | src/unpackaged/abm/AnimationBehaviour/model8.py | agdturner/geog5990m | b6417820e6aaff7f0c785415c0d63eae3753a098 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__version__ 1.0.0
"""
import csv
import agentframework7 as af
import random
import matplotlib.pyplot as pyplot
from sys import argv
import matplotlib.animation as anim
import os
from multiprocessing import Process
import time
'''
Step 1: Initialise parameters
'''
prin... | 32.280335 | 100 | 0.628905 |
80083e1dfe6103dbfacdadbdcb511c7186bad38a | 26 | py | Python | password_policies/tests/__init__.py | manuerux/django-password-policies-iplweb | 5bab0277671fb8c853cec9c8aad64d92195030e9 | [
"BSD-3-Clause"
] | 5 | 2018-06-21T14:18:56.000Z | 2021-07-08T17:50:02.000Z | password_policies/tests/__init__.py | manuerux/django-password-policies-iplweb | 5bab0277671fb8c853cec9c8aad64d92195030e9 | [
"BSD-3-Clause"
] | 20 | 2018-01-25T22:01:25.000Z | 2022-03-15T13:26:47.000Z | password_policies/tests/__init__.py | manuerux/django-password-policies-iplweb | 5bab0277671fb8c853cec9c8aad64d92195030e9 | [
"BSD-3-Clause"
] | 19 | 2018-01-25T21:04:09.000Z | 2022-03-01T11:26:35.000Z | from ..receivers import *
| 13 | 25 | 0.730769 |
8008fc7a56eccf641872f78a3c91511e15979ffd | 3,156 | py | Python | manubot/cite/tests/test_citekey.py | olgabot/manubot | ddd099516d58d1428f92d91a69e4b7295de13335 | [
"BSD-3-Clause"
] | 1 | 2020-01-08T20:17:51.000Z | 2020-01-08T20:17:51.000Z | manubot/cite/tests/test_citekey.py | olgabot/manubot | ddd099516d58d1428f92d91a69e4b7295de13335 | [
"BSD-3-Clause"
] | null | null | null | manubot/cite/tests/test_citekey.py | olgabot/manubot | ddd099516d58d1428f92d91a69e4b7295de13335 | [
"BSD-3-Clause"
] | null | null | null | """Tests rest of functions in manubot.cite, not covered by test_citekey_api.py."""
import pytest
from manubot.cite.citekey import (
citekey_pattern,
shorten_citekey,
infer_citekey_prefix,
inspect_citekey,
)
| 31.247525 | 91 | 0.667934 |
8009a4111e57ce8f5e9c9514ac216b855ebf01d1 | 1,727 | py | Python | test/main_page_tests.py | savvagen/playwright-pytest-example | acf4e89d0a7dcc1b71b1eb012366b1393f515b41 | [
"Apache-2.0"
] | 19 | 2020-11-15T16:37:51.000Z | 2022-03-23T02:41:38.000Z | test/main_page_tests.py | cjydayang/playwright-pytest-example | acf4e89d0a7dcc1b71b1eb012366b1393f515b41 | [
"Apache-2.0"
] | 2 | 2021-01-03T21:38:37.000Z | 2021-01-27T08:32:00.000Z | test/main_page_tests.py | cjydayang/playwright-pytest-example | acf4e89d0a7dcc1b71b1eb012366b1393f515b41 | [
"Apache-2.0"
] | 8 | 2020-11-05T23:27:37.000Z | 2022-03-16T08:07:00.000Z | import pytest
from playwright.sync_api import Page
from pages.main_page.main_page import MainPage
from test.test_base import *
import logging
import re
logger = logging.getLogger("test")
| 38.377778 | 84 | 0.672264 |
8009f7a8792ab3c1e109b6ae68aa8435914b6d9f | 5,703 | py | Python | tfumap/parametric_tsne.py | EhsanKA/ParametricUMAP_paper | 14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51 | [
"MIT"
] | 124 | 2020-09-27T23:59:01.000Z | 2022-03-22T06:27:35.000Z | tfumap/parametric_tsne.py | EhsanKA/ParametricUMAP_paper | 14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51 | [
"MIT"
] | 2 | 2021-02-05T18:13:13.000Z | 2021-11-01T14:55:08.000Z | tfumap/parametric_tsne.py | EhsanKA/ParametricUMAP_paper | 14b6ef3ba6e46a8cc666e22eb9f9a4a1611d3c51 | [
"MIT"
] | 16 | 2020-09-28T07:43:21.000Z | 2022-03-21T00:31:34.000Z | ### based on https://github.com/kylemcdonald/Parametric-t-SNE/blob/master/Parametric%20t-SNE%20(Keras).ipynb
import numpy as np
from tensorflow.keras import backend as K
from tensorflow.keras.losses import categorical_crossentropy
from tqdm.autonotebook import tqdm
import tensorflow as tf
def Hbeta(D, beta):
""... | 34.98773 | 108 | 0.593898 |
800afe51edd1ad15aa21801c91bf0ec428b48bda | 3,466 | py | Python | test/unit/git_class/gitmerge_commits_diff.py | deepcoder42/git-lib | 7f5736ea71d6592390222a214b0e51cd3c3151f8 | [
"MIT"
] | null | null | null | test/unit/git_class/gitmerge_commits_diff.py | deepcoder42/git-lib | 7f5736ea71d6592390222a214b0e51cd3c3151f8 | [
"MIT"
] | null | null | null | test/unit/git_class/gitmerge_commits_diff.py | deepcoder42/git-lib | 7f5736ea71d6592390222a214b0e51cd3c3151f8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: gitmerge_commits_diff.py
Description: Unit testing of gitmerge.commits_diff in git_class.py.
Usage:
test/unit/git_class/gitmerge_commits_diff.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version... | 19.91954 | 78 | 0.613099 |
800d28c1f91ca5044c0a8edd4c02b62977545c76 | 500 | py | Python | Chapter04/code/func_perf3.py | PacktPublishing/IPython-7-Cookbook | 8b08b1de8b1b1ac75116873d820ed289d4173327 | [
"MIT"
] | 2 | 2019-03-30T02:44:37.000Z | 2021-10-04T17:56:42.000Z | Chapter04/code/func_perf3.py | PacktPublishing/IPython-7-Cookbook | 8b08b1de8b1b1ac75116873d820ed289d4173327 | [
"MIT"
] | null | null | null | Chapter04/code/func_perf3.py | PacktPublishing/IPython-7-Cookbook | 8b08b1de8b1b1ac75116873d820ed289d4173327 | [
"MIT"
] | 1 | 2019-01-30T01:59:44.000Z | 2019-01-30T01:59:44.000Z | import random
import string
if __name__ == "__main__":
main( )
| 19.230769 | 85 | 0.622 |
800e0260e131b801268f2e316c8771b9b824cfe5 | 4,826 | py | Python | mhmd-driver/parse_mtrees.py | cnasikas/smpc-analytics | bf663c38911b57c4b004498341a7882a57a21be2 | [
"MIT"
] | 12 | 2019-10-14T14:42:52.000Z | 2022-01-10T10:24:29.000Z | mhmd-driver/parse_mtrees.py | cnasikas/smpc-analytics | bf663c38911b57c4b004498341a7882a57a21be2 | [
"MIT"
] | null | null | null | mhmd-driver/parse_mtrees.py | cnasikas/smpc-analytics | bf663c38911b57c4b004498341a7882a57a21be2 | [
"MIT"
] | 1 | 2021-03-10T08:45:23.000Z | 2021-03-10T08:45:23.000Z | import os
import sys
import json
import argparse
from huepy import *
parser = argparse.ArgumentParser()
parser.add_argument('file', help= 'File with mtrees data (CSV or JSON)')
parser.add_argument('--mtrees', help = 'File with the mesh dictionary to be created (names to ids).', default = 'mhmd-driver/m.json')
parser.a... | 37.703125 | 155 | 0.561542 |
800e44a4c6050f23f945f1f76634a4002f79fc45 | 1,157 | py | Python | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | 3 | 2021-04-01T21:16:35.000Z | 2022-03-12T21:17:51.000Z | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | null | null | null | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | null | null | null | import cairo
from uuid import uuid4
from gen_art.graphics.Helpers import does_path_exist, open_file
from os import path
from datetime import datetime
| 26.906977 | 87 | 0.666379 |
800e7bf42d2e64bac20018e9d06f0084d64e4d99 | 19,080 | py | Python | WISH/WISH.py | quantumopticslkb/phase_retrieval | 5bb7820d72aa4ba8a227753029738a5cfb2a581f | [
"MIT"
] | null | null | null | WISH/WISH.py | quantumopticslkb/phase_retrieval | 5bb7820d72aa4ba8a227753029738a5cfb2a581f | [
"MIT"
] | null | null | null | WISH/WISH.py | quantumopticslkb/phase_retrieval | 5bb7820d72aa4ba8a227753029738a5cfb2a581f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author : Tangui ALADJIDI
After the Matlab code from Yicheng WU
"""
import numpy as np
import matplotlib.pyplot as plt
from LightPipes import *
from PIL import Image
from time import time
from mpl_toolkits.axes_grid1 import make_axes_locatable
import time
import sys
import configparser
fro... | 45.645933 | 143 | 0.56782 |
80108f12068f5412f0cd647b2c7a236979e1bd0d | 8,635 | py | Python | sunpy/net/jsoc/tests/test_jsoc.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/net/jsoc/tests/test_jsoc.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/net/jsoc/tests/test_jsoc.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 26 20:17:06 2014
@author: stuart
"""
import os
import tempfile
import datetime
import astropy.table
import astropy.time
import astropy.units as u
import pytest
from sunpy.time import parse_time
from sunpy.net.jsoc import JSOCClient, JSOCResponse
from sunpy.net.vso.vso im... | 37.707424 | 192 | 0.626288 |
80116cc041c16e4efbe2e37276ff9ca9425b882b | 293 | py | Python | turtle_lib/colorful_spiral.py | PitPietro/pascal-triangle | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-03-11T10:20:53.000Z | 2020-03-11T10:20:53.000Z | turtle_lib/colorful_spiral.py | PitPietro/python-structure | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-07-06T15:45:01.000Z | 2020-07-06T15:50:32.000Z | turtle_lib/colorful_spiral.py | PitPietro/python-structure | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-07-02T05:21:58.000Z | 2020-07-02T05:21:58.000Z | import turtle
if __name__ == '__main__':
colors = ['red', 'green', 'yellow', 'purple', 'blue', 'orange']
turtle.bgcolor('black')
for i in range(360):
turtle.pencolor(colors[i % 6])
turtle.width(int(i / 100 + 1))
turtle.forward(i)
turtle.left(59)
| 22.538462 | 67 | 0.56314 |
8012691c1adce7b34dee33223df2c745e8a1cd12 | 5,830 | py | Python | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 10 | 2017-01-25T15:47:06.000Z | 2022-01-07T10:08:48.000Z | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 7 | 2016-02-10T10:19:22.000Z | 2018-11-30T23:21:04.000Z | tests/test_ref_numpy.py | kuraisle/multipletau | 0321de77616f05ca90106075f7f6ecd137437be7 | [
"BSD-3-Clause"
] | 4 | 2018-08-22T07:19:52.000Z | 2018-11-05T09:16:52.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Compare to numpy data"""
import sys
import numpy as np
import multipletau
from test_correlate import get_sample_arrays_cplx
def test_corresponds_ac_first_loop():
"""
numpy correlation:
G_m = sum_i(a_i*a_{i+m})
multipletau correlation 2nd order:
b_j... | 33.125 | 71 | 0.456089 |
801269a1716f4f173be7b06c27dd2d4ed41ac1c7 | 2,613 | py | Python | fedlearner/platform/trainer_master/leader_tm.py | melong007/fedlearner | 69738daf8272148781cfe3c93fb41d2ac67faad7 | [
"Apache-2.0"
] | null | null | null | fedlearner/platform/trainer_master/leader_tm.py | melong007/fedlearner | 69738daf8272148781cfe3c93fb41d2ac67faad7 | [
"Apache-2.0"
] | null | null | null | fedlearner/platform/trainer_master/leader_tm.py | melong007/fedlearner | 69738daf8272148781cfe3c93fb41d2ac67faad7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.47619 | 77 | 0.707616 |
8012bbcd8fca728c35b24ea46da9f760928eac9b | 1,753 | py | Python | comics_webscrapper.py | WittyShiba/Comics-Webscrapping | ef073dc52954975419fb45da72271906bb075f4f | [
"MIT"
] | null | null | null | comics_webscrapper.py | WittyShiba/Comics-Webscrapping | ef073dc52954975419fb45da72271906bb075f4f | [
"MIT"
] | null | null | null | comics_webscrapper.py | WittyShiba/Comics-Webscrapping | ef073dc52954975419fb45da72271906bb075f4f | [
"MIT"
] | null | null | null | # Homework 7
# Write a python program that will download the latest 10 comic images from https://www.gocomics.com/pearlsbeforeswine/
# Navigate to the latest page by clicking 'Read More'.
import requests
import bs4
import os
url = 'https://www.gocomics.com/pearlsbeforeswine/2019/08/21'
for i in range(10):
res = r... | 51.558824 | 164 | 0.654877 |
8015157b8348b958cf26b731db3111632a7f60c1 | 2,106 | py | Python | cohesity_management_sdk/models/tenant_proxy.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-09-24T17:35:53.000Z | 2022-03-25T08:08:47.000Z | cohesity_management_sdk/models/tenant_proxy.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-03-29T19:32:29.000Z | 2022-01-03T23:16:45.000Z | cohesity_management_sdk/models/tenant_proxy.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 16 | 2019-02-27T06:54:12.000Z | 2021-11-16T18:10:24.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
| 29.661972 | 81 | 0.606363 |
8015962c36f7108badf443ec7534f5753cd6e921 | 2,101 | py | Python | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | 1 | 2022-03-16T23:56:09.000Z | 2022-03-16T23:56:09.000Z | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null | test/test_cores/test_video/test_lt24lcdsys.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null |
from __future__ import print_function
from argparse import Namespace
# a video display model to check timing
import pytest
from myhdl import Signal, intbv, instance, delay, StopSimulation, now
from rhea.system import Clock, Reset, Global
from rhea.cores.video.lcd import LT24Interface
from rhea.models.video import ... | 26.2625 | 83 | 0.640647 |
80178d726d35bfda33f77aca84b7fdccd2b6d2ea | 253 | py | Python | src/fl_simulation/server/aggregation/__init__.py | microsoft/fl-simulation | d177d329c82559c7efe82deae8dea8f9baa49495 | [
"MIT"
] | 5 | 2021-12-14T02:21:53.000Z | 2021-12-26T07:45:13.000Z | src/fl_simulation/server/aggregation/__init__.py | microsoft/fl-simulation | d177d329c82559c7efe82deae8dea8f9baa49495 | [
"MIT"
] | 1 | 2022-01-04T04:51:20.000Z | 2022-01-04T04:51:20.000Z | src/fl_simulation/server/aggregation/__init__.py | microsoft/fl-simulation | d177d329c82559c7efe82deae8dea8f9baa49495 | [
"MIT"
] | null | null | null | """Utilities and implementation for model aggregation on the central server."""
from .aggregator import *
from .fedavg import *
from .fedprox import *
from .scaffold import *
from .aggregator_with_dropouts import *
from .multi_model_aggregator import * | 31.625 | 79 | 0.790514 |
801a9b75ed3372642f8c99366580172389900495 | 9,912 | py | Python | neurolang/frontend/neurosynth_utils.py | gzanitti/NeuroLang | 497d3d28b640329771e34d92ccec93f984c3f784 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T02:00:22.000Z | 2021-01-07T02:00:22.000Z | neurolang/frontend/neurosynth_utils.py | NeuroLang/NeuroLang | 282457a48722741d577b69980be0a46f69c9954f | [
"BSD-3-Clause"
] | 207 | 2020-11-04T12:51:10.000Z | 2022-03-30T13:42:26.000Z | neurolang/frontend/neurosynth_utils.py | jonasrenault/NeuroLang | 497d3d28b640329771e34d92ccec93f984c3f784 | [
"BSD-3-Clause"
] | 6 | 2020-11-04T13:59:35.000Z | 2021-03-19T05:28:10.000Z | from pathlib import Path
from typing import Optional
import numpy as np
import pandas as pd
from nilearn.datasets.utils import _fetch_files
from scipy import sparse
NS_DATA_URL = "https://github.com/neurosynth/neurosynth-data/raw/master/"
def fetch_study_metadata(
data_dir: Path, version: int = 7, verbose: i... | 29.58806 | 97 | 0.617736 |
801c4a110403ae871b4a443a0d0c405bac55da7d | 957 | py | Python | lib/sqlalchemy/util/typing.py | immerrr/sqlalchemy | 995fb577a64061a9cbab62b481c65a4c4d3e5a67 | [
"MIT"
] | 1 | 2020-07-21T16:06:40.000Z | 2020-07-21T16:06:40.000Z | lib/sqlalchemy/util/typing.py | taogeYT/sqlalchemy | e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f | [
"MIT"
] | 4 | 2020-04-23T19:00:28.000Z | 2021-09-28T18:14:58.000Z | lib/sqlalchemy/util/typing.py | taogeYT/sqlalchemy | e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f | [
"MIT"
] | null | null | null | from typing import Any
from typing import Generic
from typing import overload
from typing import Type
from typing import TypeVar
from . import compat
if compat.py38:
from typing import Literal
from typing import Protocol
from typing import TypedDict
else:
from typing_extensions import Literal # noqa
... | 21.75 | 63 | 0.679206 |
801d29ea0f445cc4a015a6b4894791ed1ccb9a07 | 563 | py | Python | ep_ws/build/catkin_generated/order_packages.py | fsrlab/FSR_ROS_SIM | f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62 | [
"MIT"
] | null | null | null | ep_ws/build/catkin_generated/order_packages.py | fsrlab/FSR_ROS_SIM | f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62 | [
"MIT"
] | null | null | null | ep_ws/build/catkin_generated/order_packages.py | fsrlab/FSR_ROS_SIM | f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62 | [
"MIT"
] | null | null | null | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/sim2real/ep_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/sim2real/carto_ws/devel_isolated/cartographer_rviz;/home/sim2rea... | 93.833333 | 335 | 0.756661 |
801d907dbd6651a1c3f1baa79169bbd085c486ee | 2,682 | py | Python | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 1 | 2017-01-23T19:21:23.000Z | 2017-01-23T19:21:23.000Z | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 14 | 2016-01-21T17:18:21.000Z | 2022-02-09T19:21:59.000Z | request_signer/tests/test_response.py | imtapps/django-request-signer | b059d021b6e068245030ab682c2cff4318c83ca6 | [
"BSD-2-Clause"
] | 3 | 2016-01-25T19:32:21.000Z | 2016-08-23T15:37:38.000Z | import six
if six.PY3:
from unittest import mock
from io import StringIO
else:
import mock
from cStringIO import StringIO
from http.client import responses
import json
from django import test
from request_signer.client.generic import Response
| 42.571429 | 96 | 0.751305 |
801e841d4330b508f4fb6db780e54413e2c8e289 | 3,373 | py | Python | rl_groundup/temporal_difference_methods/n_step_tree_backup.py | TristanBester/rl_groundup | 2e981667e21330a35a6ab2a642e278aaaf4dca84 | [
"MIT"
] | 1 | 2021-04-20T00:43:43.000Z | 2021-04-20T00:43:43.000Z | rl_groundup/temporal_difference_methods/n_step_tree_backup.py | TristanBester/rl_groundup | 2e981667e21330a35a6ab2a642e278aaaf4dca84 | [
"MIT"
] | null | null | null | rl_groundup/temporal_difference_methods/n_step_tree_backup.py | TristanBester/rl_groundup | 2e981667e21330a35a6ab2a642e278aaaf4dca84 | [
"MIT"
] | null | null | null | # Created by Tristan Bester.
import sys
import numpy as np
sys.path.append('../')
from envs import GridWorld
from itertools import product
from utils import print_episode, eps_greedy_policy, test_policy
'''
n-step Tree Backup used to estimate the optimal policy for
the gridworld environment defined on page 48 of
"Rein... | 33.39604 | 83 | 0.54877 |
801ef5016fb2c51cff05eabfc2b10dedfdd933d5 | 240 | py | Python | setup.py | deephyper/metalgpy | 73393335c910757f2289414cdf807766e579e1e2 | [
"BSD-2-Clause"
] | null | null | null | setup.py | deephyper/metalgpy | 73393335c910757f2289414cdf807766e579e1e2 | [
"BSD-2-Clause"
] | null | null | null | setup.py | deephyper/metalgpy | 73393335c910757f2289414cdf807766e579e1e2 | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
# What packages are required for this module to be executed?
REQUIRED = [
"dm-tree",
"numpy",
"scipy"
]
setup(name="metalgpy", packages=find_packages(), install_requires=REQUIRED)
| 18.461538 | 75 | 0.716667 |
80212ffcd9bb037dec9bef2eb1d68bc81a8baec9 | 1,722 | py | Python | src/numbasub/nonumba.py | ptooley/numbasub | b58e66f02672650d87477a0dc92a179060a710b3 | [
"MIT"
] | 3 | 2018-07-26T16:42:25.000Z | 2022-01-18T02:15:01.000Z | src/numbasub/nonumba.py | ptooley/numbasub | b58e66f02672650d87477a0dc92a179060a710b3 | [
"MIT"
] | null | null | null | src/numbasub/nonumba.py | ptooley/numbasub | b58e66f02672650d87477a0dc92a179060a710b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import functools
#https://stackoverflow.com/questions/3888158
autojit = __noop
generated_jit = __noop
guvectorize = __noop
jit = __noop
jitclass = __noop
njit = __noop
vectorize = __noop
b1 = None
bool_ = None
boolean = None
byte = None
c16 = None
c8 = None
char = None
complex128 = None
c... | 18.923077 | 75 | 0.621951 |
8022f771c37a2c17506b1b5ad623309f807eb9bd | 1,552 | py | Python | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | from setuptools import setup
from homeassistant_api import __version__
with open("README.md", "r") as f:
read = f.read()
setup(
name="HomeAssistant API",
url="https://github.com/GrandMoff100/HomeassistantAPI",
description="Python Wrapper for Homeassistant's REST API",
version=__version__,
keyw... | 34.488889 | 71 | 0.631443 |
8023bf2679045e3bcb91e9b2173b66025aa99f9a | 2,316 | py | Python | analogy/collision_detection/triangle_col_detect.py | gandalf15/analogy | a687496e45557084676c430a61e6dfd0e8233018 | [
"BSD-3-Clause"
] | 1 | 2019-05-06T09:57:21.000Z | 2019-05-06T09:57:21.000Z | analogy/collision_detection/triangle_col_detect.py | gandalf15/analogy | a687496e45557084676c430a61e6dfd0e8233018 | [
"BSD-3-Clause"
] | null | null | null | analogy/collision_detection/triangle_col_detect.py | gandalf15/analogy | a687496e45557084676c430a61e6dfd0e8233018 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import ctypes
import os
CURRENT_PATH = os.path.dirname(os.path.abspath(__file__))
C_MOLLERS = ctypes.CDLL(os.path.join(CURRENT_PATH, 'build/mollers_tri_tri.so'))
C_DEVILLERS = ctypes.CDLL(
os.path.join(CURRENT_PATH, 'build/devillers_tri_tri.so'))
def mollers_alg(tri_1, tri_2):
"""
... | 38.6 | 79 | 0.643351 |
802596ce6179e23a0644ac73971b6f2da0840b1d | 5,381 | py | Python | atomic_reactor/plugins/check_and_set_platforms.py | qixiang/atomic-reactor | 050325f6be43f6b9399bf5472b87190ada8305bd | [
"BSD-3-Clause"
] | 113 | 2015-07-23T21:37:07.000Z | 2019-05-28T18:58:26.000Z | atomic_reactor/plugins/check_and_set_platforms.py | qixiang/atomic-reactor | 050325f6be43f6b9399bf5472b87190ada8305bd | [
"BSD-3-Clause"
] | 921 | 2015-07-13T14:25:48.000Z | 2019-05-31T14:57:39.000Z | atomic_reactor/plugins/check_and_set_platforms.py | qixiang/atomic-reactor | 050325f6be43f6b9399bf5472b87190ada8305bd | [
"BSD-3-Clause"
] | 42 | 2015-07-17T12:48:25.000Z | 2019-03-29T07:48:57.000Z | """
Copyright (c) 2018 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
Query the koji build target, if any, to find the enabled architectures. Remove any excluded
architectures, and return the resulting list.
"""
fr... | 42.370079 | 99 | 0.65564 |
80259a6aaef5b03b1f4997396bef339696417324 | 4,876 | py | Python | py_work/spider/request/GetMolculeUnderTarget.py | kotori-y/kotori_work | 51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d | [
"MIT"
] | 6 | 2020-05-14T09:47:04.000Z | 2021-06-05T03:03:45.000Z | py_work/spider/request/GetMolculeUnderTarget.py | kotori-y/kotori_work | 51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d | [
"MIT"
] | null | null | null | py_work/spider/request/GetMolculeUnderTarget.py | kotori-y/kotori_work | 51ebfdf49571ae34c246dc5b37cc86e25f4ccf3d | [
"MIT"
] | 4 | 2020-04-20T13:17:27.000Z | 2021-08-07T19:44:50.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 14 13:33:17 2020
@Author: Zhi-Jiang Yang, Dong-Sheng Cao
@Institution: CBDD Group, Xiangya School of Pharmaceutical Science, CSU, China
@Homepage: http://www.scbdd.com
@Mail: yzjkid9@gmail.com; oriental-cds@163.com
@Blog: https://blog.iamkotori.com
I love Princess Zelda ... | 33.170068 | 245 | 0.578138 |
8025bd0c1885c3866fd320401f51ffbcd535cb06 | 1,954 | py | Python | lr_schedulers/flatten_cosanneal.py | yumatsuoka/SofNDLTeches | 1b36e8f99068e8dd25ebccd4a60ab9375609f359 | [
"MIT"
] | null | null | null | lr_schedulers/flatten_cosanneal.py | yumatsuoka/SofNDLTeches | 1b36e8f99068e8dd25ebccd4a60ab9375609f359 | [
"MIT"
] | null | null | null | lr_schedulers/flatten_cosanneal.py | yumatsuoka/SofNDLTeches | 1b36e8f99068e8dd25ebccd4a60ab9375609f359 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# It's written by https://github.com/yumatsuoka
from __future__ import print_function
import math
from torch.optim.lr_scheduler import _LRScheduler
if __name__ == "__main__":
import torch
# import matplotlib.pyplot as plt
# def show_graph(lr_lists, epoc... | 28.735294 | 85 | 0.599795 |
8025e5f72fc9d4b3c01001445187f2773b458389 | 15,270 | py | Python | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCOSB-RMON (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-RMON
# Produced by pysmi-0.3.4 at Wed May 1 12:23:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 171.573034 | 1,487 | 0.806418 |
8026986bb4d58676af3e3f51afb0da5721b218c2 | 604 | py | Python | script/lib/git.py | ymmuse/electron-libcc | 364cf9c6044912dc3725f12e7136730937d1a96d | [
"MIT"
] | null | null | null | script/lib/git.py | ymmuse/electron-libcc | 364cf9c6044912dc3725f12e7136730937d1a96d | [
"MIT"
] | null | null | null | script/lib/git.py | ymmuse/electron-libcc | 364cf9c6044912dc3725f12e7136730937d1a96d | [
"MIT"
] | 2 | 2019-09-05T03:27:45.000Z | 2019-10-03T13:02:48.000Z | """Git helper functions.
Everything in here should be project agnostic, shouldn't rely on project's structure,
and make any assumptions about the passed arguments or calls outcomes.
"""
import subprocess
| 24.16 | 85 | 0.64404 |
8027a68653b6898390007ff7b04b6f4c5243c2d2 | 4,308 | py | Python | model/A2J/a2j_utilities/post_processing.py | NVIDIA-AI-IOT/realtime_handpose_3d | 3f5ae9ccbf07defc39de7ce9e8b2213dda3be375 | [
"MIT"
] | 7 | 2021-01-29T19:45:55.000Z | 2021-12-07T01:23:15.000Z | model/A2J/a2j_utilities/post_processing.py | puruBHU/realtime_handpose_3d | 3f5ae9ccbf07defc39de7ce9e8b2213dda3be375 | [
"MIT"
] | null | null | null | model/A2J/a2j_utilities/post_processing.py | puruBHU/realtime_handpose_3d | 3f5ae9ccbf07defc39de7ce9e8b2213dda3be375 | [
"MIT"
] | 2 | 2021-03-05T11:02:17.000Z | 2021-05-22T02:26:44.000Z | '''
Copyright (c) 2019 Boshen Zhang
Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
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 t... | 53.85 | 460 | 0.710074 |
8028cc8cedb341229fafd5bad60d6172a2708e24 | 713 | py | Python | edge.py | s1nisteR/opencv-practice | d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5 | [
"MIT"
] | null | null | null | edge.py | s1nisteR/opencv-practice | d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5 | [
"MIT"
] | null | null | null | edge.py | s1nisteR/opencv-practice | d55e83d39b0d6a1fe7994cb0ac8010b04b6a36a5 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
img = cv.imread('Photos/park.jpg')
cv.imshow('Original', img)
grayscale = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
cv.imshow("Jesmin", grayscale)
#Condition for Laplacian: Cannot take negative values
#Laplacian Edge Detection
lap = cv.Laplacian(grayscale, cv.CV_64F)
absouluteLap = np.u... | 23.766667 | 53 | 0.755961 |
8028fc69fc3f5261adc18f715036830ed0ee818b | 1,204 | py | Python | examples/regression.py | laudv/bitboost | 85caa1163a36e2099d0251caa912b28ad5d39f14 | [
"Apache-2.0"
] | 11 | 2019-07-10T12:50:52.000Z | 2021-08-18T03:27:28.000Z | examples/regression.py | laudv/bitboost | 85caa1163a36e2099d0251caa912b28ad5d39f14 | [
"Apache-2.0"
] | null | null | null | examples/regression.py | laudv/bitboost | 85caa1163a36e2099d0251caa912b28ad5d39f14 | [
"Apache-2.0"
] | null | null | null | import sys
import os
import timeit
# use local python package rather than the system install
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../python"))
from bitboost import BitBoostRegressor
import numpy as np
import sklearn.metrics
nfeatures = 5
nexamples = 10000
data = np.random.choice(np.array([0.0,... | 30.1 | 80 | 0.695183 |
802907f21f2a3f816bad8d47fc8fb19d552566fb | 676 | py | Python | src/pyth2/io/BinaryStream.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | src/pyth2/io/BinaryStream.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | src/pyth2/io/BinaryStream.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | '''
Created on 2015/11/07
@author: _
'''
from types import NoneType
from pyth2.contracts import TypeValidator as tv
from pyth2.io.Stream import Stream, StreamDirection
| 24.142857 | 64 | 0.678994 |
802a2589990d23e2d91111185701c08442085e13 | 4,633 | py | Python | app/bin/dltk/test/dltk_deployment.py | splunk/deep-learning-toolkit | 84f9c978d9859a96f6ba566737a5c7102738d13c | [
"Apache-2.0"
] | 11 | 2020-10-13T05:27:59.000Z | 2021-09-23T02:56:32.000Z | app/bin/dltk/test/dltk_deployment.py | splunk/deep-learning-toolkit | 84f9c978d9859a96f6ba566737a5c7102738d13c | [
"Apache-2.0"
] | 48 | 2020-10-15T09:53:36.000Z | 2021-07-05T15:33:24.000Z | app/bin/dltk/test/dltk_deployment.py | splunk/deep-learning-toolkit | 84f9c978d9859a96f6ba566737a5c7102738d13c | [
"Apache-2.0"
] | 4 | 2020-12-04T08:51:35.000Z | 2022-03-27T09:42:20.000Z | import unittest
import os
import logging
import time
import re
import splunklib.client as client
import splunklib.results as results
from splunklib.binding import HTTPError
from . import dltk_api
from . import splunk_api
from . import dltk_environment
level_prog = re.compile(r'level=\"([^\"]*)\"')
msg_prog = re.comp... | 31.951724 | 111 | 0.550399 |
802aa95cd6ad4a3dbc07c2c9c9a4f9fabd942f52 | 302 | py | Python | examples/example_dc/example_dc.py | OlivierKamers/PyDC | 51a1ded9d067694968dd5855a3c20fc39df882f3 | [
"Apache-2.0"
] | 3 | 2019-03-21T13:07:18.000Z | 2022-03-31T12:24:59.000Z | examples/example_dc/example_dc.py | OlivierKamers/PyDC | 51a1ded9d067694968dd5855a3c20fc39df882f3 | [
"Apache-2.0"
] | null | null | null | examples/example_dc/example_dc.py | OlivierKamers/PyDC | 51a1ded9d067694968dd5855a3c20fc39df882f3 | [
"Apache-2.0"
] | 3 | 2019-02-27T11:12:38.000Z | 2020-07-26T20:41:54.000Z | from pydc import DC
if __name__ == "__main__":
main()
| 25.166667 | 107 | 0.639073 |
802b03d8a8f74e07591150e943daaff1c7cc2c3e | 826 | py | Python | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .MaskLoader import MaskLoader
from .utils import IOUMetric, fast_ista, prepare_distance_transform_from_mask, \
prepare_overlay_DTMs_from_mask, prepare_extended_DTMs_from_mask, prepare_augmented_distance_transform_from_mask, \
prepare_di... | 68.833333 | 130 | 0.825666 |
802b20d5dcc6e53ad2602168453ebf276324e2c7 | 143 | py | Python | Lms_Arpita/DatabaseConnectivity/MongoConnection.py | hcmuleva/personal-profile | 051b5a2f36b927951691f48abe584beb8bc25440 | [
"MIT"
] | null | null | null | Lms_Arpita/DatabaseConnectivity/MongoConnection.py | hcmuleva/personal-profile | 051b5a2f36b927951691f48abe584beb8bc25440 | [
"MIT"
] | 3 | 2020-07-13T17:46:32.000Z | 2020-07-26T10:30:59.000Z | Lms_Arpita/DatabaseConnectivity/MongoConnection.py | hcmuleva/personal-profile | 051b5a2f36b927951691f48abe584beb8bc25440 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
| 17.875 | 54 | 0.678322 |
802cdedc55b19a30eabaf8043c64d8287cf38eb3 | 1,064 | py | Python | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 3 | 2020-12-24T14:42:49.000Z | 2022-03-23T07:28:58.000Z | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 1 | 2021-01-20T10:24:49.000Z | 2021-01-30T07:52:47.000Z | example/exc/client.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | null | null | null | import asyncio
import time
from rap.client import Client
from rap.common.exceptions import FuncNotFoundError
client: Client = Client("example", [{"ip": "localhost", "port": "9000"}])
# in register, must use async def...
# in register, must use async def...
if __name__ == "__main__":
import logging
log... | 23.130435 | 105 | 0.662594 |
802cfac0d8c03fbbb9f5e792cb2a2873b402427e | 3,544 | py | Python | openapi/spec/ext/spec/base.py | t2y/openapi-ext-tools | 1253053af4f9a90f85b611e79a8f39c7d226a002 | [
"Apache-2.0"
] | 1 | 2020-08-30T07:47:57.000Z | 2020-08-30T07:47:57.000Z | openapi/spec/ext/spec/base.py | t2y/openapi-ext-tools | 1253053af4f9a90f85b611e79a8f39c7d226a002 | [
"Apache-2.0"
] | null | null | null | openapi/spec/ext/spec/base.py | t2y/openapi-ext-tools | 1253053af4f9a90f85b611e79a8f39c7d226a002 | [
"Apache-2.0"
] | null | null | null | import os
from ..utils.log import log
from ..utils.yaml import read_yaml, write_yaml
| 29.781513 | 77 | 0.582957 |
802f2d6813fe3fdbbab4b7f3e7b7c3d02dc46145 | 2,750 | py | Python | code/task6_step1_train_model.py | p-koo/exponential_activations | 7e48054b64a565364439c45932338a09eb2eb4d3 | [
"MIT"
] | 1 | 2021-09-18T04:09:07.000Z | 2021-09-18T04:09:07.000Z | code/task6_step1_train_model.py | koo-lab/exponential_activations | 9032a360c1abb0f07b824e3ce6d20707efe306fd | [
"MIT"
] | null | null | null | code/task6_step1_train_model.py | koo-lab/exponential_activations | 9032a360c1abb0f07b824e3ce6d20707efe306fd | [
"MIT"
] | 4 | 2020-08-03T02:08:42.000Z | 2021-10-01T18:46:47.000Z | import os
import numpy as np
from six.moves import cPickle
from tensorflow import keras
from tensorflow import keras
import helper
from tfomics import utils, metrics, explain
#------------------------------------------------------------------------
model_names = ['residualbind']
activations = ['exponential', 'relu']... | 37.162162 | 90 | 0.552727 |
802f9b17bf794ac63d1cddf593f5ad25c1f4a96b | 6,564 | py | Python | ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py | satish1901/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 27 | 2020-06-11T21:59:54.000Z | 2022-03-22T03:10:50.000Z | ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py | N-NSH/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 7 | 2020-09-25T22:41:18.000Z | 2022-02-09T23:41:04.000Z | ensemble_detectors/src/Algorithm_1_matchfilter/ortho_correction.py | N-NSH/Methane-detection-from-hyperspectral-imagery | 741dee02e76931f572cf3e06af8faabe871e8e4a | [
"MIT"
] | 4 | 2021-01-18T15:57:13.000Z | 2022-03-12T20:51:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 21 14:15:38 2019
@author: Satish
"""
# doing the ortho-correction on the processed data from matchedFilter
import os
import numpy as np
import spectral as spy
import spectral.io.envi as envi
import spectral.algorithms as algo
from spectral.algorith... | 37.084746 | 130 | 0.6688 |
80300712704795c8083886af8ccc60e875ba3cce | 1,519 | py | Python | rmv_test.py | BenDoan/rmv | d6203d988faa44df238ecb4bf8f3770e1e5d315a | [
"MIT"
] | 1 | 2015-04-02T05:24:10.000Z | 2015-04-02T05:24:10.000Z | rmv_test.py | BenDoan/rmv | d6203d988faa44df238ecb4bf8f3770e1e5d315a | [
"MIT"
] | null | null | null | rmv_test.py | BenDoan/rmv | d6203d988faa44df238ecb4bf8f3770e1e5d315a | [
"MIT"
] | null | null | null | import unittest
import os
import shutil
import subprocess
from math import ceil
TEST_DIR = "testdir"
MOVE_DIR = "movedir"
NUM_FILES = 100
if __name__ == '__main__':
unittest.main()
| 27.618182 | 72 | 0.597103 |
8031820bcdd231e70b0ca877db09b4495f4d4e66 | 2,155 | py | Python | src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | 7 | 2021-12-07T16:09:30.000Z | 2022-02-18T19:48:35.000Z | src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | 18 | 2021-10-12T20:04:46.000Z | 2022-03-31T19:51:11.000Z | src/nuspacesim/data/RenoNu2TauTables/read_reno_nu2tautables.py | NuSpaceSim/nuSpaceSim | 50d3878d37fc66ba3b275b9a71b6421eba5cdeb9 | [
"BSD-3-Clause-Clear"
] | null | null | null | import math
import h5py
import numpy as np
if __name__ == "__main__":
main()
| 33.153846 | 86 | 0.632947 |
8032277d46ee175709fb44ad0a48ddd9e2bd0bf3 | 4,443 | py | Python | makePredictions.py | psyxusheng/csedm-Data-Challenge | d746fbd21421bf7c1e5500567dbd1f32a48307b3 | [
"MIT"
] | null | null | null | makePredictions.py | psyxusheng/csedm-Data-Challenge | d746fbd21421bf7c1e5500567dbd1f32a48307b3 | [
"MIT"
] | null | null | null | makePredictions.py | psyxusheng/csedm-Data-Challenge | d746fbd21421bf7c1e5500567dbd1f32a48307b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import csv
import tensorflow as tf
from config import Config
from DataFeeder import DataFeeder,TestData
from model import DKT
from sklearn.metrics import f1_score,precision_score,recall_score
indices = [precision_score,recall_score,f1_score]
if __nam... | 41.138889 | 100 | 0.55458 |
80323c5cb03f15cf7a86b6b63c25945da75b4b63 | 1,579 | py | Python | bianalyzer/relevance/similarity_matrix.py | luntos/bianalyzer | ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b | [
"MIT"
] | 4 | 2016-02-10T22:44:37.000Z | 2019-02-26T04:57:11.000Z | bianalyzer/relevance/similarity_matrix.py | luntos/bianalyzer | ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b | [
"MIT"
] | null | null | null | bianalyzer/relevance/similarity_matrix.py | luntos/bianalyzer | ce6c1efdf192c0e5e7ed648d6e9dd85be3c7b14b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..helpers import construct_similarity_matrix_via_profiles
def construct_similarity_matrix(relevance_matrix, relevance_threshold=0.2):
"""
Constructs keyword similarity matrix by the given relevance_matrix
NOTE: final similarity matrix may contain not all the keywords (only th... | 41.552632 | 111 | 0.733376 |
8032858404b723ecb11e6d7ac5febb5da3de0fd6 | 1,452 | py | Python | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | src/block/mcmc.py | zeou1/maggot_models | 4e1b518c2981ab1ca9607099c3813e8429d94ca4 | [
"BSD-3-Clause"
] | null | null | null | # TODO write utilities for running MCMC stuff
import networkx as nx
from graph_tool.inference import minimize_blockmodel_dl
from graph_tool import load_graph
import numpy as np
import pandas as pd
import os
from src.graph import MetaGraph
| 29.632653 | 86 | 0.694215 |
803369c9001e4847c771fed5ca6b7aaff0451aac | 2,832 | py | Python | reo/migrations/0064_auto_20200616_1708.py | GUI/REopt_Lite_API | f2ade81b67c526cbe778c7bc584e3e1d616c1efc | [
"BSD-3-Clause"
] | 41 | 2020-02-21T08:25:17.000Z | 2022-01-14T23:06:42.000Z | reo/migrations/0064_auto_20200616_1708.py | GUI/REopt_Lite_API | f2ade81b67c526cbe778c7bc584e3e1d616c1efc | [
"BSD-3-Clause"
] | 167 | 2020-02-17T17:26:47.000Z | 2022-01-20T20:36:54.000Z | reo/migrations/0064_auto_20200616_1708.py | GUI/REopt_Lite_API | f2ade81b67c526cbe778c7bc584e3e1d616c1efc | [
"BSD-3-Clause"
] | 31 | 2020-02-20T00:22:51.000Z | 2021-12-10T05:48:08.000Z | # Generated by Django 2.2.10 on 2020-06-16 17:08
import django.contrib.postgres.fields
from django.db import migrations, models
| 35.4 | 137 | 0.607345 |
80345a58636aa3864d7f2094b4e668ce2c2cd81a | 2,378 | py | Python | solo/losses/simclr.py | xwyzsn/solo-learn | 16d021d8053439a3de205337ab2a11d191500b09 | [
"MIT"
] | 693 | 2021-05-31T15:48:32.000Z | 2022-03-31T17:12:46.000Z | solo/losses/simclr.py | xwyzsn/solo-learn | 16d021d8053439a3de205337ab2a11d191500b09 | [
"MIT"
] | 151 | 2021-06-15T00:22:57.000Z | 2022-03-27T15:17:02.000Z | solo/losses/simclr.py | xwyzsn/solo-learn | 16d021d8053439a3de205337ab2a11d191500b09 | [
"MIT"
] | 79 | 2021-06-02T10:31:15.000Z | 2022-03-25T01:25:09.000Z | # Copyright 2021 solo-learn development team.
# 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, publ... | 39.633333 | 92 | 0.722876 |
803504701a3cf401c13dc50ffb64243deaa7a721 | 1,966 | py | Python | shop/migrations/0001_initial.py | chidibede/Django-Ecommerce-Site | c3a139ccf6e67ea90ab3879afcb16528be008548 | [
"MIT"
] | null | null | null | shop/migrations/0001_initial.py | chidibede/Django-Ecommerce-Site | c3a139ccf6e67ea90ab3879afcb16528be008548 | [
"MIT"
] | null | null | null | shop/migrations/0001_initial.py | chidibede/Django-Ecommerce-Site | c3a139ccf6e67ea90ab3879afcb16528be008548 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-06-08 10:32
from django.db import migrations, models
| 38.54902 | 114 | 0.544761 |
803911ad68063ce4c7a23b2522b750059f50235b | 21,773 | py | Python | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/Sniper | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | 1 | 2021-04-22T05:27:08.000Z | 2021-04-22T05:27:08.000Z | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | pin_kit/extras/pinplay/PinPoints/scripts/regions.py | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# BEGIN_LEGAL
# BSD License
#
# Copyright (c)2014 Intel Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above... | 33.809006 | 123 | 0.606715 |
803a46dade15dfe7d529009beb897901bfbdb1e7 | 2,918 | py | Python | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T05:30:36.000Z | 2019-06-27T05:30:36.000Z | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | null | null | null | pydy/codegen/code.py | jcrist/pydy | ec139f0dcbeffba8242636b727b3be02091792b0 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T05:29:50.000Z | 2019-06-27T05:29:50.000Z | #!/usr/bin/env python
"""This module remains for backwards compatibility reasons and will be
removed in PyDy 0.4.0."""
import warnings
from .ode_function_generators import generate_ode_function as new_gen_ode_func
with warnings.catch_warnings():
warnings.simplefilter('once')
warnings.warn("This module, 'pyd... | 39.972603 | 79 | 0.643934 |
803aabf6aa2864fa437dfdfe7d60ccff3ba16ead | 12,795 | py | Python | mle_hyperopt/utils/comms.py | RobertTLange/mle-hyperopt | 692fee1e8e3d761962307c0894b308a00fa41d9c | [
"MIT"
] | 3 | 2021-10-31T14:02:37.000Z | 2021-11-03T11:22:19.000Z | mle_hyperopt/utils/comms.py | RobertTLange/mle-hyperopt | 692fee1e8e3d761962307c0894b308a00fa41d9c | [
"MIT"
] | null | null | null | mle_hyperopt/utils/comms.py | RobertTLange/mle-hyperopt | 692fee1e8e3d761962307c0894b308a00fa41d9c | [
"MIT"
] | 1 | 2021-10-30T17:45:26.000Z | 2021-10-30T17:45:26.000Z | from datetime import datetime
import numpy as np
from rich.console import Console
from rich.table import Table
from rich import box
from rich.align import Align
from typing import List, Optional, Union
console_width = 80
def welcome_message(
space_data: List[dict],
search_type: str,
fixed_params: Optiona... | 36.452991 | 81 | 0.637124 |
803c9afaa645ec27e821bad4d70d8355430146c8 | 4,009 | py | Python | nn_ood/data/lastnames.py | dtch1997/SCOD | f79df5097989b4bfc1c7f4cb8f51c86f708f974c | [
"MIT"
] | 10 | 2021-05-13T03:52:18.000Z | 2022-03-23T19:34:35.000Z | nn_ood/data/lastnames.py | dtch1997/SCOD | f79df5097989b4bfc1c7f4cb8f51c86f708f974c | [
"MIT"
] | null | null | null | nn_ood/data/lastnames.py | dtch1997/SCOD | f79df5097989b4bfc1c7f4cb8f51c86f708f974c | [
"MIT"
] | 4 | 2021-05-30T09:12:50.000Z | 2021-11-09T23:56:11.000Z | from __future__ import unicode_literals, print_function, division
from io import open
import glob
import os
import torch
import unicodedata
import string
import random
import numpy as np
all_letters = string.ascii_letters + " .,;'"
n_letters = len(all_letters)
# Turn a Unicode string to plain ASCII, thanks to https... | 30.838462 | 92 | 0.641307 |
803e4182cc11eec12d785bce525dec0268a1a586 | 749 | py | Python | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | sdk/identity/azure-identity/tests/test_imds_credential_async.py | anuchandy/azure-sdk-for-python | 589b9890554ebf261aa2184e8f1c6507f01a207c | [
"MIT"
] | null | null | null | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from azure.identity.aio._credentials.managed_identity import ImdsCredential
import pytest
from helpers_async import AsyncMockTransport
| 24.16129 | 75 | 0.691589 |
803e7af427386e573026718af646b210d5adc2f3 | 7,576 | py | Python | imutils/Stitcher.py | sunjxan/pyimagesearch | 6ba14f0fadb23364d9b320981c5984e4842be361 | [
"Apache-2.0"
] | null | null | null | imutils/Stitcher.py | sunjxan/pyimagesearch | 6ba14f0fadb23364d9b320981c5984e4842be361 | [
"Apache-2.0"
] | null | null | null | imutils/Stitcher.py | sunjxan/pyimagesearch | 6ba14f0fadb23364d9b320981c5984e4842be361 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np | 36.956098 | 118 | 0.562302 |
803f3e78ea2014f7c662ee3a5d6517f238a79624 | 4,339 | py | Python | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_3365
# title: Extend syntax for ALTER USER CURRENT_USER
# decription:
# Replaced old code: removed EDS from here as it is not needed at all:
# we can use here trivial "connect '$(DSN)' ..." instead.
# Non-privileg... | 33.898438 | 108 | 0.567181 |
803fc0980572bedb582462a274dae0d462a1eb72 | 241 | py | Python | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | sololearn/hovercraft.py | ehlodex/Python3 | 126c4662d1371ec6cbc1f257bd3de5c1dcdc86a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python3
"""SoloLearn > Code Coach > Hovercraft"""
sales = int(input('How many did you sell? ')) * 3
expense = 21
if sales > expense:
print('Profit')
elif sales < expense:
print('Loss')
else:
print('Broke Even')
| 18.538462 | 49 | 0.630705 |
8040774ec7da6d6e9a3a5ad4d793d25841c16e92 | 2,522 | py | Python | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | null | null | null | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | null | null | null | RSAMessengerDapp/User/views.py | slothmanxyz/RSAMessengerDapp | 3c5966196cac7749ea87ce0f42c47d159eb2ad14 | [
"MIT"
] | 1 | 2021-04-05T13:27:02.000Z | 2021-04-05T13:27:02.000Z | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import AuthenticationForm
from web3 import Web3
from .forms import SignupForm
from Key.models import Key
#The views and templates in this app a... | 34.081081 | 104 | 0.657811 |
8041201eb138a5c9f79a0273b50738c537af71ad | 398 | py | Python | app/__init__.py | Paulvitalis200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | null | null | null | app/__init__.py | Paulvitalis200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | 4 | 2018-10-21T18:28:03.000Z | 2018-10-24T12:48:24.000Z | app/__init__.py | Paulstar200/Store-Manager-API | d61e91bff7fc242da2a93d1caf1012465c7c904a | [
"MIT"
] | null | null | null | from flask import Flask, Blueprint
from flask_jwt_extended import JWTManager
| 22.111111 | 54 | 0.738693 |
804199f0f26ad9829b5e2a973c124bc20bbb89c2 | 918 | py | Python | scripts/MSP_IMPROV_to_12_folds.py | cnut1648/Multimodal-Transformer | 8b86590b4d14dcd9e72ee2c9da9668a458780a16 | [
"MIT"
] | null | null | null | scripts/MSP_IMPROV_to_12_folds.py | cnut1648/Multimodal-Transformer | 8b86590b4d14dcd9e72ee2c9da9668a458780a16 | [
"MIT"
] | null | null | null | scripts/MSP_IMPROV_to_12_folds.py | cnut1648/Multimodal-Transformer | 8b86590b4d14dcd9e72ee2c9da9668a458780a16 | [
"MIT"
] | null | null | null | """
preprocess MSP IMPROV csv
run after MSP_IMPROV.py
"""
import os, torch, soundfile
from pathlib import Path
import librosa
import pandas as pd
ID2LABEL = {
0: "neu", 1: "sad", 2: "ang", 3: "hap"
}
pwd = Path(__file__).parent
csv_dir = pwd / "../data/datasets/MSP-IMPROV"
out_dir = pwd / "../data/datasets/MSP-IMP... | 27 | 73 | 0.662309 |
8043c3df7727468e10027ab3c916c11597ab2643 | 19,038 | py | Python | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | """ evoke base User object
IHM 2/2/2006 and thereafter
CJH 2012 and therafter
gives session-based user validation
The database users table must have an entry with uid==1 and id==guest.
This is used to indicate no valid login.
The database users table must have an entry with uid==2 . This is the
sys admin user.
R... | 35.718574 | 193 | 0.643082 |
804416e6e25ce3ed4c5dc637ff0b100cabf78eb4 | 242 | py | Python | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | 2 | 2015-01-22T19:16:06.000Z | 2015-04-28T19:12:45.000Z | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | null | null | null | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | null | null | null | from django import template
from django.template.loader import render_to_string
register = template.Library()
| 26.888889 | 81 | 0.834711 |
80445a8b0077e05e95163bce0920494788da568d | 1,203 | py | Python | rosys/pathplanning/obstacle_map_demo.py | zauberzeug/rosys | 10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8 | [
"MIT"
] | 1 | 2022-02-20T08:21:07.000Z | 2022-02-20T08:21:07.000Z | rosys/pathplanning/obstacle_map_demo.py | zauberzeug/rosys | 10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8 | [
"MIT"
] | 1 | 2022-03-08T12:46:09.000Z | 2022-03-08T12:46:09.000Z | rosys/pathplanning/obstacle_map_demo.py | zauberzeug/rosys | 10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from nicegui import ui
import pylab as pl
import numpy as np
import time
from rosys.world.pose import Pose
from rosys.world.spline import Spline
from grid import Grid
from robot_renderer import RobotRenderer
from obstacle_map import ObstacleMap
import plot_tools as pt
grid = Grid((30, 40, 36), (... | 28.642857 | 85 | 0.682461 |
8044c8aa6dbc56f89bc318d636c18413c449c80a | 599 | py | Python | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | code/modern-python/quadratic.py | dushyantkhosla/testing4ds | e6f69f7ff46225a491da00ac994e036633d0ca64 | [
"MIT"
] | null | null | null | from math import sqrt
from typing import Tuple
def quadratic(a: float, b: float, c: float) -> Tuple[float, float]:
'''Compute roots of the quadratic equation:
a*x**2 + b*x + c = 0
For example:
>>> x1, x2 = quadratic(a=4, b=11, c=7)
>>> x1
-1.0
... | 23.96 | 67 | 0.42571 |
804522328bccd7ddf45bddcd59e540005384feed | 391 | py | Python | Python/973.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 1 | 2020-12-10T05:36:15.000Z | 2020-12-10T05:36:15.000Z | Python/973.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | null | null | null | Python/973.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 3 | 2020-04-06T05:55:08.000Z | 2021-08-29T14:26:54.000Z | import heapq | 32.583333 | 75 | 0.503836 |
804795ddc70fcb743a2b2214a7d1fe74c8e9ad6c | 2,236 | py | Python | tests/test_sphnf.py | JohnEdChristensen/NiggliOptimize | e90b8c66e7b7e560c460502ee24991af775c625b | [
"MIT"
] | null | null | null | tests/test_sphnf.py | JohnEdChristensen/NiggliOptimize | e90b8c66e7b7e560c460502ee24991af775c625b | [
"MIT"
] | null | null | null | tests/test_sphnf.py | JohnEdChristensen/NiggliOptimize | e90b8c66e7b7e560c460502ee24991af775c625b | [
"MIT"
] | null | null | null | import pytest
import numpy as np
"""
def test_mono_39():
from pg_comp.base_mono import *
with open("tests/test_output/base_mono_1_200_n.out","r") as f:
n_500 = int(f.readline().strip())
srHNFs = []
for n in range(1,201):
temp = base_mono_37_39(n)
for t in temp:
if le... | 27.268293 | 74 | 0.515206 |
804b9dcfe64b7676e4cb3e82339b0395f8d54822 | 2,309 | py | Python | homography-transformation-points.py | Tomikrys/RePhoto | ae0710c68efd91edff5a54f159d8452ea43f5a19 | [
"BSD-3-Clause"
] | null | null | null | homography-transformation-points.py | Tomikrys/RePhoto | ae0710c68efd91edff5a54f159d8452ea43f5a19 | [
"BSD-3-Clause"
] | null | null | null | homography-transformation-points.py | Tomikrys/RePhoto | ae0710c68efd91edff5a54f159d8452ea43f5a19 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import cv2
import sys
import json
import os
if (len(sys.argv) != 5):
print('2 arguments required')
exit()
img1 = cv2.imread(sys.argv[1])
img2 = cv2.imread(sys.argv[2])
file = open(sys.argv[4], "r")
points = json.loads(file.read())
dst_pts = np.float32(points['old']).reshape(-1,1,2)
src_p... | 27.819277 | 88 | 0.607189 |
804b9f804c6f3973c7e0b57683f0dc138f768005 | 1,634 | py | Python | cpp/opt.py | AtsushiSakai/optuna_sample | 06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66 | [
"MIT"
] | 1 | 2019-02-06T09:43:04.000Z | 2019-02-06T09:43:04.000Z | cpp/opt.py | AtsushiSakai/optuna_sample | 06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66 | [
"MIT"
] | null | null | null | cpp/opt.py | AtsushiSakai/optuna_sample | 06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66 | [
"MIT"
] | null | null | null | """
Parameter optimization with optuna for Cpp code
author: Atsushi Sakai
"""
import optuna
import numpy as np
import matplotlib.pyplot as plt
import subprocess
def HimmelblauFunction(x, y):
"""
Himmelblau's function
see Himmelblau's function - Wikipedia, the free encyclopedia
http://en.wikipedia.... | 21.786667 | 66 | 0.618115 |
804bc1d2b19b9534b855e8e39ec3bfa6a9bb4dd1 | 5,385 | py | Python | gui/select_excel.py | Tac213/ECConverter | d66d35f7e4ac2802f83ab4e595764c7f8004d317 | [
"MIT"
] | 1 | 2021-08-17T04:46:16.000Z | 2021-08-17T04:46:16.000Z | gui/select_excel.py | Tac213/ECConverter | d66d35f7e4ac2802f83ab4e595764c7f8004d317 | [
"MIT"
] | null | null | null | gui/select_excel.py | Tac213/ECConverter | d66d35f7e4ac2802f83ab4e595764c7f8004d317 | [
"MIT"
] | 1 | 2021-08-17T04:46:18.000Z | 2021-08-17T04:46:18.000Z | # -*- coding: utf-8 -*-
# author: Tac
# contact: gzzhanghuaxiong@corp.netease.com
import os.path
from PyQt6.QtWidgets import QFrame, QVBoxLayout, QPushButton, QSizePolicy, QFileDialog, QMessageBox
from PyQt6.QtCore import Qt, QDir, QModelIndex
from gui.excel_list_view import ExcelListView
from gui.model.excel_list_m... | 37.922535 | 109 | 0.594429 |
804caf63ac2093aca40cc342a98958d4f3398ae7 | 16,359 | py | Python | i3razer/i3_razer.py | leofah/i3razer | 526db521d99e371b643d6e1a05a29788c239a95a | [
"MIT"
] | 5 | 2020-07-30T20:59:37.000Z | 2021-11-13T02:17:12.000Z | i3razer/i3_razer.py | leofah/i3razer | 526db521d99e371b643d6e1a05a29788c239a95a | [
"MIT"
] | 1 | 2022-03-31T21:38:08.000Z | 2022-03-31T22:37:38.000Z | i3razer/i3_razer.py | leofah/i3razer | 526db521d99e371b643d6e1a05a29788c239a95a | [
"MIT"
] | null | null | null | from logging import getLogger
from openrazer.client import DeviceManager, constants as razer_constants
from i3razer import config_contants as conf
from i3razer.config_parser import ConfigParser
from i3razer.layout import layouts
from i3razer.pyxhook import HookManager
ERR_DAEMON_OFF = -2 # openrazer is not running
... | 38.311475 | 120 | 0.599609 |
804d7d8b57791079c4cce17fe9505b784c3b6b5e | 1,471 | py | Python | samples/storage.py | xdvlabs/xumm-sdk-py | c92066a6e9738e402e0ae1627dd21fbc6b3bead1 | [
"MIT"
] | 4 | 2022-01-29T11:22:06.000Z | 2022-03-01T03:36:59.000Z | samples/storage.py | CASL-AE/xumm-py | dbe040f409ffc5f918086a12f190ef289e709d22 | [
"MIT"
] | 4 | 2022-01-14T22:49:02.000Z | 2022-01-18T17:32:21.000Z | samples/storage.py | CASL-AE/xumm-py | dbe040f409ffc5f918086a12f190ef289e709d22 | [
"MIT"
] | 2 | 2022-03-01T03:32:35.000Z | 2022-03-20T17:11:56.000Z | #!/usr/bin/env python
# coding: utf-8
import logging
import asyncio
import xumm
if __name__ == "__main__":
example = StorageExample()
loop = asyncio.get_event_loop()
loop.run_until_complete(example.run())
| 29.42 | 105 | 0.638341 |
804e64952849f44f6670f2c038c06ff8ef3ff239 | 2,318 | py | Python | packages/w3af/w3af/core/controllers/misc/dns_cache.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/misc/dns_cache.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/misc/dns_cache.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
dns_cache.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af 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 version 2 of the License.
w3af is distributed in the hope that i... | 31.324324 | 77 | 0.684211 |
80524ca8ae4e4f10430fd0ea3cbd3e1253bc5c64 | 3,875 | py | Python | fretboard/chord.py | honorabel/python-fretboard | fb6a37e29bf6a19bee11940e9b42d58220c1306c | [
"MIT"
] | 69 | 2016-11-18T02:11:01.000Z | 2022-03-26T12:54:55.000Z | fretboard/chord.py | honorabel/python-fretboard | fb6a37e29bf6a19bee11940e9b42d58220c1306c | [
"MIT"
] | 3 | 2018-05-24T15:08:46.000Z | 2020-09-19T21:49:36.000Z | fretboard/chord.py | honorabel/python-fretboard | fb6a37e29bf6a19bee11940e9b42d58220c1306c | [
"MIT"
] | 16 | 2018-06-12T10:34:26.000Z | 2021-01-09T15:21:55.000Z | import copy
import attrdict
import svgwrite
import yaml
from .compat import StringIO
from .fretboard import Fretboard
from .utils import dict_merge
CHORD_STYLE = '''
string:
muted_font_color: silver
open_font_color: steelblue
'''
| 27.877698 | 116 | 0.543742 |
805364bb7db976a9ae2d3096d0339f8997426097 | 2,610 | py | Python | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | null | null | null | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | 3 | 2021-03-19T11:26:35.000Z | 2021-09-08T01:43:48.000Z | cheatsheets/py/pyython.6a.keras.py | questsin/cheats | e8bfe3d206a240e29ded7b199113437f4aa42544 | [
"Apache-2.0"
] | null | null | null | from keras.datasets import imdb
top_words = 10000
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=top_words)
#imdb.get_word_index()
word_dict = imdb.get_word_index()
word_dict = { key:(value + 3) for key, value in word_dict.items() }
word_dict[''] = 0 # Padding
word_dict['>'] = 1 # Start
word_dict['?'... | 33.461538 | 94 | 0.728736 |
8053775f8d98b076220bbf63085b0a13451f988a | 2,145 | py | Python | Analytics/resources/moving_sensors/export_to_kml.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 4 | 2018-11-21T14:42:18.000Z | 2020-05-11T10:52:59.000Z | Analytics/resources/moving_sensors/export_to_kml.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 60 | 2018-11-21T15:11:59.000Z | 2019-12-02T10:46:44.000Z | Analytics/resources/moving_sensors/export_to_kml.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 7 | 2018-11-21T14:42:44.000Z | 2019-11-28T16:24:14.000Z | from http import HTTPStatus
import simplekml
from flask_jwt_extended import jwt_required
from flask_restful import Resource
from flask_restful import reqparse
from models.pin_location_data import Tracker
| 36.982759 | 79 | 0.621911 |
80559713ec52ee98cc95d60ae305cc0f76247d7f | 4,658 | py | Python | graphene_mongo/tests/conftest.py | pfrantz/graphene-mongo | f7d4f3e194ec41793e6da547934c34e11fd9ef51 | [
"MIT"
] | null | null | null | graphene_mongo/tests/conftest.py | pfrantz/graphene-mongo | f7d4f3e194ec41793e6da547934c34e11fd9ef51 | [
"MIT"
] | null | null | null | graphene_mongo/tests/conftest.py | pfrantz/graphene-mongo | f7d4f3e194ec41793e6da547934c34e11fd9ef51 | [
"MIT"
] | null | null | null | import os
import pytest
from datetime import datetime
from .models import (
Article,
Editor,
EmbeddedArticle,
Player,
Reporter,
Child,
ProfessorMetadata,
ProfessorVector,
ChildRegisteredBefore,
ChildRegisteredAfter,
ParentWithRelationship,
CellTower,
Publisher,
)
cu... | 27.4 | 86 | 0.608201 |
80561b7e18a127e210a8a735291399c3216ea532 | 471 | py | Python | scratch.py | chappers/lightning-rl | 3c4ec35db983f256fc1ee82c9cab8ed8725bc58b | [
"MIT"
] | null | null | null | scratch.py | chappers/lightning-rl | 3c4ec35db983f256fc1ee82c9cab8ed8725bc58b | [
"MIT"
] | null | null | null | scratch.py | chappers/lightning-rl | 3c4ec35db983f256fc1ee82c9cab8ed8725bc58b | [
"MIT"
] | null | null | null | import curses
scr = curses.initscr()
curses.halfdelay(5) # How many tenths of a second are waited, from 1 to 255
curses.noecho() # Wont print the input
while True:
char = scr.getch() # This blocks (waits) until the time has elapsed,
# or there is input to be handled
scr.clear() # Clears the screen
... | 33.642857 | 76 | 0.658174 |
805782c90511b1092705178abcf7d9ba97014167 | 669 | py | Python | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 122 | 2020-07-12T23:08:49.000Z | 2021-12-18T16:14:10.000Z | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 47 | 2020-07-15T02:18:09.000Z | 2021-09-22T19:51:59.000Z | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 52 | 2020-07-13T10:49:52.000Z | 2021-10-30T03:34:55.000Z | from factory import Faker
from .network_node import NetworkNodeFactory
from ..constants.network import ACCOUNT_FILE_HASH_LENGTH, BLOCK_IDENTIFIER_LENGTH, MAX_POINT_VALUE, MIN_POINT_VALUE
from ..models.network_validator import NetworkValidator
| 39.352941 | 115 | 0.807175 |
80581742c4e9dd6b7cf6b2c14279d454b5d3049b | 365 | py | Python | core/facade.py | vitorpvcampos/djmenu | 49f9984007c94474b50122d81727a96b9c6c56c3 | [
"MIT"
] | 10 | 2020-06-02T16:23:15.000Z | 2021-05-25T16:17:19.000Z | core/facade.py | vitorpvcampos/djmenu | 49f9984007c94474b50122d81727a96b9c6c56c3 | [
"MIT"
] | 241 | 2019-11-18T14:57:29.000Z | 2022-03-18T16:09:38.000Z | core/facade.py | vitorpvcampos/djmenu | 49f9984007c94474b50122d81727a96b9c6c56c3 | [
"MIT"
] | 3 | 2020-03-12T15:08:04.000Z | 2020-06-22T19:50:16.000Z | from menu.models import Menu
from products.models import Product, Category
| 28.076923 | 48 | 0.69863 |
8058a85467ead4f2df3d7aeae90f5f3cb7569943 | 9,954 | py | Python | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 5 | 2017-03-31T03:25:09.000Z | 2021-12-17T02:28:24.000Z | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 165 | 2016-08-11T01:59:47.000Z | 2017-10-10T06:32:12.000Z | database/crawler/crawl_drugbank.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 11 | 2015-06-15T04:25:59.000Z | 2021-04-18T09:39:16.000Z | # crawl_drugbank.py
import time
import pickle
import json
import MySQLdb
import httplib
import urllib2 as urllib
from collections import defaultdict
import dbcrawler_util as util
from datetime import datetime
from bs4 import BeautifulSoup as bs
outDir = '/home/tor/robotics/prj/csipb-jamu-prj/dataset/drugbank/drugbank... | 35.55 | 140 | 0.544806 |
8058ac0f97a55a2585c802f841a4705f0c870641 | 1,051 | py | Python | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | null | null | null | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | 1 | 2021-03-27T15:52:06.000Z | 2021-03-27T15:52:06.000Z | k2/__init__.py | sequeender/k2 | 26dab3332dd8620264fec522ab3a0455f21377cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
# -------------- Add path of _k2.so into sys.path --------------
import os as _os
import sys as _sys
_current_module = _sys.modules[__name__]
_k2_dir = _os.path.dirname(_current_module.__file__)
if not hasattr(_current_module, "__path__"):
__path__ = [_k2_dir]
elif _k2_dir... | 27.657895 | 75 | 0.652712 |
80596cc485da66469ca3499c45d5b0772370bbd1 | 3,569 | py | Python | amipy/core/spiderhub.py | 01ly/Amipy | 254ef5cf1b34f9671ec8eecc3ee61633644b3ff8 | [
"MIT"
] | 24 | 2019-03-06T17:27:39.000Z | 2021-02-27T16:56:51.000Z | amipy/core/spiderhub.py | 01ly/Amipy | 254ef5cf1b34f9671ec8eecc3ee61633644b3ff8 | [
"MIT"
] | 1 | 2020-03-28T12:43:23.000Z | 2020-03-30T04:59:44.000Z | amipy/core/spiderhub.py | 01ly/Amipy | 254ef5cf1b34f9671ec8eecc3ee61633644b3ff8 | [
"MIT"
] | 13 | 2019-07-30T17:17:49.000Z | 2021-07-23T08:10:36.000Z | #coding:utf-8
'''
author : linkin
e-mail : yooleak@outlook.com
date : 2018-11-15
'''
import amipy
from amipy.BaseClass import Hub
from amipy.middlewares import MiddleWareManager
from amipy.util.load import load_py
from amipy.log import getLogger
| 35.336634 | 94 | 0.591202 |
3376cbd09166d238ee459563762207df8c790db5 | 194 | py | Python | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | from .not_production_settings import * # noqa
DEBUG = True
WEBPACK_LOADER["DEFAULT"][ # noqa
"LOADER_CLASS"
] = "contentcuration.tests.webpack_loader.TestWebpackLoader"
TEST_ENV = True
| 19.4 | 60 | 0.752577 |
3378b86277aabe910e76e1f65855932a66f3625e | 1,050 | py | Python | estpop/simulation.py | defragworks/estpop | d843200cb9c7b8587db956ac0d15f0690da36c04 | [
"MIT"
] | null | null | null | estpop/simulation.py | defragworks/estpop | d843200cb9c7b8587db956ac0d15f0690da36c04 | [
"MIT"
] | null | null | null | estpop/simulation.py | defragworks/estpop | d843200cb9c7b8587db956ac0d15f0690da36c04 | [
"MIT"
] | null | null | null | import numpy as np
| 32.8125 | 72 | 0.635238 |
337be1ea8a2157dad08a162f07bb9bd2265babca | 2,710 | py | Python | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | python_exc_3/copyspecial.py | fpecek/python-exercise | 065c6441f1472a4835cbd1faab09ac96c2c9457b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
import os
import shutil
import subprocess
import zipfile
"""
Copy Speci... | 24.862385 | 85 | 0.627306 |
337c43e3035cea7241ab7d941456f0a2c78bf961 | 2,054 | py | Python | models/autoencoder_model.py | piyushkaul/information_geometry | 56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c | [
"MIT"
] | null | null | null | models/autoencoder_model.py | piyushkaul/information_geometry | 56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c | [
"MIT"
] | null | null | null | models/autoencoder_model.py | piyushkaul/information_geometry | 56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c | [
"MIT"
] | null | null | null | import torch.nn as nn
from core.fim_model import ModelFIM
import torch
features = [784,1000,500,250,30]
| 40.27451 | 152 | 0.598832 |
337dd50916fb840e7091ed51530bebf7c3ed34d3 | 188 | py | Python | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | import os
import sys
CURRENT_PATH = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(os.path.join(CURRENT_PATH, '..'))
from py_proj_init.__main__ import main # noqa
main()
| 18.8 | 59 | 0.744681 |
337f5a2410ae79413a6e7633d2512fb55d86d5f7 | 4,620 | py | Python | pysimpleframe/interface/display/tables/NavigationTable.py | OriDevTeam/PySimpleFrame | 105654736a0ecc2ddb00921f1bc139faeaba2c84 | [
"BSD-3-Clause"
] | null | null | null | pysimpleframe/interface/display/tables/NavigationTable.py | OriDevTeam/PySimpleFrame | 105654736a0ecc2ddb00921f1bc139faeaba2c84 | [
"BSD-3-Clause"
] | null | null | null | pysimpleframe/interface/display/tables/NavigationTable.py | OriDevTeam/PySimpleFrame | 105654736a0ecc2ddb00921f1bc139faeaba2c84 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Name: TOFILL\n
Description: TOFILL
"""
"""PySimpleFrame
Author: Miguel Silva
License: Check LICENSE file
"""
## System imports ##
## Library imports ##
import termtables
from colorama import Fore, Back, Style
## Application imports ##
from pysimpleframe... | 26.25 | 82 | 0.670563 |
337fb62497c441679efa5ff81eacc164419c490b | 458 | py | Python | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | 1 | 2017-05-02T21:28:02.000Z | 2017-05-02T21:28:02.000Z | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | null | null | null | setup.py | Julian/giraffe | 8ef37fcb0a7cc5aa24c684d17568c55ad04692dc | [
"MIT"
] | null | null | null | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name="giraffe",
version="0.1",
package_dir={"giraffe" : ""},
packages=["giraffe"],
cmdclass = {'build_ext': build_ext},
ext_modules = [
Exten... | 28.625 | 75 | 0.576419 |
3382bb7349a27982996e8cd4a61dd6fd63ae8070 | 2,267 | py | Python | library/github/tests/Issue494.py | Sangraha/Github-to-S3 | e88345dc800b2b2f7ec10ee10bb864582335f1ad | [
"Apache-2.0"
] | null | null | null | library/github/tests/Issue494.py | Sangraha/Github-to-S3 | e88345dc800b2b2f7ec10ee10bb864582335f1ad | [
"Apache-2.0"
] | null | null | null | library/github/tests/Issue494.py | Sangraha/Github-to-S3 | e88345dc800b2b2f7ec10ee10bb864582335f1ad | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
############################ Copyrights and license ############################
# #
# Copyright 2016 Sam Corbett <sam.corbett@cloudsoftcorp.com> #
# Copyright 2018 sfdye <tsfdye@gmail.com> ... | 58.128205 | 83 | 0.422144 |
3383b63311713ea3400e46bf259718c4551057ed | 921 | py | Python | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | modules/report6.py | Seyon7/report | ac8b4778287cbc0f9c48aca61e65f41ef612d385 | [
"MIT"
] | null | null | null | import click
from modules.processor import build_report, print_report
| 29.709677 | 107 | 0.710098 |