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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4b539761e3c4833580192978074b62223577348 | 393 | py | Python | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | 1 | 2020-08-18T22:00:22.000Z | 2020-08-18T22:00:22.000Z | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | null | null | null | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | 1 | 2021-05-10T23:33:34.000Z | 2021-05-10T23:33:34.000Z | from datetime import datetime
import py42.util as util
| 30.230769 | 82 | 0.78117 |
b4bc1366086824966b1d4039b3e9d25839830694 | 849 | py | Python | heartrate.py | mtimkovich/python-fitbit | d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3 | [
"Apache-2.0"
] | null | null | null | heartrate.py | mtimkovich/python-fitbit | d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3 | [
"Apache-2.0"
] | null | null | null | heartrate.py | mtimkovich/python-fitbit | d6b11b31a716e2fcf4617cf31e0fb5b1da2b86e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Script for fetching my min and max heart rate over the past 15 minutes."""
import time
from config import *
from gather_keys_oauth2 import OAuth2Server
if __name__ == '__main__':
server = OAuth2Server(client_id, client_secret)
server.browser_authorize()
fb = server.fitbit
det... | 30.321429 | 100 | 0.63722 |
b4bc63d3ed1e43a273b9651b0e35d83b769d5ccc | 11,891 | py | Python | wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/Dmytro/src/train_triplet.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | import argparse
import collections
import os
import cv2
import numpy as np
import pandas as pd
import pretrainedmodels
import torch
import torch.optim as optim
import torchsummary
from torch.optim import lr_scheduler
from torch.utils.data import DataLoader
from torchvision import datasets, models, transforms
from tqdm... | 34.466667 | 113 | 0.604827 |
b4c02e731c5a64ce720cceaeac6970bdb4974960 | 47,312 | py | Python | tools/armature.py | kayteh/cats-blender-plugin | 7fe6cc67aa754f4885f03d7801ba7745e1a6cf12 | [
"MIT"
] | 3 | 2018-10-12T05:32:16.000Z | 2020-05-16T16:24:34.000Z | tools/armature.py | kayteh/cats-blender-plugin | 7fe6cc67aa754f4885f03d7801ba7745e1a6cf12 | [
"MIT"
] | null | null | null | tools/armature.py | kayteh/cats-blender-plugin | 7fe6cc67aa754f4885f03d7801ba7745e1a6cf12 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 GiveMeAllYourCats
# 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, mer... | 41.611258 | 145 | 0.521622 |
b4c089a9dff52456f55324f47ec3da262a9da232 | 8,392 | py | Python | lentil/fourier.py | andykee/lentil | 28b3e449336ec4a405144b302d7c0d92d308f052 | [
"BSD-3-Clause"
] | 6 | 2020-07-30T19:33:22.000Z | 2022-01-19T19:17:13.000Z | lentil/fourier.py | andykee/lentil | 28b3e449336ec4a405144b302d7c0d92d308f052 | [
"BSD-3-Clause"
] | 42 | 2020-06-19T06:02:10.000Z | 2022-03-05T00:06:46.000Z | lentil/fourier.py | andykee/lentil | 28b3e449336ec4a405144b302d7c0d92d308f052 | [
"BSD-3-Clause"
] | 2 | 2021-08-05T18:27:08.000Z | 2022-01-18T19:42:40.000Z | import functools
import numpy as np
def dft2(f, alpha, npix=None, shift=(0, 0), offset=(0, 0), unitary=True, out=None):
"""Compute the 2-dimensional discrete Fourier Transform.
This function allows independent control over input shape, output shape,
and output sampling by implementing the matrix triple p... | 38.319635 | 164 | 0.636916 |
b4c0a42efb0c3bbdc0fcf9baf9ae460765b29cd0 | 999 | py | Python | setup.py | db48x/flask-digest | 6a3138aef4baa1c1a129eb655c2644bf61387af1 | [
"MIT"
] | 8 | 2015-07-18T10:34:38.000Z | 2019-11-04T01:50:15.000Z | setup.py | db48x/flask-digest | 6a3138aef4baa1c1a129eb655c2644bf61387af1 | [
"MIT"
] | 1 | 2019-07-22T14:08:12.000Z | 2020-05-10T16:36:36.000Z | setup.py | db48x/flask-digest | 6a3138aef4baa1c1a129eb655c2644bf61387af1 | [
"MIT"
] | 3 | 2016-05-02T19:04:34.000Z | 2021-07-01T10:58:31.000Z | from setuptools import setup, find_packages
setup(
name = 'Flask-Digest',
version = '0.2.1',
author = 'Victor Andrade de Almeida',
author_email = 'vct.a.almeida@gmail.com',
url = 'https://github.com/vctandrade/flask-digest',
description = 'A RESTful authentication service for Flask applicatio... | 31.21875 | 76 | 0.618619 |
b4c2782a03a0c1f00a31c56a2d167a1098a5ec9d | 42,143 | py | Python | src/mrnet/stochastic/kmc.py | kamronald/mrnet | 1d0bd6c8ac38deb913a77fce3d6ebc007529993f | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/mrnet/stochastic/kmc.py | kamronald/mrnet | 1d0bd6c8ac38deb913a77fce3d6ebc007529993f | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/mrnet/stochastic/kmc.py | kamronald/mrnet | 1d0bd6c8ac38deb913a77fce3d6ebc007529993f | [
"BSD-3-Clause-LBNL"
] | null | null | null | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import math
import random
import numpy as np
import matplotlib.pyplot as plt
from scipy.constants import N_A
from numba import jit
import copy
__author__ = "Ronald Kam, Evan Spotte-Smith, Xiaowei Xie"
__email_... | 43.312436 | 120 | 0.578008 |
b4c286e145a31477357b61710d97854704934bc6 | 7,816 | py | Python | Testing/Python/TestLinearOrthotropicMaterial.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 3 | 2017-04-04T04:59:22.000Z | 2022-03-13T11:22:40.000Z | Testing/Python/TestLinearOrthotropicMaterial.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 5 | 2017-04-06T19:46:39.000Z | 2019-12-11T23:41:41.000Z | Testing/Python/TestLinearOrthotropicMaterial.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 2 | 2017-04-29T20:54:57.000Z | 2017-04-29T22:28:10.000Z | from __future__ import division
import sys
import numpy
from numpy.core import *
import vtk
from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk
import vtkbone
import traceback
import unittest
if __name__ == '__main__':
unittest.main()
| 51.084967 | 195 | 0.714304 |
b4c29b196e85ffde60d81fb206a0e333c3a97d09 | 3,376 | py | Python | hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | 2 | 2021-07-20T15:09:51.000Z | 2021-11-17T11:05:02.000Z | hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | null | null | null | hailo_model_zoo/datasets/create_kitti_depth_tfrecord.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import argparse
import tensorflow as tf
import numpy as np
from PIL import Image
def _create_tfrecord(labels, images, num_images):
"""Loop over all the images in filenames and create the TFRecord
"""
tfrecords_filename = os.path.join('./', 'kitti_val.tfrecord')
write... | 37.932584 | 97 | 0.616706 |
b4c33445657935893d39d91a0309206fd2cd458e | 391 | py | Python | tellurium/notebooks/__init__.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 73 | 2016-06-13T12:44:28.000Z | 2021-12-31T14:44:39.000Z | tellurium/notebooks/__init__.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 461 | 2015-03-26T00:05:16.000Z | 2022-03-16T17:24:35.000Z | tellurium/notebooks/__init__.py | kirichoi/tellurium | 77cf6e794600587741ebe209644a78051e0db1d5 | [
"Apache-2.0"
] | 30 | 2016-01-18T16:50:54.000Z | 2021-07-06T09:29:53.000Z | """
notebook imports
"""
from __future__ import absolute_import
import warnings
import ipywidgets
import IPython
from .notebooktools import *
from .ontologysearch import OntologySearch
from .parameterslider import ParameterSlider
from .speciessearch import SearchBySpeciesForm
# except ImportError:
# warnings.war... | 17.772727 | 83 | 0.808184 |
b4c33dadc7de5b116b0004a7e5d4f5eac3a9ab0a | 2,297 | py | Python | fashion/warehouse/fashion.core/xform/generateJinja2.py | braddillman/fashion | 2588f3712a72e81f3cb7733e40b6c3751aa5ece2 | [
"Apache-2.0"
] | 1 | 2021-05-23T09:01:39.000Z | 2021-05-23T09:01:39.000Z | fashion/warehouse/fashion.core/xform/generateJinja2.py | braddillman/fashion | 2588f3712a72e81f3cb7733e40b6c3751aa5ece2 | [
"Apache-2.0"
] | null | null | null | fashion/warehouse/fashion.core/xform/generateJinja2.py | braddillman/fashion | 2588f3712a72e81f3cb7733e40b6c3751aa5ece2 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2018-12-21
Copyright (c) 2018 Bradford Dillman
Generate code from a model and a jinja2 template.
'''
import logging
from pathlib import Path
from jinja2 import FileSystemLoader, Environment
from jinja2.exceptions import TemplateNotFound
from munch import munchify
from fashion.mirror import Mirror
... | 33.779412 | 94 | 0.62734 |
b4c387f472a346519c5c008b90b4db7667d0b481 | 622 | py | Python | algorithm/821.py | ChuangbinWang/leetcode | 79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b | [
"MIT"
] | null | null | null | algorithm/821.py | ChuangbinWang/leetcode | 79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b | [
"MIT"
] | null | null | null | algorithm/821.py | ChuangbinWang/leetcode | 79c4ea82dc2f4105ed40ec2f4d3d9ee797c81d3b | [
"MIT"
] | null | null | null | if __name__ == "__main__":
S = "loveleetcode"
C = 'e'
ret = Solution().shortestToChar(S, C)
print(ret) | 27.043478 | 49 | 0.414791 |
b4c44cb204c3826e5c1e00d10a308dfe64d24ddf | 386 | py | Python | _solved/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | 1 | 2022-03-02T17:41:46.000Z | 2022-03-02T17:41:46.000Z | notebooks/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | 1 | 2022-03-14T15:15:53.000Z | 2022-03-14T15:15:53.000Z | notebooks/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | null | null | null | # Optional solution with tidy data representation (providing x and y)
monthly_victim_counts_melt = monthly_victim_counts.reset_index().melt(
id_vars="datetime", var_name="victim_type", value_name="count"
)
sns.relplot(
data=monthly_victim_counts_melt,
x="datetime",
y="count",
hue="victim_type",
... | 27.571429 | 70 | 0.712435 |
b4c4c46e92d0cc32c81af417d80cbffbc1577999 | 488 | py | Python | Grokking-Algorithms/Selection_Sort.py | AzuLiu/Algorithms-by-Python | 4c907725e3c55222642990827ca0aba302ab2a8c | [
"MIT"
] | 1 | 2018-03-17T19:51:46.000Z | 2018-03-17T19:51:46.000Z | Grokking-Algorithms/Selection_Sort.py | AzuLiu/Algorithms-by-Python | 4c907725e3c55222642990827ca0aba302ab2a8c | [
"MIT"
] | null | null | null | Grokking-Algorithms/Selection_Sort.py | AzuLiu/Algorithms-by-Python | 4c907725e3c55222642990827ca0aba302ab2a8c | [
"MIT"
] | null | null | null |
test_arr = [5, 3, 6, 1, 0, 0, 2, 10]
print(selection_sort(test_arr))
| 24.4 | 47 | 0.581967 |
b4c61c8f7d576e30bc60c8fc8b5200df83eec589 | 73 | py | Python | library/source1/mdl/structs/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 199 | 2019-04-02T02:30:58.000Z | 2022-03-30T21:29:49.000Z | library/source1/mdl/structs/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 113 | 2019-03-03T19:36:25.000Z | 2022-03-31T19:44:05.000Z | library/source1/mdl/structs/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 38 | 2019-05-15T16:49:30.000Z | 2022-03-22T03:40:43.000Z | from ....utils.byte_io_mdl import ByteIO
from ....shared.base import Base | 36.5 | 40 | 0.767123 |
b4c6b2e3ba90e086aba9fcd3f0c69b5fe6016f3e | 71 | py | Python | web2py-appliances-master/VideoLibrary/languages/it.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | 4 | 2015-05-28T04:37:28.000Z | 2017-12-03T11:11:27.000Z | languages/it.py | sungchi/feed9 | 25aafce5a47fef6133ac7fef42401cbe62003d81 | [
"MIT"
] | null | null | null | languages/it.py | sungchi/feed9 | 25aafce5a47fef6133ac7fef42401cbe62003d81 | [
"MIT"
] | null | null | null | {
'Hello World':'Salve Mondo',
'Welcome to web2py':'Ciao da wek2py',
}
| 14.2 | 37 | 0.661972 |
b4c7bce749ccc33db70d2dbdefc0de7260a71e74 | 190 | py | Python | rtmBot/izyrtm_prop.py | izyrtm/izyrtm-server | c1bf0a6c3734decb7cff8266706060791479d46b | [
"Apache-2.0"
] | 1 | 2019-10-05T14:41:02.000Z | 2019-10-05T14:41:02.000Z | rtmBot/izyrtm_prop.py | izyrtm/izyrtm-server | c1bf0a6c3734decb7cff8266706060791479d46b | [
"Apache-2.0"
] | null | null | null | rtmBot/izyrtm_prop.py | izyrtm/izyrtm-server | c1bf0a6c3734decb7cff8266706060791479d46b | [
"Apache-2.0"
] | null | null | null | domain='https://monbot.hopto.org'
apm_id='admin'
apm_pw='New1234!'
apm_url='https://monbot.hopto.org:3000'
db_host='monbot.hopto.org'
db_user='izyrtm'
db_pw='new1234!'
db_datadbase='monbot' | 21.111111 | 39 | 0.752632 |
b4c80401758b4e5dc91c46566ed5b6f3d9d37ae4 | 721 | py | Python | get_pos_data.py | chinnadhurai/lm-context-analysis | 826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a | [
"Apache-2.0"
] | 42 | 2018-05-14T15:40:45.000Z | 2022-01-21T13:31:42.000Z | get_pos_data.py | chinnadhurai/lm-context-analysis | 826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a | [
"Apache-2.0"
] | null | null | null | get_pos_data.py | chinnadhurai/lm-context-analysis | 826a4eb96738777c3a5ce4dc4300f5b5fc29ea8a | [
"Apache-2.0"
] | 11 | 2018-05-25T07:03:53.000Z | 2020-03-15T15:52:01.000Z | import sys
if len(sys.argv) < 2:
print('Need the dataset name!')
exit(0)
for split in ['train', 'valid', 'test']:
with open('data/'+sys.argv[1]+'/'+split+'.txt', 'r') as f1, open(
'data/'+sys.argv[1]+'_pos_only/'+split+'.txt', 'r') as f2, open(
'data/'+sys.argv[1]+'_pos/'+split... | 32.772727 | 78 | 0.481276 |
b4c97a273a81770eaaca18c88e6e3fb3e5d16e27 | 1,307 | py | Python | cupy/linalg/norm.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | null | null | null | cupy/linalg/norm.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | null | null | null | cupy/linalg/norm.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | 1 | 2018-11-18T00:36:51.000Z | 2018-11-18T00:36:51.000Z |
def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):
"""Returns the sum along the diagonals of an array.
It computes the sum along the diagonals at ``axis1`` and ``axis2``.
Args:
a (cupy.ndarray): Array to take trace.
offset (int): Index of diagonals. Zero indicates the ma... | 26.673469 | 77 | 0.646519 |
b4cc3ae61af4ef20bae2801cc4f46d491ccbd240 | 2,771 | py | Python | examples/optical_elements/examples_refractive_interface.py | srio/minishadow | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | 1 | 2019-10-30T10:04:43.000Z | 2019-10-30T10:04:43.000Z | examples/optical_elements/examples_refractive_interface.py | srio/minishadow | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | 9 | 2020-09-02T16:13:01.000Z | 2020-09-30T15:09:44.000Z | examples/optical_elements/examples_refractive_interface.py | srio/shadow4 | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | null | null | null |
import numpy
from shadow4.sources.source_geometrical.source_geometrical import SourceGeometrical
from shadow4.beamline.optical_elements.refractors.s4_conic_interface import S4ConicInterface, S4ConicInterfaceElement
from shadow4.tools.graphics import plotxy
from shadow4.syned.element_coordinates import ElementCoord... | 32.6 | 117 | 0.611693 |
b4cc52d37e832307c2b993281014ae5693bca403 | 281 | py | Python | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | import subprocess
from setuptools import setup, find_packages, Extension
setup(
name='transabyss',
version='1.54',
author='transabyss',
license='Free Software License',
packages=['transabyss'],
scripts=['scripts/transabyss', 'scripts/transabyss-merge'],
)
| 23.416667 | 63 | 0.704626 |
b4ccff062a09f477b0fda915a3727e153ff816cf | 252 | py | Python | ffs/__init__.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | ffs/__init__.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | ffs/__init__.py | clbarnes/ffs | bc67692178232d3a77c05cefd1139461cf17882a | [
"MIT"
] | null | null | null | from .classes import Entry, EntryJso
from .spec_version import SPEC_VERSION
from .version import version as __version__ # noqa: F401
from .version import version_tuple as __version_info__ # noqa: F401
__all__ = ["Entry", "EntryJso", "SPEC_VERSION"]
| 36 | 68 | 0.781746 |
b4cd953c3638b37bbb67c63ed55c3b95b4493e2d | 1,816 | py | Python | src/main/gui/core/functions.py | UntactOrder/UntactOrder.PosServer | c05094fe70fadeeb1ba1a8605606a6002730a699 | [
"MIT"
] | null | null | null | src/main/gui/core/functions.py | UntactOrder/UntactOrder.PosServer | c05094fe70fadeeb1ba1a8605606a6002730a699 | [
"MIT"
] | null | null | null | src/main/gui/core/functions.py | UntactOrder/UntactOrder.PosServer | c05094fe70fadeeb1ba1a8605606a6002730a699 | [
"MIT"
] | null | null | null | # ///////////////////////////////////////////////////////////////
#
# BY: WANDERSON M.PIMENTA
# PROJECT MADE WITH: Qt Designer and PySide6
# V: 1.0.0
#
# This project can be used freely for all uses, as long as they maintain the
# respective credits only in the Python scripts, any information in the visual
# interface ... | 34.264151 | 78 | 0.507709 |
b4cdd7ecf5ad286a184af28a0d07e8a49f6ad38d | 9,939 | py | Python | DeepJH/agents/actor_critic_agents/explorer.py | microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates | e085b10156787838a342037e6042af00f5262d5a | [
"MIT"
] | 2 | 2021-12-22T18:18:30.000Z | 2022-02-25T17:57:33.000Z | DeepJH/agents/actor_critic_agents/explorer.py | microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates | e085b10156787838a342037e6042af00f5262d5a | [
"MIT"
] | null | null | null | DeepJH/agents/actor_critic_agents/explorer.py | microsoft/Dr-Jekyll-and-Mr-Hyde-The-Strange-Case-of-Off-Policy-Policy-Updates | e085b10156787838a342037e6042af00f5262d5a | [
"MIT"
] | null | null | null | from multiprocessing.dummy import Value
from agents.Base_Agent import Base_Agent
import copy
import numpy as np
import torch
import torch.nn.functional as F
from torch.optim import Adam
| 46.227907 | 130 | 0.642922 |
b4ce4ceb63dbb6f1fc462df7aa6a104fb75ec08a | 6,079 | py | Python | python/nlusvc/spacy/svc/perform_pos_parse.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/nlusvc/spacy/svc/perform_pos_parse.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/nlusvc/spacy/svc/perform_pos_parse.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pandas as pd
from pandas import DataFrame
from spacy.lang.en import English
from tabulate import tabulate
from base import BaseObject
| 51.516949 | 106 | 0.406317 |
b4cefef49f2369f3f8e23dfe6b70e513930b24a7 | 2,229 | py | Python | causal_world/intervention_actors/visual_actor.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | 2 | 2021-09-22T08:20:12.000Z | 2021-11-16T14:20:45.000Z | causal_world/intervention_actors/visual_actor.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | null | null | null | causal_world/intervention_actors/visual_actor.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | null | null | null | from causal_world.intervention_actors.base_actor import \
BaseInterventionActorPolicy
import numpy as np
| 35.951613 | 87 | 0.599372 |
b4cf1ec1bfea538a87dc03baa5a20d0eebb02913 | 3,259 | py | Python | app/utils.py | AnthonyBloomer/covid-cli | 733ab3678614368dd0010559bec9cbe5ec460670 | [
"MIT"
] | 3 | 2020-03-31T14:28:21.000Z | 2022-03-15T00:28:26.000Z | app/utils.py | AnthonyBloomer/covid-cli | 733ab3678614368dd0010559bec9cbe5ec460670 | [
"MIT"
] | 2 | 2020-11-01T14:01:53.000Z | 2020-11-02T21:32:08.000Z | app/utils.py | AnthonyBloomer/covid-cli | 733ab3678614368dd0010559bec9cbe5ec460670 | [
"MIT"
] | 2 | 2020-11-01T13:59:50.000Z | 2022-03-15T00:28:29.000Z | import csv
import time
from datetime import datetime
from prettytable import PrettyTable
from .api import countries, country, totals, us_states
| 25.069231 | 83 | 0.438785 |
b4d1f22a627dce69c863deac50b2db6d2d2229f8 | 2,879 | py | Python | yann/utils/timer.py | michalwols/yann | b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf | [
"MIT"
] | 32 | 2019-04-13T11:03:38.000Z | 2022-01-24T03:00:56.000Z | yann/utils/timer.py | michalwols/yann | b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf | [
"MIT"
] | 13 | 2019-09-29T00:51:24.000Z | 2021-12-12T15:06:00.000Z | yann/utils/timer.py | michalwols/yann | b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf | [
"MIT"
] | 5 | 2020-01-01T10:27:26.000Z | 2021-12-20T18:33:08.000Z | from collections import OrderedDict, defaultdict
from contextlib import contextmanager
from datetime import datetime
import torch.cuda
from ..viz.plot import plot_timeline
class Timer:
def __init__(self, name=None, log=False):
self.tasks = []
self.name = name
self.log = log
self.active_tasks = {} | 27.160377 | 102 | 0.661688 |
b4d23f41582bbbee77cde2520e06f0addf9b2c8b | 6,731 | py | Python | conans/client/client_cache.py | jbaruch/conan | 263722b5284828c49774ffe18d314b24ee11e178 | [
"MIT"
] | null | null | null | conans/client/client_cache.py | jbaruch/conan | 263722b5284828c49774ffe18d314b24ee11e178 | [
"MIT"
] | null | null | null | conans/client/client_cache.py | jbaruch/conan | 263722b5284828c49774ffe18d314b24ee11e178 | [
"MIT"
] | 1 | 2021-03-03T17:15:46.000Z | 2021-03-03T17:15:46.000Z | import os
from conans.errors import ConanException
from conans.util.files import save, load, normalize
from conans.model.settings import Settings
from conans.client.conf import ConanClientConfigParser, default_client_conf, default_settings_yml
from conans.model.values import Values
from conans.client.detect import det... | 38.462857 | 97 | 0.655326 |
b4d2816f6506147c7e1180e32379768ecd8e932b | 945 | py | Python | tppm/auth.py | timtumturutumtum/TraktPlaybackProgressManager | 6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10 | [
"MIT"
] | 36 | 2017-08-06T13:47:21.000Z | 2022-02-19T03:33:07.000Z | tppm/auth.py | timtumturutumtum/TraktPlaybackProgressManager | 6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10 | [
"MIT"
] | 5 | 2018-07-20T13:01:35.000Z | 2021-12-12T21:03:05.000Z | tppm/auth.py | timtumturutumtum/TraktPlaybackProgressManager | 6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10 | [
"MIT"
] | 3 | 2018-11-20T13:16:37.000Z | 2021-10-13T01:57:55.000Z | # coding: utf-8
""" Trakt Playback Manager """
from __future__ import absolute_import
from __future__ import unicode_literals
import io
import json
import os.path
| 21 | 66 | 0.607407 |
b4d4621e29be6b6315126f0497290617aa1857f6 | 2,810 | py | Python | srt.py | glegoux/srt | 35db0c3cf23853f067326969178e174678e1a73c | [
"MIT"
] | null | null | null | srt.py | glegoux/srt | 35db0c3cf23853f067326969178e174678e1a73c | [
"MIT"
] | null | null | null | srt.py | glegoux/srt | 35db0c3cf23853f067326969178e174678e1a73c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import os.path
import re
from datetime import date, datetime, time, timedelta
# helper
# main
if __name__ == "__main__":
filesrt = sys.argv[1]
if not os.path.isfile(filesrt):
print("ERROR: file isn't exist !")
exit(1)
filesrtnew = filesrt + ".n... | 24.017094 | 66 | 0.504626 |
b4d5ab68cc4a4cd64dc0ee44aa2eb3eb7b21a324 | 1,195 | py | Python | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-06T16:43:25.000Z | 2021-07-06T16:43:25.000Z | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | from typing import Optional
from .glyph import Glyph
| 25.978261 | 97 | 0.632636 |
b4d7710eaf3e98a228d796af98ffd59a89294d80 | 2,739 | py | Python | models/SoftmaxTriplet.py | anonymous1computervision/REID | 6364d7d0e75ebb81fafc765be41b9b3fd434eeae | [
"MIT"
] | 1 | 2020-06-15T07:50:05.000Z | 2020-06-15T07:50:05.000Z | models/SoftmaxTriplet.py | tiancity-NJU/REID | 125a520a9c0b94440a7757e6f3c3c8bf976906ec | [
"MIT"
] | null | null | null | models/SoftmaxTriplet.py | tiancity-NJU/REID | 125a520a9c0b94440a7757e6f3c3c8bf976906ec | [
"MIT"
] | 4 | 2019-04-09T13:10:58.000Z | 2020-03-06T15:22:38.000Z | # encoding: utf-8
import copy
import itertools
import numpy as np
import torch
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
from torch import nn, optim
from .resnet import ResNet
| 33.402439 | 105 | 0.609712 |
b4da893de386e17a0bd776a5eb2220d68a53a7ab | 710 | py | Python | data-exporter/brix/settings.py | dzwiedziu-nkg/credo-api-tools | 37adce8c858d2997b90ce7a1397e68dd281b8249 | [
"MIT"
] | null | null | null | data-exporter/brix/settings.py | dzwiedziu-nkg/credo-api-tools | 37adce8c858d2997b90ce7a1397e68dd281b8249 | [
"MIT"
] | null | null | null | data-exporter/brix/settings.py | dzwiedziu-nkg/credo-api-tools | 37adce8c858d2997b90ce7a1397e68dd281b8249 | [
"MIT"
] | null | null | null | import csv
DIR = 'credo-data-export/detections'
CSV = 'credo-data-export/credocut.tsv'
PLOT = 'credo-data-export/credocut.plot'
JSON = 'credo-data-export/credocut.json'
DEVICES = 'credo-data-export/device_mapping.json'
PNG = 'credo-data-export/png'
CREDOCUT = 10069
DELIMITER='\t'
QUOTECHAR='"'
QUOTING=csv.QUOTE_MINIM... | 17.317073 | 49 | 0.623944 |
b4db052ea80413d8736cb6f07460bcb08f08dc7f | 540 | py | Python | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # The following comments couldn't be translated into the new config version:
#------------------------------------------------
#AlCaReco filtering for phi symmetry calibration:
#------------------------------------------------
#
# Passes events that are coming from the online phi-symmetry stream
#
#
import FWCore.P... | 24.545455 | 76 | 0.633333 |
b4db3df141a7dfd438923171f46933d4cbc0dace | 13,456 | py | Python | {{cookiecutter.project_name}}/core/vertebral.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/core/vertebral.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/core/vertebral.py | rzavarce/cookiecutter-vertebral | 29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421 | [
"MIT"
] | null | null | null | import re
import json
import logging
import hmac
import base64
import hashlib
import jsonschema
from uuid import uuid4
from aiohttp import web
from pathlib import Path
from yaml import safe_load
from http import HTTPStatus
from datetime import datetime, timezone
from {{cookiecutter.project_name}}.routes import setup... | 30.306306 | 80 | 0.56198 |
b4dc6174210355b1a5c016150eeb213a4732eda6 | 669 | py | Python | 2021/day14/1.py | tomhel/AoC_2019 | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | 1 | 2021-12-07T13:18:52.000Z | 2021-12-07T13:18:52.000Z | 2021/day14/1.py | tomhel/AoC | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | null | null | null | 2021/day14/1.py | tomhel/AoC | c76c34235821864bc763f85d43cbcbfb9ed43469 | [
"MIT"
] | null | null | null |
print(pair_insertion())
| 21.580645 | 61 | 0.539611 |
b4ddeba8f2836d4bda03deca00a36f4a1066fd37 | 85 | py | Python | dev/cluster/__init__.py | ustcml/TorchML | c950fcaaaf2eaf4e85237894d5b12c20bd383538 | [
"MIT"
] | null | null | null | dev/cluster/__init__.py | ustcml/TorchML | c950fcaaaf2eaf4e85237894d5b12c20bd383538 | [
"MIT"
] | null | null | null | dev/cluster/__init__.py | ustcml/TorchML | c950fcaaaf2eaf4e85237894d5b12c20bd383538 | [
"MIT"
] | null | null | null | # Author: Jintao Huang
# Email: hjt_study@qq.com
# Date:
from .KMeans import KMeans
| 17 | 26 | 0.729412 |
b4df6ffe444c3bcefc05dd30c22bd546ed8ca77a | 5,000 | py | Python | mandelbrot.py | parkman217/python-mandelbrot | 2e36a6a9a79edf2333644ec1ab89175bae35a991 | [
"MIT"
] | null | null | null | mandelbrot.py | parkman217/python-mandelbrot | 2e36a6a9a79edf2333644ec1ab89175bae35a991 | [
"MIT"
] | null | null | null | mandelbrot.py | parkman217/python-mandelbrot | 2e36a6a9a79edf2333644ec1ab89175bae35a991 | [
"MIT"
] | null | null | null | import pygame, sys, cmath, time, math
if __name__ == '__main__':
run()
| 38.167939 | 135 | 0.6078 |
b4df7dcc36490cc477f25560dc32bb1832158dd7 | 835 | py | Python | example-query.py | ericwhyne/http-ricochet | bd8edb8591047e00a45727457fd09c089f591836 | [
"BSD-3-Clause"
] | 19 | 2015-05-06T16:45:50.000Z | 2020-07-31T10:26:17.000Z | example-query.py | ericwhyne/http-ricochet | bd8edb8591047e00a45727457fd09c089f591836 | [
"BSD-3-Clause"
] | 2 | 2015-05-06T17:00:33.000Z | 2015-07-29T19:51:58.000Z | example-query.py | ericwhyne/http-ricochet | bd8edb8591047e00a45727457fd09c089f591836 | [
"BSD-3-Clause"
] | 3 | 2015-05-06T23:16:00.000Z | 2019-08-13T15:09:44.000Z | #!/usr/bin/python
import urllib2
import random
# A list of places we've deployed ricochet
ricochet_servers = [
"http://127.0.0.1:8080/ricochet/ricochet?url=",
"http://127.0.0.1:8080/ricochet/ricochet?url="
]
# We're identifying ourselves to ourself here, this will show up in the server logs (unless you've disabled th... | 36.304348 | 114 | 0.747305 |
b4e199847b7a19eae86fecd3be217454cfd5183f | 2,054 | py | Python | Week-4/Prob4h.py | jabhij/MITx-6.00.1x-PYTHON | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | 2 | 2016-09-20T16:30:49.000Z | 2016-09-20T16:31:04.000Z | Week-4/Prob4h.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | Week-4/Prob4h.py | jabhij/MITx-6.00.1x-Python- | b9650ec0829796f4f312bd46db16e5e30df605ee | [
"MIT"
] | null | null | null | def compChooseWord(hand, wordList, n):
"""
Given a hand and a wordList, find the word that gives
the maximum value score, and return it.
This word should be calculated by considering all the words
in the wordList.
If no words in the wordList can be made from the hand, return None.
hand: ... | 31.6 | 135 | 0.608569 |
b4e36d17dc528299318c8cd10e36c599f350d3dc | 1,172 | py | Python | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 9 | 2019-07-22T23:54:05.000Z | 2020-11-05T06:26:04.000Z | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 389 | 2019-07-03T04:39:11.000Z | 2022-03-28T14:06:11.000Z | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 1 | 2021-08-30T14:22:04.000Z | 2021-08-30T14:22:04.000Z | import argparse
from typing import Optional
import annofabcli
import annofabcli.common.cli
import annofabcli.filesystem.draw_annotation
import annofabcli.filesystem.filter_annotation
import annofabcli.filesystem.mask_user_info
import annofabcli.filesystem.merge_annotation
import annofabcli.filesystem.write_annotation_... | 33.485714 | 86 | 0.817406 |
b4e4e45949d2b3e2692bb5ce21125c0005114be5 | 780 | py | Python | buildmsi.py | vivainio/pylauncher-import | 584b7127bfcde114a55188f1edafdd768213e51e | [
"BSD-2-Clause"
] | null | null | null | buildmsi.py | vivainio/pylauncher-import | 584b7127bfcde114a55188f1edafdd768213e51e | [
"BSD-2-Clause"
] | null | null | null | buildmsi.py | vivainio/pylauncher-import | 584b7127bfcde114a55188f1edafdd768213e51e | [
"BSD-2-Clause"
] | 1 | 2021-11-09T02:37:35.000Z | 2021-11-09T02:37:35.000Z | import getpass
import os
import sys
VER = '1.0.1.7'
VERSION = 'Version=%s' % VER
MANUFACTURER = 'Manufacturer=Vinay Sajip'
X86 = 'Platform=x86'
X64 = 'Platform=x64'
TOWIN = 'ToWindows'
if __name__ == '__main__':
sys.exit(main()) | 32.5 | 94 | 0.635897 |
b4e639e99b0548c2da81c255e5c8a218300c3b35 | 2,736 | py | Python | frameworks/Python/spyne/gen_benchmark_config.py | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 5,300 | 2015-01-02T08:04:20.000Z | 2022-03-31T10:08:33.000Z | frameworks/Python/spyne/gen_benchmark_config.py | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 3,075 | 2015-01-01T05:11:45.000Z | 2022-03-31T23:56:33.000Z | frameworks/Python/spyne/gen_benchmark_config.py | xsoheilalizadeh/FrameworkBenchmarks | 855527008f7488e4fd508d1e72dfa9953874a2c6 | [
"BSD-3-Clause"
] | 2,151 | 2015-01-02T14:16:09.000Z | 2022-03-30T00:15:26.000Z | #!/usr/bin/env python
from __future__ import print_function
import json
from spyne import AnyUri, Unicode, ComplexModel, M, UnsignedInteger16, Array
from spyne.protocol.json import JsonDocument
from spyne.util.dictdoc import get_object_as_dict
gen_raw_test = lambda: BenchmarkConfigElement(
display_name="... | 25.333333 | 91 | 0.663743 |
b4e6b497acf3eb5e2c7697b0aabc3286bf901091 | 2,557 | py | Python | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Johns Hopkins University
#
# 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 agree... | 36.528571 | 111 | 0.717247 |
b4e8ec3e073f72df115d2e467a43a5e057d8d890 | 35 | py | Python | slack_bolt/response/__init__.py | korymath/bolt-python | 67e0286d756ba92510315d044303f43b03380b52 | [
"MIT"
] | 160 | 2019-09-27T18:02:03.000Z | 2022-03-15T23:46:40.000Z | slack_bolt/response/__init__.py | korymath/bolt-python | 67e0286d756ba92510315d044303f43b03380b52 | [
"MIT"
] | 2 | 2019-10-21T13:30:17.000Z | 2019-10-30T00:09:11.000Z | slack_bolt/response/__init__.py | korymath/bolt-python | 67e0286d756ba92510315d044303f43b03380b52 | [
"MIT"
] | 31 | 2019-10-19T18:10:23.000Z | 2022-02-28T14:13:19.000Z | from .response import BoltResponse
| 17.5 | 34 | 0.857143 |
b4e905f07ef9267e0151e885d12dea14423eaf4d | 1,063 | py | Python | source/miscellaneous/test_get_sub_dir_dates.py | youdar/usesul_functions | 7cca9f8e241f2334f9eb0eab46d40b4c109e8518 | [
"MIT"
] | null | null | null | source/miscellaneous/test_get_sub_dir_dates.py | youdar/usesul_functions | 7cca9f8e241f2334f9eb0eab46d40b4c109e8518 | [
"MIT"
] | null | null | null | source/miscellaneous/test_get_sub_dir_dates.py | youdar/usesul_functions | 7cca9f8e241f2334f9eb0eab46d40b4c109e8518 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from get_sub_dir_dates import get_sub_dir_dates
from get_table_hdfs_location import get_table_hdfs_location
import unittest
import sys
__author__ = 'youval.dar'
def run_selected_tests():
""" Run selected tests
1) List in "tests" the names of the particul... | 27.25641 | 69 | 0.732832 |
b4e98bbdc6436cd505b553e475e6aa9b86055856 | 5,831 | py | Python | torchreid/utils/tools.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 1 | 2020-07-07T19:22:17.000Z | 2020-07-07T19:22:17.000Z | torchreid/utils/tools.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 1 | 2020-06-04T15:22:09.000Z | 2020-06-04T15:22:09.000Z | torchreid/utils/tools.py | opencv/deep-person-reid | ccc305614e968d4b64cc7d4b6664eb42267e6250 | [
"MIT"
] | 4 | 2020-07-02T09:23:11.000Z | 2020-08-21T08:24:13.000Z | # Copyright (c) 2018-2021 Kaiyang Zhou
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2018 davidtvs
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2018 Facebook
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from __future__ import absolute_impor... | 28.583333 | 90 | 0.628709 |
b4ea18107650e6d8144929adf5242acb860cb78c | 198 | py | Python | src/setup.py | Mr-Salme/CipheyCore | f9ce42973d141a6cfd506ec7a423443293d29201 | [
"MIT"
] | null | null | null | src/setup.py | Mr-Salme/CipheyCore | f9ce42973d141a6cfd506ec7a423443293d29201 | [
"MIT"
] | null | null | null | src/setup.py | Mr-Salme/CipheyCore | f9ce42973d141a6cfd506ec7a423443293d29201 | [
"MIT"
] | null | null | null | from setuptools import setup, Extension
# Compile parts of `freq.cpp` into a shared library so we can call it from Python
setup(
#...
ext_modules=[Extension('gof_test', ['freq.cpp'],),],
)
| 24.75 | 81 | 0.686869 |
b4ed182369b3b188f8f312aa3ddca9ef3c96de04 | 36 | py | Python | acousticsim/clustering/__init__.py | JoFrhwld/python-acoustic-similarity | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | [
"MIT"
] | 5 | 2018-01-15T22:06:20.000Z | 2022-02-21T07:02:40.000Z | acousticsim/clustering/__init__.py | JoFrhwld/python-acoustic-similarity | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | [
"MIT"
] | null | null | null | acousticsim/clustering/__init__.py | JoFrhwld/python-acoustic-similarity | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | [
"MIT"
] | 2 | 2019-11-28T17:06:27.000Z | 2019-12-05T22:57:28.000Z | from .network import ClusterNetwork
| 18 | 35 | 0.861111 |
b4ee34ec8c2a387636b7c753e6e3f2ecebd11bb6 | 3,534 | py | Python | hangman/ps3_hangman.py | kriyaaseela/Hangman | 8733ced9f915890b74d53587e67c3b9b36815484 | [
"MIT"
] | 1 | 2016-11-13T20:13:06.000Z | 2016-11-13T20:13:06.000Z | hangman/ps3_hangman.py | kriyaaseela/Hangman | 8733ced9f915890b74d53587e67c3b9b36815484 | [
"MIT"
] | null | null | null | hangman/ps3_hangman.py | kriyaaseela/Hangman | 8733ced9f915890b74d53587e67c3b9b36815484 | [
"MIT"
] | null | null | null | # Hangman game
import random
WORDLIST_FILENAME = "words.txt"
def loadWords():
"""
Returns a list of valid words. Words are strings of lowercase letters.
Depending on the size of the word list, this function may
take a while to finish.
"""
# inFile: file
inFile = open(WORDLIST_FILE... | 28.272 | 106 | 0.631862 |
b4f1abe399d018b436c84a4219cc721810235141 | 9,689 | py | Python | lorawan/user_agent/bridge/agent_bridge.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | 1 | 2020-09-10T14:12:07.000Z | 2020-09-10T14:12:07.000Z | lorawan/user_agent/bridge/agent_bridge.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | null | null | null | lorawan/user_agent/bridge/agent_bridge.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | null | null | null | """
This Module defines the main the main component of the Agent service, a bridge that listens to
UDP messages from the LoRa gateway's Packet Forwarder and encapsulates and sends them using the AMQP
protocol to the Test Application Server (TAS).
"""
#####################################################################... | 42.871681 | 118 | 0.668593 |
b4f29d97ffa1af1c0c768796e62188143ad7c066 | 461 | py | Python | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | 1 | 2021-05-22T08:37:17.000Z | 2021-05-22T08:37:17.000Z | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | null | null | null | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TypeVar, Generic
T = TypeVar("T")
| 30.733333 | 83 | 0.709328 |
b4f37c5b1ce75f2a66c8ca0507bace026f75b5cb | 51 | py | Python | model_zoo/Star/__init__.py | RManLuo/MAMDR | f6dc5b799150103e8f270f329217bf541c44a67d | [
"MIT"
] | 2 | 2022-03-06T10:25:51.000Z | 2022-03-08T02:29:43.000Z | model_zoo/Star/__init__.py | RManLuo/MAMDR | f6dc5b799150103e8f270f329217bf541c44a67d | [
"MIT"
] | 2 | 2022-03-07T23:58:23.000Z | 2022-03-13T10:11:55.000Z | model_zoo/Star/__init__.py | RManLuo/MAMDR | f6dc5b799150103e8f270f329217bf541c44a67d | [
"MIT"
] | 3 | 2022-02-25T02:51:49.000Z | 2022-03-08T07:49:51.000Z | from .star import *
from .partitioned_norm import * | 25.5 | 31 | 0.784314 |
b4f450aa99093525879013746d82ec4c365abcd8 | 3,409 | py | Python | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'Bohdan Mushkevych'
from odm.document import BaseDocument
from odm.fields import StringField, ObjectIdField, ListField, IntegerField
MAX_NUMBER_OF_LOG_ENTRIES = 32
TIMEPERIOD = 'timeperiod'
PROCESS_NAME = 'process_name'
START_OBJ_ID = 'start_obj_id'
END_OBJ_ID = 'end_obj_id'
STATE = 'state'
RELATED_UNIT_... | 34.09 | 116 | 0.7445 |
b4f6a6979f60206415ac42ae13093ab17a970251 | 27,291 | py | Python | shop/tests.py | okcashpro/okshop | f18600537eca12a0fe7dd52ed5453ed65c2ecacc | [
"MIT"
] | 3 | 2017-01-18T14:21:41.000Z | 2021-10-29T23:47:31.000Z | shop/tests.py | okcashpro/okshop | f18600537eca12a0fe7dd52ed5453ed65c2ecacc | [
"MIT"
] | 1 | 2017-05-16T20:24:01.000Z | 2017-05-17T21:28:27.000Z | shop/tests.py | okcashpro/okshop | f18600537eca12a0fe7dd52ed5453ed65c2ecacc | [
"MIT"
] | 1 | 2021-10-29T23:47:24.000Z | 2021-10-29T23:47:24.000Z | from django.test import TestCase, Client
from django.contrib.auth.models import User
from .models import *
from django.urls import reverse
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.files.uploadedfile import InMemoryUploadedFile
from io import BytesIO
import pyotp
import json
# Cre... | 34.458333 | 79 | 0.548972 |
b4f72a2176a65a36df8b60e82c572b124b0a8a0e | 1,965 | py | Python | h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 1 | 2022-03-15T06:08:14.000Z | 2022-03-15T06:08:14.000Z | h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 58 | 2021-10-01T12:43:37.000Z | 2021-12-08T22:58:43.000Z | h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.rulefit import H2ORuleFitEstimator
if __name__ == "__main__":
pyunit_utils.standalone_test(football)
else:
football()
| 37.075472 | 144 | 0.683461 |
b4f763f3755acf4717fd0387a861a69a686dff19 | 1,140 | py | Python | Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py | klimpie94/Python-training | 7af210126cfe2e9386a8f22075ea0d7eff80daac | [
"RSA-MD"
] | null | null | null | Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py | klimpie94/Python-training | 7af210126cfe2e9386a8f22075ea0d7eff80daac | [
"RSA-MD"
] | 1 | 2021-12-13T20:33:28.000Z | 2021-12-13T20:33:28.000Z | Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py | klimpie94/Python-training | 7af210126cfe2e9386a8f22075ea0d7eff80daac | [
"RSA-MD"
] | 9 | 2020-02-05T10:24:12.000Z | 2020-02-10T13:08:50.000Z | import pandas as pd
import os
from pathlib import Path
import warnings
warnings.filterwarnings('ignore')
DATA_PATH = os.path.join(
os.fspath(Path(__file__).parents[1]),
"data")
IMDB_DATA_PATH = os.path.join(DATA_PATH, "imdb_category.csv")
EXPORT_PATH = os.path.join(DATA_PATH, "imdb_category_binary.csv")
ca... | 30.810811 | 71 | 0.666667 |
b4f7eeae12122017454859c15609e21806fad1d5 | 3,003 | py | Python | imgtools/modules/segmentation.py | bhklab/med-imagetools | 0cce0ee6666d052d4f76a1b6dc5d088392d309f4 | [
"Apache-2.0"
] | 9 | 2021-12-14T19:53:57.000Z | 2022-01-18T18:45:26.000Z | imgtools/modules/segmentation.py | bhklab/med-imagetools | 0cce0ee6666d052d4f76a1b6dc5d088392d309f4 | [
"Apache-2.0"
] | 4 | 2021-12-05T02:54:00.000Z | 2021-12-10T20:32:20.000Z | imgtools/modules/segmentation.py | bhklab/imgtools | 0f0414533cb6667b68aa48541feb376226fd5515 | [
"Apache-2.0"
] | 1 | 2021-07-30T20:22:46.000Z | 2021-07-30T20:22:46.000Z | from functools import wraps
import numpy as np
import SimpleITK as sitk
from ..utils import array_to_image, image_to_array
| 35.75 | 99 | 0.628705 |
b4f93b9450eed02e00244a8c824d6cbeda2da9f1 | 1,432 | py | Python | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import division
"""
critical properties of diffBragg objects which should be logged for reproducibility
"""
# TODO : implement a savestate and getstate for these objects
# attrs of diffBragg() instances
DIFFBRAGG_ATTRS = [
'Amatrix',
'Bmatrix',
'Ncells_abc',
'Ncells_abc_aniso',
'Ncells_def',
'N... | 18.842105 | 83 | 0.74162 |
b4fb9b530079d2e7e3c6f10c76a9f743b47d6a04 | 1,571 | py | Python | tests/data/fields/field_test.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 11,433 | 2017-06-27T03:08:46.000Z | 2022-03-31T18:14:33.000Z | tests/data/fields/field_test.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 4,006 | 2017-06-26T21:45:43.000Z | 2022-03-31T02:11:10.000Z | tests/data/fields/field_test.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 2,560 | 2017-06-26T21:16:53.000Z | 2022-03-30T07:55:46.000Z | from allennlp.data.fields import Field
| 23.447761 | 61 | 0.583705 |
b4fcfbbaf3fe162cf04a9a20b000b200e3971f97 | 1,870 | py | Python | LMToolKit_Setup.py | Meadowlion/Float | fb93866cdc6061943fbec32c0aff78dcbc7df9fb | [
"BSD-3-Clause"
] | 1 | 2021-10-21T03:53:34.000Z | 2021-10-21T03:53:34.000Z | LMToolKit_Setup.py | Meadowlion/LM_ToolKit | fb93866cdc6061943fbec32c0aff78dcbc7df9fb | [
"BSD-3-Clause"
] | null | null | null | LMToolKit_Setup.py | Meadowlion/LM_ToolKit | fb93866cdc6061943fbec32c0aff78dcbc7df9fb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 22 10:19:44 2021
@author: sb069
"""
import os
import errno
from os.path import expanduser
os.system("sudo apt-get update")
os.system("sudo apt install nvidia-cuda-toolkit")
os.system("sudo apt install python3.8")
os.system("conda install flye")
tr... | 27.101449 | 146 | 0.69893 |
b4fd927462dd602edb7c0fa6683dedd4a121b0e1 | 1,006 | py | Python | oxasl_ve/wrappers/veaslc.py | ibme-qubic/oxasl_ve | 51f0701573876042a7fc5f1b91c5085600c6e3c3 | [
"Apache-2.0"
] | 1 | 2021-01-20T12:06:31.000Z | 2021-01-20T12:06:31.000Z | oxasl_ve/wrappers/veaslc.py | physimals/oxasl_ve | f56ea316fddf8b59216a5df7a557bf0c3ea6972b | [
"Apache-2.0"
] | null | null | null | oxasl_ve/wrappers/veaslc.py | physimals/oxasl_ve | f56ea316fddf8b59216a5df7a557bf0c3ea6972b | [
"Apache-2.0"
] | null | null | null | """
Wrapper for epi_reg command
"""
import fsl.utils.assertions as asrt
from fsl.wrappers import wrapperutils as wutils
| 27.189189 | 86 | 0.595427 |
b4fe009337e782310f135a773be727eb38fed3e9 | 3,455 | py | Python | leo/modes/kivy.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 1,550 | 2015-01-14T16:30:37.000Z | 2022-03-31T08:55:58.000Z | leo/modes/kivy.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 2,009 | 2015-01-13T16:28:52.000Z | 2022-03-31T18:21:48.000Z | leo/modes/kivy.py | ATikhonov2/leo-editor | 225aac990a9b2804aaa9dea29574d6e072e30474 | [
"MIT"
] | 200 | 2015-01-05T15:07:41.000Z | 2022-03-07T17:05:01.000Z | # Leo colorizer control file for kivy mode.
# This file is in the public domain.
# Properties for kivy mode.
properties = {
"ignoreWhitespace": "false",
"lineComment": "#",
}
# Attributes dict for kivy_main ruleset.
kivy_main_attributes_dict = {
"default": "null",
"digit_re": "",
"esc... | 25.218978 | 75 | 0.546165 |
3703676a01606399f8153e980d2ac1891a392183 | 10,642 | py | Python | src/predictor.py | prem2017/domain-adaptation-image | 77d5dd85b5895f16c5fc2e7ddfad257367f78ad1 | [
"Apache-2.0"
] | 1 | 2020-09-01T21:48:16.000Z | 2020-09-01T21:48:16.000Z | src/predictor.py | prem2017/domain-adaptation-image | 77d5dd85b5895f16c5fc2e7ddfad257367f78ad1 | [
"Apache-2.0"
] | 4 | 2021-06-08T22:23:07.000Z | 2022-03-12T00:47:33.000Z | src/predictor.py | prem2017/domain-adaptation-image | 77d5dd85b5895f16c5fc2e7ddfad257367f78ad1 | [
"Apache-2.0"
] | 1 | 2021-09-08T05:01:52.000Z | 2021-09-08T05:01:52.000Z | # -*- coding: utf-8 -*-
# Prem Prakash
# Predictor module
import os
import sys
import pdb
from copy import deepcopy
import argparse
import onnx
import onnxruntime as ort
import math
from matplotlib.pyplot import imshow
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch.utils.data... | 29.236264 | 162 | 0.682391 |
370445cf9999e96692fc51abf088c2cec9bdb63b | 4,004 | py | Python | tests/ut/python/pipeline/parse/test_create_obj.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | 2 | 2020-04-28T03:49:10.000Z | 2020-04-28T03:49:13.000Z | tests/ut/python/pipeline/parse/test_create_obj.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/pipeline/parse/test_create_obj.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.105263 | 78 | 0.67008 |
37058b29e2d2eb0d2cb3136d55f0713da2693a83 | 643 | py | Python | hw_asr/augmentations/spectrogram_augmentations/SpecAug.py | isdevnull/asr_hw | 9650506b80d4e38574b63390f79a6f01786b7d18 | [
"MIT"
] | null | null | null | hw_asr/augmentations/spectrogram_augmentations/SpecAug.py | isdevnull/asr_hw | 9650506b80d4e38574b63390f79a6f01786b7d18 | [
"MIT"
] | null | null | null | hw_asr/augmentations/spectrogram_augmentations/SpecAug.py | isdevnull/asr_hw | 9650506b80d4e38574b63390f79a6f01786b7d18 | [
"MIT"
] | null | null | null | import torchaudio.transforms
from torch import nn
from hw_asr.augmentations.base import AugmentationBase
from hw_asr.augmentations.random_apply import RandomApply
| 32.15 | 85 | 0.720062 |
3705c276078ec2e2c7ef6800121e1f3622baddd8 | 1,982 | py | Python | acrawler/settings.py | s723138643/acrawler | ad21514fc1fe5a531b33c042ff2deb6bf566e902 | [
"MIT"
] | null | null | null | acrawler/settings.py | s723138643/acrawler | ad21514fc1fe5a531b33c042ff2deb6bf566e902 | [
"MIT"
] | null | null | null | acrawler/settings.py | s723138643/acrawler | ad21514fc1fe5a531b33c042ff2deb6bf566e902 | [
"MIT"
] | null | null | null | import json
import pathlib
DEFAULT_CONFIG = {
# class
'EngineClass': 'acrawler.engine.Engine',
'SchedulerClass': 'acrawler.scheduler.Scheduler',
'FilterClass': 'acrawler.filterlib.memfilter.MemFilter',
'QueueClass': 'acrawler.queuelib.sqlitequeue.PrioritySQLiteQueue',
# ... | 28.314286 | 74 | 0.510091 |
37061e0c420d7bf2c869932af34f099cf61b5c43 | 13,658 | py | Python | plots/plots/weight_distribution.py | pps-lab/rofl-project-code | eaa9f1aeca3a40ca939c0f723af0186af0f95f9b | [
"MIT"
] | 12 | 2021-07-08T13:27:54.000Z | 2021-12-25T14:53:26.000Z | plots/plots/weight_distribution.py | pps-lab/rofl-project-code | eaa9f1aeca3a40ca939c0f723af0186af0f95f9b | [
"MIT"
] | 1 | 2021-10-15T09:48:18.000Z | 2022-03-31T12:41:15.000Z | plots/plots/weight_distribution.py | pps-lab/rofl-project-code | eaa9f1aeca3a40ca939c0f723af0186af0f95f9b | [
"MIT"
] | 1 | 2021-11-24T19:21:38.000Z | 2021-11-24T19:21:38.000Z | from functools import reduce
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
import yaml
from matplotlib import cm
import pymongo
import matplotlib
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib.lines import Line2D
from matplotlib.patches import Rectangle
from co... | 38.691218 | 167 | 0.568458 |
37064e9b1f6c4c2026274a61dc624c50744caad0 | 45,476 | py | Python | analysis/Mass Action/DP/22Apro.py | tee-lab/PercolationModels | 687cb8189fafeb2e0d205ea4d8a660bd953bd7b1 | [
"BSD-3-Clause"
] | null | null | null | analysis/Mass Action/DP/22Apro.py | tee-lab/PercolationModels | 687cb8189fafeb2e0d205ea4d8a660bd953bd7b1 | [
"BSD-3-Clause"
] | null | null | null | analysis/Mass Action/DP/22Apro.py | tee-lab/PercolationModels | 687cb8189fafeb2e0d205ea4d8a660bd953bd7b1 | [
"BSD-3-Clause"
] | 1 | 2021-09-11T17:25:25.000Z | 2021-09-11T17:25:25.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 23 17:18:39 2021
@author: Koustav
"""
import os
import glob
import matplotlib.pyplot as plt
import seaborn as sea
import numpy as np
import pandas as pan
import math
import collections
import matplotlib.ticker as mtick
from mpl_toolkits import mplot3d
from matplotlib.col... | 45.430569 | 207 | 0.473437 |
3708da2d53e985416aa3068357d2ebc357bc0355 | 7,558 | py | Python | loom/group.py | probcomp/loom | 825188eae76e7106a6959f6a18312b0aa3338f83 | [
"BSD-3-Clause"
] | 2 | 2019-10-25T17:57:22.000Z | 2020-07-14T02:37:34.000Z | loom/group.py | probcomp/loom | 825188eae76e7106a6959f6a18312b0aa3338f83 | [
"BSD-3-Clause"
] | 1 | 2019-12-13T03:08:05.000Z | 2019-12-13T03:08:05.000Z | loom/group.py | probcomp/loom | 825188eae76e7106a6959f6a18312b0aa3338f83 | [
"BSD-3-Clause"
] | 1 | 2020-06-22T11:23:43.000Z | 2020-06-22T11:23:43.000Z | # Copyright (c) 2014, Salesforce.com, Inc. All rights reserved.
# Copyright (c) 2015, Google, Inc.
#
# 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 copyright
... | 36.162679 | 78 | 0.653744 |
37098bda53f4717ae975e2ce1e8c1a6a34894efe | 1,948 | py | Python | src/link_baseline.py | tahleen-rahman/linkability_stepcount | ed873782453d391865ad15e7c2d538058f5db88a | [
"Apache-2.0"
] | null | null | null | src/link_baseline.py | tahleen-rahman/linkability_stepcount | ed873782453d391865ad15e7c2d538058f5db88a | [
"Apache-2.0"
] | 7 | 2021-04-30T21:20:19.000Z | 2022-03-12T00:35:33.000Z | src/link_baseline.py | tahleen-rahman/linkability_stepcount | ed873782453d391865ad15e7c2d538058f5db88a | [
"Apache-2.0"
] | null | null | null | # Created by rahman at 16:54 2019-10-20 using PyCharm
import os
import sys
from attacks.Linkability import Link
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LinearRegression
from attacks import BinaryDNN
from sklearn import svm
from link_utils import linkability_bl
expdict =... | 30.920635 | 119 | 0.603696 |
3709b0c7de5e9e589c3abceef31dccfb79fe0137 | 28,849 | py | Python | main.py | chelyabinsk/FootBallDashboard | 81075cf43eb5ad4ae6fd26181ef1031df6f412f0 | [
"MIT"
] | null | null | null | main.py | chelyabinsk/FootBallDashboard | 81075cf43eb5ad4ae6fd26181ef1031df6f412f0 | [
"MIT"
] | null | null | null | main.py | chelyabinsk/FootBallDashboard | 81075cf43eb5ad4ae6fd26181ef1031df6f412f0 | [
"MIT"
] | null | null | null | import streamlit as st
import numpy as np
import pandas as pd
import requests
import re
import altair as alt
# Find all available data
spreadsheets = find_all_spreadsheets()
data_state = st.text('')
data_state.text('Pre-processing')
big_df = load_all_data(spreadsheets)
data_state.text('')
season = st.selectbox(
... | 46.232372 | 173 | 0.565115 |
370a15691cec20cb2cd5ab37aca120000fa1eaf8 | 40,610 | py | Python | v2.5.7/toontown/episodes/MoneybinTakeover.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v2.5.7/toontown/episodes/MoneybinTakeover.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v2.5.7/toontown/episodes/MoneybinTakeover.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from toontown.avatar import ToontownAvatarUtils
from toontown.avatar.CogExtras import *
PROPS = [
(
5, 'modules', 'suit_walls', (0.0, 342.4, 0.0), (-10.5, 0.0, 0.0), (54.6, 54.6, 54.6), 'wall_suit_build5', None,
None),
(
5, 'modules', 'suit_walls', (53.686, 332.45, 0.0), (-16.5, 0.0, 0.0), (54.6, 54.6, 54.6), '... | 106.868421 | 1,168 | 0.264664 |
370a96e1434086705b394298ea7d87edaa65f00a | 4,309 | py | Python | easyci/app/easyCI/tasksPool.py | 9OMShitikov/anytask | 71354543f467f6c824dfb194bf48ee76c391ff53 | [
"MIT"
] | null | null | null | easyci/app/easyCI/tasksPool.py | 9OMShitikov/anytask | 71354543f467f6c824dfb194bf48ee76c391ff53 | [
"MIT"
] | null | null | null | easyci/app/easyCI/tasksPool.py | 9OMShitikov/anytask | 71354543f467f6c824dfb194bf48ee76c391ff53 | [
"MIT"
] | null | null | null | import json
import requests
import tempfile
import shutil
import subprocess
import os
import logging
import urllib.request
from multiprocessing import Pool
import app.easyCI.docker as docker
from contextlib import contextmanager
LOG = logging.getLogger(__name__)
CONFIG = "config.json"
PASSWORDS = "passwords.json"
MAX... | 29.312925 | 116 | 0.601764 |
370bb514404727469781e53bb089355e3b933806 | 1,201 | py | Python | polling_stations/apps/data_collection/management/commands/import_monmouthshire.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_monmouthshire.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_monmouthshire.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.gis.geos import Point
from data_collection.management.commands import BaseShpStationsShpDistrictsImporter
| 32.459459 | 83 | 0.613655 |
370d8cad82f39f9f6c319866224a8b6a5d29e6e7 | 147 | py | Python | compiler/astnodes/typeannotation.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 3 | 2020-05-30T16:59:33.000Z | 2020-05-31T00:28:45.000Z | compiler/astnodes/typeannotation.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 1 | 2020-05-30T17:57:11.000Z | 2020-05-30T20:44:53.000Z | compiler/astnodes/typeannotation.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | null | null | null | from .node import Node
| 18.375 | 51 | 0.673469 |
370f39af0bff09b2f1ff0353894b6e2f8d8e79a5 | 2,821 | py | Python | lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py | proxium/script.module.lambdascrapers | f96ad4c7c44c011c9d0007a83edde8c4797e0e2f | [
"Beerware"
] | 11 | 2018-12-21T22:52:37.000Z | 2021-09-02T02:13:50.000Z | lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py | proxium/script.module.lambdascrapers | f96ad4c7c44c011c9d0007a83edde8c4797e0e2f | [
"Beerware"
] | null | null | null | lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py | proxium/script.module.lambdascrapers | f96ad4c7c44c011c9d0007a83edde8c4797e0e2f | [
"Beerware"
] | 1 | 2020-02-01T19:52:36.000Z | 2020-02-01T19:52:36.000Z | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | 33.987952 | 149 | 0.499468 |
370fc257e4ad1d9ff8e001439c3aa8ae3d6aba1a | 808 | py | Python | lab-sessions/lab-3/ex3_gray_scale.py | DatacollectorVN/BME-Bio-Image-Processing-class | bc750f190398a1c29e2a8cd8092ced2072ce02e9 | [
"MIT"
] | null | null | null | lab-sessions/lab-3/ex3_gray_scale.py | DatacollectorVN/BME-Bio-Image-Processing-class | bc750f190398a1c29e2a8cd8092ced2072ce02e9 | [
"MIT"
] | null | null | null | lab-sessions/lab-3/ex3_gray_scale.py | DatacollectorVN/BME-Bio-Image-Processing-class | bc750f190398a1c29e2a8cd8092ced2072ce02e9 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--imagepath", dest = "image_file_path", type = str,
default = None, help = "Image file path")
args = parser.parse_args()
image_file_path = args.image_... | 27.862069 | 76 | 0.632426 |
371029d250aeabea72732a867201c7c53e2e6057 | 862 | py | Python | project/tests/GUI/tools.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 2 | 2017-09-18T11:04:38.000Z | 2017-09-25T17:23:21.000Z | project/tests/GUI/tools.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 26 | 2017-09-20T09:11:10.000Z | 2017-12-11T12:21:56.000Z | project/tests/GUI/tools.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | null | null | null | from functools import partial
from kivy.clock import Clock
| 24.628571 | 78 | 0.701856 |
37108a3012ad4523c07b518dd9e47f3e03dc8e23 | 1,726 | py | Python | login_spider.py | ERUIHNIYHBKBNF/Digit-Recognition | c2334222da4b357836e7a0d53de9eccabc587113 | [
"MIT"
] | null | null | null | login_spider.py | ERUIHNIYHBKBNF/Digit-Recognition | c2334222da4b357836e7a0d53de9eccabc587113 | [
"MIT"
] | null | null | null | login_spider.py | ERUIHNIYHBKBNF/Digit-Recognition | c2334222da4b357836e7a0d53de9eccabc587113 | [
"MIT"
] | null | null | null | import requests as rq
import cv2
import time
import os
from picdiv import divide
from knn import getVeryValue
from utils import showimg
url = 'http://222.194.10.249/inc/validatecode.asp'
res = rq.get(url)
#
fileName = str(int(time.time())) + '.jpg'
# rgbqwq
with open(fileName, 'wb') as f:
f.write(res.content)
img =... | 33.192308 | 231 | 0.70336 |
3710f1bb3487fa331fc10580553cc5631bd8c85e | 808 | py | Python | auctions/migrations/0020_bids_bidder_alter_list_date.py | AncientSoup/cs50w_commerce | fb4cb8a47279e562f1d4a859abbf44ea5a7d9891 | [
"MIT"
] | 1 | 2022-01-25T10:40:44.000Z | 2022-01-25T10:40:44.000Z | auctions/migrations/0020_bids_bidder_alter_list_date.py | AncientSoup/cs50w_commerce | fb4cb8a47279e562f1d4a859abbf44ea5a7d9891 | [
"MIT"
] | null | null | null | auctions/migrations/0020_bids_bidder_alter_list_date.py | AncientSoup/cs50w_commerce | fb4cb8a47279e562f1d4a859abbf44ea5a7d9891 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-12 11:07
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
| 28.857143 | 133 | 0.653465 |
37110cd9f3d19b020331f8f0ff331ab009b270d9 | 1,896 | py | Python | tests/test_baseline.py | pleiszenburg/pyIGRF | 2572afd40650ef7f10ba1804aaa4c7f870ef704e | [
"MIT"
] | 1 | 2022-02-13T07:30:05.000Z | 2022-02-13T07:30:05.000Z | tests/test_baseline.py | pleiszenburg/pyCRGI | 3a1f394e2df6702432b29d2a7edded4d63cb14da | [
"MIT"
] | null | null | null | tests/test_baseline.py | pleiszenburg/pyCRGI | 3a1f394e2df6702432b29d2a7edded4d63cb14da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from math import isclose
import pytest
from pyCRGI.pure import (
get_coeffs as pure_get_coeffs,
get_value as pure_get_value,
get_variation as pure_get_variation,
)
from pyCRGI.jited import (
get_coeffs as jited_get_coeffs,
get_value as jited_get_value,
get_variation as... | 22.571429 | 85 | 0.675105 |
371263ea2ae9c13774481f8ebcb487baf4684615 | 1,188 | py | Python | mum/update/__init__.py | mapgears/maritime-update-manager | 5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7 | [
"MIT"
] | null | null | null | mum/update/__init__.py | mapgears/maritime-update-manager | 5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7 | [
"MIT"
] | 1 | 2022-01-13T01:08:28.000Z | 2022-01-13T01:08:28.000Z | mum/update/__init__.py | mapgears/maritime-update-manager | 5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7 | [
"MIT"
] | null | null | null | """Update maritime data using update modules"""
from __future__ import annotations
from argparse import ArgumentParser
import base64
import hashlib
import os
import shelve
import toml
from .modules import get_update_module
| 31.263158 | 69 | 0.676768 |
3712e528ebc57eaa9774a8a00d9c212c77e54ca6 | 4,627 | py | Python | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 6 | 2020-10-07T13:09:38.000Z | 2021-01-16T17:16:51.000Z | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 27 | 2020-10-09T09:14:23.000Z | 2021-01-22T07:16:43.000Z | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 14 | 2020-10-07T14:25:59.000Z | 2021-02-21T16:54:37.000Z | """
Information on the Rozier Cipher can be found at:
https://www.dcode.fr/rozier-cipher
ROZIER.py
Written by: MrLukeKR
Updated: 16/10/2020
"""
# The Rozier cipher needs a string based key, which can be constant for ease
# or changed for each message, for better security
constant_key = "DCODE"
def encrypt(plaintext:... | 40.234783 | 80 | 0.685758 |
37142a2768a71aca4c786f5f03f214574e278dfd | 3,324 | py | Python | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | from seamless.highlevel import Context
from pprint import pprint
ctx = Context()
ctx.a = 12
ctx.compute()
print(ctx.a.value)
print(ctx.a.schema) # None
ctx.transform = triple_it
ctx.transform.debug.direct_print = True
ctx.transform.hash_pattern = {"*": "#"}
ctx.transform.debug.direct_print = True
ctx.transform.a = 1... | 30.777778 | 134 | 0.73225 |
3714523a9df68433b2793b57885742031aadd9a3 | 58 | py | Python | kanon_api/units.py | legau/kanon-api | bae8fcba11caefa2f6715247852f853bb52fb9a6 | [
"BSD-3-Clause"
] | null | null | null | kanon_api/units.py | legau/kanon-api | bae8fcba11caefa2f6715247852f853bb52fb9a6 | [
"BSD-3-Clause"
] | 80 | 2021-04-21T16:02:03.000Z | 2022-03-28T00:48:58.000Z | kanon_api/units.py | legau/kanon-api | bae8fcba11caefa2f6715247852f853bb52fb9a6 | [
"BSD-3-Clause"
] | null | null | null | from astropy import units as u
degree: u.Unit = u.degree
| 14.5 | 30 | 0.741379 |
37156272e00bd374fa326b7f03c221d972948d2a | 2,374 | py | Python | IMLearn/utils/utils.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | IMLearn/utils/utils.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | IMLearn/utils/utils.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | from typing import Tuple
import numpy as np
import pandas as pd
import time
def split_train_test(X: pd.DataFrame, y: pd.Series, train_proportion: float = .75) \
-> Tuple[pd.DataFrame, pd.Series, pd.DataFrame, pd.Series]:
"""
Randomly split given sample to a training- and testing sample
Parameters... | 29.308642 | 119 | 0.641112 |
37164ce047902fb36b1255b04be946281d2676f6 | 2,583 | py | Python | review/migrations/0004_auto_20170315_0930.py | kgdunn/peer-review-system | 1fd5ac9d0f84d7637a86682e9e5fc068ac404afd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | review/migrations/0004_auto_20170315_0930.py | kgdunn/peer-review-system | 1fd5ac9d0f84d7637a86682e9e5fc068ac404afd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | review/migrations/0004_auto_20170315_0930.py | kgdunn/peer-review-system | 1fd5ac9d0f84d7637a86682e9e5fc068ac404afd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-15 08:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 47.833333 | 387 | 0.629113 |
37175535dd73bb85ce801f6d71053f502d010455 | 459 | py | Python | sesame/utils.py | GamePad64/django-sesame | 9d6144110b2cd74cca4e58273926b111eadb3f03 | [
"BSD-3-Clause"
] | null | null | null | sesame/utils.py | GamePad64/django-sesame | 9d6144110b2cd74cca4e58273926b111eadb3f03 | [
"BSD-3-Clause"
] | null | null | null | sesame/utils.py | GamePad64/django-sesame | 9d6144110b2cd74cca4e58273926b111eadb3f03 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from .backends import UrlAuthBackendMixin
from .compatibility import urlencode
from .middleware import TOKEN_NAME
def get_parameters(user):
"""
Return GET parameters to log in `user`.
"""
return {TOKEN_NAME: UrlAuthBackendMixin().create_token(user)}
def get_... | 20.863636 | 65 | 0.718954 |
3717e0e3aec2403c0fab9cf210bee60a06ef922a | 1,743 | py | Python | tests/verbs/test_drop_verb.py | RathmoreChaos/intficpy | a5076bba93208dc18dcbf2e4ad720af9e2127eda | [
"MIT"
] | 25 | 2019-04-30T23:51:44.000Z | 2022-03-23T02:02:54.000Z | tests/verbs/test_drop_verb.py | RathmoreChaos/intficpy | a5076bba93208dc18dcbf2e4ad720af9e2127eda | [
"MIT"
] | 4 | 2019-07-09T03:43:35.000Z | 2022-01-10T23:41:46.000Z | tests/verbs/test_drop_verb.py | RathmoreChaos/intficpy | a5076bba93208dc18dcbf2e4ad720af9e2127eda | [
"MIT"
] | 5 | 2021-04-24T03:54:39.000Z | 2022-01-06T20:59:03.000Z | from ..helpers import IFPTestCase
from intficpy.things import Thing, Container, Liquid
| 36.3125 | 85 | 0.655766 |
37184bb52ce3b69f9a3ea49e44dc9a4d526d0292 | 3,076 | py | Python | woot/apps/catalog/views/forum.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | 1 | 2015-06-27T13:25:28.000Z | 2015-06-27T13:25:28.000Z | woot/apps/catalog/views/forum.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | 1 | 2015-07-02T20:18:53.000Z | 2015-07-02T20:18:53.000Z | woot/apps/catalog/views/forum.py | Makeystreet/makeystreet | 761331de52207227baf6f8d161ab6df1747f8ef3 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from woot.apps.catalog.models.forum import Question, Answer
from woot.apps.catalog.models.core import Makey, Comment
from woot.ap... | 29.576923 | 76 | 0.539012 |
371a4860fef108bacaa12c8950aae7cf93fc6975 | 223 | py | Python | old_django_malliva/marketplaceAccounts/admin.py | olubiyiontheweb/malliva | b212e6b359eed54c92533f0a02afe3c0042150e2 | [
"MIT"
] | null | null | null | old_django_malliva/marketplaceAccounts/admin.py | olubiyiontheweb/malliva | b212e6b359eed54c92533f0a02afe3c0042150e2 | [
"MIT"
] | null | null | null | old_django_malliva/marketplaceAccounts/admin.py | olubiyiontheweb/malliva | b212e6b359eed54c92533f0a02afe3c0042150e2 | [
"MIT"
] | 1 | 2021-07-19T12:15:52.000Z | 2021-07-19T12:15:52.000Z | from django.contrib import admin
from .models import MarketplaceAccount, Plan, Subscription
# Register your models here.
admin.site.register(Plan)
admin.site.register(Subscription)
admin.site.register(MarketplaceAccount)
| 24.777778 | 58 | 0.829596 |
371a8dcbd851a1e7977852eaa260257568a126f3 | 1,316 | py | Python | tools/cr/cr/commands/info.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/cr/cr/commands/info.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | tools/cr/cr/commands/info.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A module for the info implementation of Command."""
from __future__ import print_function
import cr
| 28.608696 | 72 | 0.660334 |
371b5cd190cc6453ea1cf3899da67cadf76aab9c | 304 | py | Python | mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py | xishansnow/MLAPP | 2f30cd94fd852a3f66fe92a124f65722bd2af509 | [
"MIT"
] | null | null | null | mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py | xishansnow/MLAPP | 2f30cd94fd852a3f66fe92a124f65722bd2af509 | [
"MIT"
] | null | null | null | mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py | xishansnow/MLAPP | 2f30cd94fd852a3f66fe92a124f65722bd2af509 | [
"MIT"
] | null | null | null | """"""
from scipy import stats
import numpy as np
S = 47
N = 100
a = S + 1
b = (N -S) + 1
alpha = 0.05
lu = stats.beta.ppf([alpha/2, 1-alpha/2], a, b)
print(lu)
## MC
S = 1000
X = stats.beta.rvs(a, b, size=S)
X = np.sort(X, axis=0)
l = X[round(S*alpha/2)]
u = X[round(S*(1-alpha)/2)]
print(l,u) | 15.2 | 47 | 0.578947 |
371b77ffe10a8965336c8ef7f84e3420344cd205 | 5,009 | py | Python | cqa_dataloader.py | vksriharsha/CQA | 50021cca2d1d0833a0300bea20fd259dc4871fad | [
"MIT"
] | 8 | 2021-01-11T01:12:09.000Z | 2022-01-20T23:23:22.000Z | cqa_dataloader.py | vksriharsha/CQA | 50021cca2d1d0833a0300bea20fd259dc4871fad | [
"MIT"
] | null | null | null | cqa_dataloader.py | vksriharsha/CQA | 50021cca2d1d0833a0300bea20fd259dc4871fad | [
"MIT"
] | 2 | 2021-07-19T06:23:33.000Z | 2021-09-09T15:28:51.000Z | import json
import os
from concurrent.futures import ProcessPoolExecutor
import numpy as np
import torch
from PIL import Image
from nltk.tokenize import word_tokenize
from torch.utils.data import Dataset, DataLoader
# %%
if __name__ == '__main___':
main()
| 36.035971 | 118 | 0.65542 |
371c4a5f6f8c3976b640b0eedc55c96b6d333633 | 4,363 | py | Python | re_calc/shunting_yard.py | LilacRapture/re_calc | d8dc744e26ade3edc545dd6509bf2baf973537a2 | [
"MIT"
] | 1 | 2020-02-27T18:29:52.000Z | 2020-02-27T18:29:52.000Z | re_calc/shunting_yard.py | LilacRapture/re_calc | d8dc744e26ade3edc545dd6509bf2baf973537a2 | [
"MIT"
] | 1 | 2020-02-27T18:46:46.000Z | 2020-02-27T18:46:46.000Z | re_calc/shunting_yard.py | LilacRapture/ReCalc | d8dc744e26ade3edc545dd6509bf2baf973537a2 | [
"MIT"
] | null | null | null | from re_calc.config import *
from re_calc.exceptions import CalcException
from re_calc.util import is_number
import re_calc.meta_containers as meta_containers
def should_move_to_queue(stack, c_token_prc):
''' Checks token's precedence and associativity to decide if it should be
moved to the queue.
'''
... | 37.290598 | 86 | 0.572313 |
371ccf1859b31fd5c4912f1fb9a89f63aca04cba | 28,944 | py | Python | image_classification/VOLO/volo.py | chuliuT/PaddleViT | 282e5013f0460fa9f9b010775ff4d2607e7370ef | [
"Apache-2.0"
] | null | null | null | image_classification/VOLO/volo.py | chuliuT/PaddleViT | 282e5013f0460fa9f9b010775ff4d2607e7370ef | [
"Apache-2.0"
] | null | null | null | image_classification/VOLO/volo.py | chuliuT/PaddleViT | 282e5013f0460fa9f9b010775ff4d2607e7370ef | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PPViT 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 applicable l... | 36.453401 | 110 | 0.530991 |
371f8ef580118827f3f0d0fba4c653c6f27eaf69 | 740 | py | Python | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | null | null | null | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | null | null | null | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | 1 | 2019-04-17T06:12:23.000Z | 2019-04-17T06:12:23.000Z | import learntools
from setuptools import setup
from setuptools import find_packages
setup(name='learntools',
version=learntools.__version__,
description='Utilities for Kaggle Learn exercises',
url='http://github.com/kaggle/learntools',
author='Dan Becker',
author_email='dan@kaggle.com',
... | 38.947368 | 120 | 0.737838 |
372019bef08d8edff5f6ead1979cf5e63b3e3fd3 | 1,102 | py | Python | maro/cli/grass/lib/scripts/create_job_details.py | yourmoonlight/maro | 4fbe556f3ae1817995f90cb529e9ca6191f67d7f | [
"MIT"
] | 1 | 2021-01-13T06:41:51.000Z | 2021-01-13T06:41:51.000Z | maro/cli/grass/lib/scripts/create_job_details.py | chaosddp/maro | 3d6715649467d49a83886c1fd4ae9b41ff012a50 | [
"MIT"
] | 2 | 2020-12-15T09:13:43.000Z | 2020-12-16T08:02:41.000Z | maro/cli/grass/lib/scripts/create_job_details.py | chaosddp/maro | 3d6715649467d49a83886c1fd4ae9b41ff012a50 | [
"MIT"
] | 1 | 2021-10-01T09:17:43.000Z | 2021-10-01T09:17:43.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
import json
from redis import Redis
from .utils import load_cluster_details, load_job_details
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('cluster_name')
parser.add_argument(... | 25.627907 | 80 | 0.708711 |