hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1dd38ea121e2d430d7fb7c87f94d9f09bfe54d8a
4,091
py
Python
sources/Lexer.py
juliennix/NXLT
73c1453027230f3073a60758421541086eba1d58
[ "MIT" ]
null
null
null
sources/Lexer.py
juliennix/NXLT
73c1453027230f3073a60758421541086eba1d58
[ "MIT" ]
null
null
null
sources/Lexer.py
juliennix/NXLT
73c1453027230f3073a60758421541086eba1d58
[ "MIT" ]
null
null
null
############################################################################### # Lexer.py # # # # Lexer.py is used to creates Token from an input file # ...
22.983146
97
0.431924
24e39f0ba6855251f5030f81fed79e20fd8db6bc
1,834
py
Python
app/tests/test_users.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
1
2021-06-20T09:08:26.000Z
2021-06-20T09:08:26.000Z
app/tests/test_users.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
null
null
null
app/tests/test_users.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
null
null
null
# Copyright 2021 Victor I. Afolabi # # 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 wri...
29.111111
74
0.71265
d98755068759a97f14136c4e166fd0bd9333e6c3
49
py
Python
pySPACE/tests/utils/__init__.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
32
2015-02-20T09:03:09.000Z
2022-02-25T22:32:52.000Z
pySPACE/tests/utils/__init__.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
5
2015-05-18T15:08:40.000Z
2020-03-05T19:18:01.000Z
pySPACE/tests/utils/__init__.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
18
2015-09-28T07:16:38.000Z
2021-01-20T13:52:19.000Z
""" Utility functions and classes for testing """
49
49
0.734694
b92371291ab95168de1f27f250267ef08e6f2795
925
py
Python
vispy/__init__.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
vispy/__init__.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
vispy/__init__.py
izaid/vispy
402cf95bfef88d70c9c45bb27c532ed72944e14a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ ===== Vispy ===== Vispy is a **high-performance interactive 2D/3D data visualization library**. Vispy leverages the computational power of modern **Graphics Processing U...
28.030303
78
0.709189
792ebb5136484ab2048d6954d0bd9be708b05059
1,967
py
Python
catkin_tools/notifications/impl.py
xqms/catkin_tools
224cfccb8a9f462f2cd17413b87a59f0151ceb2b
[ "Apache-2.0" ]
null
null
null
catkin_tools/notifications/impl.py
xqms/catkin_tools
224cfccb8a9f462f2cd17413b87a59f0151ceb2b
[ "Apache-2.0" ]
null
null
null
catkin_tools/notifications/impl.py
xqms/catkin_tools
224cfccb8a9f462f2cd17413b87a59f0151ceb2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, 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...
34.508772
112
0.675648
393eafd7692da08424dad18ea8fcc5ddc354d48c
2,046
py
Python
Lib/lib-stdwin/rect.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
1
2019-10-25T21:41:07.000Z
2019-10-25T21:41:07.000Z
Lib/lib-stdwin/rect.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/lib-stdwin/rect.py
1byte2bytes/cpython
7fbaeb819ca7b20dca048217ff585ec195e999ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
# Module 'rect'. # # Operations on rectangles. # There is some normalization: all results return the object 'empty' # if their result would contain no points. # Exception. # error = 'rect.error' # The empty rectangle. # empty = (0, 0), (0, 0) # Check if a rectangle is empty. # def is_empty(r): (left, top), (righ...
22.733333
68
0.63783
8ca521b9a52772c8511a43f80e8ea1d82f13c60b
2,427
py
Python
shadowray/core/manager.py
shunf4/Shadowray
3ec2e69a9b079e051983f7d84252ba787ce933a2
[ "MIT" ]
null
null
null
shadowray/core/manager.py
shunf4/Shadowray
3ec2e69a9b079e051983f7d84252ba787ce933a2
[ "MIT" ]
null
null
null
shadowray/core/manager.py
shunf4/Shadowray
3ec2e69a9b079e051983f7d84252ba787ce933a2
[ "MIT" ]
null
null
null
from shadowray.subscribe.parser import Parser from shadowray.core.server import Server from shadowray.core.execute import Execute from shadowray.config.v2ray import SERVER_KEY_FROM_ORIGINAL, SERVER_KEY_FROM_SUBSCRIBE import json class Manager: def __init__(self, subscribe_file_name=None, server_file_name=None, bi...
33.246575
116
0.653482
7bcd6502017ea1fcbcc47a5cea3faf9176fdc200
13,650
py
Python
docker/storperf-master/rest_server.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/rest_server.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/rest_server.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2015 EMC and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # ht...
31.524249
78
0.56359
181348b4483ee54040ad4c3e5897744b41b42249
451
py
Python
tools/mo/openvino/tools/mo/front/tf/swish_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2021-02-01T06:35:55.000Z
2021-02-01T06:35:55.000Z
tools/mo/openvino/tools/mo/front/tf/swish_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
tools/mo/openvino/tools/mo/front/tf/swish_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2021-07-14T07:40:50.000Z
2021-07-27T01:40:03.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.ops.activation_ops import Swish from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.graph.graph import Node class SwishExtractor(FrontExtractorOp): op = 'swish_f32' enabl...
25.055556
62
0.740576
bddcb5c34aed1455d3e0cd157bde46c4233e583b
3,607
py
Python
account/views.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
account/views.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
account/views.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.hashers import make_password from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.views import APIView from rest_framework.response import Response from django.db import Integrit...
41.45977
75
0.607984
093dd3f63c0998ffa39b086ac183fc08861c40d1
127
py
Python
form_monster/fields/str_field.py
jlrickert/form-monster
a0d424f45e27576810cc73356327e3096687b80a
[ "MIT" ]
null
null
null
form_monster/fields/str_field.py
jlrickert/form-monster
a0d424f45e27576810cc73356327e3096687b80a
[ "MIT" ]
null
null
null
form_monster/fields/str_field.py
jlrickert/form-monster
a0d424f45e27576810cc73356327e3096687b80a
[ "MIT" ]
null
null
null
from .base import BaseField class StrField(BaseField): def set_value(self, value): super().set_value(str(value))
18.142857
37
0.692913
c13f9952988d843a1bdb5cf7f2d5eff9af34fa03
19,599
py
Python
git-restore-mtime/git-restore-mtime-modified.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
null
null
null
git-restore-mtime/git-restore-mtime-modified.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
1
2021-11-28T10:28:16.000Z
2021-11-29T08:59:43.000Z
git-restore-mtime/git-restore-mtime-modified.py
TYPO3-Documentation/sphinxcontrib-gitloginfo
5f0ea2e3c69cde680f7431843e41ce598088f04c
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 # # git-restore-mtime - Change mtime of files based on commit date of last change # # Copyright (C) 2012 Rodrigo Silva (MestreLion) <linux@rodrigosilva.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
42.5141
119
0.630542
56cb473d447cf27cf404ad066802bd327d84d3c4
630
py
Python
build/vesc/vesc_msgs/cmake/vesc_msgs-genmsg-context.py
diogolopes18-cyber/F1Tenth_CISTER_Integration
06ff104e1e248e63bf8e433ccd4beea516ebd37b
[ "MIT" ]
null
null
null
build/vesc/vesc_msgs/cmake/vesc_msgs-genmsg-context.py
diogolopes18-cyber/F1Tenth_CISTER_Integration
06ff104e1e248e63bf8e433ccd4beea516ebd37b
[ "MIT" ]
null
null
null
build/vesc/vesc_msgs/cmake/vesc_msgs-genmsg-context.py
diogolopes18-cyber/F1Tenth_CISTER_Integration
06ff104e1e248e63bf8e433ccd4beea516ebd37b
[ "MIT" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/diogo/sims_ws/src/vesc/vesc_msgs/msg/VescState.msg;/home/diogo/sims_ws/src/vesc/vesc_msgs/msg/VescStateStamped.msg" services_str = "" pkg_name = "vesc_msgs" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_includ...
52.5
137
0.784127
ff1cad48a9f0c07bb102e473de29811e3fb93980
3,958
py
Python
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
1,603
2016-03-03T17:21:03.000Z
2020-01-22T22:12:02.000Z
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
1,157
2016-03-03T19:29:22.000Z
2020-01-20T14:41:59.000Z
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
570
2016-03-03T17:21:05.000Z
2020-01-21T06:54:10.000Z
import logging import time from datahub.emitter.mce_builder import make_dataset_urn, make_term_urn from datahub.emitter.mcp import MetadataChangeProposalWrapper # read-modify-write requires access to the DataHubGraph (RestEmitter is not enough) from datahub.ingestion.graph.client import DatahubClientConfig, DataHubGr...
35.026549
87
0.728903
b0328813f0f4edbb24cc46514fe3046bff24c13f
624
py
Python
ool/oppositions/migrations/0036_alter_opposition_commune.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
ool/oppositions/migrations/0036_alter_opposition_commune.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
ool/oppositions/migrations/0036_alter_opposition_commune.py
HeLsEroC/bbr
0dd40bffd05faa777bec3a89dd1712f0f546d60e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-20 14:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0020_alter_user_type'), ('oppositions', '0035_rename_debuty_arret_to_procureur_opposition_deputy_arret_to_p...
29.714286
152
0.68109
9b0b1ac6ccc826ddc8d9c7077b532a27b505f70e
3,973
py
Python
src/helpers/generic.py
chocoogirl/bimbangal_backend
4fb01a435bb024f51eec722946d3dfde438dcb13
[ "Apache-2.0" ]
null
null
null
src/helpers/generic.py
chocoogirl/bimbangal_backend
4fb01a435bb024f51eec722946d3dfde438dcb13
[ "Apache-2.0" ]
3
2019-12-26T16:44:42.000Z
2021-06-01T22:28:13.000Z
src/helpers/generic.py
chocoogirl/bimbangal_backend
4fb01a435bb024f51eec722946d3dfde438dcb13
[ "Apache-2.0" ]
null
null
null
from random import shuffle import json import requests from src.model.models import SearchTermAutoComplete, ImageSearchResponse class GenericHelper(object): def __init__(self, unsplash_dict, pexels_dict): self.unsplash_dict = unsplash_dict self.pexels_dict = pexels_dict self.api_list = [] ...
43.184783
113
0.595016
6e50cd2cd6fbf34a296e2ca1eb80002d745c5dab
19,566
py
Python
sdks/python/apache_beam/ml/gcp/recommendations_ai.py
psobot/beam
d9da8a4dc818b01a86d2dce2e78c0d78b47038bb
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/ml/gcp/recommendations_ai.py
psobot/beam
d9da8a4dc818b01a86d2dce2e78c0d78b47038bb
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/ml/gcp/recommendations_ai.py
psobot/beam
d9da8a4dc818b01a86d2dce2e78c0d78b47038bb
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-06-03T19:54:48.000Z
2021-06-03T19:54:48.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.389078
80
0.667127
f120610c38aecbaa914e96b6b708151cfaf30194
975
py
Python
setup.py
bilelmoussaoui/pyfavicon
ebc74bd3faced9bd84cba25c12da288e7f7753f0
[ "MIT" ]
5
2019-06-06T02:49:23.000Z
2020-12-07T23:25:56.000Z
setup.py
bilelmoussaoui/pyfavicon
ebc74bd3faced9bd84cba25c12da288e7f7753f0
[ "MIT" ]
1
2020-04-13T20:46:13.000Z
2020-04-15T09:46:38.000Z
setup.py
bilelmoussaoui/pyfavicon
ebc74bd3faced9bd84cba25c12da288e7f7753f0
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pyfavicon", version="0.1.1", author="Bilal Elmoussaoui", author_email="bil.elmoussaoui@gmail.com", description="Async favicon fetcher", long_description_content_type="text/markdown", ...
25.657895
54
0.6
dc0374737ed48fda320a26b59fc4277e53642770
1,134
py
Python
pydecoder/json.py
iodevs/pydecoder
7b264ea7b17f5af4a06c190ef0973fb535d28fc3
[ "BSD-3-Clause" ]
2
2017-05-22T10:08:59.000Z
2018-03-02T00:26:05.000Z
pydecoder/json.py
iodevs/pydecoder
7b264ea7b17f5af4a06c190ef0973fb535d28fc3
[ "BSD-3-Clause" ]
1,081
2017-05-22T10:02:34.000Z
2022-03-31T10:20:30.000Z
pydecoder/json.py
iodevs/pydecoder
7b264ea7b17f5af4a06c190ef0973fb535d28fc3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- '''Library fo json decode''' from pyresult import ( ok, error, rmap, fold ) from toolz import curry, get_in from pydecoder.primitives import ( # noqa pylint: disable=unused-import to_int, to_float, to_string, to_bool, null, ) def _to_key_list(keys): i...
21.807692
107
0.60582
849514405445888b37e71c5accb2a10b52ea5c79
12,503
py
Python
tests/integration/s3/test_bucket.py
pfhayes/boto
a9746be5f5cdca073c0013ad61e0c423c197502a
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
tests/integration/s3/test_bucket.py
haandol/boto
a82244fc9024d122c2e16e57f35faaea51b59405
[ "MIT" ]
3
2020-05-25T02:39:14.000Z
2021-06-07T05:26:12.000Z
tests/integration/s3/test_bucket.py
haandol/boto
a82244fc9024d122c2e16e57f35faaea51b59405
[ "MIT" ]
9
2016-02-26T16:47:19.000Z
2022-01-19T07:27:06.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011 Mitch Garnaat http://garnaat.org/ # 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 # witho...
41.400662
85
0.631928
98d7482db60433a8772bd29058ddaa96f4d8d0af
3,225
py
Python
tempest/lib/services/network/__init__.py
sapcc/tempest
93a902072fd9986f2bb660166552f37d9eb5bdbb
[ "Apache-2.0" ]
254
2015-01-05T19:22:52.000Z
2022-03-29T08:14:54.000Z
tempest/lib/services/network/__init__.py
openstack/tempest
c2f5a47cfba430d2086d1e67f4234ca0a9f855ff
[ "Apache-2.0" ]
13
2015-03-02T15:53:04.000Z
2022-02-16T02:28:14.000Z
tempest/lib/services/network/__init__.py
openstack/tempest
c2f5a47cfba430d2086d1e67f4234ca0a9f855ff
[ "Apache-2.0" ]
367
2015-01-07T15:05:39.000Z
2022-03-04T09:50:35.000Z
# Copyright (c) 2016 Hewlett-Packard Enterprise Development Company, L.P. # # 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...
55.603448
79
0.819845
8e4c2905f59fe60291646f311d5e167cb11e65ba
15,548
py
Python
src/data/genome_context.py
cdiaza/dimpl
2e758595b916899b22e72f55bc393653743fd944
[ "MIT" ]
1
2021-01-16T20:39:45.000Z
2021-01-16T20:39:45.000Z
src/data/genome_context.py
cdiaza/dimpl
2e758595b916899b22e72f55bc393653743fd944
[ "MIT" ]
null
null
null
src/data/genome_context.py
cdiaza/dimpl
2e758595b916899b22e72f55bc393653743fd944
[ "MIT" ]
null
null
null
from Bio import Entrez import pandas as pd import numpy as np import os import urllib.request import shutil import gzip import sys from Bio import SeqIO import configparser import subprocess from IPython.core.display import display, HTML, SVG from urllib.error import HTTPError import time from Bio import AlignIO import...
38.580645
291
0.664394
17297042557483bbdc16e305761a6db9f61316d6
4,029
py
Python
mr_scrapper/dao/google_drive.py
Mario8289/mr_scrapper
38c3d0a150a7cb3cd3b1806cd0de8e8c70ea83d5
[ "FTL" ]
null
null
null
mr_scrapper/dao/google_drive.py
Mario8289/mr_scrapper
38c3d0a150a7cb3cd3b1806cd0de8e8c70ea83d5
[ "FTL" ]
null
null
null
mr_scrapper/dao/google_drive.py
Mario8289/mr_scrapper
38c3d0a150a7cb3cd3b1806cd0de8e8c70ea83d5
[ "FTL" ]
null
null
null
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from typing import List from io import StringIO import pandas as pd class GoogleDriveDao: def __init__(self, credentials="mycreds.txt"): self.drive = self._connect(credentials) @staticmethod def _connect(credentials): ...
33.857143
92
0.562671
c8595b0aa6f057d8c00b1053e72bdff06bfea5b2
1,472
py
Python
mne/preprocessing/__init__.py
cverrier/mne-python
6763cac6b4b3d379a9e5319dd3575f1f124c0060
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/preprocessing/__init__.py
cverrier/mne-python
6763cac6b4b3d379a9e5319dd3575f1f124c0060
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/preprocessing/__init__.py
cverrier/mne-python
6763cac6b4b3d379a9e5319dd3575f1f124c0060
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
"""Preprocessing with artifact detection, SSP, and ICA.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD-3-Clause from .flat ...
42.057143
79
0.768342
eeb3209f65917bc8d51bd2ef69a74d115e03fb4c
1,354
py
Python
signals/models.py
fr33ky/signalserver
ce360cd89732c9d9270d7af04e38e55f6570d6a7
[ "MIT" ]
23
2016-03-24T00:31:47.000Z
2022-02-10T21:27:53.000Z
signals/models.py
fr33ky/signalserver
ce360cd89732c9d9270d7af04e38e55f6570d6a7
[ "MIT" ]
148
2016-04-03T00:22:55.000Z
2020-08-01T20:08:03.000Z
signals/models.py
fr33ky/signalserver
ce360cd89732c9d9270d7af04e38e55f6570d6a7
[ "MIT" ]
11
2016-04-24T03:31:31.000Z
2019-09-03T16:51:08.000Z
from django.db import models from django.contrib.postgres.fields import ArrayField class Process(models.Model): file_id = models.IntegerField(default=0) file_name = models.CharField(max_length=400) processed_time = models.DateTimeField() user_name = models.CharField(max_length=100) policy_name = m...
31.488372
53
0.708272
f4237d5c54e03adcd1f07f4747e7ec63ddc27746
23,612
py
Python
sdks/python/apache_beam/coders/coders_test_common.py
rionmonster/beam
dcf3e789ae9e632b10e5a7c7ac2b8d4c07131e09
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/coders/coders_test_common.py
rionmonster/beam
dcf3e789ae9e632b10e5a7c7ac2b8d4c07131e09
[ "Apache-2.0" ]
1
2019-05-18T01:40:53.000Z
2019-05-21T16:25:26.000Z
sdks/python/apache_beam/coders/coders_test_common.py
rionmonster/beam
dcf3e789ae9e632b10e5a7c7ac2b8d4c07131e09
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.667674
80
0.652507
9778c920c0ef45cdf45f90df31e2eec510357a6c
814
py
Python
codenerix_products/migrations/0009_auto_20180201_1137.py
centrologic/codenerix_products
d482ffe5a3a2d68ccc00170b8f65ce5fe7c2dff8
[ "Apache-2.0" ]
2
2018-09-03T08:57:25.000Z
2020-11-03T03:42:31.000Z
codenerix_products/migrations/0009_auto_20180201_1137.py
centrologic/codenerix_products
d482ffe5a3a2d68ccc00170b8f65ce5fe7c2dff8
[ "Apache-2.0" ]
1
2017-05-03T08:45:37.000Z
2017-05-03T08:45:37.000Z
codenerix_products/migrations/0009_auto_20180201_1137.py
centrologic/codenerix_products
d482ffe5a3a2d68ccc00170b8f65ce5fe7c2dff8
[ "Apache-2.0" ]
1
2018-05-22T10:00:48.000Z
2018-05-22T10:00:48.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-02-01 10:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('codenerix_products', '0008_auto_20180126_1711'), ] ...
30.148148
169
0.657248
987aafff4acfb055e64aa7484b46f2871b507024
788
py
Python
src/nexuscli/exception.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
src/nexuscli/exception.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
src/nexuscli/exception.py
TimurPlusPlus/nexus3-cli
5c4dc4393ccdc07ad3769e8bb44f3fb20857ffa8
[ "MIT" ]
null
null
null
class NexusClientAPIError(Exception): """Unexpected response from Nexus service.""" pass class NexusClientInvalidCredentials(Exception): """ Login credentials not accepted by Nexus service. Usually the result of a HTTP 401 response. """ pass class NexusClientInvalidRepositoryPath(Excepti...
22.514286
76
0.717005
69f47cb69536860080a6311496837e20581840b1
3,383
py
Python
alipay/aop/api/response/AlipayEbppJfexportInstbillQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayEbppJfexportInstbillQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayEbppJfexportInstbillQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.JfExportInstBillModel import JfExportInstBillModel class AlipayEbppJfexportInstbillQueryResponse(AlipayResponse): def __init__(self): super(AlipayEbppJfe...
29.938053
112
0.645285
9ec9843ae23b8ce9a1e33f44dcd31ccaaded593a
9,869
py
Python
oletools/common/log_helper/log_helper.py
mengualp/oletools
bf83ed4037906ad4097f1eb7968ef0274f4694f8
[ "BSD-2-Clause" ]
null
null
null
oletools/common/log_helper/log_helper.py
mengualp/oletools
bf83ed4037906ad4097f1eb7968ef0274f4694f8
[ "BSD-2-Clause" ]
null
null
null
oletools/common/log_helper/log_helper.py
mengualp/oletools
bf83ed4037906ad4097f1eb7968ef0274f4694f8
[ "BSD-2-Clause" ]
null
null
null
""" log_helper.py General logging helpers Use as follows: # at the start of your file: # import logging <-- replace this with next line from oletools.common.log_helper import log_helper logger = log_helper.get_or_create_silent_logger("module_name") def enable_logging(): '''Enable loggi...
39.794355
109
0.672206
dea45fe9730c8929cc11bddbecc0d318ce160945
2,701
py
Python
squareconnect/models/measurement_unit_area.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
53
2016-08-06T17:12:16.000Z
2020-08-02T19:43:58.000Z
squareconnect/models/measurement_unit_area.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
32
2016-08-19T16:32:30.000Z
2020-01-14T18:01:37.000Z
squareconnect/models/measurement_unit_area.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
45
2016-09-05T11:58:09.000Z
2020-11-15T16:26:41.000Z
# coding: utf-8 """ Copyright 2017 Square, 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 la...
28.135417
77
0.553499
c502a0846594c7b19de5a794d5b5c4e0e93e0e17
5,737
py
Python
launch_testing/launch_testing_examples/launch_testing_examples/check_msgs_launch_test.py
fujitatomoya/examples
35b181ca912258a6c594bedb846a0077a60fcc53
[ "Apache-2.0" ]
335
2015-03-12T10:04:35.000Z
2022-03-30T00:46:46.000Z
launch_testing/launch_testing_examples/launch_testing_examples/check_msgs_launch_test.py
AhmedMounir/examples
35b181ca912258a6c594bedb846a0077a60fcc53
[ "Apache-2.0" ]
264
2015-01-15T23:27:55.000Z
2022-03-31T15:20:10.000Z
launch_testing/launch_testing_examples/launch_testing_examples/check_msgs_launch_test.py
AhmedMounir/examples
35b181ca912258a6c594bedb846a0077a60fcc53
[ "Apache-2.0" ]
227
2015-05-12T08:01:37.000Z
2022-03-31T15:07:17.000Z
# Copyright 2021 Open Source Robotics Foundation, 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...
34.560241
93
0.672128
3063a4f663f0533d2f82019182febf763afd99c9
1,445
py
Python
polarion/base/custom_fields.py
anjalizope/python-polarion
827fe1da2e07c1833f5cb6dab740d58c2cd97483
[ "MIT" ]
10
2021-03-19T07:36:57.000Z
2022-02-15T12:28:49.000Z
polarion/base/custom_fields.py
anjalizope/python-polarion
827fe1da2e07c1833f5cb6dab740d58c2cd97483
[ "MIT" ]
29
2021-03-04T07:18:52.000Z
2022-03-31T07:13:51.000Z
polarion/base/custom_fields.py
anjalizope/python-polarion
827fe1da2e07c1833f5cb6dab740d58c2cd97483
[ "MIT" ]
7
2021-03-04T07:15:02.000Z
2022-03-29T15:09:13.000Z
from abc import ABC from polarion.base.polarion_object import PolarionObject class CustomFields(PolarionObject, ABC): def __init__(self, polarion, project, _id=None, uri=None): super().__init__(polarion, project, _id, uri) self.customFields = None def isCustomFieldAllowed(self, key): ...
38.026316
112
0.631142
0bb40fff6befcec8a15488f362554113302a34fd
3,904
py
Python
pushmanager/servlets/pickmerequest.py
Mango-J/pushmanager
1fcae14de463f6dcd6a847aa45d67613757cba50
[ "Apache-2.0" ]
null
null
null
pushmanager/servlets/pickmerequest.py
Mango-J/pushmanager
1fcae14de463f6dcd6a847aa45d67613757cba50
[ "Apache-2.0" ]
2
2015-02-27T13:56:01.000Z
2015-02-27T13:58:27.000Z
pushmanager/servlets/pickmerequest.py
rockdog/pushmanager
5b5b4831da4bc9e660ca1d85e3213a7030919772
[ "Apache-2.0" ]
null
null
null
import sqlalchemy as SA import pushmanager.core.db as db import pushmanager.core.util from pushmanager.core.git import GitQueue from pushmanager.core.git import GitTaskAction from pushmanager.core.requesthandler import RequestHandler class PickMeRequestServlet(RequestHandler): def post(self): if not sel...
35.490909
109
0.620133
75c9f3e7ca63fd02ceee5e064b324250a43fb89a
14,951
py
Python
Packs/ApiModules/Scripts/CSVFeedApiModule/CSVFeedApiModule.py
hoxhunt/content
b3a590ef73dfc3b0830ff8ce38e6e7f63292a290
[ "MIT" ]
1
2021-08-07T00:21:58.000Z
2021-08-07T00:21:58.000Z
Packs/ApiModules/Scripts/CSVFeedApiModule/CSVFeedApiModule.py
kulaibrown/content
bd8914148c59f8151f9a9527020a5386af4de451
[ "MIT" ]
1
2022-01-19T13:41:51.000Z
2022-01-19T15:00:05.000Z
Packs/ApiModules/Scripts/CSVFeedApiModule/CSVFeedApiModule.py
kulaibrown/content
bd8914148c59f8151f9a9527020a5386af4de451
[ "MIT" ]
1
2021-01-05T12:20:30.000Z
2021-01-05T12:20:30.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import csv import gzip import urllib3 from dateutil.parser import parse from typing import Optional, Pattern, Dict, Any, Tuple, Union, List # disable insecure warnings urllib3.disable_warnings() # Glob...
41.530556
120
0.603839
a11b7f38c64e92d0d7cf58dfa3e73896a8aa0c32
6,096
py
Python
qa/rpc-tests/proxy_test.py
dre060/YAADI
cdb07c723f559ce883e33d64bce55b6ee5539142
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
dre060/YAADI
cdb07c723f559ce883e33d64bce55b6ee5539142
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
dre060/YAADI
cdb07c723f559ce883e33d64bce55b6ee5539142
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.753425
145
0.652887
c83740098d266f77fbed06ef5b4133c090be4202
642
py
Python
PyShop/products/migrations/0002_offer.py
nibir404/Product-Cart
f782740aa28d0d3d946721fe4a8df8c12b22bd99
[ "Apache-2.0" ]
null
null
null
PyShop/products/migrations/0002_offer.py
nibir404/Product-Cart
f782740aa28d0d3d946721fe4a8df8c12b22bd99
[ "Apache-2.0" ]
null
null
null
PyShop/products/migrations/0002_offer.py
nibir404/Product-Cart
f782740aa28d0d3d946721fe4a8df8c12b22bd99
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-08 16:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='Offer', fields=[ ...
27.913043
115
0.543614
1ebcfcf4fb307858cffe23989680a76d0c92d639
2,312
py
Python
python-sockets-tutorial/multiconn-client.py
aln787/materials
2cca46bbdd898be34b0118be319d50fb985c9eb7
[ "MIT" ]
1
2019-11-08T03:11:42.000Z
2019-11-08T03:11:42.000Z
python-sockets-tutorial/multiconn-client.py
saideepthik/materials
106a621e57bd2985d68be66b97b511b62bbe22a3
[ "MIT" ]
1
2020-07-28T16:53:56.000Z
2020-07-28T16:53:56.000Z
python-sockets-tutorial/multiconn-client.py
saideepthik/materials
106a621e57bd2985d68be66b97b511b62bbe22a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import socket import selectors import types sel = selectors.DefaultSelector() messages = [b'Message 1 from client.', b'Message 2 from client.'] def start_connections(host, port, num_conns): server_addr = (host, port) for i in range(0, num_conns): connid = i + 1 ...
33.028571
78
0.595156
2f9fe7e0d51aebfd184c5e04ff24758a2ee0799f
3,059
py
Python
api/api.py
gboduljak/seam-carving
206e72313424531f4ed22c2c1f5fc8cfbbb18920
[ "Unlicense" ]
4
2020-06-18T11:47:26.000Z
2021-12-13T18:09:00.000Z
api/api.py
gboduljak/seam-carving
206e72313424531f4ed22c2c1f5fc8cfbbb18920
[ "Unlicense" ]
null
null
null
api/api.py
gboduljak/seam-carving
206e72313424531f4ed22c2c1f5fc8cfbbb18920
[ "Unlicense" ]
1
2021-07-24T02:49:43.000Z
2021-07-24T02:49:43.000Z
from carver import crop, get_energy_image from flask import Flask, jsonify, request from flask_cors import CORS from numpy import array from PIL import Image from uuid import uuid4 from os import path from io import BytesIO from io import StringIO import base64 import re app = Flask(__name__, static_folder='resized-im...
29.133333
89
0.686826
35c8f17d7d5e565b205386aa67dd3aee19431a61
281
py
Python
natlas-server/tests/config.py
pryorda/natlas
048b5597c0ad77d1a95eadf8859e1122a9eb3d3a
[ "Apache-2.0" ]
null
null
null
natlas-server/tests/config.py
pryorda/natlas
048b5597c0ad77d1a95eadf8859e1122a9eb3d3a
[ "Apache-2.0" ]
370
2020-08-17T06:31:24.000Z
2022-03-28T02:09:45.000Z
natlas-server/tests/config.py
pryorda/natlas
048b5597c0ad77d1a95eadf8859e1122a9eb3d3a
[ "Apache-2.0" ]
null
null
null
from config import Config class TestConfig(Config): MAIL_FROM = "Test Mail <noreply@example.com>" MAIL_SERVER = "localhost" TESTING = True # This uses an in-memory database SQLALCHEMY_DATABASE_URI = "sqlite://" ELASTICSEARCH_URL = "http://localhost:9200"
25.545455
49
0.701068
faab3e3956a8b8c8e46ce67ade590cd7f3422eed
398
py
Python
deploy/test/kf_producer2.py
zhexiao/mnet
51e64e6c5181702f90d4f68efb5e4ba8f20dff7b
[ "Apache-2.0" ]
19
2019-04-05T03:39:51.000Z
2021-11-09T10:55:58.000Z
deploy/test/kf_producer2.py
zhexiao/mnet
51e64e6c5181702f90d4f68efb5e4ba8f20dff7b
[ "Apache-2.0" ]
3
2017-08-04T07:37:31.000Z
2021-06-10T19:42:58.000Z
deploy/test/kf_producer2.py
zhexiao/mnet
51e64e6c5181702f90d4f68efb5e4ba8f20dff7b
[ "Apache-2.0" ]
11
2017-08-02T09:14:45.000Z
2021-05-07T15:33:07.000Z
from kafka import KafkaProducer import time import json producer = KafkaProducer(bootstrap_servers='192.168.33.50:9092') topic = 'test' i = 0 while True: i += 1 json_data = { "msg": "my kafka {}".format(i), "count": i } post_data = json.dumps(json_data).encode() producer.send(topi...
19.9
64
0.633166
0518b415d8dc6e4130f1f5c985e345ec377de0e7
899
py
Python
GR/APP/migrations/0011_cartmodel.py
ymy838295768/GR
44de7d2f7bd540ae0af8d98f11d97f7783192a06
[ "MIT" ]
null
null
null
GR/APP/migrations/0011_cartmodel.py
ymy838295768/GR
44de7d2f7bd540ae0af8d98f11d97f7783192a06
[ "MIT" ]
null
null
null
GR/APP/migrations/0011_cartmodel.py
ymy838295768/GR
44de7d2f7bd540ae0af8d98f11d97f7783192a06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-05-29 13:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('App', '0010_usermodel'), ] operations = [ ...
33.296296
114
0.618465
4f392f5c981f9003c935bcfed83387728b125f08
7,229
py
Python
Tarea3a - EDPs/pez2.py
Nicolas-Francisco/Computer-Graphics
1895f3188c9ff662148a42c082a7191e2c83a06a
[ "CC-BY-4.0" ]
null
null
null
Tarea3a - EDPs/pez2.py
Nicolas-Francisco/Computer-Graphics
1895f3188c9ff662148a42c082a7191e2c83a06a
[ "CC-BY-4.0" ]
null
null
null
Tarea3a - EDPs/pez2.py
Nicolas-Francisco/Computer-Graphics
1895f3188c9ff662148a42c082a7191e2c83a06a
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[18]: import glfw from OpenGL.GL import * import OpenGL.GL.shaders import numpy as np import sys import math import transformations as tr import basic_shapes as bs import scene_graph as sg import easy_shaders as es # A class to store the application control class Controll...
29.871901
115
0.637709
0e045177669c913d8d585c53be1bd79c945e46a3
447
py
Python
pyfenstein3d/engine/__init__.py
GrrriiiM/pyfenstein3d
0ac7655897f91edfe13554449e9c1f1e6b1ba504
[ "MIT" ]
7
2020-12-17T19:39:15.000Z
2021-09-06T01:03:57.000Z
pyfenstein3d/engine/__init__.py
GrrriiiM/pyfenstein3d
0ac7655897f91edfe13554449e9c1f1e6b1ba504
[ "MIT" ]
null
null
null
pyfenstein3d/engine/__init__.py
GrrriiiM/pyfenstein3d
0ac7655897f91edfe13554449e9c1f1e6b1ba504
[ "MIT" ]
null
null
null
from .vector2d import Vector2d from .item import Item from .wall import Wall from .decoration import Decoration from .person import Person from .field_of_view import FieldOfView from .map2d import Map2d from . import config from .item_grid import ItemGrid from .ray import Ray from .player import Player from .server imp...
26.294118
38
0.821029
c06c78cbc5b99e8a8147fe51e3c3586cf031dba9
9,628
py
Python
pycircuit/post/functions.py
henjo/pycircu
20eb79fd05bd7903f7033b41ad8a1b106e99d9e3
[ "BSD-3-Clause" ]
25
2015-05-13T22:49:26.000Z
2020-03-10T04:13:20.000Z
pycircuit/post/functions.py
henjo/pycircu
20eb79fd05bd7903f7033b41ad8a1b106e99d9e3
[ "BSD-3-Clause" ]
1
2016-11-09T13:09:31.000Z
2016-11-09T13:09:31.000Z
pycircuit/post/functions.py
henjo/pycircu
20eb79fd05bd7903f7033b41ad8a1b106e99d9e3
[ "BSD-3-Clause" ]
9
2016-03-05T11:46:27.000Z
2022-01-19T18:30:55.000Z
# -*- coding: latin-1 -*- # Copyright (c) 2008 Pycircuit Development Team # See LICENSE for details. """This module contains functions that operates on wave objects or scalars""" from waveform import Waveform, reducedim, applyfunc, applyfunc_and_reducedim,\ iswave, wavefunc, assert_waveform import numpy as np fro...
28.826347
80
0.565019
6fe4c623c09651bbad95b6db524df7aa4b11540f
2,278
py
Python
mlf_core/create/templates/package/package_prediction/{{ cookiecutter.project_slug_no_hyphen }}/{{cookiecutter.project_slug_no_hyphen}}/cli_pytorch.py
mlf-core/mlf-core
016f6186b5b62622c3a2b3ca884331fe0165b97c
[ "Apache-2.0" ]
31
2020-10-04T14:54:54.000Z
2021-11-22T09:33:17.000Z
mlf_core/create/templates/package/package_prediction/{{ cookiecutter.project_slug_no_hyphen }}/{{cookiecutter.project_slug_no_hyphen}}/cli_pytorch.py
mlf-core/mlf_core
cea155595df95d1d22473605d29813f5d698d635
[ "Apache-2.0" ]
200
2020-08-05T13:51:14.000Z
2022-03-28T00:25:54.000Z
mlf_core/create/templates/package/package_prediction/{{ cookiecutter.project_slug_no_hyphen }}/{{cookiecutter.project_slug_no_hyphen}}/cli_pytorch.py
mlf-core/mlf_core
cea155595df95d1d22473605d29813f5d698d635
[ "Apache-2.0" ]
3
2020-11-29T17:03:52.000Z
2021-06-03T13:12:03.000Z
import os import sys import click import numpy as np import torch from rich import print, traceback WD = os.path.dirname(__file__) @click.command() @click.option('-i', '--input', required=True, type=str, help='Path to data file to predict.') @click.option('-m', '--model', type=str, help='Path to an already trained ...
32.542857
136
0.691396
bf1fa60d1f100490e409759b6e69fc7789d904d0
558
py
Python
hyperverlet/factories/model_factory.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
7
2021-08-02T09:10:35.000Z
2022-03-16T13:24:22.000Z
hyperverlet/factories/model_factory.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
2
2021-06-15T11:50:59.000Z
2021-06-16T12:23:51.000Z
hyperverlet/factories/model_factory.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
null
null
null
from hyperverlet.models.pendulum import PendulumModel, SymplecticPendulumModel from hyperverlet.models.spring_mass import SpringMassModel, SymplecticSpringMassModel def construct_model(module_config): module = module_config["module"] module_mapping = dict( PendulumModel=PendulumModel, Symplec...
29.368421
85
0.781362
fd2304c7aead291b4b7482703787c3ee0a6d951e
900
py
Python
setup.py
tibidi/pychromecast
d7acb9f5ae2c0daa797d78da1a1e8090b4181d21
[ "MIT" ]
null
null
null
setup.py
tibidi/pychromecast
d7acb9f5ae2c0daa797d78da1a1e8090b4181d21
[ "MIT" ]
null
null
null
setup.py
tibidi/pychromecast
d7acb9f5ae2c0daa797d78da1a1e8090b4181d21
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages long_description = open("README.rst").read() setup( name="PyChromecast", version="10.2.3", license="MIT", url="https://github.com/balloob/pychromecast", author="Paulus Schoutsen", author_email="paulus@paulusschoutsen.nl", description="Python mod...
31.034483
75
0.665556
47bf252fc9f46698b19be12c71c1e7eac989af02
17,441
py
Python
data/model/oci/manifest.py
cuisongliu/quay
49862a9edae967b64f40cfbde7ef849f4619b26b
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
data/model/oci/manifest.py
cuisongliu/quay
49862a9edae967b64f40cfbde7ef849f4619b26b
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
data/model/oci/manifest.py
room9ho/sac1
79ca6f28cf37fce11b21801df947e5dc3d0acbd7
[ "Apache-2.0" ]
null
null
null
import logging from collections import namedtuple from peewee import IntegrityError from data.database import ( Tag, Manifest, ManifestBlob, ManifestLegacyImage, ManifestChild, db_transaction, ) from data.model import BlobDoesNotExist from data.model.blob import get_or_create_shared_blob, get...
39.638636
104
0.669228
15aee82868fdc81fa59a8bfeeb6fbd75ab04cd86
3,106
py
Python
sleekxmpp/plugins/xep_0313/mam.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
3
2019-02-01T06:50:08.000Z
2020-03-24T00:45:31.000Z
sleekxmpp/plugins/xep_0313/mam.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
1
2017-11-07T13:03:48.000Z
2017-11-07T13:03:48.000Z
sleekxmpp/plugins/xep_0313/mam.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
null
null
null
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permissio """ import logging import sleekxmpp from sleekxmpp.stanza import Message, Iq from sleekxmpp.exceptions import XMPPError from sleekxm...
33.397849
81
0.60367
7b3e22e43f2c88abb06e97634c5668ffc6b45e4c
51,712
py
Python
cinder/tests/test_pure.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_pure.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_pure.py
yanheven/cinder
89797971f30d547acbf715fea099c52d90966d1f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Pure Storage, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
44.311911
79
0.62821
6932ae3beccdf6e430399f8cd1c1d32073c17a47
2,855
py
Python
src/molecule/command/dependency.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
src/molecule/command/dependency.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
src/molecule/command/dependency.py
clickthisnick/molecule
3f640d7e5cff8fae12fe52aa9dc41bf3e19db8e5
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, 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, merge...
30.698925
79
0.705429
55113bf1dce0eca4a87a1bfb84e4d77c51820556
1,676
py
Python
skywalking/plugins/sw_redis.py
fuhuo/skywalking-python
9cde2064409f4677df3bc1cda773e787522795cc
[ "Apache-2.0" ]
null
null
null
skywalking/plugins/sw_redis.py
fuhuo/skywalking-python
9cde2064409f4677df3bc1cda773e787522795cc
[ "Apache-2.0" ]
null
null
null
skywalking/plugins/sw_redis.py
fuhuo/skywalking-python
9cde2064409f4677df3bc1cda773e787522795cc
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
37.244444
77
0.708234
64741f45aa87afe54d903f7f1a23fb78c0b3a443
9,211
py
Python
sdk/python/pulumi_azure_nextgen/network/v20191101/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20191101/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20191101/route_table.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "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 from...
51.172222
2,301
0.676474
12a08695236f36364e99104244d5337da97cc72d
742
py
Python
src/ham/radio/radio_zone.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
8
2021-03-01T17:28:45.000Z
2022-02-10T02:19:41.000Z
src/ham/radio/radio_zone.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
7
2021-03-31T03:37:12.000Z
2021-06-12T20:30:05.000Z
src/ham/radio/radio_zone.py
n2qzshce/ham_radio_sync
ffe95a4ef88375b5d5e4503cf770e884644536cd
[ "CNRI-Python", "RSA-MD" ]
1
2021-02-24T21:39:51.000Z
2021-02-24T21:39:51.000Z
from src.ham.util.data_column import DataColumn class RadioZone: def __init__(self, cols): self.number = DataColumn(fmt_name='number', fmt_val=cols['number'], shape=int) self.name = DataColumn(fmt_name='name', fmt_val=cols['name'], shape=str) self._associated_channels = list() self.cols = cols def add_cha...
24.733333
80
0.727763
715a6f11f58198a10851dcd7dab8c4e6743bd063
1,691
py
Python
mars/tensor/base/broadcast_arrays.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/tensor/base/broadcast_arrays.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/tensor/base/broadcast_arrays.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
29.155172
74
0.630396
72359d4bf31a6843013e111f7c65c642e5589a5a
1,331
py
Python
rlpyt/ul/runners/minibatch_rl_replaysaver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
2,122
2019-07-02T13:19:10.000Z
2022-03-22T09:59:42.000Z
rlpyt/ul/runners/minibatch_rl_replaysaver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
206
2019-07-02T14:19:42.000Z
2022-02-15T02:34:28.000Z
rlpyt/ul/runners/minibatch_rl_replaysaver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
369
2019-07-02T13:38:28.000Z
2022-03-28T11:16:39.000Z
import pickle import os.path as osp import time from rlpyt.runners.minibatch_rl import MinibatchRl, MinibatchRlEval from rlpyt.utils.logging import logger from rlpyt.utils.prog_bar import ProgBarCounter from rlpyt.ul.runners.envstep_runner import MinibatchRlEvalEnvStep class ReplaySaverMixin: def log_diagnosti...
31.690476
82
0.678437
97bcaf4db886b60a83cd2c60992b7acac11bb43b
2,255
py
Python
syft/grid/autoscale/gcloud.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2020-10-06T17:03:26.000Z
2020-10-06T17:03:26.000Z
syft/grid/autoscale/gcloud.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
null
null
null
syft/grid/autoscale/gcloud.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2021-09-04T16:27:41.000Z
2021-09-04T16:27:41.000Z
"""To autoscale pygrid workers on Google Cloud Platfrom""" import json import IPython import terrascript import terrascript.provider import terrascript.resource from utils.script import terraform_script from utils.notebook import terraform_notebook class GoogleCloud: """This class defines automates the spinning u...
32.681159
85
0.615521
0cdda1bcd0b864fb922d7de72eff7253c7a1225f
8,972
py
Python
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/tests/context/propagation/test_b3_format.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.910506
75
0.61926
edbda457253b500ad23db908c6a7742ecbb70099
5,336
py
Python
gazoo_device/capabilities/shell_ssh.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/capabilities/shell_ssh.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
1
2021-06-24T19:20:50.000Z
2021-06-24T19:20:50.000Z
gazoo_device/capabilities/shell_ssh.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.337748
80
0.648238
8af320f6a1698c3d5d4950ffb6cb92293b3f78fc
33,201
py
Python
byudml/profiler/profiler_primitive.py
byu-dml/d3m-primitives
f25d5d2572d0e7f29ecf2bef98ac2fc0613eb053
[ "MIT" ]
4
2018-04-13T21:27:58.000Z
2020-10-08T00:46:19.000Z
byudml/profiler/profiler_primitive.py
byu-dml/d3m-primitives
f25d5d2572d0e7f29ecf2bef98ac2fc0613eb053
[ "MIT" ]
62
2018-05-05T20:47:08.000Z
2022-02-10T16:54:10.000Z
byudml/profiler/profiler_primitive.py
byu-dml/d3m-primitives
f25d5d2572d0e7f29ecf2bef98ac2fc0613eb053
[ "MIT" ]
2
2020-02-07T03:31:11.000Z
2021-03-18T19:22:20.000Z
""" This code has been copied and modified from https://gitlab.com/datadrivendiscovery/common-primitives/-/blob/c170029e9a0f875af28c6b9af20adc90bd4df0bb/common_primitives/simple_profiler.py """ import collections import copy import os.path import re import typing import multiprocessing as mp import pickle import sys i...
55.427379
457
0.686756
dbf166d6a31ffbfe8bc13d910a173904c17e6264
391
py
Python
laundry/wsgi.py
adam-thomas/imperial-painter-laundry
47d9567950a1e4f42c6b26e12a94e7f382556fb4
[ "MIT" ]
null
null
null
laundry/wsgi.py
adam-thomas/imperial-painter-laundry
47d9567950a1e4f42c6b26e12a94e7f382556fb4
[ "MIT" ]
8
2020-02-12T00:02:24.000Z
2022-02-10T08:42:12.000Z
laundry/wsgi.py
adam-thomas/imperial-painter-laundry
47d9567950a1e4f42c6b26e12a94e7f382556fb4
[ "MIT" ]
null
null
null
""" WSGI config for painter project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
8e84f71a1a3d26db9062e4fb05a0d62f0809cd0c
18,587
py
Python
ppdet/engine/tracker.py
ReverseSacle/FairMOT-Paddle-Tracker_Basic
b1caa291a85131683620fc93fe7bed3fbefcc791
[ "MIT" ]
3
2021-08-04T06:37:13.000Z
2022-03-21T09:07:29.000Z
ppdet/engine/tracker.py
ReverseSacle/FairMOT-Paddle-Tracker_Basic
b1caa291a85131683620fc93fe7bed3fbefcc791
[ "MIT" ]
null
null
null
ppdet/engine/tracker.py
ReverseSacle/FairMOT-Paddle-Tracker_Basic
b1caa291a85131683620fc93fe7bed3fbefcc791
[ "MIT" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.295983
115
0.531931
fdc3a6b8c185264c6ee3628efb66b70cb689255a
5,987
py
Python
src/garage/torch/algos/trpo.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
src/garage/torch/algos/trpo.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
null
null
null
src/garage/torch/algos/trpo.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
"""Trust Region Policy Optimization.""" import torch from garage.torch.algos import VPG from garage.torch.optimizers import ConjugateGradientOptimizer from garage.torch.optimizers import OptimizerWrapper class TRPO(VPG): """Trust Region Policy Optimization (TRPO). Args: env_spec (garage.envs.EnvSpec...
41.289655
78
0.585435
3da96b68d9ea1b01b1a8bf8753d2b9ad989f2819
5,348
py
Python
vcbot/helpers/utils.py
PEARLGANG/PyTgCallsVC
c34b06ef2641402c49d38067a33946a81f0fe2db
[ "MIT" ]
null
null
null
vcbot/helpers/utils.py
PEARLGANG/PyTgCallsVC
c34b06ef2641402c49d38067a33946a81f0fe2db
[ "MIT" ]
null
null
null
vcbot/helpers/utils.py
PEARLGANG/PyTgCallsVC
c34b06ef2641402c49d38067a33946a81f0fe2db
[ "MIT" ]
null
null
null
import os import json import asyncio import subprocess from vcbot.config import Var from youtube_dl import YoutubeDL from pyrogram.types import Message def get_readable_time(seconds: int) -> str: count = 0 readable_time = "" time_list = [] time_suffix_list = ["s", "m", "h", " days"] while count < 4...
33.848101
219
0.596298
1a3b0a0c21b7d34292ed8fd5f2d28e63873029cd
1,997
py
Python
docs/conf.py
RangelReale/kg_keycloak
fd47dbd48b8df74dcba8161d2c811598345d9207
[ "MIT" ]
null
null
null
docs/conf.py
RangelReale/kg_keycloak
fd47dbd48b8df74dcba8161d2c811598345d9207
[ "MIT" ]
null
null
null
docs/conf.py
RangelReale/kg_keycloak
fd47dbd48b8df74dcba8161d2c811598345d9207
[ "MIT" ]
null
null
null
# 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...
35.035088
79
0.665498
17b08313d0324319f4b6ee8d91b2efece0669b68
1,329
py
Python
1º Semestre/Aula 06 - 24_09/aula06_ok.py
thaistlsantos/Python-FIT
2467a4af0083bdae6233a1a6a4af0e6310f3b9c3
[ "MIT" ]
null
null
null
1º Semestre/Aula 06 - 24_09/aula06_ok.py
thaistlsantos/Python-FIT
2467a4af0083bdae6233a1a6a4af0e6310f3b9c3
[ "MIT" ]
null
null
null
1º Semestre/Aula 06 - 24_09/aula06_ok.py
thaistlsantos/Python-FIT
2467a4af0083bdae6233a1a6a4af0e6310f3b9c3
[ "MIT" ]
null
null
null
def soma(): n1 = int(input('Digite um número: ')) n2 = int(input('Digite outro número: ')) s = n1 + n2 print(s) return print('fim da função! (primeira linha fora da função)') print('chamando a função...') soma() print('chamando novamente a função...') soma() """ Exercício: Receber o valor de ...
27.122449
63
0.455229
0bed488a830e6fc584458a93db308cea51da26eb
4,033
py
Python
carball/analysis/stats/stats.py
unitedroguegg/carball
4767f2c5d195b7d5d60e6a5575415262803acef7
[ "Apache-2.0" ]
119
2018-09-14T02:14:19.000Z
2022-03-06T05:06:54.000Z
carball/analysis/stats/stats.py
unitedroguegg/carball
4767f2c5d195b7d5d60e6a5575415262803acef7
[ "Apache-2.0" ]
207
2018-09-06T18:53:06.000Z
2022-02-12T22:39:36.000Z
carball/analysis/stats/stats.py
unitedroguegg/carball
4767f2c5d195b7d5d60e6a5575415262803acef7
[ "Apache-2.0" ]
44
2018-09-10T16:54:13.000Z
2022-02-19T03:07:50.000Z
import logging from typing import Dict import pandas as pd from ...generated.api import game_pb2 from ...generated.api.player_pb2 import Player from ...generated.api.stats.events_pb2 import Hit from ...generated.api.stats.player_stats_pb2 import PlayerStats from ...generated.api.stats.team_stats_pb2 import TeamStats ...
51.705128
115
0.68733
15fa6dbf3ad8f4fcbf61e352f1ce50305dc2331c
131
py
Python
posthog/queries/abstract_test/test_compare.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/queries/abstract_test/test_compare.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/queries/abstract_test/test_compare.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
from abc import ABC, abstractmethod class AbstractCompareTest(ABC): @abstractmethod def test_compare(self): pass
16.375
35
0.717557
80faf7716d3064c09a81e060b1b10a5f4f8a2620
126
py
Python
project/server/main/tasks.py
rochacbruno/flask-redis-queue
1615d9fe1ad6658343d58df22e6aca63a3ffbbf3
[ "MIT" ]
1
2021-08-12T18:27:28.000Z
2021-08-12T18:27:28.000Z
project/server/main/tasks.py
rochacbruno/flask-redis-queue
1615d9fe1ad6658343d58df22e6aca63a3ffbbf3
[ "MIT" ]
null
null
null
project/server/main/tasks.py
rochacbruno/flask-redis-queue
1615d9fe1ad6658343d58df22e6aca63a3ffbbf3
[ "MIT" ]
null
null
null
# project/server/main/tasks.py import time def create_task(task_type): time.sleep(int(task_type) * 10) return True
14
35
0.714286
8fdfc65a7e5fb22d50c0c144ef0bf013266acee7
814
py
Python
airdialogue/codalab/fake_model.py
HMJiangGatech/airdialogue
fca56769fefec2f1ecccb309cf666e368166473f
[ "Apache-2.0" ]
33
2019-11-18T06:22:37.000Z
2022-03-07T15:04:16.000Z
airdialogue/codalab/fake_model.py
HMJiangGatech/airdialogue
fca56769fefec2f1ecccb309cf666e368166473f
[ "Apache-2.0" ]
4
2020-05-22T04:11:00.000Z
2020-07-01T22:51:31.000Z
airdialogue/codalab/fake_model.py
HMJiangGatech/airdialogue
fca56769fefec2f1ecccb309cf666e368166473f
[ "Apache-2.0" ]
9
2019-12-02T22:57:17.000Z
2021-10-16T09:28:42.000Z
import json import random import sys if __name__ == "__main__": output_txt = open(sys.argv[1], "w+") data = open(sys.argv[2], "r") if len(sys.argv) > 3: kb = open(sys.argv[3], "r") for s in data: # Response in format of "utterance | name | flight | action" response = "Hi I am an agent. How can I ...
29.071429
79
0.570025
bc659d1c9cb27a0ae18edb6a44af570dda1c5a67
1,373
py
Python
tests/v4/conftest.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
1
2019-03-07T19:58:45.000Z
2019-03-07T19:58:45.000Z
tests/v4/conftest.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
9
2017-10-04T15:08:53.000Z
2021-02-02T21:51:41.000Z
tests/v4/conftest.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
null
null
null
import os from .context import tohu from tohu.v4.primitive_generators import * from tohu.v4.derived_generators import * from tohu.v4.dispatch_generators import * __all__ = ['EXEMPLAR_GENERATORS', 'EXEMPLAR_PRIMITIVE_GENERATORS', 'EXEMPLAR_DERIVED_GENERATORS'] def add(x, y): return x + y here = os.path.abspath(o...
33.487805
115
0.716679
1f462c518807b12340774f703fe0af155ba4618d
18,587
py
Python
google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py
dizcology/python-aiplatform
1a135775966c8a2303ded529eba514dcf9db7205
[ "Apache-2.0" ]
2
2021-10-02T02:25:44.000Z
2021-11-17T10:35:01.000Z
google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
1
2021-03-02T18:25:00.000Z
2021-03-02T18:25:00.000Z
google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.837264
166
0.633938
757331247cc6338d8ff1d498c1360be1f1e87ed2
8,236
py
Python
allennlp/data/dataset_readers/reading_comprehension/multiqa+.py
alontalmor/allennlp
3beb3ffff3ef45311c148301e91562b2000dff3b
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/reading_comprehension/multiqa+.py
alontalmor/allennlp
3beb3ffff3ef45311c148301e91562b2000dff3b
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/reading_comprehension/multiqa+.py
alontalmor/allennlp
3beb3ffff3ef45311c148301e91562b2000dff3b
[ "Apache-2.0" ]
null
null
null
import json import logging from typing import Any, Dict, List, Tuple import zipfile,re, copy, random import numpy as np from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.instance import Instance ...
49.915152
125
0.573458
f6ab1cbff369241f26dd0ea4cec7c4365f2ef746
472
py
Python
GeneratorInterface/GenFilters/python/PythiaFilterGammaJetWithBg_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
GeneratorInterface/GenFilters/python/PythiaFilterGammaJetWithBg_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
GeneratorInterface/GenFilters/python/PythiaFilterGammaJetWithBg_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms gj_filter = cms.EDFilter("PythiaFilterGammaJetWithBg", MaxEvents = cms.untracked.int32(2), MaxPhotonEta = cms.untracked.double(2.8), MaxPhotonPt = cms.untracked.double(22.0), MinPhotonEtaForwardJet = cms.untracked.double(1.3), MinDeltaPhi = cms.untracked.dou...
31.466667
55
0.724576
59c109ad84fc4cffab103846629ba75a62a49f62
11,205
py
Python
env/Lib/site-packages/jupyter_server/services/contents/handlers.py
JoaoPROFECIA/Ola-Mundo
071da385f93e9b652864c72226f3ef5afc15ba37
[ "MIT" ]
null
null
null
env/Lib/site-packages/jupyter_server/services/contents/handlers.py
JoaoPROFECIA/Ola-Mundo
071da385f93e9b652864c72226f3ef5afc15ba37
[ "MIT" ]
null
null
null
env/Lib/site-packages/jupyter_server/services/contents/handlers.py
JoaoPROFECIA/Ola-Mundo
071da385f93e9b652864c72226f3ef5afc15ba37
[ "MIT" ]
null
null
null
"""Tornado handlers for the contents web service. Preliminary documentation at https://github.com/ipython/ipython/wiki/IPEP-27%3A-Contents-Service """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import json try: from jupyter_client.jsonutil import json_defa...
33.648649
96
0.612137
ed2d8a9d221cac398c556ad68316e2140c3708c6
193
py
Python
models.py
benvand/simple-api
80ac7af4aa79b32b02b8ad0bf15f73255a690fb9
[ "MIT" ]
null
null
null
models.py
benvand/simple-api
80ac7af4aa79b32b02b8ad0bf15f73255a690fb9
[ "MIT" ]
null
null
null
models.py
benvand/simple-api
80ac7af4aa79b32b02b8ad0bf15f73255a690fb9
[ "MIT" ]
null
null
null
from app import db class Recipe(db.Model): name = db.Column(db.String(80), unique=True, nullable=False, primary_key=True) def __repr__(self): return '<Recipe %r>' % self.name
24.125
82
0.668394
5c48d25a17c5c0203373f542b8c38c9684ae86fe
746
py
Python
tests/red_black_tests/test_in_place_subtract.py
lycantropos/dendroid
4315673ef52129909617225df6357416c56a84b3
[ "MIT" ]
null
null
null
tests/red_black_tests/test_in_place_subtract.py
lycantropos/dendroid
4315673ef52129909617225df6357416c56a84b3
[ "MIT" ]
16
2019-11-02T10:44:20.000Z
2020-09-21T15:22:29.000Z
tests/red_black_tests/test_in_place_subtract.py
lycantropos/dendroid
4315673ef52129909617225df6357416c56a84b3
[ "MIT" ]
1
2020-03-13T08:41:39.000Z
2020-03-13T08:41:39.000Z
from typing import Tuple from hypothesis import given from tests.utils import (BaseSet, are_nodes_parents_to_children, do_paths_to_leaves_have_same_black_nodes_count, do_red_nodes_have_black_children, is_root_black) fr...
31.083333
72
0.713137
69959e0749864291cb2d2d9974df0782a5746731
38,689
py
Python
workspace_tools/targets.py
mfiore02/mbed
fd285784c911f5af9ca51a29aa9908857db59b9d
[ "Apache-2.0" ]
1
2015-01-02T06:58:35.000Z
2015-01-02T06:58:35.000Z
workspace_tools/targets.py
GustavWi/mbed
ea01d61fa18430564b78226045b196bb6bf6b66a
[ "Apache-2.0" ]
null
null
null
workspace_tools/targets.py
GustavWi/mbed
ea01d61fa18430564b78226045b196bb6bf6b66a
[ "Apache-2.0" ]
null
null
null
""" mbed SDK Copyright (c) 2011-2015 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
33.439067
101
0.618057
6571be7828291e4c5c39d2b227e0895a8f78cfe0
625
py
Python
common/migrations/0015_auto_20161013_1746.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0015_auto_20161013_1746.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0015_auto_20161013_1746.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-13 17:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('common', '0014_remove_pers...
27.173913
160
0.6768
bdbff95c6e9d31b1dcacab8b81589e38dd07300a
5,450
py
Python
readthedocs/gold/migrations/0001_initial.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
readthedocs/gold/migrations/0001_initial.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
readthedocs/gold/migrations/0001_initial.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'GoldUser' db.create_table(u'gold_golduser', ( ...
68.125
195
0.583486
ce8cffadb2332689b6185d6db2912424e3bd2838
3,545
py
Python
scalabel/label/from_mot.py
scalabel/scalabel
857a32e1c08e5b9a7ab346468940621c2fe2226a
[ "Apache-2.0" ]
279
2019-11-18T01:48:39.000Z
2022-03-30T00:16:43.000Z
scalabel/label/from_mot.py
scalabel/scalabel
857a32e1c08e5b9a7ab346468940621c2fe2226a
[ "Apache-2.0" ]
141
2019-11-20T02:36:11.000Z
2022-03-29T15:17:46.000Z
scalabel/label/from_mot.py
scalabel/scalabel
857a32e1c08e5b9a7ab346468940621c2fe2226a
[ "Apache-2.0" ]
85
2019-11-18T06:10:12.000Z
2022-03-27T12:32:55.000Z
"""Convert MOT Challenge format dataset to Scalabel.""" import argparse import os from collections import defaultdict from typing import Dict, List, Union from PIL import Image from ..common.io import load_file_as_list from .io import save from .transforms import bbox_to_box2d from .typing import Frame, ImageSize, La...
28.58871
78
0.597743
7f6043e2b09f2c643026bb2873bf38b4fc42c85f
3,312
py
Python
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/enable_key_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/enable_key_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/enable_key_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class EnableKeyRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value i...
24.902256
74
0.542874
3b774e357c0afb8f8d675c20a1910348cdd3866e
1,487
py
Python
conanfile.py
Chrismarsh/conan-sparsehash
48d5456022b0313d82496093f26dd32d1daa01ff
[ "MIT" ]
null
null
null
conanfile.py
Chrismarsh/conan-sparsehash
48d5456022b0313d82496093f26dd32d1daa01ff
[ "MIT" ]
null
null
null
conanfile.py
Chrismarsh/conan-sparsehash
48d5456022b0313d82496093f26dd32d1daa01ff
[ "MIT" ]
null
null
null
from conans import AutoToolsBuildEnvironment, ConanFile, tools import os class SparsehashConan(ConanFile): name = "sparsehash" description = "The C++ associative containers" homepage = "https://github.com/sparsehash/sparsehash" license = "BSD-3-Clause" topics = ("conan", "libsparsehash", ...
34.581395
90
0.669132
f11158b4d0c2c4c1a49311a63eb869fde6f99c82
3,004
py
Python
flask_apscheduler/auth.py
0x9fff00/flask-apscheduler
cc52c39e1948c4e8de5da0d01db45f1779f61997
[ "Apache-2.0" ]
2
2019-01-24T15:09:15.000Z
2019-01-24T15:09:17.000Z
flask_apscheduler/auth.py
0x9fff00/flask-apscheduler
cc52c39e1948c4e8de5da0d01db45f1779f61997
[ "Apache-2.0" ]
null
null
null
flask_apscheduler/auth.py
0x9fff00/flask-apscheduler
cc52c39e1948c4e8de5da0d01db45f1779f61997
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Vinicius Chiele. 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 law or ...
27.309091
105
0.663449
803510bdfc3a5c43983c8abbda7645de5edd65a4
903
py
Python
src/pattern_matchers/regex.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
src/pattern_matchers/regex.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
1
2022-03-12T19:43:00.000Z
2022-03-12T19:43:00.000Z
src/pattern_matchers/regex.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
from glob import glob import os import re from src.pattern_matchers.base import PatternMatcherBase class RegexModulePatternMatcher(PatternMatcherBase): regex_path_separator = f'\{os.sep}' @classmethod def parse_str(cls, pattern: str, include: bool = True): items = [] include = False ...
31.137931
79
0.638981
bdc2fd38447d96b974ebb4afd0adadf5e4e27c16
397
py
Python
sdk/communication/azure-communication-chat/azure/communication/chat/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/communication/azure-communication-chat/azure/communication/chat/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-chat/azure/communication/chat/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- VERSION =...
39.7
76
0.455919
a3905a447bbbc1fdc7a56106e7be712b883cfa09
1,047
py
Python
tests/test_kb_plugins.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
tests/test_kb_plugins.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
tests/test_kb_plugins.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
import angr import networkx import os location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests') def test_kb_plugins(): p = angr.Project(os.path.join(location, 'x86_64', 'fauxware'), auto_load_libs=False) assert isinstance(p.kb.data, angr.knowledge_plugins.Data) ...
37.392857
144
0.74021
d0ec3e508f1b06c855272ea4f49ac662fdfe167b
26
py
Python
simeng/__init__.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
simeng/__init__.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
simeng/__init__.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
from .core import ingest
8.666667
24
0.769231
26b467c0c8390d8093df967cd1ba27454c3052bd
1,684
py
Python
text2hex.py
jamokou/text2hex
2470ec82922404177258dcd427fffded3212bdc2
[ "MIT" ]
1
2015-06-13T21:10:46.000Z
2015-06-13T21:10:46.000Z
text2hex.py
jamokou/text2hex
2470ec82922404177258dcd427fffded3212bdc2
[ "MIT" ]
null
null
null
text2hex.py
jamokou/text2hex
2470ec82922404177258dcd427fffded3212bdc2
[ "MIT" ]
null
null
null
# Program Name : text2hex # Programmer : The Alpha # Credits : Iranpython.blog.ir # Version : 0.91(Beta Version) # Linted By : Pyflakes # Info : text2hex is a simple tool that uses to convert strings to hex. from PyQt4.QtCore import * from PyQt4.QtGui import * import sys import binascii class T...
27.606557
79
0.703682
b8074df98c29ea16952bfaab4d6bcdc54d947e95
1,777
py
Python
m/db/engine_interface.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
1
2015-04-18T16:48:48.000Z
2015-04-18T16:48:48.000Z
m/db/engine_interface.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
m/db/engine_interface.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
# # Copyright Michael Groys, 2014 # # This module defines api for interaction between miner and databases class FetchCursorInterface(object): """Abstract interface for fetching query result data""" def __init__(self): pass def getColumnNames(self): raise NotImplementedError ...
31.175439
73
0.626899
5649c9cdbf4d21aab821b80f7d41e2ac4517c9d7
250
py
Python
python/bootcamp/unittest/cap.py
RodolfoDiaz/CodeLibrary
603ac9eee5b014bef8f04545bc4e73b0ec376131
[ "MIT" ]
1
2018-10-11T14:29:40.000Z
2018-10-11T14:29:40.000Z
python/bootcamp/unittest/cap.py
RodolfoDiaz/CodeLibrary
603ac9eee5b014bef8f04545bc4e73b0ec376131
[ "MIT" ]
2
2020-04-26T21:12:00.000Z
2020-10-28T21:10:03.000Z
python/bootcamp/unittest/cap.py
RodolfoDiaz/CodeLibrary
603ac9eee5b014bef8f04545bc4e73b0ec376131
[ "MIT" ]
null
null
null
"""Capitalize words.""" def cap_text(text): """capitalize() upper cases the first letter of a string.""" return text.capitalize() def title_text(text): """title() upper cases the first letter of every word.""" return text.title()
20.833333
64
0.66
073f03b2a94245cc1f97f1355f9c9fb176ec0cb8
1,678
py
Python
steamboat_people_counter.py
Seagor/Web-Cam-Counter
d80d12f713d0cf089a203c427d2f930b2f4716dd
[ "MIT" ]
null
null
null
steamboat_people_counter.py
Seagor/Web-Cam-Counter
d80d12f713d0cf089a203c427d2f930b2f4716dd
[ "MIT" ]
null
null
null
steamboat_people_counter.py
Seagor/Web-Cam-Counter
d80d12f713d0cf089a203c427d2f930b2f4716dd
[ "MIT" ]
null
null
null
import base64 as b64 import numpy as np import cv2 import matplotlib.pyplot as plt from ipywidgets import interact, interactive, fixed from IPython.display import Image, display import ipywidgets as widgets def convert_media_to_image(media): arr = np.asarray(bytearray(b64.b64decode(media["__data__"])), dtype=np.ui...
34.244898
95
0.718117
d95ecde2f52aa90a97808a7160e04c6c2ad80665
624
py
Python
pythonx/ncm2_sorter/abbrfuzzy.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
1,448
2018-06-29T02:29:20.000Z
2022-03-29T04:16:43.000Z
pythonx/ncm2_sorter/abbrfuzzy.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
188
2018-06-29T06:30:58.000Z
2022-03-17T11:00:57.000Z
pythonx/ncm2_sorter/abbrfuzzy.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
55
2018-07-11T13:54:21.000Z
2022-03-16T23:32:11.000Z
import sys def Sorter(**kargs): def key(e): w = e['word'] ud = e['user_data'] hl = ud['match_highlight'] # prefer less pieces pieces = len(hl) # prefer earlier match first_match = sys.maxsize if len(hl): first_match = hl[0][0] #...
19.5
47
0.501603
f0385f56b6fdeab01a9c093edce257d56bf37353
2,531
py
Python
build/env/lib/python2.7/site-packages/ipython-0.10-py2.7.egg/IPython/kernel/core/message_cache.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
IPython/kernel/core/message_cache.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
1
2015-07-16T22:26:53.000Z
2015-07-16T22:26:53.000Z
IPython/kernel/core/message_cache.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
# encoding: utf-8 """Storage for the responses from the interpreter.""" __docformat__ = "restructuredtext en" #------------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is ...
25.565657
80
0.468985
d331519454ab5c9c04c0db49d3c20a04ba57c6f1
15,033
py
Python
src/scripts/swagger_client/api/environment_api.py
shipyardbuild/circleci-orb
5cc1393aac44ff62b95db5ec725702d8a7dbb216
[ "MIT" ]
null
null
null
src/scripts/swagger_client/api/environment_api.py
shipyardbuild/circleci-orb
5cc1393aac44ff62b95db5ec725702d8a7dbb216
[ "MIT" ]
4
2021-09-01T21:15:02.000Z
2022-01-04T18:37:48.000Z
src/scripts/swagger_client/api/environment_api.py
shipyardbuild/circleci-orb
5cc1393aac44ff62b95db5ec725702d8a7dbb216
[ "MIT" ]
null
null
null
# coding: utf-8 """ Shipyard API The official OpenAPI spec for the Shipyard API. # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility li...
36.665854
118
0.601211
7c03816424ba348f3cfd072504c4963468046db8
3,333
py
Python
simulations/old/analysis/plot-performance.py
hawkrobe/fish
2000e46c397f7c95bba8ecb0c6afd26013929ff8
[ "MIT" ]
1
2015-12-11T16:51:08.000Z
2015-12-11T16:51:08.000Z
simulations/old/analysis/plot-performance.py
hawkrobe/fish
2000e46c397f7c95bba8ecb0c6afd26013929ff8
[ "MIT" ]
3
2020-02-11T21:36:11.000Z
2020-11-01T21:25:17.000Z
simulations/old/analysis/plot-performance.py
hawkrobe/couzin_replication
ff491639954f0652d6b4b2a318477bb54c38fadf
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os, sys import matplotlib.pyplot as plt from parse import * sys.path.append("../utils/") from utils import * subset_noise = False noise_level = '1-2en01' subset_difficulty = True diff_level = '1en01' data_dir = '../../out/' games = [] games += get_games(data_dir, 'expe...
26.879032
122
0.50045
55282e4ce1304bfb626ecca8d5812bc05fb8aebe
449
py
Python
networkapi/api_aws/serializers.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/api_aws/serializers.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/api_aws/serializers.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- from django.db.models import get_model from networkapi.util.serializers import DynamicFieldsModelSerializer class AwsVPCSerializer(DynamicFieldsModelSerializer): class Meta: VPC = get_model('api_aws', 'VPC') depth = 1 model = VPC fields = ( 'i...
18.708333
68
0.599109
306ad0387bde92138f9134bd63b9b8cefa199ff0
91
py
Python
app/marksapp/apps.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
21
2019-05-13T12:54:47.000Z
2022-01-10T19:51:26.000Z
app/marksapp/apps.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
19
2018-11-18T20:10:09.000Z
2019-11-16T02:47:38.000Z
app/marksapp/apps.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
1
2022-02-23T16:23:06.000Z
2022-02-23T16:23:06.000Z
from django.apps import AppConfig class MarksappConfig(AppConfig): name = "marksapp"
15.166667
33
0.758242
07d9e9a8ac8f7478dbbf9bacce693eb55d514424
3,045
py
Python
tests/performance.py
redmoogle/jsonreader
b37db693a1f382661c44cf756e5ac7a6a3953010
[ "MIT" ]
null
null
null
tests/performance.py
redmoogle/jsonreader
b37db693a1f382661c44cf756e5ac7a6a3953010
[ "MIT" ]
null
null
null
tests/performance.py
redmoogle/jsonreader
b37db693a1f382661c44cf756e5ac7a6a3953010
[ "MIT" ]
1
2021-04-13T15:09:58.000Z
2021-04-13T15:09:58.000Z
""" Ensures it can read and write to the file """ import guildreader import unittest import random import time class FakeGuild: def __init__(self): self.id = random.randint(1, 999999999) class FakeBot: def __init__(self): self.guilds = [] for _ in range(1000): self.guild...
31.071429
90
0.548112