hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2f7b4648705b0febcbb5851c8b2f61531c6ee3c6
5,397
py
Python
tests/ut/python/parallel/test_unsortedsegmentsum.py
peng-zhihui/mindspore
4e0bc761b228cece8b24a280f15b0915959071dc
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
tests/ut/python/parallel/test_unsortedsegmentsum.py
77zmf/mindspore
4e0bc761b228cece8b24a280f15b0915959071dc
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_unsortedsegmentsum.py
77zmf/mindspore
4e0bc761b228cece8b24a280f15b0915959071dc
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.110429
78
0.698907
d8a438d04de63bf4bcfe5d345085d6e46b19415d
2,350
py
Python
diagnostics/stratonovich_scalar.py
emaballarin/torchsde
83373b30c9bd447ec32a8c286c42a4cf5e9753a6
[ "Apache-2.0" ]
984
2020-07-06T23:15:17.000Z
2022-03-31T10:09:49.000Z
diagnostics/stratonovich_scalar.py
GabrielNobis/torchsde
53038a3efcd77f6c9f3cfd0310700a59be5d5d2d
[ "Apache-2.0" ]
95
2020-07-11T10:53:02.000Z
2022-03-30T21:33:56.000Z
diagnostics/stratonovich_scalar.py
GabrielNobis/torchsde
53038a3efcd77f6c9f3cfd0310700a59be5d5d2d
[ "Apache-2.0" ]
117
2020-07-07T20:05:05.000Z
2022-03-20T21:30:23.000Z
# Copyright 2020 Google 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, ...
40.517241
111
0.714468
0d0df5db6714986753ce616be85c1ab9301565a3
661
py
Python
common/role.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
common/role.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
common/role.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
class Role(object): vistor = 1 # 游客,无登录态 user = 2 # 用户 manager = 3 # 管理员 class RoleBuilder(object): def __init__(self): self.role = [] def append_vistor(self): self.role.append(Role.vistor) return self def append_user(self): self.role.append(Role.user) ...
18.361111
53
0.596067
7401f013b908e687c6f424e8627bfd490cff1749
3,156
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/credentials/tests/test_utils.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/credentials/tests/test_utils.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/credentials/tests/test_utils.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
"""Tests covering Credentials utilities.""" import uuid from unittest import mock from openedx.core.djangoapps.credentials.models import CredentialsApiConfig from openedx.core.djangoapps.credentials.tests import factories from openedx.core.djangoapps.credentials.tests.mixins import CredentialsApiConfigMixin from op...
34.304348
94
0.692966
e197512712815183282287183f2ae7fee192bfab
3,452
py
Python
test/test_calculate_cca.py
haydard/wyrm
ff3f675ea71a45f1dd91ecbc5944229ebb3342ec
[ "MIT" ]
null
null
null
test/test_calculate_cca.py
haydard/wyrm
ff3f675ea71a45f1dd91ecbc5944229ebb3342ec
[ "MIT" ]
null
null
null
test/test_calculate_cca.py
haydard/wyrm
ff3f675ea71a45f1dd91ecbc5944229ebb3342ec
[ "MIT" ]
null
null
null
from __future__ import division import unittest import numpy as np from numpy.random import randn np.random.seed(42) from wyrm.types import Data from wyrm.processing import append, swapaxes, calculate_cca, apply_spatial_filter class TestCalculateCCA(unittest.TestCase): SAMPLES = 1000 CHANNELS_X = 10 C...
38.355556
96
0.62949
733413b7147a166cda4a59fa9cf774d5b5df9012
1,215
py
Python
workalendar/europe/bulgaria.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
workalendar/europe/bulgaria.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
workalendar/europe/bulgaria.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from workalendar.core import WesternCalendar, ChristianMixin from workalendar.registry import iso_register @iso_register('BG') class Bulgaria(WesternCalendar, ChristianMixin): 'Bulgaria' FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + ( ...
37.96875
79
0.687243
a0d4dde1c37c5314ab203f58c234aedfa6afffbf
240
py
Python
library/github_repo.py
tflynn/appconf_aws_ansible
221a22f4867256a0c63db2f809d7d5938b75abcb
[ "MIT" ]
null
null
null
library/github_repo.py
tflynn/appconf_aws_ansible
221a22f4867256a0c63db2f809d7d5938b75abcb
[ "MIT" ]
null
null
null
library/github_repo.py
tflynn/appconf_aws_ansible
221a22f4867256a0c63db2f809d7d5938b75abcb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ansible.module_utils.basic import * def main(): module = AnsibleModule(argument_spec={}) response = {"hello": "world"} module.exit_json(changed=False, meta=response) if __name__ == '__main__': main()
17.142857
47
0.7
c17c5187610590bfe22c5a7a654d4c221addb17d
5,085
py
Python
dockerfile-templater.py
ongres/babelfish_install_tests
75ffbc01a9c696d51ab719b4b82d0a44e18269f5
[ "Apache-2.0" ]
null
null
null
dockerfile-templater.py
ongres/babelfish_install_tests
75ffbc01a9c696d51ab719b4b82d0a44e18269f5
[ "Apache-2.0" ]
null
null
null
dockerfile-templater.py
ongres/babelfish_install_tests
75ffbc01a9c696d51ab719b4b82d0a44e18269f5
[ "Apache-2.0" ]
null
null
null
import sys import glob import re distro=sys.argv[1] def get_step_name(step_path): path_parts = step_path.split("/") return path_parts[-1] def load_steps(distro): common_steps = glob.glob("steps/**") steps = {} for step_path in common_steps: step_name = get_step_name(step_path) st...
33.675497
132
0.649558
ff08a62bff865fad4406e4f93a6d25a52c8a6747
14,184
py
Python
neo3/storage/implementations/memory.py
ixje/neo-mamba
8b8a7bf2e600f89b91caff253f25c1c8afee6c0a
[ "MIT" ]
null
null
null
neo3/storage/implementations/memory.py
ixje/neo-mamba
8b8a7bf2e600f89b91caff253f25c1c8afee6c0a
[ "MIT" ]
null
null
null
neo3/storage/implementations/memory.py
ixje/neo-mamba
8b8a7bf2e600f89b91caff253f25c1c8afee6c0a
[ "MIT" ]
1
2021-05-12T08:23:33.000Z
2021-05-12T08:23:33.000Z
from __future__ import annotations from typing import Iterator, Tuple, Dict, List from neo3 import storage from neo3.core import types from neo3.network import payloads from contextlib import suppress from copy import deepcopy class MemoryDB(storage.IDBImplementation): BLOCK = 'blocks' BLOCK_HEIGHT_MAP = 'blo...
39.842697
120
0.632967
e557f3dca205ece6ccc7c7e39747dd8f669fdf9c
2,328
py
Python
ROS workspace/itu_odv_navigation/src/case studies/trianglepath.py
ITUROBLAB/-itu_odv_ws-idincern-
2d1757f69dae1d666b19006f455f87fcea779968
[ "MIT" ]
1
2022-02-09T12:39:17.000Z
2022-02-09T12:39:17.000Z
ROS workspace/itu_odv_navigation/src/case studies/trianglepath.py
idincern/itu_odv
7c78714bbe4c9a35e14178ab1f1fbc92203a8244
[ "MIT" ]
null
null
null
ROS workspace/itu_odv_navigation/src/case studies/trianglepath.py
idincern/itu_odv
7c78714bbe4c9a35e14178ab1f1fbc92203a8244
[ "MIT" ]
null
null
null
#!/usr/bin/env python # license removed for brevity import rospy import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from std_msgs.msg import Int32 from std_msgs.msg import Float32 rospy.init_node("move_base_goal_sender") def movebase_client(msg): client = actionlib.SimpleActionClient('...
26.157303
69
0.641323
4976a9fe01293d9bfaeb89791b2f2e7f5b4a6c8b
5,729
py
Python
tests/unit/benchmark/contexts/test_kubernetes.py
alexnemes/yardstick_enc
dc2d0eb663c7648271b04026b90046a27fe0b5fc
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/contexts/test_kubernetes.py
alexnemes/yardstick_enc
dc2d0eb663c7648271b04026b90046a27fe0b5fc
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/contexts/test_kubernetes.py
alexnemes/yardstick_enc
dc2d0eb663c7648271b04026b90046a27fe0b5fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompan...
37.444444
92
0.660674
811030bdb71038fb3248623243f926849cc8d84e
17,176
py
Python
nova/policies/servers.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/policies/servers.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/policies/servers.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.634855
79
0.575571
ad41cf9fea153e5f6ecd245cfb6e4d8738501b96
824
py
Python
data/example_old/configuration/access_policies/switch_policy/vpc_domains/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
1
2019-05-29T12:33:35.000Z
2019-05-29T12:33:35.000Z
data/example_old/configuration/access_policies/switch_policy/vpc_domains/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
null
null
null
data/example_old/configuration/access_policies/switch_policy/vpc_domains/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
null
null
null
import os import sys ACY_SCRIPT_PATH = '../../../../../../scripts/' template_path = ACY_SCRIPT_PATH + 'configuration/access_policies/switch_policy/vpc_domains/template.j2' render_path = ACY_SCRIPT_PATH + 'render.py' ######### Main Body ###################### #### Should be the same for all ACI objects ######### imp...
25.75
103
0.523058
ff4d3992d2641c4dd3cd59d8a4ff8334416cf2a4
707
py
Python
app.py
karwootang-gft/tb-houston-service
cd22d334bdac7ecea93f6640b9825286d10d1f26
[ "Apache-2.0" ]
1
2020-03-06T17:34:45.000Z
2020-03-06T17:34:45.000Z
app.py
karwootang-gft/tb-houston-service
cd22d334bdac7ecea93f6640b9825286d10d1f26
[ "Apache-2.0" ]
67
2020-05-29T08:23:26.000Z
2021-07-28T06:59:45.000Z
app.py
karwootang-gft/tb-houston-service
cd22d334bdac7ecea93f6640b9825286d10d1f26
[ "Apache-2.0" ]
null
null
null
import os import config import logging #print("DEBUG: {}".format(os.environ['DEBUG'])) #print("SQLALCHEMY_DATABASE_URI: {}".format(os.environ['SQLALCHEMY_DATABASE_URI'])) # Get theapplication instance connex_app = config.connex_app # connect logging between gunicorn and Flask #gunicorn_logger = logging.getLogger("gu...
32.136364
83
0.790665
5f19473435997dc5e52ec2a405c341deac730590
11,688
py
Python
gdal-1.10.0/swig/python/osgeo/gdal_array.py
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
6
2017-05-12T08:18:27.000Z
2022-01-17T17:16:11.000Z
gdal-1.10.0/swig/python/osgeo/gdal_array.py
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
1
2019-03-07T15:25:14.000Z
2019-03-07T15:25:14.000Z
gdal-1.10.0/swig/python/osgeo/gdal_array.py
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
1
2019-03-05T05:18:51.000Z
2019-03-05T05:18:51.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import...
33.976744
115
0.613107
62deef4afd760b61d3fd2e062f26c8a66ba7010d
2,466
py
Python
python/paddle_fl/mpc/tests/unittests/test_op_scale.py
barrierye/PaddleFL
eff6ef28491fa2011686ca3daa4f680e5ef83deb
[ "Apache-2.0" ]
379
2019-09-27T14:26:42.000Z
2022-03-29T14:28:12.000Z
python/paddle_fl/mpc/tests/unittests/test_op_scale.py
Sprate/PaddleFL
583691acd5db0a7ca331cc9a72415017b18669b8
[ "Apache-2.0" ]
132
2019-10-16T03:22:03.000Z
2022-03-23T08:54:29.000Z
python/paddle_fl/mpc/tests/unittests/test_op_scale.py
Sprate/PaddleFL
583691acd5db0a7ca331cc9a72415017b18669b8
[ "Apache-2.0" ]
106
2019-09-27T12:47:18.000Z
2022-03-29T09:07:25.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29.710843
80
0.662206
9951e69a16244759f78389857e2911c0fba531c2
9,301
py
Python
tests/index/test_api_index_dataset.py
agdc-research-trial/gdf
82ed29c263eaf65f5c1fbb4e9207c99e9700b85c
[ "Apache-2.0" ]
1
2015-06-01T01:31:44.000Z
2015-06-01T01:31:44.000Z
tests/index/test_api_index_dataset.py
agdc-research-trial/gdf
82ed29c263eaf65f5c1fbb4e9207c99e9700b85c
[ "Apache-2.0" ]
null
null
null
tests/index/test_api_index_dataset.py
agdc-research-trial/gdf
82ed29c263eaf65f5c1fbb4e9207c99e9700b85c
[ "Apache-2.0" ]
null
null
null
# This file is part of the Open Data Cube, see https://opendatacube.org for more information # # Copyright (c) 2015-2020 ODC Contributors # SPDX-License-Identifier: Apache-2.0 import datetime from collections import namedtuple from contextlib import contextmanager from copy import deepcopy from uuid import UUID from ...
35.231061
105
0.541555
82652488eb048098255e0ade33700f58ab86e333
3,650
py
Python
samples/python/plane_ar.py
gitwithmch/opencv
a8844de7b5ffad08b4463536d21aadd6c0d1f3b3
[ "BSD-3-Clause" ]
1
2021-03-05T18:41:35.000Z
2021-03-05T18:41:35.000Z
samples/python/plane_ar.py
gitwithmch/opencv
a8844de7b5ffad08b4463536d21aadd6c0d1f3b3
[ "BSD-3-Clause" ]
null
null
null
samples/python/plane_ar.py
gitwithmch/opencv
a8844de7b5ffad08b4463536d21aadd6c0d1f3b3
[ "BSD-3-Clause" ]
1
2020-03-24T16:05:07.000Z
2020-03-24T16:05:07.000Z
#!/usr/bin/env python ''' Planar augmented reality ================== This sample shows an example of augmented reality overlay over a planar object tracked by PlaneTracker from plane_tracker.py. solvePnP funciton is used to estimate the tracked object location in 3d space. video: http://www.youtube.com/watch?v=pzVb...
32.589286
84
0.52411
ea2670d6f495df1cd901f85951caa3c3aa900ae2
466
py
Python
receipts/rest_receipts/urls.py
rolisz/receipt_budget
74f73e7f8bb8b0b4fa89bfebf4c3c2c930511308
[ "BSD-3-Clause" ]
15
2016-03-02T18:16:46.000Z
2022-03-05T10:55:58.000Z
receipts/rest_receipts/urls.py
rolisz/receipt_budget
74f73e7f8bb8b0b4fa89bfebf4c3c2c930511308
[ "BSD-3-Clause" ]
1
2017-04-10T23:46:43.000Z
2017-04-10T23:46:43.000Z
receipts/rest_receipts/urls.py
rolisz/receipt_budget
74f73e7f8bb8b0b4fa89bfebf4c3c2c930511308
[ "BSD-3-Clause" ]
11
2016-03-02T18:16:12.000Z
2020-07-19T11:57:27.000Z
from django.conf.urls import patterns, include, url from rest_receipts import views __author__ = 'Roland' urlpatterns = patterns( '', url(r'^expense/add/', views.add), url(r'^expense/index/', views.index), url(r'^expense/edit/(\d+)', views.edit), url(r'^expense/delete/(\d+)', views.delete), url...
35.846154
75
0.658798
4a5ee5270e415242cd035a7e73c872b3bcd7c5c3
759
py
Python
var/spack/repos/builtin/packages/r-goftest/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-goftest/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/r-goftest/package.py
foeroyingur/spack
5300cbbb2e569190015c72d0970d25425ea38647
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGoftest(RPackage): """Cramer-Von Mises and Anderson-Darling tests of goodness-of-fit for ...
36.142857
95
0.72859
811e733ff73268f0e369d3c59b0f993e4f5ec5c8
26,404
py
Python
syft/frameworks/torch/hook_args.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
syft/frameworks/torch/hook_args.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
syft/frameworks/torch/hook_args.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
import torch import syft as sy from syft.exceptions import RemoteTensorFoundError from syft.exceptions import PureTorchTensorFoundError from syft.exceptions import ResponseSignatureError from syft.frameworks.torch.tensors.interpreters import AbstractTensor from syft.frameworks.torch.tensors.interpreters import PointerT...
36.120383
100
0.669141
f095e58b628b43710f97096f97debf7ff5e791df
3,037
py
Python
lldb/test/API/lang/swift/hide_runtimesupport/TestSwiftHideRuntimeSupport.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
605
2019-10-18T01:15:54.000Z
2022-03-31T14:31:04.000Z
lldb/test/API/lang/swift/hide_runtimesupport/TestSwiftHideRuntimeSupport.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
3,180
2019-10-18T01:21:21.000Z
2022-03-31T23:25:41.000Z
lldb/test/API/lang/swift/hide_runtimesupport/TestSwiftHideRuntimeSupport.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
275
2019-10-18T05:27:22.000Z
2022-03-30T09:04:21.000Z
# TestSwiftHideRuntimeSupport.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift....
33.01087
80
0.627593
55b4f8af8f921c1966f7af48316d06cb3d954d91
18,512
py
Python
test/functional/feature_bip68_sequence.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP68 implementation.""" import time from test_framework.blocktools import create_block, NORMAL_...
44.714976
140
0.641098
b44202abbee5b2f20e54b68feca0ae11ba564157
2,367
py
Python
team_picker.py
hmumtaz/fpl-team-picker
e31c6665b75e5b846db169340ef9ce91d9d32ebe
[ "MIT" ]
null
null
null
team_picker.py
hmumtaz/fpl-team-picker
e31c6665b75e5b846db169340ef9ce91d9d32ebe
[ "MIT" ]
null
null
null
team_picker.py
hmumtaz/fpl-team-picker
e31c6665b75e5b846db169340ef9ce91d9d32ebe
[ "MIT" ]
null
null
null
import requests import pandas as pd import numpy as np import json import warnings from data_fetcher import Data_Fetcher data_fetcher = Data_Fetcher() fwds, mids, defs, keeps = data_fetcher.get_most_picked_players() fwds.to_csv("fwds.csv", index=False) mids.to_csv("mids.csv", index=False) defs.to_csv("defs.csv", in...
29.962025
87
0.614702
c877454997a5147e76159ac9c9c9f0f76660a9c6
76,071
py
Python
src/sage/functions/orthogonal_polys.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/functions/orthogonal_polys.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
null
null
null
src/sage/functions/orthogonal_polys.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Orthogonal Polynomials - The Chebyshev polynomial of the first kind arises as a solution to the differential equation .. MATH:: (1-x^2)\,y'' - x\,y' + n^2\,y = 0 and those of the second kind as a solution to .. MATH:: (1-x^2)\,y'' - 3x\,y' + n(n+2)\,y = 0. The Chebyshev p...
32.13815
212
0.522367
d684d9fe58ab2fd4cee9a37c72fa9440f672f211
3,480
py
Python
src/python/nimbusml/ensemble/output_combiner/classifierweightedaverage.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
134
2018-11-01T22:15:24.000Z
2019-05-04T11:30:08.000Z
src/python/nimbusml/ensemble/output_combiner/classifierweightedaverage.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
226
2019-05-07T19:00:44.000Z
2021-01-06T07:59:48.000Z
src/python/nimbusml/ensemble/output_combiner/classifierweightedaverage.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
43
2019-05-15T20:19:42.000Z
2022-03-30T10:26:07.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------------------------- # - Generated by tools/entrypoint_co...
35.151515
94
0.628736
9e62f529cf80a194ea5dcf5f81d5aa89d251b971
967
py
Python
ucsmsdk/methodmeta/ApeCreateHVVnicMeta.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/methodmeta/ApeCreateHVVnicMeta.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/methodmeta/ApeCreateHVVnicMeta.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the meta information of ApeCreateHVVnic ExternalMethod.""" from ..ucscoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("ApeCreateHVVnic", "apeCreateHVVnic", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b", "Inp...
43.954545
126
0.708376
6aecc6ca8042ae1d0875e15dd45cbe5eced1937e
3,722
py
Python
JumpscaleBuildersExtra/db/BuilderPostgresql.py
threefoldtech/jumpscaleX_builders
ce17481c803acb66f512894b4978c7c70afef884
[ "Apache-2.0" ]
1
2020-04-16T09:24:30.000Z
2020-04-16T09:24:30.000Z
JumpscaleBuildersExtra/db/BuilderPostgresql.py
threefoldtech/jumpscaleX_builders
ce17481c803acb66f512894b4978c7c70afef884
[ "Apache-2.0" ]
52
2019-09-05T11:43:56.000Z
2020-05-04T11:31:34.000Z
JumpscaleBuildersExtra/db/BuilderPostgresql.py
threefoldtech/jumpscaleX_builders
ce17481c803acb66f512894b4978c7c70afef884
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j builder_method = j.baseclasses.builder_method import time class BuilderPostgresql(j.baseclasses.builder): __jslocation__ = "j.builders.db.psql" def _init(self, **kwargs): self.DOWNLOAD_DIR = self._joinpaths(self.DIR_BUILD, "build") self.DATA_DIR = self._replace("{DIR_...
30.508197
107
0.573348
d902ce52d84ef4699f35f66bd47e45a13ee56545
1,632
py
Python
torch_geometric/utils/to_dense_batch.py
DL-85/pytorch_geometric
eb12a94a667e881c4a6bff26b0453428bcb72393
[ "MIT" ]
8
2020-06-03T00:55:09.000Z
2022-01-23T16:06:56.000Z
torch_geometric/utils/to_dense_batch.py
chentingpc/pytorch_geometric
44c4c5069dbc4c8a96761a3b5a7e7b45c8352a53
[ "MIT" ]
null
null
null
torch_geometric/utils/to_dense_batch.py
chentingpc/pytorch_geometric
44c4c5069dbc4c8a96761a3b5a7e7b45c8352a53
[ "MIT" ]
6
2020-06-03T00:55:11.000Z
2022-03-16T01:14:36.000Z
import torch from torch_scatter import scatter_add def to_dense_batch(x, batch, fill_value=0): r"""Given a sparse batch of node features :math:`\mathbf{X} \in \mathbb{R}^{(N_1 + \ldots + N_B) \times F}` (with :math:`N_i` indicating the number of nodes in graph :math:`i`), creates a dense node feature ...
41.846154
79
0.634191
ba081391a3a0d0723e3225b723e08441b833bea8
36,682
py
Python
tf_verify/onnx_translator.py
cherrywoods/eran
c12c56c9be86da0e25ed04370b889d162a3d74cc
[ "Apache-2.0" ]
null
null
null
tf_verify/onnx_translator.py
cherrywoods/eran
c12c56c9be86da0e25ed04370b889d162a3d74cc
[ "Apache-2.0" ]
null
null
null
tf_verify/onnx_translator.py
cherrywoods/eran
c12c56c9be86da0e25ed04370b889d162a3d74cc
[ "Apache-2.0" ]
1
2021-09-13T02:45:45.000Z
2021-09-13T02:45:45.000Z
# This file has been modified from the original file with the same name # from the source licensed at the terms below. # Modifications: formatting """ Copyright 2020 ETH Zurich, Secure, Reliable, and Intelligent Systems Lab Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file...
37.20284
231
0.70326
92a1bf6a5ab8733d3c7c7a5662dfd0385ea89b80
889
py
Python
buildbuild/api/tests/test_api_user_list_search.py
buildbuild/buildbuild
ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac
[ "BSD-3-Clause" ]
5
2015-07-22T08:13:45.000Z
2018-12-10T05:21:41.000Z
buildbuild/api/tests/test_api_user_list_search.py
buildbuild/buildbuild
ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac
[ "BSD-3-Clause" ]
2
2020-06-05T18:39:48.000Z
2021-06-10T20:36:06.000Z
buildbuild/api/tests/test_api_user_list_search.py
buildbuild/buildbuild
ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac
[ "BSD-3-Clause" ]
1
2015-07-22T08:13:49.000Z
2015-07-22T08:13:49.000Z
from django.test import TestCase from django.test.client import Client from users.models import User class TestAPIUserListSearch(TestCase): def setUp(self): self.test_string = "test_string" self.user_with_test_string = User.objects.create_user( email="test_user_with_" + self.test_stri...
35.56
82
0.697413
ce598dcc9c7a257ea610930771a65de9a2cdcbf3
4,061
py
Python
packages/python/plotly/plotly/graph_objs/splom/_stream.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/splom/_stream.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/splom/_stream.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "splom" _path_str = "splom.stream" _valid_props = {"maxpoints", "token"} # maxpoints ...
29.007143
82
0.537799
570066141e2b5281e8044580b27857f1aaa2453d
8,663
py
Python
neutron/plugins/ml2/drivers/macvtap/agent/macvtap_neutron_agent.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/macvtap/agent/macvtap_neutron_agent.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/macvtap/agent/macvtap_neutron_agent.py
hashsos/hashcloudos-neutron
76ec5ca105043be6bf7220b5c5684190ddf14952
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 IBM Corp. # # 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 ...
38.674107
79
0.667667
a7292cdb07f34eb575717e849de9009232f3242a
19,214
py
Python
gnomad_mitochondria/pipeline/combine_vcfs.py
broadinstitute/gnomad-mitochondria
31b81dfb1e679e37b21f432bda22bdb15c55779e
[ "MIT" ]
1
2021-09-05T10:56:12.000Z
2021-09-05T10:56:12.000Z
gnomad_mitochondria/pipeline/combine_vcfs.py
broadinstitute/gnomad-mitochondria
31b81dfb1e679e37b21f432bda22bdb15c55779e
[ "MIT" ]
13
2021-08-25T13:44:53.000Z
2022-01-10T15:23:49.000Z
gnomad_mitochondria/pipeline/combine_vcfs.py
broadinstitute/gnomad-mitochondria
31b81dfb1e679e37b21f432bda22bdb15c55779e
[ "MIT" ]
2
2021-10-06T06:46:28.000Z
2021-12-13T20:42:21.000Z
import argparse import logging import math import os import hail as hl from hail.utils.java import info from typing import Dict META_DICT = { "filter": { "artifact_prone_site": { "Description": "Variant overlaps an artifact-prone site" } }, "format": { "DP": {"Descripti...
41.860566
363
0.667586
a9c34b3aab0944ea80b9086e566ab285537a5b0d
3,160
py
Python
scripts/cas_sql_2.py
snpham/jacaranda
2a69f699d0a6a936aa4ce80c7561198b7e87f287
[ "Apache-2.0" ]
null
null
null
scripts/cas_sql_2.py
snpham/jacaranda
2a69f699d0a6a936aa4ce80c7561198b7e87f287
[ "Apache-2.0" ]
null
null
null
scripts/cas_sql_2.py
snpham/jacaranda
2a69f699d0a6a936aa4ce80c7561198b7e87f287
[ "Apache-2.0" ]
null
null
null
import asyncio import aiohttp from urllib.parse import urlencode import numpy as np from bs4 import BeautifulSoup import urllib.request, urllib.parse, urllib.error import re def remove_sql_comments(sql): """Strip SQL comments starting with --""" return ' \n'.join(map(lambda x: x.split('--')[0], sql.split('\n'...
32.57732
89
0.549684
a8036184377c9693e088c4f96d52bce12dd0ec1f
545
py
Python
aleph/migrate/versions/850a674e3ccf_drop_unique_on_cache.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/migrate/versions/850a674e3ccf_drop_unique_on_cache.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/migrate/versions/850a674e3ccf_drop_unique_on_cache.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
"""Drop unique on cache. Revision ID: 850a674e3ccf Revises: dfd8b2480e1b Create Date: 2016-05-20 19:05:42.367783 """ from alembic import op # revision identifiers, used by Alembic. revision = '850a674e3ccf' down_revision = 'dfd8b2480e1b' def upgrade(): op.drop_constraint(u'cache_key_key', 'cache', type_='uniqu...
23.695652
73
0.717431
d628eca9fe7211401d9ad0dd42dd82bd5e06b3c0
5,761
py
Python
tests/serverless/runner/test_runner.py
ismailyenigul/checkov
b65daa796e166568fdd02591ab5232e567f4cd36
[ "Apache-2.0" ]
5
2021-07-29T18:08:40.000Z
2022-03-21T04:39:32.000Z
tests/serverless/runner/test_runner.py
ismailyenigul/checkov
b65daa796e166568fdd02591ab5232e567f4cd36
[ "Apache-2.0" ]
null
null
null
tests/serverless/runner/test_runner.py
ismailyenigul/checkov
b65daa796e166568fdd02591ab5232e567f4cd36
[ "Apache-2.0" ]
2
2021-08-23T13:25:36.000Z
2021-11-05T21:44:52.000Z
import dis import inspect import os import unittest from pathlib import Path from checkov.runner_filter import RunnerFilter from checkov.serverless.runner import Runner class TestRunnerValid(unittest.TestCase): def test_record_relative_path_with_relative_dir(self): # test whether the record's repo_file...
46.088
107
0.678702
adac2bc920d5210824c74a26677cf0bfc4379759
53,574
py
Python
src/sage/quadratic_forms/binary_qf.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/quadratic_forms/binary_qf.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/quadratic_forms/binary_qf.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
""" Binary Quadratic Forms with Integer Coefficients This module provides a specialized class for working with a binary quadratic form `a x^2 + b x y + c y^2`, stored as a triple of integers `(a, b, c)`. EXAMPLES:: sage: Q = BinaryQF([1, 2, 3]) sage: Q x^2 + 2*x*y + 3*y^2 sage: Q.discriminant() ...
31.274956
142
0.467839
16363f5681e4c40f69c01d1e8a911b7b087c1e55
9,438
py
Python
conf/base.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
conf/base.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
conf/base.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
import os from environ import Env import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from django_log_formatter_ecs import ECSFormatter from django.urls import reverse_lazy # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(o...
31.46
111
0.735113
85c81fcd1d7bfe4e82af08eef9f6c10e871a2198
544
py
Python
jetson_nano/request_identify.py
hixio-mh/BatBot
b83bd2a9348baf708a8d009a4872d27f40177b61
[ "MIT" ]
32
2019-12-02T08:26:31.000Z
2022-01-13T06:56:19.000Z
jetson_nano/request_identify.py
resslerruntime/BatBot
b83bd2a9348baf708a8d009a4872d27f40177b61
[ "MIT" ]
15
2020-01-28T22:17:38.000Z
2022-03-12T00:02:01.000Z
jetson_nano/request_identify.py
resslerruntime/BatBot
b83bd2a9348baf708a8d009a4872d27f40177b61
[ "MIT" ]
17
2019-11-26T14:46:05.000Z
2021-07-05T12:46:58.000Z
#!/usr/bin/python3 import socket import os import sys try: image_name = sys.argv[1] except IndexError: image_name = '/tmp/capture.jpg' def client(message): host = socket.gethostbyname("localhost") # get local machine name port = 9310 # Make sure it's within the > 1024 $$ <65535 range ...
18.758621
72
0.621324
2eca262cc586ce149145c73f24e884daae3ceecd
29,439
py
Python
mlps/core/data/cnvrtr/functions/UserAgentInfo.py
seculayer/automl-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
null
null
null
mlps/core/data/cnvrtr/functions/UserAgentInfo.py
seculayer/automl-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
2
2022-03-31T07:39:59.000Z
2022-03-31T07:40:18.000Z
mlps/core/data/cnvrtr/functions/UserAgentInfo.py
seculayer/AutoAPE-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
1
2021-11-03T09:09:07.000Z
2021-11-03T09:09:07.000Z
# -*- coding: utf-8 -*- # Author : Manki Baek # e-mail : bmg8551@seculayer.co.kr # Powered by Seculayer © 2017 AI-TF Team from mlps.core.data.cnvrtr.object.ua import UserAgentParser from mlps.core.data.cnvrtr.ConvertAbstract import ConvertAbstract class UserAgentInfo(ConvertAbstract): def __init__(self, **kwargs...
85.330435
271
0.661571
3e991a05f429df6ca7356d05e0de7cd7a1f0c1ad
2,930
py
Python
Articles/templatetags/UserFilters.py
Abdulrahmannaser/Journal
ee10dfe6e3d447087b4de829a4a46af74595b730
[ "MIT" ]
null
null
null
Articles/templatetags/UserFilters.py
Abdulrahmannaser/Journal
ee10dfe6e3d447087b4de829a4a46af74595b730
[ "MIT" ]
null
null
null
Articles/templatetags/UserFilters.py
Abdulrahmannaser/Journal
ee10dfe6e3d447087b4de829a4a46af74595b730
[ "MIT" ]
2
2020-07-08T00:55:49.000Z
2020-12-11T04:14:50.000Z
from django import template from Python import Hashing from Python.init import OnlineUser from Articles.models import Posts, LikesDisLikes, Comments register = template.Library() ############################################################################################ # User in Article @register.filter(name='GetU...
36.17284
99
0.633447
1647f633d5bcc1f0d647ed182d51fd0ed2b6be4e
5,757
py
Python
data/p3BR/R2/benchmark/startQiskit123.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit123.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit123.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=21 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
29.829016
140
0.631579
3b87c37a00654b136233bc13a8413cdc0d47dd88
2,209
py
Python
openstack_dashboard/dashboards/project/networks/ports/tables.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/networks/ports/tables.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/networks/ports/tables.py
shhui/horizon
fd8cf6e31c07b147289bfb86c90133599eb2906e
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
32.970149
78
0.678135
a543df82a3b61f8adc41fc40f93816de7b7ca782
2,423
py
Python
cli2gui/tojson/optparse2json.py
FHPythonUtils/Cli2Gui
c84b239e9ef10d78878a3d45ccca6c237a9404c9
[ "MIT" ]
26
2020-04-13T19:35:47.000Z
2022-03-21T18:47:45.000Z
cli2gui/tojson/optparse2json.py
FHPythonUtils/Cli2Gui
c84b239e9ef10d78878a3d45ccca6c237a9404c9
[ "MIT" ]
3
2020-03-20T18:05:34.000Z
2021-07-25T21:46:28.000Z
cli2gui/tojson/optparse2json.py
FredHappyface/Python.Cli2Gui
688b2b552a22dfbaec4199bdd47eeef6d8649274
[ "MIT" ]
2
2021-02-28T13:56:55.000Z
2021-11-19T05:48:27.000Z
"""Generate a dict describing optparse arguments. pylint and pylance both want me to not access protected methods - I know better ;) """ # pylint: disable=protected-access,deprecated-module # pyright: reportPrivateUsage=false from __future__ import annotations import optparse from .. import c2gtypes def extractOpt...
31.064103
86
0.721007
cd7867ff906ef185e138c6eb4bfefd0748b000f4
1,635
py
Python
mysite/mongodb/migrations/0002_auto_20201121_1144.py
dduong711/mongodb_test_project
dc84e89f0f856a0be2f70e5610a238565e06fda9
[ "MIT" ]
null
null
null
mysite/mongodb/migrations/0002_auto_20201121_1144.py
dduong711/mongodb_test_project
dc84e89f0f856a0be2f70e5610a238565e06fda9
[ "MIT" ]
null
null
null
mysite/mongodb/migrations/0002_auto_20201121_1144.py
dduong711/mongodb_test_project
dc84e89f0f856a0be2f70e5610a238565e06fda9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2020-11-21 04:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mongodb', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='mongodb', ...
32.058824
130
0.565138
eec7c6d923ddaca90987786f4b509fa63df1daa3
2,055
py
Python
qiling/qiling/arch/arch.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/qiling/arch/arch.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/qiling/arch/arch.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from abc import ABC, abstractmethod from capstone import Cs from keystone import Ks from . import utils from qiling import Qiling from qiling.const import QL_ARCH class QlArch(ABC): def __init__(self, ql: Qil...
22.096774
91
0.639903
bb81356c54bcd5fe6a1085e0c438b8b6cc72aebf
521
py
Python
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from finitefield import GF q=1024 field= GF(q) elts_map = {} for (i, v) in enumerate(field): elts_map[i] =v print(elts_map) rev_elts_map = {v:k for k,v in elts_map.items()} print(rev_elts_map) add_table = np.zeros((q,q)) for i in range(q): for j in range(q): add_table[i][j] = rev_elt...
22.652174
63
0.667946
617aede48b6b735d32ddd2a8507cdc61395b379f
338
py
Python
src/sortingandsearching/tests/test_count_distinct.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/sortingandsearching/tests/test_count_distinct.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/sortingandsearching/tests/test_count_distinct.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
from sortingandsearching.count_distinct import * class TestCountDistinct: def test_count_distinct(self): assert count_distinct([]) == 0 assert count_distinct([1]) == 1 assert count_distinct([1, 1]) == 1 assert count_distinct([2, 1]) == 2 assert count_distinct([2, 3...
30.727273
52
0.609467
37be16023eef8ed0c4674ff3fa4681010a199ee0
6,937
py
Python
ip.py
koodaamo/pyip
edfd43dd6eb99df850d791664ebff4ebe8fa6d7a
[ "PSF-2.0" ]
null
null
null
ip.py
koodaamo/pyip
edfd43dd6eb99df850d791664ebff4ebe8fa6d7a
[ "PSF-2.0" ]
1
2015-12-07T16:45:53.000Z
2015-12-07T16:45:53.000Z
ip.py
koodaamo/pyip
edfd43dd6eb99df850d791664ebff4ebe8fa6d7a
[ "PSF-2.0" ]
null
null
null
# # pyip is a Python package offering assembling/disassembling of raw ip packet # including ip, udp, and icmp. Also it includes 2 utilities based on raw ip, # traceroute and ping. # # pyip is released under PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2, and is # a project inspired by 'ping' written by Jeremy Hylton. # ...
30.69469
77
0.539426
ae10a199f9ed77fc8a3aded76a6405a0002b2c5a
14,968
py
Python
tests/components/alarm_control_panel/test_device_action.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/alarm_control_panel/test_device_action.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/alarm_control_panel/test_device_action.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The tests for Alarm control panel device actions.""" import pytest from homeassistant.components.alarm_control_panel import DOMAIN, const import homeassistant.components.automation as automation from homeassistant.components.device_automation import DeviceAutomationType from homeassistant.const import ( CONF_PL...
33.262222
88
0.580037
dd03cbb1dfa8f7fab98dd21cc0778cf7d0643e48
672
py
Python
manage.py
Shay-yes/iNaturalistGo
713596864419bcecd86db84bed176458c4398d6c
[ "Apache-2.0" ]
null
null
null
manage.py
Shay-yes/iNaturalistGo
713596864419bcecd86db84bed176458c4398d6c
[ "Apache-2.0" ]
null
null
null
manage.py
Shay-yes/iNaturalistGo
713596864419bcecd86db84bed176458c4398d6c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iNaturalist_447.settings') try: from django.core.management import execute_from_command_line ex...
29.217391
79
0.683036
7e68a14f9130234bf8986d4a7a01507bc359ea23
39,173
py
Python
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2021_01_01_preview/aio/operations/_queues_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2021_01_01_preview/aio/operations/_queues_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2021_01_01_preview/aio/operations/_queues_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
52.161119
264
0.677048
b3551b4959905019912e288fb7dbc11c5e119407
16,567
py
Python
python/ray/serve/router.py
janblumenkamp/ray
304e31b7e56ebd33f7099d97233e3feb37f495c9
[ "Apache-2.0" ]
1
2021-01-22T20:30:15.000Z
2021-01-22T20:30:15.000Z
python/ray/serve/router.py
janblumenkamp/ray
304e31b7e56ebd33f7099d97233e3feb37f495c9
[ "Apache-2.0" ]
null
null
null
python/ray/serve/router.py
janblumenkamp/ray
304e31b7e56ebd33f7099d97233e3feb37f495c9
[ "Apache-2.0" ]
null
null
null
import asyncio import copy from collections import defaultdict import time from typing import DefaultDict, List # Note on choosing blist instead of stdlib heapq # 1. pop operation should be O(1) (amortized) # (helpful even for batched pop) # 2. There should not be significant overhead in # maintaining the sorted...
41.521303
79
0.635842
87fdffa42ce10c1d1605ac64f2d2fa34eed8c00a
1,839
py
Python
http_server/cli.py
RomainDuclos/sage-engine
333997c658ea44e643bed636c5297e5e998ef97c
[ "MIT" ]
null
null
null
http_server/cli.py
RomainDuclos/sage-engine
333997c658ea44e643bed636c5297e5e998ef97c
[ "MIT" ]
null
null
null
http_server/cli.py
RomainDuclos/sage-engine
333997c658ea44e643bed636c5297e5e998ef97c
[ "MIT" ]
3
2019-01-03T12:49:54.000Z
2019-01-18T16:32:53.000Z
# cli.py # Author: Thomas MINIER - MIT License 2017-2018 import argparse from os.path import isfile from http_server.server import sage_app from gunicorn.app.base import BaseApplication from gunicorn.six import iteritems class StandaloneApplication(BaseApplication): def __init__(self, app, options=None): ...
41.795455
144
0.661229
03688bdd2856083a9c51d5dcb71146a14b89a344
270
py
Python
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/shoutbox/admin.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- from shoutbox.models import Shout from django.contrib.admin import site, ModelAdmin class ShoutModelAdmin(ModelAdmin): list_display = ('message', 'user', 'post_date') search_fields = ('message',) site.register(Shout, ShoutModelAdmin)
22.5
51
0.722222
4a092d536c946a36da4ad76b90fa929be8ac2377
3,372
py
Python
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
16
2019-07-23T04:14:27.000Z
2022-02-15T10:46:06.000Z
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
1
2021-04-08T19:34:31.000Z
2021-04-08T19:34:31.000Z
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
5
2019-07-23T13:18:42.000Z
2021-01-28T06:37:47.000Z
# Generated by Django 2.2.2 on 2019-07-18 01:37 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permission...
68.816327
329
0.654804
5ecb97949a29b1dec1f55e52d4bc186cc05e3729
7,845
py
Python
train.py
MingmingPeng/DCGAN-LSGAN-WGAN-GP-DRAGAN-Tensorflow-2
576f622495d6325165cb77dc7de96230a579ebe2
[ "MIT" ]
305
2019-04-07T11:45:45.000Z
2022-03-18T00:34:35.000Z
train.py
Dipperss/DCGAN-LSGAN-WGAN-GP-DRAGAN-Tensorflow-2
f79f417d42079b597a1f5a030f4b6e3a5d88f0e1
[ "MIT" ]
8
2019-04-11T07:15:59.000Z
2021-09-25T02:20:30.000Z
train.py
Dipperss/DCGAN-LSGAN-WGAN-GP-DRAGAN-Tensorflow-2
f79f417d42079b597a1f5a030f4b6e3a5d88f0e1
[ "MIT" ]
58
2019-04-07T12:08:36.000Z
2021-11-25T21:06:39.000Z
import functools import imlib as im import pylib as py import tensorflow as tf import tensorflow.keras as keras import tf2lib as tl import tf2gan as gan import tqdm import data import module # ============================================================================== # = param ...
39.225
142
0.55972
719fc72ba3ca3ca8db3da722c9ad57e709fd5d4c
388
py
Python
circle/migrations/0003_alter_person_ph_no.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
circle/migrations/0003_alter_person_ph_no.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
circle/migrations/0003_alter_person_ph_no.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-05 18:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('circle', '0002_auto_20210705_1845'), ] operations = [ migrations.AlterField( model_name='person', name='ph_no', ...
20.421053
54
0.600515
f24053acddc42352a14eecbf17b1b7c71b392bb9
3,871
py
Python
aiida/backends/djsite/settings.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/backends/djsite/settings.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/backends/djsite/settings.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.95614
108
0.658228
9f78afc3cfc0ca8fe068d14610c871bf2e7bef8f
11,793
py
Python
continual_transformers/co_si_mha.py
LukasHedegaard/continual-transformers
5f1dc7738be18ef4ce95b3eabbef9a5d62d0a537
[ "Apache-2.0" ]
3
2022-01-16T08:05:12.000Z
2022-03-08T19:38:09.000Z
continual_transformers/co_si_mha.py
LukasHedegaard/continual-transformers
5f1dc7738be18ef4ce95b3eabbef9a5d62d0a537
[ "Apache-2.0" ]
null
null
null
continual_transformers/co_si_mha.py
LukasHedegaard/continual-transformers
5f1dc7738be18ef4ce95b3eabbef9a5d62d0a537
[ "Apache-2.0" ]
1
2022-01-16T08:05:18.000Z
2022-01-16T08:05:18.000Z
import math from functools import partial from logging import getLogger from typing import Optional, Tuple import torch import torch.nn.functional as F from continual.module import CallMode from torch import Tensor from .co_mha_base import CoMultiheadAttentionBase, MaybeTensor logger = getLogger(__name__) State = T...
30.316195
109
0.579327
d795b8a0c4f0419c3fe8f45fcc9bc617872afd95
1,903
py
Python
setup.py
allisson/asyncpg-utils
616d5f47d7e01108cb9272b16e4d2b511bfdae08
[ "MIT" ]
15
2018-01-02T10:32:43.000Z
2020-12-10T22:24:12.000Z
setup.py
allisson/asyncpg-utils
616d5f47d7e01108cb9272b16e4d2b511bfdae08
[ "MIT" ]
null
null
null
setup.py
allisson/asyncpg-utils
616d5f47d7e01108cb9272b16e4d2b511bfdae08
[ "MIT" ]
null
null
null
import codecs import os import re from setuptools import setup, find_packages, Command here = os.path.abspath(os.path.dirname(__file__)) version = '0.0.0' changes = os.path.join(here, 'CHANGES.rst') match = r'^#*\s*(?P<version>[0-9]+\.[0-9]+(\.[0-9]+)?)$' with codecs.open(changes, encoding='utf-8') as changes: f...
25.716216
75
0.646348
0f5b1589271ef95cc2e7fc3cbe860b2e02e74c47
494
py
Python
MainDisplay.py
civilwargeeky/MusicDownloader
89f4adcbc32a7e8c918e0c7bb16d7a708b842016
[ "MIT" ]
1
2017-05-17T14:21:12.000Z
2017-05-17T14:21:12.000Z
MainDisplay.py
civilwargeeky/MusicDownloader
89f4adcbc32a7e8c918e0c7bb16d7a708b842016
[ "MIT" ]
null
null
null
MainDisplay.py
civilwargeeky/MusicDownloader
89f4adcbc32a7e8c918e0c7bb16d7a708b842016
[ "MIT" ]
null
null
null
#Main Display Class #Handles complicated user interface import tkinter as tk from tkinter import ttk import MusicDisplay as Disp SCRIPTS_FOLDER = "Scripts" def blankSpace(): return Disp.VarLabel("", width = 5) def main(): root = Disp.MainBox()#.size(200,200) Disp.VarButton("Playlist 1").grid(columnspan=5) b...
21.478261
73
0.694332
f44fa0f51abb791eb637a4459acc7b3bac0f088a
8,602
py
Python
trinity/cli_parser.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
trinity/cli_parser.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
trinity/cli_parser.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
import argparse import json import logging from pathlib import Path from typing import ( Any, ) from eth_utils import ( DEBUG2_LEVEL_NUM, ValidationError, ) from p2p.kademlia import Node from p2p.validation import validate_enode_uri from trinity import __version__ from trinity._utils.eip1085 import valid...
27.050314
100
0.610439
d2380de89e86295d9a3a6bed09d5d07c064f081b
17,411
py
Python
src/av2/geometry/camera/pinhole_camera.py
johnwlambert/argoverse2-api
caf514b972460e103dc69bbb561152b161aced81
[ "MIT" ]
null
null
null
src/av2/geometry/camera/pinhole_camera.py
johnwlambert/argoverse2-api
caf514b972460e103dc69bbb561152b161aced81
[ "MIT" ]
null
null
null
src/av2/geometry/camera/pinhole_camera.py
johnwlambert/argoverse2-api
caf514b972460e103dc69bbb561152b161aced81
[ "MIT" ]
null
null
null
# <Copyright 2022, Argo AI, LLC. Released under the MIT license.> """Implements a pinhole camera interface.""" from __future__ import annotations from dataclasses import dataclass from functools import cached_property from pathlib import Path from typing import Tuple, Union import numpy as np import av2.geometry.g...
40.679907
119
0.652921
e85d2a6e2ccc40de636aa0a1cf15e00f33ce1066
1,733
py
Python
aiokraken/rest/schemas/tests/test_kordertype.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
aiokraken/rest/schemas/tests/test_kordertype.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
aiokraken/rest/schemas/tests/test_kordertype.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
import time import unittest from decimal import Decimal from parameterized import parameterized import json import marshmallow import decimal from aiokraken.rest.schemas.kordertype import KOrderTypeModel, KOrderTypeField, KOrderTypeStrategy, KOrderTypeStringStrategy from aiokraken.rest.exceptions import AIOKrakenExce...
28.409836
124
0.667051
5ccdad081cac3f7b96a10d3fda83f58044df4714
2,848
py
Python
librectify/interface.py
RomanJuranek/photo-rectify
aa6182376c5f4fcdc0976926e5ecf57e97edd20b
[ "BSD-3-Clause" ]
null
null
null
librectify/interface.py
RomanJuranek/photo-rectify
aa6182376c5f4fcdc0976926e5ecf57e97edd20b
[ "BSD-3-Clause" ]
null
null
null
librectify/interface.py
RomanJuranek/photo-rectify
aa6182376c5f4fcdc0976926e5ecf57e97edd20b
[ "BSD-3-Clause" ]
null
null
null
import ctypes from logging import error import platform import numpy as np from pathlib import Path from skimage.transform import rescale from skimage.filters import gaussian dll_name = { "Windows": "librectify.dll", "Linux": "librectify.so", } dll_path = Path(__file__).parent / dll_name[platform.system()] ...
25.890909
97
0.648174
3b89962f8dd651699edf807e4b88ea79a8d85804
3,055
py
Python
tests/common.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
null
null
null
tests/common.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
null
null
null
tests/common.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
null
null
null
"""Provide common functionality across different tests.""" from typing import List, Tuple, Optional, Union, Sequence import asttokens from icontract import ensure from aas_core_codegen import parse, intermediate from aas_core_codegen.common import Error # pylint: disable=missing-function-docstring def most_underl...
33.571429
85
0.697545
eaf00114a342431447f34e95137e20f3c4c76c2b
304
py
Python
book_2/sql/04_sql.py
D-Mbithi/Real-Python-Course-Solutions
6e743af5f9f40260df8d42b667b3535caed9db3b
[ "MIT" ]
1
2019-10-24T17:56:23.000Z
2019-10-24T17:56:23.000Z
book_2/sql/04_sql.py
D-Mbithi/Real-Python-Course-Solutions
6e743af5f9f40260df8d42b667b3535caed9db3b
[ "MIT" ]
null
null
null
book_2/sql/04_sql.py
D-Mbithi/Real-Python-Course-Solutions
6e743af5f9f40260df8d42b667b3535caed9db3b
[ "MIT" ]
null
null
null
import sqlite3 with sqlite3.connect('new.db') as connection: cursor = connection.cursor() cursor.execute( "INSERT INTO population VALUES('Boston', 'MA', 6000000)" ) cursor.execute( "INSERT INTO population VALUES('Chicago', 'IL', 2700000)" )
23.384615
69
0.588816
89cc0ff098968a2a7973b60ccb0404db64025faa
609
py
Python
submissions/arc052/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/arc052/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/arc052/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) from math import pi n, q = map(int, readline().split()) xrh = [tuple(map(int, readline().split())) for _ in range(n)] for _ in range(q): a, b = map(int, readline().spl...
29
85
0.520525
e753e953a1a0688f133c9c7aa0137b40fb7449fa
6,926
py
Python
tests/unit/utils/verify_test.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
tests/unit/utils/verify_test.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/verify_test.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Test the verification routines ''' # Import Python libs import getpass import os import sys import stat import shutil import resource import tempfile import socket # Import Salt Testing libs from salttesting import skipIf, TestCase from salttesting.helpers import ensure_in_syspath, TestsLoggingHandler ensure_in_s...
35.15736
79
0.523101
a4eac77590a1f18384e4186f6b0a7a0863f86f1c
1,256
py
Python
config.py
jquku/Matrix-Chatbot
762b0ee3af0779284b144f5642f0c0877ed5ffcb
[ "MIT" ]
1
2021-10-02T08:21:34.000Z
2021-10-02T08:21:34.000Z
config.py
jquku/Matrix-Chatbot
762b0ee3af0779284b144f5642f0c0877ed5ffcb
[ "MIT" ]
null
null
null
config.py
jquku/Matrix-Chatbot
762b0ee3af0779284b144f5642f0c0877ed5ffcb
[ "MIT" ]
null
null
null
import os import yaml import sys from typing import List, Any class Config(object): def __init__(self, filepath): # Load in the config file at the given filepath with open(filepath) as file_stream: self.config = yaml.safe_load(file_stream.read()) #account setup self....
32.205128
90
0.613057
ffbc1307523101a9aa0fbefab75ff6e8f5b66b78
285
py
Python
run.py
MythosRaconteur/app-gen-flask-server
c211f97633d5756d19484a96b8249e644d6dbfa7
[ "MIT" ]
25
2021-07-21T23:25:53.000Z
2022-03-30T10:47:31.000Z
run.py
MythosRaconteur/app-gen-flask-server
c211f97633d5756d19484a96b8249e644d6dbfa7
[ "MIT" ]
4
2021-07-20T15:17:24.000Z
2021-07-20T15:17:51.000Z
run.py
MythosRaconteur/app-gen-flask-server
c211f97633d5756d19484a96b8249e644d6dbfa7
[ "MIT" ]
10
2021-07-28T07:03:54.000Z
2022-03-13T18:10:25.000Z
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from api import app, db @app.shell_context_processor def make_shell_context(): return {"app": app, "db": db } if __name__ == '__main__': app.run(debug=True, host="0.0.0.0")
15
39
0.575439
b3282dededd0993d05f7bc08c81151435517605f
1,297
py
Python
tests/test_utils.py
hyper-neutrino/Vyxal
004e953ef6b4397e7062e71c4f6e095b4077ac27
[ "MIT" ]
3
2021-04-21T08:09:51.000Z
2021-11-11T07:15:43.000Z
tests/test_utils.py
AMiller42/Vyxal
004e953ef6b4397e7062e71c4f6e095b4077ac27
[ "MIT" ]
null
null
null
tests/test_utils.py
AMiller42/Vyxal
004e953ef6b4397e7062e71c4f6e095b4077ac27
[ "MIT" ]
1
2021-04-21T20:37:56.000Z
2021-04-21T20:37:56.000Z
import os import sys import builtins from multiprocessing import Manager THIS_FOLDER = os.path.dirname(os.path.abspath(__file__)) + "/.." sys.path.insert(1, THIS_FOLDER) from vyxal import interpreter as interp header = "stack = []\nregister = 0\nprinted = False\n" manager = Manager() def run_code(code, flags="", i...
25.431373
86
0.666924
1bf5aa7d469775def21bac505ca404fb805560dc
5,071
py
Python
platform/gsutil/third_party/apitools/apitools/base/py/credentials_lib_test.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
2
2020-10-12T05:21:32.000Z
2021-07-07T09:23:52.000Z
platform/gsutil/third_party/apitools/apitools/base/py/credentials_lib_test.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2016-11-17T20:35:03.000Z
2016-11-17T20:35:03.000Z
platform/gsutil/third_party/apitools/apitools/base/py/credentials_lib_test.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
2
2020-02-20T13:02:46.000Z
2021-07-07T09:23:53.000Z
# # Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
40.246032
74
0.644449
4bf5099fc8a0e9774b855067070451416d3f6de4
3,182
py
Python
tensorflow/lite/python/optimize/calibrator.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/lite/python/optimize/calibrator.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/lite/python/optimize/calibrator.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.278481
81
0.688246
8e80bd8d974d47c258398a4884f8d54839c8890f
1,208
py
Python
Translator/views.py
hbFree/Irman-Translator
1ffb850c1a6614f5601e0d4c91f0d9702d096a30
[ "MIT" ]
6
2020-02-15T09:42:21.000Z
2020-03-03T08:52:57.000Z
Translator/views.py
hbFree/Irman-Translator
1ffb850c1a6614f5601e0d4c91f0d9702d096a30
[ "MIT" ]
null
null
null
Translator/views.py
hbFree/Irman-Translator
1ffb850c1a6614f5601e0d4c91f0d9702d096a30
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template.defaulttags import register from xml.dom import minidom import os.path PROJECT_PATH = os.path.abspath(os.path.dirname(__name__)) class LanguagesXml: root = minidom.parse(PROJECT_PATH + '/static/lng.xml') def get(self, lng, attr): cur = self.roo...
24.16
84
0.57947
96d18cf3576b9f19c31da1e37a22353beee0814a
4,998
py
Python
tartiflette/types/helpers/definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tartiflette/types/helpers/definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tartiflette/types/helpers/definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
from tartiflette.types.enum import GraphQLEnumType from tartiflette.types.input_object import GraphQLInputObjectType from tartiflette.types.interface import GraphQLInterfaceType from tartiflette.types.list import GraphQLList from tartiflette.types.non_null import GraphQLNonNull from tartiflette.types.object import Grap...
32.245161
77
0.715686
dfdbc8d079e6cd64c22db72f76419deffef492e4
20,635
py
Python
matlab2cpp/node/backend.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
28
2017-04-25T10:06:38.000Z
2022-02-09T07:25:34.000Z
matlab2cpp/node/backend.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
null
null
null
matlab2cpp/node/backend.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
5
2017-04-25T17:54:53.000Z
2022-03-21T20:15:15.000Z
import re import os from os.path import sep import reference import matlab2cpp import matlab2cpp.m2cpp import matlab2cpp.pyplot def flatten(node, ordered=False, reverse=False, inverse=False): """ Backend for the :py:func:`~matlab2cpp.Node.flatten` function. Args: node (Node): Root node to start from orde...
26.219822
119
0.556142
433b6585ae59517299090b615140aa7fcc487a88
5,351
py
Python
qlib/data/base.py
Turtlesyu-27/qlib
cb2c3028b8cabfca909f22890c9b126a18a35daf
[ "MIT" ]
null
null
null
qlib/data/base.py
Turtlesyu-27/qlib
cb2c3028b8cabfca909f22890c9b126a18a35daf
[ "MIT" ]
null
null
null
qlib/data/base.py
Turtlesyu-27/qlib
cb2c3028b8cabfca909f22890c9b126a18a35daf
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import division from __future__ import print_function import abc import pandas as pd class Expression(abc.ABC): """Expression base class""" def __str__(self): return type(self).__name__ def __repr__(self)...
23.572687
100
0.607176
8d9cb43b87ace4c2a2f3fc01eeb4448f6399fa61
16,934
py
Python
services/messenger/tests/delete_message_test.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/messenger/tests/delete_message_test.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/messenger/tests/delete_message_test.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
from unittest import mock, TestCase from app.crud import message_crud, dialogue_crud, notification_crud from app.schemas import UserData from config import ERROR, SUCCESS, DELETE from tests import BaseTest, async_loop class DeleteMessageTestCase(BaseTest, TestCase): def setUp(self) -> None: super().setU...
54.275641
126
0.459608
a6b2f13dcab867cd776d6955f2758a3c400af0a0
2,312
py
Python
galaxy_importer/ansible_test/runners/local_image.py
sshnaidm/galaxy-importer
f68fc7241b601d69af0455557beb1ad20c4ec60d
[ "Apache-2.0" ]
null
null
null
galaxy_importer/ansible_test/runners/local_image.py
sshnaidm/galaxy-importer
f68fc7241b601d69af0455557beb1ad20c4ec60d
[ "Apache-2.0" ]
null
null
null
galaxy_importer/ansible_test/runners/local_image.py
sshnaidm/galaxy-importer
f68fc7241b601d69af0455557beb1ad20c4ec60d
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2020, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
32.56338
93
0.66263
b9c7e28e67cb270f545d0dfb186aaf15fdb1b297
3,152
py
Python
medi/inference/gradual/generics.py
yuan-xy/medi
ffa416b73eb2fbffbae7a27b6eccc267b061ed0f
[ "MIT" ]
3
2020-05-27T08:42:26.000Z
2021-12-04T08:54:08.000Z
medi/inference/gradual/generics.py
yuan-xy/medi
ffa416b73eb2fbffbae7a27b6eccc267b061ed0f
[ "MIT" ]
null
null
null
medi/inference/gradual/generics.py
yuan-xy/medi
ffa416b73eb2fbffbae7a27b6eccc267b061ed0f
[ "MIT" ]
null
null
null
""" This module is about generics, like the `int` in `List[int]`. It's not about the Generic class. """ from medi import debug from medi.cache import memoize_method from medi.inference.utils import to_tuple from medi.inference.base_value import ValueSet, NO_VALUES from medi.inference.value.iterable import SequenceLite...
30.901961
97
0.64816
45ff3e166fb2031b56763c4f5e978752c228670d
38,083
py
Python
google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py
LaudateCorpus1/python-spanner
819be92e46f63133724dd0d3f5e57b20e33e299e
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py
LaudateCorpus1/python-spanner
819be92e46f63133724dd0d3f5e57b20e33e299e
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py
LaudateCorpus1/python-spanner
819be92e46f63133724dd0d3f5e57b20e33e299e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
45.175563
104
0.652286
aa61a97bb8d344b8dd8ba4839dc4a1e9bcd0a2b9
9,123
py
Python
python_modules/dagster/dagster/core/engine/engine_multiprocess.py
habibutsu/dagster
0b590a18477ad0da6131acec123295ab4a8d53b3
[ "Apache-2.0" ]
3
2020-04-28T16:27:33.000Z
2020-07-22T07:43:30.000Z
python_modules/dagster/dagster/core/engine/engine_multiprocess.py
habibutsu/dagster
0b590a18477ad0da6131acec123295ab4a8d53b3
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/engine/engine_multiprocess.py
habibutsu/dagster
0b590a18477ad0da6131acec123295ab4a8d53b3
[ "Apache-2.0" ]
1
2021-02-21T12:16:47.000Z
2021-02-21T12:16:47.000Z
import os from dagster import check from dagster.core.errors import DagsterSubprocessError from dagster.core.events import DagsterEvent, EngineEventData from dagster.core.execution.api import create_execution_plan, execute_plan_iterator from dagster.core.execution.config import MultiprocessExecutorConfig from dagster....
43.236967
113
0.58073
b56d64da01fe3dafb56f152af31e68d05e5ffc9c
2,524
py
Python
Python/DesktopApp/resetApp.py
Matt-Conrad/CXR_View_Classification
8ba437f136655b6e674a49613ffd858f2e9623a5
[ "MIT" ]
null
null
null
Python/DesktopApp/resetApp.py
Matt-Conrad/CXR_View_Classification
8ba437f136655b6e674a49613ffd858f2e9623a5
[ "MIT" ]
29
2020-11-20T17:39:07.000Z
2021-11-18T17:19:10.000Z
Python/DesktopApp/resetApp.py
Matt-Conrad/CXR_View_Classification
8ba437f136655b6e674a49613ffd858f2e9623a5
[ "MIT" ]
null
null
null
from metadata_to_db.databaseHandler import DatabaseHandler from cxrConfigHandler import CxrConfigHandler from shutil import rmtree, copyfile import atexit import os class AppResetter: def __init__(self): configFilename = "config.ini" parentFolder = os.path.dirname(os.path.abspath(__file__)) ...
31.949367
105
0.674326
6c9866e6ec943ed08ab1b900f2e5e719d3ddd554
1,304
py
Python
pontoon/tags/views.py
10allday-Software/pontoon
fd1d0671072e2cef5346ef973c663cc2682234b9
[ "BSD-3-Clause" ]
2
2020-08-27T13:31:04.000Z
2021-02-25T14:37:40.000Z
pontoon/tags/views.py
10allday-Software/pontoon
fd1d0671072e2cef5346ef973c663cc2682234b9
[ "BSD-3-Clause" ]
16
2021-09-03T15:29:49.000Z
2021-09-03T15:30:12.000Z
pontoon/tags/views.py
10allday-Software/pontoon
fd1d0671072e2cef5346ef973c663cc2682234b9
[ "BSD-3-Clause" ]
null
null
null
from django.http import Http404 from .utils import TagsTool from pontoon.base.models import Project from pontoon.base.utils import is_ajax from django.views.generic import DetailView class ProjectTagView(DetailView): """This view provides both the html view and the JSON view for retrieving results in the /p...
30.325581
88
0.650307
17d8827b98b8f7d59fc84c18956719148106ba2f
593
py
Python
template/scripts/script_template.py
nhamilto/template
45d3dc35836d902c1feeef20af4b2b7f45577c36
[ "Apache-2.0" ]
null
null
null
template/scripts/script_template.py
nhamilto/template
45d3dc35836d902c1feeef20af4b2b7f45577c36
[ "Apache-2.0" ]
null
null
null
template/scripts/script_template.py
nhamilto/template
45d3dc35836d902c1feeef20af4b2b7f45577c36
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ DESCRIPTION TODO This describes how to use this script. This docstring will be printed by the script if there is an error or if the user requests help (-h or --help). AUTHOR Nicholas Hamilton nicholas.hamilton@nrel.gov Date: BUILDDATE """ import sys, os, traceback, op...
16.942857
62
0.671164
adb20bd56ed3d1c39ee7b0dc70c958f168f1e0cc
6,495
py
Python
betweenness.py
spicyShoyo/hsfinalpoj
f843f5ee33914950a2911042f19f5cbdf0df3b41
[ "MIT" ]
null
null
null
betweenness.py
spicyShoyo/hsfinalpoj
f843f5ee33914950a2911042f19f5cbdf0df3b41
[ "MIT" ]
null
null
null
betweenness.py
spicyShoyo/hsfinalpoj
f843f5ee33914950a2911042f19f5cbdf0df3b41
[ "MIT" ]
null
null
null
import numpy as np import random ''' This class calculate the betweeness of a node ''' class BetweenessExact: def __init__(self, network, num_nodes): self.network = network self.num_nodes = num_nodes self.new_bet_dic = {} def bfs(self, cur_node): q = [cur_node] degree...
32.969543
91
0.464049
46cc91cff768279963449c768dbc47b27a2f17c8
242,548
py
Python
eutester/aws/ec2/ec2ops.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/aws/ec2/ec2ops.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/aws/ec2/ec2ops.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2009-2014, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions # are met: # # Redistributions of source ...
47.97231
189
0.534092
1e88d24e5468eeda42f0114129ff97def0b60503
70
py
Python
version.py
Ace17/godot
203255580050eaf9543b2e58c7323268aebb66f4
[ "MIT" ]
1
2020-07-23T17:08:01.000Z
2020-07-23T17:08:01.000Z
version.py
Ace17/godot
203255580050eaf9543b2e58c7323268aebb66f4
[ "MIT" ]
null
null
null
version.py
Ace17/godot
203255580050eaf9543b2e58c7323268aebb66f4
[ "MIT" ]
null
null
null
short_name="godot" name="Godot Engine" major=1 minor=0 status="rc2"
8.75
19
0.728571
d47e21bd8da626b0e102d505618fa1260fc8e8df
1,990
py
Python
novel_coronavirus/novel_coronavirus/spiders/peopleapp.py
ExchangeAnn/2019ncov
dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e
[ "MIT" ]
null
null
null
novel_coronavirus/novel_coronavirus/spiders/peopleapp.py
ExchangeAnn/2019ncov
dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e
[ "MIT" ]
274
2020-02-22T07:54:37.000Z
2021-06-23T12:48:05.000Z
novel_coronavirus/novel_coronavirus/spiders/peopleapp.py
ExchangeAnn/2019ncov
dbb2c87a6ae4eb50bece9f5b6e2431e89d66f02e
[ "MIT" ]
4
2020-02-20T11:19:33.000Z
2020-09-30T12:40:34.000Z
import json import scrapy from pprint import pprint from novel_coronavirus.items import FlashNewsLoader, FlashNewsItem class PeopleAPPSpider(scrapy.Spider): name = "peopleapp" allowed_domains = ["h5-api.tikrnews.com"] start_urls = ["https://h5-api.tikrnews.com/h5/province"] headers = { "accep...
35.535714
74
0.59397
1c9f9c96f79893fdaa721c0b5ea11a4f3afeba36
24,117
py
Python
Day 11/blackjack.py
secureterminal/100-Days-of-Code
04383ae541938d8a551b5aac9a0dad3348a6ef23
[ "MIT" ]
1
2022-01-28T13:55:39.000Z
2022-01-28T13:55:39.000Z
Day 11/blackjack.py
secureterminal/100-Days-of-Code
04383ae541938d8a551b5aac9a0dad3348a6ef23
[ "MIT" ]
1
2022-02-02T00:13:18.000Z
2022-02-03T11:32:53.000Z
Day 11/blackjack.py
secureterminal/100-Days-of-Code
04383ae541938d8a551b5aac9a0dad3348a6ef23
[ "MIT" ]
2
2022-02-07T20:49:36.000Z
2022-02-19T21:22:15.000Z
## The deck is unlimited in size. ## There are no jokers. ## The Jack/Queen/King all count as 10. ## The the Ace can count as 11 or 1. ## Use the following list as the deck of cards: ## cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] ## The cards in the list have equal probability of being drawn. ## Cards...
43.76951
190
0.375669
eb95f49c898957452a610b94b99681b6d0d68b71
21,525
py
Python
tests/google/appengine/ext/ndb/key_test.py
phil-lopreiato/appengine-python-standard
5e2c400a24d299bb86e98f755a6ef510b4e1e0df
[ "Apache-2.0" ]
28
2021-01-06T19:55:21.000Z
2022-03-28T09:41:08.000Z
tests/google/appengine/ext/ndb/key_test.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
13
2021-06-17T09:38:17.000Z
2022-03-11T01:12:33.000Z
tests/google/appengine/ext/ndb/key_test.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
28
2021-03-09T19:27:37.000Z
2022-01-21T21:18:52.000Z
#!/usr/bin/env python # # Copyright 2007 Google 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...
33.423913
546
0.645807
c78474157f2270b92cfc74bfa756cfb2b95f31f4
2,169
py
Python
src/process_data.py
sidgairo18/deep-inspiration
13db9d02cae2a960b3b0ac3a2c95eaadbee8ad6a
[ "MIT" ]
4
2019-02-10T12:20:32.000Z
2019-02-21T22:16:36.000Z
src/process_data.py
sidgairo18/deep-inspiration
13db9d02cae2a960b3b0ac3a2c95eaadbee8ad6a
[ "MIT" ]
null
null
null
src/process_data.py
sidgairo18/deep-inspiration
13db9d02cae2a960b3b0ac3a2c95eaadbee8ad6a
[ "MIT" ]
null
null
null
from get_data import read_data import numpy as np def process(filename): quotes = read_data(filename) print ("Length of quotes", len(quotes)) #quotes appended to a single string. all_quotes = "" for q in quotes: all_quotes += q+"\n" #Map each character to an integer chars = ...
28.539474
77
0.626095
43111a4dc0b0c1545d5200e04b753e692d8c9ad0
6,939
py
Python
serialtest/sandbox/models.py
fsnidely/serialtest
2e3fd1dfb6b13ccfecb4418a801d0330490bf841
[ "MIT" ]
null
null
null
serialtest/sandbox/models.py
fsnidely/serialtest
2e3fd1dfb6b13ccfecb4418a801d0330490bf841
[ "MIT" ]
null
null
null
serialtest/sandbox/models.py
fsnidely/serialtest
2e3fd1dfb6b13ccfecb4418a801d0330490bf841
[ "MIT" ]
null
null
null
"""Database models for Sandbox App""" import os from django.conf import settings from django.core.exceptions import ValidationError from django.core.files.storage import FileSystemStorage from django.db import models from django.utils.html import format_html STATIC_IMAGES_PATH = 'sandbox/images' IMAGE_ASSET_STORAGE ...
31.256757
99
0.686122
690a9a3cb85e3ab897f1ee50ae5566b23199e686
224
py
Python
setup.py
ytkj/tblg-scraper
0bd7cd42d308aaa325e9c61203e9d84dcb16a3bb
[ "MIT" ]
null
null
null
setup.py
ytkj/tblg-scraper
0bd7cd42d308aaa325e9c61203e9d84dcb16a3bb
[ "MIT" ]
null
null
null
setup.py
ytkj/tblg-scraper
0bd7cd42d308aaa325e9c61203e9d84dcb16a3bb
[ "MIT" ]
null
null
null
import setuptools install_requires = [ 'selenium', 'chromedriver_binary', 'pandas', ] setuptools.setup( name='tblg_scraper', install_requires=install_requires, packages=setuptools.find_packages(), )
17.230769
40
0.709821
94cdca979026188bf19e2cf3807789016f0f63db
407
py
Python
molecool/atom_data.py
kanishka-ghosh/molecool
bc0b772f029a8a3e3d5319d774c83aa7899f3735
[ "BSD-3-Clause" ]
null
null
null
molecool/atom_data.py
kanishka-ghosh/molecool
bc0b772f029a8a3e3d5319d774c83aa7899f3735
[ "BSD-3-Clause" ]
1
2020-12-18T19:22:50.000Z
2020-12-18T19:22:50.000Z
molecool/atom_data.py
kanishka-ghosh/molecool
bc0b772f029a8a3e3d5319d774c83aa7899f3735
[ "BSD-3-Clause" ]
null
null
null
""" Data used for the rest of the package """ atomic_weights = { 'H': 1.00784, 'C': 12.0107, 'N': 14.0067, 'O': 15.999, 'P': 30.973762, 'F': 18.998403, 'Cl': 35.453, 'Br': 79.904, } atom_colors = { 'H': 'white', 'C': '#D3D3D3', 'N': '#add8e6', 'O': 'red', 'P': '#FFA5...
15.653846
37
0.429975
33626491bb29ba18c20ae1069249c48bd14d756c
2,279
py
Python
venv/Lib/site-packages/flake8/__init__.py
dhina016/OnCV
2429ba7bc8589e92b2c273af6e8763487e1e05a8
[ "Unlicense", "MIT" ]
9
2021-04-12T16:11:38.000Z
2022-03-18T09:03:58.000Z
venv/Lib/site-packages/flake8/__init__.py
dhina016/OnCV
2429ba7bc8589e92b2c273af6e8763487e1e05a8
[ "Unlicense", "MIT" ]
21
2021-04-13T01:17:40.000Z
2022-03-11T16:06:50.000Z
venv/Lib/site-packages/flake8/__init__.py
dhina016/OnCV
2429ba7bc8589e92b2c273af6e8763487e1e05a8
[ "Unlicense", "MIT" ]
1
2021-11-15T20:56:46.000Z
2021-11-15T20:56:46.000Z
"""Top-level module for Flake8. This module - initializes logging for the command-line tool - tracks the version of the package - provides a way to configure logging for the command-line tool .. autofunction:: flake8.configure_logging """ import logging import sys if False: # `typing.TYPE_CHECKING` was introduced...
28.848101
77
0.691531
1891e359e26ead1fcd37ba3569d365a0523a7eb7
2,613
py
Python
lbr_description/launch/view_robot.launch.py
KCL-BMEIS/lbr_fri_ros2_stack
0d2cc6e2f6bcfbff860fa87ecb87a64520f55181
[ "MIT" ]
16
2021-10-09T11:25:22.000Z
2022-02-15T22:04:41.000Z
lbr_description/launch/view_robot.launch.py
KCL-BMEIS/lbr_fri_ros2_stack
0d2cc6e2f6bcfbff860fa87ecb87a64520f55181
[ "MIT" ]
11
2021-11-03T16:43:47.000Z
2022-03-26T13:23:54.000Z
lbr_description/launch/view_robot.launch.py
KCL-BMEIS/lbr_fri_ros2_stack
0d2cc6e2f6bcfbff860fa87ecb87a64520f55181
[ "MIT" ]
2
2022-01-25T04:17:42.000Z
2022-01-25T11:07:53.000Z
from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch.substitutions import Command, FindExecutable, PathJoinSubstitution, LaunchConfiguration from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare # for reference see # https://github.com/...
30.383721
119
0.676617