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
ac1f5a214479b71a4b38ad1fccc7e5260f7d396e
1,017
py
Python
doc/python_api/examples/bge.texture.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
doc/python_api/examples/bge.texture.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
doc/python_api/examples/bge.texture.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
""" Basic Video Playback ++++++++++++++++++++ Example of how to replace a texture in game with a video. It needs to run everyframe. """ import bge from bge import texture from bge import logic cont = logic.getCurrentController() obj = cont.owner # the creation of the texture must be done once: save the # texture obje...
29.911765
77
0.720747
ac1f68bd485460a1bda9b9f2d592f17b46c1a839
22,826
py
Python
actions/action.py
Lizhengo/ChitChatAssistant
5b85cb64a3a08d129b3648b277b61e12a1163116
[ "Apache-2.0" ]
null
null
null
actions/action.py
Lizhengo/ChitChatAssistant
5b85cb64a3a08d129b3648b277b61e12a1163116
[ "Apache-2.0" ]
null
null
null
actions/action.py
Lizhengo/ChitChatAssistant
5b85cb64a3a08d129b3648b277b61e12a1163116
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Text, Any, List, Union from rasa_sdk import Tracker, Action from rasa_sdk.events import UserUtteranceReverted, Restarted, SlotSet, AllSlotsReset from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction from utils.utils import time_finder import re from actions.T...
32.985549
95
0.528301
ac1f9c80d63c6a9200279dd692a39a0065a077c7
5,440
py
Python
ariadne/viewer.py
hz-b/ariadne
e6fad3783566ddf07e4e61f670e03a86d3f1dd0f
[ "BSD-3-Clause" ]
null
null
null
ariadne/viewer.py
hz-b/ariadne
e6fad3783566ddf07e4e61f670e03a86d3f1dd0f
[ "BSD-3-Clause" ]
null
null
null
ariadne/viewer.py
hz-b/ariadne
e6fad3783566ddf07e4e61f670e03a86d3f1dd0f
[ "BSD-3-Clause" ]
null
null
null
import os from bluesky_widgets.models.run_engine_client import RunEngineClient from bluesky_widgets.qt import Window from bluesky_widgets.models.plot_specs import Axes, Figure from bluesky_widgets.models.plot_builders import Lines from bluesky_widgets.models.auto_plot_builders import AutoPlotter from .widgets import ...
34.871795
106
0.592647
ac1fcb17e573ebb4a4fc65574e4c35dea7df3647
460
py
Python
src/economy/migrations/0026_alter_clearhaussettlement_options.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/economy/migrations/0026_alter_clearhaussettlement_options.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/economy/migrations/0026_alter_clearhaussettlement_options.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# Generated by Django 3.2.7 on 2021-09-09 13:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("economy", "0025_clearhaussettlement"), ] operations = [ migrations.AlterModelOptions( name="clearhaussettlement", options={ ...
21.904762
55
0.565217
ac1fd215b9f540c8d78959864a041f43376e1be1
9,562
py
Python
PaddleCV/PaddleDetection/tools/infer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
1
2021-01-08T08:22:32.000Z
2021-01-08T08:22:32.000Z
PaddleCV/PaddleDetection/tools/infer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
null
null
null
PaddleCV/PaddleDetection/tools/infer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
1
2019-09-09T03:38:23.000Z
2019-09-09T03:38:23.000Z
# Copyright (c) 2019 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 appli...
35.025641
79
0.653106
ac1fd59dbf075f98cf25e27a8900fd8f42d7c962
5,906
py
Python
Windows_folder/Python files/Quantiacs_LR_v1.1.2.py
anshul96go/ML_Quant
be3202c38fd338495f5f2aaa54544d3a796b85cf
[ "MIT" ]
null
null
null
Windows_folder/Python files/Quantiacs_LR_v1.1.2.py
anshul96go/ML_Quant
be3202c38fd338495f5f2aaa54544d3a796b85cf
[ "MIT" ]
null
null
null
Windows_folder/Python files/Quantiacs_LR_v1.1.2.py
anshul96go/ML_Quant
be3202c38fd338495f5f2aaa54544d3a796b85cf
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: import quantiacsToolbox import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn import linear_model from sklearn.preprocessing import PolynomialFeatures get_ipython().run_line_magic('matplotlib', 'inline') # In[ ]: class myStrategy(object): def myTrading...
69.482353
3,465
0.495259
ac1ff2a9444b12bac3cc841c4a2ed5673be568f1
4,281
py
Python
monai/transforms/inverse_batch_transform.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
1
2021-07-13T00:34:41.000Z
2021-07-13T00:34:41.000Z
monai/transforms/inverse_batch_transform.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
monai/transforms/inverse_batch_transform.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
41.563107
112
0.691427
ac1ffc39b98992c5a712406e882a7e771dfbced1
4,349
py
Python
igibson/object_states/inside.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/object_states/inside.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/object_states/inside.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import pybullet as p from IPython import embed import igibson from igibson.external.pybullet_tools.utils import aabb_contains_point from igibson.object_states.aabb import AABB from igibson.object_states.adjacency import HorizontalAdjacency, VerticalAdjacency, flatten_planes from igibson.object_states.kinematics import...
47.791209
113
0.699701
ac20054068f3ac27488c505b060b1e4115bb0033
583
py
Python
tests/screenshot2.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
tests/screenshot2.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
tests/screenshot2.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
""" two calls This can be error """ import logging from easyprocess import EasyProcess from pyvirtualdisplay.smartdisplay import SmartDisplay logging.basicConfig(level=logging.DEBUG) backend1 = "wx" backend2 = "wx" with SmartDisplay(visible=0, bgcolor="black") as disp: disp.pyscreenshot_backend = backend1 ...
18.806452
54
0.727273
ac20247704515d051f784fee642359ca81993288
1,215
bzl
Python
dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
1
2020-12-20T03:30:10.000Z
2020-12-20T03:30:10.000Z
dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
null
null
null
dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl
cdleary/bazel_rules_hdl
3ef172ce63cecf43bb4f3648bfc8cd887030d1a4
[ "Apache-2.0" ]
null
null
null
# 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, ...
39.193548
100
0.723457
ac2026362b45ebd57700a8c82534c40f4e106e89
5,860
py
Python
sdk/cognitiveservices/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "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 ...
31.170213
76
0.715188
ac202e2b18e2572dfa3962aaeb16577bcf9a3ce4
3,298
py
Python
portal/libs/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/utils.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/utils.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 hashlib import md5 import re import smtplib from django.conf import settings from django.http import HttpResponseBadRequest def remove_spaces(s): inline_tags = 'a|b|i|u|em|span|strong|sup|sub|tt|font|small|big' inlines_with_spaces = r'</(%s)>[\s\n\t]+<(%s)\b' % ( inline_t...
28.678261
119
0.632201
ac204f2afbf01874481bffd5143ffa38ae477890
5,289
py
Python
networking_ovn/tests/unit/agent/metadata/test_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/unit/agent/metadata/test_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/unit/agent/metadata/test_driver.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
41.645669
78
0.577425
ac205237d81c222ee0a4706a341798ce249f1e21
3,052
py
Python
tests/template_vars.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
10
2020-05-11T11:36:29.000Z
2021-09-14T06:00:06.000Z
tests/template_vars.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
1
2021-11-25T13:20:11.000Z
2021-11-25T13:20:11.000Z
tests/template_vars.py
ftrias/jyserver
84e96672686020dc5e75d44b5b29f33a24773a37
[ "MIT" ]
3
2020-05-11T11:36:34.000Z
2022-03-09T06:17:31.000Z
import unittest from context import jyserver import time test_html = ''' <script> function multNum(a,b){return a*b} function fset(a){document.getElementById("time").innerHTML = a} function fset2(){document.getElementById("time").innerHTML = "T2"} function fsetApp(a,b){document.getElementById("time").innerHTML = app.ad...
32.468085
86
0.623198
ac2077a02c9d2c83821b316fcd7364759fb393c4
19,463
py
Python
great_expectations/core/batch.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-11-22T12:51:08.000Z
2021-11-22T12:51:08.000Z
great_expectations/core/batch.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
great_expectations/core/batch.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-10-08T01:24:50.000Z
2021-10-08T01:24:50.000Z
import copy import datetime import hashlib import json from typing import Dict, Optional, Union from great_expectations.core.id_dict import BatchKwargs, BatchSpec, IDDict from great_expectations.exceptions import InvalidBatchIdError from great_expectations.types import DictDot, SerializableDictDot from great_expectati...
37.646035
178
0.654164
ac2093f7720d7645efaea1ccb8c9f30ac0b52fcf
2,504
py
Python
test/validate/gf_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
test/validate/gf_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
18
2021-03-31T06:48:46.000Z
2022-03-30T13:08:06.000Z
test/validate/gf_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
"""Validate post-ETL Generation Fuel data from EIA 923.""" import logging import pytest import pudl from pudl import validate as pv logger = logging.getLogger(__name__) def test_fuel_for_electricity(pudl_out_eia, live_pudl_db): """Ensure fuel used for electricity is less than or equal to all fuel.""" if no...
37.939394
85
0.665335
ac209ab9feb8c7abca35c7678b8e43b7ce544ecc
440
py
Python
public_data/migrations/0015_ocsge2015_map_color.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
public_data/migrations/0015_ocsge2015_map_color.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
public_data/migrations/0015_ocsge2015_map_color.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-24 00:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('public_data', '0014_auto_20210924_0019'), ] operations = [ migrations.AddField( model_name='ocsge2015', name='map_co...
23.157895
96
0.622727
ac209e1f42871b4401cb7e3e9d31bf8bfff984d6
18,036
py
Python
player.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
1
2020-09-06T21:39:53.000Z
2020-09-06T21:39:53.000Z
player.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
null
null
null
player.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
null
null
null
"""Builds player class""" import pygame as py import os as os import random import numpy as np from bullet import Bullet class Player(py.sprite.Sprite): def __init__(self, x, y): #Position, dimension and velocity of character self.width = 40 self.height = 40 sel...
36.436364
96
0.449712
ac20b39903046b0dc4d0696cf594f615cdc6d68b
855
py
Python
core/management/commands/deploy_prepare.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
1
2018-02-17T08:46:11.000Z
2018-02-17T08:46:11.000Z
core/management/commands/deploy_prepare.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
core/management/commands/deploy_prepare.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
from django.core.management import BaseCommand from django.template.loader import render_to_string from application.settings.base import BASE_DIR class Command(BaseCommand): help = 'Rendering deploy templates' def handle(self, *args, **options): context = { 'project_name': 'letsgo', ...
28.5
80
0.649123
ac20c537938fbaed30ec49b046d1412454e81a49
1,777
py
Python
src/rxn_network/core/solver.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
29
2020-08-04T07:07:04.000Z
2022-02-22T22:09:20.000Z
src/rxn_network/core/solver.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
70
2021-02-22T07:01:40.000Z
2022-03-31T20:11:56.000Z
src/rxn_network/core/solver.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
3
2021-04-20T09:29:39.000Z
2022-02-02T17:43:52.000Z
""" Basic interface for a reaction pathway Solver """ import logging from abc import ABCMeta, abstractmethod from typing import List from monty.json import MSONable from pymatgen.entries.entry_tools import EntrySet from rxn_network.core.pathway import Pathway from rxn_network.core.reaction import Reaction class Sol...
24.680556
69
0.617333
ac20d95d29bda0743a402b0e74d8f0df874de8a5
249
py
Python
py/axonchisel/__init__.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
10
2016-08-26T18:57:28.000Z
2021-09-19T19:21:16.000Z
py/axonchisel/__init__.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
1
2015-01-08T19:54:54.000Z
2015-01-09T01:24:17.000Z
py/axonchisel/__init__.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
3
2015-01-08T23:32:58.000Z
2016-09-23T02:38:26.000Z
""" Python trickery to support multiple separate repos/directories sharing this same package namespace (axonchisel.*). Explanation: http://www.doughellmann.com/PyMOTW/pkgutil/ """ import pkgutil __path__ = pkgutil.extend_path(__path__, __name__)
22.636364
62
0.791165
ac20e4a29c188c3f9c15088a354390ad8ced7316
30,597
py
Python
python/tvm/contrib/ethosu/cascader/device_config.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
90
2021-11-30T11:58:10.000Z
2022-03-31T02:24:04.000Z
python/tvm/contrib/ethosu/cascader/device_config.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
64
2021-11-22T23:58:23.000Z
2022-03-31T03:19:22.000Z
python/tvm/contrib/ethosu/cascader/device_config.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
27
2021-12-09T22:39:27.000Z
2022-03-24T23:21:48.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...
37.820766
100
0.570481
ac2143041adee3a287fa4dc9abadc7934ef25dfd
2,376
py
Python
facebook_business/adobjects/productcataloguserpermissions.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/productcataloguserpermissions.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/productcataloguserpermissions.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
33.942857
79
0.695286
ac2154d6f6e9ad6abbd37e52c8a29e6d8a9e02d9
1,687
py
Python
knx/util/logging.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
2
2017-07-27T03:50:37.000Z
2017-09-28T06:42:52.000Z
knx/util/logging.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
knx/util/logging.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import time import sys class Timing(object): """A context manager for timing a block of code Parameters ---------- message : string The message to be printed before executing the code. logging: boolean, True by default Whether to print any messages at all. ...
23.430556
63
0.587433
ac21a5cf7e3bb09df1f402e7fb87883ca89f52d4
30,976
py
Python
sdk/search/azure-search-documents/azure/search/documents/indexes/_search_indexer_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/search/azure-search-documents/azure/search/documents/indexes/_search_indexer_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/azure/search/documents/indexes/_search_indexer_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typin...
42.903047
131
0.652021
ac21f0d823dce96cd63e0b87bc609a577694c200
1,576
py
Python
ddrescuelog_processor.py
google/rescue-tools-reiserfs
ff8789bee8b85a5dfb6c665cbdb4241116fce675
[ "Apache-2.0" ]
2
2020-08-18T14:30:40.000Z
2020-08-18T16:20:40.000Z
ddrescuelog_processor.py
google/rescue-tools-reiserfs
ff8789bee8b85a5dfb6c665cbdb4241116fce675
[ "Apache-2.0" ]
null
null
null
ddrescuelog_processor.py
google/rescue-tools-reiserfs
ff8789bee8b85a5dfb6c665cbdb4241116fce675
[ "Apache-2.0" ]
2
2021-05-19T07:21:51.000Z
2021-06-27T17:23:16.000Z
#!/usr/bin/env python3 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.185185
74
0.671954
ac21fa959417321e3499737c1b45f3559d800860
1,724
py
Python
impacket/testcases/dot11/test_FrameControlACK.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameControlACK.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameControlACK.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from dot11 import Dot11,Dot11Types,Dot11ControlFrameACK from binascii import hexlify import unittest class TestDot11FrameControlACK(unittest.TestCase): def setUp(self): # 802.11 Control Frame A...
30.245614
90
0.686775
ac2205c905c4448e185430d75a4f48367a19f722
891
py
Python
osdc/mapper.py
robinklaassen/osdc
2cdd414f1c84441d75a7534fabfc0ebb6dcc9dd9
[ "MIT" ]
null
null
null
osdc/mapper.py
robinklaassen/osdc
2cdd414f1c84441d75a7534fabfc0ebb6dcc9dd9
[ "MIT" ]
null
null
null
osdc/mapper.py
robinklaassen/osdc
2cdd414f1c84441d75a7534fabfc0ebb6dcc9dd9
[ "MIT" ]
null
null
null
from datetime import datetime def map_to_points(result: dict) -> list: """ Map an OpenSky result dictionary to a list of InfluxDB measurement points. :param result: dictionary of type 'OpenSkyStates' (see OpenSky docs) :return: list of InfluxDB measurement points. """ ts: datetime = result.get...
27.84375
78
0.592593
ac222b9bd2593de308ac7f326f6e117b44a02a8e
1,011
py
Python
cmd/plugins/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cmd/plugins/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cmd/plugins/__init__.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
__all__ = [] import pkgutil import inspect for loader, name, is_pkg in pkgutil.walk_packages(__path__): module = loader.find_module(name).load_module(name) for name, value in inspect.getmembers(module): if name.startswith('__'): continue if name in __all__: continue ...
24.071429
65
0.619189
ac2231a59168823f0e63cbeb561edf2472203431
1,309
py
Python
portal/apps/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
# coding:utf8 """ utopia-cms, 2018-2021, Aníbal Pacheco Global variables definition, to avoid its definition multiple times inside the apps modules. """ import csv from pymongo import MongoClient from pymongo.errors import ServerSelectionTimeoutError from django.conf import settings # mongodb tables try: client...
39.666667
105
0.809015
ac2249375289b58acc5bdfdfa5933e21449d0e7c
15,013
py
Python
userbot/modules/stickers.py
leviiiiiii7/One4uBot
d76299fdefb3c1a8521c1e8b78b3982808e505fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/stickers.py
leviiiiiii7/One4uBot
d76299fdefb3c1a8521c1e8b78b3982808e505fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/stickers.py
leviiiiiii7/One4uBot
d76299fdefb3c1a8521c1e8b78b3982808e505fe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for kanging stickers or making new ones. Thanks @rupansh""" import io import math import random imp...
39.507895
99
0.555319
ac2270d3e292968c58332e3d68d6443b4c78bcb5
1,793
py
Python
rl_memory/models/a2c/actor_critic.py
eskalnes/RL_memory
bd1a5cc07a41be89ea9f8de9edc2a2b557dcedbb
[ "MIT" ]
null
null
null
rl_memory/models/a2c/actor_critic.py
eskalnes/RL_memory
bd1a5cc07a41be89ea9f8de9edc2a2b557dcedbb
[ "MIT" ]
1
2021-11-12T01:20:30.000Z
2021-11-12T01:20:30.000Z
rl_memory/models/a2c/actor_critic.py
Unique-Divine/test-repo
e7f82e8007df7cc210c35ffaf0f11855c8327c2f
[ "MIT" ]
1
2021-08-01T17:32:45.000Z
2021-08-01T17:32:45.000Z
import gym import numpy as np from rl_memory.erik.network_cnn import network from critic import Critic from tools import discounted_reward, plot_episode_rewards # initialize environment envname = "CartPole-v0" # environment name env = gym.make(envname) state_dim = env.observation_space.low.size action_dim = env.actio...
28.015625
100
0.687674
ac22f135b8cd12ea8761c3d4f1a22d0170e694ca
5,461
py
Python
trax/lr_schedules_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
trax/lr_schedules_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/lr_schedules_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.89759
80
0.677715
ac22f2c6e26c50458fc9d65354a611f201be19c8
912
py
Python
pyrefchecker/bin/find_files.py
brexhq/pyrefchecker
3afd8c33c27e9c81c3b0aed780072176645ae98f
[ "0BSD" ]
null
null
null
pyrefchecker/bin/find_files.py
brexhq/pyrefchecker
3afd8c33c27e9c81c3b0aed780072176645ae98f
[ "0BSD" ]
null
null
null
pyrefchecker/bin/find_files.py
brexhq/pyrefchecker
3afd8c33c27e9c81c3b0aed780072176645ae98f
[ "0BSD" ]
1
2021-05-25T16:42:03.000Z
2021-05-25T16:42:03.000Z
import re from pathlib import Path from typing import Collection, Iterable, Optional, Set, Union def find_files( paths: Iterable[Union[str, Path]], include: Optional[re.Pattern], excludes: Optional[Collection[re.Pattern]], ) -> Set[Path]: """ Recurse any directories specified in 'paths', and inclu...
29.419355
84
0.627193
ac22f4fd7ad0290f13fce1ad7d3a0b10e5fb0377
2,059
py
Python
regex-to-enfa/menu.py
rabispedro/LFA
29072d2731a81d3ae48d6e2b9bce85fb1e2e0910
[ "MIT" ]
1
2021-09-17T19:03:34.000Z
2021-09-17T19:03:34.000Z
regex-to-enfa/menu.py
rabispedro/LFA
29072d2731a81d3ae48d6e2b9bce85fb1e2e0910
[ "MIT" ]
null
null
null
regex-to-enfa/menu.py
rabispedro/LFA
29072d2731a81d3ae48d6e2b9bce85fb1e2e0910
[ "MIT" ]
1
2021-01-26T22:18:56.000Z
2021-01-26T22:18:56.000Z
import afne from er_para_afne import * def menu() -> None: afne_nome: str = "./afne_convertido.json" afne_exemplo: str = "exemplo_1" robocop: afne = afne.AFNE(afne_nome, afne_exemplo, True) afne_nome: str = "./afne_data.json" afne_exemplo: str = "exemplo_1" autobot: afne = afne.AFNE(afne_nome, afne_exempl...
28.597222
102
0.55561
ac22fb73a0a219571d81771282dd8d292c468697
1,628
py
Python
app/authentication/jti_claim_storage.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
app/authentication/jti_claim_storage.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
app/authentication/jti_claim_storage.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from flask import current_app from structlog import get_logger from app.data_models.app_models import UsedJtiClaim from app.helpers.uuid_helper import is_valid_uuid from app.storage.errors import ItemAlreadyExistsError logger = get_logger() class JtiTokenUsed(Exception): ...
33.916667
101
0.704545
ac233a8a22705e1e734eaf53bc8a92192d08a6ee
8,626
py
Python
venv/Lib/site-packages/cx_Freeze/main.py
ThiagoA20/web-scraper-for-dropshipping
a8fee7fac6f0c47b8eb87729ca19d308bd573ec4
[ "MIT" ]
3
2021-05-20T22:30:41.000Z
2022-01-15T14:20:06.000Z
venv/Lib/site-packages/cx_Freeze/main.py
ThiagoA20/web-scraper-for-dropshipping
a8fee7fac6f0c47b8eb87729ca19d308bd573ec4
[ "MIT" ]
null
null
null
venv/Lib/site-packages/cx_Freeze/main.py
ThiagoA20/web-scraper-for-dropshipping
a8fee7fac6f0c47b8eb87729ca19d308bd573ec4
[ "MIT" ]
1
2022-03-03T02:25:28.000Z
2022-03-03T02:25:28.000Z
""" cxfreeze command line tool """ import argparse import os import sys import cx_Freeze from cx_Freeze.common import normalize_to_list __all__ = ["main"] DESCRIPTION = """ Freeze a Python script and all of its referenced modules to a base \ executable which can then be distributed without requiring a Python \ inst...
34.504
79
0.628797
ac233a9ee601751844fb69780c6ebce82ab2a393
17,215
py
Python
anasymod/structures/structure_config.py
SubjeBilisim/anasymod
d93f656c21e2aa238f7a5ada50955cc7dc615df1
[ "BSD-3-Clause" ]
20
2019-05-14T10:13:44.000Z
2022-03-29T14:34:50.000Z
anasymod/structures/structure_config.py
SubjeBilisim/anasymod
d93f656c21e2aa238f7a5ada50955cc7dc615df1
[ "BSD-3-Clause" ]
43
2019-07-16T20:54:22.000Z
2021-08-10T07:06:48.000Z
anasymod/structures/structure_config.py
SubjeBilisim/anasymod
d93f656c21e2aa238f7a5ada50955cc7dc615df1
[ "BSD-3-Clause" ]
5
2019-10-21T09:53:38.000Z
2021-09-29T18:08:59.000Z
import os, yaml from anasymod.enums import ConfigSections from anasymod.base_config import BaseConfig from anasymod.config import EmuConfig from anasymod.sim_ctrl.datatypes import ( DigitalSignal, DigitalCtrlInput, DigitalCtrlOutput, AnalogCtrlInput, AnalogCtrlOutput, AnalogProbe) class StructureConf...
43.472222
165
0.560209
ac2377a6e71ff9206efe8451146989720b49534c
861
py
Python
dfs/smallestrectangleenclosingblackpixels.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
dfs/smallestrectangleenclosingblackpixels.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
dfs/smallestrectangleenclosingblackpixels.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def minArea(self, image, x, y): top = self.searchRows(image, 0, x, True) bottom = self.searchRows(image, x + 1, len(image), False) left = self.searchColumns(image, 0, y, top, bottom, True) right = self.searchColumns(image, y + 1, len(image[0]), top, bottom, Fa...
34.44
83
0.458769
ac23b0309ef4cbdcd4a3f411fbb75670ce9518e1
4,238
py
Python
arquivos/ninasemresposta.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/ninasemresposta.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/ninasemresposta.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
def orientadora(alunas): '''imagine que você é orientadora do if e quer saber quantas garotas têm o mesmo nome que o seu. retorne para o programa quantas garotas têm o mesmo nome que o seu.''' def limpador_bucal(palavroes): '''o programa dá uma lista dizendo se as palavras são ou não palavrões....
44.145833
157
0.639453
ac23c17ab396a8c27bf44935532125e16bd1bace
2,276
py
Python
python/taichi/__init__.py
knight42/taichi
c8d5b3f00061ad03b7867f91735f25fe5174b36c
[ "MIT" ]
1
2022-02-07T06:34:03.000Z
2022-02-07T06:34:03.000Z
python/taichi/__init__.py
knight42/taichi
c8d5b3f00061ad03b7867f91735f25fe5174b36c
[ "MIT" ]
null
null
null
python/taichi/__init__.py
knight42/taichi
c8d5b3f00061ad03b7867f91735f25fe5174b36c
[ "MIT" ]
null
null
null
import sys from taichi._funcs import * from taichi._lib import core as _ti_core from taichi._logging import * from taichi._snode import * from taichi.lang import * # pylint: disable=W0622 # TODO(archibate): It's `taichi.lang.core` overriding `taichi.core` from taichi.tools import * from taichi.types.annotations impor...
38.576271
118
0.728032
ac23cc426eb92638e318a2f673b0964a6c604117
4,853
py
Python
moving/venv/lib/python3.7/site-packages/typesystem/forms.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
27
2019-10-28T05:03:18.000Z
2021-06-09T00:16:22.000Z
moving/venv/lib/python3.7/site-packages/typesystem/forms.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
null
null
null
moving/venv/lib/python3.7/site-packages/typesystem/forms.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
6
2019-10-28T05:03:24.000Z
2020-11-25T02:54:58.000Z
try: import jinja2 except ImportError: # pragma: no cover jinja2 = None # type: ignore import typing from typesystem.base import ValidationError from typesystem.fields import Boolean, Choice, Field, Object, String from typesystem.schemas import Schema class Form: # Does not include "checkbox", "radio"...
33.239726
88
0.572223
ac23d468e906f610bc2656ad2372f7b6945f6bf9
20,766
py
Python
appengine/findit/waterfall/test/suspected_cl_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/waterfall/test/suspected_cl_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/waterfall/test/suspected_cl_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from datetime import datetime import mock from google.appengine.ext import ndb from common.waterfall import failure_type from libs import analysis_status f...
34.725753
80
0.642878
ac2424e2910286742dd08989be6d133a93e0e262
6,389
py
Python
data_preprocessing/bvhTemplate.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
data_preprocessing/bvhTemplate.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
data_preprocessing/bvhTemplate.py
koonyook/muscle-from-kinematic
ea96e82251e3028f3e03cca44d57065236e6ca00
[ "MIT" ]
null
null
null
hierarchySectionTemplate=''' HIERARCHY ROOT Character1_Hips { OFFSET %f %f %f CHANNELS 6 Xposition Yposition Zposition Zrotation Xrotation Yrotation JOINT Character1_Spine { OFFSET %f %f %f CHANNELS 3 Zrotation Xrotation Yrotation JOINT Character1_Spine1 { OFFSET %f %f %f CHANNELS 3 Zrotation Xrotatio...
19.538226
77
0.611676
ac246633bab751ea423cfe932981cba95a14138e
2,117
py
Python
export_apic2.py
dflock/unix-music
b1988447aa497a830c2b55a0d0a26dc1b4031ba1
[ "MIT" ]
null
null
null
export_apic2.py
dflock/unix-music
b1988447aa497a830c2b55a0d0a26dc1b4031ba1
[ "MIT" ]
null
null
null
export_apic2.py
dflock/unix-music
b1988447aa497a830c2b55a0d0a26dc1b4031ba1
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Extracts album art from an MP3 file. Album art is assumed to be in JPEG format. Usage: apic-extract mp3-filename [jpg-filename] (the default value for jpg-filename is "albumart.jpg") Dependencies: mutagen.mp3 You can also import this as a module (rename it first?) and ...
29
87
0.619745
ac24a4d86f544f6799eecb7a7ca3caa80ba3885f
227
py
Python
aristotle/apps/policies/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
aristotle/apps/policies/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
aristotle/apps/policies/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
__author__ = "Gautam Webb" from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 always equals 2. """ self.assertEqual(1 + 1, 2)
18.916667
41
0.612335
ac250842c00a19f9841612471ad4eaf7b3201962
5,009
py
Python
lib/modeling/collect_and_distribute_fpn_rpn_proposals.py
cclauss/mask-rcnn.pytorch
b7686fa15b1565c01276bbb0ca3f22fca778701d
[ "MIT" ]
14
2018-05-03T23:52:28.000Z
2021-07-17T13:58:50.000Z
lib/modeling/collect_and_distribute_fpn_rpn_proposals.py
cclauss/mask-rcnn.pytorch
b7686fa15b1565c01276bbb0ca3f22fca778701d
[ "MIT" ]
null
null
null
lib/modeling/collect_and_distribute_fpn_rpn_proposals.py
cclauss/mask-rcnn.pytorch
b7686fa15b1565c01276bbb0ca3f22fca778701d
[ "MIT" ]
17
2018-05-12T02:25:56.000Z
2021-11-02T08:07:16.000Z
import numpy as np from torch import nn from core.config import cfg from datasets import json_dataset import roi_data.fast_rcnn import utils.blob as blob_utils import utils.fpn as fpn_utils class CollectAndDistributeFpnRpnProposalsOp(nn.Module): """Merge RPN proposals generated at multiple FPN levels and then ...
41.741667
86
0.67778
ac25170b331eb2002e0def1c7b4f1b43e3f0c187
2,862
py
Python
azure_functions_worker/bindings/shared_memory_data_transfer/shared_memory_constants.py
anandagopal6/azure-functions-python-worker
e4adb351e5454c093fcefbf0fb84f200af32f386
[ "MIT" ]
277
2018-01-25T23:13:03.000Z
2022-02-22T06:12:04.000Z
azure_functions_worker/bindings/shared_memory_data_transfer/shared_memory_constants.py
anandagopal6/azure-functions-python-worker
e4adb351e5454c093fcefbf0fb84f200af32f386
[ "MIT" ]
731
2018-01-18T18:54:38.000Z
2022-03-29T00:01:46.000Z
azure_functions_worker/bindings/shared_memory_data_transfer/shared_memory_constants.py
YunchuWang/azure-functions-python-worker
1f23e038a506c6412e4efbf07eb471a6afab0c2a
[ "MIT" ]
109
2018-01-18T02:22:57.000Z
2022-02-15T18:59:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. class SharedMemoryConstants: class HeaderFlags: """ Flags that are present in the header region of the memory maps. """ Initialized = b'\x01' """ Indicates that the memory ...
35.333333
78
0.690776
ac2532853c7699ac1b229d2d2ad471a0de7a4d39
1,674
py
Python
src/redis_data.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
src/redis_data.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
src/redis_data.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
import redis from FutureEvent import FutureEvent EXPIRATION_QUEUE = "fes:expiration_queue" EVENT_QUEUE = "fes:event_queue" REDIS_SERVER = redis.Redis("localhost") def add(id_hash, expiration, payload): pipe = REDIS_SERVER.pipeline() pipe.zadd(EXPIRATION_QUEUE, id_hash, expiration) pipe.hset(EVENT_QUEUE, ...
29.892857
97
0.735364
ac2536660afe4ac906152f0ce9f96a56382b53a4
3,719
py
Python
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/_appliances.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/_appliances.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/_appliances.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "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 ...
44.807229
133
0.696424
ac253a437566dca487c00eea86b41ae5c7a2bfc4
6,208
py
Python
src/mesosim/warning.py
MesoSim/mesosim-common
d6cda648ce7203820314f6bb7e763938be8bbd28
[ "Apache-2.0" ]
1
2020-03-01T05:08:19.000Z
2020-03-01T05:08:19.000Z
src/mesosim/warning.py
MesoSim/mesosim-common
d6cda648ce7203820314f6bb7e763938be8bbd28
[ "Apache-2.0" ]
null
null
null
src/mesosim/warning.py
MesoSim/mesosim-common
d6cda648ce7203820314f6bb7e763938be8bbd28
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 MesoSim Developers. # Distributed under the terms of the Apache 2.0 License. # SPDX-License-Identifier: Apache-2.0 """ Warning-related helper functions """ import re # Imports import pytz from dateutil import parser, tz from .core.timing import cur_time_from_arc # Process the warning text (hea...
38.8
99
0.534149
ac25843bac3e53d873bce060d4e34dcef5e5ea80
4,974
py
Python
roccclient/models/tag.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
roccclient/models/tag.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
roccclient/models/tag.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
30.89441
142
0.581624
ac25b73cf729678a02332b9f5e701cadf57dd8fa
1,584
py
Python
alipay/aop/api/domain/SignPartyGroupOpenApiDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SignPartyGroupOpenApiDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SignPartyGroupOpenApiDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.SignPartyOpenApiDTO import SignPartyOpenApiDTO class SignPartyGroupOpenApiDTO(object): def __init__(self): self._sign_parties = None @property def sign_parti...
29.886792
86
0.59596
ac25bed36d1c0c852e4788dd8de1ad8f94c6c1f8
14,972
py
Python
VECO/NLU/third_party/run_retrieval.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-08-05T05:41:50.000Z
2021-08-05T05:41:50.000Z
VECO/NLU/third_party/run_retrieval.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
VECO/NLU/third_party/run_retrieval.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-07-10T09:50:47.000Z
2021-07-10T09:50:47.000Z
# coding=utf-8 # Copyright The XTREME Benchmark Authors and Alibaba inc. # Copyright (c) 2018, NVIDIA CORPORATION. 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 # # ...
39.925333
153
0.688819
ac25c3fc6bd1436e7737561500f131f16c4f9f47
13,674
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
39.520231
211
0.672517
ac25d3ac0ba8ebcc1aee8bd0f30ff44817218867
45
py
Python
forecast/util/__init__.py
Pierre-Aurelien/forecast
d19c62bc7313c62836699bba2246afd0e79f1b53
[ "MIT" ]
null
null
null
forecast/util/__init__.py
Pierre-Aurelien/forecast
d19c62bc7313c62836699bba2246afd0e79f1b53
[ "MIT" ]
null
null
null
forecast/util/__init__.py
Pierre-Aurelien/forecast
d19c62bc7313c62836699bba2246afd0e79f1b53
[ "MIT" ]
null
null
null
"""Module for util functions and classes."""
22.5
44
0.711111
ac25e94df89fe74d0cb5f1dedb0a4b921a81e862
5,639
py
Python
airiam/main.py
intelematics/AirIAM
2fcdef0bc1ce1e6ca1763f77496fa913445ff6cc
[ "Apache-2.0" ]
1
2021-07-05T23:41:57.000Z
2021-07-05T23:41:57.000Z
airiam/main.py
intelematics/AirIAM
2fcdef0bc1ce1e6ca1763f77496fa913445ff6cc
[ "Apache-2.0" ]
null
null
null
airiam/main.py
intelematics/AirIAM
2fcdef0bc1ce1e6ca1763f77496fa913445ff6cc
[ "Apache-2.0" ]
1
2021-07-02T07:31:22.000Z
2021-07-02T07:31:22.000Z
import argparse import logging import sys from airiam.Reporter import Reporter, OutputFormat from airiam.find_unused.find_unused import find_unused from airiam.recommend_groups.recommend_groups import recommend_groups from airiam.terraform.TerraformTransformer import TerraformTransformer def configure_logger(logging...
61.967033
152
0.707572
ac25ee8c54f4dc2826e05d64403b89aa4ca08fa1
1,259
py
Python
src/get_span.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
2
2019-02-24T13:27:04.000Z
2021-09-06T08:06:53.000Z
src/get_span.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
null
null
null
src/get_span.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys sys.path.append('./') def starting_entity(flag, span_info, index): named_entity_list, entity_span, start_index, end_index = span_info flag = 1 start_index = index span_info = [named_entity_list, entity_span, start_index, end_index] return ...
30.707317
72
0.739476
ac26011fb31fcbebcc04abe0ed957e706ab1fe41
24,812
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_pipeline_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_pipeline_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_pipeline_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
43.915044
219
0.675278
ac2615efbcbb59f6aaab6d2f56cd66bbfe92169c
3,792
py
Python
tests/conftest.py
xjiro/python-valve
d092690ffda9999ded3aa6739d26feaefbabb996
[ "MIT" ]
136
2017-09-21T13:12:05.000Z
2022-03-17T21:02:01.000Z
tests/conftest.py
fizek/python-valve
963086a385b771a9d58a757814a5cea8111c1c8b
[ "MIT" ]
47
2017-09-17T11:03:03.000Z
2022-02-26T15:26:51.000Z
tests/conftest.py
fizek/python-valve
963086a385b771a9d58a757814a5cea8111c1c8b
[ "MIT" ]
62
2017-10-01T20:13:03.000Z
2022-02-09T21:44:18.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, unicode_literals, print_function, division) import threading try: import mock except ImportError: import unittest.mock as mock import pytest import valve.source.a2s import valve.source.master_server import valve.testing...
33.857143
80
0.647416
ac261f16d881057bf728a479de4a275356def325
3,768
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_identity_documents.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_identity_documents.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_identity_documents.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
45.39759
121
0.629777
ac262ff538e282f2ffd830e503e82c05417e7ada
14,611
py
Python
IgAModel66/eval_All_data.py
mrzhu666/USCL
8a4741046ef8f337b1e9439d1575db670a11355c
[ "MIT" ]
null
null
null
IgAModel66/eval_All_data.py
mrzhu666/USCL
8a4741046ef8f337b1e9439d1575db670a11355c
[ "MIT" ]
null
null
null
IgAModel66/eval_All_data.py
mrzhu666/USCL
8a4741046ef8f337b1e9439d1575db670a11355c
[ "MIT" ]
null
null
null
import os import sys import time import random import argparse import numpy as np import pandas as pd from torch.nn.modules.activation import Softmax from tqdm import tqdm import torch import torch.nn as nn from torch.utils.data import DataLoader import torchvision.transforms as transforms import torch.opt...
40.473684
121
0.552597
ac263ae34537e1286856f64938ceebc79e317243
3,373
py
Python
tests/common/test_op/ascend/reduction_layer.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/reduction_layer.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/reduction_layer.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-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...
31.231481
100
0.632375
ac26499b430ff23d118a6b51767af08cde32a640
6,135
py
Python
ci-scripts/dlrnapi_promoter/test_get_latest_hashes.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
ci-scripts/dlrnapi_promoter/test_get_latest_hashes.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
ci-scripts/dlrnapi_promoter/test_get_latest_hashes.py
amolkahat/ci-config
100ca1248432ba8d1a97a9a02ec35a80f57767ed
[ "Apache-2.0" ]
null
null
null
import mock import pytest # avoid pytest --collect-only errors with missing imports: dlrnapi_promoter = pytest.importorskip('dlrnapi_promoter') @mock.patch('dlrnapi_promoter.fetch_hashes') def test_no_hashes_fetched_returns_empty_list(fetch_hashes_mock): old_hashes = [] candidate_hashes = [] fetch_hashe...
34.661017
78
0.663244
ac264dfb55ffa4f5dbce60129eefc2592b43b8fe
618
py
Python
src/test/tests/databases/silo_altdriver.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/silo_altdriver.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/silo_altdriver.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: silo_altdriver # # Tests: Runs the silo.py test using the 'other' driver. If silo.py # was run on PDB driver, this will run them on HDF5 driver and # vice versa. # # Progr...
29.428571
78
0.462783
ac267bfbe66b55e3314590e49e7c072b0e2a5cc2
9,622
py
Python
scripts/Panoptes3.py
rhong3/GYN-HE-IHC
fa5ae2a8becd8afeea5dba16b16f953f0e367fe1
[ "MIT" ]
null
null
null
scripts/Panoptes3.py
rhong3/GYN-HE-IHC
fa5ae2a8becd8afeea5dba16b16f953f0e367fe1
[ "MIT" ]
null
null
null
scripts/Panoptes3.py
rhong3/GYN-HE-IHC
fa5ae2a8becd8afeea5dba16b16f953f0e367fe1
[ "MIT" ]
1
2020-09-22T22:04:40.000Z
2020-09-22T22:04:40.000Z
""" Panoptes3 for TF2.0 Created on 01/21/2020 @author: RH """ import tensorflow as tf from keras.layers.convolutional import Conv2D from keras.layers.pooling import MaxPooling2D, AveragePooling2D, GlobalAveragePooling2D from keras.layers.core import Dense, Dropout, Flatten, Activation, Lambda from keras.layers.normal...
41.474138
120
0.662336
ac26bb3dd8bbca29208719412d9ada47c3df69f1
14,994
py
Python
slate/player.py
Axelware/slate
241f782d9109b626ca068bfe439d1970f1663166
[ "MIT" ]
3
2021-10-30T12:39:12.000Z
2022-03-28T11:30:40.000Z
slate/player.py
Axelware/slate
241f782d9109b626ca068bfe439d1970f1663166
[ "MIT" ]
1
2021-12-08T16:20:15.000Z
2021-12-08T16:20:15.000Z
slate/player.py
Axelware/slate
241f782d9109b626ca068bfe439d1970f1663166
[ "MIT" ]
3
2021-10-18T14:20:18.000Z
2022-01-28T11:51:41.000Z
# Future from __future__ import annotations # Standard Library import logging import time from typing import Any, Generic # Packages import discord import discord.types.voice from typing_extensions import Self # Local from .node import Node from .objects.enums import Provider from .objects.events import TrackEnd, Tr...
29.001934
150
0.57383
ac26d22d4706d9c0ffbdb869c768eb636e817b8e
3,625
py
Python
restools/laminar_flows.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
restools/laminar_flows.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
restools/laminar_flows.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
import numpy as np from thequickmath.field import Field, Space class PlaneCouetteFlow: """ Class PlaneCouetteFlow represents the laminar solution for plane Couette flow. It defines the following attributes: re Reynolds number solution Field object with component u (streamwise velocity) ...
33.256881
119
0.600276
ac26e75bb9298d6be6fafb017ce13f4d63f789fa
14,970
py
Python
tensorflow/python/training/queue_runner_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/training/queue_runner_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/training/queue_runner_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2015 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...
42.288136
80
0.692318
ac2711a4a0080a738d8857e03095be7ee9dd2c58
22
py
Python
btd6_memory_info/generated/NinjaKiwi/Players/SyncedFile/synced_file.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/Players/SyncedFile/synced_file.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/Players/SyncedFile/synced_file.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class SyncedFile: pass
22
22
0.863636
ac271be2f2e9dba0c2e598a438ad084f18e0f091
6,716
py
Python
integration_tests/src/main/python/spark_session.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/spark_session.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/spark_session.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2022, NVIDIA 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 # # Unless required by applicable law or agre...
39.505882
133
0.718582
ac2721addd1ca0259792e4a3b891341e8d1d3224
34,195
py
Python
uplexa/wordlists/portuguese.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
2
2019-09-04T17:06:02.000Z
2020-10-19T02:22:46.000Z
uplexa/wordlists/portuguese.py
uPlexa/uplexa-python
e0074d7fb778a5fe150baf9a6badb3c2fc20afbb
[ "BSD-3-Clause" ]
1
2021-07-17T22:30:15.000Z
2021-07-17T22:30:15.000Z
uplexa/wordlists/portuguese.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
1
2019-03-05T17:52:36.000Z
2019-03-05T17:52:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Word list originally created by dabura667 and released under The MIT License (MIT) # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to dea...
20.174041
89
0.408247
ac273e04e83c7f270d57a6162512a3cde69efef0
3,045
py
Python
nyoka/tests/testScoreWithAdapaRetinaNet.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
null
null
null
nyoka/tests/testScoreWithAdapaRetinaNet.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
2
2021-08-25T16:16:45.000Z
2022-02-10T05:28:52.000Z
nyoka/tests/testScoreWithAdapaRetinaNet.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
null
null
null
import sys, os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) sys.path.append(BASE_DIR) from keras import applications from keras.layers import * from keras.models import Model from keras.models import Sequential from keras_retinanet.models import load_model from nyoka import RetinanetToPmml from nyoka import ...
32.052632
130
0.619048
ac27a0dce616a233778b58f48c0ca66e283f19a3
205
py
Python
maro/rl/dist_topologies/common.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/rl/dist_topologies/common.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/rl/dist_topologies/common.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
from enum import Enum class PayloadKey(Enum): RolloutMode = "rollout_mode" MODEL = "model" EPSILON = "epsilon" PERFORMANCE = "performance" EXPERIENCE = "experience" SEED = "seed"
18.636364
32
0.653659
ac27baab297008a8c106832da3084bfda6b154b4
1,946
py
Python
ngraph/frontends/caffe/cf_importer/ops_bridge.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/caffe/cf_importer/ops_bridge.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/caffe/cf_importer/ops_bridge.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
31.901639
93
0.613566
ac27d1052d1b8c4288e1f410d576071b185b765d
1,731
py
Python
youtube_dl_gui/__init__.py
Sofronio/youtube-dl-gui
cf1d7d682e941473028b182cea6ea8d8dc5ed779
[ "Unlicense" ]
null
null
null
youtube_dl_gui/__init__.py
Sofronio/youtube-dl-gui
cf1d7d682e941473028b182cea6ea8d8dc5ed779
[ "Unlicense" ]
null
null
null
youtube_dl_gui/__init__.py
Sofronio/youtube-dl-gui
cf1d7d682e941473028b182cea6ea8d8dc5ed779
[ "Unlicense" ]
1
2021-09-19T22:54:37.000Z
2021-09-19T22:54:37.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """Youtubedlg __init__ file. Responsible on how the package looks from the outside. Example: In order to load the GUI from a python script. import youtube_dl_gui youtube_dl_gui.main() """ from __future__ import unicode_literals import sys import...
20.364706
112
0.739457
ac27e4b156c5742b1fb5fc64d987654cc5362a55
7,873
py
Python
exe/RioNegro/parametric_model.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/RioNegro/parametric_model.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/RioNegro/parametric_model.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt plt.ioff() mpl.rcParams.update({'font.size': 18}) import statsmodels.api as sm from sklearn.linear_model import LinearRegression from statsmodels.sandbox.regression.predstd import wls_prediction_std from scipy import odr a...
37.850962
110
0.570304
ac2868d90845aa455315457335e1e7a99d2b15cf
1,177
py
Python
pyKinectTools/algs/old:incomplete/Normals_OpenCL.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
33
2015-04-07T16:28:04.000Z
2021-11-22T00:28:43.000Z
pyKinectTools/algs/old:incomplete/Normals_OpenCL.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyKinectTools/algs/old:incomplete/Normals_OpenCL.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
13
2015-04-07T16:28:34.000Z
2021-04-26T08:04:36.000Z
''' Based on code from: http://enja.org/2011/02/22/adventures-in-pyopencl-part-1-getting-started-with-python/index.html ''' import pyopencl as cl import time kernel = "__kernel void fcn(__global float* a, __global float* b, __global float* c)\ {\ unsigned int i = get_global_id(0);\ c[i] = a[i] + b[i];\...
26.75
95
0.696686
ac2883219835272ef858ddab0d5fa68092e7a1bf
5,500
py
Python
gpxtrackposter/calendar_drawer.py
jmetzz/GpxTrackPoster
dd82482435a9b6e071a0e7dcdcf48b2691718194
[ "MIT" ]
262
2016-01-10T17:01:00.000Z
2022-03-29T09:16:16.000Z
gpxtrackposter/calendar_drawer.py
yihong0618/GpxTrackPoster
8e6038927b37fc4d527c032e4acb00a4de778a84
[ "MIT" ]
75
2016-01-10T20:23:42.000Z
2022-01-10T10:59:18.000Z
gpxtrackposter/calendar_drawer.py
yihong0618/GpxTrackPoster
8e6038927b37fc4d527c032e4acb00a4de778a84
[ "MIT" ]
53
2017-01-04T21:12:06.000Z
2022-01-31T02:39:41.000Z
"""Draw a calendar poster.""" # Copyright 2016-2021 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import calendar import datetime import svgwrite # type: ignore from gpxtrackposter import utils from gpxtr...
39.568345
112
0.502545
ac2884b88b74d26f8e6aa965c69eb9e97bfcaf65
7,310
py
Python
tests/test_warnings.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
7
2017-04-21T12:05:23.000Z
2019-12-12T13:37:07.000Z
tests/test_warnings.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
100
2017-04-24T10:50:33.000Z
2022-02-18T10:39:42.000Z
tests/test_warnings.py
melexis/warnings-plugin
6f821f5c82c2cdf37988d28e651646e1452faf43
[ "Apache-2.0" ]
2
2017-05-23T11:50:59.000Z
2019-11-06T09:26:33.000Z
from io import StringIO from unittest import TestCase from unittest.mock import patch from mlx.warnings import WarningsPlugin class TestWarningsPlugin(TestCase): def test_doxygen_warning(self): warnings = WarningsPlugin() warnings.activate_checker_name('doxygen') warnings.check('testfile...
55.801527
156
0.706566
ac28afa0893b6f6f9d089d48550e24a91efea787
1,108
py
Python
LC/300.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/300.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/300.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): ## this solution seems not right def lengthOfLIS0(self, nums): """ :type nums: List[int] :rtype: int """ temp=[] for num in nums: if not temp: temp.append([num]) continue for t in temp...
29.157895
67
0.438628
ac28bc51cc8d47bb4ad99e78125f6e22416e83ea
3,159
py
Python
backtester/portfolio_handler.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
1
2021-06-26T17:22:31.000Z
2021-06-26T17:22:31.000Z
backtester/portfolio_handler.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
null
null
null
backtester/portfolio_handler.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
null
null
null
from queue import Queue from backtester.portfolio import Portfolio from backtester.price_handler.base import PriceHandler from backtester.event import OrderEvent, FillEvent class PortfolioHandler(object): def __init__(self, initial_cash: float, events_queue: Queue, price_handler: PriceHandler): """ ...
39.4875
94
0.691041
ac28d76d432f4f428fa076449df5b4a4a260226d
9,932
py
Python
Models.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
1
2021-09-30T08:48:31.000Z
2021-09-30T08:48:31.000Z
Models.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
2
2020-12-03T18:05:59.000Z
2020-12-03T18:06:33.000Z
Models.py
panos108/MBDoE-total
5691d2d1615667b94cbf4cf107df543fe8148650
[ "MIT" ]
null
null
null
# GP NMPC problem setup import numpy as np from casadi import * class Bio_reactor_1: def __init__(self): self.real_parameters = [0.0923*0.62, 178.85, 447.12, 393.10, 0.001, 504.49, 2.544*0.62*1e-4, 23.51, 800.0, 0.281, 16.89] def specifications(self): ''' Spec...
38.2
131
0.500604
ac28fe625d6402d16a69b9defa1ead9bd27225eb
958
py
Python
sdks/python/test/test_GitHubBillingAccount.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_GitHubBillingAccount.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_GitHubBillingAccount.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
23.95
99
0.728601
ac2905f4d86ae077d3f073047eeb5d08705f1ff4
3,140
py
Python
nettowel/cli/_common.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
1
2022-02-22T12:05:42.000Z
2022-02-22T12:05:42.000Z
nettowel/cli/_common.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
null
null
null
nettowel/cli/_common.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
null
null
null
import sys import typer from typing import Any, Dict, Generator, Optional, List from dotenv import load_dotenv, find_dotenv from pathlib import Path from nettowel.yaml import load as yaml_load from nettowel.cli.logging import configure_logger, log VERBOSE_LEVEL = -1 DOTENV_LOADED = False def _load_dotenv(dotenv: str...
29.345794
118
0.642994
ac2941dd0ba2af3a4b36bc492b03a91116f5ecf4
6,622
py
Python
script/bert-question-answering/loadgen_postprocess.py
kaidrake/ck-mlperf
2651e2e56fe43a002ea29a551ce5d0ee9a924dfb
[ "BSD-3-Clause" ]
2
2021-04-22T01:29:58.000Z
2021-12-13T14:29:35.000Z
script/bert-question-answering/loadgen_postprocess.py
kaidrake/ck-mlperf
2651e2e56fe43a002ea29a551ce5d0ee9a924dfb
[ "BSD-3-Clause" ]
4
2021-06-27T22:33:19.000Z
2022-02-07T09:21:59.000Z
script/bert-question-answering/loadgen_postprocess.py
kaidrake/ck-mlperf
2651e2e56fe43a002ea29a551ce5d0ee9a924dfb
[ "BSD-3-Clause" ]
5
2021-02-17T12:10:39.000Z
2022-02-17T18:19:16.000Z
# # Copyright (c) 2019 cTuning foundation. # See CK COPYRIGHT.txt for copyright details. # # SPDX-License-Identifier: BSD-3-Clause. # See CK LICENSE.txt for licensing details. # import os import json import re import sys from subprocess import check_output MLPERF_LOG_ACCURACY_JSON = 'mlperf_log_accuracy.json' MLPERF_...
41.911392
137
0.659921
ac2957f4c55942c8ccf03f6b5d23f46a336545b0
4,834
py
Python
snmp_collector/collect/collector.py
agn-7/snmp-collector
5d06b2380d89e338a5d3cce949dc9e8f857ae4d0
[ "MIT" ]
6
2022-01-31T10:13:54.000Z
2022-02-19T18:48:47.000Z
snmp_collector/collect/collector.py
agn-7/snmp-collector
5d06b2380d89e338a5d3cce949dc9e8f857ae4d0
[ "MIT" ]
1
2022-02-21T07:06:51.000Z
2022-02-21T07:06:51.000Z
snmp_collector/collect/collector.py
agn-7/snmp-collector
5d06b2380d89e338a5d3cce949dc9e8f857ae4d0
[ "MIT" ]
1
2020-08-08T09:20:43.000Z
2020-08-08T09:20:43.000Z
import asyncio import time import traceback import struct from easydict import EasyDict as edict from pysnmp.hlapi.asyncio import * from colored_print import ColoredPrint try: from snmp_collector.response.response import Response except: from response.response import Response log = ColoredPrint() __author__...
31.187097
82
0.467935
ac297a359c287f65fa09a81fa87fd20aaf39c127
1,192
py
Python
backtesters/MA_short_only.py
learn-crypto-trading/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
29
2018-07-06T18:05:31.000Z
2021-11-29T18:22:36.000Z
backtesters/MA_short_only.py
dcimring/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
null
null
null
backtesters/MA_short_only.py
dcimring/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
24
2018-06-15T17:36:31.000Z
2022-03-29T07:27:47.000Z
'''Backtest Moving Average (MA) crossover strategies ''' import math import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from MA import MABacktester class MAShortOnlyBacktester(MABacktester): '''Backtest a Moving Average (MA) crossover strategy that only goes short Pa...
29.073171
94
0.644295
ac297b0b33224cf17980d8b1a8ba608f482408d0
1,562
py
Python
var/spack/repos/builtin/packages/libvips/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/libvips/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/libvips/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# 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 Libvips(AutotoolsPackage): """libvips is a demand-driven, horizontally threaded image proc...
33.956522
111
0.692702
ac297f50214934473a019ca0e67cf0f1f1837b91
1,183
py
Python
incasem/utils/dilate_labels.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/utils/dilate_labels.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/utils/dilate_labels.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
"""Iteratively dilate instance labels or semantic labels by a voxel.""" import numpy as np from scipy import ndimage def dilate_labels( labels, iterations, dtype, ambiguous_labels='max', background=0): max_label = np.max(labels) dilated = np.zeros(shape=labels.shape, d...
24.142857
71
0.624683
ac298a5cb83995573328e3bb32444f79bd9ccb61
414
py
Python
src/conda_tools/constants.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
11
2016-07-07T00:27:01.000Z
2019-12-02T08:47:16.000Z
src/conda_tools/constants.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
8
2016-07-15T14:59:27.000Z
2019-07-03T18:05:34.000Z
src/conda_tools/constants.py
groutr/conda-tools
f421fd324f306a713c0cb1a3845306758ff981f4
[ "BSD-3-Clause" ]
2
2016-07-13T22:24:51.000Z
2016-11-16T18:03:46.000Z
import enum class LINK_TYPE(enum.Enum): hardlink = 1 softlink = 2 copy = 3 directory = 4 _LINK_MAP = {'hard-link': LINK_TYPE.hardlink, 'soft-link': LINK_TYPE.softlink, 'copy': LINK_TYPE.copy, 'directory': LINK_TYPE.directory} def cast_link_type(value): if isin...
20.7
45
0.613527
ac29a627e33220901aa298a4cb6c41b1b1baf508
9,957
py
Python
util/hpo_space_eval_utils.py
dapqa/speeding-up-bo-for-cf-public
f4082c91899d7991eaf33fdec0848aafe4544cc5
[ "MIT" ]
null
null
null
util/hpo_space_eval_utils.py
dapqa/speeding-up-bo-for-cf-public
f4082c91899d7991eaf33fdec0848aafe4544cc5
[ "MIT" ]
null
null
null
util/hpo_space_eval_utils.py
dapqa/speeding-up-bo-for-cf-public
f4082c91899d7991eaf33fdec0848aafe4544cc5
[ "MIT" ]
null
null
null
"""Utility classes and function for evaluation of SVD/SVD++ models performance with different numbers of factors and regularization constants. """ import os from typing import List import matplotlib.pyplot as plt import numpy as np import pandas as pd from matplotlib.axes import Axes from matplotlib.figure import Fig...
42.190678
117
0.675103
ac29ba84fe5c982b862ca15daf34a29d78f3c5e6
19,901
py
Python
fabric_cf/actor/fim/fim_helper.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/actor/fim/fim_helper.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/fim/fim_helper.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
42.890086
122
0.642631
ac29f2d83f99309c50ec92ccc6908b59f1c310d5
38,932
py
Python
rig/mik/vect.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/mik/vect.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/mik/vect.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 """:mod:`vectors` =================================== .. module:: vectors :platform: Unix :synopsis: math vector class ripped from macaronikazoo :author: guitho :date: 2016.09 """ ''' super simple vector class and vector functionality. i wrote this simply because i co...
28.945725
150
0.501284
ac2a09614ddfaff2b5d1e2c3b4807c8bc212f252
966
py
Python
std/pytorch/01-low/26.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/26.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/26.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import torch import math class Polynomial3(torch.nn.Module): def __init__(self): super().__init__() self.a = torch.nn.Parameter(torch.randn(())) self.b = torch.nn.Parameter(torch.randn(())) self.c = torch.nn.Parameter(torch.randn(())) self.d = torch.nn.Parameter(torch.randn...
26.108108
101
0.598344
ac2a31d0e05417b8b07825260a902c08cc7126b4
18
py
Python
hdltools/binutils/tools/__init__.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/binutils/tools/__init__.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/binutils/tools/__init__.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""Misc tools."""
9
17
0.5
ac2a4e8f742ca73620719e42d27d7cae1cc0e233
2,885
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_cpg/trackers/Mapping.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_cpg/trackers/Mapping.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_cpg/trackers/Mapping.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from CGATReport.Tracker import * from cpgReport import * ########################################################################## class MappingSummary(cpgTracker, SingleTableTrackerRows): table = "bam_stats" ########################################################################## class MappingFlagsMismat...
37.960526
131
0.542808
ac2a65c24be708da203c56d6b6d375a0ef01a091
2,725
py
Python
test/vanilla/version-tolerant/AcceptanceTests/test_media_types.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/AcceptanceTests/test_media_types.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/AcceptanceTests/test_media_types.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
41.287879
103
0.72367
ac2a7dbfda502ecc71bbfb8c38981c97931f8052
1,610
py
Python
code/05_mqtt_to_giotcloud/get_jwt.py
gerrykou/iot_workshop_2020
2765bcde30c0ed1a1e9aba0dd0b31f643e8e7784
[ "MIT" ]
8
2020-07-07T12:34:15.000Z
2021-02-09T18:15:49.000Z
code/05_mqtt_to_giotcloud/get_jwt.py
gerrykou/iot_workshop_2020
2765bcde30c0ed1a1e9aba0dd0b31f643e8e7784
[ "MIT" ]
null
null
null
code/05_mqtt_to_giotcloud/get_jwt.py
gerrykou/iot_workshop_2020
2765bcde30c0ed1a1e9aba0dd0b31f643e8e7784
[ "MIT" ]
3
2020-10-28T22:43:27.000Z
2021-02-25T15:24:37.000Z
#!/usr/bin/env python3 import datetime import jwt PROJECT_ID = 'iot-workshop-2020' SSL_PRIVATE_KEY_FILEPATH = PROJECT_ID+"_ec_private.pem" SSL_ALGORITHM = 'ES256' def create_jwt(project_id, private_key_file, algorithm): """Creates a JWT (https://jwt.io) to establish an MQTT connection. Args: p...
34.255319
96
0.667081
ac2a854b57fd264f938eff9ed141a7aba9b00471
24,406
py
Python
custom_components/hasl3/haslworker/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/haslworker/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/haslworker/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
import logging import jsonpickle import isodate import time from datetime import datetime, timedelta from homeassistant.helpers.event import async_call_later, async_track_time_interval from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.util.dt import now from .exceptions import HaslExcepti...
40.949664
120
0.480415