hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5ccb9fff1d6a3ae928549f372ca11579cc68d4c1
15,612
py
Python
copy_move_detection/image_object.py
blue-j/image-copy-move-detection
dce60e042de25fd2105d052618ce6f6fd63a30a6
[ "MIT" ]
null
null
null
copy_move_detection/image_object.py
blue-j/image-copy-move-detection
dce60e042de25fd2105d052618ce6f6fd63a30a6
[ "MIT" ]
null
null
null
copy_move_detection/image_object.py
blue-j/image-copy-move-detection
dce60e042de25fd2105d052618ce6f6fd63a30a6
[ "MIT" ]
null
null
null
import copy_move_detection.container import copy_move_detection.block from PIL import Image import imageio import tqdm import numpy as np import math import time class ImageObject(object): """ Object to contains a single image, then detects a fraud in it """ def __init__(self, input_path, image_nam...
52.389262
134
0.577825
1ce2ea0461d9876aaa397071ee8f3daec32973da
7,663
py
Python
sdk/python/pulumi_azure_nextgen/relay/get_wcf_relay.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/relay/get_wcf_relay.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/relay/get_wcf_relay.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables __al...
38.315
268
0.663448
6ed86ee3aa6ca128194be0e2abdbba85870ce8f6
62
py
Python
ex047.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
ex047.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
ex047.py
favitoria/python123
99074c309b700f48ddc6aa0811a1891145281af7
[ "MIT" ]
null
null
null
for c in range(2, 51, 2): if c % 2 == 0: print(c)
15.5
25
0.419355
f3a358cca62c126aef9b7654fe4260a0866e4a3d
3,064
py
Python
test2/routes3/streaming.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
4
2017-11-30T10:23:12.000Z
2020-06-07T01:05:12.000Z
test2/routes3/streaming.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
null
null
null
test2/routes3/streaming.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
1
2017-12-14T17:11:05.000Z
2017-12-14T17:11:05.000Z
import datetime import json import time from collections import OrderedDict from RAMLFlask.rsp_element import Response_Element from test2.generated.generated_routes import Streaming from flask import request class Streaming(): class Get(Streaming.Get_Base): def add_validate_params_handler(self, cust_reques...
25.322314
138
0.579961
93727deb15e108f3d2dfca56426e5cdae95a5830
2,459
py
Python
scripts/tcp_client.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/tcp_client.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/tcp_client.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
1
2019-06-18T02:30:45.000Z
2019-06-18T02:30:45.000Z
import socket import threading import time from message import MatrixMessage from thread_ex import ThreadPool class TcpClient: def __init__(self, server_ip, server_port, msg): self.addr = (server_ip, server_port) self.skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.skt.settime...
25.091837
116
0.540464
ae17bc55266f4d38f2473f03ce3ef2d5e41c6d6e
1,560
py
Python
userboard/migrations/0001_initial.py
fdardenne/StudHours
0c44d9e30c1c95c4ccefa77bdadb1402b4466a8b
[ "MIT" ]
null
null
null
userboard/migrations/0001_initial.py
fdardenne/StudHours
0c44d9e30c1c95c4ccefa77bdadb1402b4466a8b
[ "MIT" ]
null
null
null
userboard/migrations/0001_initial.py
fdardenne/StudHours
0c44d9e30c1c95c4ccefa77bdadb1402b4466a8b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-07-12 23:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
39
118
0.614103
f1093ef0f82e6ec372802aae997008e985fbe04e
2,536
py
Python
patch/core.py
Helveg/patch
e95629aab0d42241954a09e56de23ff76bb37992
[ "MIT" ]
2
2020-06-29T12:28:18.000Z
2021-03-19T16:13:38.000Z
patch/core.py
Helveg/patch
e95629aab0d42241954a09e56de23ff76bb37992
[ "MIT" ]
40
2019-12-18T13:52:04.000Z
2022-03-28T18:28:52.000Z
patch/core.py
Helveg/patch
e95629aab0d42241954a09e56de23ff76bb37992
[ "MIT" ]
1
2020-02-12T14:31:28.000Z
2020-02-12T14:31:28.000Z
from contextlib import contextmanager from .exceptions import * import os, sys def transform(obj): """ Transform an object to its NEURON representation, if the ``__neuron__`` magic method is present. """ if hasattr(obj, "__neuron__"): return obj.__neuron__() return obj def transform_...
27.565217
90
0.643927
e540ace61c9b20fe0d308cb4f81cebfa1647b90f
800
py
Python
cid/models/ensemble.py
martius-lab/cid-in-rl
005074a82e5cb26dff2a44bab3546af24cc57c2c
[ "MIT" ]
13
2021-12-07T17:52:37.000Z
2022-03-17T03:00:09.000Z
cid/models/ensemble.py
martius-lab/cid-in-rl
005074a82e5cb26dff2a44bab3546af24cc57c2c
[ "MIT" ]
2
2021-11-27T09:01:23.000Z
2022-03-22T09:51:56.000Z
cid/models/ensemble.py
martius-lab/cid-in-rl
005074a82e5cb26dff2a44bab3546af24cc57c2c
[ "MIT" ]
null
null
null
import gin import torch from torch import nn @gin.configurable(blacklist=['inp_dim', 'outp_dim']) class Ensemble(nn.Module): def __init__(self, inp_dim, outp_dim, model_cls, n_models): super().__init__() self._models = nn.ModuleList() for _ in range(n_models): self._models.app...
27.586207
78
0.62375
5a8022ba1fd4d0e57a2b2b03f806f189891055ce
539
py
Python
is_valid/is_set_of.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
4
2017-10-11T14:04:35.000Z
2019-03-29T08:38:09.000Z
is_valid/is_set_of.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
1
2017-11-27T14:43:19.000Z
2018-01-14T15:05:38.000Z
is_valid/is_set_of.py
Daanvdk/is_valid
615c5ae1999095cba398af6ae041a472769857f8
[ "MIT" ]
1
2021-06-05T18:06:49.000Z
2021-06-05T18:06:49.000Z
from .explanation import Explanation from .is_iterable_of import is_iterable_of from .is_set import is_set class is_set_of(is_iterable_of): prerequisites = [is_set] def _evaluate_explain(self, data, context): data = list(data) explanation = super()._evaluate_explain(data, context) re...
28.368421
65
0.658627
9e474bf97a9a72f61cb387b3488a8683705169a5
4,015
py
Python
google/ads/google_ads/v6/proto/services/combined_audience_service_pb2_grpc.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/services/combined_audience_service_pb2_grpc.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/combined_audience_service_pb2_grpc.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.ads.google_ads.v6.proto.resources import combined_audience_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_combined__audience__pb...
48.373494
177
0.759153
305779a5141e22b895c83d94f246876215f8693c
306
py
Python
sr/tables/_concepts_NDC.py
scaramallion/pydicom-data-sr
02be6f59b973c15e3aa35ce5233bed0f3175c17b
[ "MIT" ]
3
2021-06-15T06:04:23.000Z
2021-08-13T00:28:15.000Z
sr/tables/_concepts_NDC.py
scaramallion/pydicom-data-sr
02be6f59b973c15e3aa35ce5233bed0f3175c17b
[ "MIT" ]
4
2021-06-17T07:32:06.000Z
2021-09-19T22:55:02.000Z
sr/tables/_concepts_NDC.py
scaramallion/pydicom-data-sr
02be6f59b973c15e3aa35ce5233bed0f3175c17b
[ "MIT" ]
1
2021-06-15T05:47:01.000Z
2021-06-15T05:47:01.000Z
# Auto-generated by pydicom-data-sr # -*- coding: utf-8 -*- from typing import Dict, List, Tuple concepts_NDC: Dict[str, Dict[str, Tuple[str, List[int]]]] = { "Definity": { "11994-011-04": ("Definity", [12030]), }, "Optison": { "0407-2707-03": ("Optison", [12030]), }, }
20.4
61
0.54902
b1e0de1abc1940480732b5974314d92eefa407a4
5,516
py
Python
test/spreadsheet_test.py
wbrp/hyou
f6129b2eae77b1e48295a63aeb3f7c173062e974
[ "Apache-2.0" ]
null
null
null
test/spreadsheet_test.py
wbrp/hyou
f6129b2eae77b1e48295a63aeb3f7c173062e974
[ "Apache-2.0" ]
24
2017-07-24T07:44:33.000Z
2022-02-04T12:05:38.000Z
test/spreadsheet_test.py
wbrp/hyou
f6129b2eae77b1e48295a63aeb3f7c173062e974
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.228916
77
0.677846
6eb3eb8f32b2d4f7e6cc69dc30e895db3b698250
9,570
py
Python
autotest/full_meal_deal_tests.py
aelwan/pyemu
482cedeb637982e6bd5fc45babd9c95922d90dd2
[ "BSD-3-Clause" ]
1
2019-12-04T12:42:47.000Z
2019-12-04T12:42:47.000Z
autotest/full_meal_deal_tests.py
aelwan/pyemu
482cedeb637982e6bd5fc45babd9c95922d90dd2
[ "BSD-3-Clause" ]
null
null
null
autotest/full_meal_deal_tests.py
aelwan/pyemu
482cedeb637982e6bd5fc45babd9c95922d90dd2
[ "BSD-3-Clause" ]
null
null
null
import os import platform ext = '' bin_path = os.path.join("..","..","bin") if "linux" in platform.platform().lower(): bin_path = os.path.join(bin_path,"linux") elif "darwin" in platform.platform().lower(): bin_path = os.path.join(bin_path,"mac") else: bin_path = os.path.join(bin_path,"win") ext = '.ex...
39.382716
105
0.599687
8833c8874cb0fb9c30665d24e5fc86894d76c784
108,575
py
Python
electrum_ltc/lnworker.py
pooler/electrum-ltc
a3b392d0c15a3c1df3733af10e67c84beb9590c5
[ "MIT" ]
196
2015-02-17T14:26:43.000Z
2022-03-23T09:58:16.000Z
electrum_ltc/lnworker.py
pooler/electrum-ltc
a3b392d0c15a3c1df3733af10e67c84beb9590c5
[ "MIT" ]
258
2015-01-30T12:06:32.000Z
2022-03-25T21:32:01.000Z
electrum_ltc/lnworker.py
pooler/electrum-ltc
a3b392d0c15a3c1df3733af10e67c84beb9590c5
[ "MIT" ]
154
2015-01-17T07:27:59.000Z
2022-03-18T01:31:53.000Z
# Copyright (C) 2018 The Electrum developers # Distributed under the MIT software license, see the accompanying # file LICENCE or http://www.opensource.org/licenses/mit-license.php import asyncio import os from decimal import Decimal import random import time from typing import (Optional, Sequence, Tuple, List, Set, D...
48.234118
174
0.627649
79d7ddc4c8d314e8f04700c13b93724f6328c233
1,510
py
Python
pybrain/rl/learners/valuebased/valuebased.py
rueckstiess/pybrain
8fc950d700aaf9d5012911d53714afb4b18225c3
[ "BSD-3-Clause" ]
3
2015-03-21T21:42:28.000Z
2018-07-12T04:21:32.000Z
pybrain/rl/learners/valuebased/valuebased.py
rueckstiess/pybrain
8fc950d700aaf9d5012911d53714afb4b18225c3
[ "BSD-3-Clause" ]
null
null
null
pybrain/rl/learners/valuebased/valuebased.py
rueckstiess/pybrain
8fc950d700aaf9d5012911d53714afb4b18225c3
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de' from pybrain.rl.learners.learner import ExploringLearner, DataSetLearner, EpisodicLearner from pybrain.rl.explorers.discrete.egreedy import EpsilonGreedyExplorer class ValueBasedLearner(ExploringLearner, DataSetLearner, EpisodicLearner): """ An RL algo...
31.458333
90
0.638411
60d5fe29b8e14f12ee1e0b04175e898e3ca9023e
4,180
py
Python
graph_objs/scattercarpet/_stream.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattercarpet/_stream.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattercarpet/_stream.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.stream" _valid_props = {"maxpoints", "token"} ...
29.43662
82
0.543301
412acc00e10f92c02fbcd4616fd7088ed4c7fa8e
20,841
py
Python
python/soft_decoder_c.py
kicksat/gr-sprite
c1de1764dee083b8daa9eff44cccac0ba2e34114
[ "MIT" ]
4
2019-03-22T21:23:43.000Z
2019-07-28T06:31:20.000Z
python/soft_decoder_c.py
kicksat/gr-sprite
c1de1764dee083b8daa9eff44cccac0ba2e34114
[ "MIT" ]
null
null
null
python/soft_decoder_c.py
kicksat/gr-sprite
c1de1764dee083b8daa9eff44cccac0ba2e34114
[ "MIT" ]
1
2022-02-23T01:20:48.000Z
2022-02-23T01:20:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2015 Zac Manchester. # # This 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 3, or (at your option) # any later version. # # This ...
61.477876
149
0.277674
ddb49a4634ce9098fca680a296cc68b9c3616275
6,216
py
Python
train_wavernn.py
PandoraLS/WaveRNN-1
d90133d0c306009010b9b7dc7ae3ebc7e43d5907
[ "MIT" ]
null
null
null
train_wavernn.py
PandoraLS/WaveRNN-1
d90133d0c306009010b9b7dc7ae3ebc7e43d5907
[ "MIT" ]
null
null
null
train_wavernn.py
PandoraLS/WaveRNN-1
d90133d0c306009010b9b7dc7ae3ebc7e43d5907
[ "MIT" ]
null
null
null
import time import numpy as np import torch from torch import optim import torch.nn.functional as F from utils.display import stream, simple_table from utils.dataset import get_vocoder_datasets from utils.distribution import discretized_mix_logistic_loss from utils import hparams as hp from models.fatchord_version impo...
37.902439
137
0.62323
01287b3d875204b399c06ceff73f276a20ee69cc
115
py
Python
can/can_define.py
mcklyde/opendbc
69d245957663b489dc89236c6a85ad09149e44dd
[ "MIT" ]
null
null
null
can/can_define.py
mcklyde/opendbc
69d245957663b489dc89236c6a85ad09149e44dd
[ "MIT" ]
null
null
null
can/can_define.py
mcklyde/opendbc
69d245957663b489dc89236c6a85ad09149e44dd
[ "MIT" ]
null
null
null
from opendbc.can.parser_pyx import CANDefine # pylint: disable=no-name-in-module, import-error assert CANDefine
38.333333
96
0.8
785c0be3de77b86f8dbef9758105eab0dd69aee9
2,074
py
Python
chapter10/kmeans_newsgroups.py
arifmudi/Python-Machine-Learning-By-Example-Third-Edition
7bdc45df2b519e3c0a929b03f0ac6fe30e028382
[ "MIT" ]
49
2020-03-21T08:37:46.000Z
2022-02-01T12:48:23.000Z
chapter10/kmeans_newsgroups.py
hmoharrer/Python-Machine-Learning-By-Example-Third-Edition
7bdc45df2b519e3c0a929b03f0ac6fe30e028382
[ "MIT" ]
2
2021-03-28T17:25:57.000Z
2021-04-05T18:14:55.000Z
chapter10/kmeans_newsgroups.py
hmoharrer/Python-Machine-Learning-By-Example-Third-Edition
7bdc45df2b519e3c0a929b03f0ac6fe30e028382
[ "MIT" ]
40
2020-05-02T18:30:00.000Z
2022-02-27T09:15:16.000Z
''' Source codes for Python Machine Learning By Example 3rd Edition (Packt Publishing) Chapter 10 Discovering Underlying Topics in the Newsgroups Dataset with Clustering and Topic Modeling Author: Yuxi (Hayden) Liu (yuxi.liu.ece@gmail.com) ''' from sklearn.datasets import fetch_20newsgroups categories = [ 'alt....
25.292683
122
0.740598
7ae89e740ef95ab03c65c96a41d25cbecd7e886b
313
py
Python
src/loss.py
huyhoang17/Vietnamese_Handwriting_Recognition
4d0288233ed863b305b42600da089e7593018da0
[ "MIT" ]
31
2019-03-16T09:30:19.000Z
2021-12-25T14:19:21.000Z
src/loss.py
SamuelNguyen1998/Vietnamese_Handwriting_Recognition
7669a14e9576c7622a207cbd18b2eb4e3478a701
[ "MIT" ]
6
2018-12-03T04:58:18.000Z
2020-08-24T15:40:20.000Z
src/loss.py
SamuelNguyen1998/Vietnamese_Handwriting_Recognition
7669a14e9576c7622a207cbd18b2eb4e3478a701
[ "MIT" ]
14
2018-10-30T04:44:24.000Z
2020-11-02T02:33:22.000Z
from keras import backend as K def ctc_lambda_func(args): y_pred, labels, input_length, label_length = args # the 2 is critical here since the first couple outputs of the RNN # tend to be garbage: y_pred = y_pred[:, 2:, :] return K.ctc_batch_cost(labels, y_pred, input_length, label_length)
31.3
71
0.715655
eca1e0cb7464b47dc35c52ec22b5335a8a1d9207
5,430
py
Python
src/cfnlint/rules/parameters/Default.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
null
null
null
src/cfnlint/rules/parameters/Default.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-04-15T16:36:10.000Z
2020-04-15T16:36:10.000Z
src/cfnlint/rules/parameters/Default.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-01-05T01:05:55.000Z
2020-01-05T01:05:55.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import re import six from cfnlint.rules import CloudFormationLintRule from cfnlint.rules import RuleMatch class Default(CloudFormationLintRule): """Check if Parameters are configured correctly""" id ...
36.938776
124
0.560221
0252d1e47a290ccc5586889e691ba94c0bbc9733
91
py
Python
ab/src/aruco_hand_eye/__init__.py
tku-iarc/wrs2020
a19d1106206e65f9565fa68ad91887e722d30eff
[ "MIT" ]
3
2020-02-17T12:56:22.000Z
2020-09-30T11:17:03.000Z
ab/src/aruco_hand_eye/__init__.py
tku-iarc/wrs2020
a19d1106206e65f9565fa68ad91887e722d30eff
[ "MIT" ]
2
2020-02-17T15:17:43.000Z
2021-05-11T21:01:26.000Z
ab/src/aruco_hand_eye/__init__.py
tku-iarc/wrs2020
a19d1106206e65f9565fa68ad91887e722d30eff
[ "MIT" ]
8
2020-02-17T12:55:59.000Z
2021-07-22T12:24:15.000Z
from .hand_eye_connector import HandEyeConnector from .MarkerPosture import MarkerPosture
22.75
48
0.879121
7a0f5f738406bf51bc5a9b8993d488c3148f9837
7,296
py
Python
memory/profiler/serialize.py
Hengle/MemoryProfiler
ed0a3a7593bc2b15e6bf305e14b0012c752873de
[ "MIT" ]
184
2019-05-11T10:42:57.000Z
2022-03-18T11:43:47.000Z
memory/profiler/serialize.py
zhouxingchi999/MemoryProfiler
6566c35f0f186542b1fb606a9c7294ca01a76c2e
[ "MIT" ]
5
2019-05-31T06:47:28.000Z
2020-12-30T06:25:05.000Z
memory/profiler/serialize.py
larryhou/MemoryProfiler
b8babea897c934573e7f4cb045c6169b7b3a1529
[ "MIT" ]
48
2019-05-14T06:08:55.000Z
2022-03-07T16:05:24.000Z
from .stream import MemoryStream from .core import * from .perf import TimeSampler import time, uuid class NativeMemoryRef(object): def __init__(self, address:int, stream:MemoryStream, offset:int, length:int): self.__stream = stream self.__offset = offset self.__length = length self...
43.171598
149
0.618421
84310739b40483f8319c293ab9772a683e2867c5
2,838
py
Python
src/tl_gan/script_generation_interactive_original.py
Asap7772/DeepCriminalize
c171c6ce6e87e126e6e2b0ed1d9709ee7d0ce667
[ "MIT" ]
1
2019-10-28T02:40:07.000Z
2019-10-28T02:40:07.000Z
src/tl_gan/script_generation_interactive_original.py
Asap7772/DeepCriminalize
c171c6ce6e87e126e6e2b0ed1d9709ee7d0ce667
[ "MIT" ]
16
2020-01-28T23:05:09.000Z
2022-02-27T03:02:38.000Z
src/tl_gan/script_generation_interactive_original.py
Asap7772/DeepCriminalize
c171c6ce6e87e126e6e2b0ed1d9709ee7d0ce667
[ "MIT" ]
null
null
null
""" generation of images interactively with ui control """ import os from pathlib import Path import glob import sys import PIL from PIL import Image import json import numpy as np import pickle import tensorflow as tf import src.tl_gan.feature_axis as feature_axis """ location to save images """ path_gan_explore_i...
28.666667
142
0.750881
935880627b26a1c0451a43b833ce45b38e2bcb40
709
py
Python
common/setup.py
RehanSD/determined
693ded3b09602f0682f95e5e6ca0aa8650dbfdeb
[ "Apache-2.0" ]
null
null
null
common/setup.py
RehanSD/determined
693ded3b09602f0682f95e5e6ca0aa8650dbfdeb
[ "Apache-2.0" ]
null
null
null
common/setup.py
RehanSD/determined
693ded3b09602f0682f95e5e6ca0aa8650dbfdeb
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup setup( name="determined-common", version="0.17.0.dev0", author="Determined AI", author_email="hello@determined.ai", url="https://determined.ai/", description="Determined Deep Learning Training Platform", long_description="See https://docs.determin...
33.761905
81
0.664316
2736cc5718114a9b28df70b77de669f39f4bfa0a
13,549
py
Python
assertions/utils.py
DMTF/Redfish-Protocol-Validator
657aae079d5e490c4196ef50d64d5fa9d86cd584
[ "FSFAP" ]
2
2020-10-01T15:30:13.000Z
2022-03-02T18:38:51.000Z
assertions/utils.py
DMTF/Redfish-Protocol-Validator
657aae079d5e490c4196ef50d64d5fa9d86cd584
[ "FSFAP" ]
34
2020-09-29T14:54:57.000Z
2022-03-22T12:43:57.000Z
assertions/utils.py
DMTF/Redfish-Protocol-Validator
657aae079d5e490c4196ef50d64d5fa9d86cd584
[ "FSFAP" ]
3
2020-07-24T15:17:57.000Z
2021-03-31T02:37:33.000Z
# Copyright Notice: # Copyright 2020 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: # https://github.com/DMTF/Redfish-Protocol-Validator/blob/master/LICENSE.md import http.client import io import logging import math import re import socket import time from collections import na...
33.537129
79
0.61296
66e3c544df199218fe682d78452aba031e67c6f6
3,008
py
Python
web/server/server/settings/base.py
priyankcommits/rss_aggregator
59a80530d13b4a85a5a712e99618c9dc41c5eac5
[ "MIT" ]
null
null
null
web/server/server/settings/base.py
priyankcommits/rss_aggregator
59a80530d13b4a85a5a712e99618c9dc41c5eac5
[ "MIT" ]
null
null
null
web/server/server/settings/base.py
priyankcommits/rss_aggregator
59a80530d13b4a85a5a712e99618c9dc41c5eac5
[ "MIT" ]
1
2020-06-16T00:35:35.000Z
2020-06-16T00:35:35.000Z
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'e7pok(8kajvnxcyr*-%d8y_=0**-@ayxvhff$lgm50y*nac@qy' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessi...
26.156522
91
0.649269
a25dc561da7db0da39c70f2e25190842882da452
4,383
py
Python
sympy/sets/handlers/union.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
null
null
null
sympy/sets/handlers/union.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
null
null
null
sympy/sets/handlers/union.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
1
2020-02-06T17:54:20.000Z
2020-02-06T17:54:20.000Z
from sympy import (Interval, Intersection, Set, EmptySet, S, sympify, FiniteSet, Union, ComplexRegion, ProductSet) from sympy.multipledispatch import dispatch from sympy.sets.fancysets import (Naturals, Naturals0, Integers, Rationals, Reals) from sympy.sets.sets impo...
30.4375
79
0.605749
1e5795951ca1a6c40652c41674d16466ae8d5bd0
1,070
py
Python
google-cloud-datastream-v1alpha1/synth.py
olavloite/google-cloud-ruby
d6e3b6306c6f942ff927a90a1226ed5a6954738d
[ "Apache-2.0" ]
null
null
null
google-cloud-datastream-v1alpha1/synth.py
olavloite/google-cloud-ruby
d6e3b6306c6f942ff927a90a1226ed5a6954738d
[ "Apache-2.0" ]
null
null
null
google-cloud-datastream-v1alpha1/synth.py
olavloite/google-cloud-ruby
d6e3b6306c6f942ff927a90a1226ed5a6954738d
[ "Apache-2.0" ]
null
null
null
# 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...
33.4375
92
0.768224
07651d982a57f52c7dc0fe0330ded47d9abf6a5f
5,478
py
Python
homeassistant/components/netatmo/const.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
5
2017-01-26T16:33:09.000Z
2018-07-20T13:50:47.000Z
homeassistant/components/netatmo/const.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
66
2020-08-05T07:21:39.000Z
2022-03-31T06:02:16.000Z
homeassistant/components/netatmo/const.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
2
2022-01-10T18:08:10.000Z
2022-01-21T19:42:34.000Z
"""Constants used by the Netatmo component.""" from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.select import DOMAIN as SELECT_DOMAIN f...
30.775281
87
0.792808
b9538155b8007322a95e1874cc8aa8f33d7e2c39
5,154
py
Python
python_tests/Classes/Merit/Blockchain.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
python_tests/Classes/Merit/Blockchain.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
python_tests/Classes/Merit/Blockchain.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
#Types. from typing import Dict, List, Any #BlockHeader, BlockBody, and Block classes. from python_tests.Classes.Merit.BlockHeader import BlockHeader from python_tests.Classes.Merit.BlockBody import BlockBody from python_tests.Classes.Merit.Block import Block #Blockchain class. class Blockchain: #Constructor. ...
33.907895
111
0.533566
dc98fbc96558440cee8abcafb868eb143ba34f27
11,336
py
Python
Incident-Response/Tools/grr/grr/client_builder/grr_response_client_builder/repackers/windows.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/client_builder/grr_response_client_builder/repackers/windows.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/client_builder/grr_response_client_builder/repackers/windows.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python """Windows client repackers.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import logging import os import struct import zipfile from google.protobuf import text_format from fleet...
37.167213
106
0.705099
8d8f564e5254a2e806d2d6fa3fa76507fe2f9750
2,059
py
Python
onmt/models/stacked_rnn.py
Linohong/OpenNMT_dialog
4a9e598afca780723d354d599815c320706af937
[ "MIT" ]
36
2020-05-04T13:53:30.000Z
2022-03-22T09:42:53.000Z
onmt/models/stacked_rnn.py
Linohong/OpenNMT_dialog
4a9e598afca780723d354d599815c320706af937
[ "MIT" ]
3
2020-11-06T02:07:03.000Z
2022-03-11T21:35:57.000Z
onmt/models/stacked_rnn.py
Linohong/OpenNMT_dialog
4a9e598afca780723d354d599815c320706af937
[ "MIT" ]
7
2020-07-29T06:06:07.000Z
2021-05-20T04:25:11.000Z
""" Implementation of ONMT RNN for Input Feeding Decoding """ import torch import torch.nn as nn class StackedLSTM(nn.Module): """ Our own implementation of stacked LSTM. Needed for the decoder, because we do input feeding. """ def __init__(self, num_layers, input_size, rnn_size, dropo...
31.19697
67
0.572608
f70354f7311915d757b4bd5757b16caa8a12167e
255
py
Python
labs/Topic05-data_structures/lab5_02_summer_months.py
danielmccallion/pands-problems
738c45072f22b2511a5d8fefba8fce2482a1a8cb
[ "MIT" ]
null
null
null
labs/Topic05-data_structures/lab5_02_summer_months.py
danielmccallion/pands-problems
738c45072f22b2511a5d8fefba8fce2482a1a8cb
[ "MIT" ]
null
null
null
labs/Topic05-data_structures/lab5_02_summer_months.py
danielmccallion/pands-problems
738c45072f22b2511a5d8fefba8fce2482a1a8cb
[ "MIT" ]
null
null
null
# Daniel Mc Callion # This program prints the summer months months = ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") summer = months[4:7] for month in summer: print(month)
12.142857
39
0.654902
81e165dcdee6e8e7f9a439cb75ad0b3276e8583c
381
py
Python
src/connection.py
AveCaesarMorituriTeSalutant/BAT_CORE
5e8acc60ff4871d42070e30cb6c6f4102660cd29
[ "MIT" ]
10
2020-12-10T09:40:08.000Z
2022-02-23T04:38:31.000Z
src/connection.py
AveCaesarMorituriTeSalutant/BAT_CORE
5e8acc60ff4871d42070e30cb6c6f4102660cd29
[ "MIT" ]
null
null
null
src/connection.py
AveCaesarMorituriTeSalutant/BAT_CORE
5e8acc60ff4871d42070e30cb6c6f4102660cd29
[ "MIT" ]
3
2021-04-12T14:43:30.000Z
2021-05-31T07:47:43.000Z
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning def get(url, redirects=True, user_agent='bat', insecure=True): if not insecure: requests.packages.urllib3.disable_warnings(InsecureRequestWarning) headers = {'user-agent': user_agent} return requests.get(url, ...
34.636364
89
0.782152
f6946f87d381cc3349dc4ce7455286be6d084582
3,484
py
Python
packages/qsmstoken/qsmstoken/clients/aliyunsms/api_sdk/aliyun-python-sdk-core/aliyunsdkcore/http/http_request.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
12
2020-02-01T01:52:01.000Z
2021-04-28T15:06:43.000Z
packages/qsmstoken/qsmstoken/clients/aliyunsms/api_sdk/aliyun-python-sdk-core/aliyunsdkcore/http/http_request.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
5
2020-02-06T08:07:58.000Z
2020-06-02T13:03:45.000Z
packages/qsmstoken/qsmstoken/clients/aliyunsms/api_sdk/aliyun-python-sdk-core/aliyunsdkcore/http/http_request.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
11
2020-02-03T13:07:46.000Z
2020-11-29T01:44:06.000Z
from __future__ import absolute_import # 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, ...
28.325203
71
0.66504
8422506a1ea58c261bdbf650b25a90c050506b7d
4,689
py
Python
wavefront_api_client/models/response_container_message.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/response_container_message.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/response_container_message.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
31.05298
409
0.605246
add56ab9701507e7b6c2355470741219fbc96e83
6,060
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/barbican/cmd/pkcs11_kek_rewrap.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/cmd/pkcs11_kek_rewrap.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/barbican/cmd/pkcs11_kek_rewrap.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
#!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.287425
79
0.624587
1f9c8da9737790289e2e0b66deb726d065351ac4
4,489
py
Python
curvox/mesh_conversions.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
curvox/mesh_conversions.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
curvox/mesh_conversions.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
import shape_msgs.msg import numpy import plyfile import geometry_msgs.msg import std_msgs.msg import copy import collada import sensor_msgs.point_cloud2 import numpy as np def mesh_msg_to_dae(mesh_msg): """ Converts a ROS mesh into a collada object which can be then written to a file :type mesh_msg: shap...
29.149351
116
0.629762
77d127dfcb75805f145f295e4f4eb9f782cf855d
1,252
py
Python
perfil/migrations/0002_auto_20210831_2211.py
victorsantosok/ecommerce-cirio
85120ce43838f19e2907937c84b819dcd9088246
[ "MIT" ]
null
null
null
perfil/migrations/0002_auto_20210831_2211.py
victorsantosok/ecommerce-cirio
85120ce43838f19e2907937c84b819dcd9088246
[ "MIT" ]
null
null
null
perfil/migrations/0002_auto_20210831_2211.py
victorsantosok/ecommerce-cirio
85120ce43838f19e2907937c84b819dcd9088246
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-01 01:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('perfil', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='perfil', name='idade', ), ...
44.714286
651
0.531949
38bc3c8057d466b44402bf14e0a324478101595a
814
py
Python
api/serializers.py
codingwithahmad/drf
70b6c30fa316806d285cf25be6779cbe17df974b
[ "MIT" ]
null
null
null
api/serializers.py
codingwithahmad/drf
70b6c30fa316806d285cf25be6779cbe17df974b
[ "MIT" ]
null
null
null
api/serializers.py
codingwithahmad/drf
70b6c30fa316806d285cf25be6779cbe17df974b
[ "MIT" ]
null
null
null
from rest_framework import serializers from blog.models import Articles from django.contrib.auth import get_user_model from drf_dynamic_fields import DynamicFieldsMixin class ArticleSerializer(DynamicFieldsMixin, serializers.ModelSerializer): def get_author(self, obj): return obj.author.last_name author = seri...
23.941176
74
0.7457
f6e7f42b5709c0b9863d3758e117945849c25ce3
14,774
py
Python
W4A2/dnn_app_utils_v3.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
127
2018-08-17T03:36:58.000Z
2022-03-17T13:00:57.000Z
W4A2/dnn_app_utils_v3.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
W4A2/dnn_app_utils_v3.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
150
2021-01-02T00:27:46.000Z
2022-03-30T03:42:27.000Z
import numpy as np import matplotlib.pyplot as plt import h5py def sigmoid(Z): """ Implements the sigmoid activation in numpy Arguments: Z -- numpy array of any shape Returns: A -- output of sigmoid(z), same shape as Z cache -- returns Z as well, useful during backpropagation ...
33.80778
143
0.614932
e33bfe43b023b6eac7fdb2cf8203fc75d466f339
1,238
py
Python
etl/qsofa/daily/tb_tmp_daily_qsofa_log2.py
seoulai/mdml
0c2bc355e927f5a7cd669da237ef713b4d37bc09
[ "Apache-2.0" ]
7
2019-01-10T18:45:17.000Z
2021-05-29T02:46:32.000Z
etl/qsofa/daily/tb_tmp_daily_qsofa_log2.py
seoulai/mdml
0c2bc355e927f5a7cd669da237ef713b4d37bc09
[ "Apache-2.0" ]
null
null
null
etl/qsofa/daily/tb_tmp_daily_qsofa_log2.py
seoulai/mdml
0c2bc355e927f5a7cd669da237ef713b4d37bc09
[ "Apache-2.0" ]
null
null
null
import pandas as pd from sqlalchemy import create_engine from psql_db import PsqlDB class TbTmpDailyqSOFALog2(): def run( self, ): df = self.select() self.insert(df) def select( self, ): psql = PsqlDB() engine = psql.conn("mimic") sql = """ ...
21.344828
85
0.454766
3eb9ad4cdc5fd5bfe8cce6cb4b86092cf0746c3c
3,386
py
Python
ethereum/config.py
DelphiMarkets/pyethereum
90741d79007dbf206eb1fa8fd3e031ab66fa9fc4
[ "MIT" ]
null
null
null
ethereum/config.py
DelphiMarkets/pyethereum
90741d79007dbf206eb1fa8fd3e031ab66fa9fc4
[ "MIT" ]
null
null
null
ethereum/config.py
DelphiMarkets/pyethereum
90741d79007dbf206eb1fa8fd3e031ab66fa9fc4
[ "MIT" ]
null
null
null
from rlp.utils import decode_hex from ethereum import utils from ethereum.db import BaseDB, EphemDB from ethereum.child_dao_list import L as child_dao_list default_config = dict( # Genesis block difficulty GENESIS_DIFFICULTY=131072, # Genesis block gas limit GENESIS_GAS_LIMIT=3141592, # Genesis b...
35.642105
110
0.731837
1c0b0755e7d94c39e167d6f40ba5155e22276a4d
1,788
py
Python
crabageprediction/venv/Lib/site-packages/pandas/tests/frame/methods/test_copy.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/frame/methods/test_copy.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/frame/methods/test_copy.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
import numpy as np import pytest import pandas.util._test_decorators as td from pandas import DataFrame import pandas._testing as tm class TestCopy: @pytest.mark.parametrize("attr", ["index", "columns"]) def test_copy_index_name_checking(self, float_frame, attr): # don't want to be able to modify th...
27.9375
87
0.569351
c1af56f248bffc81c41dd132afbac43736259d61
16,848
py
Python
ironic/drivers/modules/redfish/bios.py
zhouhao3/ironic
294046befae669dacd159d9f26bcdd3bc8ff26c9
[ "Apache-2.0" ]
1
2021-07-19T16:42:19.000Z
2021-07-19T16:42:19.000Z
ironic/drivers/modules/redfish/bios.py
zhouhao3/ironic
294046befae669dacd159d9f26bcdd3bc8ff26c9
[ "Apache-2.0" ]
null
null
null
ironic/drivers/modules/redfish/bios.py
zhouhao3/ironic
294046befae669dacd159d9f26bcdd3bc8ff26c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 DMTF. 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 applicabl...
42.979592
79
0.627374
8aa8d779a9fad0feccb49099432b5519ab7ff13d
946
py
Python
setup.py
fontforge/sfd2ufo
28a1959c7a94b3a1ad04f8fd53c8cdce50ea1158
[ "BSD-3-Clause" ]
2
2016-05-11T14:57:24.000Z
2018-10-19T20:09:20.000Z
setup.py
fontforge/sfd2ufo
28a1959c7a94b3a1ad04f8fd53c8cdce50ea1158
[ "BSD-3-Clause" ]
null
null
null
setup.py
fontforge/sfd2ufo
28a1959c7a94b3a1ad04f8fd53c8cdce50ea1158
[ "BSD-3-Clause" ]
1
2018-10-19T20:09:23.000Z
2018-10-19T20:09:23.000Z
from setuptools import setup setup( name = "sfd2ufo", version = "1.0", description = "A simple, quick and dirty, SFD to UFO converter.", author = "Khaled Hosny", author_email = "khaledhosny@eglug.org", url = "https://github.com/khaledhosny/sfd2ufo", license = "OpenSource, BSD-style", ...
30.516129
69
0.580338
b888e73b38d40001544064fb0bb8c20f2a8faed3
2,275
py
Python
deepdish/tests/test_util.py
raphaelquast/deepdish
44b5259c629724fb95e97e75a4ac6d1bf6737e27
[ "BSD-3-Clause" ]
253
2015-01-14T01:20:16.000Z
2022-02-23T09:10:26.000Z
deepdish/tests/test_util.py
raphaelquast/deepdish
44b5259c629724fb95e97e75a4ac6d1bf6737e27
[ "BSD-3-Clause" ]
46
2015-04-07T04:38:20.000Z
2021-10-30T06:40:14.000Z
deepdish/tests/test_util.py
raphaelquast/deepdish
44b5259c629724fb95e97e75a4ac6d1bf6737e27
[ "BSD-3-Clause" ]
55
2015-02-12T04:16:59.000Z
2022-03-25T01:17:24.000Z
from __future__ import division, print_function, absolute_import import unittest import os import numpy as np import deepdish as dd class TestUtil(unittest.TestCase): def test_pad(self): x = np.ones((2, 2)) y = np.array([[0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0], ...
31.597222
64
0.394725
3c570b63a7da4e6f8dba5f71ae5e3d3243b6360a
4,129
py
Python
cctbx/symmetry_search/tests/tst_goodness_of_symmetry.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/symmetry_search/tests/tst_goodness_of_symmetry.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/symmetry_search/tests/tst_goodness_of_symmetry.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx import miller from cctbx.development import debug_utils, random_structure from cctbx import translation_search from scitbx.array_family import flex from scitbx import matrix as mat from libtbx.test_utils import approx_equal from libtbx.utils import progress_displayed_as_fract...
36.539823
77
0.691693
f6ffdf13b5d00831357c0c9b7786f6494aa0dfa7
595
py
Python
articles/migrations/0003_alter_comment_author.py
cvetanovv/news
afa7e07c54ab5cd3a3e220bac99ad601d6360eca
[ "MIT" ]
null
null
null
articles/migrations/0003_alter_comment_author.py
cvetanovv/news
afa7e07c54ab5cd3a3e220bac99ad601d6360eca
[ "MIT" ]
null
null
null
articles/migrations/0003_alter_comment_author.py
cvetanovv/news
afa7e07c54ab5cd3a3e220bac99ad601d6360eca
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-05 20:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('articles', '0002_comment...
27.045455
135
0.677311
81aedb4936d6620e33fbe1624648fcfdfe242e07
20,309
py
Python
Sketches/MPS/Experiments/Likefile2/LikeFile.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/Experiments/Likefile2/LikeFile.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/Experiments/Likefile2/LikeFile.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
43.675269
216
0.624797
6cda1162cd343bd2263a016f354aeeb05b35f015
14,639
py
Python
pyrobolearn/models/nn/neat_model.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/models/nn/neat_model.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/models/nn/neat_model.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Define the NEAT model class. This uses the Neuro-Evolution through Augmenting topologies (NEAT) framework. It allows the evolution of not only the parameters/weights but also the topological structure of neural networks. Note that the model associated with this policy (...
40.891061
117
0.527222
cfd2b4217272a609196500d068e33420f7216346
5,045
py
Python
IEProtLib/mol/Molecule.py
luwei0917/IEConv_proteins
9c79ea000c20088fa48234f1868e42883a9b5a21
[ "MIT" ]
24
2021-03-09T02:42:12.000Z
2022-03-25T23:48:14.000Z
IEProtLib/mol/Molecule.py
luwei0917/IEConv_proteins
9c79ea000c20088fa48234f1868e42883a9b5a21
[ "MIT" ]
1
2021-11-05T20:06:16.000Z
2021-11-05T20:06:16.000Z
IEProtLib/mol/Molecule.py
luwei0917/IEConv_proteins
9c79ea000c20088fa48234f1868e42883a9b5a21
[ "MIT" ]
8
2021-05-21T14:07:56.000Z
2022-01-24T09:52:42.000Z
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' \file Molecule.py \brief Object to store a molecule. \copyright Copyright (c) 2021 Visual Computing group of Ulm University, Germany. See the LICENSE file at the top-level directory of this dis...
37.37037
109
0.631913
6b6d4333572bea96e28efdbc492280b2bbc39fc8
209
py
Python
interface/tasks.py
SoftwareDevTest/softwaredapi
44feb67c7b3f7cdfa05d0e81aca5013e71b999b5
[ "Apache-2.0" ]
5
2019-12-10T05:20:59.000Z
2019-12-10T09:59:34.000Z
interface/tasks.py
SoftwareDevTest/softwaredapi
44feb67c7b3f7cdfa05d0e81aca5013e71b999b5
[ "Apache-2.0" ]
6
2020-02-12T02:30:31.000Z
2021-06-09T18:46:58.000Z
interface/tasks.py
SoftwareDevTest/softwaredapi
44feb67c7b3f7cdfa05d0e81aca5013e71b999b5
[ "Apache-2.0" ]
1
2019-12-10T05:21:02.000Z
2019-12-10T05:21:02.000Z
# Create your tasks here from __future__ import absolute_import, unicode_literals from dapi.celery import app @app.task def debug_1(): print("调试_1已运行!") @app.task def debug_2(): print("调试_2已运行!")
13.933333
56
0.722488
b2fa800d64787e11c35b4e9c6f15efcf09ba7fe5
12,457
py
Python
MindSPONGE/mindsponge/fold/train/config/global_config.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
3
2021-11-10T06:17:50.000Z
2022-03-21T14:25:30.000Z
MindSPONGE/mindsponge/fold/train/config/global_config.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
null
null
null
MindSPONGE/mindsponge/fold/train/config/global_config.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
1
2021-12-05T11:41:29.000Z
2021-12-05T11:41:29.000Z
# Copyright 2022 Huawei Technologies Co., Ltd & CPL YiQin GAO Research Group # # 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 ...
29.310588
79
0.403388
a44a60ff8990cfbaf727443ab4238912db32def6
883
py
Python
src/test/testinflux.py
eehello/Dshield
4265e8c45d5be142bbe8e25e8e2da5a3b3bf269c
[ "Artistic-1.0-Perl" ]
49
2016-12-10T13:26:51.000Z
2022-03-02T05:46:20.000Z
src/test/testinflux.py
knickersgod/Dshield
ef5b58d99bc479b92a97404b49d057d503e1a368
[ "Artistic-1.0-Perl" ]
4
2016-12-14T07:40:28.000Z
2019-02-20T06:09:02.000Z
src/test/testinflux.py
knickersgod/Dshield
ef5b58d99bc479b92a97404b49d057d503e1a368
[ "Artistic-1.0-Perl" ]
36
2016-12-11T01:44:36.000Z
2021-06-29T03:51:13.000Z
#!/usr/bin/env python # encoding=utf-8 import sys sys.path.append("..") from lib.influxUnit import DB_Conn if __name__ == '__main__': json_body = [{ "measurement": "current", "tags": {"foreaddr": "6.6.6.6","locaddr":"1.1.1.1","port":"80","state":"ESTABLISHED"}, "fields":{"connections":800, "value":300} }] ...
24.527778
88
0.588901
ee5f80a2b7b1a955e1a677bde04a9cee64029dc5
4,187
py
Python
scripts/deployment/liquidity-mining/addETHPoolToken.py
spiyer99/Sovryn-smart-contracts
f0d5059f0e71096801683f3fe310d262b27c5997
[ "Apache-2.0" ]
1
2021-06-07T17:12:56.000Z
2021-06-07T17:12:56.000Z
scripts/deployment/liquidity-mining/addETHPoolToken.py
1Crazymoney/Sovryn-smart-contracts
308e7a82f857a8dbb0f7e789717de33be08189ec
[ "Apache-2.0" ]
null
null
null
scripts/deployment/liquidity-mining/addETHPoolToken.py
1Crazymoney/Sovryn-smart-contracts
308e7a82f857a8dbb0f7e789717de33be08189ec
[ "Apache-2.0" ]
null
null
null
''' This script serves the purpose of interacting with existing smart contracts on the testnet or mainnet. ''' from brownie import * from brownie.network.contract import InterfaceContainer import json import time; import copy def main(): #load the contracts and acct depending on the network loadConfig()...
44.542553
141
0.729162
330e24c5533ad142e447c5b0747fbcd5604aaa54
2,497
py
Python
eim/get_image_summaries.py
rmitra/google-research
ddc22300c4cb3223654c9a981f892dc0f6286e35
[ "Apache-2.0" ]
1
2020-03-05T09:34:44.000Z
2020-03-05T09:34:44.000Z
eim/get_image_summaries.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
null
null
null
eim/get_image_summaries.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
1
2020-03-16T14:21:31.000Z
2020-03-16T14:21:31.000Z
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
28.701149
78
0.729676
becfb8b884cb90bf1f97de777a4c0668b7aa3136
4,019
py
Python
cogs/search.py
xcdmcode/xcdmbot
f542984fe0cb2f0b2c729daec2aa6d93a5d9d57c
[ "MIT" ]
4
2020-03-26T19:45:43.000Z
2020-11-19T17:23:35.000Z
cogs/search.py
xcdmcode/xcdmbot
f542984fe0cb2f0b2c729daec2aa6d93a5d9d57c
[ "MIT" ]
1
2020-03-28T05:42:19.000Z
2020-03-28T05:42:19.000Z
cogs/search.py
xcdmcode/xcdmbot
f542984fe0cb2f0b2c729daec2aa6d93a5d9d57c
[ "MIT" ]
1
2020-03-27T22:31:42.000Z
2020-03-27T22:31:42.000Z
import discord from discord import Colour, Embed from discord.ext import commands import requests import traceback from bs4 import BeautifulSoup import json import re import brotli # Scrapes the DDG search results page and returns a list of 5 tuples containing a result's title and url. def ddg_search(args): ddg_se...
36.536364
129
0.583727
9d3d457a9f30e4b7c651bb8e2cb30b0ccf7208c0
305
py
Python
Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula103/associacao.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula103/associacao.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula103/associacao.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
from classes import Escritor from classes import Caneta from classes import MaquinaDeEscrever escritor = Escritor('Danilo') caneta = Caneta('Bic') maquina = MaquinaDeEscrever() # print(escritor.nome) # print(caneta.marca) # maquina.escrever() escritor.ferramenta = caneta escritor.ferramenta.escrever()
21.785714
37
0.790164
5c802f4e0d1d69a5f849458b1851a960f665798d
444
py
Python
tests/models/__init__.py
LogicalAddress/wagtailstreamforms
d2e9519de643f18e2d879b2cd648f532c9673580
[ "MIT" ]
null
null
null
tests/models/__init__.py
LogicalAddress/wagtailstreamforms
d2e9519de643f18e2d879b2cd648f532c9673580
[ "MIT" ]
null
null
null
tests/models/__init__.py
LogicalAddress/wagtailstreamforms
d2e9519de643f18e2d879b2cd648f532c9673580
[ "MIT" ]
1
2020-05-13T16:26:38.000Z
2020-05-13T16:26:38.000Z
from django.db import models from wagtailstreamforms.fields import HookSelectField from wagtailstreamforms.models import AbstractFormSetting class ValidFormSettingsModel(AbstractFormSetting): name = models.CharField(max_length=255) number = models.IntegerField() class InvalidFormSettingsModel(models.Model):...
26.117647
74
0.806306
664d66ac9c4f9b937f9d898a3a9bf07a81bc4384
4,569
py
Python
account/views.py
chechons/bookmarks
bbd4de4dbe601743f586ba5d11b8a047f209864b
[ "MIT" ]
1
2021-12-13T17:58:35.000Z
2021-12-13T17:58:35.000Z
account/views.py
chechons/bookmarks
bbd4de4dbe601743f586ba5d11b8a047f209864b
[ "MIT" ]
1
2021-12-13T17:51:04.000Z
2021-12-13T17:51:04.000Z
account/views.py
chechons/bookmarks
bbd4de4dbe601743f586ba5d11b8a047f209864b
[ "MIT" ]
null
null
null
# Importaciones Login from django.contrib.auth.models import User from django.http import HttpResponse, JsonResponse from django.shortcuts import render, get_object_or_404 from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from .forms import LoginForm, UserRegi...
36.552
88
0.609543
d591c3f06f6cb6cfe471bd44e23324f0ca2099ac
2,667
py
Python
tests/ldap_server.py
slipeer/synapse-ldap-password-provider
5918237c5daa4bda28ad55b79cbfd895506cfb56
[ "Apache-2.0" ]
4
2017-05-31T14:28:52.000Z
2017-06-28T09:38:17.000Z
tests/ldap_server.py
slipeer/synapse-ldap-password-provider
5918237c5daa4bda28ad55b79cbfd895506cfb56
[ "Apache-2.0" ]
3
2017-06-02T13:52:40.000Z
2018-05-31T13:51:58.000Z
tests/ldap_server.py
slipeer/synapse-ldap-password-provider
5918237c5daa4bda28ad55b79cbfd895506cfb56
[ "Apache-2.0" ]
4
2017-06-02T12:58:56.000Z
2019-12-18T14:31:30.000Z
from twisted.internet.protocol import ServerFactory from twisted.python.components import registerAdapter from ldaptor.inmemory import fromLDIFFile from ldaptor.interfaces import IConnectedLDAPEntry from ldaptor.protocols.ldap.ldapserver import LDAPServer from cStringIO import StringIO """ This is a pure Python implem...
23.191304
75
0.712786
a6c9f07dd088472f29dc544374c930a69c901ec1
467
py
Python
Tree/P226 - invertBinaryTree.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
Tree/P226 - invertBinaryTree.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
Tree/P226 - invertBinaryTree.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if(not root): retu...
33.357143
73
0.605996
83210b110339c5cf9b265f4dcb6cde1846c22ce8
8,737
py
Python
intersight/model/niaapi_apic_cco_post_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/niaapi_apic_cco_post_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/niaapi_apic_cco_post_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
49.642045
1,678
0.639922
05baf5b354e7eb6387487a05d068dc7f3c952939
6,116
py
Python
examples/decoding/decoding_csp_timefreq.py
guiomar/mne-python
2d19800a07904cfe69c1ba290c3eaf712625c6ab
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
examples/decoding/decoding_csp_timefreq.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
examples/decoding/decoding_csp_timefreq.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
""" .. _ex-decoding-csp-eeg-timefreq: ==================================================================== Decoding in time-frequency space using Common Spatial Patterns (CSP) ==================================================================== The time-frequency decomposition is estimated by iterating over raw data ...
36.622754
79
0.668738
9134f5e4251f862cd8621e789543431e38149fe5
11,178
py
Python
samples/client/petstore/python-experimental/petstore_api/models/capitalization.py
malymato/openapi-generator
47e2c0d027d867de67633bbc9c0a5d7e1054a778
[ "Apache-2.0" ]
2
2019-12-08T12:00:11.000Z
2022-01-02T13:47:52.000Z
samples/client/petstore/python-experimental/petstore_api/models/capitalization.py
malymato/openapi-generator
47e2c0d027d867de67633bbc9c0a5d7e1054a778
[ "Apache-2.0" ]
8
2021-03-01T21:18:19.000Z
2022-02-27T07:56:15.000Z
samples/client/petstore/python-experimental/petstore_api/models/capitalization.py
malymato/openapi-generator
47e2c0d027d867de67633bbc9c0a5d7e1054a778
[ "Apache-2.0" ]
1
2020-03-08T12:31:09.000Z
2020-03-08T12:31:09.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
34.183486
174
0.596887
5778bde4f6d7c5461451357c09f42fdda2467af6
1,258
py
Python
palo_alto_pan_os/komand_palo_alto_pan_os/actions/show/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
palo_alto_pan_os/komand_palo_alto_pan_os/actions/show/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
palo_alto_pan_os/komand_palo_alto_pan_os/actions/show/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Gets active configuration" class Input: XPATH = "xpath" class Output: RESPONSE = "response" class ShowInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variab...
17.472222
82
0.532591
e1602e02a54e30fccf0da5f637bf1d67a0ac328e
4,740
py
Python
samples/network/virtual_network/manage_virtual_network_gateway.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
47
2020-05-29T18:25:57.000Z
2022-03-30T06:04:56.000Z
samples/network/virtual_network/manage_virtual_network_gateway.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
27
2020-05-13T06:37:24.000Z
2022-03-01T07:58:34.000Z
samples/network/virtual_network/manage_virtual_network_gateway.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
67
2020-05-09T06:09:19.000Z
2022-03-22T23:18:06.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import os...
31.390728
192
0.595148
8c715b1f29e9cc6d26653e0085be39aee023cb15
13,103
py
Python
featuretools/synthesis/dfs.py
systemshift/featuretools
8693e5cd438a065fc64a1e1535e74ec54ab85cad
[ "BSD-3-Clause" ]
null
null
null
featuretools/synthesis/dfs.py
systemshift/featuretools
8693e5cd438a065fc64a1e1535e74ec54ab85cad
[ "BSD-3-Clause" ]
null
null
null
featuretools/synthesis/dfs.py
systemshift/featuretools
8693e5cd438a065fc64a1e1535e74ec54ab85cad
[ "BSD-3-Clause" ]
null
null
null
from featuretools.computational_backends import calculate_feature_matrix from featuretools.entityset import EntitySet from featuretools.synthesis.deep_feature_synthesis import DeepFeatureSynthesis from featuretools.utils import entry_point @entry_point('featuretools_dfs') def dfs(entities=None, relationships=...
48.891791
116
0.600168
a307227c0d49f52760458cd4ec450b663a4520c1
4,040
py
Python
code/bess-v1/bessctl/test_samples.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
1
2020-06-22T13:21:43.000Z
2020-06-22T13:21:43.000Z
code/bess-v1/bessctl/test_samples.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
null
null
null
code/bess-v1/bessctl/test_samples.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
null
null
null
# Copyright (c) 2014-2016, The Regents of the University of California. # Copyright (c) 2016-2017, Nefeli Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of so...
35.130435
79
0.709653
05dfcb994a2cf40e8abe07e48f5bb9faf0ef4292
1,111
py
Python
Online Judges/LeetCode/August LeetCoding Challenge/Week-1/Add and Search Word - Data structure design.py
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
4
2017-02-20T17:41:14.000Z
2019-07-15T14:15:34.000Z
Online Judges/LeetCode/August LeetCoding Challenge/Week-1/Add and Search Word - Data structure design.py
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
Online Judges/LeetCode/August LeetCoding Challenge/Week-1/Add and Search Word - Data structure design.py
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
class TrieNode: def __init__(self): self.isWord = False self.child = {} class WordDictionary: def __init__(self): self.root = TrieNode() def addWord(self, word: str) -> None: root = self.root for c in word: if c in root.child: root = r...
23.638298
69
0.505851
3c8fdb5e50d1c5ce469eea94a30a83976fd21c46
307
py
Python
setup.py
PyABI/PyABI_QUADRABLE
d0c4e1deb1cd5d6c9a7d2b2ab7fed2068e449d7e
[ "MIT" ]
null
null
null
setup.py
PyABI/PyABI_QUADRABLE
d0c4e1deb1cd5d6c9a7d2b2ab7fed2068e449d7e
[ "MIT" ]
null
null
null
setup.py
PyABI/PyABI_QUADRABLE
d0c4e1deb1cd5d6c9a7d2b2ab7fed2068e449d7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 from distutils.core import setup, Extension names = ['PyABI.cpp'] names.append('sqlite3.c') abi_module = Extension('PyABI_pyd', sources = names) setup(name='PyABI_pyd', version='0.0.42', description='Core C++ PyABI', ext_modules=[abi_module])
19.1875
52
0.677524
617276015b8253333a2f772682dfa8e96bdbe5bc
313
py
Python
src/medius/mediuspackets/accountdeleteresponse.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
8
2021-07-14T16:55:04.000Z
2022-03-07T22:03:03.000Z
src/medius/mediuspackets/accountdeleteresponse.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
22
2021-07-13T02:17:00.000Z
2022-02-13T03:26:52.000Z
src/medius/mediuspackets/accountdeleteresponse.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
5
2021-07-30T05:49:09.000Z
2022-02-14T18:02:07.000Z
from utils import utils class AccountDeleteResponseSerializer: data_dict = [ {'name': 'mediusid', 'n_bytes': 2, 'cast': None} ] class AccountDeleteResponseHandler: def process(self, serialized, monolith, con): raise Exception('Unimplemented Handler: AccountDeleteResponseHandler')
24.076923
78
0.71246
ab81a70d0aa2a51e111f2cdf2c44b86e95f1920a
1,824
py
Python
pims/utils/math.py
hurondp/pims
7d08bc4246375255611011d465db9de89fdc6ce9
[ "Apache-2.0" ]
2
2022-01-19T08:58:12.000Z
2022-01-28T14:40:41.000Z
pims/utils/math.py
hurondp/pims
7d08bc4246375255611011d465db9de89fdc6ce9
[ "Apache-2.0" ]
18
2021-09-20T08:47:11.000Z
2022-03-14T15:51:37.000Z
pims/utils/math.py
Cytomine-ULiege/pims
3c13f054be3ce9b6755428ccd9c5e0c1a8fb02d4
[ "Apache-2.0" ]
1
2022-02-14T18:28:31.000Z
2022-02-14T18:28:31.000Z
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless ...
33.163636
77
0.66886
b570299015b946a27bc082f91049e44ddd2c096a
242
py
Python
setup.py
snelliott/autofile
1aaa0afce640fb7540d37ce00c7074718590a4cf
[ "Apache-2.0" ]
null
null
null
setup.py
snelliott/autofile
1aaa0afce640fb7540d37ce00c7074718590a4cf
[ "Apache-2.0" ]
null
null
null
setup.py
snelliott/autofile
1aaa0afce640fb7540d37ce00c7074718590a4cf
[ "Apache-2.0" ]
null
null
null
""" Install autofile """ from distutils.core import setup setup(name="autofile", version="0.2.3", packages=["autofile", "autofile.data_types", "autofile.schema", "autofile.info"])
20.166667
38
0.53719
a646285e88172462239345138bb1832a683483bd
3,493
py
Python
tst/test_pbt.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tst/test_pbt.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-25T15:56:36.000Z
2022-02-25T17:53:10.000Z
tst/test_pbt.py
hfurkanbozkurt/syne-tune
05ee2668f0155b40c3ee3b61e4b3d58f3f9f3c4f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
31.468468
83
0.63069
8ff4e22cfac4056d5bc749f136030cab7632edfe
3,108
py
Python
django/docs/releases/1.10.3.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/docs/releases/1.10.3.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/docs/releases/1.10.3.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXX XXXXXXX XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX XX XXXXX XXXXXX XXXXXX XXXXX XXX XXXXXXXX XXXXXX XXX XXXXXXX XXXX XX XXXXXXX XXXX XXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXX XXXXXXX XXXXX XX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX XXXXXXX ...
45.043478
81
0.861326
2bc043b808f785873a67f9cb617502e49eb11d87
1,685
py
Python
21_30/day-23/turtle-crossing/game_screen.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
21_30/day-23/turtle-crossing/game_screen.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
21_30/day-23/turtle-crossing/game_screen.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
from turtle import Screen, Turtle MAX_X = 0 MAX_Y = 0 class GameScreen(): def __init__(self, max_x, max_y): super().__init__() global MAX_X, MAX_Y MAX_X = max_x MAX_Y = max_y self.screen = Screen() self.screen.setup(height=max_x, width=max_y) self.screen.b...
33.039216
106
0.618991
a32b8f989b851cee04a7778a41c494a8e1f79a43
541
py
Python
lagom/experimental/definitions.py
meadsteve/lagom
025993f42fa23547e333d81373523ced1baf4854
[ "MIT" ]
109
2019-06-02T13:40:38.000Z
2022-03-08T18:35:17.000Z
lagom/experimental/definitions.py
meadsteve/lagom
025993f42fa23547e333d81373523ced1baf4854
[ "MIT" ]
152
2019-06-03T11:54:13.000Z
2022-03-30T11:31:03.000Z
lagom/experimental/definitions.py
meadsteve/lagom
025993f42fa23547e333d81373523ced1baf4854
[ "MIT" ]
5
2020-02-05T09:44:12.000Z
2022-01-31T08:41:38.000Z
""" Similar to the main definitions module but these definitions do not yet have a stable interface. """ from ..definitions import X from ..interfaces import SpecialDepDefinition, ReadableContainer class PlainFunction(SpecialDepDefinition[X]): """Preserves a function without any dep injection performed on it""" ...
27.05
72
0.728281
c43187762f66d8a77993900e6d9ca95a52011966
8,604
py
Python
packages/grid/apps/worker/src/main/core/services/role_service.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
425
2019-09-22T06:14:53.000Z
2022-03-30T02:17:34.000Z
packages/grid/apps/worker/src/main/core/services/role_service.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
352
2019-09-17T15:32:51.000Z
2022-03-12T01:07:35.000Z
packages/grid/apps/worker/src/main/core/services/role_service.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
208
2019-09-18T18:32:10.000Z
2022-03-24T01:10:11.000Z
# stdlib import secrets from typing import List from typing import Type from typing import Union # third party from nacl.encoding import HexEncoder from nacl.signing import VerifyKey from syft.core.common.message import ImmediateSyftMessageWithReply # syft relative from syft.core.node.abstract.node import AbstractNod...
31.866667
88
0.700721
3a9d96455887478ddffcdae67c7215feb9941b1c
3,790
py
Python
src/olympia/conf/dev/settings.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
1
2020-01-10T08:00:36.000Z
2020-01-10T08:00:36.000Z
src/olympia/conf/dev/settings.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
6
2020-09-28T03:15:57.000Z
2021-09-28T23:33:19.000Z
src/olympia/conf/dev/settings.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
null
null
null
import logging from olympia.lib.settings_base import * # noqa # Allow addons-dev CDN for CSP. CSP_BASE_URI += ( # Required for the legacy discovery pane. 'https://addons-dev.allizom.org', ) CDN_HOST = 'https://addons-dev-cdn.allizom.org' CSP_CONNECT_SRC += (CDN_HOST,) CSP_FONT_SRC += (CDN_HOST,) CSP_IMG_SRC...
29.84252
101
0.698153
34fbb326be4b4a921713ce9af98dc44c1feb90ce
13,900
py
Python
jetblack_fixengine/transports/acceptor_handler.py
rob-blackbourn/aiofix
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
1
2021-03-25T21:52:36.000Z
2021-03-25T21:52:36.000Z
jetblack_fixengine/transports/acceptor_handler.py
rob-blackbourn/jetblack-fixengine
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
null
null
null
jetblack_fixengine/transports/acceptor_handler.py
rob-blackbourn/jetblack-fixengine
2a07822e07414c1ea850708d7660c16a0564c21d
[ "Apache-2.0" ]
null
null
null
"""Acceptor handler""" from abc import ABCMeta, abstractmethod import asyncio from datetime import datetime, time, tzinfo, timezone import logging from typing import Awaitable, Callable, Mapping, Any, Optional, Tuple import uuid from jetblack_fixparser.meta_data import ProtocolMetaData from ..types import Store, Even...
35.824742
99
0.604748
7aa3e228946e99dbb20a963b921db548f78f2a4b
3,540
py
Python
launchkey/clients/base.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
1
2018-12-06T04:42:35.000Z
2018-12-06T04:42:35.000Z
launchkey/clients/base.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
1
2018-12-11T22:31:03.000Z
2018-12-11T22:31:03.000Z
launchkey/clients/base.py
bgroveben/launchkey-python
c102d76040221059e7b87d96496edb1be3824d3b
[ "MIT" ]
null
null
null
from launchkey.exceptions import InvalidEntityID, LaunchKeyAPIException, InvalidParameters, EntityNotFound, \ PolicyFailure, InvalidPolicyInput, RequestTimedOut, RateLimited, InvalidDirectoryIdentifier, \ UnexpectedAPIResponse, Forbidden, Unauthorized, InvalidRoute, ServiceNameTaken, ServiceNotFound, \ Publ...
37.263158
115
0.670621
08ffc73c161e15ecceaa97497fa5eee326eefa13
8,152
py
Python
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 15 20:34:23 2021 @author: Mohammad Asif Zaman Keyboard commands: x : Quit/exit program Arrow keys: Movement q : Increase object size a : Decrease object size w : Increase width of the object d : Decrease width of the ob...
25.475
139
0.608685
d261ece68550d5e31837f0fdc1271ceb99948d88
681
py
Python
setup.py
emhayusa/palapa
950de70fe05e7289434028c42b83054c23b09b17
[ "MIT" ]
null
null
null
setup.py
emhayusa/palapa
950de70fe05e7289434028c42b83054c23b09b17
[ "MIT" ]
null
null
null
setup.py
emhayusa/palapa
950de70fe05e7289434028c42b83054c23b09b17
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='palapa', version='0.1', author="Muhammad Hasannudin Yusa", author_email="emhayusa@gmail.com", description="A palapa package", long_description=long_description, long_description_content_type="text/mar...
25.222222
57
0.694567
e525a3bdb2dc2e8feb36e52ddf060b2e49be8ba0
10,569
py
Python
examples/reinforcement_learning/tutorial_cartpole_ac.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
examples/reinforcement_learning/tutorial_cartpole_ac.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
examples/reinforcement_learning/tutorial_cartpole_ac.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
"""Actor-Critic using TD-error as the Advantage, Reinforcement Learning. Actor Critic History ---------------------- A3C > DDPG > AC Advantage ---------- AC converge faster than Policy Gradient. Disadvantage (IMPORTANT) ------------------------ The Policy is oscillated (difficult to converge), DDPG can solve this pr...
42.276
129
0.603179
2388a5f84b91568ffba7820f43a09c2a6b9f4bb5
238
py
Python
todo/models.py
MrRedonis/to_do_list
0fa3bfa21500027c01251d2972414b07af157e31
[ "MIT" ]
null
null
null
todo/models.py
MrRedonis/to_do_list
0fa3bfa21500027c01251d2972414b07af157e31
[ "MIT" ]
null
null
null
todo/models.py
MrRedonis/to_do_list
0fa3bfa21500027c01251d2972414b07af157e31
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Todo(models.Model): title = models.CharField(max_length=1000) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.title
19.833333
56
0.722689
b9453798b3a734d95fd43c32b4d94a650d11ff68
696
py
Python
ras.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
ras.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
ras.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
class data: dia=0 mês=0 ano=0 class aluno: nome="" idade=0 curso="" dataN=data() a= aluno() aluno=list(range(2)) for i in range(0,1): aluno=list(range(2)) a.nome=input(print("Digite seu nome")) a.curso=input(print("Digite o nome de seu curso")) a.idade=input(...
24
135
0.579023
0ad46fb45485088553fa46ec8d17bfb927dad7ba
4,647
py
Python
shadowsocks/server.py
repo-archives/shadowsocks
64503498d0843dfd44e547cfef49aac639616c20
[ "MIT" ]
1
2018-06-06T14:20:46.000Z
2018-06-06T14:20:46.000Z
shadowsocks/server.py
GoGoCav/shadowsocks
ebf5baa3112135e30173cce5cf47c7a95eadb485
[ "MIT" ]
null
null
null
shadowsocks/server.py
GoGoCav/shadowsocks
ebf5baa3112135e30173cce5cf47c7a95eadb485
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014 clowwindy # # 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 # ...
36.023256
79
0.595653
6bbf2aa6cbde712c31d7940959450524add8ffb8
940
py
Python
energy.py
mathieulagrange/confy
dd6a7e05a19b2d2e465fd781853a90bf743adbcc
[ "MIT" ]
null
null
null
energy.py
mathieulagrange/confy
dd6a7e05a19b2d2e465fd781853a90bf743adbcc
[ "MIT" ]
null
null
null
energy.py
mathieulagrange/confy
dd6a7e05a19b2d2e465fd781853a90bf743adbcc
[ "MIT" ]
null
null
null
import numpy as np import shutil as sh def energyIndicators(setting, experiment): datasetName = experiment.path.input+setting.id(sort=False).replace('step_energy', 'step_data')+'_energy.npy' data = np.load(datasetName) timeName = experiment.path.input+setting.id(hide=['source', 'part', 'typology', 'indicator']...
29.375
195
0.655319
bd113596b7db01567f082e4bf4e6b3050bee6ca3
77
py
Python
llvm/utils/lit/tests/Inputs/shtest-not/pass.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
llvm/utils/lit/tests/Inputs/shtest-not/pass.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
llvm/utils/lit/tests/Inputs/shtest-not/pass.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
#!/usr/bin/env python import print_environment print_environment.execute()
12.833333
27
0.805195
03db973cb076cc554aecc1494765c54caaa23c05
21,576
py
Python
plugins/modules/oci_waas_custom_protection_rule.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_waas_custom_protection_rule.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_waas_custom_protection_rule.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
46.802603
160
0.627549
fd72e50f2465b4c8c94f125a568e991a918d3d4e
11,136
py
Python
tests/test_fileutils.py
zmedico/snakeoil
3f053c17d75b54d5eb10785b0225597633b90268
[ "BSD-3-Clause" ]
null
null
null
tests/test_fileutils.py
zmedico/snakeoil
3f053c17d75b54d5eb10785b0225597633b90268
[ "BSD-3-Clause" ]
null
null
null
tests/test_fileutils.py
zmedico/snakeoil
3f053c17d75b54d5eb10785b0225597633b90268
[ "BSD-3-Clause" ]
null
null
null
import errno import mmap import os import time pjoin = os.path.join import pytest from snakeoil import _fileutils, currying, fileutils from snakeoil.fileutils import AtomicWriteFile, write_file from snakeoil.test.fixtures import RandomPath, TempDir class TestTouch(RandomPath): def test_file_creation(self): ...
31.546742
77
0.58495
9672b3d42221e23688e23909a43876f607de054e
919
py
Python
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
3
2019-11-29T04:32:49.000Z
2020-06-03T01:34:45.000Z
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
194
2020-06-01T01:42:41.000Z
2021-08-02T10:25:58.000Z
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
1
2019-07-31T14:59:05.000Z
2019-07-31T14:59:05.000Z
"""Summarizes meetup2xibo logs, reporting meeting changes.""" class LogSummarizer: """Summarizes meetup2xibo logs, reporting meeting changes.""" def __init__( self, input_stream, output_stream, summary, log_parser, renderer): """Initialize with input and output streams, an em...
31.689655
72
0.668118
c6fa8225198b654014ab0cbc6d7c22f66cd5261c
16,795
py
Python
halli.py
Techlorine/Halli_Galli
534291ea66369655978a099beeb7badf0154fb1e
[ "MIT" ]
null
null
null
halli.py
Techlorine/Halli_Galli
534291ea66369655978a099beeb7badf0154fb1e
[ "MIT" ]
1
2021-09-27T09:03:17.000Z
2021-09-27T09:03:17.000Z
halli.py
Techlorine/Halli_Galli
534291ea66369655978a099beeb7badf0154fb1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import * class Ui_MainWindow(object): def set...
52.981073
189
0.667103
853b1f446c619fa4ceeabc6f7c03f0c45fabb053
1,025
py
Python
tests/util/test_pack.py
d2verb/cool
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
4
2020-07-17T11:37:28.000Z
2022-01-25T04:52:01.000Z
tests/util/test_pack.py
d2verb/cool
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
1
2020-07-02T15:30:36.000Z
2020-07-02T15:30:36.000Z
tests/util/test_pack.py
d2verb/ctftools
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
1
2020-09-29T16:45:29.000Z
2020-09-29T16:45:29.000Z
from cool.util import p16, p32, p64, u16, u32, u64 def test_p16(): assert p16(0x4142, endian="little") == b"\x42\x41" assert p16(0x4142, endian="big") == b"\x41\x42" def test_p32(): assert p32(0x41424344, endian="little") == b"\x44\x43\x42\x41" assert p32(0x41424344, endian="big") == b"\x41\x42\x43\...
28.472222
87
0.636098
14b2afc33e215f85c5145581f975be3ef3ccdd07
2,912
py
Python
code/train.py
irinaespejo/madminer-workflow-ml
a286d70625de65efca8c4eeec99f90f518c79d6e
[ "MIT" ]
1
2021-08-20T15:10:59.000Z
2021-08-20T15:10:59.000Z
code/train.py
irinaespejo/madminer-workflow-ml
a286d70625de65efca8c4eeec99f90f518c79d6e
[ "MIT" ]
null
null
null
code/train.py
irinaespejo/madminer-workflow-ml
a286d70625de65efca8c4eeec99f90f518c79d6e
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse import mlflow.pytorch import os import yaml from madminer.ml import ScoreEstimator from shared.ratio_estimators import get_ratio_estimator ############################ ##### Argument parsing ##### ############################ parser = argparse.ArgumentParser() parser.add_argument(...
26.234234
81
0.651099
24ebf52280b86da9128687b25a32e080f98b37cb
5,900
py
Python
get_dr_txt.py
zhanghhong/ssd
423c459b948799f678f6a76933bda8546ac892bb
[ "MIT" ]
3
2021-11-05T08:00:19.000Z
2022-01-27T10:22:08.000Z
get_dr_txt.py
zhanghhong/ssd
423c459b948799f678f6a76933bda8546ac892bb
[ "MIT" ]
null
null
null
get_dr_txt.py
zhanghhong/ssd
423c459b948799f678f6a76933bda8546ac892bb
[ "MIT" ]
1
2022-01-27T10:22:10.000Z
2022-01-27T10:22:10.000Z
#----------------------------------------------------# # 获取测试集的ground-truth # 具体视频教程可查看 # https://www.bilibili.com/video/BV1zE411u7Vw #----------------------------------------------------# import colorsys import os import numpy as np import torch import torch.backends.cudnn as cudnn from PIL import Im...
39.333333
189
0.524746