hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
2df702486a72c56443e6a7b430b136b4d1ae7c3b
5,493
py
Python
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
33
2015-04-07T16:28:04.000Z
2021-11-22T00:28:43.000Z
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyKinectTools/algs/GeodesicSkeleton.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
13
2015-04-07T16:28:34.000Z
2021-04-26T08:04:36.000Z
import numpy as np import scipy.ndimage as nd import pyKinectTools.algs.Dijkstras as dgn # from pyKinectTools.utils.DepthUtils import * from pyKinectTools.utils.DepthUtils import depthIm2PosIm from copy import deepcopy from skimage.draw import circle from IPython import embed from pylab import * def geodesic_extrema...
30.016393
119
0.697797
2df726b4c2e0dc8dbf28191daa819308566ba471
10,846
py
Python
source/utils.py
bbonik/facial-landmark-frontalizartion
589125dbb86a0e1a007ae5b467d7eb4d4ac36127
[ "MIT" ]
16
2020-10-30T22:42:14.000Z
2022-03-11T09:29:57.000Z
source/utils.py
bbonik/facial-landmark-frontalizartion
589125dbb86a0e1a007ae5b467d7eb4d4ac36127
[ "MIT" ]
3
2021-03-21T15:22:02.000Z
2021-09-24T07:16:23.000Z
source/utils.py
bbonik/facial-landmark-frontalizartion
589125dbb86a0e1a007ae5b467d7eb4d4ac36127
[ "MIT" ]
5
2021-03-22T06:50:59.000Z
2022-03-11T09:30:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Collection of utility functions for facial landmark processing @author: Vasileios Vonikakis """ import numpy as np import matplotlib.pyplot as plt import math def get_landmark_array(landmarks_dlib_obj): # Gets a DLIB landmarks object and returns a [68,2] nump...
36.395973
79
0.618846
2df758cd8f08f0f0d19c4f1e448cc83a482218e6
4,513
py
Python
platforms/virt.py
softlayer/stack-dev-tools
11551f1b3c143b063b1f15d7450b1c5b2ce4b11a
[ "MIT" ]
null
null
null
platforms/virt.py
softlayer/stack-dev-tools
11551f1b3c143b063b1f15d7450b1c5b2ce4b11a
[ "MIT" ]
null
null
null
platforms/virt.py
softlayer/stack-dev-tools
11551f1b3c143b063b1f15d7450b1c5b2ce4b11a
[ "MIT" ]
null
null
null
from core import Platform, Instance import libvirt from lxml import etree from StringIO import StringIO from os.path import basename from time import sleep class LibVirtPlatform(Platform): _required_opts = ['vmhost_count', 'vmhost_pattern', 'base_image_url', 'base_image'] def _on_init(s...
36.691057
78
0.521826
2df776ed03344135a99068418c9113746dbc83fe
828
py
Python
mlrun/api/initial_data.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/api/initial_data.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/api/initial_data.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
import os import pathlib from mlrun.api.db.init_db import init_db from mlrun.api.db.session import create_session, close_session from mlrun.utils import logger from .utils.alembic import AlembicUtil def init_data(from_scratch: bool = False) -> None: logger.info("Creating initial data") # run migrations on e...
24.352941
72
0.730676
2df77cff96a198dfcc3b974ae12f9e73bb75d64f
8,220
py
Python
asebackupcli/runner.py
chgeuer/python_backup
d61af53490c791bac1226062af7744a69b335ce9
[ "MIT" ]
1
2018-08-08T12:55:26.000Z
2018-08-08T12:55:26.000Z
asebackupcli/runner.py
chgeuer/python_backup
d61af53490c791bac1226062af7744a69b335ce9
[ "MIT" ]
4
2018-09-17T09:32:40.000Z
2018-10-30T09:57:40.000Z
asebackupcli/runner.py
chgeuer/python_backup
d61af53490c791bac1226062af7744a69b335ce9
[ "MIT" ]
1
2021-09-29T11:34:36.000Z
2021-09-29T11:34:36.000Z
# coding=utf-8 # pylint: disable=no-member # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """Runner module""" import logging import argparse import sys import getpass import socket import os import os.path from os.path import expanduser import pid from .backupagent import BackupAgent from ...
43.036649
161
0.611922
2df790b11e7ffabad4e95e2a688e38b3c6b95c8f
16,630
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_rockblock.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_rockblock.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_rockblock.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_rockblock` ================================================================================ CircuitPython driver for Rock Seven RockBLOCK Iridium satellite modem * Author(s): Carter Nelson Implementa...
37.286996
100
0.595971
2df7986427dc856ed9847abaa3ede0d3065e84e7
6,884
py
Python
src/esm/models/plan.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
2
2017-06-15T21:32:07.000Z
2020-01-08T09:08:33.000Z
src/esm/models/plan.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
20
2017-06-12T10:57:45.000Z
2020-01-08T08:22:31.000Z
src/esm/models/plan.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
8
2017-06-07T10:05:47.000Z
2017-12-12T15:31:41.000Z
# coding: utf-8 from __future__ import absolute_import from esm.models.plan_metadata import PlanMetadata from .base_model_ import Model from ..util import deserialize_model class Plan(Model): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. ...
32.319249
295
0.607786
2df7bf30f5a7480649465e5d6a19a8feeeef1525
49,310
py
Python
tests/test_autoscaling/test_autoscaling.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
tests/test_autoscaling/test_autoscaling.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
tests/test_autoscaling/test_autoscaling.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals import boto import boto3 import boto.ec2.autoscale from boto.ec2.autoscale.launchconfig import LaunchConfiguration from boto.ec2.autoscale.group import AutoScalingGroup from boto.ec2.autoscale import Tag import boto.ec2.elb import sure # noqa from botocore.exceptions import Clie...
34.627809
124
0.688299
2df7fa76dfa1c47c7a6edde2c0bb7a6319610242
3,973
py
Python
alipay/aop/api/request/AnttechBlockchainTwcUserMatchRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AnttechBlockchainTwcUserMatchRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AnttechBlockchainTwcUserMatchRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AnttechBlockchainTwcUserMatchModel import AnttechBlockchainTwcUserMatchModel class AnttechBlockchainTwcUserMatchRequest(object): ...
27.4
148
0.644853
2df8067113478edbf3d32674dcb581aa4af91a78
1,533
py
Python
test/test_jobs_api.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_jobs_api.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_jobs_api.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import pollination_sdk...
19.909091
71
0.617091
2df80a80b010d0711c2f46695b75e57c27068370
4,896
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
42.206897
133
0.653391
2df81134cbef44bf142ebbf1cf61a1c16fc76d36
2,425
py
Python
benchmark/run_timings.py
AndreasMadsen/course-02456-sparsemax
629f7bb9576b79783655a49c3f46bbcc7f970df7
[ "MIT" ]
17
2016-11-07T09:46:37.000Z
2022-03-30T01:29:08.000Z
benchmark/run_timings.py
AndreasMadsen/course-02456-sparsemax
629f7bb9576b79783655a49c3f46bbcc7f970df7
[ "MIT" ]
9
2016-10-15T07:38:07.000Z
2016-11-25T21:08:49.000Z
benchmark/run_timings.py
AndreasMadsen/course-02456-sparsemax
629f7bb9576b79783655a49c3f46bbcc7f970df7
[ "MIT" ]
7
2016-11-05T17:32:04.000Z
2021-06-23T11:32:44.000Z
import _benchmark import time import os.path as path import numpy as np import datasets import regressors from table import SummaryTable thisdir = path.dirname(path.realpath(__file__)) tabledir = path.join(thisdir, '..', 'latex', 'report', 'tables') def timings(regressors, datasets, epochs=100, iterations=10, ver...
31.907895
79
0.592165
2df837bc0809f023a3f76104d89a1ae795d9c60a
15,431
py
Python
scripts/nqp/actions/skill.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
12
2020-03-24T07:10:18.000Z
2021-07-20T19:34:13.000Z
scripts/nqp/actions/skill.py
DaFluffyPotato/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
306
2020-07-08T17:28:54.000Z
2021-04-17T11:59:22.000Z
scripts/nqp/actions/skill.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
10
2020-06-30T12:36:59.000Z
2021-11-08T09:01:00.000Z
from __future__ import annotations import logging from typing import TYPE_CHECKING from snecs.typedefs import EntityID import scripts.engine.core.matter from scripts.engine.core import world from scripts.engine.core.component import Position from scripts.engine.core.effect import AffectCooldownEffect, ApplyAfflictio...
33.545652
120
0.652453
2df8804ee6cb768939ea38711087363dee4a6c01
1,541
py
Python
examples/BusinessOwnedProductCatalogsPostDestinationCatalog.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/BusinessOwnedProductCatalogsPostDestinationCatalog.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/BusinessOwnedProductCatalogsPostDestinationCatalog.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
38.525
76
0.781311
2df88b7a6e45433315ca7cd60820cfa723ffc774
6,301
py
Python
tests/components/recorder/test_init.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
tests/components/recorder/test_init.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
tests/components/recorder/test_init.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
"""The tests for the Recorder component.""" # pylint: disable=protected-access import json from datetime import datetime, timedelta import unittest from homeassistant.const import MATCH_ALL from homeassistant.components import recorder from homeassistant.bootstrap import setup_component from tests.common import get_te...
33.338624
78
0.609586
2df89fd98ee68a8498dbeb8d3640b02ebac82358
2,108
py
Python
ThirdParty/Twisted/twisted/words/topfiles/setup.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/words/topfiles/setup.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/words/topfiles/setup.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. import sys try: from twisted.python import dist except ImportError: raise SystemExit("twisted.python.dist module not found. Make sure you " "have installed the Twisted core package before " "atte...
39.037037
80
0.616224
2df8d46d4c22a9517f9a293c6846ab4a767d8cc7
1,069
py
Python
SimpleGP/tests/test_gpmae.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
2
2015-03-18T17:26:20.000Z
2019-03-18T17:28:16.000Z
SimpleGP/tests/test_gpmae.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
1
2015-04-19T17:02:49.000Z
2015-07-21T18:48:34.000Z
SimpleGP/tests/test_gpmae.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mario Graff Guerrero # 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...
21.38
74
0.65014
2df901c16e8441e14200f91b13d7e8b17a8b76a4
7,141
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
42.254438
223
0.664893
2df912d62d4e04fed2749706ab85124c1cbf4fd7
420
py
Python
app/operation/urls.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
null
null
null
app/operation/urls.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
33
2021-07-05T22:02:09.000Z
2021-07-11T01:30:12.000Z
app/operation/urls.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from operation import views router = DefaultRouter() router.register('accounttype', views.AccountTypeViewSet) router.register('account', views.AccountViewSet) router.register('tag', views.TagViewSet) router.register('operation', vi...
24.705882
56
0.788095
2df91f50c4992fe4ea28ddf242ea7c4181252fe3
13,003
py
Python
onyx/api/users.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-14T21:16:07.000Z
2020-07-09T07:30:44.000Z
onyx/api/users.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
2
2020-04-01T12:33:36.000Z
2020-04-01T12:33:49.000Z
onyx/api/users.py
OnyxAI/onyx
52f4bd5c5dd102acc51a83a20f281d7146893c2a
[ "MIT" ]
null
null
null
from flask import jsonify, make_response from flask_jwt_extended import jwt_required, jwt_refresh_token_required, create_access_token, create_refresh_token, get_jwt_identity, get_raw_jwt from flask_restful import Resource, reqparse from flask_restful.utils import cors from onyx.utils.log import getLogger from onyx.ext...
32.753149
177
0.586403
2df929a253c27170a67955893448453e599dc5a7
42,185
py
Python
SegmentEditorWrapSolidify/SegmentEditorWrapSolidifyLib/SegmentEditorEffect.py
lassoan/Slicer-SurfaceWrapSolidify
28c88d891e23fd1968e73318cc85a203595589cc
[ "FSFAP" ]
21
2019-12-16T22:19:07.000Z
2022-03-27T09:02:38.000Z
SegmentEditorWrapSolidify/SegmentEditorWrapSolidifyLib/SegmentEditorEffect.py
lassoan/Slicer-SurfaceWrapSolidify
28c88d891e23fd1968e73318cc85a203595589cc
[ "FSFAP" ]
8
2019-09-17T02:43:47.000Z
2021-12-08T05:08:54.000Z
SegmentEditorWrapSolidify/SegmentEditorWrapSolidifyLib/SegmentEditorEffect.py
lassoan/Slicer-SurfaceWrapSolidify
28c88d891e23fd1968e73318cc85a203595589cc
[ "FSFAP" ]
5
2019-11-16T03:33:36.000Z
2022-03-27T09:02:18.000Z
import os import vtk, qt, ctk, slicer import logging from SegmentEditorEffects import * import numpy as np import math import vtkSegmentationCorePython class SegmentEditorEffect(AbstractScriptedSegmentEditorEffect): """This effect uses shrinkwrap, raycasting, remesh, and solidifying algorithms to filter the surface ...
43.805815
193
0.751736
2df991a309d5a9b9cc7d56004fe5572da1883ed8
8,170
py
Python
ekster_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:30.000Z
2022-02-05T19:43:30.000Z
ekster_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
null
null
null
ekster_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:38.000Z
2022-02-05T19:43:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Default settings for Ekster simulation run. DO NOT change settings in this file, instead write them to settings.ini in your local run dir! """ from amuse.units import units from amuse.units.quantities import ( new_quantity, ScalarQuantity, VectorQuantity ) import...
34.041667
79
0.571236
2dfa6f8ff61caf17df0ca48cc58b799615b66e7b
3,354
py
Python
sdks/python/appcenter_sdk/models/AppleCertificateSecretDetailsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/AppleCertificateSecretDetailsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/AppleCertificateSecretDetailsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AppleCertifica...
28.423729
94
0.578712
2dfa703e1bbb8f2e49b84559e964a25b249ad353
2,616
py
Python
app/core/models.py
yohan-hicof/recipe-app-api
df7f763e87d992b2cc1b3be6ff7f7765b4eaea5f
[ "MIT" ]
null
null
null
app/core/models.py
yohan-hicof/recipe-app-api
df7f763e87d992b2cc1b3be6ff7f7765b4eaea5f
[ "MIT" ]
7
2021-03-19T03:25:11.000Z
2022-01-13T02:46:13.000Z
app/core/models.py
yohan-hicof/recipe-app-api
df7f763e87d992b2cc1b3be6ff7f7765b4eaea5f
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from django.conf import settings import uuid import os def recipe_image_file_path(instance, file_name): """Generate file path for a new image""" ext = file_name.split('.')[-1] file_name ...
29.066667
90
0.686544
2dfa7346af96afbdb54382fc449f3f20ab44ca5a
173,050
py
Python
corporate/tests/test_stripe.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
Chizycodes/zulip
f5a65846a8296dc697639e97ba34815e7cc2376d
[ "Apache-2.0" ]
null
null
null
import json import operator import os import random import re import sys from dataclasses import dataclass from datetime import datetime, timedelta, timezone from decimal import Decimal from functools import wraps from typing import ( Any, Callable, Dict, List, Mapping, Optional, Sequence, ...
45.396118
198
0.636463
2dfa7655132126463a56bc8507d11255778eac91
385
py
Python
src/coalescenceml/artifacts/__init__.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
1
2022-03-22T17:48:55.000Z
2022-03-22T17:48:55.000Z
src/coalescenceml/artifacts/__init__.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
2
2022-02-18T18:48:12.000Z
2022-02-19T18:14:38.000Z
src/coalescenceml/artifacts/__init__.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
1
2022-02-10T02:52:22.000Z
2022-02-10T02:52:22.000Z
from coalescenceml.artifacts.data_analysis_artifact import DataAnalysisArtifact from coalescenceml.artifacts.data_artifact import DataArtifact from coalescenceml.artifacts.metrics_artifact import MetricsArtifact from coalescenceml.artifacts.model_artifact import ModelArtifact __all__ = [ "DataAnalysisArtifact", ...
29.615385
79
0.831169
2dfa8c0af13d2f3a48bed67ab2bcd843bb88fbb1
328
py
Python
code/baselines/ruwordnet/create_ruwordnet.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
3
2020-11-22T15:28:09.000Z
2022-01-25T21:28:58.000Z
code/baselines/ruwordnet/create_ruwordnet.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
null
null
null
code/baselines/ruwordnet/create_ruwordnet.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
2
2020-11-22T15:27:50.000Z
2021-09-05T11:17:53.000Z
import sys from ruwordnet_reader import RuWordnet if __name__ == '__main__': if len(sys.argv) < 3: raise Exception("Required arguments: <input-dir> <output-path>") input_dir = sys.argv[1] out_dir = sys.argv[2] rwn = RuWordnet(db_path=out_dir, ruwordnet_path=input_dir, with_lemmas=...
25.230769
82
0.67378
2dfaf0798ea0a1a2598e5a89db788bb3c6941a0b
32,442
py
Python
zerver/tests/test_link_embed.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
6
2019-05-09T20:43:20.000Z
2022-03-29T05:53:50.000Z
zerver/tests/test_link_embed.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
2
2016-10-18T04:01:56.000Z
2016-10-20T18:19:09.000Z
zerver/tests/test_link_embed.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
7
2016-08-10T02:24:32.000Z
2022-03-28T15:14:18.000Z
from typing import Any, Callable, Dict, Optional from unittest import mock import ujson from django.test import override_settings from django.utils.html import escape from requests.exceptions import ConnectionError from zerver.lib.actions import queue_json_publish from zerver.lib.cache import NotFoundInCache, cache_s...
46.279601
435
0.616639
2dfaf824c3bc319dee902a12e1016c03542eeb95
11,120
py
Python
src/saas/bkuser_shell/config_center/views.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/views.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/views.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
41.185185
119
0.698741
2dfb33adf8f1ba7510803f7b71bb1d835ca1bfaa
7,863
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_config_map_node_config_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_config_map_node_config_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_config_map_node_config_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Con...
34.186957
172
0.634109
2dfb604bbde77a49affd785422e426a331eca166
144
py
Python
discordaio/permissions.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
5
2018-02-24T00:27:37.000Z
2019-02-06T21:35:02.000Z
discordaio/permissions.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
null
null
null
discordaio/permissions.py
Ryozuki/pydiscord
0be3f167a9832075bc967b9ae8437509ec925988
[ "MIT" ]
1
2018-03-02T10:06:07.000Z
2018-03-02T10:06:07.000Z
""" TODO: do this, remember to do: channel edit permissions endpoint https://discordapp.com/developers/docs/topics/permissions#permissions """
20.571429
69
0.777778
2dfb7ef9b3aa6805ce2a1d569f80ec0ab6c52348
2,315
py
Python
scripts/evaluate.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
17
2020-09-12T03:28:42.000Z
2021-11-15T12:10:31.000Z
scripts/evaluate.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
3
2020-10-16T08:52:05.000Z
2022-03-22T02:59:55.000Z
scripts/evaluate.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
1
2021-06-02T11:41:12.000Z
2021-06-02T11:41:12.000Z
import torch import h5py import os.path as osp import vsum_tools, eval_tools from tabulate import tabulate import numpy as np def evaluate(args, model, dataset, proportion=0.15): with torch.no_grad(): model.eval() meanFscores = [] meanPrecision = [] meanRecall = [] if arg...
36.171875
115
0.608207
2dfba73d8b34594708378a36d952c4de137f6c9c
220
py
Python
tests/functional/test_offer.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/functional/test_offer.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
tests/functional/test_offer.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from oscar.test.testcases import WebTestCase class TestTheOfferListPage(WebTestCase): def test_exists(self): response = self.app.get('/offers/') self.assertEqual(200, response.status_code)
24.444444
52
0.7
2dfbabc49d8c97cb73063dbaa3d8888ab90b4904
1,559
py
Python
fetcher/src/preflight/estimator.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
fetcher/src/preflight/estimator.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
fetcher/src/preflight/estimator.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
33.891304
80
0.77229
2dfbed0b4428675615d51607e6acf82ef204e50e
478
py
Python
analytics/urls.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
analytics/urls.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2019-11-02T09:06:05.000Z
2019-11-02T09:06:05.000Z
analytics/urls.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url import analytics.views i18n_urlpatterns = [ url(r'^activity$', analytics.views.get_activity, name='analytics.views.get_activity'), url(r'^realm_activity/(?P<realm>[\S]+)/$', analytics.views.get_realm_activity, name='analytics.views.get_realm_activity'), url(...
34.142857
82
0.713389
2dfbef58ab3f7e4829c71fe933fa72d657d118e3
5,784
py
Python
configurations/bagging_26_convroll5_preinit_drop@420.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
628
2015-03-25T17:32:30.000Z
2021-07-30T18:24:33.000Z
configurations/bagging_26_convroll5_preinit_drop@420.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
4
2015-04-06T10:23:19.000Z
2017-01-10T18:47:49.000Z
configurations/bagging_26_convroll5_preinit_drop@420.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
253
2015-03-25T18:08:43.000Z
2022-01-26T22:35:05.000Z
import numpy as np import theano import theano.tensor as T import lasagne as nn import data import load import nn_plankton import dihedral import tmp_dnn import tta pre_init_path = "CONVROLL4_MODEL_FILE" validation_split_path = "splits/bagging_split_26.pkl" patch_size = (95, 95) augmentation_params = { 'zoom_...
47.801653
205
0.728734
2dfcaa09301ef1827385f71440c9451188c053f4
37,795
py
Python
mysqloperator/controller/innodbcluster/cluster_api.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
1
2022-02-11T22:13:57.000Z
2022-02-11T22:13:57.000Z
mysqloperator/controller/innodbcluster/cluster_api.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
mysqloperator/controller/innodbcluster/cluster_api.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 2021, Oracle and/or its affiliates. # # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # import enum import typing from typing import Optional, List, Tuple, cast, overload from kopf.structs.bodies import Body from ..k8sobject import K8sInte...
35.125465
155
0.614658
2dfcbe93283931173ce9df303a13a38ee066286a
447
py
Python
reana_server/app.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "MIT" ]
null
null
null
reana_server/app.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "MIT" ]
null
null
null
reana_server/app.py
holzman/reana-server
f0d55e16ba01ae4e4ca53b823eaa56d6bd2572aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Main entrypoint for Reana-Server.""" from reana_server.factory import create_app # ...
24.833333
72
0.709172
2dfcc44d21371003ab844f3169e79e21c11a51e2
1,112
py
Python
settings.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
settings.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
settings.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from dskc import get_root_path ROOT_PATH = get_root_path() DATASET_FOLDER_PATH = "/home/ppl/Documents/dataset/" # raw DATASET_RAW_PATH = DATASET_FOLDER_PATH + 'raw/' DATASET_PATH = "{}{}".format(DATASET_RAW_PATH, "data-set.xlsx") DATASET_PROJECTS_PATH = "{}{}".format(DATASET_RAW_PATH, "projects.csv") DATASET_PLEDGE...
35.870968
89
0.767086
2dfcfd78afe0a2f53ab8e397d47ece93ab7f842b
34,424
py
Python
next/database_client/PermStore/PermStore.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
next/database_client/PermStore/PermStore.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
next/database_client/PermStore/PermStore.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
""" Perm Store author: Kevin Jamieson, kevin.g.jamieson@gmail.com last updated: 12/31/2014 Persistent storage solution. Database hierarchy is organized as: ::\n PermStore[database_id][bucket_id][doc_uid] = {key1:value1,key2:value2,...} Dependencies: next.constants to determine location of mongoDB server Some com...
35.970742
445
0.584912
2dfd19fd5a645bcac3b82f581ae1b722f27ff19b
167
py
Python
mmf/datasets/builders/vizwiz/__init__.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
2
2021-02-22T12:15:42.000Z
2021-05-02T15:22:24.000Z
mmf/datasets/builders/vizwiz/__init__.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
7
2021-03-01T21:16:26.000Z
2022-02-27T07:07:11.000Z
mmf/datasets/builders/vizwiz/__init__.py
krantirk/MMF
2e4acaad7ca8eee4319e1205a560eed81733a0be
[ "BSD-3-Clause" ]
2
2021-05-26T09:50:24.000Z
2021-07-20T11:57:41.000Z
# Copyright (c) Facebook, Inc. and its affiliates. from .builder import VizWizBuilder from .dataset import VizWizDataset __all__ = ["VizWizBuilder", "VizWizDataset"]
27.833333
50
0.778443
2dfd679023c71078ba79e4a21d313953c210e9b2
30,128
py
Python
core/sawtooth/client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
core/sawtooth/client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
core/sawtooth/client.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.107692
80
0.597384
2dfd7200b1abedd160df36fca1a884336857992c
2,054
py
Python
images_time_table/scripts/filter_files.py
UofU-Cryosphere/snow-aso
f090b6be1abb1b1557574340456e7932f35a46e0
[ "MIT" ]
6
2018-10-04T04:36:23.000Z
2021-03-03T18:42:39.000Z
images_time_table/scripts/filter_files.py
UofU-Cryosphere/snow-aso
f090b6be1abb1b1557574340456e7932f35a46e0
[ "MIT" ]
4
2018-10-04T01:15:47.000Z
2021-03-09T18:31:53.000Z
images_time_table/scripts/filter_files.py
UofU-Cryosphere/snow-aso
f090b6be1abb1b1557574340456e7932f35a46e0
[ "MIT" ]
4
2019-01-17T21:06:04.000Z
2021-03-04T18:49:46.000Z
#!/usr/bin/env python import argparse import json import os import shutil from shapely.geometry import shape, Point from images_time_table.base import ImagesMetaCsv def parser(): argument_parser = argparse.ArgumentParser() argument_parser.add_argument( '--images-path', type=str, hel...
22.822222
67
0.623661
2dfd743bb002886cad76ae3cd2e0998f33e1248d
1,692
py
Python
examples/07/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
null
null
null
examples/07/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
null
null
null
examples/07/train/train_job.py
chenwuperth/smworkshop
13738a04d6cdcaf75a4c97b3ca3ed31349a9385f
[ "Apache-2.0" ]
2
2020-06-22T02:55:34.000Z
2020-07-09T10:18:48.000Z
""" Train job interacts with SageMaker """ import os import sys import boto3 import sagemaker from sagemaker.amazon.amazon_estimator import get_image_uri from ...sm_utils import get_sm_execution_role, parse_train_args if __name__ == '__main__': args = parse_train_args() if (args.train_s3_path is None): ...
29.684211
81
0.701537
2dfd854abc909e0fd32a2f713b0fe8cc49d3f760
2,037
py
Python
venv/Lib/site-packages/pyrogram/raw/base/help/support.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/help/support.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/help/support.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.12069
87
0.627393
2dfd8e80d939f945dcb489e5bcccf378bd53eab9
18,554
py
Python
tools/setup.py
arkanovicz/incubator-ponymail
1d23dba423ac1ce22dffa677eac5313a341a8a3d
[ "Apache-2.0" ]
null
null
null
tools/setup.py
arkanovicz/incubator-ponymail
1d23dba423ac1ce22dffa677eac5313a341a8a3d
[ "Apache-2.0" ]
null
null
null
tools/setup.py
arkanovicz/incubator-ponymail
1d23dba423ac1ce22dffa677eac5313a341a8a3d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # 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 "Lice...
31.447458
155
0.516169
2dfda7b8590a4d84b524cd98d724fa81341e4676
21,127
py
Python
mne_bids/copyfiles.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
mne_bids/copyfiles.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
mne_bids/copyfiles.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
"""Utility functions to copy raw data files. When writing BIDS datasets, we often move and/or rename raw data files. several original data formats have properties that restrict such operations. That is, moving/renaming raw data files naively might lead to broken files, for example due to internal pointers that are not...
36.80662
79
0.618308
2dfdb13d3b1edb00b4d7006f500cdb7367fb875e
2,228
py
Python
flexget/api/database.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/api/database.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/api/database.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging from flask import jsonify from flexget.db_schema import reset_schema, plugin_schemas from flexget.api import api, APIResource log = logging.getLogger('database...
32.289855
97
0.666966
2dfdb7ff1a188442da903b1dbbb986b1913a45fc
546
py
Python
terrascript/provider/Ouest_France/itop.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/Ouest_France/itop.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/Ouest_France/itop.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/Ouest-France/itop.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:19:18 UTC) import terrascript class itop(terrascript.Provider): """Terraform provider to manage iTop resources""" __description__ = "Terraform provider to manage iTop resources" __namespace__ = "Ou...
27.3
74
0.717949
2dfdbe854039601d4a0d6de9eeec90d03c67327b
16,212
py
Python
shark2Algorithm.py
Hawk-5/Hawk5
73387e385f8fe8245f8b105df47b15582a3fb57a
[ "MIT" ]
null
null
null
shark2Algorithm.py
Hawk-5/Hawk5
73387e385f8fe8245f8b105df47b15582a3fb57a
[ "MIT" ]
null
null
null
shark2Algorithm.py
Hawk-5/Hawk5
73387e385f8fe8245f8b105df47b15582a3fb57a
[ "MIT" ]
null
null
null
import time import json import math from scipy.interpolate import interp1d import numpy as np import copy from scipy.spatial import distance centroids_X = [200, 650, 450, 400, 350, 500, 600, 700, 850, 800, 900, 1000, 850, 750, 950, 1050, 150, 450, 300, 550, 750, 550, 250, 350, 650, 250 ] centroids_Y = [250, 350, 350,...
55.903448
2,196
0.742783
2dfdfc41a35779e3afaec80228535431f228a6a1
16,487
py
Python
src/sardana/taurus/qt/qtgui/extra_sardana/qtspock.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/qt/qtgui/extra_sardana/qtspock.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/qt/qtgui/extra_sardana/qtspock.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2020 DESY ## # Sardana is free software: you can redistribute it and/or modify # it under the terms of the ...
37.555809
93
0.644811
2dfe093f5e6db6e04dbbcadfe9d8585828f98bf8
643
py
Python
scripts/py/load_dump.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/load_dump.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/load_dump.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
import os from sys import argv import json from time import sleep from legislative_act import model as dm def load_single_dump(file_path): with open(file_path) as f: hits = [json.loads(line) for line in f.readlines()] for hit in hits: gcd = dm.GenericContentDocument.from_es(hit) gcd....
20.09375
59
0.682737
2dfe3faff55f6b39dc0c53b2e26ff1a25ea0de97
1,016
py
Python
nova/api/openstack/compute/legacy_v2/contrib/extended_evacuate_find_host.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/api/openstack/compute/legacy_v2/contrib/extended_evacuate_find_host.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/api/openstack/compute/legacy_v2/contrib/extended_evacuate_find_host.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# # 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.62963
77
0.724409
2dfe558097668bcb868fe47d5163be8c261a558a
11,955
py
Python
pointnet2/utils/pointnet_util.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
19
2020-03-31T12:25:37.000Z
2022-02-19T09:42:59.000Z
pointnet2/utils/pointnet_util.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
5
2020-04-20T10:53:50.000Z
2022-01-17T16:02:24.000Z
pointnet2/utils/pointnet_util.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
8
2020-04-17T15:20:21.000Z
2021-06-04T01:36:22.000Z
""" PointNet++ Layers Author: Charles R. Qi Date: November 2017 """ import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(os.path.join(ROOT_DIR, 'utils')) sys.path.append(os.path.join(ROOT_DIR, 'tf_ops/sampling')) sys.path.append(os.path.join(R...
51.978261
178
0.621665
2dfe7bccf0f7daea8c4ff78a8dcbbe1ee8a9e13f
401
py
Python
vis_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
3
2020-12-05T17:43:51.000Z
2020-12-06T10:37:29.000Z
vis_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
vis_runner.py
Square789/AoC
041aecb9e1a06b5417bdef0eb0ab70a542be04b5
[ "MIT" ]
null
null
null
import importlib import sys from aoc_input import get_input if __name__ == "__main__": if len(sys.argv) < 3: print("Specify which visualization to run! [year, day]") sys.exit() try: year = int(sys.argv[1]) day = int(sys.argv[2]) except ValueError: print("Integer required!") sys.exit() module = impor...
20.05
60
0.688279
2dfe7f156c7c70ecc7cbc70bd282b7bf7ef06366
1,820
py
Python
tnp/sphere.py
chrisjonesBSU/mbuild-examples
6863dc7d59a2eef66f6836d81cc4c7d9b7ab5ac3
[ "MIT" ]
4
2020-01-16T16:54:34.000Z
2020-11-08T23:43:00.000Z
tnp/sphere.py
chrisjonesBSU/mbuild-examples
6863dc7d59a2eef66f6836d81cc4c7d9b7ab5ac3
[ "MIT" ]
3
2019-10-17T13:55:49.000Z
2020-01-24T22:55:11.000Z
tnp/sphere.py
chrisjonesBSU/mbuild-examples
6863dc7d59a2eef66f6836d81cc4c7d9b7ab5ac3
[ "MIT" ]
5
2019-10-17T13:22:55.000Z
2021-05-18T01:47:39.000Z
from numpy import pi, arctan2, arcsin import mbuild as mb class Sphere(mb.Compound): """A spherical arangement of particles with Ports. """ def __init__(self, n=65, radius=1, port_distance_from_surface=.07): """Initialize a Sphere object. Args: n (int): Number of points used to c...
38.723404
86
0.606593
2dfe8c4f576ecba3f8b382903c77452843f6ea34
1,334
py
Python
acme/utils/loggers/aggregators.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
1
2021-06-17T16:11:43.000Z
2021-06-17T16:11:43.000Z
acme/utils/loggers/aggregators.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
1
2021-01-25T15:39:56.000Z
2021-01-25T15:39:56.000Z
acme/utils/loggers/aggregators.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2
2021-01-07T11:35:19.000Z
2021-01-07T12:16:21.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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...
35.105263
74
0.730885
2dfe8d0e7bb8f4004ddf7a0c9e482618ac2af776
4,708
py
Python
whoville/cloudbreak/models/version_check_result.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/version_check_result.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/version_check_result.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
31.386667
984
0.612362
2dfeb2526778ef158d78ab832d2eb251110d323b
2,563
py
Python
rl-toolkit/rlf/envs/bit_flip.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/envs/bit_flip.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/envs/bit_flip.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import gym from gym.spaces import Box, Discrete from rlf.baselines.dict import Dict from rlf.envs.env_interface import EnvInterface, register_env_interface import numpy as np BIT_FLIP_ID = 'BitFlip-v0' class BitFlipEnv(gym.Env): """ From https://gist.github.com/MishaLaskin/f2e76ba1d6171ecdecbe7f6a5431e0a8 ...
35.109589
113
0.600858
2dfeea81f2a6296cd212701fbaa06dfecd2cf74a
443
py
Python
influxdb_client/client/users_api.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/client/users_api.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/client/users_api.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
from influxdb_client import UsersService, User class UsersApi(object): def __init__(self, influxdb_client): self._influxdb_client = influxdb_client self._service = UsersService(influxdb_client.api_client) def me(self) -> User: user = self._service.get_me() return user de...
24.611111
64
0.677201
2dfef93aa778ef7730f26866bec8e9478ff42584
1,376
py
Python
userbot/plugins/spacedp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spacedp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spacedp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import asyncio import os import random import re import urllib import requests from telethon.tl import functions from userbot.utils import lightning_cmd # Space lovers COLLECTION_STRINGS = [ "1920x1080-space-wallpapers", "4k-space-wallpaper", "cool-space-wallpapers-hd", ] async def animepp(): os.s...
20.848485
82
0.65189
2dff0237f41f91d9d655f056c03d554aa7ff0ad9
14,200
py
Python
heat/tests/functional/test_CFN_API_Actions_Boto.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/tests/functional/test_CFN_API_Actions_Boto.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/tests/functional/test_CFN_API_Actions_Boto.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicabl...
39.664804
79
0.650563
2dff17957ff9aa67adc935a47d7ec004984506d3
19,021
py
Python
build/lib/rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
build/lib/rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
build/lib/rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 17 11:50:56 2020 @author: willi """ import numpy as np class IntensityAnalyses(): def __init__(self): pass @staticmethod def get_acc2(data, trunc=False): ''' Get autocorrelation function *NOT* multi-tau ''' ...
36.369025
183
0.487041
2dff1880253e23ee348f842eb7b82f22b2ba39a7
499
py
Python
data/txt_to_csv.py
syrGitHub/Graph-Temporal-AR-GTA-
5706685a6cf9e9495a5fd7907b9c6f0767b3ac8e
[ "MIT" ]
null
null
null
data/txt_to_csv.py
syrGitHub/Graph-Temporal-AR-GTA-
5706685a6cf9e9495a5fd7907b9c6f0767b3ac8e
[ "MIT" ]
null
null
null
data/txt_to_csv.py
syrGitHub/Graph-Temporal-AR-GTA-
5706685a6cf9e9495a5fd7907b9c6f0767b3ac8e
[ "MIT" ]
null
null
null
# Writing h5 import pandas as pd dataset = pd.read_csv("/home/sunyanru19s/pytorch/GDN-main/data/Solar_hour/train.txt", sep=',', header=0) print(dataset) dataset.to_csv("/home/sunyanru19s/pytorch/GDN-main/data/Solar_hour/train.csv", index=False) dataset1 = pd.read_csv("/home/sunyanru19s/pytorch/GDN-main/data/So...
38.384615
105
0.747495
2dff1d0e0865c0e65a08be4d4124863725450243
12,367
py
Python
unwetterinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
unwetterinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
unwetterinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- # # Wetter Infos von # www.unwetterzentrale.de und www.uwz.at # # Author: barabas # import xml.sax.saxutils as util from Plugins.Plugin import PluginDescriptor from twisted.web.client import getPage from twisted.internet import reactor from Screens.Screen import Screen from Screens.Console imp...
28.495392
129
0.6523
2dff2b0cd64b17886171964e2f803727aefb8174
40,837
py
Python
plugin.py
gerard33/sonos
7f035da9f85304ae795715b18f36dc5a321d03e4
[ "MIT" ]
8
2016-01-10T12:44:29.000Z
2019-05-28T05:24:20.000Z
plugin.py
gerard33/sonos
7f035da9f85304ae795715b18f36dc5a321d03e4
[ "MIT" ]
6
2017-08-04T22:30:58.000Z
2018-02-24T23:04:16.000Z
plugin.py
gerard33/sonos
7f035da9f85304ae795715b18f36dc5a321d03e4
[ "MIT" ]
13
2016-05-29T08:00:16.000Z
2022-01-16T18:46:14.000Z
# Sonos Plugin # # Original author: Tester22, 2017, https://github.com/tester22/Domoticz-Sonos # Current author: G3rard, 2017 # """ <plugin key="Sonos" name="Sonos Players" author="G3rard" version="0.91" wikilink="https://github.com/gerard33/sonos" externallink="https://sonos.com/">...
53.242503
180
0.536621
2dff30948bcc4b7322c179629b3af9a587ed26f6
1,192
py
Python
feed/settings.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
feed/settings.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
feed/settings.py
nokitakaze/point
a6a6026462116645c33463e5143b791f462da588
[ "Apache-2.0" ]
null
null
null
workers = 8 libs = ['/home/point/point/lib'] # redis cache_socket = 'tcp://127.0.0.1:16380' storage_socket = 'unix:///var/run/redis/storage.sock' pubsub_socket = 'unix:///var/run/redis/pubsub.sock' queue_socket = 'unix:///var/run/redis/queue.sock' queue_timeout = 5 feed_fetch_timeout = 30 feed_queue_socket = 'unix:...
18.920635
102
0.686242
2dff32e9b4cd70017e9a7acdf2b3ec5315204778
8,118
py
Python
controller/utils/projector.py
isabella232/flight-lab
bd666b1d2bcec6f928a2e8da9f13fd5dae21319f
[ "Apache-2.0" ]
15
2018-10-18T07:50:46.000Z
2021-10-21T03:40:55.000Z
controller/utils/projector.py
google/flight-lab
bd666b1d2bcec6f928a2e8da9f13fd5dae21319f
[ "Apache-2.0" ]
9
2018-09-17T23:00:02.000Z
2019-01-22T21:08:04.000Z
controller/utils/projector.py
isabella232/flight-lab
bd666b1d2bcec6f928a2e8da9f13fd5dae21319f
[ "Apache-2.0" ]
12
2019-01-07T12:43:37.000Z
2021-10-21T03:40:44.000Z
# Copyright 2018 Flight Lab 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
29.096774
79
0.656689
2dff8437680adfbc92a65da89fb976376120e163
524
py
Python
python/projects/learnpythonthehardway.org/ex40.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/learnpythonthehardway.org/ex40.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
python/projects/learnpythonthehardway.org/ex40.py
zhaoace/codecraft
bf06267e86bd7386714911b0df4aa0ca0a91d882
[ "Unlicense" ]
null
null
null
cities = {'CA': 'San Francisco', 'MI': 'Detroit', 'FL':'Jacksonville'} cities['NY'] = 'New York' cities['OR'] = 'Portland' def find_city(themap, state): if state in themap: return themap[state] else: return "Not found!" cities['_find'] = find_city while True: print "S...
15.411765
71
0.564885
2dff90e0e1fa0a1886d7976bfbc14869fc37b88d
7,854
py
Python
tests/runners/test_base.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
3
2022-02-06T23:31:17.000Z
2022-02-07T11:10:03.000Z
tests/runners/test_base.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
null
null
null
tests/runners/test_base.py
captainhammy/houdini_package_runner
40f8b60ebe32c64fd9b37328a9a5eefacd1c6ebd
[ "MIT" ]
null
null
null
"""Test the houdini_package_runner.runners.base module.""" # ============================================================================= # IMPORTS # ============================================================================= # Standard Library import argparse import pathlib # Third Party import pytest # Houdini...
30.8
86
0.615101
2dffa353187786642e41d79cb338fe861e1f13e5
4,057
py
Python
pixiu/base/api_base.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
3
2021-07-12T10:50:26.000Z
2022-02-24T10:30:03.000Z
pixiu/base/api_base.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
pixiu/base/api_base.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
import math import json from datetime import (datetime, timedelta) from pytz import timezone import random import numpy as np import pandas as pd import time from RestrictedPython.Guards import (guarded_unpack_sequence, ) from RestrictedPython.Eval import (default_guarded_getiter, ) import inspect from pixiu.api.utils...
32.717742
145
0.621149
2dffb1092e3a3ee4a16a7c028f6aa2ac30c43761
2,076
py
Python
src/gui_tool/gui/tinker_subuis/select_popup.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
3
2020-02-12T01:24:46.000Z
2020-02-13T00:50:46.000Z
src/gui_tool/gui/tinker_subuis/select_popup.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
32
2020-02-20T10:20:56.000Z
2022-02-10T01:42:46.000Z
src/gui_tool/gui/tinker_subuis/select_popup.py
AutoDash/AutoDash
3924795a04159f80ea3b65b2172747babd15f35f
[ "Apache-2.0" ]
1
2020-02-22T02:47:19.000Z
2020-02-22T02:47:19.000Z
from tkinter import Tk, Frame, Entry, Button from tkinter import END from .cashe_manager import ListCacheManager class SelectPopup: def __init__(self, title, cache_name, cache_amount, defaults): self.tags = [] self.entries = [] self.root = Tk() self.root.title(title) self.roo...
35.186441
99
0.625241
2dffbb9f66ce873fc7bbf855c399dcf85e84b47b
2,696
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/mua.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/mua.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/mua.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "mua", "date_order": "DMY", "january": [ "fĩi loo", "flo" ], "february": [ "cokcwaklaŋne", "cla" ], "march": [ "cokcwaklii", "cki" ], "april": [ "fĩi marfoo", "fmf" ], "ma...
15.766082
33
0.288205
2dffe303f9b2264d437c4f68f4c5212cdc0badfa
5,232
py
Python
tools/subunit_to_junit.py
bartek-bartlomiej/qiskit-terra
247f44ef87b08302514e512e4ed36601e95f33cd
[ "Apache-2.0" ]
null
null
null
tools/subunit_to_junit.py
bartek-bartlomiej/qiskit-terra
247f44ef87b08302514e512e4ed36601e95f33cd
[ "Apache-2.0" ]
null
null
null
tools/subunit_to_junit.py
bartek-bartlomiej/qiskit-terra
247f44ef87b08302514e512e4ed36601e95f33cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any ...
33.754839
104
0.690176
930020da9173a84a492d3208d9e1ceff98b693fe
1,778
py
Python
sphinx_lootnika_theme/develop.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
1
2021-03-17T10:55:26.000Z
2021-03-17T10:55:26.000Z
sphinx_lootnika_theme/develop.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
null
null
null
sphinx_lootnika_theme/develop.py
justtopich/sphinx_lootnika_theme
c2e9d18921377a37134c17d0e48ae2ad6da2b5cc
[ "BSD-2-Clause" ]
null
null
null
""" In sphinx.cmd.build you need change this # if __name__ == '__main__': # sys.exit(main(sys.argv[1:])) if __name__ != '__main__': main(sys.argv[1:]) """ import sys import shutil import asyncio import logging from os import makedirs from aiohttp import web sys.argv.append('-M') sys.argv.app...
21.166667
76
0.655231
93006ec871d6d83d8fa938e2e2f8e672dc7b0fd6
2,963
py
Python
Florence/MaterialLibrary/IdealDielectric.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/MaterialLibrary/IdealDielectric.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/MaterialLibrary/IdealDielectric.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np from numpy import einsum from Florence.Tensor import trace, Voigt from .MaterialBase import Material from Florence.LegendreTransform import LegendreTransform class IdealDielectric(Material): """Ideal dielectric material model for Laplace problems """ def __init__(self, ndim, **kwargs):...
38.480519
114
0.668579
93007a7ae2f20f4f87fcb4e9c78801daee830349
165,169
py
Python
azure/multiapi/storage/v2016_05_31/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2016_05_31/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2016_05_31/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.apa...
52.136679
131
0.630197
9300b6770218bb09f2c1cb1edcb511ce423d211d
1,297
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/dotstar_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/dotstar_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_featherwing/dotstar_featherwing.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_featherwing.dotstar_featherwing` ==================================================== Helper for using the `DotStar FeatherWing <https://www.adafruit.com/product/3449>`_. * Author(s): Meliss...
29.477273
84
0.649961
9300be1b130c194c597707b16924f74b262ab054
4,010
py
Python
alipay/aop/api/request/AntMerchantExpandWarehouseOrderSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AntMerchantExpandWarehouseOrderSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AntMerchantExpandWarehouseOrderSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntMerchantExpandWarehouseOrderSyncModel import AntMerchantExpandWarehouseOrderSyncModel class AntMerchantExpandWarehouseOrderSyncRe...
27.655172
148
0.64788
9300ece200fdeb9d7654a96b3a174205983f8c5a
7,526
py
Python
savu/plugins/unregistered/i18_loaders/base_i18_multi_modal_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/unregistered/i18_loaders/base_i18_multi_modal_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/unregistered/i18_loaders/base_i18_multi_modal_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.203046
111
0.544512
9300ef17d57de2965e06b28236a66f1d638b2c7c
229
py
Python
src/pandas_profiling_study/report/presentation/flavours/qt/frequency_table_small.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/qt/frequency_table_small.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/qt/frequency_table_small.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
1
2020-04-25T15:20:39.000Z
2020-04-25T15:20:39.000Z
from PyQt5.QtWidgets import QPushButton from .....report.presentation.core import FrequencyTableSmall class QtFrequencyTableSmall(FrequencyTableSmall): def render(self): return QPushButton("Small Frequency Table")
25.444444
61
0.786026
930146d10011d87c95f8cb0bcd5ef1f395634093
9,817
py
Python
src/plotting/aux_plots.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
1
2020-08-24T06:51:46.000Z
2020-08-24T06:51:46.000Z
src/plotting/aux_plots.py
zhangc927/dynasim
98c9692a5de32380c27739728c2086661cf41084
[ "MIT" ]
2
2020-08-06T10:01:59.000Z
2021-05-17T12:14:44.000Z
src/plotting/aux_plots.py
zhangc927/dynasim
98c9692a5de32380c27739728c2086661cf41084
[ "MIT" ]
2
2020-08-19T06:52:09.000Z
2021-12-10T08:57:54.000Z
import numpy as np import pandas as pd import os import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") from bokeh.plotting import figure, output_file, show, gridplot from bokeh.models import ColumnDataSource from bokeh.palettes import Spectral6 input_path = "/Users/christianhilscher/Deskto...
33.391156
139
0.604564
930158c97bd1783f23cff6a4c0f7bc6e4247365f
606
py
Python
experiments/increasing_dim/config.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
1
2021-04-13T16:13:34.000Z
2021-04-13T16:13:34.000Z
experiments/increasing_dim/config.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
experiments/increasing_dim/config.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
import numpy as np ########################## # config dimensions = [1, 2, 3, 4] repeats = 5 # num_inducing = [10, 50, 100, 200, 500] # for sparse GP # num_Basis = np.array([3, 5, 7]) # for VFF num_Basis = [ np.array([5, 9, 21, 41]), np.array([3, 7, 15, 21, 27, 35, 45]), np.array([3, 5, 7, 9, 11, 13]), ...
22.444444
57
0.476898
93015e6cbdc72bea2d517cb857c0244fdc53575a
22,458
py
Python
python/pyclaw/controller.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
2
2016-04-26T02:32:09.000Z
2021-02-08T08:43:44.000Z
python/pyclaw/controller.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
null
null
null
python/pyclaw/controller.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
2
2019-01-17T04:34:08.000Z
2020-08-11T16:02:28.000Z
#!/usr/bin/env python # encoding: utf-8 r""" Controller for basic computation and plotting setup This module defines the Pyclaw controller class. It can be used to perform simulations similar to previous versions of clawpack, i.e. with outstyle and output time specification. It also can be used to setup easy plottin...
40.537906
102
0.534776
9301755b87ef77612786fd110d3f95d46bf9d3f2
10,454
py
Python
programl/models/lstm/lstm.py
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
1
2020-07-14T12:17:45.000Z
2020-07-14T12:17:45.000Z
programl/models/lstm/lstm.py
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
null
null
null
programl/models/lstm/lstm.py
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 the ProGraML authors. # # Contact Chris Cummins <chrisc.101@gmail.com>. # # 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...
33.722581
89
0.70815
930182b0edfdbe04f685bc2c9b47a23b248b1b34
607
py
Python
cryptoxlib/clients/bitpanda/enums.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
90
2020-04-09T18:34:49.000Z
2022-03-09T14:29:32.000Z
cryptoxlib/clients/bitpanda/enums.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
44
2020-04-03T17:02:20.000Z
2022-01-29T14:51:51.000Z
cryptoxlib/clients/bitpanda/enums.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
28
2020-04-25T21:34:53.000Z
2022-03-31T07:20:07.000Z
import enum class OrderType(enum.Enum): MARKET = "MARKET" LIMIT = "LIMIT" STOP_LIMIT = "STOP" class OrderSide(enum.Enum): BUY = "BUY" SELL = "SELL" class TimeInForce(enum.Enum): GOOD_TILL_CANCELLED = "GOOD_TILL_CANCELLED" IMMEDIATE_OR_CANCELLED = "IMMEDIATE_OR_CANCELLED" FILL_OR_KI...
17.852941
53
0.650741
930191f6bb48b73d188ebe4554dcb755d326f2b6
1,488
py
Python
think-python/code/analyze_book2.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/analyze_book2.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/analyze_book2.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
""" Python provides a data structure called set that provides many common set operations. You can read about them in Section 19.5, or read the documentation at http://docs.python.org/3/library/stdtypes.html#types-set . Write a program that uses set subtraction to find words in the book that are not in the word list....
22.208955
98
0.608199
9301a7e104d2640bf8b45473276c3c8e0e848758
924
py
Python
strippairing/classification.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
strippairing/classification.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
strippairing/classification.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
from strippairing2 import StripPairing flag = False while(not flag): inVal = input("Would you like to run strippairing2?: ") if (inVal.lower() == 'exit'): print("Exiting the program...") flag = True elif (inVal == 'yes'): fileVal = input("Which file would you like to set? (['StripP...
42
145
0.591991
9301c60d092b1691c1724cbf6c6aee01a6d9b5e7
30,987
py
Python
src/hyperka/et_apps/model.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
src/hyperka/et_apps/model.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
src/hyperka/et_apps/model.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import torch import torch.nn as nn import torch.nn.functional as F import src.hyperka.et_apps.util as ut from src.hyperka.et_apps.util import embed_init from src.hyperka.et_funcs.test_funcs import eval_type_hyperbolic from src.hyperka.hyperbolic.poincare import PoincareManifold c...
59.362069
121
0.677768
9301c8a221bedf652760d60810fa3c4b89a00eec
1,228
py
Python
aws_assets/glue_job_scripts/shell/sanity_shell_job.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
4
2020-04-23T18:43:27.000Z
2022-02-22T03:57:06.000Z
aws_assets/glue_job_scripts/shell/sanity_shell_job.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
1
2021-06-02T00:47:12.000Z
2021-06-02T00:47:12.000Z
aws_assets/glue_job_scripts/shell/sanity_shell_job.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
null
null
null
import json import sys import os import pkg_resources # # Below line define the expected shell command line arguments which can be defined in Glue Job Definition. # To make the argument optional, suffix the name with '?' character. # in order to access the command line argument you could use # # >>> env.get_property...
24.56
106
0.672638
9301e928013e35b1c6aff3097ee820dcae5378e2
1,474
py
Python
tests/test_timeline.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
4
2021-02-02T19:49:54.000Z
2021-12-09T04:04:13.000Z
tests/test_timeline.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
1
2021-06-02T15:24:59.000Z
2021-06-02T15:24:59.000Z
tests/test_timeline.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
2
2021-12-06T21:43:14.000Z
2022-03-11T21:45:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import os ...
35.095238
84
0.588874
9301f9e1c5a0984ba2f50dccc107fff4bf8a748a
6,349
py
Python
ucsc_apis/network/ip_pool.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
1
2018-08-15T15:13:43.000Z
2018-08-15T15:13:43.000Z
ucsc_apis/network/ip_pool.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
8
2017-02-13T09:09:02.000Z
2017-12-27T04:05:26.000Z
ucsc_apis/network/ip_pool.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
3
2016-11-22T09:49:01.000Z
2020-10-14T01:23:40.000Z
# Copyright 2017 Cisco Systems, 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 writing...
32.558974
78
0.60041
9302060f71982d831eeee0b5f6c60bc4c6cca25e
58,126
py
Python
oscar/lib/python2.7/site-packages/whoosh/fields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/fields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/fields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2007 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions a...
36.013631
81
0.598252
9302361bb6567f4770158893c2291e32584c0beb
2,510
py
Python
msticpy/data/query_container.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/data/query_container.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/data/query_container.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Query h...
33.026316
78
0.566534
93025b07c1d9125acbf362c4082504d02eea0a83
1,442
py
Python
tf-kld/scripts/shuffling.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
tf-kld/scripts/shuffling.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
tf-kld/scripts/shuffling.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
import nltk import random from nltk.stem.porter import PorterStemmer stemmer = PorterStemmer() def stem_tokens(tokens, stemmer): stemmed = [] for item in tokens: stemmed.append(stemmer.stem(item)) return stemmed # For train file fin = open("msr_paraphrase_train.txt",'r') fout = open("Tk_msr_para...
23.258065
83
0.612344
93028f9295d7ab4bcf90d39ee50766fdd7092167
3,876
py
Python
source/SC_Generator/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Generator/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Generator/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
import os import random import requests from time import sleep from io import BytesIO import asyncio import uuid import datetime import json import logging import boto3 import botocore from aiokafka import AIOKafkaProducer # Images on local S3 service_point = 'http://' + os.environ['SERVICE_POINT'] aws_access_key_id ...
38
122
0.663829
9302a2c19af4ec8cba97152909a453a9a6d22c90
641
py
Python
sivtools/utilities/deconstruct.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
6
2018-09-14T16:18:00.000Z
2022-03-27T19:50:31.000Z
sivtools/utilities/deconstruct.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
11
2018-01-31T14:18:54.000Z
2020-06-09T00:46:45.000Z
sivtools/utilities/deconstruct.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
null
null
null
"""Implementing JavaScript object deconstruct functionality in Python""" from collections import abc import itertools from typing import Union def deconstruct(mapping: dict, extract: Union[str, list]) -> tuple: """Return deconstructed dictionary""" _mapping = dict(mapping) if isinstance(extract, abc.Has...
29.136364
72
0.708268
9302d6566ccb4e028b1820681bfb53bbd51d7bbd
1,490
py
Python
tests/test_e2e/test_response.py
DD-DeCaF/tag-spy
0c3cda2152f63cb29316659ad8a1ad14e52d746e
[ "Apache-2.0" ]
null
null
null
tests/test_e2e/test_response.py
DD-DeCaF/tag-spy
0c3cda2152f63cb29316659ad8a1ad14e52d746e
[ "Apache-2.0" ]
1
2020-04-29T22:52:46.000Z
2020-04-29T22:52:46.000Z
tests/test_e2e/test_response.py
DD-DeCaF/tag-spy
0c3cda2152f63cb29316659ad8a1ad14e52d746e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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 # # https://www.apache.org/licens...
29.8
85
0.705369
9302e16e5a493152c63e520baefdb8c12621a2fb
382
py
Python
terrascript/provider/random.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/random.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/random.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/random.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:25:40 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.provider.random # # instead of # # >>> import terrascript.provider.hashicorp.random # # This is only available for 'official' and 'partner' pr...
25.466667
73
0.746073
9302e18d4d2d970cdac8f619239c89c10d573fc4
27,244
py
Python
deeppavlov/core/commands/train.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/core/commands/train.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/core/commands/train.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
42.436137
120
0.565923