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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7907243674e9e866161964f1907b28118b6c5588 | 7,238 | py | Python | test/functional/test_f_xcompat.py | farleyb-amazon/aws-encryption-sdk-python | 7950abd73ee333407d2dadd02ef2d57c3df464cf | [
"Apache-2.0"
] | 95 | 2018-08-20T23:10:00.000Z | 2022-02-17T02:54:32.000Z | test/functional/test_f_xcompat.py | farleyb-amazon/aws-encryption-sdk-python | 7950abd73ee333407d2dadd02ef2d57c3df464cf | [
"Apache-2.0"
] | 220 | 2018-08-01T20:56:29.000Z | 2022-03-28T18:12:35.000Z | test/functional/test_f_xcompat.py | farleyb-amazon/aws-encryption-sdk-python | 7950abd73ee333407d2dadd02ef2d57c3df464cf | [
"Apache-2.0"
] | 63 | 2018-08-01T19:37:33.000Z | 2022-03-20T17:14:15.000Z | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.336957 | 116 | 0.678088 |
7907463be0399381dbb251da2399a40b35f47313 | 986 | py | Python | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | 2 | 2019-04-06T05:08:15.000Z | 2019-04-06T19:23:44.000Z | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | null | null | null | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful import Api
from flask_cors import CORS
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from {{cookiecutter.app_name}}.config import app_config
from {{cookiecutter.app_name}}.models import db, bcrypt
from {{cookiecutter.app_name}}.resources i... | 22.930233 | 63 | 0.704868 |
79085a6c06f94f9781c1a341cbcc3d429b30a260 | 17,381 | py | Python | docs/examples/Moving_Platform_Simulation.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 157 | 2019-04-14T20:43:11.000Z | 2022-03-30T08:30:33.000Z | docs/examples/Moving_Platform_Simulation.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 364 | 2019-04-18T15:54:49.000Z | 2022-03-31T09:50:02.000Z | docs/examples/Moving_Platform_Simulation.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 86 | 2019-04-20T02:01:18.000Z | 2022-03-28T01:03:11.000Z | #!/usr/bin/env python
# coding: utf-8
"""
Multi-Sensor Moving Platform Simulation Example
===============================================
This example looks at how multiple sensors can be mounted on a single moving platform and exploiting a defined moving
platform as a sensor target.
"""
# %%
# Building a Simulated M... | 44.452685 | 120 | 0.693976 |
79093ae44bacb9494b8349f6098239d9b14a8d37 | 567 | py | Python | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 27 | 2015-09-01T00:19:34.000Z | 2021-12-05T01:59:01.000Z | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 26 | 2016-01-03T09:31:39.000Z | 2018-06-01T18:05:58.000Z | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 7 | 2016-01-03T07:09:04.000Z | 2018-04-06T00:24:14.000Z | #MenuTitle: Generate lowercase from uppercase
"""
Generate lowercase a-z from uppercase A-Z
TODO (M Foley) Generate all lowercase glyphs, not just a-z
"""
font = Glyphs.font
glyphs = list('abcdefghijklmnopqrstuvwxyz')
masters = font.masters
for glyph_name in glyphs:
glyph = GSGlyph(glyph_name)
glyph.updateGl... | 24.652174 | 58 | 0.714286 |
7909cb31dce0f5d0d244a16c56e9e7a864d3c124 | 2,372 | py | Python | src/gui/SubVision.py | bochkovoi/AHP | b51dc598f8f7a65a2ade039d887dccfa6d070f1e | [
"MIT"
] | null | null | null | src/gui/SubVision.py | bochkovoi/AHP | b51dc598f8f7a65a2ade039d887dccfa6d070f1e | [
"MIT"
] | null | null | null | src/gui/SubVision.py | bochkovoi/AHP | b51dc598f8f7a65a2ade039d887dccfa6d070f1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from PyQt5 import QtWidgets, QtGui, QtCore
import sys, os.path as op
path1 = op.join( op.abspath(op.dirname(__file__)), '..', 'Structure')
path2 = op.join( op.abspath(op.dirname(__file__)), '..')
sys.path.append(path1)
sys.path.append(path2)
from Structure import *
from V... | 38.885246 | 85 | 0.643339 |
790a31602a2e6231958a1ed23fbe61a5ef5fd6fa | 23 | py | Python | examples/ndfd/ndfd.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 123 | 2015-01-12T06:43:22.000Z | 2022-03-20T18:06:46.000Z | examples/ndfd/ndfd.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 103 | 2015-01-08T18:35:57.000Z | 2022-01-18T01:44:14.000Z | examples/ndfd/ndfd.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 54 | 2015-02-15T17:12:00.000Z | 2022-03-07T23:02:32.000Z | from raw.ndfd import *
| 11.5 | 22 | 0.73913 |
790a4f9b1ca5315576470030e7218150601d0818 | 56 | py | Python | pandoc_mustache/__init__.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 43 | 2017-12-27T05:57:00.000Z | 2022-03-18T10:07:28.000Z | pandoc_mustache/__init__.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 10 | 2018-02-07T11:20:37.000Z | 2021-04-22T21:44:19.000Z | pandoc_mustache/__init__.py | copart/pandoc-mustache | f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa | [
"CC0-1.0"
] | 8 | 2018-11-05T13:10:35.000Z | 2021-08-30T18:14:02.000Z | from .version import __version__
import pandoc_mustache
| 18.666667 | 32 | 0.875 |
790a863e1b7c7976c78fdf15265431950cd90024 | 5,163 | py | Python | espnet2/gan_tts/espnet_model.py | actboy/espnet | c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0 | [
"Apache-2.0"
] | null | null | null | espnet2/gan_tts/espnet_model.py | actboy/espnet | c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0 | [
"Apache-2.0"
] | 1 | 2021-08-11T08:35:36.000Z | 2021-08-13T07:12:47.000Z | espnet2/gan_tts/espnet_model.py | shirayu/espnet | 66f0f8382b0e1195bed7c280c29711f8436b3db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Tomoki Hayashi
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""GAN-based TTS ESPnet model."""
from contextlib import contextmanager
from distutils.version import LooseVersion
from typing import Any
from typing import Dict
from typing import Optional
import torch
from typeguard import... | 35.363014 | 81 | 0.627929 |
790b72b5977bc41bc1fa4f394888d33023e6e512 | 1,309 | py | Python | array/bot/others/P_ex07.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | 5 | 2020-11-01T00:29:22.000Z | 2022-01-24T19:09:47.000Z | array/bot/others/P_ex07.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | 1 | 2022-02-09T01:59:47.000Z | 2022-02-09T01:59:47.000Z | array/bot/others/P_ex07.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#
# This program shows how to use MPI_Alltoall. Each processor
# send/rec a different random number to/from other processors.
#
# numpy is required
import numpy
from numpy import *
# mpi4py module
from mpi4py import MPI
import sys
# Initialize MPI and print out hello
comm=MPI.COMM_WORLD
myi... | 20.453125 | 63 | 0.675325 |
790c207725e1c54d9a32196cd02ceb7f9a4e7af7 | 18,376 | py | Python | renderer/render_fmo.py | 12564985/DeFMO | 8ed9c2963678e2c59c7431ec8786302eea841572 | [
"MIT"
] | 1 | 2022-03-14T12:46:38.000Z | 2022-03-14T12:46:38.000Z | renderer/render_fmo.py | 12564985/DeFMO | 8ed9c2963678e2c59c7431ec8786302eea841572 | [
"MIT"
] | null | null | null | renderer/render_fmo.py | 12564985/DeFMO | 8ed9c2963678e2c59c7431ec8786302eea841572 | [
"MIT"
] | null | null | null | """ render_fmo.py renders obj file to rgb image with fmo model
Aviable function:
- clear_mash: delete all the mesh in the secene
- scene_setting_init: set scene configurations
- node_setting_init: set node configurations
- render: render rgb image for one obj file and one viewpoint
- render_obj: wrapper function for r... | 39.181237 | 200 | 0.619286 |
790ca91d1e267c27a75b0c472c8aadefd871871f | 11,385 | py | Python | main.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | null | null | null | main.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | 1 | 2021-01-11T03:42:43.000Z | 2021-02-19T17:06:59.000Z | main.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | null | null | null | # coding=utf-8
import sys
import argparse
import os
from tensorflow.python.platform import gfile
import numpy as np
import tensorflow as tf
from tensorflow.python.layers.core import Dense
from utils.data_manager import load_data, load_data_one
from collections import defaultdict
from argparse import ArgumentParser
fro... | 33.683432 | 133 | 0.623188 |
790e259abafc3b78efd22c4e49725337604761c5 | 55 | py | Python | src/__init__.py | codespacedot/CodeSpaceAPI | 22b457088aa592c4fb9111718810075d2643d9ca | [
"Apache-2.0"
] | 3 | 2021-07-05T17:28:14.000Z | 2021-12-07T10:08:14.000Z | src/__init__.py | git-vish/CodeSpaceAPI | 7ad4327e0eef3019098730358c4a23312bc85615 | [
"Apache-2.0"
] | 2 | 2021-07-29T13:55:15.000Z | 2021-07-31T16:49:03.000Z | src/__init__.py | git-vish/CodeSpaceAPI | 7ad4327e0eef3019098730358c4a23312bc85615 | [
"Apache-2.0"
] | 3 | 2021-07-01T16:32:20.000Z | 2021-07-05T04:50:30.000Z | """FastAPI Project for CodeSpace.
https://csdot.ml
"""
| 13.75 | 33 | 0.690909 |
790e708e4fd42df30662fd05e0fd27cb6d2b56ae | 1,525 | py | Python | gdsfactory/components/cdsem_straight.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | 42 | 2020-05-25T09:33:45.000Z | 2022-03-29T03:41:19.000Z | gdsfactory/components/cdsem_straight.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | 133 | 2020-05-28T18:29:04.000Z | 2022-03-31T22:21:42.000Z | gdsfactory/components/cdsem_straight.py | jorgepadilla19/gdsfactory | 68e1c18257a75d4418279851baea417c8899a165 | [
"MIT"
] | 17 | 2020-06-30T07:07:50.000Z | 2022-03-17T15:45:27.000Z | """CD SEM structures."""
from functools import partial
from typing import Optional, Tuple
from gdsfactory.cell import cell
from gdsfactory.component import Component
from gdsfactory.components.straight import straight as straight_function
from gdsfactory.components.text_rectangular import text_rectangular
from gdsfact... | 28.773585 | 76 | 0.685902 |
79107ce8bb54a81242a6381a90d895c5d61ecf37 | 10,057 | py | Python | Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py | hklion/WarpX | 3c2d0ee2815ab1df21b9f78d899fe7b1a9651758 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py | hklion/WarpX | 3c2d0ee2815ab1df21b9f78d899fe7b1a9651758 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py | hklion/WarpX | 3c2d0ee2815ab1df21b9f78d899fe7b1a9651758 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2019-2022 Luca Fedeli, Yinjian Zhao, Hannah Klion
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
# This script tests the reduced particle diagnostics.
# The setup is a uniform plasma with electrons, protons and photons.
# Various particle and field quantities are wri... | 46.995327 | 126 | 0.645521 |
7910b1ce3b116e87579add349dab0e8dadaa95e7 | 1,420 | py | Python | predict.py | stonebegin/Promise12-3DUNet | d48d95ae7f2da98d068f84391dc547abd968981d | [
"MIT"
] | 2 | 2020-12-20T12:35:24.000Z | 2021-01-04T03:21:37.000Z | predict.py | stonebegin/Promise12-3DUNet | d48d95ae7f2da98d068f84391dc547abd968981d | [
"MIT"
] | 1 | 2020-12-27T05:08:02.000Z | 2020-12-27T08:08:50.000Z | predict.py | stonebegin/Promise12-3DUNet | d48d95ae7f2da98d068f84391dc547abd968981d | [
"MIT"
] | null | null | null | import importlib
import os
from datasets.hdf5 import get_test_loaders
from unet3d import utils
from unet3d.config import load_config
from unet3d.model import get_model
logger = utils.get_logger('UNet3DPredictor')
if __name__ == '__main__':
main()
| 30.869565 | 84 | 0.687324 |
7910bb4a1911643dedff502020dff254dc351cc8 | 9,248 | py | Python | gitScrabber/scrabTasks/file/languageDetector.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | gitScrabber/scrabTasks/file/languageDetector.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | gitScrabber/scrabTasks/file/languageDetector.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2017 Andreas Poppele
Copyright (c) 2017 Roland Jaeger
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... | 35.706564 | 79 | 0.561635 |
7911642cb8be401271e397388edbb0e1b9d4ae27 | 4,667 | py | Python | VAE/full_model/model_training.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | 3 | 2020-06-26T22:02:35.000Z | 2021-11-20T19:24:33.000Z | VAE/full_model/model_training.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | VAE/full_model/model_training.py | youngmg1995/NES-Music-Maker | aeda10a541cfd439cfa46c45e63411e0d98e41c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 1 17:14:19 2020
@author: Mitchell
model_training.py
~~~~~~~~~~~~~~~~~
This file serves as a script for building and training our VAE model. To do
so we used the VAE and DataSequence classes defined in the file `VAE.py`, as
well as helper functions from the file `dataset... | 31.748299 | 79 | 0.611099 |
7911efa6a596e02ff81a8a1e7aa08e6a17b34751 | 721 | py | Python | tests/validation/test_is_subnational1.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 9 | 2020-05-16T20:26:33.000Z | 2021-11-02T06:24:46.000Z | tests/validation/test_is_subnational1.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 17 | 2019-06-22T09:41:22.000Z | 2020-09-11T06:25:21.000Z | tests/validation/test_is_subnational1.py | ProjectBabbler/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | null | null | null | import unittest
from ebird.api.validation import is_subnational1
| 30.041667 | 60 | 0.744799 |
79135bcae4aa65725d47cfe68fe799e301d340b1 | 7,172 | py | Python | backend/kale/tests/assets/kfp_dsl/simple_data_passing.py | brness/kale | d90310dbebc765c68915df0cf832a7a5d1ec1551 | [
"Apache-2.0"
] | 502 | 2019-07-18T16:19:16.000Z | 2022-03-30T19:45:31.000Z | backend/kale/tests/assets/kfp_dsl/simple_data_passing.py | brness/kale | d90310dbebc765c68915df0cf832a7a5d1ec1551 | [
"Apache-2.0"
] | 189 | 2019-09-22T10:54:02.000Z | 2022-03-28T13:46:31.000Z | backend/kale/tests/assets/kfp_dsl/simple_data_passing.py | brness/kale | d90310dbebc765c68915df0cf832a7a5d1ec1551 | [
"Apache-2.0"
] | 111 | 2019-09-25T20:28:47.000Z | 2022-03-24T01:31:46.000Z | import json
import kfp.dsl as _kfp_dsl
import kfp.components as _kfp_components
from collections import OrderedDict
from kubernetes import client as k8s_client
_kale_step1_op = _kfp_components.func_to_container_op(step1)
_kale_step2_op = _kfp_components.func_to_container_op(step2)
_kale_step3_op = _kfp_compo... | 34.480769 | 88 | 0.725739 |
791468fb9834f8a61e661025dfae37ea17e85be7 | 135 | py | Python | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('list', views.list_view),
path('add', views.add_view),
] | 19.285714 | 34 | 0.681481 |
791572847749537988baaf3cd53a31420b81f7a2 | 3,158 | py | Python | roombapy/discovery.py | Erelen-Laiquendi/roombapy | 104908ec040ebb72e16d3763741565eacc585801 | [
"MIT"
] | 17 | 2018-01-27T19:53:06.000Z | 2022-03-16T07:29:13.000Z | roombapy/discovery.py | Erelen-Laiquendi/roombapy | 104908ec040ebb72e16d3763741565eacc585801 | [
"MIT"
] | 78 | 2017-09-03T17:37:03.000Z | 2022-03-30T10:41:55.000Z | roombapy/discovery.py | bdraco/Roomba980-Python | d25583a7b8cd6e65148caeebc6849e73dff645da | [
"MIT"
] | 25 | 2017-09-03T13:43:21.000Z | 2022-03-19T23:41:51.000Z | import json
import logging
import socket
from roombapy.roomba_info import RoombaInfo
| 28.972477 | 79 | 0.594997 |
7915bd6303c3c35d054564976537a39f4bb990be | 76 | py | Python | nonbonded/cli/projects/__init__.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | 5 | 2020-05-11T18:25:00.000Z | 2022-01-27T10:55:09.000Z | nonbonded/cli/projects/__init__.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | 88 | 2020-06-02T14:40:05.000Z | 2022-03-02T09:20:39.000Z | nonbonded/cli/projects/__init__.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | null | null | null | # from nonbonded.cli.project.project import project
#
# __all__ = [project]
| 19 | 51 | 0.75 |
791688dbd138ffb5132f957ed4ac7f6e3567bcff | 30,666 | py | Python | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T06:24:17.000Z | 2021-07-02T06:24:17.000Z | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T12:02:46.000Z | 2021-06-28T12:02:46.000Z | pmaf/biome/essentials/_taxonomy.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | null | null | null | import warnings
warnings.simplefilter("ignore", category=FutureWarning)
from pmaf.biome.essentials._metakit import EssentialFeatureMetabase
from pmaf.biome.essentials._base import EssentialBackboneBase
from pmaf.internal._constants import (
AVAIL_TAXONOMY_NOTATIONS,
jRegexGG,
jRegexQIIME,
BIOM_TAXONOMY... | 37.081016 | 133 | 0.559903 |
7916e1c58cd3262cc6b3f5abd2ae3b7c7603279e | 9,607 | py | Python | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | from rest_framework.test import APIRequestFactory
from rest_framework import status
from django.test import TestCase
from django.urls import reverse
from ..models import User
from ..serializer import UserSerializer
from ..views import UserViewSet
import ipapi
| 39.052846 | 108 | 0.65192 |
79181888e71b95f21231a74673bce1df5f5dad06 | 1,058 | py | Python | jburt/mask.py | jbburt/jburt | 7745491214ef2b665ca8d1fc526bc802a36985ff | [
"MIT"
] | null | null | null | jburt/mask.py | jbburt/jburt | 7745491214ef2b665ca8d1fc526bc802a36985ff | [
"MIT"
] | null | null | null | jburt/mask.py | jbburt/jburt | 7745491214ef2b665ca8d1fc526bc802a36985ff | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
def mask_nan(arrays: List[np.ndarray]) -> List[np.ndarray]:
"""
Drop indices from equal-sized arrays if the element at that index is NaN in
any of the input arrays.
Parameters
----------
arrays : List[np.ndarray]
list of ndarrays containing ... | 27.128205 | 79 | 0.581285 |
7918bd9392635ed706771c33b08bee283e79ec85 | 838 | py | Python | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | 1 | 2020-09-01T15:38:19.000Z | 2020-09-01T15:38:19.000Z | # Generated by Django 3.1.1 on 2020-09-08 18:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 31.037037 | 142 | 0.656325 |
7919878f4085d6d12cdcb153170df1fa3bde8e8d | 1,035 | py | Python | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 5 | 2020-05-26T09:33:54.000Z | 2021-07-01T02:42:30.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 3 | 2019-12-26T17:34:24.000Z | 2020-02-04T03:16:23.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 2 | 2021-12-17T00:46:03.000Z | 2022-02-26T11:04:55.000Z | from os import getenv
from typing import Optional, Dict
from flask import Flask
TestConfig = Optional[Dict[str, bool]]
def create_app(test_config: TestConfig = None) -> Flask:
""" App factory method to initialize the application with given configuration """
app: Flask = Flask(__name__)
if test_config ... | 32.34375 | 97 | 0.672464 |
791a179ef2265637a66974e7b35a3ad2c3c5a16a | 10,666 | py | Python | src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py | dcf21/4most-4gp | 0421d76791315aa3ca8ff9e4bd2e37ad36c0141f | [
"MIT"
] | null | null | null | src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py | dcf21/4most-4gp | 0421d76791315aa3ca8ff9e4bd2e37ad36c0141f | [
"MIT"
] | null | null | null | src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py | dcf21/4most-4gp | 0421d76791315aa3ca8ff9e4bd2e37ad36c0141f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Code to take template spectra, used for RV fitting, and pass them through 4FS to resample them to 4MOST's resolution.
It then further resamples each arm onto a fixed logarithmic stride.
"""
import argparse
import hashlib
import logging
import numpy as np
import os
from os import path as os... | 45.387234 | 127 | 0.603975 |
791a74027f2dc3fbe44b27f9c9f0523352b4d029 | 149 | py | Python | datahub/activity_feed/apps.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/activity_feed/apps.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/activity_feed/apps.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | from django.apps import AppConfig
| 18.625 | 39 | 0.738255 |
791aafa638d97478db2d6a462067e347380d5760 | 117 | py | Python | ffmpeg_normalize/__init__.py | kostalski/ffmpeg-normalize | 2c73f47ec4369de08c1e2051af490322084fd17b | [
"MIT"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | ffmpeg_normalize/__init__.py | kostalski/ffmpeg-normalize | 2c73f47ec4369de08c1e2051af490322084fd17b | [
"MIT"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | ffmpeg_normalize/__init__.py | kostalski/ffmpeg-normalize | 2c73f47ec4369de08c1e2051af490322084fd17b | [
"MIT"
] | 1 | 2021-09-23T13:43:07.000Z | 2021-09-23T13:43:07.000Z | from ._ffmpeg_normalize import FFmpegNormalize
from ._media_file import MediaFile
from ._version import __version__
| 23.4 | 46 | 0.863248 |
791adee85a8db7759e5f3f2e7403b68b0df27e62 | 113 | py | Python | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __revision__ = '$Id$'
from utils import HAS_ZOPE
if HAS_ZOPE:
from Products.PortalTransforms.zope import *
| 16.142857 | 48 | 0.752212 |
791be8749fa60c1fc2eb6569f7089a3ef2f48994 | 11,259 | py | Python | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 3 | 2019-11-12T07:55:51.000Z | 2020-04-01T11:19:18.000Z | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 2 | 2019-10-20T14:54:47.000Z | 2020-06-11T07:29:37.000Z | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.... | 29.551181 | 101 | 0.606981 |
791fc2d140f54e02c2b4d1000be7565797957857 | 136 | py | Python | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | 1 | 2021-04-22T09:27:35.000Z | 2021-04-22T09:27:35.000Z | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | null | null | null | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | null | null | null | """Top-level package for gtf2bed."""
__author__ = """Joo Vitor F. Cavalcante"""
__email__ = "jvfecav@gmail.com"
__version__ = "0.1.0"
| 22.666667 | 43 | 0.683824 |
79206dc12be47bbbc702eacb1b5f27bdf824bf1f | 2,993 | py | Python | fastapi_cloudauth/firebase.py | jleclanche/fastapi-cloudauth | 9c098f91f46d9d927e1f10b82b80340951d0b1f2 | [
"MIT"
] | null | null | null | fastapi_cloudauth/firebase.py | jleclanche/fastapi-cloudauth | 9c098f91f46d9d927e1f10b82b80340951d0b1f2 | [
"MIT"
] | null | null | null | fastapi_cloudauth/firebase.py | jleclanche/fastapi-cloudauth | 9c098f91f46d9d927e1f10b82b80340951d0b1f2 | [
"MIT"
] | null | null | null | from calendar import timegm
from datetime import datetime
from typing import Any, Dict
from fastapi import HTTPException
from pydantic import BaseModel, Field
from starlette import status
from .base import UserInfoAuth
from .messages import NOT_VERIFIED
from .verification import JWKS, ExtraVerifier
| 36.060241 | 114 | 0.636151 |
79222572360ae305c1ba2a36f8edf19a01cdcedf | 2,410 | py | Python | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 99 | 2015-02-27T02:21:41.000Z | 2021-02-09T15:13:25.000Z | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 114 | 2015-01-16T15:06:49.000Z | 2018-04-13T20:29:18.000Z | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 51 | 2015-01-07T12:13:56.000Z | 2019-05-06T14:16:35.000Z | import sqlite3
import mock
import opbeat.instrumentation.control
from tests.helpers import get_tempstoreclient
from tests.utils.compat import TestCase
| 38.253968 | 77 | 0.641494 |
7922c3c12c906f5e3ff236bb30e73bcdb61a9ea9 | 477 | py | Python | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | 1 | 2022-01-20T02:18:16.000Z | 2022-01-20T02:18:16.000Z | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | 1 | 2022-01-08T17:18:04.000Z | 2022-01-08T17:18:04.000Z | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='This MLOps project aims to use the Transformers framework from Hugging Face in order to tweak a pre-trained NLP model to accurately gauge the sentiment of an Amazon review (being able ... | 43.363636 | 305 | 0.742138 |
7923b39638368ab2ae741c772b643949cd865155 | 423 | py | Python | gaphor/RAAML/stpa/connectors.py | Texopolis/gaphor | 3b190620075fd413258af1e7a007b4b2167a7564 | [
"Apache-2.0"
] | 867 | 2018-01-09T00:19:09.000Z | 2022-03-31T02:49:23.000Z | gaphor/RAAML/stpa/connectors.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 790 | 2018-01-13T23:47:07.000Z | 2022-03-31T16:04:27.000Z | gaphor/RAAML/stpa/connectors.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 117 | 2018-01-09T02:24:49.000Z | 2022-03-23T08:07:42.000Z | from gaphor.diagram.connectors import Connector
from gaphor.diagram.presentation import Classified
from gaphor.RAAML.raaml import RelevantTo
from gaphor.RAAML.stpa import RelevantToItem
from gaphor.SysML.requirements.connectors import DirectedRelationshipPropertyPathConnect
| 35.25 | 88 | 0.87234 |
7923c47de0831caf8141bfde82615c01392124f5 | 1,197 | py | Python | voltagemetricspublisher/services/extractionService.py | SumudithaR/svc.voltage-metrics-publisher | 4e0418c855920d3e984acf097681e2fc8c8ec081 | [
"Apache-2.0"
] | null | null | null | voltagemetricspublisher/services/extractionService.py | SumudithaR/svc.voltage-metrics-publisher | 4e0418c855920d3e984acf097681e2fc8c8ec081 | [
"Apache-2.0"
] | null | null | null | voltagemetricspublisher/services/extractionService.py | SumudithaR/svc.voltage-metrics-publisher | 4e0418c855920d3e984acf097681e2fc8c8ec081 | [
"Apache-2.0"
] | null | null | null | from time import sleep
from gpiozero import MCP3008 # Installed in GAM 13/09/2019.
import time
import gpiozero
from ..models.rawMetricDto import RawMetricDto | 32.351351 | 71 | 0.622389 |
792592d09cfb1da8cbdd06e8e2cb4970a31ce4e6 | 553 | py | Python | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.13 on 2020-03-31 17:42
from django.db import migrations, models
import data_browser.models
| 21.269231 | 51 | 0.549729 |
7926794343cfee2a3a93c437f389f8d256dd16f9 | 320 | py | Python | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 43 | 2017-12-04T17:38:24.000Z | 2021-12-29T09:17:17.000Z | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 49 | 2017-12-07T21:02:29.000Z | 2022-02-04T22:27:16.000Z | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 82 | 2017-12-04T17:56:00.000Z | 2021-12-29T09:17:21.000Z | # Copyright 2020 BlueCat Networks. All rights reserved.
# -*- coding: utf-8 -*-
type = 'ui'
sub_pages = [
{
'name' : 'get_audit_info_page',
'title' : u'Get Audit Info',
'endpoint' : 'get_audit_info/get_audit_info_endpoint',
'description' : u'get_audit_info'
},
]
| 24.615385 | 65 | 0.56875 |
79273775aa326888e7143a25472099fb24c7a2cc | 548 | py | Python | ALDS/ALDS1_10_A.py | yu8ikmnbgt6y/MyAOJ | 474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b | [
"Unlicense"
] | 1 | 2020-01-08T16:33:46.000Z | 2020-01-08T16:33:46.000Z | ALDS/ALDS1_10_A.py | yu8ikmnbgt6y/MyAOJ | 474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b | [
"Unlicense"
] | null | null | null | ALDS/ALDS1_10_A.py | yu8ikmnbgt6y/MyAOJ | 474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b | [
"Unlicense"
] | null | null | null | import sys
import io
input_txt = """
44
"""
sys.stdin = io.StringIO(input_txt)
tmp = input()
# copy the below part and paste to the submission form.
# ---------function------------
main()
# -----------------------------
sys.stdin = sys.__stdin__
| 17.125 | 56 | 0.509124 |
7927bbe2f2d0526128722c38428b7bbf96221e46 | 2,389 | py | Python | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Armada Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 29.8625 | 74 | 0.541231 |
7927d5d5ec363318061f6e9faac288240c333204 | 7,149 | py | Python | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 23 | 2020-12-01T22:55:40.000Z | 2022-01-26T04:11:14.000Z | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | null | null | null | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 10 | 2020-12-05T17:12:49.000Z | 2022-01-10T23:42:37.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import numpy as np
# continuously differentiable
fn_dict_cdiff = {'2dpoly': 1, 'sigmoid': 2,
'sin': 3, 'frequent_sin': 4,
'3dpoly': 7, 'linear': 8}
# continuous but not differentiable
fn_dict_cont = {'abs': 0, '... | 40.619318 | 136 | 0.527207 |
7928e18542e9bd6bf82dff12dad8c28ca120e4fe | 16,097 | py | Python | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | 1 | 2021-11-09T05:07:43.000Z | 2021-11-09T05:07:43.000Z | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | 1 | 2021-12-07T13:06:29.000Z | 2021-12-07T13:06:29.000Z | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | null | null | null | import glob
import json
import os
import random
import string
import pandas as pd
import pytest
from great_expectations.execution_engine.pandas_batch_data import PandasBatchData
from great_expectations.execution_engine.sparkdf_batch_data import SparkDFBatchData
from great_expectations.execution_engine.sqlalchemy_batc... | 48.927052 | 118 | 0.391067 |
792b96690a5711f347a2fe1364e3eef792d1ebea | 1,393 | py | Python | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from tastypie import fields
from corehq.apps.api.resources.v0_1 import CustomResourceMeta, DomainAdminAuthentication
from corehq.apps.products.models import Product
from corehq.apps.api.util import get_object_or_not_exist
from corehq.apps.api.resources import HqBaseResource
"""
Implementation of the CommCare Supply A... | 36.657895 | 93 | 0.740847 |
792bbfea31e2c47d9dc8a86be0bf40d5cfa67a78 | 7,381 | py | Python | spectrl/util/io.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | null | null | null | spectrl/util/io.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | null | null | null | spectrl/util/io.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | null | null | null | import argparse
import os
import pathlib
import cv2
import pickle
import numpy as np
from matplotlib import pyplot as plt
from PIL import Image
from numpy import genfromtxt
def open_log_file(itno, folder):
'''
Open a log file to periodically flush data.
Parameters:
itno: int
folder: st... | 28.608527 | 98 | 0.605067 |
792c98d61321846aacf5f5f89a160ce13339bfd4 | 940 | py | Python | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 18 | 2018-05-14T16:27:24.000Z | 2022-02-24T06:47:45.000Z | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 2 | 2020-09-11T07:56:05.000Z | 2021-03-05T14:50:36.000Z | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 9 | 2019-01-16T16:03:51.000Z | 2021-03-14T01:01:55.000Z | from pygments import highlight as _highlight
from pygments.lexers import SqlLexer
from pygments.formatters import HtmlFormatter
| 33.571429 | 76 | 0.738298 |
792d78778cc9f57f44aeb718a24a94af2accc6bf | 4,337 | py | Python | raytracing.py | avigael/raytracing-example | e1e9448fdf371c401e9ada642fd0ca8ed2702609 | [
"MIT"
] | null | null | null | raytracing.py | avigael/raytracing-example | e1e9448fdf371c401e9ada642fd0ca8ed2702609 | [
"MIT"
] | null | null | null | raytracing.py | avigael/raytracing-example | e1e9448fdf371c401e9ada642fd0ca8ed2702609 | [
"MIT"
] | null | null | null | '''2D Raytracing Example using Pygame'''
import sys
from math import pi, cos, sin
import pygame
# Constants
SIZE = (600, 600)
BORDERS = [[0, 0, SIZE[0], 0], [0, 0, 0, SIZE[1]],
[0, SIZE[1], SIZE[0], SIZE[1]], [SIZE[0], 0, SIZE[0], SIZE[1]]]
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GREEN = (0, 255, 0)
... | 32.125926 | 78 | 0.512797 |
792f039bf3dcdae9faa7ebde493ddb3c49ba4954 | 3,041 | py | Python | preprocessed_data/UCM/Code/global_histogram_stretching.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/UCM/Code/global_histogram_stretching.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/UCM/Code/global_histogram_stretching.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | import numpy as np
| 37.54321 | 95 | 0.560671 |
792f0b4ef299a46239013a5b5a1e30079b053c00 | 1,854 | py | Python | python/test/experimental/test_tb_graph_writer.py | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 2,792 | 2017-06-26T13:05:44.000Z | 2022-03-28T07:55:26.000Z | python/test/experimental/test_tb_graph_writer.py | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 138 | 2017-06-27T07:04:44.000Z | 2022-02-28T01:37:15.000Z | python/test/experimental/test_tb_graph_writer.py | daniel-falk/nnabla | 3fe132ea52dc10521cc029a5d6ba8f565cf65ccf | [
"Apache-2.0"
] | 380 | 2017-06-26T13:23:52.000Z | 2022-03-25T16:51:30.000Z | # Copyright 2021 Sony Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 30.9 | 74 | 0.662891 |
792f6c2ed852cae02d142182deaf73d1e0349382 | 1,328 | py | Python | pokeman/coatings/resolver_attribute_methods/selective_consumer.py | wmarcuse/pokeman | 5d654c227c456a065b2fea6a0d5827bff424c703 | [
"BSD-3-Clause"
] | null | null | null | pokeman/coatings/resolver_attribute_methods/selective_consumer.py | wmarcuse/pokeman | 5d654c227c456a065b2fea6a0d5827bff424c703 | [
"BSD-3-Clause"
] | null | null | null | pokeman/coatings/resolver_attribute_methods/selective_consumer.py | wmarcuse/pokeman | 5d654c227c456a065b2fea6a0d5827bff424c703 | [
"BSD-3-Clause"
] | null | null | null | import json
import logging
LOGGER = logging.getLogger(__name__)
def on_message(self, channel, method, properties, body):
"""
Invoked by pika when a message is delivered from the AMQP broker. The
channel is passed for convenience. The basic_deliver object that
is passed in carries the exchange, rout... | 31.619048 | 73 | 0.707831 |
79346eb30e63c170afbf3ea69f6c87de3e761345 | 4,100 | py | Python | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-07-07T06:43:16.000Z | 2021-07-07T06:43:16.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gnb_status_indication.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from googl... | 35.652174 | 426 | 0.79439 |
7934eac98ca8ffa62c49d783f06b030e9d1fdffb | 902 | py | Python | test_tflite_model.py | jh88/fbnet | 5bd12ab8c7f6befc61efd8619d71e710db794c2b | [
"MIT"
] | 6 | 2020-01-16T14:38:10.000Z | 2021-01-24T15:49:11.000Z | test_tflite_model.py | jh88/fbnet | 5bd12ab8c7f6befc61efd8619d71e710db794c2b | [
"MIT"
] | null | null | null | test_tflite_model.py | jh88/fbnet | 5bd12ab8c7f6befc61efd8619d71e710db794c2b | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from time import perf_counter as timer
if __name__ == '__main__':
main()
| 25.771429 | 80 | 0.649667 |
7935bc304873f87a9dd8551b03972144b4f09bb2 | 582 | py | Python | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
def cat_arrays(vector_arrays):
"""Return a new |VectorArray| which a concatenation of the arr... | 41.571429 | 92 | 0.74055 |
7935f670a579e41f9498d1b3fe1e3afe2409108d | 407 | py | Python | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | 2 | 2015-04-23T00:21:01.000Z | 2015-04-23T00:29:23.000Z | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'swampytodo.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^monitor', 'monitor.views.monitor_view', name='monitor'),
url(r'^todo', inc... | 29.071429 | 67 | 0.643735 |
79371535785d9b4c1a14c7350dbe3a0fef48e07d | 3,669 | py | Python | src/pymor/playground/progressbar.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/playground/progressbar.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/playground/progressbar.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import sys
############################################################
#
#... | 35.970588 | 80 | 0.562006 |
79372371d63d8554463e6ea69f517b712b741c97 | 8,184 | py | Python | toontown/minigame/TwoDBattleMgr.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/minigame/TwoDBattleMgr.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/minigame/TwoDBattleMgr.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 3 | 2021-06-03T05:36:36.000Z | 2021-06-22T15:07:31.000Z | from panda3d.core import *
from direct.showbase.DirectObject import DirectObject
from toontown.toonbase.ToonBaseGlobal import *
from direct.directnotify import DirectNotifyGlobal
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleProps import *
from toontown.battle import MovieUtil
import math
| 43.301587 | 454 | 0.660191 |
7937d7c40eebe24b6b2fbdc5b2fcb247cedd3bed | 1,211 | py | Python | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | # Explained Variance of Each PC
#### Boilerplate #################################################################
print __doc__
from time import time
import logging
import pylab as pl
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.datasets import fetch_lfw_people
from sklearn... | 26.911111 | 90 | 0.720066 |
793b2e2631986fe445d59015d41bd730fa29fbfa | 352 | py | Python | qt/__init__.py | popupcad/popupcad | d3da448260cd5cb9e05417b0a723d7f73ae4e06e | [
"MIT"
] | 19 | 2015-08-01T22:13:39.000Z | 2020-03-07T03:55:46.000Z | qt/__init__.py | CadQuery/popupcad | b0c7b406d4b288c7cb375340323bba0252aedbfb | [
"MIT"
] | 106 | 2015-07-23T19:58:01.000Z | 2019-05-14T03:46:08.000Z | qt/__init__.py | CadQuery/popupcad | b0c7b406d4b288c7cb375340323bba0252aedbfb | [
"MIT"
] | 9 | 2015-10-04T23:38:41.000Z | 2020-07-16T03:50:34.000Z | # -*- coding: utf-8 -*-
"""
Written by Daniel M. Aukes and CONTRIBUTORS
Email: danaukes<at>asu.edu.
Please see LICENSE for full license.
"""
import sys
argv = [item.lower() for item in sys.argv]
if 'qt4' in argv:
loaded = 'PyQt4'
elif 'qt5' in argv:
loaded = 'PyQt5'
elif 'pyside' in argv:
loaded = 'PySi... | 16 | 43 | 0.636364 |
793db8fe0005397f1d556c93efea7bcd3624a441 | 3,941 | py | Python | fast_carpenter/__main__.py | lgray/fast-carpenter | c33b83d16031e5ac4b857ac1a644433b6132bb05 | [
"Apache-2.0"
] | null | null | null | fast_carpenter/__main__.py | lgray/fast-carpenter | c33b83d16031e5ac4b857ac1a644433b6132bb05 | [
"Apache-2.0"
] | null | null | null | fast_carpenter/__main__.py | lgray/fast-carpenter | c33b83d16031e5ac4b857ac1a644433b6132bb05 | [
"Apache-2.0"
] | null | null | null | """
Chop up those trees into nice little tables and dataframes
"""
from __future__ import print_function
import sys
from .help import help_stages
import fast_flow.v1 as fast_flow
import fast_curator
import logging
import atuproot.atuproot_main as atup
from .event_builder import EventBuilder
from atsge.build_parallel im... | 39.019802 | 112 | 0.632073 |
793dc7d4ffbc96247a33db7d9520735900231242 | 1,283 | py | Python | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image,Location,Category
# Create your tests here. | 31.292683 | 136 | 0.683554 |
793dd777651fda3f7f0226048a22a03099d8826c | 2,110 | py | Python | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | 1 | 2018-03-13T21:16:49.000Z | 2018-03-13T21:16:49.000Z | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | {%- if cookiecutter.use_allauth == "y" and cookiecutter.use_rest == "y" %}
from django.contrib.auth import logout as auth_logout
from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import ugettext_lazy as _
from rest_auth.app_settings import create_token
from rest_auth.registration.views... | 27.763158 | 93 | 0.734597 |
793e098cac69c0e739d368a1fa2b5c6d69bbe98f | 4,519 | py | Python | pyperform/tools.py | timgates42/pyperform | 97d87e8b9ddb35bd8f2a6782965fd7735ab0349f | [
"MIT"
] | 250 | 2015-01-03T10:15:26.000Z | 2022-03-31T19:43:37.000Z | pyperform/tools.py | timgates42/pyperform | 97d87e8b9ddb35bd8f2a6782965fd7735ab0349f | [
"MIT"
] | 4 | 2015-01-23T00:19:45.000Z | 2015-10-29T17:17:46.000Z | pyperform/tools.py | timgates42/pyperform | 97d87e8b9ddb35bd8f2a6782965fd7735ab0349f | [
"MIT"
] | 14 | 2015-01-17T16:23:04.000Z | 2021-07-15T10:59:53.000Z | __author__ = 'calvin'
import re
import sys
from math import log10
if sys.version[0] == '3':
pass
else:
range = xrange
classdef_regex = re.compile(r"\S*def .*#!|class .*#!")
tagged_line_regex = re.compile(r".*#!")
def convert_time_units(t):
""" Convert time in seconds into reasonable time units. """
... | 30.741497 | 107 | 0.548351 |
793e3ac3dcb05f0d0810a86209b05739d4ea782a | 7,522 | py | Python | dictify.py | Dharma-Sagar/dictify | c76713feaf45670b245ed7e7feb894c12dffb9cd | [
"Apache-2.0"
] | null | null | null | dictify.py | Dharma-Sagar/dictify | c76713feaf45670b245ed7e7feb894c12dffb9cd | [
"Apache-2.0"
] | null | null | null | dictify.py | Dharma-Sagar/dictify | c76713feaf45670b245ed7e7feb894c12dffb9cd | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from pathlib import Path
import re
import yaml
import json
from botok import Text
import pyewts
conv = pyewts.pyewts()
def dictify_text(string, is_split=False, selection_yaml='data/dictionaries/dict_cats.yaml', expandable=True, mode='en_bo'):
"""
takes segmented text and... | 37.237624 | 123 | 0.534964 |
f700e260a7d6b3f4dc9cdfd4df281f246d308a20 | 2,504 | py | Python | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | 1 | 2018-05-15T18:27:31.000Z | 2018-05-15T18:27:31.000Z | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | null | null | null | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | 2 | 2020-12-25T16:37:56.000Z | 2021-06-22T13:13:18.000Z | # coding: utf-8
import pytest
from edipy import fields, validators, exceptions
def test_throws_exception_when_regex_is_invalid():
with pytest.raises(ValueError):
field = fields.String(5, validators=[validators.Regex(")")])
| 33.837838 | 76 | 0.69369 |
f7013f89ddf7249cb8c21753c974a4e817c0eaa2 | 45,183 | py | Python | archetypal/schedule.py | brunomarct/archetypal | ce8daf4e18ef3ec92967e5d6837b392199caf83b | [
"MIT"
] | null | null | null | archetypal/schedule.py | brunomarct/archetypal | ce8daf4e18ef3ec92967e5d6837b392199caf83b | [
"MIT"
] | null | null | null | archetypal/schedule.py | brunomarct/archetypal | ce8daf4e18ef3ec92967e5d6837b392199caf83b | [
"MIT"
] | null | null | null | ################################################################################
# Module: schedule.py
# Description: Functions for handling conversion of EnergyPlus schedule objects
# License: MIT, see full license in LICENSE.txt
# Web: https://github.com/samuelduchesne/archetypal
#####################################... | 39.808811 | 100 | 0.535799 |
f7024605869dd7788905637cfccaa41707efb6c3 | 256 | py | Python | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 43 | 2018-09-17T00:45:35.000Z | 2021-11-14T23:56:45.000Z | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 7 | 2019-11-26T10:48:14.000Z | 2021-06-13T04:49:58.000Z | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 6 | 2018-09-17T02:09:59.000Z | 2020-08-15T13:57:44.000Z | #!/usr/bin/env python
#coding: utf-8
import sys
from common import reverse_items
if len(sys.argv) != 3:
print("Reverse key and value of all pairs")
print(("Usage: ", sys.argv[0], "[input] [output]"))
exit(1)
reverse_items(sys.argv[1], sys.argv[2])
| 21.333333 | 53 | 0.671875 |
f703531b591af3d5317bed220eaa477c0403e4d5 | 2,576 | py | Python | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | 1 | 2020-07-14T09:05:56.000Z | 2020-07-14T09:05:56.000Z | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | null | null | null | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | null | null | null | template = """<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css">
<style>
.tradingvi... | 24.533333 | 195 | 0.572593 |
f704431757b191fd6a6405e1724d23679ca1b2f0 | 1,173 | py | Python | script/app/agg.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | script/app/agg.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | script/app/agg.py | Intelligent-Systems-Lab/ISL-BCFL | 42ceb86708a76e28b31c22b33c15ee9a6a745ec7 | [
"Apache-2.0"
] | null | null | null | import os
# import torch
import argparse
import base64
import sys
import io
import torch
import torch.nn as nn
from torchvision import transforms
from torch.utils.data import DataLoader
from torch.utils.data.sampler import SubsetRandomSampler
model_list = []
f = open(sys.argv[1], "r")
models = f.read().split(",")... | 19.55 | 56 | 0.734868 |
f70474925eb078c598d03d4255e4e76e7b6c9361 | 420 | py | Python | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2021-01-18T08:18:22.000Z | 2021-01-18T08:18:22.000Z | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2020-09-18T20:46:11.000Z | 2020-12-29T14:55:20.000Z | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 3 | 2020-09-12T15:32:11.000Z | 2022-03-11T23:08:03.000Z | # !/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Get hardware info from Bpod
"""
from pybpodapi.protocol import Bpod
from confapp import conf
my_bpod = Bpod()
my_bpod.close()
print("Target Bpod firmware version: ", conf.TARGET_BPOD_FIRMWARE_VERSION)
print("Firmware version (read from device): ", my_bpod.hardware.... | 21 | 81 | 0.742857 |
f704c0f9b4488488f3aae9f679bb84275d8e52d4 | 11,405 | py | Python | src/core/src/core_logic/PackageFilter.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 4 | 2020-06-01T14:36:30.000Z | 2021-08-24T16:55:50.000Z | src/core/src/core_logic/PackageFilter.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 34 | 2020-09-11T17:20:42.000Z | 2022-03-28T14:08:44.000Z | src/core/src/core_logic/PackageFilter.py | Azure/LinuxPatchExtension | 6af622afb4298805bdf47328d6bc66a785f7166b | [
"Apache-2.0"
] | 1 | 2020-12-28T10:13:20.000Z | 2020-12-28T10:13:20.000Z | # Copyright 2020 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 65.924855 | 216 | 0.728979 |
f70920a45d8b352e57cdd5c4ba4ed7a956b3f421 | 4,150 | py | Python | pyesgf/util.py | ggarcias/esgf-pyclient-cmip6 | 9e7975d2e676ed2c4001edb4e25c9c20cc16b7af | [
"BSD-3-Clause"
] | 17 | 2016-09-07T02:55:30.000Z | 2022-03-10T15:34:53.000Z | pyesgf/util.py | ggarcias/esgf-pyclient-cmip6 | 9e7975d2e676ed2c4001edb4e25c9c20cc16b7af | [
"BSD-3-Clause"
] | 61 | 2015-05-27T08:10:46.000Z | 2022-03-17T12:36:45.000Z | pyesgf/util.py | ggarcias/esgf-pyclient-cmip6 | 9e7975d2e676ed2c4001edb4e25c9c20cc16b7af | [
"BSD-3-Clause"
] | 22 | 2015-10-27T11:21:05.000Z | 2022-01-12T08:26:16.000Z | """
Utility functions using the pyesgf package.
"""
import sys
from urllib.parse import quote_plus
def ats_url(base_url):
"""
Return the URL for the ESGF SAML AttributeService
"""
# Strip '/' from url as necessary
base_url = base_url.rstrip('/')
return '/'.join([base_url,
... | 30.291971 | 78 | 0.576867 |
f709b6ad81d25a0c074deaa1308cf04158654f02 | 1,373 | py | Python | tests/book/ch05/classify_name.py | TITC/pyhanlp | ad062f358805da5bf97f78d9f37f441c06ae4d19 | [
"Apache-2.0"
] | null | null | null | tests/book/ch05/classify_name.py | TITC/pyhanlp | ad062f358805da5bf97f78d9f37f441c06ae4d19 | [
"Apache-2.0"
] | null | null | null | tests/book/ch05/classify_name.py | TITC/pyhanlp | ad062f358805da5bf97f78d9f37f441c06ae4d19 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Authorhankcs
# Date: 2018-06-21 19:46
# 5.3
# http://nlp.hankcs.com/book.php
# https://bbs.hankcs.com/
import sys,os# environment, adjust the priority
sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
from pyhanlp import *
from te... | 38.138889 | 112 | 0.718864 |
f70b82a64651b669501101e2383b4a201ac4b9ba | 5,305 | py | Python | tests/test_content_download.py | easydo-cn/edo_client | 775f185c54f2eeda6a7dd6482de8228ca9ad89b0 | [
"Apache-2.0"
] | null | null | null | tests/test_content_download.py | easydo-cn/edo_client | 775f185c54f2eeda6a7dd6482de8228ca9ad89b0 | [
"Apache-2.0"
] | null | null | null | tests/test_content_download.py | easydo-cn/edo_client | 775f185c54f2eeda6a7dd6482de8228ca9ad89b0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import io
import os
import shutil
import tempfile
import unittest
from edo_client import WoClient
def test_11_download_to_stream_all(self):
''''''
stream = io.BytesIO()
self.client.content.download_to_stream(
stream, url=self.download_url
)
sel... | 32.746914 | 106 | 0.590575 |
f70e1eec634ed0c89cd786687c6b726187e816d5 | 11,426 | py | Python | src/train.py | Gordonbuck/ml-oov-we | ce28cd8b556a16125ba36cd41781a3e60bb26422 | [
"MIT"
] | null | null | null | src/train.py | Gordonbuck/ml-oov-we | ce28cd8b556a16125ba36cd41781a3e60bb26422 | [
"MIT"
] | null | null | null | src/train.py | Gordonbuck/ml-oov-we | ce28cd8b556a16125ba36cd41781a3e60bb26422 | [
"MIT"
] | null | null | null | import higher
from leap import Leap
import numpy as np
import os
import torch
import torch.nn as nn
import gc
| 52.412844 | 120 | 0.591896 |
f70e20602d9329f0b785241b32a1ae744bf6d702 | 119 | py | Python | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | a = str(input('Enter the number you want to reverse:'))
b = (a[::-1])
c = int(b)
print('the reversed number is',c)
| 23.8 | 56 | 0.605042 |
f70ec64b9e31daafd1fb2f1ca0a900fb5ba86171 | 3,473 | py | Python | pyexcel_xls/xlsw.py | pyexcel/pyexcel-xls | 995cfd273d5360947a528ff3a1ed3f9e52a429ad | [
"BSD-3-Clause"
] | 40 | 2016-05-18T20:09:39.000Z | 2022-02-09T06:39:41.000Z | pyexcel_xls/xlsw.py | wenxuefeng3930/pyexcel-xls | 995cfd273d5360947a528ff3a1ed3f9e52a429ad | [
"BSD-3-Clause"
] | 46 | 2016-02-01T22:12:31.000Z | 2021-10-07T18:57:05.000Z | pyexcel_xls/xlsw.py | wenxuefeng3930/pyexcel-xls | 995cfd273d5360947a528ff3a1ed3f9e52a429ad | [
"BSD-3-Clause"
] | 24 | 2016-01-29T12:26:27.000Z | 2021-10-31T15:37:15.000Z | """
pyexcel_xlsw
~~~~~~~~~~~~~~~~~~~
The lower level xls file format handler using xlwt
:copyright: (c) 2016-2021 by Onni Software Ltd
:license: New BSD License
"""
import datetime
import xlrd
from xlwt import XFStyle, Workbook
from pyexcel_io import constants
from pyexcel_io.plugin_api import IW... | 31.008929 | 78 | 0.589692 |
f70ef0f412e5276c5b8da11a1ad63834bedea5f9 | 593 | py | Python | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 2 | 2021-06-09T20:55:17.000Z | 2021-11-03T03:07:37.000Z | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 4 | 2020-07-26T02:10:42.000Z | 2021-03-31T18:48:58.000Z | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 1 | 2020-07-25T23:57:23.000Z | 2020-07-25T23:57:23.000Z | """This package contains interfaces and functionality to compute pair-wise document similarities within a corpus
of documents.
"""
from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401
import logging
__version__ = '3.5.0'
logger = logging.getLogger('gens... | 28.238095 | 114 | 0.726813 |
f70efa147c6f9c7ee90e557fe0740d068a1ce522 | 213 | py | Python | tests/test_ai.py | divanorama/katrain | dc22aa88526fb6446f908259f06020d649a2d0a9 | [
"MIT"
] | null | null | null | tests/test_ai.py | divanorama/katrain | dc22aa88526fb6446f908259f06020d649a2d0a9 | [
"MIT"
] | null | null | null | tests/test_ai.py | divanorama/katrain | dc22aa88526fb6446f908259f06020d649a2d0a9 | [
"MIT"
] | null | null | null | import pytest
from katrain.core.constants import AI_STRATEGIES_RECOMMENDED_ORDER, AI_STRATEGIES
| 23.666667 | 81 | 0.798122 |
f70fbb21c94acb9d07d8e2e1ca75454e92d0eaf5 | 28,076 | py | Python | game_client.py | wenlianglaw/Tetris-in-Python | d4f0a22c4827e7eeb44c55def3f024e0c6932ebe | [
"MIT"
] | 1 | 2021-06-25T20:43:19.000Z | 2021-06-25T20:43:19.000Z | game_client.py | wenlianglaw/Tetris-in-Python | d4f0a22c4827e7eeb44c55def3f024e0c6932ebe | [
"MIT"
] | null | null | null | game_client.py | wenlianglaw/Tetris-in-Python | d4f0a22c4827e7eeb44c55def3f024e0c6932ebe | [
"MIT"
] | null | null | null | # This file defines the back end of the Tetris game
#
# GameState is the base class of GameClient.
#
# GameClient.Run() will start two threads:
# - _ProcessActions: Process the action list every x seconds
# - _AutoDrop: Auto drops the current piece.
#
# GameClient:
# - current piece
# - held piece
# - piece list... | 32.799065 | 123 | 0.63036 |
f711bbbc339573d1744df69fd2b79a94a7b3f1b9 | 2,615 | py | Python | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | # The MIT License
#
# Copyright (c) 2017 Tarlan Payments.
#
# 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... | 41.507937 | 120 | 0.728489 |
f712616c7f9dabddbf70b11e2c6cc653c11f9e33 | 1,931 | py | Python | cas9/score.py | cangtu/cot | 2ecbe83fe7bb3538f80692fc4412830f6c976558 | [
"MIT"
] | 1 | 2018-07-11T06:12:51.000Z | 2018-07-11T06:12:51.000Z | cas9/score.py | cangtu/cot | 2ecbe83fe7bb3538f80692fc4412830f6c976558 | [
"MIT"
] | null | null | null | cas9/score.py | cangtu/cot | 2ecbe83fe7bb3538f80692fc4412830f6c976558 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright @ 0x6c78.
#
# 16-10-20 1:27 0x6c78@gmail.com
#
# Distributed under terms of the MIT License
from operator import mul
from itertools import combinations
| 26.094595 | 88 | 0.518384 |
f71362b0a4e90908b800515208bd4b73487ecd9e | 1,823 | py | Python | RiotGames/API/Match.py | Timohiho/RiotGames | f75256cca1b5c224393dca99296a6163b70b335f | [
"MIT"
] | 2 | 2021-05-05T12:33:51.000Z | 2021-12-15T13:08:44.000Z | RiotGames/API/Match.py | Timohiho/RiotGames | f75256cca1b5c224393dca99296a6163b70b335f | [
"MIT"
] | null | null | null | RiotGames/API/Match.py | Timohiho/RiotGames | f75256cca1b5c224393dca99296a6163b70b335f | [
"MIT"
] | null | null | null | # Copyright (c) 2021.
# The copyright lies with Timo Hirsch-Hoffmann, the further use is only permitted with reference to source
import urllib.request
from RiotGames.API.RiotApi import RiotApi
| 28.936508 | 114 | 0.580362 |
f714e5ccca4b369e0fbd09fb0a4e6218788b9ed7 | 3,513 | py | Python | google_or_tools/coloring_ip_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | google_or_tools/coloring_ip_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | google_or_tools/coloring_ip_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | # Copyright 2021 Hakan Kjellerstrand hakank@gmail.com
#
# 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 ... | 27.232558 | 78 | 0.63507 |
f715d5acbe3a069259390dee428b7666dca26c08 | 9,706 | py | Python | src/intermediate_representation/sem_utils.py | ckosten/ValueNet4SPARQL | de320a2f0e1a4c5a6c0e5cc79057dda9901046e8 | [
"Apache-2.0"
] | null | null | null | src/intermediate_representation/sem_utils.py | ckosten/ValueNet4SPARQL | de320a2f0e1a4c5a6c0e5cc79057dda9901046e8 | [
"Apache-2.0"
] | null | null | null | src/intermediate_representation/sem_utils.py | ckosten/ValueNet4SPARQL | de320a2f0e1a4c5a6c0e5cc79057dda9901046e8 | [
"Apache-2.0"
] | 1 | 2021-09-23T13:02:45.000Z | 2021-09-23T13:02:45.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# -*- coding: utf-8 -*-
"""
# @Time : 2019/5/27
# @Author : Jiaqi&Zecheng
# @File : sem_utils.py
# @Software: PyCharm
"""
import os
import json
import re as regex
import spacy
from nltk.stem import WordNetLemmatizer
wordnet_lemmatizer =... | 46.888889 | 117 | 0.474861 |
f718b4fadc70811185014ceea7a2ac977f84aa08 | 1,472 | py | Python | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 20 | 2021-04-09T09:08:53.000Z | 2022-03-16T09:45:36.000Z | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 15 | 2021-04-19T07:04:56.000Z | 2022-03-12T00:57:44.000Z | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 14 | 2021-04-19T04:39:04.000Z | 2021-10-08T22:19:58.000Z | import os
import unittest
from flask import current_app
from flask_testing import TestCase
from core import masakhane
if __name__ == '__main__':
unittest.main() | 32 | 77 | 0.688179 |
f719bed52604d78cd372c38b0ba41bc4f013d7b2 | 311 | py | Python | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | 1 | 2021-09-17T11:56:38.000Z | 2021-09-17T11:56:38.000Z | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | null | null | null | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | null | null | null | from flask import Blueprint
from controllers.show import shows, create_shows, create_show_submission
show_bp = Blueprint('show_bp', __name__)
show_bp.route('/', methods=['GET'])(shows)
show_bp.route('/create', methods=['GET'])(create_shows)
show_bp.route('/create', methods=['POST'])(create_show_submission)
| 31.1 | 72 | 0.762058 |
f719f32c0de53ae35c0223c63678dbad415c2f11 | 22 | py | Python | __init__.py | andy-96/GFPGAN | 0ed1214760170cc27fdfd60da1f64a0699a28cf4 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | andy-96/GFPGAN | 0ed1214760170cc27fdfd60da1f64a0699a28cf4 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | andy-96/GFPGAN | 0ed1214760170cc27fdfd60da1f64a0699a28cf4 | [
"BSD-3-Clause"
] | null | null | null | from .gfpgan import *
| 11 | 21 | 0.727273 |
f71a808666b13ce290442e22bb59d1788d36b370 | 1,950 | py | Python | tools/find_run_binary.py | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 6,304 | 2015-01-05T23:45:12.000Z | 2022-03-31T09:48:13.000Z | third_party/skia/tools/find_run_binary.py | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 459 | 2016-09-29T00:51:38.000Z | 2022-03-07T14:37:46.000Z | third_party/skia/tools/find_run_binary.py | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 1,231 | 2015-01-05T03:17:39.000Z | 2022-03-31T22:54:58.000Z | #!/usr/bin/python
# Copyright (c) 2014 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.
"""Module that finds and runs a binary by looking in the likely locations."""
import os
import subprocess
import sys
def run_comman... | 31.451613 | 77 | 0.615385 |
f71b20c6a58525d0ad6e5a5b0ad92dbbdf9f5849 | 1,599 | py | Python | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | null | null | null | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | 3 | 2021-06-18T15:13:46.000Z | 2021-06-18T18:24:43.000Z | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
# Create your tests here.
| 34.76087 | 70 | 0.642276 |
f71b9e37908dd5da30752301903bfc85504aa496 | 728 | py | Python | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
file_name = 'test_doc.docx'
# Upload original document to cloud stora... | 38.315789 | 108 | 0.787088 |
f71c77d1c0f627d4c0d8120689ae89c7e1a43d86 | 2,577 | py | Python | agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py | cicorias/agogosml | 60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1 | [
"MIT"
] | 13 | 2018-12-07T21:02:20.000Z | 2019-02-22T14:36:31.000Z | agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py | cicorias/agogosml | 60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1 | [
"MIT"
] | 43 | 2018-11-30T11:31:43.000Z | 2019-04-03T16:09:06.000Z | agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py | cicorias/agogosml | 60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1 | [
"MIT"
] | 13 | 2018-11-29T00:31:29.000Z | 2019-02-22T18:50:28.000Z | import json
import os
import sys
import time
from agogosml.common.abstract_streaming_client import find_streaming_clients
from agogosml.tools.sender import send
from agogosml.tools.receiver import receive
eh_base_config = {
"EVENT_HUB_NAMESPACE": os.getenv("EVENT_HUB_NAMESPACE"),
"EVENT_HUB_NAME": os.getenv("... | 28.955056 | 109 | 0.73962 |
f71c9a76519602baf175d90363655dc76c65ea28 | 512 | py | Python | MobileRevelator/python/postbank_finanzassistent_decrypt.py | ohunecker/MR | b0c93436c7964d87a0b8154f8b7662b1731124b9 | [
"MIT"
] | 98 | 2019-02-03T22:50:24.000Z | 2022-03-17T12:50:56.000Z | MobileRevelator/python/postbank_finanzassistent_decrypt.py | cewatkins/MR | 5ba553fd0eb4c1d80842074a553119486f005822 | [
"MIT"
] | 10 | 2019-03-14T20:12:10.000Z | 2020-05-23T10:37:54.000Z | MobileRevelator/python/postbank_finanzassistent_decrypt.py | cewatkins/MR | 5ba553fd0eb4c1d80842074a553119486f005822 | [
"MIT"
] | 30 | 2019-02-03T22:50:27.000Z | 2022-03-30T12:37:30.000Z | #Filename="finanzassistent"
#Type=Prerun
import os
| 34.133333 | 78 | 0.6875 |
f71d87a97f28b6912c291299e2155b00941ed654 | 1,615 | py | Python | imcsdk/__init__.py | kenrusse/imcsdk | c35ec5d41072c3ea82c64b1b66e0650d1d873657 | [
"Apache-2.0"
] | null | null | null | imcsdk/__init__.py | kenrusse/imcsdk | c35ec5d41072c3ea82c64b1b66e0650d1d873657 | [
"Apache-2.0"
] | null | null | null | imcsdk/__init__.py | kenrusse/imcsdk | c35ec5d41072c3ea82c64b1b66e0650d1d873657 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 26.47541 | 92 | 0.721981 |
f71e495c79f4bb1a1505cad9bdde64d7e37c7ba1 | 1,293 | py | Python | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | 8 | 2022-01-23T10:51:59.000Z | 2022-03-29T22:11:57.000Z | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE fo... | 23.509091 | 86 | 0.622583 |
f71f18898c8292f215084d67a0492fc48f5a9d6c | 8,974 | py | Python | main.py | PabloEmidio/Know-Weather-GTK | 797f25cbd0c8e1a2f124a5328d9decf2f3829252 | [
"MIT"
] | 4 | 2021-05-06T02:07:02.000Z | 2021-05-06T17:48:08.000Z | main.py | PabloEmidio/Know-Weather-GTK | 797f25cbd0c8e1a2f124a5328d9decf2f3829252 | [
"MIT"
] | null | null | null | main.py | PabloEmidio/Know-Weather-GTK | 797f25cbd0c8e1a2f124a5328d9decf2f3829252 | [
"MIT"
] | null | null | null | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from datetime import datetime
from api_request import Weather
builder = Gtk.Builder()
builder.add_from_file('./glade/main.glade')
builder.connect_signals(Handler())
window = builder.get_object('window')
window.show_all()
Gtk.main() | 53.736527 | 131 | 0.622131 |
f71f497fb7582513c2d45b7633de0c7c9d7f7303 | 3,186 | py | Python | talk_lib/tests/testtalk.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | talk_lib/tests/testtalk.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | 1 | 2020-02-05T13:00:29.000Z | 2020-02-05T13:00:29.000Z | talk_lib/tests/testtalk.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
import unittest
from google.appengine.ext import testbed
... | 29.775701 | 73 | 0.605775 |
f71f6972720d1f87a308457a99c2da6ef6fe19d9 | 63,620 | py | Python | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2018/11/26 19:28
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 104.638158 | 120 | 0.623546 |
f7216012bdabcc6a4f76ac1521c5236c58f42c7a | 393 | py | Python | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | 10 | 2021-12-09T04:39:03.000Z | 2022-02-07T05:42:29.000Z | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | 2 | 2022-02-07T18:12:54.000Z | 2022-02-10T10:27:37.000Z | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | null | null | null | from django.urls import path
from .api import *
from knox import views as knox_views
urlpatterns = [
#domain.dn/api/v1/register/ | POST
path('register/' , SignUpAPI.as_view() , name='register'),
#domain.dn/api/v1/register/ | POST
path('login/' , SignInAPI.as_view() , name='login'),
#domain.dn/ap... | 21.833333 | 62 | 0.64631 |
f725220f95e7ed6a18489ee1563dd48ce5f224d6 | 2,985 | py | Python | solutions/day18.py | nitekat1124/advent-of-code-2021 | 74501b84f0a08b33f48b4e5a2d66b8293c854150 | [
"WTFPL"
] | 3 | 2021-12-22T17:44:39.000Z | 2022-01-14T17:18:15.000Z | solutions/day18.py | nitekat1124/advent-of-code-2021 | 74501b84f0a08b33f48b4e5a2d66b8293c854150 | [
"WTFPL"
] | null | null | null | solutions/day18.py | nitekat1124/advent-of-code-2021 | 74501b84f0a08b33f48b4e5a2d66b8293c854150 | [
"WTFPL"
] | null | null | null | import re
from itertools import combinations
from utils.solution_base import SolutionBase
| 34.310345 | 114 | 0.524958 |