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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6292f4b527df8ed334c9ff7b406c01c304b61ef | 15,067 | py | Python | examples/adaptive/ppo2_episodes.py | llucid-97/rl-generalization | 5561067d6fe0f8873a1e83b2479a6a6faa820dfa | [
"MIT"
] | 84 | 2018-10-31T19:45:03.000Z | 2022-02-17T17:29:12.000Z | examples/adaptive/ppo2_episodes.py | llucid-97/rl-generalization | 5561067d6fe0f8873a1e83b2479a6a6faa820dfa | [
"MIT"
] | 9 | 2018-11-29T13:29:59.000Z | 2021-05-11T23:54:20.000Z | examples/adaptive/ppo2_episodes.py | llucid-97/rl-generalization | 5561067d6fe0f8873a1e83b2479a6a6faa820dfa | [
"MIT"
] | 15 | 2018-10-31T19:45:29.000Z | 2022-03-25T16:06:11.000Z | import os
import time
import joblib
import numpy as np
import os.path as osp
import tensorflow as tf
from baselines import logger
from collections import deque
from baselines.common import explained_variance
import pickle
def constfn(val):
return f
def learn(policy, env, nsteps, total_trials, episodes_per_tri... | 46.076453 | 151 | 0.617708 |
d62a83820ba47a3107569c5278ac9665892b74f8 | 2,045 | py | Python | Scripts/simulation/visualization/spawner_visualizer.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/visualization/spawner_visualizer.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/visualization/spawner_visualizer.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\visualization\spawner_visualizer.py
# Compiled at: 2020-08-11 18:25:53
# Size of source mod 2**32: 2... | 43.510638 | 107 | 0.642543 |
d62ad03a43eda3844d3bfe00ca8827143a6790cf | 288 | py | Python | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | '''
A package to manipulate and display some random structures,
including meander systems, planar triangulations, and ribbon tilings
Created on May 8, 2021
@author: vladislavkargin
'''
'''
#I prefer blank __init__.py
from . import mndrpy
from . import pmaps
from . import ribbons
''' | 16.941176 | 68 | 0.753472 |
d62bf9b8e1cb172f53b0d3a2b4cf82b13f9588af | 2,007 | py | Python | 2017/day09/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | 3 | 2018-04-08T10:40:52.000Z | 2018-12-06T02:37:23.000Z | 2017/day09/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | 2 | 2018-04-10T11:44:18.000Z | 2022-02-22T21:25:54.000Z | 2017/day09/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''Day 9 of the 2017 advent of code'''
def process_garbage(stream, index):
"""Traverse stream. Break on '>' as end of garbage,
return total as size of garbage and the new index
"""
total = 0
length = len(stream)
while index < length:
if stream[index] =... | 23.337209 | 84 | 0.544096 |
d62d910445835d91faa3e110d7eb3b7db0b66ad0 | 2,168 | py | Python | epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | DRB1_1227_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.99657, 'I': -0.003434, 'H': -999.0, 'K': -999.0, 'M': -0.003434, 'L': -0.003434, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.99657, 'V': -0.003434, 'Y': -0.99657}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ... | 2,168 | 2,168 | 0.396679 |
d62f99bd2cd008cbb688a48eb7fc0e2ddb7c4b4a | 744 | py | Python | radec.py | mdwarfgeek/pymisc | e923e9d705af8fed291fbff7ff135b1025b82227 | [
"MIT"
] | null | null | null | radec.py | mdwarfgeek/pymisc | e923e9d705af8fed291fbff7ff135b1025b82227 | [
"MIT"
] | null | null | null | radec.py | mdwarfgeek/pymisc | e923e9d705af8fed291fbff7ff135b1025b82227 | [
"MIT"
] | null | null | null | import lfa
| 32.347826 | 78 | 0.634409 |
d63126a5ef87a48b8c8a3004026d99401763e7c4 | 567 | py | Python | src/utilities/NumpyHelper.py | AndMu/Market-Wisdom | 64889634566172ccfed372bba452f717862ba956 | [
"Apache-2.0"
] | 14 | 2018-08-20T07:54:15.000Z | 2021-06-22T16:52:20.000Z | src/utilities/NumpyHelper.py | AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis | b5a81f5d23419789a027403b4d72d53ed760e091 | [
"Apache-2.0"
] | 3 | 2019-06-01T10:32:36.000Z | 2020-01-09T10:19:33.000Z | src/utilities/NumpyHelper.py | AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis | b5a81f5d23419789a027403b4d72d53ed760e091 | [
"Apache-2.0"
] | 7 | 2019-10-22T07:46:39.000Z | 2021-04-29T04:56:46.000Z | import numpy as np
| 25.772727 | 64 | 0.574956 |
d631a41f89b7ce2f5771d40e6b71d43ca80b06fc | 282 | py | Python | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import RouteModel
| 25.636364 | 66 | 0.737589 |
d632cecb4f2872287738e79aa8f506251786723a | 1,369 | py | Python | test/net_t2.py | jmbjorndalen/pycsp_classic | 686c88d66f280e34c409ed33bb72097e42010837 | [
"MIT"
] | null | null | null | test/net_t2.py | jmbjorndalen/pycsp_classic | 686c88d66f280e34c409ed33bb72097e42010837 | [
"MIT"
] | null | null | null | test/net_t2.py | jmbjorndalen/pycsp_classic | 686c88d66f280e34c409ed33bb72097e42010837 | [
"MIT"
] | 1 | 2021-12-04T12:04:27.000Z | 2021-12-04T12:04:27.000Z | #!/usr/bin/env python
# -*- coding: latin-1 -*-
from common import *
from pycsp import *
from pycsp.plugNplay import *
from pycsp.net import *
def waitForSignal():
"Waits until the other side has registered its channels"
global ctrl
ctrl.read()
ctrl = getNamedChannel("foo")
Sequence(test1())
Sequence(tes... | 23.20339 | 60 | 0.614317 |
d6332d84e3d5a9658bda74c61983f969fd0d2998 | 3,653 | py | Python | main/commands/_listlol.py | STEUSSO/steusso | 18e21fd1711133c0b8652cf72dd1b8f812f3e0cb | [
"CC0-1.0"
] | null | null | null | main/commands/_listlol.py | STEUSSO/steusso | 18e21fd1711133c0b8652cf72dd1b8f812f3e0cb | [
"CC0-1.0"
] | null | null | null | main/commands/_listlol.py | STEUSSO/steusso | 18e21fd1711133c0b8652cf72dd1b8f812f3e0cb | [
"CC0-1.0"
] | null | null | null | from discord.errors import HTTPException
from discord.ext import commands
from os import getenv
from discord import Embed
from dotenv import load_dotenv
from requests.models import HTTPError
from riotwatcher import LolWatcher
from json import load
load_dotenv(dotenv_path="config")
prefix = getenv("PREFIX") | 42.476744 | 296 | 0.59677 |
d63509621c6f3238df73b9c82ff0524e9b7a3e89 | 10,988 | py | Python | olfactometer/smell_engine_communicator.py | asu-meteor/The-Smell-Engine | c80283b324d485756ed38c02ae0fd7f775f7c39f | [
"MIT"
] | 1 | 2022-03-14T19:46:36.000Z | 2022-03-14T19:46:36.000Z | olfactometer/smell_engine_communicator.py | asu-meteor/The-Smell-Engine | c80283b324d485756ed38c02ae0fd7f775f7c39f | [
"MIT"
] | null | null | null | olfactometer/smell_engine_communicator.py | asu-meteor/The-Smell-Engine | c80283b324d485756ed38c02ae0fd7f775f7c39f | [
"MIT"
] | 2 | 2022-03-14T19:46:51.000Z | 2022-03-14T20:16:57.000Z | import struct
import select
import socket
import sys
import binascii
import getopt
import time
import quantities as pq
from collections import deque
import numpy as np
import datetime
import typer
from typing import Optional
from pprint import pprint
from olfactometer.smell_engine import SmellEngine
from olfactometer... | 51.106977 | 151 | 0.596287 |
d63513361fda0a919145ea884276a37e0a46cdc6 | 4,051 | py | Python | tree/basic.py | Matioz/AlphaZero | d50ca8e57752ada2e5a5f6b817d67b6fe753449d | [
"MIT"
] | 1 | 2020-08-08T14:01:27.000Z | 2020-08-08T14:01:27.000Z | tree/basic.py | Matioz/AlphaZero | d50ca8e57752ada2e5a5f6b817d67b6fe753449d | [
"MIT"
] | 13 | 2018-05-20T10:41:08.000Z | 2022-03-11T23:39:11.000Z | tree/basic.py | piojanu/AlphaZero | 7285559374c331d83320f1ef447fb185880531c6 | [
"MIT"
] | null | null | null | import numpy as np
from abc import ABCMeta, abstractmethod
def select_edge(self, c=1.):
"""Choose next action (edge) according to UCB formula.
Args:
c (float): The parameter c >= 0 controls the trade-off between choosing lucrative nodes
(low c) and exploring no... | 28.935714 | 100 | 0.607011 |
d6364735b7cf9d38867543ddfba47367af1c9f31 | 3,892 | py | Python | fedot/cases/metocean_forecasting_problem.py | alievilya/nas-fedot | ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea | [
"BSD-3-Clause"
] | 13 | 2020-07-14T10:52:40.000Z | 2022-03-31T13:01:47.000Z | fedot/cases/metocean_forecasting_problem.py | alievilya/nas-fedot | ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea | [
"BSD-3-Clause"
] | null | null | null | fedot/cases/metocean_forecasting_problem.py | alievilya/nas-fedot | ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea | [
"BSD-3-Clause"
] | 5 | 2020-08-10T09:43:22.000Z | 2022-03-22T08:28:08.000Z | import os
import random
from sklearn.metrics import mean_squared_error as mse
from core.composer.chain import Chain
from core.composer.composer import ComposerRequirements, DummyChainTypeEnum, DummyComposer
from core.models.data import OutputData
from core.models.model import *
from core.repository.dataset_t... | 41.849462 | 112 | 0.720709 |
d636c3562519dc522e1e77635bac6225822e825e | 1,596 | py | Python | common/si.isystem.commons.plugin/fileManipulation.py | iSYSTEMLabs/testIDEA | f445bdebb6e23416a0f793ab1d98d41017cec4d8 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T04:04:30.000Z | 2022-03-07T04:04:30.000Z | common/si.isystem.commons.plugin/fileManipulation.py | iSYSTEMLabs/testIDEA | f445bdebb6e23416a0f793ab1d98d41017cec4d8 | [
"BSD-3-Clause"
] | null | null | null | common/si.isystem.commons.plugin/fileManipulation.py | iSYSTEMLabs/testIDEA | f445bdebb6e23416a0f793ab1d98d41017cec4d8 | [
"BSD-3-Clause"
] | null | null | null |
import os
import re
import shutil
# No special characters are allowed in oldStr except the '.' character which is handled correctly
| 25.741935 | 98 | 0.576441 |
d63737b4e600a66bc6abcf1e9fab86752b57cf0b | 995 | py | Python | language/python/modules/typing/typing_module.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 1 | 2019-11-25T07:23:42.000Z | 2019-11-25T07:23:42.000Z | language/python/modules/typing/typing_module.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 13 | 2020-01-07T16:09:47.000Z | 2022-03-02T12:51:44.000Z | language/python/modules/typing/typing_module.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author: bigfoolliu
"""
python3.5PEP484python(type hints)
typing
1.
2.
3. pycharmtyping
intlongfloat
boolstr
ListTupleDictSet
IterableIterator
Generator
AnyAny
NoReturnNone
Sequence collections.abc.Sequence listtuple
"""
from typing import List, Any, Unio... | 16.311475 | 65 | 0.691457 |
d638cea5e87e66042a0f58c9969b9e9d5bdeeb8b | 3,941 | py | Python | scratchpad/voids_paper/bin/tests/test_rec.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/voids_paper/bin/tests/test_rec.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/voids_paper/bin/tests/test_rec.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""
import numpy as np
import matplotlib.pyplot as plt
import os
import h5py
import sys
import time
import seaborn as sns
import pandas as pd
import cupy as cp
from tomo_encoders import Patches
from tomo_encoders.misc import viewer
from tomo_encoders import DataF... | 30.789063 | 107 | 0.611774 |
d63d239e7f20359bcda23e4b9f736073ec206cae | 5,352 | py | Python | tensornetwork/linalg/linalg_test.py | sr33dhar/TensorNetwork | 7a755ac004514561e4e018bf4c6f98e1f3b6d650 | [
"Apache-2.0"
] | null | null | null | tensornetwork/linalg/linalg_test.py | sr33dhar/TensorNetwork | 7a755ac004514561e4e018bf4c6f98e1f3b6d650 | [
"Apache-2.0"
] | null | null | null | tensornetwork/linalg/linalg_test.py | sr33dhar/TensorNetwork | 7a755ac004514561e4e018bf4c6f98e1f3b6d650 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import time
import pytest
import jax.numpy as jnp
import jax.config as config
import torch
import tensorflow as tf
from tensornetwork.linalg import linalg
from tensornetwork import backends
from tensornetwork.backends.numpy import numpy_backend
from tensornetwork.backends.jax import jax_backend
#pyli... | 35.210526 | 76 | 0.660314 |
d63d974f3174c13c816c1f7f268a122a5d42e514 | 72 | py | Python | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 3 | 2021-06-04T04:24:48.000Z | 2021-09-08T16:33:16.000Z | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 18 | 2021-06-02T12:33:58.000Z | 2022-01-28T08:29:45.000Z | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 2 | 2021-09-08T16:33:19.000Z | 2022-01-27T08:59:33.000Z | """Pygments entities for highlighting and tokenizing Ansible things."""
| 36 | 71 | 0.791667 |
d63dd2c75a7d51524459ca564e7f8c459de9700b | 352 | py | Python | Students/Zephyr/Exercise 1.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | 3 | 2019-07-02T13:46:23.000Z | 2019-08-19T14:41:25.000Z | Students/Zephyr/Exercise 1.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | Students/Zephyr/Exercise 1.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | name = input('Please enter your name:\n')
age = int(input("Please enter your age:\n"))
color = input('Enter your favorite color:\n')
animal = input('Enter your favorite animal:\n')
print('Hello my name is' , name , '.')
print('I am' , age , 'years old.')
print('My favorite color is' , color ,'.')
print('My favorite... | 27.076923 | 49 | 0.644886 |
d63f1bf49523a0c4532b24c23c24b616d219a539 | 2,083 | py | Python | libraries/authenticator.py | CrimsonPinnacle/container-image-inspector | c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969 | [
"Apache-2.0"
] | null | null | null | libraries/authenticator.py | CrimsonPinnacle/container-image-inspector | c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969 | [
"Apache-2.0"
] | 5 | 2021-02-18T22:42:48.000Z | 2021-03-22T00:46:42.000Z | libraries/authenticator.py | CrimsonPinnacle/container-image-inspector | c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
:mod: `authenticator.py` -- Common authentication helpers
================================================================================
module:: authenticator
:platform: Unix, Windows
:synopsis: This module contains classes and helper functions that are common for
authen... | 34.716667 | 114 | 0.660586 |
d63f2686c253c7d3a95bc7e462de967cd66cecca | 2,696 | py | Python | main.py | Kartikei-12/Pyrunc | 9ce1f9ea21a2e22d0dca6c104754afd3126cccc8 | [
"Apache-2.0"
] | 4 | 2019-07-20T06:30:46.000Z | 2019-11-04T13:56:28.000Z | main.py | Kartikei-12/Pyrunc | 9ce1f9ea21a2e22d0dca6c104754afd3126cccc8 | [
"Apache-2.0"
] | null | null | null | main.py | Kartikei-12/Pyrunc | 9ce1f9ea21a2e22d0dca6c104754afd3126cccc8 | [
"Apache-2.0"
] | 1 | 2019-06-15T15:50:30.000Z | 2019-06-15T15:50:30.000Z | """main.py file representingcomparison statistics for Pyrunc module"""
# Python module(s)
from timeit import timeit
# Project module(s)
from Pyrunc import Pyrunc
def main():
"""Main Method"""
pr_c = Pyrunc()
# --------------------------------------------------------------------------------
# ----... | 26.96 | 87 | 0.477374 |
d63f4a4c9cd8ea952e060d75f7e0f10a24e460cf | 2,918 | py | Python | tests/test_class.py | oeg-upm/easysparql | 76b83a872df8b1e9662ac0d574dba02c9ddde841 | [
"Apache-2.0"
] | null | null | null | tests/test_class.py | oeg-upm/easysparql | 76b83a872df8b1e9662ac0d574dba02c9ddde841 | [
"Apache-2.0"
] | 2 | 2020-09-09T07:26:08.000Z | 2021-11-05T14:34:56.000Z | tests/test_class.py | oeg-upm/easysparql | 76b83a872df8b1e9662ac0d574dba02c9ddde841 | [
"Apache-2.0"
] | null | null | null | import unittest
from easysparql import easysparqlclass, cacher
import logging
ENDPOINT = "https://dbpedia.org/sparql"
albert_uri = "http://dbpedia.org/resource/Albert_Einstein"
albert_name = "Albert Einstein"
scientist = "http://dbpedia.org/ontology/Scientist"
foaf_name = "http://xmlns.com/foaf/0.1/name"
logger = log... | 41.685714 | 109 | 0.693626 |
d64171aff2bb98e2b1c0d01401c6439366a7a347 | 1,728 | py | Python | create_saliency_images.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 17 | 2018-07-25T05:50:29.000Z | 2020-12-06T23:28:25.000Z | create_saliency_images.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 1 | 2019-11-20T16:22:30.000Z | 2020-01-31T08:57:25.000Z | create_saliency_images.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 5 | 2018-07-26T03:48:41.000Z | 2020-02-25T14:35:22.000Z | import sys
import numpy as np
import scipy.misc
import scipy.ndimage as nd
import os.path
import scipy.io as sio
saliency_path = '/media/VOC/saliency/raw_maps/' # the path of the raw class-specific saliency maps, created by create_saliency_raw.py
save_path = '/media/VOC/saliency/thresholded_saliency_images/' # the... | 36.765957 | 150 | 0.685764 |
d641eb6d49315fe6745ceee29475ee4928cb236c | 4,610 | py | Python | exporter/apply_for_a_licence/views.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 1 | 2021-10-16T16:36:58.000Z | 2021-10-16T16:36:58.000Z | exporter/apply_for_a_licence/views.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 45 | 2020-08-11T14:37:46.000Z | 2022-03-29T17:03:02.000Z | exporter/apply_for_a_licence/views.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 3 | 2021-02-01T06:26:19.000Z | 2022-02-21T23:02:46.000Z | from django.urls import reverse_lazy, reverse
from django.views.generic import TemplateView
from exporter.applications.services import post_applications, post_open_general_licences_applications
from exporter.apply_for_a_licence.forms.open_general_licences import (
open_general_licence_forms,
open_general_licen... | 39.067797 | 109 | 0.716052 |
d643ba8252478c881a1cbb108bed0d0c073a4c21 | 2,532 | py | Python | ElexonDataPortal/vis/curtailment.py | r4ch45/ElexonDataPortal | d44ed4da33278c0135ff95fb126a10d9384af22f | [
"MIT"
] | 22 | 2021-01-12T12:34:43.000Z | 2022-03-30T06:18:40.000Z | ElexonDataPortal/vis/curtailment.py | r4ch45/ElexonDataPortal | d44ed4da33278c0135ff95fb126a10d9384af22f | [
"MIT"
] | 12 | 2021-02-26T16:17:58.000Z | 2022-03-29T19:32:29.000Z | ElexonDataPortal/vis/curtailment.py | r4ch45/ElexonDataPortal | d44ed4da33278c0135ff95fb126a10d9384af22f | [
"MIT"
] | 6 | 2021-06-07T11:58:35.000Z | 2022-03-30T06:18:42.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/vis-02-curtailment.ipynb (unless otherwise specified).
__all__ = ['get_wf_ids', 'flatten_list', 'get_curtailed_wfs_df', 'load_curtailed_wfs',
'add_next_week_of_data_to_curtailed_wfs']
# Cell
flatten_list = lambda list_: [item for sublist in list_ for item in ... | 36.695652 | 135 | 0.690363 |
d6441759966ae5c635bbb788b674b13cdbcf3cdb | 91,809 | py | Python | pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py | peendebak/PycQED_py3 | c85d511cf49f6f7e08365a7d9abe6019d05cb2ed | [
"MIT"
] | null | null | null | pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py | peendebak/PycQED_py3 | c85d511cf49f6f7e08365a7d9abe6019d05cb2ed | [
"MIT"
] | null | null | null | pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py | peendebak/PycQED_py3 | c85d511cf49f6f7e08365a7d9abe6019d05cb2ed | [
"MIT"
] | null | null | null | import logging
import numpy as np
import time
import warnings
from qcodes.instrument.base import Instrument
from qcodes.utils import validators as vals
from pycqed.measurement import detector_functions as det
from qcodes.instrument.parameter import ManualParameter
from pycqed.utilities.general import gen_sweep_pts
fr... | 42.74162 | 106 | 0.540372 |
d6446687d741426359d7e451dc6dcf120fc71619 | 3,384 | py | Python | main.py | ok-tsar/VandyHacks_Heartbeat_Classification | a371f6d19932e6277db6481e5e95cce4438d8b65 | [
"MIT"
] | 1 | 2021-01-15T01:32:31.000Z | 2021-01-15T01:32:31.000Z | main.py | ok-tsar/VandyHacks_Heartbeat_Classification | a371f6d19932e6277db6481e5e95cce4438d8b65 | [
"MIT"
] | null | null | null | main.py | ok-tsar/VandyHacks_Heartbeat_Classification | a371f6d19932e6277db6481e5e95cce4438d8b65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
import pandas as pd
import librosa
import os
import sys
import time
from datetime import datetime
from pathlib import Path
from src.python.audio_transforms import *
from src.python.model_predict import *
from src.python.graphics import plot_graph
# Hardcoding a few variable... | 23.664336 | 91 | 0.588357 |
d646ae45e14020746e673b4abe0a16891e76d131 | 4,581 | py | Python | src/AutoTrade.py | mounan/cryptobot | 9c130202b89294946a2d24b058072278c2944dbe | [
"MIT"
] | 3 | 2021-06-03T05:25:49.000Z | 2022-03-14T07:47:33.000Z | src/AutoTrade.py | mounan/cryptobot | 9c130202b89294946a2d24b058072278c2944dbe | [
"MIT"
] | null | null | null | src/AutoTrade.py | mounan/cryptobot | 9c130202b89294946a2d24b058072278c2944dbe | [
"MIT"
] | null | null | null | from pprint import pformat
from TwitterBot import TwitterBot
from utils import *
from BinanceBot import BinanceBot
from time import *
import logging
def get_and_analyze(self, count):
"""[summary]
:param count: [description]
:type count: [type]
:return: [description]
:rtype... | 34.443609 | 149 | 0.53067 |
d647a10a0a898a8e9a5837b54f0c329b582ca5db | 5,208 | py | Python | py/discover.py | dman776/micboard | 166987dfad529dc35654f402fdbbde7f16b60f77 | [
"MIT"
] | 44 | 2019-08-30T02:51:59.000Z | 2022-03-15T13:47:18.000Z | py/discover.py | dman776/micboard | 166987dfad529dc35654f402fdbbde7f16b60f77 | [
"MIT"
] | 21 | 2019-09-01T16:17:22.000Z | 2022-02-01T15:47:55.000Z | py/discover.py | dman776/micboard | 166987dfad529dc35654f402fdbbde7f16b60f77 | [
"MIT"
] | 16 | 2019-09-01T01:40:09.000Z | 2022-03-15T17:12:28.000Z | import socket
import struct
import json
import time
import os
import platform
from optparse import OptionParser
import sys
import xml.etree.ElementTree as ET
import config
from device_config import BASE_CONST
MCAST_GRP = '239.255.254.253'
MCAST_PORT = 8427
DEFAULT_DCID_XML = '/Applications/Shure Update Utility.ap... | 28 | 113 | 0.599846 |
d648b943b6e2a77549b2f9c033aba864d03bf880 | 506 | py | Python | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 15 | 2021-06-11T16:35:15.000Z | 2022-03-29T15:53:59.000Z | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 12 | 2021-04-26T13:07:50.000Z | 2021-11-15T10:50:03.000Z | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 10 | 2021-05-07T16:28:18.000Z | 2022-02-28T21:47:11.000Z | import fastai
from neptune.new.integrations.fastai import NeptuneCallback
from fastai.vision.all import *
import neptune.new as neptune
run = neptune.init(
project="common/fastai-integration", api_token="ANONYMOUS", tags="basic"
)
path = untar_data(URLs.MNIST_TINY)
dls = ImageDataLoaders.from_csv(path)
# Log all... | 26.631579 | 95 | 0.784585 |
d648d151b563996d1ca1c9b18232f0f106c64aea | 14,079 | py | Python | test/webapi/controllers/test_time_series.py | dzelge/xcube | 1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd | [
"MIT"
] | null | null | null | test/webapi/controllers/test_time_series.py | dzelge/xcube | 1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd | [
"MIT"
] | null | null | null | test/webapi/controllers/test_time_series.py | dzelge/xcube | 1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from xcube.webapi.controllers.time_series import get_time_series_info, get_time_series_for_point, \
get_time_series_for_geometry, get_time_series_for_geometry_collection
from ..helpers import new_test_service_context
| 62.29646 | 117 | 0.40017 |
d648e5cbc312d423bf5006d19075c50d0c7bd02f | 17,011 | py | Python | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | 2 | 2016-07-18T08:53:22.000Z | 2018-03-28T16:59:52.000Z | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | null | null | null | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | null | null | null | # setup.py - distutils packaging
#
# Copyright (C) 2003-2010 Federico Di Gregorio <fog@debian.org>
#
# psycopg2 is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at... | 37.970982 | 89 | 0.628064 |
d64ac33a4a42c6b8d665b024fe5d0e70195a0ecf | 1,864 | py | Python | users/views.py | Mohit7143/class | 7859447c77548f54b590db73b678828e3bc91305 | [
"BSD-3-Clause"
] | null | null | null | users/views.py | Mohit7143/class | 7859447c77548f54b590db73b678828e3bc91305 | [
"BSD-3-Clause"
] | null | null | null | users/views.py | Mohit7143/class | 7859447c77548f54b590db73b678828e3bc91305 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render,redirect
from django.views.generic import View
from django.contrib.auth.models import User
from .forms import LoginUser,RegisterUser
from django.http import HttpResponse,Http404
from django.contrib.auth import authenticate,login,logout
def LogoutView(request):
logout(request)
... | 30.064516 | 68 | 0.640558 |
d64bd2e3bcadb3c94249491bf869f0e1bd34f80f | 6,266 | py | Python | python_src/AHRS_Madgwick.py | msart/Joint-estimation-with-9dof-sensors | b451764b50c50f42e0ee7b7d8c7167dbf010b995 | [
"MIT"
] | 3 | 2017-08-02T18:46:46.000Z | 2022-01-28T10:01:19.000Z | python_src/AHRS_Madgwick.py | msart/Joint-estimation-with-9dof-sensors | b451764b50c50f42e0ee7b7d8c7167dbf010b995 | [
"MIT"
] | null | null | null | python_src/AHRS_Madgwick.py | msart/Joint-estimation-with-9dof-sensors | b451764b50c50f42e0ee7b7d8c7167dbf010b995 | [
"MIT"
] | null | null | null | from math import sqrt
from math import atan2
from math import asin
beta = 0.1
sampleFreq = 10.0
#Fastest implementation in python for invsqrt
| 34.811111 | 409 | 0.531918 |
d64dd861a7fd5cd22573fba9f5c11e9abd41afee | 3,991 | py | Python | books/masteringPython/cp15/setup_template.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/masteringPython/cp15/setup_template.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/masteringPython/cp15/setup_template.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | import setuptools
if __name__ == '__main__':
setuptools.setup(
name='Name',
version='0.1',
# this automatically detects the packages in the specified
# (or current directory if no directory is given).
packages=setuptools.find_packages(exclude=['tests', 'docs']),
# ... | 42.913978 | 84 | 0.642195 |
d64fac35d83538731c9328874dc6768cc20365c0 | 8,312 | py | Python | compressor/base.py | rossowl/django-compressor | 3e451e836a7a8532781e4247a6a56444a6d4e25c | [
"Apache-2.0"
] | null | null | null | compressor/base.py | rossowl/django-compressor | 3e451e836a7a8532781e4247a6a56444a6d4e25c | [
"Apache-2.0"
] | null | null | null | compressor/base.py | rossowl/django-compressor | 3e451e836a7a8532781e4247a6a56444a6d4e25c | [
"Apache-2.0"
] | null | null | null | import os
from django.core.files.base import ContentFile
from django.template.loader import render_to_string
from django.utils.encoding import smart_unicode
from compressor.cache import get_hexdigest, get_mtime
from compressor.conf import settings
from compressor.exceptions import CompressorError, UncompressableFileE... | 38.660465 | 82 | 0.613811 |
d650630ddbd4fc30bfac843e28429816b4779ec8 | 1,324 | py | Python | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | """Test generating SQL conditions."""
import pytest
from binder.util import build_conditions
from .logging_setup import setup_logger
setup_logger()
def test_condition():
"""Test condition generation."""
assert (
build_conditions(
**{
"a": 5,
}
)
... | 19.188406 | 61 | 0.318731 |
d650a3ef3a866edcb545fd30c8d9bd73813f94b0 | 11,697 | py | Python | tfx/tools/cli/commands/pipeline.py | avelez93/tfx | 75fbb6a7d50e99138609be3ca4c3a204a13a2195 | [
"Apache-2.0"
] | 1,813 | 2019-02-04T17:17:30.000Z | 2022-03-29T13:39:30.000Z | tfx/tools/cli/commands/pipeline.py | avelez93/tfx | 75fbb6a7d50e99138609be3ca4c3a204a13a2195 | [
"Apache-2.0"
] | 2,710 | 2019-02-14T00:41:00.000Z | 2022-03-31T07:23:00.000Z | tfx/tools/cli/commands/pipeline.py | avelez93/tfx | 75fbb6a7d50e99138609be3ca4c3a204a13a2195 | [
"Apache-2.0"
] | 731 | 2019-02-04T17:59:18.000Z | 2022-03-31T06:45:51.000Z | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.020958 | 80 | 0.689066 |
d657c3c57633559b7ecdca066002d6b7d57f1a46 | 2,199 | py | Python | lib/utils/env.py | MJ10/BioSeq-GFN-AL | d389aeb729ac29578ad825da5b828ff968a1d555 | [
"MIT"
] | 13 | 2022-03-09T18:34:51.000Z | 2022-03-28T18:05:16.000Z | lib/utils/env.py | MJ10/BioSeq-GFN-AL | d389aeb729ac29578ad825da5b828ff968a1d555 | [
"MIT"
] | null | null | null | lib/utils/env.py | MJ10/BioSeq-GFN-AL | d389aeb729ac29578ad825da5b828ff968a1d555 | [
"MIT"
] | 2 | 2022-03-12T23:33:52.000Z | 2022-03-18T20:52:37.000Z | import torch
def get_tokenizer(args):
if args.task == "amp":
alphabet = ['%', 'A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V', 'W', 'Y']
# %: EOS
elif args.task == "tfbind":
alphabet = ['A', 'C', 'T', 'G']
elif args.task == "gfp":
al... | 32.820896 | 124 | 0.439291 |
d659a970a6512f2704362eda73ac10abe5149e31 | 5,388 | py | Python | tests/test_vectors/utils.py | alex-polosky/didcomm-python | 955866024c9f6191df9c5a898cc77e1979781eae | [
"Apache-2.0"
] | 8 | 2021-09-04T19:28:18.000Z | 2021-12-22T16:00:18.000Z | tests/test_vectors/utils.py | alex-polosky/didcomm-python | 955866024c9f6191df9c5a898cc77e1979781eae | [
"Apache-2.0"
] | 4 | 2021-07-27T23:44:33.000Z | 2021-10-13T13:29:39.000Z | tests/test_vectors/utils.py | alex-polosky/didcomm-python | 955866024c9f6191df9c5a898cc77e1979781eae | [
"Apache-2.0"
] | 7 | 2021-07-22T08:19:13.000Z | 2022-01-04T14:46:38.000Z | from enum import Enum
from typing import List, Union
from didcomm.common.types import VerificationMethodType, VerificationMaterialFormat
from didcomm.core.serialization import json_str_to_dict
from didcomm.did_doc.did_doc import VerificationMethod
from didcomm.errors import DIDCommValueError
from didcomm.secrets.secre... | 31.508772 | 87 | 0.720304 |
d659f71d371c80b8dc403a0da872f70015a39ed6 | 4,886 | py | Python | DialogCalibrate.py | n2ee/Wind-Tunnel-GUI | dee8708bcecee7b269823ca0ae1cf483e834aaf3 | [
"BSD-3-Clause"
] | 1 | 2018-11-29T01:36:17.000Z | 2018-11-29T01:36:17.000Z | DialogCalibrate.py | n2ee/Wind-Tunnel-GUI | dee8708bcecee7b269823ca0ae1cf483e834aaf3 | [
"BSD-3-Clause"
] | null | null | null | DialogCalibrate.py | n2ee/Wind-Tunnel-GUI | dee8708bcecee7b269823ca0ae1cf483e834aaf3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DialogCalibrate.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == "__main__":
import sys
app = QtWidgets.QApplicati... | 48.376238 | 109 | 0.710806 |
d65aaf4c15566afc36462d10778530ebc31a672f | 1,544 | py | Python | alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
| 33.565217 | 106 | 0.729275 |
d65b58a3fe01b63e5941799a6ac3e867eb10fc6b | 1,112 | py | Python | Practica3/MergeSort/Merge.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | 1 | 2021-09-30T20:05:41.000Z | 2021-09-30T20:05:41.000Z | Practica3/MergeSort/Merge.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | Practica3/MergeSort/Merge.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | #Anlisis de Algoritmos 3CV2
# Alan Romero Lucero
# Josu David Hernndez Ramrez
# Prctica 3 Divide y vencers
# Este es el algoritmo usado en merge, ya que los datos que devuelve no son los mismos usados en merge sort
# Esto lo hice para fines prcticos y ahorro de tiempo
import globalvariables as gb
def onlymerge(izq, d... | 27.8 | 107 | 0.583633 |
d65bf8a4a8cc448f3cadb7613881c4f3322813c5 | 1,068 | py | Python | InteractionTracker/analytics/api/serializers.py | desertzebra/Lean-UX-Platform | 1b61a4b4e0af6fc08e052fb22b4141e65122ef9a | [
"Apache-2.0"
] | 34 | 2019-03-11T08:10:16.000Z | 2021-12-14T05:53:22.000Z | InteractionTracker/analytics/api/serializers.py | shahidzaffar/Lean-UX-Platform | 40c46c0421dd21cdfca254db689bf566c95e4d6a | [
"Apache-2.0"
] | 6 | 2020-11-17T06:57:39.000Z | 2022-01-04T16:51:41.000Z | InteractionTracker/analytics/api/serializers.py | shahidzaffar/Lean-UX-Platform | 40c46c0421dd21cdfca254db689bf566c95e4d6a | [
"Apache-2.0"
] | 28 | 2019-03-11T08:10:19.000Z | 2021-12-14T06:02:37.000Z | """
# Interaction Tracker
# @license http://www.apache.org/licenses/LICENSE-2.0
# Author @ Jamil Hussain, Zaki
"""
from analytics.models import (Log, ActionLog)
from rest_framework import serializers
| 32.363636 | 259 | 0.707865 |
c383b81e111b7e6a0cda4576f4e669d55c172076 | 78 | py | Python | idmatch/matching/fixtures/__init__.py | javierherrera1996/idmatch | 8bb27dafaa12b7b0bdb745071e81e6b940b7553a | [
"MIT"
] | 55 | 2017-05-27T11:13:33.000Z | 2022-01-27T21:22:28.000Z | idmatch/matching/fixtures/__init__.py | javierherrera1996/idmatch | 8bb27dafaa12b7b0bdb745071e81e6b940b7553a | [
"MIT"
] | 14 | 2017-05-27T11:10:08.000Z | 2022-01-13T00:39:22.000Z | idmatch/matching/fixtures/__init__.py | javierherrera1996/idmatch | 8bb27dafaa12b7b0bdb745071e81e6b940b7553a | [
"MIT"
] | 18 | 2017-05-30T19:08:17.000Z | 2022-01-29T00:19:25.000Z | # coding: utf-8
from wilde import WILDE_VECTOR
from corey import COREY_VECTOR
| 19.5 | 30 | 0.820513 |
c38411b92515ccabaac79cf9fee8dda8f91e01e8 | 1,343 | py | Python | tournament.py | feat7/chess_lm | 1e8538b980f19616d5042557612024e76f1a1ca6 | [
"MIT"
] | null | null | null | tournament.py | feat7/chess_lm | 1e8538b980f19616d5042557612024e76f1a1ca6 | [
"MIT"
] | null | null | null | tournament.py | feat7/chess_lm | 1e8538b980f19616d5042557612024e76f1a1ca6 | [
"MIT"
] | null | null | null | # """run the models and calculate ELO ratings
# 19.11.2020 - @yashbonde"""
# from argparse import ArgumentParser
# from chess_lm.model import ModelConfig
# from chess_lm.game import Player
# import torch
# def expected(p1, p2):
# return 1 / (1 - 10 ** ((p2 - p1) / 400))
# def elo(p, e, s, k=32):
# return ... | 27.408163 | 78 | 0.619509 |
c387c470aa7c4ac79a6f030e94394a414d67b817 | 5,092 | py | Python | workbench.py | swprojects/Serial-Sequence-Creator | cf468a3db777d6b4348fd53d1daa8432f6889f11 | [
"MIT"
] | 1 | 2018-10-29T20:10:43.000Z | 2018-10-29T20:10:43.000Z | workbench.py | swprojects/Serial-Sequence-Creator | cf468a3db777d6b4348fd53d1daa8432f6889f11 | [
"MIT"
] | null | null | null | workbench.py | swprojects/Serial-Sequence-Creator | cf468a3db777d6b4348fd53d1daa8432f6889f11 | [
"MIT"
] | 1 | 2018-10-29T20:11:31.000Z | 2018-10-29T20:11:31.000Z | """
Description:
Requirements: pySerial, wxPython Phoenix
glossary and of other descriptions:
DMM - digital multimeter
PSU - power supply
SBC - single board computer
INS - general instrument commands
GEN - general sequence instructions
"""
import json
import logging
import serial
import serialfunctions as sf
imp... | 32.433121 | 103 | 0.546347 |
c38a2ff286af8deb46586d2a5d04d87e2d90d9d1 | 1,723 | py | Python | exawind/prelude/coroutines.py | sayerhs/py-exawind | 7adea1567bd58069774ca56a8a75be7e4d9eefd2 | [
"Apache-2.0"
] | null | null | null | exawind/prelude/coroutines.py | sayerhs/py-exawind | 7adea1567bd58069774ca56a8a75be7e4d9eefd2 | [
"Apache-2.0"
] | null | null | null | exawind/prelude/coroutines.py | sayerhs/py-exawind | 7adea1567bd58069774ca56a8a75be7e4d9eefd2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""\
Coroutine utilities
-------------------
Some code snippets inspired by http://www.dabeaz.com/coroutines/
"""
import re
import functools
def coroutine(func):
"""Prime a coroutine for send commands.
Args:
func (coroutine): A function that takes values via yield
Retur... | 25.338235 | 88 | 0.597795 |
c38a99159a465c6c6adcac264c6b8eb5c21be376 | 1,467 | py | Python | models.py | askomorokhov/fast-api-example | 5d23ddd39413f37697c81f267bb69117011d56f5 | [
"MIT"
] | null | null | null | models.py | askomorokhov/fast-api-example | 5d23ddd39413f37697c81f267bb69117011d56f5 | [
"MIT"
] | null | null | null | models.py | askomorokhov/fast-api-example | 5d23ddd39413f37697c81f267bb69117011d56f5 | [
"MIT"
] | null | null | null | from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DateTime
from sqlalchemy.orm import relationship
import datetime
from database import Base
| 29.34 | 77 | 0.714383 |
c38b6c7baddf81a33d7c82bf0de977f520050f0e | 6,991 | py | Python | mysterious_moose/src/virus.py | fiddlen/code-jam-5 | 924a6f8b0467ce2473811348c943dd6f1fe25972 | [
"MIT"
] | 1 | 2019-06-28T17:10:11.000Z | 2019-06-28T17:10:11.000Z | mysterious_moose/src/virus.py | fiddlen/code-jam-5 | 924a6f8b0467ce2473811348c943dd6f1fe25972 | [
"MIT"
] | 14 | 2019-06-28T18:07:17.000Z | 2019-07-01T21:30:06.000Z | mysterious_moose/src/virus.py | fiddlen/code-jam-5 | 924a6f8b0467ce2473811348c943dd6f1fe25972 | [
"MIT"
] | null | null | null | import math
import pygame
# class VirusGraphic:
# """ can create and return key Virus graphics"""
# def __init__(self, renderer):
# self.renderer = renderer
#
# self.name = ""
# self.resolution = pygame.display.Info()
# self.resolution = (self.resolution.current_w, self.resol... | 40.410405 | 101 | 0.61479 |
c38b84c928798be42a3d5c701e732748115bcb1c | 3,507 | py | Python | alipay/aop/api/domain/ReduceInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/ReduceInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/ReduceInfo.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
| 30.232759 | 87 | 0.600228 |
c38bc9c5d5c49a6041942f29f1c2c82abcfe2e97 | 290 | py | Python | ex049.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | ex049.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | ex049.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | '''Rafaa o DESAFIO 009, mostrando a tabuada de um nmero que o usurio escolher, s que agora utilizando um lao for.'''
n = int(input('Digite um nmero para ver sua tabuada: '))
print('-' * 12)
for tabu in range(0, 11):
print('{} x {:2} = {}'.format(n, tabu, n*tabu))
print('-' * 12) | 41.428571 | 121 | 0.641379 |
c38cb6bc625148dcfd0b93b5a724e542998afc6d | 1,899 | py | Python | data_plotting/idlsize/plots.py | krinii/dds-on-hardware | 86905069493130679ad8a3b1bfd3465319106fd0 | [
"MIT"
] | null | null | null | data_plotting/idlsize/plots.py | krinii/dds-on-hardware | 86905069493130679ad8a3b1bfd3465319106fd0 | [
"MIT"
] | null | null | null | data_plotting/idlsize/plots.py | krinii/dds-on-hardware | 86905069493130679ad8a3b1bfd3465319106fd0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
import time
import array
import numpy as np
import pandas as pd
import statistics
import matplotlib.pyplot as plt
import seaborn as sns
# sns.set_theme(style="darkgrid")
x_b = [1, 10, 100, 1000, 10000, 100000, 1000000]
cyc_pi2 = [8379072, 8379072, 3675200, 372864, 37312, 3728, 368]
cyc... | 29.215385 | 106 | 0.691417 |
c38e1f71e6b3d9b9f233c17af18409553439e9b3 | 446 | py | Python | app/extensions.py | rileymjohnson/fbla | 1f1c37f54edd00af0b47b7c256523c7145f6be6f | [
"MIT"
] | null | null | null | app/extensions.py | rileymjohnson/fbla | 1f1c37f54edd00af0b47b7c256523c7145f6be6f | [
"MIT"
] | null | null | null | app/extensions.py | rileymjohnson/fbla | 1f1c37f54edd00af0b47b7c256523c7145f6be6f | [
"MIT"
] | null | null | null | from flask_bcrypt import Bcrypt
from flask_caching import Cache
from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
import logging
bcrypt = Bcrypt()
login_manager = LoginManager()
db = SQLAlchemy()
migrate =... | 29.733333 | 59 | 0.838565 |
c38e3282802bbc19a4073c3f750e891c9ae10713 | 207 | py | Python | tests/scripts/negative_linenumber_offsets.py | andyfcx/py-spy | 1e971b91c739237708f11c2ddcb1324ab0bc37c7 | [
"MIT"
] | 8,112 | 2018-08-09T13:35:54.000Z | 2022-03-31T23:23:52.000Z | tests/scripts/negative_linenumber_offsets.py | andyfcx/py-spy | 1e971b91c739237708f11c2ddcb1324ab0bc37c7 | [
"MIT"
] | 327 | 2018-08-21T10:39:06.000Z | 2022-03-29T08:58:22.000Z | tests/scripts/negative_linenumber_offsets.py | andyfcx/py-spy | 1e971b91c739237708f11c2ddcb1324ab0bc37c7 | [
"MIT"
] | 328 | 2018-08-21T09:36:49.000Z | 2022-03-30T10:15:18.000Z | import time
f()
| 14.785714 | 61 | 0.550725 |
c38e6007bf09401e85d2d7df62aaccf825cb43da | 13,175 | py | Python | starfish/core/imagestack/parser/crop.py | haoxusci/starfish | d7bd856024c75f2ce41504406f2a663566c3814b | [
"MIT"
] | 164 | 2018-03-21T21:52:56.000Z | 2022-03-23T17:14:39.000Z | starfish/core/imagestack/parser/crop.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 1,728 | 2018-03-15T23:16:09.000Z | 2022-03-12T00:09:18.000Z | starfish/core/imagestack/parser/crop.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 66 | 2018-03-25T17:21:15.000Z | 2022-01-16T09:17:11.000Z | from collections import OrderedDict
from typing import Collection, List, Mapping, MutableSequence, Optional, Set, Tuple, Union
import numpy as np
from slicedimage import Tile, TileSet
from starfish.core.imagestack.parser import TileCollectionData, TileData, TileKey
from starfish.core.types import ArrayLike, Axes, Coo... | 42.915309 | 105 | 0.62649 |
c391b115fbcae9056636fe28c8607436688bbc00 | 6,456 | py | Python | mpc_ros/script/teleop_keyboard.py | NaokiTakahashi12/mpc_ros | 8451fec293a5aee72d5fad0323ec206d08d0ed96 | [
"Apache-2.0"
] | 335 | 2019-03-11T23:03:07.000Z | 2022-03-31T13:40:21.000Z | mpc_ros/script/teleop_keyboard.py | NaokiTakahashi12/mpc_ros | 8451fec293a5aee72d5fad0323ec206d08d0ed96 | [
"Apache-2.0"
] | 30 | 2019-05-02T13:59:14.000Z | 2022-03-30T10:56:34.000Z | mpc_ros/script/teleop_keyboard.py | NaokiTakahashi12/mpc_ros | 8451fec293a5aee72d5fad0323ec206d08d0ed96 | [
"Apache-2.0"
] | 103 | 2018-07-11T15:08:38.000Z | 2022-03-17T13:57:24.000Z | #!/usr/bin/python
# This is a modified verison of turtlebot_teleop.py
# to fullfill the needs of HyphaROS MiniCar use case
# Copyright (c) 2018, HyphaROS Workshop
#
# The original license info are as below:
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binar... | 36.891429 | 95 | 0.629647 |
c392d36cc5c68370d275a885ceff96ecfac69bfd | 895 | py | Python | gym-dubins-airplane/gym_dubins_airplane/envs/config.py | hasanisci/gym-dubins-ac | fe205e75f27bf1b8a2858f5b9973ee09e43bfbce | [
"MIT"
] | 2 | 2021-02-06T20:01:56.000Z | 2021-07-12T13:00:49.000Z | gym-dubins-airplane/gym_dubins_airplane/envs/config.py | hasanisci/gym-dubins-ac | fe205e75f27bf1b8a2858f5b9973ee09e43bfbce | [
"MIT"
] | null | null | null | gym-dubins-airplane/gym_dubins_airplane/envs/config.py | hasanisci/gym-dubins-ac | fe205e75f27bf1b8a2858f5b9973ee09e43bfbce | [
"MIT"
] | 2 | 2021-02-14T15:39:15.000Z | 2021-07-12T13:00:53.000Z | import math
| 21.829268 | 74 | 0.579888 |
c3939f0937a9f440e452d4556c178d4679036846 | 726 | py | Python | exemplos/exemplo-aula-04-01.py | quitaiskiluisf/TI4F-2021-LogicaProgramacao | d12e5c389a43c98f27726df5618fe529183329a8 | [
"Unlicense"
] | null | null | null | exemplos/exemplo-aula-04-01.py | quitaiskiluisf/TI4F-2021-LogicaProgramacao | d12e5c389a43c98f27726df5618fe529183329a8 | [
"Unlicense"
] | null | null | null | exemplos/exemplo-aula-04-01.py | quitaiskiluisf/TI4F-2021-LogicaProgramacao | d12e5c389a43c98f27726df5618fe529183329a8 | [
"Unlicense"
] | null | null | null | # Apresentao
print('Programa para identificar a que cargos eletivos')
print('uma pessoa pode se candidatar com base em sua idade')
print()
# Entradas
idade = int(input('Informe a sua idade: '))
# Processamento e sadas
print('Esta pessoa pode se candidatar a estes cargos:')
if (idade < 18):
print('-... | 23.419355 | 61 | 0.634986 |
c395f4dc93b3cc9cf83be3db2fc2eff8ac8f3237 | 13,261 | py | Python | etl/parsers/etw/Microsoft_Windows_UAC_FileVirtualization.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_UAC_FileVirtualization.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_UAC_FileVirtualization.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-UAC-FileVirtualization
GUID : c02afc2b-e24e-4449-ad76-bcc2c2575ead
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import S... | 37.780627 | 123 | 0.681623 |
c3981f033f50367706655b5344334846814a59d8 | 4,073 | py | Python | fetchData.py | charlingli/automatic-ticket-assignment | a5fac001dd54ec9fc2af9877925109315131dc28 | [
"MIT"
] | null | null | null | fetchData.py | charlingli/automatic-ticket-assignment | a5fac001dd54ec9fc2af9877925109315131dc28 | [
"MIT"
] | null | null | null | fetchData.py | charlingli/automatic-ticket-assignment | a5fac001dd54ec9fc2af9877925109315131dc28 | [
"MIT"
] | null | null | null | import requests
from requests.auth import HTTPBasicAuth
from elasticsearch import Elasticsearch
import json
import sys
import datetime
from operator import itemgetter
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
INCIDENT_INDEX = "incident"
INCIDENT_TYPE = "incident"
RESOURCE_INDE... | 34.811966 | 115 | 0.579425 |
c39bd72623a02f47fb813a60722b70b8cc5a5671 | 10,080 | py | Python | Code/3. Baseline_LSTM.py | davidpaulkim/Stock-price-prediction-using-GAN | 18ae7335401ed3b5d8012026d8c8e36c83439d59 | [
"MIT"
] | 63 | 2021-03-01T08:39:17.000Z | 2022-03-31T10:44:58.000Z | Code/3. Baseline_LSTM.py | davidpaulkim/Stock-price-prediction-using-GAN | 18ae7335401ed3b5d8012026d8c8e36c83439d59 | [
"MIT"
] | 11 | 2021-02-25T23:13:13.000Z | 2022-02-20T05:14:37.000Z | Code/3. Baseline_LSTM.py | davidpaulkim/Stock-price-prediction-using-GAN | 18ae7335401ed3b5d8012026d8c8e36c83439d59 | [
"MIT"
] | 35 | 2021-03-13T21:46:35.000Z | 2022-03-18T08:24:30.000Z | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import tensorflow
from numpy import *
from math import sqrt
from pandas import *
from datetime import datetime, timedelta
from sklearn.preprocessing import LabelEncoder, MinMaxScaler
from sklearn.preprocessing import OneHotEncoder
from sklearn.met... | 36.521739 | 133 | 0.681151 |
c39c0fa829d146f1ed16fd72d73c49eeda2c3040 | 1,323 | py | Python | Algorithms_medium/0081. Search in Rotated Sorted Array II.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/0081. Search in Rotated Sorted Array II.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/0081. Search in Rotated Sorted Array II.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
0081. Search in Rotated Sorted Array II
Medium
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).
You are given a target value to search. If found in the array return true, otherwise return false.
Example 1:
Input... | 30.068182 | 98 | 0.535903 |
c39cf6425ae750feb018090f70a0e62153124b4d | 4,142 | py | Python | augmentation/main.py | LinaGamer15/withBears | 4714179f8336df726affdf5fa1db5becd2058d33 | [
"MIT"
] | null | null | null | augmentation/main.py | LinaGamer15/withBears | 4714179f8336df726affdf5fa1db5becd2058d33 | [
"MIT"
] | null | null | null | augmentation/main.py | LinaGamer15/withBears | 4714179f8336df726affdf5fa1db5becd2058d33 | [
"MIT"
] | null | null | null | import pathlib, typing, random, xml.etree.ElementTree as ET
from itertools import chain
from typing import List, Tuple
from PIL import Image, ImageOps
random.seed(42)
# Load raw images
cur = pathlib.Path(__file__).resolve().parent
backgrounds = [Image.open(i) for i in (cur/'backgrounds').iterdir()]
bears = [Image.open... | 35.706897 | 125 | 0.639788 |
c39d73486233c045183acbe7040c08d02429c13d | 15,708 | py | Python | HinetPy/win32.py | seisman/HinetPy | d27f5a6e5f0dff3832076e07cfeec11946c14ff4 | [
"MIT"
] | 54 | 2017-07-31T12:50:36.000Z | 2022-03-20T07:42:11.000Z | HinetPy/win32.py | seisman/HinetPy | d27f5a6e5f0dff3832076e07cfeec11946c14ff4 | [
"MIT"
] | 32 | 2017-07-18T07:29:01.000Z | 2022-02-17T13:22:32.000Z | HinetPy/win32.py | seisman/HinetPy | d27f5a6e5f0dff3832076e07cfeec11946c14ff4 | [
"MIT"
] | 24 | 2017-04-17T15:35:20.000Z | 2022-03-23T09:41:49.000Z | """
Processing data in win32 format.
"""
import glob
import logging
import math
import os
import subprocess
import tempfile
from fnmatch import fnmatch
from multiprocessing import Pool, cpu_count
from subprocess import DEVNULL, PIPE, Popen
# Setup the logger
FORMAT = "[%(asctime)s] %(levelname)s: %(message)s"
logging.... | 29.637736 | 87 | 0.591036 |
c39e009f068f7788015732d2e6b0edfd0efd992a | 426 | py | Python | examples/simple.py | realazthat/aiopg-trollius | 6f5edf829d92d1b10c4a1a3a90fe2451539e8dd7 | [
"BSD-2-Clause"
] | 1 | 2021-01-03T00:58:01.000Z | 2021-01-03T00:58:01.000Z | examples/simple.py | 1st1/aiopg | 1bcbd95f9ff97675788dc3dbc2f7889e26b2fba4 | [
"BSD-2-Clause"
] | 2 | 2018-07-20T07:05:46.000Z | 2018-07-20T19:44:44.000Z | examples/simple_old_style.py | soar/aiopg | 9bdff257226b14c1828253efb6d0eb7239b0683a | [
"BSD-2-Clause"
] | 3 | 2018-07-18T06:59:47.000Z | 2018-07-19T22:56:50.000Z | import asyncio
import aiopg
dsn = 'dbname=aiopg user=aiopg password=passwd host=127.0.0.1'
loop = asyncio.get_event_loop()
loop.run_until_complete(test_select())
| 22.421053 | 62 | 0.680751 |
c39e74a510420ce0e428d6654b2c91df1ac7a9d5 | 162 | py | Python | sta_etl/__init__.py | XeBoris/git-etl | 888f26e51a797dd111c9ca457a0c83b4f00296f0 | [
"MIT"
] | null | null | null | sta_etl/__init__.py | XeBoris/git-etl | 888f26e51a797dd111c9ca457a0c83b4f00296f0 | [
"MIT"
] | null | null | null | sta_etl/__init__.py | XeBoris/git-etl | 888f26e51a797dd111c9ca457a0c83b4f00296f0 | [
"MIT"
] | null | null | null | """Top-level package for sta-etl."""
__author__ = """Boris Bauermeister"""
__email__ = 'Boris.Bauermeister@gmail'
__version__ = '0.1.0'
#from sta_etl import *
| 18 | 38 | 0.697531 |
c3a0fe8de0f2a234fe164992e77198246617cbd3 | 14,399 | py | Python | care/facility/api/viewsets/patient_external_test.py | MaharashtraStateInnovationSociety/care | 6e7794d2ecb08fa17f2fcea6a4bb0c829f8e48a2 | [
"MIT"
] | null | null | null | care/facility/api/viewsets/patient_external_test.py | MaharashtraStateInnovationSociety/care | 6e7794d2ecb08fa17f2fcea6a4bb0c829f8e48a2 | [
"MIT"
] | null | null | null | care/facility/api/viewsets/patient_external_test.py | MaharashtraStateInnovationSociety/care | 6e7794d2ecb08fa17f2fcea6a4bb0c829f8e48a2 | [
"MIT"
] | null | null | null | from collections import defaultdict
import io
import hashlib
from datetime import date, datetime
from pyexcel_xls import get_data as xls_get
import pandas
import magic
from contextlib import closing
import csv
from django.db import connection
from io import StringIO
import uuid
from psycopg2.errors import UniqueViolati... | 44.033639 | 139 | 0.647267 |
c3a2516ed5e2983309b0fcf123980be25b43d165 | 1,061 | py | Python | tests/bsmp/test_commands.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | null | null | null | tests/bsmp/test_commands.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:59:09.000Z | 2022-01-21T18:48:32.000Z | tests/bsmp/test_commands.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:54:14.000Z | 2022-01-14T14:54:14.000Z | from unittest import TestCase
from siriuspy.pwrsupply.bsmp.constants import ConstPSBSMP
from pydrs.bsmp import CommonPSBSMP, EntitiesPS, SerialInterface
| 28.675676 | 83 | 0.679548 |
c3a3459cc213fe0474ea43964c551e8679004f84 | 1,102 | py | Python | data/hsd11b1_validation/get_smiles_cactus.py | AstraZeneca/jazzy | d06a5848165d2a256b52b75c3365715da0d36c4d | [
"Apache-2.0"
] | null | null | null | data/hsd11b1_validation/get_smiles_cactus.py | AstraZeneca/jazzy | d06a5848165d2a256b52b75c3365715da0d36c4d | [
"Apache-2.0"
] | null | null | null | data/hsd11b1_validation/get_smiles_cactus.py | AstraZeneca/jazzy | d06a5848165d2a256b52b75c3365715da0d36c4d | [
"Apache-2.0"
] | null | null | null | """Converts synonyms into SMILES for the data from Gerber's paper."""
# data/hsd11b1_validation/get_smiles_cactus.py
from io import BytesIO
import pandas as pd
import pycurl
def getsmiles_cactus(name):
"""Converts synonyms into SMILES strings.
A function to use the public cactus (National Institutes of Canc... | 25.627907 | 80 | 0.673321 |
c3a458726fd15d6fab946dbf5224b58ab89013c9 | 4,541 | py | Python | scripts/snippets/eval-clevr-instance-retrieval/eval-referential.py | Glaciohound/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 52 | 2019-12-04T22:26:56.000Z | 2022-03-31T17:04:15.000Z | scripts/snippets/eval-clevr-instance-retrieval/eval-referential.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 6 | 2020-08-25T07:35:14.000Z | 2021-09-09T04:57:09.000Z | scripts/snippets/eval-clevr-instance-retrieval/eval-referential.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 5 | 2020-02-10T07:39:24.000Z | 2021-06-23T02:53:42.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : eval-referential.py
# Author : Chi Han, Jiayuan Mao
# Email : haanchi@gmail.com, maojiayuan@gmail.com
# Date : 30.07.2019
# Last Modified Date: 16.10.2019
# Last Modified By : Chi Han, Jiayuan Mao
#
# This file is... | 28.204969 | 87 | 0.611099 |
c3a45be43c7a59facc3ddab37cf1ef4a7a88388b | 139 | py | Python | plenum/test/view_change/slow_nodes/conftest.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/slow_nodes/conftest.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/slow_nodes/conftest.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | import pytest
| 19.857143 | 62 | 0.791367 |
c3a46fb3802bbb4ed7a5fbfe67fb1da36da3f753 | 1,316 | py | Python | lib/python/cellranger/feature/utils.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | 1 | 2019-03-29T04:05:58.000Z | 2019-03-29T04:05:58.000Z | lib/python/cellranger/feature/utils.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | lib/python/cellranger/feature/utils.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2018 10X Genomics, Inc. All rights reserved.
#
# Utils for feature-barcoding technology
import numpy as np
import os
import json
import tenkit.safe_json as tk_safe_json
| 27.416667 | 86 | 0.680091 |
c3a4e349e19a0d79ac0bc87abdcd29c84fe6b957 | 53,492 | py | Python | A_SHERIFS_CAD/lib/hm_visual/Sampling_analysis.py | fault2shaESCWG/CentralApenninesLabFAULT2RISK | 362cbc8b8dda0c2b5ba1e0ef5c9144fb6acb2ed3 | [
"BSD-3-Clause"
] | null | null | null | A_SHERIFS_CAD/lib/hm_visual/Sampling_analysis.py | fault2shaESCWG/CentralApenninesLabFAULT2RISK | 362cbc8b8dda0c2b5ba1e0ef5c9144fb6acb2ed3 | [
"BSD-3-Clause"
] | null | null | null | A_SHERIFS_CAD/lib/hm_visual/Sampling_analysis.py | fault2shaESCWG/CentralApenninesLabFAULT2RISK | 362cbc8b8dda0c2b5ba1e0ef5c9144fb6acb2ed3 | [
"BSD-3-Clause"
] | 2 | 2020-10-30T16:39:30.000Z | 2020-11-27T17:12:43.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""SHERIFS
Seismic Hazard and Earthquake Rates In Fault Systems
Version 1.0
@author: thomas
"""
import numpy as np
import os
from scipy.stats import chisquare
from scipy.stats import multivariate_normal
import matplotlib.pyplot as plt
| 48.496827 | 170 | 0.496055 |
c3a514fac0e76b7ad6dcfdb91e567e8020f9a5ed | 1,481 | py | Python | tests/rimu_test.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | null | null | null | tests/rimu_test.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | 4 | 2020-03-24T17:59:43.000Z | 2021-06-02T00:48:53.000Z | tests/rimu_test.py | srackham/rimu-py | 3da67cb362b6d34fd363e9f4ce5e0afb019baa4c | [
"MIT"
] | null | null | null | import json
import rimu
from rimu import options
| 32.911111 | 78 | 0.621877 |
c3a64f6638f226e40d6d359d037e5497039713b2 | 1,786 | py | Python | opti.py | ingwarr/tinypack | 489c121bfa16233e34a9f65e01fea982b9bfb12e | [
"Apache-2.0"
] | null | null | null | opti.py | ingwarr/tinypack | 489c121bfa16233e34a9f65e01fea982b9bfb12e | [
"Apache-2.0"
] | null | null | null | opti.py | ingwarr/tinypack | 489c121bfa16233e34a9f65e01fea982b9bfb12e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import urllib2
package_list = ['wget.tcz', 'python-pip.tcz', 'unzip.tcz', 'sudo.tcz',
'mksquashfs.tcz', 'gawk.tcz', 'genisoimage.tcz', 'qemu.tcz',
'pidgin.tcz']
serv_url = "http://distro.ibiblio.org/tinycorelinux/2.x/tcz/"
suffix = ".dep"
UP_SET = set(package_list)... | 29.766667 | 76 | 0.56271 |
c3a9bec8e9fb76b1c6c4d5aba4fc8451334e8ec7 | 4,685 | py | Python | tests/test_04_dxf_high_level_structs/test_411_acds_data.py | jpsantos-mf/ezdxf | 2b542a551b2cfc3c0920a5dbf302ff58cea90fbd | [
"MIT"
] | 1 | 2021-06-05T09:15:15.000Z | 2021-06-05T09:15:15.000Z | tests/test_04_dxf_high_level_structs/test_411_acds_data.py | jpsantos-mf/ezdxf | 2b542a551b2cfc3c0920a5dbf302ff58cea90fbd | [
"MIT"
] | null | null | null | tests/test_04_dxf_high_level_structs/test_411_acds_data.py | jpsantos-mf/ezdxf | 2b542a551b2cfc3c0920a5dbf302ff58cea90fbd | [
"MIT"
] | null | null | null | # Copyright (c) 2014-2019, Manfred Moitzi
# License: MIT License
import pytest
from ezdxf.sections.acdsdata import AcDsDataSection
from ezdxf import DXFKeyError
from ezdxf.lldxf.tags import internal_tag_compiler, group_tags
from ezdxf.lldxf.tagwriter import TagCollector, basic_tags_from_text
ACDSSECTION = """0
S... | 17.416357 | 254 | 0.867449 |
c3ab1277636c41159f2aded4987b40def2cfa389 | 772 | py | Python | test_app.py | WindfallLabs/tkit | 43f9269f42963737c54c822593cd316efbacb0a1 | [
"MIT"
] | null | null | null | test_app.py | WindfallLabs/tkit | 43f9269f42963737c54c822593cd316efbacb0a1 | [
"MIT"
] | null | null | null | test_app.py | WindfallLabs/tkit | 43f9269f42963737c54c822593cd316efbacb0a1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
app_test.py
Tests the tkit.App class.
Author: Garin Wally; Oct 2017
License: MIT
"""
import tkit
if __name__ == "__main__":
# Create app
test_app = tkit.App("Test App", 250, 100)
# Create and customize menubar
menubar = tkit.Menubar()
menubar.add_menu("File")
#tes... | 24.903226 | 67 | 0.664508 |
c3abcd7fbeade8ebed9989404add74f693222a5d | 3,652 | py | Python | services/storage/src/simcore_service_storage/models.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | services/storage/src/simcore_service_storage/models.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | 2 | 2018-05-13T09:10:57.000Z | 2019-03-06T08:10:40.000Z | services/storage/src/simcore_service_storage/models.py | oetiker/osparc-simcore | 00918bf8f000840cc70cc49458780a55858d52ea | [
"MIT"
] | null | null | null | """ Database models
"""
from typing import Tuple
import attr
import sqlalchemy as sa
from .settings import DATCORE_STR, SIMCORE_S3_ID, SIMCORE_S3_STR
#FIXME: W0611:Unused UUID imported from sqlalchemy.dialects.postgresql
#from sqlalchemy.dialects.postgresql import UUID
#FIXME: R0902: Too many instance attributes (... | 27.253731 | 81 | 0.625685 |
c3adcc63188628231b35e310f6dced815f4b0a78 | 13,715 | py | Python | fairtools/utils.py | cmougan/FairShift | a065edb92da7c259a4f402eed3a81e36d65bd01d | [
"MIT"
] | null | null | null | fairtools/utils.py | cmougan/FairShift | a065edb92da7c259a4f402eed3a81e36d65bd01d | [
"MIT"
] | null | null | null | fairtools/utils.py | cmougan/FairShift | a065edb92da7c259a4f402eed3a81e36d65bd01d | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.metrics import confusion_matrix, roc_auc_score
from category_encoders import MEstimateEncoder
import numpy as np
from collections import defaultdict
import os
from sklearn.metrics import roc_au... | 34.373434 | 129 | 0.612468 |
c3ae4ba07955d7042040649cd40e5479799ed431 | 1,929 | py | Python | py/py_0527_randomized_binary_search.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0527_randomized_binary_search.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0527_randomized_binary_search.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 527: Randomized Binary Search
# https://projecteuler.net/problem=527
#
# A secret integer t is selected at random within the range 1 t n. The
# goal is to guess the value of t by making repeated guesses, via integer g.
# After a guess is made, there are three possible outcome... | 48.225 | 79 | 0.708657 |
c3af215854abd4c90a3e4ca46f61b27b360bf47e | 242 | py | Python | NOV_17_2020/quiz2.py | refeed/PAlgoritmaTRPLA | e0c79c1d57bee0869e2344651718e8cf053c035f | [
"MIT"
] | null | null | null | NOV_17_2020/quiz2.py | refeed/PAlgoritmaTRPLA | e0c79c1d57bee0869e2344651718e8cf053c035f | [
"MIT"
] | null | null | null | NOV_17_2020/quiz2.py | refeed/PAlgoritmaTRPLA | e0c79c1d57bee0869e2344651718e8cf053c035f | [
"MIT"
] | null | null | null | '''
No 2. Buatlah fungsi tanpa pengembalian nilai, yaitu fungsi segitigabintang.
Misal, jika dipanggil dg segitigabintang(4), keluarannya :
*
**
***
****
'''
| 18.615385 | 77 | 0.64876 |
c3b1a63ea55b50ea0b3fa5da2920a8938c6a980f | 2,402 | py | Python | simple/game_loop_process.py | loyalgarlic/snakepit-game | 5721f688d78a1e3f5f9ef7b82e8d0b9591373863 | [
"Unlicense"
] | 124 | 2016-06-01T16:02:12.000Z | 2022-03-04T09:40:03.000Z | simple/game_loop_process.py | AqZyy1998/snake-multi-online | b75712dce46314b350c363dda959a1e2dbc278bf | [
"Unlicense"
] | 8 | 2016-07-07T11:23:44.000Z | 2020-03-28T21:27:19.000Z | simple/game_loop_process.py | AqZyy1998/snake-multi-online | b75712dce46314b350c363dda959a1e2dbc278bf | [
"Unlicense"
] | 53 | 2016-06-20T00:30:54.000Z | 2021-11-10T04:57:39.000Z | import asyncio
from aiohttp import web
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
from multiprocessing import Queue, Process
import os
from time import sleep
tick = asyncio.Condition()
asyncio_loop = asyncio.get_event_loop()
executor = ThreadPoolExecutor(max_workers=1)
asyncio_loop.run_... | 27.295455 | 78 | 0.620316 |
c3b2b4a92adbd876be0d44bbd3070bbdf63242b5 | 41,018 | py | Python | elex/api/models.py | adamsimp/elex | fe2987c1fec1476ce98f9a6b8b067b3d95434a26 | [
"Apache-2.0"
] | null | null | null | elex/api/models.py | adamsimp/elex | fe2987c1fec1476ce98f9a6b8b067b3d95434a26 | [
"Apache-2.0"
] | null | null | null | elex/api/models.py | adamsimp/elex | fe2987c1fec1476ce98f9a6b8b067b3d95434a26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import ujson as json
import datetime
from elex.api import maps
from elex.api import utils
from collections import OrderedDict
from dateutil import parser as dateutil_parser
PCT_PRECISION = 6
| 35.269132 | 95 | 0.544493 |
c3b37ff598b9916778a7dde772f21314904e9f2f | 1,308 | py | Python | Python/dataset_info.py | ashwinvis/augieretal_jfm_2019_shallow_water | 88d97c2bd5df0795ca636306c1d795ef1d3a8949 | [
"CC-BY-4.0"
] | 1 | 2019-08-23T11:06:53.000Z | 2019-08-23T11:06:53.000Z | Python/dataset_info.py | ashwinvis/augieretal_jfm_2019_shallow_water | 88d97c2bd5df0795ca636306c1d795ef1d3a8949 | [
"CC-BY-4.0"
] | 1 | 2019-08-23T13:00:31.000Z | 2019-08-23T13:00:31.000Z | Python/dataset_info.py | ashwinvis/augieretal_jfm_2019_shallow_water | 88d97c2bd5df0795ca636306c1d795ef1d3a8949 | [
"CC-BY-4.0"
] | null | null | null | # coding: utf-8
"""Preview dataset content without extracting."""
import os
import itertools
from pathlib import Path
from zipfile import ZipFile
from concurrent.futures import ThreadPoolExecutor as Pool
import hashlib
cwd = Path(__file__).parent / "dataset"
ls = lambda pattern: sorted(cwd.glob(pattern))
if __na... | 24.222222 | 77 | 0.600917 |
c3b3fb64872cf127ceebbdc36e7d35ef4a1b48d5 | 1,472 | py | Python | tests/test_reference.py | momojohobo/wecs | 2129c8095e8fe1bdea38762e393ef637438c9655 | [
"BSD-3-Clause"
] | null | null | null | tests/test_reference.py | momojohobo/wecs | 2129c8095e8fe1bdea38762e393ef637438c9655 | [
"BSD-3-Clause"
] | null | null | null | tests/test_reference.py | momojohobo/wecs | 2129c8095e8fe1bdea38762e393ef637438c9655 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from fixtures import world
from wecs.core import UID
from wecs.core import NoSuchUID
from wecs.core import Component
# This test feels silly... More on it when serialization comes knocking.
| 24.533333 | 74 | 0.741168 |
c3b5d97a6b2a3a566084a5a85a04ad3f65b6b305 | 5,268 | py | Python | vizsgaremek/test_conduit_logged_in.py | femese/conduit | 3ab5cc6a3b37e28d7712c2780f62a8091df2fad5 | [
"MIT"
] | null | null | null | vizsgaremek/test_conduit_logged_in.py | femese/conduit | 3ab5cc6a3b37e28d7712c2780f62a8091df2fad5 | [
"MIT"
] | null | null | null | vizsgaremek/test_conduit_logged_in.py | femese/conduit | 3ab5cc6a3b37e28d7712c2780f62a8091df2fad5 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from pages.home_page import HomePage
from pages.profile_page import ProfilePage
from pages.login_page import LoginPage
from pages.registration_page import RegistrationPage
from p... | 45.808696 | 119 | 0.714503 |
c3b8ec1c8a770c6bded530d6c754e56f0b14dd73 | 2,818 | py | Python | tests/data.py | MathMagique/azure-cost-mon | 0a2a883eb587ee46bd166f8e23ab0b920eee961a | [
"MIT"
] | 65 | 2017-05-22T16:26:37.000Z | 2022-03-11T06:39:51.000Z | tests/data.py | MathMagique/azure-cost-mon | 0a2a883eb587ee46bd166f8e23ab0b920eee961a | [
"MIT"
] | 27 | 2017-05-02T07:48:34.000Z | 2021-03-31T09:53:56.000Z | tests/data.py | MathMagique/azure-cost-mon | 0a2a883eb587ee46bd166f8e23ab0b920eee961a | [
"MIT"
] | 17 | 2017-06-06T21:39:28.000Z | 2021-07-08T14:13:52.000Z | api_output_for_empty_months = """"Usage Data Extract",
"",
"AccountOwnerId","Account Name","ServiceAdministratorId","SubscriptionId","SubscriptionGuid","Subscription Name","Date","Month","Day","Year","Product","Meter ID","Meter Category","Meter Sub-Category","Meter Region","Meter Name","Consumed Quantity","Reso... | 42.059701 | 484 | 0.710078 |
c3b991b53eeef979bb9bae9ccb93646196a11001 | 644 | py | Python | python lab 5 & 6/l5q3.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | 1 | 2022-01-06T00:07:36.000Z | 2022-01-06T00:07:36.000Z | python lab 5 & 6/l5q3.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | null | null | null | python lab 5 & 6/l5q3.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
m1 = int(input("Enter no. of rows : \t"))
n1 = int(input("Enter no. of columns : \t"))
a = []
print("Enter Matrix 1:\n")
for i in range(n1):
row = list(map(int, input().split()))
a.append(row)
print(a)
m2 = int(n1)
print("\n Your Matrix 2 must have",n1,"rows and",m1,"columns \n")
n2 ... | 26.833333 | 66 | 0.534161 |
c3baff370d4baee282c8608fd09e9a208ebac3e2 | 596 | py | Python | ifitwala_ed/hr/doctype/training_feedback/training_feedback.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 13 | 2020-09-02T10:27:57.000Z | 2022-03-11T15:28:46.000Z | ifitwala_ed/hr/doctype/training_feedback/training_feedback.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 43 | 2020-09-02T07:00:42.000Z | 2021-07-05T13:22:58.000Z | ifitwala_ed/hr/doctype/training_feedback/training_feedback.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 6 | 2020-10-19T01:02:18.000Z | 2022-03-11T15:28:47.000Z | # Copyright (c) 2021, ifitwala and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
from frappe import _
| 33.111111 | 77 | 0.746644 |
c3bc07408ee6c6e99e906c09ccb7a3d1f5fbf34d | 9,891 | py | Python | classo/compact_func.py | muellsen/classo | d86ddeb3fe3fd00b955340fbdf9bfd802b64f566 | [
"MIT"
] | 20 | 2020-10-01T08:18:08.000Z | 2021-07-30T09:21:23.000Z | classo/compact_func.py | muellsen/classo | d86ddeb3fe3fd00b955340fbdf9bfd802b64f566 | [
"MIT"
] | 14 | 2020-11-12T14:39:20.000Z | 2021-01-06T15:59:14.000Z | classo/compact_func.py | muellsen/classo | d86ddeb3fe3fd00b955340fbdf9bfd802b64f566 | [
"MIT"
] | 5 | 2020-09-27T20:22:01.000Z | 2021-01-17T18:41:50.000Z | import numpy as np
import numpy.linalg as LA
from .solve_R1 import problem_R1, Classo_R1, pathlasso_R1
from .solve_R2 import problem_R2, Classo_R2, pathlasso_R2
from .solve_R3 import problem_R3, Classo_R3, pathlasso_R3
from .solve_R4 import problem_R4, Classo_R4, pathlasso_R4
from .path_alg import solve_path, pathalgo... | 29.972727 | 185 | 0.522394 |
c3c0682686fc342ab84606c799f8486241e754b8 | 1,547 | py | Python | python/eggroll/core/datastructure/__init__.py | liszekei/eggroll | 6a8cc5e1c9106d2633dc415092151f921f003743 | [
"Apache-2.0"
] | 209 | 2019-08-08T18:38:26.000Z | 2022-03-23T06:20:40.000Z | python/eggroll/core/datastructure/__init__.py | liszekei/eggroll | 6a8cc5e1c9106d2633dc415092151f921f003743 | [
"Apache-2.0"
] | 110 | 2019-08-09T02:50:47.000Z | 2022-03-07T10:30:21.000Z | python/eggroll/core/datastructure/__init__.py | liszekei/eggroll | 6a8cc5e1c9106d2633dc415092151f921f003743 | [
"Apache-2.0"
] | 77 | 2019-08-15T08:11:52.000Z | 2022-03-23T06:19:44.000Z | # Copyright (c) 2019 - now, Eggroll 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 ... | 37.731707 | 131 | 0.771816 |
c3c1914056571f2105ec5f247161279e62320742 | 2,460 | py | Python | install/TexGen/Python/Scripts/cotton.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 14 | 2021-06-17T17:17:07.000Z | 2022-03-26T05:20:20.000Z | install/TexGen/Python/Scripts/cotton.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 6 | 2021-11-01T20:37:39.000Z | 2022-03-11T17:18:53.000Z | install/TexGen/Python/Scripts/cotton.py | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 8 | 2021-07-20T09:24:23.000Z | 2022-02-26T16:32:00.000Z | # =============================================================================
# TexGen: Geometric textile modeller.
# Copyright (C) 2015 Louise Brown
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Found... | 31.948052 | 90 | 0.667073 |
c3c25464c43357bfebaa11a128018e71bd442a63 | 3,201 | py | Python | glove.py | 2014mchidamb/TorchGlove | 8be513cb9c07cad9fb1ea7400f977d7b0ed62ecc | [
"MIT"
] | 96 | 2017-02-27T20:43:08.000Z | 2022-03-14T13:13:27.000Z | glove.py | 2014mchidamb/TorchGlove | 8be513cb9c07cad9fb1ea7400f977d7b0ed62ecc | [
"MIT"
] | 2 | 2017-07-29T01:12:08.000Z | 2021-07-24T16:05:45.000Z | glove.py | 2014mchidamb/TorchGlove | 8be513cb9c07cad9fb1ea7400f977d7b0ed62ecc | [
"MIT"
] | 20 | 2017-02-27T22:11:28.000Z | 2022-03-14T13:13:28.000Z | from nltk.tokenize import word_tokenize
from torch.autograd import Variable
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.optim as optim
# Set parameters
context_size = 3
embed_size = 2
xmax = 2
alpha = 0.75
batch_size = 20
l_rate = 0.001
num_epoch... | 30.198113 | 89 | 0.704155 |
c3c4959c92c9a5cca979b6d9be7d2c7d25629f6c | 971 | py | Python | tests/python/tblink_rpc_smoke.py | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | 1 | 2022-03-30T11:58:00.000Z | 2022-03-30T11:58:00.000Z | tests/python/tblink_rpc_smoke.py | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | null | null | null | tests/python/tblink_rpc_smoke.py | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jul 5, 2021
@author: mballance
'''
from tblink_rpc_testcase import TblinkRpcTestcase
import sys
from tblink_rpc_core.json.json_transport import JsonTransport
import asyncio
from tblink_rpc_core.param_val_map import ParamValMap
from tblink_rpc_core.endpoint import Endpoint | 27.742857 | 61 | 0.661174 |
c3c4fcd9bbcff4febb72c2cd8b9d3f0b7db5b1a1 | 445 | py | Python | backend/utils/management/commands/createsu.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | backend/utils/management/commands/createsu.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | backend/utils/management/commands/createsu.py | stasfilin/rss_portal | e6e9f8d254c80c8a7a40901b3b7dab059f259d55 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
| 31.785714 | 84 | 0.689888 |
c3c622cc0704f66c0ca320f04b393a4ce95e43c7 | 13,856 | py | Python | addition_module/DSDG/DUM/train.py | weihaoxie/FaceX-Zoo | db0b087e4f4d28152e172d6c8d3767a8870733b4 | [
"Apache-2.0"
] | 1 | 2022-02-07T02:03:37.000Z | 2022-02-07T02:03:37.000Z | addition_module/DSDG/DUM/train.py | weihaoxie/FaceX-Zoo | db0b087e4f4d28152e172d6c8d3767a8870733b4 | [
"Apache-2.0"
] | null | null | null | addition_module/DSDG/DUM/train.py | weihaoxie/FaceX-Zoo | db0b087e4f4d28152e172d6c8d3767a8870733b4 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, division
import torch
import matplotlib.pyplot as plt
import argparse, os
import numpy as np
from torch.utils.data import DataLoader
from torchvision import transforms
from models.CDCNs_u import Conv2d_cd, CDCN_u
from Load_OULUNPUcrop_train import Spoofing_train_g, Sep... | 47.77931 | 152 | 0.58444 |
c3c6dc209f06eeee94d2df7708439a9145986364 | 230 | py | Python | examples/test_python_folder_classify.py | TensorPy/TensorPy | d8715a843081c48cc090b7168e144f7db36faff9 | [
"MIT"
] | 45 | 2016-10-20T01:38:31.000Z | 2021-06-05T15:34:03.000Z | examples/test_python_folder_classify.py | mdmintz/TensorPy | d8715a843081c48cc090b7168e144f7db36faff9 | [
"MIT"
] | 9 | 2017-03-25T12:10:11.000Z | 2020-09-25T21:19:47.000Z | examples/test_python_folder_classify.py | mdmintz/TensorPy | d8715a843081c48cc090b7168e144f7db36faff9 | [
"MIT"
] | 33 | 2016-10-22T11:41:34.000Z | 2021-03-18T15:51:10.000Z | from tensorpy import image_base
classifications = image_base.classify_folder_images('./images')
print("*** Displaying Image Classification Results as a list: ***")
for classification in classifications:
print(classification)
| 32.857143 | 67 | 0.791304 |
c3c7e2985a05bdb8275ebaf24c3f0b3132457a34 | 4,201 | py | Python | deep_audio_features/bin/basic_test.py | tyiannak/deep_audio_features | 9cfaf4f12883752ffe7eaaa373c2667893a00e3b | [
"MIT"
] | 40 | 2020-07-24T17:09:44.000Z | 2022-02-26T10:22:12.000Z | deep_audio_features/bin/basic_test.py | tyiannak/deep_audio_features | 9cfaf4f12883752ffe7eaaa373c2667893a00e3b | [
"MIT"
] | 40 | 2020-07-20T17:21:20.000Z | 2022-01-28T23:02:07.000Z | deep_audio_features/bin/basic_test.py | tyiannak/deep_audio_features | 9cfaf4f12883752ffe7eaaa373c2667893a00e3b | [
"MIT"
] | 5 | 2020-08-20T09:19:00.000Z | 2022-01-05T18:29:37.000Z | import argparse
import torch
from torch.utils.data import DataLoader
import sys, os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), "../../"))
from deep_audio_features.dataloading.dataloading import FeatureExtractorDataset
from deep_audio_features.models.cnn import load_cnn
from deep_a... | 35.905983 | 90 | 0.583671 |
c3c861bcdbf10ce7a55f230e67e34074b5d82dda | 3,113 | py | Python | RoboticsLanguage/Tools/Exceptions.py | robotcaresystems/roboticslanguage | 3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed | [
"Apache-2.0"
] | 64 | 2018-05-15T14:36:44.000Z | 2022-03-09T05:00:31.000Z | RoboticsLanguage/Tools/Exceptions.py | robotcaresystems/roboticslanguage | 3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed | [
"Apache-2.0"
] | 9 | 2018-04-17T21:12:27.000Z | 2019-11-08T20:53:32.000Z | RoboticsLanguage/Tools/Exceptions.py | robotcaresystems/roboticslanguage | 3bb7a2bf64ab8e9068889713fbeb18a45cd5a3ed | [
"Apache-2.0"
] | 10 | 2018-03-27T12:09:12.000Z | 2021-02-16T08:07:26.000Z | #
# This is the Robotics Language compiler
#
# ErrorHandling.py: Implements Error Handling functions
#
# Created on: June 22, 2017
# Author: Gabriel A. D. Lopes
# Licence: Apache 2.0
# Copyright: 2014-2017 Robot Care Systems BV, The Hague, The Netherlands. All rights reserved.
#
# Licensed under t... | 26.836207 | 99 | 0.680373 |