hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 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 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 239 | max_forks_repo_name stringlengths 5 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.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7964aa9a10f88cca837c0985e252f67b46a3860d | 12,335 | py | Python | pixell/lensing.py | amaurea/pixell | d3ac217d94615596905df6bef4028b3d2a603eb5 | [
"BSD-3-Clause"
] | 24 | 2018-10-16T18:11:57.000Z | 2022-03-16T23:21:29.000Z | pixell/lensing.py | amaurea/pixell | d3ac217d94615596905df6bef4028b3d2a603eb5 | [
"BSD-3-Clause"
] | 118 | 2018-10-09T22:13:48.000Z | 2022-03-21T15:23:25.000Z | pixell/lensing.py | amaurea/pixell | d3ac217d94615596905df6bef4028b3d2a603eb5 | [
"BSD-3-Clause"
] | 19 | 2018-10-22T16:13:20.000Z | 2021-12-16T17:34:01.000Z | import numpy as np
from . import enmap, utils, powspec
try: from . import interpol
except ImportError: pass
####### Flat sky lensing #######
def lens_map(imap, grad_phi, order=3, mode="spline", border="cyclic", trans=False, deriv=False, h=1e-7):
"""Lens map imap[{pre},ny,nx] according to grad_phi[2,ny,nx], where phi... | 44.370504 | 196 | 0.704418 |
7964aa9a359ac067b2588dfe0cacb6d59a8f8522 | 6,702 | py | Python | src/plugins/map/examples/gen-rules.py | ydy1234/vpp | 9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa | [
"Apache-2.0"
] | 751 | 2017-07-13T06:16:46.000Z | 2022-03-30T09:14:35.000Z | src/plugins/map/examples/gen-rules.py | fantastic2085/vpp | c599c6f001bc28e1023fb5e74a27db37b1aae847 | [
"Apache-2.0"
] | 63 | 2018-06-11T09:48:35.000Z | 2021-01-05T09:11:03.000Z | src/plugins/map/examples/gen-rules.py | fantastic2085/vpp | c599c6f001bc28e1023fb5e74a27db37b1aae847 | [
"Apache-2.0"
] | 479 | 2017-07-13T06:17:26.000Z | 2022-03-31T18:20:43.000Z | #!/usr/bin/env python3
# Copyright (c) 2015 Cisco and/or its affiliates.
# 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... | 35.839572 | 116 | 0.656073 |
7964ab59cd1503444a179d978cd2ad657d603e3c | 352 | py | Python | fairseq/models/gap_evaluator.py | liufly/refreader | 25d371fc08d89174cfdac1c7e29984d8cb3beff2 | [
"BSD-3-Clause"
] | 19 | 2019-07-18T21:38:38.000Z | 2020-10-24T09:23:37.000Z | fairseq/models/gap_evaluator.py | liufly/refreader | 25d371fc08d89174cfdac1c7e29984d8cb3beff2 | [
"BSD-3-Clause"
] | 1 | 2019-11-29T02:58:08.000Z | 2019-12-01T06:11:16.000Z | fairseq/models/gap_evaluator.py | liufly/refreader | 25d371fc08d89174cfdac1c7e29984d8cb3beff2 | [
"BSD-3-Clause"
] | 2 | 2019-12-18T11:37:39.000Z | 2020-02-04T16:23:20.000Z | from gap_scorer import Annotation, calculate_scores, make_scorecard_simple
from constants import PRONOUNS, Gender
class GAPEvaluator:
def __init__(self):
pass
def eval(self, gold_annotations, system_annotations):
scores = calculate_scores(gold_annotations, system_annotations)
retu... | 32 | 74 | 0.767045 |
7964ab68cedd82dd1d1b0839c7bd20596b386d19 | 5,328 | py | Python | ozobotmapf/configuration/config_options.py | Emejzon/ozobot-mapf-simulator | a71580391bb142223afd3e7b31efee8adaf21261 | [
"MIT"
] | null | null | null | ozobotmapf/configuration/config_options.py | Emejzon/ozobot-mapf-simulator | a71580391bb142223afd3e7b31efee8adaf21261 | [
"MIT"
] | null | null | null | ozobotmapf/configuration/config_options.py | Emejzon/ozobot-mapf-simulator | a71580391bb142223afd3e7b31efee8adaf21261 | [
"MIT"
] | null | null | null | import logging
import os.path
from configparser import ConfigParser
from ozobotmapf.configuration.config_exceptions import InvalidConfigOptionException
from ozobotmapf.simulator.agents.dummy_agent import DummyAgent
from ozobotmapf.simulator.agents.animated_agent import AnimatedAgent
from ozobotmapf.simulator.agents.oz... | 37 | 114 | 0.616366 |
7964abcdeef52a0258ad9614d435330b35e0fb23 | 8,792 | py | Python | maddpg_agent_ctde.py | ChalamPVS/Unity-Tennis | e7d60234b0f68e360cb898c7ede4cdb209430448 | [
"Unlicense"
] | null | null | null | maddpg_agent_ctde.py | ChalamPVS/Unity-Tennis | e7d60234b0f68e360cb898c7ede4cdb209430448 | [
"Unlicense"
] | null | null | null | maddpg_agent_ctde.py | ChalamPVS/Unity-Tennis | e7d60234b0f68e360cb898c7ede4cdb209430448 | [
"Unlicense"
] | null | null | null | from collections import namedtuple, deque
import numpy as np
import random
import torch
import copy
import torch.nn.functional as F
from model import Actor, Critic
import torch.optim as optim
BUFFER_SIZE = int(1e6)
SHARED_REPLAY_BUFFER = True
DEVICE = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
BA... | 35.168 | 147 | 0.708826 |
7964abdd7cab81df08dd5aa5270ef4d57c5addfe | 1,203 | py | Python | nodes/0.9.x/python/SelectionSet.ByElements.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 147 | 2016-02-24T16:37:03.000Z | 2022-02-18T12:10:34.000Z | nodes/0.9.x/python/SelectionSet.ByElements.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 269 | 2016-02-25T14:04:14.000Z | 2022-03-26T07:30:53.000Z | nodes/0.9.x/python/SelectionSet.ByElements.py | jdehotin/Clockworkfordynamo | 59226ea8292c57acfa1aa476efd40f0e78c9b965 | [
"MIT"
] | 89 | 2016-03-16T18:21:56.000Z | 2022-02-03T14:34:30.000Z | import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from System.Collections.Generic import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServi... | 27.976744 | 61 | 0.796342 |
7964ad32831fb8dadf0f13e66cbd9cd7a3a7e331 | 50,262 | py | Python | lib/matplotlib/backends/backend_ps.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2016-05-08T18:33:12.000Z | 2016-05-08T18:33:12.000Z | lib/matplotlib/backends/backend_ps.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | lib/matplotlib/backends/backend_ps.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | """
A PostScript backend, which can produce both PostScript .ps and .eps
"""
from __future__ import division
import glob, math, os, shutil, sys, time
def _fn_name(): return sys._getframe(1).f_code.co_name
try:
from hashlib import md5
except ImportError:
from md5 import md5 #Deprecated in 2.5
from tempfile im... | 34.331967 | 168 | 0.569635 |
7964addd84cec021735e912001b0a514a10db915 | 1,820 | py | Python | server/src/multiverse/simpleclient/testclientgroups/group11.py | AustralianDisabilityLimited/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 33 | 2015-02-16T02:52:08.000Z | 2022-02-18T08:46:32.000Z | server/src/multiverse/simpleclient/testclientgroups/group11.py | bensku/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 1 | 2017-09-09T18:50:23.000Z | 2020-12-29T18:13:56.000Z | server/src/multiverse/simpleclient/testclientgroups/group11.py | bensku/MultiversePlatform | 7e1aad33d48b9e47f3db2ca638cb57592336ddb7 | [
"MIT"
] | 31 | 2015-02-07T16:20:24.000Z | 2022-02-23T15:02:43.000Z | #
# The Multiverse Platform is made available under the MIT License.
#
# Copyright (c) 2012 The Multiverse Foundation
#
# 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 restrict... | 38.723404 | 93 | 0.768132 |
7964af3313dda0aa44034511faf02ecff1261ae4 | 1,167 | py | Python | morsels/urls.py | kiniadit/morsels | cc4b5082e0e8cbe91e637b1099f028f5e16c2f69 | [
"BSD-3-Clause"
] | null | null | null | morsels/urls.py | kiniadit/morsels | cc4b5082e0e8cbe91e637b1099f028f5e16c2f69 | [
"BSD-3-Clause"
] | 2 | 2020-06-05T17:33:56.000Z | 2021-06-10T19:05:29.000Z | morsels/urls.py | kiniadit/morsels | cc4b5082e0e8cbe91e637b1099f028f5e16c2f69 | [
"BSD-3-Clause"
] | null | null | null | """morsels URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | 38.9 | 79 | 0.699229 |
7964af7c2a6325ae4f2028e967e13e9f2ed6427c | 6,351 | py | Python | Old Work/Old ver py for the ml/Recent ver/Weatherver1.2.py | LouPInnovations/WeatherWear | 7d419970dbc89b109d13b27ddbd29ce2a0ab7d9a | [
"MIT"
] | 3 | 2021-01-03T01:57:05.000Z | 2021-01-05T07:36:25.000Z | Old Work/Old ver py for the ml/Recent ver/Weatherver1.2.py | LouPInnovations/WeatherWear | 7d419970dbc89b109d13b27ddbd29ce2a0ab7d9a | [
"MIT"
] | null | null | null | Old Work/Old ver py for the ml/Recent ver/Weatherver1.2.py | LouPInnovations/WeatherWear | 7d419970dbc89b109d13b27ddbd29ce2a0ab7d9a | [
"MIT"
] | 1 | 2021-04-26T21:02:48.000Z | 2021-04-26T21:02:48.000Z | import requests, json, csv, ast
import tensorflow as tf
from tensorflow import keras
import WeatherTrainer as wt
from sklearn.model_selection import train_test_split
key = 'KEY'
location = 'New York' #start at 0 deg
model = tf.keras.models.Sequential()
def getweatherinfo():
response = requests.get(f'https://api.o... | 26.028689 | 117 | 0.595182 |
7964b095b344efb910119d1f829d9e607d7b0390 | 2,195 | py | Python | google/cloud/securitycenter_v1beta1/types/security_marks.py | Pglinsman/python-securitycenter | 4ba96b268d92eb57b816593b1fb968f269ed188e | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/types/security_marks.py | Pglinsman/python-securitycenter | 4ba96b268d92eb57b816593b1fb968f269ed188e | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/types/security_marks.py | Pglinsman/python-securitycenter | 4ba96b268d92eb57b816593b1fb968f269ed188e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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.844828 | 102 | 0.702506 |
7964b0bb52a18bf1272a71df073dc8de46ab7579 | 13,157 | py | Python | gen/pb_python/flyteidl/core/condition_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 13 | 2019-08-05T22:02:36.000Z | 2020-07-05T06:21:14.000Z | gen/pb_python/flyteidl/core/condition_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 70 | 2021-02-01T22:14:27.000Z | 2022-03-29T12:56:06.000Z | gen/pb_python/flyteidl/core/condition_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 22 | 2021-02-01T16:13:28.000Z | 2022-02-25T08:15:29.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: flyteidl/core/condition.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | 40.608025 | 1,376 | 0.76864 |
7964b0e4a157ae2f7467aedad01f10895761f753 | 1,533 | py | Python | peeking-iterator/peeking-iterator.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | peeking-iterator/peeking-iterator.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | peeking-iterator/peeking-iterator.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | # Below is the interface for Iterator, which is already defined for you.
#
# class Iterator(object):
# def __init__(self, nums):
# """
# Initializes an iterator object to the beginning of a list.
# :type nums: List[int]
# """
#
# def hasNext(self):
# """
# Return... | 27.872727 | 81 | 0.554468 |
7964b1b2223433e5311285723cb7936d363e698d | 1,802 | py | Python | applications/tensorflow/bert/tests/test_poprun.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/tensorflow/bert/tests/test_poprun.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/tensorflow/bert/tests/test_poprun.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Graphcore Ltd. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 31.068966 | 78 | 0.632075 |
7964b4986c6d82fbf8723c41c68d7689220d5c41 | 24,115 | py | Python | eat/migrations/0001_initial.py | ask5/eatuxchallenge | c2db62d062c843964ba41e854de103569eaaaf4a | [
"MIT"
] | null | null | null | eat/migrations/0001_initial.py | ask5/eatuxchallenge | c2db62d062c843964ba41e854de103569eaaaf4a | [
"MIT"
] | null | null | null | eat/migrations/0001_initial.py | ask5/eatuxchallenge | c2db62d062c843964ba41e854de103569eaaaf4a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-07 03:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | 143.541667 | 290 | 0.67854 |
7964b4fa8da10b3abf86b31714028f114edc5d51 | 482 | py | Python | tests/step20_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step20_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step20_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | from pathlib import Path
TEST_INPUT = Path(__file__).parent / 'step20.txt'
REAL_INPUT = Path(__file__).parent.parent / 'src/step20.txt'
def test_step20():
# assert calculate_position() == 150
pass
def test_step20_real_data():
# assert calculate_position() == 2039256
pass
def test_step20_part2():
... | 19.28 | 60 | 0.715768 |
7964b59a08c37ead8222d1eb9c6dec4eed8c0282 | 3,039 | bzl | Python | bazelrio/dependencies/toolchains/2021/deps.bzl | noamzaks/bazelrio | 1684b66865e655fc0f3832f0e3602e905a1d4035 | [
"MIT"
] | 5 | 2021-09-26T01:16:26.000Z | 2022-03-18T17:21:23.000Z | bazelrio/dependencies/toolchains/2021/deps.bzl | noamzaks/bazelrio | 1684b66865e655fc0f3832f0e3602e905a1d4035 | [
"MIT"
] | 59 | 2021-09-23T04:19:33.000Z | 2022-03-29T07:47:10.000Z | bazelrio/dependencies/toolchains/2021/deps.bzl | noamzaks/bazelrio | 1684b66865e655fc0f3832f0e3602e905a1d4035 | [
"MIT"
] | 2 | 2021-11-18T10:34:16.000Z | 2021-11-21T06:15:07.000Z | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazelrio//:deps_utils.bzl", "filegroup_all")
def setup_toolchains_2021_dependencies():
# C++
maybe(
http_archive,
"__bazelrio_roborio_toolchain_macos",
... | 44.043478 | 159 | 0.684107 |
7964b5d0d6f7163d48f1d3c6981dd5add8237017 | 641 | py | Python | setup.py | pkicsiny/xfields | eb151eb0aee62ad25bd0610e62c032b300311c46 | [
"MIT"
] | 1 | 2021-09-07T14:34:22.000Z | 2021-09-07T14:34:22.000Z | setup.py | pkicsiny/xfields | eb151eb0aee62ad25bd0610e62c032b300311c46 | [
"MIT"
] | 16 | 2021-03-12T11:28:57.000Z | 2021-08-17T19:52:40.000Z | setup.py | pkicsiny/xfields | eb151eb0aee62ad25bd0610e62c032b300311c46 | [
"MIT"
] | 5 | 2021-06-16T12:45:22.000Z | 2022-01-07T15:24:09.000Z | from setuptools import setup, find_packages, Extension
#######################################
# Prepare list of compiled extensions #
#######################################
extensions = []
#########
# Setup #
#########
setup(
name='xfields',
version='0.4.0',
description='Field Maps and Particle In Ce... | 20.677419 | 54 | 0.5117 |
7964b5fa85d24870f53a8fc7f513ac628b40527f | 72,034 | py | Python | src/transformers/modeling_tf_xlnet.py | tommccoy1/transformers | db396c4c29aaa6fdb9d8644ddcb9b6dd5161b17d | [
"Apache-2.0"
] | 403 | 2020-01-17T06:54:46.000Z | 2022-03-30T05:47:42.000Z | src/transformers/modeling_tf_xlnet.py | tommccoy1/transformers | db396c4c29aaa6fdb9d8644ddcb9b6dd5161b17d | [
"Apache-2.0"
] | 30 | 2020-06-07T12:28:07.000Z | 2022-03-20T05:26:03.000Z | src/transformers/modeling_tf_xlnet.py | tommccoy1/transformers | db396c4c29aaa6fdb9d8644ddcb9b6dd5161b17d | [
"Apache-2.0"
] | 48 | 2020-07-15T09:45:46.000Z | 2022-03-01T07:27:59.000Z | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 47.610046 | 171 | 0.643238 |
7964b79982d4a77d75e23cde32ba9bdc716f2538 | 1,805 | py | Python | configs/pointpillars/hv_pointpillars_secfpn_sbn-all_range100_2x8_2x_lyft-3d.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 5 | 2022-01-26T13:03:12.000Z | 2022-01-27T03:59:09.000Z | configs/pointpillars/hv_pointpillars_secfpn_sbn-all_range100_2x8_2x_lyft-3d.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 1 | 2022-03-31T08:33:12.000Z | 2022-03-31T08:35:55.000Z | configs/pointpillars/hv_pointpillars_secfpn_sbn-all_range100_2x8_2x_lyft-3d.py | maskjp/mmdetection3d | 98f332372b1a4c82bc2d57588a5d764f4176c869 | [
"Apache-2.0"
] | 1 | 2022-03-30T04:08:39.000Z | 2022-03-30T04:08:39.000Z | _base_ = [
'../_base_/models/hv_pointpillars_fpn_range100_lyft.py',
'../_base_/datasets/range100_lyft-3d.py',
'../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
pts_neck=dict(
_delete_=True,
type='SECONDFPN',
norm_cfg=dict(type='... | 41.976744 | 72 | 0.474792 |
7964b8cd8a718465965d558c5173881d2a813499 | 267 | py | Python | odooku_addons/websocket/__manifest__.py | sdaexpertise/facturation | 0da16e1fdf7415eea97df1bffbcb93808dc31330 | [
"Apache-2.0"
] | 55 | 2017-09-11T06:48:39.000Z | 2022-03-31T18:14:46.000Z | odooku_addons/websocket/__manifest__.py | sdaexpertise/facturation | 0da16e1fdf7415eea97df1bffbcb93808dc31330 | [
"Apache-2.0"
] | 4 | 2018-01-13T09:13:48.000Z | 2019-09-28T10:24:43.000Z | odooku_addons/websocket/__manifest__.py | sdaexpertise/facturation | 0da16e1fdf7415eea97df1bffbcb93808dc31330 | [
"Apache-2.0"
] | 46 | 2017-12-30T22:31:45.000Z | 2022-02-17T05:35:55.000Z | # -*- encoding: utf-8 -*-
{
'name': 'Odooku Websocket',
'description': 'Websocket support for Odoo',
'version': '0.1',
'category': 'Hidden',
'author': 'Raymond Reggers',
'depends': ['web'],
'data': [
'views/assets.xml'
],
'auto_install': True
}
| 19.071429 | 46 | 0.569288 |
7964b9f62d1684dbcdc0e21d96d4d84bdf50f589 | 8,261 | py | Python | elasticsearch/_async/client/tasks.py | stevepentland/elasticsearch-py | 5a512a8f822ce2eff93fbc75f3629973427519bd | [
"Apache-2.0"
] | null | null | null | elasticsearch/_async/client/tasks.py | stevepentland/elasticsearch-py | 5a512a8f822ce2eff93fbc75f3629973427519bd | [
"Apache-2.0"
] | null | null | null | elasticsearch/_async/client/tasks.py | stevepentland/elasticsearch-py | 5a512a8f822ce2eff93fbc75f3629973427519bd | [
"Apache-2.0"
] | null | null | null | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | 42.364103 | 96 | 0.63249 |
7964bc27b308c84a2e38c3a4099810b49e2bdde6 | 7,132 | py | Python | vision/cloud-client/product_search/product_set_management.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 3 | 2021-01-24T23:42:57.000Z | 2021-02-17T12:02:12.000Z | vision/cloud-client/product_search/product_set_management.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 320 | 2020-11-08T21:02:43.000Z | 2022-02-10T10:43:29.000Z | vision/cloud-client/product_search/product_set_management.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 3 | 2019-02-11T16:16:11.000Z | 2019-04-19T21:34:37.000Z | #!/usr/bin/env python
# Copyright 2018 Google 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/licenses/LICENSE-2.0
#
# Unless... | 37.93617 | 79 | 0.709899 |
7964bc2cc026230ea6ac592cdcc8855d6199d4d3 | 79,636 | py | Python | Project/serve/predict.py | carolinepie/udacity_model_deployment | f9125717d454ccd79bbb3234d492b32a45f5a8e6 | [
"MIT"
] | null | null | null | Project/serve/predict.py | carolinepie/udacity_model_deployment | f9125717d454ccd79bbb3234d492b32a45f5a8e6 | [
"MIT"
] | null | null | null | Project/serve/predict.py | carolinepie/udacity_model_deployment | f9125717d454ccd79bbb3234d492b32a45f5a8e6 | [
"MIT"
] | null | null | null | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | 856.301075 | 76,619 | 0.612098 |
7964bdf9c932b9f30ef16ca8c8765604cfc13f57 | 10,617 | py | Python | Unit_D/lego_robot.py | tuongngoc/slam-tutorial-code | 14238852d51df9059ce55ffed92d95b286aec805 | [
"MIT"
] | 7 | 2017-06-03T15:40:20.000Z | 2021-05-17T16:05:58.000Z | Unit_D/lego_robot.py | tuongngoc/slam-tutorial-code | 14238852d51df9059ce55ffed92d95b286aec805 | [
"MIT"
] | null | null | null | Unit_D/lego_robot.py | tuongngoc/slam-tutorial-code | 14238852d51df9059ce55ffed92d95b286aec805 | [
"MIT"
] | 7 | 2017-06-03T15:40:26.000Z | 2020-08-12T12:11:41.000Z | # Python routines useful for handling ikg's LEGO robot data.
# Author: Claus Brenner, 28.10.2012
from math import sin, cos, pi
# In previous versions, the S record included the number of scan points.
# If so, set this to true.
s_record_has_count = True
# Class holding log data of our Lego robot.
# The logfil... | 45.371795 | 128 | 0.52642 |
7964be00d128f440cbef09b4796ed4185ba4675b | 769 | py | Python | Midterm in OOP.py | Eberhard-26/-OOP-58001 | cf8feae4750754e0a358d7f371af880808a21538 | [
"Apache-2.0"
] | null | null | null | Midterm in OOP.py | Eberhard-26/-OOP-58001 | cf8feae4750754e0a358d7f371af880808a21538 | [
"Apache-2.0"
] | null | null | null | Midterm in OOP.py | Eberhard-26/-OOP-58001 | cf8feae4750754e0a358d7f371af880808a21538 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
class Name:
def __init__(self, name):
self.lbl1=Label(name, text='Enter your full name', fg="red")
self.lbl1.place(x=50, y=30)
self.t1 = Entry(bd=3)
self.t1.place(x=300, y=25)
self.t2 = Entry(bd=3)
self.t2.place(x=300, y=100)
self.btn1 ... | 26.517241 | 106 | 0.608583 |
7964bf483e23ecbb876003b1ac392d9a27cd1190 | 17,496 | py | Python | billiards/billiards/support/pybcs/httpc.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | null | null | null | billiards/billiards/support/pybcs/httpc.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | null | null | null | billiards/billiards/support/pybcs/httpc.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | 1 | 2021-02-08T13:19:34.000Z | 2021-02-08T13:19:34.000Z | #!/usr/bin/env python
#coding:utf8
import urllib
import urllib2
import httplib
import cookielib
import os
import re
import sys
import time
import copy
import hmac
import base64
import hashlib
import mimetypes
import socket
socket.setdefaulttimeout(60)
try:
import json
except:
import simplejson as json
try:
#... | 33.325714 | 157 | 0.562186 |
7964bf64379333b0e801b71f054471d4ce8633a1 | 55,737 | py | Python | sdk/python/pulumi_aws/outputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/outputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/outputs.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # 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 ... | 33.196546 | 291 | 0.599889 |
7964c2501c7f251ab52aa7fccebc645ccc236b0a | 616 | py | Python | Exercise_13_BackwardOrder.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | 2 | 2020-11-29T22:38:18.000Z | 2020-12-01T19:09:53.000Z | Exercise_13_BackwardOrder.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | null | null | null | Exercise_13_BackwardOrder.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | null | null | null | #Write a program that asks the user for a long string containing multiple
# words. Print back to the user the same string, except with the words in backwards order.
txt = str()
txt = input("Write something: ")
a = list()
a[:0]=txt
n = len(a)
b = list()
c = list()
print(n)
b.append(0)
for i in range(n):
... | 21.241379 | 91 | 0.592532 |
7964c29ab84b866687b81f8e41e1fad8a18ab2a5 | 20,943 | py | Python | build/tools/repopick.py | LightningFastRom/android_vendor_Lightning-Old | ec8390ce7e98ad05f12e34c0460a47fa609e0a1e | [
"Apache-2.0"
] | 108 | 2016-12-13T18:01:14.000Z | 2021-11-17T15:50:50.000Z | build/tools/repopick.py | LightningFastRom/android_vendor_Lightning-Old | ec8390ce7e98ad05f12e34c0460a47fa609e0a1e | [
"Apache-2.0"
] | 31 | 2017-01-05T17:51:26.000Z | 2019-08-16T02:06:48.000Z | build/tools/repopick.py | LightningFastRom/android_vendor_Lightning-Old | ec8390ce7e98ad05f12e34c0460a47fa609e0a1e | [
"Apache-2.0"
] | 517 | 2016-12-26T12:34:02.000Z | 2022-01-16T21:58:39.000Z | #!/usr/bin/env python
#
# Copyright (C) 2013-15 The CyanogenMod Project
# (C) 2017 The LineageOS Project
#
# 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.apach... | 44.845824 | 156 | 0.593181 |
7964c37f5d9c1a132d2d6398eb3017c8605ff2d2 | 19,635 | py | Python | venv/Lib/site-packages/prompt_toolkit/key_binding/key_bindings.py | itsAbdulKhadar/Machine-Learning-with-Streamlit | c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3 | [
"MIT"
] | 5 | 2022-01-20T22:59:04.000Z | 2022-02-06T06:11:35.000Z | venv/Lib/site-packages/prompt_toolkit/key_binding/key_bindings.py | itsAbdulKhadar/Machine-Learning-with-Streamlit | c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3 | [
"MIT"
] | 1 | 2021-09-23T18:06:06.000Z | 2021-09-24T09:34:21.000Z | venv/Lib/site-packages/prompt_toolkit/key_binding/key_bindings.py | itsAbdulKhadar/Machine-Learning-with-Streamlit | c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3 | [
"MIT"
] | 2 | 2021-06-11T21:55:16.000Z | 2021-06-21T00:06:00.000Z | """
Key bindings registry.
A `KeyBindings` object is a container that holds a list of key bindings. It has a
very efficient internal data structure for checking which key bindings apply
for a pressed key.
Typical usage::
kb = KeyBindings()
@kb.add(Keys.ControlX, Keys.ControlC, filter=INSERT)
def handler... | 30.631825 | 84 | 0.591648 |
7964c3a3a685ee17365d9bc91d963c2956295189 | 1,769 | py | Python | backend/api/apps/work/management/commands/gen_work.py | Jeffallan/timekeeper | ecad4dba84781a9f5b592cd639ad43dc35708e11 | [
"Apache-2.0"
] | 1 | 2022-02-13T21:13:10.000Z | 2022-02-13T21:13:10.000Z | backend/api/apps/work/management/commands/gen_work.py | Jeffallan/timekeeper | ecad4dba84781a9f5b592cd639ad43dc35708e11 | [
"Apache-2.0"
] | 8 | 2021-11-14T20:00:25.000Z | 2021-12-04T18:52:18.000Z | backend/api/apps/work/management/commands/gen_work.py | Jeffallan/timekeeper | ecad4dba84781a9f5b592cd639ad43dc35708e11 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from django.db import models, transaction
from typing import Any, Optional
import random
from api.apps.clients.models import Location
from api.apps.services.models import Service
from api.apps.users.models import User
from api.apps.work.models import WorkPerformed
fr... | 33.377358 | 84 | 0.647824 |
7964c4ced51ef372461720e8b18fe17c08e19791 | 2,009 | py | Python | enthalpygradients/examples/simple_example.py | JIMENOFONSECA/EnthalpyGradients | b82675b22b45163012f6314a51c57b14e458ea72 | [
"MIT"
] | 1 | 2021-01-02T06:38:56.000Z | 2021-01-02T06:38:56.000Z | enthalpygradients/examples/simple_example.py | jimenofonseca/EnthalpyGradients | b82675b22b45163012f6314a51c57b14e458ea72 | [
"MIT"
] | null | null | null | enthalpygradients/examples/simple_example.py | jimenofonseca/EnthalpyGradients | b82675b22b45163012f6314a51c57b14e458ea72 | [
"MIT"
] | null | null | null | '''
MIT License
Copyright (c) 2020 Jimeno A. Fonseca
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | 41.854167 | 103 | 0.81334 |
7964c4d1fb8ab59b71914bb7fc9a45572bb5d10a | 4,737 | py | Python | train.py | githubBingoChen/DPNet | ce34a23f9876fec184236e9367c6fe0cd9362835 | [
"MIT"
] | 8 | 2020-05-08T15:56:23.000Z | 2021-12-20T03:14:03.000Z | train.py | githubBingoChen/DPNet | ce34a23f9876fec184236e9367c6fe0cd9362835 | [
"MIT"
] | null | null | null | train.py | githubBingoChen/DPNet | ce34a23f9876fec184236e9367c6fe0cd9362835 | [
"MIT"
] | 2 | 2020-09-20T03:01:26.000Z | 2021-03-17T19:09:33.000Z | import datetime
import os
import torch
from torch import nn
from torch import optim
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision import transforms
import joint_transforms
from config import duts_train_path
from datasets import ImageFolder
from misc import AvgMeter, chec... | 34.079137 | 119 | 0.616002 |
7964c50a08df73d8932a4d7bf7022f4685368135 | 2,591 | py | Python | stats.py | dimarkov/predchange | 0871c2a2603fe7a2b1c97b60ac46cf15b6d7a2af | [
"MIT"
] | 3 | 2018-09-28T17:33:52.000Z | 2020-08-18T06:58:19.000Z | stats.py | dimarkov/predchange | 0871c2a2603fe7a2b1c97b60ac46cf15b6d7a2af | [
"MIT"
] | null | null | null | stats.py | dimarkov/predchange | 0871c2a2603fe7a2b1c97b60ac46cf15b6d7a2af | [
"MIT"
] | 1 | 2018-09-28T18:09:22.000Z | 2018-09-28T18:09:22.000Z | """
Collection of helper functions.
"""
from __future__ import division
#from builtins import range
import numpy as np
from scipy.special import gammaln
from scipy.stats import entropy
from pymc3 import trace_to_dataframe
def binomln(x1, x2):
return gammaln(x1+1) - gammaln(x2+1) - gammaln(x1-x2+1)
def neg_bino... | 29.781609 | 84 | 0.611733 |
7964c5279fea0c1b627aaba7efeb8f3a4bc8076e | 22,974 | py | Python | Bio/Blast/NCBIXML.py | nmatzke/biopython | 381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a | [
"PostgreSQL"
] | 2 | 2016-05-09T09:30:50.000Z | 2018-05-21T21:39:45.000Z | Bio/Blast/NCBIXML.py | nmatzke/biopython | 381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a | [
"PostgreSQL"
] | null | null | null | Bio/Blast/NCBIXML.py | nmatzke/biopython | 381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a | [
"PostgreSQL"
] | null | null | null | # Copyright 2000 by Bertrand Frottier . All rights reserved.
# Revisions 2005-2006 copyright Michiel de Hoon
# Revisions 2006-2009 copyright Peter Cock
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.... | 33.985207 | 81 | 0.600287 |
7964c553bbef8e15be3d24d46b91b47047539303 | 26,707 | py | Python | dxlclient/service.py | rahul1809/opendxl-client-python | f8690132b7181be2b0ed7b3fd8a5374b27f4872e | [
"Apache-2.0"
] | 1 | 2017-03-30T16:45:16.000Z | 2017-03-30T16:45:16.000Z | dxlclient/service.py | rahul1809/opendxl-client-python | f8690132b7181be2b0ed7b3fd8a5374b27f4872e | [
"Apache-2.0"
] | null | null | null | dxlclient/service.py | rahul1809/opendxl-client-python | f8690132b7181be2b0ed7b3fd8a5374b27f4872e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
# Copyright (c) 2017 McAfee Inc. - All Rights Reserved.
################################################################################
import json
import logging
import weakref
from threading import Timer, Conditi... | 37.88227 | 119 | 0.617142 |
7964c561c2ab4067d15574a931ceb41db9bbfe85 | 12,630 | py | Python | parl/remote/master.py | tanzeyy/PARL | c9be73a87b6618e5a3b2c945327478f365caab74 | [
"Apache-2.0"
] | 1 | 2020-12-24T06:23:08.000Z | 2020-12-24T06:23:08.000Z | parl/remote/master.py | Wangding-han/PARL | b966fa787db2bd8ccfcc8f7afe49e53f633f217c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | parl/remote/master.py | Wangding-han/PARL | b966fa787db2bd8ccfcc8f7afe49e53f633f217c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 PaddlePaddle 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 app... | 41.27451 | 123 | 0.632225 |
7964c575218d17fed28de4fa269de455843cc479 | 3,762 | py | Python | src/openeo_grass_gis_driver/jobs_job_id_logs.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 7 | 2018-03-16T17:26:14.000Z | 2022-03-09T08:19:10.000Z | src/openeo_grass_gis_driver/jobs_job_id_logs.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 70 | 2018-03-09T11:28:12.000Z | 2022-02-17T09:06:17.000Z | src/openeo_grass_gis_driver/jobs_job_id_logs.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 13 | 2018-03-12T09:58:24.000Z | 2022-02-23T10:40:11.000Z | # -*- coding: utf-8 -*-
from flask import make_response, jsonify
from openeo_grass_gis_driver.actinia_processing.config import \
Config as ActiniaConfig
from openeo_grass_gis_driver.actinia_processing.actinia_interface import \
ActiniaInterface
from openeo_grass_gis_driver.process_graph_db import GraphDB
from... | 40.021277 | 84 | 0.576821 |
7964c69ac36344a284ed8f8ce8a7d7dc4dc320de | 1,122 | py | Python | test/mitmproxy/builtins/test_filestreamer.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | test/mitmproxy/builtins/test_filestreamer.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | test/mitmproxy/builtins/test_filestreamer.py | e7appew/pkg-mitmproxy | f427c573805d2af57111142757eff5661a0bb9cf | [
"MIT"
] | null | null | null | from __future__ import absolute_import, print_function, division
from .. import tutils, mastertest
import os.path
from mitmproxy.builtins import filestreamer
from mitmproxy.flow import master, FlowReader
from mitmproxy.flow import state
from mitmproxy import options
class TestStream(mastertest.MasterTest):
def... | 25.5 | 64 | 0.544563 |
7964c75cf7157558c4ae728649e4bea06466833b | 1,081 | py | Python | test/gst-vaapi/decode/12bit/vp9.py | yefengxx/vaapi-fits | 51513e51bacc89877350690eb47c83b00a715b59 | [
"BSD-3-Clause"
] | 1 | 2021-08-16T02:52:42.000Z | 2021-08-16T02:52:42.000Z | test/gst-vaapi/decode/12bit/vp9.py | lnlnexp/vaapi-fits | bd9f26b69001565d68e3ffd3dad679d91eb2c584 | [
"BSD-3-Clause"
] | null | null | null | test/gst-vaapi/decode/12bit/vp9.py | lnlnexp/vaapi-fits | bd9f26b69001565d68e3ffd3dad679d91eb2c584 | [
"BSD-3-Clause"
] | 1 | 2021-07-15T02:07:26.000Z | 2021-07-15T02:07:26.000Z | ###
### Copyright (C) 2018-2020 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from .....lib import *
from .....lib.gstreamer.vaapi.util import *
from .....lib.gstreamer.vaapi.decoder import DecoderTest
spec = load_test_spec("vp9", "decode", "12bit")
@slash.requires(*platform.have_caps("decode",... | 30.885714 | 86 | 0.641998 |
7964c7a82504bf60a229b01810b6e96135ce801e | 1,784 | py | Python | setup.py | c-martinez/mwclient | a93c58afbba9e07e685e09d5f4c9260ae1e90643 | [
"MIT"
] | null | null | null | setup.py | c-martinez/mwclient | a93c58afbba9e07e685e09d5f4c9260ae1e90643 | [
"MIT"
] | null | null | null | setup.py | c-martinez/mwclient | a93c58afbba9e07e685e09d5f4c9260ae1e90643 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
except ImportError:
print("This package requires 'setuptools' to be installed.")
sys.exit(1)
class PyTest(TestCom... | 29.733333 | 82 | 0.655269 |
7964c7b6580396d2a8c8e9da6a4d88833e11e6e8 | 8,041 | py | Python | examples/bert_pretraining.py | phohenecker/pytorch-transformer | 211406d82ac04a7b473bcdebda77cc3c2e9af0cf | [
"BSD-2-Clause"
] | 50 | 2018-12-10T20:37:06.000Z | 2022-02-25T11:36:03.000Z | examples/bert_pretraining.py | grisoniFr/pytorch-transformer | 211406d82ac04a7b473bcdebda77cc3c2e9af0cf | [
"BSD-2-Clause"
] | 3 | 2019-07-09T12:15:52.000Z | 2021-04-08T07:44:40.000Z | examples/bert_pretraining.py | grisoniFr/pytorch-transformer | 211406d82ac04a7b473bcdebda77cc3c2e9af0cf | [
"BSD-2-Clause"
] | 9 | 2019-06-28T04:33:31.000Z | 2021-01-27T06:07:28.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""An example of how to pretrain a transformer encoder with BERT."""
import collections
import itertools
import typing
import gensim.models.word2vec as word2vec
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import transformer
import... | 35.422907 | 120 | 0.524686 |
7964c960c5c9583caf16a6f62a7a3a2410d651b6 | 3,016 | py | Python | Python_OCR_JE/venv/Lib/site-packages/numpy/distutils/__config__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_OCR_JE/venv/Lib/site-packages/numpy/distutils/__config__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_OCR_JE/venv/Lib/site-packages/numpy/distutils/__config__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2021-04-26T22:41:56.000Z | 2021-04-26T22:41:56.000Z | # This file is generated by numpy's setup.py
# It contains system_info results at the time of building this package.
__all__ = ["get_info","show"]
import os
import sys
extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs')
if sys.platform == 'win32' and os.path.isdir(extra_dll_dir):
if sys.... | 38.177215 | 190 | 0.611074 |
7964cb04d40b403a061595f72288e60ee6fa05f9 | 444 | py | Python | ConfigTemplate.py | blackboard/BBDN-BlackboardData-Python | fd83b09356a3f9dc30770e2277372c411c0873a0 | [
"BSD-3-Clause"
] | 8 | 2020-02-19T20:21:24.000Z | 2022-01-12T17:48:24.000Z | ConfigTemplate.py | elmiguel/BBDN-BlackboardData-Python | 360f63912cee79e2c3079481b6e323f020df28af | [
"BSD-3-Clause"
] | 3 | 2020-02-21T14:33:07.000Z | 2020-02-21T16:27:06.000Z | ConfigTemplate.py | blackboard/BBDN-BlackboardData-Python | fd83b09356a3f9dc30770e2277372c411c0873a0 | [
"BSD-3-Clause"
] | 4 | 2020-02-20T16:34:22.000Z | 2021-03-08T16:11:31.000Z | #!/usr/bin/env python
#
# Copy this file to Config.py and fill out your information
#
sfconcfg = {
'user': '<mySnowflakeUserName>',
'password': '<mySnowflakePassword>',
# Found as the first token in your snowflake URL, i.e. 12345.snowflakecomputing.com, your id is 12345
'account': '<mySnowflakeAccountId... | 31.714286 | 105 | 0.691441 |
7964cc71d873bd71479ced21bf47d459cceafe35 | 2,644 | py | Python | tests/integration/conftest.py | jvegreg/ESMValCore | 03eb1c942bf1dc3be98cb30c3592b42e82a94f16 | [
"Apache-2.0"
] | null | null | null | tests/integration/conftest.py | jvegreg/ESMValCore | 03eb1c942bf1dc3be98cb30c3592b42e82a94f16 | [
"Apache-2.0"
] | 2 | 2022-03-02T16:16:06.000Z | 2022-03-10T12:58:49.000Z | tests/integration/conftest.py | valeriupredoi/ESMValCore | b46b948c47d8579d997b28501f8588f5531aa354 | [
"Apache-2.0"
] | null | null | null | import os
import iris
import pytest
from esmvalcore import _data_finder
def create_test_file(filename, tracking_id=None):
dirname = os.path.dirname(filename)
if not os.path.exists(dirname):
os.makedirs(dirname)
attributes = {}
if tracking_id is not None:
attributes['tracking_id'] = ... | 27.541667 | 63 | 0.61233 |
7964cda97262244aa0c93dc933315f4aac18669a | 617 | py | Python | tests/conftest.py | MichaelYusko/Flaskbox | 26014cadf3bed5af72f6d270eb9fbc06faefcfd2 | [
"MIT"
] | 1 | 2018-01-16T18:51:28.000Z | 2018-01-16T18:51:28.000Z | tests/conftest.py | MichaelYusko/Flaskbox | 26014cadf3bed5af72f6d270eb9fbc06faefcfd2 | [
"MIT"
] | 2 | 2018-04-01T15:28:35.000Z | 2018-04-05T21:33:01.000Z | tests/conftest.py | MichaelYusko/Flaskbox | 26014cadf3bed5af72f6d270eb9fbc06faefcfd2 | [
"MIT"
] | 3 | 2018-01-15T08:29:14.000Z | 2018-04-01T15:56:01.000Z | import os
import pytest
from flaskbox.helpers import create_init_file
from flaskbox.reader import YAMLBaseReader
@pytest.yield_fixture(autouse=True)
def create_yaml_file():
"""Create the flaskbox yaml file, and after tests delete the file
"""
yield create_init_file()
os.remove('flaskbox.yml')
@pyt... | 19.28125 | 69 | 0.649919 |
7964cdb1e888684bedb89e5ed0f76ee045c44d8d | 293 | py | Python | fortune-mod/tests/fortune-m-test.py | fonic/fortune-mod | 0a64511e6a7d6f10055a2126e31f47b666ca7ded | [
"BSD-4-Clause-UC"
] | 237 | 2016-04-04T11:39:42.000Z | 2022-03-25T14:04:42.000Z | fortune-mod/tests/fortune-m-test.py | fonic/fortune-mod | 0a64511e6a7d6f10055a2126e31f47b666ca7ded | [
"BSD-4-Clause-UC"
] | 63 | 2016-04-05T13:55:06.000Z | 2022-03-05T10:26:58.000Z | fortune-mod/tests/fortune-m-test.py | fonic/fortune-mod | 0a64511e6a7d6f10055a2126e31f47b666ca7ded | [
"BSD-4-Clause-UC"
] | 51 | 2016-04-04T14:04:32.000Z | 2022-03-31T04:27:53.000Z | #!/usr/bin/env python3
import glob
import os
import subprocess
from os.path import join
inst_dir = join(os.getcwd(), "fortune-m-INST_DIR")
exe = glob.glob(join(inst_dir, "games", "fortune")+'*')[0]
# subprocess.call(["objdump", "-p", exe])
rc = subprocess.call(
[exe, "-m", "giants"],
)
| 20.928571 | 58 | 0.658703 |
7964cf3da47925c4496e5388d302e8a55237aaba | 448 | py | Python | gordon/tests/test_smhm.py | ArgonneCPAC/gordon | e230a7f7b9e3f6b7e981b04e2d045aacd31e9d17 | [
"BSD-3-Clause"
] | 1 | 2020-09-04T17:48:54.000Z | 2020-09-04T17:48:54.000Z | gordon/tests/test_smhm.py | ArgonneCPAC/gordon | e230a7f7b9e3f6b7e981b04e2d045aacd31e9d17 | [
"BSD-3-Clause"
] | 1 | 2021-07-16T15:31:16.000Z | 2021-07-16T15:31:16.000Z | gordon/tests/test_smhm.py | ArgonneCPAC/gordon | e230a7f7b9e3f6b7e981b04e2d045aacd31e9d17 | [
"BSD-3-Clause"
] | null | null | null | """
"""
import os
import numpy as np
from ..sigmoid_smhm import logsm_from_logmhalo
_THIS_DRNAME = os.path.dirname(os.path.abspath(__file__))
DDRN = os.path.join(_THIS_DRNAME, "testing_data")
def test_smhm_correctness():
X = np.loadtxt(os.path.join(DDRN, "logsm_from_logmhalo_testing.dat"))
logmhalo = X[:, 0]... | 26.352941 | 73 | 0.725446 |
7964cf64a6ad6cb2e50821d25c2967aad15a6096 | 19,604 | py | Python | icloudpd/base.py | koldinger/icloud_photos_downloader | 2f573696c1516565c06699f2cd3adb9cdb684418 | [
"MIT"
] | null | null | null | icloudpd/base.py | koldinger/icloud_photos_downloader | 2f573696c1516565c06699f2cd3adb9cdb684418 | [
"MIT"
] | null | null | null | icloudpd/base.py | koldinger/icloud_photos_downloader | 2f573696c1516565c06699f2cd3adb9cdb684418 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Main script that uses Click to parse command-line arguments"""
from __future__ import print_function
import os
import sys
import time
import datetime
import logging
import itertools
import subprocess
import json
import threading
import multiprocessing
import click
from tqdm import tqdm
from tz... | 33.626072 | 93 | 0.592583 |
7964cfa3edb7b63a68efb9b6dd0ae4b9c9ca788d | 31,750 | py | Python | Selenium_PhantomJS/source/botocore/parsers.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2019-06-27T12:09:44.000Z | 2019-06-27T12:09:44.000Z | Selenium_PhantomJS/source/botocore/parsers.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Selenium_PhantomJS/source/botocore/parsers.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 2 | 2016-09-01T21:11:47.000Z | 2018-07-01T01:28:02.000Z | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 40.54917 | 81 | 0.602709 |
7964d08c3908fb0a0a25e87601a67e3a29c4ab89 | 650 | py | Python | plotly/validators/scatterternary/hoverlabel/font/_family.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 12 | 2020-04-18T18:10:22.000Z | 2021-12-06T10:11:15.000Z | plotly/validators/scatterternary/hoverlabel/font/_family.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 27 | 2020-04-28T21:23:12.000Z | 2021-06-25T15:36:38.000Z | plotly/validators/scatterternary/hoverlabel/font/_family.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 6 | 2020-04-18T23:07:08.000Z | 2021-11-18T07:53:06.000Z | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='scatterternary.hoverlabel.font',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=p... | 29.545455 | 68 | 0.6 |
7964d0ad51f60323fa9fdb0d8df60b744b8c9435 | 3,054 | py | Python | contrib/zmq/zmq_sub.py | nutucoin/NutucoinV2 | 6a9f308154072f06bf3a4977d0bcd45076fd1a31 | [
"MIT"
] | 5 | 2019-09-01T04:15:56.000Z | 2020-06-04T13:00:19.000Z | contrib/zmq/zmq_sub.py | nutucoin/NutucoinV2 | 6a9f308154072f06bf3a4977d0bcd45076fd1a31 | [
"MIT"
] | null | null | null | contrib/zmq/zmq_sub.py | nutucoin/NutucoinV2 | 6a9f308154072f06bf3a4977d0bcd45076fd1a31 | [
"MIT"
] | 3 | 2020-01-10T20:32:03.000Z | 2020-11-19T14:33:58.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
ZMQ example using python3's asyncio
Nutucoind should be started with the command line argume... | 35.929412 | 107 | 0.643746 |
7964d218150eefa9d929516069c5ac44c012decd | 3,213 | py | Python | utils/record.py | nicholaswen/Animation2Code | 95d8b0c83a4a44b3143b187af8d375ba4656b7a6 | [
"MIT"
] | null | null | null | utils/record.py | nicholaswen/Animation2Code | 95d8b0c83a4a44b3143b187af8d375ba4656b7a6 | [
"MIT"
] | null | null | null | utils/record.py | nicholaswen/Animation2Code | 95d8b0c83a4a44b3143b187af8d375ba4656b7a6 | [
"MIT"
] | null | null | null | from selenium import webdriver
import sys, getopt, time, subprocess, shlex
from xvfbwrapper import Xvfb
import argparse
effects = ['bounce','flash', 'pulse', 'rubberBand',
'shake', 'headShake', 'swing', 'tada',
'wobble','jello', 'bounceIn','bounceInDown',
'bounceInLeft','bounceInRight', 'bounceInUp','bounceOut',... | 36.511364 | 204 | 0.671024 |
7964d277b8bb8fedf1738777fb9015d149c9877f | 1,070 | py | Python | shop/admin.py | chromium7/mangovodo | bd7625342ff4a669879a9b2b3b7b846a29981c3e | [
"MIT"
] | null | null | null | shop/admin.py | chromium7/mangovodo | bd7625342ff4a669879a9b2b3b7b846a29981c3e | [
"MIT"
] | null | null | null | shop/admin.py | chromium7/mangovodo | bd7625342ff4a669879a9b2b3b7b846a29981c3e | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import Address, Category, Product
UserAdmin.list_display += ('notify', )
UserAdmin.list_filter += ('notify', )
UserAdmin.fieldsets += (('notify', {'fields': ('notify', )}), )
@admin.register(Address)
class AddressAdmin(adm... | 29.722222 | 64 | 0.679439 |
7964d282f12efd20e41e5f427c6862c08aa7d1d7 | 1,635 | py | Python | AvroLibrary/__init__.py | kcalczynski/robotframework-AvroLibrary | f8e4526f872824d2f7e50ab97748de86c5f6f071 | [
"Apache-2.0"
] | null | null | null | AvroLibrary/__init__.py | kcalczynski/robotframework-AvroLibrary | f8e4526f872824d2f7e50ab97748de86c5f6f071 | [
"Apache-2.0"
] | null | null | null | AvroLibrary/__init__.py | kcalczynski/robotframework-AvroLibrary | f8e4526f872824d2f7e50ab97748de86c5f6f071 | [
"Apache-2.0"
] | null | null | null | import avro.io
import io
import avro.datafile
import avro.schema
import sys
if sys.version_info.major>=3:
from . version import VERSION
else:
from version import VERSION
__version__ = VERSION
class AvroLibrary(object):
ROBOT_LIBRARY_VERSION = VERSION
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def parse_sche... | 30.849057 | 98 | 0.647095 |
7964d33d47151348b84c2d3b1030209db52012a7 | 6,599 | py | Python | BuildALO7Corpus/CorpusFromEllisQTWB.py | SigismundWu/LanguageModelWithLSTM | 5c3e859f29b0736720ea479f172e6f3f878498d1 | [
"MIT"
] | null | null | null | BuildALO7Corpus/CorpusFromEllisQTWB.py | SigismundWu/LanguageModelWithLSTM | 5c3e859f29b0736720ea479f172e6f3f878498d1 | [
"MIT"
] | null | null | null | BuildALO7Corpus/CorpusFromEllisQTWB.py | SigismundWu/LanguageModelWithLSTM | 5c3e859f29b0736720ea479f172e6f3f878498d1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import logging
import re
import pandas as pd
from contrib.utils.DataCleanCheckTool import DataCleanCheckTool
class CorpusFromEllisQTWB(object):
"""
CorpusFromEllis, question_text without blank
由于存在大量单个单词和没有空格句子各种没有意义的a;an这类的语句或者答案,因此需要划分
"""
def __init__(self... | 38.144509 | 103 | 0.564783 |
7964d3fc312d0ae78b5c0bf6473b3bb33d48c1b6 | 3,892 | py | Python | libqtile/widget/moc.py | 1kyu/qtile | da93518b2ab924e803552decdb364d64de46088d | [
"MIT"
] | 1 | 2021-11-15T04:03:59.000Z | 2021-11-15T04:03:59.000Z | libqtile/widget/moc.py | 1kyu/qtile | da93518b2ab924e803552decdb364d64de46088d | [
"MIT"
] | null | null | null | libqtile/widget/moc.py | 1kyu/qtile | da93518b2ab924e803552decdb364d64de46088d | [
"MIT"
] | 1 | 2020-04-27T22:20:11.000Z | 2020-04-27T22:20:11.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2015, zordsdavini
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This pro... | 34.140351 | 78 | 0.561408 |
7964d4890f73e357945730a86cebe3b2ad0eb8de | 3,170 | py | Python | cohesity_management_sdk/models/vmware_backup_source_parameters.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/vmware_backup_source_parameters.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/vmware_backup_source_parameters.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
import cohesity_management_sdk.models.source_app_params
import cohesity_management_sdk.models.credentials
import cohesity_management_sdk.models.vmware_disk_exclusion_proto
class VmwareBackupSourceParameters(object):
"""Implementation of the 'VMware Backup So... | 40.641026 | 190 | 0.7 |
7964d5bfd2de042cd0e16cda82cd62fcf33ae0c1 | 203 | py | Python | apps/simplecurl/myServer.py | saeedhadikhanloo/connectedcar | e2288ace1a4e700b5ac381d6f47d475d3c8ce58d | [
"MIT"
] | 1 | 2019-06-13T14:52:20.000Z | 2019-06-13T14:52:20.000Z | apps/simplecurl/myServer.py | saeedhadikhanloo/connectedcar | e2288ace1a4e700b5ac381d6f47d475d3c8ce58d | [
"MIT"
] | null | null | null | apps/simplecurl/myServer.py | saeedhadikhanloo/connectedcar | e2288ace1a4e700b5ac381d6f47d475d3c8ce58d | [
"MIT"
] | 1 | 2020-03-07T21:32:57.000Z | 2020-03-07T21:32:57.000Z | from flask import Flask , jsonify , request
app = Flask(__name__)
@app.route("/" , methods = ['POST'])
def hello():
data = request.get_json()
print(data)
name = data['name']
return name
| 20.3 | 43 | 0.625616 |
7964d5c5e935989930f7f50161ff00d5812b16c0 | 87 | py | Python | CmdbClient/plugins/__init__.py | Hxie0205/-CmdbDemo | e104dda81b533838d40a6e3daa31c1da4e373dd9 | [
"MIT"
] | null | null | null | CmdbClient/plugins/__init__.py | Hxie0205/-CmdbDemo | e104dda81b533838d40a6e3daa31c1da4e373dd9 | [
"MIT"
] | null | null | null | CmdbClient/plugins/__init__.py | Hxie0205/-CmdbDemo | e104dda81b533838d40a6e3daa31c1da4e373dd9 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "xh"
# Date: 2019/11/14
| 14.5 | 23 | 0.563218 |
7964d5e0d6c5bbff30057dd541992a4595176f15 | 760 | py | Python | urmovie/views/image_view.py | xuyangliu/UR | 8a3c94dd6b6f16bf233167333464c0429ad269d8 | [
"Apache-2.0"
] | null | null | null | urmovie/views/image_view.py | xuyangliu/UR | 8a3c94dd6b6f16bf233167333464c0429ad269d8 | [
"Apache-2.0"
] | null | null | null | urmovie/views/image_view.py | xuyangliu/UR | 8a3c94dd6b6f16bf233167333464c0429ad269d8 | [
"Apache-2.0"
] | null | null | null | # Author:Sunny Liu
from django.shortcuts import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect
from urmovie import models
from django.views.decorators.csrf import csrf_exempt
import hashlib,os
"""
内容简介:
1.爬虫情况下,对电影封面的添加
"""
@csrf_exempt
def uploadImg(request):
i... | 24.516129 | 52 | 0.665789 |
7964d878fc54bb52d22576efd4eb15da5f7e8522 | 9,559 | py | Python | simpletransformers/ner/ner_utils.py | hjc3613/simpletransformers | bce58639f3fa8f45f445b053b5aaae428c3c5429 | [
"Apache-2.0"
] | null | null | null | simpletransformers/ner/ner_utils.py | hjc3613/simpletransformers | bce58639f3fa8f45f445b053b5aaae428c3c5429 | [
"Apache-2.0"
] | null | null | null | simpletransformers/ner/ner_utils.py | hjc3613/simpletransformers | bce58639f3fa8f45f445b053b5aaae428c3c5429 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | 34.886861 | 117 | 0.620253 |
7964d8d675a4cefa91dad70713294b143699ee2d | 3,020 | py | Python | exercises/fit_gaussian_estimators.py | mamanka/IML.HUJI | e9a401993a08ddd99184af3d0754e306e2575b0d | [
"MIT"
] | null | null | null | exercises/fit_gaussian_estimators.py | mamanka/IML.HUJI | e9a401993a08ddd99184af3d0754e306e2575b0d | [
"MIT"
] | null | null | null | exercises/fit_gaussian_estimators.py | mamanka/IML.HUJI | e9a401993a08ddd99184af3d0754e306e2575b0d | [
"MIT"
] | null | null | null | from IMLearn.learners import UnivariateGaussian, MultivariateGaussian
import numpy as np
import plotly.graph_objects as go
import plotly.io as pio
import plotly.express
import pandas as pd
pio.templates.default = "simple_white"
def test_univariate_gaussian():
# Question 1 - Draw samples and print fitted model
... | 40.266667 | 146 | 0.657616 |
7964da54ef2274e488ea51ad25cf14b26b20eb78 | 49,636 | py | Python | Assets/Python/Screens/CvBUGMilitaryAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | 1 | 2019-08-05T18:36:14.000Z | 2019-08-05T18:36:14.000Z | Assets/Python/Screens/CvBUGMilitaryAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | null | null | null | Assets/Python/Screens/CvBUGMilitaryAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | null | null | null | ## CvBUGMilitaryAdvisor
##
## Allows grouping units by several factors and adds a Situation Report page
## showing Threat Index, Strategic Advantages and Vassal/DP/PA status of each rival.
##
## TODO:
##
## Deployment Tab
## * Add unit filter buttons
##
## Sit Rep Tab
## * Attitude icon
##
## Strat Adv Tab
## * Allo... | 40.029032 | 275 | 0.742727 |
7964dac774af0b7c24ee5e4d587c29fa2e5a74de | 4,019 | py | Python | control.py | saikat021/Genetic-Dropout | 72405e6b4c506c5e44f06a0de787415995bf9c98 | [
"MIT"
] | null | null | null | control.py | saikat021/Genetic-Dropout | 72405e6b4c506c5e44f06a0de787415995bf9c98 | [
"MIT"
] | null | null | null | control.py | saikat021/Genetic-Dropout | 72405e6b4c506c5e44f06a0de787415995bf9c98 | [
"MIT"
] | null | null | null | import math
import random
from torchvision import datasets ,transforms
from torchvision.datasets import ImageFolder
from torch.utils.data import DataLoader,Dataset
from torch import nn
from torch.nn.functional import relu ,softmax
import copy
from torch.utils.data import Subset
import pandas as pd
import numpy as n... | 36.536364 | 122 | 0.763623 |
7964db0d609157b472107099c3d6f82f7b279adc | 2,998 | py | Python | client/TaskWorker.py | doublesongsong/broc | 413005125e0c41efd098335c074385c204ce316a | [
"Apache-2.0"
] | 127 | 2015-12-11T02:55:16.000Z | 2022-03-10T09:03:35.000Z | client/TaskWorker.py | doublesongsong/broc | 413005125e0c41efd098335c074385c204ce316a | [
"Apache-2.0"
] | 20 | 2015-12-20T03:09:52.000Z | 2018-05-29T04:31:36.000Z | client/TaskWorker.py | doublesongsong/broc | 413005125e0c41efd098335c074385c204ce316a | [
"Apache-2.0"
] | 76 | 2015-12-25T06:38:28.000Z | 2021-11-17T13:17:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
#
################################################################################
"""
Authors: zhousongsong(doublesongsong@gmail.c... | 31.229167 | 94 | 0.487658 |
7964db272054d6d602a63a4a2c3b867d17e99cfa | 1,393 | py | Python | testonly/opencvfoo/t_picam1.py | y12studio/pi | c815b0b2a2421036ec99e085ffa92b1e3b5145f9 | [
"Apache-2.0"
] | 1 | 2016-10-28T07:30:34.000Z | 2016-10-28T07:30:34.000Z | testonly/opencvfoo/t_picam1.py | y12studio/pi | c815b0b2a2421036ec99e085ffa92b1e3b5145f9 | [
"Apache-2.0"
] | null | null | null | testonly/opencvfoo/t_picam1.py | y12studio/pi | c815b0b2a2421036ec99e085ffa92b1e3b5145f9 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
#
# Copyright 2013 Y12Studio
#
# 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 ... | 27.86 | 74 | 0.707107 |
7964db659b5ea2360f0dd0678472007e8d42b5a3 | 4,121 | py | Python | setup.py | yutayamazaki/optuna | 332c4f3e625efd0f50cfbed40d254a7f423d243b | [
"MIT"
] | null | null | null | setup.py | yutayamazaki/optuna | 332c4f3e625efd0f50cfbed40d254a7f423d243b | [
"MIT"
] | null | null | null | setup.py | yutayamazaki/optuna | 332c4f3e625efd0f50cfbed40d254a7f423d243b | [
"MIT"
] | null | null | null | import os
import sys
import pkg_resources
from setuptools import find_packages
from setuptools import setup
from typing import Dict # NOQA
from typing import List # NOQA
from typing import Optional # NOQA
def get_version():
# type: () -> str
version_filepath = os.path.join(os.path.dirname(__file__), 'op... | 25.128049 | 86 | 0.51735 |
7964dbecc072ddc274241faebcf760c76459750b | 17,673 | py | Python | mindspore/python/mindspore/nn/layer/pooling.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 1 | 2022-03-05T02:59:21.000Z | 2022-03-05T02:59:21.000Z | mindspore/python/mindspore/nn/layer/pooling.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | null | null | null | mindspore/python/mindspore/nn/layer/pooling.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 44.293233 | 115 | 0.614327 |
7964dc49a2734c2cd113d61d898ef94a84442b04 | 1,786 | py | Python | d3api/api/resources/location.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | null | null | null | d3api/api/resources/location.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | null | null | null | d3api/api/resources/location.py | metro-nom/d3api | 0829518c124afc44e845965091f0714b8307097b | [
"BSD-3-Clause"
] | 2 | 2020-12-17T10:17:11.000Z | 2020-12-17T13:04:06.000Z | import requests_cache
from flask import current_app
from pyld import jsonld
from d3api.api.resources.node import NodeById
from d3api.api.views import api, blueprint
from d3api.extensions import apispec
from d3api.models import Node
jsonld.set_document_loader(jsonld.requests_document_loader(timeout=4))
requests_cache.... | 24.135135 | 85 | 0.639418 |
7964dc99df9c6c1e4e8a65e83dd88033dcda4a2c | 9,190 | py | Python | py/problem_011.py | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | py/problem_011.py | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | py/problem_011.py | curtislb/ProjectEuler | 7baf8d7b7ac0e8697d4dec03458b473095a45da4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""problem_011.py
Problem 11: Largest product in a grid
In the 20×20 grid below, four numbers along a diagonal line have been marked
with parentheses.
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 7... | 31.365188 | 79 | 0.50457 |
7964de220562e0c5d278f0896ee5c0c267a3c66e | 11,428 | py | Python | lib/utils/data_augment.py | iSmida/DetectionYolo | b7e1eb26ca874da797cee02cb3e1639cf3546e0c | [
"MIT"
] | 3 | 2019-08-28T10:08:24.000Z | 2020-08-10T08:58:42.000Z | lib/utils/data_augment.py | iSmida/DetectionYolo | b7e1eb26ca874da797cee02cb3e1639cf3546e0c | [
"MIT"
] | null | null | null | lib/utils/data_augment.py | iSmida/DetectionYolo | b7e1eb26ca874da797cee02cb3e1639cf3546e0c | [
"MIT"
] | 1 | 2020-04-29T11:01:43.000Z | 2020-04-29T11:01:43.000Z | """Data augmentation functionality. Passed as callable transformations to
Dataset classes.
The data augmentation procedures were interpreted from @weiliu89's SSD paper
http://arxiv.org/abs/1512.02325
Ellis Brown, Max deGroot
"""
import torch
import cv2
import numpy as np
import random
import math
from lib.utils.box_... | 32.83908 | 129 | 0.570179 |
7964dee12a499fabcb0c94be6ce80222ee3ee0e5 | 13,703 | py | Python | main.py | jindl465/fashion-compatibility | 3ede6d3365a865ab8d5a201b8d3b42396563af12 | [
"BSD-3-Clause"
] | null | null | null | main.py | jindl465/fashion-compatibility | 3ede6d3365a865ab8d5a201b8d3b42396563af12 | [
"BSD-3-Clause"
] | null | null | null | main.py | jindl465/fashion-compatibility | 3ede6d3365a865ab8d5a201b8d3b42396563af12 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import sys
import shutil
import json
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import transforms
from torch.autograd i... | 41.905199 | 130 | 0.609356 |
7964dee210518178a5c2b246644e857d67c8e2a1 | 2,065 | py | Python | tests/conftest.py | abatula/yellowbrick | b1deb4cbf78e57f9c31b895b16f73c35c9b06936 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | abatula/yellowbrick | b1deb4cbf78e57f9c31b895b16f73c35c9b06936 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | abatula/yellowbrick | b1deb4cbf78e57f9c31b895b16f73c35c9b06936 | [
"Apache-2.0"
] | null | null | null | # tests.conftest
# Global definitions for Yellowbrick PyTest
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Fri Mar 02 11:53:55 2018 -0500
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: conftest.py [] benjamin@bengfort.com $
"""
Global definitio... | 34.416667 | 101 | 0.60678 |
7964dfc6019729a88071807d5f1783c073e54e8b | 2,321 | py | Python | test/pem_as_hmac_key_vows.py | davedoesdev/python-jwt | fedc67701cceaa9d0756352fab9f09d04ff21dca | [
"MIT"
] | 168 | 2015-01-11T03:27:33.000Z | 2022-03-29T02:42:58.000Z | test/pem_as_hmac_key_vows.py | davedoesdev/python-jwt | fedc67701cceaa9d0756352fab9f09d04ff21dca | [
"MIT"
] | 16 | 2015-03-11T23:52:38.000Z | 2019-11-14T23:00:16.000Z | test/pem_as_hmac_key_vows.py | davedoesdev/python-jwt | fedc67701cceaa9d0756352fab9f09d04ff21dca | [
"MIT"
] | 31 | 2015-01-27T19:55:31.000Z | 2021-09-19T10:12:46.000Z | """ test using PEM as key - we shouldn't validate a HMAC token instead """
# pylint: disable=wrong-import-order
from test.common import payload, rsa_pub_pem, rsa_pub_key
from test import python_jwt as jwt
from datetime import timedelta
from pyvows import Vows, expect
from jwcrypto.jwk import JWK
from jwcrypto.common im... | 36.265625 | 81 | 0.633348 |
7964e0f1b58d48a13ce70b4d9d11d77543254d2c | 6,519 | py | Python | sdk/python/pulumi_azure_native/security/v20210601/get_assessment.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/security/v20210601/get_assessment.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/security/v20210601/get_assessment.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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 _utilities
fro... | 34.860963 | 182 | 0.64381 |
7964e0f42db376a6acfd0c00d6aa2b787762281e | 11,566 | py | Python | experiment_builder.py | pppplin/MatchingNet | 995dcb2d464c0f06f551f80bcc2f3a0eac92e48e | [
"MIT"
] | null | null | null | experiment_builder.py | pppplin/MatchingNet | 995dcb2d464c0f06f551f80bcc2f3a0eac92e48e | [
"MIT"
] | null | null | null | experiment_builder.py | pppplin/MatchingNet | 995dcb2d464c0f06f551f80bcc2f3a0eac92e48e | [
"MIT"
] | null | null | null | import tensorflow as tf
import tqdm
import numpy as np
from one_shot_learning_network import OneshotNetwork
class ExperimentBuilder:
def __init__(self, data):
"""
Initializes an ExperimentBuilder object. The ExperimentBuilder object takes care of setting up our experiment
and provides hel... | 59.618557 | 248 | 0.655456 |
7964e2370c0a151a00f66f2599bdccb5cc72cb4c | 1,502 | py | Python | misc/splitbybarcode.py | marcelm/IgDiscover | 6fb4d3c45f7f408c55f8ddd53590d063b148b948 | [
"MIT"
] | 13 | 2017-04-04T13:45:35.000Z | 2021-10-10T12:33:38.000Z | misc/splitbybarcode.py | marcelm/IgDiscover | 6fb4d3c45f7f408c55f8ddd53590d063b148b948 | [
"MIT"
] | 84 | 2017-02-03T14:57:03.000Z | 2022-03-18T22:48:17.000Z | misc/splitbybarcode.py | marcelm/IgDiscover | 6fb4d3c45f7f408c55f8ddd53590d063b148b948 | [
"MIT"
] | 10 | 2017-04-06T12:09:26.000Z | 2022-03-11T18:47:06.000Z | #!/usr/bin/env python3
"""
Split sequences in a FASTA file by barcode.
"""
__author__ = "Marcel Martin"
import sys
import random
from sqt import HelpfulArgumentParser, FastaReader
def main():
parser = HelpfulArgumentParser(description=__doc__)
parser.add_argument('--barcode-length', '-l', metavar='N', type=int, de... | 31.957447 | 81 | 0.694407 |
7964e295f318bfd4acc1d834337846f2cdb66c87 | 2,074 | py | Python | PictureColoring/study/3.5/reuters.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | PictureColoring/study/3.5/reuters.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | PictureColoring/study/3.5/reuters.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | import sys
from keras.datasets import reuters
import numpy as np
from keras import models
from keras import layers
import matplotlib.pyplot as plt
from keras.utils.np_utils import to_categorical
sys.path.append("../../")
from MyUtils import callbacklist, ktpsession
import tensorflow as tf
(train_data, train_labels), (... | 35.152542 | 116 | 0.706847 |
7964e307636da9fef8a6ee20fa8a09acea0379c4 | 436 | py | Python | crest/filing/midi/track/_midi_file_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | crest/filing/midi/track/_midi_file_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | crest/filing/midi/track/_midi_file_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | #
# _midi_file_event.py
# crest-python
#
# Copyright (C) 2017 Rue Yokaze
# Distributed under the MIT License.
#
class MidiFileEvent(object):
def __init__(self, tick, message):
self.__tick = int(tick)
self.__message = message
def __GetTick(self):
return self.__tick
def __G... | 18.956522 | 38 | 0.655963 |
7964e33ba780be583c73f18e4b750493261148d3 | 347 | py | Python | packs/softlayer/actions/delete_keypair.py | jonico/st2contrib | 149c9c553f24360d91a14fef7ea6146707de75fd | [
"Apache-2.0"
] | 164 | 2015-01-17T16:08:33.000Z | 2021-08-03T02:34:07.000Z | packs/softlayer/actions/delete_keypair.py | jonico/st2contrib | 149c9c553f24360d91a14fef7ea6146707de75fd | [
"Apache-2.0"
] | 442 | 2015-01-01T11:19:01.000Z | 2017-09-06T23:26:17.000Z | packs/softlayer/actions/delete_keypair.py | jonico/st2contrib | 149c9c553f24360d91a14fef7ea6146707de75fd | [
"Apache-2.0"
] | 202 | 2015-01-13T00:37:40.000Z | 2020-11-07T11:30:10.000Z | from lib.softlayer import SoftlayerBaseAction
class SoftlayerDeleteKeypair(SoftlayerBaseAction):
def run(self, name):
driver = self._get_driver()
self.logger.info('Deleting keypair...')
keypair = driver.delete_key_pair(name)
self.logger.info('Keypair successfully deleted: {}'.forma... | 31.545455 | 76 | 0.697406 |
7964e3aa08e22f87f19b7d93e9c197ecd72b1290 | 914 | py | Python | kolibri/core/content/management/commands/scanforcontent.py | techZM/kolibri | 617e4c382e446b16a968e8add7f1766f8cd7c54a | [
"MIT"
] | null | null | null | kolibri/core/content/management/commands/scanforcontent.py | techZM/kolibri | 617e4c382e446b16a968e8add7f1766f8cd7c54a | [
"MIT"
] | null | null | null | kolibri/core/content/management/commands/scanforcontent.py | techZM/kolibri | 617e4c382e446b16a968e8add7f1766f8cd7c54a | [
"MIT"
] | 1 | 2021-07-26T11:38:29.000Z | 2021-07-26T11:38:29.000Z | from django.core.management.base import BaseCommand
from ...utils.annotation import set_local_file_availability_from_disk
from ...utils.annotation import update_content_metadata
from ...utils.channels import get_channel_ids_for_content_database_dir
from kolibri.core.content.utils.paths import get_content_database_dir_... | 41.545455 | 95 | 0.780088 |
7964e3c8a4c68e00a1468710e69ed4359a0089e0 | 7,274 | py | Python | Example Exercises.py | chandler-stevens/CSC-1130 | d1cde0d74cb949263a1e61ae8518022428634676 | [
"MIT"
] | null | null | null | Example Exercises.py | chandler-stevens/CSC-1130 | d1cde0d74cb949263a1e61ae8518022428634676 | [
"MIT"
] | null | null | null | Example Exercises.py | chandler-stevens/CSC-1130 | d1cde0d74cb949263a1e61ae8518022428634676 | [
"MIT"
] | null | null | null | ################################################################################
# Check if a word is a palindrome
################################################################################
#
# racecar = racecar
# taco != ocat
#
# Solution:
#
def testPalindrome(word):
# Simply check if word is ident... | 29.689796 | 81 | 0.481991 |
7964e4e71c6990aa30099bc2e6f6651feec2685e | 2,429 | py | Python | tools/perf/measurements/repaint_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | tools/perf/measurements/repaint_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/measurements/repaint_unittest.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from measurements import repaint
from telemetry import decorators
from telemetry.core import wpr_modes
from telemetry.page import page as page_module
from te... | 39.177419 | 79 | 0.767394 |
7964e4eb38d7115adab40e8e588b63b503b519b4 | 779 | py | Python | launch/launch_combine.py | mmerveunlu/adversarial-squad | f271bc2d4abe201daeba14f1d9fd960ed376d5a8 | [
"MIT"
] | null | null | null | launch/launch_combine.py | mmerveunlu/adversarial-squad | f271bc2d4abe201daeba14f1d9fd960ed376d5a8 | [
"MIT"
] | null | null | null | launch/launch_combine.py | mmerveunlu/adversarial-squad | f271bc2d4abe201daeba14f1d9fd960ed376d5a8 | [
"MIT"
] | null | null | null | """Insert a description of this module."""
import argparse
import subprocess
import sys
OPTS = None
def parse_args():
parser = argparse.ArgumentParser('Insert a description of this script.')
parser.add_argument('description')
parser.add_argument('bundles', nargs='+', help='Codalab bundles')
if len(sys.argv) =... | 26.862069 | 80 | 0.632863 |
7964e509948d46aaf58c3df904f495b70540dee6 | 371 | py | Python | applications/news/views.py | samay-rgb/alumni | f147ca04c3b9e24307321df5f26e9f7db26fefe3 | [
"MIT"
] | 5 | 2019-01-25T07:46:58.000Z | 2019-06-25T06:11:03.000Z | applications/news/views.py | samay-rgb/alumni | f147ca04c3b9e24307321df5f26e9f7db26fefe3 | [
"MIT"
] | 10 | 2019-12-14T06:08:30.000Z | 2022-03-13T16:01:05.000Z | applications/news/views.py | samay-rgb/alumni | f147ca04c3b9e24307321df5f26e9f7db26fefe3 | [
"MIT"
] | 10 | 2019-10-06T13:45:25.000Z | 2022-02-10T17:33:39.000Z | from django.shortcuts import render
from .models import News
# Create your views here.
def index(request):
news_list = News.objects.filter().order_by('-date')
return render(request, "news/index.html", {'news': news_list})
def news(request, id):
n = News.objects.get(news_id=id)
print("sassa", n)
... | 23.1875 | 66 | 0.687332 |
7964e56b3d98c9629fbb8529aee056e1b346f5eb | 3,890 | py | Python | docs/source/conf.py | CederGroupHub/alab_management | ba9a49ca85e1caefb96f44ef1182c2bc0115bfdf | [
"MIT"
] | 3 | 2021-12-08T02:09:28.000Z | 2021-12-10T01:49:55.000Z | docs/source/conf.py | CederGroupHub/alab_management | ba9a49ca85e1caefb96f44ef1182c2bc0115bfdf | [
"MIT"
] | 9 | 2021-12-10T01:22:01.000Z | 2022-03-08T22:26:06.000Z | docs/source/conf.py | CederGroupHub/alab_management | ba9a49ca85e1caefb96f44ef1182c2bc0115bfdf | [
"MIT"
] | 1 | 2022-03-23T22:42:54.000Z | 2022-03-23T22:42:54.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 30.155039 | 106 | 0.656041 |
7964e5efbd9297e430ef8068427cd52acb358a51 | 3,627 | py | Python | aimar_util.py | UMD-AIMAR/mycroft-aimar | f5bed21d12b86acf14c3cab6022d2a6cfdb1b01e | [
"MIT"
] | null | null | null | aimar_util.py | UMD-AIMAR/mycroft-aimar | f5bed21d12b86acf14c3cab6022d2a6cfdb1b01e | [
"MIT"
] | null | null | null | aimar_util.py | UMD-AIMAR/mycroft-aimar | f5bed21d12b86acf14c3cab6022d2a6cfdb1b01e | [
"MIT"
] | null | null | null | import requests
import yaml
CONFIG_DIR = "config.yml" # Use mycroft-core directory - updating file inside skill folder causes reload
DESKTOP_IP = None
CONFIG = None
try:
with open("config.yml", "r") as config_data:
CONFIG = yaml.load(config_data, Loader=yaml.BaseLoader)
DESKTOP_IP = CONFIG["DESKT... | 31.267241 | 126 | 0.688448 |
7964e76c6081d608d1aeb90170636565ff1dc586 | 9,373 | py | Python | configs/mvxnet/actr/dv_mvx-fpn_second_dbsamp_secfpn_adamw_2x8_80e_kitti-3d-3class_actr_pos4_dpe_sum.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | configs/mvxnet/actr/dv_mvx-fpn_second_dbsamp_secfpn_adamw_2x8_80e_kitti-3d-3class_actr_pos4_dpe_sum.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | configs/mvxnet/actr/dv_mvx-fpn_second_dbsamp_secfpn_adamw_2x8_80e_kitti-3d-3class_actr_pos4_dpe_sum.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../../_base_/schedules/cosine.py', '../../_base_/default_runtime.py'
]
# model settings
voxel_size = [0.05, 0.05, 0.1]
point_cloud_range = [0, -40, -3, 70.4, 40, 1]
model = dict(
type='DynamicMVXFasterRCNN',
img_backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
... | 33.715827 | 193 | 0.57815 |
7964e8360ed547e2a23177a016c4cfd1ba41355c | 1,516 | py | Python | python/example_code/s3/s3_versioning/test/conftest.py | cfuerst/aws-doc-sdk-examples | 21c0c02d101da4103820077a9268ad9fa1750403 | [
"Apache-2.0"
] | 5,166 | 2016-09-02T08:48:38.000Z | 2022-03-31T19:12:43.000Z | python/example_code/s3/s3_versioning/test/conftest.py | cfuerst/aws-doc-sdk-examples | 21c0c02d101da4103820077a9268ad9fa1750403 | [
"Apache-2.0"
] | 1,186 | 2016-09-28T23:05:19.000Z | 2022-03-31T18:07:47.000Z | python/example_code/s3/s3_versioning/test/conftest.py | cfuerst/aws-doc-sdk-examples | 21c0c02d101da4103820077a9268ad9fa1750403 | [
"Apache-2.0"
] | 4,003 | 2016-08-29T19:51:40.000Z | 2022-03-31T16:40:02.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Contains common test fixtures used to run Amazon S3 versioning tests.
"""
from urllib import parse
import time
from botocore.stub import ANY
import sys
# This is needed so Python can find test_tools in the p... | 29.72549 | 87 | 0.603562 |
7964e840377941aab85c5352c209d482204329c1 | 21,941 | py | Python | mmcif/api/DataCategory.py | rcsb/py-mmcif | 8c9d723af90229362dd79660554a10a8baa14d3b | [
"Apache-2.0"
] | 9 | 2019-08-29T09:43:02.000Z | 2022-01-11T01:00:39.000Z | mmcif/api/DataCategory.py | rcsb/py-mmcif | 8c9d723af90229362dd79660554a10a8baa14d3b | [
"Apache-2.0"
] | 7 | 2018-07-03T16:04:38.000Z | 2022-03-23T05:54:37.000Z | mmcif/api/DataCategory.py | rcsb/py-mmcif | 8c9d723af90229362dd79660554a10a8baa14d3b | [
"Apache-2.0"
] | 10 | 2019-03-05T18:06:59.000Z | 2022-01-27T03:32:19.000Z | ##
#
# File: DataCategory.py
# Original: 02-Feb-2009 jdw
#
# Update:
# 14-Nov-2012 jdw refactoring
# 17-Nov-2012 jdw self._rowList becomes data
# 21-Feb-2013 jdw add selectIndices(), selectValueWhere and selectValuesWhere.
# 10-Apr-2013 jdw add convenience method getValueOrDefault()
# 20-Jul-201... | 38.158261 | 157 | 0.544506 |
7964e8672aa5f0e8a31a9e77abb275196fd3a091 | 679 | py | Python | Code/LeetCode-Python/11.integer-to-roman.py | huip/Algorithm | d45f22f2a1230abc64f0c0536de5124430e2c7f5 | [
"MIT"
] | null | null | null | Code/LeetCode-Python/11.integer-to-roman.py | huip/Algorithm | d45f22f2a1230abc64f0c0536de5124430e2c7f5 | [
"MIT"
] | null | null | null | Code/LeetCode-Python/11.integer-to-roman.py | huip/Algorithm | d45f22f2a1230abc64f0c0536de5124430e2c7f5 | [
"MIT"
] | null | null | null | class Solution(object):
def intToRoman(self, num):
"""
:type num: int
:rtype: str
"""
mp = {
'M': 1000,
'CM': 900,
'D': 500,
'CD': 400,
'C': 100,
'XC': 90,
'L': 50,
'XL': 40,
... | 20.575758 | 35 | 0.30486 |
7964e869ba85af1353db224e78b8af9441cd4d97 | 2,889 | py | Python | bdtheme/hooks.py | portmytech/swifterp-theme | e2293a2704c0dcd2174f1794fd3bfdacbaa6f82e | [
"MIT"
] | null | null | null | bdtheme/hooks.py | portmytech/swifterp-theme | e2293a2704c0dcd2174f1794fd3bfdacbaa6f82e | [
"MIT"
] | null | null | null | bdtheme/hooks.py | portmytech/swifterp-theme | e2293a2704c0dcd2174f1794fd3bfdacbaa6f82e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "theme"
app_title = "theme"
app_publisher = "portmytech"
app_description = "theme"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "portmytech@gmail.com"
app_license = "MIT"
#... | 22.053435 | 78 | 0.657667 |
7964e99d33afbe7ee4079706fbb05a6ed8cdf27c | 5,372 | py | Python | Lab10-DynamoDB-Stream-EventBridge/src/fanout.py | James96315/aws-serverless-workshop-greater-china-region | 527e6456ff4e7bdf256e74228d7909d0f1f7b6ba | [
"MIT-0"
] | 62 | 2019-06-12T17:10:25.000Z | 2022-03-30T02:13:31.000Z | Lab10-DynamoDB-Stream-EventBridge/src/fanout.py | James96315/aws-serverless-workshop-greater-china-region | 527e6456ff4e7bdf256e74228d7909d0f1f7b6ba | [
"MIT-0"
] | 8 | 2020-03-26T05:21:40.000Z | 2021-04-13T09:44:44.000Z | Lab10-DynamoDB-Stream-EventBridge/src/fanout.py | James96315/aws-serverless-workshop-greater-china-region | 527e6456ff4e7bdf256e74228d7909d0f1f7b6ba | [
"MIT-0"
] | 44 | 2019-06-12T06:17:46.000Z | 2021-10-24T00:24:09.000Z | import sys
import boto3
import logging
import time
import json
from os import getenv
from boto3 import client
LOGGING_LEVEL = getenv('LOGGING_LEVEL', 'INFO')
logger = logging.getLogger(__name__)
if getenv('AWS_EXECUTION_ENV') is None:
logging.basicConfig(stream=sys.stdout, level=LOGGING_LEVEL)
else:
logger.setLe... | 32.557576 | 114 | 0.600335 |
7964eb8d8562b19aa6c880c919312cf56adbefe0 | 5,817 | py | Python | pytype/analyze.py | jdimatteo/pytype | ecf4e9cfee5c97045174c9455429fa200f6f9a30 | [
"Apache-2.0"
] | 3,882 | 2015-03-22T12:17:15.000Z | 2022-03-31T17:13:20.000Z | pytype/analyze.py | jdimatteo/pytype | ecf4e9cfee5c97045174c9455429fa200f6f9a30 | [
"Apache-2.0"
] | 638 | 2015-11-03T06:34:44.000Z | 2022-03-31T23:41:48.000Z | pytype/analyze.py | jdimatteo/pytype | ecf4e9cfee5c97045174c9455429fa200f6f9a30 | [
"Apache-2.0"
] | 301 | 2015-08-14T10:21:17.000Z | 2022-03-08T11:03:40.000Z | """Code for checking and inferring types."""
import logging
import subprocess
from pytype import context
from pytype import convert_structural
from pytype import debug
from pytype import metrics
from pytype.abstract import abstract_utils
from pytype.pytd import builtins
from pytype.pytd import pytd_utils
from pytype.... | 38.523179 | 80 | 0.701392 |
7964ebe5d975dfd2d7d9cc2c69f05839abcd1197 | 2,983 | py | Python | fastreid/layers/norm_layers/batch_re_norm2d.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 2 | 2021-05-12T13:36:46.000Z | 2021-08-15T10:35:08.000Z | fastreid/layers/norm_layers/batch_re_norm2d.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 1 | 2021-12-28T12:49:49.000Z | 2021-12-28T12:49:49.000Z | fastreid/layers/norm_layers/batch_re_norm2d.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torch.cuda.amp import custom_fwd
class BatchReNorm2D(nn.Module):
"""Batch Re-Normalization
Parameters
num_features – C from an expected input of size (N, C, H, W)
eps – a value added to the denominator for numerical stability. Default: 1e-5
momen... | 41.430556 | 168 | 0.636272 |
7964ec42feffed88567b8d684e2ef18b6b88bae6 | 5,881 | py | Python | tests/test_classdict.py | omaskery/classdict | ff76d13f917106750f186986e03b322c33d1ce7f | [
"MIT"
] | null | null | null | tests/test_classdict.py | omaskery/classdict | ff76d13f917106750f186986e03b322c33d1ce7f | [
"MIT"
] | null | null | null | tests/test_classdict.py | omaskery/classdict | ff76d13f917106750f186986e03b322c33d1ce7f | [
"MIT"
] | null | null | null | import unittest
from classdict import *
class Person(ClassDict):
age = FieldType(expected_type=int)
name = FieldType(expected_type=str)
class BusinessTag(ClassDict):
name = FieldType(expected_type=str)
class Business(ClassDict):
anything = FieldType()
typed_tags = ListFieldType(expected_type... | 33.039326 | 89 | 0.540724 |
7964ec4878d47443762e4da2d35a14780908fb75 | 21 | py | Python | config/example.secrets.py | pcraig3/super | 8ab30a456355ee2c7b7ea7368f254cacee1b1fef | [
"MIT"
] | null | null | null | config/example.secrets.py | pcraig3/super | 8ab30a456355ee2c7b7ea7368f254cacee1b1fef | [
"MIT"
] | null | null | null | config/example.secrets.py | pcraig3/super | 8ab30a456355ee2c7b7ea7368f254cacee1b1fef | [
"MIT"
] | null | null | null | OPENWEATHER_KEY = ''
| 10.5 | 20 | 0.714286 |
7964ec4a052d278253fdc59c03b75ff6d1081229 | 1,387 | py | Python | transformers/src/transformers/activations.py | scir-zywang/Combining-Self-Supervised-Learning-and-Active-Learningfor-Disfluency-Detection | 74aea6fb25223a128784168f28e41b2c2d6f3f96 | [
"Apache-2.0"
] | 3 | 2020-12-24T12:51:47.000Z | 2021-03-16T07:10:21.000Z | transformers/src/transformers/activations.py | scir-zywang/self-supervised-active-learning-disfluency | 74aea6fb25223a128784168f28e41b2c2d6f3f96 | [
"Apache-2.0"
] | null | null | null | transformers/src/transformers/activations.py | scir-zywang/self-supervised-active-learning-disfluency | 74aea6fb25223a128784168f28e41b2c2d6f3f96 | [
"Apache-2.0"
] | null | null | null | import math
import torch
import torch.nn.functional as F
def swish(x):
return x * torch.sigmoid(x)
def _gelu_python(x):
""" Original Implementation of the gelu activation function in Google Bert repo when initially created.
For information: OpenAI GPT's gelu is slightly different (and g... | 28.895833 | 116 | 0.62509 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.