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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ec010616918b5f9eb7a19f2b69feb4ddf284575 | 59 | py | Python | sklearn_gbm_ots/__init__.py | aradnaev/sklearn_gbm_ots | ed5d2afc02d8d3e8335c891770eb73b09b49c0ce | [
"MIT",
"BSD-3-Clause"
] | null | null | null | sklearn_gbm_ots/__init__.py | aradnaev/sklearn_gbm_ots | ed5d2afc02d8d3e8335c891770eb73b09b49c0ce | [
"MIT",
"BSD-3-Clause"
] | null | null | null | sklearn_gbm_ots/__init__.py | aradnaev/sklearn_gbm_ots | ed5d2afc02d8d3e8335c891770eb73b09b49c0ce | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from sklearn_gbm_ots.sklearn_gbm_wrapper import GBMwrapper
| 29.5 | 58 | 0.915254 |
5ec075408ba7dc145746d172546ed75b28e26a20 | 1,015 | py | Python | policy_loader.py | donghun2018/adclick-simulator | 2fc8a939a1d44865cf5a391a3d672ca47e45a058 | [
"MIT"
] | 2 | 2020-11-18T03:37:27.000Z | 2021-06-19T03:51:56.000Z | policy_loader.py | donghun2018/adclick-simulator | 2fc8a939a1d44865cf5a391a3d672ca47e45a058 | [
"MIT"
] | null | null | null | policy_loader.py | donghun2018/adclick-simulator | 2fc8a939a1d44865cf5a391a3d672ca47e45a058 | [
"MIT"
] | null | null | null | """
Loads policies by
1. load the list of PUID from "puid_list.csv"
2. load "Policy_<PUID>" class that is defined in ./Policies/<PUID>.py
by Donghun Lee 2018
"""
import csv
from importlib import import_module
if __name__ == "__main__":
# this is how you can use the policy loader in other files -- DH
#from... | 26.710526 | 70 | 0.637438 |
5ec5e51de1caabf24e1ac5fd5fb9e8661dce9f2e | 20,378 | py | Python | openmixup/models/backbones/resnext.py | Westlake-AI/openmixup | ea81250819e740dd823e30cb7ce382d14a3c1b91 | [
"Apache-2.0"
] | 10 | 2021-12-30T10:22:27.000Z | 2022-03-30T02:31:38.000Z | openmixup/models/backbones/resnext.py | Westlake-AI/openmixup | ea81250819e740dd823e30cb7ce382d14a3c1b91 | [
"Apache-2.0"
] | 3 | 2022-01-20T21:02:48.000Z | 2022-03-19T13:49:45.000Z | openmixup/models/backbones/resnext.py | Westlake-AI/openmixup | ea81250819e740dd823e30cb7ce382d14a3c1b91 | [
"Apache-2.0"
] | null | null | null | # reference: https://github.com/open-mmlab/mmclassification/tree/master/mmcls/models/backbones
# modified from mmclassification resnext.py
import random
import torch.nn as nn
from mmcv.cnn import build_conv_layer, build_norm_layer
from ..registry import BACKBONES
from .resnet_mmcls import Bottleneck as _Bottleneck
fro... | 41.758197 | 97 | 0.587644 |
5ec654e8773eaea1ffae8ab9316677812ce2b191 | 11,998 | py | Python | cid-minting/tests/test_oclc_lookup.py | cdlib/zephir-services | 87597190302114aea7d3ae694181eeaffa9d63fc | [
"BSD-3-Clause"
] | 1 | 2018-11-15T21:33:32.000Z | 2018-11-15T21:33:32.000Z | cid-minting/tests/test_oclc_lookup.py | cdlib/zephir-services | 87597190302114aea7d3ae694181eeaffa9d63fc | [
"BSD-3-Clause"
] | 17 | 2018-11-30T19:43:56.000Z | 2021-12-08T00:45:18.000Z | cid-minting/tests/test_oclc_lookup.py | cdlib/zephir-services | 87597190302114aea7d3ae694181eeaffa9d63fc | [
"BSD-3-Clause"
] | 2 | 2018-11-30T19:29:48.000Z | 2019-01-29T23:24:23.000Z | import os
import msgpack
import pytest
import plyvel
from click.testing import CliRunner
from oclc_lookup import get_primary_ocn
from oclc_lookup import get_ocns_cluster_by_primary_ocn
from oclc_lookup import get_ocns_cluster_by_ocn
from oclc_lookup import get_clusters_by_ocns
from oclc_lookup import convert_set_to_l... | 34.877907 | 144 | 0.657443 |
5ec7930b8c6c3894092804aae53648cb722fdd7b | 751 | py | Python | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | 5 | 2022-03-10T19:39:22.000Z | 2022-03-17T21:05:10.000Z | optimal_transport_morphometry/core/admin/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from optimal_transport_morphometry.core.models import (
FeatureImage,
JacobianImage,
RegisteredImage,
SegmentedImage,
)
| 22.088235 | 67 | 0.768309 |
5ec961b19adfa565a12853c2adc2c965a0227de8 | 675 | py | Python | commons/templatetags/i18n_utils.py | jaboutboul/almalinux.org | 1dda8faff0e84e650fc9a90e9a104d387b4dd038 | [
"MIT"
] | null | null | null | commons/templatetags/i18n_utils.py | jaboutboul/almalinux.org | 1dda8faff0e84e650fc9a90e9a104d387b4dd038 | [
"MIT"
] | null | null | null | commons/templatetags/i18n_utils.py | jaboutboul/almalinux.org | 1dda8faff0e84e650fc9a90e9a104d387b4dd038 | [
"MIT"
] | null | null | null | from typing import Dict
from django import template
from django.urls import resolve, reverse
from django.urls.exceptions import Resolver404
from django.utils import translation
register = template.Library()
| 25 | 72 | 0.724444 |
5eca5d623cda5a3b20dea4d0ab793ea0d10b5c10 | 2,113 | py | Python | weather_forecast.py | pub12/weather-forecast | 20eefaa3a290af659fe3cc69c67858891d449fba | [
"MIT"
] | 1 | 2021-09-04T12:06:31.000Z | 2021-09-04T12:06:31.000Z | weather_forecast.py | pub12/weather-forecast | 20eefaa3a290af659fe3cc69c67858891d449fba | [
"MIT"
] | null | null | null | weather_forecast.py | pub12/weather-forecast | 20eefaa3a290af659fe3cc69c67858891d449fba | [
"MIT"
] | null | null | null | import requests
import datetime, pytz
from quickchart import QuickChart
OPEN_WEATHER_MAP_APIKEY = '16786afe8ea0f6b683ab9298e52ac247'
if __name__ == '__main__':
print("Getting Weather Data")
json_data = get_weather_data_by_location( '22.300910042194783', '114.17070449064359')
get_quick_chart( json_data , 'mych... | 29.760563 | 123 | 0.568859 |
5eca95466b6c45dbaa04be04c01346c77b736894 | 2,269 | py | Python | hack/graph.py | dofinn/cincinnati | 9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837 | [
"Apache-2.0"
] | null | null | null | hack/graph.py | dofinn/cincinnati | 9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837 | [
"Apache-2.0"
] | 25 | 2021-09-15T04:27:06.000Z | 2022-03-08T20:27:49.000Z | hack/graph.py | dofinn/cincinnati | 9a55fde2c8a7746d1b8e99d72e3ce5daa7aba837 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import argparse
import sys
import json
from typing import Dict, List
if __name__ == '__main__':
run()
| 36.015873 | 210 | 0.631556 |
5ecb818dfb22cd3164c6594184c3fa42e6bdc1d1 | 543 | py | Python | third_party/manipulate_images.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 29 | 2019-03-25T09:35:12.000Z | 2022-01-08T22:09:03.000Z | third_party/manipulate_images.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | null | null | null | third_party/manipulate_images.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 4 | 2020-05-19T21:18:12.000Z | 2021-05-18T12:49:21.000Z | import imageio
import numpy as np
import scipy.ndimage
start_img = imageio.imread(
"http://static.cricinfo.com/db/PICTURES/CMS/263600/263697.20.jpg"
)
gray_inv_img = 255 - np.dot(start_img[..., :3], [0.299, 0.587, 0.114])
blur_img = scipy.ndimage.filters.gaussian_filter(gray_inv_img, sigma=5)
final_img = dodge... | 25.857143 | 71 | 0.707182 |
5ecbaa5972609aea0a8fb3c3542ad5f8dcd731c5 | 30 | py | Python | jk.py | validio-web/JavaPrograms | ff05e10135e5d5a527f70f67af683f5f99cd7bd6 | [
"MIT"
] | null | null | null | jk.py | validio-web/JavaPrograms | ff05e10135e5d5a527f70f67af683f5f99cd7bd6 | [
"MIT"
] | null | null | null | jk.py | validio-web/JavaPrograms | ff05e10135e5d5a527f70f67af683f5f99cd7bd6 | [
"MIT"
] | null | null | null | print "welcome to the jungle"
| 15 | 29 | 0.766667 |
5ecdc8b1a11d72a44089a8ee90fca21bec3ec6e2 | 935 | py | Python | dedupe/convenience.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | 1 | 2015-11-06T01:33:04.000Z | 2015-11-06T01:33:04.000Z | dedupe/convenience.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | dedupe/convenience.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Convenience functions for in memory deduplication
"""
import collections
import dedupe.core
def dataSample(data, sample_size):
'''Randomly sample pairs of records from a data dictionary'''
data_list = data.values()
random_pairs = dedupe.core.randomPair... | 23.375 | 75 | 0.682353 |
5ece0c2516a45ad3f70b047cfd0764e7f4392af9 | 2,459 | py | Python | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | buildimages.py | scripsi/douglasreed.uk | be36e28f59f5542963b4cd36ed044ed07de7ebd8 | [
"MIT"
] | null | null | null | import os
from PIL import Image, ImageOps
artwork_dir = "./docs/artworks"
artwork_filename = "/artwork.jpg"
thumbnail_filename = "/thumbnail.jpg"
image_width_large = 2000
image_width_medium = 1000
image_width_small = 500
image_width_thumbnail = 300
save_as_jpg = True
save_as_webp = False
artwork_subdirs = [f.path for... | 40.983333 | 132 | 0.708825 |
5ece7144c7b2ec17653f0f9dba2cd6ae36bf25de | 11,099 | py | Python | bin/xpc_gsd_exp.py | gengala/Random-Probabilistic-Circuits | 8871a9f1e6ace9d8ea7604b69abcc270c7792620 | [
"Apache-2.0"
] | 5 | 2021-05-20T10:39:47.000Z | 2022-01-23T09:37:38.000Z | bin/xpc_gsd_exp.py | gengala/Random-Probabilistic-Circuits | 8871a9f1e6ace9d8ea7604b69abcc270c7792620 | [
"Apache-2.0"
] | null | null | null | bin/xpc_gsd_exp.py | gengala/Random-Probabilistic-Circuits | 8871a9f1e6ace9d8ea7604b69abcc270c7792620 | [
"Apache-2.0"
] | null | null | null | import argparse
try:
from time import perf_counter
except:
from time import time
perf_counter = time
import dataset
import numpy as np
import datetime
import os
import logging
from src.inference import log_likelihood
from src.xpc import create_xpc, SD_LEVEL_2
from src.cltree import create_cltree
fr... | 40.655678 | 111 | 0.441211 |
5ed107e056877071199b1d13982f8ef865125b31 | 376 | py | Python | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
| 26.857143 | 82 | 0.734043 |
5ed1a2ebe6b18d55c5ac39c8d12715c6e6c4aa9a | 8,202 | py | Python | src/mycocoparser.py | partham16/ev_objdet_pc | 2ab64c94a9d7693f92bb3e4466014260f77072bb | [
"MIT"
] | null | null | null | src/mycocoparser.py | partham16/ev_objdet_pc | 2ab64c94a9d7693f92bb3e4466014260f77072bb | [
"MIT"
] | null | null | null | src/mycocoparser.py | partham16/ev_objdet_pc | 2ab64c94a9d7693f92bb3e4466014260f77072bb | [
"MIT"
] | null | null | null | # Motivation for replacing the default `coco` parser
# See Issue : https://github.com/airctic/icevision/issues/467
import json
import os
import pickle
from collections import defaultdict
from pathlib import Path
from typing import Dict, Hashable, List, Tuple, Union
import numpy as np
from icevision import ClassMap
f... | 31.068182 | 88 | 0.547427 |
5ed1fec47cb6b45bc795bc57689543768e765fc5 | 370 | py | Python | python/qidoc/test/projects/prebuild/tools/gen_rst.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qidoc/test/projects/prebuild/tools/gen_rst.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qidoc/test/projects/prebuild/tools/gen_rst.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the COPYING file.
" Generate source/generated.rst "
if __name__ == "__main__":
main()
| 20.555556 | 72 | 0.640541 |
5ed3804f209192e36d60aa99aa13e5c562c0312b | 3,386 | py | Python | test/test_manual_input.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 219 | 2017-12-12T09:42:46.000Z | 2022-03-13T08:25:13.000Z | test/test_manual_input.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 11 | 2017-12-14T08:14:51.000Z | 2021-08-09T18:37:45.000Z | test/test_manual_input.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 45 | 2017-12-14T07:26:36.000Z | 2022-03-11T09:36:56.000Z | import os
import sys
import unittest
from multiprocessing import Process, Queue
import mock
from xv_leak_tools.log import L
from xv_leak_tools.manual_input import allow_manual_input, disallow_manual_input
from xv_leak_tools.manual_input import message_and_await_string
from xv_leak_tools.manual_input import message_a... | 33.86 | 99 | 0.633786 |
5ed4015a6c4a19ef552f600253d6f3d0dfc05c83 | 904 | py | Python | setup.py | guillermo-carrasco/pytravis | da09d9f64d81b0db3ab8fa070d473f54cda1303a | [
"MIT"
] | 3 | 2015-01-27T09:07:48.000Z | 2021-01-09T17:45:44.000Z | setup.py | guillermo-carrasco/pytravis | da09d9f64d81b0db3ab8fa070d473f54cda1303a | [
"MIT"
] | null | null | null | setup.py | guillermo-carrasco/pytravis | da09d9f64d81b0db3ab8fa070d473f54cda1303a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import sys, os
version = '0.3'
setup(name='pytravis',
version=version,
description="Python wrapper for Travis-CI API",
long_description="""\
Python wrapper for Travis-CI API. Set of scripts to get information from travis.""",
classifiers=[], # Get st... | 34.769231 | 95 | 0.668142 |
5ed4893aa3d82971eb07e8a3cc9763f23cff15b4 | 30 | py | Python | bibserver/auth/__init__.py | jgoldfar/bibserver | ccf0e60f1983bb5db4c2594bbd8187139556be90 | [
"MIT"
] | 47 | 2015-01-07T06:53:22.000Z | 2021-02-27T08:48:43.000Z | bibserver/auth/__init__.py | dartar/bibserver | 0640592200476bd97dfe9678173d30759bdbce30 | [
"OML"
] | 10 | 2015-02-08T12:48:27.000Z | 2018-11-08T02:47:19.000Z | bibserver/auth/__init__.py | dartar/bibserver | 0640592200476bd97dfe9678173d30759bdbce30 | [
"OML"
] | 21 | 2015-01-16T06:31:43.000Z | 2021-02-27T08:49:18.000Z | import collection
import user
| 10 | 17 | 0.866667 |
5ed60a3c5caf9c5dba8bc4729025fb3ca0156ca4 | 7,057 | py | Python | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | 2 | 2019-02-19T19:05:15.000Z | 2019-05-05T20:07:16.000Z | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | null | null | null | Main.py | ShihaoWang/Contact-Transition-Tree | cf53aaea8a3a61d3eb92b96a6ca16a3b0c791afc | [
"MIT"
] | null | null | null | #!/usr/bin/python
# import osqp
import sys, os
from klampt import *
from klampt import vis
from klampt.vis.glrobotprogram import GLSimulationPlugin
import numpy as np
import string
import scipy as sp
import scipy.sparse as sparse
from klampt.model.trajectory import Trajectory
import time
import math
sys.path.insert(0... | 50.769784 | 176 | 0.700298 |
5ed71fb1c4d7c7ac8578c5f7266cc08abffb712a | 2,524 | py | Python | exp/motivation/variable_throughput/nginx/analysis.py | sarsanaee/Backdraft | 5c60bdb17901d402ebc6feea2d43f26e56d66668 | [
"MIT"
] | null | null | null | exp/motivation/variable_throughput/nginx/analysis.py | sarsanaee/Backdraft | 5c60bdb17901d402ebc6feea2d43f26e56d66668 | [
"MIT"
] | null | null | null | exp/motivation/variable_throughput/nginx/analysis.py | sarsanaee/Backdraft | 5c60bdb17901d402ebc6feea2d43f26e56d66668 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import numpy as np
import sys
if len(sys.argv) < 3:
print("Error: Invalid parameters: Path to trace not existed")
print("usage: ./program window [<path_to_trace>]")
exit(0)
# data = np.loadtxt("1M_Req_1_Concurrency.txt")
# data = np.loadtxt("/tmp/ab_stats_7.txt")
ts_data = []
try:
... | 23.155963 | 104 | 0.614501 |
5ed80b7eb69a728a482933d1c1030be79406a25c | 4,090 | py | Python | examples/adafruit_io_mqtt/adafruit_io_groups.py | ryanplusplus/Adafruit_CircuitPython_AdafruitIO | 5efcef473a7223e537c1910179da7fffd90a9185 | [
"Unlicense",
"MIT-0",
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | examples/adafruit_io_mqtt/adafruit_io_groups.py | ryanplusplus/Adafruit_CircuitPython_AdafruitIO | 5efcef473a7223e537c1910179da7fffd90a9185 | [
"Unlicense",
"MIT-0",
"MIT"
] | 43 | 2019-02-22T03:20:22.000Z | 2022-01-14T15:44:19.000Z | examples/adafruit_io_mqtt/adafruit_io_groups.py | ryanplusplus/Adafruit_CircuitPython_AdafruitIO | 5efcef473a7223e537c1910179da7fffd90a9185 | [
"Unlicense",
"MIT-0",
"MIT"
] | 28 | 2019-02-19T21:35:20.000Z | 2022-03-27T17:43:31.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# Subscribing to an Adafruit IO Group
# and Publishing to the feeds in the group
import time
from random import randint
import board
import busio
from digitalio import DigitalInOut
from adafruit_esp32spi import adafruit_esp3... | 31.705426 | 88 | 0.763081 |
5ed8398d08d23ce47895ea9d5f261522c86dd1a4 | 1,082 | py | Python | setup.py | duanyytop/ckb-sdk-python | 4c7b1676fbb130abfe795290ebba32c1d6d97a08 | [
"MIT"
] | 1 | 2021-09-17T06:05:20.000Z | 2021-09-17T06:05:20.000Z | setup.py | duanyytop/ckb-sdk-python | 4c7b1676fbb130abfe795290ebba32c1d6d97a08 | [
"MIT"
] | null | null | null | setup.py | duanyytop/ckb-sdk-python | 4c7b1676fbb130abfe795290ebba32c1d6d97a08 | [
"MIT"
] | null | null | null | import os
import io
from setuptools import setup, find_packages
HERE = os.path.dirname(os.path.realpath(__file__))
README = os.path.join(HERE, 'README.md')
with io.open(README, encoding='utf-8') as f:
long_description = f.read()
VERSION = os.path.join(HERE, 'ckb_toolkit', 'version.py')
with io.open(VERSION, enco... | 29.243243 | 60 | 0.641405 |
5ed86b6aaa7016a6e2d535463b8dced4480c51e4 | 4,672 | py | Python | ocbot/web/routes_slack.py | OperationCode/operationcode_pyback | c4b8d466baaef16f005c35b290cb48e597a65a32 | [
"MIT"
] | 16 | 2018-04-03T17:19:51.000Z | 2020-09-12T16:00:43.000Z | ocbot/web/routes_slack.py | OperationCode/operation_code_pybot | c4b8d466baaef16f005c35b290cb48e597a65a32 | [
"MIT"
] | 34 | 2017-10-31T15:53:15.000Z | 2018-03-02T17:24:13.000Z | ocbot/web/routes_slack.py | OperationCode/operationcode_pyback | c4b8d466baaef16f005c35b290cb48e597a65a32 | [
"MIT"
] | 10 | 2018-03-24T01:58:06.000Z | 2021-01-21T06:50:54.000Z | import logging
import threading
from flask import request, make_response, json, redirect, url_for
from config.configs import configs
from ocbot import app
from ocbot.pipeline.routing import RoutingHandler
from ocbot.pipeline.slash_command_handlers.log_handlers import can_view_logs, get_temporary_url, handle_log_view
... | 34.607407 | 112 | 0.704623 |
0d57ec22c55b9fe1a9b170349aaaf1d68422b908 | 2,936 | py | Python | searchconsole/account.py | symbiotech/google-searchconsole | 0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e | [
"MIT"
] | null | null | null | searchconsole/account.py | symbiotech/google-searchconsole | 0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e | [
"MIT"
] | null | null | null | searchconsole/account.py | symbiotech/google-searchconsole | 0f3a18c58fc74b91c6ad9e08b442ba80f0c2502e | [
"MIT"
] | null | null | null | # encoding: utf-8
from . import query
| 29.959184 | 79 | 0.61921 |
0d5856d272a973791b102401657f1a1822f8c781 | 145,280 | py | Python | sdk/python/pulumi_opsgenie/outputs.py | pulumi/pulumi-opsgenie | 4bc7d0cbb5b0437c59422a5977a61468baa2c4a7 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-12-01T20:57:42.000Z | 2021-12-01T20:57:42.000Z | sdk/python/pulumi_opsgenie/outputs.py | pulumi/pulumi-opsgenie | 4bc7d0cbb5b0437c59422a5977a61468baa2c4a7 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2021-02-03T20:15:32.000Z | 2022-03-25T19:57:20.000Z | sdk/python/pulumi_opsgenie/outputs.py | pulumi/pulumi-opsgenie | 4bc7d0cbb5b0437c59422a5977a61468baa2c4a7 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-07-08T15:16:09.000Z | 2021-07-20T11:12:44.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 37.327852 | 291 | 0.620643 |
0d5944cf18ff876b7a19f160fdee473e30de7ffb | 2,546 | py | Python | src/pytorch_adapt/frameworks/lightning/lightning.py | MarkusSagen/pytorch-adapt | 947b9f1b748d2078cecbf4a00c34f73108d9ecde | [
"MIT"
] | 1 | 2021-12-15T19:36:01.000Z | 2021-12-15T19:36:01.000Z | src/pytorch_adapt/frameworks/lightning/lightning.py | MarkusSagen/pytorch-adapt | 947b9f1b748d2078cecbf4a00c34f73108d9ecde | [
"MIT"
] | null | null | null | src/pytorch_adapt/frameworks/lightning/lightning.py | MarkusSagen/pytorch-adapt | 947b9f1b748d2078cecbf4a00c34f73108d9ecde | [
"MIT"
] | null | null | null | from collections import defaultdict
import pytorch_lightning as pl
import torch
from ...containers import Optimizers
from .. import utils as f_utils
| 34.405405 | 79 | 0.66143 |
0d5a9be19d355c1b2904b2d86faf394e45e5df77 | 5,740 | py | Python | libvvtest/outpututils.py | rrdrake/vvtest | 875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6 | [
"Unlicense"
] | 7 | 2021-03-26T21:33:09.000Z | 2022-03-01T17:06:55.000Z | libvvtest/outpututils.py | rrdrake/vvtest | 875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6 | [
"Unlicense"
] | null | null | null | libvvtest/outpututils.py | rrdrake/vvtest | 875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
# Government retains certain rights in this software.
import os, sys
from os.path import join as pjoin
import time
import traceback
from . import ... | 26.451613 | 79 | 0.566551 |
0d5baa45120b260610692f203c5d97f0a7321995 | 13,956 | py | Python | bay/plugins/build.py | eventbrite/bay | 3a157457a55713067213aeafe385a1cc49aa2698 | [
"Apache-2.0"
] | 22 | 2017-03-01T19:52:30.000Z | 2020-09-09T16:27:21.000Z | bay/plugins/build.py | eventbrite/bay | 3a157457a55713067213aeafe385a1cc49aa2698 | [
"Apache-2.0"
] | 25 | 2017-02-23T23:08:56.000Z | 2019-10-09T00:02:52.000Z | bay/plugins/build.py | eventbrite/bay | 3a157457a55713067213aeafe385a1cc49aa2698 | [
"Apache-2.0"
] | 4 | 2017-03-12T03:51:17.000Z | 2021-09-08T11:36:36.000Z | import attr
import click
import datetime
import sys
from docker.errors import NotFound
from .base import BasePlugin
from ..cli.colors import CYAN, GREEN, RED, remove_ansi
from ..cli.argument_types import ContainerType, HostType
from ..cli.tasks import Task
from ..constants import PluginHook
from ..docker.build import ... | 42.036145 | 116 | 0.622743 |
0d5c97ac015a15044eb61b7046d8427fedd68fcd | 889 | py | Python | nablapps/interactive/models/games.py | NablaWebkom/nablaweb | 9247c5e3f7b5d965d9437c74530638f925d0e9c6 | [
"MIT"
] | 1 | 2019-10-07T13:59:19.000Z | 2019-10-07T13:59:19.000Z | nablapps/interactive/models/games.py | NablaWebkom/nablaweb | 9247c5e3f7b5d965d9437c74530638f925d0e9c6 | [
"MIT"
] | 2 | 2019-10-07T14:47:37.000Z | 2019-10-07T14:49:49.000Z | nablapps/interactive/models/games.py | NablaWebkom/nablaweb | 9247c5e3f7b5d965d9437c74530638f925d0e9c6 | [
"MIT"
] | null | null | null | # Models for game_list
from django import template
from django.db import models
register = template.Library()
| 32.925926 | 290 | 0.673791 |
0d5d476ef8064a1f801bca06d8f771721e4ae33b | 288 | py | Python | solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | null | null | null | solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | null | null | null | solution/practice/data-structures/linked-list/print-the-elements-of-a-linked-list/solution.py | satyam857/HackerRank | b6c0c199a5e320b1b59fdedafda2630258314b76 | [
"MIT"
] | 1 | 2018-10-22T10:42:45.000Z | 2018-10-22T10:42:45.000Z | # Complete the printLinkedList function below.
#
# For your reference:
#
# SinglyLinkedListNode:
# int data
# SinglyLinkedListNode next
#
# | 16.941176 | 46 | 0.607639 |
0d5d5fe08b68a42bbf47cdd1e53e137159c13499 | 1,877 | py | Python | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | python/section12-2.py | loveactualry/fluffy-octo-disco | e111282895350e348c660d31c83c3133fcd57ada | [
"Apache-2.0"
] | null | null | null | # Section12-2
# (SQLite)
import sqlite3
# DB ( )
conn = sqlite3.connect('C:/pythonbasic/resource/database.db') # db
#
c = conn.cursor()
# ()
#c.execute("SELECT * FROM users")
#
# 1
#print('One -> \n', c.fetchone())
#
#print("Three -> \n", c.fetchmany(size=3))
#
#print(... | 22.082353 | 78 | 0.598295 |
0d5ee9999bbcd7a4fe2453d542df290189163476 | 3,182 | py | Python | pyapprox/models/test_datafunction_model.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 26 | 2019-12-16T02:21:15.000Z | 2022-03-17T09:59:18.000Z | pyapprox/models/test_datafunction_model.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 9 | 2020-03-03T03:04:55.000Z | 2021-08-19T22:50:42.000Z | pyapprox/models/test_datafunction_model.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 7 | 2020-03-02T03:49:17.000Z | 2021-02-17T02:07:53.000Z | import unittest
import numpy as np
from pyapprox.models.wrappers import DataFunctionModel
if __name__== "__main__":
data_function_model_test_suite=unittest.TestLoader().loadTestsFromTestCase(
TestDataFunctionModel)
unittest.TextTestRunner(verbosity=2).run(data_function_model_test_suite)
| 34.967033 | 79 | 0.655248 |
0d5f794c240a2713b4e7ab394e05f2c97c787a51 | 4,945 | py | Python | video/segment.py | ArseniKavalchuk/ffmpeg-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | 1 | 2020-10-23T15:56:31.000Z | 2020-10-23T15:56:31.000Z | video/segment.py | ArseniKavalchuk/ffmpeg-rtsp-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | null | null | null | video/segment.py | ArseniKavalchuk/ffmpeg-rtsp-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | null | null | null | import ffmpeg
import os
import logging
import glob
logger = logging.getLogger('segmenter')
| 35.833333 | 99 | 0.558342 |
0d5fae65bcad708f5d5bd66201a606879164f0e1 | 23,753 | py | Python | npl_portfolio/property_collateral.py | open-risk/openNPL | fff1d219b5180305fd8b9e742e0e26dc0306f45d | [
"MIT"
] | 16 | 2020-07-03T09:10:46.000Z | 2021-06-28T09:31:37.000Z | npl_portfolio/property_collateral.py | open-risk/openNPL | fff1d219b5180305fd8b9e742e0e26dc0306f45d | [
"MIT"
] | 2 | 2021-03-12T18:59:17.000Z | 2021-03-30T23:10:26.000Z | npl_portfolio/property_collateral.py | open-risk/openNPL | fff1d219b5180305fd8b9e742e0e26dc0306f45d | [
"MIT"
] | 7 | 2020-07-11T18:09:50.000Z | 2021-09-20T07:47:02.000Z | # Copyright (c) 2020 - 2021 Open Risk (https://www.openriskmanagement.com)
#
# 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 ... | 98.970833 | 437 | 0.69667 |
0d61c4eb539721622e0afd3f029768d48f3848b5 | 1,396 | py | Python | src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | 1 | 2020-12-18T21:37:28.000Z | 2020-12-18T21:37:28.000Z | src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | null | null | null | src/api/pdi/application/dashboard/GetDataOperationJobExecutionWidget/GetDataOperationJobExecutionWidgetQueryHandler.py | ahmetcagriakca/pythondataintegrator | 079b968d6c893008f02c88dbe34909a228ac1c7b | [
"MIT"
] | 1 | 2020-12-18T21:37:31.000Z | 2020-12-18T21:37:31.000Z | from injector import inject
from pdip.cqrs import IQueryHandler
from pdip.dependency import IScoped
from pdi.application.dashboard.GetDataOperationJobExecutionWidget.GetDataOperationJobExecutionWidgetMapping import \
GetDataOperationJobExecutionWidgetMapping
from pdi.application.dashboard.GetDataOperationJobExecut... | 53.692308 | 123 | 0.852436 |
0d632ebfcf390e585a2cf63ec0c29c0477321357 | 1,947 | py | Python | gecosistema_win_service/example.py | valluzzi/gecosistema_win_service | 5bfd2e6e85eddb750bfb7715930ef5612c71a4e1 | [
"MIT"
] | null | null | null | gecosistema_win_service/example.py | valluzzi/gecosistema_win_service | 5bfd2e6e85eddb750bfb7715930ef5612c71a4e1 | [
"MIT"
] | null | null | null | gecosistema_win_service/example.py | valluzzi/gecosistema_win_service | 5bfd2e6e85eddb750bfb7715930ef5612c71a4e1 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------------
# Licence:
# Copyright (c) 2012-2020 Luzzi Valerio
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANT... | 27.041667 | 100 | 0.639445 |
0d63537c7a3acbbe4a440b749ad98860f8d066ce | 6,309 | py | Python | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | 1 | 2016-08-24T07:57:30.000Z | 2016-08-24T07:57:30.000Z | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | null | null | null | scripts/nagios/check_jmxproxy.py | mk23/jmxproxy-test | d5b8145eef2b05560a3e2879cb5f15cbf491e4a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
import argparse
import json
import re
import sys
import traceback
import urllib
import urllib2
SUCCESS, WARNING, CRITICAL, UNKNOWN = range(4)
ERRORS = dict((v, k) for k, v in vars(sys.modules[__name__]).items() if type(v) == int)
if __name__ == '__main__':
master_parser = argparse.Argume... | 45.388489 | 189 | 0.570772 |
0d64a2a47538f87f2ae8c4d52adea915c9e65edb | 14,042 | py | Python | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | null | null | null | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | 18 | 2018-10-24T01:35:45.000Z | 2018-12-17T03:57:36.000Z | feature_mining/em_vector.py | nfreundlich/CS410_CourseProject | c50d0ff04472e48b0b59abe4467dc17d7c2cfab8 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.sparse import csr_matrix
from feature_mining.em_base import ExpectationMaximization
if __name__ == '__main__':
em = ExpectationMaximizationVector()
em.em()
"""
* Notation:
v = number of words in vocabulary
m = number of sentences (lines) in all revi... | 43.07362 | 127 | 0.543441 |
0d652795dab14c8112782292c58dcb2c2d1a4e6f | 521 | py | Python | api/migrations/0009_contributor_unique contributor.py | josayko/SoftDeskAPI | a168abb09b09c5cb5f8f4957d028ebde02f3d128 | [
"MIT"
] | null | null | null | api/migrations/0009_contributor_unique contributor.py | josayko/SoftDeskAPI | a168abb09b09c5cb5f8f4957d028ebde02f3d128 | [
"MIT"
] | null | null | null | api/migrations/0009_contributor_unique contributor.py | josayko/SoftDeskAPI | a168abb09b09c5cb5f8f4957d028ebde02f3d128 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-23 14:48
from django.db import migrations, models
import django.db.models.expressions
| 27.421053 | 157 | 0.681382 |
0d65822e35959222811499bf6a00a06314dc624b | 2,706 | py | Python | bib2reSTcitation.py | marvinbernhardt/bib2reSTcitation | b200412f3dccfee5718feb80b48c5cc5c61d884c | [
"MIT"
] | null | null | null | bib2reSTcitation.py | marvinbernhardt/bib2reSTcitation | b200412f3dccfee5718feb80b48c5cc5c61d884c | [
"MIT"
] | null | null | null | bib2reSTcitation.py | marvinbernhardt/bib2reSTcitation | b200412f3dccfee5718feb80b48c5cc5c61d884c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import sys
import re
if __name__ == '__main__':
throot = "/".join(sys.path[0].split("/")[:])
parser = argparse.ArgumentParser(description='bib2reSTcitation is a tool to convert bib tex file to reStructuredText Markup citation format.')
parser.add_argument('-o', '-... | 41 | 146 | 0.518108 |
0d686dc9ef7836d9dcd1a98c972cedbc4f4e6b66 | 161 | py | Python | command_handler/stats.py | felippemr/simple_kv | 3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf | [
"BSD-3-Clause"
] | 16 | 2015-12-04T18:36:16.000Z | 2022-03-29T21:52:31.000Z | command_handler/stats.py | felippemr/simple_kv | 3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf | [
"BSD-3-Clause"
] | null | null | null | command_handler/stats.py | felippemr/simple_kv | 3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf | [
"BSD-3-Clause"
] | null | null | null | from settings import STATS_DICT
def handle_stats():
"""Return a tuple containing True and the contents of the STATS dict."""
return (True, STATS_DICT)
| 23 | 76 | 0.726708 |
0d69318abc11696433e4f1924cacaff09033b82a | 658 | py | Python | src/config.py | blockshift/hyperledger-cello-master | 9e8dabe1606f277e327165b866cc70a0d569f3b4 | [
"Apache-2.0"
] | null | null | null | src/config.py | blockshift/hyperledger-cello-master | 9e8dabe1606f277e327165b866cc70a0d569f3b4 | [
"Apache-2.0"
] | null | null | null | src/config.py | blockshift/hyperledger-cello-master | 9e8dabe1606f277e327165b866cc70a0d569f3b4 | [
"Apache-2.0"
] | null | null | null |
# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
import os
import bcrypt
| 24.37037 | 79 | 0.696049 |
0d69578c10d2634307c060bc1241b6dc2f5a2d74 | 556 | py | Python | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 47 | 2020-07-10T14:28:52.000Z | 2022-03-25T17:20:52.000Z | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 10 | 2020-08-08T16:35:40.000Z | 2022-03-08T00:07:19.000Z | geneal/applications/tsp/examples/world_capitals/_world_capitals.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 14 | 2020-08-07T20:49:18.000Z | 2022-03-31T17:55:47.000Z | import os
import pandas as pd
try:
module_path = os.path.abspath(os.path.join("."))
world_capitals = pd.read_csv(os.path.join(module_path, "data/world_capitals.csv"))
except FileNotFoundError:
module_path = os.path.abspath(os.path.join(".."))
world_capitals = pd.read_csv(os.path.join(module_path, "da... | 27.8 | 86 | 0.751799 |
0d6b5bc99fe656be916957a3fe9bf8ca0a97853c | 3,166 | py | Python | singleImageHSV.py | josephwccheng/InvisibleCloakOpenCV | b3abb5a95b8f050e74ee97b701e0ecc51046d66e | [
"MIT"
] | null | null | null | singleImageHSV.py | josephwccheng/InvisibleCloakOpenCV | b3abb5a95b8f050e74ee97b701e0ecc51046d66e | [
"MIT"
] | null | null | null | singleImageHSV.py | josephwccheng/InvisibleCloakOpenCV | b3abb5a95b8f050e74ee97b701e0ecc51046d66e | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import time
import matplotlib.pyplot as plt
#####################################################
#
# Author: Joseph Cheng
# HSV: Hue Saturation Value
# Hue is the color
# Saturation is the greyness
# Value is the brightness of the pixel
#
#
############################... | 32.639175 | 104 | 0.679406 |
0d6ba03cf017f1a2f946aece4eb5018d6320c47a | 5,371 | py | Python | netharn/layers/perceptron.py | VIAME/netharn | c9491d655c5d91cb0ee6055f30e68282108e6b67 | [
"Apache-2.0"
] | null | null | null | netharn/layers/perceptron.py | VIAME/netharn | c9491d655c5d91cb0ee6055f30e68282108e6b67 | [
"Apache-2.0"
] | null | null | null | netharn/layers/perceptron.py | VIAME/netharn | c9491d655c5d91cb0ee6055f30e68282108e6b67 | [
"Apache-2.0"
] | null | null | null | from netharn.layers import common
from netharn.layers import rectify
from netharn.layers import conv_norm
import numpy as np
| 40.383459 | 100 | 0.582945 |
0d6c6a31ee2dcded3d58deceaa07ea08c9e07ee6 | 11,116 | py | Python | finicityapi/controllers/consumer_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/controllers/consumer_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/controllers/consumer_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from finicityapi.api_helper import APIHelper
from finicityapi.configuration import Configuration
from finicityapi.controllers.base_controller import BaseController
from finicityapi.http.auth.custom_header_auth import CustomHeaderAuth
from finicityapi.models.consumer import Consumer
from ... | 41.17037 | 114 | 0.611011 |
0d6e573aac9be9a3ddc8cd881787cdec4d5f95b8 | 2,199 | py | Python | tests/event_broker/test_multi_subscribe.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 5 | 2019-07-22T06:04:07.000Z | 2021-07-23T06:01:51.000Z | tests/event_broker/test_multi_subscribe.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 15 | 2020-07-28T17:33:40.000Z | 2021-08-23T17:30:05.000Z | tests/event_broker/test_multi_subscribe.py | filfreire/questions-three | 1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8 | [
"MIT"
] | 4 | 2019-08-25T22:41:59.000Z | 2020-10-21T14:28:15.000Z | from functools import partial
from unittest import TestCase, main
from expects import expect, be_empty, equal
from twin_sister.expects_matchers import complain
from twin_sister.fakes import FunctionSpy
from questions_three.constants import TestEvent
from questions_three.event_broker import EventBroker
if "__main__... | 33.830769 | 93 | 0.673488 |
0d6e9a3e1c2529b39e7ddfcb30d0694645fa2929 | 5,075 | py | Python | opto/opto/classes/Optimizer.py | tholiao/opto | 370a016a1ccef462b185b0f9538fb33aab81d566 | [
"MIT"
] | 5 | 2019-03-25T17:52:28.000Z | 2022-03-19T06:20:41.000Z | opto/opto/classes/Optimizer.py | tholiao/opto | 370a016a1ccef462b185b0f9538fb33aab81d566 | [
"MIT"
] | null | null | null | opto/opto/classes/Optimizer.py | tholiao/opto | 370a016a1ccef462b185b0f9538fb33aab81d566 | [
"MIT"
] | 6 | 2018-02-19T05:33:40.000Z | 2019-11-21T04:17:22.000Z | # Compatibility Python 2/3
from __future__ import division, print_function, absolute_import
from builtins import range
# ----------------------------------------------------------------------------------------------------------------------
import numpy as np
from dotmap import DotMap
from .Logs import Logs
fro... | 39.038462 | 155 | 0.568079 |
0d704f2f7940709c3bf91f303ecaf73f3e4a2d3f | 1,359 | py | Python | tests/bugs/core_3675_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_3675_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_3675_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_3675
# title: CREATE INDEX considers NULL and empty string being the same in compound indices
# decription:
# tracker_id: CORE-3675
# min_versions: ['2.5.2']
# versions: 2.5.2
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Acti... | 24.267857 | 95 | 0.552612 |
0d707813321db46119d80b8013c2b030f2c67f56 | 1,278 | py | Python | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 3 | 2016-09-02T13:54:17.000Z | 2017-06-21T22:42:03.000Z | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 4 | 2017-01-19T10:09:15.000Z | 2019-10-28T10:39:40.000Z | tests/test_response_mockups.py | Shin--/django-sofortueberweisung | b410c358cbb3e3a3d047eedcff0a4046c493a7c7 | [
"MIT"
] | 3 | 2017-11-07T10:05:14.000Z | 2019-02-06T10:01:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.template.loader import render_to_string
from django.utils import timezone
TEST_RESPONSES = {
'123-abc-received': render_to_string(template_name='tests/transaction_details.xml', context={'amount': 123, 'status': 'received', 'transaction_id': '123-abc-rece... | 51.12 | 173 | 0.676839 |
0d73a3c5a76c4a1ecfc8ba69c9bdec3726bf3080 | 7,724 | py | Python | analysisCodes/hotrgTc.py | brucelyu/tensorRGflow | e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06 | [
"MIT"
] | 12 | 2021-03-06T10:06:54.000Z | 2022-01-31T14:20:28.000Z | analysisCodes/hotrgTc.py | brucelyu/tensorRGflow | e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06 | [
"MIT"
] | null | null | null | analysisCodes/hotrgTc.py | brucelyu/tensorRGflow | e70edb2da11f0be4db2882ddd7a07a8a6e0d4f06 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : hotrgTc.py
# Author : Xinliang(Bruce) Lyu <lyu@issp.u-tokyo.ac.jp>
# Date : 22.02.2021
# Last Modified Date: 22.02.2021
# Last Modified By : Xinliang(Bruce) Lyu <lyu@issp.u-tokyo.ac.jp>
# -*- coding: utf-8 -*-
"""
Created on S... | 37.862745 | 89 | 0.576256 |
0d7412d1cd28b6de9850ed3634e8ab4057bb4f22 | 32,442 | py | Python | src/modeling.py | gengjia0214/jai | 865ec9fdf432288ecab806cd1ecb8a4c747ee689 | [
"BSD-3-Clause"
] | 9 | 2020-02-20T23:14:55.000Z | 2020-07-09T03:28:04.000Z | src/modeling.py | gengjia0214/jai | 865ec9fdf432288ecab806cd1ecb8a4c747ee689 | [
"BSD-3-Clause"
] | null | null | null | src/modeling.py | gengjia0214/jai | 865ec9fdf432288ecab806cd1ecb8a4c747ee689 | [
"BSD-3-Clause"
] | null | null | null | """
Modeling Pipeline
Author: Jia Geng
Email: gjia0214@gmail.com | jxg570@miami.edu
"""
import gc
import os
import random
import copy
import torch
import torch.nn as nn
from sklearn import metrics
from torch.optim.lr_scheduler import *
from torch.optim.optimizer import Optimizer
from datautils.datahandler import Dat... | 41.699229 | 145 | 0.607885 |
0d743fc5ff11340168a1f5be064069815e115ae3 | 5,805 | py | Python | cogs/Competitive.py | DevvyDont/CraneDuels | a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4 | [
"MIT"
] | null | null | null | cogs/Competitive.py | DevvyDont/CraneDuels | a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4 | [
"MIT"
] | null | null | null | cogs/Competitive.py | DevvyDont/CraneDuels | a6c8ed9f2fd5dbc01cc3419856fae3d4a587bdc4 | [
"MIT"
] | null | null | null | from discord import Embed
from discord.errors import InvalidArgument
from discord.ext import commands
import json
import os.path
from discord.ext.commands.core import command
DEBUG = True
"""
Example of the structure of the json file for storing elos
If we ever want to add a new mode we can just add a new enum to ... | 30.552632 | 143 | 0.57261 |
0d7476879775d1d52aa3bcee7ee0cad81c8e65bd | 653 | py | Python | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | tests/sharepoint/test_client_side_component.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from tests.sharepoint.sharepoint_case import SPTestCase
from office365.sharepoint.webs.web import Web
| 31.095238 | 81 | 0.744257 |
0d7812855fb69eaa94b6d295abeec4a4d24cc06e | 4,203 | py | Python | discord-bot/music.py | rdebek/discord-bot | 2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299 | [
"MIT"
] | null | null | null | discord-bot/music.py | rdebek/discord-bot | 2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299 | [
"MIT"
] | null | null | null | discord-bot/music.py | rdebek/discord-bot | 2da5e4f776bb72cf08b7e9cdf0fa99bd62ddd299 | [
"MIT"
] | null | null | null | from discord.ext import commands
from player import Player
FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
'options': '-vn'}
| 34.735537 | 98 | 0.630502 |
0d7937c2b3a48324e9a6ff27ade9cf323de26ee1 | 3,895 | py | Python | TSP/TSPA.py | hiiroo/ModernHeuristics | 2c02a76a571c1608a2096fed7491f60e0d3f9bde | [
"MIT"
] | null | null | null | TSP/TSPA.py | hiiroo/ModernHeuristics | 2c02a76a571c1608a2096fed7491f60e0d3f9bde | [
"MIT"
] | null | null | null | TSP/TSPA.py | hiiroo/ModernHeuristics | 2c02a76a571c1608a2096fed7491f60e0d3f9bde | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2019 Ali Mert Ceylan, Adopted from original resources provided
by Korhan Karabulut for COMP 5658 Modern Heuristics Course
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 Soft... | 35.733945 | 95 | 0.576637 |
0d799e5e74e58842353f606554f65d80dd705533 | 19,817 | py | Python | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((127, 144),
(127, 146), (128, 108), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 118), (129, 102), (129, 103), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 118), (129, 12... | 396.34 | 865 | 0.492759 |
0d79f0e4cbdb7d5315b91cbc4c77238af366e46c | 5,024 | py | Python | theforce/deprecated/regression/kernels.py | changwmyung/AutoForce | c8a429b05685841e1f17e8655b981753e1d086be | [
"MIT"
] | 19 | 2019-10-21T06:56:22.000Z | 2022-03-14T06:43:42.000Z | theforce/deprecated/regression/kernels.py | 17DongGeonKim/AutoForce | c8a429b05685841e1f17e8655b981753e1d086be | [
"MIT"
] | 8 | 2019-10-23T07:48:49.000Z | 2022-03-23T03:47:44.000Z | theforce/deprecated/regression/kernels.py | 17DongGeonKim/AutoForce | c8a429b05685841e1f17e8655b981753e1d086be | [
"MIT"
] | 4 | 2021-09-25T11:28:44.000Z | 2022-02-25T06:50:48.000Z |
import torch
from torch.nn import Module, Parameter
from theforce.regression.algebra import positive, free_form
import warnings
def test_if_works():
from theforce.regression.algebra import jitcholesky
variance = torch.tensor(1.0)
scale = torch.ones(7)
kern = RBF(scale, variance)
X = torch.rand(... | 32.205128 | 103 | 0.540406 |
0d7c091967c9affc83a4f4c6f7107024f844a0d2 | 229 | py | Python | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | 1 | 2016-05-08T13:21:04.000Z | 2016-05-08T13:21:04.000Z | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | import tests_module
import other_module
| 17.615385 | 62 | 0.772926 |
0d7dd31165140749f8c07152e6e2e3b6c074eab6 | 223 | py | Python | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | 1 | 2017-11-20T08:35:01.000Z | 2017-11-20T08:35:01.000Z | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | null | null | null | openscreenlapser/main.py | tybantarnusa/openscreenlapser | 686c731bd1c50c1f3e400ada6fe629b7debc6a9a | [
"Apache-2.0"
] | null | null | null | from aesthetic import main_window
from logic import capture
if __name__ == '__main__':
main()
| 20.272727 | 52 | 0.695067 |
0d7eec1b47b1552221bc328ab841825e0535255e | 66 | py | Python | mmaction/models/backbones/__init__.py | sail-sg/dualformer | de0cdf858ca71a388ea006034cabcfa2e30fa33a | [
"Apache-2.0"
] | 10 | 2021-12-13T05:57:24.000Z | 2022-03-29T14:56:02.000Z | mmaction/models/backbones/__init__.py | sail-sg/dualformer | de0cdf858ca71a388ea006034cabcfa2e30fa33a | [
"Apache-2.0"
] | null | null | null | mmaction/models/backbones/__init__.py | sail-sg/dualformer | de0cdf858ca71a388ea006034cabcfa2e30fa33a | [
"Apache-2.0"
] | null | null | null | from .dualformer import DualFormer
__all__ = [
'DualFormer'
]
| 9.428571 | 34 | 0.712121 |
0d7f4790c6df62a6fbce782e191af0e7f88e6ecd | 21,431 | py | Python | RLBotPack/Kamael/Kamael.py | robbai/RLBotPack | 33afb2e28ff76e6c5774c03be20bdcdd356fb9d0 | [
"MIT"
] | null | null | null | RLBotPack/Kamael/Kamael.py | robbai/RLBotPack | 33afb2e28ff76e6c5774c03be20bdcdd356fb9d0 | [
"MIT"
] | null | null | null | RLBotPack/Kamael/Kamael.py | robbai/RLBotPack | 33afb2e28ff76e6c5774c03be20bdcdd356fb9d0 | [
"MIT"
] | null | null | null | import math
from rlbot.agents.base_agent import BaseAgent, SimpleControllerState
from rlbot.utils.structures.game_data_struct import GameTickPacket
from rlbot.utils.game_state_util import GameState, BallState, CarState, Physics, Vector3 as vector3, Rotator
from Utilities import *
from States import *
import cProfile, p... | 40.057944 | 210 | 0.604825 |
0d7fc6eb608bab4d322cdbf0abb9ca8e6b3bc5ff | 1,048 | py | Python | examples/pydoop_script/grep.py | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | 1 | 2017-11-16T02:13:15.000Z | 2017-11-16T02:13:15.000Z | examples/pydoop_script/grep.py | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | null | null | null | examples/pydoop_script/grep.py | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | null | null | null | # BEGIN_COPYRIGHT
#
# Copyright 2009-2014 CRS4.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.75 | 77 | 0.745229 |
0d800898fe94588ed0a05be9c9de20e364588e5b | 17,707 | py | Python | Game Palace/rps.py | BirdLQ/Game-Arcade | f61081250a617d33dccd4dc81fd469bfcbe0afe3 | [
"MIT"
] | 1 | 2021-01-08T01:44:23.000Z | 2021-01-08T01:44:23.000Z | Game Palace/rps.py | BirdLQ/Game-Arcade | f61081250a617d33dccd4dc81fd469bfcbe0afe3 | [
"MIT"
] | null | null | null | Game Palace/rps.py | BirdLQ/Game-Arcade | f61081250a617d33dccd4dc81fd469bfcbe0afe3 | [
"MIT"
] | null | null | null | import random, sys, curses, threading, time
import main_menu
import leaderboard
from methods.menus import *
scissors=[" ",
" ",
" ... | 42.770531 | 102 | 0.273112 |
0d819bb7b839df183b133e4bb76bc64531f90d4a | 1,901 | py | Python | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | 1 | 2021-06-24T19:37:46.000Z | 2021-06-24T19:37:46.000Z | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | 3 | 2020-10-01T19:57:26.000Z | 2020-10-01T20:01:41.000Z | idconn/connectivity/estimateThresh.py | NBCLab/IDConn | 0677e372c02fe35be28f70567e71e040e1d2a023 | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
import pandas as pd
import bct
task_networks(dset_dir, subject, session, task, event_related, conditions, runs, connectivity_metric, space, atlas, confounds)
for subject in subjects:
print(subject)
try:
for i in np.arange(0,len(sessions)):
print i
... | 45.261905 | 126 | 0.4808 |
0d821dc5c2dd6c4807f6af2be0673c13c7e4abd0 | 7,775 | py | Python | HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py | warthan07/Nemaktis | 54b1e64c1d40668e6dc22b11eac5487a09b58478 | [
"MIT"
] | 2 | 2020-02-25T08:13:32.000Z | 2022-02-18T12:12:34.000Z | HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py | warthan07/Nemaktis | 54b1e64c1d40668e6dc22b11eac5487a09b58478 | [
"MIT"
] | null | null | null | HighLevelPythonInterface/examples/benchmarks/2D/02_run_dtmm_benchmarks.py | warthan07/Nemaktis | 54b1e64c1d40668e6dc22b11eac5487a09b58478 | [
"MIT"
] | 1 | 2022-02-18T12:13:40.000Z | 2022-02-18T12:13:40.000Z | import time
import os
import json
import dtmm
dtmm.conf.set_fftlib("mkl_fft")
import numpy as np
import nemaktis as nm
import matplotlib.pyplot as plt
from copy import deepcopy
from propagate_fields import *
########################
# Simulation constants #
########################
ne = 1.75
no = 1.5
wavelength ... | 36.502347 | 113 | 0.567846 |
0d82b90cc315f19b41cd80b23354708ab0229874 | 6,240 | py | Python | perms.py | dudkin-2005/PilotTelegramBot | 3f92599de011aa63dc739712972637b781b5c4ae | [
"Apache-2.0"
] | null | null | null | perms.py | dudkin-2005/PilotTelegramBot | 3f92599de011aa63dc739712972637b781b5c4ae | [
"Apache-2.0"
] | null | null | null | perms.py | dudkin-2005/PilotTelegramBot | 3f92599de011aa63dc739712972637b781b5c4ae | [
"Apache-2.0"
] | null | null | null | import telebot
bot = telebot.TeleBot('1073948237:AAGKs3HzRBZwBZGkoQ5moJIakWQn39nQtX4')
#
#
| 48.75 | 103 | 0.511218 |
0d8349d4843939ae8db4d9bf00c2b6b4cf0f9c16 | 978 | py | Python | parsec/commands/jobs/get_jobs.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/jobs/get_jobs.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/jobs/get_jobs.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | import click
from parsec.cli import pass_context, json_loads
from parsec.decorators import custom_exception, list_output
| 28.764706 | 60 | 0.56135 |
0d83510c9b2aea13524aba6e26c438bd0f24e73f | 1,208 | py | Python | tests/test_serializers.py | Alzpeta/oarepo-validate | c3d917a833354bbbf569f2956424a27831e64de5 | [
"MIT"
] | null | null | null | tests/test_serializers.py | Alzpeta/oarepo-validate | c3d917a833354bbbf569f2956424a27831e64de5 | [
"MIT"
] | 3 | 2020-11-05T16:58:38.000Z | 2021-11-16T08:40:46.000Z | tests/test_serializers.py | Alzpeta/oarepo-validate | c3d917a833354bbbf569f2956424a27831e64de5 | [
"MIT"
] | 1 | 2021-09-22T11:59:47.000Z | 2021-09-22T11:59:47.000Z | import uuid
from invenio_pidstore.minters import recid_minter
from invenio_records import Record
from oarepo_validate import JSONSerializer
| 31.789474 | 117 | 0.647351 |
0d83672a14d9bf74f5a3f7e74ed8fe2bf08bf3a4 | 3,741 | py | Python | objects/CSCG/_3d/mesh/elements/element/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/_3d/mesh/elements/element/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/_3d/mesh/elements/element/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""""""
import sys
if './' not in sys.path: sys.path.append('./')
from screws.freeze.main import FrozenOnly
from objects.CSCG._3d.mesh.elements.element.sub_geometry.sub_geometry import ElementSubGeometry
import numpy as np
from objects.CSCG._3d.mesh.elements.element.sides.main import _3dCSCG_Mes... | 32.25 | 105 | 0.65544 |
0d8382878dbce6ddf7ce8ce123d7a9ded47e0a2c | 2,640 | py | Python | HW4-3/lib/agent/preprocess.py | b05611038/MLDS_2019SPRING | 0591a1a6f461da0a02b9e1b83f37ad3579f36f4d | [
"MIT"
] | 3 | 2019-06-20T06:47:30.000Z | 2021-11-05T03:16:37.000Z | HW4-3/lib/agent/preprocess.py | b05611038/MLDS_2019SPRING | 0591a1a6f461da0a02b9e1b83f37ad3579f36f4d | [
"MIT"
] | null | null | null | HW4-3/lib/agent/preprocess.py | b05611038/MLDS_2019SPRING | 0591a1a6f461da0a02b9e1b83f37ad3579f36f4d | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torchvision
import torchvision.transforms as T
from PIL import Image
#transform dictionary format pass in the class
# {'implenmented string': True}
| 33 | 92 | 0.655303 |
0d8574f7ced18f33ce95753ea49a9e803ee9d3c1 | 120 | py | Python | 5 Python Projects in 5 mins/Figlet.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | 5 | 2021-01-19T18:32:13.000Z | 2021-05-03T05:19:11.000Z | 5 Python Projects in 5 mins/Figlet.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | null | null | null | 5 Python Projects in 5 mins/Figlet.py | SaiAshish-Konchada/Python-Projects-for-Beginners | bce0a705b636a1090b56f59205c6acb94ab2e54a | [
"MIT"
] | 2 | 2021-05-22T13:35:51.000Z | 2021-08-31T07:05:32.000Z | # import pyfiglet module
import pyfiglet
result = pyfiglet.figlet_format("Sai Ashish", font = "slant")
print(result)
| 20 | 61 | 0.75 |
0d85982226b16dae26e630785d3d4d131cf804a0 | 10,110 | py | Python | api/util/paylib/alipayapi.py | edisonlz/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 285 | 2019-12-23T09:50:21.000Z | 2021-12-08T09:08:49.000Z | api/util/paylib/alipayapi.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | null | null | null | api/util/paylib/alipayapi.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 9 | 2019-12-23T12:59:25.000Z | 2022-03-15T05:12:11.000Z | # -*- coding: utf-8 -*-
import urllib
import hashlib
import urllib2
import logging
import os,sys
import base64
from datetime import datetime
import json
import logging
import urllib
| 27.104558 | 112 | 0.561227 |
0d883a2bfdddbed4a07d5a8b567441b596d8ba08 | 3,658 | py | Python | DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-23T09:25:45.000Z | 2021-11-23T09:25:45.000Z | import FWCore.ParameterSet.Config as cms
genericTriggerEventFlag4fullTracker = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = ... | 44.609756 | 80 | 0.667031 |
0d88fd8f7b8ecb88133d8ec5e772645139507eaa | 4,557 | py | Python | py/desigal/sky.py | biprateep/DESI-stack | 368e5d93e663b303ce93af55836c94265d5baa3a | [
"MIT"
] | 1 | 2022-01-27T15:46:14.000Z | 2022-01-27T15:46:14.000Z | py/desigal/sky.py | biprateep/DESI-stack | 368e5d93e663b303ce93af55836c94265d5baa3a | [
"MIT"
] | null | null | null | py/desigal/sky.py | biprateep/DESI-stack | 368e5d93e663b303ce93af55836c94265d5baa3a | [
"MIT"
] | null | null | null | import os
import multiprocessing
from pathlib import Path
from joblib import Parallel, delayed
import numpy as np
import desispec.io
import desispec.fluxcalibration
# TODO: Parallelization should be done in the target dimension if decided to run on all targets
def get_sky(
spectra=None, fibermap=None, exp_fiber... | 39.284483 | 100 | 0.644942 |
0d8c4d2e42c7e76999617276cbd6cb05860d2fc1 | 2,232 | py | Python | No_0703_Kth Largest Element in a Stream/by_min_heap.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 32 | 2020-01-05T13:37:16.000Z | 2022-03-26T07:27:09.000Z | No_0703_Kth Largest Element in a Stream/by_min_heap.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | null | null | null | No_0703_Kth Largest Element in a Stream/by_min_heap.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 8 | 2020-06-18T16:17:27.000Z | 2022-03-15T23:58:18.000Z | '''
Description:
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element.
Your KthLargest class will have a constructor which accepts an integer k and an integer array nums, which contains initial elements from the stream. ... | 22.09901 | 263 | 0.617384 |
0d8ca2861b205d338f99194e7413014a868e02f4 | 1,778 | py | Python | tbot/web/handlers/api/twitch/chat_alerts.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | null | null | null | tbot/web/handlers/api/twitch/chat_alerts.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | 10 | 2022-02-14T11:40:20.000Z | 2022-03-09T22:44:03.000Z | tbot/web/handlers/api/twitch/chat_alerts.py | thomaserlang/tbot | 99cfa204d86ef35cf2cc9482ae5a44abb35b443a | [
"MIT"
] | 1 | 2020-09-19T16:38:24.000Z | 2020-09-19T16:38:24.000Z | import logging, good
from tornado import web
from ..base import Api_handler, Level | 32.925926 | 97 | 0.468504 |
0d8d6dded7ee3c79f0a3020bc4bc9d4851c84949 | 1,119 | py | Python | pymouse/__init__.py | aronei44/PyMouse | b0cc56cc5c2f9ca514fbcbc9fccf95628412b175 | [
"Apache-2.0"
] | 86 | 2015-02-24T20:40:15.000Z | 2021-12-25T13:27:36.000Z | pymouse/__init__.py | aronei44/PyMouse | b0cc56cc5c2f9ca514fbcbc9fccf95628412b175 | [
"Apache-2.0"
] | 7 | 2015-08-28T23:14:37.000Z | 2021-11-29T10:39:44.000Z | pymouse/__init__.py | aronei44/PyMouse | b0cc56cc5c2f9ca514fbcbc9fccf95628412b175 | [
"Apache-2.0"
] | 30 | 2015-04-07T13:08:34.000Z | 2022-01-02T15:03:15.000Z | # -*- coding: iso-8859-1 -*-
# Copyright 2010 Pepijn de Vos
#
# 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... | 30.243243 | 76 | 0.73101 |
0d8d7f07ee7f1fb1abddfc13378b9331565be05e | 1,342 | py | Python | fraid/rps/viewsets.py | mikaelengstrom/fraid | 3a1cf6ebe39a2105218d8b28eaeec825b9a80858 | [
"MIT"
] | null | null | null | fraid/rps/viewsets.py | mikaelengstrom/fraid | 3a1cf6ebe39a2105218d8b28eaeec825b9a80858 | [
"MIT"
] | null | null | null | fraid/rps/viewsets.py | mikaelengstrom/fraid | 3a1cf6ebe39a2105218d8b28eaeec825b9a80858 | [
"MIT"
] | null | null | null | from rest_framework import (viewsets, mixins, status, response)
from rest_framework.decorators import detail_route
from . import (serializers, models, constants)
| 31.209302 | 81 | 0.662444 |
0d8daca2b2d71b7a8855c2ded9597e6220e1a469 | 576 | py | Python | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | utils/model/get_model.py | CodingLooHee/stock-prediction | 8f0b1a4c34c738748a0be10f73e7a63808f2371b | [
"MIT"
] | null | null | null | import os as _os
_os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
from tensorflow import keras as _keras
| 41.142857 | 104 | 0.730903 |
0d8e0ee11e5fb5600838ccf66f631721bafdb54e | 4,989 | py | Python | gestia.py | SunandaS76/GestIA | 277e273e954fdf0fd94aad37ba5770c01f23a5e6 | [
"MIT"
] | null | null | null | gestia.py | SunandaS76/GestIA | 277e273e954fdf0fd94aad37ba5770c01f23a5e6 | [
"MIT"
] | null | null | null | gestia.py | SunandaS76/GestIA | 277e273e954fdf0fd94aad37ba5770c01f23a5e6 | [
"MIT"
] | null | null | null | import sys
import time
import cv2
import keyboard
from PyQt5 import QtCore, QtGui, QtWidgets, uic
from config import *
from detector import *
import json
if __name__ == "__main__":
app = QtWidgets.QApplication([])
window = MainWindow()
window.show()
app.exec_()
| 33.483221 | 82 | 0.646021 |
0d904dc18a471dd3b6af487b503d01e92bd91a24 | 1,304 | py | Python | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | 49 | 2022-03-15T07:28:16.000Z | 2022-03-31T07:16:15.000Z | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | examples/basic/basic_extract_features.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | #! -*- coding: utf-8 -*-
# :
import torch
from bert4torch.models import build_transformer_model
from bert4torch.tokenizers import Tokenizer
root_model_path = "F:/Projects/pretrain_ckpt/bert/[google_tf_base]--chinese_L-12_H-768_A-12"
vocab_path = root_model_path + "/vocab.txt"
config_path = root_model_path + "/bert_c... | 34.315789 | 92 | 0.69862 |
0d910fd391e1e3916101e4b14a154a4e7e1bb28e | 4,472 | py | Python | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 5 | 2021-05-10T01:21:52.000Z | 2022-03-10T17:26:41.000Z | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 3 | 2021-05-26T01:12:12.000Z | 2021-12-14T00:34:06.000Z | Exec/debug/inspect_FAB.py | darylbond/cerberus | a1b99f6b50ba6876d4705f26e6be98ed6e1c5c6a | [
"MIT"
] | 3 | 2021-05-11T02:45:27.000Z | 2021-09-06T12:08:23.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 20 05:46:07 2018
@author: uqdbond1
"""
import numpy as np
import re
import pylab as plt
import os, sys
np.set_printoptions(linewidth=1000)
#==============================================================================
#
#==============================================... | 23.661376 | 79 | 0.489714 |
0d91bbf3521fb204188d37328c0cfa2d88a3d719 | 72,911 | py | Python | tests/3_endpoints/test_3_0_ldp.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | null | null | null | tests/3_endpoints/test_3_0_ldp.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | null | null | null | tests/3_endpoints/test_3_0_ldp.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | null | null | null | import hashlib
import pdb
import pytest
from base64 import b64encode
from datetime import timedelta
from hashlib import sha1, sha256, blake2b
from uuid import uuid4
from werkzeug.http import http_date
import arrow
import requests
from flask import g
from rdflib import Graph
from rdflib.compare import isomorphic
from... | 35.205698 | 98 | 0.576635 |
0d93229576f67b3cf03c2c7712ccfa02da5e0379 | 2,040 | py | Python | examples/example_026.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | examples/example_026.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | examples/example_026.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! /usr/bin/python3.6
"""
Example 26:
Prompt the user to select a product and get it's bounding box parameters
.. warning:
Currently there must be NO other existing Measure Inertias saved
ANYWHERE in your product tree as these may be returned and not
product you have selected.
"... | 29.142857 | 127 | 0.645588 |
0d950659300f78db9a3ef0896e4c8d3f830c4f0e | 7,060 | py | Python | docker/laaws-demo-webui/cgi-bin/auid-to-json.py | lockss/laaws-demo | f7aeb1b3a15f5955ae7ab41b64b5e45d07e0433e | [
"BSD-3-Clause"
] | null | null | null | docker/laaws-demo-webui/cgi-bin/auid-to-json.py | lockss/laaws-demo | f7aeb1b3a15f5955ae7ab41b64b5e45d07e0433e | [
"BSD-3-Clause"
] | null | null | null | docker/laaws-demo-webui/cgi-bin/auid-to-json.py | lockss/laaws-demo | f7aeb1b3a15f5955ae7ab41b64b5e45d07e0433e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# CGI script to extract content of AU as WARC and report result
# in JSON as specified in WASAPI
from warcio.warcwriter import WARCWriter
from warcio.statusandheaders import StatusAndHeaders
from argparse import ArgumentParser
import requests
import json
import tempfile
import re
import cgi
i... | 35.3 | 134 | 0.589802 |
0d954434c6a7a3f58c9b0faf0d8512807c7b2362 | 1,082 | py | Python | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | 4 | 2015-06-21T13:00:44.000Z | 2020-09-14T18:09:28.000Z | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | null | null | null | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | null | null | null | # Copyright 2017-2019 Elizabeth Myers. All rights reserved.
# This file is part of the taillight project. See LICENSE in the root
# directory for licensing information.
"""The top level module contains a few constants needed throughout taillight,
the base exception for all taillight errors (for easier catching by ha... | 23.521739 | 78 | 0.707024 |
0d96171a77724c2daf45636b712ea7b4c2164248 | 1,504 | py | Python | foliofunctions.py | becahp/ibict-folio | 7f82acd1f9c1d37c3858f51540a703c12a9d92ce | [
"Apache-2.0"
] | null | null | null | foliofunctions.py | becahp/ibict-folio | 7f82acd1f9c1d37c3858f51540a703c12a9d92ce | [
"Apache-2.0"
] | null | null | null | foliofunctions.py | becahp/ibict-folio | 7f82acd1f9c1d37c3858f51540a703c12a9d92ce | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Function definition is here
| 29.490196 | 82 | 0.625665 |
0d9673abce324fd2c4264d7ff064fc9ecdf36925 | 2,399 | py | Python | civis_jupyter_notebooks/tests/test_git_utils.py | civisanalytics/civis-jupyter-notebook | 16e3fb804c53e7e146aeebe0cc56192ad51dc668 | [
"BSD-3-Clause"
] | 1 | 2020-05-20T10:17:32.000Z | 2020-05-20T10:17:32.000Z | civis_jupyter_notebooks/tests/test_git_utils.py | civisanalytics/civis-jupyter-notebook | 16e3fb804c53e7e146aeebe0cc56192ad51dc668 | [
"BSD-3-Clause"
] | 26 | 2017-09-08T20:59:00.000Z | 2021-08-23T19:42:22.000Z | civis_jupyter_notebooks/tests/test_git_utils.py | civisanalytics/civis-jupyter-notebook | 16e3fb804c53e7e146aeebe0cc56192ad51dc668 | [
"BSD-3-Clause"
] | 4 | 2017-09-13T20:44:09.000Z | 2020-01-22T21:24:53.000Z | import unittest
from unittest.mock import patch, MagicMock
import os
import logging
from git.exc import GitCommandError
from git import Repo
from civis_jupyter_notebooks.git_utils import CivisGit, CivisGitError
REPO_URL = 'http://www.github.com/civisanalytics.foo.git'
REPO_MOUNT_PATH = '/root/work'
GIT_REPO_REF = 'ma... | 33.319444 | 87 | 0.706544 |
0d96cf3d5241eee40b7c9c8b48600b5b8db0b111 | 1,527 | py | Python | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 8 | 2018-12-08T01:41:58.000Z | 2020-12-21T15:30:12.000Z | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 17 | 2019-02-05T15:01:32.000Z | 2020-04-28T16:17:42.000Z | morpfw/authn/pas/apikey/model.py | morpframework/morpfw | b867e5809d6c52e8839586670a29fcd179ce64c7 | [
"Apache-2.0"
] | 2 | 2018-12-08T05:03:37.000Z | 2019-03-20T07:15:21.000Z | import hashlib
import secrets
from uuid import uuid4
import rulez
from morpfw.crud import Collection, Model, Schema
from ..app import App
from .schema import APIKeySchema
| 28.277778 | 88 | 0.645711 |
0d976185ebb8ba910132efb175704d26165689c5 | 3,417 | py | Python | skeleton.py | Ragnarok7861/4d_plant_registration | 6c2a4fab7857260ecc5f956c717c997bfa25ea9a | [
"MIT"
] | 16 | 2020-09-17T06:36:43.000Z | 2022-02-04T18:35:30.000Z | skeleton.py | Ragnarok7861/4d_plant_registration | 6c2a4fab7857260ecc5f956c717c997bfa25ea9a | [
"MIT"
] | null | null | null | skeleton.py | Ragnarok7861/4d_plant_registration | 6c2a4fab7857260ecc5f956c717c997bfa25ea9a | [
"MIT"
] | 6 | 2021-09-29T08:32:06.000Z | 2022-01-10T20:53:57.000Z | """ Skeleton class for creating, accessing different attributes for a skelton.
"""
import numpy as np | 28.957627 | 84 | 0.609014 |
0d97e17b49711bc26ae6b1e76c4955fa918c05d5 | 1,233 | py | Python | src/com/dao/aclDao.py | amzpiper/synchronize_data | a0ef983a6445ac5b793691dd3d4a86790c0581a7 | [
"Apache-2.0"
] | null | null | null | src/com/dao/aclDao.py | amzpiper/synchronize_data | a0ef983a6445ac5b793691dd3d4a86790c0581a7 | [
"Apache-2.0"
] | null | null | null | src/com/dao/aclDao.py | amzpiper/synchronize_data | a0ef983a6445ac5b793691dd3d4a86790c0581a7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env/python
# -*- coding:utf-8 -*-
# Author:guoyuhang
import json
from com.request import aclRequest
from com.config.config import Config
from com.model import acl
""" responsedictacl """
| 31.615385 | 71 | 0.587997 |
0d9849a947ec51d625e83e09d1e16e0cc76affe4 | 6,044 | py | Python | webserver/www/api/api_functions.py | HendrikVE/my_pi_drei | 7e0392dced6e54791690929d968195282796cbd8 | [
"MIT"
] | null | null | null | webserver/www/api/api_functions.py | HendrikVE/my_pi_drei | 7e0392dced6e54791690929d968195282796cbd8 | [
"MIT"
] | 1 | 2018-02-03T23:14:38.000Z | 2018-02-03T23:17:06.000Z | webserver/www/api/api_functions.py | HendrikVE/my_pi_drei | 7e0392dced6e54791690929d968195282796cbd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
* Copyright (C) 2017 Hendrik van Essen
*
* This file is subject to the terms and conditions of the MIT License
* See the file LICENSE in the top level directory for more details.
"""
from __future__ import absolute_import, print_function, unicode_literals
import ... | 40.293333 | 120 | 0.458471 |
0d984b08ec5ee5ed4211e1f1a20144e423ac7488 | 970 | py | Python | experiments/scripts/benchmark.py | chrislybaer/huggingmolecules | 210239ac46b467e900a47e8f4520054636744ca6 | [
"Apache-2.0"
] | 60 | 2021-05-07T16:07:26.000Z | 2022-03-26T19:23:54.000Z | experiments/scripts/benchmark.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 11 | 2021-05-07T16:01:35.000Z | 2022-03-09T13:06:05.000Z | experiments/scripts/benchmark.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 12 | 2021-05-20T08:02:25.000Z | 2022-03-10T14:11:36.000Z | """
benchmark.py: this script performs a benchmark based on hyper-parameters tuning (grid-search).
For details see main README.md.
"""
if __name__ == "__main__":
import argparse
from experiments.src import tune_hyper
from experiments.src.benchmarking.benchmarking_benchmark_results import benchmark_result
... | 40.416667 | 115 | 0.757732 |
0d999c2c7289bdc61260b86041d431ef20b3a55c | 916 | py | Python | alerts/push/app.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 14 | 2016-04-30T00:00:02.000Z | 2022-03-31T14:52:37.000Z | alerts/push/app.py | google/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 9 | 2016-05-03T12:30:09.000Z | 2018-09-10T01:46:02.000Z | alerts/push/app.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 11 | 2016-04-30T08:12:07.000Z | 2021-10-21T04:25:41.000Z | from tornado import websocket, web, ioloop
import json
import time
clients = []
app = web.Application([
(r'/ws/([A-Za-z0-9]*)', SocketHandler),
(r'/api', ApiHandler),
])
if __name__ == '__main__':
app.listen(8765)
ioloop.IOLoop.instance().start()
| 20.818182 | 48 | 0.590611 |
0d9a3126b7e9a62cce813b3e08d0be070b4a7d1d | 11,410 | py | Python | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | mapzen/whosonfirst/validator/__init__.py | iandees/py-mapzen-whosonfirst-validator | 64bc526728b7c06796deb767fbdaa196cc630b5e | [
"BSD-3-Clause"
] | null | null | null | import sys
import os.path
import logging
import json
import geojson
import types
import mapzen.whosonfirst.export
import mapzen.whosonfirst.placetypes
import mapzen.whosonfirst.sources
import mapzen.whosonfirst.utils
if __name__ == '__main__':
import sys
import os.path
vld = validator()
for path in... | 29.407216 | 125 | 0.470903 |
0d9a54468e18f49414d191f9a2a62adbd5c19f14 | 2,072 | py | Python | contents/6_OpenAI_gym/my_DQN_CartPole.py | venaissance/Reinforcement-learning-with-tensorflow | 78f5253d7e2bbd5aff5bacbbafd85ba9dbda686d | [
"MIT"
] | 1 | 2021-06-27T15:10:29.000Z | 2021-06-27T15:10:29.000Z | contents/6_OpenAI_gym/my_DQN_CartPole.py | venaissance/Reinforcement-learning-with-tensorflow | 78f5253d7e2bbd5aff5bacbbafd85ba9dbda686d | [
"MIT"
] | null | null | null | contents/6_OpenAI_gym/my_DQN_CartPole.py | venaissance/Reinforcement-learning-with-tensorflow | 78f5253d7e2bbd5aff5bacbbafd85ba9dbda686d | [
"MIT"
] | null | null | null | """
Deep Q network,
Using:
Tensorflow: 1.0
gym: 0.7.3
"""
import gym
import numpy as np
from my_DQN_brain import DeepQNetwork
import matplotlib.pyplot as plt
env = gym.make('CartPole-v0')
env = env.unwrapped
print(env.action_space)
print(env.observation_space)
print(env.observation_space.high)
print(env.observatio... | 25.580247 | 95 | 0.578668 |
0d9b4f810021d1ba58be710dada119c03e1176aa | 4,098 | py | Python | src/sampling_update/conditionals.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | src/sampling_update/conditionals.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | src/sampling_update/conditionals.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | # Credit to GPflow
import tensorflow as tf
def base_conditional(Kmn, Kmm, Knn, f, *, full_cov=False, q_sqrt=None, white=False, return_Lm=False):
"""
Given a g1 and g2, and distribution p and q such that
p(g2) = N(g2;0,Kmm)
p(g1) = N(g1;0,Knn)
p(g1|g2) = N(g1;0,Knm)
And
q(g2) = N(g... | 37.59633 | 141 | 0.608346 |
0d9d764fa2fc09c6656c23160c85475a4f88f596 | 389 | py | Python | CloudSchedule/CodeCraft-2021/src/constant.py | RavenLite/HuaweiCodeCraft2021 | a9c87eb4e01d58c2ec1c021c89d7da422553613f | [
"Apache-2.0"
] | 3 | 2022-02-16T09:42:10.000Z | 2022-02-24T02:26:30.000Z | CloudSchedule/CodeCraft-2021/src/constant.py | RavenLite/HuaweiCodeCraft2021 | a9c87eb4e01d58c2ec1c021c89d7da422553613f | [
"Apache-2.0"
] | null | null | null | CloudSchedule/CodeCraft-2021/src/constant.py | RavenLite/HuaweiCodeCraft2021 | a9c87eb4e01d58c2ec1c021c89d7da422553613f | [
"Apache-2.0"
] | null | null | null | # queue item action
ACTION_ADD = "add"
ACTION_DEL = "del"
# server type field
SERVER_TYPE_RATIO = "server_type_ratio"
# vm deployment way
VM_DEPLOYMENT_SINGLE = 0
VM_DEPLOYMENT_DOUBLE = 1
# vm node name
VM_NODE_A = "A"
VM_NODE_B = "B"
VM_NODE_AB = "AB"
# common
NULL_STRING = ""
ZERO_NUM = 0
MIN_VALUE_INITIAL = 1000... | 15.56 | 39 | 0.74036 |