hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
39f520ddc6de18f84e3d31ee06b279812eb42770
1,161
py
Python
homeassistant/components/binary_sensor/volvooncall.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
37
2018-05-22T07:17:26.000Z
2022-03-03T13:14:46.000Z
homeassistant/components/binary_sensor/volvooncall.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
125
2018-12-11T07:31:20.000Z
2021-07-27T08:20:03.000Z
homeassistant/components/binary_sensor/volvooncall.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
8
2018-05-30T20:05:26.000Z
2021-02-19T14:17:05.000Z
""" Support for VOC. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.volvooncall/ """ import logging from homeassistant.components.volvooncall import VolvoEntity from homeassistant.components.binary_sensor import BinarySensorDevice _LOGGER...
29.769231
74
0.692506
d09c8a0b165353be1d409c1bd21b80119e9522e4
6,847
py
Python
xfel/command_line/print_pickle.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/command_line/print_pickle.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/command_line/print_pickle.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from six.moves import range #-*- Mode: Python; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- # # LIBTBX_SET_DISPATCHER_NAME cxi.print_pickle # """ Simple utility for printing the contents of a cctbx.xfel pickle file """ import sys, os from iotbx.detectors.cspad_detector_fo...
36.420213
134
0.635899
b7c63285e220888a796d3a2db4a16b7ee49561df
1,597
py
Python
flask/quickslack/schemas/messages.py
BloomTech-Labs/Quick-Slack-ds
0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369
[ "MIT" ]
1
2020-06-15T01:45:10.000Z
2020-06-15T01:45:10.000Z
flask/quickslack/schemas/messages.py
BloomTech-Labs/Quick-Slack-ds
0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369
[ "MIT" ]
null
null
null
flask/quickslack/schemas/messages.py
BloomTech-Labs/Quick-Slack-ds
0c45c0d56ec0d3fae24f9f6f2a77bb8fc62a9369
[ "MIT" ]
1
2020-05-23T22:27:22.000Z
2020-05-23T22:27:22.000Z
from ..extensions import db class Message(db.Model): db_id = db.Column(db.Integer, primary_key=True) message_id = db.Column(db.String(36), nullable=True) user_id = db.Column(db.String(20), nullable=True) ts = db.Column(db.Float(), nullable=False) reply_count = db.Column(db.Integer, default=0) ...
33.978723
79
0.673763
3e6c08f31ca5fa1d7a13baab0d55aa5484bfd9f4
24,037
py
Python
userbot/modules/anime.py
Hyperizer69/ProjectFizilionFork
71b74fef24a25099af39935d811be1b3d0ad3ba5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/anime.py
Hyperizer69/ProjectFizilionFork
71b74fef24a25099af39935d811be1b3d0ad3ba5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/anime.py
Hyperizer69/ProjectFizilionFork
71b74fef24a25099af39935d811be1b3d0ad3ba5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC.; Licensed under the Raphielscape Public License, Version 1.d (the "License"); you may not use this file except in compliance with the License. """ a module for gathering anime info. """ import asyncio import html import json import textwrap from io import BytesIO, St...
35.876119
193
0.598286
2f88fb1eff1f74e7bbbfe4bcb79646cc5d5b424a
7,506
py
Python
include/subsample.py
davevanveen/unsup_mri
d662d650a91bdeaef209e1b76acf873c8bca2f2f
[ "Apache-2.0" ]
1
2021-03-22T18:57:20.000Z
2021-03-22T18:57:20.000Z
include/subsample.py
davevanveen/unsup_mri
d662d650a91bdeaef209e1b76acf873c8bca2f2f
[ "Apache-2.0" ]
null
null
null
include/subsample.py
davevanveen/unsup_mri
d662d650a91bdeaef209e1b76acf873c8bca2f2f
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import numpy as np import torch def create_mask_for_mask_type(mask_type_str, center_fractions, accelerations): if mask_type_str == 'rand...
44.152941
112
0.666001
71461efcbf2f33317da482657fb38d0023ee0f8c
1,104
py
Python
Python/decorate5.py
eigentourist/defcon27
545f342033b1e73d653def8e90d3dcfe40d005f6
[ "MIT" ]
2
2019-08-10T17:00:21.000Z
2019-08-10T21:00:05.000Z
Python/decorate5.py
eigentourist/defcon27
545f342033b1e73d653def8e90d3dcfe40d005f6
[ "MIT" ]
null
null
null
Python/decorate5.py
eigentourist/defcon27
545f342033b1e73d653def8e90d3dcfe40d005f6
[ "MIT" ]
2
2019-08-10T17:17:25.000Z
2019-08-12T05:29:41.000Z
# Hacking With Monads: # Functional Programming for the Blue Team # A Def Con 27 Workshop August 10, 2019 # Decorator technique, with multiple decorators # Functions renamed to suggest real-world usage import sys import os from functools import wraps def errorhandler(func): @wraps(func) def wrapper(*args, ...
20.830189
57
0.67663
8a686e4f58e48b6ae8469218538d6e7b48b43844
11,823
py
Python
tests/cli/test_voc_format.py
prathikpaip/datumaro
d42ff1498ff7276767f8f8a86d92d87535122920
[ "MIT" ]
null
null
null
tests/cli/test_voc_format.py
prathikpaip/datumaro
d42ff1498ff7276767f8f8a86d92d87535122920
[ "MIT" ]
null
null
null
tests/cli/test_voc_format.py
prathikpaip/datumaro
d42ff1498ff7276767f8f8a86d92d87535122920
[ "MIT" ]
9
2021-05-17T07:00:03.000Z
2021-06-26T02:15:10.000Z
import os.path as osp import numpy as np from collections import OrderedDict from unittest import TestCase import datumaro.plugins.voc_format.format as VOC from datumaro.components.dataset import Dataset, DatasetItem from datumaro.components.extractor import Bbox, Mask, Image, Label from datumaro.cli.__main__ import ...
41.777385
87
0.466633
c60e2ee31facf95cb957e04b71391e27cdd5318b
13,755
py
Python
reinforcement/main.py
hoxmark/Deep_reinforcement_active_learning
7458916d6f75c7fbfcfd4bc81763ab5ba16208ad
[ "MIT" ]
19
2018-03-19T12:08:18.000Z
2021-08-14T09:12:33.000Z
reinforcement/main.py
hoxmark/TDT4501-Specialization-Project
7458916d6f75c7fbfcfd4bc81763ab5ba16208ad
[ "MIT" ]
20
2020-01-28T22:14:40.000Z
2022-03-11T23:17:48.000Z
reinforcement/main.py
hoxmark/Deep_reinforcement_active_learning
7458916d6f75c7fbfcfd4bc81763ab5ba16208ad
[ "MIT" ]
6
2018-07-25T08:07:45.000Z
2021-08-14T09:12:34.000Z
from datasets.vse.vocab import Vocabulary import torch import argparse import datetime import getpass import importlib import os import sys import tensorboard_logger as tb_logger from config import opt, data, loaders, global_logger from utils import external_logger, visdom_logger, local_logger, no_logger, load_word2vec...
76.843575
178
0.624282
5109ab77cd2f94e53c384d9d40f0a64563c4622d
5,291
py
Python
sdk/python/pulumi_azure_native/network/v20200501/get_route.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/get_route.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200501/get_route.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables __a...
35.993197
150
0.657532
df20f5fc37ed131a2e2f93a6e5eb4b01b67fd2b9
8,768
py
Python
pysnmp/AGGREGATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/AGGREGATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/AGGREGATE-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 AGGREGATE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AGGREGATE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:00:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
100.781609
1,116
0.772354
d65ea3370ad1898815bfdf43e7a9a84bfe938888
47,182
py
Python
BioSQL/Loader.py
nmatzke/biopython
381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a
[ "PostgreSQL" ]
2
2016-05-09T09:30:50.000Z
2018-05-21T21:39:45.000Z
BioSQL/Loader.py
nmatzke/biopython
381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a
[ "PostgreSQL" ]
null
null
null
BioSQL/Loader.py
nmatzke/biopython
381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a
[ "PostgreSQL" ]
null
null
null
# Copyright 2002 by Andrew Dalke. All rights reserved. # Revisions 2007-2008 copyright by Peter Cock. All rights reserved. # Revisions 2008 copyright by Cymon J. Cox. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have be...
44.679924
111
0.569243
e115f420f259e4482047fee21acd02721261a3d6
9,221
py
Python
tests/test_command_parse.py
linchiwei123/scrapy
1f0722c87e1f057850e490045572aed007a20e2f
[ "BSD-3-Clause" ]
1
2020-08-29T03:54:23.000Z
2020-08-29T03:54:23.000Z
tests/test_command_parse.py
linchiwei123/scrapy
1f0722c87e1f057850e490045572aed007a20e2f
[ "BSD-3-Clause" ]
null
null
null
tests/test_command_parse.py
linchiwei123/scrapy
1f0722c87e1f057850e490045572aed007a20e2f
[ "BSD-3-Clause" ]
null
null
null
import os from os.path import join, abspath, isfile, exists from twisted.internet import defer from scrapy.utils.testsite import SiteTest from scrapy.utils.testproc import ProcessTest from scrapy.utils.python import to_unicode from tests.test_commands import CommandTest def _textmode(bstr): """Normalize input the...
38.103306
87
0.547012
0dc1718515e4f934f51f9f2904555085b844bf7a
1,813
py
Python
tests.py
Wilfred/django-function-cache
7d68309cc58a8829fc7bbd4eaa69fa86cfee08df
[ "MIT" ]
3
2017-01-19T14:27:50.000Z
2019-01-18T07:18:34.000Z
tests.py
Wilfred/django-function-cache
7d68309cc58a8829fc7bbd4eaa69fa86cfee08df
[ "MIT" ]
null
null
null
tests.py
Wilfred/django-function-cache
7d68309cc58a8829fc7bbd4eaa69fa86cfee08df
[ "MIT" ]
null
null
null
# set up dummy settings # this needs to happen before we import django_function_cache from django.conf import settings settings.configure(DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase' } }) from django.test import TestCase from django.core.cache import cach...
25.535211
68
0.639823
cde2e57ef77041e73080a534ba3d60eb4950dd46
6,248
py
Python
hack/gen-olm-artifacts.py
devenkulkarni/cluster-logging-operator
885fd6f4c99979a4710dac13cf91d26f9b1d8efa
[ "Apache-2.0" ]
1
2020-10-14T09:54:33.000Z
2020-10-14T09:54:33.000Z
hack/gen-olm-artifacts.py
devenkulkarni/cluster-logging-operator
885fd6f4c99979a4710dac13cf91d26f9b1d8efa
[ "Apache-2.0" ]
null
null
null
hack/gen-olm-artifacts.py
devenkulkarni/cluster-logging-operator
885fd6f4c99979a4710dac13cf91d26f9b1d8efa
[ "Apache-2.0" ]
1
2021-09-13T19:26:26.000Z
2021-09-13T19:26:26.000Z
#!/usr/bin/env python # This script is used to generate kubernetes resource list like OLM based # upon the CSV and static resources in the manifestdir # usage: # ./hack/gen-olm-artifacts.sh <manifest_dir> (operator_image) # # i.e. ./hack/gen-olm-artifacts.sh manifests/5.1/cluster-logging.v5.1.0.clusterserviceversi...
28.925926
118
0.56338
0e564d4451ebd532f0732020fbff00f9476243dd
3,682
py
Python
tests/library/compile_python_modules.py
accnops/Nuitka
26ea17d839e40733d2fe5a1dbf46b1c736439c5a
[ "Apache-2.0" ]
null
null
null
tests/library/compile_python_modules.py
accnops/Nuitka
26ea17d839e40733d2fe5a1dbf46b1c736439c5a
[ "Apache-2.0" ]
null
null
null
tests/library/compile_python_modules.py
accnops/Nuitka
26ea17d839e40733d2fe5a1dbf46b1c736439c5a
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
#!/usr/bin/env python # Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # ...
27.477612
80
0.612167
b76d7d385638e4f3fc9bb8994408fbb639f88da7
3,922
py
Python
app/recipe/tests/test_tags.py
mataurrehman/recipe-app-api
88a25cec2d7a9accd09ecd7eda1ff82724cab060
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags.py
mataurrehman/recipe-app-api
88a25cec2d7a9accd09ecd7eda1ff82724cab060
[ "MIT" ]
3
2020-06-06T01:59:01.000Z
2021-06-10T22:58:59.000Z
app/recipe/tests/test_tags.py
mataurrehman/recipe-app-api
88a25cec2d7a9accd09ecd7eda1ff82724cab060
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe, Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class Pub...
32.957983
71
0.63284
f5416550f99bc76e0fa9865973c3a2b1347a2d43
1,102
py
Python
tests/test_basic.py
InsDev/steam.py
089618989c09f4692660b40df1304ea7ccf964f4
[ "MIT" ]
1
2020-09-01T12:32:09.000Z
2020-09-01T12:32:09.000Z
tests/test_basic.py
InsDev/steam.py
089618989c09f4692660b40df1304ea7ccf964f4
[ "MIT" ]
null
null
null
tests/test_basic.py
InsDev/steam.py
089618989c09f4692660b40df1304ea7ccf964f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A basic integration test""" import pytest import steam from . import IDENTITY_SECRET, PASSWORD, SHARED_SECRET, USERNAME class Client(steam.Client): LOGIN = False CONNECT = False READY = False LOGOUT = False async def start(self) -> None: try: awa...
21.607843
113
0.621597
1c50ef4a64f3270f2db080361b6fd3e7762656e2
2,248
py
Python
tests/utilities_unit_test.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
1
2021-04-20T03:21:34.000Z
2021-04-20T03:21:34.000Z
tests/utilities_unit_test.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
3
2020-01-27T23:41:56.000Z
2020-03-07T04:12:23.000Z
tests/utilities_unit_test.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 NREL # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distri...
37.466667
79
0.711744
ae2545b3a32f9fa2040ee44fbcc41aa42444d802
18,032
py
Python
Wrapping/Python/vtk/gtk/GtkGLExtVTKRenderWindow.py
SCS-B3C/VTK5.6
d4afb224f638c1f7e847b0cd3195ea8a977bb602
[ "BSD-3-Clause" ]
2
2015-07-11T13:30:23.000Z
2017-12-19T05:23:38.000Z
Wrapping/Python/vtk/gtk/GtkGLExtVTKRenderWindow.py
garyc618/GitTagBug
0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864
[ "BSD-3-Clause" ]
null
null
null
Wrapping/Python/vtk/gtk/GtkGLExtVTKRenderWindow.py
garyc618/GitTagBug
0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864
[ "BSD-3-Clause" ]
3
2015-05-14T21:18:53.000Z
2022-03-07T02:53:45.000Z
""" Description: This provides a VTK widget for pyGtk. This embeds a vtkRenderWindow inside a GTK widget. This is based on GtkVTKRenderWindow.py. The extensions here allow the use of gtkglext rather than gtkgl and pygtk-2 rather than pygtk-0. It requires pygtk-2.0.0 or later. There is a working exampl...
33.392593
77
0.586957
1af375336610046983224a07823d3d7d8ef2c18f
1,651
py
Python
ddhf_r1k_backup.py
Datamuseum-DK/AutoArcaeologist
b1c5a93929cdcdaa874e10da73131b89db2b0c9b
[ "BSD-2-Clause" ]
11
2020-10-15T16:23:58.000Z
2021-11-17T00:08:30.000Z
ddhf_r1k_backup.py
Datamuseum-DK/AutoArchaeologist
91cd7f9fe2c9c6705992e5932e7c0f400892510e
[ "BSD-2-Clause" ]
null
null
null
ddhf_r1k_backup.py
Datamuseum-DK/AutoArchaeologist
91cd7f9fe2c9c6705992e5932e7c0f400892510e
[ "BSD-2-Clause" ]
null
null
null
''' Rational R1000/400 Backup tape from Datamuseum.dk's BitStore ''' from autoarchaeologist.ddhf.decorated_context import DDHF_Excavation from autoarchaeologist.ddhf.bitstore import FromBitStore from autoarchaeologist.generic.tap_file import TAPfile from autoarchaeologist.generic.ansi_tape_labels import AnsiTapeLabe...
29.482143
74
0.77771
d5d25b20772d45b417c127bc05060d36a3e3880a
2,151
py
Python
src/datasets/tools/config.py
mvrl/lidar-harmonization
c99087fe5f807f3343ec07acd048b21aab57bbf7
[ "CC0-1.0" ]
10
2021-05-07T23:17:12.000Z
2022-02-10T12:47:42.000Z
src/datasets/tools/config.py
mvrl/lidar-harmonization
c99087fe5f807f3343ec07acd048b21aab57bbf7
[ "CC0-1.0" ]
null
null
null
src/datasets/tools/config.py
mvrl/lidar-harmonization
c99087fe5f807f3343ec07acd048b21aab57bbf7
[ "CC0-1.0" ]
1
2021-09-09T03:55:43.000Z
2021-09-09T03:55:43.000Z
from collections import defaultdict from src.config.project import Project from os import getenv from pathlib import Path import tempfile # this it the base config! p = Project() def default_value(): return '' config = defaultdict(default_value) config['name'] = 'my_lidar_collection' config['create_new'] = T...
33.092308
86
0.728033
6c740d73e1b6e67de29a3f2bf03a456e0331134f
7,403
py
Python
release/scripts/mgear/core/utils.py
tk-aria/mgear4
eac1af6882dd7dc4cec1a4b71854040d376704ce
[ "MIT" ]
72
2020-09-28T20:00:59.000Z
2022-03-25T14:35:14.000Z
release/scripts/mgear/core/utils.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
101
2020-09-28T19:53:53.000Z
2022-03-31T01:44:41.000Z
release/scripts/mgear/core/utils.py
Mikfr83/mgear4
2fa28080027f1004e8e0139ccf93f7ec2448b1fd
[ "MIT" ]
32
2020-10-09T10:49:45.000Z
2022-03-31T08:27:37.000Z
"""Utilitie functions""" import os import sys import timeit from functools import wraps from maya import cmds import pymel.core as pm from maya import mel from .six import string_types, PY2 import mgear ########################################################## # UTILS ############################################...
28.148289
79
0.54694
02610b347020210b127dbb338fd307305f111fa9
1,714
py
Python
backend/script/toMongo.py
compsocial/CENSE
aca4b028e09c24f37eca2ff66ef6d2c1384946d2
[ "MIT" ]
null
null
null
backend/script/toMongo.py
compsocial/CENSE
aca4b028e09c24f37eca2ff66ef6d2c1384946d2
[ "MIT" ]
null
null
null
backend/script/toMongo.py
compsocial/CENSE
aca4b028e09c24f37eca2ff66ef6d2c1384946d2
[ "MIT" ]
1
2020-10-14T14:23:32.000Z
2020-10-14T14:23:32.000Z
# -*- coding: utf-8 -*- #!/usr/bin/Python2.7 # #Author:- Anurag Shivaprasad #Date:- October 2016 #Objective:- To Write to and update documents in mongodb. import pandas as pd from bson.json_util import dumps import json from datetime import datetime def toMongo(keyword,mongoconnect,collection,timestamp): '''Given a ...
30.607143
155
0.716453
363e69bd934c158709dbe51b62c17e79d65fcb16
9,958
py
Python
handle-mockup/handle_mock.py
sara-nl/surfsara-handle-client-cpp
511441fa42b6924dd8c1e0c287ac6adc167621be
[ "Apache-2.0" ]
null
null
null
handle-mockup/handle_mock.py
sara-nl/surfsara-handle-client-cpp
511441fa42b6924dd8c1e0c287ac6adc167621be
[ "Apache-2.0" ]
2
2019-02-23T21:07:37.000Z
2019-02-23T21:29:50.000Z
handle-mockup/handle_mock.py
sara-nl/surfsara-handle-client-cpp
511441fa42b6924dd8c1e0c287ac6adc167621be
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from flask import Flask, request from werkzeug import ImmutableMultiDict from flask_restful import Resource, Api from pprint import pprint import argparse import os import re import sys import atexit HANDLE_SUCCESS = 1 HANDLE_ERROR = 2 HANDLE_SERVER_TOO_BUSY = 3 HANDLE_PROTOCOL_ERROR = 4 HANDLE_...
38.447876
77
0.525808
12496a63e01005c430aac5075561e37a3bdf2e08
1,139
py
Python
mayan/apps/file_metadata/tests/test_indexing.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
null
null
null
mayan/apps/file_metadata/tests/test_indexing.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
10
2021-03-19T23:48:12.000Z
2022-03-12T00:41:49.000Z
mayan/apps/file_metadata/tests/test_indexing.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2020-12-17T02:35:09.000Z
2020-12-17T02:35:09.000Z
from mayan.apps.common.tests.base import BaseTransactionTestCase from mayan.apps.document_indexing.models import Index, IndexInstanceNode from mayan.apps.document_indexing.tests.literals import TEST_INDEX_LABEL from mayan.apps.documents.tests.base import DocumentTestMixin from .literals import ( TEST_FILE_METADATA...
34.515152
75
0.751536
7806660058321e8c1afdbb1fe664b77c8e5213df
197
py
Python
scanpy/external/pl.py
QuarkFang/scanpy
f2e315525defcafd7971824248c4abbf9b51cee8
[ "BSD-3-Clause" ]
1
2020-01-17T17:52:05.000Z
2020-01-17T17:52:05.000Z
scanpy/external/pl.py
QuarkFang/scanpy
f2e315525defcafd7971824248c4abbf9b51cee8
[ "BSD-3-Clause" ]
null
null
null
scanpy/external/pl.py
QuarkFang/scanpy
f2e315525defcafd7971824248c4abbf9b51cee8
[ "BSD-3-Clause" ]
2
2020-09-08T21:27:54.000Z
2021-02-11T16:32:14.000Z
# Do not put this into its own module as it’s 99% the same as other functions # from that module. from ..plotting._tools.scatterplots import phate from ..plotting._tools.scatterplots import trimap
39.4
77
0.786802
83e2391b6ff499a51720dc98c780258b317eb94f
15,639
py
Python
src/poetry/mixology/incompatibility.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
src/poetry/mixology/incompatibility.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
src/poetry/mixology/incompatibility.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING from typing import Callable from typing import Iterator from poetry.mixology.incompatibility_cause import ConflictCause from poetry.mixology.incompatibility_cause import DependencyCause from poetry.mixology.incompatibility_cause import NoVersionsCaus...
34.221007
87
0.575996
732ec873aa7635b6789dcc31746f98089987f82a
405
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/camera_tasks/migrations/0002_cameratask_send_video_to_cloud_threshold.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/camera_tasks/migrations/0002_cameratask_send_video_to_cloud_threshold.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/camera_tasks/migrations/0002_cameratask_send_video_to_cloud_threshold.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
# Generated by Django 3.0.8 on 2020-10-28 05:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("camera_tasks", "0001_initial"), ] operations = [ migrations.AddField( model_name="cameratask", name="send_video_to_c...
21.315789
50
0.617284
c0265ec71914061b2c193426c2638a20197c54ab
14,346
py
Python
env/lib/python3.6/site-packages/matplotlib/patheffects.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
env/lib/python3.6/site-packages/matplotlib/patheffects.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
6
2018-08-28T12:33:14.000Z
2019-05-07T20:32:42.000Z
env/lib/python3.6/site-packages/matplotlib/patheffects.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
""" Defines classes for path effects. The path effects are supported in :class:`~matplotlib.text.Text`, :class:`~matplotlib.lines.Line2D` and :class:`~matplotlib.patches.Patch`. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib...
36.411168
86
0.610972
b3d985be5ac910f25ab184d14492c22a57ec0b15
582
py
Python
mysite/distribuidores/migrations/0002_auto_20210322_0513.py
oxigenocc/oxigeno.cc
4a540950d4b86bf87427e0421ecb34688f0269f8
[ "MIT" ]
5
2021-02-15T06:22:02.000Z
2021-04-01T21:35:37.000Z
mysite/distribuidores/migrations/0002_auto_20210322_0513.py
oxigenocc/oxigeno.cc
4a540950d4b86bf87427e0421ecb34688f0269f8
[ "MIT" ]
1
2021-03-06T19:16:06.000Z
2021-03-06T19:16:06.000Z
mysite/distribuidores/migrations/0002_auto_20210322_0513.py
oxigenocc/oxigeno.cc
4a540950d4b86bf87427e0421ecb34688f0269f8
[ "MIT" ]
2
2021-02-12T01:33:34.000Z
2021-03-06T23:14:43.000Z
# Generated by Django 3.1.5 on 2021-03-22 05:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('distribuidores', '0001_initial'), ] operations = [ migrations.AddField( model_name='distribuidor', name='horario', ...
24.25
63
0.587629
76751703f68cf24ca8ac3ab1fcae55ed3cb08fa3
1,477
py
Python
src/gui/VisObject/AddAlternativeWindow.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/VisObject/AddAlternativeWindow.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/VisObject/AddAlternativeWindow.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from PyQt5 import QtWidgets import sys, os.path as op path1 = op.join( op.abspath(op.dirname(__file__)), '..', '..', 'Structure') path2 = op.join( op.abspath(op.dirname(__file__)), '..', '..') sys.path.append(path1) sys.path.append(path2) from Structure import * from .Cha...
39.918919
159
0.645227
c3cdd7c7910b135dc6f9891913858f2b45952595
3,795
py
Python
generate_output.py
ShubhamPatil7/Stereo-Images-Depth-Estimation
d610c6011f7f404fb068f136f8d464d7f46108aa
[ "MIT" ]
5
2019-08-02T17:20:28.000Z
2022-01-05T17:07:32.000Z
generate_output.py
ShubhamPatil7/Stereo-Images-Depth-Estimation
d610c6011f7f404fb068f136f8d464d7f46108aa
[ "MIT" ]
1
2020-03-22T07:31:50.000Z
2020-03-22T07:31:50.000Z
generate_output.py
ShubhamPatil7/Stereo-Images-Depth-Estimation
d610c6011f7f404fb068f136f8d464d7f46108aa
[ "MIT" ]
2
2021-01-21T02:40:03.000Z
2021-11-08T11:05:44.000Z
from __future__ import print_function import argparse import time import numpy as np import skimage import skimage.io import skimage.transform import torch import torch.nn.parallel import torch.utils.data from torch.autograd import Variable from models import * from utils import preprocess parser = argparse.ArgumentPa...
34.5
117
0.657971
1c4018ebeed7341777b2f8ab65eb0279eba32088
1,005
py
Python
official/modeling/hyperparams/__init__.py
davidnugent2425/models
4b266855705212c21af762df72783d816596a790
[ "Apache-2.0" ]
1
2021-05-06T16:04:17.000Z
2021-05-06T16:04:17.000Z
official/modeling/hyperparams/__init__.py
parthsaxena1909/models
440e7851f50cc7a7bcc8f4d7a4d6ae3861f60ade
[ "Apache-2.0" ]
null
null
null
official/modeling/hyperparams/__init__.py
parthsaxena1909/models
440e7851f50cc7a7bcc8f4d7a4d6ae3861f60ade
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 The TensorFlow 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 ...
47.857143
110
0.727363
fe7edc412c549b554f7e59909d467d96c772d986
7,537
py
Python
src/natnet/protocol/ModelDefinitionsMessage.py
leoscholl/python_natnet
dcb6fd0a2b7c8c5fe92c26595f50bd9a5d649368
[ "BSD-3-Clause" ]
5
2018-04-02T11:21:58.000Z
2021-03-04T02:19:46.000Z
src/natnet/protocol/ModelDefinitionsMessage.py
leoscholl/python_natnet
dcb6fd0a2b7c8c5fe92c26595f50bd9a5d649368
[ "BSD-3-Clause" ]
6
2018-01-24T15:22:10.000Z
2022-02-22T14:55:16.000Z
src/natnet/protocol/ModelDefinitionsMessage.py
leoscholl/python_natnet
dcb6fd0a2b7c8c5fe92c26595f50bd9a5d649368
[ "BSD-3-Clause" ]
12
2018-11-27T17:09:12.000Z
2022-03-02T11:18:12.000Z
# coding: utf-8 """ModelDef message implementation. Copyright (c) 2017, Matthew Edwards. This file is subject to the 3-clause BSD license, as found in the LICENSE file in the top-level directory of this distribution and at https://github.com/mje-nz/python_natnet/blob/master/LICENSE. No part of python_natnet, includin...
31.801688
117
0.66817
8acab9c8bb3f8aaf46388c60756401825b528afa
25,094
py
Python
tests/integration/test_validate.py
Kirill888/eo-datasets
3c38a5a740980389452884ba7a53fdee79f7cf1a
[ "Apache-2.0" ]
null
null
null
tests/integration/test_validate.py
Kirill888/eo-datasets
3c38a5a740980389452884ba7a53fdee79f7cf1a
[ "Apache-2.0" ]
null
null
null
tests/integration/test_validate.py
Kirill888/eo-datasets
3c38a5a740980389452884ba7a53fdee79f7cf1a
[ "Apache-2.0" ]
null
null
null
import operator from pathlib import Path from textwrap import dedent from typing import Dict, Union, Mapping, Sequence, Optional, Tuple import numpy as np import pytest import rasterio from click.testing import CliRunner, Result from rasterio.io import DatasetWriter from eodatasets3 import serialise, validate from eo...
33.018421
117
0.613812
d4e53698d0d188b176c256aa2b025a1223ecabb9
29,309
py
Python
myvenv/lib/python3.6/site-packages/textblob/blob.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
myvenv/lib/python3.6/site-packages/textblob/blob.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
myvenv/lib/python3.6/site-packages/textblob/blob.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
# -*- coding: utf-8 -*- """Wrappers for various units of text, including the main :class:`TextBlob <textblob.blob.TextBlob>`, :class:`Word <textblob.blob.Word>`, and :class:`WordList <textblob.blob.WordList>` classes. Example usage: :: >>> from textblob import TextBlob >>> b = TextBlob("Simple is better than c...
37.1
101
0.622573
f0512956e47c7d77a44bacb10593cc9c8a84f5b3
7,091
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/operations/_service_diagnostic_settings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/operations/_service_diagnostic_settings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_07_01/operations/_service_diagnostic_settings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.975758
140
0.677337
99f87e4bdb673834e29ddaf0d8d03c79d648ef42
5,096
py
Python
fline/utils/logging/base.py
asromahin/fline
a34243878093b3b883607557eeaf968ef4b8acf6
[ "MIT" ]
5
2021-07-01T08:19:51.000Z
2022-03-28T06:09:55.000Z
fline/utils/logging/base.py
asromahin/fline
a34243878093b3b883607557eeaf968ef4b8acf6
[ "MIT" ]
1
2022-03-21T02:42:44.000Z
2022-03-28T06:10:57.000Z
fline/utils/logging/base.py
asromahin/fline
a34243878093b3b883607557eeaf968ef4b8acf6
[ "MIT" ]
null
null
null
from collections import defaultdict import numpy as np import typing as tp from fline.utils.saver import Modes from fline.utils.logging.base_group import BaseGroup class EnumLogDataTypes: image = 'log_image' metric = 'log_metric' loss = 'log_loss' class BaseLogger: def __init__( self, ...
43.555556
96
0.612049
2d68885b9960a46383102fc62685fc731428e3b7
837
py
Python
exercices/run-length-encoding/run_length_encoding.py
gkaeso/exercism-python
00360effcc1eceadfdf6e342ff52bd6284b9bc87
[ "MIT" ]
null
null
null
exercices/run-length-encoding/run_length_encoding.py
gkaeso/exercism-python
00360effcc1eceadfdf6e342ff52bd6284b9bc87
[ "MIT" ]
null
null
null
exercices/run-length-encoding/run_length_encoding.py
gkaeso/exercism-python
00360effcc1eceadfdf6e342ff52bd6284b9bc87
[ "MIT" ]
null
null
null
def decode(string): decoded: list[str] = [] number: str = '' for char in string: if char.isnumeric(): number += char else: if not number: number = '1' decoded.append(int(number) * char) number = '' return ''.join(decoded) ...
22.621622
63
0.485066
f6e63f88b207ad4f9fb86d6bf32a7b5ddc1248e8
13,822
py
Python
zipline/finance/commission.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
6
2017-12-11T06:12:00.000Z
2019-05-23T17:39:10.000Z
zipline/finance/commission.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
null
null
null
zipline/finance/commission.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
1
2018-01-26T14:19:38.000Z
2018-01-26T14:19:38.000Z
# # Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
36.183246
79
0.645637
ff4d0add956d39e4562210c252ca488cc2f2c9c6
3,293
py
Python
django/contrib/gis/gdal/prototypes/srs.py
Yuanoung/djg-master
40413f268dd7dc3ca2d48f51c9327928b0b922de
[ "BSD-3-Clause" ]
91
2015-01-05T01:10:51.000Z
2021-09-26T18:01:53.000Z
django/contrib/gis/gdal/prototypes/srs.py
0xgpapad/django-compositepks
ed6b76f1c44363a14c3b8c7d7374360ab7a7ad6a
[ "BSD-3-Clause" ]
4
2015-07-05T21:09:37.000Z
2019-09-06T14:34:59.000Z
django/contrib/gis/gdal/prototypes/srs.py
0xgpapad/django-compositepks
ed6b76f1c44363a14c3b8c7d7374360ab7a7ad6a
[ "BSD-3-Clause" ]
32
2015-04-03T04:29:45.000Z
2021-09-14T21:36:02.000Z
from ctypes import c_char_p, c_int, c_void_p, POINTER from django.contrib.gis.gdal.libgdal import lgdal, std_call from django.contrib.gis.gdal.prototypes.generation import \ const_string_output, double_output, int_output, \ srs_output, string_output, void_output ## Shortcut generation for routines with known p...
45.736111
112
0.790768
54a73a5ab40be689ba9a96b8c67da7bab9a1f35b
16,606
py
Python
test/blocksparse_matmul_test.py
alimhanif/blocksparse
89074c5ccf78e3a88b4aa2aefc9e208d4773dcbc
[ "MIT" ]
903
2017-12-06T17:14:17.000Z
2022-03-12T10:44:23.000Z
test/blocksparse_matmul_test.py
alimhanif/blocksparse
89074c5ccf78e3a88b4aa2aefc9e208d4773dcbc
[ "MIT" ]
49
2017-12-08T19:11:15.000Z
2022-02-08T09:18:28.000Z
test/blocksparse_matmul_test.py
alimhanif/blocksparse
89074c5ccf78e3a88b4aa2aefc9e208d4773dcbc
[ "MIT" ]
165
2017-12-06T21:13:45.000Z
2022-01-20T08:52:03.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function from time import time import sys import networkx import numpy as np import tensorflow as tf import blocksparse as bs np.set_printoptions(threshold=8193, linewidth=600, formatter={...
38.439815
145
0.455799
8bbacb08a59a8719a99065de10f53eafebccac1e
4,043
py
Python
eventvec/server/data_handlers/data_handler.py
vedmathai/event-vec
a43cc47c3ce7fc33092ade42f8f3b7a36a84fdf9
[ "MIT" ]
null
null
null
eventvec/server/data_handlers/data_handler.py
vedmathai/event-vec
a43cc47c3ce7fc33092ade42f8f3b7a36a84fdf9
[ "MIT" ]
null
null
null
eventvec/server/data_handlers/data_handler.py
vedmathai/event-vec
a43cc47c3ce7fc33092ade42f8f3b7a36a84fdf9
[ "MIT" ]
null
null
null
import random import torch import json from eventvec.server.model.event_models.event_model import key_fn PREPOSITIONS_FILE = 'eventvec/server/data/timebank_prepositions.json' WORDS_FILE = 'local/data/word2index.txt' PREP_LIST = ['AFTER', 'BEFORE', 'IS_INCLUDED'][0:3] SMALL_E = 1e-4 class DataHandler(): def __...
35.464912
87
0.655949
ad38901b3beb16e74d81490e460845a9cc958eb3
280
py
Python
backend/src/models/Patient.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
1
2022-03-11T14:07:16.000Z
2022-03-11T14:07:16.000Z
backend/src/models/Patient.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
3
2022-02-25T22:46:46.000Z
2022-03-30T08:19:41.000Z
backend/src/models/Patient.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
1
2022-03-31T14:35:51.000Z
2022-03-31T14:35:51.000Z
from .db import db class Patient(db.Model): __tablename__ = "tbl_patient" id = db.Column(db.Integer(), primary_key=True) hospital_number = db.Column(db.String(), nullable=False, unique=True) national_number = db.Column(db.String(), nullable=False, unique=True)
28
73
0.710714
f51a71c5a0d876b5700dccd4718d318fb550f51b
3,683
py
Python
model/loss.py
huchenxucs/Daft-Exprt
c3ca26714d805ef23c0bfe3144cbc95252a94ba2
[ "MIT" ]
41
2021-08-09T08:51:25.000Z
2022-02-24T09:00:35.000Z
model/loss.py
huchenxucs/Daft-Exprt
c3ca26714d805ef23c0bfe3144cbc95252a94ba2
[ "MIT" ]
7
2021-08-12T07:39:23.000Z
2022-03-31T13:57:20.000Z
model/loss.py
huchenxucs/Daft-Exprt
c3ca26714d805ef23c0bfe3144cbc95252a94ba2
[ "MIT" ]
8
2021-08-10T01:35:19.000Z
2021-12-06T19:23:40.000Z
import torch import torch.nn as nn from torch.nn import functional as F class DaftExprtLoss(nn.Module): """ Daft-Exprt Loss """ def __init__(self, preprocess_config, model_config, train_config): super(DaftExprtLoss, self).__init__() self.log_duration = preprocess_config["preprocessi...
36.465347
109
0.616345
f7fac57e485bfb4af3770b8aeac5249a26e089ce
8,089
py
Python
test/functional/wallet_createwallet.py
shamimiceewu025/glee
aa0dc8240f2552e4c64a0b722d4e5f25dd981e66
[ "MIT" ]
null
null
null
test/functional/wallet_createwallet.py
shamimiceewu025/glee
aa0dc8240f2552e4c64a0b722d4e5f25dd981e66
[ "MIT" ]
null
null
null
test/functional/wallet_createwallet.py
shamimiceewu025/glee
aa0dc8240f2552e4c64a0b722d4e5f25dd981e66
[ "MIT" ]
1
2020-11-04T07:04:44.000Z
2020-11-04T07:04:44.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The GleecBTC Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test createwallet arguments. """ from test_framework.test_framework import GleecBTCTestFramework from...
59.477941
303
0.705279
59cfc51012436cee8df7432ce9b2a7c9651d323e
4,584
py
Python
candig/server/datamodel/ontologies.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
4
2019-05-08T20:42:10.000Z
2021-08-13T16:39:38.000Z
candig/server/datamodel/ontologies.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
102
2019-04-03T23:08:46.000Z
2021-11-28T19:41:38.000Z
candig/server/datamodel/ontologies.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
6
2017-10-31T13:10:21.000Z
2018-10-30T02:09:45.000Z
""" Support for Ontologies. """ import collections import os.path import candig.server.exceptions as exceptions import candig.server.datamodel.obo_parser as obo_parser import candig.schemas.protocol as protocol SEQUENCE_ONTOLOGY_PREFIX = "SO" class OboReader(obo_parser.OBOReader): """ We extend the OBORe...
32.28169
77
0.617583
de9d0b25d91ed6db172319b946ba8772786f908f
3,739
py
Python
parser/team21/Analisis_Ascendente/reportes/Reportes.py
susanliss/tytus
a613a2352cf4a1d0e90ce27bb346ab60ed8039cc
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team21/Analisis_Ascendente/reportes/Reportes.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team21/Analisis_Ascendente/reportes/Reportes.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
class Error: def __init__(self, TIPO, LEXEMA, FIL ,COL): self.TIPO = TIPO self.LEXEMA = LEXEMA self.COL = COL self.FIL =FIL class RealizarReportes: def generar_reporte_lexicos(self,lista): # print("estoy generando mi reporte") nombre = "ErroresLexicos.html" ...
27.291971
55
0.442097
d61b0406ab9de1d7e2c0d9834178f7d034b03eef
448
py
Python
examples/sample.py
Nelson-Gon/cellseg
2cf6f7fc6809570b821fc4731b7d9e0f494c4941
[ "MIT" ]
null
null
null
examples/sample.py
Nelson-Gon/cellseg
2cf6f7fc6809570b821fc4731b7d9e0f494c4941
[ "MIT" ]
1
2021-03-21T05:12:09.000Z
2021-03-21T05:12:09.000Z
examples/sample.py
Nelson-Gon/cellseg
2cf6f7fc6809570b821fc4731b7d9e0f494c4941
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) #sys.path.append(0, ) if __name__ == "__main__": from cellseg.data import * from cellseg.utils import show_images test = DataProcessor(image_dir="data/train/images", label_dir="data/train/masks", ...
21.333333
85
0.665179
deffbac4c9e873c152f2e826ea4e97b8ceb1a873
6,430
py
Python
Iceword/IceWord.py
KrbAlmryde/Utilities
ca41742ea6e18b3042fa13a7ead26725f305b9f3
[ "MIT" ]
3
2016-03-14T10:28:21.000Z
2020-11-03T03:21:23.000Z
Iceword/IceWord.py
KrbAlmryde/Utilities
ca41742ea6e18b3042fa13a7ead26725f305b9f3
[ "MIT" ]
null
null
null
Iceword/IceWord.py
KrbAlmryde/Utilities
ca41742ea6e18b3042fa13a7ead26725f305b9f3
[ "MIT" ]
2
2020-05-02T13:41:02.000Z
2020-11-03T03:21:26.000Z
from MRI import fMRI import os from subprocess import check_output class Iceword(fMRI): """docstring for Iceword""" def __init__(self, scan): self.scan = scan def checkPath(self, path, alt, imgFile): """Check that the path to file exists, if it doesnt, test the alternate Params: ...
37.16763
153
0.499689
4c848e1887c0ec6de87b3dddaaf08d9598f861f2
4,062
py
Python
samples/openapi3/client/petstore/python-legacy/petstore_api/models/special_model_name.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
11,868
2018-05-12T02:58:07.000Z
2022-03-31T21:19:39.000Z
samples/openapi3/client/petstore/python-legacy/petstore_api/models/special_model_name.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
9,672
2018-05-12T14:25:43.000Z
2022-03-31T23:59:30.000Z
samples/openapi3/client/petstore/python-legacy/petstore_api/models/special_model_name.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
4,776
2018-05-12T12:06:08.000Z
2022-03-31T19:52:51.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
30.772727
174
0.610783
b81d80a78c91d769ff51a4be16ff0081d76c7664
1,476
py
Python
pcat2py/class/217730e8-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/217730e8-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/217730e8-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 217730e8-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
38.842105
161
0.606369
8a305ec656e4dbeb1714e6d0af7316babfed2cab
16,418
py
Python
mbuild/tests/test_coordinate_transform.py
uppittu11/mbuild
3e7df173f2d8e8de977dcdbca42e658ba22b8064
[ "MIT" ]
null
null
null
mbuild/tests/test_coordinate_transform.py
uppittu11/mbuild
3e7df173f2d8e8de977dcdbca42e658ba22b8064
[ "MIT" ]
null
null
null
mbuild/tests/test_coordinate_transform.py
uppittu11/mbuild
3e7df173f2d8e8de977dcdbca42e658ba22b8064
[ "MIT" ]
null
null
null
import itertools as itt import numpy as np import pytest from mbuild.coordinate_transform import (Translation, CoordinateTransform, RotationAroundZ, RotationAroundY, RotationAroundX, Rotation, Ch...
41.98977
88
0.584785
08941331030f90d4c718faf888281c038f75336b
9,062
py
Python
extensions/.stubs/clrclasses/__clrclasses__/System/Net/WebSockets/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/clrclasses/__clrclasses__/System/Net/WebSockets/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/clrclasses/__clrclasses__/System/Net/WebSockets/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
from __clrclasses__.System import IDisposable as _n_0_t_0 from __clrclasses__.System import Uri as _n_0_t_1 from __clrclasses__.System import TimeSpan as _n_0_t_2 from __clrclasses__.System import Byte as _n_0_t_3 from __clrclasses__.System import ArraySegment as _n_0_t_4 from __clrclasses__.System import Nullable as _...
53.305882
222
0.734606
f4dedf8f6c441255e4c530ea268aef989cdece60
4,206
py
Python
lib/net/scg_gcn.py
PKSingh0017/MSCG-Net
b7e79d68f14984fe460eff72bcbb8049e4d2bc9f
[ "MIT" ]
59
2020-04-23T05:27:22.000Z
2022-03-04T13:09:01.000Z
lib/net/scg_gcn.py
PKSingh0017/MSCG-Net
b7e79d68f14984fe460eff72bcbb8049e4d2bc9f
[ "MIT" ]
11
2020-04-29T07:11:58.000Z
2022-03-12T00:28:29.000Z
lib/net/scg_gcn.py
PKSingh0017/MSCG-Net
b7e79d68f14984fe460eff72bcbb8049e4d2bc9f
[ "MIT" ]
20
2020-05-13T07:34:04.000Z
2022-03-22T11:51:48.000Z
import torch import torch.nn as nn class SCG_block(nn.Module): def __init__(self, in_ch, hidden_ch=6, node_size=(32,32), add_diag=True, dropout=0.2): super(SCG_block, self).__init__() self.node_size = node_size self.hidden = hidden_ch self.nodes = node_size[0]*node_size[1] ...
32.353846
102
0.560628
d2d6d602e094bcc872be4b76b77f7c8e715090c2
300
py
Python
src/nodeconductor_gitlab/__init__.py
livenson/nodeconductor-gitlab
f668a1c1738c9ec23bbf8e6b6b27f7bdb491b873
[ "MIT" ]
null
null
null
src/nodeconductor_gitlab/__init__.py
livenson/nodeconductor-gitlab
f668a1c1738c9ec23bbf8e6b6b27f7bdb491b873
[ "MIT" ]
null
null
null
src/nodeconductor_gitlab/__init__.py
livenson/nodeconductor-gitlab
f668a1c1738c9ec23bbf8e6b6b27f7bdb491b873
[ "MIT" ]
null
null
null
from nodeconductor import _get_version __version__ = _get_version('nodeconductor_gitlab') default_app_config = 'nodeconductor_gitlab.apps.GitLabConfig' class ResourceType: GROUP = 'group' PROJECT = 'project' CHOICES = ( (GROUP, 'Group'), (PROJECT, 'Projects'), )
18.75
61
0.683333
9731d1e46af6215c8fa6d746d83ebbf29826552f
862
py
Python
rtamt/parser/ltl/error/parser_error_listener.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
24
2019-12-04T00:20:16.000Z
2022-03-24T17:48:14.000Z
rtamt/parser/ltl/error/parser_error_listener.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
142
2020-01-16T15:36:21.000Z
2022-03-28T20:40:45.000Z
rtamt/parser/ltl/error/parser_error_listener.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
17
2020-07-07T20:32:08.000Z
2022-03-07T07:20:22.000Z
from antlr4.error.ErrorListener import ErrorListener from rtamt.exception.stl.exception import STLParseException class LTLParserErrorListener( ErrorListener ): def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e): raise STLParseException (str(line) + ":" + str(column) + ": Syntax ERROR,...
53.875
108
0.74594
96a4f547f988ea27df482dab47f92ded8a6ccd1c
416
py
Python
conftest.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
conftest.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
conftest.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
import logging import pytest from common.utils import create_browser logger = logging.getLogger(__name__) @pytest.fixture(scope='module') def base_url(): return 'https://ww2.fylehq.com' @pytest.fixture(scope='module') def module_browser(base_url): browser = create_browser() browser.get(base_url) br...
20.8
67
0.728365
71a02998ae2ddbed89184dccefc659b5c662fd65
487
py
Python
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="separatethousands", parent_name="densitymapbox.colorbar", **kwargs, ): super(SeparatethousandsValidator, self).__init__(...
28.647059
80
0.650924
3fe05174042fec2d3e8e53cfe8f628a0c9bff0fb
37,641
py
Python
proj/pred/views.py
NBISweden/web_common_backend
0ebb6887bd31dbaf6d9e2fef81fe1f903b78b7a8
[ "MIT" ]
null
null
null
proj/pred/views.py
NBISweden/web_common_backend
0ebb6887bd31dbaf6d9e2fef81fe1f903b78b7a8
[ "MIT" ]
null
null
null
proj/pred/views.py
NBISweden/web_common_backend
0ebb6887bd31dbaf6d9e2fef81fe1f903b78b7a8
[ "MIT" ]
null
null
null
import os import sys import tempfile import re import subprocess from datetime import datetime from dateutil import parser as dtparser from pytz import timezone import time import math import shutil import json import logging #import models for spyne from django.core.exceptions import ValidationError from django.db.ut...
39.250261
266
0.626418
a4ca543573728f44adefd17600d3d0c801a712d0
11,115
py
Python
myprojectenv/lib/python3.5/site-packages/ansible/modules/cloud/amazon/s3_website.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/cloud/amazon/s3_website.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/cloud/amazon/s3_website.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This is a 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 Ansible library is distributed in the hope that i...
34.626168
156
0.674224
4c4e50211104215eed78c492b4d5bc19bfeebe03
78,659
py
Python
ckanext/datastore/backend/postgres.py
aramboi/ckan
e25a0e53541a54bdfeeae6cbb13280810e2de0d5
[ "BSD-3-Clause" ]
2
2017-05-15T08:16:49.000Z
2019-05-30T23:53:39.000Z
ckanext/datastore/backend/postgres.py
aramboi/ckan
e25a0e53541a54bdfeeae6cbb13280810e2de0d5
[ "BSD-3-Clause" ]
1
2021-05-13T11:24:02.000Z
2021-05-13T11:24:02.000Z
ckanext/datastore/backend/postgres.py
cascaoSDC/ckan
75a08caa7c688ce70229dfea7070cc667a15c5e8
[ "BSD-3-Clause" ]
4
2018-10-08T12:05:16.000Z
2021-11-24T16:18:52.000Z
# -*- coding: utf-8 -*- import copy import logging import sys import sqlalchemy import os import pprint import sqlalchemy.engine.url as sa_url import datetime import hashlib import json from collections import OrderedDict import six from six.moves.urllib.parse import ( urlencode, unquote, urlunparse, parse_qsl, u...
35.754091
79
0.582044
25499a4e5828aa11eb7139915d02f9a3c5a2799f
47
py
Python
Cursoemvideo/Desafios/Desafio 1.py
Guilherme-Lanna/Python
fc5b677300f9829eb3ef58c288a083e398ada3fa
[ "MIT" ]
null
null
null
Cursoemvideo/Desafios/Desafio 1.py
Guilherme-Lanna/Python
fc5b677300f9829eb3ef58c288a083e398ada3fa
[ "MIT" ]
null
null
null
Cursoemvideo/Desafios/Desafio 1.py
Guilherme-Lanna/Python
fc5b677300f9829eb3ef58c288a083e398ada3fa
[ "MIT" ]
null
null
null
nome = input('Qual Γ© o seu nome?') print(nome)
15.666667
34
0.659574
fa81f5755a12d69555277efe068ec7b3f0a81f7f
3,117
py
Python
pype/vendor/ffmpeg/_ffmpeg.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/vendor/ffmpeg/_ffmpeg.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/vendor/ffmpeg/_ffmpeg.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
from __future__ import unicode_literals #from past.builtins import basestring from ._utils import basestring from .nodes import ( filter_operator, GlobalNode, InputNode, MergeOutputsNode, OutputNode, output_operator, ) def input(filename, **kwargs): """Input file URL (ffmpeg ``-i`` optio...
30.262136
90
0.655438
a08b76568c3ac830b6ab0f0c13de6be3b9b7f2ae
6,010
py
Python
tests/test_query.py
diefans/python-arangodb
e4059954a7a1c86e382ba18ae5be77b09b95e845
[ "Apache-2.0" ]
1
2015-07-26T19:29:26.000Z
2015-07-26T19:29:26.000Z
tests/test_query.py
diefans/python-arangodb
e4059954a7a1c86e382ba18ae5be77b09b95e845
[ "Apache-2.0" ]
null
null
null
tests/test_query.py
diefans/python-arangodb
e4059954a7a1c86e382ba18ae5be77b09b95e845
[ "Apache-2.0" ]
null
null
null
def test_iter_expr(): from arangodb import query q = query.Expression() assert list(q) == [q] def test_chain(): from arangodb import query q = query.Chain((query.SPACE, query.Term("foo"), query.Term("bar"), query.SPACE)) qstr, params = q.query() assert qstr == " foobar " assert pa...
19.834983
105
0.567388
dd569f08c2747f92eb7f956c24d6207265c43017
1,928
py
Python
source-code/Falling Squares 699.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Falling Squares 699.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Falling Squares 699.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 699. Falling Squares # ttungl@gmail.com class Solution(object): def fallingSquares(self, positions): """ :type positions: List[List[int]] :rtype: List[int] """ # sol 1: using dictionary. # find nearby positions, then find the heights of blocks based on existing and ...
36.377358
114
0.496888
4829f55b83ec045ce2b6f87d7ce27f7c9ba4a4e3
1,525
py
Python
Collections-a-installer/community-general-2.4.0/tests/unit/plugins/module_utils/test_saslprep.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/tests/unit/plugins/module_utils/test_saslprep.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
Collections-a-installer/community-general-2.4.0/tests/unit/plugins/module_utils/test_saslprep.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Andrey Tuzhilin <andrei.tuzhilin@gmail.com> # Copyright: (c) 2020, Andrew Klychkov (@Andersson007) <aaklychkov@mail.ru> from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible_collections.community.general.plugi...
27.232143
88
0.633443
e098c175bb66ad727abd4f404df3bec00024bd4d
19,502
py
Python
compose/cli/main.py
YelpArchive/docker-compose
581dae0e955ee90fddea67b18984a107f93ba624
[ "Apache-2.0" ]
10
2015-06-22T04:29:39.000Z
2021-12-29T11:12:50.000Z
compose/cli/main.py
YelpArchive/docker-compose
581dae0e955ee90fddea67b18984a107f93ba624
[ "Apache-2.0" ]
3
2015-01-12T12:00:27.000Z
2015-03-13T16:03:40.000Z
compose/cli/main.py
Yelp/fig
581dae0e955ee90fddea67b18984a107f93ba624
[ "Apache-2.0" ]
34
2016-10-19T11:23:11.000Z
2022-02-17T13:45:23.000Z
from __future__ import print_function from __future__ import unicode_literals from inspect import getdoc from operator import attrgetter import logging import re import signal import sys from docker.errors import APIError import dockerpty from .. import __version__ from .. import legacy from ..const import DEFAULT_TI...
35.138739
100
0.573941
d162384ce00134215293ef3be8253451480ff5b4
16,550
py
Python
LightGBM_sklearn_scipy_numpy/source/lightgbm/plotting.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
4
2019-05-18T10:50:14.000Z
2021-06-30T14:42:48.000Z
LightGBM_sklearn_scipy_numpy/source/lightgbm/plotting.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
LightGBM_sklearn_scipy_numpy/source/lightgbm/plotting.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2017-10-25T03:19:15.000Z
2020-10-22T11:15:24.000Z
# coding: utf-8 # pylint: disable = C0103 """Plotting Library.""" from __future__ import absolute_import import warnings from copy import deepcopy from io import BytesIO import numpy as np from .basic import Booster from .sklearn import LGBMModel def check_not_tuple_of_2_elements(obj, obj_name='obj'): """check...
37.107623
102
0.635166
46b691b9a5ab045760fabe179db8dd1dec1d8a53
9,488
py
Python
core/src/zeit/content/image/transform.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/content/image/transform.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/content/image/transform.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import PIL.Image import PIL.ImageColor import PIL.ImageEnhance import zeit.cms.repository.folder import zeit.connector.interfaces import zeit.content.image.interfaces import zope.app.appsetup.product import zope.component import zope.interface import zope.security.proxy @zope.component.adapter(zeit.content.image.inte...
38.569106
79
0.651244
a00af3b0da8062595f6c3c99cf6cdcd86e58299d
793
py
Python
tests/test_convolutional_2d_layer.py
helblazer811/ManimMachineLearning
58aec269cf2dea91484d83646b5a72c477a2e7d8
[ "MIT" ]
12
2022-02-17T03:44:31.000Z
2022-03-17T22:05:01.000Z
tests/test_convolutional_2d_layer.py
helblazer811/ManimMachineLearning
58aec269cf2dea91484d83646b5a72c477a2e7d8
[ "MIT" ]
1
2022-02-18T21:40:56.000Z
2022-02-18T21:40:56.000Z
tests/test_convolutional_2d_layer.py
helblazer811/ManimMachineLearning
58aec269cf2dea91484d83646b5a72c477a2e7d8
[ "MIT" ]
null
null
null
from manim import * from manim_ml.neural_network.layers import Convolutional2DLayer from manim_ml.neural_network.neural_network import NeuralNetwork config.pixel_height = 1200 config.pixel_width = 1900 config.frame_height = 12.0 config.frame_width = 12.0 class TestConv2d(Scene): def construct(self): nn =...
30.5
71
0.656999
b30685f1184ac8678b2f5295ca19a8291f193a34
3,347
py
Python
flextensor/examples/opt_gemm_cpu.py
imxian/FlexTensor
311af3362856ea1b0073404fffad42c54585c205
[ "MIT" ]
135
2020-03-15T11:28:48.000Z
2022-03-26T00:54:32.000Z
flextensor/examples/opt_gemm_cpu.py
KnowingNothing/FlexTensor-Micro
6de200326d4999c56af3f3343282149bc5758c15
[ "MIT" ]
11
2020-03-23T11:06:38.000Z
2022-01-24T06:25:41.000Z
flextensor/examples/opt_gemm_cpu.py
KnowingNothing/FlexTensor-Micro
6de200326d4999c56af3f3343282149bc5758c15
[ "MIT" ]
32
2020-03-17T05:12:59.000Z
2022-03-26T00:54:33.000Z
import time import os import torch import argparse from flextensor.examples import FUNC_TABLE from flextensor.test import test_graph_schedule_cpu_general_dx from flextensor.train import Entity, train_op_schedule_cpu_general_dx def run(batch_size, M, N, L, model_path, epoch=5, sample=16, number=100, test=False): e...
36.78022
136
0.618166
002647c0962f0f77cc25544b50d7d0d1e8322be8
12,223
py
Python
nes/peripherals.py
tonybaloney/nes
0da517eb7dc611e12cd9c22a2abd3d127b6a79f4
[ "MIT" ]
88
2021-04-23T16:54:03.000Z
2021-12-24T09:17:51.000Z
nes/peripherals.py
tonybaloney/nes
0da517eb7dc611e12cd9c22a2abd3d127b6a79f4
[ "MIT" ]
1
2021-05-15T08:38:18.000Z
2021-05-15T08:38:18.000Z
nes/peripherals.py
tonybaloney/nes
0da517eb7dc611e12cd9c22a2abd3d127b6a79f4
[ "MIT" ]
1
2021-11-05T21:39:47.000Z
2021-11-05T21:39:47.000Z
import logging # would like to make this not depend on pygame try: import pygame import pygame.freetype has_pygame = True except ImportError: has_pygame = False try: from OpenGL.GL import * has_opengl = True except ImportError: has_opengl = False class ScreenBase: """ Base class f...
38.077882
154
0.640105
5d36049a6e9592cd0c77e5cabbd94811fc11cb36
8,163
py
Python
a2wsgi/wsgi.py
RobbeSneyders/a2wsgi
3c5d70ae29413fffae678623da7abc75b284f4d3
[ "Apache-2.0" ]
51
2020-05-22T00:53:41.000Z
2022-03-30T11:41:04.000Z
a2wsgi/wsgi.py
RobbeSneyders/a2wsgi
3c5d70ae29413fffae678623da7abc75b284f4d3
[ "Apache-2.0" ]
17
2020-07-13T05:21:54.000Z
2022-03-24T16:17:36.000Z
a2wsgi/wsgi.py
RobbeSneyders/a2wsgi
3c5d70ae29413fffae678623da7abc75b284f4d3
[ "Apache-2.0" ]
12
2020-10-22T09:09:10.000Z
2022-03-18T11:39:36.000Z
import asyncio import sys import typing from concurrent.futures import ThreadPoolExecutor from .types import Environ, Message, Receive, Scope, Send, StartResponse, WSGIApp __all__ = ("WSGIMiddleware",) class Body: def __init__(self, loop: asyncio.AbstractEventLoop, receive: Receive) -> None: self.buffer...
35.491304
89
0.563396
a5ea9dd506f9e230d007fe10cebfc825d0321033
3,212
py
Python
backend/backend/old_settings.py
tremendouz/django-todo-app
c665b4292fae7ef5d4c42429e4bef9bbad942568
[ "MIT" ]
null
null
null
backend/backend/old_settings.py
tremendouz/django-todo-app
c665b4292fae7ef5d4c42429e4bef9bbad942568
[ "MIT" ]
null
null
null
backend/backend/old_settings.py
tremendouz/django-todo-app
c665b4292fae7ef5d4c42429e4bef9bbad942568
[ "MIT" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
25.492063
91
0.686177
a8430756dbf6af688ef2e97702543fd6fb173c4c
912
py
Python
tests/test_cli.py
paulhoule/tentacruel
600f39157598b762226a1c07d78966981da5f7f9
[ "MIT" ]
null
null
null
tests/test_cli.py
paulhoule/tentacruel
600f39157598b762226a1c07d78966981da5f7f9
[ "MIT" ]
39
2019-01-12T00:00:48.000Z
2019-05-08T02:06:36.000Z
tests/test_cli.py
paulhoule/tentacruel
600f39157598b762226a1c07d78966981da5f7f9
[ "MIT" ]
null
null
null
from tentacruel.cli.run import separate_commands def test_one_command(): sample =["one","two","three"] output = separate_commands(sample) assert(len(output)==1) assert(output[0] == sample) def test_two_commands(): sample =["i","talk","\\","to","the","wind"] output = separate_commands(sample) ...
29.419355
54
0.586623
9f7580efdf9f362a46228b7709bf9ba433b6cdc5
1,961
py
Python
blog/migrations/0002_auto_20210722_1323.py
mfarjami/Django-project-blog
86cd79c639ae8901c7580732295a020215d99cc1
[ "MIT" ]
1
2021-09-30T20:42:25.000Z
2021-09-30T20:42:25.000Z
blog/migrations/0002_auto_20210722_1323.py
mfarjami/Django-project-blog
86cd79c639ae8901c7580732295a020215d99cc1
[ "MIT" ]
null
null
null
blog/migrations/0002_auto_20210722_1323.py
mfarjami/Django-project-blog
86cd79c639ae8901c7580732295a020215d99cc1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-22 08:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
31.126984
147
0.574197
0435a91df37f50e30ddca249131b05cd63b8c290
402
py
Python
src/Operators/Builder/Builder.py
rainer85ah/VisionViewer
ed163eb64e6c460d40a22e9896504e3899faba78
[ "MIT" ]
1
2018-03-13T14:33:59.000Z
2018-03-13T14:33:59.000Z
src/Operators/Builder/Builder.py
rainer85ah/VisionViewer
ed163eb64e6c460d40a22e9896504e3899faba78
[ "MIT" ]
null
null
null
src/Operators/Builder/Builder.py
rainer85ah/VisionViewer
ed163eb64e6c460d40a22e9896504e3899faba78
[ "MIT" ]
1
2018-03-13T04:09:36.000Z
2018-03-13T04:09:36.000Z
from src.Operators.Descriptor.Descriptor import Descriptor class Builder(Descriptor): def __init__(self): pass def apply(self): pass def getCode(self): pass def helpURL(self): pass def isCompatible(self): pass def description(self): pass ...
13.862069
58
0.587065
043a7fe77c5add8205f88eff93a686bf9390eb1e
13,288
py
Python
vaccine_feed_ingest_schema/location.py
jeremyschlatter/vaccine-feed-ingest-schema
b342937b944ef477fee11512448be39181c1bfb5
[ "MIT" ]
null
null
null
vaccine_feed_ingest_schema/location.py
jeremyschlatter/vaccine-feed-ingest-schema
b342937b944ef477fee11512448be39181c1bfb5
[ "MIT" ]
null
null
null
vaccine_feed_ingest_schema/location.py
jeremyschlatter/vaccine-feed-ingest-schema
b342937b944ef477fee11512448be39181c1bfb5
[ "MIT" ]
null
null
null
"""Normalized Location Schema Spec defined here: https://github.com/CAVaccineInventory/vaccine-feed-ingest/wiki/Normalized-Location-Schema """ import datetime import enum import re from typing import List, Optional, Union from pydantic import ( AnyUrl, EmailStr, Field, HttpUrl, datetime_parse, ...
25.702128
175
0.633128
2ff7e36414dc3e3e3d5fee306830aa034940a908
2,694
py
Python
consumer.py
Fr3027/douban-spider
4ca3915a5b1b8075e03cde5bcc4a50b0e5148fd2
[ "MIT" ]
null
null
null
consumer.py
Fr3027/douban-spider
4ca3915a5b1b8075e03cde5bcc4a50b0e5148fd2
[ "MIT" ]
null
null
null
consumer.py
Fr3027/douban-spider
4ca3915a5b1b8075e03cde5bcc4a50b0e5148fd2
[ "MIT" ]
null
null
null
from threading import Thread import sqlite3 from logHandler import LogHandler from model.topic import Topic from utils import Utils from model.user import User class DiscussionConsumer(Thread): def __init__(self, queue): Thread.__init__(self, name="DiscussionConsumer") self.log = LogHandler("Discu...
34.987013
147
0.53712
04e8e4b783006e3ed0010e3445bb79c4f475654e
997
py
Python
openmolecularsystems/tools/md/energy_minimization.py
dprada/OpenMolecularSystems
5787fc159f87091ec498cf23abd07c1c2aec6138
[ "MIT" ]
1
2021-07-02T14:42:08.000Z
2021-07-02T14:42:08.000Z
openmolecularsystems/tools/md/energy_minimization.py
dprada/OpenMolecularSystems
5787fc159f87091ec498cf23abd07c1c2aec6138
[ "MIT" ]
1
2021-07-25T02:28:07.000Z
2021-07-25T02:28:07.000Z
openmolecularsystems/tools/md/energy_minimization.py
dprada/OpenMolecularSystems
5787fc159f87091ec498cf23abd07c1c2aec6138
[ "MIT" ]
1
2021-06-17T18:56:55.000Z
2021-06-17T18:56:55.000Z
def energy_minimization(item, platform_name='CUDA', verbose=True): from simtk.openmm import LangevinIntegrator, Platform, Context, LocalEnergyMinimizer_minimize from simtk import unit # Integrator. integrator = LangevinIntegrator(0*unit.kelvin, 1.0/unit.picoseconds, 2.0*unit.femtoseconds) # Pla...
28.485714
97
0.729188
d10f8faeaff05d858da1861bc400df0fd39a020b
1,960
py
Python
gym_idsgame/cyber/password.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
null
null
null
gym_idsgame/cyber/password.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
null
null
null
gym_idsgame/cyber/password.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
1
2022-01-11T13:25:16.000Z
2022-01-11T13:25:16.000Z
import itertools import string import secrets import math def attack_password(real, strength,wordlist = "ressources/ech.txt"): if(strength == 0): chars = string.ascii_lowercase + string.digits length = 4 use_wordlist = False max_count = math.inf if(strength == 1): chars ...
34.385965
138
0.617857
522d1113daed8a3af3243620b62b0eb1690d3e7d
1,005
py
Python
2020/04/solution.py
ajitnilakantan/advent-of-code
9015ed5065a4d094387172cb4319ee80274b1138
[ "MIT" ]
null
null
null
2020/04/solution.py
ajitnilakantan/advent-of-code
9015ed5065a4d094387172cb4319ee80274b1138
[ "MIT" ]
null
null
null
2020/04/solution.py
ajitnilakantan/advent-of-code
9015ed5065a4d094387172cb4319ee80274b1138
[ "MIT" ]
null
null
null
valid = set(['ecl', 'pid', 'eyr', 'hcl', 'byr', 'iyr', 'cid', 'hgt']) valid_np = set(['ecl', 'pid', 'eyr', 'hcl', 'byr', 'iyr', 'hgt']) print(valid) print(valid_np) def is_valid(passport): keys = set() toks = passport.split(" ") for tok in toks: kv = tok.split(":") if kv[0]: ke...
21.382979
69
0.548259
b7b7c11252c2f70933aaaf466082b15f8eb4d37d
247
py
Python
api/create_cron.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
api/create_cron.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
api/create_cron.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
from .models import CronJob def create_cron_record(name, msg, status, num_result=0): cron_obj = { 'name': name, 'message': msg, 'num_result': num_result, 'status': status } CronJob.sync_cron(cron_obj)
20.583333
56
0.607287
ba40de62ca5477ef94d4e11ebdd96dda275e5ec0
457
py
Python
user/serializers.py
rudolfce/character-sheeter
bff819831664119c618b003d102e27e0705db877
[ "MIT" ]
null
null
null
user/serializers.py
rudolfce/character-sheeter
bff819831664119c618b003d102e27e0705db877
[ "MIT" ]
null
null
null
user/serializers.py
rudolfce/character-sheeter
bff819831664119c618b003d102e27e0705db877
[ "MIT" ]
1
2020-05-05T22:02:55.000Z
2020-05-05T22:02:55.000Z
"""Defines a serializing schema for the Sheet model.""" from sheeter.database import ma from user.models import User class UserSchema(ma.ModelSchema): """ Base schema for the User model. This serializing schema should be used to return users through the API. """ class Meta: """SheetSche...
19.869565
75
0.673961
33f7a0950eac0058e43f58e3e968c6504fa237e3
2,281
py
Python
Scripts/read_20CRv2.py
whigg/SeaIceVariability
7e9b2423c52a4d4ff5c2efe7ea80b88dbdd02ed2
[ "MIT" ]
9
2016-12-02T20:55:44.000Z
2022-03-21T02:00:44.000Z
Scripts/read_20CRv2.py
zmlabe/SeaIceVariability
7e9b2423c52a4d4ff5c2efe7ea80b88dbdd02ed2
[ "MIT" ]
null
null
null
Scripts/read_20CRv2.py
zmlabe/SeaIceVariability
7e9b2423c52a4d4ff5c2efe7ea80b88dbdd02ed2
[ "MIT" ]
4
2017-12-12T13:38:02.000Z
2021-02-12T19:28:00.000Z
""" Function reads 20CRv2 reanalysis for a variety of variables according to the reader for monthly data. Data is available from 01/1851 through 12/2014 Notes ----- Source : http://www.esrl.noaa.gov/psd/data/gridded/data. ncep.reanalysis.derived.html Author : Zachary Labe Date : 17 February...
26.835294
70
0.575625
7eae5a494457f66e516b8fa8414f3dda6be8b9d7
11,889
py
Python
docs/source/conf.py
BATspock/pyImSegm
2ef33480d7de9fef1254fda6cd7f72aceabe9626
[ "BSD-3-Clause" ]
1
2021-08-09T11:05:26.000Z
2021-08-09T11:05:26.000Z
docs/source/conf.py
BATspock/pyImSegm
2ef33480d7de9fef1254fda6cd7f72aceabe9626
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
BATspock/pyImSegm
2ef33480d7de9fef1254fda6cd7f72aceabe9626
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
34.163793
111
0.642274
3bfca5bf0258ca441c655447c8dde267d880cefb
3,675
py
Python
setup.py
ondevice/ondevice-client
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
2
2016-08-02T15:32:19.000Z
2016-08-25T08:51:50.000Z
setup.py
ondevice/ondevice-python
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
29
2016-07-08T06:56:06.000Z
2016-11-09T22:59:44.000Z
setup.py
ondevice/ondevice-client
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
null
null
null
#!/usr/bin/env python3 # # setup.py (shamelessly copied from https://github.com/pypa/sampleproject/blob/master/setup.py ) # # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname...
34.345794
123
0.659864
da53b4b3149839fde28e8646ad80c817eaab7793
576
py
Python
pyfileconf/data/logic/convert.py
nickderobertis/py-file-conf
100773b86373035a5b485a1ed96d8f5a1d69d066
[ "MIT" ]
2
2020-11-29T19:09:14.000Z
2021-09-11T19:21:21.000Z
pyfileconf/data/logic/convert.py
nickderobertis/py-file-conf
100773b86373035a5b485a1ed96d8f5a1d69d066
[ "MIT" ]
47
2020-02-01T03:54:07.000Z
2022-01-13T02:24:45.000Z
pyfileconf/data/logic/convert.py
nickderobertis/py-file-conf
100773b86373035a5b485a1ed96d8f5a1d69d066
[ "MIT" ]
null
null
null
from typing import Union, Any, Type from pyfileconf.imports.logic.load.klass import class_function_args_as_dict StrOrObj = Union[str, Any] def convert_to_empty_obj_if_necessary(item: StrOrObj, item_class: Type, key_attr: str = 'name') -> Any: from pyfileconf.data.models.collection import SpecificClassCollection...
27.428571
103
0.748264
d401d4280d20fbaae69e2ca851c055ff97438030
593
py
Python
lib/monkey/examples/list.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
3,553
2015-01-29T21:43:36.000Z
2022-03-31T08:41:59.000Z
lib/monkey/examples/list.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
4,247
2015-05-20T15:59:38.000Z
2022-03-31T23:19:12.000Z
lib/monkey/examples/list.py
carrotop/fluent-bit
7083a0edf480f09424f25c8e634e4996bf1e101b
[ "Apache-2.0" ]
1,176
2015-05-20T08:31:11.000Z
2022-03-31T22:40:08.000Z
import monkey import subprocess content = '' def list_cb(vhost, url, get, get_len, post, post_len, header): global content content = "<html><body><h2>Hello friend. You asked for %s.</h2>\n" content += "<pre>" content += subprocess.check_output(['ls', '-lh', '/tmp']) content += "</pre></body></html...
23.72
70
0.625632
9caabfc1e84d482cf57a2de34ffcdc3aebd1c70d
6,728
py
Python
venv/Lib/site-packages/networkx/algorithms/tests/test_core.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
10,024
2015-01-01T13:06:43.000Z
2022-03-31T12:45:25.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_core.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,191
2015-01-01T18:13:11.000Z
2022-03-31T22:06:00.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_core.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,272
2015-01-01T05:04:53.000Z
2022-03-31T17:46:35.000Z
import networkx as nx from networkx.utils import nodes_equal class TestCore: @classmethod def setup_class(cls): # G is the example graph in Figure 1 from Batagelj and # Zaversnik's paper titled An O(m) Algorithm for Cores # Decomposition of Networks, 2003, # http://arXiv.org/ab...
37.377778
82
0.550386
b41fc7bfc01d78c2aa59af88605fba49c26d8f09
143
py
Python
test.py
masahitojp/pybind_training
5d93e630edb8d50c3cd9d19d1acf0c29ffefe7ea
[ "BSD-3-Clause" ]
null
null
null
test.py
masahitojp/pybind_training
5d93e630edb8d50c3cd9d19d1acf0c29ffefe7ea
[ "BSD-3-Clause" ]
null
null
null
test.py
masahitojp/pybind_training
5d93e630edb8d50c3cd9d19d1acf0c29ffefe7ea
[ "BSD-3-Clause" ]
null
null
null
import hello hello.output("Hello, Boost.Python") obj = hello.SomeObject(100) print(obj.get_value()) obj.set_value(10) print(obj.get_value())
15.888889
35
0.748252
9bcd1d77623d50b5b775f2c6a0d6e607f6fba292
3,688
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/defaults_6da4efbc0f60f2cba8351f92d98fdc75.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/defaults_6da4efbc0f60f2cba8351f92d98fdc75.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/defaults_6da4efbc0f60f2cba8351f92d98fdc75.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
40.527473
176
0.70526
7d7fb33c4d35e5c63902a6d9d2a12800027772c3
24,567
py
Python
tests/postgres_tests/test_ranges.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
tests/postgres_tests/test_ranges.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
null
null
null
tests/postgres_tests/test_ranges.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
import datetime import json import unittest from django import forms from django.core import exceptions, serializers from django.db import connection from django.db.models import F from django.test import TestCase, override_settings from django.utils import timezone from . import PostgreSQLTestCase from .models impor...
38.871835
158
0.631864
da07586d7697cf63eab7a64cdc7e5f555a5e0710
4,130
py
Python
tf_tricks/layers/anti_aliasing.py
monkeyhippies/tf-tricks
eca76ed935ba5fad55d6fa8f7f2f09f04664e0c6
[ "MIT" ]
null
null
null
tf_tricks/layers/anti_aliasing.py
monkeyhippies/tf-tricks
eca76ed935ba5fad55d6fa8f7f2f09f04664e0c6
[ "MIT" ]
null
null
null
tf_tricks/layers/anti_aliasing.py
monkeyhippies/tf-tricks
eca76ed935ba5fad55d6fa8f7f2f09f04664e0c6
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np def binomial_filter_1D(dim): """ https://stackoverflow.com/questions/56246970/how-to-apply-a-binomial-low-pass-filter-to-data-in-a-numpy-array """ power = dim - 1 binomial_filter = np.poly1d([1, 1]) ** power binomial_filter = binomial_filter / (2 ** p...
25.974843
113
0.595884
c37f61db23553de720f2659714c3409f4dd1798f
900
py
Python
BBB-firmware/u-boot-v2018.05-rc2/tools/binman/etype/u_boot_spl_bss_pad.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2018-09-28T04:33:26.000Z
2021-03-10T06:29:55.000Z
BBB-firmware/u-boot-v2018.05-rc2/tools/binman/etype/u_boot_spl_bss_pad.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2016-08-30T11:30:25.000Z
2020-12-27T09:58:07.000Z
BBB-firmware/u-boot-v2018.05-rc2/tools/binman/etype/u_boot_spl_bss_pad.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
2
2016-12-30T08:02:57.000Z
2020-05-16T05:59:30.000Z
# Copyright (c) 2016 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # SPDX-License-Identifier: GPL-2.0+ # # Entry-type module for BSS padding for spl/u-boot-spl.bin. This padding # can be added after the SPL binary to ensure that anything concatenated # to it will appear to SPL to be at the end of BSS r...
32.142857
73
0.706667
f1351669ef46f32bb707134552dd4988ebb1dda8
2,107
bzl
Python
apple/bundling/experimental/partials/binary.bzl
kastiglione/rules_apple
3745c3f03b9d29a04671fd4fac96468ca7031fd6
[ "Apache-2.0" ]
null
null
null
apple/bundling/experimental/partials/binary.bzl
kastiglione/rules_apple
3745c3f03b9d29a04671fd4fac96468ca7031fd6
[ "Apache-2.0" ]
null
null
null
apple/bundling/experimental/partials/binary.bzl
kastiglione/rules_apple
3745c3f03b9d29a04671fd4fac96468ca7031fd6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
30.536232
92
0.719981
e57ddc4f34d2f16dc3d7360d9c00e0e441b15cb1
2,516
py
Python
tape.py
JulianoCP/Automatos
53eefd0078f706b51fd74c19720486129fc2431f
[ "MIT" ]
1
2019-04-15T14:54:24.000Z
2019-04-15T14:54:24.000Z
tape.py
JulianoCP/Automatos
53eefd0078f706b51fd74c19720486129fc2431f
[ "MIT" ]
null
null
null
tape.py
JulianoCP/Automatos
53eefd0078f706b51fd74c19720486129fc2431f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- '''@mod tape: mΓ³duloe que representa uma unidade de fita da turing machine''' class Tape: ''' @const: construtor do mΓ³dulo que representa a classe tape (fita) @param whitespace: espaco em branco @param tape_alphabet: alfabeto da fita, do tipo lista ...
33.546667
101
0.59539
8b5cc953a0abff528646c7d3be2974f39cdd62d9
905
py
Python
Basic/04_operator/operator_aritmatika.py
reskimulud/Python
df7f1dd227293db0cfc82c3b2b9381e933e8866a
[ "MIT" ]
1
2021-10-02T22:19:50.000Z
2021-10-02T22:19:50.000Z
Basic/04_operator/operator_aritmatika.py
reskimulud/Python
df7f1dd227293db0cfc82c3b2b9381e933e8866a
[ "MIT" ]
null
null
null
Basic/04_operator/operator_aritmatika.py
reskimulud/Python
df7f1dd227293db0cfc82c3b2b9381e933e8866a
[ "MIT" ]
null
null
null
# operator digunakan untuk menjalankan operasi # antara kedua variabel atau value # contoh angka = 20 angka_kedua = 50 # operator penambahan print(30 + 20) # operator pengurangan print(angka_kedua - angka) # operator perkalian print(3 * 5) # operator pembagi print(20 * 5) # operator modulus # oeprator modulus ...
19.255319
61
0.755801
b4e1b9d7037132562f6b46eba8e89aff31998ae9
2,608
py
Python
terrain.py
hamolicious/Terrain-Generator
eb3614f3b9d6c3d23d4a49c466d018a50df64376
[ "Apache-2.0" ]
null
null
null
terrain.py
hamolicious/Terrain-Generator
eb3614f3b9d6c3d23d4a49c466d018a50df64376
[ "Apache-2.0" ]
null
null
null
terrain.py
hamolicious/Terrain-Generator
eb3614f3b9d6c3d23d4a49c466d018a50df64376
[ "Apache-2.0" ]
null
null
null
import pygame from math import sin, cos, radians from random import randint from vector_class import Vector3D as Vec3, Vector2D as Vec2 from noise import pnoise2 class Terrain: def __init__(self, w, h, scale, pos=(0, 0, 0)): self.pos = Vec3(pos) self.size = Vec2(w, h) self.verts =...
39.515152
166
0.471242