hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796ce02eeeb274522315e96066017f27b25dbcb4
3,160
py
Python
deepchem/data/tests/test_reshard.py
TaiCZ/deepchem
66de10d4f862e0077a82fd7460eea2b11b9472aa
[ "MIT" ]
3
2022-03-06T11:43:46.000Z
2022-03-07T07:22:06.000Z
deepchem/data/tests/test_reshard.py
TaiCZ/deepchem
66de10d4f862e0077a82fd7460eea2b11b9472aa
[ "MIT" ]
null
null
null
deepchem/data/tests/test_reshard.py
TaiCZ/deepchem
66de10d4f862e0077a82fd7460eea2b11b9472aa
[ "MIT" ]
2
2019-09-11T03:16:52.000Z
2022-02-27T19:58:45.000Z
import deepchem as dc import numpy as np import os def test_reshard_with_X(): """Test resharding on a simple example""" X = np.random.rand(100, 10) dataset = dc.data.DiskDataset.from_numpy(X) assert dataset.get_number_shards() == 1 dataset.reshard(shard_size=10) assert (dataset.X == X).all() assert data...
33.263158
65
0.709177
796ce0563386ce9db0127e2ffa0933d3cd588ddf
319
py
Python
src/aiostaticmap/__main__.py
mon4ter/aiostaticmap
009fb6839902e80d2769c0824beff3abdf1dd20f
[ "Apache-2.0" ]
null
null
null
src/aiostaticmap/__main__.py
mon4ter/aiostaticmap
009fb6839902e80d2769c0824beff3abdf1dd20f
[ "Apache-2.0" ]
null
null
null
src/aiostaticmap/__main__.py
mon4ter/aiostaticmap
009fb6839902e80d2769c0824beff3abdf1dd20f
[ "Apache-2.0" ]
null
null
null
from asyncio import get_event_loop from .aiostaticmap import Line, StaticMap if __name__ == '__main__': map_ = StaticMap(300, 400, 10) line = Line([(13.4, 52.5), (2.3, 48.9)], 'blue', 3) map_.add_line(line) image = get_event_loop().run_until_complete(map_.render()) image.save('berlin_paris.png')
29
62
0.677116
796ce0a6924b501e1552c46ca5fd0c93a355b911
4,705
py
Python
trinity/_utils/socket.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
trinity/_utils/socket.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
trinity/_utils/socket.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
from abc import ABC, abstractmethod import contextlib import errno import logging import pathlib import socket import threading from typing import Iterator class BufferedSocket: def __init__(self, sock: socket.socket) -> None: self._socket = sock self._buffer = bytearray() self.sendall = s...
30.751634
102
0.582997
796ce118c8277ab0994ff212707a54e7be5fb6a1
5,153
py
Python
smarts/core/traffic_history_provider.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
554
2020-10-16T02:30:35.000Z
2022-03-29T14:13:00.000Z
smarts/core/traffic_history_provider.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
917
2020-10-17T00:10:31.000Z
2022-03-31T23:00:47.000Z
smarts/core/traffic_history_provider.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
135
2020-10-20T01:44:49.000Z
2022-03-27T04:51:31.000Z
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
38.744361
88
0.657093
796ce29745c7e3d3688bb3452532f8839acb87b7
4,499
py
Python
okta/models/user_factor.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
145
2017-06-13T21:54:04.000Z
2022-02-25T05:44:34.000Z
okta/models/user_factor.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
146
2017-06-02T17:46:12.000Z
2022-03-29T15:52:15.000Z
okta/models/user_factor.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
98
2017-06-27T03:44:51.000Z
2022-03-23T04:58:18.000Z
# flake8: noqa """ Copyright 2020 - Present Okta, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
35.706349
76
0.539898
796ce57804a520eb5682c7683e5932f9b8d7ad96
496
py
Python
tests/test_tabulate.py
nxdevel/nx_itertools
744da75c616a8a7991b963a549152fe9c434abd9
[ "MIT" ]
null
null
null
tests/test_tabulate.py
nxdevel/nx_itertools
744da75c616a8a7991b963a549152fe9c434abd9
[ "MIT" ]
null
null
null
tests/test_tabulate.py
nxdevel/nx_itertools
744da75c616a8a7991b963a549152fe9c434abd9
[ "MIT" ]
null
null
null
"""Test for nx_itertools.recipes.tabulate""" from itertools import islice from nx_itertools.recipes import tabulate def test_normal(): """Test tabulate.""" # tabulate with default: 0 res = tabulate(lambda x: 'A' + str(x)) assert next(res) == 'A0' assert list(islice(res, 4)) == ['A1', 'A2', 'A3', '...
29.176471
60
0.594758
796ce67aab82a85732b709fc302a7c6cf9d3a0cc
2,326
bzl
Python
bazel/pgv_proto_library.bzl
DecipherNow/protoc-gen-validate
fd1d9eb982716c37cb175f39472ac00b84572d7f
[ "Apache-2.0" ]
null
null
null
bazel/pgv_proto_library.bzl
DecipherNow/protoc-gen-validate
fd1d9eb982716c37cb175f39472ac00b84572d7f
[ "Apache-2.0" ]
null
null
null
bazel/pgv_proto_library.bzl
DecipherNow/protoc-gen-validate
fd1d9eb982716c37cb175f39472ac00b84572d7f
[ "Apache-2.0" ]
null
null
null
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") load(":protobuf.bzl", "cc_proto_gen_validate") def pgv_go_proto_library(name, proto = None, deps = [], **kwargs): go_proto_compiler( name = "pgv_plugin_go", suffix = ".p...
32.305556
109
0.61178
796ce6d02205d76680cf72784596a56a4cd47c42
6,495
py
Python
gravity/urls.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
114
2017-03-19T22:51:45.000Z
2022-01-18T06:00:23.000Z
gravity/urls.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
392
2017-03-12T17:09:16.000Z
2022-03-31T22:08:45.000Z
gravity/urls.py
fossabot/fermentrack
3070bc14791b1482ec661607005ebda961ca3a8f
[ "MIT" ]
67
2017-03-19T18:11:54.000Z
2022-01-31T12:12:17.000Z
from django.conf.urls import url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static import gravity.views import gravity.views_ispindel import gravity.views_tilt import gravity.api.sensors app_name = "gravity" # This gets added to the app's urlpatterns gravit...
90.208333
247
0.744419
796ce8575b58372def9bd0beb142911245e00882
2,527
py
Python
etl_framework/testing/tests/test_postgresql_fixture.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
2
2017-03-01T20:09:06.000Z
2019-02-08T17:10:16.000Z
etl_framework/testing/tests/test_postgresql_fixture.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
40
2015-10-10T15:02:21.000Z
2020-03-17T22:32:04.000Z
etl_framework/testing/tests/test_postgresql_fixture.py
pantheon-ci-bot/etl-framework
36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f
[ "MIT" ]
2
2018-11-14T21:50:58.000Z
2022-03-07T20:59:27.000Z
"""tests postgresql_fixture""" import os import json import unittest from mock import MagicMock from etl_framework.datastores.postgresql_database import PostgreSqlDatabase from etl_framework.config_mixins.InsertStatementMixin import PostgreSqlInsertStatementMixin from etl_framework.configs.environment import Environm...
28.715909
98
0.679066
796ce8891f0e8d996bf466e80c29347080b3b9bc
5,399
py
Python
pororo/tasks/semantic_role_labeling.py
zelabean/pororo
bd314ac1637114aab3121d053d15a19df441bf53
[ "Apache-2.0" ]
1
2021-02-08T14:33:19.000Z
2021-02-08T14:33:19.000Z
pororo/tasks/semantic_role_labeling.py
philosucker/pororo
3e49857ff3af53e367a05c24ad5c14aecbb0fbdf
[ "Apache-2.0" ]
null
null
null
pororo/tasks/semantic_role_labeling.py
philosucker/pororo
3e49857ff3af53e367a05c24ad5c14aecbb0fbdf
[ "Apache-2.0" ]
1
2021-03-25T22:24:49.000Z
2021-03-25T22:24:49.000Z
"""Semantic Role Labeling related modeling class""" from copy import deepcopy from typing import List, Optional from pororo.tasks.utils.base import PororoFactoryBase, PororoSimpleBase class PororoSrlFactory(PororoFactoryBase): """ Conduct semantic role labeling Korean (`charbert.base.ko.srl`) ...
27.545918
146
0.503056
796ce8d1a1b2bf2ba2b9fb9e51f06aa6e610f8e7
1,193
py
Python
samples/snippets/update_intent.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
171
2018-09-19T21:16:18.000Z
2020-12-07T17:41:10.000Z
samples/snippets/update_intent.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
150
2018-09-25T14:04:28.000Z
2020-12-09T21:45:43.000Z
samples/snippets/update_intent.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
75
2018-09-22T14:12:18.000Z
2020-12-08T07:12:12.000Z
# Copyright 2021 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, s...
35.088235
83
0.779547
796ce9d83dcddea5565fa062dd8b5ce064192e8f
1,971
py
Python
tests/integration/helpers.py
canonical/avalanche-operator
121632a07665c22e2b3e08529569a02d5297ae8e
[ "Apache-2.0" ]
1
2022-01-28T10:07:06.000Z
2022-01-28T10:07:06.000Z
tests/integration/helpers.py
canonical/avalanche-operator
121632a07665c22e2b3e08529569a02d5297ae8e
[ "Apache-2.0" ]
2
2022-02-14T16:50:14.000Z
2022-03-11T00:16:05.000Z
tests/integration/helpers.py
canonical/avalanche-k8s-operator
fd75fe6e694a4ee7ca40e22ea524749684136a2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. import logging from pytest_operator.plugin import OpsTest log = logging.getLogger(__name__) async def get_unit_address(ops_test, app_name: str, unit_num: int) -> str: status = await ops_test.model.get_status() # noqa: F821 return st...
41.0625
94
0.716388
796cea62c9eb42d37c86fe4c3e4d8d54ede0006c
4,126
py
Python
.venv/Lib/site-packages/docutils/parsers/rst/languages/es.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/docutils/parsers/rst/languages/es.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
1
2020-05-16T02:22:36.000Z
2020-05-16T02:22:36.000Z
.venv/Lib/site-packages/docutils/parsers/rst/languages/es.py
sirZer0/Replace
e59ad89c43f901d409215353a7403781fb689c7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # $Id: es.py 7119 2011-09-02 13:00:23Z milde $ # Author: Marcelo Huerta San Martín <richieadler@users.sourceforge.net> # Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new translation, please # read <http://docutils.sf.net/docs/...
32.488189
78
0.633301
796ceb7b87720a9825fa67ad9e8e66ddca7186a1
594
py
Python
packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="hoverinfo", parent_name="heatmap", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
39.6
81
0.616162
796cec720d0aab47881bc1de2bf83d3c3013fa70
5,489
py
Python
mutagen/oggtheora.py
lucienimmink/scanner.py
cecaa0a570ba8058321dea1c8efa9f77868effb3
[ "MIT" ]
2
2020-09-16T07:00:41.000Z
2020-12-20T19:56:03.000Z
mutagen/oggtheora.py
lucienimmink/scanner.py
cecaa0a570ba8058321dea1c8efa9f77868effb3
[ "MIT" ]
null
null
null
mutagen/oggtheora.py
lucienimmink/scanner.py
cecaa0a570ba8058321dea1c8efa9f77868effb3
[ "MIT" ]
2
2020-09-17T08:27:12.000Z
2021-08-23T11:13:52.000Z
# -*- coding: utf-8 -*- # Copyright 2006 Joe Wreschnig # # 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 Foundation; either version 2 of the License, or # (at your option) any later version. """Read and wr...
29.994536
77
0.625251
796ced2849949f3a43dfae26ed47484c1ec580b0
301
py
Python
tests/demo_django_postgres/my_app/models.py
drummonds/fab_support
de2c9595e8cf499848f0cc5661e7f1d6465609a2
[ "MIT" ]
3
2018-10-31T19:04:08.000Z
2019-06-05T09:17:36.000Z
tests/demo_django_postgres/my_app/models.py
drummonds/fab_support
de2c9595e8cf499848f0cc5661e7f1d6465609a2
[ "MIT" ]
205
2018-03-04T10:12:14.000Z
2022-03-28T15:24:10.000Z
tests/demo_django_postgres/my_app/models.py
drummonds/fab_support
de2c9595e8cf499848f0cc5661e7f1d6465609a2
[ "MIT" ]
null
null
null
from django.db import models class MyData(models.Model): name = models.CharField(verbose_name="A Name", blank=True, max_length=255) number = models.IntegerField(verbose_name="A Number") def __str__(self): return self.name class Meta: verbose_name_plural = "MyData"
23.153846
78
0.694352
796cedbd51ea99e2bda75653c76d6f629d11f0c5
2,730
py
Python
media_nommer/utils/uri_parsing.py
duointeractive/media-nommer
ba8095748582934ab44f6972210381b074bd9d14
[ "BSD-3-Clause" ]
2
2015-11-05T18:52:05.000Z
2021-02-16T20:26:23.000Z
media_nommer/utils/uri_parsing.py
duointeractive/media-nommer
ba8095748582934ab44f6972210381b074bd9d14
[ "BSD-3-Clause" ]
null
null
null
media_nommer/utils/uri_parsing.py
duointeractive/media-nommer
ba8095748582934ab44f6972210381b074bd9d14
[ "BSD-3-Clause" ]
3
2015-06-04T11:27:39.000Z
2017-12-06T22:10:07.000Z
""" Utilities for parsing URI and URL strings. """ from media_nommer.utils.exceptions import BaseException class InvalidUri(BaseException): """ Raised when an invalid URI is passed to a function that consumes URIs. Make sure to instantiate with a helpful error message. """ pass def get_values_from...
32.5
82
0.636264
796cedc44ed4a1ebb5f869315b99e4f032083397
15,679
py
Python
python/ee/image.py
hyinhe/earthengine-api
a0b2e15cbe2b803b6a3b7e4e58965d9f5a15d5fc
[ "Apache-2.0" ]
1
2022-02-27T14:41:09.000Z
2022-02-27T14:41:09.000Z
python/ee/image.py
giswqs/earthengine-api
b5f00758effa53a358d0e8a74817c48e881887a8
[ "Apache-2.0" ]
null
null
null
python/ee/image.py
giswqs/earthengine-api
b5f00758effa53a358d0e8a74817c48e881887a8
[ "Apache-2.0" ]
1
2020-11-23T15:34:17.000Z
2020-11-23T15:34:17.000Z
#!/usr/bin/env python """A representation of an Earth Engine image. See: https://sites.google.com/site/earthengineapidocs for more details. """ # Using lowercase function naming to match the JavaScript names. # pylint: disable=g-bad-name # Disable lint messages caused by Python 3 compatibility changes. # pylint: d...
35.233708
80
0.650679
796cee270ad25994a4df5d3c9d074495ccf9be93
1,712
py
Python
training/train/train_and save_model_X.py
kamil1338/User-Activity-Classification-Model
1dc3d7f1dc6d266f8147e5cfa7975226c1acdc1f
[ "Apache-2.0" ]
null
null
null
training/train/train_and save_model_X.py
kamil1338/User-Activity-Classification-Model
1dc3d7f1dc6d266f8147e5cfa7975226c1acdc1f
[ "Apache-2.0" ]
null
null
null
training/train/train_and save_model_X.py
kamil1338/User-Activity-Classification-Model
1dc3d7f1dc6d266f8147e5cfa7975226c1acdc1f
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from data.npy_file_util import load_npy_file, create_dir_if_necessary from plot_util import show_loss, show_accuracy, print_loss_acc from training.path_util import npy_files_dir_path, model_saving_dir_path def execute(): train_data = load_npy_file(npy_files_dir_path + 'train_x_data.npy') ...
31.703704
73
0.731893
796cef424f0a7b167b647a83572d557d094910d4
3,506
py
Python
bindings/python/ensmallen/datasets/string/streptococcushalotolerans.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/streptococcushalotolerans.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/streptococcushalotolerans.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Streptococcus halotolerans. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pro...
33.390476
223
0.680833
796cefc770d942dc999258f1024f3426aea50dbb
3,054
py
Python
PyFinances/Budget Data Python Code.py
DarleneKo/PythonChallenge
11b4c041a25a7fcde0b09c6cbdc20376f8c78320
[ "ADSL" ]
null
null
null
PyFinances/Budget Data Python Code.py
DarleneKo/PythonChallenge
11b4c041a25a7fcde0b09c6cbdc20376f8c78320
[ "ADSL" ]
null
null
null
PyFinances/Budget Data Python Code.py
DarleneKo/PythonChallenge
11b4c041a25a7fcde0b09c6cbdc20376f8c78320
[ "ADSL" ]
null
null
null
# Import CSV File and Statistics Library: import os import csv from statistics import mean # Declare Initial Variables: Total_Months = 0 Total_NetProfit = [] Date = [] Monthly_ProfitChange = [] # Open, Read, and Create Dictionary from CSV File csv_path_input = os.path.join('Resources', 'budget_data.csv') with open...
41.27027
136
0.698756
796cefcfc62a0144a308e9194f5737ae4e445d39
2,722
py
Python
ceem/odesolver.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
5
2020-06-21T16:50:42.000Z
2021-03-14T04:02:01.000Z
ceem/odesolver.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
1
2021-03-13T07:46:36.000Z
2021-03-16T05:14:47.000Z
ceem/odesolver.py
sisl/CEEM
6154587fe3cdb92e8b7f70eedb1262caa1553cc8
[ "MIT" ]
1
2021-03-30T12:08:20.000Z
2021-03-30T12:08:20.000Z
# # File: odesolver.py # import abc import torch class Euler: @staticmethod def step_func(func, t, dt, y, u, transforms=None): return tuple(dt * f_ for f_ in func(t, y, u=u)) @property def order(self): return 1 class Midpoint: @staticmethod def step_func(func, t, dt, y, u...
27.22
98
0.578251
796cf08f779b1b2cff4b5d3afcdb0f07d5d454be
3,733
py
Python
qa/rpc-tests/maxblocksinflight.py
PsyTeck/astercoin
62bd370211e666259092e4de1db668be474fa954
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
PsyTeck/astercoin
62bd370211e666259092e4de1db668be474fa954
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
PsyTeck/astercoin
62bd370211e666259092e4de1db668be474fa954
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import logging ...
38.484536
110
0.63086
796cf14a23e6367630b5459a6cad61d21e91bd83
27,570
py
Python
test/functional/wallet_importdescriptors.py
psgreco/elements
80862ff9434fbb8f89bc189e92bb5af05db6144d
[ "MIT" ]
947
2015-06-09T03:46:11.000Z
2022-03-29T05:46:38.000Z
test/functional/wallet_importdescriptors.py
psgreco/elements
80862ff9434fbb8f89bc189e92bb5af05db6144d
[ "MIT" ]
992
2015-06-09T04:00:42.000Z
2022-03-30T19:57:24.000Z
test/functional/wallet_importdescriptors.py
psgreco/elements
80862ff9434fbb8f89bc189e92bb5af05db6144d
[ "MIT" ]
394
2015-06-09T03:58:47.000Z
2022-03-21T18:39:03.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the importdescriptors RPC. Test importdescriptors by generating keys on node0, importing the correspon...
57.318087
464
0.602757
796cf204bd5a3574b89eef8e343b7d67298368fc
504
py
Python
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
import threading from typing import Optional import pytest from botx import Message from botx.middlewares.ns import register_next_step_handler @pytest.fixture() def build_handler_to_start_chain(): def factory(next_handler_name: Optional[str], event: threading.Event): def decorator(message: Message): ...
24
74
0.72619
796cf26ec019c358c467a7e0d7f0bfe978367340
1,789
py
Python
dit/pid/imin.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
1
2021-03-15T08:51:42.000Z
2021-03-15T08:51:42.000Z
dit/pid/imin.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
dit/pid/imin.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
""" The I_min measure as proposed by Williams & Beer. """ from __future__ import division import numpy as np from .pid import BasePID def s_i(d, input_, output, output_value): """ Compute the specific mutual information I(input_ : output=output_value) Parameters ---------- d : Distribution ...
25.927536
102
0.604248
796cf2eed7fef769c18fd889151d8ce8ee2b3eeb
21,601
py
Python
tests/benchmark.py
davebulaval/magnitude-light
c3bc14a618d875553a45bc4013f5484f192e355f
[ "MIT" ]
3
2021-03-16T07:43:04.000Z
2022-01-04T14:14:45.000Z
tests/benchmark.py
davebulaval/magnitude-light
c3bc14a618d875553a45bc4013f5484f192e355f
[ "MIT" ]
null
null
null
tests/benchmark.py
davebulaval/magnitude-light
c3bc14a618d875553a45bc4013f5484f192e355f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import gc import random import sys import time import tempfile from functools import partial from sys import platform as _platform from random import seed, randint from itertoo...
32.728788
85
0.596917
796cf5c94792101e5445e668a8d38763bff272c4
35,438
py
Python
test/integ/test_connection.py
stevebeck89/snowflake-connector-python
739f9c2604116e1060268c437c1696c4e38862e2
[ "Apache-2.0" ]
null
null
null
test/integ/test_connection.py
stevebeck89/snowflake-connector-python
739f9c2604116e1060268c437c1696c4e38862e2
[ "Apache-2.0" ]
null
null
null
test/integ/test_connection.py
stevebeck89/snowflake-connector-python
739f9c2604116e1060268c437c1696c4e38862e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import logging import os import queue import threading import warnings from uuid import uuid4 import mock import pytest import snowflake.connector from snowflake.connector import DatabaseError, Op...
34.439261
116
0.630764
796cf6c9a552799b9d00d2cf1e14627de70ade7d
884
py
Python
plot_factory.py
WilliamJenner/CSVToGraph
2e1accc3667c3e0b2e31b09dee37cf93e02d569e
[ "MIT" ]
null
null
null
plot_factory.py
WilliamJenner/CSVToGraph
2e1accc3667c3e0b2e31b09dee37cf93e02d569e
[ "MIT" ]
null
null
null
plot_factory.py
WilliamJenner/CSVToGraph
2e1accc3667c3e0b2e31b09dee37cf93e02d569e
[ "MIT" ]
null
null
null
import csv_factory class factory: def __init__(self, path, rowNum): self.path = path self.rowNum = rowNum self.csv = csv_factory.factory(path) self.data = self.csv.data self.size = self.csv.dataSize self.testName = "" self.collectionSize = initCollectionSize(...
31.571429
99
0.631222
796cfa6f39aff360b5ce1d96c8b0fc0506d93458
1,461
py
Python
scripts/reduced/get_index_n_best_results.py
mejrpete/mdp-lib
8e8e0f1fbbacf9a0ff9e42a2934270676633de29
[ "MIT" ]
20
2015-02-25T22:38:29.000Z
2021-10-02T17:56:03.000Z
scripts/reduced/get_index_n_best_results.py
mejrpete/mdp-lib
8e8e0f1fbbacf9a0ff9e42a2934270676633de29
[ "MIT" ]
2
2016-02-10T16:45:34.000Z
2018-09-25T03:48:10.000Z
scripts/reduced/get_index_n_best_results.py
mejrpete/mdp-lib
8e8e0f1fbbacf9a0ff9e42a2934270676633de29
[ "MIT" ]
4
2016-02-26T22:05:41.000Z
2020-05-22T20:42:22.000Z
#!/usr/bin/python import argparse import functools import sys def main(argv): """ This program receives the successes and cost obtained with different determinizations on mdpsim, and prints the indices of the n best results in a space separated list. The arguments successes and costs are string conta...
28.647059
75
0.683778
796cfa93ca63356ec91fd9a93db69bf27460f9e1
339
py
Python
mmdet/core/post_processing/__init__.py
TriplePool/mmdetection
f72a87174ef9397b1e9239809bb961c8edbf4239
[ "Apache-2.0" ]
null
null
null
mmdet/core/post_processing/__init__.py
TriplePool/mmdetection
f72a87174ef9397b1e9239809bb961c8edbf4239
[ "Apache-2.0" ]
null
null
null
mmdet/core/post_processing/__init__.py
TriplePool/mmdetection
f72a87174ef9397b1e9239809bb961c8edbf4239
[ "Apache-2.0" ]
null
null
null
from .bbox_nms import fast_nms, multiclass_nms from .merge_augs import (merge_aug_bboxes, merge_aug_masks, merge_aug_proposals, merge_aug_scores, merge_aug_seqs) __all__ = [ 'multiclass_nms', 'merge_aug_proposals', 'merge_aug_bboxes', 'merge_aug_scores', 'merge_aug_masks', 'fast_nms', ...
37.666667
79
0.734513
796cfa9655b4e8a42c338ce5f9146239153d8c93
2,467
py
Python
lucyfer/searchset/fields/base.py
m-chrome/django_lucy
b90dc42d0b3c3500d150e455c0f8d0bc75f62f5a
[ "MIT" ]
null
null
null
lucyfer/searchset/fields/base.py
m-chrome/django_lucy
b90dc42d0b3c3500d150e455c0f8d0bc75f62f5a
[ "MIT" ]
null
null
null
lucyfer/searchset/fields/base.py
m-chrome/django_lucy
b90dc42d0b3c3500d150e455c0f8d0bc75f62f5a
[ "MIT" ]
null
null
null
from typing import Dict, List from lucyparser.tree import Operator from lucyfer.settings import lucyfer_settings class BaseSearchField: """ Base Field class for including in SearchSet classes """ DEFAULT_LOOKUP: str OPERATOR_TO_LOOKUP: Dict[Operator, str] = dict() _default_get_available_val...
29.369048
93
0.653831
796cfad12aad1ee91adfcb687d7e7850d0c0da9d
542
py
Python
env/Lib/site-packages/jeepney/tests/test_auth.py
iamswayam/DRF-API-Logger
4acd2ee709df98c2e22d6bd0a97bf9191a0d8e4e
[ "MIT" ]
1
2021-01-14T15:33:11.000Z
2021-01-14T15:33:11.000Z
env/Lib/site-packages/jeepney/tests/test_auth.py
iamswayam/DRF-API-Logger
4acd2ee709df98c2e22d6bd0a97bf9191a0d8e4e
[ "MIT" ]
301
2020-10-03T10:46:31.000Z
2022-03-27T23:46:23.000Z
flask/lib/python3.6/site-packages/jeepney/tests/test_auth.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
2
2020-09-10T22:39:34.000Z
2021-06-27T22:21:55.000Z
from jeepney import auth def test_make_auth_external(): b = auth.make_auth_external() assert b.startswith(b'AUTH EXTERNAL') def test_make_auth_anonymous(): b = auth.make_auth_anonymous() assert b.startswith(b'AUTH ANONYMOUS') def test_parser(): p = auth.SASLParser() p.feed(b'OK 728d62bc2eb394...
24.636364
42
0.714022
796cfb54d3c63ddf353b6b23434013b2c64d757c
3,772
py
Python
split_data.py
britneyting/resnet_chestxray
7dcbb76883578d79ae31554c003c7dcfe93323de
[ "MIT" ]
1
2021-12-03T13:08:46.000Z
2021-12-03T13:08:46.000Z
split_data.py
britneyting/resnet_chestxray
7dcbb76883578d79ae31554c003c7dcfe93323de
[ "MIT" ]
null
null
null
split_data.py
britneyting/resnet_chestxray
7dcbb76883578d79ae31554c003c7dcfe93323de
[ "MIT" ]
1
2021-07-01T19:33:11.000Z
2021-07-01T19:33:11.000Z
import os import pandas as pd import numpy as np from resnet_chestxray import model_utils current_dir = os.path.dirname(__file__) mimiccxr_metadata = os.path.join(current_dir, 'mimic_cxr_edema/auxiliary_metadata/mimic_cxr_metadata_available_CHF_view.csv') regex_labels = os.path.join(current_dir, '...
48.987013
145
0.770414
796cfb9da0f7bc2d67f5584eb9a1a048949c03e2
116
py
Python
zeropassweb/passes/admin.py
andreatulimiero/netsec-hs18
3892da50c45f6c9600f7675c9b1b9669f76492ae
[ "MIT" ]
null
null
null
zeropassweb/passes/admin.py
andreatulimiero/netsec-hs18
3892da50c45f6c9600f7675c9b1b9669f76492ae
[ "MIT" ]
null
null
null
zeropassweb/passes/admin.py
andreatulimiero/netsec-hs18
3892da50c45f6c9600f7675c9b1b9669f76492ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Account)
16.571429
32
0.775862
796cfc56e20f81aa798d7204f670f1924651c651
4,365
py
Python
collector_module/opmon_mongodb_maintenance/create_users.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
2
2021-06-30T11:12:31.000Z
2021-09-24T08:50:03.000Z
collector_module/opmon_mongodb_maintenance/create_users.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
null
null
null
collector_module/opmon_mongodb_maintenance/create_users.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
2
2021-07-02T12:31:37.000Z
2021-11-09T08:44:09.000Z
#!/usr/bin/env python3 """ Script to create MongoDb users for X-Road Metrics tools. """ # The MIT License # Copyright (c) 2021- Nordic Institute for Interoperability Solutions (NIIS) # Copyright (c) 2017-2020 Estonian Information System Authority (RIA) # # Permission is hereby granted, free of charge, to any pers...
37.307692
114
0.675601
796cfcc240063585d332788cd14d0fac9bdddcc7
5,900
py
Python
old_game/spells/lunarspells.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
53
2015-07-03T21:25:36.000Z
2022-02-18T23:08:38.000Z
old_game/spells/lunarspells.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
5
2015-07-03T21:27:12.000Z
2016-12-08T14:40:38.000Z
old_game/spells/lunarspells.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
14
2016-02-02T06:49:51.000Z
2022-02-24T13:24:35.000Z
from .base import SOLAR, EARTH, WATER, FIRE, AIR, LUNAR, Spell from .. import effects from .. import targetarea from .. import enchantments from .. import animobs from .. import stats from .. import invocations # CIRCLE ONE CURSE = Spell( "Curse", "Decreases the physical attack score of enemies within 6 tiles by ...
45.384615
144
0.680339
796cfd8fd1d22609b56cdbd80fad0855bcc3bc48
10,066
py
Python
nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_DA3_for_DTC.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
3
2022-03-07T07:59:14.000Z
2022-03-17T08:50:42.000Z
nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_DA3_for_DTC.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
1
2022-03-07T13:21:42.000Z
2022-03-07T13:21:42.000Z
nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_DA3_for_DTC.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
52.15544
119
0.616233
796cfdff114160a91bdcb39360c5776181473905
4,892
py
Python
models/seqGAN-tensorflow/run.py
Cospui/cotk
9038420787f7251049534baf3b35eac538a82148
[ "Apache-2.0" ]
null
null
null
models/seqGAN-tensorflow/run.py
Cospui/cotk
9038420787f7251049534baf3b35eac538a82148
[ "Apache-2.0" ]
null
null
null
models/seqGAN-tensorflow/run.py
Cospui/cotk
9038420787f7251049534baf3b35eac538a82148
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import time def run(): import argparse import time from utils import Storage parser = argparse.ArgumentParser(description='A seqGAN language generation model') args = Storage() parser.add_argument('--name', type=str, default='seqGAN', help='The name of your ...
45.296296
257
0.67498
796cfe6e3ea8e49b64da8012e9cb5767e7396b0e
1,102
py
Python
Machine Learning/Part 2 - Regression/Section 5 - Multiple Linear Regression/Multiple_Linear_Regression/multiple_linear_regression_allin.py
sagarnair16/Machine-Learning-Models
a2b5bbce5887e2e81d594ed2d2344b99219acc39
[ "MIT" ]
null
null
null
Machine Learning/Part 2 - Regression/Section 5 - Multiple Linear Regression/Multiple_Linear_Regression/multiple_linear_regression_allin.py
sagarnair16/Machine-Learning-Models
a2b5bbce5887e2e81d594ed2d2344b99219acc39
[ "MIT" ]
null
null
null
Machine Learning/Part 2 - Regression/Section 5 - Multiple Linear Regression/Multiple_Linear_Regression/multiple_linear_regression_allin.py
sagarnair16/Machine-Learning-Models
a2b5bbce5887e2e81d594ed2d2344b99219acc39
[ "MIT" ]
null
null
null
# Import Libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd #import dataset from working directory dataset= pd.read_csv('50_Startups.csv') x= dataset.iloc[:,:-1].values y= dataset.iloc[:,4].values #Encode categorical data from sklearn.preprocessing import LabelEncoder, OneHotEncoder labe...
29.783784
85
0.796733
796cfea2a0863a8b730ab2b8e85486257c1bcd18
14,367
py
Python
tests/check_simple_dot_proto.py
paulyoung/proto3-suite
ca03aa9d846d88b0762e40f9588b4927de22f798
[ "Apache-2.0" ]
61
2017-08-18T00:13:48.000Z
2022-03-23T18:58:56.000Z
tests/check_simple_dot_proto.py
paulyoung/proto3-suite
ca03aa9d846d88b0762e40f9588b4927de22f798
[ "Apache-2.0" ]
93
2017-08-08T20:54:23.000Z
2022-03-31T23:56:22.000Z
tests/check_simple_dot_proto.py
paulyoung/proto3-suite
ca03aa9d846d88b0762e40f9588b4927de22f798
[ "Apache-2.0" ]
39
2017-08-14T20:18:45.000Z
2022-03-18T02:41:08.000Z
#!/usr/bin/python import sys # Import protoc generated {de,}serializers (generated from test_proto{,_import}.proto) from test_proto_pb2 import * from test_proto_import_pb2 import WithNesting as ImportedWithNesting from test_proto_oneof_pb2 import Something, WithImported, DUMMY0, DUMMY1 from te...
38.007937
107
0.756943
796cfec512c91d0448c4779c049d4c98df43de45
11,052
py
Python
theano/gpuarray/tests/test_pool.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
null
null
null
theano/gpuarray/tests/test_pool.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
null
null
null
theano/gpuarray/tests/test_pool.py
MarcCote/Theano
f0d293161a624ccf10c60ee8405a92e7d321151a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, division import unittest import copy import itertools import numpy as np import theano from theano import gradient from theano import tensor from theano.tensor.signal.pool import (Pool, MaxPoolGrad, AveragePoolGrad, Downsam...
39.471429
90
0.48869
796cffa22f314002cb4f7d6d0ea3f3125a3d3c86
10,250
py
Python
operators.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
1
2022-03-21T21:08:21.000Z
2022-03-21T21:08:21.000Z
operators.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
null
null
null
operators.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
null
null
null
import math import bpy from . import utils class OBJECT_OT_lightfield_add(bpy.types.Operator): """ Operator to add a lightfield to the scene """ bl_idname = 'object.lightfield_add' bl_label = "Lightfield" bl_description = "Add a lightfield setup to the scene" bl_options = {'REGISTER', 'UN...
33.496732
108
0.610439
796d023a9e6ac9665dfd8d9617373a0af6ab6d0b
3,144
py
Python
tests/operators/vector/test_rint_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/operators/vector/test_rint_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
tests/operators/vector/test_rint_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.412371
88
0.542939
796d032016ee0e370c8f40eb4b923eeb505455d1
158
py
Python
roboexpo/urls.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
null
null
null
roboexpo/urls.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
null
null
null
roboexpo/urls.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
2
2021-01-30T08:22:57.000Z
2021-02-04T09:42:59.000Z
from django.urls import path from . import views app_name = 'roboexpo' urlpatterns = [ path('registration/', views.expo, name='roboexpo-registration'), ]
22.571429
68
0.727848
796d03c988a436e3ae2b70db607d3ceb39de5012
56,432
py
Python
trac/versioncontrol/web_ui/changeset.py
netjunki/trac
db1015b33aa440ffcfd91689b8dcbb43db8e2a28
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/web_ui/changeset.py
netjunki/trac
db1015b33aa440ffcfd91689b8dcbb43db8e2a28
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/web_ui/changeset.py
netjunki/trac
db1015b33aa440ffcfd91689b8dcbb43db8e2a28
[ "BSD-3-Clause" ]
1
2021-02-16T09:00:13.000Z
2021-02-16T09:00:13.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com> # Copyright (C) 2004-2006 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2005-2006 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described ...
45.399839
79
0.519794
796d040686b22d5118edb4cc3cd11555db926a7e
362
py
Python
pacman-arch/test/pacman/tests/remove042.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove042.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove042.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Cascade remove a package required by another package" lp1 = pmpkg("pkg1") lp1.depends = ["imaginary"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imaginary"] self.addpkg2db("local", lp2) self.args = "-Rc %s" % lp2.name self.addrule("PACMAN_RETCODE=0") self.addrule("!PKG_EXI...
22.625
73
0.709945
796d0520aea895370dfee670e5d0ad96e131b778
3,785
py
Python
grr/server/grr_response_server/flows/general/artifact_fallbacks.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
4,238
2015-01-01T15:34:50.000Z
2022-03-31T08:18:05.000Z
grr/server/grr_response_server/flows/general/artifact_fallbacks.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
787
2015-01-02T21:34:24.000Z
2022-03-02T13:26:38.000Z
grr/server/grr_response_server/flows/general/artifact_fallbacks.py
khanhgithead/grr
8ad8a4d2c5a93c92729206b7771af19d92d4f915
[ "Apache-2.0" ]
856
2015-01-02T02:50:11.000Z
2022-03-31T11:11:53.000Z
#!/usr/bin/env python """Fallback flows for artifacts that couldn't be collected normally. These flows subclass lib.artifact.ArtifactFallbackCollector. """ # pylint: disable=unused-import from grr_response_core.lib import parser # pylint: enable=unused-import from grr_response_core.lib.rdfvalues import artifacts as r...
35.046296
79
0.764333
796d05856e950f11db89438379d119c5389335f4
612
py
Python
gdrive/users/models.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
1
2021-01-14T05:14:05.000Z
2021-01-14T05:14:05.000Z
gdrive/users/models.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
4
2020-10-29T17:52:33.000Z
2020-11-04T01:14:34.000Z
gdrive/users/models.py
amirasaad/googledrivelike
e192f5be45a997f643d8fafce5278ef37d0dc1c4
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ class User(AbstractUser): """Default user for Google Drive Like.""" #: First and last name do not cover name patterns around the gl...
29.142857
74
0.691176
796d05b47224ec1eccdaa08dae164ecab7ee4363
46,851
py
Python
testing/test_capture.py
popexizhi/pytest
9c2ad823d7eb7c467669116dfb417919f01264b5
[ "MIT" ]
null
null
null
testing/test_capture.py
popexizhi/pytest
9c2ad823d7eb7c467669116dfb417919f01264b5
[ "MIT" ]
null
null
null
testing/test_capture.py
popexizhi/pytest
9c2ad823d7eb7c467669116dfb417919f01264b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import contextlib import io import os import pickle import subprocess import sys import textwrap from io import UnsupportedOperation import py from six import text_type import pytest f...
29.690114
108
0.549337
796d06b4d5fd09be283333eca50b074988bc8372
738
py
Python
quokka/modules/comments/admin.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
quokka/modules/comments/admin.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
quokka/modules/comments/admin.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
# coding : utf -8 from quokka import admin from quokka.core.admin.models import ModelAdmin from quokka.core.widgets import TextEditor from .models import Comment from quokka.utils.translation import _l class CommentAdmin(ModelAdmin): roles_accepted = ('admin', 'editor', 'moderator') column_list = ('path', '...
29.52
61
0.635501
796d078465e34591a48f42261b9934d5e6767d40
5,136
py
Python
src/model/gpt3_modeling.py
safiza-web/ru-gpts
08416ee32141432f834cd6b2f8aeba83008a69f8
[ "Apache-2.0" ]
1,418
2020-10-13T08:56:16.000Z
2022-03-30T04:34:23.000Z
src/model/gpt3_modeling.py
safiza-web/ru-gpts
08416ee32141432f834cd6b2f8aeba83008a69f8
[ "Apache-2.0" ]
79
2020-10-17T11:01:47.000Z
2022-03-03T22:45:51.000Z
src/model/gpt3_modeling.py
safiza-web/ru-gpts
08416ee32141432f834cd6b2f8aeba83008a69f8
[ "Apache-2.0" ]
341
2020-10-17T11:45:21.000Z
2022-03-27T13:50:33.000Z
# coding=utf-8 # Copyright (c) 2020, Sber. 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 appl...
36.685714
102
0.594821
796d091ed083508ce911270eb66e032e473effd9
5,169
py
Python
Wrapping/Python/paraview/extract_selection.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Wrapping/Python/paraview/extract_selection.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Wrapping/Python/paraview/extract_selection.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
r"""This module is used by vtkPythonExtractSelection to extract query-based selections. It relies on the python-calculator (vtkPythonCalculator), specifically, the Python code used by that class, to compute a mask array from the query expression. Once the mask array is obtained, this filter will either extract the sele...
44.179487
92
0.704198
796d0a0c4d93b864b3f90ed6880a256d4f04995b
2,492
py
Python
python/test/TestInfraFunctionality.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/test/TestInfraFunctionality.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/test/TestInfraFunctionality.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
"""Copyright (c) 2005-2018, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
47.923077
91
0.764446
796d0a8daf91ece53dabfb8b51b15503aea35f1a
3,429
py
Python
amqtt_db/plugin.py
volkerjaenisch/amqtt_db
5bd26b4c093c7356da96863e64c1c3eb1d908d58
[ "MIT" ]
3
2021-04-14T09:52:27.000Z
2022-01-16T20:28:34.000Z
amqtt_db/plugin.py
volkerjaenisch/amqtt_db
5bd26b4c093c7356da96863e64c1c3eb1d908d58
[ "MIT" ]
null
null
null
amqtt_db/plugin.py
volkerjaenisch/amqtt_db
5bd26b4c093c7356da96863e64c1c3eb1d908d58
[ "MIT" ]
null
null
null
import inspect import sys import traceback from amqtt_db.base.base_plugin import BasePlugin from amqtt_db.base.base_topic import BaseTopicEngine from amqtt_db.base.constants import TOPIC_ENGINE, DB_CONNECT_STRING, DB_STRUCTURE from amqtt_db.base.utils import get_class_func_by_name from amqtt_db.db.db_sa import SA cl...
32.349057
114
0.627588
796d0ae572c0465290a501025dc0ce2870c7179f
146
py
Python
src/constants.py
super6liu/technical-analysis-julian
dd8868b65d80f78e536f3471d4dc09440de48e62
[ "MIT" ]
null
null
null
src/constants.py
super6liu/technical-analysis-julian
dd8868b65d80f78e536f3471d4dc09440de48e62
[ "MIT" ]
null
null
null
src/constants.py
super6liu/technical-analysis-julian
dd8868b65d80f78e536f3471d4dc09440de48e62
[ "MIT" ]
1
2021-10-03T13:18:09.000Z
2021-10-03T13:18:09.000Z
from enum import Enum class Env(Enum): DEVELOPMENT = "development" PRODUCETION = "production" STAGING = "staging" TEST = "test"
16.222222
31
0.650685
796d0b80ef0eb6a5072dce6ae594cd065d6e6189
2,638
py
Python
unit/mapping_spec.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
unit/mapping_spec.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
unit/mapping_spec.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
from kallikrein import Expectation, k, pending from kallikrein.matchers import contain from kallikrein.matchers.start_with import start_with from kallikrein.matchers.maybe import be_just from amino import do, Do, __, Map, List, _, Dat from amino.boolean import true from amino.lenses.lens import lens from amino.test.sp...
27.768421
95
0.722896
796d0b8fa47b3abc7f4d51d077e8aabcb5f313c9
61
py
Python
pyrolib/gpio/gpio.py
johnosullivan/UniversalBotLibrary
4ae46547e6dd0441e5da861ab1568923cbc8980e
[ "MIT" ]
null
null
null
pyrolib/gpio/gpio.py
johnosullivan/UniversalBotLibrary
4ae46547e6dd0441e5da861ab1568923cbc8980e
[ "MIT" ]
null
null
null
pyrolib/gpio/gpio.py
johnosullivan/UniversalBotLibrary
4ae46547e6dd0441e5da861ab1568923cbc8980e
[ "MIT" ]
null
null
null
versioncore = 2.0 def get_version(): return versioncore
12.2
22
0.721311
796d0cb30218869bcffdfe0ebd81315e40c034dd
289
py
Python
package/demo/001/ImportDemo.py
yinyayun/pyloader
2be0919ab80dbb38b1fdd7969c31647be20e8fa9
[ "Apache-2.0" ]
1
2021-03-17T08:03:53.000Z
2021-03-17T08:03:53.000Z
package/demo/001/ImportDemo.py
yinyayun/pyloader
2be0919ab80dbb38b1fdd7969c31647be20e8fa9
[ "Apache-2.0" ]
null
null
null
package/demo/001/ImportDemo.py
yinyayun/pyloader
2be0919ab80dbb38b1fdd7969c31647be20e8fa9
[ "Apache-2.0" ]
1
2021-03-17T08:03:57.000Z
2021-03-17T08:03:57.000Z
''' Created on 2018年10月22日 @author: yinyayun ''' from DenpendenceDemo import DenpendenceDemo import numpy as np class ImportDemo(): def __init__(self): self.dp = DenpendenceDemo() def zz(self): return self.dp.dep() + '_' + self.dp.calc() #return "001"
16.055556
51
0.636678
796d0cc2e830a8a82e4837d753c0060aec0a07e3
1,097
py
Python
python/xviz_avs/builder/declarative_ui/panel.py
EliotCao/xviz
57429ba8f76a8bb7ac0889d021a12e22a52f8e7e
[ "Apache-2.0" ]
851
2019-02-19T18:06:42.000Z
2022-01-17T03:04:23.000Z
python/xviz_avs/builder/declarative_ui/panel.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
291
2019-02-19T18:48:01.000Z
2022-01-17T03:03:59.000Z
python/xviz_avs/builder/declarative_ui/panel.py
assalmeftahi/xviz
b9f05ade77b1fe4f0fd478e6075e4f62456ec6a0
[ "Apache-2.0" ]
221
2019-02-19T20:57:37.000Z
2022-01-20T08:43:01.000Z
from xviz_avs.builder.declarative_ui.base_ui_builder import XVIZBaseUiBuilder from xviz_avs.builder.declarative_ui.constants import UI_TYPES class XVIZPanelBuilder(XVIZBaseUiBuilder): def __init__(self, name, layout=None, interactions=None, **kwargs): super().__init__(UI_TYPES.PANEL, **kwargs) sel...
26.756098
77
0.628988
796d0d5d6cb7eb50cddbc5f5dc1605e1552e29ea
4,035
py
Python
frag_pele/Growing/template_selector.py
BSC-CNS-EAPM/frag_pele
beefddaab56fc46dbe1e2e73ec6b24de98afe741
[ "MIT" ]
26
2019-05-17T08:21:23.000Z
2022-03-17T22:27:30.000Z
frag_pele/Growing/template_selector.py
BSC-CNS-EAPM/frag_pele
beefddaab56fc46dbe1e2e73ec6b24de98afe741
[ "MIT" ]
37
2019-09-04T08:47:51.000Z
2021-07-13T12:57:23.000Z
frag_pele/Growing/template_selector.py
BSC-CNS-EAPM/frag_pele
beefddaab56fc46dbe1e2e73ec6b24de98afe741
[ "MIT" ]
9
2019-05-17T08:04:32.000Z
2021-04-07T03:54:53.000Z
import sys import re import os import string import pandas as pd import logging # Getting the name of the module for the log system logger = logging.getLogger(__name__) def trajectory_selector(output, path_to_file="/growing_output", report="report", trajectory="trajectory.pdb", criteria="Bind...
45.337079
114
0.661462
796d0d79844e53f52b19440e0759a3a9685142f4
20,811
py
Python
tackerclient/osc/v1/vnflcm/vnflcm.py
SSU-DCN/python-tackerclient
771973a3f66f08fa05b3d0702a81df9ec0b35219
[ "Apache-2.0" ]
20
2015-10-18T02:56:36.000Z
2021-10-12T13:37:58.000Z
tackerclient/osc/v1/vnflcm/vnflcm.py
openstack/python-tackerclient
b7f27c3dc6a8ec747d13698a3ced1dc5cc162389
[ "Apache-2.0" ]
null
null
null
tackerclient/osc/v1/vnflcm/vnflcm.py
openstack/python-tackerclient
b7f27c3dc6a8ec747d13698a3ced1dc5cc162389
[ "Apache-2.0" ]
16
2016-03-18T08:37:28.000Z
2021-07-19T05:28:16.000Z
# Copyright (C) 2020 NTT DATA # 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 ...
36.574692
79
0.597809
796d0d9908fe62eb326b65e36935a29f9effdfdb
17,235
py
Python
tests/test_funcs.py
andhus/attrs
f3f386b3146913d745434c8d52859dd6928dac10
[ "MIT" ]
null
null
null
tests/test_funcs.py
andhus/attrs
f3f386b3146913d745434c8d52859dd6928dac10
[ "MIT" ]
null
null
null
tests/test_funcs.py
andhus/attrs
f3f386b3146913d745434c8d52859dd6928dac10
[ "MIT" ]
null
null
null
""" Tests for `attr._funcs`. """ from __future__ import absolute_import, division, print_function from collections import OrderedDict import pytest from hypothesis import assume, given from hypothesis import strategies as st import attr from attr import asdict, assoc, astuple, evolve, fields, has from attr._compa...
31.279492
79
0.560197
796d0da01d3d8ca73a2d38eaf7c7830a2bdb8ee7
135
py
Python
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/06. Exercise - Inheritance/04_need_for_speed/project/family_car.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/06. Exercise - Inheritance/04_need_for_speed/project/family_car.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/06. Exercise - Inheritance/04_need_for_speed/project/family_car.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
from project.car import Car class FamilyCar(Car): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
19.285714
41
0.651852
796d0df715f5281233c7b5156bacb6cb9d19f230
1,237
py
Python
Cinema/serializers.py
YaoYongjia/DjangoRestTpp
12d5b4ec847d682b92006b0648c21ad5d28d2787
[ "Apache-2.0" ]
null
null
null
Cinema/serializers.py
YaoYongjia/DjangoRestTpp
12d5b4ec847d682b92006b0648c21ad5d28d2787
[ "Apache-2.0" ]
null
null
null
Cinema/serializers.py
YaoYongjia/DjangoRestTpp
12d5b4ec847d682b92006b0648c21ad5d28d2787
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from Cinema.models import CinemaUser, CinemaMovieOrder, Cinema, Hall, PaiDang class CinemaUserSerializer(serializers.ModelSerializer): class Meta: model = CinemaUser fields = ("c_username", "c_password") def create(self, validated_data): user =...
25.770833
94
0.675829
796d0e55e0b29801d2e74c33b56fb7eeff0cd2c1
3,392
py
Python
app/api/v1/definitions/datastores.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
3
2020-06-14T01:28:39.000Z
2020-06-15T23:52:29.000Z
app/api/v1/definitions/datastores.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
null
null
null
app/api/v1/definitions/datastores.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import url from rest_framework import serializers from app.api.v1.exceptions import NotFound from app.api.v1.serializers import ApiSerializer, CustomPropertiesSerializer from app.api.v1.serializers import CustomPropertiesMixin from app.api.v1.views import CustomPropertyVi...
27.803279
88
0.636498
796d0f43dee78188e4fc62ff3175645fa9e3da93
529
py
Python
symbolCheck.py
telboon/Project-Euler
dfd3a864292be5adcbfa7c2a67061e91c8f9e28c
[ "MIT" ]
null
null
null
symbolCheck.py
telboon/Project-Euler
dfd3a864292be5adcbfa7c2a67061e91c8f9e28c
[ "MIT" ]
null
null
null
symbolCheck.py
telboon/Project-Euler
dfd3a864292be5adcbfa7c2a67061e91c8f9e28c
[ "MIT" ]
null
null
null
def SimpleSymbols(ytr): magic=ytr if (ord(magic[len(magic)-1]) in range(97,123)) or (ord(magic[len(magic)-1]) in range(65,91)): return "false" for i in range(0,len(magic)): if(ord(magic[i]) in range(97,123)) or (ord(magic[i]) in range(65,91)): if i==0: return str(i)+"false" if ...
25.190476
95
0.595463
796d0fa549f5e5024a6469d7f6e10990053bd4d9
368
py
Python
main/util/msg_handler.py
taekwan-hwang/infocom_notice
f45f6608459e6124d7315725ebaa8144a23ea4fe
[ "MIT" ]
6
2018-02-25T14:08:03.000Z
2018-03-05T14:39:42.000Z
main/util/msg_handler.py
taekwan-hwang/infocom_notice
f45f6608459e6124d7315725ebaa8144a23ea4fe
[ "MIT" ]
2
2018-02-28T02:12:58.000Z
2018-03-05T02:39:19.000Z
main/util/msg_handler.py
taekwan-hwang/infocom_notice
f45f6608459e6124d7315725ebaa8144a23ea4fe
[ "MIT" ]
null
null
null
''' Notice 의 쿼리셋들을 다루는 모듈 ''' def to_msg(notices): ''' 쿼리셋을 전송할 메시지로 변경하는 메소드 ''' msg = '' for i, notice in enumerate(notices): msg += str(i+1) + ". " + notice.title + '\r\n' return msg[:-1] def set_sent_status(notices): ''' 보낸 상태로 만드는 메소드 ''' for notice in notices: ...
17.52381
54
0.524457
796d0fb7af34877997703ab6d0ca322a65c94d70
3,100
py
Python
softhub/management/commands/initialize_db.py
davcri/softhub
5a932da36d1393c361b1940283d468692fe57d9d
[ "MIT" ]
1
2018-05-05T20:01:15.000Z
2018-05-05T20:01:15.000Z
softhub/management/commands/initialize_db.py
davcri/softhub
5a932da36d1393c361b1940283d468692fe57d9d
[ "MIT" ]
2
2021-03-18T20:16:53.000Z
2021-06-08T19:09:15.000Z
softhub/management/commands/initialize_db.py
davcri/softhub
5a932da36d1393c361b1940283d468692fe57d9d
[ "MIT" ]
2
2017-05-10T22:33:39.000Z
2018-01-30T14:05:06.000Z
from django.core.management.base import BaseCommand from softhub.models.OperatingSystem import OperatingSystem from softhub.models.User import User from softhub.models.License import License from softhub.models.Category import Category from softhub.models.Rating import Rating class Command(BaseCommand): args = "...
28.440367
75
0.555484
796d107cd4b1c00a0773a16f44d98631a3c5f8df
127
py
Python
examples/example_module/test_glue_etl_script.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
4
2022-03-24T04:39:02.000Z
2022-03-31T16:41:50.000Z
examples/example_module/test_glue_etl_script.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
examples/example_module/test_glue_etl_script.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 output = input0.limi(10)
31.75
68
0.755906
796d11fefadc1547348abb33878cfae9dcdecf46
2,174
py
Python
tests/test_utilities/test_csvsort.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
null
null
null
tests/test_utilities/test_csvsort.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
1
2018-09-21T23:30:21.000Z
2018-09-21T23:30:21.000Z
tests/test_utilities/test_csvsort.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
1
2018-09-21T23:26:35.000Z
2018-09-21T23:26:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import six try: from mock import patch except ImportError: from unittest.mock import patch from csvkit.utilities.csvsort import CSVSort, launch_new_instance from tests.utils import CSVKitTestCase, ColumnsTests, EmptyFileTests, NamesTests class TestC...
41.018868
130
0.664673
796d12b0a889932d467555ca449f323e578cde3a
27,874
py
Python
ucsmsdk/mometa/extpol/ExtpolRegistry.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/extpol/ExtpolRegistry.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/extpol/ExtpolRegistry.py
Curlyfingers/ucsmsdk
982ff2d8faa12ffb88e1f8cba98cf5749f05c93d
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for ExtpolRegistry ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ExtpolRegistryConsts: CONN_PROTOCOL_IPV4 = "ipv4" CONN_PROTOCOL_IPV6 = "ipv6" CONN_PROTOCOL_UN...
93.851852
3,748
0.752135
796d12b49da8a30cbe109031f012dc6382035fb0
440
py
Python
hackil/myemail.py
abhishekmalle/Email-Automation-for-Flight-Tickets-
9557d6c89d5ef7899625f1231862ff94e86a45bd
[ "Apache-2.0" ]
null
null
null
hackil/myemail.py
abhishekmalle/Email-Automation-for-Flight-Tickets-
9557d6c89d5ef7899625f1231862ff94e86a45bd
[ "Apache-2.0" ]
null
null
null
hackil/myemail.py
abhishekmalle/Email-Automation-for-Flight-Tickets-
9557d6c89d5ef7899625f1231862ff94e86a45bd
[ "Apache-2.0" ]
null
null
null
import smtplib smtp_server = smtplib.SMTP('smtp.gmail.com', 587) smtp_server.ehlo() smtp_server.starttls() email = 'flightsaleresponse@gmail.com' apppwd = 'kxgrfartdbtkdubf' smtp_server.login(email, apppwd) toaddr = 'abhishekmalle@gmail.com' msg = "\r\n".join([ "From: flightsaleresponse@gmail.com", "To: abhish...
25.882353
49
0.713636
796d13a053f4329066c5321eb474b1b424a4bd01
2,266
py
Python
renku/cli/migrate.py
jsam/renku-python
37730aa497724860b691ea2a3bd3e3d5993d1a93
[ "Apache-2.0" ]
2
2019-03-09T17:56:57.000Z
2019-07-03T15:20:22.000Z
renku/cli/migrate.py
jsam/renku-python
37730aa497724860b691ea2a3bd3e3d5993d1a93
[ "Apache-2.0" ]
null
null
null
renku/cli/migrate.py
jsam/renku-python
37730aa497724860b691ea2a3bd3e3d5993d1a93
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
32.371429
75
0.66902
796d142a81e3a467ac1542329adea7c911f8284b
92
py
Python
tests/conftest.py
joshmgrant/sauce-api-testing-example
cd486ede9a67aff14353ce4cf48cd1e9aa4b01b4
[ "MIT" ]
1
2021-12-01T17:26:41.000Z
2021-12-01T17:26:41.000Z
tests/conftest.py
joshmgrant/sauceCon_API_in_120_minutes
80ae4021f900b0c1a42e33bea8c28af85befe13b
[ "MIT" ]
null
null
null
tests/conftest.py
joshmgrant/sauceCon_API_in_120_minutes
80ae4021f900b0c1a42e33bea8c28af85befe13b
[ "MIT" ]
5
2021-04-20T06:32:12.000Z
2021-06-16T15:17:44.000Z
import pytest from api_helper import API @pytest.fixture def saucelog(): return API("")
15.333333
26
0.73913
796d15b9eec3fcb55b762bd4fe579dd0e982e368
2,698
py
Python
example_problems/problems_to_be_done/mappa/services/eval_unrank_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
3
2021-01-08T09:56:46.000Z
2021-03-02T20:47:29.000Z
example_problems/problems_to_be_done/mappa/services/eval_unrank_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/problems_to_be_done/mappa/services/eval_unrank_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
4
2021-01-06T12:10:23.000Z
2021-03-16T22:16:07.000Z
#!/usr/bin/env python3 from sys import stderr, exit import random from time import monotonic from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors from parentheses_lib import Par # METADATA OF THIS TAL_SERVICE: problem="parentheses" service="eval_unrank" args_list = [ ('sorting_criterion'...
35.5
250
0.646034
796d161e177d2e275ccf263b2530ec3a3415b046
515
py
Python
examples/write_once.py
b3cch4/hug
bfbbcd597e2c1307e3f610bd53a4bfdc47766f74
[ "MIT" ]
1
2019-08-20T03:49:20.000Z
2019-08-20T03:49:20.000Z
examples/write_once.py
b3cch4/hug
bfbbcd597e2c1307e3f610bd53a4bfdc47766f74
[ "MIT" ]
5
2021-03-19T01:22:49.000Z
2022-03-11T23:49:40.000Z
examples/write_once.py
b3cch4/hug
bfbbcd597e2c1307e3f610bd53a4bfdc47766f74
[ "MIT" ]
2
2021-03-21T08:07:02.000Z
2021-10-05T03:53:47.000Z
"""An example of writing an API to scrape hacker news once, and then enabling usage everywhere""" import hug import requests @hug.local() @hug.cli() @hug.get() def top_post(section: hug.types.one_of(('news', 'newest', 'show'))='news'): """Returns the top post from the provided section""" content = requests.ge...
36.785714
97
0.664078
796d1649ccf6c4bedb58551a06aff338d9df1076
235
py
Python
qqqfome/common.py
Yappawu/qqqfome
b547afa56627134b5cec0bd823b8885d19313bcd
[ "MIT" ]
47
2016-02-12T11:35:40.000Z
2020-05-03T17:48:23.000Z
qqqfome/common.py
Yappawu/qqqfome
b547afa56627134b5cec0bd823b8885d19313bcd
[ "MIT" ]
null
null
null
qqqfome/common.py
Yappawu/qqqfome
b547afa56627134b5cec0bd823b8885d19313bcd
[ "MIT" ]
18
2016-02-13T11:44:40.000Z
2019-03-28T07:37:30.000Z
from . import strings as s def check_type(var, name, t): if not isinstance(t, type(str)): t = type(t) if not isinstance(var, t): raise ValueError(s.type_error.format( name, str(t), str(type(var))))
26.111111
45
0.591489
796d168065c3515348723417f93447d9be38318d
3,592
py
Python
langbrainscore/interface/metric.py
language-brainscore/lang-brainscore-fuzzy-potato
d436f525856ea445d207d49e65000e25a4bbeabf
[ "MIT" ]
null
null
null
langbrainscore/interface/metric.py
language-brainscore/lang-brainscore-fuzzy-potato
d436f525856ea445d207d49e65000e25a4bbeabf
[ "MIT" ]
4
2022-02-07T16:21:31.000Z
2022-02-14T21:26:07.000Z
langbrainscore/interface/metric.py
language-brainscore/lang-brainscore-fuzzy-potato
d436f525856ea445d207d49e65000e25a4bbeabf
[ "MIT" ]
null
null
null
import typing from abc import ABC, abstractmethod import numpy as np from langbrainscore.interface.cacheable import _Cacheable class _Metric(_Cacheable, ABC): # class _Metric(ABC): """ checks that two arrays are comparable for a given similarity metric, then applies that metric to those inputs and re...
28.736
84
0.5799
796d16a488dd4a079f435cd8667478b634796ea0
3,273
py
Python
legacy_app/webapp/app/main/forms.py
avivace/sha
33240d9074ddb473fb556af31e30c3672f59a4e1
[ "Apache-2.0" ]
2
2019-06-26T07:52:20.000Z
2020-05-19T15:47:19.000Z
legacy_app/webapp/app/main/forms.py
avivace/sha
33240d9074ddb473fb556af31e30c3672f59a4e1
[ "Apache-2.0" ]
25
2021-03-09T08:42:00.000Z
2022-02-26T12:00:11.000Z
legacy_app/webapp/app/main/forms.py
avivace/sha
33240d9074ddb473fb556af31e30c3672f59a4e1
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms.fields.html5 import DateTimeLocalField from wtforms import StringField, SubmitField, TextAreaField, IntegerField, SelectField from wtforms.validators import ValidationError, DataRequired, Length, Optional from app.models import User class EditProfileForm(FlaskForm): use...
50.353846
102
0.719523
796d16d973e3ab7f512f51ca9704765b73e8f12e
45,245
py
Python
gollyx_maps/hellmouth.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
gollyx_maps/hellmouth.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
gollyx_maps/hellmouth.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
import itertools from operator import itemgetter import json import os import random from .geom import hflip_pattern, vflip_pattern, rot_pattern from .patterns import ( get_pattern_size, get_pattern_livecount, get_grid_pattern, segment_pattern, methuselah_quadrants_pattern, pattern_union, cl...
27.53804
99
0.576616
796d16eec1abe2e625983f911246ca5133e3ea73
14,077
py
Python
Lib/site-packages/spyder/plugins/editor/confpage.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
spyder/plugins/editor/confpage.py
Pancakerr/spyder
34a9878bba97f427fbdd7b4a6d77ac0651327565
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
spyder/plugins/editor/confpage.py
Pancakerr/spyder
34a9878bba97f427fbdd7b4a6d77ac0651327565
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Editor config page.""" from qtpy.QtCore import Qt from qtpy.QtWidgets import (QGridLayout, QGroupBox, QHBoxLayout, QLabel, QTabWidget,...
43.582043
89
0.597499
796d1732b4738f6eccd107745aad7e7f8be6832c
1,705
py
Python
uge/api/impl/manager_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
6
2017-01-18T00:11:19.000Z
2022-02-10T08:18:00.000Z
uge/api/impl/manager_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
3
2017-05-11T13:54:42.000Z
2020-08-12T06:15:43.000Z
uge/api/impl/manager_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
4
2017-05-11T13:27:33.000Z
2019-10-29T02:02:24.000Z
#!/usr/bin/env python # # ___INFO__MARK_BEGIN__ ####################################################################################### # Copyright 2016-2021 Univa Corporation (acquired and owned by Altair Engineering Inc.) # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file e...
36.276596
87
0.642229
796d179ffa230f90f61ad70b6246e301f207e9c2
1,838
py
Python
trade_remedies_api/cases/admin.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
1
2020-08-13T10:37:15.000Z
2020-08-13T10:37:15.000Z
trade_remedies_api/cases/admin.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
4
2020-09-10T13:41:52.000Z
2020-12-16T09:00:21.000Z
trade_remedies_api/cases/admin.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
null
null
null
from django.contrib import admin from security.models import OrganisationCaseRole from .models import ( Case, Submission, Sector, Product, SubmissionType, SubmissionStatus, CaseWorkflow, CaseStage, SubmissionDocument, CaseWorkflowState, ) class SectorAdmin(admin.ModelAdmin): ...
23.265823
77
0.762786
796d184c5e045777ffe9b1c6009fd6cb3d386f8f
6,439
py
Python
Section_6_BlueWhale/ml/rl/training/conv/cnn.py
PacktPublishing/Hands-On-Deep-Learning-with-Caffe2
0c9fd6beee481c95fea127c3190f8018d62669e0
[ "MIT" ]
7
2018-12-29T15:38:59.000Z
2021-11-08T13:10:36.000Z
Section_6_BlueWhale/ml/rl/training/conv/cnn.py
PacktPublishing/Hands-On-Deep-Learning-with-Caffe2
0c9fd6beee481c95fea127c3190f8018d62669e0
[ "MIT" ]
null
null
null
Section_6_BlueWhale/ml/rl/training/conv/cnn.py
PacktPublishing/Hands-On-Deep-Learning-with-Caffe2
0c9fd6beee481c95fea127c3190f8018d62669e0
[ "MIT" ]
2
2020-01-25T20:58:34.000Z
2020-08-01T10:44:49.000Z
#!/usr/bin/env python3 import math from typing import List, Optional import numpy as np from caffe2.python import brew, core, workspace from caffe2.python.model_helper import ModelHelper from ml.rl.custom_brew_helpers.conv import conv_explicit_param_names from ml.rl.thrift.core.ttypes import CNNParameters class CN...
35.772222
88
0.569654
796d18928835a497b25c210e9b02e22fea09fbe1
3,593
py
Python
stable/benchmarks/summary.py
julien-lange/qcover
8b4872f7533b75ce265ddfb7eb077e681169b89d
[ "Apache-2.0" ]
8
2016-10-06T14:06:45.000Z
2021-12-23T06:58:39.000Z
stable/benchmarks/summary.py
julien-lange/qcover
8b4872f7533b75ce265ddfb7eb077e681169b89d
[ "Apache-2.0" ]
null
null
null
stable/benchmarks/summary.py
julien-lange/qcover
8b4872f7533b75ce265ddfb7eb077e681169b89d
[ "Apache-2.0" ]
6
2017-08-23T15:02:53.000Z
2021-12-29T07:23:19.000Z
# Copyright 2017 Michael Blondin, Alain Finkel, Christoph Haase, Serge Haddad # 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 requir...
34.883495
108
0.617311
796d18c1e17f4378200e8539e762edea95c130c3
1,695
py
Python
ivi/agilent/agilentMSOX2012A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/agilent/agilentMSOX2012A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/agilent/agilentMSOX2012A.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2017 Alex Forencich 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...
37.666667
86
0.755162
796d1a8e8fc730241aa69b8c48c47bd3c828c264
492
py
Python
setup.py
LCAV/mklfft
c2d3901571fded09ea7394f30224fbb9b7352f26
[ "Unlicense" ]
1
2017-10-20T03:19:59.000Z
2017-10-20T03:19:59.000Z
setup.py
LCAV/mkl_fft
c2d3901571fded09ea7394f30224fbb9b7352f26
[ "Unlicense" ]
2
2017-01-21T23:16:29.000Z
2017-12-11T14:41:11.000Z
setup.py
LCAV/mklfft
c2d3901571fded09ea7394f30224fbb9b7352f26
[ "Unlicense" ]
5
2017-01-22T18:02:29.000Z
2019-01-27T10:33:31.000Z
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup setup(name='mkl_fft', version='1.0', description='A wrapper for Intel MKL FFT library.', author='Robin Scheibler, Ivan Dokmanic', author_email='robin.scheibler@epfl.ch', u...
23.428571
57
0.640244
796d1b9750aff24157e77461bc080d1a303c087d
2,312
py
Python
app/constants.py
mnadev/Muezzin
95f51ae4c3b64d2c49fe76d8bd599bec8471ac03
[ "MIT" ]
2
2020-11-30T01:29:33.000Z
2021-01-06T08:55:21.000Z
app/constants.py
mnadev/Muezzin
95f51ae4c3b64d2c49fe76d8bd599bec8471ac03
[ "MIT" ]
null
null
null
app/constants.py
mnadev/Muezzin
95f51ae4c3b64d2c49fe76d8bd599bec8471ac03
[ "MIT" ]
null
null
null
PRAYER_CALCULATION_JURISTIC_METHOD_STRINGS = [ "Jafari - Ithna Ashari", "Karachi - University of Islamic Sciences", "ISNA - Islamic Society of North America", "MWL - Muslim World League", "Mecca - Umm al-Qura", "Egyptian General Authority of Survey", "Custom Setting", "University of Tehr...
28.9
85
0.702855
796d1eaaaef483c5dc0e7bbe6498d10ae57b313b
69,018
py
Python
tests/build/virtualenv/lib/python2.7/site-packages/salt/client/__init__.py
codebergau/salt-formula-odoo9
c619a401505dec3df469e9f9a8f27026f444a660
[ "Apache-2.0" ]
null
null
null
tests/build/virtualenv/lib/python2.7/site-packages/salt/client/__init__.py
codebergau/salt-formula-odoo9
c619a401505dec3df469e9f9a8f27026f444a660
[ "Apache-2.0" ]
null
null
null
tests/build/virtualenv/lib/python2.7/site-packages/salt/client/__init__.py
codebergau/salt-formula-odoo9
c619a401505dec3df469e9f9a8f27026f444a660
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The client module is used to create a client connection to the publisher The data structure needs to be: {'enc': 'clear', 'load': {'fun': '<mod.callable>', 'arg':, ('arg1', 'arg2', ...), 'tgt': '<glob or id>', 'key': '<read in the key file>'...
36.692185
120
0.50384
796d1ebc878a5fd8d36cd899098fcfe067503316
2,963
py
Python
dags/s3/create_juso_db.py
molamolabbb/aws-mwaa-local-runner
557a29d10d07d0f267cb54b26bb2aacc5c4a8cf5
[ "MIT-0" ]
null
null
null
dags/s3/create_juso_db.py
molamolabbb/aws-mwaa-local-runner
557a29d10d07d0f267cb54b26bb2aacc5c4a8cf5
[ "MIT-0" ]
null
null
null
dags/s3/create_juso_db.py
molamolabbb/aws-mwaa-local-runner
557a29d10d07d0f267cb54b26bb2aacc5c4a8cf5
[ "MIT-0" ]
null
null
null
import boto3 import pandas as pd from io import StringIO def _process_en_row(row_str): """Processes a single row of a en address data file.""" comps = row_str.split('|') assert len(comps) == 18 return { 'city_name': comps[1], 'gu_name': comps[2], 'dong_name': comps[3], 'ri_name': comps[4], 'str...
38.986842
130
0.628417
796d1faa82b6bcc7ee2c2abfc4b982171ca9f297
9,096
py
Python
tests/integration/modules/test_groupadd.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_groupadd.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_groupadd.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import pytest import salt.utils.files import salt.utils.platform import salt.utils.stringutils from salt.ext import six from salt.ext.six.moves import range from tests.support.case import ModuleCase from tests.support.hel...
36.239044
88
0.616095
796d21141aca0143629b2460d0e6f970a4469776
2,330
py
Python
appscanner/reader.py
Thijsvanede/AppScanner
849117326d28cca2a3c40c6ac0e812d854ace8d4
[ "MIT" ]
13
2020-07-29T13:02:21.000Z
2021-09-30T15:07:36.000Z
appscanner/reader.py
dienthaipham103/AppScanner
849117326d28cca2a3c40c6ac0e812d854ace8d4
[ "MIT" ]
1
2021-04-06T01:10:48.000Z
2021-04-06T15:29:42.000Z
appscanner/reader.py
dienthaipham103/AppScanner
849117326d28cca2a3c40c6ac0e812d854ace8d4
[ "MIT" ]
7
2020-07-28T16:08:50.000Z
2021-09-27T19:58:14.000Z
from scapy.all import * import numpy as np import ipaddress class Reader(object): def __init__(self, verbose=False): """Reader object for reading packets from .pcap files. Parameters ---------- verbose : boolean, default=false If True, print which files...
31.486486
75
0.524034
796d21a7e2d9d0ba5788d98bb890108d428c6f68
2,214
py
Python
src/pycrawler/pycrawler/Store/NoSQL.py
princeedward/PyCrawler
f2cd3a2b79ef4e4bf5e69e89f617f73ad2e6ded2
[ "BSD-2-Clause" ]
5
2015-12-01T14:24:13.000Z
2020-01-08T04:35:29.000Z
src/pycrawler/pycrawler/Store/NoSQL.py
princeedward/PyCrawler
f2cd3a2b79ef4e4bf5e69e89f617f73ad2e6ded2
[ "BSD-2-Clause" ]
null
null
null
src/pycrawler/pycrawler/Store/NoSQL.py
princeedward/PyCrawler
f2cd3a2b79ef4e4bf5e69e89f617f73ad2e6ded2
[ "BSD-2-Clause" ]
5
2015-12-11T18:48:48.000Z
2022-03-30T06:24:59.000Z
from dbBDB import dbBDB from dbRedis import dbRedis import cPickle as pk class NoSQL: '''May need to synchronized on _db_instance for concurrent writing ''' def __init__(self, dbtype="bdb", param={}): self._db_instance = None if dbtype == "bdb": if "path" in param: ...
28.384615
80
0.620145
796d21e5917fcba0ac1233e18eea7dcf456d76d2
1,919
py
Python
panoptic/pcv/pcv_basic.py
pradeep-vishnu/pcv
b88e706f8c7a8649b29ea848ba8c7fbb5dfde359
[ "MIT" ]
23
2020-06-16T06:59:36.000Z
2022-03-23T04:17:03.000Z
panoptic/pcv/pcv_basic.py
pradeep-vishnu/pcv
b88e706f8c7a8649b29ea848ba8c7fbb5dfde359
[ "MIT" ]
2
2022-03-04T16:20:44.000Z
2022-03-22T06:53:53.000Z
panoptic/pcv/pcv_basic.py
pradeep-vishnu/pcv
b88e706f8c7a8649b29ea848ba8c7fbb5dfde359
[ "MIT" ]
3
2021-04-23T01:06:04.000Z
2022-03-04T14:30:42.000Z
from .pcv import PCV_base from .components.snake import Snake from .components.ballot import Ballot from .components.grid_specs import specs from .inference.mask_from_vote import MaskFromVote, MFV_CatSeparate from .. import cfg class PCV_Basic(PCV_base): def __init__(self): spec = specs[cfg.pcv.grid_inx]...
31.983333
79
0.686295
796d21f0a8dede8975bf4904f830a1731cebc1ab
3,127
py
Python
test/test_investment/test_calculate_npv2.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
18
2019-01-18T21:41:49.000Z
2022-02-14T15:49:40.000Z
test/test_investment/test_calculate_npv2.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
40
2020-01-28T22:37:53.000Z
2022-03-12T01:00:07.000Z
test/test_investment/test_calculate_npv2.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
3
2020-08-03T16:45:54.000Z
2021-08-04T07:45:16.000Z
import logging logger = logging.getLogger(__name__) from elecsim.plants.plant_costs.estimate_costs.estimate_costs import create_power_plant # from elecsim.role.investment.calculate_npv_2 import CalculateNPV import pytest from unittest.mock import Mock import pandas as pd from elecsim.constants import ROOT_DIR """ File...
45.985294
490
0.666773
796d21fce57e89a1e42d831f5657733ed73d9a45
1,569
py
Python
reagent/net_builder/categorical_dqn/categorical.py
alexnikulkov/ReAgent
e404c5772ea4118105c2eb136ca96ad5ca8e01db
[ "BSD-3-Clause" ]
1
2021-05-03T15:18:58.000Z
2021-05-03T15:18:58.000Z
reagent/net_builder/categorical_dqn/categorical.py
alexnikulkov/ReAgent
e404c5772ea4118105c2eb136ca96ad5ca8e01db
[ "BSD-3-Clause" ]
null
null
null
reagent/net_builder/categorical_dqn/categorical.py
alexnikulkov/ReAgent
e404c5772ea4118105c2eb136ca96ad5ca8e01db
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from typing import List from reagent.core.dataclasses import dataclass, field from reagent.models.base import ModelBase from reagent.models.categorical_dqn import CategoricalDQN from reagent.models.dqn import FullyConnectedDQN from reagent.net_builder.categorical_dqn_net_builder import Categori...
32.6875
84
0.680688
796d22027806e708259ee460f664566ded05b5af
16,335
py
Python
allennlp/modules/elmo_lstm.py
LiyuanLucasLiu/allennlp
da81516cbe78b58c2f2a3a9e56ef2526bd72fb9f
[ "Apache-2.0" ]
null
null
null
allennlp/modules/elmo_lstm.py
LiyuanLucasLiu/allennlp
da81516cbe78b58c2f2a3a9e56ef2526bd72fb9f
[ "Apache-2.0" ]
null
null
null
allennlp/modules/elmo_lstm.py
LiyuanLucasLiu/allennlp
da81516cbe78b58c2f2a3a9e56ef2526bd72fb9f
[ "Apache-2.0" ]
null
null
null
""" A stacked bidirectional LSTM with skip connections between layers. """ from typing import Optional, Tuple, List import warnings import torch from torch.nn.utils.rnn import PackedSequence, pad_packed_sequence with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=FutureWarning) import h5...
53.733553
113
0.586287
796d2527dc986a07ba0b19f4b21a134fcb544b98
928
py
Python
seviceLayer/SaveUserService.py
behrad-kzm/ClubHouseFollowers
b22c5cd2d53aa72506247726a86d4d027d267091
[ "MIT" ]
1
2021-05-07T13:07:47.000Z
2021-05-07T13:07:47.000Z
seviceLayer/SaveUserService.py
behrad-kzm/ClubHouseFollowers
b22c5cd2d53aa72506247726a86d4d027d267091
[ "MIT" ]
2
2021-05-07T12:58:34.000Z
2021-06-12T22:17:07.000Z
seviceLayer/SaveUserService.py
behrad-kzm/ClubHouseFollowers
b22c5cd2d53aa72506247726a86d4d027d267091
[ "MIT" ]
2
2021-04-22T08:20:28.000Z
2022-01-11T01:13:29.000Z
from seviceLayer.Managers.AuthorizationManager import AuthorizationManager from repository.SaveUserRepository import SaveUserRepository from Domain.models.SaveUserDomainModel import SaveUserDomainModel class SaveUserService: repository: SaveUserRepository auth: AuthorizationManager def __init__(self, rep...
35.692308
103
0.699353
796d2662f5d35d4513430209e5a1cbe0c4dd6ce1
17,281
py
Python
cirq/sim/sparse_simulator.py
tai271828/Cirq
d75467def0430c8400fb90618d717744f1f1665d
[ "Apache-2.0" ]
null
null
null
cirq/sim/sparse_simulator.py
tai271828/Cirq
d75467def0430c8400fb90618d717744f1f1665d
[ "Apache-2.0" ]
null
null
null
cirq/sim/sparse_simulator.py
tai271828/Cirq
d75467def0430c8400fb90618d717744f1f1665d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 agreed to in ...
46.329759
80
0.613217