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
93c46c511b31990c0dcbcef713a9ef99e0e79d19
1,768
py
Python
jina/drivers/querylang/slice.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-25T19:28:50.000Z
2021-02-25T19:28:50.000Z
jina/drivers/querylang/slice.py
HarshCasper/jina
81ab098b140b74ad1cfdfde9218cec7a40923749
[ "Apache-2.0" ]
1
2021-02-27T05:56:45.000Z
2021-02-27T05:57:03.000Z
jina/drivers/querylang/slice.py
deepampatel/jina
97f9e97a4a678a28bdeacbc7346eaf7bbd2aeb89
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import sys from .. import QuerySetReader, BaseRecursiveDriver if False: from ...types.sets.document import DocumentSet class SliceQL(QuerySetReader, BaseRecursiveDriver): """Restrict the size of the ``docs...
31.571429
93
0.558824
93c473b9f9fe91d3af121186e5542bdbb0f89bce
2,059
py
Python
demos/slip_demo.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/slip_demo.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
demos/slip_demo.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
null
null
null
from models import slip import numpy as np import matplotlib.pyplot as plt p = {'mass': 1.36, #80.0, 'stiffness': 600.3,#8200.0, 'spring_resting_length': 0.222, 'gravity': 9.81, 'angle_of_attack': 0.5452, 'actuator_resting_length': 0.0} # offset of CoG to leg-start. Unimoprtant x0 = np.arra...
42.895833
155
0.668771
93c48a22e67e4ee360c5425b211af31fb6fc9060
116,003
py
Python
dnacentersdk/api/v1_2_10/network_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/network_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/network_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Network Discovery API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, incl...
39.497106
78
0.543693
93c49c81ad92a16aa8517aa3fbbafafeb3c06504
1,859
py
Python
trac/upgrades/db33.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db33.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db33.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2014-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
33.8
74
0.626143
93c4e9ba2f33a7e5aca7bf7c4803fa1e4aefd941
830
py
Python
cogbot/cogs/robo_mod/actions/add_reaction.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
8
2016-12-26T14:10:38.000Z
2021-01-02T03:50:05.000Z
cogbot/cogs/robo_mod/actions/add_reaction.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
28
2016-12-12T04:06:53.000Z
2020-04-23T06:18:55.000Z
cogbot/cogs/robo_mod/actions/add_reaction.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
9
2017-06-03T00:33:57.000Z
2020-10-29T18:16:02.000Z
from typing import TYPE_CHECKING, List import discord from cogbot.cogs.robo_mod.robo_mod_action import RoboModAction from cogbot.cogs.robo_mod.robo_mod_trigger import RoboModTrigger if TYPE_CHECKING: from cogbot.cogs.robo_mod.robo_mod_server_state import RoboModServerState class AddReactionsAction(RoboModAction...
34.583333
86
0.73253
93c4f444c3b1cee37de8ecbe7245d6c5c2ef8e3c
1,966
py
Python
griot/tests/participle_test.py
JeffreyMFarley/Bailiwick
0533b2398aaaa69c15c7d6b8a50290d92513fbbf
[ "MIT" ]
null
null
null
griot/tests/participle_test.py
JeffreyMFarley/Bailiwick
0533b2398aaaa69c15c7d6b8a50290d92513fbbf
[ "MIT" ]
4
2019-10-19T00:58:16.000Z
2020-04-13T16:42:26.000Z
griot/tests/participle_test.py
JeffreyMFarley/Bailiwick
0533b2398aaaa69c15c7d6b8a50290d92513fbbf
[ "MIT" ]
null
null
null
import unittest import os import sys import griot from operator import itemgetter def _vvgFilter(x): return x['w1'][-2:] != 'in' def _vvdFilter(x): a0 = x['L1'] in ['heave', 'bore', 'burn', 'bus', 'bust', 'dream', 'dwell', 'lean', 'leap', 'learn', 'plead', 'shoe', '...
34.491228
91
0.501526
93c4f771d81ad62d547145d777dc5ad5725ed3a5
3,787
py
Python
nova/tests/unit/virt/libvirt/storage/test_dmcrypt.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/virt/libvirt/storage/test_dmcrypt.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/virt/libvirt/storage/test_dmcrypt.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory # 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/l...
38.642857
78
0.672564
93c51d21bd81c43ada6d0c49f860859568dd9b1a
2,166
py
Python
dataprep/tests/eda/test_config.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
dataprep/tests/eda/test_config.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
dataprep/tests/eda/test_config.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
""" This module for testing config parameter """ import dask.dataframe as dd import pandas as pd import numpy as np import random import pytest from ...eda import plot, plot_correlation, plot_missing, create_report from ...eda.utils import to_dask @pytest.fixture(scope="module") def simpledf() -> dd.DataFrame: ...
38.678571
98
0.662512
93c52e83e9e5db2e01052ed5f5f809cad8bab6c9
1,075
py
Python
app.py
CrizR/Crypto-Alpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
2
2018-10-16T18:29:58.000Z
2020-02-12T14:58:46.000Z
app.py
CrizR/CryptoAlpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
null
null
null
app.py
CrizR/CryptoAlpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, abort, make_response,request from src.market_watch import MarketWatch app = Flask(__name__) @app.route('/api/v1.0', methods=['POST', 'GET']) @app.route('/', methods=['POST', 'GET']) def welcome(): """ With no path specified, returns the following welcome message. :return:...
28.289474
91
0.651163
93c53cd3fa01a40e042508d108fbeec35b528f09
779
py
Python
leetcode_python/tests/test_merge_sort_linked_list.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/tests/test_merge_sort_linked_list.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/tests/test_merge_sort_linked_list.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
import unittest from leetcode_python.src.algorithms.linked_list.ListNode import ListNode from leetcode_python.src.algorithms.linked_list.merge_sort_linked_list import MergeSortLinkedList class TestMergeSortLinkedList(unittest.TestCase): def test_sort_list(self): head = ListNode(5) node2 = ListNo...
28.851852
97
0.664955
93c55a4531b48eb5be4006c6c636604952eea5a2
3,654
py
Python
nova/tests/virt/vmwareapi/stubs.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
7
2017-06-19T19:37:00.000Z
2019-06-16T02:06:14.000Z
nova/tests/virt/vmwareapi/stubs.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/vmwareapi/stubs.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
6
2015-06-20T16:07:28.000Z
2020-08-19T14:57:59.000Z
# Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 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...
32.918919
79
0.709907
93c572ce504d47161a6674b2bcf2c1c93c9b9c41
2,326
py
Python
tests/api/v2_1_1/test_issues.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_issues.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_issues.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI issues API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, in...
34.716418
95
0.77558
93c5923f7c8ca5f9ba64e6e201b13c21b0a30917
9,513
py
Python
comics/admin.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
1
2017-06-15T23:27:14.000Z
2017-06-15T23:27:14.000Z
comics/admin.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
comics/admin.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
import math from decimal import Decimal from adminsortable2.admin import SortableInlineAdminMixin from django import forms from django.contrib import admin from django.core.exceptions import ValidationError from django.db import models from django.db import transaction from django.db.models import Window, F, Max from ...
32.030303
103
0.550405
93c5e165d53ff7a25f710e0d4c730b997a2e3ef3
17,091
py
Python
src/logml/datasets/df/df_explore.py
AstraZeneca-NGS/LogMl
cf254b358150f0f96a9dd2ea50de56acdc15bd56
[ "MIT" ]
null
null
null
src/logml/datasets/df/df_explore.py
AstraZeneca-NGS/LogMl
cf254b358150f0f96a9dd2ea50de56acdc15bd56
[ "MIT" ]
56
2019-09-10T19:00:38.000Z
2022-02-10T00:35:57.000Z
src/logml/datasets/df/df_explore.py
AstraZeneca-NGS/LogMl
cf254b358150f0f96a9dd2ea50de56acdc15bd56
[ "MIT" ]
null
null
null
#!/usr/bin/env python import matplotlib.pyplot as plt import missingno as msno import numpy as np import pandas as pd import seaborn as sns import scipy import warnings from IPython.display import display from scipy.cluster import hierarchy as hc from ...core.config import CONFIG_DATASET_EXPLORE from ...core.files i...
44.392208
184
0.627523
93c5e81350eae25f9930b33d26834a213511080e
1,130
py
Python
tests/publishers/test_publishers.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/publishers/test_publishers.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/publishers/test_publishers.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
# Joint copyright: # - Copyright 2012,2013 Wikimedia Foundation # - Copyright 2012,2013 Antoine "hashar" Musso # - Copyright 2013 Arnaud Fabre # # 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 ...
35.3125
75
0.785841
93c5e95fdd91e6707297e33494b4a3a33c21bd30
8,777
py
Python
ytree/frontends/consistent_trees/arbor.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
3
2020-02-28T10:25:39.000Z
2021-04-13T07:18:35.000Z
ytree/frontends/consistent_trees/arbor.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
36
2019-12-03T17:33:29.000Z
2022-02-18T10:39:25.000Z
ytree/frontends/consistent_trees/arbor.py
ytree-project/ytree
4ba1d3e6efd1e647c594b2c0de51b0217de7a45c
[ "BSD-3-Clause-Clear" ]
6
2019-08-22T16:01:34.000Z
2020-08-25T09:57:17.000Z
""" ConsistentTreesArbor class and member functions """ #----------------------------------------------------------------------------- # Copyright (c) ytree development team. All rights reserved. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distribute...
31.916364
90
0.565227
93c5f2e28e8e5e408c956b358cf60ec67583b8ba
9,068
py
Python
hello.py
Naereen/fontify
c45f5b4cedf94f624bf236e37426cccce276eb4e
[ "MIT" ]
23
2018-03-05T21:42:23.000Z
2021-11-03T06:44:43.000Z
hello.py
Naereen/fontify
c45f5b4cedf94f624bf236e37426cccce276eb4e
[ "MIT" ]
12
2018-03-05T22:00:07.000Z
2020-07-15T15:23:27.000Z
hello.py
Naereen/fontify
c45f5b4cedf94f624bf236e37426cccce276eb4e
[ "MIT" ]
2
2018-12-31T11:38:23.000Z
2019-02-03T20:58:50.000Z
#! /usr/bin/env python # -*- coding: utf8 -*- from __future__ import print_function import os import subprocess import tempfile import glob try: from StringIO import StringIO except ImportError: # in Python 3 from io import StringIO from flask import Flask from flask import request from flask import send_fro...
33.710037
192
0.606749
93c607849d95ec6931d0b4131d7d08975e5dda15
6,115
py
Python
configs/kaist_bfp/mul_libra_faster_rcnn_v16_pre_fpn_add_kaist.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
3
2020-06-16T01:23:37.000Z
2021-06-29T00:11:02.000Z
configs/kaist_bfp/mul_libra_faster_rcnn_v16_pre_fpn_add_kaist.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
null
null
null
configs/kaist_bfp/mul_libra_faster_rcnn_v16_pre_fpn_add_kaist.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
1
2021-06-29T00:06:43.000Z
2021-06-29T00:06:43.000Z
# model settings model = dict( type='FasterRCNNMulPreFPNAdd', pretrained='torchvision://vgg16', backbone=dict( type='MulVGG', depth=16, num_stages=5, out_indices=(1, 2, 3, 4), frozen_stages=1, with_last_pool=True ), neck=[ dict( ...
30.575
117
0.576778
93c60ca6806a68a6448fde688177a82d4dc33ce8
4,519
py
Python
obsolete/reports/pipeline_capseq/trackers/cpgReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
11
2018-09-07T11:33:23.000Z
2022-01-07T12:16:11.000Z
obsolete/reports/pipeline_capseq/trackers/cpgReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
102
2018-03-22T15:35:26.000Z
2022-03-23T17:46:16.000Z
obsolete/reports/pipeline_capseq/trackers/cpgReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
7
2018-06-11T15:01:41.000Z
2020-03-31T09:29:33.000Z
import os import sys import re import types import itertools import glob import pipelineTracks from cgatReport.Tracker import * from cgatReport.odict import OrderedDict as odict from cgatReport.Utils import PARAMS as P EXPORTDIR = P['cpg_exportdir'] DATADIR = P['cpg_datadir'] DATABASE = P['cpg_backend'] UCSC_GENOME =...
37.347107
89
0.569374
93c60e6ba2f941cfabeb187be8bc44a4d39b4fbd
11,561
py
Python
tensorflow_probability/python/bijectors/bijector_test_util.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/bijector_test_util.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/bijector_test_util.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.155116
87
0.705908
93c640956c1874cfb6a8d2bab5d775ab526cb317
211
py
Python
conans/assets/templates/__init__.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/assets/templates/__init__.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/assets/templates/__init__.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
from jinja2 import DictLoader import conans.assets.templates.search_table_html SEARCH_TABLE_HTML = 'output/search_table.html' dict_loader = DictLoader({ SEARCH_TABLE_HTML: search_table_html.content, })
17.583333
49
0.810427
93c651bfdd3817c512c2cb2c4a999ee7faf8b387
4,292
py
Python
ops/plates.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
null
null
null
ops/plates.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
null
null
null
ops/plates.py
jbauman214/OpticalPooledScreens_JB
ea1699d13f4975c47e25427e36e0bd910baf52c2
[ "MIT" ]
1
2020-11-10T20:35:17.000Z
2020-11-10T20:35:17.000Z
import string import re import numpy as np import pandas as pd def to_pixel_xy(df): x_0,y_0 = (df.iloc[0].x,df.iloc[0].y) df['x_px'] = df.apply(lambda row:(row.x-x_0)/row.pixel_size,axis=1) df['y_px'] = df.apply(lambda row:(row.y-y_0)/row.pixel_size,axis=1) return df def add_global_xy(df, well_spa...
29.805556
110
0.599254
93c6785ba3db656e714efa4213e5fc5c573c995c
30,371
py
Python
leo/core/leoShadow.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/core/leoShadow.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/core/leoShadow.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20080708094444.1: * @file leoShadow.py #@@first #@+<< docstring >> #@+node:ekr.20080708094444.78: ** << docstring >> ''' leoShadow.py This code allows users to use Leo with files which contain no sentinels and still have information flow in both directions between ...
41.833333
99
0.569787
93c68b07dcf28775c8fc00b3d60bf26a700b2e64
2,505
py
Python
setup.py
Yashs911/cc.engine
bd9156c0b26c5c2c2b7aa0986d7d166b6ec2ca6f
[ "MIT" ]
6
2017-12-25T08:18:43.000Z
2021-01-02T09:02:59.000Z
setup.py
Yashs911/cc.engine
bd9156c0b26c5c2c2b7aa0986d7d166b6ec2ca6f
[ "MIT" ]
39
2017-11-17T01:59:38.000Z
2021-12-14T19:14:12.000Z
setup.py
Yashs911/cc.engine
bd9156c0b26c5c2c2b7aa0986d7d166b6ec2ca6f
[ "MIT" ]
17
2017-12-25T08:18:13.000Z
2021-04-12T12:50:35.000Z
# Copyright (c) 2007-2009 Nathan R. Yergler, Christopher Webber, # Creative Commons # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including wi...
34.315068
78
0.669062
93c68dc4cd629abf041f6a22dcd92ac6adcfaeea
3,334
py
Python
ircbot/plugin/group.py
ocf/ircbot
7513e6b5cd6b0401c0056e7427041fd1891e28ea
[ "Apache-2.0", "CC-BY-4.0" ]
10
2016-11-10T06:32:51.000Z
2021-03-17T00:54:59.000Z
ircbot/plugin/group.py
ocf/ircbot
7513e6b5cd6b0401c0056e7427041fd1891e28ea
[ "Apache-2.0", "CC-BY-4.0" ]
106
2016-11-11T20:04:10.000Z
2022-02-04T07:05:14.000Z
ircbot/plugin/group.py
ocf/ircbot
7513e6b5cd6b0401c0056e7427041fd1891e28ea
[ "Apache-2.0", "CC-BY-4.0" ]
30
2017-02-08T19:58:13.000Z
2021-04-25T02:23:26.000Z
"""Print group account usernames from domain names and vice versa.""" from ocflib.account.search import user_exists from ocflib.account.search import user_is_group from ocflib.vhost.application import get_app_vhosts from ocflib.vhost.mail import get_mail_vhosts from ocflib.vhost.mail import vhosts_for_user from ocflib....
35.849462
102
0.624475
93c6a8faf4b445cf3d661efc0efc8cd141ad9b25
657
py
Python
ImageCollection/filtering_by_calendar_range.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
ImageCollection/filtering_by_calendar_range.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
ImageCollection/filtering_by_calendar_range.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
# GitHub URL: https://github.com/giswqs/qgis-earthengine-examples/tree/master/ImageCollection/filtering_by_calendar_range.py import ee from ee_plugin import Map roi = ee.Geometry.Point([-99.2182, 46.7824]) # find images acquired during June and July collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA') \ ...
31.285714
124
0.748858
93c6aa34cd78764b6cba554ae9b3a754625c89e8
1,059
py
Python
stix2elevator/test/test_utils.py
hanymorcos/cti-stix-elevator
3a5b5f2f4ba333dfda49f52fb7db2e8fb01fb952
[ "BSD-3-Clause" ]
null
null
null
stix2elevator/test/test_utils.py
hanymorcos/cti-stix-elevator
3a5b5f2f4ba333dfda49f52fb7db2e8fb01fb952
[ "BSD-3-Clause" ]
null
null
null
stix2elevator/test/test_utils.py
hanymorcos/cti-stix-elevator
3a5b5f2f4ba333dfda49f52fb7db2e8fb01fb952
[ "BSD-3-Clause" ]
null
null
null
from stix.indicator import Indicator from stix2elevator import convert_stix, utils from stix2elevator.utils import Environment def test_strftime_with_appropriate_fractional_seconds(): base_timestamp = "2017-03-29T05:05:05.555Z" mili_expected_timestamp = "2017-03-29T05:05:05.555000Z" milisecond_timestamp...
36.517241
99
0.793201
93c6bed1293361aecabb2f2eff16b394ba05c5c2
1,620
py
Python
examples/Cliner/CliNER/tools/tok.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/CliNER/tools/tok.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/CliNER/tools/tok.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
import re import sys import nltk def main(): file_tokenize(sys.argv[1], sys.argv[2]) def file_tokenize(filename, outfile): toks = tokenize(filename) with open(outfile, 'w') as f: for sent in toks: # pylint: disable=expression-not-assigned print >> f, ' '.join(sent) def...
21.6
54
0.545062
93c6c79328d0884c2618cfe3d81d5ae7a9d917f5
51,672
py
Python
src/containerapp-compose/azext_containerapp_compose/vendored_sdks/azext_containerapp/_utils.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
null
null
null
src/containerapp-compose/azext_containerapp_compose/vendored_sdks/azext_containerapp/_utils.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/containerapp/azext_containerapp/_utils.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "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. # --------------------------------------------------------------------...
44.239726
211
0.667247
93c7059f61c7c9ccf6521d9c22f2ea34106e8639
1,034
py
Python
src/saas/bkuser_shell/config/common/storage.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config/common/storage.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config/common/storage.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...
49.238095
115
0.659574
93c7133e6ee7df5db1a16130e4b2314f615cbe37
2,428
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
41.152542
107
0.675865
93c720aa9d6fd623c178ba6ae3732d1fd4de4c6b
3,007
py
Python
autogoal/experimental/metalearning/xgb_learner.py
lorainemg/autogoal
a8731ec79e761d9cd01e2b8f24d53e29e2ae05e4
[ "MIT" ]
1
2021-07-11T01:28:52.000Z
2021-07-11T01:28:52.000Z
autogoal/experimental/metalearning/xgb_learner.py
lorainemg/autogoal
a8731ec79e761d9cd01e2b8f24d53e29e2ae05e4
[ "MIT" ]
null
null
null
autogoal/experimental/metalearning/xgb_learner.py
lorainemg/autogoal
a8731ec79e761d9cd01e2b8f24d53e29e2ae05e4
[ "MIT" ]
null
null
null
# from sklearn.neighbors import KNeighborsClassifier from typing import List from autogoal.experimental.metalearning.datasets import Dataset from autogoal.experimental.metalearning.metalearner import MetaLearner from autogoal.experimental.metalearning.distance_measures import cosine_measure, l1_distance, l2_distance fr...
40.093333
116
0.666445
93c78199a385a6ec71c1f3a7abf5d8ac2e956366
2,198
py
Python
lib/streamlit/folder_black_list.py
dwiel/streamlit
74ae7f30cc3d95948aff311371449963f8eaf29e
[ "Apache-2.0" ]
null
null
null
lib/streamlit/folder_black_list.py
dwiel/streamlit
74ae7f30cc3d95948aff311371449963f8eaf29e
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/streamlit/folder_black_list.py
Yonet/streamlit
cfd005decb1af823e3be4e78da0cfab776ae49f1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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...
28.179487
83
0.662875
93c788a55085d7f997b827e5fe8849274e15bd52
2,132
py
Python
Delft3D_FlexibleMesh_dialog.py
jurjendejong/QGIS3_Delft3D_FM
058f1ab20974fb0a36e61fe5942e131917d612c7
[ "MIT" ]
1
2019-10-21T07:42:49.000Z
2019-10-21T07:42:49.000Z
Delft3D_FlexibleMesh_dialog.py
jurjendejong/QGIS3_Delft3D_FM
058f1ab20974fb0a36e61fe5942e131917d612c7
[ "MIT" ]
1
2021-09-20T08:42:56.000Z
2021-09-20T08:42:56.000Z
Delft3D_FlexibleMesh_dialog.py
jurjendejong/QGIS3_Delft3D_FM
058f1ab20974fb0a36e61fe5942e131917d612c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** Delft3D_FlexibleMeshDialog A QGIS plugin This plugin will provide basic tools for Flexible Mesh version=0.1 Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Bu...
46.347826
99
0.492964
93c78c4455f5a7025f893a496a6d94d7cf40e27e
2,458
py
Python
pca9685/simple_steering.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
pca9685/simple_steering.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
pca9685/simple_steering.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Use the Adafruit PCA9685 PWM controller library to steer the wheels of the RC car from left to right. """ import logging import os import time import Adafruit_PCA9685 from helpers import pulse_width_microseconds_to_ticks # region Logging logging.basicConfig(level...
35.114286
119
0.731082
93c7a432f1aa240e771540bf457afa1133ede5c1
396
py
Python
LC/20.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/20.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/20.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ stack=[] counter={')':'(',']':'[','}':'{'} for x in s: if x in counter: if len(stack)>0 and counter[x]==stack[-1]: stack.pop() ...
26.4
58
0.383838
93c7afb3b2977b57c77b50eaca207e53c22709e1
3,266
py
Python
bokeh/util/testing.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
1
2020-02-06T05:27:53.000Z
2020-02-06T05:27:53.000Z
bokeh/util/testing.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
bokeh/util/testing.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
''' Functions to help with testing Bokeh and reporting issues. ''' from __future__ import absolute_import, print_function import codecs import errno import os import shutil import sys import tempfile def makedirs_ok_if_exists(path): try: os.makedirs(path) except IOError as e: # pragma: no cover (py3 ...
29.160714
99
0.624617
93c7b4a853b78a8d2178c20a0071a58b72545272
78
py
Python
autodp/metadata.py
IBM/automation-of-image-data-preprocessing
a5327b1b6da3f5fc92dae4dfeb235c5f24378589
[ "MIT" ]
5
2020-11-26T16:31:56.000Z
2022-03-02T23:11:19.000Z
autodp/metadata.py
IBM/automation-of-image-data-preprocessing
a5327b1b6da3f5fc92dae4dfeb235c5f24378589
[ "MIT" ]
null
null
null
autodp/metadata.py
IBM/automation-of-image-data-preprocessing
a5327b1b6da3f5fc92dae4dfeb235c5f24378589
[ "MIT" ]
null
null
null
version = "0.1" authors = ["Tran Ngoc Minh"] license = "IBM Research Ireland"
19.5
32
0.679487
93c7fcf3f917797ec3a5eaf1b901c1ad17660ff9
497
py
Python
tests/unit/__init__.py
ucsd-ets/nbmessages
b4e7e96e5870d9112d08300fb6c05ab88cf58a9e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/__init__.py
ucsd-ets/nbmessages
b4e7e96e5870d9112d08300fb6c05ab88cf58a9e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/__init__.py
ucsd-ets/nbmessages
b4e7e96e5870d9112d08300fb6c05ab88cf58a9e
[ "BSD-3-Clause" ]
null
null
null
import unittest, os, shutil from nbmessages import APPLICATION_DATA_DIR class BaseTester(unittest.TestCase): message_board = 'test' def setup_dir(self, message_board=message_board): try: os.mkdir(os.path.join(APPLICATION_DATA_DIR, self.message_board)) except: pass ...
24.85
81
0.663984
93c80f89fcf855a00ac5d31a58bc5423d228e7fa
4,888
py
Python
tests/unit/plugins/articles/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/unit/plugins/articles/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/articles/conftest.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
from datetime import datetime import dectate import pytest from kaybee.plugins.articles.actions import ToctreeAction from kaybee.plugins.articles.base_article import BaseArticle from kaybee.plugins.articles.base_article_reference import BaseArticleReference from kaybee.plugins.articles.base_homepage import BaseHomepa...
22.841121
79
0.623159
93c81ba1dffb835dbbd5f50ebb2b2f3b0aaec75e
12,207
py
Python
pyglet/app/base.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
2
2017-05-10T08:27:22.000Z
2019-10-05T14:55:00.000Z
pyglet/app/base.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
pyglet/app/base.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import sys import threading import Queue from pyglet import app from pyglet import clock from pyglet import event _is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc class PlatformEventLoop(object): ''' :since: py...
32.123684
78
0.61219
93c86927f044f2e3ddeb7e11760d1b8d4b8f932a
20,964
py
Python
orchid/native_stage_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_stage_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_stage_adapter.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Reveal Energy Services, 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 appl...
47.004484
115
0.666237
93c883235d0f9ee891fa5f6b27de93813ce61213
14,856
py
Python
canvas_sdk/methods/group_categories.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/group_categories.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/group_categories.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 list_group_categories_for_context_accounts(request_ctx, account_id, per_page=None, **request_kwargs): """ Returns a list of group categories in a context :param request_ctx: The request context :type request_ctx: :class:RequestContext :param acc...
46.864353
313
0.714795
93c887a858ae3a8f4edaa7bb4803a50991e4159b
22,494
py
Python
cinder/volume/drivers/hitachi/vsp_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hitachi/vsp_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/hitachi/vsp_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (C) 2016, Hitachi, 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...
33.673653
79
0.590424
93c8a9c3b4fd41f0148f31de2ae31bd8a0f5c4de
929
py
Python
autoimpute/visuals/__init__.py
gjdv/autoimpute
aa418102d3b64fc7e0c0dafa6839746f0b9a6545
[ "MIT" ]
191
2019-03-16T17:00:33.000Z
2022-03-11T12:14:17.000Z
autoimpute/visuals/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
57
2019-03-09T23:59:38.000Z
2022-03-01T08:17:33.000Z
autoimpute/visuals/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
19
2019-04-13T19:01:23.000Z
2021-05-14T08:59:27.000Z
"""Manage the visuals lib from the autoimpute package. This module handles imports from the visuals directory that should be accessible whenever someone imports autoimpute.visuals. The imports include methods for visual analysis of missing data, from exploration to analysis. This module handles `from autoimpute.visua...
33.178571
76
0.795479
93c8b9eebaf9589789898e25cc51ee41b0cfd215
1,740
py
Python
tests/resource/test_resource.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
1
2019-09-15T12:30:44.000Z
2019-09-15T12:30:44.000Z
tests/resource/test_resource.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
tests/resource/test_resource.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
def test_resource_wired_setup(registry): from wired_components.resource import wired_setup assert wired_setup(registry) is None def test_resource_construction(): from wired_components.resource import Resource resource = Resource( name='name1', parent=None, title='title1', body='body1' ) ...
31.071429
63
0.696552
93c8ce56cbf0ca0e601bc87eea4b3a0318e6424e
6,155
py
Python
ansible/src/mm_claimip.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
2
2021-10-05T16:40:57.000Z
2021-10-05T16:41:01.000Z
ansible/src/mm_claimip.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
2
2021-06-05T01:19:31.000Z
2021-10-05T16:19:08.000Z
ansible/src/mm_claimip.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
null
null
null
"""Ansible Claim IP address module. Part of the Men&Mice Ansible integration Module to claim IP addresses in DHCP in Micetro """ from __future__ import absolute_import, division, print_function __metaclass__ = type #IMPORTS_START import sys import os import urllib import include as mm from ansible.errors import Ans...
29.309524
97
0.619984
93c8d537868b4ac192dc4ffe6f39e9e246d947dc
8,850
py
Python
tests/test_real.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
tests/test_real.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
tests/test_real.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Tests for the Real currency representation(s).""" from decimal import Context from pytest import raises from multicurrency import Currency from multicurre...
38.646288
86
0.578418
93c8e3e2d9ba845a640849bd0cc7e001ab8e1868
411
py
Python
jaxfg/sparse/__init__.py
AvanDavad/jaxfg
6d1559126ba872b452eca6a13c2688349f1c5f7e
[ "MIT" ]
120
2020-11-28T19:43:31.000Z
2022-03-29T02:35:46.000Z
jaxfg/sparse/__init__.py
AvanDavad/jaxfg
6d1559126ba872b452eca6a13c2688349f1c5f7e
[ "MIT" ]
12
2021-05-24T09:02:12.000Z
2022-03-30T19:51:40.000Z
jaxfg/sparse/__init__.py
AvanDavad/jaxfg
6d1559126ba872b452eca6a13c2688349f1c5f7e
[ "MIT" ]
9
2021-05-06T15:31:23.000Z
2022-03-23T12:06:44.000Z
from ._linear_solve import ( CholmodSolver, ConjugateGradientSolver, InexactStepConjugateGradientSolver, LinearSubproblemSolverBase, ) from ._sparse_matrix import SparseCooCoordinates, SparseCooMatrix __all__ = [ "CholmodSolver", "ConjugateGradientSolver", "InexactStepConjugateGradientSolve...
24.176471
65
0.768856
93c900b0bb409ac66336dc3b5eb4cc7548bdba1b
3,618
py
Python
venv/Lib/site-packages/pyrogram/raw/types/update_read_channel_discussion_inbox.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/update_read_channel_discussion_inbox.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/update_read_channel_discussion_inbox.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# 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...
37.6875
176
0.629353
93c90a2a09c6dd4322c1e3e0f752f418b4068ab2
4,471
py
Python
kitchen/cook_ascii.py
TrasgoGroup/Cell-Viewer
4f2421e278b22926cd34e0600d0ecb12026d58c9
[ "Apache-2.0" ]
null
null
null
kitchen/cook_ascii.py
TrasgoGroup/Cell-Viewer
4f2421e278b22926cd34e0600d0ecb12026d58c9
[ "Apache-2.0" ]
2
2021-02-04T10:32:13.000Z
2021-02-12T10:11:46.000Z
kitchen/cook_ascii.py
MCruces-fz/Cell-Viewer
4f2421e278b22926cd34e0600d0ecb12026d58c9
[ "Apache-2.0" ]
1
2021-04-30T11:37:37.000Z
2021-04-30T11:37:37.000Z
""" A P A C H E L I C E N S E ------------ Version 2.0, January 2004 Copyright 2021 Miguel Cruces Fernández 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 cop...
34.392308
84
0.61418
93c90a35dc7f3e7ae876250724022b18b7b21370
2,758
py
Python
examples/movements.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
examples/movements.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
examples/movements.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
import numpy as np from simple_3dviz import Spherecloud from simple_3dviz.behaviours.misc import LightToCamera from simple_3dviz.behaviours.movements import CameraTrajectory, LightTrajectory from simple_3dviz.behaviours.trajectory import Circle, Repeat, BackAndForth, \ Lines, QuadraticBezierCurves from simple_3dvi...
27.858586
79
0.44235
93c911ef20d49417186378f4a0e95346ec5648d2
388
py
Python
lib/models/nn_regression.py
CuongVoThanh/Dyslipidemia_Prediction
7ddbad6045131c31d405e682a78c45a748405f9c
[ "MIT" ]
2
2021-08-19T09:33:51.000Z
2021-09-24T11:06:40.000Z
lib/models/nn_regression.py
CuongVoThanh/Dyslipidemia_Prediction
7ddbad6045131c31d405e682a78c45a748405f9c
[ "MIT" ]
null
null
null
lib/models/nn_regression.py
CuongVoThanh/Dyslipidemia_Prediction
7ddbad6045131c31d405e682a78c45a748405f9c
[ "MIT" ]
null
null
null
from torch import nn class NeuralNetwork(nn.Module): def __init__(self, input_shape): super(NeuralNetwork, self).__init__() self.linear_relu_stack = nn.Sequential( nn.Linear(input_shape, 16), nn.LeakyReLU(0.1), nn.Linear(16, 1), ) def forward...
25.866667
47
0.582474
93c9366ff9038c8068bbf6dd80d69b5258dc0499
7,465
py
Python
generated/python/proto-google-cloud-datastore-v1/google/cloud/proto/datastore/v1/datastore_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-datastore-v1/google/cloud/proto/datastore/v1/datastore_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-datastore-v1/google/cloud/proto/datastore/v1/datastore_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from grpc.framework.common import cardinality from grpc.framework.interfaces.face import utilities as face_utilities import google.cloud.proto.datastore.v1.datastore_pb2 as google_dot_cloud_dot_proto_dot_datastore_dot_v1_dot_datastore__p...
50.439189
140
0.791025
93c9543c8d4761793c9e948accb1cb7e51fd3594
22
py
Python
publication_backbone/models_bases/polymorphic_mptt/__init__.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
6
2016-05-19T14:59:51.000Z
2020-03-19T10:08:29.000Z
publication_backbone/models_bases/sql/__init__.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
publication_backbone/models_bases/sql/__init__.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'LEGION'
11
21
0.727273
93c96d7eb0bcc3a955fb271e0fc57f994c67b8d6
1,118
py
Python
mtp_bank_admin/settings/docker.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
mtp_bank_admin/settings/docker.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
mtp_bank_admin/settings/docker.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
""" Docker settings """ from mtp_common.stack import get_current_pod from .base import * # noqa from .base import ENVIRONMENT, os # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBU...
28.666667
85
0.746869
93c976f74350386fbd0d51c5d717fe65d90a2dfd
51,848
py
Python
lib/tool_shed/util/admin_util.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/tool_shed/util/admin_util.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/tool_shed/util/admin_util.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import logging from sqlalchemy import false, func from galaxy import util, web from galaxy.util import inflector from galaxy.web.form_builder import CheckboxField from tool_shed.util.web_util import escape log = logging.getLogger(__name__) class Admin(object): # Override these user_list_grid = None ro...
53.068577
159
0.503819
93c98ad74142ca0a6d0d22e1d4ff208b75455e99
1,479
py
Python
tests/test_generate_tiles.py
owlman75/gdal2tiles
6f355a4fe7e7b770258179ecc8e9440470a382d7
[ "MIT" ]
48
2018-09-12T08:35:37.000Z
2022-03-30T03:31:46.000Z
tests/test_generate_tiles.py
owlman75/gdal2tiles
6f355a4fe7e7b770258179ecc8e9440470a382d7
[ "MIT" ]
11
2018-05-24T11:07:09.000Z
2022-01-27T01:27:59.000Z
tests/test_generate_tiles.py
owlman75/gdal2tiles
6f355a4fe7e7b770258179ecc8e9440470a382d7
[ "MIT" ]
26
2018-07-03T10:35:17.000Z
2022-03-30T03:31:48.000Z
import xmltodict from PIL import Image from gdal2tiles import generate_tiles def test_basic(data, tmp_path): """Basic sanity check""" input_file = data / 'simple.tiff' output_dir = tmp_path / 'tiles' output_dir.mkdir() generate_tiles(str(input_file), str(output_dir)) # ensure a tilemapresou...
28.442308
82
0.663286
93c9bf87999891dbd2e81cf857ed4f320b7f3e65
698
py
Python
miura/tests/test_utils.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
1
2017-05-18T11:34:35.000Z
2017-05-18T11:34:35.000Z
miura/tests/test_utils.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
null
null
null
miura/tests/test_utils.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
null
null
null
from miura import utils class TestSpecializeContent(object): def test_specialize_content(self): template = "{{ name }}, {{ foo }}" job_data = { "foo": "hello world", "name": "foojob" } output = utils.specialize_content( template, job...
23.266667
61
0.60745
93c9e6ab7925b2694347792334640b68f38d279d
4,878
py
Python
tests/backend/test_states_probabilities.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
646
2018-03-26T15:12:35.000Z
2022-03-21T18:52:42.000Z
tests/backend/test_states_probabilities.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
666
2018-03-27T20:21:27.000Z
2022-03-25T18:35:33.000Z
tests/backend/test_states_probabilities.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
182
2018-04-11T17:09:39.000Z
2022-03-29T15:38:43.000Z
# Copyright 2019 Xanadu Quantum Technologies 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 agre...
37.236641
89
0.638376
93ca0b7d2d92ff00d47f5047c31c784bea1bc739
3,416
py
Python
pythalesians_examples/markets/quandldata_examples.py
femtotrader/pythalesians
febdfbabc9f99b0ae3eb0b20ce4c5ed6a34c0bbb
[ "Apache-2.0" ]
22
2017-06-04T21:05:18.000Z
2022-01-22T19:01:43.000Z
pythalesians_examples/markets/quandldata_examples.py
faruto/pythalesians
febdfbabc9f99b0ae3eb0b20ce4c5ed6a34c0bbb
[ "Apache-2.0" ]
null
null
null
pythalesians_examples/markets/quandldata_examples.py
faruto/pythalesians
febdfbabc9f99b0ae3eb0b20ce4c5ed6a34c0bbb
[ "Apache-2.0" ]
11
2016-10-06T21:25:20.000Z
2020-07-08T19:13:35.000Z
__author__ = 'saeedamen' # Saeed Amen / saeed@thalesians.com # # Copyright 2015 Thalesians Ltd. - http//www.thalesians.com / @thalesians # # 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://...
40.666667
121
0.640222
93ca38f1c19ab152056236fa5e1c924bda501f32
1,370
py
Python
clients/kratos/python/test/test_submit_self_service_logout_flow_without_browser_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_submit_self_service_logout_flow_without_browser_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_submit_self_service_logout_flow_without_browser_body.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
37.027027
446
0.778102
93ca398d8d9ffff093728d149f0ca230a03c9af0
1,081
py
Python
marqeta/response_models/real_time_standin_criteria.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/real_time_standin_criteria.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/real_time_standin_criteria.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class RealTimeStandinCriteria(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json...
29.216216
111
0.724329
93ca3f1940ad251a4ab67e4c06a5d17bf49d0721
887
py
Python
src/common/migrations/0009_client_receipt_client_receipt_number_and_more.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
src/common/migrations/0009_client_receipt_client_receipt_number_and_more.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
src/common/migrations/0009_client_receipt_client_receipt_number_and_more.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.4 on 2022-04-22 16:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0008_client_cost_client_registration_number_client_tax_and_more'), ] operations = [ migrations.AddField( model_name='c...
28.612903
93
0.605411
93ca4006b735c98af1239b5455c6a93011d076d7
6,209
py
Python
redbox/config/template.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
3
2021-02-27T13:40:32.000Z
2021-03-18T18:44:07.000Z
redbox/config/template.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
null
null
null
redbox/config/template.py
cytopia/prometheus-redbox_exporter
cfef30d9b705cc0176b74c7a527709a27937ce25
[ "MIT" ]
null
null
null
"""This file defines the configuration file template. type: Determines the valid type for this key. default: Gives a default value if none was defined. valid: List of valid values for this key. regexp: Regexp expression for valid values of this key. required: Determines if this key is requuired or not. ...
31.517766
72
0.313094
93ca414e60ae38c497fbfe8eb914d67aea84a0f2
3,903
py
Python
podcaststore_api/views/track.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
null
null
null
podcaststore_api/views/track.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
3
2019-09-22T17:58:27.000Z
2019-09-22T18:20:20.000Z
podcaststore_api/views/track.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
null
null
null
from rest_framework.views import APIView import rest_framework.status as status from rest_framework.response import Response from rest_framework.request import Request from podcaststore_api.models import Podcast from podcaststore_api.models.track import ( Track, TrackSerializer, TrackPodcastMonthlySerialize...
35.807339
86
0.669485
93cab9cb2fbd8160f48396ce8f1855dae75fabfe
2,643
py
Python
telraam_data/tests/test_query.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_query.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_query.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
import telraam_data.query as query import datetime as dt import random def test_query_active_segments(): response = query.query_active_segments() assert response["status_code"] == 200 assert response["message"] == "ok" assert response["type"] == "FeatureCollection" num_segments = len(response["fea...
41.952381
117
0.704124
93cadf5859d3b9a92df9f8ae19825f4d30e6d4db
679
py
Python
userbot/plugins/scramble.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/scramble.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/scramble.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
""" thx to @r4v4n4 """ import random import re from userbot.utils import lightning_cmd @borg.on(lightning_cmd(pattern="scramble(\s+[\S\s]+|$)")) async def scramble_message(e): reply_message = await e.get_reply_message() text = e.pattern_match.group(1) or reply_message.text words = re.split(r"\s", text)...
21.903226
63
0.673049
93cae9c1f25adeaa70254237e03d2fd8238f1e97
1,997
py
Python
src/test/tests/hybrid/expr2engine.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/expr2engine.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/hybrid/expr2engine.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: expr2engine.py # # Tests: mesh - 2D, curvilinear, single domain # plots - FilledBoundary # databases - PDB # # Purpose: This test case tests the viewer's abili...
29.80597
78
0.649975
93cb0091a8d74355095299f44f64c9f0e4a43339
1,210
py
Python
experiments/distfunc_training/q_func_training/tabletop_reacher/conf.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
16
2021-04-20T20:01:10.000Z
2022-03-29T03:19:39.000Z
experiments/distfunc_training/q_func_training/tabletop_reacher/conf.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
experiments/distfunc_training/q_func_training/tabletop_reacher/conf.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
1
2021-05-04T00:32:40.000Z
2021-05-04T00:32:40.000Z
import os from classifier_control.classifier.utils.general_utils import AttrDict from classifier_control.classifier.utils.logger import TdistClassifierLogger current_dir = os.path.dirname(os.path.realpath(__file__)) from classifier_control.classifier.models.q_function import QFunction, QFunctionTestTime import imp co...
26.888889
101
0.676033
93cb10ce238aae5f87e3d8ef39453e7646e4ae06
5,647
py
Python
scripts/functionalities/sparql_owlready2.py
preyero/icwsm22-supporting-toxicity-with-KG
052dbb0f6ba0f10d8f5b48da02b49df5ca9f3551
[ "MIT" ]
null
null
null
scripts/functionalities/sparql_owlready2.py
preyero/icwsm22-supporting-toxicity-with-KG
052dbb0f6ba0f10d8f5b48da02b49df5ca9f3551
[ "MIT" ]
null
null
null
scripts/functionalities/sparql_owlready2.py
preyero/icwsm22-supporting-toxicity-with-KG
052dbb0f6ba0f10d8f5b48da02b49df5ca9f3551
[ "MIT" ]
null
null
null
""" Examples of SPARQL queries in GSSO ontology using owlready2: - get a concept - from a concept, get its superclasses - from a concept, get all individuals 29th November 2021 """ import os import owlready2 from owlready2 import * PROJ_DIR = os.getcwd() print("Hello from {}".format(PROJ_DIR)) def load_gsso():...
33.414201
115
0.602798
93cb371e5c76480c9c86936ac3502ac731e8b6dd
3,712
py
Python
intersight/models/qatask_execution_status_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/qatask_execution_status_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/qatask_execution_status_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class QataskExecutionStatusTaskRef(object): """ NOT...
24.746667
81
0.554149
93cb5a98a8ec6fc48e44c4d6d8a0931bd8d7bf85
22,100
py
Python
test/functional/test_framework/util.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from decimal import Decimal, ...
36.111111
127
0.646244
93cb5ce36399f3fea15c44b9f2582c7eebbf6bf3
1,035
py
Python
manage.py
m7salam/shortit
c575acb4e8b447ac62abdf899063357f1569e93d
[ "MIT" ]
null
null
null
manage.py
m7salam/shortit
c575acb4e8b447ac62abdf899063357f1569e93d
[ "MIT" ]
2
2022-03-01T00:07:15.000Z
2022-03-02T00:17:58.000Z
manage.py
m7salam/shortit
c575acb4e8b447ac62abdf899063357f1569e93d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.34375
77
0.657005
93cb6353c018641d9b2c05092a6d2a9a4b28135b
10,426
py
Python
onadata/apps/viewer/south_migrations/0014_auto__add_field_export__status.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/viewer/south_migrations/0014_auto__add_field_export__status.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/viewer/south_migrations/0014_auto__add_field_export__status.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Export._status' d...
74.471429
182
0.56033
93cb644030de7bedf58aa79fabe2cef50472aeb4
1,947
py
Python
setup.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
2
2019-09-04T17:06:02.000Z
2020-10-19T02:22:46.000Z
setup.py
uPlexa/uplexa-python
e0074d7fb778a5fe150baf9a6badb3c2fc20afbb
[ "BSD-3-Clause" ]
1
2021-07-17T22:30:15.000Z
2021-07-17T22:30:15.000Z
setup.py
uPlexa/uplexa-python
e0074d7fb778a5fe150baf9a6badb3c2fc20afbb
[ "BSD-3-Clause" ]
1
2021-06-02T05:33:28.000Z
2021-06-02T05:33:28.000Z
# -*- coding: utf-8 -*- import codecs import os import re from distutils.core import setup from setuptools import find_packages here = os.path.abspath(os.path.dirname(__file__)) def find_version(*parts): """ Figure out version number without importing the package. https://packaging.python.org/guides/sin...
33.568966
85
0.63585
93cb69b943c795fda77455c0eda6524b806c4a87
822
py
Python
manage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1,586
2020-01-07T10:53:31.000Z
2022-03-31T16:15:42.000Z
manage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
398
2020-01-29T16:31:44.000Z
2022-03-11T21:22:10.000Z
manage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
196
2020-01-29T09:25:16.000Z
2022-03-29T11:08:35.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "config.settings.dev" ) try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason....
32.88
77
0.631387
93cb74117ef377c2c0902684ac8c31a3e634858e
35,032
py
Python
vehicles/airplane.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
3
2017-05-12T21:52:53.000Z
2018-04-02T16:05:08.000Z
vehicles/airplane.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
null
null
null
vehicles/airplane.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
4
2017-04-13T01:06:21.000Z
2019-01-22T09:43:38.000Z
#!/usr/bin/env python2 """ Basic fixed-wing airplane simulator to test out an intuitive model. This was a thrown-together messy modification of the software in my multicopter repo. """ from __future__ import division from threading import Thread from collections import deque import time import numpy as np; npl = np.l...
45.319534
179
0.555863
93cb7cc6fe047ecda1c5d8f585aff4c0fe9e16b8
5,020
py
Python
chaoslib/exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
73
2017-11-26T13:43:53.000Z
2022-02-25T02:52:54.000Z
chaoslib/exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
191
2017-10-09T14:33:12.000Z
2022-03-23T16:23:06.000Z
chaoslib/exit.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
48
2017-12-05T16:39:01.000Z
2022-02-14T12:01:30.000Z
""" This module is advanced usage and mostly interesting to users who need to be able to terminate an experiment's execution as fast as possible and, potentially, without much care for cleaning up afterwards. If you want to interrup an execution but can affort to wait for graceful completion (current activty, rollback...
30.987654
86
0.656972
93cb96c0dae0aa33c926c53c64afb19f6ea32ff4
506
py
Python
08-functions/return_values.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
1
2020-05-11T13:58:29.000Z
2020-05-11T13:58:29.000Z
08-functions/return_values.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
08-functions/return_values.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
def complex_function(a, b, c): if not a: return None if not b: return None x = a + b + c if not x: return None return x def complex_function2(a, b, c): result = None if a and b: result = a + b + c return result def complex_function3(a, b, c): if no...
18.740741
64
0.563241
93cbf59a094f04440f52ee0a343acb15358a440f
10,351
py
Python
dragons/plugins/archive.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
3
2021-08-11T08:33:39.000Z
2022-01-17T00:09:11.000Z
dragons/plugins/archive.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
null
null
null
dragons/plugins/archive.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
6
2021-08-14T08:20:41.000Z
2022-03-20T02:31:45.000Z
import asyncio import io import os import time import zipfile from datetime import datetime from pathlib import Path from tarfile import is_tarfile from tarfile import open as tar_open from telethon import types from telethon.utils import get_extension from ..Config import Config from . import drgub, edit_delete, edi...
36.447183
112
0.579074
93cc03e4e136671ff3a37d4e3dda9ccaa16f0dbd
195,836
py
Python
src/sage/geometry/lattice_polytope.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/geometry/lattice_polytope.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/lattice_polytope.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
r""" Lattice and reflexive polytopes This module provides tools for work with lattice and reflexive polytopes. A *convex polytope* is the convex hull of finitely many points in `\RR^n`. The dimension `n` of a polytope is the smallest `n` such that the polytope can be embedded in `\RR^n`. A *lattice polytope* is a pol...
33.562296
114
0.528233
93cc3ded8f56c58444f885878967f77375b328b2
64
py
Python
test/examples/exceptions/raise1.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
47
2020-05-05T08:23:55.000Z
2022-03-19T19:48:37.000Z
test/examples/exceptions/raise1.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
test/examples/exceptions/raise1.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
3
2020-08-30T09:05:17.000Z
2022-01-07T08:11:28.000Z
def foo(y): x = 5 x / y def bar(): foo(0) bar()
5.818182
11
0.375
93cc44dcc5a1b28a24f27014a367ab75bfa40e95
8,394
py
Python
logcausality/config.py
cpflat/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
20
2016-11-22T03:21:20.000Z
2021-06-16T02:44:58.000Z
logcausality/config.py
arita37/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
1
2019-10-23T05:45:34.000Z
2019-11-01T04:56:01.000Z
logcausality/config.py
arita37/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
8
2015-11-13T03:33:04.000Z
2021-09-10T09:29:23.000Z
#!/usr/bin/env python # coding: utf-8 import sys import os import datetime import logging import collections import ConfigParser DEFAULT_CONFIG_NAME = "/".join((os.path.dirname(__file__), "config.conf.default")) LOGGER_NAME = __name__.rpartition(".")[-1] _logger = logging.getLogger(LOGGER_NAME) _ch = logging....
29.978571
76
0.548964
93cc48a207b5e5ce5474d7ed55d349dbed3d2e7e
3,138
py
Python
src/data/plant_village.py
NikRuggeri/CLAP-interpretable-predictions
1a89ba2d2eddfa9aff25124937cc31a6b7847dec
[ "MIT" ]
3
2022-03-25T10:43:41.000Z
2022-03-30T13:53:02.000Z
src/data/plant_village.py
NikRuggeri/CLAP-interpretable-predictions
1a89ba2d2eddfa9aff25124937cc31a6b7847dec
[ "MIT" ]
null
null
null
src/data/plant_village.py
NikRuggeri/CLAP-interpretable-predictions
1a89ba2d2eddfa9aff25124937cc31a6b7847dec
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Any, Callable, List, Optional, Tuple import PIL import numpy as np from torchvision.datasets import VisionDataset from .utils import DATA_DIR ROOT_DIR = os.path.join( DATA_DIR, "leaf_disease", "Plant_leave_diseases_dataset_without_augmentation" ) LEAF_TYPES =...
26.820513
81
0.586042
93cc5f5e41f773f37a0a8a3a09c3440e5a351ea2
1,003
py
Python
scielo_migration/isisdb/journal_record.py
scieloorg/scielo_migration
320de42e48e873990a561058e8731ae3c477421a
[ "BSD-2-Clause" ]
null
null
null
scielo_migration/isisdb/journal_record.py
scieloorg/scielo_migration
320de42e48e873990a561058e8731ae3c477421a
[ "BSD-2-Clause" ]
null
null
null
scielo_migration/isisdb/journal_record.py
scieloorg/scielo_migration
320de42e48e873990a561058e8731ae3c477421a
[ "BSD-2-Clause" ]
1
2021-11-03T18:24:08.000Z
2021-11-03T18:24:08.000Z
# generated by ModelBuilder from scielo_migration.isisdb.base_journal_record import BaseJournalRecord # generated by ModelBuilder class JournalRecord(BaseJournalRecord): def __init__( self, record, multi_val_tags=None, data_dictionary=None): super().__init__( record, m...
30.393939
73
0.586241
93cce64d9b74330dbd9bd7d839ff0e60388bb5ab
11,933
py
Python
topo/tests/runtests.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/tests/runtests.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/tests/runtests.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
""" Commands that were in the Makefile for running various tests. Roughly converted to a Python script so we can run on all platforms. Work in progress. Check README and buildbot to see how to run the tests, but here are some examples: default set: ./topographica topo/tests/runtests.py exhaustive: ./topographica -p ...
38.996732
269
0.716081
93cd3efe029ce0d9bd9b0b93f2efffd5fc9c55bf
646
py
Python
Python-code-snippets-101-200/126-football-historic-data.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/126-football-historic-data.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/126-football-historic-data.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
''' Snippet #126-View historic football data. stevepython.wordpress.com Tested on Win 7 and Linux Mint 19.1 source:unkown. source of data: https://www.football-data.co.uk/data.php csv is part of python's standard library, so you don't need to install it ''' import csv csv_file = csv.reader(open('pl-2018-2019-data...
19.575758
93
0.708978
93cd4d227e15b9773f8d4b44ff39191004d81089
19,573
py
Python
controllers/appadmin.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
controllers/appadmin.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
controllers/appadmin.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Application Administration """ if not auth.s3_has_role("ADMIN"): auth.permission.fail() # ########################################################## # ## make sure administrator is on localhost # ########################################################### import os import socket import datetime import co...
33.45812
94
0.52414
93cd51c336321a3d843658a67642c77801ea7863
2,354
py
Python
trac/upgrades/db26.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db26.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db26.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2010-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
37.967742
77
0.594308
93cd63ecdb80f259d982c1a9e97e8d136d03434a
2,395
py
Python
aldryn_faq/cms_appconfig.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/cms_appconfig.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/cms_appconfig.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.translation import ugettext, ugettext_lazy as _ from aldryn_apphooks_config.models import AppHookConfig from cms.models.fields import PlaceholderField from parler.models import TranslatableModel, TranslatedFields # Different styles of slugs supported where 1 is the c...
33.263889
77
0.687265
93cd8928a23048cf408e5f9d10477dbcfa6f6acd
7,912
py
Python
evaluate_explanations.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
evaluate_explanations.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
evaluate_explanations.py
marnixm/lime_experiments
0b6b2acddff3f55c022c7a5eb28a150ab9e4c846
[ "BSD-2-Clause" ]
null
null
null
import sys import copy sys.path.append('..') import argparse import explainers import parzen_windows import numpy as np import pickle import sklearn from load_datasets import * from sklearn.metrics import accuracy_score import datetime #from utilities import printLog def get_tree_explanation(tree, v): t = tree.tre...
45.471264
178
0.66595
93cdb4df4db0536b75d2b3c2e6dc26215b9acfa1
6,396
py
Python
tests/python/pants_test/help/test_help_info_extracter.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/help/test_help_info_extracter.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/help/test_help_info_extracter.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import unittest from pants.help.help_info_extracter import HelpInfoExtracter from pants....
48.824427
98
0.606785
93cdbabdea5a0347621ff20fcb7af1bcb69afefd
3,652
py
Python
rally/plugins/openstack/context/network/networks.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
rally/plugins/openstack/context/network/networks.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/plugins/openstack/context/network/networks.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
38.041667
78
0.58954
93cdfa2e308d9df6782a21001dcb7f938c68133f
5,321
py
Python
getdata/data_collection/adaptors/chi_health_atlas.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
2
2018-02-11T02:42:08.000Z
2018-02-26T06:02:07.000Z
getdata/data_collection/adaptors/chi_health_atlas.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
9
2018-11-14T00:59:03.000Z
2022-02-26T06:52:13.000Z
getdata/data_collection/adaptors/chi_health_atlas.py
togetherchicago/chi77
09dab3454596d7f461eed0ae7eb9250308f88581
[ "MIT" ]
6
2018-02-05T20:02:40.000Z
2018-03-09T23:20:40.000Z
from .base import Adaptor as BaseAdaptor from .base import QueryLoader as BaseQueryLoader from ...helpers.data import get_nested from ..exceptions import * from ...helpers.response import * import requests, operator BASE_API_URL = "https://api.chicagohealthatlas.org/api/v1" # these params are used to modify url param...
27.858639
81
0.530727
93ce22d3eeada128d6e0b416d3e26cf6f5e4e4d4
170
py
Python
sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-01-19T22:41:38.000Z
2021-01-19T22:41:38.000Z
sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ VERSION = "1.2.0"
24.285714
38
0.388235
93ce2a79456b4f30c63f225446d38a495eef16ba
22
py
Python
pygenome/utilities/__init__.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
1
2019-11-18T14:41:20.000Z
2019-11-18T14:41:20.000Z
pygenome/utilities/__init__.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
pygenome/utilities/__init__.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
__all__ = ["logging"]
11
21
0.636364
93ce79a322c8b01cbe62a4f8a0c17b26bfd9c909
91,352
py
Python
mne_bids/write.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
mne_bids/write.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
mne_bids/write.py
alexrockhill/mne-bids
3da63f4914f7ccec65498ecfb0fe562f84bd552f
[ "BSD-3-Clause" ]
null
null
null
"""Make BIDS compatible directory structures and infer meta data from MNE.""" # Authors: Mainak Jas <mainak.jas@telecom-paristech.fr> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Teon Brooks <teon.brooks@gmail.com> # Chris Holdgraf <choldgraf@berkeley.edu> # Stefa...
42.548673
102
0.618793
93cea2b3ae38ab50c34179811b11d9c00accf208
16,982
py
Python
Comandos/EpsonComandos.py
edunola13/fiscalberry
a3a3b043cd598e3e3d2d4fcc21bfb36bf2a0752e
[ "Apache-2.0" ]
1
2018-02-27T19:26:23.000Z
2018-02-27T19:26:23.000Z
Comandos/EpsonComandos.py
edunola13/fiscalberry
a3a3b043cd598e3e3d2d4fcc21bfb36bf2a0752e
[ "Apache-2.0" ]
null
null
null
Comandos/EpsonComandos.py
edunola13/fiscalberry
a3a3b043cd598e3e3d2d4fcc21bfb36bf2a0752e
[ "Apache-2.0" ]
null
null
null
# -*- coding: iso-8859-1 -*- import string import types import logging from Comandos.ComandoFiscalInterface import ComandoFiscalInterface from ComandoInterface import formatText, ComandoException from Drivers.FiscalPrinterDriver import PrinterException class FiscalPrinterError(Exception): pass cl...
45.897297
136
0.553468
93ced3dbfc44e187911e201a4e476a57f66eff05
15,561
py
Python
test/integration/test_integration_basics.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
test/integration/test_integration_basics.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
test/integration/test_integration_basics.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging import os import sys import pytest from test.integration.common import IpVersion from test.integration.integration_test_fixtures import (http_test_server_fixture, https_test_server_fixture) from test.integration.utility impo...
45.235465
111
0.757663