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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a9b559c6d7c0db14da8219dc9c4e053b7a27ff8 | 442 | bzl | Python | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | DEFAULT_MIRRORS = {
"bitbucket": [
"https://bitbucket.org/{repository}/get/{commit}.tar.gz",
],
"buildifier": [
"https://github.com/bazelbuild/buildtools/releases/download/{version}/{filename}",
],
"github": [
"https://github.com/{repository}/archive/{commit}.tar.gz",
],
... | 29.466667 | 98 | 0.58371 |
4a9cb65121c1db2693bb70ca50a62adb977ff292 | 2,059 | py | Python | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | null | null | null | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | 2 | 2020-12-09T02:41:54.000Z | 2020-12-09T02:45:43.000Z | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 6 21:15:23 2017
@author: yolandatiao
"""
import csv
import glob
import os
from astropy.io import ascii # For using ascii table to open csv
from astropy.table import Table, Column # For using astropy table functions
os.chdir("/Volumes/Huitian/... | 21.226804 | 78 | 0.629432 |
4a9cba0b5388d429f06edbee8329e6af7d50f140 | 674 | py | Python | tests/test_vendcrawler.py | josetaas/vendcrawler | 5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062 | [
"MIT"
] | null | null | null | tests/test_vendcrawler.py | josetaas/vendcrawler | 5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062 | [
"MIT"
] | null | null | null | tests/test_vendcrawler.py | josetaas/vendcrawler | 5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062 | [
"MIT"
] | null | null | null | import unittest
from vendcrawler.scripts.vendcrawler import VendCrawler
if __name__ == '__main__':
unittest.main()
| 32.095238 | 73 | 0.615727 |
4aa2559e81941797f8eb297eceb0ea501eab99d6 | 7,104 | py | Python | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | null | null | null | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | null | null | null | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | 1 | 2022-02-07T08:09:15.000Z | 2022-02-07T08:09:15.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import time
import json
import os
import sys
import time
import urllib
import socket
import argparse
import requests
import lib.common as common
base_url = 'http://localhost:24879/player/'
#------------------------------------------------------------------------------#
# ... | 39.466667 | 91 | 0.366273 |
4aa2c859139d7fe0cc49624a8f1cffa727776312 | 9,913 | py | Python | Segment/models/other/fcn.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | Segment/models/other/fcn.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | Segment/models/other/fcn.py | YuHe0108/cvmodule | ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd | [
"Apache-2.0"
] | null | null | null | # from tensorflow.keras import Model, Input
# from tensorflow.keras.applications import vgg16, resnet50
# from tensorflow.keras.layers import (Conv2D, Conv2DTranspose, Cropping2D, add, Dropout, Reshape, Activation)
# from tensorflow.keras import layers
# import tensorflow as tf
#
# """
# FCN-8:
# 1(fc)(full... | 42.182979 | 121 | 0.605468 |
4aa366c3a95eb19c5533d5c2db8cc7a7e0760866 | 1,331 | py | Python | tests/Python/test_all_configs_output.py | lopippo/IsoSpec | dfc6d7dac213f174fb9c61a5ee018d3f6174febc | [
"BSD-2-Clause"
] | 27 | 2016-05-10T21:27:35.000Z | 2022-03-30T08:11:36.000Z | tests/Python/test_all_configs_output.py | lopippo/IsoSpec | dfc6d7dac213f174fb9c61a5ee018d3f6174febc | [
"BSD-2-Clause"
] | 30 | 2017-08-08T14:24:56.000Z | 2022-03-30T12:44:11.000Z | tests/Python/test_all_configs_output.py | lopippo/IsoSpec | dfc6d7dac213f174fb9c61a5ee018d3f6174febc | [
"BSD-2-Clause"
] | 10 | 2017-06-26T12:14:00.000Z | 2020-11-01T13:45:14.000Z | def binom(n, k):
"""Quickly adapted from https://stackoverflow.com/questions/26560726/python-binomial-coefficient"""
if k < 0 or k > n:
return 0
if k == 0 or k == n:
return 1
total_ways = 1
for i in range(min(k, n - k)):
total_ways = total_ways * (n - i) // (i + 1)
return... | 28.319149 | 103 | 0.602554 |
4aa38327240010c87a37f52f085b58c65fe79f76 | 5,090 | py | Python | tractseg/models/UNet_Pytorch_Regression.py | soichih/TractSeg | f78d0c6dc998905e593cbf4346745467e30d1979 | [
"Apache-2.0"
] | null | null | null | tractseg/models/UNet_Pytorch_Regression.py | soichih/TractSeg | f78d0c6dc998905e593cbf4346745467e30d1979 | [
"Apache-2.0"
] | null | null | null | tractseg/models/UNet_Pytorch_Regression.py | soichih/TractSeg | f78d0c6dc998905e593cbf4346745467e30d1979 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ)
#
# 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
#... | 40.07874 | 167 | 0.678978 |
4aa4605e775071451ff4f02953c5854fc600fb27 | 1,619 | py | Python | platform/core/polyaxon/sidecar/sidecar/__main__.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/sidecar/sidecar/__main__.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/sidecar/sidecar/__main__.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | import argparse
import time
from kubernetes.client.rest import ApiException
from polyaxon_client.client import PolyaxonClient
from polyaxon_k8s.manager import K8SManager
from sidecar import settings
from sidecar.monitor import is_pod_running
if __name__ == '__main__':
parser = argparse.ArgumentParser()
pars... | 27.440678 | 79 | 0.6084 |
4aa4e20dc8b2673c6655b3fbcb68df91576905a0 | 615 | py | Python | simple_robot_tests/src/test_odometry.py | plusangel/simple_robot | d9ad5ed8cd592f4aee14df13465435279b4d60d7 | [
"MIT"
] | 1 | 2022-03-02T14:55:27.000Z | 2022-03-02T14:55:27.000Z | simple_robot_tests/src/test_odometry.py | plusangel/simple_robot | d9ad5ed8cd592f4aee14df13465435279b4d60d7 | [
"MIT"
] | null | null | null | simple_robot_tests/src/test_odometry.py | plusangel/simple_robot | d9ad5ed8cd592f4aee14df13465435279b4d60d7 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import rospy
from nav_msgs.msg import Odometry
if __name__ == "__main__":
rospy.init_node('odom_topic_subscriber')
odom_reader_object = OdomTopicReader()
rate = rospy.Rate(10)
while not rospy.is_shutdown():
rate.sleep()
| 26.73913 | 85 | 0.681301 |
4aa67ef1976bb462a8e4797f9376dea3623f23b3 | 4,432 | py | Python | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 100 | 2020-12-01T02:40:12.000Z | 2021-09-09T08:14:22.000Z | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2021-01-05T00:16:17.000Z | 2021-09-10T03:24:01.000Z | test/test_random.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2020-12-01T19:07:08.000Z | 2021-08-30T14:20:07.000Z | """Tests for quantization"""
import numpy as np
import unittest
import os
import shutil
import yaml
import tensorflow as tf
if __name__ == "__main__":
unittest.main()
| 32.115942 | 108 | 0.559792 |
4aa6a27eafd16cd1848b1b408b9c5ae618566d25 | 43,229 | py | Python | cirq/google/engine/engine_client_test.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | 1 | 2020-04-06T17:06:10.000Z | 2020-04-06T17:06:10.000Z | cirq/google/engine/engine_client_test.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | null | null | null | cirq/google/engine/engine_client_test.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | 1 | 2020-04-14T15:29:29.000Z | 2020-04-14T15:29:29.000Z | # Copyright 2020 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 39.478539 | 80 | 0.637373 |
4aa74af42d1bc1038ceab671898746be1f6af4af | 3,163 | py | Python | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v0.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2
from google.ads.google_ads.v0.proto.services import media_file_service_pb2 as google_dot... | 48.661538 | 163 | 0.812204 |
4aa9aadd40d912fb75115061e304f8eab10a0530 | 15,044 | py | Python | docs/generate_example_images.py | KhaledSharif/kornia | 9bae28e032b092b065658117723a82816d09dbac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | docs/generate_example_images.py | KhaledSharif/kornia | 9bae28e032b092b065658117723a82816d09dbac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | docs/generate_example_images.py | KhaledSharif/kornia | 9bae28e032b092b065658117723a82816d09dbac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import importlib
import math
import os
from pathlib import Path
from typing import Optional, Tuple
import cv2
import numpy as np
import requests
import torch
import kornia as K
if __name__ == "__main__":
main()
| 42.982857 | 120 | 0.545865 |
4aa9bb3cf3909a79588350f79db082251d5ab096 | 3,318 | py | Python | forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py | Pushkar-Bhuse/forte | b7402330cf0b2b26fe56234f0ae43c89b31c0082 | [
"Apache-2.0"
] | null | null | null | forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py | Pushkar-Bhuse/forte | b7402330cf0b2b26fe56234f0ae43c89b31c0082 | [
"Apache-2.0"
] | null | null | null | forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py | Pushkar-Bhuse/forte | b7402330cf0b2b26fe56234f0ae43c89b31c0082 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The Forte 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 ... | 36.065217 | 77 | 0.676311 |
4aa9bbcefe6db481163c6d0a501873756cbebc17 | 565 | py | Python | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/experiments.py | FelixSchwarz/sentry | 7c92c4fa2b6b9f214764f48c82594acae1549e52 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, absolute_import
from sentry import analytics
from sentry.signals import join_request_created, join_request_link_viewed
| 33.235294 | 91 | 0.823009 |
4aaa0313e4b848ea3e028c07ae2b856db9916524 | 715 | py | Python | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | 1 | 2017-05-05T12:01:43.000Z | 2017-05-05T12:01:43.000Z | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | null | null | null | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import RedirectView
from django.views.generic import TemplateView
from django.contrib.sitemaps.views import sitemap
from django.conf import settings
from blog.sitemaps import ArticleSitemap
urlpatterns = [
url(r'^... | 29.791667 | 103 | 0.721678 |
4aaa0768bd968c91cbf077505e1dc0e7ee6365c8 | 34,840 | py | Python | ion_functions/qc/qc_functions.py | steinermg/ion-functions | cea532ad9af51e86768572c8deb48547d99567c5 | [
"Apache-2.0"
] | 10 | 2015-04-03T15:32:21.000Z | 2018-11-21T11:57:26.000Z | ion_functions/qc/qc_functions.py | steinermg/ion-functions | cea532ad9af51e86768572c8deb48547d99567c5 | [
"Apache-2.0"
] | 8 | 2015-01-07T15:19:22.000Z | 2015-12-08T18:14:04.000Z | ion_functions/qc/qc_functions.py | steinermg/ion-functions | cea532ad9af51e86768572c8deb48547d99567c5 | [
"Apache-2.0"
] | 17 | 2015-01-14T16:23:00.000Z | 2021-07-19T08:26:52.000Z | #!/usr/bin/env python
"""
@package ion_functions.qc_functions
@file ion_functions/qc_functions.py
@author Christopher Mueller
@brief Module containing QC functions ported from matlab samples in DPS documents
"""
from ion_functions.qc.qc_extensions import stuckvalues, spikevalues, gradientvalues, ntp_to_month
import ... | 37.746479 | 215 | 0.632319 |
4aaa32daecbc845e7f79a56464fde4fa9e4bd81d | 10,702 | py | Python | datatest/__past__/api08.py | avshalomt2/datatest | f622b0e990b53c73f56730a9009b39af7653df20 | [
"Apache-2.0"
] | null | null | null | datatest/__past__/api08.py | avshalomt2/datatest | f622b0e990b53c73f56730a9009b39af7653df20 | [
"Apache-2.0"
] | null | null | null | datatest/__past__/api08.py | avshalomt2/datatest | f622b0e990b53c73f56730a9009b39af7653df20 | [
"Apache-2.0"
] | null | null | null | """Backward compatibility for version 0.8 API."""
from __future__ import absolute_import
import inspect
import datatest
from datatest._compatibility import itertools
from datatest._compatibility.collections.abc import Sequence
from datatest._load.get_reader import get_reader
from datatest._load.load_csv import load_cs... | 36.03367 | 86 | 0.652775 |
4aab427f1e96678aba34462ced9f7928129f2aef | 7,288 | py | Python | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | 1 | 2016-05-08T14:35:25.000Z | 2016-05-08T14:35:25.000Z | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2008 Owen Taylor
#
# This file is part of Reinteract and distributed under the terms
# of the BSD license. See the file COPYING in the Reinteract
# distribution for full details.
#
########################################################################
import os
import gobject
import gtk
import pango
fr... | 29.387097 | 109 | 0.565587 |
4aabc93bad87b0dbf891bc8cb36cc3c5cdca1038 | 5,975 | py | Python | python/scripts/compare_events.py | tvogels01/arthur-redshift-etl | 477f822d16cd3a86b3bf95cfa28915cb7470a6e4 | [
"MIT"
] | null | null | null | python/scripts/compare_events.py | tvogels01/arthur-redshift-etl | 477f822d16cd3a86b3bf95cfa28915cb7470a6e4 | [
"MIT"
] | 44 | 2021-11-22T02:18:41.000Z | 2022-03-28T02:13:32.000Z | python/scripts/compare_events.py | tvogels01/arthur-redshift-etl | 477f822d16cd3a86b3bf95cfa28915cb7470a6e4 | [
"MIT"
] | null | null | null | """
This script compares events from two ETLs to highlight differences in elapsed times or row counts.
* Pre-requisites
You need to have a list of events for each ETL. Arthur can provide this using the
"query_events" command.
For example:
```
arthur.py query_events -p development 37ACEC7440AB4620 -q > 37ACEC7440AB46... | 33.948864 | 101 | 0.654226 |
4aacfc97b162e67687e0053e093dc275ef1915a8 | 4,163 | py | Python | harness/drifter.py | cmu-sei/augur-code | d8c1e29ce3276037b26b65ea316d251752529449 | [
"BSD-3-Clause"
] | null | null | null | harness/drifter.py | cmu-sei/augur-code | d8c1e29ce3276037b26b65ea316d251752529449 | [
"BSD-3-Clause"
] | null | null | null | harness/drifter.py | cmu-sei/augur-code | d8c1e29ce3276037b26b65ea316d251752529449 | [
"BSD-3-Clause"
] | null | null | null | # Augur: A Step Towards Realistic Drift Detection in Production MLSystems - Code
# Copyright 2022 Carnegie Mellon University.
#
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITH... | 54.064935 | 513 | 0.764833 |
4aadfd2d97ab81dd6472cc9d6d7741a3c62a553c | 2,316 | py | Python | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/Project-DMS-Web | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 11 | 2017-07-04T07:44:07.000Z | 2017-09-19T12:56:55.000Z | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | null | null | null | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 2 | 2017-10-23T06:11:16.000Z | 2017-10-26T03:27:57.000Z | SURVEY_POST = {
'tags': [' '],
'description': ' ',
'parameters': [
{
'name': 'Authorization',
'description': 'JWT Token',
'in': 'header',
'type': 'str',
'required': True
},
{
'name': 'title',
'descrip... | 23.16 | 47 | 0.345423 |
4aae62b164701dc61724cb01ba008cf15083826f | 8,528 | py | Python | network/baselines_archive/resnet_3d101.py | xuyu0010/ARID_v1 | b03d0975f41547e8aa78929b8e26a62248f8e18f | [
"CC-BY-4.0"
] | 5 | 2020-06-24T07:33:36.000Z | 2021-11-30T17:52:08.000Z | network/baselines_archive/resnet_3d101.py | xuyu0010/ARID_v1 | b03d0975f41547e8aa78929b8e26a62248f8e18f | [
"CC-BY-4.0"
] | 1 | 2022-03-29T05:23:24.000Z | 2022-03-29T06:19:57.000Z | network/baselines_archive/resnet_3d101.py | xuyu0010/ARID_v1 | b03d0975f41547e8aa78929b8e26a62248f8e18f | [
"CC-BY-4.0"
] | 3 | 2021-02-06T10:56:30.000Z | 2022-01-18T18:50:12.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import math
from functools import partial
import logging
import os
try:
from . import initializer
from .utils import load_state
except:
import initializer
from utils import load_state
__all__ = ['Re... | 31.238095 | 124 | 0.533654 |
4ab01eaed0874fd5f366410cee4ae62597dd8de5 | 4,167 | py | Python | tests/ninety_nine_problems/test_miscellaneous_problems.py | gecBurton/inference_logic | 2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6 | [
"MIT"
] | 3 | 2020-10-19T20:35:24.000Z | 2020-10-21T07:13:02.000Z | tests/ninety_nine_problems/test_miscellaneous_problems.py | gecBurton/inference_logic | 2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6 | [
"MIT"
] | 2 | 2020-11-10T16:54:13.000Z | 2020-11-10T18:51:31.000Z | tests/ninety_nine_problems/test_miscellaneous_problems.py | gecBurton/inference_logic | 2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6 | [
"MIT"
] | 1 | 2020-10-21T07:13:14.000Z | 2020-10-21T07:13:14.000Z | import pytest
from inference_logic import Rule, Variable, search
from inference_logic.data_structures import Assert, Assign
| 35.313559 | 88 | 0.538037 |
4ab03ce1ed84ecb90d03ef035bc80050cf57b143 | 4,856 | py | Python | airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py | ipa320/airbus_coop | 974564807ba5d24096e237a9991311608a390da1 | [
"Apache-2.0"
] | 4 | 2017-10-15T23:32:24.000Z | 2019-12-26T12:31:53.000Z | airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py | ipa320/airbus_coop | 974564807ba5d24096e237a9991311608a390da1 | [
"Apache-2.0"
] | 6 | 2017-09-05T13:52:00.000Z | 2017-12-01T14:18:27.000Z | airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py | ipa320/airbus_coop | 974564807ba5d24096e237a9991311608a390da1 | [
"Apache-2.0"
] | 4 | 2017-09-04T08:14:36.000Z | 2017-09-18T07:22:21.000Z | #!/usr/bin/env python
#
# Copyright 2015 Airbus
# Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
#
# 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
#
# ... | 35.97037 | 150 | 0.691928 |
4ab09ca1eb1f8969f1a877484a232ef5df5d51ce | 253 | py | Python | sanansaattaja/website/forms/comment_form.py | KEZKA/YL-WEB-PROJECT | dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f | [
"MIT"
] | 3 | 2020-04-04T12:48:11.000Z | 2020-05-03T04:12:34.000Z | sanansaattaja/website/forms/comment_form.py | KEZKA/YL-WEB-PROJECT | dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f | [
"MIT"
] | null | null | null | sanansaattaja/website/forms/comment_form.py | KEZKA/YL-WEB-PROJECT | dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f | [
"MIT"
] | 3 | 2020-03-24T15:49:50.000Z | 2020-05-04T14:00:27.000Z | from flask_wtf import FlaskForm
from wtforms import SubmitField, TextAreaField
from wtforms.validators import DataRequired
| 28.111111 | 61 | 0.790514 |
4ab14530560ea0c6ff68422c45af6c1228280da2 | 758 | py | Python | graphgallery/functional/dense/onehot.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | 1 | 2020-07-29T08:00:32.000Z | 2020-07-29T08:00:32.000Z | graphgallery/functional/dense/onehot.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | null | null | null | graphgallery/functional/dense/onehot.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | null | null | null | import numpy as np
from ..transform import DenseTransform
from ..decorators import multiple
from ..transform import Transform
__all__ = ['onehot', 'Onehot']
| 25.266667 | 84 | 0.634565 |
4ab1c757764878f4d5cd5d264e6b8d82bbff63ba | 12,893 | py | Python | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | null | null | null | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | null | null | null | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | 1 | 2018-10-20T12:00:53.000Z | 2018-10-20T12:00:53.000Z | """Handles data storage for Users, rides and requests
"""
# pylint: disable=E1101
import datetime
from flask import make_response, jsonify, current_app
from werkzeug.security import generate_password_hash
import psycopg2
import config
from databasesetup import db
| 39.307927 | 173 | 0.556891 |
4ab3a002c74475748d23b9510c6318a19949f281 | 752 | py | Python | lesson06/liqi/test.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson06/liqi/test.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson06/liqi/test.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | import configparser
'''
config = configparser.ConfigParser()
config.read('db.ini')
print(config.sections())
print(dict(config['mysqld'])['symbolic-links'])
'''
result, ok = ReadConfig('db.ini', 'mysqld', 'socket')
print(ok)
print(result)
if __name__ == '__main__':
ReadConfig('db.ini','mysqld','socket') | 22.117647 | 53 | 0.640957 |
4ab3ac9ae685aecfb387f1a734cc96132d725108 | 1,947 | py | Python | core/forms.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | core/forms.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | core/forms.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Forms wrapper
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ------------------------------------------------------------------... | 32.45 | 83 | 0.558295 |
4ab43c897df779b46c4155028b30eff4d2ad17d1 | 1,990 | py | Python | ersteops/unit/views.py | Prescrypto/ErsteOps | 0b744173fb4f500003c96c4dcb26fb67d6eaa5ec | [
"MIT"
] | null | null | null | ersteops/unit/views.py | Prescrypto/ErsteOps | 0b744173fb4f500003c96c4dcb26fb67d6eaa5ec | [
"MIT"
] | 33 | 2017-11-24T19:44:57.000Z | 2022-02-12T07:02:53.000Z | ersteops/unit/views.py | Prescrypto/ErsteOps | 0b744173fb4f500003c96c4dcb26fb67d6eaa5ec | [
"MIT"
] | 1 | 2017-12-11T09:15:04.000Z | 2017-12-11T09:15:04.000Z | import json
from django.shortcuts import get_object_or_404
from django.core import serializers
from django.http import HttpResponse
from .models import Unit
from .utils import UNIT_LIST_FIELD
BAD_REQUEST = HttpResponse(json.dumps({'error': 'Bad Request'}), status=400, content_type='application/json')
def unit_json_li... | 39.019608 | 123 | 0.665327 |
4ab456260f6c742ad312aaa99e3e2590ddc0675c | 731 | py | Python | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | '''
ex029: Escreva um programa que leia a velocidade de uma carro. Se ele ultrapassar 80 km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite.
'''
from colorise import set_color, reset_color
cor = {
'limpa':'\033[m',
'white':'\033[1;97m'
}
set_color(fg='... | 36.55 | 195 | 0.679891 |
4ab62b5efbeb5c0a7886f27f8824551ce65f3eab | 256 | py | Python | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | 4 | 2017-06-14T14:50:05.000Z | 2019-07-29T16:51:24.000Z | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | null | null | null | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.4
# coding: utf-8
| 15.058824 | 64 | 0.648438 |
4ab74d6454f4022c0cd33cf7aa9d2924c227290a | 2,394 | py | Python | src/action/tests/test_logic.py | uts-cic/ontask_b | b313e2352c77b40655f41dd5acba3a7635e6f3b3 | [
"MIT"
] | 3 | 2018-08-24T10:48:40.000Z | 2020-05-29T06:33:23.000Z | src/action/tests/test_logic.py | Lukahm/ontask | f16bdaa06ea450ee56d4581340e611b1076bed16 | [
"MIT"
] | null | null | null | src/action/tests/test_logic.py | Lukahm/ontask | f16bdaa06ea450ee56d4581340e611b1076bed16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
from django.conf import settings
from django.shortcuts import reverse
from django.core.management import call_command
import test
from dataops import pandas_db
from workflow.models import Workflow
| 38.612903 | 202 | 0.704678 |
4ab90259acfbeda3412addc434ad2001de65b77a | 5,371 | py | Python | obniz/parts/Moving/StepperMotor/__init__.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 11 | 2019-03-22T12:02:11.000Z | 2021-01-21T04:57:18.000Z | obniz/parts/Moving/StepperMotor/__init__.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 5 | 2019-03-02T08:28:25.000Z | 2021-02-02T22:06:37.000Z | obniz/parts/Moving/StepperMotor/__init__.py | izm51/obniz-python-sdk | 40a738b5fe2c0a415cdc09f46d28c143982bfb07 | [
"MIT"
] | 3 | 2019-07-20T06:55:09.000Z | 2019-12-04T05:05:00.000Z | from attrdict import AttrDefault
import asyncio
def current_distance(self):
return self.current_step / self.milli_meter_step_count
def _get_step_instructions(self):
return self._step_instructions[self._step_type] | 37.559441 | 135 | 0.571216 |
4ab990bdf241333adbd85027e848b2433fdf4b53 | 52 | py | Python | basic_assignment/39.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | basic_assignment/39.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | basic_assignment/39.py | 1212091/python-learning | 30fad66460daf73fd3961cf667ee25b91dee923d | [
"MIT"
] | null | null | null | input_num = raw_input()
print(str(eval(input_num)))
| 17.333333 | 27 | 0.75 |
4ab9a2726c38f9bfc3c6566bc523e4832e60605f | 2,808 | py | Python | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2020-08-17T05:56:16.000Z | 2020-08-17T05:56:16.000Z | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 5 | 2020-06-05T17:51:56.000Z | 2022-01-13T00:42:51.000Z | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2015-02-23T22:54:00.000Z | 2015-02-23T22:54:00.000Z | from django.contrib import admin
from django.db.models import Count
from reversion.admin import VersionAdmin
from website.apps.lexicon.models import Lexicon
from website.apps.entry.models import Task, TaskLog, Wordlist, WordlistMember
from website.apps.core.admin import TrackedModelAdmin
admin.sit... | 33.428571 | 103 | 0.666667 |
4abb4683ee2e4ff41f7985424a94c70975cdae94 | 356 | py | Python | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import re
import sys
sys.dont_write_bytecode = True
from pprint import pprint
from base import BaseFest2Bash
| 19.777778 | 49 | 0.710674 |
4abb8389f46537b21c77c0aa5024c68649d338e4 | 2,241 | py | Python | opennem/utils/scrapyd.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 22 | 2020-06-30T05:27:21.000Z | 2022-02-21T12:13:51.000Z | opennem/utils/scrapyd.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 71 | 2020-08-07T13:06:30.000Z | 2022-03-15T06:44:49.000Z | opennem/utils/scrapyd.py | paulculmsee/opennem | 9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1 | [
"MIT"
] | 13 | 2020-06-30T03:28:32.000Z | 2021-12-30T08:17:16.000Z | #!/usr/bin/env python
"""
Srapyd control methods
"""
import logging
from typing import Any, Dict, List
from urllib.parse import urljoin
from opennem.settings import settings
from opennem.utils.http import http
from opennem.utils.scrapy import get_spiders
logger = logging.getLogger("scrapyd.client")
| 23.103093 | 87 | 0.635431 |
4abeb59415a08109665cd4a0b2b19c7296f2ab4d | 6,316 | py | Python | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Material/Elastic/Linear/Elastic.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .FailStrain import FailStrain
from .FailStress import FailStress
| 32.22449 | 103 | 0.572198 |
4abedd6e3a784e93e18495ecbb7c4ea6ddcaa98a | 3,255 | py | Python | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 19 | 2016-08-22T23:54:24.000Z | 2021-03-19T08:08:35.000Z | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 3 | 2020-12-02T18:29:32.000Z | 2021-06-23T20:26:09.000Z | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 5 | 2017-01-25T19:31:49.000Z | 2018-07-25T05:08:19.000Z | # setup.py for pyscrabble
from distutils.core import setup
try:
import py2exe
HAS_PY2EXE = True
except ImportError:
HAS_PY2EXE = False
import glob
import os
import pkg_resources
import sys
from pyscrabble.constants import VERSION
from pyscrabble import util
from pyscrabble import dist
kwargs... | 37.848837 | 118 | 0.580031 |
4abf6af83131868287dda032df11a21439ed9d49 | 1,164 | py | Python | tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py | liuxiaomiao123/NeuroMathAcademy | 16a7969604a300bf9fbb86f8a5b26050ebd14c65 | [
"CC-BY-4.0"
] | 2 | 2020-07-03T04:39:09.000Z | 2020-07-12T02:08:31.000Z | tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py | NinaHKivanani/course-content | 3c91dd1a669cebce892486ba4f8086b1ef2e1e49 | [
"CC-BY-4.0"
] | 1 | 2020-06-22T22:57:03.000Z | 2020-06-22T22:57:03.000Z | tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py | NinaHKivanani/course-content | 3c91dd1a669cebce892486ba4f8086b1ef2e1e49 | [
"CC-BY-4.0"
] | 1 | 2021-03-29T21:08:26.000Z | 2021-03-29T21:08:26.000Z | def integrate_exponential(a, x0, dt, T):
"""Compute solution of the differential equation xdot=a*x with
initial condition x0 for a duration T. Use time step dt for numerical
solution.
Args:
a (scalar): parameter of xdot (xdot=a*x)
x0 (scalar): initial condition (x at time 0)
dt (scalar): timeste... | 27.714286 | 80 | 0.640893 |
4abf7b9f84deaebd77faef58a9ebbc8bcdd69360 | 1,199 | py | Python | PyTemp/gis/shapefile_to_geojson.py | SwaggerKhan/PatrolGis | 89b1a398ffd6171ac35ea9d023bce98a0fc7e930 | [
"MIT"
] | null | null | null | PyTemp/gis/shapefile_to_geojson.py | SwaggerKhan/PatrolGis | 89b1a398ffd6171ac35ea9d023bce98a0fc7e930 | [
"MIT"
] | null | null | null | PyTemp/gis/shapefile_to_geojson.py | SwaggerKhan/PatrolGis | 89b1a398ffd6171ac35ea9d023bce98a0fc7e930 | [
"MIT"
] | null | null | null | import json
import geojson
import geopandas as gpd
| 31.552632 | 95 | 0.605505 |
4abf8e0a8ee60fe90e1a20e373c9a2a3d84d695d | 3,504 | py | Python | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 76 | 2017-03-06T02:50:38.000Z | 2022-02-08T08:08:48.000Z | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 30 | 2017-03-09T14:54:05.000Z | 2021-10-06T10:57:45.000Z | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 21 | 2017-09-01T23:00:31.000Z | 2022-02-23T14:04:30.000Z | import requests
import ssbio.utils
import os.path as op
# #### PDB stats
# Request flexibility data about one particular PDB.
#
# http://pdbflex.org/php/api/PDBStats.php?pdbID=1a50&chainID=A
#
# pdbID of structure you are interested in
# chainID of chain you are interested in
#
# [{"pdbID":"1a50",
# ... | 40.275862 | 161 | 0.627854 |
4abff12be5f57f68704691116cfaac62253e2192 | 1,065 | py | Python | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | """
Modify Notes
"""
# pylint: disable=too-few-public-methods
from ...mysql.mysql_connection import MySqlConnection
from ...mysql.orm.autogen_entities import Task
| 29.583333 | 68 | 0.642254 |
4ac08cf9f315cf058d8ec6ec1e3e396023b3a1de | 1,834 | py | Python | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from tests.base import BaseTestCase
from pyasn1.type import namedval
... | 31.084746 | 96 | 0.598691 |
4ac2c45edfed557313913a01b6d6e982c2b62143 | 858 | py | Python | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | setup.py | methane/pymemcache | 0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from pymemcache import __version__
setup(
name = 'pymemcache',
version = __version__,
author = 'Charles Gordon',
author_email = 'charles@pinterest.com',
packages = find_packages(),
tests_require = ['nose>=1.0'],
install_req... | 29.586207 | 72 | 0.632867 |
4ac2c549f6e7bc96012e6af6cdb10885c9451aa4 | 543 | py | Python | torch_geometric/read/ply.py | DL-85/pytorch_geometric | eb12a94a667e881c4a6bff26b0453428bcb72393 | [
"MIT"
] | 2 | 2019-10-10T07:01:07.000Z | 2020-11-04T06:26:42.000Z | torch_geometric/read/ply.py | cloudyyyyy/pytorch_geometric | 61d389b5f8ee700dda4d18cadca72f24c978fce1 | [
"MIT"
] | null | null | null | torch_geometric/read/ply.py | cloudyyyyy/pytorch_geometric | 61d389b5f8ee700dda4d18cadca72f24c978fce1 | [
"MIT"
] | 1 | 2019-10-31T01:15:03.000Z | 2019-10-31T01:15:03.000Z | import torch
from plyfile import PlyData
from torch_geometric.data import Data
| 23.608696 | 76 | 0.607735 |
4ac4732c076aba6b6bc386af069168643221a2c1 | 2,679 | py | Python | ml-agents/mlagents/trainers/brain_conversion_utils.py | ranguera/ml-agents | 68779b407b32fce2ea14b16ef1bc26dea7d5e5a8 | [
"Apache-2.0"
] | 2 | 2019-12-13T22:00:11.000Z | 2019-12-14T00:47:32.000Z | ml-agents/mlagents/trainers/brain_conversion_utils.py | almartson/ml-agents | ee748705b777ddd365c55065366e83596c615811 | [
"Apache-2.0"
] | null | null | null | ml-agents/mlagents/trainers/brain_conversion_utils.py | almartson/ml-agents | ee748705b777ddd365c55065366e83596c615811 | [
"Apache-2.0"
] | null | null | null | from mlagents.trainers.brain import BrainInfo, BrainParameters, CameraResolution
from mlagents.envs.base_env import BatchedStepResult, AgentGroupSpec
from mlagents.envs.exception import UnityEnvironmentException
import numpy as np
from typing import List
| 37.732394 | 87 | 0.670773 |
4ac65a293f32905c196e86dcfb72e76e3b1b85d2 | 853 | py | Python | mrdc_ws/src/mrdc_serial/setup.py | SoonerRobotics/MRDC22 | 00c1360138e468bf313eefc93fbde11f289ece82 | [
"MIT"
] | null | null | null | mrdc_ws/src/mrdc_serial/setup.py | SoonerRobotics/MRDC22 | 00c1360138e468bf313eefc93fbde11f289ece82 | [
"MIT"
] | 1 | 2021-12-01T01:21:22.000Z | 2021-12-01T01:21:22.000Z | mrdc_ws/src/mrdc_serial/setup.py | SoonerRobotics/MRDC22 | 00c1360138e468bf313eefc93fbde11f289ece82 | [
"MIT"
] | 1 | 2021-09-28T23:43:07.000Z | 2021-09-28T23:43:07.000Z | from setuptools import find_packages, setup
from glob import glob
import os
package_name = 'mrdc_serial'
setup(
name=package_name,
version='1.0.0',
packages=find_packages(),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + p... | 28.433333 | 85 | 0.630715 |
4ac74e03723bd148ef8b0804cbefc4d25af183f4 | 2,577 | py | Python | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | orders/views.py | DobromirZlatkov/anteya | 9c66c64643350ad1710bcf60e2e38169e389a66b | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse_lazy
from django.views import generic
from django.shortcuts import redirect, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import forms
from . import models
from custommixins import mixins
| 37.897059 | 102 | 0.67404 |
43493e4caf41318515d94514d68ea22bde6fccc6 | 5,219 | py | Python | PytorchRouting/Examples/run_experiments.py | oleksost/RoutingNetworks | 7e3e9219b7389d5af2a832a4882bc9fda0e7fd21 | [
"Apache-2.0"
] | 63 | 2018-07-19T20:12:55.000Z | 2022-03-31T14:59:37.000Z | PytorchRouting/Examples/run_experiments.py | oleksost/RoutingNetworks | 7e3e9219b7389d5af2a832a4882bc9fda0e7fd21 | [
"Apache-2.0"
] | 2 | 2019-08-08T18:28:13.000Z | 2019-09-24T16:46:22.000Z | PytorchRouting/Examples/run_experiments.py | oleksost/RoutingNetworks | 7e3e9219b7389d5af2a832a4882bc9fda0e7fd21 | [
"Apache-2.0"
] | 16 | 2018-07-25T05:56:51.000Z | 2021-01-09T02:47:05.000Z | """
This file defines some simple experiments to illustrate how Pytorch-Routing functions.
"""
import numpy as np
import tqdm
import torch
from PytorchRouting.DecisionLayers import REINFORCE, QLearning, SARSA, ActorCritic, GumbelSoftmax, PerTaskAssignment, \
WPL, AAC, AdvantageLearning, RELAX, EGreedyREINFORCE, EGr... | 46.185841 | 119 | 0.650699 |
434a5580172de0ca0736b7166ab6de48eed316fe | 121 | py | Python | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_g22_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_g22_xsd.re_g22 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 |
434b79d3907786ef5e26df8cc123133e8b35acdc | 6,670 | py | Python | code/image-manipulation.py | rgeirhos/object-recognition | 4679f7c60665bd9fb274c6c4372fc0fa34b51485 | [
"CC-BY-4.0"
] | 33 | 2017-06-22T21:51:25.000Z | 2021-09-03T01:59:58.000Z | code/image-manipulation.py | rgeirhos/object-recognition | 4679f7c60665bd9fb274c6c4372fc0fa34b51485 | [
"CC-BY-4.0"
] | null | null | null | code/image-manipulation.py | rgeirhos/object-recognition | 4679f7c60665bd9fb274c6c4372fc0fa34b51485 | [
"CC-BY-4.0"
] | 20 | 2017-06-24T01:48:19.000Z | 2021-05-12T08:41:23.000Z | #!/usr/bin/env python
from skimage.color import rgb2gray
from skimage.io import imread, imsave
from scipy.misc import toimage
import numpy as np
import wrapper as wr
###########################################################
# IMAGE IO
###########################################################
def imload_rgb(pa... | 31.913876 | 75 | 0.556822 |
434c335f1ca44ae4f15f8789642b629548cea61b | 659 | py | Python | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py | AlishKZ/ITMO_ICT_WebDevelopment_2020-2021 | b3ce82e17392d26d815e64343f5103f1bd46cd81 | [
"MIT"
] | null | null | null | from django.db.models import fields
from main.models import RoomReservation, UserRoom
from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth import authenticate, login
from django.contrib.auth import get_user_model
| 31.380952 | 75 | 0.775417 |
434cb653784b20b7295c5b100050122451d7d139 | 4,855 | py | Python | emmet-core/emmet/core/vasp/calc_types.py | espottesmith/emmet | bd28b91d240da9f0c996a2b2efb7e67da9176a09 | [
"BSD-3-Clause-LBNL"
] | null | null | null | emmet-core/emmet/core/vasp/calc_types.py | espottesmith/emmet | bd28b91d240da9f0c996a2b2efb7e67da9176a09 | [
"BSD-3-Clause-LBNL"
] | 78 | 2020-11-16T06:46:43.000Z | 2022-03-28T03:02:51.000Z | emmet-core/emmet/core/vasp/calc_types.py | utf/emmet | 27a51a7ad4c300e280de5ba9b59a311dd77cffdd | [
"BSD-3-Clause-LBNL"
] | null | null | null | """ Module to define various calculation types as Enums for VASP """
import datetime
from itertools import groupby, product
from pathlib import Path
from typing import Dict, Iterator, List
import bson
import numpy as np
from monty.json import MSONable
from monty.serialization import loadfn
from pydantic import BaseMod... | 28.391813 | 98 | 0.618332 |
434cd47f7ba08d7cc16a2a4b4b972a8099060404 | 207 | py | Python | sensors/__init__.py | dawnos/robotcar-to-rosbag | c51035d7fd7e08487629a9b06d84a86890f7cc03 | [
"MIT"
] | null | null | null | sensors/__init__.py | dawnos/robotcar-to-rosbag | c51035d7fd7e08487629a9b06d84a86890f7cc03 | [
"MIT"
] | null | null | null | sensors/__init__.py | dawnos/robotcar-to-rosbag | c51035d7fd7e08487629a9b06d84a86890f7cc03 | [
"MIT"
] | null | null | null |
from mono_left import MonoLeft
from mono_right import MonoRight
from mono_rear import MonoRear
from stereo_left import StereoLeft
from stereo_right import StereoRight
from stereo_centre import StereoCentre
| 25.875 | 38 | 0.879227 |
434df89c1b80cf68699882387250cf1a06bd4617 | 4,165 | py | Python | models/train_classifier.py | YiWang-Evonne/disaster_response | 824f646920ac85a01419101e17e92f592a505782 | [
"MIT"
] | null | null | null | models/train_classifier.py | YiWang-Evonne/disaster_response | 824f646920ac85a01419101e17e92f592a505782 | [
"MIT"
] | null | null | null | models/train_classifier.py | YiWang-Evonne/disaster_response | 824f646920ac85a01419101e17e92f592a505782 | [
"MIT"
] | null | null | null | import sys
import pandas as pd
from sqlalchemy import create_engine
import nltk
nltk.download(['punkt', 'wordnet', 'averaged_perceptron_tagger'])
import re
from nltk.tokenize import word_tokenize
from nltk.stem import WordNetLemmatizer
from sklearn.metrics import classification_report
from sklearn.metrics import confus... | 30.181159 | 96 | 0.657143 |
434e153d430f769d0af982184da673ab7f398f75 | 6,213 | py | Python | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | import os
from datetime import date
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.utils import translation
from django.utils.translation import ugettext as _
from mailchimp3 import MailChimp
def notify(subject, body='.'):
... | 27.860987 | 77 | 0.600998 |
434e8c387b837394ff0f03da5e59c67d77ad7f7c | 7,456 | py | Python | experimental/attentive_uncertainty/toy_regression/datasets.py | miksu/edward2 | 973acdb23701f320ebaee8a56fc44d4414acfa4e | [
"Apache-2.0"
] | null | null | null | experimental/attentive_uncertainty/toy_regression/datasets.py | miksu/edward2 | 973acdb23701f320ebaee8a56fc44d4414acfa4e | [
"Apache-2.0"
] | null | null | null | experimental/attentive_uncertainty/toy_regression/datasets.py | miksu/edward2 | 973acdb23701f320ebaee8a56fc44d4414acfa4e | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2019 The Edward2 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 o... | 37.467337 | 80 | 0.666309 |
434ee97c218201d658ac3ee9f3df8bd8d8383c79 | 1,287 | py | Python | critiquebrainz/frontend/views/index.py | shagun6/critiquebrainz | b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/frontend/views/index.py | shagun6/critiquebrainz | b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/frontend/views/index.py | shagun6/critiquebrainz | b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5 | [
"Apache-2.0"
] | 1 | 2019-10-20T05:48:53.000Z | 2019-10-20T05:48:53.000Z | from flask import Blueprint, render_template
from flask_babel import format_number
import critiquebrainz.db.users as db_users
import critiquebrainz.db.review as db_review
from bs4 import BeautifulSoup
from markdown import markdown
DEFAULT_CACHE_EXPIRATION = 10 * 60 # seconds
frontend_bp = Blueprint('frontend', __nam... | 31.390244 | 110 | 0.740482 |
434fad48264cdf3b340402e86c40cd6b6db05bc8 | 2,406 | py | Python | Enigma/Enigma-master/GBS/gbsHelper.py | Q-Alpha/Hackathon2020 | c0ed45b4c1cc4f475f83786e641b859dad94f863 | [
"MIT"
] | 12 | 2020-07-23T17:11:22.000Z | 2022-02-03T12:44:56.000Z | Enigma/Enigma-master/GBS/gbsHelper.py | Q-Alpha/Hackathon2020 | c0ed45b4c1cc4f475f83786e641b859dad94f863 | [
"MIT"
] | 1 | 2020-07-28T13:35:51.000Z | 2020-07-28T13:35:51.000Z | Enigma/Enigma-master/GBS/gbsHelper.py | Q-Alpha/Hackathon2020 | c0ed45b4c1cc4f475f83786e641b859dad94f863 | [
"MIT"
] | 25 | 2020-07-22T14:32:17.000Z | 2021-09-08T11:43:55.000Z | import strawberryfields as sf
from strawberryfields import ops
from strawberryfields.utils import random_interferometer
from strawberryfields.apps import data, sample, subgraph, plot
import plotly
import networkx as nx
import numpy as np
| 34.869565 | 101 | 0.554032 |
434fcaaddceb714a13ca57fae4621f94efbd1d3d | 10,781 | py | Python | happy/HappyNodeJoin.py | jenniexie/happy | 6ba01586e20bb3e4f92e180fd8dce3752519f7c9 | [
"Apache-2.0"
] | null | null | null | happy/HappyNodeJoin.py | jenniexie/happy | 6ba01586e20bb3e4f92e180fd8dce3752519f7c9 | [
"Apache-2.0"
] | null | null | null | happy/HappyNodeJoin.py | jenniexie/happy | 6ba01586e20bb3e4f92e180fd8dce3752519f7c9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2015-2017 Nest Labs, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licen... | 35.463816 | 102 | 0.626472 |
434feac939e1b8979a11ce2e5fb237601f1fd855 | 46,866 | py | Python | __init__.py | SDRAST/Data_Reduction | f007d716b5c28c086910a81206cffaf37ff6368c | [
"Apache-2.0"
] | null | null | null | __init__.py | SDRAST/Data_Reduction | f007d716b5c28c086910a81206cffaf37ff6368c | [
"Apache-2.0"
] | null | null | null | __init__.py | SDRAST/Data_Reduction | f007d716b5c28c086910a81206cffaf37ff6368c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Modules to support data reduction in Python.
The main purpose of the base module ``Data_Reduction`` is to provide a
suplerclass with a good set of attributes and methods to cover all common needs.
The base module is also able to read data from a text file as a ``numpy``
structured array. ... | 35.370566 | 91 | 0.615307 |
43503b600179235461951733f8a10d6ec6cc9d94 | 219 | py | Python | PyGRB/__init__.py | HughPaynter/PyGRB | 2eaf834cf3c62a639a056285ca9518456daa4b7c | [
"BSD-3-Clause"
] | null | null | null | PyGRB/__init__.py | HughPaynter/PyGRB | 2eaf834cf3c62a639a056285ca9518456daa4b7c | [
"BSD-3-Clause"
] | null | null | null | PyGRB/__init__.py | HughPaynter/PyGRB | 2eaf834cf3c62a639a056285ca9518456daa4b7c | [
"BSD-3-Clause"
] | null | null | null | """
PyGRB.
A GRB light-curve analysis package.
"""
__version__ = "0.0.5"
__author__ = 'James Paynter'
from . import backend
from . import fetch
from . import main
from . import postprocess
from . import preprocess
| 13.6875 | 35 | 0.716895 |
4350f1b77cfb0dfefe4845923da0aa75d35da2ca | 363 | py | Python | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
| 25.928571 | 60 | 0.730028 |
435242d1a3384ab078fa9b2a0a84286b9581b8f8 | 8,483 | py | Python | Context_Guided_RelRep/train.py | Huda-Hakami/Context-Guided-Relation-Embeddings | 520ce89fe7bad3aba2f3eb112329300625bb55f7 | [
"Apache-2.0"
] | 1 | 2019-10-06T03:54:53.000Z | 2019-10-06T03:54:53.000Z | Context_Guided_RelRep/train.py | Huda-Hakami/Context-Guided-Relation-Embeddings | 520ce89fe7bad3aba2f3eb112329300625bb55f7 | [
"Apache-2.0"
] | null | null | null | Context_Guided_RelRep/train.py | Huda-Hakami/Context-Guided-Relation-Embeddings | 520ce89fe7bad3aba2f3eb112329300625bb55f7 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from wordreps import WordReps
from algebra import cosine, normalize
import tensorflow as tf
import random
from dataset import DataSet
import CGRE_Model
from Eval import eval_SemEval
import sklearn.preprocessing
# ============ End Imports ============
# ============ End of the Evaluation class ====... | 37.870536 | 150 | 0.707651 |
43525bbf3ff2f6151c746e2a0599b8ee3f2bbfcc | 1,071 | py | Python | synch_integrate.py | HerculesJack/grtrans | bc005307d81dac1bdb9520e776e7627126dd690a | [
"MIT"
] | 25 | 2016-02-11T01:52:14.000Z | 2021-06-16T02:15:42.000Z | synch_integrate.py | RAnantua/grtrans | a0353a8516335412b27fe4866eabafcfc0fe498f | [
"MIT"
] | 6 | 2016-11-10T15:25:20.000Z | 2018-01-18T15:15:57.000Z | synch_integrate.py | RAnantua/grtrans | a0353a8516335412b27fe4866eabafcfc0fe498f | [
"MIT"
] | 6 | 2016-02-11T14:13:01.000Z | 2022-03-10T01:56:02.000Z | from radtrans_integrate import radtrans_integrate
from polsynchemis import polsynchemis
import numpy as np
import scipy.integrate
# calculate synchrotron emissivity for given coefficients
| 36.931034 | 109 | 0.659197 |
4354188cd39459be1c39fa882aceb00bf1b969f5 | 1,683 | py | Python | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | """
Copyright 2016 Brocade Communications 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 i... | 39.139535 | 91 | 0.699346 |
43559b99540d7f4aefb586b6180111026c8c9f97 | 461 | py | Python | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T21:32:54.000Z | 2022-02-10T21:32:54.000Z | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2018-12-22T23:12:30.000Z | 2018-12-22T23:12:30.000Z | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T07:03:09.000Z | 2019-10-09T07:03:09.000Z | import os
__all__ = ['DATA_FOLDER', 'load_data']
DATA_FOLDER = os.path.dirname(os.path.abspath(__file__))
def load_data(name):
"""
Loads an Excel form from the data folder with the specified name.
Parameters
----------
name : str
The name of the form without file extension.
"""
... | 20.954545 | 69 | 0.652928 |
4356791d282fbcbf316192672ada1b6fc8d08206 | 45 | py | Python | main.py | Dephilia/pipenv-docker-development | 3be5f63120638922fe98336b6ee5b3b0f6f182dc | [
"MIT"
] | null | null | null | main.py | Dephilia/pipenv-docker-development | 3be5f63120638922fe98336b6ee5b3b0f6f182dc | [
"MIT"
] | null | null | null | main.py | Dephilia/pipenv-docker-development | 3be5f63120638922fe98336b6ee5b3b0f6f182dc | [
"MIT"
] | null | null | null | var = "Docker"
print(f"Hello {var} world!")
| 11.25 | 28 | 0.622222 |
4356793fe5f5eb5615052cdcbe88626695d774de | 841 | py | Python | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | null | null | null | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | 3 | 2019-12-20T23:17:20.000Z | 2022-03-21T22:16:25.000Z | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | 1 | 2017-12-13T12:44:11.000Z | 2017-12-13T12:44:11.000Z | """ Model mixin classes for auth, category and recipe modules """
from app import db
# pylint: disable=C0103
# pylint: disable=E1101
| 29 | 81 | 0.67063 |
435728a0cb21ad40d2d8c25c033f2746e09d0952 | 4,239 | py | Python | apps/dash-port-analytics/app/ui/tab_map_controls.py | JeroenvdSande/dash-sample-apps | 106fa24693cfdaf47c06466a0aed78e642344f91 | [
"MIT"
] | 2,332 | 2019-05-10T18:24:20.000Z | 2022-03-30T21:46:29.000Z | apps/dash-port-analytics/app/ui/tab_map_controls.py | JeroenvdSande/dash-sample-apps | 106fa24693cfdaf47c06466a0aed78e642344f91 | [
"MIT"
] | 384 | 2019-05-09T19:19:56.000Z | 2022-03-12T00:58:24.000Z | apps/dash-port-analytics/app/ui/tab_map_controls.py | JeroenvdSande/dash-sample-apps | 106fa24693cfdaf47c06466a0aed78e642344f91 | [
"MIT"
] | 3,127 | 2019-05-16T17:20:45.000Z | 2022-03-31T17:59:07.000Z | import dash_core_components as dcc
import dash_html_components as html
from config import strings
def make_tab_port_map_controls(
port_arr: list,
port_val: str,
vessel_types_arr: list,
vessel_type_val: str,
year_arr: list,
year_val: int,
month_arr: list,
month_val: int,
) -> html.Div:
... | 38.889908 | 88 | 0.420854 |
43580621cfd0f7e6c205651bbcde02772c3c846a | 628 | py | Python | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 3 | 2020-07-04T22:34:50.000Z | 2020-08-10T18:18:51.000Z | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | 5 | 2020-07-04T08:34:36.000Z | 2021-05-19T01:27:04.000Z | subs2srs/gui/state.py | TFarla/subs2srs-cross-platform | 79158a313ca4099adb20df97207b19d7bc948697 | [
"MIT"
] | null | null | null | from typing import List
from subs2srs.core.preview_item import PreviewItem
| 27.304348 | 93 | 0.694268 |
435956da8c173c0f00fa6d13687b5307a4d9b2a5 | 499 | py | Python | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | import sys
sys.path.append("..")
from src.sync_ends_service import SyncEnd
from src.parser import Parser
if __name__ == "__main__":
main()
| 22.681818 | 100 | 0.709419 |
435a70dd7b6f4dda69b0f2a7703c3f754714213d | 22,429 | py | Python | graphql_compiler/compiler/workarounds/orientdb_query_execution.py | 0xflotus/graphql-compiler | 0c892f5254d0cf3d03a68012080d0b736bc49913 | [
"Apache-2.0"
] | null | null | null | graphql_compiler/compiler/workarounds/orientdb_query_execution.py | 0xflotus/graphql-compiler | 0c892f5254d0cf3d03a68012080d0b736bc49913 | [
"Apache-2.0"
] | 1 | 2019-04-18T18:23:16.000Z | 2019-04-18T18:23:16.000Z | graphql_compiler/compiler/workarounds/orientdb_query_execution.py | 0xflotus/graphql-compiler | 0c892f5254d0cf3d03a68012080d0b736bc49913 | [
"Apache-2.0"
] | 1 | 2019-11-21T02:38:27.000Z | 2019-11-21T02:38:27.000Z | # Copyright 2018-present Kensho Technologies, LLC.
"""Workarounds for OrientDB scheduler issue that causes poor query planning for certain queries.
For purposes of query planning, the OrientDB query planner ignores "where:" clauses
that hit indexes but do not use the "=" operator. For example, "CONTAINS" can be used t... | 58.257143 | 100 | 0.664452 |
435b03494c0e0f08adce48e2055f1eb32e5446ba | 3,763 | py | Python | traffic_light/core.py | ofalk/cleware-traffic-light | be319fec8e190811463ade8aabc37ca2b4f17e57 | [
"MIT"
] | null | null | null | traffic_light/core.py | ofalk/cleware-traffic-light | be319fec8e190811463ade8aabc37ca2b4f17e57 | [
"MIT"
] | null | null | null | traffic_light/core.py | ofalk/cleware-traffic-light | be319fec8e190811463ade8aabc37ca2b4f17e57 | [
"MIT"
] | null | null | null | from enum import IntEnum
import functools
import usb.core
import usb.util
from traffic_light.error import TrafficLightError, MultipleTrafficLightsError
BM_REQUEST_TYPE = 0x21
B_REQUEST = 0x09
W_VALUE = 0x200
W_INDEX = 0x00
ID_VENDOR = 0x0d50
ID_PRODUCT = 0x0008
INTERFACE = 0
def __getattr__(self, name):
... | 32.439655 | 122 | 0.60962 |
435b7f5d139890173dc2cf9019b51215cc554d6e | 3,646 | py | Python | sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""
FILE: sample_analyze_orchestration_app_luis_response_async.py
DESCRIPTION:
This sample demonstrates how to analyze user query using an orchestra... | 39.630435 | 106 | 0.637685 |
435b8874fd825cd72ac9feb3e9f96907066c1541 | 141 | py | Python | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | 3 | 2021-04-04T07:48:48.000Z | 2022-02-19T17:42:12.000Z | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | # flake8: noqa
from schemas.client_credentials import *
from schemas.message import *
from schemas.token import *
from schemas.user import *
| 23.5 | 40 | 0.794326 |
435f04515eafc16cb9b3781591916aadd65a8bd3 | 2,499 | py | Python | intro/deploy.py | terziev-viktor/SolidityCourse | 6f10852e94eec69438c5e577795d317694227337 | [
"MIT"
] | null | null | null | intro/deploy.py | terziev-viktor/SolidityCourse | 6f10852e94eec69438c5e577795d317694227337 | [
"MIT"
] | null | null | null | intro/deploy.py | terziev-viktor/SolidityCourse | 6f10852e94eec69438c5e577795d317694227337 | [
"MIT"
] | null | null | null | import json
from web3 import Web3
from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
simple_storage_src = file.read()
# install solcx
install_solc("0.8.0")
# compile the source
compiled_sol = compile_standard(
{
"language": "Solidity",
"sources": ... | 31.2375 | 147 | 0.708283 |
435f7637a4041b297cabc29fa1091a243b6bc151 | 2,154 | py | Python | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | 6 | 2019-05-02T09:40:53.000Z | 2021-05-18T00:18:30.000Z | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | null | null | null | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | null | null | null | from noise.dh.dh import DH
from noise.cipher.cipher import Cipher
from noise.hash.hash import Hash
from noise.processing.handshakepatterns.handshakepattern import HandshakePattern
from noise.processing.impl.handshakestate import HandshakeState
from noise.processing.impl.symmetricstate import SymmetricState
from noise.... | 27.265823 | 103 | 0.627205 |
4361a9278aa18283e07b14ec0d517fca7051b980 | 9,550 | py | Python | info_popup.py | cartazio/SublimeHaskell | e6f12ea69de939d12212a6ec594bf0aae0603f6d | [
"MIT"
] | 2 | 2021-07-07T16:41:48.000Z | 2021-11-17T11:08:50.000Z | info_popup.py | cartazio/SublimeHaskell | e6f12ea69de939d12212a6ec594bf0aae0603f6d | [
"MIT"
] | null | null | null | info_popup.py | cartazio/SublimeHaskell | e6f12ea69de939d12212a6ec594bf0aae0603f6d | [
"MIT"
] | null | null | null | import urllib.parse
import webbrowser
import json
from xml.etree import ElementTree
import sublime
import SublimeHaskell.sublime_haskell_common as Common
import SublimeHaskell.internals.utils as Utils
import SublimeHaskell.internals.unicode_opers as UnicodeOpers
import SublimeHaskell.symbols as symbols
import Sublim... | 42.070485 | 126 | 0.566387 |
4361a9d08c25b0f208bbec15d3be738264785d14 | 4,126 | py | Python | modules/google_home_lights.py | artizanatweb/ghome-assistant | dba2bc58979ebae48afc71c356ae2d40b8830eee | [
"Apache-2.0"
] | null | null | null | modules/google_home_lights.py | artizanatweb/ghome-assistant | dba2bc58979ebae48afc71c356ae2d40b8830eee | [
"Apache-2.0"
] | null | null | null | modules/google_home_lights.py | artizanatweb/ghome-assistant | dba2bc58979ebae48afc71c356ae2d40b8830eee | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2017 Seeed Technology Limited
#
# 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 ... | 24.128655 | 74 | 0.542414 |
43626cff0461fc1edbacac7b7a76a2f308ada971 | 5,016 | py | Python | tensortools/optimize/mncp_hals.py | klmcguir/tensortools | 38262f5bad9d3171286e34e5f15d196752dda939 | [
"MIT"
] | null | null | null | tensortools/optimize/mncp_hals.py | klmcguir/tensortools | 38262f5bad9d3171286e34e5f15d196752dda939 | [
"MIT"
] | null | null | null | tensortools/optimize/mncp_hals.py | klmcguir/tensortools | 38262f5bad9d3171286e34e5f15d196752dda939 | [
"MIT"
] | null | null | null | """
Nonnegative CP decomposition by Hierarchical alternating least squares (HALS).
With support for missing data.
"""
import numpy as np
import scipy as sci
from scipy import linalg
from tensortools.operations import unfold, khatri_rao
from tensortools.tensors import KTensor
from tensortools.optimize import FitResult... | 40.780488 | 94 | 0.60626 |
4363164b554bb6ade5f87250305647778400993f | 18,079 | py | Python | raredecay/tools/data_tools.py | jonas-eschle/raredecay | 6285f91e0819d01c80125f50b24e60ee5353ae2e | [
"Apache-2.0"
] | 7 | 2016-11-19T17:28:07.000Z | 2020-12-29T19:49:37.000Z | raredecay/tools/data_tools.py | mayou36/raredecay | 5b319ada66ebe54f81e216efad81fc9f06237a30 | [
"Apache-2.0"
] | 23 | 2017-03-13T19:13:58.000Z | 2021-05-30T21:48:50.000Z | raredecay/tools/data_tools.py | jonas-eschle/raredecay | 6285f91e0819d01c80125f50b24e60ee5353ae2e | [
"Apache-2.0"
] | 5 | 2016-12-17T19:24:13.000Z | 2021-05-31T14:32:34.000Z | """
@author: Jonas Eschle "Mayou36"
DEPRECEATED! USE OTHER MODULES LIKE rd.data, rd.ml, rd.reweight, rd.score and rd.stat
DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!
Contains several tools to convert, load, save and plot data
"""
import warnings
import os
import copy
import pandas as pd
import... | 34.969052 | 117 | 0.636872 |
4363297eb771b020c864cdfbc69be70aff1727b6 | 2,052 | py | Python | toontown/coghq/boardbothq/BoardOfficeManagerAI.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 1 | 2018-06-16T23:06:38.000Z | 2018-06-16T23:06:38.000Z | toontown/coghq/boardbothq/BoardOfficeManagerAI.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/coghq/boardbothq/BoardOfficeManagerAI.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z | from direct.directnotify import DirectNotifyGlobal
import DistributedBoardOfficeAI
from toontown.toonbase import ToontownGlobals
from toontown.coghq.boardbothq import BoardOfficeLayout
from direct.showbase import DirectObject
import random
| 41.04 | 141 | 0.639376 |
436393af32e8421a7a3401c8eb82314850e79873 | 2,144 | py | Python | ansiblemetrics/utils.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | 1 | 2020-04-24T16:09:14.000Z | 2020-04-24T16:09:14.000Z | ansiblemetrics/utils.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | null | null | null | ansiblemetrics/utils.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | null | null | null | from typing import Union
def key_value_list(d: Union[dict, list], key=None) -> list:
"""
This function iterates over all the key-value pairs of a dictionary and returns a list of tuple (key, value) where the key contain only primitive value (i.e., no list or dict), e.g., string, number etc.
d -- a diction... | 25.831325 | 206 | 0.564366 |
4364633db5685f14b086dbb59f77e9958e56ad15 | 2,913 | py | Python | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | null | null | null | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | null | null | null | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | 1 | 2019-01-10T18:50:35.000Z | 2019-01-10T18:50:35.000Z | from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans
from yampy.models import extract_id
| 28.281553 | 79 | 0.599725 |
4364ccde24cc2af35ff42479b35b005f175a3209 | 24,502 | py | Python | phy/gui/actions.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 118 | 2019-06-03T06:19:43.000Z | 2022-03-25T00:05:26.000Z | phy/gui/actions.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 761 | 2015-01-08T11:17:41.000Z | 2019-05-27T16:12:08.000Z | phy/gui/actions.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 70 | 2019-05-30T11:05:26.000Z | 2022-03-30T11:51:23.000Z | # -*- coding: utf-8 -*-
"""Actions and snippets."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import inspect
from functools import partial, wraps
import logging
import re
import sys
import... | 35.305476 | 99 | 0.587952 |
436637ae94348f41cc38697c102e03126553cd4f | 807 | py | Python | PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | """
delete all .pyc bytecode files in a directory tree: use the
command line arg as root if given, else current working dir
"""
import os, sys
findonly = False
rootdir = os.getcwd() if len(sys.argv) == 1 else sys.argv[1]
found = removed = 0
for (thisDirLevel, subsHere, filesHere) in os.walk(rootdir):
for filename... | 31.038462 | 65 | 0.553903 |
436697d1038207224e723ad6677937d00c16b249 | 207 | py | Python | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | 1 | 2022-02-28T13:00:48.000Z | 2022-02-28T13:00:48.000Z | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | null | null | null | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 25.875 | 56 | 0.768116 |
4366c0b4bfc3d82921cf8860654a9fdf8156bfc0 | 893 | py | Python | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 24 | 2018-10-17T04:42:56.000Z | 2022-03-03T10:27:56.000Z | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 5 | 2019-03-01T17:14:48.000Z | 2022-01-21T23:11:39.000Z | src/states.py | amancevice/terraform-aws-slack-interactive-components | 819a9b6a408b36cd1a0100859801bc47c437fdc8 | [
"MIT"
] | 11 | 2019-03-01T15:16:24.000Z | 2022-03-03T10:27:59.000Z | import boto3
from logger import logger
| 35.72 | 69 | 0.693169 |
43670f7c99a2ebd5fc17181669e6be4597ca4939 | 25,401 | py | Python | apps/controllerx/cx_core/type/light_controller.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | null | null | null | apps/controllerx/cx_core/type/light_controller.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | null | null | null | apps/controllerx/cx_core/type/light_controller.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | null | null | null | from typing import Any, Dict, Optional, Type, Union
from cx_const import Light, PredefinedActionsMapping
from cx_core.color_helper import get_color_wheel
from cx_core.controller import action
from cx_core.feature_support.light import LightSupport
from cx_core.integration import EventData
from cx_core.integration.decon... | 37.686944 | 117 | 0.565332 |
4367a493fbe503c8a8ff6c69a39f88b75c5407aa | 125 | py | Python | kts/core/types.py | konodyuk/kts | 3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7 | [
"MIT"
] | 18 | 2019-02-14T13:10:07.000Z | 2021-11-26T07:10:13.000Z | kts/core/types.py | konodyuk/kts | 3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7 | [
"MIT"
] | 2 | 2019-02-17T14:06:42.000Z | 2019-09-15T18:05:54.000Z | kts/core/types.py | konodyuk/kts | 3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7 | [
"MIT"
] | 2 | 2019-09-15T13:12:42.000Z | 2020-04-15T14:05:54.000Z | from typing import Union
import pandas as pd
from kts.core.frame import KTSFrame
AnyFrame = Union[pd.DataFrame, KTSFrame]
| 15.625 | 40 | 0.792 |
4368cab14b8dd0a73f5639ed6a1c9ef3a5f4c07f | 354 | py | Python | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | 2 | 2016-03-31T05:35:28.000Z | 2017-04-12T00:11:59.000Z | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | null | null | null | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | null | null | null | from app import db
from flask.ext.login import UserMixin
| 29.5 | 69 | 0.717514 |
4369ad9700348a9af2bc92b402bcac16112c9914 | 16,746 | py | Python | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | 1 | 2019-03-27T02:24:22.000Z | 2019-03-27T02:24:22.000Z | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | null | null | null | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | null | null | null | import markdown
from comments.forms import CommentForm,BookCommentForm,MovieCommentForm
from django.shortcuts import render, get_object_or_404
from.models import Post,Category,Tag, Book,Movie
#from django.http import HttpResponse
from django.views.generic import ListView, DetailView
from django.utils.text import slugif... | 33.967546 | 96 | 0.582706 |
436a1ebb3d99a1475a443393df66a840b227b6bf | 4,916 | py | Python | src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py | jfcoz/azure-cli | 8459ef3fd3c76d9f99defd95d4c980923891fa6d | [
"MIT"
] | 1 | 2019-10-01T10:29:15.000Z | 2019-10-01T10:29:15.000Z | src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py | jfcoz/azure-cli | 8459ef3fd3c76d9f99defd95d4c980923891fa6d | [
"MIT"
] | 3 | 2019-07-12T22:10:38.000Z | 2019-07-12T22:10:49.000Z | src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py | jfcoz/azure-cli | 8459ef3fd3c76d9f99defd95d4c980923891fa6d | [
"MIT"
] | 1 | 2019-06-21T05:08:09.000Z | 2019-06-21T05:08:09.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 47.728155 | 198 | 0.621237 |
436a24c432c8bd3a3066c5adcc757a189d209bf5 | 332 | py | Python | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | 1 | 2020-08-03T07:54:59.000Z | 2020-08-03T07:54:59.000Z | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | null | null | null | utils/path_utils.py | kuyu12/pygame_fight_game | 3bbc286b9f33c6d6d9db9bea21f9b7af15247df5 | [
"MIT"
] | null | null | null | import sys
IMAGES_PATH = sys.path[1] + "/Images"
BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background'
USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg"
SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite'
PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile'
CONFIGURATION_FILES_PATH = sys.path[1] + "/configur... | 36.888889 | 73 | 0.795181 |
436a53c20b8a7b3181b33290aeb94d9c5458f945 | 1,558 | py | Python | tests/models/test_transformers.py | Alicegaz/torchok | 7b8f95df466a25b1ad8ee93bed1a3c7516440cf4 | [
"Apache-2.0"
] | 8 | 2021-10-12T05:39:20.000Z | 2022-03-31T10:55:01.000Z | tests/models/test_transformers.py | Alicegaz/torchok | 7b8f95df466a25b1ad8ee93bed1a3c7516440cf4 | [
"Apache-2.0"
] | 1 | 2022-03-30T19:23:42.000Z | 2022-03-30T19:23:42.000Z | tests/models/test_transformers.py | Alicegaz/torchok | 7b8f95df466a25b1ad8ee93bed1a3c7516440cf4 | [
"Apache-2.0"
] | 5 | 2021-11-17T07:38:28.000Z | 2022-01-31T10:46:36.000Z | import unittest
import torch
from parameterized import parameterized
from src.constructor import create_backbone
from src.models.backbones.utils import list_models
from .test_segmentation import example_backbones
| 38.95 | 99 | 0.717587 |
436c11b07a0ae268fa5c1da96fe20213b0b714a7 | 3,501 | py | Python | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 1 | 2021-01-10T18:04:25.000Z | 2021-01-10T18:04:25.000Z | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 5 | 2021-02-13T14:30:27.000Z | 2021-02-13T17:27:58.000Z | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 1 | 2022-02-10T14:57:27.000Z | 2022-02-10T14:57:27.000Z | import typing
from . import base
from . import fields
from .inline_query_result import InlineQueryResult
from .location import Location
from .user import User
| 52.253731 | 118 | 0.625821 |