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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56db34caccc48ebbb033cd187f5931168b30f6c4 | 927 | py | Python | tests/test_record.py | slacAWallace/pytmc | 5e72f683c850e9442f6691d0d6b4bbd681ab42c2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/test_record.py | slacAWallace/pytmc | 5e72f683c850e9442f6691d0d6b4bbd681ab42c2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/test_record.py | slacAWallace/pytmc | 5e72f683c850e9442f6691d0d6b4bbd681ab42c2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from pytmc.record import EPICSRecord
from pytmc.linter import lint_db
| 29.903226 | 55 | 0.552319 |
56dd60f209869d7af1b845822dbd7aa5a4dd5e06 | 1,038 | gyp | Python | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | 6 | 2015-01-07T06:34:57.000Z | 2021-09-02T15:18:14.000Z | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | null | null | null | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | null | null | null | {
"targets": [{
"target_name": "mine.uv",
"type": "executable",
"dependencies": [
"mine.uv-lib",
],
"sources": [
"src/main.c",
],
}, {
"target_name": "mine.uv-lib",
"type": "<(library)",
"include_dirs": [ "src" ],
"dependencies": [
"deps/uv/uv.gyp:libuv",
... | 21.183673 | 41 | 0.513487 |
56dee3fdf6681486fe21535c8dff24b6c17f3569 | 3,070 | py | Python | mlflow/google/aiplatform/cli.py | htappen/mlflow | 11c39b2477201bdcbb0fb61dd59cad70b78bb14b | [
"Apache-2.0"
] | 2 | 2021-07-19T20:59:29.000Z | 2021-08-09T17:38:50.000Z | mlflow/google/aiplatform/cli.py | htappen/mlflow | 11c39b2477201bdcbb0fb61dd59cad70b78bb14b | [
"Apache-2.0"
] | null | null | null | mlflow/google/aiplatform/cli.py | htappen/mlflow | 11c39b2477201bdcbb0fb61dd59cad70b78bb14b | [
"Apache-2.0"
] | null | null | null | """
CLI for azureml module.
"""
import json
import click
from mlflow.google.aiplatform import register_model as do_register_model
from mlflow.utils import cli_args
from mlflow.utils.annotations import experimental
| 27.909091 | 112 | 0.680782 |
56df3e6c377a3b7cddeff188f85e495e6e7a3047 | 52,525 | py | Python | OpenGLCffi/FFI/_gles2ffi.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/FFI/_gles2ffi.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/FFI/_gles2ffi.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | # auto-generated file
import _cffi_backend
ffi = _cffi_backend.FFI('FFI._gles2ffi',
_version = 0x2601,
_types = b'\x00\x00\x31\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x02\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x02\x0D\x00\x00\x08\x01\x00\x06\x1A\x03\x00\x00\x00\x0F\x00\... | 4,775 | 25,355 | 0.780086 |
56e076cdb4c2f4ca2c73d1f9e7653861b9dd741d | 1,416 | py | Python | transformer-xl/utils/midi_utils.py | froggie901/aws-deepcomposer-samples | 142b98b130efbb4ed91f22b54919d71877146c73 | [
"MIT",
"MIT-0"
] | 1 | 2021-06-07T13:28:17.000Z | 2021-06-07T13:28:17.000Z | notebooks/AWS DeepComposer/transformer-xl/utils/midi_utils.py | jesussantana/AWS-Machine-Learning-Foundations | 526eddb486fe8398cafcc30184c4ecce49df5816 | [
"MIT"
] | null | null | null | notebooks/AWS DeepComposer/transformer-xl/utils/midi_utils.py | jesussantana/AWS-Machine-Learning-Foundations | 526eddb486fe8398cafcc30184c4ecce49df5816 | [
"MIT"
] | 2 | 2021-07-27T13:01:51.000Z | 2022-01-07T21:36:49.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from music21 import midi
import pypianoroll
from pypianoroll import Multitrack
from texttable import Texttable
import os
from pprint import pprint
def play_midi(input_midi):
'''Takes path ... | 28.32 | 74 | 0.657486 |
56e22c396b416c2b68bd37797dfa6dab640d8970 | 1,460 | py | Python | data_util/config.py | potsawee/pointer_sum1 | a83ae6aa042443d5b5a6161a5e9655fef705084a | [
"Apache-2.0"
] | null | null | null | data_util/config.py | potsawee/pointer_sum1 | a83ae6aa042443d5b5a6161a5e9655fef705084a | [
"Apache-2.0"
] | null | null | null | data_util/config.py | potsawee/pointer_sum1 | a83ae6aa042443d5b5a6161a5e9655fef705084a | [
"Apache-2.0"
] | 1 | 2020-12-23T04:40:51.000Z | 2020-12-23T04:40:51.000Z | import os
root_dir = os.path.expanduser("~")
#train_data_path = os.path.join(root_dir, "ptr_nw/cnn-dailymail-master/finished_files/train.bin")
# train_data_path = os.path.join(root_dir, "/home/alta/summary/pm574/data/cnn_dm/finished_files/chunked/train_*")
# eval_data_path = os.path.join(root_dir, "/home/alta/summary... | 27.037037 | 113 | 0.772603 |
56e2f74337cda3134b8695e49c71091eaede7121 | 3,420 | py | Python | spar_python/report_generation/ta1/ta1_section_performance_percentiles.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | spar_python/report_generation/ta1/ta1_section_performance_percentiles.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | spar_python/report_generation/ta1/ta1_section_performance_percentiles.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: SY
# Description: Section class
#
#
# Modifications:
# Date Name Modification
# ---- ---- ... | 48.857143 | 80 | 0.62076 |
56e59eeffb52c76028117b91c4e0b0a6f2d53b94 | 617 | py | Python | data_structures/binary_search_tree/test_breadth_first_traversal.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | 1 | 2021-01-28T07:32:17.000Z | 2021-01-28T07:32:17.000Z | data_structures/binary_search_tree/test_breadth_first_traversal.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | null | null | null | data_structures/binary_search_tree/test_breadth_first_traversal.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | 1 | 2020-04-10T08:01:50.000Z | 2020-04-10T08:01:50.000Z | from .breadth_first_traversal import breadth_first_traversal
from .bst import BST
def test_breadth_first_traversal():
"""Test breadth-first traversal."""
tree = BST([2, 1, 3])
assert breadth_first_traversal(tree) == [2, 1, 3]
def test_breadth_first_traversal_balanced(balanced_bst):
"""Test breadth-f... | 30.85 | 77 | 0.730956 |
56e64fafe86246f5c446dcfed708234d079e4b6d | 10,734 | py | Python | slm_service.py | BinaryCobrasTeam/http.server_service | 1d5d52bddbb1df81a2a300d0f57d97dfc216df1f | [
"MIT"
] | null | null | null | slm_service.py | BinaryCobrasTeam/http.server_service | 1d5d52bddbb1df81a2a300d0f57d97dfc216df1f | [
"MIT"
] | null | null | null | slm_service.py | BinaryCobrasTeam/http.server_service | 1d5d52bddbb1df81a2a300d0f57d97dfc216df1f | [
"MIT"
] | null | null | null | #-*- encoding: utf-8 -*-
"""
About : Code to run as a linux daemon service, interface with it via REST POST
"""
__author__ = "Eduard Florea"
__email__ = "viper6277@gmail.com"
__company__ = ""
__copyright__ = "Copyright (C) 2020 {a}".format(a=__author__)
__credits__ = ""
__license__ = "MIT"
__version__ = 0.03
__lastda... | 23.083871 | 120 | 0.490497 |
56e908fc2dbcd320e835739f93b05700c0192f60 | 1,059 | py | Python | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | import os
from hashlib import sha224
| 26.475 | 90 | 0.576959 |
56e956833ad452917987f697deb1ee35e19b80ce | 2,287 | py | Python | tests/structure/test_causal.py | jwllee/podspy | a3ab176a83004069a27405acfc42838c135c555d | [
"MIT"
] | 1 | 2019-02-06T09:26:17.000Z | 2019-02-06T09:26:17.000Z | tests/structure/test_causal.py | wailamjonathanlee/podspy | a3ab176a83004069a27405acfc42838c135c555d | [
"MIT"
] | 12 | 2019-01-02T14:31:17.000Z | 2019-01-22T18:24:03.000Z | tests/structure/test_causal.py | wailamjonathanlee/podspy | a3ab176a83004069a27405acfc42838c135c555d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""This is the unit test module for the causal matrix module.
"""
import pandas as pd
import numpy as np
from podspy.structure import CausalMatrix
| 26.593023 | 78 | 0.510713 |
56eaed5e4c5c8615558722a95572e757d0ccdc50 | 2,479 | py | Python | examples/algorithms/gauss/gauss_algo.py | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | examples/algorithms/gauss/gauss_algo.py | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | examples/algorithms/gauss/gauss_algo.py | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | # Copyright (c) 2017 Chris Taylor
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Code samples taken from...
#
# http://www.math.umbc.edu/~campbell/Computers/Python/linalg.html#LinAlg-SolveSys
import phylanx ... | 25.295918 | 81 | 0.519161 |
56eb43911a555b4c47f0e76fd588f8f5e30f1599 | 3,648 | py | Python | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 151 | 2019-11-05T10:10:29.000Z | 2022-02-18T11:46:27.000Z | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 98 | 2019-11-09T17:41:30.000Z | 2021-12-17T23:05:01.000Z | src/micropython/microbit/__model/compass.py | julianrendell/vscode-python-devicesimulator | 8014a940c9a0551793bfb5694bff9a52df6c0155 | [
"MIT"
] | 42 | 2019-11-10T02:26:27.000Z | 2022-03-22T01:43:01.000Z | from common import utils
from common.telemetry import telemetry_py
from common.telemetry_events import TelemetryEvent
| 40.988764 | 259 | 0.705044 |
56ee0f2b7c20549c27468c938496b4dd2926bdef | 1,803 | py | Python | gemmforge/vm/lexic/cuda_lexic.py | ravil-mobile/gemmforge | 6381584c2d1ce77eaa938de02bc4f130f19cb2e4 | [
"MIT"
] | null | null | null | gemmforge/vm/lexic/cuda_lexic.py | ravil-mobile/gemmforge | 6381584c2d1ce77eaa938de02bc4f130f19cb2e4 | [
"MIT"
] | 2 | 2021-02-01T16:31:22.000Z | 2021-05-05T13:44:43.000Z | gemmforge/vm/lexic/cuda_lexic.py | ravil-mobile/gemmforge | 6381584c2d1ce77eaa938de02bc4f130f19cb2e4 | [
"MIT"
] | null | null | null | from .lexic import Lexic
| 33.388889 | 94 | 0.719357 |
56ee31c428bf31e49c93491d14c2649d2b5d30ab | 4,817 | py | Python | nasergame/main.py | nfearnley/nasergame | ada3a6937b955e31d0da8bf5205b861f2c58b1a4 | [
"MIT"
] | null | null | null | nasergame/main.py | nfearnley/nasergame | ada3a6937b955e31d0da8bf5205b861f2c58b1a4 | [
"MIT"
] | null | null | null | nasergame/main.py | nfearnley/nasergame | ada3a6937b955e31d0da8bf5205b861f2c58b1a4 | [
"MIT"
] | null | null | null | import math
import pygame
import pygame.gfxdraw
from pygame.locals import K_q, K_w, K_e, K_a, K_s, K_d, K_f, K_LSHIFT, K_MINUS, K_EQUALS, K_LCTRL, K_SPACE
from digicolor import colors
from nasergame import __version__
from nasergame import scaleddisplay
from nasergame.lib import models
from nasergame.components impor... | 29.193939 | 106 | 0.542246 |
56ee3be0b0c7e78b9f55c418420f0b8ca2d9d317 | 1,430 | py | Python | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | null | null | null | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | 6 | 2020-06-05T20:06:51.000Z | 2022-03-11T23:42:56.000Z | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | 1 | 2019-06-24T19:54:12.000Z | 2019-06-24T19:54:12.000Z | # Generated by Django 2.1.2 on 2018-11-08 12:48
from django.db import migrations, models
import django.db.models.deletion
| 36.666667 | 114 | 0.576923 |
56ef5b761db8737bcaf9e921790f38bfdd5880da | 258 | py | Python | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | null | null | null | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | null | null | null | posts/tests.py | Code-Institute-Submissions/Dermomurphy-MS4-DJ-ecomSite_MayResub | b1925d1b75e777be31b658698025f6aa963d97b0 | [
"MIT"
] | 1 | 2021-02-28T12:00:41.000Z | 2021-02-28T12:00:41.000Z | from django.test import TestCase
from posts.models import Posts
from datetime import datetime
# Create your tests here.
| 28.666667 | 85 | 0.763566 |
56efefe7e643fefd2c2d418b9f201863377c9020 | 7,155 | py | Python | genoplot/individual.py | ddnewell/genoplot | 60517485ec842a71b277ba300e17c1c55897b811 | [
"MIT"
] | null | null | null | genoplot/individual.py | ddnewell/genoplot | 60517485ec842a71b277ba300e17c1c55897b811 | [
"MIT"
] | null | null | null | genoplot/individual.py | ddnewell/genoplot | 60517485ec842a71b277ba300e17c1c55897b811 | [
"MIT"
] | null | null | null | # Copyright (c) 2016 by Welded Anvil Technologies (David D. Newell). All Rights Reserved.
# This software is the confidential and proprietary information of
# Welded Anvil Technologies (David D. Newell) ("Confidential Information").
# You shall not disclose such Confidential Information and shall use it
# only in accor... | 36.319797 | 212 | 0.57079 |
56f0a95188d6dbf54e3bbd857e4865354da6f522 | 9,604 | py | Python | trojai_rl/modelgen/config.py | trojai/trojai_rl | 692f281b82c759353376a40c7a820cca3e5e7f84 | [
"Apache-2.0"
] | 3 | 2020-07-09T00:18:52.000Z | 2021-07-09T06:53:06.000Z | trojai_rl/modelgen/config.py | trojai/trojai_rl | 692f281b82c759353376a40c7a820cca3e5e7f84 | [
"Apache-2.0"
] | 1 | 2021-11-09T23:10:50.000Z | 2021-11-09T23:10:50.000Z | trojai_rl/modelgen/config.py | trojai/trojai_rl | 692f281b82c759353376a40c7a820cca3e5e7f84 | [
"Apache-2.0"
] | 1 | 2021-03-10T07:59:15.000Z | 2021-03-10T07:59:15.000Z | import logging
import os
import re
import uuid
from typing import Any
import torch.nn as nn
from .optimizer_interface import RLOptimizerInterface
from ..datagen.environment_factory import EnvironmentFactory
from .utils import is_jsonable
logger = logging.getLogger(__name__)
SUPPORTED_TRAINING_ALGOS = ['ppo']
| 45.952153 | 120 | 0.635881 |
56f371e5353c0afeca86a59339a84ebab13cdb12 | 3,119 | py | Python | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | null | null | null | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | 3 | 2021-12-19T03:58:42.000Z | 2022-02-11T07:40:46.000Z | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | null | null | null | # Test of ability to connect to the Neo4j database from the credentials
# in config file(s) variables NEO4J_HOST, NEO4J_USER, NEO4J_PASSWORD
from configparser import ConfigParser
from BrainAnnex.modules.neo_access.neo_access import NeoAccess
print("About to test the database connection, using the credentials STORED i... | 38.506173 | 162 | 0.712408 |
56f4e87901fdbfcd99ffadd07ef472398a26666d | 28,995 | py | Python | pysnmp-with-texts/CISCO-UNIFIED-COMPUTING-SYSFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-UNIFIED-COMPUTING-SYSFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-UNIFIED-COMPUTING-SYSFILE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-UNIFIED-COMPUTING-SYSFILE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-UNIFIED-COMPUTING-SYSFILE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:17:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Usi... | 134.860465 | 3,906 | 0.820038 |
56f6ef2e4a29b2c4d6399cf05b6d36a9b013123e | 3,548 | py | Python | hopper_speech/src/battery_status_monitor.py | CreedyNZ/Hopper_ROS | 1e6354109f034a7d1d41a5b39ddcb632cfee64b2 | [
"MIT"
] | 36 | 2018-12-19T18:03:08.000Z | 2022-02-21T16:20:12.000Z | hopper_speech/src/battery_status_monitor.py | CreedyNZ/Hopper_ROS | 1e6354109f034a7d1d41a5b39ddcb632cfee64b2 | [
"MIT"
] | null | null | null | hopper_speech/src/battery_status_monitor.py | CreedyNZ/Hopper_ROS | 1e6354109f034a7d1d41a5b39ddcb632cfee64b2 | [
"MIT"
] | 7 | 2019-08-11T20:31:27.000Z | 2021-09-19T04:34:18.000Z | #!/usr/bin/env python
from __future__ import division
import rospy
from std_msgs.msg import String
from hopper_msgs.msg import ServoTelemetry, HexapodTelemetry
from sensor_msgs.msg import BatteryState
SERVO_COUNT = 18
MAX_VOLTAGE = 12.5
MIN_VOLTAGE = 10.5
if __name__ == '__main__':
BatteryStatusMonitor()
| 45.487179 | 120 | 0.674746 |
56f7a55e1ecb0ebcbf31f7444aa06591df34f007 | 2,125 | py | Python | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 4 | 2021-05-19T02:28:01.000Z | 2021-12-14T04:02:22.000Z | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 6 | 2019-12-18T10:09:29.000Z | 2021-06-10T22:24:50.000Z | app_control/migrations/0002_initial_app_control.py | bkstudy/bk_kb_1 | e053eec6be989456afa17cb635831f7fbc18c624 | [
"Apache-2.0"
] | 1 | 2018-10-11T07:49:19.000Z | 2018-10-11T07:49:19.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making (BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain ... | 46.195652 | 121 | 0.680471 |
56f802ddb06776d60b8cfd73fb56d6e4e6bc9fde | 115 | py | Python | run.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | run.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | run.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | from src import app
try:
app.bot.run(app.env['token'], bot=True, reconnect=True)
except Exception as e:
print(e) | 19.166667 | 56 | 0.721739 |
56f9614848ce6c51960d62f29503d300addae9c7 | 3,226 | py | Python | integration_tests/test_mv_index.py | GispoCoding/datacube-ows | 4ffe14ccf9f382bff8f4a33fc54729d3e18b670e | [
"Apache-2.0"
] | null | null | null | integration_tests/test_mv_index.py | GispoCoding/datacube-ows | 4ffe14ccf9f382bff8f4a33fc54729d3e18b670e | [
"Apache-2.0"
] | null | null | null | integration_tests/test_mv_index.py | GispoCoding/datacube-ows | 4ffe14ccf9f382bff8f4a33fc54729d3e18b670e | [
"Apache-2.0"
] | null | null | null | import pytest
from datacube.utils.geometry import box
from datacube_ows.cube_pool import cube
from datacube_ows.ogc_utils import local_solar_date_range
from datacube_ows.ows_configuration import get_config
from datacube_ows.mv_index import MVSelectOpts, mv_search_datasets
| 30.72381 | 79 | 0.632672 |
56f9e75bbd14836c91ba28259e22276dddfa547f | 3,814 | py | Python | statics/scripts/ansible_api.py | sivarki/hjarnuc | 4acc9437af0f0fdc44d68dd0d6923e1039a4911b | [
"Apache-2.0"
] | null | null | null | statics/scripts/ansible_api.py | sivarki/hjarnuc | 4acc9437af0f0fdc44d68dd0d6923e1039a4911b | [
"Apache-2.0"
] | null | null | null | statics/scripts/ansible_api.py | sivarki/hjarnuc | 4acc9437af0f0fdc44d68dd0d6923e1039a4911b | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
# @Time : 2019-01-14 15:22
# @Author :
# @FileName: ansible_sync_hosts.py
# @function: ansible for python 3.x
import json
from collections import namedtuple
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import Inve... | 31.00813 | 91 | 0.646565 |
56fa30e3bcf980dafba7d933a59be52ad0d3d846 | 3,629 | py | Python | kakaoautomsgsender/main.py | leeeju/R.O.S- | 66910c0ec7265bbfe147aad9f1cc87cd2515eabf | [
"Python-2.0",
"OLDAP-2.7"
] | 2 | 2021-07-25T23:12:45.000Z | 2021-07-25T23:12:46.000Z | kakaoautomsgsender/main.py | leeeju/R.O.S- | 66910c0ec7265bbfe147aad9f1cc87cd2515eabf | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | kakaoautomsgsender/main.py | leeeju/R.O.S- | 66910c0ec7265bbfe147aad9f1cc87cd2515eabf | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #-*- coding: utf-8 -*-
import sys
import pyautogui
import time
import pyperclip
import os
import random
# config
img_path = os.path.dirname(os.path.realpath(__file__)) + '/img/'
conf = 0.90
pyautogui.PAUSE = 0.5
if __name__ == "__main__":
(filter_keyword, init_number, repeat_number, my_msg) = initializ... | 26.683824 | 75 | 0.610085 |
56fb092688f5317d00254a637a7273416245b4d9 | 1,816 | py | Python | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | 1 | 2017-02-15T18:30:44.000Z | 2017-02-15T18:30:44.000Z | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | 3 | 2015-04-09T14:31:45.000Z | 2016-08-26T13:01:47.000Z | tests/test_location.py | enthought/supplement | 76090598cb55c80f9f4d4caad87344a8ac9d8e11 | [
"MIT"
] | null | null | null | from .helpers import pytest_funcarg__project | 22.146341 | 53 | 0.570485 |
56fc3e621ad547315451aaef15d494aaa7729aca | 543 | py | Python | 15.py | ednl/aoc2017 | 429cec4e8e89bed375bc40989d7c8bab609cc4b1 | [
"MIT"
] | null | null | null | 15.py | ednl/aoc2017 | 429cec4e8e89bed375bc40989d7c8bab609cc4b1 | [
"MIT"
] | null | null | null | 15.py | ednl/aoc2017 | 429cec4e8e89bed375bc40989d7c8bab609cc4b1 | [
"MIT"
] | null | null | null |
print(duel1(783, 325, 40_000_000))
print(duel2(783, 325, 5_000_000))
| 23.608696 | 38 | 0.488029 |
56fc6c4a86f3fdad8466b50419d8abe83ba31c2a | 244 | py | Python | todos/models.py | DastanArysbay/TodoAppProject | 2c23902dddaa2343a965a946e05dfa6d7f9174b3 | [
"MIT"
] | null | null | null | todos/models.py | DastanArysbay/TodoAppProject | 2c23902dddaa2343a965a946e05dfa6d7f9174b3 | [
"MIT"
] | null | null | null | todos/models.py | DastanArysbay/TodoAppProject | 2c23902dddaa2343a965a946e05dfa6d7f9174b3 | [
"MIT"
] | 1 | 2022-01-20T20:49:15.000Z | 2022-01-20T20:49:15.000Z | from django.db import models
from django.contrib.auth.models import User
# Create your models here. | 40.666667 | 85 | 0.762295 |
56ff2ba473246165aa39a267af57e3ffba8e8382 | 766 | py | Python | tests/docs/test_swportal.py | Saanidhyavats/dffml | 5664a75aa7fcd5921b1a3e2da9203d94ed960286 | [
"MIT"
] | 3 | 2021-03-08T18:41:21.000Z | 2021-06-05T20:15:14.000Z | tests/docs/test_swportal.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1 | 2021-03-20T07:05:55.000Z | 2021-03-20T07:05:55.000Z | tests/docs/test_swportal.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1 | 2021-04-19T23:58:26.000Z | 2021-04-19T23:58:26.000Z | import pathlib
import unittest
import platform
from dffml import AsyncTestCase
from dffml.util.testing.consoletest.cli import main as consoletest
| 25.533333 | 66 | 0.505222 |
7100d1bf6005dd52b07fe32271eb797c1309b6c4 | 1,038 | py | Python | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.db import models
from alipay import conf
from alipay.models import AliPayBaseModel
from alipay.create_direct_pay_by_user.dpn.signals import alipay_dpn_flagged, alipay_dpn_successful
| 32.4375 | 98 | 0.693642 |
71014c38dd434377dbc86a1671b95f35defbc373 | 2,555 | py | Python | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | 1 | 2019-01-19T13:10:02.000Z | 2019-01-19T13:10:02.000Z | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | from flask import jsonify, request
from ...v2 import version_2 as v2
from ..schemas.user_schema import UserSchema
from ..models.user_model import User
db = User()
| 30.058824 | 127 | 0.626223 |
71017d43b325d6fbf04117d5a741ef79537697dc | 2,773 | py | Python | digit_clf_model.py | petejadhav/cam-sudoku | d09b579af6ef04d0ffdd1ed05280833ddd7a1309 | [
"MIT"
] | null | null | null | digit_clf_model.py | petejadhav/cam-sudoku | d09b579af6ef04d0ffdd1ed05280833ddd7a1309 | [
"MIT"
] | null | null | null | digit_clf_model.py | petejadhav/cam-sudoku | d09b579af6ef04d0ffdd1ed05280833ddd7a1309 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import time
mnist = pd.read_csv("../input/train.csv")
mnist.head()
y_train = mnist.label.values
x_train = mnist.drop('label',axis=1)
x_train = (x_train / 255.0).values
x_train = np.reshape(x_train,(42000,1,28,28))
x_train.shape
from keras.models import Sequential
from keras.l... | 27.455446 | 70 | 0.642265 |
7101fea5f4ad97231d43c2c1e11cc944dc733a8d | 654 | py | Python | execute_kp_extract_for_all_files_in_dir.py | kpgx/first-order-model | 77885525cf6db9938329b1494c74b593e0b0fe1a | [
"MIT"
] | null | null | null | execute_kp_extract_for_all_files_in_dir.py | kpgx/first-order-model | 77885525cf6db9938329b1494c74b593e0b0fe1a | [
"MIT"
] | null | null | null | execute_kp_extract_for_all_files_in_dir.py | kpgx/first-order-model | 77885525cf6db9938329b1494c74b593e0b0fe1a | [
"MIT"
] | null | null | null | import subprocess
import time
from os import listdir
from os.path import isfile, join
COMMAND = ["python3", "onnx_sender.py",]
DIR = "working"
file_list = get_file_list_from_dir(DIR)
for file_name in file_list:
driving_video = file_name
out_kp_file = file_name+".kp"
out_img_file = file_name+".jpeg"
... | 26.16 | 128 | 0.733945 |
7104c6048405b9052f215a66f26b258c85c0d654 | 914 | py | Python | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | src/CompartmentalSystems/bins/TsTpMassFieldsPerTimeStep.py | goujou/CompartmentalSystems | 4724555c33f11395ddc32738e8dfed7349ee155f | [
"MIT"
] | null | null | null | # vim: set ff=unix expandtab ts=4 sw=4:
import numpy as np
from .TsMassFieldsPerTimeStep import TsMassFieldsPerTimeStep
from .FieldsPerTimeStep import FieldsPerTimeStep
| 35.153846 | 80 | 0.741794 |
7106ee43c770ad7f862e85d41519a32feb78fbc2 | 4,369 | py | Python | tests/trainer/evaluator_test.py | elifesciences/sciencebeam-gym | 3ad654e08775e0c0cdd256753e14093bb5a42d44 | [
"MIT"
] | 25 | 2017-07-25T12:44:55.000Z | 2020-09-30T22:16:50.000Z | tests/trainer/evaluator_test.py | elifesciences/sciencebeam-gym | 3ad654e08775e0c0cdd256753e14093bb5a42d44 | [
"MIT"
] | 192 | 2017-11-29T08:57:03.000Z | 2022-03-29T18:44:41.000Z | tests/trainer/evaluator_test.py | elifesciences/sciencebeam-gym | 3ad654e08775e0c0cdd256753e14093bb5a42d44 | [
"MIT"
] | 6 | 2019-02-01T18:49:33.000Z | 2020-07-26T08:18:46.000Z | import logging
import pytest
import tensorflow as tf
from sciencebeam_utils.utils.collection import (
to_namedtuple
)
from sciencebeam_gym.utils.tfrecord import (
dict_to_example
)
from sciencebeam_gym.trainer.data.examples import (
parse_example,
MapKeysTracker
)
from sciencebeam_gym.trainer.evalu... | 30.552448 | 97 | 0.658732 |
7107556d7766a8451d1bece1be5e5452a8ce518c | 701 | py | Python | mqtt_test/Subscribe.py | janice880624/webduino_blockly | 9d11f67aab4f5435c998d749c06f55cd1e1aec76 | [
"MIT"
] | null | null | null | mqtt_test/Subscribe.py | janice880624/webduino_blockly | 9d11f67aab4f5435c998d749c06f55cd1e1aec76 | [
"MIT"
] | null | null | null | mqtt_test/Subscribe.py | janice880624/webduino_blockly | 9d11f67aab4f5435c998d749c06f55cd1e1aec76 | [
"MIT"
] | null | null | null | import paho.mqtt.client as mqtt
#
#
#
#
client = mqtt.Client()
#
client.on_connect = on_connect
#
client.on_message = on_message
#
client.username_pw_set("try","xxxx")
# (IP, Port, )
client.connect("54.xxx.xxx.xxx", 1883, 60)
#
# loop
client.loop_forever() | 20.028571 | 53 | 0.724679 |
7108d70c39f75bd2009e69443557446ae0e2659a | 3,133 | py | Python | settings.py | WZBSocialScienceCenter/otreeutils | 1967826fe422943f846ce2a7e55186d738696878 | [
"Apache-2.0"
] | 16 | 2016-12-13T12:37:06.000Z | 2021-07-18T02:47:09.000Z | settings.py | WZBSocialScienceCenter/otreeutils | 1967826fe422943f846ce2a7e55186d738696878 | [
"Apache-2.0"
] | 2 | 2016-11-29T17:28:17.000Z | 2016-11-30T14:43:51.000Z | settings.py | WZBSocialScienceCenter/otreeutils | 1967826fe422943f846ce2a7e55186d738696878 | [
"Apache-2.0"
] | 9 | 2017-02-03T16:46:57.000Z | 2021-05-19T07:42:53.000Z | import importlib.util
from os import environ
# SET THIS IN YOUR OWN EXPERIMENTS
SECRET_KEY = '...'
# List of example experiments
SESSION_CONFIGS = [
{
'name': 'otreeutils_example1',
'display_name': 'otreeutils example 1 (Understanding questions, timeout warnings, custom page URLs)',
... | 33.688172 | 118 | 0.680817 |
7108effd9b9b381b5c4d66c7863ecea3a015fab6 | 305 | py | Python | settings/__init__.py | xuehuiping/DCA | 4d71593c78e59f035305e1983d92146c5156789d | [
"MIT"
] | 5 | 2019-10-07T09:25:25.000Z | 2019-11-05T08:40:44.000Z | settings/__init__.py | xuehuiping/DCA | 4d71593c78e59f035305e1983d92146c5156789d | [
"MIT"
] | 5 | 2019-10-31T02:51:55.000Z | 2019-12-31T07:09:49.000Z | settings/__init__.py | QtNN/DCA | b48be18dab45006abc80b94445622893d0c142ba | [
"MIT"
] | 2 | 2020-03-23T18:11:27.000Z | 2020-12-14T10:48:00.000Z | """Helpers to build the blocks of the training
pipeline for users defined parameters.
"""
from .setup_xp import load_params, set_device, get_embedders
from .model import build_multi_agt_summarizer
__all__ = [
"build_multi_agt_summarizer",
"load_params",
"set_device",
"get_embedders"
]
| 20.333333 | 60 | 0.75082 |
7108f5884575eb480313b1e686e0da4928d0f2be | 350 | py | Python | relogic/logickit/serving/__init__.py | Impavidity/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 24 | 2019-07-20T02:10:21.000Z | 2022-03-15T07:13:07.000Z | relogic/logickit/serving/__init__.py | One-paper-luck/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 3 | 2019-11-28T04:19:25.000Z | 2019-11-30T23:29:19.000Z | relogic/logickit/serving/__init__.py | One-paper-luck/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 5 | 2019-11-27T03:12:07.000Z | 2021-12-08T11:45:43.000Z | from flask import Flask, jsonify, request
app = Flask(__name__)
if __name__ == "__main__":
server = Server()
server.start() | 17.5 | 50 | 0.668571 |
710ac53d4377a2d92c73a6129685433b28017e6d | 18,511 | py | Python | neupy/layers/connections/graph.py | vishalbelsare/neupy | 684313cdaddcad326f2169384fb15ec3aa29d991 | [
"MIT"
] | null | null | null | neupy/layers/connections/graph.py | vishalbelsare/neupy | 684313cdaddcad326f2169384fb15ec3aa29d991 | [
"MIT"
] | null | null | null | neupy/layers/connections/graph.py | vishalbelsare/neupy | 684313cdaddcad326f2169384fb15ec3aa29d991 | [
"MIT"
] | null | null | null | import copy
import pprint
import inspect
from collections import OrderedDict
import six
from neupy.exceptions import LayerConnectionError
__all__ = ('LayerGraph',)
def filter_list(iterable, include_values):
"""
Create new list that contains only values
specified in the ``include_values`` attribute.
... | 28.217988 | 78 | 0.573065 |
710bd81cb69c22e601897f62956b9f354d641101 | 1,529 | py | Python | lsassy/dumpmethod/rdrleakdiag.py | kaisaryousuf/lsassy | f72eeb9eeeb22a37d6c94c6460fe7740e5e709ae | [
"MIT"
] | 4 | 2021-11-08T09:11:18.000Z | 2022-01-26T13:00:46.000Z | lsassy/dumpmethod/rdrleakdiag.py | kaisaryousuf/lsassy | f72eeb9eeeb22a37d6c94c6460fe7740e5e709ae | [
"MIT"
] | null | null | null | lsassy/dumpmethod/rdrleakdiag.py | kaisaryousuf/lsassy | f72eeb9eeeb22a37d6c94c6460fe7740e5e709ae | [
"MIT"
] | 1 | 2022-02-11T08:45:42.000Z | 2022-02-11T08:45:42.000Z | from lsassy.dumpmethod import IDumpMethod
| 63.708333 | 569 | 0.642904 |
710e031726c5dd0c3fe528b1ed8d57054fdbb186 | 6,731 | py | Python | kaolin/metrics/point.py | Bob-Yeah/kaolin | 7ad34f8158000499a30b8dfa14fb3ed86d2e57a6 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-10-31T01:08:17.000Z | 2021-11-08T09:43:17.000Z | kaolin/metrics/point.py | Bob-Yeah/kaolin | 7ad34f8158000499a30b8dfa14fb3ed86d2e57a6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | kaolin/metrics/point.py | Bob-Yeah/kaolin | 7ad34f8158000499a30b8dfa14fb3ed86d2e57a6 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-10T09:19:19.000Z | 2021-11-12T08:18:17.000Z | # Copyright (c) 2019, 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 31.018433 | 132 | 0.608973 |
710f3582967964ed47fa709ecb0944463bdfd688 | 11,048 | py | Python | mnist_cwgangp.py | hari2095/GAN | 2652e374b85ea807830a2e8d08f5e382e2244b96 | [
"MIT"
] | null | null | null | mnist_cwgangp.py | hari2095/GAN | 2652e374b85ea807830a2e8d08f5e382e2244b96 | [
"MIT"
] | null | null | null | mnist_cwgangp.py | hari2095/GAN | 2652e374b85ea807830a2e8d08f5e382e2244b96 | [
"MIT"
] | null | null | null | import argparse
import sys
import torch
from inferno.trainers.basic import Trainer
from inferno.trainers.callbacks.logging.tensorboard import TensorboardLogger
from torch import nn
from torch.autograd import Variable
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.dataset import Dataset
from t... | 39.884477 | 120 | 0.664102 |
710f4b6b64ae739fa67f3fad8473d9aa8088ce4a | 683 | py | Python | lastweekend_photos/apps/photo_gallery/rest_api/filters.py | OmidFarvid/lastweekend-photos | f7f433843a14ca846bd7a9a8707ca1bf1c04d7da | [
"MIT"
] | null | null | null | lastweekend_photos/apps/photo_gallery/rest_api/filters.py | OmidFarvid/lastweekend-photos | f7f433843a14ca846bd7a9a8707ca1bf1c04d7da | [
"MIT"
] | null | null | null | lastweekend_photos/apps/photo_gallery/rest_api/filters.py | OmidFarvid/lastweekend-photos | f7f433843a14ca846bd7a9a8707ca1bf1c04d7da | [
"MIT"
] | null | null | null | import django_filters
from django_filters import rest_framework as filters
# from apps.photo_gallery.models import Event
#
#
# class EventFilter(filters.FilterSet):
# start_date_min = django_filters.DateFilter(field_name='start_date', lookup_expr='gte', required=False)
# start_date_max = django_filters.DateFil... | 42.6875 | 108 | 0.74817 |
7114c66935c88efa75790e08dde08f63c3013e83 | 28,361 | py | Python | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 2 | 2021-03-01T06:37:27.000Z | 2021-04-07T09:40:55.000Z | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 5 | 2020-09-26T01:16:58.000Z | 2022-02-10T01:49:30.000Z | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
# Copyright (c) 2018, Tencent. All rights reserved
# This file contain DataProcessor class which can
# 1. Generate dict from train text data:
# Text format: label\t[(token )+]\t[(char )+]\t[(custom_feature )+].
# Label could be flattened or hierarchical which is separat... | 44.946117 | 95 | 0.58242 |
7114de954eb365d7240892283c9e2b8d525ef03d | 1,019 | py | Python | utils/processing/dataset.py | SecureThemAll/CquenceR | b2d4d578a8a055df8370798769cdc6e6e1039721 | [
"MIT"
] | null | null | null | utils/processing/dataset.py | SecureThemAll/CquenceR | b2d4d578a8a055df8370798769cdc6e6e1039721 | [
"MIT"
] | null | null | null | utils/processing/dataset.py | SecureThemAll/CquenceR | b2d4d578a8a055df8370798769cdc6e6e1039721 | [
"MIT"
] | null | null | null | from sklearn.model_selection import train_test_split
from pandas import DataFrame
SPLIT_RATIOS = (0.85, 0.1, 0.05)
| 33.966667 | 91 | 0.691855 |
71156411fe36becbc71f0c141f19cc2f60370ca9 | 538 | py | Python | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 3 | 2016-01-29T14:39:49.000Z | 2018-12-29T22:42:00.000Z | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 2 | 2016-03-23T14:29:41.000Z | 2017-02-20T17:11:30.000Z | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | null | null | null | {
'name': 'OpenERP Web Diagram',
'category': 'Hidden',
'description': """
Openerp Web Diagram view.
=========================
""",
'version': '2.0',
'depends': ['web'],
'js': [
'static/lib/js/raphael.js',
'static/lib/js/jquery.mousewheel.js',
'static/src/js/vec2.js',
... | 20.692308 | 45 | 0.477695 |
71188757a4a3122d3041dcb62629fe9ef707fc95 | 75 | py | Python | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/166/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | contests = ['ABC', 'ARC']
S = input()
contests.remove(S)
print(contests[0]) | 18.75 | 25 | 0.653333 |
71194ec745a663de0dbcd5a9d549628cdd546302 | 2,578 | py | Python | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import smtplib
from email.mime.text import MIMEText
import time
import pymongo
#-------------------------------------------------
client = pymongo.MongoClient()
db = client.noval
collection = db.xiuzhen
#----------------------------------------------... | 36.309859 | 83 | 0.481769 |
711a5cd8239c681a5dc0a53833847add9bd9b2ce | 8,578 | py | Python | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 60 | 2016-04-18T23:42:10.000Z | 2022-03-23T02:26:03.000Z | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 317 | 2016-05-25T06:45:37.000Z | 2022-03-25T13:22:38.000Z | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 34 | 2016-03-18T02:39:12.000Z | 2022-01-07T12:54:14.000Z | # coding=utf-8
# Copyright (c) 2015 EMC 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 31.07971 | 79 | 0.600023 |
711ae096163ffe1b1d3745b9e958ae144810c035 | 535 | py | Python | stop_words.py | prateekguptaiiitk/Natural_Language_Processing | 0c01e8e2a1aac36c8fd6a027b9c639f1a22fad17 | [
"MIT"
] | null | null | null | stop_words.py | prateekguptaiiitk/Natural_Language_Processing | 0c01e8e2a1aac36c8fd6a027b9c639f1a22fad17 | [
"MIT"
] | null | null | null | stop_words.py | prateekguptaiiitk/Natural_Language_Processing | 0c01e8e2a1aac36c8fd6a027b9c639f1a22fad17 | [
"MIT"
] | null | null | null | from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
text = "This is an example sentence for showing stop words filteration."
stop_words = set(stopwords.words("english"))
# all the stop words of englist language defined in nltk
# print(stop_words)
words = word_tokenize(text)
filtered_sentence ... | 21.4 | 72 | 0.745794 |
711b77572e237349a6536ce5916b8d9b6a2f7e76 | 151 | py | Python | prac/20200526/wrap.py | yaroslavKonst/PythonPracticum | 2215b169252b6d429f1f38e5f2295d1435256785 | [
"Apache-2.0"
] | 2 | 2020-04-10T22:09:19.000Z | 2020-04-10T22:09:24.000Z | prac/20200526/wrap.py | yaroslavKonst/PythonPracticum | 2215b169252b6d429f1f38e5f2295d1435256785 | [
"Apache-2.0"
] | null | null | null | prac/20200526/wrap.py | yaroslavKonst/PythonPracticum | 2215b169252b6d429f1f38e5f2295d1435256785 | [
"Apache-2.0"
] | null | null | null | import sys
import subprocess
ex = sys.executable
print(subprocess.run([ex, sys.argv[1], *sys.argv[2:]], capture_output=True).stdout.decode("UTF-8"))
| 21.571429 | 99 | 0.728477 |
711bc5a70ab83ad507c97768d9fc033d0adfbe89 | 1,033 | py | Python | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask.ext.script import Manager
from flask.ext.bootstrap import Bootstrap
from flask.ext.moment import Moment
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Required
app = Flask(__name__)
app.config['SECRET_KEY'] ... | 23.477273 | 69 | 0.71636 |
711cb4c4101a4cf75337a29ed311280d0f1883ce | 14,198 | py | Python | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | 5 | 2019-04-02T05:00:03.000Z | 2021-04-21T11:03:50.000Z | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | null | null | null | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import hashlib
import urllib2
import urlparse
import zipfile
import logging
import re
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'lib'))
from tornado import template
from BeautifulSoup import BeautifulSoup
from scrapy.selector import Html... | 33.095571 | 161 | 0.548951 |
711cc2a2023d2b89e80fa1cd960c54c2be2e7173 | 340 | py | Python | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
# EXPECTED:
[
...,
LOAD_CONST(Code((1, 0))),
LOAD_CONST('f'),
MAKE_FUNCTION(0),
STORE_NAME('f'),
LOAD_CONST(None),
RETURN_VALUE(0),
CODE_START('f'),
~LOAD_CONST('int'),
]
| 18.888889 | 76 | 0.588235 |
711d3ef8c70dcc3c8cbdbd9c8985d76e0003db95 | 2,205 | py | Python | BilgisiyarBilgisi.py | AlperN21/Python-Bilgisiyar-Bilgisi | c02293c0134922019d879058054f7350f034c61d | [
"MIT"
] | 1 | 2020-10-18T10:17:49.000Z | 2020-10-18T10:17:49.000Z | BilgisiyarBilgisi.py | AlperN21/Python-Bilgisiyar-Bilgisi | c02293c0134922019d879058054f7350f034c61d | [
"MIT"
] | null | null | null | BilgisiyarBilgisi.py | AlperN21/Python-Bilgisiyar-Bilgisi | c02293c0134922019d879058054f7350f034c61d | [
"MIT"
] | null | null | null | #Buradaki baz ksmlar ak kaynak kodlardr.
import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from xgboost import XGBClassifier
import xgboost as xgb
from sklearn.metrics import accuracy_s... | 34.453125 | 74 | 0.714739 |
711e169130e686398528c2631ac52499a472cbef | 3,068 | py | Python | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | simple_dispatch/dispatch.py | ossdev07/SimpleDispatch | 051556b4f8a12bd85575eaed102ba6bfb672def1 | [
"MIT"
] | null | null | null | from typing import Callable
_handlers = None
def connect(event_name: str, func: Callable):
"""
Connects a given function to be subscribed to the given event.
:param event_name: The name of the event to subscribe to.
:param func: The function that will be invoked when the event is published.
"""
... | 29.786408 | 118 | 0.674055 |
71202e3a141442b569da6b6d00f74b92142a8ac2 | 522 | py | Python | python/helpers.py | DuckLov3r/sovrin-whs | 3f2c9e6749834e1abde26d3acc8ce9312564534a | [
"Apache-2.0"
] | 1 | 2018-10-22T19:43:16.000Z | 2018-10-22T19:43:16.000Z | python/helpers.py | DuckLov3r/sovrin-whs | 3f2c9e6749834e1abde26d3acc8ce9312564534a | [
"Apache-2.0"
] | 2 | 2020-07-17T03:35:07.000Z | 2021-05-08T23:22:31.000Z | python/helpers.py | DuckLov3r/sovrin-whs | 3f2c9e6749834e1abde26d3acc8ce9312564534a | [
"Apache-2.0"
] | 2 | 2019-05-30T06:56:20.000Z | 2019-11-05T16:39:59.000Z | import base64
| 23.727273 | 59 | 0.737548 |
7121f1f037c6646fc97580bcb231acfa36639d90 | 36,430 | py | Python | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | 1 | 2021-07-21T21:40:32.000Z | 2021-07-21T21:40:32.000Z | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | null | null | null | utils/synthetic_cell_nuclei_masks.py | stegmaierj/CellSynthesis | de2c90ed668b7f57b960896473df3d56636eca82 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
# 3D Image Data Synthesis.
# Copyright (C) 2021 D. Eschweiler, M. Rethwisch, M. Jarchow, S. Koppers, J. Stegmaier
#
# 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 Liceense at
... | 47.250324 | 303 | 0.592204 |
712342d6d02d6bf7d82cf2e8521843ea950c51c7 | 3,113 | py | Python | wb/main/scripts/get_system_resources.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/scripts/get_system_resources.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/scripts/get_system_resources.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Script to getting system resources: CPU, RAM, DISK
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/l... | 29.647619 | 88 | 0.646001 |
7124602becc2e6ec9b01d8eb8d0b8a172881c1d3 | 835 | py | Python | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | 1 | 2021-05-20T17:15:10.000Z | 2021-05-20T17:15:10.000Z | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | null | null | null | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | 2 | 2021-05-15T04:38:10.000Z | 2021-05-20T17:06:21.000Z | #This program computes compound interest
#Prompt the user to input the inital investment
C = int(input('Enter the initial amount of an investment(C): '))
#Prompt the user to input the yearly rate of interest
r = float(input('Enter the yearly rate of interest(r): '))
#Prompt the user to input the number of years unti... | 43.947368 | 89 | 0.735329 |
7125fcaf137719441aed3e92940d240502b56607 | 15,124 | py | Python | george/basic.py | kastnerkyle/george | 8c33a837e8922be142bf7adbe80726dc611c9b25 | [
"MIT"
] | 1 | 2019-05-24T02:30:22.000Z | 2019-05-24T02:30:22.000Z | george/basic.py | kastnerkyle/george | 8c33a837e8922be142bf7adbe80726dc611c9b25 | [
"MIT"
] | null | null | null | george/basic.py | kastnerkyle/george | 8c33a837e8922be142bf7adbe80726dc611c9b25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["GP"]
try:
from itertools import izip
except ImportError:
izip = zip
import numpy as np
import scipy.optimize as op
from scipy.linalg import cho_factor, cho_solve, LinAlgError
from .utils import multivariate_gaussian_samples... | 34.372727 | 79 | 0.579873 |
71296b5620b19be26f5802dc631e2d0e2919dde5 | 2,974 | py | Python | leetcode/lessons/array/370_range_addition/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | null | null | null | leetcode/lessons/array/370_range_addition/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | 2 | 2020-03-24T18:00:21.000Z | 2020-03-26T11:33:51.000Z | leetcode/lessons/array/370_range_addition/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__project__ = 'leetcode'
__file__ = '__init__.py.py'
__author__ = 'king'
__time__ = '2022/2/14 19:15'
_ooOoo_
o8888888o
88" . "88
(| -_- |... | 25.637931 | 78 | 0.408877 |
712a005b60e2008367620ebbf80cc68f7e359640 | 3,892 | py | Python | movies_analyzer/RecommendationDataset.py | mateuszrusin/filmweb-rekomendacje | 06bdff3825f4c9e7b80fb5778d1a40388d2313d9 | [
"MIT"
] | 3 | 2019-12-10T10:20:07.000Z | 2020-12-03T17:37:24.000Z | movies_analyzer/RecommendationDataset.py | mateuszrusin/filmweb-rekomendacje | 06bdff3825f4c9e7b80fb5778d1a40388d2313d9 | [
"MIT"
] | 2 | 2021-03-31T19:31:04.000Z | 2021-12-13T20:32:18.000Z | movies_analyzer/RecommendationDataset.py | mateuszrusin/filmweb-rekomendacje | 06bdff3825f4c9e7b80fb5778d1a40388d2313d9 | [
"MIT"
] | 4 | 2019-11-21T23:49:39.000Z | 2020-12-03T17:37:26.000Z | from surprise.model_selection import train_test_split
from surprise.model_selection import LeaveOneOut
from surprise import KNNBaseline
from surprise import Dataset, KNNBasic
from surprise import Reader
import heapq
from movies_analyzer.Movies import Movies, RATINGS, LINKS, MOVIES
from movies_recommender.utils import ... | 41.849462 | 107 | 0.692446 |
712d948cbf66b195d87d7cc70d5621dbf27685a1 | 10,592 | py | Python | tests/unit/test_copr_build.py | FalseG0d/packit-service | 03f840cdfbcc129582a2ec2a20f069c85fea0c56 | [
"MIT"
] | 1 | 2020-03-28T13:57:08.000Z | 2020-03-28T13:57:08.000Z | tests/unit/test_copr_build.py | FalseG0d/packit-service | 03f840cdfbcc129582a2ec2a20f069c85fea0c56 | [
"MIT"
] | null | null | null | tests/unit/test_copr_build.py | FalseG0d/packit-service | 03f840cdfbcc129582a2ec2a20f069c85fea0c56 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018-2019 Red Hat, Inc.
# 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, m... | 40.738462 | 86 | 0.692315 |
712dccf11a8623f93cc1a6d9e212a9aebc4a39f9 | 425 | py | Python | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 2 | 2021-07-23T15:45:49.000Z | 2021-07-27T17:34:15.000Z | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 46 | 2020-10-20T09:52:53.000Z | 2021-08-15T09:29:27.000Z | test/test_backbone_utils.py | Gaurav7888/vision | a227a2026ef57fce08c1a73bad61bbabc3a52bfd | [
"BSD-3-Clause"
] | 2 | 2021-06-29T14:30:51.000Z | 2021-06-29T14:32:21.000Z | import torch
from torchvision.models.detection.backbone_utils import resnet_fpn_backbone
import pytest
| 35.416667 | 77 | 0.731765 |
713058c10ea7f05b6326fed04e952a4365679fa5 | 4,842 | py | Python | paws/lib/python2.7/site-packages/requestbuilder-0.7.1-py2.7.egg/requestbuilder/mixins/formatting.py | cirobessa/receitas-aws | b4f496050f951c6ae0c5fa12e132c39315deb493 | [
"MIT"
] | null | null | null | paws/lib/python2.7/site-packages/requestbuilder-0.7.1-py2.7.egg/requestbuilder/mixins/formatting.py | cirobessa/receitas-aws | b4f496050f951c6ae0c5fa12e132c39315deb493 | [
"MIT"
] | null | null | null | paws/lib/python2.7/site-packages/requestbuilder-0.7.1-py2.7.egg/requestbuilder/mixins/formatting.py | cirobessa/receitas-aws | b4f496050f951c6ae0c5fa12e132c39315deb493 | [
"MIT"
] | null | null | null | # Copyright (c) 2012-2016 Hewlett Packard Enterprise Development LP
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS I... | 36.134328 | 78 | 0.60285 |
713112df1e740ecd85981df7b8bb9c8af2b70a63 | 4,305 | py | Python | python/examples/depthnet.py | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 5,788 | 2016-08-22T09:09:46.000Z | 2022-03-31T17:05:54.000Z | python/examples/depthnet.py | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 1,339 | 2016-08-15T08:51:10.000Z | 2022-03-31T18:44:20.000Z | python/examples/depthnet.py | jwkim386/Jetson_Inference | 5aaba1c362b6cfca8475a41c15336dbfe03252fa | [
"MIT"
] | 2,730 | 2016-08-23T11:04:26.000Z | 2022-03-30T14:06:08.000Z | #!/usr/bin/python3
#
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# 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 r... | 45.315789 | 199 | 0.720557 |
713167a830164ccca62c062da7d4668a476d9d1e | 1,004 | py | Python | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 116 | 2015-01-06T17:56:12.000Z | 2021-08-16T06:33:01.000Z | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 17 | 2015-02-17T17:50:53.000Z | 2020-01-15T08:05:46.000Z | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 51 | 2015-02-18T16:12:13.000Z | 2021-03-07T19:22:58.000Z | #! /usr/bin/env python
import sys
import re
import pkgloader
pkgloader.require('skytools', '3.0')
import skytools.quoting
kwmap = skytools.quoting._ident_kwmap
fn = "/opt/src/pgsql/postgresql/src/include/parser/kwlist.h"
if len(sys.argv) == 2:
fn = sys.argv[1]
rc = re.compile(r'PG_KEYWORD[(]"(.*)" , \s* \w+ , ... | 19.686275 | 71 | 0.570717 |
71316cb6fafc4261ad241158cbcfa1eb9def348b | 1,357 | py | Python | remote-scripts/ConfigureDnsServer.py | xian123/azure-freebsd-automation | be9d32bf70683860da24f4d25d4ae087611b4d8b | [
"Apache-2.0"
] | 1 | 2020-01-16T08:45:59.000Z | 2020-01-16T08:45:59.000Z | remote-scripts/ConfigureDnsServer.py | xian123/azure-freebsd-automation | be9d32bf70683860da24f4d25d4ae087611b4d8b | [
"Apache-2.0"
] | 1 | 2016-07-25T05:31:19.000Z | 2016-07-25T05:31:19.000Z | remote-scripts/ConfigureDnsServer.py | xian123/azure-freebsd-automation | be9d32bf70683860da24f4d25d4ae087611b4d8b | [
"Apache-2.0"
] | 7 | 2016-07-19T02:20:35.000Z | 2018-06-06T06:56:23.000Z | #!/usr/bin/python
import argparse
import sys
from azuremodules import *
import paramiko
parser = argparse.ArgumentParser()
parser.add_argument('-D', '--vnetDomain_db_filepath', help='VNET Domain db filepath', required=True)
parser.add_argument('-r', '--vnetDomain_rev_filepath', help='VNET rev filepath',required=True)
... | 50.259259 | 260 | 0.776713 |
713262773e1bbc8e7735e8a1554b0d73feb6fedc | 3,595 | py | Python | docs/conf.py | alancinacio/advanced-security-compliance | 5b8c6951db2c895033d816274abc389f1413cddd | [
"MIT"
] | 83 | 2021-06-01T10:11:15.000Z | 2022-03-15T00:38:42.000Z | docs/conf.py | alancinacio/advanced-security-compliance | 5b8c6951db2c895033d816274abc389f1413cddd | [
"MIT"
] | 30 | 2021-06-07T10:18:22.000Z | 2022-03-15T10:51:19.000Z | docs/conf.py | alancinacio/advanced-security-compliance | 5b8c6951db2c895033d816274abc389f1413cddd | [
"MIT"
] | 15 | 2021-06-09T17:22:33.000Z | 2022-02-21T00:41:04.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... | 27.030075 | 87 | 0.636718 |
7134b11fbf615621dd4092408e906a7218019a12 | 5,223 | py | Python | tests/main.py | tdegeus/enstat | c26f079dbbfd9fbe76cb8dc5a3da4290f1996645 | [
"MIT"
] | null | null | null | tests/main.py | tdegeus/enstat | c26f079dbbfd9fbe76cb8dc5a3da4290f1996645 | [
"MIT"
] | 5 | 2021-02-02T10:38:59.000Z | 2021-04-05T15:22:22.000Z | tests/main.py | tdegeus/EnsembleAverage | 2e1eeb58ec6a031b0539d5c65f5db71a4bd904d0 | [
"MIT"
] | 1 | 2021-03-05T10:28:40.000Z | 2021-03-05T10:28:40.000Z | import unittest
from collections import defaultdict
import numpy as np
import enstat.mean
if __name__ == "__main__":
unittest.main()
| 28.232432 | 92 | 0.559066 |
71351ec8e090e943f24c2a7631465b81d875953c | 1,570 | py | Python | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from modelcluster.fields import ParentalKey
from wagtail.core.models import Page, Orderable
from wagtail.core.fields import StreamField
from wagtail.wagtailadmin.edit_handlers import (
FieldPanel, StreamFieldPanel, InlinePanel, PageChooserPanel
)
from ... | 27.54386 | 65 | 0.695541 |
713628bb0e47a45127a74738d88df4c114399d56 | 2,224 | py | Python | tests/run_on_large_dataset.py | ur-whitelab/selfies | 6ee9529493da303f55f91994ca0c28fb04aa7606 | [
"Apache-2.0"
] | 367 | 2019-06-03T13:07:17.000Z | 2022-03-29T23:28:14.000Z | tests/run_on_large_dataset.py | ur-whitelab/selfies | 6ee9529493da303f55f91994ca0c28fb04aa7606 | [
"Apache-2.0"
] | 56 | 2019-07-03T15:01:18.000Z | 2022-02-24T19:10:49.000Z | tests/run_on_large_dataset.py | ur-whitelab/selfies | 6ee9529493da303f55f91994ca0c28fb04aa7606 | [
"Apache-2.0"
] | 108 | 2019-06-02T01:36:31.000Z | 2022-03-20T08:15:20.000Z | """Script for testing selfies against large datasets.
"""
import argparse
import pathlib
import pandas as pd
from rdkit import Chem
from tqdm import tqdm
import selfies as sf
parser = argparse.ArgumentParser()
parser.add_argument("--data_path", type=str, default="version.smi.gz")
parser.add_argument("--col_name", t... | 27.45679 | 71 | 0.643885 |
71390f28f2e0cfd1ab9180ad9505615e0be5235d | 2,233 | py | Python | vision/module/get_module_depth.py | cjhr95/IARC-2020 | 7cb7fb852bce64abf3c0a0223f711949a1667cbc | [
"MIT"
] | null | null | null | vision/module/get_module_depth.py | cjhr95/IARC-2020 | 7cb7fb852bce64abf3c0a0223f711949a1667cbc | [
"MIT"
] | null | null | null | vision/module/get_module_depth.py | cjhr95/IARC-2020 | 7cb7fb852bce64abf3c0a0223f711949a1667cbc | [
"MIT"
] | null | null | null | """
get_module_depth will return a float value for the relative depth of the module in the camera frame in meters,
given the depth frame (np array), and the approximate location of the center of the module in the frame (integer tuple)
The __main__ of this file acts as a driver for testing get_module_depth
"""
import n... | 34.890625 | 131 | 0.686968 |
713b53cdaf7061c2baa7e69b3bfc2dd5bcba7b31 | 170 | py | Python | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | 2 | 2017-04-26T14:08:02.000Z | 2017-09-01T13:10:17.000Z | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | AMAO/settings/celery_settings.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | #coding: utf-8
import djcelery
djcelery.setup_loader()
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "admin"
BROKER_PASSWORD = "mypass"
BROKER_VHOST = "/"
| 15.454545 | 26 | 0.752941 |
713bcbfeb157f3055a092e5b31036bdea2cfecc3 | 2,406 | py | Python | chainer_chemistry/links/readout/set2set.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 184 | 2019-11-27T12:59:01.000Z | 2022-03-29T19:18:54.000Z | chainer_chemistry/links/readout/set2set.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 21 | 2019-12-08T01:53:33.000Z | 2020-10-23T01:19:56.000Z | chainer_chemistry/links/readout/set2set.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 45 | 2019-11-28T09:59:54.000Z | 2022-02-07T02:42:46.000Z | from typing import List, Optional # NOQA
import chainer
from chainer import cuda
from chainer import functions
from chainer import links
import numpy # NOQA
| 34.869565 | 76 | 0.568163 |
713c6daee549d2235de17eaa0ca36443477d9389 | 168 | py | Python | matsuri_monitor/handlers/__init__.py | vancassa/matsuri-monitor | 0ad639303dbc9098098a87743b4bd115e8a855f2 | [
"MIT"
] | 15 | 2020-05-14T09:05:41.000Z | 2022-01-07T09:46:17.000Z | matsuri_monitor/handlers/__init__.py | uwupp/matsuri-monitor | e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5 | [
"MIT"
] | 2 | 2021-03-31T19:37:06.000Z | 2021-12-13T20:36:35.000Z | matsuri_monitor/handlers/__init__.py | uwupp/matsuri-monitor | e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5 | [
"MIT"
] | 14 | 2020-03-30T13:06:27.000Z | 2021-10-08T09:31:33.000Z | from matsuri_monitor.handlers.api import APIHandler
from matsuri_monitor.handlers.archives import ArchivesHandler
from matsuri_monitor.handlers.main import MainHandler
| 42 | 61 | 0.892857 |
713cd9544e5aedaf7a2f331751f6c1faba151b1d | 433 | py | Python | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/cli.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | """Console script for kanbanflow_prj_selector."""
import sys
import click
from .kanbanflow_prj_selector import start
if __name__ == "__main__":
sys.exit(main()) # pragma: no cover
| 24.055556 | 102 | 0.725173 |
713f8728f170e98a510f966331e3baefa1955731 | 1,930 | py | Python | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | #
# Copyright (C) 2014-2015
# Sean Poyser (seanpoyser@gmail.com)
#
# 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 2, or (at your option)
# any later version.
#
# ... | 25.064935 | 72 | 0.640933 |
71408cee02c327aa32a4eadb08ddbad50664aa23 | 3,647 | py | Python | datasets/cifar10.py | cheerss/COP | f05aa99f43b909acba671692aae022e791d81f70 | [
"MIT"
] | 47 | 2019-06-26T13:08:08.000Z | 2021-03-09T04:17:07.000Z | datasets/cifar10.py | cheerss/COP | f05aa99f43b909acba671692aae022e791d81f70 | [
"MIT"
] | 1 | 2020-03-11T22:02:09.000Z | 2020-06-10T01:23:46.000Z | datasets/cifar10.py | cheerss/COP | f05aa99f43b909acba671692aae022e791d81f70 | [
"MIT"
] | 3 | 2019-07-04T06:22:19.000Z | 2019-07-22T02:16:56.000Z | import os
import tensorflow as tf
label_bytes = 1 # 2 for CIFAR100
height = 32
width = 32
depth = 3
image_bytes = height * width * depth
record_bytes = label_bytes + image_bytes
num_examples_for_train = 50000
num_examples_for_test = 10000
num_classes = 10
| 40.977528 | 131 | 0.691253 |
71414595796daa9ea1d1cb02aaa1e96629a157dd | 194 | py | Python | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 74 | 2020-02-06T18:20:36.000Z | 2021-11-28T11:46:02.000Z | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 13 | 2020-03-03T01:00:27.000Z | 2021-10-21T17:11:15.000Z | v1/schemas/auth.py | takotab/cloudrun-fastapi | 515145dc68f49b222cf582940368fdba4b6dcfd3 | [
"MIT"
] | 17 | 2020-02-08T13:20:21.000Z | 2021-11-02T10:19:16.000Z | from pydantic import UUID4, BaseModel, EmailStr
| 16.166667 | 47 | 0.71134 |
714232f5522c18d9b4b890e9d995248040d9d820 | 2,082 | py | Python | setup.py | PyCav/PyCav-Module | d163b7f56a07589e26e07bc37a67434eed57d5d3 | [
"BSD-3-Clause-Clear"
] | 3 | 2019-03-18T05:27:00.000Z | 2022-03-17T11:54:33.000Z | setup.py | PyCav/PyCav-Module | d163b7f56a07589e26e07bc37a67434eed57d5d3 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-11-14T01:25:30.000Z | 2016-11-14T01:25:30.000Z | setup.py | PyCav/PyCav-Module | d163b7f56a07589e26e07bc37a67434eed57d5d3 | [
"BSD-3-Clause-Clear"
] | 6 | 2019-03-18T05:27:02.000Z | 2021-08-24T15:46:03.000Z | import versioneer
from setuptools import setup, find_packages, Extension
from codecs import open
from os import path
have_cython = False
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
from distutils.command.build_ext import build_ext
mechanics = None
if have_cython:
... | 27.76 | 69 | 0.649376 |
7142a91e805898343d111a49c9fe9174f6afc823 | 3,311 | py | Python | arne_skill_pipeline/script/learn_trajectories.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2022-02-19T00:09:15.000Z | 2022-03-13T13:33:36.000Z | arne_skill_pipeline/script/learn_trajectories.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | arne_skill_pipeline/script/learn_trajectories.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
################################################################################
# Copyright 2022 FZI Research Center for Information Technology
#
# 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 ... | 31.836538 | 123 | 0.681969 |
71437258e8342236445a18f9818801ce852fe4c8 | 131 | py | Python | app/api/__init__.py | ivelinahristova/webanalysis | ff73b65799dc1465b9138a8742ea74b9da171c8d | [
"MIT"
] | null | null | null | app/api/__init__.py | ivelinahristova/webanalysis | ff73b65799dc1465b9138a8742ea74b9da171c8d | [
"MIT"
] | 8 | 2021-04-10T17:55:31.000Z | 2021-04-19T14:45:14.000Z | app/api/__init__.py | ivelinahristova/webanalysis | ff73b65799dc1465b9138a8742ea74b9da171c8d | [
"MIT"
] | null | null | null | """
app.api
~~~~~~~~~~~~~~~~~~
This module contains views for project's API service.
"""
from app.api.views import api | 18.714286 | 57 | 0.564885 |
71439eb32ce65352132a5742c7ee81f76e628b0f | 3,737 | py | Python | Gym/settings/dir_gen.py | Alee08/MultiUAV-RL-RB | 96a0b350b3176ff6011abe97491de9707416c289 | [
"ImageMagick"
] | 4 | 2021-07-22T17:16:30.000Z | 2022-03-03T11:14:12.000Z | Gym/settings/dir_gen.py | Alee08/MultiUAV-RL-RB | 96a0b350b3176ff6011abe97491de9707416c289 | [
"ImageMagick"
] | null | null | null | Gym/settings/dir_gen.py | Alee08/MultiUAV-RL-RB | 96a0b350b3176ff6011abe97491de9707416c289 | [
"ImageMagick"
] | null | null | null | import csv
import os
from os import mkdir
from os.path import isdir
from datetime import datetime
import ast
from configuration import Config
conf = Config()
traj_j = []
policy_per_plot = []
plot_policy = []
traj_j_ID = []
CSV_DIRECTORY_NAME = "Flights_trajectories"
BP_DIRECTORY_NAME = 'Best_policy/'
myfile = "./Bes... | 30.137097 | 120 | 0.641959 |
714456e8cb645be470325f7641ddf4dbcf8c18f1 | 20,205 | py | Python | populator/tests/test_migration_processing.py | gbif-norway/resolver-docker | 1119223d8c640627adb6a3c481f03d04cca39804 | [
"Apache-2.0"
] | null | null | null | populator/tests/test_migration_processing.py | gbif-norway/resolver-docker | 1119223d8c640627adb6a3c481f03d04cca39804 | [
"Apache-2.0"
] | 5 | 2021-02-03T07:24:00.000Z | 2022-02-03T13:57:44.000Z | populator/tests/test_migration_processing.py | gbif-norway/resolver-docker | 1119223d8c640627adb6a3c481f03d04cca39804 | [
"Apache-2.0"
] | 2 | 2020-11-24T14:23:55.000Z | 2022-02-26T00:32:39.000Z | from populator.management.commands import _migration_processing as migration_processing
from populator.management.commands.populate_resolver import create_duplicates_file
from populator.models import ResolvableObjectMigration
from django.db import connection, transaction
from django.test import TestCase, TransactionTes... | 63.939873 | 218 | 0.652215 |
852e0f63893de0cfdcd9d01a513de0080273a7f0 | 6,063 | py | Python | mallet/AFNetworking/AFURLSessionManager.py | bartoszj/Mallet | 0645b08c7eaea4b2f2769a0ca0d84fa8f0332357 | [
"MIT"
] | 16 | 2015-09-07T00:34:49.000Z | 2021-11-12T05:54:01.000Z | mallet/AFNetworking/AFURLSessionManager.py | bartoszj/Mallet | 0645b08c7eaea4b2f2769a0ca0d84fa8f0332357 | [
"MIT"
] | null | null | null | mallet/AFNetworking/AFURLSessionManager.py | bartoszj/Mallet | 0645b08c7eaea4b2f2769a0ca0d84fa8f0332357 | [
"MIT"
] | 2 | 2017-05-21T16:39:00.000Z | 2017-06-11T13:09:07.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2015 Bartosz Janda
#
# 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 w... | 49.292683 | 159 | 0.713178 |
852f1cbba9e7736017df5f793b0b98d952024c1d | 677 | py | Python | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | 1 | 2022-01-08T15:35:11.000Z | 2022-01-08T15:35:11.000Z | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | null | null | null | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | null | null | null | import random | 35.631579 | 85 | 0.55096 |
852fb825fe263ec82f820da72ee2a339cf8935c0 | 1,036 | py | Python | main.py | RandomReaper/cloudio-endpoint-python-example | ec8aa8f4e745072e67ef5fdee1a3d3910848a237 | [
"Apache-2.0"
] | null | null | null | main.py | RandomReaper/cloudio-endpoint-python-example | ec8aa8f4e745072e67ef5fdee1a3d3910848a237 | [
"Apache-2.0"
] | null | null | null | main.py | RandomReaper/cloudio-endpoint-python-example | ec8aa8f4e745072e67ef5fdee1a3d3910848a237 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from client import Sample_Client
import time
import random
# Create client
client = Sample_Client('sample.cfg')
time.sleep(5)
# Simple exemple
while(True):
print('Sending updates')
client.publish('Sensor1', 'L1_Volts', random.uniform(207,253))
client.publish... | 33.419355 | 66 | 0.690154 |
852fbbba11a21bb357262e61938b8c4fdb889e5a | 1,879 | py | Python | backend/apps/cmdb/types/foreignkey.py | codelieche/erp | 96861ff63a63a93918fbd5181ffb2646446d0eec | [
"MIT"
] | null | null | null | backend/apps/cmdb/types/foreignkey.py | codelieche/erp | 96861ff63a63a93918fbd5181ffb2646446d0eec | [
"MIT"
] | 29 | 2020-06-05T19:57:11.000Z | 2022-02-26T13:42:36.000Z | backend/apps/cmdb/types/foreignkey.py | codelieche/erp | 96861ff63a63a93918fbd5181ffb2646446d0eec | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
- model: Model
- fielduniqueid
- on_delete: cascade | set_null | disable
- on_update: : cascade | disable
/
"""
from cmdb.types.base import BaseType
#
from cmdb.models import Model, Field, Instance, Value
| 27.632353 | 93 | 0.593933 |
8530f3a6fb147cef24829cc3993767b80c2ae23e | 209 | py | Python | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | test/img.py | milligan22963/Camera | 8d76d8366dc0dda755e1595f26b6b6caaf2f61a6 | [
"MIT"
] | null | null | null | from PIL import Image
if __name__ == "__main__":
print("Starting main")
main()
| 16.076923 | 58 | 0.641148 |
8531392c0abd31f8bfed969f248dc10e8ce83647 | 1,285 | py | Python | docs/a.py | jianminzhu/chinaese6 | 4d1df1a320aa848d32f7caafd35487d263eb73ce | [
"Apache-2.0"
] | null | null | null | docs/a.py | jianminzhu/chinaese6 | 4d1df1a320aa848d32f7caafd35487d263eb73ce | [
"Apache-2.0"
] | null | null | null | docs/a.py | jianminzhu/chinaese6 | 4d1df1a320aa848d32f7caafd35487d263eb73ce | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import threading
import time
import urllib2
# SELECT "bmember" as type, COUNT(*) AS bmember FROM bmember WHERE isDownPics=0
# UNION ALL SELECT "memberby " as type, COUNT(*) AS memberby FROM memberby
# UNION ALL SELECT "membercontact" as type, C... | 32.125 | 113 | 0.649027 |
85325b050a54908e1d63d68d8d59124ad2df6a69 | 5,605 | py | Python | ExperimentResults/experimentResultAnalysis.py | nick-terry/Splitting-GP | efd886f6442f096833460cf8cd28ff3e18da732a | [
"MIT"
] | 1 | 2021-12-24T09:10:03.000Z | 2021-12-24T09:10:03.000Z | ExperimentResults/experimentResultAnalysis.py | nick-terry/Splitting-GP | efd886f6442f096833460cf8cd28ff3e18da732a | [
"MIT"
] | null | null | null | ExperimentResults/experimentResultAnalysis.py | nick-terry/Splitting-GP | efd886f6442f096833460cf8cd28ff3e18da732a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 24 07:54:30 2020
@author: pnter
"""
import pandas as pd
import os
from os.path import isfile,join
import matplotlib.pyplot as plt
import numpy as np
folderPath = 'C:/Users/pnter/Documents/GitHub/GP-Regression-Research/ExperimentResults'
#Compute summary statistics for ... | 33.363095 | 142 | 0.657627 |
8532bab920d1825b8422ff7fb44acb95b58ad085 | 622 | gyp | Python | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 799 | 2016-07-31T19:54:59.000Z | 2022-03-21T05:55:15.000Z | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 8 | 2016-11-03T09:09:28.000Z | 2019-09-01T17:07:27.000Z | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 54 | 2017-05-23T19:36:33.000Z | 2021-12-29T15:11:12.000Z | {
"targets": [
{
"target_name": "index",
"sources": [ "epoc.cc"],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"conditions": [
['OS=="mac"', {
"cflags": [ "-m64" ],
"ldflags": [ "-m64" ],
"xcode_settings": {
"OTHER_C... | 22.214286 | 59 | 0.350482 |
8532c99e8a8433241294b42f1d47108571d2bbf0 | 983 | py | Python | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | 1 | 2021-01-15T02:10:32.000Z | 2021-01-15T02:10:32.000Z | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | 3 | 2020-06-13T00:02:13.000Z | 2021-09-12T13:20:16.000Z | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | null | null | null | import sys, psycopg2, psycopg2.extras
| 27.305556 | 78 | 0.571719 |
85340618b43f73553925b20a11d7ffb839d7dd94 | 903 | py | Python | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 2 | 2019-02-22T13:51:08.000Z | 2020-08-03T14:01:30.000Z | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | null | null | null | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 1 | 2020-08-03T14:01:32.000Z | 2020-08-03T14:01:32.000Z | # -*- coding: utf-8 -*-
from scrapy.spiders import Spider
from scrapy.selector import Selector
from gorden_crawler.items import BaseItem, ImageItem, SkuItem, Color
from scrapy import Request
from scrapy_redis.spiders import RedisSpider
import re
import execjs
import json
from gorden_crawler.spiders.shiji_base import... | 25.8 | 74 | 0.705426 |
8536fa3da81b7b0e167c676d3c1b9ae1a7592c0b | 662 | py | Python | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | 4 | 2018-06-18T06:50:12.000Z | 2018-11-15T00:08:24.000Z | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | null | null | null | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | null | null | null |
import graphene
from app.models import User
| 24.518519 | 85 | 0.643505 |