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
ac011c1f54f5f35ada4a042b3735e3ff8596a35f
2,663
py
Python
improver/wxcode/__init__.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
improver/wxcode/__init__.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
improver/wxcode/__init__.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
47.553571
82
0.779572
ac012139f10b4d97664d71e9544dd7233721f8b0
2,162
py
Python
cube/tests/test_metric_expression.py
plivo/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
5
2015-03-26T17:43:32.000Z
2020-04-22T11:28:08.000Z
cube/tests/test_metric_expression.py
sandeepraju/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
null
null
null
cube/tests/test_metric_expression.py
sandeepraju/cube-client
5e27390052a02066a2d91bf32e6dc2b526253f7e
[ "MIT" ]
3
2016-11-24T06:25:06.000Z
2020-04-22T11:28:11.000Z
# -*- encoding: utf-8 -*- """ Copyright (c) 2012 Steven Buss Originally from: https://github.com/sbuss/pypercube/blob/master/tests/test_metric_expression.py """ import unittest from cube.expression import (Distinct, EventExpression, Max, Median, MetricExpression, Min, Sum) class TestMe...
29.216216
79
0.593895
ac0122a9327e3afbefbf0f272fa0466d1486f041
19,772
py
Python
dipper/sources/HPOAnnotations.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/HPOAnnotations.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/HPOAnnotations.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
import csv import os import logging import re import shutil import tarfile import glob from datetime import datetime from stat import ST_CTIME import requests from dipper.sources.Source import Source from dipper.models.assoc.D2PAssoc import D2PAssoc from dipper.models.Reference import Reference from dipper.models.Mode...
36.345588
88
0.509711
ac01310ce35fa30f541a48df89e8a82e9d4dfa89
484
py
Python
shared_lib/utils/helpers/model.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
shared_lib/utils/helpers/model.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
shared_lib/utils/helpers/model.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
def get_child_attr(obj, hier_attr_name): """Recursively traverses `par_obj`; returns the sub-child attribute. Args par_obj: hier_attr_name (str): e.g., attr_1.attr_2.attr_3 Return: hierarchical child attribute value. """ if "." not in hier_attr_name: return getattr(...
30.25
72
0.661157
ac0174df91b14c539e5eb1878b957c8954a45693
216
py
Python
comments/urls.py
FRA1T/django_news
f293df7197a261d8f853a68a1579dc377c0f1d15
[ "MIT" ]
2
2020-10-31T07:01:03.000Z
2020-10-31T07:04:13.000Z
comments/urls.py
GitHuber228/django_news
63798966214848ca9ab9370ca070d1b9c89a314b
[ "MIT" ]
null
null
null
comments/urls.py
GitHuber228/django_news
63798966214848ca9ab9370ca070d1b9c89a314b
[ "MIT" ]
1
2020-10-31T07:04:21.000Z
2020-10-31T07:04:21.000Z
from django.urls import path from comments.views import add_comment, action_comment urlpatterns = [ path('add/', add_comment, name='add_comment'), path('action/', action_comment, name='action_comment'), ]
21.6
59
0.731481
ac0197648b4384de54a5b58cdca05309cb800e2f
1,291
py
Python
setup.py
awiseman/gmail-sender
30c836ff10cfe05ac1723e1d2d4d3e491c8e1365
[ "MIT" ]
null
null
null
setup.py
awiseman/gmail-sender
30c836ff10cfe05ac1723e1d2d4d3e491c8e1365
[ "MIT" ]
null
null
null
setup.py
awiseman/gmail-sender
30c836ff10cfe05ac1723e1d2d4d3e491c8e1365
[ "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages def forbid_publish(): argv = sys.argv blacklist = ['register', 'upload'] for command in blacklist: if command in argv: values = {'command': command} print('Command "%(command)s is not allowed... ' % values) ...
28.065217
100
0.597986
ac01bcd8ac65827aab460b65bc2d1d8cc0a3feec
11,591
py
Python
src/python/pants/option/arg_splitter.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/option/arg_splitter.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/arg_splitter.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os.path import sys from abc import ABC from dataclasses import dataclass from pathlib import Path from typing import Dict, Iterable, List, Optional, Sequence, Tuple from twitter.co...
38.128289
107
0.617979
ac01d5f358305e6d2e680f1ed806244ac0c6c5e5
3,963
py
Python
tests/query_test/test_chars.py
gistic/SpatialImpala
749b7fe0b6ba897df6f30f87ad561f214bb613fc
[ "Apache-2.0" ]
2
2017-05-30T16:47:31.000Z
2020-07-21T04:28:17.000Z
tests/query_test/test_chars.py
gistic/SpatialImpala
749b7fe0b6ba897df6f30f87ad561f214bb613fc
[ "Apache-2.0" ]
null
null
null
tests/query_test/test_chars.py
gistic/SpatialImpala
749b7fe0b6ba897df6f30f87ad561f214bb613fc
[ "Apache-2.0" ]
2
2019-06-08T23:27:36.000Z
2022-02-08T09:53:37.000Z
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # import logging import pytest from copy import copy from tests.common.test_vector import * from tests.common.impala_test_suite import * class TestStringQueries(ImpalaTestSuite): @classmethod def get_workload(cls): return 'functiona...
39.237624
77
0.693162
ac01dcfafd4f81e68574a8ed44a93191c1bc0dd2
5,923
py
Python
flexget/plugins/plugin_torrent411.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/plugin_torrent411.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/plugin_torrent411.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 import re from flexget.config_schema import one_or_more from flexget.manager import Session from flexget.plugins.api_t411 import T411Proxy, FriendlySearchQuery, ...
37.251572
113
0.613878
ac01e14e30ffb6d168c0e0ded51e56f03670c6c3
1,432
py
Python
tests/test_HMMERWrapper.py
JoaoRodrigues/pydca
f90d159b766e028adca8b38b5b9e56a771726a7e
[ "MIT" ]
null
null
null
tests/test_HMMERWrapper.py
JoaoRodrigues/pydca
f90d159b766e028adca8b38b5b9e56a771726a7e
[ "MIT" ]
null
null
null
tests/test_HMMERWrapper.py
JoaoRodrigues/pydca
f90d159b766e028adca8b38b5b9e56a771726a7e
[ "MIT" ]
null
null
null
# Copyright 2016 by Joao Rodrigues. All rights reserved. # This code is part of the pydca distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ Test suite for HMMERWrapper. """ import os import sys import unittest from pydca.wrappers i...
27.018868
70
0.667598
ac01e89713a4ba6561c85102d5ae9112f6e1f209
24,700
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_dedicated_hosts_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_dedicated_hosts_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_dedicated_hosts_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.825603
206
0.670648
ac01f014863bf788521b93155cead721d5ae1a96
11,198
py
Python
araucaria/main/report.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
8
2021-07-11T22:54:21.000Z
2022-02-16T20:22:25.000Z
araucaria/main/report.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
araucaria/main/report.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from typing import Optional from numpy import dtype, ndarray, array, vstack class Report: """Report class. Stores user-defined information for print to ``sys.stdout``. Parameters ---------- name Name of the instance. sep Separation...
30.512262
89
0.493838
ac01f128ed3230c85c60329f3e58e80ab8a1e76d
10,093
py
Python
newlinejson/core.py
tirkarthi/NewlineJSON
0933531827b82ddc10d14bd492778eca1d502f2f
[ "BSD-3-Clause" ]
14
2016-03-30T17:39:57.000Z
2020-07-08T07:02:03.000Z
newlinejson/core.py
tirkarthi/NewlineJSON
0933531827b82ddc10d14bd492778eca1d502f2f
[ "BSD-3-Clause" ]
46
2015-01-08T05:01:06.000Z
2021-09-10T00:53:04.000Z
newlinejson/core.py
tirkarthi/NewlineJSON
0933531827b82ddc10d14bd492778eca1d502f2f
[ "BSD-3-Clause" ]
5
2016-07-07T14:05:46.000Z
2020-04-11T06:38:23.000Z
""" Core components for NewlineJSON """ import codecs import json import os import sys import six from six.moves import StringIO __all__ = ['open', 'NLJBaseStream', 'load', 'loads', 'dump', 'dumps', 'NLJReader', 'NLJWriter'] JSON_LIB = json def open(name, mode='r', open_args=None, **kwargs): """ Open ...
28.430986
95
0.591697
ac01ff89f73eb21fb5f8015e18ed59c6413798eb
420
py
Python
arc/arc130/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
arc/arc130/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
arc/arc130/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys from collections import defaultdict sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() S = ns() ans = 0 i = 0 while i < N: cnt = 1 while i + 1 < N and S[i] ...
17.5
53
0.545238
ac023156f435f317257341e5f085598528df5e31
11,383
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/16/train_5.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/16/train_5.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/16/train_5.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.908517
142
0.665378
ac024b9655695430e68cbf89136139967e280993
335
py
Python
app/utils/formatters.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/utils/formatters.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/utils/formatters.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
from babel.numbers import format_currency from django.conf import settings def format_price( price: int, currency_code: str = settings.DEFAULT_CURRENCY_CODE, locale: str = settings.DEFAULT_LOCALE, ) -> str: _price = price / 100 if price > 0 else price return format_currency(_price, currency_code, ...
27.916667
64
0.746269
ac024cddbad1ffe3235920c6f40f2ba50c4a325b
123
py
Python
enc_t5/__init__.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
34
2022-01-22T06:50:55.000Z
2022-03-21T09:00:47.000Z
enc_t5/__init__.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
null
null
null
enc_t5/__init__.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from .modeling_enc_t5 import EncT5ForSequenceClassification from .tokenization_enc_t5 import EncT5Tokenizer
30.75
59
0.878049
ac025a39c2a3ea1c4ff3f57bdced4d7b089e4ae1
3,956
py
Python
canvas_sdk/methods/grading_standards.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
21
2015-06-12T13:49:04.000Z
2021-11-08T05:37:44.000Z
canvas_sdk/methods/grading_standards.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
44
2015-02-04T15:26:52.000Z
2021-12-03T17:47:00.000Z
canvas_sdk/methods/grading_standards.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
7
2015-07-20T23:56:03.000Z
2021-02-23T17:13:00.000Z
from canvas_sdk import client, utils def create_new_grading_standard_accounts(request_ctx, account_id, title, grading_scheme_entry_name, grading_scheme_entry_value, **request_kwargs): """ Create a new grading standard If grading_scheme_entry arguments are omitted, then a default grading scheme wil...
41.642105
351
0.657988
ac026ac9a635b683366d9a354aa7548055dbc943
49
py
Python
health_stats/__init__.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
2
2016-04-14T18:47:14.000Z
2017-03-14T15:23:25.000Z
health_stats/__init__.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
null
null
null
health_stats/__init__.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
null
null
null
""" health-stats ==== """ __version__ = '0.1.0'
7
21
0.510204
ac02a849d668b6f80ef1ae6884f241b2a2c67a0e
2,071
py
Python
setup.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
24
2015-01-02T23:55:09.000Z
2020-04-06T12:25:37.000Z
setup.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
35
2015-09-30T19:44:34.000Z
2018-12-12T16:08:56.000Z
setup.py
duggan/pontoon
209d72efe28997ea08b16bd3896e49d8600fecc8
[ "MIT" ]
10
2015-09-30T15:55:01.000Z
2020-11-04T05:15:18.000Z
#!/usr/bin/env python from pontoon.meta import (__version__, __description__, __author__, __author_email__, __url__) try: from setuptools import setup except ImportError: from distutils.core import setup packages = [ 'pontoon', 'pontoon.cmd', 'pontoon.lib' ] requires = o...
33.403226
69
0.619507
ac02adcd477cc74dbdcc8f38e2e53dca90b459d0
153
py
Python
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx_migrate_lookups.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
14
2017-12-21T00:17:04.000Z
2020-07-15T19:00:31.000Z
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx_migrate_lookups.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
null
null
null
Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/splunk_app_db_connect/bin/dbx_migrate_lookups.py
mhassan2/datafabric_splunk
b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e
[ "Apache-2.0" ]
5
2018-01-18T17:34:48.000Z
2019-03-27T09:32:05.000Z
from dbx2.migration.migrate import migrate ENDPOINT = 'configs/conf-dblookup' if __name__ == '__main__': migrate('lookup', ENDPOINT, ['lookup'])
17
43
0.712418
ac02cbf079e111fc9e74d88732e662243c3d7d05
397
py
Python
ansible_builder/constants.py
jladdjr/ansible-builder
7520396f8921b98a033a8f25248dbadb9cd83901
[ "Apache-2.0" ]
null
null
null
ansible_builder/constants.py
jladdjr/ansible-builder
7520396f8921b98a033a8f25248dbadb9cd83901
[ "Apache-2.0" ]
null
null
null
ansible_builder/constants.py
jladdjr/ansible-builder
7520396f8921b98a033a8f25248dbadb9cd83901
[ "Apache-2.0" ]
null
null
null
default_file = 'execution-environment.yml' default_base_image = 'quay.io/ansible/ansible-runner:devel' default_tag = 'ansible-execution-env:latest' default_build_context = 'context' runtime_files={ 'podman': 'Containerfile', 'docker': 'Dockerfile' } default_container_runtime = 'podman' base_roles_path = '/usr/s...
33.083333
59
0.778338
ac030c6b0799b2f17c4701986ee4a1d62c327fa4
917
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/usage_paged.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.75
119
0.564885
ac031a3447c377c495bb8411290ff165a2daeaed
1,163
py
Python
sumoProject/agents/eval_policyGrad.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
1
2021-08-29T09:12:29.000Z
2021-08-29T09:12:29.000Z
sumoProject/agents/eval_policyGrad.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
null
null
null
sumoProject/agents/eval_policyGrad.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
null
null
null
import os import gym from sumoProject.agents.policyGradient import Policy def find_latest_weight(path='torchSummary', file_end='.weight', exclude_end='.0'): """ :param path: :return: """ name_list = os.listdir(path) full_list = [os.path.join(path, i) for i in name_list] time_sorted_list...
30.605263
113
0.676698
ac03272936610dd21c5069a80525774040fb0267
2,762
py
Python
dash_echarts/examples/gallery/line_basic.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
28
2021-04-15T16:02:57.000Z
2022-03-30T07:43:50.000Z
dash_echarts/examples/gallery/line_basic.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
8
2021-06-23T19:49:18.000Z
2022-03-02T16:04:42.000Z
dash_echarts/examples/gallery/line_basic.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
8
2021-09-16T07:38:41.000Z
2022-03-09T04:59:11.000Z
import random import dash_echarts import dash_html_components as html import dash_core_components as dcc def gen_randlist(num): return random.sample(range(num), 7) option = { 'xAxis': { 'type': 'category', 'data': ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, 'yAxis': { ...
24.660714
74
0.431933
ac03380f6950a4135ba160a82a2c9e4cc342ee3b
3,000
py
Python
alipay/aop/api/domain/SpecifiedChannelParam.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/domain/SpecifiedChannelParam.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/domain/SpecifiedChannelParam.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.constant.ParamConstants import * class SpecifiedChannelParam(object): def __init__(self): self._asset_id = None self._asset_type_code = None self._bank_card_type = None self._inst_id = None self...
29.70297
81
0.602
ac0339d297e6c674da7e3fd73dc92e9c4955dad9
6,565
py
Python
pyroved/models/base.py
x94carbone/pyroVED
07c500bef9a506bea06d65ec231ef7164abc61f2
[ "MIT" ]
20
2021-03-12T08:50:41.000Z
2022-03-25T16:20:47.000Z
pyroved/models/base.py
x94carbone/pyroVED
07c500bef9a506bea06d65ec231ef7164abc61f2
[ "MIT" ]
17
2021-04-26T21:20:33.000Z
2021-07-22T23:04:12.000Z
pyroved/models/base.py
x94carbone/pyroVED
07c500bef9a506bea06d65ec231ef7164abc61f2
[ "MIT" ]
3
2021-04-26T18:22:48.000Z
2022-02-02T21:56:25.000Z
""" base.py ========= Variational encoder-decoder base class Created by Maxim Ziatdinov (email: ziatdinovmax@gmail.com) """ from typing import Tuple, Type, Union, List from abc import abstractmethod import torch import torch.nn as nn from ..utils import init_dataloader, transform_coordinates, generate_grid tt = t...
35.106952
78
0.570145
ac035638bdb7a7678dee53a3a0499b6602511491
13,055
py
Python
lib/boar/common.py
serialhex/boar-with-shoes
09aa931010d7416d6c3c75729ccb414f354f7a0a
[ "MIT" ]
1
2015-11-05T23:57:22.000Z
2015-11-05T23:57:22.000Z
lib/boar/common.py
serialhex/boar-with-shoes
09aa931010d7416d6c3c75729ccb414f354f7a0a
[ "MIT" ]
null
null
null
lib/boar/common.py
serialhex/boar-with-shoes
09aa931010d7416d6c3c75729ccb414f354f7a0a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 Mats Ekberg # # 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...
35.283784
101
0.64098
ac035b50953eb5246ebf516c47f4fc5e09eacaad
5,657
py
Python
src/test/tests/databases/ANSYS.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/ANSYS.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/ANSYS.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: ANSYS.py # # Tests: mesh - 3D unstructured, single domain # plots - Mesh # # Programmer: Brad Whitlock # Date: Thu Jul 7 17:46:51 PST 2005 # # Notes: The data for...
26.434579
78
0.607036
ac036213c208796e6b0c35b52f387f0bc0942afd
6,197
py
Python
sdk/python/kfp/components/_component_store.py
Tomcli/kfp-tekton-backend
bd1b853d43aa82fd914c65a34d3f3502c38eabe2
[ "Apache-2.0" ]
6
2020-05-19T02:35:11.000Z
2020-05-29T17:58:42.000Z
sdk/python/kfp/components/_component_store.py
Tomcli/kfp-tekton-backend
bd1b853d43aa82fd914c65a34d3f3502c38eabe2
[ "Apache-2.0" ]
1,932
2021-01-25T11:23:37.000Z
2022-03-31T17:10:18.000Z
sdk/python/kfp/components/_component_store.py
ckadner/kfp-tekton-backend
53e0e68a79e67535443505d074e1524994efcd06
[ "Apache-2.0" ]
11
2020-05-19T22:26:41.000Z
2021-01-25T09:56:21.000Z
__all__ = [ 'ComponentStore', ] from pathlib import Path import copy import requests from typing import Callable from . import _components as comp from .structures import ComponentReference class ComponentStore: def __init__(self, local_search_paths=None, url_search_prefixes=None): self.local_search_p...
43.950355
183
0.677747
ac037db7115fdc12a8c7a765d848e75c7d815c4c
853
py
Python
atom/nucleus/python/test/test_investment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_investment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_investment.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
20.804878
79
0.691676
ac03881113f30ce70b5f6d5f55e3a2801fa1a68b
2,509
py
Python
alipay/aop/api/response/AlipayOpenAgentConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAgentConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAgentConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAgentConfirmResponse(AlipayResponse): def __init__(self): super(AlipayOpenAgentConfirmResponse, self).__init__() self._app_auth_token = None self._a...
29.174419
103
0.662814
ac039c31187ef73aef79ab291547a6cd1414fec9
40,781
py
Python
src/itoolkit/itoolkit.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
src/itoolkit/itoolkit.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
src/itoolkit/itoolkit.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ IBM i python toolkit. The toolkit runs both local and remote to IBM i using DatabaseTransport or HttpTransport. However, class DirectTransport process local calls will only work on IBM i (similar to IBM i CL). Transport classes: class DirectTransport: Transport XMLSERVICE direct jo...
32.136328
139
0.528383
ac03b285ce1072c4bd8ec88c455007262001325b
8,525
py
Python
usecases/extasy_coco_amber/01_static_amber_coco_loop.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/extasy_coco_amber/01_static_amber_coco_loop.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/extasy_coco_amber/01_static_amber_coco_loop.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Vivek <vivek.balasubramanian@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" __use_case_name__ = "'Amber + CoCo' simulation-analysis proof-of-concept (ExTASY)." from radical.ensemblemd import Kernel from radical.ensem...
43.055556
151
0.573372
ac03e158226710c394642df658dd928727ddcf77
74
py
Python
python/dgl/sampling/__init__.py
micmelesse/dgl
b05cb84a775310991fc949d913cf461850ee3eb5
[ "Apache-2.0" ]
3
2020-02-28T07:28:52.000Z
2020-06-03T08:41:55.000Z
python/dgl/sampling/__init__.py
coco11563/dgl
fb45da170438bb4700d3e7e3fc556785739abd86
[ "Apache-2.0" ]
null
null
null
python/dgl/sampling/__init__.py
coco11563/dgl
fb45da170438bb4700d3e7e3fc556785739abd86
[ "Apache-2.0" ]
null
null
null
"""Sampler modules.""" from .randomwalks import * from .neighbor import *
18.5
26
0.716216
ac040da4c69add4c6250f963a2ea7b0294d0c14e
1,532
py
Python
backend/order/mail.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/order/mail.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/order/mail.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
from django.conf import settings from order.models import OrderLine, OrderCombinationLine from tools.messaging.mail import SwipeMail class OrderArrivedMail(SwipeMail): string_template = 'order/mail/order_arrived.txt' reply_to = settings.SWIPE_POS_MAIL def __init__(self, orders, *args, **kwargs): ...
36.47619
102
0.70953
ac0433f1775feeed2ec3cf49291da01500bef01b
1,381
py
Python
tensorflow/contrib/learn/python/learn/monitored_session.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/learn/python/learn/monitored_session.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/learn/python/learn/monitored_session.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# pylint: disable=g-bad-file-header # Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
39.457143
80
0.760319
ac045ce7250c9caa23812929f66461be7b71e586
15,695
py
Python
donkeycar/templates/cfg_simulator.py
sherafatian-amirabbas/donkeycar
85122d50ebd4d8b8edf55c1920edfea66f99450e
[ "MIT" ]
null
null
null
donkeycar/templates/cfg_simulator.py
sherafatian-amirabbas/donkeycar
85122d50ebd4d8b8edf55c1920edfea66f99450e
[ "MIT" ]
null
null
null
donkeycar/templates/cfg_simulator.py
sherafatian-amirabbas/donkeycar
85122d50ebd4d8b8edf55c1920edfea66f99450e
[ "MIT" ]
null
null
null
""" CAR CONFIG This file is read by your car application's manage.py script to change the car performance. EXMAPLE ----------- import dk cfg = dk.load_config(config_path='~/mycar/config.py') print(cfg.CAMERA_RESOLUTION) """ import os #PATHS CAR_PATH = PACKAGE_PATH = os.path.dirname(os.path.realpath(__file__)) DAT...
55.656028
225
0.736222
ac0466cb1a9fa1cfb6fedd8f6b96c221d39e0c62
2,673
py
Python
driver_station/src/driver_station/widgets/battery_display.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
9
2018-11-26T20:12:47.000Z
2020-03-08T03:30:03.000Z
driver_station/src/driver_station/widgets/battery_display.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
49
2018-10-18T13:44:59.000Z
2019-08-01T15:18:42.000Z
driver_station/src/driver_station/widgets/battery_display.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
3
2018-10-18T17:35:54.000Z
2019-02-10T19:43:55.000Z
############################################################################## # Copyright (C) 2019, UW REACT # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above co...
48.6
116
0.692106
ac0471995ee5879e2bc4362bb4b58a0ce6100324
3,355
py
Python
ucb_cs61A/projects/scheme/tests/15A.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/projects/scheme/tests/15A.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/projects/scheme/tests/15A.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'Question 15', 'partner': 'A', 'points': 2, 'suites': [ { 'cases': [ { 'code': r""" scm> (cond ((> 2 3) 5) .... ((> 2 4) 6) .... ((< 2 5) 7) .... (else 8)) 7 scm> (cond ((> 2 3) 5) ...
24.311594
56
0.276006
ac04ad99110b016b62e091aa10c7f565e5093bc1
9,481
py
Python
tensorflow/contrib/opt/python/training/moving_average_optimizer_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/opt/python/training/moving_average_optimizer_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/opt/python/training/moving_average_optimizer_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
44.933649
80
0.652674
ac04cd9dae9161a97dd9fe7fd4464142805bc393
87,864
py
Python
sc2/bot_ai.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
3
2019-01-20T19:37:25.000Z
2019-01-29T10:21:48.000Z
sc2/bot_ai.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
1
2019-02-13T06:42:26.000Z
2019-03-11T14:04:43.000Z
sc2/bot_ai.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
1
2019-02-13T05:44:16.000Z
2019-02-13T05:44:16.000Z
from __future__ import annotations import itertools import logging import math import random import time import warnings from collections import Counter from typing import Any, Dict, List, Optional, Set, Tuple, Union, TYPE_CHECKING from s2clientprotocol import sc2api_pb2 as sc_pb from .cache import property_cache_fore...
45.858038
205
0.629336
ac04ebb08aaaf2d655e65c88484bc2c16133f1f0
2,516
py
Python
permabots/models/kik_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
81
2016-05-18T02:34:10.000Z
2021-08-28T17:25:13.000Z
permabots/models/kik_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
15
2016-05-27T08:51:46.000Z
2021-03-19T21:42:21.000Z
permabots/models/kik_api.py
jlmadurga/permabots
f1bfb3081ed0da2a4cb4b0537e625ccfbab58ee1
[ "BSD-3-Clause" ]
34
2016-05-29T14:37:01.000Z
2022-03-24T17:16:53.000Z
# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from django.forms.models import model_to_dict from permabots.models.base import PermabotsModel @python_2_unicode_compatible class KikUser(models.Mo...
41.933333
117
0.650636
ac0525cf6a5c46acafe13bcdb9ff20e57834b170
1,352
py
Python
core/models/participant.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
null
null
null
core/models/participant.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
null
null
null
core/models/participant.py
lottspot/prevention-point
e4d5eaa437c3e979e8585bdada4efd33e995e39e
[ "MIT" ]
null
null
null
from django.db import models from core.models import Insurer from enum import Enum class Gender(Enum): MALE = 'male' FEMALE = 'female' MTF = 'mtf' FTM = 'ftm' GENDER_QUEER = 'gender queer' OTHER = 'other' class Race(Enum): BLACK_AFRICAN_AMERICAN = 'black (african american)' CAUCASIAN =...
34.666667
95
0.704882
ac05267a0dd4966b6254a80836b8c63249735cfc
6,535
py
Python
project/SimulatedAnnealing/SimulatedAnnealing.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/SimulatedAnnealing/SimulatedAnnealing.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/SimulatedAnnealing/SimulatedAnnealing.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
from GeneticAlgorithm.Chromosome import Chromosome import numpy as np import random as rand import os class SimulatedAnnealing: def __init__(self, k, key, initial_soln) -> None: self.key = key self.k = k self.soln = Chromosome(key, k, initial_soln) def perturb(self, chro...
33.341837
171
0.474216
ac054b0442945b342e4bc034fea76667a264d040
47,628
py
Python
sdf/model.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
1
2020-07-01T15:55:16.000Z
2020-07-01T15:55:16.000Z
sdf/model.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
4
2017-03-28T19:18:09.000Z
2021-09-21T08:17:45.000Z
sdf/model.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
1
2020-07-13T19:39:15.000Z
2020-07-13T19:39:15.000Z
from functools import lru_cache import os import glob import copy from itertools import product import numpy as np from scipy.ndimage import map_coordinates from scipy.interpolate import interp1d,RegularGridInterpolator,\ UnivariateSpline import astropy.units as u from astropy.io import...
36.301829
90
0.547976
ac0568bd07aa8ecd069e0b0fe0ca44fea7f6f76c
3,375
py
Python
pypeit/debugger.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/debugger.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/debugger.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Module to setup the PypeIt debugger """ import matplotlib.pyplot as plt import numpy as np # These need to be outside of the def's try: from pypeit.ginga import show_image except ImportError: # Ginga is not yet required pass else: from pypeit.ginga import clear_canvas # Moved to the top and changed to...
25
93
0.554963
ac056a140a96313a86f465dc6f13f4b587bf83b0
8,968
py
Python
pkgcore/ebuild/ebuild_built.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/ebuild/ebuild_built.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/ebuild/ebuild_built.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ built ebuild packages (vdb packages and binpkgs are derivatives of this) """ __all__ = ("package", "package_factory") from functools import partial from pkgcore.ebuild import ebuild_src, conditionals, eapi from pkgcore.package import ...
31.689046
79
0.669938
ac059a826b0e7bd96993ed95d0ea5bd6339d6229
5,836
py
Python
tests/conftest.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
tests/conftest.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
tests/conftest.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
import gzip import json import os import signal import subprocess import sys import tempfile from copy import deepcopy from io import BytesIO from typing import List, Dict import pytest import requests devnull = open(os.devnull, "w") @pytest.fixture(scope='session') def config_path(tmpdir_factory): return str(t...
31.208556
133
0.558944
ac05d49e8a4bd29762f41d09ce34c0ff04b45680
3,864
py
Python
_benchmarks.py
yamamura-k/MetaHeuristics
abc6da4c0d9886260425124dfcee2a92b833446f
[ "MIT" ]
1
2021-09-14T04:28:18.000Z
2021-09-14T04:28:18.000Z
_benchmarks.py
yamamura-k/MetaHeuristics
abc6da4c0d9886260425124dfcee2a92b833446f
[ "MIT" ]
6
2021-07-01T01:13:43.000Z
2021-07-15T14:26:46.000Z
_benchmarks.py
yamamura-k/MetaHeuristics
abc6da4c0d9886260425124dfcee2a92b833446f
[ "MIT" ]
null
null
null
import numpy as np from utils.base import Function, gen_matrix """ Reference : https://qiita.com/nabenabe0928/items/08ed6495853c3dd08f1e """ class log_exp_without_grad(Function): def __init__(self, A=None, n=10, m=100): super().__init__() if A is None: self.A = gen_matrix(m, n) ...
27.020979
74
0.532867
ac05f489febb2fe17974c2906425846fe1191257
1,756
py
Python
exercises_algorithms_data_structures_big_o/big_o_notation_exercise/Task4.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
null
null
null
exercises_algorithms_data_structures_big_o/big_o_notation_exercise/Task4.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
1
2020-08-31T07:09:13.000Z
2020-08-31T16:38:59.000Z
exercises_algorithms_data_structures_big_o/big_o_notation_exercise/Task4.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
null
null
null
""" Read file into texts and calls. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 4: The telephone company want to identify numbers that might be doing telephone marke...
27.4375
95
0.747722
ac064d553f31aff02960a2079ab9465de908afb1
7,266
py
Python
ilurl/agents/r2d2/agent.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
ilurl/agents/r2d2/agent.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
ilurl/agents/r2d2/agent.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
2
2021-03-13T15:38:05.000Z
2021-05-08T22:25:36.000Z
import os import random from typing import Sequence import numpy as np import dm_env import tensorflow as tf import sonnet as snt import acme from acme import specs from acme.tf import networks from ilurl.agents.r2d2 import acme_agent from ilurl.agents.worker import AgentWorker from ilurl.interfaces.agents import ...
35.101449
102
0.539361
ac066d2d3f04a4f91c3337b36d54b4c1fd65feb6
286
py
Python
pypackage/flexfringe/tests/test_template.py
RafailSkoulos17/netflow_classification
7d26e6a3ce2f52db09cbfc4958453175682c5350
[ "ECL-2.0", "Apache-2.0" ]
2
2021-12-15T13:51:32.000Z
2021-12-16T18:48:53.000Z
pypackage/flexfringe/tests/test_template.py
RafailSkoulos17/netflow_classification
7d26e6a3ce2f52db09cbfc4958453175682c5350
[ "ECL-2.0", "Apache-2.0" ]
1
2017-01-09T09:15:56.000Z
2017-01-09T09:15:56.000Z
pypackage/flexfringe/tests/test_template.py
RafailSkoulos17/netflow_classification
7d26e6a3ce2f52db09cbfc4958453175682c5350
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-01T21:10:51.000Z
2020-04-01T21:10:51.000Z
import numpy as np from numpy.testing import assert_almost_equal from skltemplate import TemplateEstimator def test_demo(): X = np.random.random((100, 10)) estimator = TemplateEstimator() estimator.fit(X, X[:, 0]) assert_almost_equal(estimator.predict(X), X[:, 0]**2)
26
57
0.72028
ac0674877441a0c5f5283022245a3cf94e967915
798
py
Python
tests/unit/network/VoronoiTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2021-07-20T13:56:57.000Z
2021-07-20T13:56:57.000Z
tests/unit/network/VoronoiTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
tests/unit/network/VoronoiTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
import numpy as np import openpnm as op class VoronoiTest: def setup_class(self): pass def teardown_class(self): pass def test_voronoi_num_points(self): net = op.network.Voronoi(num_points=30, shape=[1, 1, 1]) assert net.Np > 30 def test_voronoi_points(self): ...
22.8
64
0.595238
ac0674f2b5782398f13da564b3cafa78a975cb84
1,069
py
Python
hidparser/UsagePages/GenericDeviceControls.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
22
2016-04-28T10:29:11.000Z
2022-02-02T17:30:08.000Z
hidparser/UsagePages/GenericDeviceControls.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
12
2016-04-24T03:29:00.000Z
2018-11-26T22:34:37.000Z
hidparser/UsagePages/GenericDeviceControls.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
5
2017-02-21T13:01:25.000Z
2021-10-04T07:13:53.000Z
from hidparser.UsagePage import Usage, UsagePage, UsageType class GenericDeviceControls(UsagePage): BATTERY_STRENGTH = Usage(0x20,UsageType.DATA_DYNAMIC_VALUE) WIRELESS_CHANNEL = Usage(0x21,UsageType.DATA_DYNAMIC_VALUE) WIRELESS_ID = Usage(0x21,UsageType.DATA_DYNAMIC_VALUE) DISCOVER_WIRELESS_CONTROL ...
42.76
76
0.797942
ac067949e746f6072b196450439a97261d046f33
778
py
Python
dcss_stats/core/_config.py
oschwab/dcss_stats
33bd337277ab01289a541864032350d46acca885
[ "Unlicense" ]
3
2017-10-02T21:45:49.000Z
2021-12-24T02:11:50.000Z
dcss_stats/core/_config.py
oschwab/dcss_stats
33bd337277ab01289a541864032350d46acca885
[ "Unlicense" ]
2
2017-10-04T18:44:50.000Z
2017-10-05T11:11:36.000Z
dcss_stats/core/_config.py
oschwab/dcss_stats
33bd337277ab01289a541864032350d46acca885
[ "Unlicense" ]
null
null
null
import configparser import ast class Config(configparser.RawConfigParser): _CONFIG_FILE="" def load(self,file): self._CONFIG_FILE = file self.read(file) def save(self): with open(self._CONFIG_FILE, 'w') as configfile: self.write(configfile) def get(self,setting): ...
25.933333
91
0.677378
ac06c33ccaaa9edf502cd218269ac4c1cef60d7b
20,196
py
Python
sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.258537
255
0.695732
ac06d55591988f2e9267596d4edd2fd180e824c3
2,757
py
Python
veros/diagnostics/averages.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
veros/diagnostics/averages.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
veros/diagnostics/averages.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
import os import copy from veros.diagnostics.base import VerosDiagnostic from veros.variables import TIMESTEPS, Variable class Averages(VerosDiagnostic): """Time average output diagnostic. All registered variables are summed up when :meth:`diagnose` is called, and averaged and output upon calling :meth:...
33.621951
142
0.636924
ac06dd48fd7fa3feb8f1ba1d7feba970c6bd0297
17
py
Python
cloudmesh/version.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/version.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/version.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
version = "2.3.1"
17
17
0.588235
ac07059cf66b5b9b0c436e068e88a011745cdfae
543,636
py
Python
sdk/batch/azure-batch/azure/batch/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/batch/azure-batch/azure/batch/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/batch/azure-batch/azure/batch/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.108943
978
0.699954
ac070e5100d95c91c77feb65fdee4b0449cb9562
9,491
py
Python
scripts/run_gcs.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
scripts/run_gcs.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
scripts/run_gcs.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
import torch import matplotlib.pyplot as plt import argparse import gym import numpy as np from rlkit.envs.wrappers import NormalizedBoxEnv, GoalToNormalEnv from rlkit.envs.navigation2d.navigation2d import Navigation2d from rlkit.envs.mujoco.ant import AntEnv from rlkit.envs.mujoco.half_cheetah import HalfCheetahEnv fr...
37.513834
152
0.619534
ac0728c3e37470dae0e638bd6df8dae2631157a5
2,432
py
Python
buildkit/packaging/_common.py
tommienu/ungoogled-chromium
f3e1b49f04150035e64b2222f7f041b98b2b2847
[ "BSD-3-Clause" ]
5
2020-05-29T05:50:51.000Z
2021-11-22T00:53:24.000Z
buildkit/packaging/_common.py
tommienu/ungoogled-chromium
f3e1b49f04150035e64b2222f7f041b98b2b2847
[ "BSD-3-Clause" ]
null
null
null
buildkit/packaging/_common.py
tommienu/ungoogled-chromium
f3e1b49f04150035e64b2222f7f041b98b2b2847
[ "BSD-3-Clause" ]
1
2022-01-01T09:20:47.000Z
2022-01-01T09:20:47.000Z
# -*- coding: UTF-8 -*- # Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Common code for build files generators""" import hashlib import re import string import subprocess import urllib.r...
30.78481
94
0.657895
ac0731d0f8a73e5b7f44232dceb09749585a99a0
1,867
py
Python
src/ggrc/migrations/versions/20160412134448_11cee57a4149_add_assessor_reminder_notification.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc/migrations/versions/20160412134448_11cee57a4149_add_assessor_reminder_notification.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/migrations/versions/20160412134448_11cee57a4149_add_assessor_reminder_notification.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Add assessors reminder notification Create Date: 2016-04-12 13:44:48.265193 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name import sql...
26.295775
79
0.671666
ac0736b9b41ed3cf93365299c7e125b6c2db4f46
931
py
Python
examples/Flask/clock.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
10
2020-05-11T11:36:29.000Z
2021-09-14T06:00:06.000Z
examples/Flask/clock.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
1
2021-11-25T13:20:11.000Z
2021-11-25T13:20:11.000Z
examples/Flask/clock.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
3
2020-05-11T11:36:34.000Z
2022-03-09T06:17:31.000Z
from flask import Flask, render_template, request app = Flask(__name__) import jyserver.Flask as jsf import time @jsf.use(app) class App: def reset(self): self.start0 = time.time() self.js.dom.time.innerHTML = "{:.1f}".format(0) def stop(self): self.running = False self.js.dom.b...
28.212121
62
0.58754
ac077297d5c45a00b9e0f2f0d4a245fc057afd9e
24,955
py
Python
keystone/tests/unit/test_v3_identity.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_identity.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_identity.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.000Z
# Copyright 2012 OpenStack Foundation # # 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...
42.65812
78
0.613023
ac0788d950a4b12cd79be915f46bea5b54213380
4,204
py
Python
performance/driver/classes/observer/utils/curlsse.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
2
2018-02-27T18:21:21.000Z
2018-03-16T12:12:12.000Z
performance/driver/classes/observer/utils/curlsse.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2018-06-25T07:14:41.000Z
2018-06-25T07:14:41.000Z
performance/driver/classes/observer/utils/curlsse.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2020-06-25T10:37:21.000Z
2020-06-25T10:37:21.000Z
import time import itertools import os import select import tempfile import logging from subprocess import Popen, PIPE class CurlSSEDisconnectedError(IOError): """ Exception raised when the connection is interrupted """ def __init__(self): super().__init__("Disconnected") class CurlSSE: """ A low-...
26.607595
82
0.568982
ac07a477f85e80b97bf07d0485cf5bd2410a0e70
771
py
Python
soccer_trajectories/src/soccer_trajectories/trajectory_publisher.py
ghsecuritylab/soccer_ws
60600fb826c06362182ebff00f3031e87ac45f7c
[ "BSD-3-Clause" ]
null
null
null
soccer_trajectories/src/soccer_trajectories/trajectory_publisher.py
ghsecuritylab/soccer_ws
60600fb826c06362182ebff00f3031e87ac45f7c
[ "BSD-3-Clause" ]
null
null
null
soccer_trajectories/src/soccer_trajectories/trajectory_publisher.py
ghsecuritylab/soccer_ws
60600fb826c06362182ebff00f3031e87ac45f7c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 import rospy from std_msgs.msg import Float64 def publish_trajectories(trajectory): publishers = {joint: rospy.Publisher("/{}/command".format(joint), Float64, queue_size=10) for joint in trajectory.joints()} rospy.init_node("trajectory_publisher") while not r...
30.84
106
0.652399
ac08113d30170339298d8649e7e55ca9d8db9113
8,543
py
Python
experiments/sasha/PCVAE/DCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/PCVAE/DCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/PCVAE/DCVAE.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
38.656109
181
0.562332
ac082f6b468fad91e907e44cecd4199db3e2304c
4,200
py
Python
proxer-dl-series.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
1
2021-07-07T12:16:30.000Z
2021-07-07T12:16:30.000Z
proxer-dl-series.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
null
null
null
proxer-dl-series.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
null
null
null
""" proxer-dl-series.py command line script to download an entire series from proxer.me """ from os import makedirs, getcwd from os.path import exists, realpath, join from lib.script_utils import script_exit, check_validity_token, check_validity_episodes from lib.proxer_utils im...
38.53211
172
0.595952
ac084dc32983815a23e5a0fff6d7c40cfaedfcb4
130
py
Python
tcp_check/datadog_checks/tcp_check/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
tcp_check/datadog_checks/tcp_check/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
tcp_check/datadog_checks/tcp_check/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '2.0.2'
21.666667
59
0.707692
ac0856be842a477b1eee840b218fb15ffc7f21e6
2,827
py
Python
office365/sharepoint/actions/upload_session.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/actions/upload_session.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/actions/upload_session.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
import os import uuid from office365.runtime.client_result import ClientResult from office365.sharepoint.actions.create_file import CreateFileQuery from office365.sharepoint.files.file import File from office365.sharepoint.files.file_creation_information import FileCreationInformation def read_in_chunks(file_object,...
34.901235
90
0.667492
ac0859bae1cc8fa21fcc8912497220a901885cc5
539
py
Python
src/handlers/administration.py
x2012x/conductor
ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8
[ "MIT" ]
4
2021-06-14T15:11:26.000Z
2022-03-15T12:34:17.000Z
src/handlers/administration.py
x2012x/conductor
ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8
[ "MIT" ]
7
2021-06-14T10:38:54.000Z
2021-08-19T22:30:17.000Z
src/handlers/administration.py
x2012x/conductor
ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8
[ "MIT" ]
null
null
null
''' Created on Jan 1, 2021 @author: x2012x ''' from handlers.base import BaseHandler import threading from services.base import Response class AdministrationHandler(BaseHandler): ''' Handler for processing system administration requests ''' def __init__(self, conductor): super().__init__(con...
23.434783
65
0.679035
ac086917f2a120f28c2bccf47d80b2e8b8176e99
712
py
Python
polaris_client/polaris.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
2
2022-03-07T16:54:39.000Z
2022-03-16T19:14:53.000Z
polaris_client/polaris.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
null
null
null
polaris_client/polaris.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Paul Rogers # # 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, ...
37.473684
74
0.759831
ac08a25a58cd72a53dd3d81c6739218139daf3ac
30,493
py
Python
sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import os import pytest import platform import functools import json from azure.core.exceptions import HttpResponseError, ClientAuthenticationError from azure.core.crede...
41.040377
165
0.656085
ac08ba32e91f20d6d46799ca7bc1ea60af9cb197
6,460
py
Python
esim/train.py
rdevost/nli-batch-optimizations
238e814fa4867a230f2abff889122bf9f7e809c9
[ "MIT" ]
null
null
null
esim/train.py
rdevost/nli-batch-optimizations
238e814fa4867a230f2abff889122bf9f7e809c9
[ "MIT" ]
null
null
null
esim/train.py
rdevost/nli-batch-optimizations
238e814fa4867a230f2abff889122bf9f7e809c9
[ "MIT" ]
null
null
null
from collections import OrderedDict import logging import os import pickle as pkl import time import numpy as np import torch import torch.nn as nn import torch.optim as optim from .batch_iterator import TextIterator from .model import ESIM from .utils import prepare_data logger = logging.getLogger(__name__) dim_wo...
33.82199
99
0.637616
ac08be236ebc8a46d61dc37cfa44c99a35da0872
11,433
py
Python
tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging from ...
42.981203
97
0.646987
ac08c26229ce2fd9928e524b319177156964668a
12,989
py
Python
homeassistant/components/http/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/http/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/http/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
""" This module provides WSGI application to serve the Home Assistant API. For more details about this component, please refer to the documentation at https://home-assistant.io/components/http/ """ from ipaddress import ip_network import logging import os import ssl from typing import Optional from aiohttp import web...
35.881215
79
0.649319
ac08d20197ca968a67ce9b2159ee1109210d9b6f
5,853
py
Python
PyNBSimbot/assignment6.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
1
2022-01-24T13:03:29.000Z
2022-01-24T13:03:29.000Z
PyNBSimbot/assignment6.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
PyNBSimbot/assignment6.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from pysimbotlib.core import PySimbotApp, Simbot, Robot, Util from kivy.logger import Logger from kivy.config import Config # # Force the program to show user's log only for "info" level or more. The info log will be disabled. # Config.set('kivy', 'log_level', 'debug') Config.set('graphics'...
32.337017
112
0.506407
ac08d9593aca2a2dc5c3cab6ffd5ef4b255ae4d2
1,129
py
Python
producten/admin.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/admin.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/admin.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
from datetime import date from django.contrib import admin # Register your models here. from django.http import HttpResponseRedirect from producten.models import Leverancier, SimpelProduct, Eenheid class SimpelProductAdmin(admin.ModelAdmin): def response_change(self, request, obj): if 'next' in request...
31.361111
80
0.716563
ac08e0d88026e1906049cc6f83d4eb251be6ac13
2,971
py
Python
moto/iam/exceptions.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/iam/exceptions.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
moto/iam/exceptions.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 from moto.core.exceptions import RESTError class IAMNotFoundException(RESTError): code = 404 def __init__(self, message): super(IAMNotFoundException, self).__init__( "NoSuchEntity", message) class IAMConflictException(RESTError): code = 409 ...
30.947917
116
0.657691
ac08ff0d17975eef8877f8448e17e1c8ec2d28be
2,452
py
Python
app/api/showcase/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
1
2020-12-24T10:49:02.000Z
2020-12-24T10:49:02.000Z
app/api/showcase/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
app/api/showcase/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
import pickle from typing import Any, Dict, List, Optional from app.api.data.service import get_dataset_metadata from app.api.pipelines.service import get_pipeline_metadata, pipeline_by_uid from app.singletons.db_service import DBServiceSingleton from init.init_cases import add_case_to_db from .models import ShowcaseI...
37.723077
108
0.674551
ac0904321538cb3aabe3bf6cec61751c78a1542b
844
py
Python
vnpy/amqp/test06_rpc_client.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/amqp/test06_rpc_client.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/amqp/test06_rpc_client.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
# encoding: UTF-8 from uuid import uuid1 import json import random from vnpy.amqp.producer import rpc_client def cb_function(*args): print('resp call back') for arg in args: print(u'{}'.format(arg)) if __name__ == '__main__': import time c = rpc_client(host='localhost', user='admin', passw...
21.1
68
0.567536
ac09277098dd12108a2d2de75cdbe6b9a908b5e1
692
py
Python
platon/_utils/module_testing/version_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/module_testing/version_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/module_testing/version_module.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest from typing import ( TYPE_CHECKING, ) from platon_utils import ( is_string, ) if TYPE_CHECKING: from platon import Web3 class VersionModuleTest: def test_platon_protocol_version(self, web3: "Web3") -> None: with pytest.warns(DeprecationWarning): protocol_version = w...
24.714286
65
0.709538
ac093f5861097d31be97e654cf5f71bd18a884c6
677
py
Python
test/lmp/dset/_base/test_norm.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/dset/_base/test_norm.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/dset/_base/test_norm.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test text normalization. Test target: - :py:meth:`lmp.dset._base.BaseDset.norm`. """ from typing import Dict import lmp.dset def test_nfkc(nfkc_txt: Dict[str, str]) -> None: """Normalize text with NFKC.""" assert lmp.dset._base.BaseDset.norm(nfkc_txt['input']) == nfkc_txt['output'] def test_collapse_white...
27.08
92
0.71935
ac094227c2c4eba533d343ef2be3e516acdf3e41
7,332
py
Python
mauveinternet/ordering/views.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/ordering/views.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
mauveinternet/ordering/views.py
lordmauve/django-mauveinternet
0c4143021c16f7ae7b6f60da0f3f9ab37ff9eaad
[ "MIT" ]
null
null
null
from django.conf import settings from django.shortcuts import get_object_or_404 from django.http import HttpResponse, HttpResponseNotAllowed, HttpResponseRedirect, Http404 from django.contrib.auth.decorators import login_required, permission_required from mauveinternet.shortcuts import template from mauveinternet.ord...
35.42029
108
0.665848
ac095127fcc28a5b1d753f7b88f15ed3ffe3bb26
3,823
py
Python
dibase/rpi/hwinfo.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/hwinfo.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/hwinfo.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
''' Part of the dibase.rpi package. Raspberry Pi hardware information Provides functions to return various Raspberry Pi specific hardware values such as board revision values. Developed by R.E. McArdell / Dibase Limited. Copyright (c) 2012 Dibase Limited License: dual: GPL or BSD. ''' cla...
38.23
79
0.648967
ac0974acdebaea0642b3ca040558bd916383c976
191
py
Python
server/fm_server/cli/manage/commands.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
1
2017-10-22T03:15:58.000Z
2017-10-22T03:15:58.000Z
server/fm_server/cli/manage/commands.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
33
2016-06-20T19:43:47.000Z
2022-01-21T23:19:11.000Z
server/fm_server/cli/manage/commands.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
null
null
null
"""Click commands for managing the app.""" import click from fm_server.main import main @click.command() def run(): """Run the server.""" click.echo("Starting server") main()
14.692308
42
0.65445
ac098773c7af5f8d2ce6f4b074406fc7f70fe5a1
5,654
py
Python
main.py
maxiherzog/uat-plugin
95378bfb1a6cf30c470e59967f27f3ecc4602d9b
[ "MIT" ]
1
2020-03-25T14:17:45.000Z
2020-03-25T14:17:45.000Z
main.py
maxiherzog/uat-plugin
95378bfb1a6cf30c470e59967f27f3ecc4602d9b
[ "MIT" ]
null
null
null
main.py
maxiherzog/uat-plugin
95378bfb1a6cf30c470e59967f27f3ecc4602d9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 21 16:40:56 2020 @author: blobfishman # """ import sys import geopandas as gpd import pandas as pd pd.set_option('display.max_rows', 20) pd.set_option('display.max_columns', 500) pd.set_option('display.width', 1000) import numpy as np import time ...
31.943503
171
0.615317
ac099eb1db7899035ff2e1bd78ee1ab0c30c6797
2,054
py
Python
tutorial/deprecated/tutorial_reinforce_s/main_reinforce.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
281
2021-01-13T14:20:23.000Z
2022-03-23T08:46:56.000Z
tutorial/deprecated/tutorial_reinforce_s/main_reinforce.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
2
2021-01-22T23:28:34.000Z
2021-04-29T22:05:42.000Z
tutorial/deprecated/tutorial_reinforce_s/main_reinforce.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
13
2021-01-15T14:53:32.000Z
2022-03-22T11:12:54.000Z
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from rlstructures import logging, DictTensor from rlstructures.env_wrappers import GymEnv from rlstructures.tools import weight_init impo...
28.527778
156
0.701558
ac09c64094479d0b35650bec1199280c6a113099
5,693
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_02_preview/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/v2022_02_02_preview/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_02_preview/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...
38.727891
133
0.650975
ac09d48b18bc567a25a69bc78efe92f3c406ee80
707
py
Python
msdsl/generator/tree_op.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
15
2019-05-14T10:12:23.000Z
2022-03-29T15:29:52.000Z
msdsl/generator/tree_op.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
19
2020-01-22T21:44:33.000Z
2021-06-05T02:10:41.000Z
msdsl/generator/tree_op.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
5
2019-10-21T09:53:17.000Z
2021-08-10T17:32:20.000Z
def tree_op(operands, operator): if len(operands) == 1: return operands[0] elif len(operands) > 1: a = tree_op(operands[:len(operands) // 2], operator=operator) b = tree_op(operands[len(operands) // 2:], operator=operator) return operator(a, b) else: raise Exc...
32.136364
78
0.582744
ac09deffa624adc0ecb8b76d866c7c98fdb974bf
27,681
py
Python
RobotPy/Python/Lib/sysconfig.py
zachlatta/robotpy
a2ab5519481170f236a6efce1ef128e4f812509d
[ "MIT", "Unlicense" ]
1
2021-09-24T22:49:11.000Z
2021-09-24T22:49:11.000Z
RobotPy/Python/Lib/sysconfig.py
zachlatta/robotpy
a2ab5519481170f236a6efce1ef128e4f812509d
[ "MIT", "Unlicense" ]
null
null
null
RobotPy/Python/Lib/sysconfig.py
zachlatta/robotpy
a2ab5519481170f236a6efce1ef128e4f812509d
[ "MIT", "Unlicense" ]
null
null
null
"""Provide access to Python's configuration information. """ import sys import os from os.path import pardir, realpath __all__ = [ 'get_config_h_filename', 'get_config_var', 'get_config_vars', 'get_makefile_filename', 'get_path', 'get_path_names', 'get_paths', 'get_platform', 'get_...
36.184314
90
0.551823
ac09f0d3db721e607649b40f1c0c54ee6f83624e
21,282
py
Python
src/toolkit/preprocessing/preprocessors.py
pombredanne/fabric8-analytics-nvd-toolkit
c0e2b963f0fda974007fa56809a87b5d4eb63ffb
[ "Apache-2.0" ]
5
2018-05-17T10:09:41.000Z
2020-12-13T15:04:12.000Z
src/toolkit/preprocessing/preprocessors.py
pombredanne/fabric8-analytics-nvd-toolkit
c0e2b963f0fda974007fa56809a87b5d4eb63ffb
[ "Apache-2.0" ]
68
2018-04-17T20:26:19.000Z
2021-06-01T22:08:36.000Z
src/toolkit/preprocessing/preprocessors.py
pombredanne/fabric8-analytics-nvd-toolkit
c0e2b963f0fda974007fa56809a87b5d4eb63ffb
[ "Apache-2.0" ]
6
2018-04-17T10:09:24.000Z
2020-12-02T17:56:35.000Z
"""This module contains preprocessors. Those preprocessors are transformers which implement `transform` methods called by sklearn pipeline and can be integrated with it. """ import re import typing from collections import namedtuple import nltk import nltk.corpus as corpus import numpy as np from sklearn.base impo...
36.947917
95
0.617423
ac0a6c8724f9fe877383fddd59b9ac22eb07ac3e
464
py
Python
sunpy/net/dataretriever/tests/test_client.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/dataretriever/tests/test_client.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/dataretriever/tests/test_client.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
from sunpy.net.dataretriever.client import QueryResponse from sunpy.time import parse_time def test_reprs(): rowdict = {} rowdict['Start Time'] = parse_time("2012/1/1") rowdict['End Time'] = parse_time("2012/1/2") resp = QueryResponse([rowdict]) assert isinstance(resp, QueryResponse) strs = ["...
33.142857
65
0.68319
ac0a88dc1cef86f9d5bbad532a88ee93793a6f6f
5,561
py
Python
alipay/aop/api/domain/AlipayDataDataserviceAdDatasetSyncModel.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/domain/AlipayDataDataserviceAdDatasetSyncModel.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/domain/AlipayDataDataserviceAdDatasetSyncModel.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.constant.ParamConstants import * class AlipayDataDataserviceAdDatasetSyncModel(object): def __init__(self): self._biz_token = None self._data_id = None self._data_name = None self._data_src_type = None ...
31.596591
83
0.598274
ac0aa6e7392bce754927d256cad99343a6bf95ab
5,362
py
Python
pcapparser/packet_parser.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
4
2019-04-15T18:54:14.000Z
2021-07-24T15:27:26.000Z
pcapparser/packet_parser.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
null
null
null
pcapparser/packet_parser.py
abzcoding/pcap-parser
09ef92e08547141637eff62b8a5b64f6d23e945d
[ "BSD-3-Clause" ]
4
2019-02-28T06:17:11.000Z
2021-05-19T01:00:44.000Z
from __future__ import unicode_literals, print_function, division __author__ = 'dongliu' import struct import socket from pcapparser.constant import * class TcpPack: """ a tcp packet, header fields and data. """ def __init__(self, source, source_port, dest, dest_port, flags, seq, ack_seq, body): se...
34.371795
102
0.654606
ac0ae26317856bac6563fe45fda5250c05529c45
17,033
py
Python
tests/pulses/sequencing_dummies.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
tests/pulses/sequencing_dummies.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
tests/pulses/sequencing_dummies.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
"""STANDARD LIBRARY IMPORTS""" from typing import Tuple, List, Dict, Optional, Set, Any, Union import copy import numpy import unittest """LOCAL IMPORTS""" from qupulse._program._loop import Loop from qupulse.utils.types import MeasurementWindow, ChannelID, TimeType, time_from_float from qupulse.serializati...
39.611628
137
0.619386
ac0af3882c8e7ee735c030cb37b3887f16472764
5,295
py
Python
pyamg/gallery/laplacian.py
nicknytko/pyamg
c9e7e03ddb2911c2cdc8b6c93f158a7f1d8f0ce0
[ "MIT" ]
371
2015-01-11T23:32:12.000Z
2022-03-31T12:47:56.000Z
pyamg/gallery/laplacian.py
nicknytko/pyamg
c9e7e03ddb2911c2cdc8b6c93f158a7f1d8f0ce0
[ "MIT" ]
169
2015-01-15T15:31:10.000Z
2022-03-29T23:03:35.000Z
pyamg/gallery/laplacian.py
nicknytko/pyamg
c9e7e03ddb2911c2cdc8b6c93f158a7f1d8f0ce0
[ "MIT" ]
100
2015-01-22T23:21:23.000Z
2022-03-22T10:26:41.000Z
"""Discretizations of the Poisson problem.""" # pylint: disable=redefined-builtin import numpy as np import scipy as sp from .stencil import stencil_grid def poisson(grid, dtype=float, format=None, type='FD'): """Return a sparse matrix for the N-dimensional Poisson problem. The matrix represents a finite D...
29.254144
84
0.531822
ac0af814a074f67726f309c3c04cb82a944845b5
1,860
py
Python
analysis_collection/tracing_sim/results_smallworld_DF_NMEAS_100_ONLYSAVETIME_False/qsuite_config.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_DF_NMEAS_100_ONLYSAVETIME_False/qsuite_config.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_DF_NMEAS_100_ONLYSAVETIME_False/qsuite_config.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
1
2021-07-12T13:50:35.000Z
2021-07-12T13:50:35.000Z
import os import numpy as np import epipack from math import exp from numpy import random import networkx as nx #=========== SIMULATION DETAILS ======== projectname = "paper_tracing" basename = "smallworld_DF" seed = -1 N_measurements = 100 measurements = range(N_measurements) N = 200_000 q = [0,0.1,0.3,0.5,0.7,0.9] a...
23.846154
91
0.494086
ac0af8fc733828134646180f205298e58e1efe60
1,535
py
Python
opensocial/errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
1
2016-05-09T00:31:16.000Z
2016-05-09T00:31:16.000Z
opensocial/errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
opensocial/errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Copyright (C) 2007, 2008 Google 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 applicabl...
29.519231
74
0.711401