hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
745292b97add86419b42b4ac20fed262c30ff97c
910
py
Python
classes/class_06.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-03-17T07:20:24.000Z
2019-03-31T05:47:09.000Z
classes/class_06.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
null
null
null
classes/class_06.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-01-28T13:09:48.000Z
2019-03-17T07:20:37.000Z
""" 1) Class 2) OOPs concept 3) Abstraction 4) Encapsulation 5) Inheritance 6) Polymorphism """ # ############################################################################# # 1) Class # ############################################################################# class ClassName(object): """ Class level ...
18.958333
79
0.46044
7452ab88143c8e68747631686569c0e2037036c9
27
py
Python
maps/chutes/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/chutes/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/chutes/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from .chutes import Chutes
13.5
26
0.814815
7452b752994a97cf678d6fb4fa36cc6a219b2651
1,003
py
Python
test/test_attrdict.py
metaist/attrbox
68c595f58e641f6e8ab1d5eb0bd163819823dd25
[ "MIT" ]
null
null
null
test/test_attrdict.py
metaist/attrbox
68c595f58e641f6e8ab1d5eb0bd163819823dd25
[ "MIT" ]
null
null
null
test/test_attrdict.py
metaist/attrbox
68c595f58e641f6e8ab1d5eb0bd163819823dd25
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """Test `AttrDict`.""" # native from pathlib import Path import json import toml # pkg from attrbox import AttrDict HERE = Path(__file__).parent def test_lshift_json(): """Expect to load JSON file.""" # See: https://cloud.google.com/appengine/docs/admin-api/creating-co...
29.5
103
0.687936
7452b756bebdcd9565c68dc9ef9d0bcb66868a2b
819
py
Python
3pp/firebase-tools/fetch.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
3pp/firebase-tools/fetch.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
3pp/firebase-tools/fetch.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import sys import requests def do_latest(): data = requests.get('https://registry.npmjs.org/firebase-tools').json(...
23.4
73
0.724054
7452b858fc319883bfd5585bd691ed64cad137f3
4,157
py
Python
tests/kafkatest/services/copycat.py
yobennett/kafka
e582447adb4708731aff74aa294e7ce2b30b0a41
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/services/copycat.py
yobennett/kafka
e582447adb4708731aff74aa294e7ce2b30b0a41
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/services/copycat.py
yobennett/kafka
e582447adb4708731aff74aa294e7ce2b30b0a41
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
43.302083
168
0.679096
7452cf7c360c1a6d2d58b6f4e72208d2b50580ba
1,186
py
Python
ArticleClassifierTF/src/data_models/transformation/article_transformer.py
joduss/ArticleClassifier
38c0e168cdd74214b7f591c7cfc7b93fc496e46b
[ "Unlicense" ]
null
null
null
ArticleClassifierTF/src/data_models/transformation/article_transformer.py
joduss/ArticleClassifier
38c0e168cdd74214b7f591c7cfc7b93fc496e46b
[ "Unlicense" ]
null
null
null
ArticleClassifierTF/src/data_models/transformation/article_transformer.py
joduss/ArticleClassifier
38c0e168cdd74214b7f591c7cfc7b93fc496e46b
[ "Unlicense" ]
null
null
null
from typing import Dict from data_models.article import Article class ArticleTransformer: # JSON Keys # ========= KEY_ID: str = "id" KEY_THEMES: str = "themes" KEY_VERIFIED_THEMES: str = "verifiedThemes" KEY_TITLE: str = "title" KEY_SUMMARY: str = "summary" KEY_PREDICTED_THEMES: str ...
31.210526
73
0.593592
745309ff599192e14c442dea0011b314860e8059
7,457
py
Python
examples/term_structure.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
2
2020-04-18T00:00:15.000Z
2020-08-17T14:24:49.000Z
examples/term_structure.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
null
null
null
examples/term_structure.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
2
2021-06-18T23:26:44.000Z
2021-10-04T08:03:01.000Z
"""Term Structure of Interest Rates - bootstrap, splines, yield curve, duration - Liu and Wu (2020), St Louis Fed FRED Terence Lim License: MIT """ import numpy as np import pandas as pd from pandas import DataFrame, Series import matplotlib.pyplot as plt import time from datetime import datetime import os import re ...
43.354651
80
0.65938
74534294dec53a30997bc080ddfb6dca2e92f39d
874
py
Python
malware_crawl/defaults.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
1
2016-12-09T03:02:05.000Z
2016-12-09T03:02:05.000Z
malware_crawl/defaults.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
null
null
null
malware_crawl/defaults.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
null
null
null
import redis from django.conf import settings import requests redis_urls = { "slave": "redis://localhost:6379/0", "master": "redis://localhost:6379/0" } redis_urls.update( getattr(settings, "MALUCRAWL_REDIS", {}).items() ) redis_db = { "slave": redis.Redis.from_url(redis_urls["slave"]), "master"...
28.193548
259
0.679634
74534c4da7538d7dbb421e343dbfd52e1b932a7e
5,731
py
Python
vissl/utils/test_utils.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
2
2022-02-22T22:10:46.000Z
2022-02-23T07:12:05.000Z
vissl/utils/test_utils.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
2
2021-07-25T15:46:07.000Z
2021-08-11T10:08:53.000Z
vissl/utils/test_utils.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import functools import os import re import tempfile from contextlib import contextmanager from dataclasses import dataclass from typing import...
29.848958
75
0.652591
74535d0a394d6dedfc34f83a205d93e8e0292e73
7,889
py
Python
openrl/algorithms/actor_critic/actor_critic_simple.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
2
2021-09-10T18:52:35.000Z
2022-01-03T19:48:06.000Z
openrl/algorithms/actor_critic/actor_critic_simple.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
1
2021-12-28T17:42:23.000Z
2021-12-28T17:42:23.000Z
openrl/algorithms/actor_critic/actor_critic_simple.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
null
null
null
""" 1-step actor-critic using shared NN model. """ import gym import time import argparse import numpy as np import tensorflow as tf from typing import Callable, Tuple from agents.base_agent import BaseAgent from models.models import actor_critic_fc_discrete_network from util.plotting import plot_training_results from...
37.037559
112
0.594372
7453601dc9608a9d9a10c910bd6a727bb8e28009
27,126
py
Python
ivy_tests/test_core/test_compilation.py
ashok-arjun/ivy
274c03f667cda10e09b75e90e7a3a46b358e0358
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_core/test_compilation.py
ashok-arjun/ivy
274c03f667cda10e09b75e90e7a3a46b358e0358
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_core/test_compilation.py
ashok-arjun/ivy
274c03f667cda10e09b75e90e7a3a46b358e0358
[ "Apache-2.0" ]
null
null
null
""" Collection of tests for unified general functions """ # global import time import torch import pytest import urllib import numpy as np from numbers import Number # local import ivy import ivy.backends.numpy import ivy_tests.helpers as helpers # Tests # # ------# # in-place # functions to compile def _fn_1(x, ...
38.862464
120
0.693615
745366024aa2a8bfec34bf043faf14424d09d14e
1,369
py
Python
setup.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
1
2019-10-22T19:11:15.000Z
2019-10-22T19:11:15.000Z
setup.py
iahmad-khan/kopf
267e23b306124d9448f4d98c060af57bb1004038
[ "MIT" ]
null
null
null
setup.py
iahmad-khan/kopf
267e23b306124d9448f4d98c060af57bb1004038
[ "MIT" ]
null
null
null
import os.path from setuptools import setup, find_packages LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() DESCRIPTION = LONG_DESCRIPTION.splitlines()[0].lstrip('#').strip() PROJECT_URLS = { 'Documentation': 'https://kopf.readthedocs.io', 'Bug Tracker': 'https://github.com...
27.38
84
0.656684
7453821554ea08c65748332a85121cd98aec766d
10,088
py
Python
aea/protocols/generator/extract_specification.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/extract_specification.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/extract_specification.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
38.503817
85
0.684675
7453866135b44dbbca1a55ae1d58f757152ebd3c
1,376
py
Python
tests/test_dataset_from_path.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
tests/test_dataset_from_path.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
tests/test_dataset_from_path.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
import inspect import exetest.decorator as dec import exetest as ex import exetest.ts_discovery as ds def count_test_cases(cls): res=0 for name, value in inspect.getmembers(cls): if name.startswith(dec.__TEST_PREFIX): res+=1 return res @dec.to_unit_tests @ds.datasets_from_path("test...
27.52
79
0.673692
7453ed4e18964a28125c4b15820db1bf50932ce1
6,599
py
Python
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HIVE/package/scripts/params.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HIVE/package/scripts/params.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HIVE/package/scripts/params.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
39.279762
125
0.775875
745400e5c4425299df29c175ce666a1c814344da
13,254
py
Python
homeassistant/components/zwave/light.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-04-07T15:44:54.000Z
2020-04-07T15:44:54.000Z
homeassistant/components/zwave/light.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/components/zwave/light.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Support for Z-Wave lights.""" import logging from threading import Timer from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_TRANSITION, ATTR_WHITE_VALUE, DOMAIN, SUPPORT_BRIGHTNESS, SUPPORT_COLOR, SUPPORT_COLOR_TEMP, SUPPORT_TRA...
33.301508
88
0.629848
745401d2c2be29a318479ec871bbcc368783c1a9
4,657
py
Python
cloud_database_communicator.py
JakeRoggenbuck/server-public
2b8268ec2e5def508ea8a2d5b1bd1b521a3ccb5b
[ "MIT" ]
1
2020-12-02T19:30:47.000Z
2020-12-02T19:30:47.000Z
cloud_database_communicator.py
JakeRoggenbuck/server-public
2b8268ec2e5def508ea8a2d5b1bd1b521a3ccb5b
[ "MIT" ]
null
null
null
cloud_database_communicator.py
JakeRoggenbuck/server-public
2b8268ec2e5def508ea8a2d5b1bd1b521a3ccb5b
[ "MIT" ]
1
2020-04-15T17:40:08.000Z
2020-04-15T17:40:08.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 FRC Team 1678: Citrus Circuits """Replicates local MongoDB database to cloud MongoDB Atlas database.""" # External imports import pymongo # Internal imports import local_database_communicator import utils def update_array(path, change_list): """Updates an array of embed...
42.336364
124
0.65772
74543cb8f2e036e3948557eb8979dbd6cab32abe
8,346
py
Python
griddly_nmmo/map_gen.py
narendasan/neural-mmo
36a588db0021cccd7275cebef2cbdc5ee8eb40d5
[ "MIT" ]
null
null
null
griddly_nmmo/map_gen.py
narendasan/neural-mmo
36a588db0021cccd7275cebef2cbdc5ee8eb40d5
[ "MIT" ]
1
2021-09-30T07:57:46.000Z
2021-10-02T00:39:11.000Z
griddly_nmmo/map_gen.py
narendasan/neural-mmo
36a588db0021cccd7275cebef2cbdc5ee8eb40d5
[ "MIT" ]
2
2021-09-16T16:43:03.000Z
2021-09-28T18:12:41.000Z
from pdb import set_trace as T from imageio import imread, imsave from enum import Enum import griddly from forge.blade.core.terrain import MapGenerator import os import numpy as np import yaml from collections import OrderedDict np.set_printoptions(threshold=5000, linewidth=200) TILE_PROB_DICT = OrderedDict({ ...
34.345679
178
0.584232
74545ca611fb14e55cd244fa4dba94c59422a2ad
998
py
Python
component/io/rss_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/io/rss_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/io/rss_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
import json from .gwb_io import GWBIo from component import parameter as cp class RssIo(GWBIo): def __init__(self): # the init file self.file = None # all the bytes values self.background = [] self.foreground = [] # the process ...
24.95
71
0.562124
74546cbc1e8d6022757ad22fd3af3087a4fea444
4,662
py
Python
python-code/opencv-learning/dnn/caffe_mobilenet_ssd_python.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opencv-learning/dnn/caffe_mobilenet_ssd_python.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opencv-learning/dnn/caffe_mobilenet_ssd_python.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 import numpy as np import argparse import cv2 # construct the argument parse parser = argparse.ArgumentParser( description='Script to run MobileNet-SSD object detection network ') parser.add_argument("--video", default='../resources/videos/motor_bike.mp4',help="path to video file. If empty, camera'...
45.705882
142
0.599957
74547cc276d451b7da7b86f8f40c51570fa84be5
2,689
py
Python
resources/lib/kodiProgressDialog.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
resources/lib/kodiProgressDialog.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
resources/lib/kodiProgressDialog.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Kodi Interface to progress dialog SPDX-License-Identifier: MIT """ import xbmcgui import xbmc import resources.lib.appContext as appContext class KodiProgressDialog(object): """ Kodi Progress Dialog Class """ def __init__(self): self.logger = appContext.LOGGER.getInstance...
33.6125
85
0.617702
74547e324817e6a99201fa13f9d5fc49a9176cb0
3,534
py
Python
tripleoclient/command.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
39
2015-09-08T14:34:36.000Z
2022-02-20T21:00:44.000Z
tripleoclient/command.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
1
2021-02-28T06:06:29.000Z
2021-02-28T06:06:29.000Z
tripleoclient/command.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
33
2015-10-01T17:53:04.000Z
2022-03-10T11:50:38.000Z
# Copyright 2017 Red Hat, 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 ...
31.274336
79
0.631013
7454826e7b38ca12d40ea0466d0d313a267a95c0
2,150
py
Python
enhterm/command/quit.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/command/quit.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/command/quit.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Contains the definition of the NoOpCommand class. """ import logging from enhterm.command import Command logger = logging.getLogger('et.quit') class QuitCommand(Command): """ Returning this command will cause the terminal to exit the command loop. Attributes: rea...
24.712644
70
0.567442
745483c9c5b265d6cc4c0946d03ee5e816b5a285
868
py
Python
hashicorp_vault_client/test/test_body51.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/test/test_body51.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/test/test_body51.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest ...
21.7
104
0.68318
745489aa91fd9fd19e67df046d10d817010228eb
1,175
py
Python
profiles/api/urls.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
profiles/api/urls.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
profiles/api/urls.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "profiles" urlpatterns = [ path('username/', views.ProfileRetriveAPIView.as_view(), name='username'), path('username/<str:username>/', views.ProfileRetirveForOtherAPIView.as_view(), name='username-other'), path("follow/", views.FollowAPIView.as_v...
61.842105
116
0.738723
745490a7274027e1d0936a212589da1e84dde4e7
1,061
py
Python
multimetric/cls/importer/base.py
Shardey/analyzer-thesis
9d91a1b1ed24d3a818807422ea140b4745d9566b
[ "BSD-2-Clause" ]
14
2019-12-21T15:21:01.000Z
2022-03-25T15:13:40.000Z
multimetric/cls/importer/base.py
Shardey/analyzer-thesis
9d91a1b1ed24d3a818807422ea140b4745d9566b
[ "BSD-2-Clause" ]
28
2019-12-21T15:17:46.000Z
2021-12-27T08:33:55.000Z
multimetric/cls/importer/base.py
Shardey/analyzer-thesis
9d91a1b1ed24d3a818807422ea140b4745d9566b
[ "BSD-2-Clause" ]
2
2020-05-28T11:20:13.000Z
2021-08-02T08:08:12.000Z
class Importer(): class ImporterItem(): def __init__(self, _file, _cnt, _sev): self._values = { "filename": _file, "content": _cnt, "severity": _sev } def match(self, _filter): return all([self._values[k] == v for...
27.921053
80
0.516494
74549c4bd1b637093a27d4fabbbd8de6ab1aceac
7,510
py
Python
tests/st/dump/dump_test_utils.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
1
2021-11-19T14:21:45.000Z
2021-11-19T14:21:45.000Z
tests/st/dump/dump_test_utils.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
tests/st/dump/dump_test_utils.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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...
34.930233
116
0.62237
7454cea0da169077171c8bf73740e8f180611407
810
py
Python
text_office/management/commands/send_queued_sms.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
null
null
null
text_office/management/commands/send_queued_sms.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
null
null
null
text_office/management/commands/send_queued_sms.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
1
2021-08-09T22:54:22.000Z
2021-08-09T22:54:22.000Z
from __future__ import unicode_literals import logging import sys from django.core.management.base import BaseCommand from text_office.models import SMS, STATUS logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'Dispatch queued sms to appropriate backend via selected rely ' \ ...
25.3125
80
0.632099
7454d9bcabd331c3fd0d087a8e613f3b46e06e6b
250
py
Python
automation/logger/select_chall.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/logger/select_chall.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/logger/select_chall.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
import os import logging logging.basicConfig( filename = os.path.dirname(os.path.realpath(__file__)) + '_select_chall.txt', filemode= 'w', level=logging.DEBUG, format = '%(asctime)s %(name)-12s %(levelname)-8s %(message)s', )
27.777778
83
0.656
7454e13899f5881ea9a0b58af903b66246792579
423
py
Python
catalog/migrations/0004_auto_20180419_1207.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0004_auto_20180419_1207.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0004_auto_20180419_1207.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-19 15:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0003_bookinstance_borrower'), ] operations = [ migrations.AlterModelOptions( name='bookinstance', options={'order...
23.5
112
0.617021
7454f881ef8538489d3ecc7f6b7d8267cbb46ace
28,280
py
Python
src/utils.py
sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data
cb21c4c3e762a0184611b1a1659e7e730ef31932
[ "MIT" ]
2
2020-08-15T13:02:05.000Z
2021-05-06T13:11:16.000Z
src/utils.py
sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data
cb21c4c3e762a0184611b1a1659e7e730ef31932
[ "MIT" ]
null
null
null
src/utils.py
sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data
cb21c4c3e762a0184611b1a1659e7e730ef31932
[ "MIT" ]
null
null
null
import json import os import torch import torchvision.transforms.functional as FT import random device = 'cuda' if torch.cuda.is_available() else 'cpu' # label map for VOC2007 and VOC2012 labels voc_labels = ('bicycle', 'car', 'motorbike', 'person') # we do not use 0 as a `voc_label` as we reserve that for # the back...
43.77709
124
0.639286
7455242f581722dc737177f632dea1b502b31c55
6,691
py
Python
tests/common/test_op/ascend/group_conv.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/group_conv.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/group_conv.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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 agre...
43.448052
173
0.555373
745540c5bf9a838ec313e93992e0afad60adc0ec
3,967
py
Python
alipay/aop/api/request/AlipayUserFamilyArchiveQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayUserFamilyArchiveQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayUserFamilyArchiveQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayUserFamilyArchiveQueryModel import AlipayUserFamilyArchiveQueryModel class AlipayUserFamilyArchiveQueryRequest(object): d...
27.358621
148
0.644316
74554a6a4ebe1d999e62160464b3f6d047932c0c
14,051
py
Python
app/quote/tests/test_quote.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
app/quote/tests/test_quote.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
app/quote/tests/test_quote.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from django.db.models import Q from rest_framework import status from rest_framework.test import APIClient from quote.quote import Prais from core.models import GrowthRateByAgeEducation, UnemploymentByAgeGrou...
40.492795
83
0.439898
745557ccc06b7a2823685957818dda8ab3fd65fb
79
py
Python
src/interpreter/__init__.py
margauxschmied/RAM_language_interpreter
608d42f76d3a2bb28906cb7664b9f852f9aee805
[ "MIT" ]
3
2022-01-26T21:19:06.000Z
2022-02-02T23:55:54.000Z
src/interpreter/__init__.py
margauxschmied/RAM_language_interpreter
608d42f76d3a2bb28906cb7664b9f852f9aee805
[ "MIT" ]
null
null
null
src/interpreter/__init__.py
margauxschmied/RAM_language_interpreter
608d42f76d3a2bb28906cb7664b9f852f9aee805
[ "MIT" ]
null
null
null
from .cantor_int import * from .decode_int import * from .interpreter import *
19.75
26
0.772152
7455c5c1e23bb2eb68fed50d7827b134c582b51c
418
py
Python
src/cltk/phonology/old_english/syllabifier.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
2
2019-08-18T21:10:01.000Z
2020-05-05T09:19:40.000Z
src/cltk/phonology/old_english/syllabifier.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
62
2019-02-01T18:48:11.000Z
2020-08-19T17:52:53.000Z
src/cltk/phonology/old_english/syllabifier.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
8
2019-04-07T03:47:31.000Z
2020-07-01T07:02:59.000Z
""" Sonority phoneme hierarchy for Old English """ Syllabifier = { "a": 1, "e": 1, "i": 1, "o": 1, "u": 1, "ø": 1, "æ": 1, "m": 2, "n": 2, "p": 2, "b": 2, "c": 2, "t": 2, "d": 2, "ð": 2, "k": 2, "g": 2, "f": 3, "þ": 3, "s": 3, "h": 3, ...
11.611111
42
0.253589
7455d1e3ab0dbe39a44e8e1cb402f7660afca6dd
5,377
py
Python
intermine/python/intermine-bio/setup.py
drhee/toxoMine
45935a8441adbfa26fb641037124507d54cda8e8
[ "PostgreSQL" ]
1
2016-08-05T15:43:46.000Z
2016-08-05T15:43:46.000Z
intermine/python/intermine-bio/setup.py
drhee/toxoMine
45935a8441adbfa26fb641037124507d54cda8e8
[ "PostgreSQL" ]
3
2017-03-23T22:21:49.000Z
2017-06-16T09:41:11.000Z
intermine/python/intermine-bio/setup.py
drhee/toxoMine
45935a8441adbfa26fb641037124507d54cda8e8
[ "PostgreSQL" ]
null
null
null
""" The test and clean code is shamelessly stolen from http://da44en.wordpress.com/2002/11/22/using-distutils/ """ from distutils.core import Command, setup from distutils import log from distutils.fancy_getopt import fancy_getopt from unittest import TextTestRunner, TestLoader from glob import glob from os.path impor...
37.601399
94
0.562023
7455fcde19e722b809f32faef71b5cf14a3ef3ce
307
py
Python
game/scripts/game_settings.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/scripts/game_settings.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/scripts/game_settings.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
1
2018-06-28T23:28:40.000Z
2018-06-28T23:28:40.000Z
from game.scripts.scenes_controller_script import ScenesControllerScript from game.scripts.constants import Constants class GameSettings: game_name = "Balance" screen_width = Constants.screen_width screen_height = Constants.screen_height scenes_list = ScenesControllerScript.get_scenes()
27.909091
72
0.814332
7456109f05f97c69ea48800bf231495d8a30e1ce
11,870
py
Python
src/test/tests/databases/netcdf.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/netcdf.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/netcdf.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: netcdf.py # # Tests: mesh - 2D, 3D structured, single domain # plots - Mesh, Pseudocolor, FilledBoundary # operators - Transform # # Programmer: Brad Whitlock # ...
28.127962
90
0.643892
745633849e15516fede81e2f15abc24f4e547c1f
7,093
py
Python
nova/api/openstack/compute/plugins/v3/attach_interfaces.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2015-01-09T10:49:56.000Z
2015-01-09T10:49:56.000Z
nova/api/openstack/compute/plugins/v3/attach_interfaces.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/plugins/v3/attach_interfaces.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2012 SINA Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.561856
78
0.627943
74566f1ebc8739272d02b2d5b51f1c888ede9d3e
1,337
py
Python
keystone/tests/unit/ksfixtures/cache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/ksfixtures/cache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/ksfixtures/cache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2021-08-29T16:53:06.000Z
2021-08-29T16:53:06.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 # distributed under the...
36.135135
78
0.715782
74567e3c9bec4cc1ec021e665bf5e390b1d56305
7,335
py
Python
cardpay/configuration.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
6
2019-07-16T06:27:25.000Z
2021-03-04T14:24:05.000Z
cardpay/configuration.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-11-18T09:07:51.000Z
2021-02-12T13:59:55.000Z
cardpay/configuration.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-07-18T13:42:15.000Z
2021-11-18T12:40:32.000Z
# coding: utf-8 """ CardPay REST API Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c...
33.340909
546
0.625767
745699aef4e2d6f75c4e6d6abcb9dc7929979751
12,920
py
Python
machin/frame/algorithms/rainbow.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/frame/algorithms/rainbow.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/frame/algorithms/rainbow.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from machin.frame.buffers.prioritized_buffer import PrioritizedBuffer # pylint: disable=wildcard-import, unused-wildcard-import from .dqn import * class RAINBOW(DQN): """ RAINBOW DQN framework. """ def __init__( self, qnet: Union[NeuralNetworkModule, nn.Module], qnet_target: ...
38
88
0.578096
7456b2f5c38c88dcc54d00f687b557cdb3148ab6
1,211
py
Python
src/hades/common/privileges.py
agdsn/hades
78782831b840188b14e37c0673a6d6e9712f64ce
[ "MIT" ]
8
2015-04-27T00:41:03.000Z
2021-11-14T17:15:26.000Z
src/hades/common/privileges.py
agdsn/hades
78782831b840188b14e37c0673a6d6e9712f64ce
[ "MIT" ]
84
2015-04-27T12:15:00.000Z
2021-11-28T19:06:23.000Z
src/hades/common/privileges.py
agdsn/hades
78782831b840188b14e37c0673a6d6e9712f64ce
[ "MIT" ]
4
2015-11-14T16:20:40.000Z
2017-09-05T00:27:49.000Z
import contextlib import getpass import logging import os import pwd logger = logging.getLogger(__name__) def drop_privileges(passwd, group): """Drop privileges completely""" logger.debug("Dropping privileges to user %s", passwd.pw_name) os.setgid(group.gr_gid) os.initgroups(passwd.pw_name, group.gr_...
30.275
77
0.715111
7456be1dd24d12db9457d398933f4ea547e55224
2,380
py
Python
iniesta/config.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2021-03-14T08:27:43.000Z
2021-03-14T08:27:43.000Z
iniesta/config 2.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
1
2020-10-08T08:14:04.000Z
2020-10-08T08:14:04.000Z
iniesta/config.py
crazytruth/iniesta
1e1cc079d04758f319c6bcee4a8a14a176e7b24e
[ "MIT" ]
null
null
null
from typing import Optional, Dict, List #: The redlock caches INIESTA_CACHES: Dict[str, dict] = { "iniesta1": {"HOST": "localhost", "PORT": 6379, "DATABASE": 1}, "iniesta2": {"HOST": "localhost", "PORT": 6379, "DATABASE": 2}, "iniesta3": {"HOST": "localhost", "PORT": 6379, "DATABASE": 3}, } #: The initial...
36.615385
113
0.764286
7456c5554c261d76d520608ce68e5c8abca3c4c6
1,841
py
Python
betabernsum/bbs_test.py
anthony-aylward/betabernsum
71b8d83e2fe8010c85829a1d203ef3ce02b74153
[ "MIT" ]
null
null
null
betabernsum/bbs_test.py
anthony-aylward/betabernsum
71b8d83e2fe8010c85829a1d203ef3ce02b74153
[ "MIT" ]
null
null
null
betabernsum/bbs_test.py
anthony-aylward/betabernsum
71b8d83e2fe8010c85829a1d203ef3ce02b74153
[ "MIT" ]
null
null
null
#=============================================================================== # bbs_test.py #=============================================================================== # Imports ====================================================================== from betabernsum.bbs import bbs_pmf, bbs_cdf # Functions ...
26.681159
80
0.516567
7456e1f38fe74ed6a60cbcb921c4441e3262616e
264
py
Python
lang/python/cffi/hello.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/cffi/hello.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/cffi/hello.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
import cffi ffi = cffi.FFI() ffi.cdef(""" int hello(char *); """) # This r(RAW) forbidden newline char lib = ffi.verify(r""" #include <stdio.h> int hello(char *name) { printf("hello, %s\n", name); return 0; } """) lib.hello(b"world")
15.529412
36
0.556818
7456e85da13cbc39c2369edc070226ea54bcaa95
25,896
py
Python
flopy/utils/check.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/utils/check.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/utils/check.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from numpy.lib import recfunctions from ..utils.recarray_utils import recarray class check: """ Check package for common errors Parameters ---------- package : object Instance of Package class. verbose : bool Boolean flag used to determine if check ...
43.088186
115
0.542593
7456ee41b02ca4d323f31e376256ff2913e12fb7
34,293
py
Python
src/learn_model.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
src/learn_model.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
src/learn_model.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''A script which produces linear energy matrix models for a given data set.''' from __future__ import division #Our standard Modules import argparse import numpy as np import scipy as sp import sys import scipy.sparse #Our miscellaneous functions import pandas as pd import mpathic_for_cluster.ut...
44.021823
125
0.640714
7456fdc844606ae460800e2dda7af10b944e6e29
21,567
py
Python
canvas_sdk/methods/conversations.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
21
2015-06-12T13:49:04.000Z
2021-11-08T05:37:44.000Z
canvas_sdk/methods/conversations.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
44
2015-02-04T15:26:52.000Z
2021-12-03T17:47:00.000Z
canvas_sdk/methods/conversations.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
7
2015-07-20T23:56:03.000Z
2021-02-23T17:13:00.000Z
from canvas_sdk import client, utils def list_conversations(request_ctx, interleave_submissions, include_all_conversation_ids, scope=None, filter=None, filter_mode=None, per_page=None, **request_kwargs): """ Returns the list of conversations for the current user, most recent ones first. :param request...
48.683973
408
0.712663
74570428228b38ac3a71bb2ea2bfaa087e199321
13,006
py
Python
superset/superset/models/helpers.py
warenlg/sourced-ui
c8ff53b369e182ee2b9715a67b00ac1688995732
[ "Apache-2.0" ]
null
null
null
superset/superset/models/helpers.py
warenlg/sourced-ui
c8ff53b369e182ee2b9715a67b00ac1688995732
[ "Apache-2.0" ]
null
null
null
superset/superset/models/helpers.py
warenlg/sourced-ui
c8ff53b369e182ee2b9715a67b00ac1688995732
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.329609
79
0.583577
74570487fe017c9fdeb8cc860d78910e8d55c261
8,536
py
Python
spikeforest_analysis/summarize_recordings.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest_analysis/summarize_recordings.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest_analysis/summarize_recordings.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import spikeextractors as si # import spikewidgets as sw import json from PIL import Image import os from copy import deepcopy from cairio import client as ca import mlprocessors as mlpr # from matplotlib import pyplot as plt from .compute_units_info import ComputeUnitsInfo _CONTAINER='sha1://3b26155930cc4a4745c67b702...
39.702326
186
0.691307
745729b8486ba4792d57aa89aa3dc0fa64fcefc8
25,267
py
Python
processing_provider/Survey_closedPolygonal.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
19
2021-03-14T11:37:00.000Z
2022-03-31T13:29:57.000Z
processing_provider/Survey_closedPolygonal.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
4
2021-04-06T03:57:43.000Z
2022-03-28T22:57:07.000Z
processing_provider/Survey_closedPolygonal.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
3
2022-02-12T16:14:17.000Z
2022-03-28T22:18:04.000Z
# -*- coding: utf-8 -*- """ Survey_closedPolygonal.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Gen...
45.362657
318
0.547908
745743bb925e1cc2d12cc473618a57135ef1a6b8
1,662
py
Python
zerver/webhooks/zendesk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/zendesk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/webhooks/zendesk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
# -*- coding: utf-8 -*- from typing import Any, Dict, Optional, Text from zerver.lib.test_classes import WebhookTestCase class ZenDeskHookTests(WebhookTestCase): STREAM_NAME = 'zendesk' URL_TEMPLATE = u"/api/v1/external/zendesk?stream={stream}" DEFAULT_TICKET_TITLE = 'User can\'t login' TICKET_TITLE ...
35.361702
108
0.649218
745751127d5cba8a7d7ebc453462d7b43a4d5da2
406
py
Python
Seeder/harvests/migrations/0009_topiccollection_order.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/harvests/migrations/0009_topiccollection_order.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/harvests/migrations/0009_topiccollection_order.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
# Generated by Django 2.2 on 2019-06-07 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('harvests', '0008_harvest_topic_collection_frequency'), ] operations = [ migrations.AddField( model_name='topiccollection', ...
21.368421
64
0.62069
745784c6581ca3ebe1de5144aabdb718a3b301e1
786
py
Python
model/probability/output_generator.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
model/probability/output_generator.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
model/probability/output_generator.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
1
2019-11-04T01:17:40.000Z
2019-11-04T01:17:40.000Z
import numpy as np def get_inputs_outputs(x, y, max_decoder_seq_len, num_decoder_tokens): # Prepare inputs for current chunk encoder_input_data = np.array(x) # For what concerns the decoder we need to decoder_input_data = np.array(y) length = len(y) decoder_target_data = np.zeros( (le...
35.727273
83
0.71374
745786911fb18cea8818bca88a76e9eb06fe4164
1,690
py
Python
setup.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
setup.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
setup.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand __version__ = "unknown" # "import" __version__ for line in open("sfs/__init__.py"): if line.startswith("__version__"): exec(line) break # See http://pytest.org/latest/goodpractises.html...
26.825397
78
0.645562
74579d16133f1d30d0938a0f8cc9bbe37b920c34
2,998
py
Python
SciPy2016/MTwork/ForwardModeling_noExtension/findDiam_MTforward_HKPK1.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
1
2021-08-07T13:46:54.000Z
2021-08-07T13:46:54.000Z
SciPy2016/MTwork/ForwardModeling_noExtension/findDiam_MTforward_HKPK1.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
1
2016-07-27T22:20:36.000Z
2016-07-27T22:20:36.000Z
SciPy2016/MTwork/ForwardModeling_noExtension/findDiam_MTforward_HKPK1.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
null
null
null
# Script to make "simple" geothermal models to show effects of shallow structures. import numpy as np, sys, os, time, gzip, cPickle as pickle, scipy, gc from glob import glob #sys.path.append('/tera_raid/gudni/gitCodes/simpeg') #sys.path.append('/tera_raid/gudni/gitCodes/simpegem') import SimPEG as simpeg import SimPEG...
35.690476
112
0.705137
7457faed7bdbb7712f4396e8bbdcc318f3a128eb
4,233
py
Python
natural_selection/genetic_algorithms/utils/random_functions.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/genetic_algorithms/utils/random_functions.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/genetic_algorithms/utils/random_functions.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
from numpy import random def random_int(gene): """ Random integer from range. Args: gene (Gene): A gene with a set `gene_min` and `gene_max`. Returns: int: Random number. """ return random.randint(low=gene.gene_min, high=gene.gene_max) def random_int_step(gene): """ R...
33.864
133
0.690999
74581eedda7d5dbd20cf695d38a45d19f52705d9
3,869
py
Python
NBA Project/venv/Lib/site-packages/plotly/validators/layout/updatemenu/button/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/validators/layout/updatemenu/button/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
NBA Project/venv/Lib/site-packages/plotly/validators/layout/updatemenu/button/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="visible", parent_name="layout.updatemenu.button", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, par...
30.706349
85
0.608426
74586252ac0840aade5cacb05d63c73f2ee1bd78
8,528
py
Python
offres_emploi/api.py
Aclau99/api-offres-emploi
abeaf74b22431613fc5fa4b280ad4de4a331b447
[ "MIT" ]
4
2020-11-18T18:15:11.000Z
2022-02-11T09:56:19.000Z
offres_emploi/api.py
Aclau99/api-offres-emploi
abeaf74b22431613fc5fa4b280ad4de4a331b447
[ "MIT" ]
2
2022-02-22T15:52:13.000Z
2022-02-25T17:31:34.000Z
offres_emploi/api.py
Aclau99/api-offres-emploi
abeaf74b22431613fc5fa4b280ad4de4a331b447
[ "MIT" ]
2
2021-10-03T16:30:45.000Z
2022-02-22T16:04:25.000Z
import datetime import time import re import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from requests.exceptions import HTTPError # CONSTANTS ENDPOINT_ACCESS_TOKEN = "https://entreprise.pole-emploi.fr/connexion/oauth2/access_token" OFFRES_DEMPLOI_V2_BASE ...
36.135593
189
0.598499
74587c2aac74113a342093d9901b2037cea41166
616
py
Python
account/templatetags/account_partial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
account/templatetags/account_partial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
account/templatetags/account_partial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
from django import template from messages.models import Messages register = template.Library() @register.simple_tag(takes_context=True) def header(context, **kwargs): request = context['request'] if not request.user.is_anonymous: h_message = Messages.objects.get_messages_header(seller=request.user) ...
25.666667
86
0.694805
7458929a297a074ff871182c5c36044651bbbe58
1,678
py
Python
analysis/tuning_get_frequency_inhibition_peaks.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/tuning_get_frequency_inhibition_peaks.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/tuning_get_frequency_inhibition_peaks.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Sun May 20 11:35:03 2018 @author: DanielM """ import os import numpy as np import shelve import matplotlib.pyplot as plt # Setup some parameters given by paradigm_frequency_inhibition.py stim_delay = 100 # ms dt = 0.01 # ms stim_dtp = stim_delay / dt data_path = "C:\\Users\\...
32.901961
138
0.699642
74589ad1228a7958e98884dafd5846759f503cb9
1,868
py
Python
data_preprocessing/MLS_proc/read_meta-info.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
5
2021-10-11T13:44:05.000Z
2022-02-22T12:55:25.000Z
data_preprocessing/MLS_proc/read_meta-info.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
null
null
null
data_preprocessing/MLS_proc/read_meta-info.py
Natalia-T/NeurIPS2021
1b368c6461a9a56a4337f9ee86888e286a55f2f9
[ "MIT" ]
8
2021-09-09T14:49:14.000Z
2022-03-03T15:53:09.000Z
#!/usr/bin/python3 """ Date: 15/12/2020 Author: Solène Lecture du fichier metainfo.txt pour récupérer le nombre d'heures d'enregistrement ainsi que le nombre d'hommes et de femmes Disposition des colonnes: SPEAKER | GENDER | PARTITION | MINUTES | BOOK ID | TITLE | CHA...
33.357143
146
0.607602
7458a2d2527d3e3a9f81c3bc683122fd2555f9dd
17,217
py
Python
lock/lock.py
design4webdev/phen-cogs
bc22ee61c8724eafb4a0317089e52b985ab5c32a
[ "MIT" ]
null
null
null
lock/lock.py
design4webdev/phen-cogs
bc22ee61c8724eafb4a0317089e52b985ab5c32a
[ "MIT" ]
null
null
null
lock/lock.py
design4webdev/phen-cogs
bc22ee61c8724eafb4a0317089e52b985ab5c32a
[ "MIT" ]
null
null
null
from copy import copy from typing import List, Literal, Optional, Union import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.config import Config from redbot.core.utils.chat_formatting import box, humanize_list, inline from .converters import ChannelToggle, FuzzyRol...
40.992857
144
0.589476
7458bf1ea03d59755e96e92d8dbda913b03e22d6
3,362
py
Python
src/morphforge/morphology/mesh/util.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/morphology/mesh/util.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/morphology/mesh/util.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
31.420561
72
0.634444
7458d71f418d9dad5935d6b24adde8b99e40dd7e
5,614
py
Python
autotest/gdrivers/vrtfilt.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/gdrivers/vrtfilt.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/gdrivers/vrtfilt.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test VRT driver based filtering. # Author: Frank Warmerdam <warmerdam@pobox.com> # ##############################################################################...
33.023529
108
0.593516
7458e5338a28a7f858653944a77613fd6ccde123
7,012
py
Python
metalibm_functions/ml_acos.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_functions/ml_acos.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_functions/ml_acos.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
40.531792
149
0.711209
7458f69159a54027e4beec354240ade4a1bfd80d
8,147
py
Python
myppy/envs/macosx.py
cloudmatrix/myppy
d7b6f670a891a6520ba4a3c3a817ce9b4cca1d8d
[ "BSD-3-Clause" ]
19
2015-02-13T20:21:11.000Z
2022-01-20T08:48:25.000Z
myppy/envs/macosx.py
cloudmatrix/myppy
d7b6f670a891a6520ba4a3c3a817ce9b4cca1d8d
[ "BSD-3-Clause" ]
2
2016-06-24T11:23:21.000Z
2017-02-18T06:38:17.000Z
myppy/envs/macosx.py
cloudmatrix/myppy
d7b6f670a891a6520ba4a3c3a817ce9b4cca1d8d
[ "BSD-3-Clause" ]
3
2015-05-21T22:00:31.000Z
2019-04-29T15:26:51.000Z
# Copyright (c) 2009-2010, Cloud Matrix Pty. Ltd. # All rights reserved; available under the terms of the BSD License. from __future__ import with_statement import os import stat import subprocess from textwrap import dedent from myppy.envs import base from myppy import util from myppy.recipes import macosx as _m...
38.795238
149
0.60108
745900c170c0165f7ef67b249e3b13ac02590208
2,588
py
Python
tests/st/ops/ascend/vector/test_scatter__001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_scatter__001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_scatter__001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 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...
32.35
151
0.572643
745974fb6681935641417179ebe6722660a33b92
71,127
py
Python
tests/python/gpu/test_operator_gpu.py
qingzhouzhen/densetnet
823db6b8a5656460861f281fcad14b0588655f43
[ "Apache-2.0" ]
null
null
null
tests/python/gpu/test_operator_gpu.py
qingzhouzhen/densetnet
823db6b8a5656460861f281fcad14b0588655f43
[ "Apache-2.0" ]
null
null
null
tests/python/gpu/test_operator_gpu.py
qingzhouzhen/densetnet
823db6b8a5656460861f281fcad14b0588655f43
[ "Apache-2.0" ]
1
2019-07-15T01:48:44.000Z
2019-07-15T01:48:44.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
50.950573
150
0.577165
745981608f024f0f87e58ba58e684d9321d19c7b
1,021
py
Python
token_management/TokenManagerAbstract.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
null
null
null
token_management/TokenManagerAbstract.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2021-03-16T20:28:19.000Z
2021-03-16T20:28:19.000Z
token_management/TokenManagerAbstract.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2022-03-04T01:21:09.000Z
2022-03-04T01:21:09.000Z
import abc from datetime import datetime, timedelta import time class TokenManagerAbstract(metaclass=abc.ABCMeta): timeout_wait = 2 connection_loss_wait = 60 error_code_wait = 1 def set_timeout_wait(self, period): self.timeout_wait = period def set_connection_loss_wait(self, period): ...
20.836735
50
0.67189
745a3f660c0651c8143b9b1d86593d37a0a9f656
6,796
py
Python
python/openlattice/models/integration_results.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/openlattice/models/integration_results.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/openlattice/models/integration_results.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openlattice.configuration import Configuration ...
33.98
188
0.662007
745a5b1caf2fe348f1b276ccc245aa2ef350a62e
2,892
py
Python
tensorflow/contrib/tensor_forest/hybrid/python/layers/fully_connected.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/tensor_forest/hybrid/python/layers/fully_connected.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/tensor_forest/hybrid/python/layers/fully_connected.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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 applica...
34.843373
80
0.709198
745a71b7972843d45deca37fa79dc8a458951db0
1,504
py
Python
mag2exp/util/util.py
ubermag/exsim
35e7a88716a9ed2c9a34f4c93c628560a597b57f
[ "BSD-3-Clause" ]
null
null
null
mag2exp/util/util.py
ubermag/exsim
35e7a88716a9ed2c9a34f4c93c628560a597b57f
[ "BSD-3-Clause" ]
6
2021-06-10T13:42:08.000Z
2021-07-21T08:57:50.000Z
mag2exp/util/util.py
ubermag/exsim
35e7a88716a9ed2c9a34f4c93c628560a597b57f
[ "BSD-3-Clause" ]
null
null
null
import scipy.ndimage import numpy as np import discretisedfield as df def gaussian_filter(field, /, fwhm): """ Gaussian filter. Convolution of a field with a 1 dimensional filter. Parameters ---------- field : discretisedfield.field Magnetisation field. fwhm : array_like, optional ...
33.422222
79
0.576463
745a7a0c506098790642eec885ca9481d5dd937b
971
py
Python
exe1505_rw_visual.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1505_rw_visual.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1505_rw_visual.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from exe1505_random_walk import RandomWalk # Continua criando novos passeios enquanto o programa estiver ativo while True: # Cria um passeio aleatório e plota os pontos # Removendo os eixos plt.rcParams['axes.spines.right'] = False plt.rcParams['axes.spines.top'] = Fal...
29.424242
67
0.659114
745a8b89666cb563ad878add0529f45a4d47a8b6
338
py
Python
fiepipedesktoplib/gitlabserver/shell/server_name_var_command.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/server_name_var_command.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/server_name_var_command.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
from fiepipedesktoplib.gitlabserver.shell.gitlab_hostname_input_ui import GitLabHostnameInputShellUI from fieuishell.Shell import VarCommand class GitLabServerNameVar(VarCommand[str]): def __init__(self): super().__init__(GitLabHostnameInputShellUI(self), "") def is_valid(self): return self....
28.166667
100
0.763314
745a9c4af8fd70e3ae4dbd62dfeef6cf581fd0cd
32,495
py
Python
bs4/testing.py
qbosen/leetcode_file_generator
594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8
[ "MIT" ]
2
2019-02-17T11:55:41.000Z
2022-03-04T14:37:01.000Z
application/physical/otmr/scraper/lib/bs4/testing.py
cprior/finance-stuff
6a9389456e1068e0e8fc6bd83c87b8144a6390bf
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
application/physical/otmr/scraper/lib/bs4/testing.py
cprior/finance-stuff
6a9389456e1068e0e8fc6bd83c87b8144a6390bf
[ "MIT" ]
2
2018-11-28T10:08:31.000Z
2021-06-22T06:07:42.000Z
# encoding: utf-8 """Helper classes for tests.""" # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. __license__ = "MIT" import pickle import copy import functools import unittest from unittest import TestCase from bs4 import BeautifulSoup from bs4.element import ( ...
40.067818
237
0.625758
745ab4de5efce1a6e34888a8133bc9a82b6296e0
1,214
py
Python
tests/test_multimethod.py
goerz-testing/multiple_dispatch_test
a518e1132c6f8d79a5829e01594e87769e87a3d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_multimethod.py
goerz-testing/multiple_dispatch_test
a518e1132c6f8d79a5829e01594e87769e87a3d8
[ "BSD-3-Clause" ]
null
null
null
tests/test_multimethod.py
goerz-testing/multiple_dispatch_test
a518e1132c6f8d79a5829e01594e87769e87a3d8
[ "BSD-3-Clause" ]
null
null
null
from multimethod import multimethod import pytest @multimethod def func(x: int, y: int): expr = x + y return "base func(x=%r, y=%r): %r" % (x, y, expr) @func.register def func_for_str_float(x: str, y: float): expr = "%s + %.1f" % (x, y) return "str_float func(x=%r, y=%r): %r" % (x, y, expr) def t...
26.977778
75
0.575783
745ac738cd27ba1c7d318c56339b37f2d39be8b6
2,512
py
Python
sdk/core/azure-mgmt-core/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/core/azure-mgmt-core/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/core/azure-mgmt-core/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #---------------------------------------------------------------...
33.945946
91
0.603105
745ae434a2a10f7f1917600ab677e9636c25f3f5
1,538
py
Python
var/spack/repos/builtin/packages/r-emmeans/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-emmeans/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-emmeans/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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 REmmeans(RPackage): """Estimated Marginal Means, aka Least-Squares Means Obtain estim...
43.942857
97
0.718466
745b25e119f9c9c3d12d3a159b76e3ac01ed79c3
1,192
py
Python
test_naivebayes.py
CleverChuk/cleverchuk-ml
6deda26eb909fc3b91f7ca849a5316107f92d510
[ "MIT" ]
null
null
null
test_naivebayes.py
CleverChuk/cleverchuk-ml
6deda26eb909fc3b91f7ca849a5316107f92d510
[ "MIT" ]
null
null
null
test_naivebayes.py
CleverChuk/cleverchuk-ml
6deda26eb909fc3b91f7ca849a5316107f92d510
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Test and Training data from https://github.com/hmcuesta/PDA_Book/ """ import unittest import os import csv from naivebayes import * ROOT_DIR = "~" CUR_DIR = "" class TestNaiveBayes(unittest.TestCase): nb = NaiveBayes() def setUp(self): path = os.path.join("training.csv") ...
26.488889
86
0.566275
745b2accff726223ddc8f7ea0dd10da41d36dda4
13,766
py
Python
tests/synthdefs/test_synthdefs_SynthDefCompiler_width_first.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/synthdefs/test_synthdefs_SynthDefCompiler_width_first.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/synthdefs/test_synthdefs_SynthDefCompiler_width_first.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
# flake8: noqa import uqbar.strings import supriya.synthdefs import supriya.ugens def test_01(): with supriya.synthdefs.SynthDefBuilder() as builder: local_buf = supriya.ugens.LocalBuf(2048) source = supriya.ugens.PinkNoise.ar() pv_chain = supriya.ugens.FFT(buffer_id=local_buf, source=so...
37.205405
93
0.34992
745b3622d09d693a6c1637160fba0be1bf909e6b
2,520
py
Python
utuputki/webui/webui_main.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
6
2015-10-24T03:16:16.000Z
2019-10-07T18:35:15.000Z
utuputki/webui/webui_main.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
28
2015-10-23T07:26:29.000Z
2016-04-03T13:13:17.000Z
utuputki/webui/webui_main.py
katajakasa/utuputki2
27dd38de512807ac1884e4df9d4ef8e80a74b252
[ "MIT" ]
2
2016-04-04T20:54:36.000Z
2019-08-08T12:14:25.000Z
# -*- coding: utf-8 -*- import os os.sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import logging import sys from time import sleep from tornado import web, ioloop from sockjs.tornado import SockJSRouter from common.db import db_init from mq import MessageQueue from socks import Utupu...
26.25
79
0.594048
745b453ed86392f583f0591888c218de7d264593
2,053
py
Python
src/genie/telemetry/utils.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
3
2020-05-24T11:47:53.000Z
2020-09-06T21:22:21.000Z
src/genie/telemetry/utils.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
null
null
null
src/genie/telemetry/utils.py
CiscoTestAutomation/genietelemetry
286cd1d281c7375c3d161955fa3ce52e1da52372
[ "Apache-2.0" ]
null
null
null
import yaml import traceback from pyats.datastructures import OrderableDict # declare module as infra __genietelemetry_infra__ = True ESCAPE_STD = (("&", "&amp;"), ("<", "&lt;"), (">", "&gt;"), ("\"", "&quot;"), ("\n", "\u000A")) def escape(stdinput): # liv...
30.641791
79
0.632245
745b58ff77198120a55d63825fc812c77c6ead63
1,194
py
Python
deeppavlov/metrics/log_loss.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-05-22T08:34:33.000Z
2019-05-22T08:34:33.000Z
deeppavlov/metrics/log_loss.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/metrics/log_loss.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
31.421053
93
0.726131
745b63b9b3777c7c250f40aff5cd8b714e7c0612
1,343
py
Python
tests/test_main.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
tests/test_main.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
tests/test_main.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
import space import beyond def test_as_package(run): """Invocation of the space command via python packages use the ```if __name__ == "__main__"``` at the bottom of the __main__.py file """ r = run("python -m space") assert r.stdout assert not r.stderr assert not r.success def tes...
22.383333
68
0.591214
745bc7c69778d1afa1870e7fd77f560c642030cb
5,263
py
Python
python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
1
2019-09-11T03:02:27.000Z
2019-09-11T03:02:27.000Z
import io import pickle from dagster import Field, MemoizableIOManager, StringSource, check, io_manager from dagster.utils import PICKLE_PROTOCOL class PickledObjectS3IOManager(MemoizableIOManager): def __init__( self, s3_bucket, s3_session, s3_prefix=None, ): self.buc...
33.954839
100
0.67148
745bfa9042f2617fc8e97e41367c70291197d762
8,012
py
Python
hdd/usr/ponysay/src/kms.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
38
2019-05-17T16:40:13.000Z
2022-03-11T15:56:59.000Z
hdd/usr/ponysay/src/kms.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
2
2019-05-08T09:23:26.000Z
2021-08-08T09:23:49.000Z
hdd/usr/ponysay/src/kms.py
monday-lesley/ponyos
aec744f0a2740d8bb6b8e59c53b135a49e297603
[ "CC-BY-3.0" ]
4
2020-12-03T06:03:44.000Z
2021-11-18T02:20:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' ponysay - Ponysay, cowsay reimplementation for ponies Copyright (C) 2012-2016 Erkin Batu Altunbaş et al. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fou...
33.805907
127
0.574139
745c136e90eafca6d2e6d7a1dd10a77d309d1baa
9,535
py
Python
tools/check_partition_sizes.py
FabriSC/Alioth-SC
bbe9723401b351c2a34b09a30978373d456d20a2
[ "MIT" ]
null
null
null
tools/check_partition_sizes.py
FabriSC/Alioth-SC
bbe9723401b351c2a34b09a30978373d456d20a2
[ "MIT" ]
null
null
null
tools/check_partition_sizes.py
FabriSC/Alioth-SC
bbe9723401b351c2a34b09a30978373d456d20a2
[ "MIT" ]
1
2022-03-30T04:47:35.000Z
2022-03-30T04:47:35.000Z
#!/usr/bin/env python # # Copyright (C) 2019 The Android Open Source Project # # 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 req...
34.422383
80
0.663031
745c179a95fa008669e441ac7446701009cd5bdf
87
py
Python
spektral/__init__.py
larsroe/spektral
1c4a98ac6853ea5fe99fba8f4675da0b77823f89
[ "MIT" ]
null
null
null
spektral/__init__.py
larsroe/spektral
1c4a98ac6853ea5fe99fba8f4675da0b77823f89
[ "MIT" ]
null
null
null
spektral/__init__.py
larsroe/spektral
1c4a98ac6853ea5fe99fba8f4675da0b77823f89
[ "MIT" ]
null
null
null
from . import layers from . import datasets from . import utils __version__ = '1.0.0'
14.5
22
0.724138
745c3d313e57b43a189b42dad404178d5c05c331
3,105
py
Python
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
1
2020-10-22T03:54:55.000Z
2020-10-22T03:54:55.000Z
""" Mock medication database making use of dm+d/SNOMED medication IDs Cautionary text is placeholder and not accurate. """ medication_data = [{"id": 327096008, "full_name": "Tacrolimus 1mg capsules", "short_name": "Tacrolimus", "cautionary_text": "Avoid exces...
50.080645
102
0.456039
745c4d3ebe556cd4b580af6c332ccfc7e2fa6af2
704
py
Python
tests/datastructures/test_data_reverse.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/datastructures/test_data_reverse.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/datastructures/test_data_reverse.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from datastructures.lists.data_reverse import data_reverse class DataReverseTestCase(unittest.TestCase): def test_data_reverse(self): data1 = [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0] data2 = [1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, ...
35.2
112
0.535511
745c752715a40979aaae3645a6bf6d0cc1c85981
3,441
py
Python
2021/day_16.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
24
2020-12-08T20:07:52.000Z
2022-01-18T20:08:06.000Z
2021/day_16.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
null
null
null
2021/day_16.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
10
2020-12-04T10:04:15.000Z
2022-02-21T22:22:26.000Z
#!/usr/bin/env python3 """Advent of Code 2021 Day 16 - Packet Decoder""" class Packet: def __init__(self, binary): self.binary = binary self.version = int(self.binary[0:3], 2) self.type = int(self.binary[3:6], 2) if self.type == 4: self.subs = [] self.val...
28.675
71
0.539959
745c7aa0fdd8fcdd47d6eb9085b3216ed52e9480
18,369
py
Python
almonds/almonds.py
Tenchi2xh/Almonds
6b27024729f055f2cb5e14ae3ca3cb428ae054bc
[ "MIT" ]
45
2015-10-16T10:25:40.000Z
2022-03-23T00:54:47.000Z
almonds/almonds.py
Tenchi2xh/Almonds
6b27024729f055f2cb5e14ae3ca3cb428ae054bc
[ "MIT" ]
9
2015-10-15T09:55:05.000Z
2022-01-02T13:44:48.000Z
almonds/almonds.py
Tenchi2xh/Almonds
6b27024729f055f2cb5e14ae3ca3cb428ae054bc
[ "MIT" ]
3
2015-12-27T09:44:50.000Z
2017-12-21T14:00:19.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- from __future__ import print_function from __future__ import division import os import sys import textwrap import multiprocessing import subprocess from PIL import Image from .cursebox import * from .plane import Plane from .splash import splash from .graphics.option_menu...
34.016667
114
0.553977
745c8babdce3bfd0a6ba99f137db01c77d9e58af
2,273
py
Python
apps/quotes/models.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
4
2016-12-12T12:18:37.000Z
2017-03-08T07:49:14.000Z
apps/quotes/models.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
24
2017-08-25T14:15:52.000Z
2022-02-26T19:24:17.000Z
apps/quotes/models.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.db import models from django.utils import timezone class NameAsStrMixin(object): name = None def __str__(self, *args, **kwargs): return self.name class UserTimeStampedModel(models.Model): created = models.DateTimeField(auto_now_add=True, editable=Fal...
32.014085
94
0.688517
745c8ef156bb55936e7156386e51f7260d6210c7
7,165
py
Python
veros/core/density/get_rho.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
veros/core/density/get_rho.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
veros/core/density/get_rho.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
from veros import veros_kernel from veros.core.density import gsw, linear_eq as lq, nonlinear_eq1 as nq1, nonlinear_eq2 as nq2, nonlinear_eq3 as nq3 @veros_kernel def get_rho(state, salt_loc, temp_loc, press): """ calculate density as a function of temperature, salinity and pressure """ settings = sta...
36.556122
117
0.715841
745c950acb45f5e33182c4f7594f88de9b59142b
2,921
py
Python
tests/st/ops/ascend/vector/test_squeeze_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_squeeze_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_squeeze_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 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 a...
34.77381
147
0.558028
745cbd6c6d35ac1646a21efdb99f75a021c5a7b0
6,030
py
Python
tests/test_boiling_flow.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
118
2016-01-04T07:46:23.000Z
2022-03-29T14:12:59.000Z
tests/test_boiling_flow.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
4
2017-06-27T08:01:02.000Z
2020-10-06T14:18:46.000Z
tests/test_boiling_flow.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
22
2016-04-20T06:17:35.000Z
2022-03-07T01:40:25.000Z
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017, 2018, 2019, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
41.30137
171
0.641294
745cbede6b8b29860c3da9b1096a7205f8648737
1,257
py
Python
doto/cli/sub_cmds.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
1
2016-05-03T12:38:30.000Z
2016-05-03T12:38:30.000Z
doto/cli/sub_cmds.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
doto/cli/sub_cmds.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
import importlib import pkgutil import sys def import_commands(module): """Import all commands dynamicylly from cli.cmd.""" commands = {} path = module.__path__ name = module.__name__ for _, modname, _ in pkgutil.iter_modules(path, name + "."): module = importlib.import_module(modname) ...
26.1875
70
0.670644