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
1a25379a006c45169111c4d0f3c35394a6cd87dd
431,753
py
Python
src/libspec/arm/scripts/specification/ARMv7DecodingSpec.py
agustingianni/retools
0df67fe6f21895644936c5896a33770431d86a1d
[ "MIT" ]
80
2017-08-08T08:42:12.000Z
2022-03-03T13:12:05.000Z
src/libspec/arm/scripts/specification/ARMv7DecodingSpec.py
agustingianni/retools
0df67fe6f21895644936c5896a33770431d86a1d
[ "MIT" ]
16
2017-08-02T14:17:07.000Z
2021-04-30T10:17:01.000Z
src/libspec/arm/scripts/specification/ARMv7DecodingSpec.py
agustingianni/retools
0df67fe6f21895644936c5896a33770431d86a1d
[ "MIT" ]
6
2017-10-02T07:47:46.000Z
2020-08-18T22:03:48.000Z
instructions = [ { "name" : "ADC Immediate", "encoding" : "T1", "version" : "ARMv6T2, ARMv7", "format" : "ADC{S}<c> <Rd>, <Rn>, #<imm32>", "pattern" : "11110 i#1 01010 S#1 Rn#4 0 imm3#3 Rd#4 imm8#8", "decoder" : """d = UInt(Rd); n = UInt(Rn); setflags = (S == '1'); imm32 = ThumbExpandImm(i:imm3:...
45.205005
167
0.510653
1a2540fe3a04607d7666502098f0a7c0dc04f4f8
10,479
py
Python
pymanopt/manifolds/fixed_rank.py
codedecde/EmbedMap
bd128c190f3e75146d2e85df05904aaa72117bb0
[ "MIT" ]
null
null
null
pymanopt/manifolds/fixed_rank.py
codedecde/EmbedMap
bd128c190f3e75146d2e85df05904aaa72117bb0
[ "MIT" ]
null
null
null
pymanopt/manifolds/fixed_rank.py
codedecde/EmbedMap
bd128c190f3e75146d2e85df05904aaa72117bb0
[ "MIT" ]
1
2018-07-01T07:45:53.000Z
2018-07-01T07:45:53.000Z
""" Module containing manifolds of fixed rank matrices. """ from __future__ import division import numpy as np from pymanopt.manifolds.manifold import Manifold from pymanopt.manifolds import Stiefel class FixedRankEmbedded(Manifold): """ Note: Currently not compatible with the second order TrustRegions sol...
34.813953
79
0.591564
1a2549929142328aeba74673b5e55dd66abcc4c7
21,445
py
Python
puka/connection.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
81
2015-01-22T10:09:37.000Z
2022-01-25T04:38:29.000Z
puka/connection.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
17
2015-05-13T01:51:53.000Z
2021-03-05T04:01:39.000Z
puka/connection.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
25
2015-02-12T14:02:41.000Z
2020-05-15T14:08:43.000Z
from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import range import future.utils as futils import errno import logging import select import socket import ssl import struct import time import urllib.request, urllib.parse, urllib.error from . im...
35.504967
105
0.578736
1a25654b9378570dec659c11abd2bf8e2b387b46
386
py
Python
terrascript/resource/azurerm.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/azurerm.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/azurerm.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/azurerm.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:13:11 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.azurerm # # instead of # # >>> import terrascript.resource.hashicorp.azurerm # # This is only available for 'official' and 'partner'...
25.733333
73
0.748705
1a258df4dae6fd305f5a812ad04d9105869d2db6
16,627
py
Python
src/emuvim/api/openstack/openstack_dummies/keystone_dummy_api.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/api/openstack/openstack_dummies/keystone_dummy_api.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/api/openstack/openstack_dummies/keystone_dummy_api.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2017 SONATA-NFV and Paderborn University 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 ap...
37.364045
120
0.470319
1a2597190a8b43f20c219c9c3cd02f1e5a878012
13,347
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ltr390.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ltr390.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ltr390.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2020 Bryan Siepert for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_ltr390` ================================================================================ Adafruit CircuitPyth...
36.870166
97
0.526111
1a25a34faa3d983a9a0514edf6b17cfa10ba0523
1,686
py
Python
extensions/acos_submit.py
pianiemela/course-templates
3153d582c8d7fd7e5b99da4fc408753c8d50dff3
[ "MIT" ]
null
null
null
extensions/acos_submit.py
pianiemela/course-templates
3153d582c8d7fd7e5b99da4fc408753c8d50dff3
[ "MIT" ]
2
2019-06-10T12:41:07.000Z
2019-07-04T15:47:47.000Z
extensions/acos_submit.py
pianiemela/course-templates
3153d582c8d7fd7e5b99da4fc408753c8d50dff3
[ "MIT" ]
1
2019-07-01T15:06:34.000Z
2019-07-01T15:06:34.000Z
from sphinx.errors import SphinxError from aplus_setup import SubmitForm """ acos-submit is a custom directive that behaves almost identically to the normal submit directive. It is intended for exercises that are hosted outside the MOOC grader, such as the ACOS server. The directive option url should define the URL p...
43.230769
96
0.708778
1a25a3b462c7e8e61760f3b4216f843453a36936
1,786
py
Python
nova/conf/legacy_api.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/legacy_api.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/legacy_api.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2015 OpenStack Foundation # 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 requ...
37.208333
78
0.697648
1a25b49351e0e1db325a51ffc7263356c83f6c4f
6,528
py
Python
src/visitpy/visit_flow/flow/src/filters/script_pipeline.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/filters/script_pipeline.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/src/filters/script_pipeline.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: spipeline.py author: Cyrus Harrison <cyrush@llnl.gov> created: 2/4/2013 description:...
33.823834
86
0.626225
1a25bd36fee9a6bdb2c6235a77dbb0d5864d668b
6,933
py
Python
sttConverter.py
BlackwoodOne/sod-crawler
11cf6a928b11c7ba66634d2c17cc62b04c8e0720
[ "MIT" ]
1
2019-03-20T04:27:00.000Z
2019-03-20T04:27:00.000Z
sttConverter.py
BlackwoodOne/sod-crawler
11cf6a928b11c7ba66634d2c17cc62b04c8e0720
[ "MIT" ]
null
null
null
sttConverter.py
BlackwoodOne/sod-crawler
11cf6a928b11c7ba66634d2c17cc62b04c8e0720
[ "MIT" ]
null
null
null
#import argparse from ws4py.client.threadedclient import WebSocketClient import threading import sys import urllib.request, urllib.parse, urllib.error import queue import json import time import os import utils import requests if sys.version_info[0] < 3: raise Exception("Python 3 is required to execute.") def rat...
38.303867
239
0.605654
1a25c14e5a1e399cf9e93995e1c999339bce3292
927
py
Python
pbsmrtpipe/testkit/core/test_resources.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
26
2015-08-06T02:09:51.000Z
2021-02-26T02:25:01.000Z
pbsmrtpipe/testkit/core/test_resources.py
mpkocher/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
181
2015-08-07T18:13:02.000Z
2021-04-13T16:24:32.000Z
pbsmrtpipe/testkit/core/test_resources.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
29
2015-08-07T17:29:42.000Z
2021-09-15T18:22:37.000Z
import os import logging from .base import TestBase from pbsmrtpipe.testkit.base import monkey_patch log = logging.getLogger(__name__) @monkey_patch class TestCoreResources(TestBase): """ Test to see of the core job directory structure and files exist """ # Directories (relative to the root job) th...
31.965517
102
0.686084
1a25dbc2b0f5e9f698e157c05e89fd3cbecf7d02
568
py
Python
alembic/versions/b02eb31402b1_add_index_on_fileinstance_name.py
BrianJKoopman/librarian
2d4164b60fe41d1a192f03d8baad12c0d11d0394
[ "BSD-2-Clause" ]
5
2016-02-17T17:51:05.000Z
2021-12-09T19:08:17.000Z
alembic/versions/b02eb31402b1_add_index_on_fileinstance_name.py
BrianJKoopman/librarian
2d4164b60fe41d1a192f03d8baad12c0d11d0394
[ "BSD-2-Clause" ]
60
2016-01-29T20:40:04.000Z
2021-05-28T14:13:18.000Z
alembic/versions/b02eb31402b1_add_index_on_fileinstance_name.py
simonsobs/librarian
188370d84a988f898bb9de4593078c1868602f08
[ "BSD-2-Clause" ]
6
2017-11-13T10:40:34.000Z
2020-07-10T00:42:57.000Z
# -*- coding: utf-8 -*- # Copyright 2017 the HERA Collaboration # Licensed under the 2-clause BSD License. """add index on FileInstance.name Revision ID: b02eb31402b1 Revises: 0e0e6d02a01a Create Date: 2017-02-09 17:32:01.979450 """ from alembic import op import sqlalchemy as sa revision = 'b02eb31402b1' down_revi...
20.285714
82
0.744718
1a25ffb7f8676d2d8e8d0e3e586fd67f05f8c904
8,403
py
Python
fairseq/data/indexed_dataset.py
ghchen18/leca
325c3112d325e671cd5f3ba5f2c7a7bf19abd5e6
[ "BSD-3-Clause" ]
11
2020-09-30T00:43:58.000Z
2022-02-25T01:39:08.000Z
fairseq/data/indexed_dataset.py
ghchen18/leca
325c3112d325e671cd5f3ba5f2c7a7bf19abd5e6
[ "BSD-3-Clause" ]
13
2020-07-30T08:08:07.000Z
2022-03-04T01:17:33.000Z
fairseq/data/indexed_dataset.py
ghchen18/leca
325c3112d325e671cd5f3ba5f2c7a7bf19abd5e6
[ "BSD-3-Clause" ]
5
2021-05-18T06:50:15.000Z
2022-02-18T04:42:31.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import os import struct import nu...
31.829545
127
0.596335
1a261a61d19158cf1ba7f4d6bdc01aed60b730eb
346
py
Python
Easy/1748 Sum of Unique Elements.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
Easy/1748 Sum of Unique Elements.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
Easy/1748 Sum of Unique Elements.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/sum-of-unique-elements/ class Solution: def sumOfUnique(self, nums: List[int]) -> int: sumx = 0 nums_unique = set(nums) for each in nums_unique: if nums.count(each) == 1: sumx += each ...
21.625
55
0.476879
1a262deea038f831fb716beff99692d89ac663f6
2,385
py
Python
chateau/auth/forms.py
softwerks/chateau
6218dd623b21298a29f255e9c0d88d69651796e0
[ "Apache-2.0" ]
null
null
null
chateau/auth/forms.py
softwerks/chateau
6218dd623b21298a29f255e9c0d88d69651796e0
[ "Apache-2.0" ]
null
null
null
chateau/auth/forms.py
softwerks/chateau
6218dd623b21298a29f255e9c0d88d69651796e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Softwerks LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
31.8
88
0.646122
1a2630a01ba9e1e1c65d537a36df7b3adc902b5a
2,045
py
Python
examples/single_calculations/example_failure.py
borellim/aiida-cp2k
a049931946992a5332edc7efd6b9d7e78b42156e
[ "MIT" ]
1
2021-06-13T09:14:46.000Z
2021-06-13T09:14:46.000Z
examples/single_calculations/example_failure.py
borellim/aiida-cp2k
a049931946992a5332edc7efd6b9d7e78b42156e
[ "MIT" ]
null
null
null
examples/single_calculations/example_failure.py
borellim/aiida-cp2k
a049931946992a5332edc7efd6b9d7e78b42156e
[ "MIT" ]
3
2018-10-16T16:34:35.000Z
2018-10-19T16:13:01.000Z
# -*- coding: utf-8 -*- # pylint: disable=invalid-name ############################################################################### # Copyright (c), The AiiDA-CP2K authors. # # SPDX-License-Identifier: MIT # # AiiDA-CP2K is hosted on...
30.073529
79
0.608802
1a263b216ec0a7f6204325fe2becb1b6db06ea02
4,065
py
Python
other/old/server.py
georgymh/decentralized-ml
117f998657a0a22c5c865814551082a40da00596
[ "Apache-2.0" ]
11
2018-09-04T04:36:33.000Z
2021-07-14T13:11:35.000Z
server.py
georgymh/dml
a702b6751e8980027bf5dc741c84545c02ee425d
[ "MIT" ]
30
2018-07-12T16:44:21.000Z
2019-01-23T23:36:59.000Z
server.py
georgymh/dml
a702b6751e8980027bf5dc741c84545c02ee425d
[ "MIT" ]
4
2018-12-18T17:11:41.000Z
2021-07-14T13:11:42.000Z
import time import random import json import logging import pathlib from math import ceil import numpy as np import tensorflow as tf import ray from models.generic_model import GenericTensorflowModel, GenericKerasModel logging.basicConfig(level=logging.DEBUG, format='[Server] %(asctime)s %(leveln...
37.990654
100
0.625092
1a26507b6cba642a09e6369a7ec5aa8b0031fd9e
2,920
py
Python
common/theme_generator.py
sentience/SublimeRubyCoverage
99bab920c94aabce1857e11211e4c5e2cd5788af
[ "MIT" ]
3
2015-07-28T22:34:04.000Z
2021-06-03T14:50:08.000Z
common/theme_generator.py
sentience/SublimeRubyCoverage
99bab920c94aabce1857e11211e4c5e2cd5788af
[ "MIT" ]
null
null
null
common/theme_generator.py
sentience/SublimeRubyCoverage
99bab920c94aabce1857e11211e4c5e2cd5788af
[ "MIT" ]
1
2020-02-02T12:42:14.000Z
2020-02-02T12:42:14.000Z
""" Given the resource path to a Sublime theme file, generate a new theme and allow the consumer to augment this theme and apply it to a view. (Hat tip to GitSavvy for this technique!) """ import os from xml.etree import ElementTree import sublime STYLES_HEADER = """ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYP...
32.444444
102
0.636986
1a2653d8fd172fc20c2619a18856c7b8837895b4
1,042
py
Python
datawinners/search/__init__.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/search/__init__.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/search/__init__.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from datawinners.search.mapping import form_model_change_handler, entity_form_model_change_handler from datawinners.search.submission_index import update_submission_search_index from datawinners.search.subject_index import entity_search_update from mangrove.datastore.documents import EntityDocument, FormModelDocument, ...
54.842105
123
0.888676
1a265ec342e0683be8fbbf1d3a35f180dc104f30
5,461
py
Python
pollination_sdk/models/item_reference.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
pollination_sdk/models/item_reference.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
pollination_sdk/models/item_reference.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pollination_sdk.configu...
30.171271
135
0.595129
1a268a5144b5e9fced32aaa8eba062202582e205
2,116
py
Python
oscar/lib/python2.7/site-packages/prompt_toolkit/contrib/regular_languages/validation.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/contrib/regular_languages/validation.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/contrib/regular_languages/validation.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Validator for a regular langage. """ from __future__ import unicode_literals from prompt_toolkit.validation import Validator, ValidationError from prompt_toolkit.document import Document from .compiler import _CompiledGrammar __all__ = ( 'GrammarValidator', ) class GrammarValidator(Validator...
36.482759
88
0.609168
1a272722f1d0e8cbdff8bfb4493c94bb601f5a3f
3,281
py
Python
Tools/parametric_model/src/models/aerodynamic_models/fuselage_drag_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
38
2021-12-20T22:52:25.000Z
2022-03-15T09:45:01.000Z
Tools/parametric_model/src/models/aerodynamic_models/fuselage_drag_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
18
2021-12-21T09:36:20.000Z
2022-03-20T13:03:27.000Z
Tools/parametric_model/src/models/aerodynamic_models/fuselage_drag_model.py
ethz-asl/data-driven-dynamics
decf4bec19c9fc4a1789f5eb4d6e6003774c75d6
[ "BSD-3-Clause" ]
8
2021-12-20T22:52:34.000Z
2022-03-30T21:13:59.000Z
""" * * Copyright (c) 2021 Manuel Yves Galliker * 2021 Autonomous Systems Lab ETH Zurich * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source cod...
41.531646
112
0.671442
1a275165ab39a17091d9d754d8cab15e5aaf655b
22,483
py
Python
cartridge/shop/migrations/0017_auto__add_field_category_featured_image.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
cartridge/shop/migrations/0017_auto__add_field_category_featured_image.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
cartridge/shop/migrations/0017_auto__add_field_category_featured_image.py
AlexHill/cartridge
cb8599d43600442a223a484dc75726bfbbec68a0
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals # -*- coding: utf-8 -*- 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 'Category.featured_image' db.add_column('shop_categor...
87.48249
197
0.561758
1a27590849cf25cae3773e9873ad35fcc693327b
4,408
py
Python
examples/reduce_psf_stars.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
6
2017-06-15T20:34:51.000Z
2020-04-15T14:21:43.000Z
examples/reduce_psf_stars.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
18
2017-08-15T20:53:55.000Z
2020-10-05T23:40:34.000Z
examples/reduce_psf_stars.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
2
2017-11-06T15:33:53.000Z
2020-10-02T21:06:05.000Z
from __future__ import print_function from astwro.pydaophot import daophot, allstar, fname from astwro.starlist import read_dao_file from astwro.utils import tmpdir import os import sys import numpy as np basefilename = 'i' results_path = None pick_candidates = 80 pick_mag_limit = 20 run_parallel = 8 #fits = basefile...
31.942029
110
0.677632
1a278645a80e462ea2f4b12317288ca189e6aefd
2,123
py
Python
src/zope/server/logger/tests/test_pythonlogger.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
1
2018-07-03T10:00:31.000Z
2018-07-03T10:00:31.000Z
src/zope/server/logger/tests/test_pythonlogger.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
19
2015-11-08T11:20:50.000Z
2021-05-26T14:53:49.000Z
src/zope/server/logger/tests/test_pythonlogger.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
2
2015-04-03T09:41:05.000Z
2020-05-01T13:00:40.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.698413
78
0.656147
1a2791b0c0a5c7bd9890f69777609f9b08392d93
1,415
py
Python
01-Lesson-Plans/03-Python-Pandas/1/Activities/11-functions-01/Solved/functions-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/11-functions-01/Solved/functions-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/11-functions-01/Solved/functions-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
# Define a function `having_fun` that prints "Functions are FUN!". def having_fun(): print("Functions are FUN!") # Define a function `thirty_seven` that prints the sum of 18 and 19. def thirty_seven(): sum = 18 + 19 print(sum) # Call the two functions you've defined so far. having_fun() thirty_seven() # ...
31.444444
146
0.730035
1a27b88619fa01467baf734e218096e7d573800f
1,042
py
Python
recipeProject/core/migrations/0004_recipe.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/core/migrations/0004_recipe.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/core/migrations/0004_recipe.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-20 13:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_ingredient'), ] operations = [ migrations.CreateModel( ...
35.931034
118
0.603647
1a27c1e3ccc96d976c1cb15271417f5cb85ef723
20,594
py
Python
pykicad/pcbnew_parser.py
Gtrx0/keyboard_case_and_pcb_gen
876407b71b7133cae9c690b33e70d8426c551888
[ "MIT" ]
null
null
null
pykicad/pcbnew_parser.py
Gtrx0/keyboard_case_and_pcb_gen
876407b71b7133cae9c690b33e70d8426c551888
[ "MIT" ]
null
null
null
pykicad/pcbnew_parser.py
Gtrx0/keyboard_case_and_pcb_gen
876407b71b7133cae9c690b33e70d8426c551888
[ "MIT" ]
1
2018-09-20T10:02:48.000Z
2018-09-20T10:02:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 jem@seethis.link # Licensed under the MIT license (http://opensource.org/licenses/MIT) from __future__ import absolute_import, division, print_function, unicode_literals import pyparsing from pyparsing import ( Keyword, Word, Optional, Literal, White,...
37.99631
117
0.700592
1a27c492d000567552557c5132d62cccfa93efa1
3,387
py
Python
examples/nips17_adversarial_competition/dev_toolkit/sample_defenses/adv_inception_v3/defense.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
examples/nips17_adversarial_competition/dev_toolkit/sample_defenses/adv_inception_v3/defense.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2021-03-01T15:06:09.000Z
2021-03-01T15:06:09.000Z
examples/nips17_adversarial_competition/dev_toolkit/sample_defenses/adv_inception_v3/defense.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
"""Implementation of sample defense. This defense loads inception v3 checkpoint and classifies all images using loaded checkpoint. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from scipy.misc import imread import tenso...
29.973451
79
0.704163
1a27c4f361be0bd6b531aa468c586c08ad3cca04
4,519
py
Python
src/parser/iniparser.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
src/parser/iniparser.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
src/parser/iniparser.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
''' Application : Envision File name : iniparser.py Authors : Jacob Summerville and Safwan Elmadani Description : This file parses the ini input file ''' # Copyright (c) April 26, 2021 Jacob Summerville and Safwan Elmadani # All rights reserved. # # The license below extends only to copyright in the software and...
36.739837
75
0.674486
1a27d38611e2198fb790a671970ef32fc6b6abf0
9,597
py
Python
tests/integration/pullbuildtrees.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/integration/pullbuildtrees.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/integration/pullbuildtrees.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import os import shutil import pytest from buildstream.testing import cli, cli_integration as cli2 # pylint: disable=unused-import from buildstream.testing._utils.site import HAVE_SANDBOX from builds...
53.316667
113
0.689278
1a27dc51900905c21a3b12eb7fbe553088effa04
7,124
py
Python
neural_net/test_neural_net.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
neural_net/test_neural_net.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
4
2021-03-25T19:52:40.000Z
2021-12-12T17:57:11.000Z
neural_net/test_neural_net.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
# test the Board_cell object from cell_nodes import Board_cell from game_status import Game_state from rank_file_nodes import Win_triplet # instantiate cell nodes cell_zero = Board_cell(0, "zero") cell_one = Board_cell(1, "one") cell_two = Board_cell(2, "two") cell_three = Board_cell(3, "three") cell_four = Board_cel...
27.505792
111
0.698765
1a27e9d999751e3ee0826c8fb8989cdbad2c6a9b
3,835
py
Python
kyototycoon/datadog_checks/kyototycoon/kyototycoon.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
2
2019-04-03T17:21:38.000Z
2020-02-04T16:28:05.000Z
kyototycoon/datadog_checks/kyototycoon/kyototycoon.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
10
2018-02-27T19:06:07.000Z
2021-08-30T03:23:26.000Z
kyototycoon/datadog_checks/kyototycoon/kyototycoon.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
6
2018-01-09T21:37:20.000Z
2020-05-26T09:28:09.000Z
# (C) Datadog, Inc. 2010-2017 # (C) Dan Crosta <dcrosta@late.am> 2013 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from collections import defaultdict import re # 3rd party import requests # project from checks import AgentCheck db_stats = re.compile(r'^db_(\d)+$') whitespace...
31.958333
82
0.543677
1a280cc41a0eb7e84f03c51109dc9b8f2b9acf55
1,079
py
Python
cumulusci/conftest.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/conftest.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/conftest.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
import io import os from http.client import HTTPMessage from unittest import mock from pytest import fixture from cumulusci.core.github import get_github_api @fixture(scope="session", autouse=True) def mock_sleep(): """Patch time.sleep to avoid delays in unit tests""" with mock.patch("time.sleep"): y...
19.981481
56
0.656163
1a2836c40df29b86089ce70dd3ca7f75d240b791
394
py
Python
catkin_ws/build/labyrinth/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
1
2021-09-19T07:51:23.000Z
2021-09-19T07:51:23.000Z
catkin_ws/build/labyrinth/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
catkin_ws/build/labyrinth/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "labyrinth" PROJECT_SPACE_DIR = "/home...
43.777778
73
0.715736
1a2855c1add2a06e19380de2878e03e96a507d61
258
py
Python
src/decrypter/helpers/printer.py
headma5ter/decrypter
35cce659caa87943cc5586181f0b5df0f2ea43f3
[ "MIT" ]
null
null
null
src/decrypter/helpers/printer.py
headma5ter/decrypter
35cce659caa87943cc5586181f0b5df0f2ea43f3
[ "MIT" ]
null
null
null
src/decrypter/helpers/printer.py
headma5ter/decrypter
35cce659caa87943cc5586181f0b5df0f2ea43f3
[ "MIT" ]
null
null
null
from tabulate import tabulate import numpy as np def print_table(table: np.ndarray) -> None: print(tabulate(table[:3], tablefmt="fancy_grid")) print(tabulate(table[3:6], tablefmt="fancy_grid")) print(tabulate(table[6:], tablefmt="fancy_grid"))
28.666667
54
0.717054
1a285f6a6182b1e8f82b92bc0fd07b28c269fc36
45,886
py
Python
DoraGamePlaying-m7noskip/dataTypes.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
3
2020-06-22T15:02:23.000Z
2021-05-05T14:03:25.000Z
DoraGamePlaying-m7noskip/dataTypes.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
null
null
null
DoraGamePlaying-m7noskip/dataTypes.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
null
null
null
# dataTypes.py # dataType objects for DORA. # imports. import random, math, pdb # set parameters. # Token units # noinspection PyPep8Naming class TokenUnit(object): def __init__(self, my_name, my_set, analog, inferred_now, myanalog): self.name = my_name self.set = my_set # driver, recipient, newS...
45.612326
339
0.615525
1a286dcd89814924b94163298cf6e75af75a2afa
7,013
py
Python
docs/conf.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
2
2015-09-24T19:50:55.000Z
2015-11-06T10:45:08.000Z
docs/conf.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
docs/conf.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # nashvegas documentation build configuration file, created by # sphinx-quickstart on Sun Feb 27 21:32:33 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.317972
80
0.719663
1a287aa8c1f1b6f669ea45e2d5c789efbb247244
5,323
py
Python
examples/example8-verilog.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
examples/example8-verilog.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
examples/example8-verilog.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
""" Example 8: Interfacing with Verilog. While there is much more about PyRTL design to discuss, at some point somebody might ask you to do something with your code other than have it print pretty things out to the terminal. We provide import from and export to Verilog of designs, export of waveforms...
35.486667
93
0.734736
1a2887b86a89a3099e014f7ab7fd20235744e122
4,494
py
Python
solutions/rank-1/scripts/04_predict_cb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
48
2020-03-18T11:34:49.000Z
2022-03-31T18:30:00.000Z
solutions/rank-1/scripts/04_predict_cb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
40
2020-03-24T18:17:51.000Z
2022-03-12T00:30:30.000Z
solutions/rank-1/scripts/04_predict_cb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
24
2020-04-18T02:52:47.000Z
2022-01-22T19:13:16.000Z
import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import argparse import glob import numpy as np import pandas as pd from catboost import CatBoostRegressor from ashrae.utils import ( OUTPUT_PATH, MODEL_PATH, Logger, timer, rmsle, load_data, ) parser = argparse.Ar...
32.330935
102
0.629951
1a289ca99195e40a4907cbe82a846d4e19093420
7,511
py
Python
modules/head.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
7
2018-10-29T18:01:47.000Z
2022-01-21T04:13:46.000Z
modules/head.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
225
2018-03-08T10:41:50.000Z
2021-11-01T19:51:17.000Z
modules/head.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
44
2018-03-19T15:30:15.000Z
2020-07-29T08:47:45.000Z
#!/usr/bin/env python """ head.py - Phenny HTTP Metadata Utilities Copyright 2008, Sean B. Palmer, inamidst.com Licensed under the Eiffel Forum License 2. http://inamidst.com/phenny/ """ import re import urllib.parse import time import requests from html.entities import name2codepoint import web from web import REQUE...
30.044
131
0.534949
1a28a1a3f314f0b8150e03b6ac8b848f73459498
4,562
py
Python
main.py
Ross-Morgan/Minecraft-Enchantment-Command-Generator
59f6d8c0efa2727c17efbbb26a101c80bdf3c381
[ "MIT" ]
null
null
null
main.py
Ross-Morgan/Minecraft-Enchantment-Command-Generator
59f6d8c0efa2727c17efbbb26a101c80bdf3c381
[ "MIT" ]
1
2021-03-01T00:14:40.000Z
2021-03-03T01:07:54.000Z
main.py
Ross-Morgan/Minecraft-Enchantment-Command-Generator
59f6d8c0efa2727c17efbbb26a101c80bdf3c381
[ "MIT" ]
null
null
null
from dict import enchmnts, recipients def sep_words(name: str, sep: str, lower: bool = False, upper: bool = False, capitalise: bool = False,) -> str: ''' A general use version of mc_id(name) with no default word-seperator and extra formatting options ''' def mc_id(name: str = "",mc: bool = False) -...
25.629213
112
0.501096
1a28b514ed2cc1a79f30784dd166e2fdfa42def4
3,918
py
Python
reprexlite/cli.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
6
2021-02-15T11:33:05.000Z
2021-05-31T04:14:18.000Z
reprexlite/cli.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
51
2021-02-15T21:06:51.000Z
2022-03-31T15:11:21.000Z
reprexlite/cli.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional import typer from reprexlite.formatting import Venue from reprexlite.reprex import reprex from reprexlite.version import __version__ app = typer.Typer() def version_callback(version: bool): """Print reprexlite version to console.""" if version: t...
31.596774
109
0.609239
1a28cafa2b520f3c3086fddd2752bb610c65fe5b
19,345
py
Python
pandas/tests/io/formats/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/io/formats/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/formats/test_to_csv.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import numpy as np import pytest import pandas as pd from pandas import DataFrame, compat from pandas.util import testing as tm class TestToCSV(object): @pytest.mark.xfail((3, 6, 5) > sys.version_info >= (3, 5), reason=("Python csv library bu...
35.824074
79
0.51052
1a28f41a5612a2e82b42459bfa9c15957e17735e
1,925
py
Python
usecase-2/check-gendatakey-Step-3.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-2/check-gendatakey-Step-3.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-2/check-gendatakey-Step-3.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
""" ##################################################### # Check for generatedatakey API call for the # # alias/kms_key_cse_usecase_2 KMS master key # ##################################################### """ import subprocess import sys import boto3 def main(): """ #############################...
39.285714
123
0.494545
1a29246bc1a123900f409cde486faabf13030b3a
10,624
py
Python
custom_components/multiscrape/__init__.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
1
2018-10-04T03:50:13.000Z
2018-10-04T03:50:13.000Z
custom_components/multiscrape/__init__.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
null
null
null
custom_components/multiscrape/__init__.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
null
null
null
"""The multiscrape component.""" import asyncio import logging import os from datetime import timedelta import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_AUTHENTICATION from homeassistant.const import CONF_DESCRIPTION from homeassistant.const import CONF...
33.408805
131
0.699736
1a2937b31ebac642bf500d6d2c08c06e4a8a66ce
321
py
Python
aries_cloudagent/protocols/basicmessage/message_types.py
dhiway/aries-cloudagent-python
f08b7d65e404c8274c6606328c959a865a22c706
[ "Apache-2.0" ]
2
2020-02-26T14:22:44.000Z
2021-05-06T20:13:36.000Z
aries_cloudagent/protocols/basicmessage/message_types.py
dhiway/aries-cloudagent-python
f08b7d65e404c8274c6606328c959a865a22c706
[ "Apache-2.0" ]
6
2021-03-10T20:05:19.000Z
2022-02-27T05:41:09.000Z
aries_cloudagent/protocols/basicmessage/message_types.py
dhiway/aries-cloudagent-python
f08b7d65e404c8274c6606328c959a865a22c706
[ "Apache-2.0" ]
4
2019-07-09T20:41:03.000Z
2021-06-06T10:45:23.000Z
"""Message type identifiers for Connections.""" PROTOCOL_URI = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/basicmessage/1.0" BASIC_MESSAGE = f"{PROTOCOL_URI}/message" PROTOCOL_PACKAGE = "aries_cloudagent.protocols.basicmessage" MESSAGE_TYPES = { BASIC_MESSAGE: f"{PROTOCOL_PACKAGE}.messages.basicmessage.BasicMessage" }...
26.75
75
0.794393
1a293f02217333d7bedf6408cf0f2519ff9c2e52
10,424
py
Python
neural_sp/bin/plot_utils.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
neural_sp/bin/plot_utils.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
neural_sp/bin/plot_utils.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Plot attention weights & ctc probabilities.""" import seaborn as sns import numpy as np from matplotlib import pyplot as plt import matplotlib matplotlib...
35.335593
101
0.576842
1a2976fa4e4edfdcf24415b48470d05d2532058a
4,402
py
Python
leetcode_python/Binary_Search/search-a-2d-matrix.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Binary_Search/search-a-2d-matrix.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Binary_Search/search-a-2d-matrix.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # IDEA : MATRIX IN ORDER + BRUTE FORCE # Space: O(1) # Time: O(m+n) # worst case class Solution: def searchMatrix(self, matrix, target): if len(matrix) == 0: return False row, col = 0, len(matrix[0]) - 1 while row < len(matrix) and col >= 0: if matrix[r...
31
88
0.525443
1a2980499f1cb74d4f7ba79c037d2762c8e3c233
5,593
py
Python
spider/pixiv/crawler/crawl_illust.py
youyouzh/u_base
f2f81f837258df6f57cdfc3f3f579049935f5a22
[ "Apache-2.0" ]
4
2020-03-29T15:01:18.000Z
2020-06-22T08:06:00.000Z
spider/pixiv/crawler/crawl_illust.py
youyouzh/python-base
1959812d026faf9d23ff758ca06f1a13a3cce3c4
[ "Apache-2.0" ]
null
null
null
spider/pixiv/crawler/crawl_illust.py
youyouzh/python-base
1959812d026faf9d23ff758ca06f1a13a3cce3c4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import os import datetime import time import threadpool import re import u_base.u_log as log from spider.pixiv.pixiv_api import AppPixivAPI from spider.pixiv.mysql.db import save_illustration CONFIG = json.load(open(r'config\config.json', encoding='utf-8')) _...
39.111888
120
0.621312
1a29d2282799ba47291b836b3b2e55a0cdb6eac7
2,866
py
Python
backend/api/python_http_client/kfp_server_api/models/job_mode.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
backend/api/python_http_client/kfp_server_api/models/job_mode.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
backend/api/python_http_client/kfp_server_api/models/job_mode.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# coding: utf-8 """ Kubeflow Pipelines API This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import s...
28.098039
124
0.581647
1a2a2275d20e0ca0b11c5163d8639be17e0baed9
1,854
py
Python
oscar/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_urls.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_urls.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_urls.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django import template from django.contrib.admin.utils import quote from django.urls import Resolver404, get_script_prefix, resolve from django.utils.http import urlencode from django.utils.six.moves.urllib.parse import parse_qsl, urlparse, urlunparse register = template.Library() @register.filter def...
33.107143
94
0.685545
1a2a3099b9c55fed502930f5faede1920572c47c
1,116
py
Python
mps_database/runtime/threshold_alt3_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
null
null
null
mps_database/runtime/threshold_alt3_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
1
2017-07-07T21:31:59.000Z
2017-07-07T21:31:59.000Z
mps_database/runtime/threshold_alt3_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
4
2017-07-07T20:10:54.000Z
2020-12-13T00:03:37.000Z
from sqlalchemy import Column, Integer, String, ForeignKey, Float, DateTime, func from sqlalchemy.orm import relationship, backref from mps_database.runtime import RuntimeBase class ThresholdAlt3History(RuntimeBase): """ Threshold class (thresholds table) Properties: i[0-3]_[l|h]: last alternative LCLS-II t...
31
81
0.729391
1a2a83dfd9012add61f77fd251d5a64ebdc6af93
246
py
Python
manage.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
manage.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
manage.py
nerdfiles/jahjah_works
5d7f26dc8001b5dcb0c20b85e6ed247c4c7a00da
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jahjahworks.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
27.333333
73
0.800813
1a2a9d14858f571f7df20e5c7d2e800810ea3098
1,836
py
Python
nicos_mlz/antares/setups/rm_filterwheel.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/antares/setups/rm_filterwheel.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/antares/setups/rm_filterwheel.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'ANTARES filter wheel' group = 'optional' tango_base = 'tango://antareshw.antares.frm2:10000/antares/' devices = dict( # PB-Filter pbfilter_io = device('nicos.devices.entangle.DigitalOutput', description = 'Tango device for Pb filter in/out', tangodevice...
31.118644
80
0.567538
1a2aa3bcb0c94e78637c8e8fd77a0c0ca9388af2
1,221
py
Python
main/courses/management/commands/gen_active_course_reports.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/courses/management/commands/gen_active_course_reports.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/courses/management/commands/gen_active_course_reports.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from c2g.models import * from django.contrib.auth.models import User,Group from django.db import connection, transaction from courses.reports.tasks import generate_and_email_reports from datetime import datetime, timedelta class Command(BaseCommand): ...
61.05
264
0.74611
1a2af533776f8c17c702ef83c836f001019828b1
2,488
py
Python
xos/core/xoslib/methods/vtn.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/vtn.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/vtn.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from rest_framework import generics from rest_framework import viewsets from rest_framework.decorators import detail_route, list_route from rest_f...
38.276923
122
0.697749
1a2afb441c8ba95fedd7812ed0f8beccc07d343e
3,081
py
Python
pa2checker/pa2checker.py
aas-integration/integration-test2
dc9a9b4593cd59841f0d8348056cbff80a9c2a21
[ "MIT" ]
3
2016-10-10T20:18:51.000Z
2018-05-01T19:42:10.000Z
pa2checker/pa2checker.py
aas-integration/integration-test2
dc9a9b4593cd59841f0d8348056cbff80a9c2a21
[ "MIT" ]
38
2016-08-22T03:20:25.000Z
2018-06-11T19:13:05.000Z
pa2checker/pa2checker.py
aas-integration/integration-test2
dc9a9b4593cd59841f0d8348056cbff80a9c2a21
[ "MIT" ]
7
2016-08-29T17:37:42.000Z
2022-01-28T00:30:10.000Z
import sys, os import shutil, tempfile import common SOLVER_SRC_DIR = os.path.join(common.TOOLS_DIR, 'ontology', 'src', 'ontology') def revert_checker_source(): with common.cd(SOLVER_SRC_DIR): common.run_cmd(['git', 'clean', '-f', '.']) common.run_cmd(['git', 'checkout', '.']) def insert_ontology_value(val...
34.233333
91
0.673158
1a2b392f253736e755a6c5ca1de09311ad74f354
439
py
Python
ses_analytics/views.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
1
2018-11-16T22:20:13.000Z
2018-11-16T22:20:13.000Z
ses_analytics/views.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
null
null
null
ses_analytics/views.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
1
2018-11-16T22:20:17.000Z
2018-11-16T22:20:17.000Z
import os.path from django.http import HttpResponse # TODO: detect if request is coming from mobile device def img1x1(request): """ 1x1 image which is inserted in emails to track email openning """ data = open(os.path.normpath(os.path.join(os.path.abspath(__file__), '..', 'static', 'img', '1x1.gif'))).read() ...
36.583333
115
0.699317
1a2b3d1c5bdae76249a8ebd3081fc5606ea36eff
9,861
py
Python
scf/ciah.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/ciah.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/ciah.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # import sys import time import numpy import scipy.linalg from pyscf import lib from pyscf.lib import logger def expmat(a): return scipy.linalg.expm(a) class CIAHOptimizer(lib.StreamObject): def __init__(self): self.conv_tol_grad = 1...
35.728261
101
0.523781
1a2b3fb8e0cc6e976faebbbc3abbe1f121f142b2
3,964
py
Python
speedcom/core.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
1
2019-02-20T05:11:16.000Z
2019-02-20T05:11:16.000Z
speedcom/core.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
speedcom/core.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
import os import speedcom.utilities as utilities import speedcom.NNModels as NNModels import speedcom.data_extract as data_extract #import speedcom def initiate_molecules(data_dir, test=False): """ Takes in the directory containing all of the data files and returns a list of populated molecule objects. ...
38.862745
79
0.60999
1a2b49a0e13ed4920a360a015151bf7a3aa014e7
13,714
py
Python
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_runner.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_runner.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/source_control/gitlab/gitlab_runner.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Raphaël Droz (raphael.droz@gmail.com) # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # Copyright: (c) 2018, Samy Coenen <samy.coenen@nubera.be> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) f...
33.367397
137
0.644378
1a2b91e09d12c25870c162195c9986e820b2d39a
3,157
py
Python
utils/core.py
chiutaiyin/Iterative-feature-transformation-for-style-transfer
9eab3e2b8b33a000db09906bac6a8659ec9a628b
[ "MIT" ]
5
2020-08-24T10:17:09.000Z
2021-01-14T02:25:24.000Z
utils/core.py
chiutaiyin/Iterative-feature-transformation-for-style-transfer
9eab3e2b8b33a000db09906bac6a8659ec9a628b
[ "MIT" ]
1
2020-10-12T05:43:45.000Z
2020-10-12T05:43:45.000Z
utils/core.py
chiutaiyin/Iterative-feature-transformation-for-style-transfer
9eab3e2b8b33a000db09906bac6a8659ec9a628b
[ "MIT" ]
2
2020-12-07T09:17:46.000Z
2021-01-10T09:14:06.000Z
import tensorflow as tf import numpy as np from utils.aux import * # shape of feat = (batch_size, C, HW) def stylize_zca(c_feat, s_feats, weights): m_c = tf.reduce_mean(c_feat, axis=-1, keepdims=True) m_ss = [tf.reduce_mean(s_feat, axis=-1, keepdims=True) for s_feat in s_feats] c_feat = c_feat - m_c ...
48.569231
110
0.670257
1a2ba82beeb1eeebb9afee8770efe30e4d94b1d7
2,474
py
Python
google-cloud-sdk/lib/surface/deployment_manager/runtime_configs/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/deployment_manager/runtime_configs/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/deployment_manager/runtime_configs/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google 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 by applicable law or ag...
28.767442
80
0.694422
1a2bf17480e56920a238b19932290b82048d2e40
6,498
py
Python
openpnm/models/phases/diffusivity.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2021-07-20T13:56:57.000Z
2021-07-20T13:56:57.000Z
openpnm/models/phases/diffusivity.py
jgostick/openpnm
8298608a38f6aae4a96b0f3b9dd9b9e4460e8692
[ "MIT" ]
null
null
null
openpnm/models/phases/diffusivity.py
jgostick/openpnm
8298608a38f6aae4a96b0f3b9dd9b9e4460e8692
[ "MIT" ]
null
null
null
r""" .. autofunction:: openpnm.models.phases.diffusivity.fuller .. autofunction:: openpnm.models.phases.diffusivity.fuller_scaling .. autofunction:: openpnm.models.phases.diffusivity.tyn_calus .. autofunction:: openpnm.models.phases.diffusivity.tyn_calus_scaling .. autofunction:: openpnm.models.phases.diffusivity.chap...
31.697561
84
0.667898
1a2bf599640aa3189f0f58ad4628e34549e5c1cc
8,700
py
Python
molotov/run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
401
2017-01-25T13:42:37.000Z
2022-03-27T21:29:18.000Z
molotov/run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
131
2017-01-19T20:34:40.000Z
2022-03-02T12:49:32.000Z
molotov/run.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
31
2017-01-26T01:18:55.000Z
2022-03-25T15:11:42.000Z
import os import sys import argparse import platform from importlib import import_module from importlib.util import spec_from_file_location, module_from_spec from molotov.runner import Runner from molotov.api import get_scenarios, get_scenario from molotov import __version__ from molotov.util import expand_options, O...
26.687117
86
0.578276
1a2bf9033f89faf67dae36401e0db7d7584351b6
268,607
py
Python
pyIsoDep/tests/pregenerated_xs.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
1
2022-01-04T22:21:18.000Z
2022-01-04T22:21:18.000Z
pyIsoDep/tests/pregenerated_xs.py
DanKotlyar/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
d9da8be6eff4ba301f9689ce5c38a5e50856d033
[ "MIT" ]
null
null
null
pyIsoDep/tests/pregenerated_xs.py
DanKotlyar/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
d9da8be6eff4ba301f9689ce5c38a5e50856d033
[ "MIT" ]
null
null
null
import numpy as np flux = 3.465109915048278e+14 ID = np.array([ 10010, 10020, 10030, 10040, 20030, 20040, 20050, 20060, 20080, 30040, 30050, 30060, 30070, 30080, 30090, 40060, 40070, 40080, 40090, 40100, 40110, 40120, 50080, 50090, 50100, 50110, 50120, 60080, 60120, 60130, 60140, 60150, 70120, 70130, 70140, 70150, 701...
19.237055
28
0.23878
1a2c3a7cf09bee40e8a26a79e1f13d74175ab286
715
py
Python
news/urls.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
1
2015-05-04T09:28:14.000Z
2015-05-04T09:28:14.000Z
news/urls.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
news/urls.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
######################################################################## # vim: fileencoding=utf-8 ts=8 noexpandtab : # # ~~~~ Maiznet.fr ~~~~ # # -> news/urls.py # # # Copyright 2011 Rémy Sanchez <remy.sanchez@hyperthese.net> # # This file is distributed under the terms of the WTFPL. For more # informations, see http...
32.5
97
0.553846
1a2cae4b6bc74340e384257f08abad4a687ffd7b
765
py
Python
ilmulti/translator/args.py
rahulraj80/ilmulti
7380815b3fa43bdda55f5d4681579f21477229dd
[ "MIT" ]
20
2020-03-04T15:33:52.000Z
2021-11-14T17:18:39.000Z
ilmulti/translator/args.py
rahulraj80/ilmulti
7380815b3fa43bdda55f5d4681579f21477229dd
[ "MIT" ]
7
2020-08-10T11:20:29.000Z
2021-03-04T02:25:21.000Z
ilmulti/translator/args.py
rahulraj80/ilmulti
7380815b3fa43bdda55f5d4681579f21477229dd
[ "MIT" ]
6
2020-07-20T13:19:00.000Z
2021-04-08T11:33:02.000Z
from collections import namedtuple class Args: """ Adapter to sub in for the namespace so the SequenceGenerator can be created from fairseq. """ def __init__(self, **kwargs): self.custom_set = set() self.enhance(**kwargs) def __getattr__(self, key): return self.__dict_...
27.321429
74
0.577778
1a2cb1420fa39e4ad366e42d18fc39208478ea1c
19,567
py
Python
mmdet/models/backbones/preresnet.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmdet/models/backbones/preresnet.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmdet/models/backbones/preresnet.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*- import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import constant_init, kaiming_init from mmcv.runner import load_checkpoint from torch.nn.modules.batchnorm import _BatchNorm from mmdet.models.plugins import GeneralizedAttention from mmdet.ops import ContextBlock from mmdet.u...
34.631858
132
0.527521
1a2cbd7327d8162ff6fc7100601cea8120c45452
4,252
py
Python
examples/RDS_VPC.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2021-04-03T22:24:36.000Z
2021-04-03T22:24:36.000Z
examples/RDS_VPC.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
examples/RDS_VPC.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
5
2020-05-10T13:50:32.000Z
2021-09-09T09:06:54.000Z
# Converted from RDS_VPC.template located at: # http://aws.amazon.com/cloudformation/aws-cloudformation-templates/ from troposphere import GetAtt, Join, Output, Parameter, Ref, Template from troposphere.ec2 import SecurityGroup from troposphere.rds import DBInstance, DBSubnetGroup t = Template() t.set_description( ...
31.264706
79
0.667921
1a2ce9c1bcd1b2ac47675003c0d684167635f2a2
1,121
py
Python
app/main/views.py
Nur-tusa/Nur-tusa-news
4d154d0b8398eeb6b023478a4564736606914c9a
[ "CNRI-Python" ]
null
null
null
app/main/views.py
Nur-tusa/Nur-tusa-news
4d154d0b8398eeb6b023478a4564736606914c9a
[ "CNRI-Python" ]
null
null
null
app/main/views.py
Nur-tusa/Nur-tusa-news
4d154d0b8398eeb6b023478a4564736606914c9a
[ "CNRI-Python" ]
null
null
null
from flask import render_template,request,redirect,url_for from . import main from ..request import get_source,get_articles # Views #displaying the source on the homepage @main.route('/') def index(): ''' View root page function that returns the index page and its data ''' response=get_source('sourc...
23.851064
87
0.694915
1a2d0526a2d8facfab2194bcb2409429cc29e0a9
25,995
py
Python
selfdrive/controls/lib/events.py
lispain/081ATOM_NIRO
b50a79ab2080b5e359329420a958803e9e20b598
[ "MIT" ]
2
2021-02-14T12:03:07.000Z
2021-03-18T01:52:24.000Z
selfdrive/controls/lib/events.py
hikee9123/openpilot_081
eb597ca8f507bc111934b8991351b1cabce7763b
[ "MIT" ]
null
null
null
selfdrive/controls/lib/events.py
hikee9123/openpilot_081
eb597ca8f507bc111934b8991351b1cabce7763b
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import Dict, Union, Callable, Any from cereal import log, car import cereal.messaging as messaging from common.realtime import DT_CTRL from selfdrive.config import Conversions as CV from selfdrive.locationd.calibrationd import MIN_SPEED_FILTER AlertSize = log.ControlsState.AlertSi...
32.657035
116
0.673053
1a2d23574cee7e4ff6758764c0ef781f8f82d0e0
16,735
py
Python
allennlp/semparse/contexts/atis_tables.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/contexts/atis_tables.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
allennlp/semparse/contexts/atis_tables.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
1
2018-08-30T17:08:16.000Z
2018-08-30T17:08:16.000Z
from typing import List, Dict from datetime import datetime import re from collections import defaultdict from allennlp.data.tokenizers import Token TWELVE_TO_TWENTY_FOUR = 1200 HOUR_TO_TWENTY_FOUR = 100 HOURS_IN_DAY = 2400 AROUND_RANGE = 30 def get_times_from_utterance(utterance: str) -> List[str]: """ Give...
42.691327
97
0.469316
1a2d5faa94f44c6882f5225c4a6338b1f086c569
5,214
py
Python
pctm.py
Pogozhelskaya/pctm
7c858899e87544eee9efdd67d59ac518d88b0d4e
[ "MIT" ]
null
null
null
pctm.py
Pogozhelskaya/pctm
7c858899e87544eee9efdd67d59ac518d88b0d4e
[ "MIT" ]
null
null
null
pctm.py
Pogozhelskaya/pctm
7c858899e87544eee9efdd67d59ac518d88b0d4e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Command-Line interface for interacting with Turing Machines and Grammars for primality check """ import argparse from datetime import timedelta from timeit import default_timer as timer from typing import Tuple, List, Union from pyformlang import cfg from src.context_s...
35.712329
128
0.644227
1a2d77d925558b7d3ac83cf6191ac6e704aadb24
2,507
py
Python
magicdice/utils.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
5
2019-02-26T21:59:21.000Z
2019-05-28T06:32:06.000Z
magicdice/utils.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
null
null
null
magicdice/utils.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
null
null
null
import hashlib import hmac import json import re from steem import Steem from steem.amount import Amount def get_steem_client(keys=None): """Helper function to get the Steem client :return (steem.Steem): Main steem instance """ return Steem(nodes=["https://api.steemit.com"], keys=keys) def get_op_...
29.845238
79
0.683287
1a2d9a029a0da719b17b02b5a77ecd870c907fd2
3,062
py
Python
posetta/writers/proj.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
2
2018-05-15T00:50:34.000Z
2019-02-25T11:08:27.000Z
posetta/writers/proj.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
13
2018-07-06T08:52:52.000Z
2018-12-07T13:49:34.000Z
posetta/writers/proj.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
2
2018-04-28T14:31:40.000Z
2018-05-14T21:19:27.000Z
"""Simple format readable by PROJ Description: ------------ PROJ reads files on a line by line basis. Each line contains a coordinate and possibly a comment. A coordinate is made up of two to four numbers, usually ordered as x, y, z, t, but this isn't a requirement. Anything after a # is considered a comment by PROJ....
38.275
85
0.570216
1a2d9de13fbbe70c2ad5c15ad396cebd1fa65ffe
29,000
py
Python
src/htrun/host_tests_runner/host_test_default.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
src/htrun/host_tests_runner/host_test_default.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
src/htrun/host_tests_runner/host_test_default.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """Default host test.""" import re import sys import traceback from time import time from sre_compile import error from multiprocessing import Process, Queue from .. import host_tests_plugins, BaseHostTes...
43.090639
88
0.525966
1a2da46b7203b449f40d81b55481e5ce9946e8ec
32
py
Python
scvelo/pymc.py
AlexanderAivazidis/scvelo
b59e42aaa7206c59dab6f1ffcc6d373cc4a03ae6
[ "BSD-3-Clause" ]
null
null
null
scvelo/pymc.py
AlexanderAivazidis/scvelo
b59e42aaa7206c59dab6f1ffcc6d373cc4a03ae6
[ "BSD-3-Clause" ]
null
null
null
scvelo/pymc.py
AlexanderAivazidis/scvelo
b59e42aaa7206c59dab6f1ffcc6d373cc4a03ae6
[ "BSD-3-Clause" ]
null
null
null
from scvelo.tools.pymc import *
16
31
0.78125
1a2dc61a2fa4659a6fa855d5fcd868622f15efb4
26,335
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/operations/_alert_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/operations/_alert_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/operations/_alert_rules_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 ...
41.277429
176
0.672375
1a2de76b2ccbecb9181f76a36b3e831a4de36271
588
py
Python
dataset_cleaning/eval_MIMICIV.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
1
2021-01-28T22:27:55.000Z
2021-01-28T22:27:55.000Z
dataset_cleaning/eval_MIMICIV.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
null
null
null
dataset_cleaning/eval_MIMICIV.py
jrepifano/mortality-tool
5503f1cddee5654219ef1aed4d2128e30058ae28
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from sklearn.experimental import enable_iterative_imputer from sklearn.impute import IterativeImputer from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import mutual_info_classif id = 'subject_id' # I get tired of typing this labels = pd....
36.75
62
0.777211
1a2df8efe8b012c8f65664c5211bd2c620a56527
528
py
Python
gammapy/makers/background/__init__.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/makers/background/__init__.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/makers/background/__init__.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
from .fov import FoVBackgroundMaker from .phase import PhaseBackgroundMaker from .reflected import ( ReflectedRegionsBackgroundMaker, ReflectedRegionsFinder, RegionsFinder, WobbleRegionsFinder, ) from .ring import RingBackgroundMaker, AdaptiveRingBackgroundMaker __all__ = [ "AdaptiveRingBackground...
24
66
0.768939
1a2dfe889360eea2844bc8b270a5cbacf4b1256d
1,734
py
Python
django_prbac/admin.py
titanjer/django-prbac
4048afd67b2e2f42292d3df74cf7bb3cf815590b
[ "BSD-3-Clause" ]
null
null
null
django_prbac/admin.py
titanjer/django-prbac
4048afd67b2e2f42292d3df74cf7bb3cf815590b
[ "BSD-3-Clause" ]
null
null
null
django_prbac/admin.py
titanjer/django-prbac
4048afd67b2e2f42292d3df74cf7bb3cf815590b
[ "BSD-3-Clause" ]
null
null
null
# Use modern Python from __future__ import unicode_literals, absolute_import, print_function # Django imports from django import forms from django.contrib import admin # External librariess import simplejson # Local imports import django_prbac.csv from django_prbac.models import * from django_prbac.forms import Stri...
20.642857
81
0.659746
1a2dfefc59f46fe562862fc17babb6485a35da29
212,109
py
Python
toontown/toon/NPCToons.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/toon/NPCToons.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/toon/NPCToons.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random import string import sys, os from toontown.toon import ToonDNA from pandac.PandaModules import * from toontown.hood import ZoneUtil from toontown.nametag import NametagGlobals from toontown.toonbase import TTLocalizer from toontown.toonbase import ToontownBattleGlobals from toontown.toonbase import Toonto...
15.711778
229
0.266387
1a2e13b74d75303a0fcbf526d0bc9042f4f7dd9c
608
py
Python
fjordkraft/models.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
fjordkraft/models.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
fjordkraft/models.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, DateTime, Numeric, ForeignKey from sqlalchemy.ext.declarative import declarative_base from .connection import make_engine Base = declarative_base() class Region(Base): __tablename__ = "region" id = Column(Integer, primary_key=True) region_name = Column(Stri...
26.434783
77
0.748355
1a2e1af087fbb61bfb8b8922d1b775de459026a8
536
py
Python
src/test_only_plugins/bitbucket/mixins.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/bitbucket/mixins.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/bitbucket/mixins.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import logging from sentry.exceptions import PluginError from test_only_plugins.base import CorePluginMixin from .client import BitbucketClient class BitbucketMixin(CorePluginMixin): logger = logging.getLogger("sentry.plugins.bitbucket") title = "Bitbucket" def...
24.363636
88
0.742537
1a2e53b847129117bb32dff3aebc4b828ea3863f
102,588
py
Python
pygluu/kubernetes/kustomize.py
mirr254/cloud-native-edition
c75964f1112e2cbd7d3424d04f761338aab2c5cc
[ "Apache-2.0" ]
null
null
null
pygluu/kubernetes/kustomize.py
mirr254/cloud-native-edition
c75964f1112e2cbd7d3424d04f761338aab2c5cc
[ "Apache-2.0" ]
null
null
null
pygluu/kubernetes/kustomize.py
mirr254/cloud-native-edition
c75964f1112e2cbd7d3424d04f761338aab2c5cc
[ "Apache-2.0" ]
null
null
null
""" License terms and conditions for Gluu Cloud Native Edition: https://www.apache.org/licenses/LICENSE-2.0 """ import shutil import os import time import socket import base64 import contextlib from pathlib import Path from ast import literal_eval from .yamlparser import Parser from .common import get_logger, copy, e...
61.651442
120
0.603745
1a2e58f4c7b3dd547d246fe3e2749268de5bc7ea
665
py
Python
gaphor/diagram/actions/__init__.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/actions/__init__.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/actions/__init__.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
from gaphor.diagram.actions.action import ( ActionItem, SendSignalActionItem, AcceptEventActionItem, ) from gaphor.diagram.actions.activitynodes import ( ActivityNodeItem, ActivityFinalNodeItem, FlowFinalNodeItem, ForkNodeItem, DecisionNodeItem, InitialNodeItem, ) from gaphor.diagram...
22.166667
60
0.738346
1a2e69c6be9060733f743c99771a3749e9dc8692
282
py
Python
interfaces/meals.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
interfaces/meals.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
interfaces/meals.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
# # meals.py : Interface to access meals. # from interfaces import app import json from query import Meals from query import Food2fork def get_meals(queryrequest, number=5): foodobject = Food2fork(queryrequest) meals = Meals(foodobject) return meals.get_meals(number)
20.142857
40
0.758865
1a2e6f80d56bf8be2c41fc2da9cd0c0e9825ca33
9,434
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_hts221.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_hts221.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_hts221.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 Bryan Siepert for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_hts221` ================================================================================ Helper library for the HTS221 Humidity and Temperature Sensor * Author(s): Bryan Siepert Implementation Notes -...
37.141732
99
0.619674
1a2e74cfa98912b4d566aeedc0918f6f91242f67
11,885
py
Python
nettools/core/ipv4_network.py
BioTheWolff/subnetwork-constructor
1834ee3ef98dfeca2906a96a2a914a962ccb6b04
[ "MIT" ]
6
2019-07-28T09:57:39.000Z
2019-08-28T22:02:02.000Z
nettools/core/ipv4_network.py
BioTheWolff/subnetwork-constructor
1834ee3ef98dfeca2906a96a2a914a962ccb6b04
[ "MIT" ]
6
2020-01-05T20:34:35.000Z
2020-03-03T16:05:46.000Z
nettools/core/ipv4_network.py
BioTheWolff/NetworkUtilities
1834ee3ef98dfeca2906a96a2a914a962ccb6b04
[ "MIT" ]
null
null
null
from nettools.utils.errors import MaskLengthOffBoundsException, \ RFCRulesWrongCoupleException, \ RFCRulesIPWrongRangeException, MaskNotProvided, IncorrectMaskException, BytesLengthException, \ ByteNumberOffLimitsException from nettools.utils.utils import Utils from nettools.utils.ip_class import FourBytesL...
34.152299
120
0.588978
1a2e7a07c267eb6039a165a208867b6fb3615bff
27,740
py
Python
src/sardana/taurus/qt/qtgui/macrolistener/macrolistener.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/qt/qtgui/macrolistener/macrolistener.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/qt/qtgui/macrolistener/macrolistener.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
39.57204
79
0.599459
1a2ecb255b4155ad265b3f3067fad5454f01a1b3
49,412
py
Python
kivy/core/window/__init__.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/core/window/__init__.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/core/window/__init__.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
# pylint: disable=W0611 # coding: utf-8 ''' Window ====== Core class for creating the default Kivy window. Kivy supports only one window per application: please don't try to create more than one. ''' __all__ = ('Keyboard', 'WindowBase', 'Window') from os.path import join, exists from os import getcwd from kivy.core...
34.870854
80
0.586092
1a2eff72245f196576db87587bf0ecc1b0819cce
7,359
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bitmap_font/bdf.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bitmap_font/bdf.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bitmap_font/bdf.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_bitmap_font.bdf` ==================================================== Loads BDF format fonts. * Author(s): Scott Shawcroft Implementation Notes -------------------- **Hardware:** **Software and De...
34.549296
102
0.4805
1a2f2822f81fe36b28f6dd2487506ab31227c11b
3,974
py
Python
gslib/tests/test_execution_util.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_execution_util.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_execution_util.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Google 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 require...
39.346535
76
0.71238
1a2f318380d27f90a9f3d30e3f8393cadd4da648
246
py
Python
0x05-python-exceptions/100-safe_print_integer_err.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x05-python-exceptions/100-safe_print_integer_err.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x05-python-exceptions/100-safe_print_integer_err.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys def safe_print_integer_err(value): is_int = True try: print("{:d}".format(value)) except Exception as e: print("Exception:", e, file=sys.stderr) is_int = False return is_int
18.923077
47
0.613821
1a2f4e20d52fd7abc28470acbfa72929fc69b781
3,291
py
Python
pait/app/starlette/_route.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
19
2020-08-26T13:46:33.000Z
2022-02-22T07:48:29.000Z
pait/app/starlette/_route.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
1
2021-06-06T17:45:54.000Z
2021-06-06T17:45:54.000Z
pait/app/starlette/_route.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
1
2022-01-21T20:25:33.000Z
2022-01-21T20:25:33.000Z
import logging from typing import Any, Dict, List, Optional from starlette.applications import Starlette from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import HTMLResponse, JSONResponse from starlette.routing import Mount, Route from pait.api_doc.html im...
37.397727
120
0.659982
1a2f5fe5fbbe5ca306f72443569c2a9f39d15f63
1,532
py
Python
TestSuite/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
TestSuite/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
TestSuite/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import json from pathlib import Path from typing import List, Optional class ConfJSON: def __init__(self, dir_path: Path, name: str, prefix: str): self._dir_path = dir_path self.name = f'{prefix.rstrip("-")}-{name}' self._file_path = dir_path / name self.path = str(self._file_path)...
35.627907
64
0.606397
1a2f628c8110b8d4f0d62d7b9055720ae4baad17
8,233
py
Python
PriQ/PriQ.py
mouleja/PriQ
72594250a371d87fa711eea3e9201e94a221c381
[ "MIT" ]
null
null
null
PriQ/PriQ.py
mouleja/PriQ
72594250a371d87fa711eea3e9201e94a221c381
[ "MIT" ]
null
null
null
PriQ/PriQ.py
mouleja/PriQ
72594250a371d87fa711eea3e9201e94a221c381
[ "MIT" ]
null
null
null
import random class PriQ(object): '''Binary-Heap based Priority Queue with uniquely named elements, name may \ be any hashable type. Defaults to min-heap, set maxpq=True for max-heap. \ Public methods: put, get, remove, update, contains, front, get_priority.''' def __init__(self, maxpq = False): ...
41.791878
105
0.530791
1a2f9090d50fcfe7a07ab9ca7cee5c030f101b59
7,560
py
Python
tensorflow_federated/python/learning/federated_averaging_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
2
2019-07-09T10:04:39.000Z
2019-10-02T05:10:16.000Z
tensorflow_federated/python/learning/federated_averaging_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/federated_averaging_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018, The TensorFlow Federated 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 ...
37.241379
80
0.705159