hexsha stringlengths 40 40 | size int64 3 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 972 | max_stars_repo_name stringlengths 6 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses sequencelengths 1 10 | max_stars_count int64 1 191k ⌀ | 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 3 972 | max_issues_repo_name stringlengths 6 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses sequencelengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 3 972 | max_forks_repo_name stringlengths 6 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses sequencelengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 3 1.03M | avg_line_length float64 1.13 941k | max_line_length int64 2 941k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
117cd8a1fc1b6cb288bd166e5b1de8219dbef713 | 1,968 | py | Python | parser/python/validate.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | parser/python/validate.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | parser/python/validate.py | jnorwood/NNEF-Tools | 5eb3755b5322040d42893e41b15093337abe04ce | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 36.444444 | 117 | 0.643293 |
82654da5b66d8c54bff2b307bcff5b804bd3119c | 18,195 | py | Python | armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 TerraPower, 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 writi... | 37.985386 | 112 | 0.614784 |
afa51d355786df98b0025450846ad5820c6447a0 | 761 | py | Python | code/exercises/07_DataStructures/ex_07_05_sequence.py | chiachang100/LearnToCodeWithPython | fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52 | [
"Apache-2.0"
] | null | null | null | code/exercises/07_DataStructures/ex_07_05_sequence.py | chiachang100/LearnToCodeWithPython | fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52 | [
"Apache-2.0"
] | null | null | null | code/exercises/07_DataStructures/ex_07_05_sequence.py | chiachang100/LearnToCodeWithPython | fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Filename: ex_sequence.py
shoplist = ['apple', 'mango', 'carrot', 'banana']
name = 'swaroop'
# Indexing or 'Subscription' operation
print('Item 0 is', shoplist[0])
print('Item 1 is', shoplist[1])
print('Item 2 is', shoplist[2])
print('Item 3 is', shoplist[3])
print('Item -1 is', shoplist[-1])
prin... | 27.178571 | 49 | 0.658344 |
7727c3a4fe50654ffd803485c0e0c94d2c96db3c | 121,553 | py | Python | salt/utils/parsers.py | eyj/salt | 5232d7f60cb78591d8bad25d796b0a945fc6350c | [
"Apache-2.0"
] | 2 | 2015-09-21T14:13:30.000Z | 2016-02-12T11:33:46.000Z | salt/utils/parsers.py | eyj/salt | 5232d7f60cb78591d8bad25d796b0a945fc6350c | [
"Apache-2.0"
] | null | null | null | salt/utils/parsers.py | eyj/salt | 5232d7f60cb78591d8bad25d796b0a945fc6350c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
salt.utils.parsers
~~~~~~~~~~~~~~~~~~
This is where all the black magic happens on all of salt's CLI tools.
'''
# pylint: disable=missing-docstring,protected-access,too-many-ancestors,too-few-public-methods
# pylint:... | 38.735819 | 110 | 0.543787 |
026962c395159a92f5db4dc41caa8e06f959058f | 443 | py | Python | ml/data_utils.py | wds-seu/Aceso | 70fca2b3ff810fa32b7ebe6edf0d264da126d521 | [
"MIT"
] | 1 | 2019-10-08T10:54:52.000Z | 2019-10-08T10:54:52.000Z | ml/data_utils.py | wds-seu/Aceso | 70fca2b3ff810fa32b7ebe6edf0d264da126d521 | [
"MIT"
] | null | null | null | ml/data_utils.py | wds-seu/Aceso | 70fca2b3ff810fa32b7ebe6edf0d264da126d521 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 _*-
from sklearn.model_selection import train_test_split
from utils.DataHelper import DataHelper
from config import DefaultConfig
opt = DefaultConfig()
def build_data():
x_text, y, vocabulary, vocabulary_inv = DataHelper(opt.train_data_root, train=True).load_text_data(op... | 34.076923 | 116 | 0.772009 |
161fc216cd97b68346d08db33a110ef3a04fb9bd | 5,738 | py | Python | betka/utils.py | phracek/betka | 12c920bd76d33f81bbf8cda6f27d673c8826cf9e | [
"MIT"
] | 1 | 2020-11-05T21:16:28.000Z | 2020-11-05T21:16:28.000Z | betka/utils.py | phracek/betka | 12c920bd76d33f81bbf8cda6f27d673c8826cf9e | [
"MIT"
] | 16 | 2020-03-20T11:23:27.000Z | 2022-03-08T17:09:11.000Z | betka/utils.py | phracek/betka | 12c920bd76d33f81bbf8cda6f27d673c8826cf9e | [
"MIT"
] | 1 | 2020-03-11T09:29:48.000Z | 2020-03-11T09:29:48.000Z | # MIT License
#
# Copyright (c) 2020 SCL team at Red Hat
#
# 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 use, copy, modify,... | 32.788571 | 89 | 0.66626 |
5d0138a06f2443ef3fc96673c74b3944b37a3723 | 1,782 | py | Python | torch_glow/tests/nodes/avgpool1d_test.py | YaronBenAtar/glow | a13706a4239fa7eaf059c670dc573e3eb0768f86 | [
"Apache-2.0"
] | 2,838 | 2018-05-02T16:57:22.000Z | 2022-03-31T14:35:26.000Z | torch_glow/tests/nodes/avgpool1d_test.py | YaronBenAtar/glow | a13706a4239fa7eaf059c670dc573e3eb0768f86 | [
"Apache-2.0"
] | 4,149 | 2018-05-02T17:50:14.000Z | 2022-03-31T23:56:43.000Z | torch_glow/tests/nodes/avgpool1d_test.py | LaudateCorpus1/glow-1 | cda5383b1609ebad1a3631ca77b41b8a863443d4 | [
"Apache-2.0"
] | 685 | 2018-05-02T16:54:09.000Z | 2022-03-24T01:12:24.000Z | # Copyright (c) Glow Contributors. See CONTRIBUTORS file.
#
# 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 ... | 34.269231 | 88 | 0.708193 |
b1c5f4cfef4234cf455db73d71bf20f2ddeb87c5 | 15,306 | py | Python | python/ccxt/async_support/btcbox.py | atoll6/ccxt | 3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780 | [
"MIT"
] | 1 | 2018-08-20T09:38:13.000Z | 2018-08-20T09:38:13.000Z | python/ccxt/async_support/btcbox.py | atoll6/ccxt | 3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780 | [
"MIT"
] | null | null | null | python/ccxt/async_support/btcbox.py | atoll6/ccxt | 3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780 | [
"MIT"
] | 1 | 2021-09-16T08:33:31.000Z | 2021-09-16T08:33:31.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try... | 39.65285 | 170 | 0.531948 |
dbc4bc7d40e97ad6c5ca88fbb4c028df75f0f9d1 | 6,860 | py | Python | raasbot/api/views.py | kneeraazon01/raasbot | 932648a6017cc5f888038ad3c54bb59c35deadf8 | [
"Apache-2.0"
] | null | null | null | raasbot/api/views.py | kneeraazon01/raasbot | 932648a6017cc5f888038ad3c54bb59c35deadf8 | [
"Apache-2.0"
] | null | null | null | raasbot/api/views.py | kneeraazon01/raasbot | 932648a6017cc5f888038ad3c54bb59c35deadf8 | [
"Apache-2.0"
] | null | null | null | import json
from django.http import JsonResponse
from raasbot.settings import BASE_DIR
from random import choice
from os import path
from core.models import (
User,
Bot,
ScrapedUser,
UserMessageData,
Message,
Text,
LogData
)
def get_essentials(request):
data = json.loads... | 31.46789 | 168 | 0.528134 |
947964009551475601d73b7ef519a2e87594ff86 | 39 | py | Python | packages/jsii-rosetta/test/translations/calls/method_call.py | NGL321/jsii | a31ebf5ef676391d97f2286edc21e5859c38c96c | [
"Apache-2.0"
] | 1,639 | 2019-07-05T07:21:00.000Z | 2022-03-31T09:55:01.000Z | packages/jsii-rosetta/test/translations/calls/method_call.py | NGL321/jsii | a31ebf5ef676391d97f2286edc21e5859c38c96c | [
"Apache-2.0"
] | 2,704 | 2019-07-01T23:10:28.000Z | 2022-03-31T23:40:12.000Z | packages/jsii-rosetta/test/translations/calls/method_call.py | NGL321/jsii | a31ebf5ef676391d97f2286edc21e5859c38c96c | [
"Apache-2.0"
] | 146 | 2019-07-02T14:36:25.000Z | 2022-03-26T00:21:27.000Z | some_object.call_some_function(1, 2, 3) | 39 | 39 | 0.820513 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 8