hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f03d9eaee97208cafc1e4372dee477f66cf18ca4
1,403
py
Python
tests/explorers_tests/test_boltzmann.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
824
2020-07-29T00:30:14.000Z
2022-03-29T13:12:34.000Z
tests/explorers_tests/test_boltzmann.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
124
2020-07-30T01:53:47.000Z
2022-03-15T07:05:38.000Z
tests/explorers_tests/test_boltzmann.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
122
2020-07-29T04:33:35.000Z
2022-03-13T13:29:41.000Z
import unittest import numpy as np import torch import pfrl def count_actions_selected_by_boltzmann(T, q_values): def greedy_action_func(): raise RuntimeError("Must not be called") explorer = pfrl.explorers.Boltzmann(T=T) action_value = pfrl.action_value.DiscreteActionValue(q_values) actio...
31.177778
79
0.693514
bf5c650c655a13b2ab25577fe5e0fc310e0dcb90
15,963
py
Python
projects/views.py
rasmunk/projects
6f067a6a9d5c8a785281d61a9d9c0b4ace3e7fef
[ "MIT" ]
null
null
null
projects/views.py
rasmunk/projects
6f067a6a9d5c8a785281d61a9d9c0b4ace3e7fef
[ "MIT" ]
null
null
null
projects/views.py
rasmunk/projects
6f067a6a9d5c8a785281d61a9d9c0b4ace3e7fef
[ "MIT" ]
1
2020-04-11T13:04:12.000Z
2020-04-11T13:04:12.000Z
import os import datetime from flask import render_template, request, flash, redirect, url_for, jsonify from flask_login import login_user, logout_user, login_required, current_user from flask_mail import Message from werkzeug.datastructures import CombinedMultiDict from werkzeug.utils import secure_filename from bcryp...
35.238411
88
0.606653
fb40d10ea564ef33dd673ec540e4c52545cff43a
4,635
py
Python
python/common/operation_tickets.py
Azure/iot-sdk-longhaul
5c77a9f120610433ae99c39130f0d454d31c4a7f
[ "MIT" ]
null
null
null
python/common/operation_tickets.py
Azure/iot-sdk-longhaul
5c77a9f120610433ae99c39130f0d454d31c4a7f
[ "MIT" ]
7
2020-09-14T16:30:22.000Z
2021-08-10T14:33:13.000Z
python/common/operation_tickets.py
Azure/iot-sdk-longhaul
5c77a9f120610433ae99c39130f0d454d31c4a7f
[ "MIT" ]
1
2020-12-27T11:12:19.000Z
2020-12-27T11:12:19.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for # full license information. import weakref import threading import uuid import logging logger = logging.getLogger("thief.{}".format(__name__)) class OperationTicketBase(object): """ Base...
34.333333
103
0.64315
45eb9be8dea425a0082a68407bb683b4665b6f55
1,488
py
Python
workers/hadoop_aggregator_driver.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
workers/hadoop_aggregator_driver.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
workers/hadoop_aggregator_driver.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Bohdan Mushkevych' from subprocess import PIPE import psutil from synergy.conf import settings from workers.abstract_cli_worker import AbstractCliWorker class HadoopAggregatorDriver(AbstractCliWorker): """Python process that starts Hadoop map/reduce job, supervises its execution and updates unit_o...
42.514286
109
0.574597
643226486e219d6590de90363c69badb61b12792
494
py
Python
catalog/bindings/gmd/boolean_list.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/boolean_list.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/boolean_list.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Union from bindings.gmd.nil_reason_enumeration_value import NilReasonEnumerationValue __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class BooleanList: class Meta: namespace = "http://www.opengis.net/gml" value: List[Union[st...
24.7
79
0.665992
9fa24f2164d8b4b2c60695a2c11c8f481b8c01d9
2,822
py
Python
classNotes/data_structures5/lists_as_queues.py
minefarmer/Think_like_a_programmer
d6b1363f96600445ea47f91c637c5d0bede2e8f6
[ "Unlicense" ]
null
null
null
classNotes/data_structures5/lists_as_queues.py
minefarmer/Think_like_a_programmer
d6b1363f96600445ea47f91c637c5d0bede2e8f6
[ "Unlicense" ]
null
null
null
classNotes/data_structures5/lists_as_queues.py
minefarmer/Think_like_a_programmer
d6b1363f96600445ea47f91c637c5d0bede2e8f6
[ "Unlicense" ]
null
null
null
''' Queues A queue is a linear list of elements in which deletions can take place only at one end, called the front. Insertions in the Quwuw can only take place at the other end called rear. Queues are also called FIFO (first in first out), since the first element in a queue will be the first element that can go ...
27.398058
223
0.658044
79918c81eecdc5253238e43bac313a6c1fa401b2
60,889
py
Python
src/pretix/control/views/organizer.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
null
null
null
src/pretix/control/views/organizer.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
56
2020-05-07T07:54:17.000Z
2021-04-19T12:14:14.000Z
src/pretix/control/views/organizer.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
null
null
null
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
40.782987
123
0.638654
4ad91e8b89b6e9d4612b3c0d75b38fd5b53a7bfb
1,948
py
Python
examples/org-website/query_sample.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
98
2015-12-08T14:26:27.000Z
2022-03-23T17:44:11.000Z
examples/org-website/query_sample.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
396
2016-02-23T11:07:55.000Z
2022-03-31T14:26:34.000Z
examples/org-website/query_sample.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
62
2015-12-09T11:20:53.000Z
2022-01-28T01:30:54.000Z
import hazelcast from hazelcast.serialization.api import Portable from hazelcast.predicate import sql, and_, between, equal class User(Portable): FACTORY_ID = 1 CLASS_ID = 1 def __init__(self, username=None, age=None, active=None): self.username = username self.age = age self.act...
32.466667
95
0.708419
dfa4183aad80b4a3123d5bf97e246bef13558315
835
py
Python
wpa_project/program_app/models/beginner_class.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
1
2022-01-03T02:46:34.000Z
2022-01-03T02:46:34.000Z
wpa_project/program_app/models/beginner_class.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
31
2021-12-29T17:43:06.000Z
2022-03-25T01:03:17.000Z
wpa_project/program_app/models/beginner_class.py
s-amundson/wpa_2p1
43deb859123e5ef2eab3652e403c8d2f53d43b77
[ "MIT" ]
null
null
null
import logging from django.db import models logger = logging.getLogger(__name__) def choices(choice_list): choice = [] for c in choice_list: choice.append((c, c)) return choice class BeginnerClass(models.Model): class_types = ['beginner', 'returnee', 'combined'] class_states = ['schedul...
29.821429
89
0.71018
bb752d79a7c30217fbbe7cc65b5bf743ff2fa781
2,620
py
Python
simplemooc/courses/migrations/0005_auto_20161208_0612.py
willsilvano/django-simplemooc
c6b7491ec600fbb0be563c4f3f0a0480f8f52270
[ "MIT" ]
null
null
null
simplemooc/courses/migrations/0005_auto_20161208_0612.py
willsilvano/django-simplemooc
c6b7491ec600fbb0be563c4f3f0a0480f8f52270
[ "MIT" ]
null
null
null
simplemooc/courses/migrations/0005_auto_20161208_0612.py
willsilvano/django-simplemooc
c6b7491ec600fbb0be563c4f3f0a0480f8f52270
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-08 08:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
46.785714
173
0.607252
556ac9158d6f667d12a731b341f1efca16f50aa7
2,700
py
Python
mycode/Ch. 8/tictactoe.py
evogel2/python-for-absolute-beginners-course
56e189bf049710ee4d4ca674c1f16291b7ea11b9
[ "MIT" ]
null
null
null
mycode/Ch. 8/tictactoe.py
evogel2/python-for-absolute-beginners-course
56e189bf049710ee4d4ca674c1f16291b7ea11b9
[ "MIT" ]
null
null
null
mycode/Ch. 8/tictactoe.py
evogel2/python-for-absolute-beginners-course
56e189bf049710ee4d4ca674c1f16291b7ea11b9
[ "MIT" ]
null
null
null
# create the board def create_board(): # board = [ # [r1_c1, r1_c2, r1_c3], # [r2_c1, r2_c2, r2_c3], # [r3_c1, r3_c2, r3_c3] # ] # Board is a list of rows # Rows are a list of cells board = [ [None, None, None], [None, None, None], [Non...
22.131148
81
0.571852
aeba2ae2e147b1e82856eafea8a1dd27a8829822
1,783
py
Python
functionaltests/common/datagen.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
functionaltests/common/datagen.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
functionaltests/common/datagen.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace 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 dist...
31.839286
73
0.681997
a5dec97e3858280bca93d67fc27cf5a92b25a2ff
142
py
Python
tests/unit/clone.py
microsoft/torchy
2c36cc50246dfeb22b9d65a402050398b78c14e5
[ "MIT" ]
4
2021-12-30T19:54:57.000Z
2022-03-15T23:59:55.000Z
tests/unit/clone.py
microsoft/torchy
2c36cc50246dfeb22b9d65a402050398b78c14e5
[ "MIT" ]
null
null
null
tests/unit/clone.py
microsoft/torchy
2c36cc50246dfeb22b9d65a402050398b78c14e5
[ "MIT" ]
null
null
null
from testdriver import * x = torch.tensor(((3.,2.), (7.,9.))) y = x.clone().detach() w = x.add(y) y.add_(x) z = x.add(x) print(w) print(z)
11.833333
36
0.556338
eb0d81d493cfce6b6b587619c99b638bea41187a
442
py
Python
homeassistant/components/generic/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/generic/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/generic/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the generic (IP Camera) integration.""" DOMAIN = "generic" DEFAULT_NAME = "Generic Camera" CONF_CONTENT_TYPE = "content_type" CONF_LIMIT_REFETCH_TO_URL_CHANGE = "limit_refetch_to_url_change" CONF_STILL_IMAGE_URL = "still_image_url" CONF_STREAM_SOURCE = "stream_source" CONF_FRAMERATE = "framerate" GET_...
27.625
64
0.816742
ef17ac611c45024ad5c7c0d22a4e4eccd24ad177
4,423
py
Python
dm_control/viewer/gui/fullscreen_quad.py
h8907283/dm_control
fe4449606742a7b8bec81930790b98244cddc538
[ "Apache-2.0" ]
2,863
2018-01-03T01:38:52.000Z
2022-03-30T09:49:50.000Z
dm_control/viewer/gui/fullscreen_quad.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
266
2018-01-03T16:00:04.000Z
2022-03-26T15:45:48.000Z
dm_control/viewer/gui/fullscreen_quad.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
580
2018-01-03T03:17:27.000Z
2022-03-31T19:29:32.000Z
# Copyright 2018 The dm_control Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.103175
79
0.715804
f263722f1e6f2ea2b9719da0f40b24bd0b60eddc
7,203
py
Python
finrl/pairlist/IPairList.py
JuohmaruSanshiro/FinRL-Library
d62fd577a0be37e1daffdc5ba10862e42b38e04b
[ "MIT" ]
2
2021-03-16T02:33:57.000Z
2021-04-01T02:09:49.000Z
finrl/pairlist/IPairList.py
JuohmaruSanshiro/FinRL-Library
d62fd577a0be37e1daffdc5ba10862e42b38e04b
[ "MIT" ]
null
null
null
finrl/pairlist/IPairList.py
JuohmaruSanshiro/FinRL-Library
d62fd577a0be37e1daffdc5ba10862e42b38e04b
[ "MIT" ]
2
2021-03-16T07:04:33.000Z
2021-12-19T09:12:10.000Z
""" PairList Handler base class """ import logging from abc import ABC, abstractmethod, abstractproperty from copy import deepcopy from typing import Any, Dict, List from cachetools import TTLCache, cached from finrl.exceptions import OperationalException from finrl.exchange import market_is_active logger = logging...
38.935135
97
0.6389
b8c60d95cbe8c09f4fb9d65881b5af9fbc5ed92b
1,580
py
Python
tools/mkdocs_macros_bids/main.py
JuliusWelzel/bids-specification
bebf4937fbacc26e7d820cf98501b1cc73d826db
[ "CC-BY-4.0" ]
null
null
null
tools/mkdocs_macros_bids/main.py
JuliusWelzel/bids-specification
bebf4937fbacc26e7d820cf98501b1cc73d826db
[ "CC-BY-4.0" ]
null
null
null
tools/mkdocs_macros_bids/main.py
JuliusWelzel/bids-specification
bebf4937fbacc26e7d820cf98501b1cc73d826db
[ "CC-BY-4.0" ]
1
2022-01-16T13:48:51.000Z
2022-01-16T13:48:51.000Z
"""This package is used to build elements in the bids-specification schema into MarkDown format for the specification text. Functions decorated in "define_env()" are callable throughout the specification and are run/rendered with the mkdocs plugin "macros". """ import os import sys code_path = os.path.abspath(os.path...
35.909091
79
0.755696
099d53e039365f205eb5e3c30b23f710c1217df7
5,153
py
Python
lib/spack/spack/test/cmd/gpg.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
lib/spack/spack/test/cmd/gpg.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/test/cmd/gpg.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import pytest import llnl.util.filesystem as fs import spack.util.executable import spack.util.gpg from spac...
32.20625
74
0.656705
6b61dfa191f5696af30d6b1503b6bb7ecfaa18b3
60,033
py
Python
file.py
bictorv/chaosnet-bridge
15448ae4b7b6cd2ba5ca09f5f5c755e559246620
[ "ECL-2.0", "Apache-2.0" ]
11
2017-08-29T11:13:08.000Z
2021-05-08T01:58:06.000Z
file.py
bictorv/chaosnet-bridge
15448ae4b7b6cd2ba5ca09f5f5c755e559246620
[ "ECL-2.0", "Apache-2.0" ]
12
2017-11-30T18:07:03.000Z
2021-04-03T18:11:34.000Z
file.py
bictorv/chaosnet-bridge
15448ae4b7b6cd2ba5ca09f5f5c755e559246620
[ "ECL-2.0", "Apache-2.0" ]
2
2018-11-08T15:39:47.000Z
2020-06-23T06:59:33.000Z
# Copyright © 2020 Björn Victor (bjorn@victor.se) # Chaosnet client for FILE protocol # Demonstrates the Packet API for the NCP of cbridge, the bridge program for various Chaosnet implementations. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance w...
44.567929
168
0.522729
e3af51ad3fd306d6af32ce3568fd7f280774a821
6,514
py
Python
petra_viewer/utils/fio_reader.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
petra_viewer/utils/fio_reader.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
petra_viewer/utils/fio_reader.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
# Taken from HasyUtils import numpy as np class fioColumn: ''' the class represents a column of a FIO file. The first column is the x-axis which is used by all columns, name_in, e.g. test_00001_C1 ''' def __init__(self, name_in): self.name = name_in lst = self.name.split('_') ...
35.210811
104
0.4716
0e1b05341dd4fc134ad1f7c9580d033ae39780c6
1,294
py
Python
TME 13. GAIL/Behavioral-Cloning/behavioral_cloning.py
hanouticelina/reinforcement-learning
c7c6765486ea9546bbd8ce75e6032a408a1410cf
[ "MIT" ]
null
null
null
TME 13. GAIL/Behavioral-Cloning/behavioral_cloning.py
hanouticelina/reinforcement-learning
c7c6765486ea9546bbd8ce75e6032a408a1410cf
[ "MIT" ]
null
null
null
TME 13. GAIL/Behavioral-Cloning/behavioral_cloning.py
hanouticelina/reinforcement-learning
c7c6765486ea9546bbd8ce75e6032a408a1410cf
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable from torch.nn import functional as F from torch.distributions import Categorical from torch.optim import Adam import numpy as np from utils import * import math from expert_dataset import * class BehavioralCloning(nn.Module): """ Behavi...
28.130435
62
0.525502
6a06811e8aa301c53c84c8da8e5ad4293552e49b
4,693
py
Python
.ipynb_checkpoints/og_app-checkpoint.py
ACeldo1/TwitterNLP
77b46d8cbcdfddaa541dfdf9e975aac761c9a729
[ "MIT" ]
null
null
null
.ipynb_checkpoints/og_app-checkpoint.py
ACeldo1/TwitterNLP
77b46d8cbcdfddaa541dfdf9e975aac761c9a729
[ "MIT" ]
null
null
null
.ipynb_checkpoints/og_app-checkpoint.py
ACeldo1/TwitterNLP
77b46d8cbcdfddaa541dfdf9e975aac761c9a729
[ "MIT" ]
null
null
null
import flask import os import pickle import pandas as pd import skimage import string import nltk from nltk.corpus import stopwords, wordnet from nltk.stem import PorterStemmer, WordNetLemmatizer, SnowballStemmer stopwords = stopwords.words('english') app = flask.Flask(__name__, template_folder='templates') #path_to...
28.969136
91
0.664394
b7386bbf28d592cc303c8a3da3826fa258b9334d
2,610
py
Python
godhand/__init__.py
zombie-guru/godhand-api
05213589e07b59c59f516ba91aeae9fefba8bf18
[ "MIT" ]
1
2017-01-03T04:43:23.000Z
2017-01-03T04:43:23.000Z
godhand/__init__.py
zombie-guru/godhand-api
05213589e07b59c59f516ba91aeae9fefba8bf18
[ "MIT" ]
null
null
null
godhand/__init__.py
zombie-guru/godhand-api
05213589e07b59c59f516ba91aeae9fefba8bf18
[ "MIT" ]
null
null
null
import logging from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from pyramid.config import Configurator from pyramid.session import SignedCookieSessionFactory import couchdb.client import couchdb.http from .config import GodhandConfiguration from ...
32.625
68
0.737165
220b08edf9664aa5a9b6070e32bce80ee7bd3d24
1,601
py
Python
tests/test_cli_buckets_list.py
hall-lab/cloud-polices
85075d909e6450c5ae21efb566ab9075f8fe8b16
[ "MIT" ]
null
null
null
tests/test_cli_buckets_list.py
hall-lab/cloud-polices
85075d909e6450c5ae21efb566ab9075f8fe8b16
[ "MIT" ]
null
null
null
tests/test_cli_buckets_list.py
hall-lab/cloud-polices
85075d909e6450c5ae21efb566ab9075f8fe8b16
[ "MIT" ]
null
null
null
import re, subprocess, unittest from mock import MagicMock, Mock, patch from click.testing import CliRunner from .context import hlcloud from hlcloud import cli_buckets_list class CliBucketsListTest(unittest.TestCase): @patch("google.cloud.storage.Client") def test_buckets_list(self, client_patch): e...
32.673469
105
0.63273
c793579366c0bb42aa25ccc1d12349d0e49a61cb
13,166
py
Python
test/parser/test_parser_visitor.py
georgia-tech-db/Eva
ab457457a0bf39940384f7036e9d2f5742283432
[ "Apache-2.0" ]
6
2019-09-19T14:24:14.000Z
2019-11-27T16:47:48.000Z
test/parser/test_parser_visitor.py
georgia-tech-db/Eva
ab457457a0bf39940384f7036e9d2f5742283432
[ "Apache-2.0" ]
10
2019-09-09T14:31:27.000Z
2019-12-12T20:22:41.000Z
test/parser/test_parser_visitor.py
georgia-tech-db/Eva
ab457457a0bf39940384f7036e9d2f5742283432
[ "Apache-2.0" ]
17
2019-09-18T14:24:46.000Z
2019-12-12T22:50:19.000Z
# coding=utf-8 # Copyright 2018-2020 EVA # # 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 ...
35.297587
78
0.61955
710f22fe8f8fc56a3cf9f8befc330e883355c259
5,381
py
Python
test/functional/rpc_preciousblock.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
test/functional/rpc_preciousblock.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
test/functional/rpc_preciousblock.py
vivuscoin/vivuscoin
ba0db89712234bf68b2d6b63ef2c420d65c7c25d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Copyright (c) 2021 The Vivuscoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the preciousblock RPC.""" from test_framework....
46.387931
127
0.676454
9291e026aa7a85f7a0f73e86cb6857e77b918766
6,144
py
Python
tests/test_web_delta.py
N-Buchanan/web_delta
1497d9624ae4afa59d7c44176c479845c4993130
[ "MIT" ]
null
null
null
tests/test_web_delta.py
N-Buchanan/web_delta
1497d9624ae4afa59d7c44176c479845c4993130
[ "MIT" ]
null
null
null
tests/test_web_delta.py
N-Buchanan/web_delta
1497d9624ae4afa59d7c44176c479845c4993130
[ "MIT" ]
null
null
null
from web_delta.web_delta import WebDelta, RateLimit import unittest import os import pickle import threading from flask import Flask import logging from queue import Queue # set up flask app for testing app = Flask(__name__) @app.route('/static') def index(): return 'static' @app.route('/changes') def changes():...
26.829694
91
0.594727
2d845ea736f9579abe8ea07ff4252fcf6462afa7
4,729
py
Python
twint/url.py
mabalegend/twint
0349cb4eafa2829ff61ab712a9b36a4fea9fdb01
[ "MIT" ]
null
null
null
twint/url.py
mabalegend/twint
0349cb4eafa2829ff61ab712a9b36a4fea9fdb01
[ "MIT" ]
null
null
null
twint/url.py
mabalegend/twint
0349cb4eafa2829ff61ab712a9b36a4fea9fdb01
[ "MIT" ]
null
null
null
import datetime, time from sys import platform import logging as logme mobile = "https://mobile.twitter.com" base = "https://twitter.com/i" def _sanitizeQuery(base,params): _serialQuery = "" for p in params: _serialQuery += p[0]+"="+p[1]+"&" _serialQuery = base + "?" + _serialQuery[:-1].replace(":...
29.191358
89
0.581941
2a5e6a4d0bb87f26c257b43bfded653daf1bfe11
6,540
py
Python
sdk/core/azure-core/tests/test_streaming.py
v-rajdeep/azure-sdk-for-python
8568a833322f777087df2097e8dc8cc22cd67750
[ "MIT" ]
1
2021-09-16T02:33:52.000Z
2021-09-16T02:33:52.000Z
sdk/core/azure-core/tests/test_streaming.py
v-rajdeep/azure-sdk-for-python
8568a833322f777087df2097e8dc8cc22cd67750
[ "MIT" ]
1
2019-08-05T19:14:28.000Z
2019-08-05T19:30:05.000Z
sdk/core/azure-core/tests/test_streaming.py
v-rajdeep/azure-sdk-for-python
8568a833322f777087df2097e8dc8cc22cd67750
[ "MIT" ]
1
2016-04-19T22:15:47.000Z
2016-04-19T22:15:47.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
43.026316
95
0.708563
84148974992b84fccabec90a5d23fd1ff3f97766
10,103
py
Python
Back-End/Python/Basics/Part -4- OOP/04 - Descriptors/08_application_2.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
25
2021-04-28T02:51:26.000Z
2022-03-24T13:58:04.000Z
Back-End/Python/Basics/Part -4- OOP/04 - Descriptors/08_application_2.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
1
2022-03-03T23:33:41.000Z
2022-03-03T23:35:41.000Z
Back-End/Python/Basics/Part -4- OOP/04 - Descriptors/08_application_2.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
15
2021-05-30T01:35:20.000Z
2022-03-25T12:38:25.000Z
import collections class Int: def __init__(self, min_value=None, max_value=None): self.min_value = min_value self.max_value = max_value def __set_name__(self, owner_class, name): self.name = name def __set__(self, instance, value): if not isinstance(value,...
26.941333
85
0.600911
e6c629789888f06ad19137922ab8e50625063808
30,787
py
Python
tests/httpwrappers/tests.py
Fak3/django
1ae8014a0bbae0cc1d951c1ee0f7888b6141f582
[ "PSF-2.0", "BSD-3-Clause" ]
19
2015-07-07T02:08:59.000Z
2021-11-08T11:05:40.000Z
tests/httpwrappers/tests.py
Fak3/django
1ae8014a0bbae0cc1d951c1ee0f7888b6141f582
[ "PSF-2.0", "BSD-3-Clause" ]
31
2018-08-26T14:01:16.000Z
2018-10-19T07:35:57.000Z
tests/httpwrappers/tests.py
Fak3/django
1ae8014a0bbae0cc1d951c1ee0f7888b6141f582
[ "PSF-2.0", "BSD-3-Clause" ]
145
2019-03-14T18:54:45.000Z
2022-03-04T20:25:31.000Z
import copy import json import os import pickle import unittest import uuid from django.core.exceptions import DisallowedRedirect from django.core.serializers.json import DjangoJSONEncoder from django.core.signals import request_finished from django.db import close_old_connections from django.http import ( BadHead...
39.319285
118
0.61016
7fea4873af14d679f304605cf82ed0ac7d9b8531
5,751
py
Python
ptrace_inst/libwrap.py
liona24/ptrace-inst
86e410b97dd08dc5a809f4c6e06e520697934679
[ "MIT" ]
null
null
null
ptrace_inst/libwrap.py
liona24/ptrace-inst
86e410b97dd08dc5a809f4c6e06e520697934679
[ "MIT" ]
null
null
null
ptrace_inst/libwrap.py
liona24/ptrace-inst
86e410b97dd08dc5a809f4c6e06e520697934679
[ "MIT" ]
null
null
null
import os import enum import ctypes from typing import Callable, Any, Type SHARED_LIB_PATH = os.path.join(os.path.dirname(__file__), "..", "build", "libptrace_inst.so") LIB = ctypes.cdll.LoadLibrary(SHARED_LIB_PATH) class _ProcessHandle(ctypes.Structure): _fields_ = [ ("pid", ctypes.c_int), ("rip"...
28.755
122
0.655712
9e4a6fc00ed60b8160dcb138671aeafce87860c5
7,604
py
Python
lyacompiler/lya_builtins.py
MC911-MV-1s2016/lya-compiler-python
b876857161ca988a419a3c27a2f1cbb5214c50e6
[ "BSD-3-Clause" ]
null
null
null
lyacompiler/lya_builtins.py
MC911-MV-1s2016/lya-compiler-python
b876857161ca988a419a3c27a2f1cbb5214c50e6
[ "BSD-3-Clause" ]
null
null
null
lyacompiler/lya_builtins.py
MC911-MV-1s2016/lya-compiler-python
b876857161ca988a419a3c27a2f1cbb5214c50e6
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------ # MC911 - Compiler construction laboratory. # IC - UNICAMP # # RA094139 - Marcelo Mingatos de Toledo # RA093175 - Victor Fernando Pompeo Barbosa # # lya_builtins.py # Lya builtins. # # ------------------------------------------------------------ from .lya_...
22.430678
75
0.569569
780de3b291b1ddcd03cb83970fc6cfcf297887e4
2,636
py
Python
Discussion1.py
ai-se/TCP2020
5480547ae3be025f7b0c7c15768be5105757fa98
[ "MIT" ]
1
2020-08-11T15:16:08.000Z
2020-08-11T15:16:08.000Z
Discussion1.py
ai-se/TCP2020
5480547ae3be025f7b0c7c15768be5105757fa98
[ "MIT" ]
null
null
null
Discussion1.py
ai-se/TCP2020
5480547ae3be025f7b0c7c15768be5105757fa98
[ "MIT" ]
null
null
null
import pandas as pd # import numpy as np # import sys # import statistics def read_data(path): data = pd.read_csv(path) data = data.to_numpy() return data def main(): projects = ['TCT_deeplearning4j@deeplearning4j.csv', 'TCT_diaspora@diaspora.csv', 'TCT_eclipse@jetty-...
37.657143
119
0.572838
ce1ffd4ff091528043e56856f054a84072e8dc2d
872
py
Python
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt4.Qwt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
3
2018-11-27T06:30:23.000Z
2021-05-30T15:56:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt4.Qwt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt4.Qwt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2018-04-04T12:38:47.000Z
2018-04-04T12:38:47.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2017, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
41.52381
80
0.620413
d02adf38cf6c6216afbd122cc88e9799362a9f7d
36,516
py
Python
cea/demand/hourly_procedure_heating_cooling_system_load.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
121
2017-08-15T20:10:22.000Z
2022-03-24T01:25:42.000Z
cea/demand/hourly_procedure_heating_cooling_system_load.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
2,121
2017-07-27T12:02:01.000Z
2022-03-31T16:39:28.000Z
cea/demand/hourly_procedure_heating_cooling_system_load.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
42
2017-09-19T09:59:56.000Z
2022-02-19T20:19:56.000Z
# -*- coding: utf-8 -*- import warnings import numpy as np from cea.demand import airconditioning_model, rc_model_SIA, control_heating_cooling_systems, \ space_emission_systems, latent_loads, constants __author__ = "Gabriel Happle" __copyright__ = "Copyright 2016, Architecture and Building Systems - ETH Zuri...
36.922144
141
0.658177
06d4c54edea895edecbaa413d3495c8273bff956
3,150
py
Python
ginjinn/commandline/commandline_app/commandline_app.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
17
2021-07-24T20:55:58.000Z
2022-02-09T05:15:04.000Z
ginjinn/commandline/commandline_app/commandline_app.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
1
2021-12-21T06:33:56.000Z
2022-02-05T13:57:53.000Z
ginjinn/commandline/commandline_app/commandline_app.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
null
null
null
''' GinJinn commandline application code. ''' from ginjinn.commandline.argument_parser import GinjinnArgumentParser class GinjinnCommandlineApplication: '''GinjinnCommandlineApplication GinJinn commandline application. ''' def __init__(self): self.parser = GinjinnArgumentParser() self...
28.636364
99
0.6
1a2fd4e0b8c7ae7228d7768503d24b8a68d0a440
2,581
py
Python
lib/galaxy_test/selenium/test_tool_describing_tours.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy_test/selenium/test_tool_describing_tours.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy_test/selenium/test_tool_describing_tours.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import unittest from .framework import selenium_test, SeleniumTestCase class ToolDescribingToursTestCase(SeleniumTestCase): def setUp(self): super().setUp() self.home() @selenium_test def test_generate_tour_no_data(self): """Ensure a tour without data is generated and pops up.""...
31.864198
119
0.689655
bf84b59b9801dc008cb263c600a8af734fd57bf0
3,671
py
Python
tests/bugs/core_0297_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_0297_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_0297_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_0297 # title: bug #585624 IB server stalled by simple script # decription: # ::: NB ::: # ### Name of original test has no any relation with actual task of this test: ### # https://github.com/FirebirdSQL/fbtcs/blob/mast...
25.671329
97
0.53228
640f90397134552521cb69369a13f44d8a3cf14f
5,180
py
Python
Qualificacao/3dConv.py
Hadamanthis/Mestrado
f95bed5a5cc9ce1a7b6e8ee5c0f0a97a5e25a4da
[ "Apache-2.0" ]
1
2018-06-30T18:54:29.000Z
2018-06-30T18:54:29.000Z
Qualificacao/3dConv.py
Hadamanthis/Mestrado
f95bed5a5cc9ce1a7b6e8ee5c0f0a97a5e25a4da
[ "Apache-2.0" ]
null
null
null
Qualificacao/3dConv.py
Hadamanthis/Mestrado
f95bed5a5cc9ce1a7b6e8ee5c0f0a97a5e25a4da
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers.convolutional import Convolution3D, MaxPooling3D from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.utils import np_utils from keras import backend as K fro...
31.779141
116
0.638031
365e2dcb3c38c7644ec87937fdd3a50dc1841bd1
132
py
Python
tests/test_zappa_client.py
xdssio/zappa_client
f2a511fb7d905dca78b6691b9f3042881e43e3a7
[ "MIT" ]
1
2019-03-03T08:01:46.000Z
2019-03-03T08:01:46.000Z
tests/test_zappa_client.py
xdssio/zappa_client
f2a511fb7d905dca78b6691b9f3042881e43e3a7
[ "MIT" ]
null
null
null
tests/test_zappa_client.py
xdssio/zappa_client
f2a511fb7d905dca78b6691b9f3042881e43e3a7
[ "MIT" ]
null
null
null
from zappa_client import ZappaClient def test_zappa_client(): # TODO client = ZappaClient() assert client is not None
16.5
36
0.719697
bdd9bd104405a69d33abe62bedbbaf8753070c63
188
py
Python
sandbox/array_check.py
pixelflux/pyflecs
58cf8c7cb92deeae77e5802bb39ea4cbdb6ecc34
[ "MIT" ]
null
null
null
sandbox/array_check.py
pixelflux/pyflecs
58cf8c7cb92deeae77e5802bb39ea4cbdb6ecc34
[ "MIT" ]
null
null
null
sandbox/array_check.py
pixelflux/pyflecs
58cf8c7cb92deeae77e5802bb39ea4cbdb6ecc34
[ "MIT" ]
null
null
null
""" A script to test how to dynamically create a numpy structured array. """ import numpy as np import pyflecs as flecs values = np.array([1, 2, 3], dtype='uint32') flecs.test(values)
15.666667
68
0.707447
3c6391d520a58cce0c8253b41862e6870f806857
40,161
py
Python
spaceinvaders.py
fustilio/Space_Invaders
37d55837b8e5e0c542e53ac03167680326b0418a
[ "MIT" ]
null
null
null
spaceinvaders.py
fustilio/Space_Invaders
37d55837b8e5e0c542e53ac03167680326b0418a
[ "MIT" ]
3
2019-10-11T08:51:45.000Z
2019-10-12T04:25:21.000Z
spaceinvaders.py
fustilio/Space_Invaders
37d55837b8e5e0c542e53ac03167680326b0418a
[ "MIT" ]
1
2019-10-11T15:27:21.000Z
2019-10-11T15:27:21.000Z
#!/usr/bin/env python # Space Invaders # Created by Lee Robinson from pygame import * import sys from os.path import abspath, dirname from random import choice import numpy as np from enum import Enum from model.circuit_grid_model import CircuitGridModel from controls.circuit_grid import CircuitGrid, CircuitGridNode...
39.567488
122
0.542218
8a877d4a63e2a8d989747b24ad4b8d87079d291a
6,413
py
Python
self_finance/back_end/insights/image_registry.py
MaksimDan/self-finance
788fe067e6814eacde65ec2b9c7122826a61a89b
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "X11", "MS-PL" ]
null
null
null
self_finance/back_end/insights/image_registry.py
MaksimDan/self-finance
788fe067e6814eacde65ec2b9c7122826a61a89b
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "X11", "MS-PL" ]
null
null
null
self_finance/back_end/insights/image_registry.py
MaksimDan/self-finance
788fe067e6814eacde65ec2b9c7122826a61a89b
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "X11", "MS-PL" ]
null
null
null
import datetime import logging from io import StringIO from threading import BoundedSemaphore from threading import Lock from threading import Thread from self_finance.back_end.date_range import DateRange from self_finance.back_end.insights._plot import _Plot from self_finance.back_end.plot_cache import PlotCache from...
38.401198
116
0.614377
e478d460f9f1df16455260026b2002f822406c48
2,425
py
Python
common/src/stack/command/stack/commands/report/host/resolv/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/report/host/resolv/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/report/host/resolv/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2018 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ import stack.commands class Command(stack.commands.report.host.command): """ Generate the /etc/resolv.conf for a host <arg optional='0' re...
27.247191
72
0.677938
f6ef3ebb291025a3dbd4d203d96f08188a6b88a6
3,971
py
Python
manualLabelCv.py
hz-ants/6d-annotator
d9502aa7469bc7edfea05a6303cf11b1f31f0417
[ "MIT" ]
13
2019-09-10T01:44:56.000Z
2022-03-12T04:07:02.000Z
manualLabelCv.py
hz-ants/6d-annotator
d9502aa7469bc7edfea05a6303cf11b1f31f0417
[ "MIT" ]
1
2022-03-07T14:19:31.000Z
2022-03-07T14:19:31.000Z
manualLabelCv.py
hz-ants/6d-annotator
d9502aa7469bc7edfea05a6303cf11b1f31f0417
[ "MIT" ]
2
2019-10-18T06:28:59.000Z
2020-07-09T19:03:05.000Z
import argparse import cv2 import os from utils import * from matrixUtils import * from BoundingBox import BoundingBox # Settings refPt = [] files = [] file_counter = 0 angle_max = 720000000 angle_full_range = 6.4 t_range = 320 t_grnlrty = 160 t_z_grnlrty = 200 image = None clone = None # Variables dependent on the ...
30.782946
105
0.699824
235c36889a0952a2232065573e4d5bf176a595b0
3,499
py
Python
Testing/cryptographic/crypto.py
taoluwork/bcai
6097ee88e11f99824a251f2c2a65b2656b75a5de
[ "Apache-2.0" ]
1
2020-03-05T20:11:31.000Z
2020-03-05T20:11:31.000Z
Testing/cryptographic/crypto.py
taoluwork/bcai
6097ee88e11f99824a251f2c2a65b2656b75a5de
[ "Apache-2.0" ]
7
2020-04-06T01:38:09.000Z
2022-01-22T11:47:18.000Z
Testing/cryptographic/crypto.py
taoluwork/bcai
6097ee88e11f99824a251f2c2a65b2656b75a5de
[ "Apache-2.0" ]
3
2019-08-14T14:17:22.000Z
2019-09-19T19:04:40.000Z
#import cryptography import getpass import sys import cryptography.hazmat.backends as backends import cryptography.hazmat.primitives.asymmetric.rsa as rsa import cryptography.hazmat.primitives.serialization as serial import cryptography.hazmat.primitives.hashes as hashes import cryptography.hazmat.primitives as primiti...
31.522523
75
0.547299
825812f83c270a0776563ea1eeb97d10111cb2b5
4,902
py
Python
benchmarks/benchmark.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
95
2020-07-06T17:39:03.000Z
2022-03-28T13:50:01.000Z
benchmarks/benchmark.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
60
2020-07-06T17:38:51.000Z
2022-03-26T21:40:41.000Z
benchmarks/benchmark.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
8
2020-07-18T23:54:46.000Z
2022-01-19T20:08:44.000Z
import functools import os import sys import time from collections import namedtuple import formulaic import numpy import pandas import patsy from formulaic import Formula from uncertainties import ufloat ALL_TOOLINGS = ['patsy', 'formulaic', 'formulaic_sparse', 'R', 'R_sparse'] formulas = { "a": ALL_TOOLINGS, ...
27.385475
112
0.572827
71d72cb0ec420585c619955ed4fc81dde2264a8f
929
py
Python
sandbox/bloom_count.py
maarten1983/khmer
417aaa57f0659685c01887a6910de1c08d0a73e5
[ "BSD-3-Clause" ]
1
2019-11-02T15:12:44.000Z
2019-11-02T15:12:44.000Z
sandbox/bloom_count.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
sandbox/bloom_count.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # # using bloom filter to count unique kmers import khmer i...
26.542857
74
0.684607
5ecb73f618065fa2e1b97e07cbdc6ad4a84724e4
214
py
Python
src/sysinfo/main.py
derekwu90/sysinfo
5cb64fa64b564cda78813da80e76da7a52288b88
[ "MIT" ]
null
null
null
src/sysinfo/main.py
derekwu90/sysinfo
5cb64fa64b564cda78813da80e76da7a52288b88
[ "MIT" ]
null
null
null
src/sysinfo/main.py
derekwu90/sysinfo
5cb64fa64b564cda78813da80e76da7a52288b88
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import platform def get_platform_info(): return platform.platform() def main(): print(platform.platform()) return if __name__ == '__main__': main()
14.266667
30
0.640187
99e39de7c285ccfdefd4ae3aa0d997436c4f7cb0
1,218
py
Python
app/utils/s3_helpers.py
alex-pezzati/sonic-fog
ccbfeb0b9d4c1ed9688eb2e9b79090a6855d7310
[ "PostgreSQL", "Unlicense" ]
3
2021-03-17T01:49:42.000Z
2021-03-23T03:05:23.000Z
app/utils/s3_helpers.py
alex-pezzati/Sound_Cloud
ccbfeb0b9d4c1ed9688eb2e9b79090a6855d7310
[ "PostgreSQL", "Unlicense" ]
40
2021-03-18T21:47:21.000Z
2021-03-26T16:45:25.000Z
app/utils/s3_helpers.py
alex-pezzati/sonic-fog
ccbfeb0b9d4c1ed9688eb2e9b79090a6855d7310
[ "PostgreSQL", "Unlicense" ]
null
null
null
import boto3 import botocore import os import uuid BUCKET_NAME = os.environ.get("S3_BUCKET") S3_LOCATION = f"https://{BUCKET_NAME}.s3.amazonaws.com/" ALLOWED_EXTENSIONS = {"pdf", "png", "jpg", "jpeg", "gif"} s3 = boto3.client( "s3", aws_access_key_id=os.environ.get("S3_KEY"), aws_secret_access_key=os.environ...
26.478261
67
0.633826
a1e55c5253519961a0da8478da13ea28526129e6
4,918
py
Python
GPL/traffic_profiles/trex/trex-stl-2n3n-ethip4-ip4src254-1c4n.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_profiles/trex/trex-stl-2n3n-ethip4-ip4src254-1c4n.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
GPL/traffic_profiles/trex/trex-stl-2n3n-ethip4-ip4src254-1c4n.py
nidhyanandhan/csit
2156583b4e66f2c3c35903c854b1823b76a4e9a6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Cisco and/or its affiliates. # 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 ag...
29.806061
74
0.502847
808f77d8d0754f29b2aab8b1efd53e0fbe3226ba
3,548
py
Python
cosmotools/gansystem.py
nperraud/3DcosmoGAN
0d566bca495f764c1287c5e216e20601fa975cda
[ "MIT" ]
10
2019-08-17T10:07:23.000Z
2022-03-14T16:36:58.000Z
cosmotools/gansystem.py
nperraud/3DcosmoGAN
0d566bca495f764c1287c5e216e20601fa975cda
[ "MIT" ]
null
null
null
cosmotools/gansystem.py
nperraud/3DcosmoGAN
0d566bca495f764c1287c5e216e20601fa975cda
[ "MIT" ]
1
2019-08-17T21:17:44.000Z
2019-08-17T21:17:44.000Z
import numpy as np import tensorflow as tf from gantools.gansystem import UpscaleGANsystem from .model import cosmo_metric_list import itertools class CosmoUpscaleGANsystem(UpscaleGANsystem): def default_params(self): # Global parameters # ----------------- d_param = super().default_par...
42.238095
145
0.600056
e62d414a7c48b94291153483ec8ca105fa11c271
19,015
py
Python
python/test_perforce.py
inflexiongames/perforce-buildkite-plugin
8778467616c24e755b95b89bf22ba0c3088cc793
[ "MIT" ]
null
null
null
python/test_perforce.py
inflexiongames/perforce-buildkite-plugin
8778467616c24e755b95b89bf22ba0c3088cc793
[ "MIT" ]
null
null
null
python/test_perforce.py
inflexiongames/perforce-buildkite-plugin
8778467616c24e755b95b89bf22ba0c3088cc793
[ "MIT" ]
null
null
null
""" Test perforce module for managing workspaces """ from contextlib import closing, contextmanager from functools import partial from threading import Thread import os import shutil import socket import subprocess import tempfile import time import zipfile import pytest from perforce import P4Repo def find_free_port...
41.608315
128
0.649435
2d4d577d301e34486329580b18e4862431e81424
1,680
py
Python
hello.py
niechao136/python_add_json_to_execl
c2191e02aa1102f3b1515964de4f12698b2e6bbc
[ "MIT" ]
null
null
null
hello.py
niechao136/python_add_json_to_execl
c2191e02aa1102f3b1515964de4f12698b2e6bbc
[ "MIT" ]
null
null
null
hello.py
niechao136/python_add_json_to_execl
c2191e02aa1102f3b1515964de4f12698b2e6bbc
[ "MIT" ]
null
null
null
import json import xlwt cn_value = [] tw_value = [] en_value = [] cn_key = {} tw_key = {} en_key = {} def find_str(_json, n, s, value, key): if isinstance(_json, dict): for index in _json: if isinstance(_json[index], str): key[s + "." + index] = len(value) valu...
30.545455
85
0.572024
291c5f56a54c8ab792453de4503c89f52c02fd25
2,038
py
Python
pydrake_implementation/test/allegro_ik_test.py
JasonJZLiu/Kinematic-Tree-IK-Solver
5d434dea76542b4a4e94bb92139997317f727747
[ "MIT" ]
3
2021-05-20T22:14:33.000Z
2022-03-16T02:07:04.000Z
pydrake_implementation/test/allegro_ik_test.py
JasonJZLiu/Kinematic-Tree-IK-Solver
5d434dea76542b4a4e94bb92139997317f727747
[ "MIT" ]
1
2022-01-10T09:47:24.000Z
2022-01-10T09:47:24.000Z
pydrake_implementation/test/allegro_ik_test.py
JasonJZLiu/Kinematic-Tree-IK-Solver
5d434dea76542b4a4e94bb92139997317f727747
[ "MIT" ]
null
null
null
from ik_solver import IKSolver import numpy as np if __name__ == "__main__": AllegroIKSolver = IKSolver(urdf_file = "allegro_assets/allegro_hand_description_right.urdf", model_name = "allegro_hand_right", root_link_name = "palm_link", ...
45.288889
118
0.560353
9b3b99a693c75912658409974d10929aeb908e8f
852
py
Python
tests/test_homework.py
Majroch/vulcan-api
4448eeb64d2481b5deb643bcb32f2c9ee04463f5
[ "MIT" ]
null
null
null
tests/test_homework.py
Majroch/vulcan-api
4448eeb64d2481b5deb643bcb32f2c9ee04463f5
[ "MIT" ]
null
null
null
tests/test_homework.py
Majroch/vulcan-api
4448eeb64d2481b5deb643bcb32f2c9ee04463f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from .utils import PARAMS_HOMEWORK_LIST @pytest.mark.private @pytest.mark.parametrize("date, homework_expected_list", PARAMS_HOMEWORK_LIST) class TestHomework: @pytest.mark.online def test(self, client, date, homework_expected_list): homework_list = client.get_h...
32.769231
78
0.703052
32d0c29b83169cc0186b100f48e75ff82f60a373
684
py
Python
VariablesNcomments/PyVariables.py
IMBLACK-CMD/Pythonister
801a8fef7ef67fa84df2496a7d93738ced25e9d8
[ "MIT" ]
null
null
null
VariablesNcomments/PyVariables.py
IMBLACK-CMD/Pythonister
801a8fef7ef67fa84df2496a7d93738ced25e9d8
[ "MIT" ]
null
null
null
VariablesNcomments/PyVariables.py
IMBLACK-CMD/Pythonister
801a8fef7ef67fa84df2496a7d93738ced25e9d8
[ "MIT" ]
null
null
null
import constants #Variables are named locations that store data in memory #example number = 10 print("This is Number ", number) #assigning multiple variables the same value a,b,c = 1,2,"validate" print(a) print(b) print(c) #constants print("..... constants......") print(constants.PI) print(constants.GRAVITY) print("...
22.064516
70
0.694444
5a69a118f7f45bdd7e68d688d92b580a0fd74897
693
py
Python
homework-4/handout/hw4/tests.py
neelpawarcmu/deep-learning-library
401483fce40e3a025054596cbec368ff4f647661
[ "MIT" ]
null
null
null
homework-4/handout/hw4/tests.py
neelpawarcmu/deep-learning-library
401483fce40e3a025054596cbec368ff4f647661
[ "MIT" ]
null
null
null
homework-4/handout/hw4/tests.py
neelpawarcmu/deep-learning-library
401483fce40e3a025054596cbec368ff4f647661
[ "MIT" ]
null
null
null
import numpy as np def log_softmax(x, axis): ret = x - np.max(x, axis=axis, keepdims=True) lsm = np.log(np.sum(np.exp(ret), axis=axis, keepdims=True)) return ret - lsm def array_to_str(arr, vocab): return " ".join(vocab[a] for a in arr) def test_prediction(out, targ): out = log_sof...
27.72
70
0.587302
a25307a90642531c26d1ee5abbab5412450da97f
5,583
py
Python
src/network-manager/azext_network_manager/vendored_sdks/aio/operations/_effective_connectivity_configurations_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/aio/operations/_effective_connectivity_configurations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/aio/operations/_effective_connectivity_configurations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.694444
232
0.710013
a71b506208c2accac8d8d79bb0922e488b75f8c3
3,629
py
Python
setup.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
2
2019-09-13T20:27:39.000Z
2020-03-05T02:24:47.000Z
setup.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
46
2015-09-25T14:34:34.000Z
2020-10-05T22:04:36.000Z
setup.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
5
2016-04-25T15:01:39.000Z
2016-08-29T20:40:31.000Z
from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES import os import sys main_package = 'ehb_datasources' exclude_dirs = ['tests', 'fixtures'] class osx_install_data(install_data): ''' On MacOS, the platform-specific ...
33.601852
104
0.680904
84b35fc6a814d5050b7509c2cb47576ae8334c07
3,775
py
Python
tools/viz/check_gt.py
XinGuoZJU/horizon_detection
50e35ae5027f92c169bc8b2cf2d6333258b60b1d
[ "FSFAP" ]
null
null
null
tools/viz/check_gt.py
XinGuoZJU/horizon_detection
50e35ae5027f92c169bc8b2cf2d6333258b60b1d
[ "FSFAP" ]
null
null
null
tools/viz/check_gt.py
XinGuoZJU/horizon_detection
50e35ae5027f92c169bc8b2cf2d6333258b60b1d
[ "FSFAP" ]
null
null
null
import os import json import matplotlib.pyplot as plt import numpy as np def visualize(line_seg, pred_group, save_name, vp=None): # line_seg: n_number x 3, pred_group: list vp: group_num x dim fig = plt.figure() if vp is not None: axis_list = [1e8, -1e8, 1e8, -1e8] for item in vp: ...
30.691057
107
0.50649
df56791921ee626d8fd7cac54dd1a745955f9643
2,428
py
Python
fn_jira/fn_jira/components/jira_create_comment.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
fn_jira/fn_jira/components/jira_create_comment.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
fn_jira/fn_jira/components/jira_create_comment.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. """Function implementation Preprocessor script: inputs.jira_url = incident.properties.jiraurl inputs.jira_comment = note.text.content """ import logging from resilient_circuits impor...
35.705882
114
0.66145
7e3e5cdbb6eee328c30249cd40cd71b9d4e957c1
862
py
Python
Config Tool/page/examples/complex/complex_support.py
FrauBluher/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
51
2015-01-17T16:08:08.000Z
2022-01-02T05:06:25.000Z
Config Tool/page/examples/complex/complex_support.py
hhintoglu/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
null
null
null
Config Tool/page/examples/complex/complex_support.py
hhintoglu/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
39
2016-06-18T05:43:14.000Z
2022-03-16T13:19:15.000Z
#! /usr/bin/env python # # Support module generated by PAGE version 4.2 # In conjunction with Tcl version 8.6 # Jan. 27, 2014 12:16:28 AM import sys try: from Tkinter import * except ImportError: from tkinter import * try: import ttk py3 = 0 except ImportError: import tkinter.ttk as ttk p...
17.24
63
0.645012
098ad9c36ed2cf30f9c5d1bfc87837203353e78e
6,035
py
Python
console.py
Shinoa-Fores/bitcoind-ncurses2
76577831877857f6d196da3532bf8d28e9c9780a
[ "MIT" ]
null
null
null
console.py
Shinoa-Fores/bitcoind-ncurses2
76577831877857f6d196da3532bf8d28e9c9780a
[ "MIT" ]
null
null
null
console.py
Shinoa-Fores/bitcoind-ncurses2
76577831877857f6d196da3532bf8d28e9c9780a
[ "MIT" ]
null
null
null
# Copyright (c) 2014-2017 esotericnonsense (Daniel Edgecumbe) # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/mit-license.php import curses import curses.textpad import asyncio import decimal try: import ujson as json except ImportError: imp...
31.26943
84
0.557746
5341cb810c77dc954b3807cbd06d90cc55b64abe
3,702
py
Python
tests/test_user_model.py
IgorIvkin/Children
a43bbfae3f9390b12df83099437ff6bde7bfcc5d
[ "Apache-2.0" ]
null
null
null
tests/test_user_model.py
IgorIvkin/Children
a43bbfae3f9390b12df83099437ff6bde7bfcc5d
[ "Apache-2.0" ]
null
null
null
tests/test_user_model.py
IgorIvkin/Children
a43bbfae3f9390b12df83099437ff6bde7bfcc5d
[ "Apache-2.0" ]
null
null
null
""" Author: Igor, Lena Date: 2020.05.30 """ from children import create_app from models.user import User from services.user_service import UserService from services.base_service import BaseService from exceptions.model_exceptions import ColumnValidationError import pytest @pytest.fixture(scope='module') def app(): ...
31.641026
117
0.67423
4dae71dfa955617daaee343e729b4cee90ba175d
2,670
py
Python
ironic_inspector/common/keystone.py
LinkleYping/ironic-inspector-vul
0a99b93fc36b2055ea668bff60d2a9a705b8411b
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/keystone.py
LinkleYping/ironic-inspector-vul
0a99b93fc36b2055ea668bff60d2a9a705b8411b
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/keystone.py
LinkleYping/ironic-inspector-vul
0a99b93fc36b2055ea668bff60d2a9a705b8411b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
36.575342
71
0.710487
22cb61c5aec70129da019213d28ed1f1055adba0
12,172
py
Python
src/statistics/sentences.py
rmjacobson/privacy-crawler-parser-tokenizer
73d4cf884000ed20341ea15458834022360d22c5
[ "MIT" ]
null
null
null
src/statistics/sentences.py
rmjacobson/privacy-crawler-parser-tokenizer
73d4cf884000ed20341ea15458834022360d22c5
[ "MIT" ]
null
null
null
src/statistics/sentences.py
rmjacobson/privacy-crawler-parser-tokenizer
73d4cf884000ed20341ea15458834022360d22c5
[ "MIT" ]
null
null
null
""" Privacy Policy Project """ import argparse, datetime, json, matplotlib, matplotlib.pyplot as plt, os, random, re, signal from csv import reader, writer from math import ceil, sqrt from matplotlib.ticker import MaxNLocator import matplotlib.gridspec as gridspec from multiprocessing import Pool, Lock, Value, cpu_coun...
41.542662
154
0.644594
126049237ee4b20f001f0f00e6b7efcd499cb322
16,042
py
Python
edk2basetools/Workspace/MetaFileTable.py
matthewfcarlson/edk2-pytool-base
ddf78ca6e2110f03e020a5bd0ca32b2a463fecff
[ "BSD-2-Clause-Patent" ]
null
null
null
edk2basetools/Workspace/MetaFileTable.py
matthewfcarlson/edk2-pytool-base
ddf78ca6e2110f03e020a5bd0ca32b2a463fecff
[ "BSD-2-Clause-Patent" ]
1
2020-04-14T22:23:01.000Z
2020-04-15T06:47:53.000Z
edk2basetools/Workspace/MetaFileTable.py
matthewfcarlson/edk2-pytool-base
ddf78ca6e2110f03e020a5bd0ca32b2a463fecff
[ "BSD-2-Clause-Patent" ]
null
null
null
## @file # This file is used to create/update/query/erase a meta file table # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import uuid import edk2basetools.Common.EdkLogger as EdkL...
37.220418
155
0.564206
99531e29a24c7933a40648b55ae2393c1acbc4d2
3,884
py
Python
zs3/dataloaders/custom_transforms.py
vaynelau/ZS3-voc12
106feb947d79e889032e8e9181a7353a4d22b3a3
[ "Apache-2.0" ]
null
null
null
zs3/dataloaders/custom_transforms.py
vaynelau/ZS3-voc12
106feb947d79e889032e8e9181a7353a4d22b3a3
[ "Apache-2.0" ]
null
null
null
zs3/dataloaders/custom_transforms.py
vaynelau/ZS3-voc12
106feb947d79e889032e8e9181a7353a4d22b3a3
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import torch from PIL import Image, ImageOps, ImageFilter class Normalize: """Normalize a tensor image with mean and standard deviation. Args: mean (tuple): means for each channel. std (tuple): standard deviations for each channel. """ d...
31.322581
90
0.540937
0c3310e4dd863f8643cf81157f3d632dfc57cacd
11,376
py
Python
env/lib/python3.6/site-packages/retro/retro_env.py
boodahDEV/Soni-IA
c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948
[ "Apache-2.0" ]
2
2019-04-05T05:51:23.000Z
2019-04-07T04:21:47.000Z
env/lib/python3.6/site-packages/retro/retro_env.py
boodahDEV/Soni-IA
c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948
[ "Apache-2.0" ]
null
null
null
env/lib/python3.6/site-packages/retro/retro_env.py
boodahDEV/Soni-IA
c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948
[ "Apache-2.0" ]
1
2019-04-08T07:11:26.000Z
2019-04-08T07:11:26.000Z
import gc import gym import gzip import gym.spaces import json import numpy as np import os import retro import retro.data #import pygame #from pygame.locals import * from gym.utils import seeding gym_version = tuple(int(x) for x in gym.__version__.split('.')) __all__ = ['RetroEnv'] class RetroEnv(gym.Env): ""...
36.345048
168
0.551512
cc2f018859cf276b5b599749a81a0249b9d8a017
82,962
py
Python
src/tests/ftest/launch.py
berserk-fury/daos
e0a3249aa886962cef2345135b907b45f7109cae
[ "BSD-2-Clause-Patent" ]
2
2021-07-14T12:21:50.000Z
2021-07-14T12:21:52.000Z
src/tests/ftest/launch.py
RyuGuo/daos
45a750c4e6db9e37a37146d2baa8b9c9c26b0a31
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/launch.py
RyuGuo/daos
45a750c4e6db9e37a37146d2baa8b9c9c26b0a31
[ "BSD-2-Clause-Patent" ]
1
2021-11-03T05:00:42.000Z
2021-11-03T05:00:42.000Z
#!/usr/bin/python3 -u """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ # pylint: disable=too-many-lines # this needs to be disabled as list_tests.py is still using python2 # pylint: disable=raise-missing-from from argparse import ArgumentParser, RawDescriptionHelpFo...
37.119463
86
0.593549
2b2ce80c5c625ac0377646825840104607b4abc0
313,494
py
Python
tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py
SinaChavoshi/python-aiplatform
384785bd06b39784e02a0afffa92612a70628946
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py
SinaChavoshi/python-aiplatform
384785bd06b39784e02a0afffa92612a70628946
[ "Apache-2.0" ]
1
2020-10-15T18:51:09.000Z
2020-10-16T22:02:32.000Z
tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py
SinaChavoshi/python-aiplatform
384785bd06b39784e02a0afffa92612a70628946
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.793961
130
0.692833
6336817a1caee5582f682fa9c142c6452805661f
2,863
py
Python
tests/integration/modules/linux_acl.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
tests/integration/modules/linux_acl.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
tests/integration/modules/linux_acl.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import import os import shutil # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath, skip_if_binaries_missing import salt.utils ensure_in_syspath('../../') # Import salt libs import integration import salt.utils # fr...
38.173333
126
0.634998
43e9f43a566ab322c89d9269372c4fadd299c576
5,712
py
Python
goLDAP.py
MD-AlHowsa/GoLDAP
4dfef9e010b77b9a16bf8d542eae530fe368f204
[ "MIT" ]
10
2020-11-06T20:24:11.000Z
2022-02-10T11:07:54.000Z
goLDAP.py
MD-AlHowsa/GoLDAP
4dfef9e010b77b9a16bf8d542eae530fe368f204
[ "MIT" ]
3
2020-12-21T15:36:20.000Z
2022-02-22T07:50:44.000Z
goLDAP.py
MD-AlHowsa/GoLDAP
4dfef9e010b77b9a16bf8d542eae530fe368f204
[ "MIT" ]
3
2021-03-12T09:22:52.000Z
2022-02-22T06:42:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Name: goLDAP Author : Mohammed AlHowsa Brief: An addon for gophish to import users via LDAP Github : https://github.com/md-howsa ''' #====================== Configuration ========================== ldap_server = 'ldap://ldap_IP' us = 'us' pw = 'pw' base_dn = ...
35.042945
182
0.617997
6c0488d391a62375437bd2383b307543ce8ae7e0
12,535
py
Python
libs/numpy/tests/test_ctypeslib.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
libs/numpy/tests/test_ctypeslib.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
libs/numpy/tests/test_ctypeslib.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
import sys import pytest import weakref import numpy as np from numpy.ctypeslib import ndpointer, load_library, as_array from numpy.distutils.misc_util import get_shared_lib_extension from numpy.testing import assert_, assert_array_equal, assert_raises, assert_equal try: import ctypes except ImportErro...
34.248634
94
0.558197
0729ad525e6a6f9bd72910a13837fffd0e7e47c5
5,613
py
Python
my_optimizer.py
LIJUNYI95/MAML-Pytorch
d8f55b43ae7aec0e99cccba78b71c90a1a0bf79f
[ "MIT" ]
null
null
null
my_optimizer.py
LIJUNYI95/MAML-Pytorch
d8f55b43ae7aec0e99cccba78b71c90a1a0bf79f
[ "MIT" ]
null
null
null
my_optimizer.py
LIJUNYI95/MAML-Pytorch
d8f55b43ae7aec0e99cccba78b71c90a1a0bf79f
[ "MIT" ]
null
null
null
import math import torch from torch.optim.optimizer import Optimizer import pdb from collections import defaultdict class Adam(Optimizer): """Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable): iterable of par...
44.19685
113
0.577766
c56d0a50576d823026e1b45f04d20317573c08b0
1,038
py
Python
lang/py/cookbook/v2/source/cb2_7_12_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_7_12_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_7_12_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
import sqlite, cPickle class Blob(object): ''' automatic converter for binary strings ''' def __init__(self, s): self.s = s def _quote(self): return "'%s'" % sqlite.encode(self.s) # make a test database in memory, get a cursor on it, and make a table connection = sqlite.connect(':memory:') cursor = connecti...
37.071429
73
0.699422
7d52aa2a5a9a9ee52041f07899b41340795010d7
1,329
py
Python
sagas/listings/listings_servant.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/listings/listings_servant.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/listings/listings_servant.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
from sanic import Sanic from sanic.response import json from sanic import Blueprint from sagas.listings.listings_cli import ListingsCli, listings bp = Blueprint('root_blueprint') @bp.route('/') async def bp_root(request): return json({'mod': 'listings'}) @bp.post("/proc/<target>/<item>") async def proc(request,...
27.6875
100
0.659895
39a3ada8d76d1c63bf306b1ebd69eee03a1c5cb2
1,309
py
Python
school_backend/api/models.py
zaebumbatt/manatal-django-test
c178de8718c6b58fbb5c6b819bfbe84a0dc3b207
[ "MIT" ]
null
null
null
school_backend/api/models.py
zaebumbatt/manatal-django-test
c178de8718c6b58fbb5c6b819bfbe84a0dc3b207
[ "MIT" ]
null
null
null
school_backend/api/models.py
zaebumbatt/manatal-django-test
c178de8718c6b58fbb5c6b819bfbe84a0dc3b207
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.db import models SCHOOL_TYPE = [ ("PRI", 'Primary School'), ("SEC", 'Secondary School'), ("UNI", 'University'), ("COL", 'College'), ("HS", 'High School'), ] def restrict_amount(value): if Student.objects.filter(school=value).count...
27.851064
74
0.679908
fd03b3b621b574abf67f47d91ab6f28dbba45a1c
72,830
py
Python
sdk/python/pulumi_gcp/notebooks/_inputs.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/notebooks/_inputs.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/notebooks/_inputs.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
42.146991
282
0.656048
1d2abb331ee3c23c25e5730632aed1cbfa38cae8
2,797
py
Python
agents/utils/mcts.py
huiwy/UNO-Agents
e6ede8e66309beb3eae7848cdfed9dc0b6f89d09
[ "MIT" ]
1
2021-11-17T05:33:22.000Z
2021-11-17T05:33:22.000Z
agents/utils/mcts.py
huiwy/UNO-Agents
e6ede8e66309beb3eae7848cdfed9dc0b6f89d09
[ "MIT" ]
null
null
null
agents/utils/mcts.py
huiwy/UNO-Agents
e6ede8e66309beb3eae7848cdfed9dc0b6f89d09
[ "MIT" ]
null
null
null
from numpy.lib.function_base import place from utils.constants import TUPLEACT2INT, INTACT2TUPLE from game import * from agents.greedyAgent import GreedyAgent from copy import deepcopy import numpy as np import math c = 5 class MCTSNode: def __init__(self, a, parent, id): self.action = a self.visited_times...
25.898148
88
0.6532
fefebf5ede7d4bed157bd17b2ec69d683ed0e41c
362
py
Python
maker/users/apps.py
H7777777/maker
2c84d7bf13eb330ab62ad281bc5228fe0c56e0f6
[ "MIT" ]
null
null
null
maker/users/apps.py
H7777777/maker
2c84d7bf13eb330ab62ad281bc5228fe0c56e0f6
[ "MIT" ]
null
null
null
maker/users/apps.py
H7777777/maker
2c84d7bf13eb330ab62ad281bc5228fe0c56e0f6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = "maker.users" verbose_name = "Users" def ready(self): """Override this to put in: Users system checks Users signal registration """ try: import users.signals # noqa F401 ...
21.294118
45
0.569061
7f65014d070112fb39f9c1d529cc3f117dc7be7c
4,691
py
Python
examples/radius_of_gyration.py
ASVG/NeuroM
77a4e1a4d33acc09f0a25d7c42d3f5f01807ba6c
[ "BSD-3-Clause" ]
1
2016-10-25T09:23:16.000Z
2016-10-25T09:23:16.000Z
examples/radius_of_gyration.py
ASVG/NeuroM
77a4e1a4d33acc09f0a25d7c42d3f5f01807ba6c
[ "BSD-3-Clause" ]
1
2021-02-16T20:53:48.000Z
2021-02-16T20:53:48.000Z
examples/radius_of_gyration.py
ASVG/NeuroM
77a4e1a4d33acc09f0a25d7c42d3f5f01807ba6c
[ "BSD-3-Clause" ]
1
2021-02-16T20:50:02.000Z
2021-02-16T20:50:02.000Z
#!/usr/bin/env python # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
43.841121
100
0.721595
8f84e6bdfde7acb2e82c0a9ac7f5f39f997dc112
5,566
py
Python
opentelekom/tests/unit/vpc/v1/test_vpc.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/tests/unit/vpc/v1/test_vpc.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/tests/unit/vpc/v1/test_vpc.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
52.018692
221
0.617499
8ba8b37864064186ea0c618f41e3fa912ef2c8f8
9,948
py
Python
docs/conf.py
dlshriver/intercepts
e17768129ac8a8781c2db0a12756ba308ed655aa
[ "MIT" ]
12
2018-04-22T01:54:47.000Z
2022-01-22T04:52:29.000Z
docs/conf.py
dlshriver/intercepts
e17768129ac8a8781c2db0a12756ba308ed655aa
[ "MIT" ]
3
2019-10-28T08:09:08.000Z
2020-03-10T10:07:20.000Z
docs/conf.py
dlshriver/intercepts
e17768129ac8a8781c2db0a12756ba308ed655aa
[ "MIT" ]
1
2020-01-06T04:24:00.000Z
2020-01-06T04:24:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # intercepts documentation build configuration file, created by # sphinx-quickstart on Fri Mar 15 21:18:44 2019. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this #...
31.987138
81
0.70577
da0c23f4a9e992b0e3db644f087f15679a2ab37a
3,589
py
Python
extras/pipPublish.py
fire17/xo-gd
30259e6502d91b9462931ee4a2bd019ba15d5b73
[ "BSD-3-Clause" ]
1
2021-12-11T20:40:49.000Z
2021-12-11T20:40:49.000Z
extras/pipPublish.py
fire17/xo-gd
30259e6502d91b9462931ee4a2bd019ba15d5b73
[ "BSD-3-Clause" ]
null
null
null
extras/pipPublish.py
fire17/xo-gd
30259e6502d91b9462931ee4a2bd019ba15d5b73
[ "BSD-3-Clause" ]
null
null
null
# Clean Structure for Pip Publish ''' 0 : Preperations: a. open an account over on PyPi: https://pypi.org/account/register/ b. open an account over on TestPyPi: https://test.pypi.org/account/register/ c. open a repo d. have correct ~.pypirc file ''' ''' ### XObject + GlobalData - Version 3.2.8 - ...
32.627273
232
0.492059
5285f9a3e46cff603768dcd0d7ea0f1740d1efce
2,276
py
Python
player.py
porlov/poker-player-always-all-in
3b02fa6af040cfa65de5ade6a1db3b14c133daf9
[ "MIT" ]
null
null
null
player.py
porlov/poker-player-always-all-in
3b02fa6af040cfa65de5ade6a1db3b14c133daf9
[ "MIT" ]
2
2018-02-04T06:56:08.000Z
2018-02-04T09:56:21.000Z
player.py
porlov/poker-player-always-all-in
3b02fa6af040cfa65de5ade6a1db3b14c133daf9
[ "MIT" ]
null
null
null
import json import requests from card_converter import card_converter from shouldBet import shouldBet from strategy import Strategy from post_flop import getPostFlopBet from pre_flop import getPreFlopBet class Player: VERSION = "Version_22" def get_player(self): player_index = self.game_state['in_ac...
28.810127
104
0.605888
68f446522cff91a10b4ef65f35670c891fd47f0e
53,473
py
Python
ocs_ci/ocs/resources/pod.py
romayalon/ocs-ci
b40428cae0f0766ffb0c2441041744821562c8b5
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/pod.py
romayalon/ocs-ci
b40428cae0f0766ffb0c2441041744821562c8b5
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/pod.py
romayalon/ocs-ci
b40428cae0f0766ffb0c2441041744821562c8b5
[ "MIT" ]
null
null
null
""" Pod related functionalities and context info Each pod in the openshift cluster will have a corresponding pod object """ import logging import os import re import yaml import tempfile import time import calendar from threading import Thread import base64 from ocs_ci.ocs.bucket_utils import craft_s3_command from oc...
32.270972
120
0.635536
a0997726912e790b303795cb5fa3a1edda6519f5
7,337
py
Python
workspace/CsvWrite/CsvWrite.py
rshinden/NAOTrainingRTC
f7f33ae8f0790d797cd4bdbda2c761c92ac42683
[ "BSD-3-Clause" ]
null
null
null
workspace/CsvWrite/CsvWrite.py
rshinden/NAOTrainingRTC
f7f33ae8f0790d797cd4bdbda2c761c92ac42683
[ "BSD-3-Clause" ]
3
2019-12-02T00:25:20.000Z
2019-12-10T04:48:13.000Z
workspace/CsvWrite/CsvWrite.py
rshinden/training_guide_RTC
f7f33ae8f0790d797cd4bdbda2c761c92ac42683
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- Python -*- """ @file CsvWrite.py @brief ModuleDescription @date $Date$ """ import sys import time import re import csv import datetime import time import math pattern = re.compile('\d+\,\d+\,\d+') sys.path.append(".") # Import RTM module import RTC import OpenR...
23.516026
288
0.627641
302a452bbda22080b0836ca788bb7a4cb0f0d8f2
252
py
Python
manage.py
irvanjit/quaterloo
38cc4431220c4aae2f3f0903e684d85d05fea80a
[ "MIT" ]
null
null
null
manage.py
irvanjit/quaterloo
38cc4431220c4aae2f3f0903e684d85d05fea80a
[ "MIT" ]
null
null
null
manage.py
irvanjit/quaterloo
38cc4431220c4aae2f3f0903e684d85d05fea80a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "quaterloo.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.909091
73
0.77381
59bd0f1f30f6f4a26d11ae05c4616235988bff4d
140
py
Python
rdt/transformers/addons/identity/__init__.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
2
2022-03-22T13:59:28.000Z
2022-03-24T07:02:54.000Z
rdt/transformers/addons/identity/__init__.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
12
2022-02-17T16:29:31.000Z
2022-03-29T15:06:42.000Z
rdt/transformers/addons/identity/__init__.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
3
2021-11-18T10:13:00.000Z
2022-03-23T10:25:55.000Z
"""Identity addons module.""" from rdt.transformers.addons.identity.identity import IdentityTransformer __all__ = ["IdentityTransformer"]
23.333333
73
0.8
2575b29b6d7f3d546ca133a8d5061eaf3e9d645d
16,159
py
Python
src/resource_debloater/CResourceDebloater.py
michaelbrownuc/CARVE
91e4b9232791c7d0686db6d5ec65d680d0bbe3a7
[ "MIT" ]
2
2020-06-15T21:23:40.000Z
2021-02-16T17:55:54.000Z
src/resource_debloater/CResourceDebloater.py
michaelbrownuc/CARVE
91e4b9232791c7d0686db6d5ec65d680d0bbe3a7
[ "MIT" ]
null
null
null
src/resource_debloater/CResourceDebloater.py
michaelbrownuc/CARVE
91e4b9232791c7d0686db6d5ec65d680d0bbe3a7
[ "MIT" ]
null
null
null
""" C Resource Debloater """ # Standard Library Imports import logging import re import sys # Third Party Imports # Local Imports from resource_debloater.ResourceDebloater import ResourceDebloater class CResourceDebloater(ResourceDebloater): """ This class implements a resource debloater for the C language...
47.949555
120
0.560802
579c3b1381100a4e796e5b4b361fcbd15cd20f53
4,238
py
Python
google/cloud/bigquery_v2/types/standard_sql.py
jaykdoe/python-bigquery
02b13b60647b979d6e527ce723971da77cff059d
[ "Apache-2.0" ]
1
2022-03-02T20:40:03.000Z
2022-03-02T20:40:03.000Z
google/cloud/bigquery_v2/types/standard_sql.py
jaykdoe/python-bigquery
02b13b60647b979d6e527ce723971da77cff059d
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery_v2/types/standard_sql.py
jaykdoe/python-bigquery
02b13b60647b979d6e527ce723971da77cff059d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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...
32.106061
110
0.65243
9d6c4c923d783e73e51a0482b4b561e00b03b3ad
1,726
py
Python
Incident-Response/Tools/cyphon/cyphon/cyphon/tests/test_fieldsets.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/cyphon/tests/test_fieldsets.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/cyphon/tests/test_fieldsets.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine 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, version 3 of the License. # # Cyphon En...
28.766667
73
0.633256
c7d5b565c1b433e63948976955add10efcdd89a8
2,261
py
Python
localstack/services/sts/provider.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
null
null
null
localstack/services/sts/provider.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
null
null
null
localstack/services/sts/provider.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
null
null
null
import logging import re import xmltodict from localstack import config from localstack.aws.api import RequestContext from localstack.aws.api.sts import GetCallerIdentityResponse, StsApi from localstack.aws.proxy import AwsApiListener from localstack.constants import APPLICATION_JSON from localstack.http import Reque...
38.982759
103
0.707651
1a6da605b44d04e4dd83a5427b233bb9f05e007b
1,723
py
Python
antNRE/src/seq_encoder.py
yanqiuxia/AntNRE
cd13446589c0f096cf3e8165ad3efa8e77466232
[ "Apache-2.0" ]
42
2019-03-04T04:36:49.000Z
2022-03-27T23:15:13.000Z
antNRE/src/seq_encoder.py
yanqiuxia/AntNRE
cd13446589c0f096cf3e8165ad3efa8e77466232
[ "Apache-2.0" ]
2
2019-07-19T03:47:24.000Z
2020-11-30T10:46:40.000Z
antNRE/src/seq_encoder.py
yanqiuxia/AntNRE
cd13446589c0f096cf3e8165ad3efa8e77466232
[ "Apache-2.0" ]
11
2019-05-06T06:34:10.000Z
2021-09-14T14:06:53.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Created on 18/10/10 21:30:45 @author: Changzhi Sun """ import torch import torch.nn as nn import torch.nn.functional as F from typing import List, Dict, Any, Optional from antNRE.src.word_encoder import WordCharEncoder class BiLSTMEncoder(nn.Module): def __init__...
35.163265
81
0.612304
0f8f012e5b43d4a4236d6f208507118d9e7fef89
13,277
py
Python
qcodes/data/format.py
cgranade/Qcodes
2d8fd0b8e0fa12d7921a96003318598ad347dd05
[ "MIT" ]
1
2019-10-12T04:54:30.000Z
2019-10-12T04:54:30.000Z
qcodes/data/format.py
cgranade/Qcodes
2d8fd0b8e0fa12d7921a96003318598ad347dd05
[ "MIT" ]
null
null
null
qcodes/data/format.py
cgranade/Qcodes
2d8fd0b8e0fa12d7921a96003318598ad347dd05
[ "MIT" ]
null
null
null
from collections import namedtuple from traceback import format_exc from operator import attrgetter import logging log = logging.getLogger(__name__) class Formatter: """ Data file formatters Formatters translate between DataSets and data files. Each Formatter is expected to implement writing methods...
39.990964
80
0.602621
dda56420630e25eddf97c9703b57bbc85d848f37
2,078
py
Python
VideoMix/makeNumberedVideos.py
ctralie/SlidingWindowVideoTDA
d707a0c4727e068778d5c805f938556c91d6f1ce
[ "Apache-2.0" ]
6
2017-05-09T12:21:04.000Z
2021-07-29T10:14:23.000Z
VideoMix/makeNumberedVideos.py
ctralie/SlidingWindowVideoTDA
d707a0c4727e068778d5c805f938556c91d6f1ce
[ "Apache-2.0" ]
null
null
null
VideoMix/makeNumberedVideos.py
ctralie/SlidingWindowVideoTDA
d707a0c4727e068778d5c805f938556c91d6f1ce
[ "Apache-2.0" ]
4
2017-05-23T07:00:33.000Z
2021-05-11T11:32:36.000Z
import sys sys.path.append("../") from VideoTools import * import subprocess import os import scipy.misc MAXHEIGHT = 160 MINWIDTH = 120 def saveVideoID(I, IDims, fileprefix, ID, FrameRate = 30, NumberFrames = 30): N = I.shape[0] print(I.shape) if I.shape[0] > FrameRate*5: I = I[0:FrameRate*5, :] ...
31.014925
171
0.525987
1c32c6ccaac73c2b146765c6a92a1e99e7b49e0f
4,484
py
Python
windcraft/text.py
marchdf/windcraft
9334864171f10c7a2fa1f0da71938551cc45465a
[ "Apache-2.0" ]
null
null
null
windcraft/text.py
marchdf/windcraft
9334864171f10c7a2fa1f0da71938551cc45465a
[ "Apache-2.0" ]
2
2018-03-12T23:41:26.000Z
2018-03-16T16:19:28.000Z
windcraft/text.py
marchdf/windcraft
9334864171f10c7a2fa1f0da71938551cc45465a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 National Renewable Energy Laboratory. This software # is released under the license detailed in the file, LICENSE, which # is located in the top-level directory structure. # ======================================================================== # # Imports # # =======================================...
41.906542
86
0.48595