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
626b56c575b7baceab0a94484400a17d4848ff2e
2,546
py
Python
.leetcode/581.shortest-unsorted-continuous-subarray.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/581.shortest-unsorted-continuous-subarray.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/581.shortest-unsorted-continuous-subarray.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=581 lang=python3 # # [581] Shortest Unsorted Continuous Subarray # # https://leetcode.com/problems/shortest-unsorted-continuous-subarray/description/ # # algorithms # Medium (33.36%) # Likes: 4384 # Dislikes: 193 # Total Accepted: 193.6K # Total Submissions: 579K # Testcase Example: '[2,6,4...
19.142857
82
0.560094
626b65afd8e0708f9c3a72f1296a0bf6a2e1f7c2
715
py
Python
office365/outlookservices/event_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/outlookservices/event_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/outlookservices/event_collection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.outlookservices.event import Event from office365.runtime.client_object_collection import ClientObjectCollection from office365.runtime.queries.create_entity_query import CreateEntityQuery class EventCollection(ClientObjectCollection): """Event's collection""" def __init__(self, context, resour...
39.722222
77
0.758042
626b7f18a5e2c9b55af4c69895a18609634c3a51
4,167
py
Python
spectrl/examples/fpp_spectrl.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
6
2021-11-11T00:29:18.000Z
2022-03-18T13:56:51.000Z
spectrl/examples/fpp_spectrl.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/examples/fpp_spectrl.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
4
2021-11-26T03:11:02.000Z
2022-01-13T02:32:29.000Z
from spectrl.main.learning import ProductMDP, HyperParams, learn_policy from spectrl.main.spec_compiler import ev, seq, choose from spectrl.util.io import parse_command_line_options, save_log_info from spectrl.util.rl import print_performance, get_rollout, ObservationWrapper from spectrl.envs.fetch import FetchPickAndP...
35.016807
96
0.640989
626b975b936db69b31c3837dcb12b195dae3a06c
420
py
Python
bulk_commands/__init__.py
Routz-Integreater/bulk_commands
4abc6657f5c242063b11dbb95364bce310342208
[ "MIT" ]
null
null
null
bulk_commands/__init__.py
Routz-Integreater/bulk_commands
4abc6657f5c242063b11dbb95364bce310342208
[ "MIT" ]
null
null
null
bulk_commands/__init__.py
Routz-Integreater/bulk_commands
4abc6657f5c242063b11dbb95364bce310342208
[ "MIT" ]
1
2021-09-01T18:49:35.000Z
2021-09-01T18:49:35.000Z
#!/usr/bin/env python3 """ Package to execute commands on multiple targets """ #--------------------------------------------------------------------------------------------------- # Main class: DeviceInfo from bulk_commands.combined_streams import CombinedStreams from bulk_commands.bulk_command import BulkCommand #...
42
100
0.419048
626baa3bc0ff24690f20e8e0bcafe9a39227d8aa
3,378
py
Python
Middleware/gRPC-homework/src/main/java/xenoteo/com/github/client/db_connector.py
xenoteo/Distributed-Systems
86157328921e0b444f3597cb7f6b413ea8acfd51
[ "MIT" ]
null
null
null
Middleware/gRPC-homework/src/main/java/xenoteo/com/github/client/db_connector.py
xenoteo/Distributed-Systems
86157328921e0b444f3597cb7f6b413ea8acfd51
[ "MIT" ]
null
null
null
Middleware/gRPC-homework/src/main/java/xenoteo/com/github/client/db_connector.py
xenoteo/Distributed-Systems
86157328921e0b444f3597cb7f6b413ea8acfd51
[ "MIT" ]
null
null
null
import sqlite3 class DBConnector: """A class responsible for database connection.""" def __init__(self): self.conn = sqlite3.connect('mo.db') def connect(self): """A function connecting to the database""" self.conn = sqlite3.connect('mo.db') def disconnect(self): ""...
30.990826
115
0.611012
626bc68dffe2da7693830322e95eda0122ca529d
1,790
py
Python
scripts/training/MGIZA/scripts/merge_alignment.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/training/MGIZA/scripts/merge_alignment.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/training/MGIZA/scripts/merge_alignment.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Author : Qin Gao # Date : Dec 31, 2007 # Purpose: Combine multiple alignment files into a single one, the files are # prodcuced by MGIZA, which has sentence IDs, and every file is # ordered inside import sys import re if len(sys.argv)<2: sys.stderr.write("Provide me the f...
22.098765
83
0.58324
626bec099e6816ae01f2131d0b33ff4cf67379bc
70
py
Python
abc/099/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/099/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/099/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
a, b = map(int, input().split()) d = b - a print(d * (d + 1) // 2 - b)
23.333333
32
0.442857
626bedce9b8d33c5a466e021a6b68e12cee73721
5,997
py
Python
docs/source/conf.py
iparask/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
1
2019-12-18T16:46:35.000Z
2019-12-18T16:46:35.000Z
docs/source/conf.py
radical-project/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
22
2019-12-12T16:31:36.000Z
2020-12-14T22:45:40.000Z
docs/source/conf.py
iparask/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.596939
89
0.650992
626bf4a99e3e38eaa0fc324a27aab86e7df14530
1,796
py
Python
day08/puzzle08.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
1
2020-12-15T22:27:38.000Z
2020-12-15T22:27:38.000Z
day08/puzzle08.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
null
null
null
day08/puzzle08.py
techrabbit58/AdventOfCode2020
9e0f4a633f50f5dd48186d38fe58ad8d40dff387
[ "Unlicense" ]
null
null
null
""" Advent Of Code 2020. Day 8. """ import time import re import enum input_file = 'input08.txt' class OpCode(enum.IntEnum): NOP = 0 JMP = 1 ACC = 2 decoder = re.compile(r'(nop|acc|jmp) ([+-]\d+)') def load(fn): with open(fn) as fh: puzzle = [(OpCode[op.upper()], int(arg)) ...
20.883721
78
0.582405
626c4c4954bb2dafe2bd7db073891101816dfd31
5,574
py
Python
cornac/models/online_ibpr/recom_online_ibpr.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
cornac/models/online_ibpr/recom_online_ibpr.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
cornac/models/online_ibpr/recom_online_ibpr.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
1
2020-03-19T13:58:33.000Z
2020-03-19T13:58:33.000Z
# Copyright 2018 The Cornac Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.913907
125
0.631862
626c4c86454e667529ce3d3c1d4b3a75ebda5172
611
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/vmware/api.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/vmware/api.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/vmware/api.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
43.642857
78
0.726678
626c4fe15ce15aebed70cebfb39d0b8396ba3a7c
2,481
py
Python
parts-site/configurations/release/clang_posix-any.py
eozturk1/epid-sdk
1efb25ed40f8d6082112efa02e8f25c7128cd7ba
[ "Apache-2.0" ]
30
2017-07-26T20:03:19.000Z
2021-10-14T23:38:54.000Z
parts-site/configurations/release/clang_posix-any.py
eozturk1/epid-sdk
1efb25ed40f8d6082112efa02e8f25c7128cd7ba
[ "Apache-2.0" ]
9
2018-09-25T18:32:42.000Z
2022-02-18T12:23:40.000Z
parts-site/configurations/release/clang_posix-any.py
eozturk1/epid-sdk
1efb25ed40f8d6082112efa02e8f25c7128cd7ba
[ "Apache-2.0" ]
14
2017-08-31T19:53:23.000Z
2021-02-27T01:08:14.000Z
############################################################################ # Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/l...
42.775862
76
0.428456
626c67e30284910e6a5678d29961046f043b89c9
3,695
py
Python
d_net.py
wileyw/VideoGAN
d5c40ce4180b63d9dc6017a8caf19cfd63166a96
[ "MIT" ]
5
2019-01-27T21:00:19.000Z
2021-09-08T11:00:37.000Z
d_net.py
mswang12/VideoGAN
d5c40ce4180b63d9dc6017a8caf19cfd63166a96
[ "MIT" ]
2
2018-08-22T04:06:11.000Z
2019-08-01T18:56:20.000Z
d_net.py
mswang12/VideoGAN
d5c40ce4180b63d9dc6017a8caf19cfd63166a96
[ "MIT" ]
3
2019-02-17T00:41:19.000Z
2019-09-03T17:30:12.000Z
""" """ import torch import torch.nn as nn import torch.nn.functional as F # Default settings of discriminator networks. IMG_H = 32 IMG_W = 32 # feature maps for each convolution of each scale network in the discriminator model SCALE_CONV_FMS_D = [ [3, 64], [3, 64, 128, 128], [3, 128, 256, 256], [3, 1...
29.798387
88
0.592963
626c877745efa544a83f7796e51e3ca1dec22e33
4,224
py
Python
em/src/em/reader.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
em/src/em/reader.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
em/src/em/reader.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
''' Based on https://github.com/tecdatalab/legacy/blob/master/core/em/mrc.h MRC files are a standard format for electron density maps. The first 1024 bytes represent the header followed by the actual densities. 56 4-byte words compose the standard fields followed by custom text labels that can be ad...
37.714286
202
0.634706
626ca340b0ee1f6ad58e203f8df1e9de3505357c
21,120
py
Python
tests/higher/test_optim.py
SimonNick/metakbc
b502104e00afcb274c673ecd3aaa0415933e745e
[ "MIT" ]
1
2021-05-02T22:07:55.000Z
2021-05-02T22:07:55.000Z
tests/higher/test_optim.py
SimonNick/metakbc
b502104e00afcb274c673ecd3aaa0415933e745e
[ "MIT" ]
null
null
null
tests/higher/test_optim.py
SimonNick/metakbc
b502104e00afcb274c673ecd3aaa0415933e745e
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
31.522388
80
0.528835
626ca55e5cc6a405a43277cb370f2b7ef4bc2e2d
26,070
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instance_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instance_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instance_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 ...
46.3879
256
0.697008
626ca6698ec4544040320ab526dc2f369b3f8894
1,248
py
Python
setup.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
10
2017-03-27T21:53:03.000Z
2022-02-15T15:37:36.000Z
setup.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
1
2017-04-03T21:46:04.000Z
2017-04-03T21:46:04.000Z
setup.py
appsembler/django-souvenirs
57f70df7d662e5ad0a376723b579cc911bc96585
[ "MIT" ]
2
2017-04-03T21:43:01.000Z
2019-04-02T13:23:25.000Z
from __future__ import absolute_import, unicode_literals from codecs import open import os from setuptools import setup, find_packages import souvenirs as app def read(fname): top = os.path.dirname(__file__) with open(os.path.join(top, fname), encoding='utf-8') as f: return f.read() setup( name...
31.2
72
0.661859
626cb0bd4a4bba285b296fe3b2b638e37930da85
976
py
Python
hs_labels/migrations/0004_auto_add_constraints.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_labels/migrations/0004_auto_add_constraints.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_labels/migrations/0004_auto_add_constraints.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('hs_labels', '0003_manual_delete_duplicates'), ] operations = [ migrations.AlterField( model_name='userstoredlabels', ...
28.705882
127
0.593238
626cc4952054c4701fb7a76c53251c6997e627cc
1,467
py
Python
bayesian/examples/factor_graphs/cancer.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
734
2015-01-05T21:25:01.000Z
2022-03-16T12:12:20.000Z
bayesian/examples/factor_graphs/cancer.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
11
2015-01-20T16:22:48.000Z
2021-05-12T13:01:11.000Z
bayesian/examples/factor_graphs/cancer.py
timgates42/bayesian-belief-networks
23c3e3ce1c7f99d83efb79f9b7798af2a1537e1c
[ "Apache-2.0" ]
222
2015-01-06T09:28:53.000Z
2022-03-04T10:38:32.000Z
'''This is the example from Chapter 2 BAI''' from bayesian.factor_graph import * def fP(P): '''Pollution''' if P == 'high': return 0.1 elif P == 'low': return 0.9 def fS(S): '''Smoker''' if S is True: return 0.3 elif S is False: return 0.7 def fC(P, S, C): ...
19.302632
49
0.457396
626d06aa4b0c24d823e326a66752a5e1e325993a
606
py
Python
lesson8_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson8_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson8_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
def functionCalculator(first_num,operator,second_num): if operator =='+': result =first_num+ second_num elif operator =='-': result =first_num- second_num elif operator =='/': result =first_num/second_num elif operator =='*': result =first_num*second_num ...
37.875
103
0.660066
626d175a3148df7b58bb3e4798431b6bbadc82bb
1,037
py
Python
Pysock/cli.py
DustinTheGreat/Pysock
25b8f9f80cf082b95cbcfd1696f6c804c39c9152
[ "MIT" ]
1
2021-01-16T04:41:22.000Z
2021-01-16T04:41:22.000Z
Pysock/cli.py
DustinTheGreat/Pysock
25b8f9f80cf082b95cbcfd1696f6c804c39c9152
[ "MIT" ]
1
2021-01-16T04:59:32.000Z
2021-01-16T04:59:32.000Z
Pysock/cli.py
DustinTheGreat/Pysock
25b8f9f80cf082b95cbcfd1696f6c804c39c9152
[ "MIT" ]
1
2021-01-16T04:41:29.000Z
2021-01-16T04:41:29.000Z
#!/usr/bin/env python3 import argparse def main(): """ Runner that handles parsing logic. """ parser = argparse.ArgumentParser(description='Scanner for websocket vulnerabilities') parser.add_argument('-u','--engine', help='Please enter the full uri for the websocket server)', required=True) # add subparsers for...
34.566667
129
0.733848
626d1dc30ebe8757a3c4f80e986364ae63b994f3
6,222
py
Python
utils/new_version_mm/tools/word_to_yaml.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
null
null
null
utils/new_version_mm/tools/word_to_yaml.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
null
null
null
utils/new_version_mm/tools/word_to_yaml.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
1
2018-09-28T01:52:15.000Z
2018-09-28T01:52:15.000Z
from collections import namedtuple import docx import os import pystache import re import sys sys.path.append("..") from common.utils import normal_dir from common.utils import write_file PropertyDef = namedtuple( "PropertyDef", ["name", "mandatory", "datatype", "desc"]) class Struct(object): def __init__(...
25.395918
82
0.451302
626d2278d099b76c804512b378794c06894ef4e9
8,352
py
Python
panasonic_camera/live_view.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
7
2019-11-17T13:18:07.000Z
2022-03-13T04:14:15.000Z
panasonic_camera/live_view.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
14
2021-02-03T16:21:21.000Z
2022-03-11T23:57:48.000Z
panasonic_camera/live_view.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
2
2021-04-21T21:22:49.000Z
2021-05-28T17:39:13.000Z
from __future__ import annotations import logging import socket import struct from abc import ABC, abstractmethod from dataclasses import dataclass from logging import Logger from typing import Union, List, Tuple, Iterator, Any, Optional logger: Logger = logging.getLogger(__name__) @dataclass() class BytesReader: ...
25.541284
101
0.588242
626d3149692f16580ba882f04a2dcd55e1910655
2,000
py
Python
setup.py
zjzh/alibi
e696906681e836fe6b801ab606b0987599d028d9
[ "Apache-2.0" ]
null
null
null
setup.py
zjzh/alibi
e696906681e836fe6b801ab606b0987599d028d9
[ "Apache-2.0" ]
null
null
null
setup.py
zjzh/alibi
e696906681e836fe6b801ab606b0987599d028d9
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup def readme(): with open('README.md') as f: return f.read() # read version file exec(open('alibi/version.py').read()) extras_require = { 'ray': ['ray>=0.8.7, <2.0.0'], # shap is separated due to build issues, see https://github.com/slundberg/shap/pull/...
37.037037
111
0.581
626d3fa5d4f9b63911492167111789407d75097b
10,919
py
Python
CV_backdoor/remos/my_profile.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
4
2022-03-14T06:11:19.000Z
2022-03-16T09:21:59.000Z
CV_backdoor/remos/my_profile.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
null
null
null
CV_backdoor/remos/my_profile.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
2
2022-03-14T22:58:24.000Z
2022-03-16T05:29:37.000Z
import argparse import torch import time import sys import numpy as np import torchvision import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchcontrib import os import os.path as osp import random import copy import logging import pickle from PIL import Image from pdb import se...
36.64094
181
0.668559
626d471814032dba27f2bce3e303e8905f1db19a
4,063
py
Python
contrib/checkwiki.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
1
2017-08-03T07:04:28.000Z
2017-08-03T07:04:28.000Z
contrib/checkwiki.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
null
null
null
contrib/checkwiki.py
arielnetworks/trac
1a96a3c39961a8952358cb8c64ccf9e94079c26b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2004-2013 Edgewall Software # Copyright (C) 2004 Daniel Lundin <daniel@edgewall.com> # 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 avai...
25.236025
79
0.602264
626d72d0a8b1d30c64300b835c48010b0f7a350c
34,394
py
Python
python/examples/scenarios/collector_scenario.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
1
2021-06-03T04:02:49.000Z
2021-06-03T04:02:49.000Z
python/examples/scenarios/collector_scenario.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
null
null
null
python/examples/scenarios/collector_scenario.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
null
null
null
import math import time from pathlib import Path import numpy as np import cv2 import json from google.protobuf.json_format import MessageToDict from protobuf_APIs import falconeye_pb2, radar_pb2 from scenarios.meta.collector_meta import get_builder from scenarios.utils.com_manager import ComManager, MqttConst from sce...
38.13082
118
0.53457
626dd2d9b9d03bd7e30a29140fc5d8f8646268d5
23,269
py
Python
src/highdicom/content.py
fedorov/highdicom
5752e73f5ac416699c06e39a89308705f9947854
[ "MIT" ]
null
null
null
src/highdicom/content.py
fedorov/highdicom
5752e73f5ac416699c06e39a89308705f9947854
[ "MIT" ]
null
null
null
src/highdicom/content.py
fedorov/highdicom
5752e73f5ac416699c06e39a89308705f9947854
[ "MIT" ]
null
null
null
"""Generic Data Elements that can be included in a variety of IODs.""" import datetime from typing import Any, Dict, List, Optional, Union, Sequence, Tuple import numpy as np from pydicom.dataset import Dataset from pydicom.sequence import Sequence as DataElementSequence from pydicom.sr.coding import Code from pydicom...
37.774351
145
0.61395
626e088efa33f3ec36c15395f303989b5b3a466c
274
py
Python
utils/emote.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
3
2021-08-07T13:01:32.000Z
2021-08-25T16:19:15.000Z
utils/emote.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
null
null
null
utils/emote.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
null
null
null
confirm = "<:check:856366572096061450>" deny = "<:xmark:856366622088101908>" bot = "<:bot:869273799307198546>" discord = "<:discord:869269863783366738>" python = "<:python:869269863783366737>" channel = "<:channel:869404896150028308>" voice = "<:voice:869404895906787379>"
30.444444
41
0.740876
626e258c903c61011bdb3b44e8b3f8baf6003b19
431
py
Python
src/apps/ideas/migrations/0006_alter_idea_slug.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/ideas/migrations/0006_alter_idea_slug.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/ideas/migrations/0006_alter_idea_slug.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-26 18:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ideas', '0005_auto_20211126_1228'), ] operations = [ migrations.AlterField( model_name='idea', name='slug', ...
22.684211
101
0.614849
626e2783840dd9bedf1d6b098365ce1b3071edee
1,418
py
Python
chaospy/distributions/collection/cauchy.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/collection/cauchy.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/collection/cauchy.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
"""Cauchy distribution.""" import numpy from ..baseclass import Dist from ..operators.addition import Add class cauchy(Dist): """Standard Cauchy distribution.""" def __init__(self): Dist.__init__(self) def _pdf(self, x): return 1.0/numpy.pi/(1.0+x*x) def _cdf(self, x): retu...
26.259259
60
0.554302
626e30849df49742dafa51cf33df2d39d76b5a62
2,100
py
Python
homeassistant/components/spc/binary_sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/spc/binary_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/spc/binary_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Support for Vanderbilt (formerly Siemens) SPC alarm systems.""" import logging from pyspcwebgw.const import ZoneInput, ZoneType from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from ....
26.582278
86
0.64619
626e3912464801e8a4a942f7b980907000f72e42
24,076
py
Python
BCC__BCC36B__P[4]__HenriqueMarcuzzo_2046334/implementacao/tppGenerator.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
BCC__BCC36B__P[4]__HenriqueMarcuzzo_2046334/implementacao/tppGenerator.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
BCC__BCC36B__P[4]__HenriqueMarcuzzo_2046334/implementacao/tppGenerator.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np import subprocess from llvmlite import ir from llvmlite import binding as llvm import itertools sys.path.append('../../BCC__BCC36B__P[3]__HenriqueMarcuzzo_2046334/impl/') import tppSemantic escopo = 'global' list_var = {'global': []} list_func = dict() func_exit = False def getTypeLV...
34.591954
135
0.594783
626e4efcabc07c01d6791b1e7cf7cce970e9743f
12,537
py
Python
device_model/models.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
device_model/models.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
6
2021-03-19T16:01:33.000Z
2022-03-12T00:54:23.000Z
device_model/models.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
from django.db import models from element.models import CodeRev from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericRelation from django.shortcuts import reverse class DeviceType(models.Model...
33.61126
121
0.730637
626e564ca7af8466f8eae4683d5164fa88a98ef3
2,924
py
Python
utils/data_processing/get_ebird_profile.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
1
2020-02-06T03:54:40.000Z
2020-02-06T03:54:40.000Z
utils/data_processing/get_ebird_profile.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
1
2022-03-25T05:16:31.000Z
2022-03-25T05:16:31.000Z
utils/data_processing/get_ebird_profile.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
null
null
null
""" Get Profiles ========================================================== Users webbot to get log into ebird and get user profile urls when available. Profiles are found using sample checklist from user and urls are written to an output .txt file. Author: Bento Gonçalves License: MIT Copyright: 2020-2021 """ from a...
34.4
118
0.654925
626e655f6e9d9633f1a70629daae18a77a5a7e71
27,760
py
Python
tempest/services/compute/xml/servers_client.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/xml/servers_client.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/xml/servers_client.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 IBM Corp. # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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.ap...
41.432836
79
0.60335
626e8c23955dfa81b2411580b948d701bac18778
3,262
py
Python
bco_api/api/scripts/method_specific/POST_api_prefixes_modify.py
biocompute-objects/bco_api
981341ca2074d337e66e78096397e8fbbcbebc6e
[ "MIT" ]
1
2022-03-09T15:25:39.000Z
2022-03-09T15:25:39.000Z
bco_api/api/scripts/method_specific/POST_api_prefixes_modify.py
biocompute-objects/bco_api
981341ca2074d337e66e78096397e8fbbcbebc6e
[ "MIT" ]
46
2021-06-17T19:43:04.000Z
2022-03-29T13:43:10.000Z
bco_api/api/scripts/method_specific/POST_api_prefixes_modify.py
biocompute-objects/bco_api
981341ca2074d337e66e78096397e8fbbcbebc6e
[ "MIT" ]
null
null
null
# For getting objects out of the database. from api.scripts.utilities import DbUtils # Checking that a user is in a group. from api.scripts.utilities import UserUtils # Model fields from api.models import prefixes # Groups and Users from django.contrib.auth.models import Group, User # Responses from rest_framework ...
28.12069
84
0.515021
626e918ca054662eb051b3f9b9f2fe07edf17d59
51,483
py
Python
appengine/findit/services/disabled_tests/test/detect_disabled_tests_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/disabled_tests/test/detect_disabled_tests_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/disabled_tests/test/detect_disabled_tests_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The 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. from datetime import datetime import mock from parameterized import parameterized from google.appengine.ext import ndb from waterfall.test.wf_testcase imp...
39.15057
80
0.518424
626e9634f4114590793f85304edc250d6c09b50d
207
py
Python
app/settings.py
cseelye/python-fastapi-container
541700581562a5a1cbbcecd3a97a77f99b11de9c
[ "MIT" ]
null
null
null
app/settings.py
cseelye/python-fastapi-container
541700581562a5a1cbbcecd3a97a77f99b11de9c
[ "MIT" ]
null
null
null
app/settings.py
cseelye/python-fastapi-container
541700581562a5a1cbbcecd3a97a77f99b11de9c
[ "MIT" ]
null
null
null
from pydantic import BaseSettings class Settings(BaseSettings): log_level: str = "DEBUG" class Config: env_file = ".env" env_file_encoding = "utf-8" env_prefix = "CONFIG_"
18.818182
35
0.637681
626e9dfb9b78b8a930d8fab0509d539bf878bc95
17,197
py
Python
tests/test_cli/test_add/test_protocol.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_add/test_protocol.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_add/test_protocol.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
34.462926
118
0.609234
626ebb7b663fa8538be28bc2eb9fbd4a63b42101
2,572
py
Python
MachineLearning/TP2/plotDecisionBoundary.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP2/plotDecisionBoundary.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP2/plotDecisionBoundary.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from plotData import plotData def plotDecisionBoundary(theta, X, y, Lambda): """ Plots the data points X and y into a new figure with the decision boundary defined by theta PLOTDECISIONBOUNDARY(theta, X,y) plots the data points with + for ...
34.293333
84
0.59409
626ec0102b9ef7f2e6f515e317636eafdcf4c741
745
py
Python
setup.py
pgleeson/neurotune
e3d42a0d72795262637084a257327a1c870a2bc0
[ "BSD-3-Clause" ]
1
2015-03-14T12:20:20.000Z
2015-03-14T12:20:20.000Z
setup.py
pgleeson/neurotune
e3d42a0d72795262637084a257327a1c870a2bc0
[ "BSD-3-Clause" ]
5
2015-05-26T13:56:06.000Z
2015-07-07T17:12:44.000Z
setup.py
pgleeson/neurotune
e3d42a0d72795262637084a257327a1c870a2bc0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from distutils.core import setup setup( name = "neurotune", version = '0.2.0dev', packages = ['neurotune'], author = "Michael Vella", author_email = "mv333@cam.ac.uk", description = "A Python library for optimising neuronal models", license = "BSD", url='https:/...
27.592593
68
0.6
626ec417b2f102357292af208a3cf44a8a3bd317
2,778
py
Python
commands/msgcontent_commands/msgcontent_highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/msgcontent_commands/msgcontent_highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/msgcontent_commands/msgcontent_highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
import sqlite3 from typing import Union import discord from commands.interractions.discord_binder import DiscordBinder from discord import User from discord.ext import commands from discord.ext.commands import Command from commands.sendable import Sendable from commands.utils.utils import tablify from highscores imp...
44.095238
154
0.658387
626edd059cf736fa66a14a23b6fb70fa30a585d3
40,823
py
Python
src/pykeen/triples/triples_factory.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/triples/triples_factory.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/triples/triples_factory.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implementation of basic instance factory which creates just instances based on standard KG triples.""" import dataclasses import itertools import logging import pathlib import re from typing import Any, Callable, Collection, Dict, List, Mapping, Optional, Sequence, Set, TextIO, Type, Union,...
39.366442
120
0.63719
626f010e218fb8e9ba5fa8c6e277932c16d26ca7
7,874
py
Python
eucaconsole/forms/alarms.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/forms/alarms.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/forms/alarms.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software 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 copyright notice, # this...
39.37
113
0.69685
626f1ac7c5d2449bd15f8465bf628cf2567aee6b
1,199
py
Python
src/stk/molecular/key_makers/inchi_key.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
src/stk/molecular/key_makers/inchi_key.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
src/stk/molecular/key_makers/inchi_key.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
""" InChIKey ======== """ from .molecule import MoleculeKeyMaker from .utilities import get_inchi_key class InchiKey(MoleculeKeyMaker): """ Used to get the InChIKey of molecules. Examples -------- *Adding InChIKey to a Molecule's JSON* You want to use the InChIKey as part of a JSON represe...
20.322034
70
0.577982
626f3b9e38068261f77f6f88c755073c67344e9c
1,673
py
Python
venv/Lib/site-packages/tests/test_213_FieldDisplaySize_04.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_213_FieldDisplaySize_04.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_213_FieldDisplaySize_04.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_213_FieldDisplaySize_04(self): obj = IbmDbTestFunctions() obj.assert_expect(self...
18.184783
75
0.669456
626f3d7518feefc49106ae9298d11d6f796f01de
2,436
py
Python
test/blackbox/rmq_2_sysmon/blackbox_test4.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/blackbox/rmq_2_sysmon/blackbox_test4.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/blackbox/rmq_2_sysmon/blackbox_test4.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: blackbox_test.py Description: Blackbox testing of rmq_2_sysmon.py program. Usage: test/blackbox/rmq_2_sysmon/blackbox_test.py Arguments: """ # Libraries and Global Variables # Standard import os import sys import time # Third-party import ...
23.423077
74
0.652709
626f3dc86556a1112a94b8c3fe6e87982817130e
146,715
py
Python
pandas/core/indexes/base.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/base.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/base.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2019-03-08T19:59:05.000Z
2020-09-27T03:18:37.000Z
import datetime import warnings import operator import numpy as np from pandas._libs import (lib, index as libindex, tslib as libts, algos as libalgos, join as libjoin, Timestamp) from pandas._libs.lib import is_datetime_array from pandas.compat import range, u, set...
34.159488
83
0.555103
626f4b1f3c1ab0981daffc8e9ca54b009b8acba4
181
py
Python
src/network/__init__.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
11
2021-05-25T07:42:27.000Z
2022-01-03T07:46:38.000Z
src/network/__init__.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
18
2021-05-25T17:42:46.000Z
2021-09-13T15:14:38.000Z
src/network/__init__.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
5
2021-06-23T17:38:51.000Z
2022-03-03T12:40:53.000Z
from .ipfs import Node, setup_node from .subscribers import setup_subscribers def setup_network(): setup_node() setup_subscribers() __all__ = ["Node", "setup_network"]
15.083333
42
0.734807
626f63625cc5838f0fcf73fed1815cd1ad4e10e0
17,040
py
Python
BertSum/src/models/predictor.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
23
2020-11-20T09:10:10.000Z
2022-01-30T16:44:39.000Z
BertSum/src/models/predictor.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
2
2020-12-02T13:41:57.000Z
2021-11-07T17:19:57.000Z
BertSum/src/models/predictor.py
nakhunchumpolsathien/ThaiSum
c72b26799c60ff10f31d28af6df41ea97c732285
[ "Apache-2.0" ]
7
2020-12-03T08:16:38.000Z
2021-12-05T13:05:06.000Z
#!/usr/bin/env python """ Translator Class and builder """ from __future__ import print_function import codecs import os import math import torch from tensorboardX import SummaryWriter from others.utils import rouge_results_to_str, test_rouge, tile from translate.beam import GNMTGlobalScorer def build_predictor(ar...
39.535963
214
0.54507
626fa889c60152dced62f8964fdc3566f546efce
6,204
py
Python
linear-regression/Linear Regression Exercise.py
ofir-frd/Machine-Learning-Bootcamp
71233cf3764b528c39438d5d45b433f094456717
[ "Apache-2.0" ]
null
null
null
linear-regression/Linear Regression Exercise.py
ofir-frd/Machine-Learning-Bootcamp
71233cf3764b528c39438d5d45b433f094456717
[ "Apache-2.0" ]
null
null
null
linear-regression/Linear Regression Exercise.py
ofir-frd/Machine-Learning-Bootcamp
71233cf3764b528c39438d5d45b433f094456717
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import matplotlib.pyplot as plt ''' בנו מערך שמכיל עשרה מספרים שלמים רנדומליים. .a ''' random_int_array = np.random.randint(1,50,10) ''' מערך הזה יהיה .x שברים( ושמרו אותו במשתנה ( floats בנו מערך שמכיל עשרה .b הבסיס לבניית שלושת הדאטהסטים בהמשך. ''' random_frac...
25.85
117
0.63588
626fc0f961afd37821021b7756e96a4160e2f226
4,468
py
Python
tests/spider_error.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
2,266
2015-01-01T08:47:33.000Z
2022-03-21T05:02:55.000Z
tests/spider_error.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
221
2015-01-13T01:55:57.000Z
2022-02-25T23:23:35.000Z
tests/spider_error.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
315
2015-01-23T06:38:55.000Z
2022-03-27T08:33:33.000Z
import mock from six import StringIO from grab import GrabTimeoutError, Grab from grab.spider import Spider, Task from tests.util import ( BaseGrabTestCase, build_spider, run_test_if, GLOBAL, ) # That URLs breaks Grab's URL normalization process # with error "label empty or too long" INVALID_URL = ( 'http://...
31.027778
72
0.577216
626fc7d5dc9bb78627f8b46a8e83ec3252417790
578
py
Python
tools/migrations/0014_auto_20180112_1429.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0014_auto_20180112_1429.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0014_auto_20180112_1429.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-12 14:29 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
23.12
66
0.647059
626fdb9e8b46eca7b84821b190362b93e0ff0a17
3,226
py
Python
ticker/models.py
jezdez/django-ticker
e286a338c25ff89e0b0e16dab516eb957cdc1fc6
[ "BSD-3-Clause" ]
1
2019-08-02T00:27:32.000Z
2019-08-02T00:27:32.000Z
ticker/models.py
jezdez/django-ticker
e286a338c25ff89e0b0e16dab516eb957cdc1fc6
[ "BSD-3-Clause" ]
null
null
null
ticker/models.py
jezdez/django-ticker
e286a338c25ff89e0b0e16dab516eb957cdc1fc6
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.db.models import permalink from django.contrib.auth.models import User from django.utils.translation import ugettext as _ from tagging.models import Tag, TaggedItem from tagging.fields import TagField from django_extensions.db.fields import AutoSlugField from django_extensions....
32.918367
92
0.685679
626fdefcb88fcd7cf9ef7c01db772b27ec5864d1
3,335
py
Python
train/compute_metrics_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
7
2018-10-14T14:55:10.000Z
2021-01-04T13:42:09.000Z
train/compute_metrics_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
train/compute_metrics_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function import os import csv import numpy as np import tensorflow as tf import compute_metrics import datetime class BasicMetricTests(tf.test.TestCase): y_true = [1, 0, 0, 1, 0, 1, 0, 0, 1, 0] y_pred = [1, 0, 0, 0, 0, 1, 0, 1, 0, 0] def test_precision_score(self): ...
30.87963
79
0.491754
62700424ca8319e2dba8c0b4804ef8f775dcac48
808
py
Python
tests/terraform/graph/db_connector/test_networkx_connector.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
tests/terraform/graph/db_connector/test_networkx_connector.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
3
2020-02-07T19:51:40.000Z
2022-03-21T05:06:29.000Z
tests/terraform/graph/db_connector/test_networkx_connector.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import os from unittest import TestCase from checkov.common.graph.db_connectors.networkx.networkx_db_connector import NetworkxConnector from checkov.terraform.graph_builder.local_graph import TerraformLocalGraph from checkov.terraform.parser import Parser TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__)) c...
40.4
99
0.780941
62700c76e7091ed2a16df82c1b9946249a1d855d
6,612
py
Python
src/pykeen/datasets/__init__.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/__init__.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/datasets/__init__.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Sample datasets for use with PyKEEN, borrowed from https://github.com/ZhenfengLei/KGDatasets. New datasets (inheriting from :class:`pykeen.datasets.base.Dataset`) can be registered with PyKEEN using the :mod:`pykeen.datasets` group in Python entrypoints in your own `setup.py` or `setup.cfg`...
35.934783
116
0.698125
62702884dc1bd054931fad05d4f3699ca46d2a9e
217
py
Python
start_shell.py
jonathanvanschenck/StatsimusPrime
03a696372584046dca9b350a9b45cd38ef4eb766
[ "MIT" ]
null
null
null
start_shell.py
jonathanvanschenck/StatsimusPrime
03a696372584046dca9b350a9b45cd38ef4eb766
[ "MIT" ]
1
2020-09-18T03:32:05.000Z
2020-09-18T03:32:05.000Z
start_shell.py
jonathanvanschenck/StatsimusPrime
03a696372584046dca9b350a9b45cd38ef4eb766
[ "MIT" ]
null
null
null
# import os # cwd = os.getcwd() # os.chdir(os.path.join(cwd,"statsimusprime")) # import manager# as manager # os.chdir(cwd) # from .. import statsimusprime as sp import statsimusprime.manager as m m = m.Manager()
18.083333
46
0.700461
62704262372a2ad5829976bae9645b93c07447e4
1,410
py
Python
characterCrowdSrc/dataTypes.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
1
2016-08-04T11:49:12.000Z
2016-08-04T11:49:12.000Z
characterCrowdSrc/dataTypes.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
null
null
null
characterCrowdSrc/dataTypes.py
campbellwmorgan/charactercrowd
968f53ea23c347d57e7e45d46206ab4dc8fb39ca
[ "Apache-2.0" ]
null
null
null
class DataTypes: def isAt(self, var): types = { "bool":"at", "long":"at", "short":"at", "byte":"at", "char":"at", "enum":"at", "float":"at", "double":"at", "doubleAngle":"at", "doubleLine...
26.603774
34
0.339007
627046c2c5b45463b9e42db486a801b8d580ac82
143
py
Python
wcd_pth_migration/test.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
4
2015-08-26T05:13:58.000Z
2022-01-24T07:29:51.000Z
wcd_pth_migration/test.py
point-source/WhatManager2
d087f3603a5a96cf191a30d56619c0f5ce0dabc7
[ "MIT" ]
21
2015-08-14T03:58:43.000Z
2019-11-14T18:25:37.000Z
wcd_pth_migration/test.py
point-source/WhatManager2
d087f3603a5a96cf191a30d56619c0f5ce0dabc7
[ "MIT" ]
2
2015-10-28T09:02:16.000Z
2019-09-23T00:21:54.000Z
f = open('/Users/ivailo/Downloads/test_log.log', 'r') d = f.read() from .logfile import * l = LogFile(d) print(l.toc) print() print(l.tracks)
15.888889
53
0.664336
6270765d4fa65da68ea83f5052a09f0848521682
347
py
Python
django_extended/emailing/urls.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
1
2015-12-14T17:16:04.000Z
2015-12-14T17:16:04.000Z
django_extended/emailing/urls.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
django_extended/emailing/urls.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.conf.urls import patterns, url from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from . import views urlpatterns = patterns('', url(r"^user/activation/(?P<token>\w{10,64})/$", views.Activate.as_view(), name="django_extended-...
38.555556
125
0.772334
6270c3387fc3ab0275449191d6a360246868d466
6,688
py
Python
asposewordscloud/models/responses/__init__.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/responses/__init__.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/responses/__init__.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
from asposewordscloud.models.responses.accept_all_revisions_online_response import AcceptAllRevisionsOnlineResponse from asposewordscloud.models.responses.append_document_online_response import AppendDocumentOnlineResponse from asposewordscloud.models.responses.apply_style_to_document_element_online_response import App...
109.639344
142
0.937201
6270cb2f791ce4c93bb4f64a694001e99185e038
43,612
py
Python
nums/core/array/application.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
111
2020-06-16T02:52:11.000Z
2022-03-29T10:24:19.000Z
nums/core/array/application.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
160
2020-10-07T21:49:36.000Z
2022-03-11T03:06:23.000Z
nums/core/array/application.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
25
2020-11-11T17:10:26.000Z
2022-03-07T23:17:16.000Z
# coding=utf-8 # Copyright (C) 2020 NumS Development Team. # # 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...
38.869875
99
0.562804
6270e998da567bf9e96360890dee5cd38150ecfe
4,614
py
Python
mc2pbrt/realcam.py
PbrtCraft/mc2pbrt
145c844a7ec0fb3ee3c83dba67c2f8cdcf888ed4
[ "MIT" ]
3
2019-10-04T17:56:50.000Z
2019-11-11T13:39:24.000Z
mc2pbrt/realcam.py
PbrtCraft/mc2pbrt
145c844a7ec0fb3ee3c83dba67c2f8cdcf888ed4
[ "MIT" ]
8
2019-10-12T03:53:23.000Z
2022-03-12T00:01:21.000Z
mc2pbrt/realcam.py
PbrtCraft/mc2pbrt
145c844a7ec0fb3ee3c83dba67c2f8cdcf888ed4
[ "MIT" ]
1
2019-02-12T23:41:00.000Z
2019-02-12T23:41:00.000Z
import os import errno import find_minecraft import lookat import pyanvil.player from resource import ResourceManager from pyanvil.world import World from block import BlockCreator, BlockSolver from liquid import WaterSolver, LavaSolver from pbrtwriter import PbrtWriter from util import tqdmpos class RealCam: ...
32.492958
79
0.592978
6271098cb1b46d66e91c0668ad0fd7b976cde98d
7,049
py
Python
tools/pytorch2onnx.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
77
2021-07-30T03:05:36.000Z
2022-03-31T11:02:33.000Z
tools/pytorch2onnx.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
7
2021-08-04T07:03:41.000Z
2021-12-21T16:08:52.000Z
tools/pytorch2onnx.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
24
2021-08-03T07:16:54.000Z
2022-03-27T12:41:17.000Z
import argparse import os.path as osp import numpy as np import onnx import onnxruntime as rt import torch from mmdet.core import (build_model_from_cfg, generate_inputs_and_wrap_model, preprocess_example_input) def pytorch2onnx(config_path, checkpoint_path, ...
34.553922
78
0.602071
62711ed76dcdee0f451e9564896bfd98a0dadf40
8,498
py
Python
net_benefit_ascvd/prediction_utils/pytorch_utils/metric_logging.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/metric_logging.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/metric_logging.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
import pandas as pd import torch import torch.nn.functional as F import logging from net_benefit_ascvd.prediction_utils.pytorch_utils.metrics import ( StandardEvaluator, relative_calibration_error, ) class MetricLogger: """ Handles metric logging during training """ def __init__( self...
32.684615
87
0.587903
627121edceb1f9b9c88968c674ead0652dff1131
2,966
py
Python
setup.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
setup.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
setup.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup import os # You need install_requires if you don't have a ROS environment install_requires = [ # ] if os.environ.get('AMENT_PREFIX_PATH') else [ # build 'setuptools', # runtime 'pydot' ] tests_require = ['nose', 'pydot', 'pytest', 'fl...
40.081081
158
0.664869
627122df30ad370c94890030a072c7f2194c2f3d
2,926
py
Python
tests/test_manager.py
dcosson/flask-dynamo
5b0099831b6edc5eb669180831e629ad7ecb9a0e
[ "Unlicense" ]
null
null
null
tests/test_manager.py
dcosson/flask-dynamo
5b0099831b6edc5eb669180831e629ad7ecb9a0e
[ "Unlicense" ]
null
null
null
tests/test_manager.py
dcosson/flask-dynamo
5b0099831b6edc5eb669180831e629ad7ecb9a0e
[ "Unlicense" ]
null
null
null
"""Tests for our manager.""" from os import environ from time import sleep from unittest import TestCase from uuid import uuid4 from boto.dynamodb2.fields import HashKey from boto.dynamodb2.layer1 import DynamoDBConnection from boto.dynamodb2.table import Table from flask import Flask from flask.ext.dynamo import Dy...
33.632184
112
0.644908
62712bc906ff7e662a59d6091fd5e76056721cb4
485
py
Python
arcane_stealer/arcane_c2_decoder.py
pun1sh3r/malware_decoders
ea1aba0ad15cdb0d09ecc6b8e1403c9b659e0765
[ "MIT" ]
1
2019-10-06T07:17:05.000Z
2019-10-06T07:17:05.000Z
arcane_stealer/arcane_c2_decoder.py
pun1sh3r/malware_decoders
ea1aba0ad15cdb0d09ecc6b8e1403c9b659e0765
[ "MIT" ]
null
null
null
arcane_stealer/arcane_c2_decoder.py
pun1sh3r/malware_decoders
ea1aba0ad15cdb0d09ecc6b8e1403c9b659e0765
[ "MIT" ]
null
null
null
#arcane stealer config dumper import binascii import bitstring import glob import sys #: sample" b8a69cbe14f73f352ee8363c083cef344aebdc889bc5dc6d71594e6ea6315eca src_file = sys.argv[1] with open(src_file,'rb') as fh: bitstr = bitstring.ConstBitStream(filename=src_file) c2_marker = '0x0000032e0000' c2_sta...
28.529412
75
0.736082
62712f9309fa384711fdae92a66ddd00df2bc0e1
455
py
Python
alipay/aop/api/response/AlipayMerchantStoreMiniappBindResponse.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/response/AlipayMerchantStoreMiniappBindResponse.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/response/AlipayMerchantStoreMiniappBindResponse.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.response.AlipayResponse import AlipayResponse class AlipayMerchantStoreMiniappBindResponse(AlipayResponse): def __init__(self): super(AlipayMerchantStoreMiniappBindResponse, self).__init__() def parse_response_content(se...
28.4375
111
0.786813
62716bbca5a8acce4d84e848d682df56e6940fa9
6,147
py
Python
repo_health_dashboard/utils/utils.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
null
null
null
repo_health_dashboard/utils/utils.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
18
2022-01-07T00:10:47.000Z
2022-03-25T00:13:08.000Z
repo_health_dashboard/utils/utils.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
null
null
null
""" utils used to create dashboard """ import csv import html import os def squash_dict(input_dict, delimiter="."): """ Takes very nested dict(metadata_by_repo inside of metadata_by_repo) and squashes it to only one level For example: for input: {'a':{'b':'1', 'c':{'d':'2'}, 'f':[1,2,3]}, 'e':2} t...
32.871658
105
0.624207
627198ee18deb40175d49177236644fd95ba64e3
8,975
py
Python
NetBuilder/Model/PrefixModel.py
xk2600/netbuilder
00b5b09333bebf9890151f1a76b37f14c9106dc0
[ "BSD-2-Clause" ]
null
null
null
NetBuilder/Model/PrefixModel.py
xk2600/netbuilder
00b5b09333bebf9890151f1a76b37f14c9106dc0
[ "BSD-2-Clause" ]
null
null
null
NetBuilder/Model/PrefixModel.py
xk2600/netbuilder
00b5b09333bebf9890151f1a76b37f14c9106dc0
[ "BSD-2-Clause" ]
null
null
null
import unittest import math def debug(message): print(f"DEBUG: {message}") pass # disables debugging output class Prefix: """ Enables ipPrefixes to be treated like generic numeric types while preserving thier presentation and allowing subnetting and suppernetting to be applied t...
30.11745
96
0.673203
6271c2a07cd58542674884d130cac73d886db902
3,589
py
Python
gslib/tests/test_help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to u...
42.223529
80
0.743104
6271fe63166c2619bc783867b0f8f3c232c8833d
9,226
py
Python
hiercluster/hiercluster.py
amn32/mlportopt
5462338fed95eadd52dd565f1373e7b1d73a457a
[ "MIT" ]
null
null
null
hiercluster/hiercluster.py
amn32/mlportopt
5462338fed95eadd52dd565f1373e7b1d73a457a
[ "MIT" ]
null
null
null
hiercluster/hiercluster.py
amn32/mlportopt
5462338fed95eadd52dd565f1373e7b1d73a457a
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt from scipy.special import gamma, gammaln from scipy.cluster.hierarchy import linkage, dendrogram from mlportopt.preprocessing import * from mlportopt.util import * from mlportopt.de...
35.21374
163
0.517559
6272272e6e33dd9e6d1f31f5e64945f9527ad540
1,681
py
Python
setup.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
115
2020-11-11T13:40:05.000Z
2022-01-28T23:26:00.000Z
setup.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
16
2021-05-14T15:27:32.000Z
2022-01-18T10:51:48.000Z
setup.py
njroussel/enoki
23a9f986077db7dfd102579379bd4f0682285dab
[ "BSD-3-Clause" ]
7
2021-01-14T11:24:18.000Z
2021-12-28T21:51:41.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import sys, re, os try: from skbuild import setup import pybind11 except ImportError: print("The preferred way to invoke 'setup.py' is via pip, as in 'pip " "install .'. If you wish to run the setup script directly, you must " ...
32.326923
97
0.685901
6272444caa046e81c567b0e28a4e815d063ce047
2,476
py
Python
JDjango/api/djangotools/basetools/content.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/api/djangotools/basetools/content.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/api/djangotools/basetools/content.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from ..common import * __all__ = [ 'get_list_patt_content', # 通过正则和括号匹配算法获取列表内容区域(不包含两侧括号) 'get_list_patt_content_contain_code', # 通过正则和括号匹配算法获取列表内容区域(包含两侧括号) 'add_oneline_to_listattr', # 利用正则,向列表中加入一行元素 'add_lines_to_listattr', # 利用正则,向列表中加入多行元素 'pop_oneline_to_listattr', # 利用正则,从列表中删除一行元素 'po...
39.935484
120
0.697092
627278a337df155d09a82a342e3e80bc4bf6608f
14,867
py
Python
test/gw/source_test.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
test/gw/source_test.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
test/gw/source_test.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
import unittest import numpy as np from copy import copy import bilby import lal import lalsimulation class TestLalBBH(unittest.TestCase): def setUp(self): self.parameters = dict( mass_1=30.0, mass_2=30.0, luminosity_distance=400.0, a_1=0.4, ti...
34.735981
102
0.620973
627285c3b52d5dac29b1187e5cbd97ea2fe144de
1,430
py
Python
src/wavestate/iirrational/utilities/args.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/utilities/args.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/utilities/args.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
33.255814
89
0.653846
62728f01b822a1eead34a76073a6f43342edaf44
2,039
py
Python
_playground.py
Vastra-Gotalandsregionen/verifierad
20d066ca7166cc23ad193f0ffb8bd088c1e8ed1f
[ "MIT" ]
7
2017-01-27T18:24:54.000Z
2017-05-08T13:35:53.000Z
_playground.py
Vastra-Gotalandsregionen/verifierad.nu
20d066ca7166cc23ad193f0ffb8bd088c1e8ed1f
[ "MIT" ]
8
2017-05-23T16:58:43.000Z
2017-12-07T22:13:29.000Z
_playground.py
Vastra-Gotalandsregionen/verifierad
20d066ca7166cc23ad193f0ffb8bd088c1e8ed1f
[ "MIT" ]
1
2017-02-06T20:37:22.000Z
2017-02-06T20:37:22.000Z
import twitter import _privatekeys api = twitter.Api(consumer_key=_privatekeys.twitterConsumerKey, consumer_secret=_privatekeys.twitterConsumerSecret, access_token_key=_privatekeys.twitterAccessToken, access_token_secret=_privatekeys.twitterAccessTokenSecret) prin...
75.518519
1,115
0.716528
6272a02ce640bef0155ef9b724668365c38bdd63
889
py
Python
algorithms/quick_sort_insertion.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/quick_sort_insertion.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/quick_sort_insertion.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
import random from algorithms.insertion_sort import insertion_sort from algorithms.quick_sort import dijkstra_three_way_partitioning CUTOFF = 5 def quick_sort_insertion(sequence: list, low: int = None, high: int = None): if low is None and high is None: low = 0 high = len(sequence) - 1 #...
26.939394
82
0.673791
6272af95a99779ed49763f81588fb0ccd41b1d92
4,029
py
Python
bellman/training/background_planning_agent_trainer.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
bellman/training/background_planning_agent_trainer.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
bellman/training/background_planning_agent_trainer.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
41.96875
99
0.741127
6272b986243b0274d64eb0a90aaf4f1bb9202828
2,820
py
Python
i2cylib/crypto/keygen/dynkey.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
1
2021-04-17T06:45:31.000Z
2021-04-17T06:45:31.000Z
i2cylib/crypto/keygen/dynkey.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
null
null
null
i2cylib/crypto/keygen/dynkey.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Author: I2cy(i2cy@outlook.com) # OS: ALL # Name: time based dynamic key generator/matcher # Description: This function is used for socket package auth # Used Librarie(s): time, hashlib # Version: 1.0 import time from hashlib import md5 class DynKey: # 64-Bits dynamic key generator/matcher ...
36.153846
114
0.570213
6272df8d986ff522c19172dcfcf98966c41563c6
4,429
py
Python
TrainingExtensions/tensorflow/test/python/test_adaround_act_sampler.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/test/python/test_adaround_act_sampler.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/test/python/test_adaround_act_sampler.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
39.900901
120
0.687288
6272f14ee3bbab88f8dddebdd3503da6951081ee
5,443
py
Python
src/main/python/examples/gp_gpflow.py
ssoudan/pyGP
57385b6ed4dc1b2ef18e16abb4793e9f1a05c79c
[ "MIT" ]
null
null
null
src/main/python/examples/gp_gpflow.py
ssoudan/pyGP
57385b6ed4dc1b2ef18e16abb4793e9f1a05c79c
[ "MIT" ]
1
2020-09-28T04:33:05.000Z
2020-09-28T04:33:07.000Z
src/main/python/examples/gp_gpflow.py
ssoudan/pyGP
57385b6ed4dc1b2ef18e16abb4793e9f1a05c79c
[ "MIT" ]
null
null
null
import gpflow import numpy as np from matplotlib import pyplot as plt import matplotlib import matplotlib.colors import matplotlib.cm import os from .data.gen import make_data import gp.gp_gpflow import seaborn as sns matplotlib.rcParams['figure.figsize'] = (12, 6) os.environ['KMP_DUPLICATE_LIB_OK'] = 'True' def eva...
32.592814
106
0.618593
62731b43953ed4b20a86a6b6930222c2043dff4f
17,284
py
Python
scripts/run_analysis.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
scripts/run_analysis.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
scripts/run_analysis.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
''' run_analysis.py ================= :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- This script will run through the analysis steps as described in the documentation. It will not run the computationally intensive steps but will link to files that have already been created. Usage -...
39.015801
123
0.527077
62732c703a712e40e98e34961fabe03346ea95ea
5,467
py
Python
multirunner/handlers/python.py
cfeenstra67/multirunner
7a6ab6f10a4b1d190033d81886f643042c69e1e6
[ "MIT" ]
null
null
null
multirunner/handlers/python.py
cfeenstra67/multirunner
7a6ab6f10a4b1d190033d81886f643042c69e1e6
[ "MIT" ]
null
null
null
multirunner/handlers/python.py
cfeenstra67/multirunner
7a6ab6f10a4b1d190033d81886f643042c69e1e6
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import fileinput try: from io import StringIO, BytesIO except ImportError: from StringIO import StringIO from BytesIO import BytesIO import json import logging import os import signal import sys import tempfile import traceback ALWAYS_RAISE = (Keyboard...
27.199005
91
0.548381
62733d689ac9dcf5eb43eca4db45ac03bbc5d1dd
14,067
py
Python
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/test/test_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/test/test_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/test/test_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.protocols.haproxy.HAProxyProtocol}. """ from typing import Optional from unittest import mock from twisted.internet import address from twisted.internet.protocol import Factory, Protocol from twisted.test.proto_helper...
37.412234
82
0.622734
627355580740ea8770cedb26896d064651248a58
1,928
py
Python
src/command_modules/azure-cli-extension/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-extension/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-extension/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
30.603175
94
0.598548
627355dadb027537086434ebc05b79f0868b9275
4,332
py
Python
jsonwidget/jsonorder.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
7
2018-04-03T15:19:36.000Z
2021-03-11T14:19:51.000Z
jsonwidget/jsonorder.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
jsonwidget/jsonorder.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # JsonOrderMap - class for scraping key order out of JSON text # # Copyright (c) 2010, Rob Lanphier # All rights reserved. # Licensed under BSD-style license. See LICENSE.txt for details. import json try: import simpleparse from simpleparse.common import strings, numbers except ImportError...
31.391304
78
0.59603
627361aeb89d9a1d2bfbf7317596fcd159280307
151
py
Python
CS 211/10-Python/codefiles/04-functions.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
CS 211/10-Python/codefiles/04-functions.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
CS 211/10-Python/codefiles/04-functions.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
def accumulate(iterable): sum = 0 for n in iterable: sum += n return sum numbers = list(range(1, 11)) print(accumulate(numbers))
15.1
28
0.615894
62737af9b2570c624d4e43d3f6475cc48fa80c2a
85
py
Python
dvsportal/const.py
tcoenraad/python-dvsportal
aa73b965fe65e5be2d362621617a89bc9b9f2d7e
[ "MIT" ]
null
null
null
dvsportal/const.py
tcoenraad/python-dvsportal
aa73b965fe65e5be2d362621617a89bc9b9f2d7e
[ "MIT" ]
null
null
null
dvsportal/const.py
tcoenraad/python-dvsportal
aa73b965fe65e5be2d362621617a89bc9b9f2d7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DVSPortal constants.""" API_BASE_URI = "/DVSWebAPI/api/"
17
32
0.611765
627387ff9ed56dbc6a70e076a530de71cd3de3e0
3,055
py
Python
analytics/management/commands/client_activity.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2021-02-13T20:43:29.000Z
2021-02-13T20:43:29.000Z
analytics/management/commands/client_activity.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
analytics/management/commands/client_activity.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
from __future__ import absolute_import from __future__ import print_function from typing import Any from argparse import ArgumentParser from django.core.management.base import BaseCommand from django.db.models import Count, QuerySet from zerver.models import UserActivity, UserProfile, Realm, \ get_realm, get_use...
37.256098
86
0.620295
627390e0cad04c8bff75962e3b526d9793b3f0f1
3,762
py
Python
django_archive/management/commands/archive.py
srogatch/django-archive
a1b1f578767ee8534885090cb73213ee17b12419
[ "MIT" ]
null
null
null
django_archive/management/commands/archive.py
srogatch/django-archive
a1b1f578767ee8534885090cb73213ee17b12419
[ "MIT" ]
null
null
null
django_archive/management/commands/archive.py
srogatch/django-archive
a1b1f578767ee8534885090cb73213ee17b12419
[ "MIT" ]
null
null
null
from datetime import datetime from io import BytesIO from json import dump from os import path from tarfile import TarInfo, TarFile from django.apps.registry import apps from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand from django.db i...
30.33871
87
0.574694
6273d2bc3ace4de0c55683a3576107a40952bf0c
45,469
py
Python
sdk/storage/azure-storage-queue/tests/test_queue.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/storage/azure-storage-queue/tests/test_queue.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-queue/tests/test_queue.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. # --------------------------------------------------------------------...
39.850131
141
0.674987
6273d883139637e0d13f8fcfc6c2bc2d95bdf2d3
74,686
py
Python
ocs_ci/ocs/platform_nodes.py
deepshikhaaa/ocs-ci
5477ee85c395e808589ba45e3db34d4efe54fc97
[ "MIT" ]
null
null
null
ocs_ci/ocs/platform_nodes.py
deepshikhaaa/ocs-ci
5477ee85c395e808589ba45e3db34d4efe54fc97
[ "MIT" ]
null
null
null
ocs_ci/ocs/platform_nodes.py
deepshikhaaa/ocs-ci
5477ee85c395e808589ba45e3db34d4efe54fc97
[ "MIT" ]
null
null
null
import json import logging import os import re import shutil import time import boto3 import yaml from ocs_ci.deployment.terraform import Terraform from ocs_ci.deployment.vmware import ( clone_openshift_installer, update_machine_conf, ) from ocs_ci.ocs.exceptions import TimeoutExpiredError from ocs_ci.framew...
34.118776
90
0.603286
6273ee0bca16753a98487532c0bae9f42dd47939
1,635
py
Python
Allura/allura/tests/test_scripttask.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
Allura/allura/tests/test_scripttask.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tests/test_scripttask.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
37.159091
70
0.673394
6273f3cd3f97477b9424fb21751aea2f39d15899
11,683
py
Python
test/parallel/distributed/test_world.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
test/parallel/distributed/test_world.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
test/parallel/distributed/test_world.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from machin.parallel.distributed import get_cur_name, get_cur_rank from test.util_run_multi import * from test.util_fixtures import * from test.util_platforms import linux_only_forall import torch as t linux_only_forall() class WorkerService: counter = 0 def count(self): self.counter += 1 r...
32.817416
86
0.539502
62741c892dade32ce47af2020df9671c381967aa
453
py
Python
hs_labels/migrations/0005_auto_20171127_1952.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_labels/migrations/0005_auto_20171127_1952.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_labels/migrations/0005_auto_20171127_1952.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_labels', '0004_auto_add_constraints'), ] operations = [ migrations.AlterField( model_name='userresourceflags', name='kind', ...
22.65
127
0.584989
6274226fce0f7e05f15fcb07296bc2ee265db628
1,722
py
Python
tests/test_popstuff.py
lozsui/python
96339c2dd1146f2036de25babb5b0705fb2aeb3f
[ "CC0-1.0" ]
null
null
null
tests/test_popstuff.py
lozsui/python
96339c2dd1146f2036de25babb5b0705fb2aeb3f
[ "CC0-1.0" ]
null
null
null
tests/test_popstuff.py
lozsui/python
96339c2dd1146f2036de25babb5b0705fb2aeb3f
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ No comment. """ import pandas as pd import pytest import ppl.popstuff as popstuff @pytest.mark.parametrize("test_input,expected", [(3, 6), (33, 36), (-1, 2)]) def test_value_plus3(test_input, expected): """ No comment. """ assert popstuff.value_plus_3(test_input) == exp...
21
77
0.631823