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
348ae8500ee7375f75094f116b858b02b074ef02
1,767
py
Python
examples/cluster_demo.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
null
null
null
examples/cluster_demo.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
null
null
null
examples/cluster_demo.py
RussellM2020/maml_gps
631560dfd4e23dc2da9bfbbd2e3c5252aa9775c5
[ "MIT" ]
null
null
null
from rllab.algos.trpo import TRPO from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline from rllab.envs.box2d.cartpole_env import CartpoleEnv from rllab.envs.normalized_env import normalize from rllab.misc.instrument import stub, run_experiment_lite from rllab.policies.gaussian_mlp_policy import Gau...
26.772727
93
0.65365
c421f0d3364a51ad0f1f0372e00a255a31987691
5,239
py
Python
nighres/registration/generate_coordinate_mapping.py
marcobarilari/nighres
e503bb96a6a73f73020c5d9d7b540bc5f17699a8
[ "Apache-2.0" ]
41
2017-08-15T12:23:31.000Z
2022-02-28T15:12:22.000Z
nighres/registration/generate_coordinate_mapping.py
marcobarilari/nighres
e503bb96a6a73f73020c5d9d7b540bc5f17699a8
[ "Apache-2.0" ]
130
2017-07-27T11:09:09.000Z
2022-03-31T10:05:07.000Z
nighres/registration/generate_coordinate_mapping.py
marcobarilari/nighres
e503bb96a6a73f73020c5d9d7b540bc5f17699a8
[ "Apache-2.0" ]
35
2017-08-17T17:05:41.000Z
2022-03-28T12:22:14.000Z
# basic dependencies import os import sys # main dependencies: numpy, nibabel import numpy import nibabel # nighresjava and nighres functions import nighresjava from ..io import load_volume, save_volume from ..utils import _output_dir_4saving, _fname_4saving, \ _check_topology_lut_dir # convenien...
35.161074
96
0.595533
57ddcdf1e2a07777e702ea00936d878df9e3d9c1
1,892
py
Python
Flinders/score_independently.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
30
2015-01-25T16:22:51.000Z
2022-01-20T15:56:47.000Z
Flinders/score_independently.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
2
2020-04-13T15:00:37.000Z
2020-09-23T12:35:59.000Z
Flinders/score_independently.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
24
2015-04-17T00:52:05.000Z
2021-11-26T17:50:01.000Z
""" We're scoring the alignments by looking at one change, pairs of changes, triples of changes, etc. """ import os import sys import argparse from roblib import read_fasta __author__ = 'Rob Edwards' if __name__ == "__main__": parser = argparse.ArgumentParser(description=' ') parser.add_argument('-f', help...
32.62069
108
0.513214
7a0d1d8e5843e12369353b767b37a28c185e4ee8
78
py
Python
yikit/feature_selection/__init__.py
yu9824/yikit
d2a0732f543e70b8be985b22847504a06c9837fc
[ "Apache-2.0" ]
null
null
null
yikit/feature_selection/__init__.py
yu9824/yikit
d2a0732f543e70b8be985b22847504a06c9837fc
[ "Apache-2.0" ]
null
null
null
yikit/feature_selection/__init__.py
yu9824/yikit
d2a0732f543e70b8be985b22847504a06c9837fc
[ "Apache-2.0" ]
null
null
null
from .filter_method import FilterSelector from .wrapper_method import BorutaPy
39
41
0.884615
1d823f4f8c5a6939effe925ec0371f54ec7ab57a
9,872
py
Python
IPC/Servers/Sync/app.py
Seniatical/IPC
145461a932974cb1e2125a134bcda0d12a54dae3
[ "MIT" ]
null
null
null
IPC/Servers/Sync/app.py
Seniatical/IPC
145461a932974cb1e2125a134bcda0d12a54dae3
[ "MIT" ]
null
null
null
IPC/Servers/Sync/app.py
Seniatical/IPC
145461a932974cb1e2125a134bcda0d12a54dae3
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Seniatical Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
39.019763
120
0.570097
eadda5ba06a79f061bcf87f9b0bf2c0770c763f5
5,516
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_seqconv_eltadd_relu_fuse_pass.py
2742195759/Paddle
ce034db1834af85539b22ab68492df9972ff3e69
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_seqconv_eltadd_relu_fuse_pass.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_seqconv_eltadd_relu_fuse_pass.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.120567
77
0.605149
1a1c8d420f95a922bf429e81fe6f77163f719a45
6,045
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_keyword_service.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_keyword_service.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_keyword_service.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- 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...
33.214286
172
0.678743
9382b2642336af153934b7dc8ed04664bf7587ba
8,481
py
Python
dev/midi.1.py
mdoege/MIDI
90499c0739177bf23efa8eb88deff88e492bd518
[ "AAL" ]
1
2020-06-19T18:24:05.000Z
2020-06-19T18:24:05.000Z
dev/midi.1.py
mdoege/MIDI
90499c0739177bf23efa8eb88deff88e492bd518
[ "AAL" ]
null
null
null
dev/midi.1.py
mdoege/MIDI
90499c0739177bf23efa8eb88deff88e492bd518
[ "AAL" ]
null
null
null
#!/usr/bin/env python # Read MIDI file track and synthesize with PySynth A # Usage: # python readmidi.py file.mid [tracknum] [file.wav] [--syn_b/--syn_c/--syn_d/--syn_e/--syn_p/--syn_s/--syn_samp] # Based on code from https://github.com/osakared/midifile.py # which appears to be based on # https://github.com/gasma...
37.197368
113
0.510081
cc90a92dfd235de8bcc9b64387cff579edd174a7
12,918
py
Python
contrib/linearize/linearize-data.py
wizadr/ocvcoin
449d29249a7469c523ce620d67f880d31a4d4486
[ "MIT" ]
2
2021-10-30T04:29:45.000Z
2021-12-11T16:49:57.000Z
contrib/linearize/linearize-data.py
wizadr/ocvcoin
449d29249a7469c523ce620d67f880d31a4d4486
[ "MIT" ]
2
2021-09-13T22:46:42.000Z
2021-09-14T08:47:00.000Z
contrib/linearize/linearize-data.py
wizadr/ocvcoin
449d29249a7469c523ce620d67f880d31a4d4486
[ "MIT" ]
2
2021-11-18T09:48:59.000Z
2021-12-23T04:33:02.000Z
#!/usr/bin/env python3 # # linearize-data.py: Construct a linear, no-fork version of the chain. # # Copyright (c) 2013-2020 The Ocvcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import struct import re impo...
36.803419
123
0.599706
028ebc5eb3d202fa6cbee2c6d499d9b756c91c3b
4,245
py
Python
accounts/models.py
thiagoferreiraw/GetTogether
0cfa2bcf0915dd03ed5e5b9fab641b058eee1ca3
[ "BSD-2-Clause" ]
13
2017-12-26T17:05:06.000Z
2018-01-02T15:09:31.000Z
accounts/models.py
thiagoferreiraw/GetTogether
0cfa2bcf0915dd03ed5e5b9fab641b058eee1ca3
[ "BSD-2-Clause" ]
9
2017-12-27T15:51:37.000Z
2018-01-02T14:49:32.000Z
accounts/models.py
thiagoferreiraw/GetTogether
0cfa2bcf0915dd03ed5e5b9fab641b058eee1ca3
[ "BSD-2-Clause" ]
3
2017-12-26T21:27:38.000Z
2018-01-03T15:01:49.000Z
from django.db import models from django.contrib.sites.models import Site from django.contrib.auth.models import User, Group, AnonymousUser from django.utils.translation import ugettext_lazy as _ from django.utils.crypto import get_random_string from django.conf import settings import pytz import datetime import hashl...
32.40458
162
0.678445
5b79e2490dcc53565c26404385c6ff1759a883d1
9,750
py
Python
Scripts/GeMS_SetSymbols_Arc10.py
mahunterUSGS/GeMS_Tools
c8cd2d5f1767f5a275487fb81f6f2529d1fa58f4
[ "CC0-1.0" ]
null
null
null
Scripts/GeMS_SetSymbols_Arc10.py
mahunterUSGS/GeMS_Tools
c8cd2d5f1767f5a275487fb81f6f2529d1fa58f4
[ "CC0-1.0" ]
null
null
null
Scripts/GeMS_SetSymbols_Arc10.py
mahunterUSGS/GeMS_Tools
c8cd2d5f1767f5a275487fb81f6f2529d1fa58f4
[ "CC0-1.0" ]
null
null
null
import arcpy, os.path, sys, math, shutil from GeMS_utilityFunctions import * # September 2017: now invokes arcpy.da.Editor in line 183 # 5 October 2017: fixed crash when symbolizing CMU feature dataset versionString = 'GeMS_SetSymbols_Arc10.py, version of 5 October 2017' EightfoldLineDict = {} TwofoldOrientPointDic...
36.654135
121
0.564
73cf25b40f8cbe762d5a1e639b2f3df67a95a1a4
1,107
py
Python
test.py
IT-Step-Team/IEP
d5cbbb58aef6788b4476c647704689dc48af5208
[ "MIT" ]
1
2021-05-06T19:51:02.000Z
2021-05-06T19:51:02.000Z
test.py
Maksim15103/IEP
64fe5a7df48e21cb2fcb852c20a1c01ff9b01212
[ "MIT" ]
1
2021-03-16T16:13:12.000Z
2021-03-16T18:59:26.000Z
test.py
Maksim15103/IEP
64fe5a7df48e21cb2fcb852c20a1c01ff9b01212
[ "MIT" ]
1
2021-04-17T07:50:20.000Z
2021-04-17T07:50:20.000Z
from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_OAEP, AES from base64 import b64encode, b64decode key = RSA.generate(2048) print(b64encode(key.export_key('DER')).decode('utf-8')) print() print(b64encode(key.publickey().export_key('DER')).decode('utf-8')) cipher = PKCS1_OAEP.new(key) print() data ...
20.5
83
0.71364
52239a2f326ae324ad8c011f69b498b8194b5506
487
py
Python
Letter_Grade_Of_Any_Subject.py
Taizul1579/Pythonbasic
a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c
[ "Apache-2.0" ]
null
null
null
Letter_Grade_Of_Any_Subject.py
Taizul1579/Pythonbasic
a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c
[ "Apache-2.0" ]
null
null
null
Letter_Grade_Of_Any_Subject.py
Taizul1579/Pythonbasic
a197e1d8fa7f74bc9bff5ae2d5cf6bf7010e884c
[ "Apache-2.0" ]
null
null
null
mark = int(input("Enter Your Mark : ")) if mark >= 80: print("Congratulation!! Your Result Is :A+") elif mark >= 70: print("Congratulation!! Your Result Is :A") elif mark >= 60: print("Congratulation!! Your Result Is :A-") elif mark >= 50: print("Congratulation!! Your Result Is :B") elif mark >...
30.4375
49
0.616016
8fec1c7399b53198f9de68b4120e7b27ccc59e6a
976
py
Python
hashtable/separate_chaining.py
CheezItMan/hash-table-exercise
57e376e54eb33ce1e921145a28efc93dd44f52eb
[ "Unlicense" ]
null
null
null
hashtable/separate_chaining.py
CheezItMan/hash-table-exercise
57e376e54eb33ce1e921145a28efc93dd44f52eb
[ "Unlicense" ]
null
null
null
hashtable/separate_chaining.py
CheezItMan/hash-table-exercise
57e376e54eb33ce1e921145a28efc93dd44f52eb
[ "Unlicense" ]
null
null
null
class SeparateChainingTable: def __init__(self, table_size=4): self.size = 0 self.table = [] for i in range(table_size): self.table.append([]) def insert(self, key, value): """ Insert `(key, value)` based on the hashed value of `key`. """ ind...
27.885714
75
0.530738
ea2d613e6228e8f0bbbea8b141b47ae5280fee14
98
py
Python
src/libi_sharing/apps.py
Angelhack-LIBI/team-libi-backend
fd00c4f2880f00819174e0ca10c0161e4e697379
[ "MIT" ]
11
2020-07-21T05:53:16.000Z
2020-08-18T06:15:31.000Z
src/libi_sharing/apps.py
Angelhack-LIBI/team-libi-backend
fd00c4f2880f00819174e0ca10c0161e4e697379
[ "MIT" ]
3
2020-07-17T21:34:25.000Z
2020-07-19T04:10:58.000Z
src/libi_sharing/apps.py
Angelhack-LIBI/team-libi-backend
fd00c4f2880f00819174e0ca10c0161e4e697379
[ "MIT" ]
2
2020-07-23T10:52:48.000Z
2021-08-30T08:11:50.000Z
from django.apps import AppConfig class LibiSharingConfig(AppConfig): name = 'libi_sharing'
16.333333
35
0.77551
f66d5661bef7ee446c2a34565db776084df8ada4
1,709
py
Python
openstack/metric/v1/resource.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/metric/v1/resource.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/metric/v1/resource.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "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...
36.361702
75
0.724985
cde69bfe542443645ff3788113daf4b7b6254e01
5,062
py
Python
lib/sampler.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
13
2019-12-09T07:56:13.000Z
2021-08-03T01:45:53.000Z
lib/sampler.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
1
2020-04-29T00:00:14.000Z
2021-07-09T14:24:19.000Z
lib/sampler.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
3
2020-04-27T15:36:36.000Z
2021-03-29T17:52:35.000Z
from lib.clip import * from lib.collection_utils import * from lib.math_utils import * from lib.io_utils import * class Sampler: availableSamples = [ # hip hop kick {"name": "kick", "style": "hiphop1", "files": ["jay_z_all_i_need_kick_01.wav", "jay_z_all_i_need_kick_02.wav"]}, {"name": "ki...
44.79646
198
0.586527
c64af18b376cb921949dc59dc977b83500772050
796
py
Python
setup.py
hpema/crypto
32e309d17ab72ac52a7c057e6280ea21e9864c2c
[ "MIT" ]
null
null
null
setup.py
hpema/crypto
32e309d17ab72ac52a7c057e6280ea21e9864c2c
[ "MIT" ]
null
null
null
setup.py
hpema/crypto
32e309d17ab72ac52a7c057e6280ea21e9864c2c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from pip.req import parse_requirements import re, ast # get version from __version__ variable in crypto/__init__.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('crypto/__init__.py', 'rb') as f: version = str(ast.literal_eval(_ve...
29.481481
68
0.736181
a062bf9c2baf2c9badb7545e84412ac13ec8c0e5
12,807
py
Python
modules/util.py
Visorask/qbit_manage
19c4e62bedb2d581d57be040c07196e888b9ac4b
[ "MIT" ]
4
2021-02-24T17:31:55.000Z
2021-02-26T03:39:19.000Z
modules/util.py
Visorask/qbit_manage
19c4e62bedb2d581d57be040c07196e888b9ac4b
[ "MIT" ]
null
null
null
modules/util.py
Visorask/qbit_manage
19c4e62bedb2d581d57be040c07196e888b9ac4b
[ "MIT" ]
1
2021-02-27T00:38:25.000Z
2021-02-27T00:38:25.000Z
import logging, os, shutil, traceback, time, signal from logging.handlers import RotatingFileHandler from ruamel import yaml from pathlib import Path logger = logging.getLogger('qBit Manage') def get_list(data, lower=False, split=True, int_list=False): if data is None: return None elif isinsta...
36.696275
125
0.565004
7edb18ef128cc781bb888b363ef7e679426240b4
4,241
py
Python
edx_rest_framework_extensions/paginators.py
openedx/edx-drf-extensions
f923f48da8a639f8037d917264057e456785a0e7
[ "Apache-2.0" ]
null
null
null
edx_rest_framework_extensions/paginators.py
openedx/edx-drf-extensions
f923f48da8a639f8037d917264057e456785a0e7
[ "Apache-2.0" ]
1
2022-02-11T14:47:15.000Z
2022-02-11T14:47:15.000Z
edx_rest_framework_extensions/paginators.py
openedx/edx-drf-extensions
f923f48da8a639f8037d917264057e456785a0e7
[ "Apache-2.0" ]
null
null
null
""" Paginatator methods for edX API implementations.""" from django.core.paginator import InvalidPage, Paginator from django.http import Http404 from rest_framework import pagination from rest_framework.response import Response class DefaultPagination(pagination.PageNumberPagination): """ Default paginator f...
33.393701
99
0.645367
2956d34f36de3975cd2027484809ea81cdbdd625
7,886
py
Python
nova/tests/unit/virt/ironic/test_client_wrapper.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/ironic/test_client_wrapper.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/ironic/test_client_wrapper.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2014 Red Hat, 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...
47.506024
78
0.692873
00e4c20e9907597dac8a175c50a0db0e7b13778d
127
py
Python
tests/mytest.py
abelit/abelit-DBReport
4077cfb5164d19a3eb9570c48fff48600075f931
[ "Apache-2.0" ]
null
null
null
tests/mytest.py
abelit/abelit-DBReport
4077cfb5164d19a3eb9570c48fff48600075f931
[ "Apache-2.0" ]
4
2021-03-19T09:17:13.000Z
2022-01-13T01:57:34.000Z
tests/mytest.py
abelit/abelit-DBReport
4077cfb5164d19a3eb9570c48fff48600075f931
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 7, 2018 @author: abelit ''' import json f = open("test.json", encoding='utf-8') setting = json.load(f)
9.769231
39
0.629921
a6890c4b43095a39777d38f46767103d8ac287ef
902
py
Python
rllib/agents/ppo/utils.py
vermashresth/ray
9aaaa508cacb90a5be714478970b2191aaa43170
[ "Apache-2.0" ]
78
2022-02-02T00:23:02.000Z
2022-03-15T11:44:02.000Z
rllib/agents/ppo/utils.py
vermashresth/ray
9aaaa508cacb90a5be714478970b2191aaa43170
[ "Apache-2.0" ]
3
2021-06-08T21:46:35.000Z
2022-03-12T00:35:21.000Z
rllib/agents/ppo/utils.py
vermashresth/ray
9aaaa508cacb90a5be714478970b2191aaa43170
[ "Apache-2.0" ]
3
2022-01-30T05:10:14.000Z
2022-03-04T21:18:44.000Z
import numpy as np def flatten(weights, start=0, stop=2): """This methods reshapes all values in a dictionary. The indices from start to stop will be flattened into a single index. Args: weights: A dictionary mapping keys to numpy arrays. start: The starting index. stop: The endi...
27.333333
73
0.652993
3a3ca0d38bbea8a00c48559c6943c92ff3cc8613
11,833
py
Python
eval_rep.py
winycg/HSAKD
74e464d630bafab20048327137fce09184c0ffa2
[ "Apache-2.0" ]
36
2021-05-03T10:48:37.000Z
2022-03-27T02:05:00.000Z
eval_rep.py
LingFengGold/HSAKD
74e464d630bafab20048327137fce09184c0ffa2
[ "Apache-2.0" ]
7
2021-05-11T01:22:09.000Z
2022-03-30T15:40:09.000Z
eval_rep.py
LingFengGold/HSAKD
74e464d630bafab20048327137fce09184c0ffa2
[ "Apache-2.0" ]
4
2021-05-11T01:22:20.000Z
2021-12-04T08:20:47.000Z
import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torch.nn.functional as F import os import shutil import argparse import numpy as np import models import torchvision import torchvision.transforms as transforms from utils import cal_param_size, cal_multi_adds ...
36.978125
147
0.607454
e598115e3195c29c207369bd7a36be4c235fbe8a
20,212
py
Python
samples/client/petstore/python/swagger_client/api_client.py
gabrielar/swagger-codegen
d84f848831b66e5941ac26ba0269432959f7ebd4
[ "Apache-2.0" ]
55
2019-05-09T06:43:05.000Z
2021-12-08T05:56:43.000Z
samples/client/petstore/python/swagger_client/api_client.py
gabrielar/swagger-codegen
d84f848831b66e5941ac26ba0269432959f7ebd4
[ "Apache-2.0" ]
5
2020-06-06T00:40:42.000Z
2021-06-10T22:36:12.000Z
samples/client/petstore/python/swagger_client/api_client.py
gabrielar/swagger-codegen
d84f848831b66e5941ac26ba0269432959f7ebd4
[ "Apache-2.0" ]
16
2019-08-08T07:15:35.000Z
2021-12-07T15:34:41.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
34.908463
88
0.554126
a4b4a732f192724cee8dad3b9c44095a5048b642
1,384
py
Python
time_and_test_error.py
goodfeli/momentum
e597edecd75401fc9db4358718b43d6aece87c4e
[ "BSD-3-Clause" ]
4
2017-11-03T03:35:56.000Z
2021-12-15T01:38:10.000Z
time_and_test_error.py
goodfeli/momentum
e597edecd75401fc9db4358718b43d6aece87c4e
[ "BSD-3-Clause" ]
null
null
null
time_and_test_error.py
goodfeli/momentum
e597edecd75401fc9db4358718b43d6aece87c4e
[ "BSD-3-Clause" ]
5
2015-04-04T14:33:25.000Z
2021-05-07T09:20:09.000Z
__author__ = "Ian Goodfellow" import gc from matplotlib import pyplot import numpy as np import os import sys from pylearn2.utils import serial _, d1, d2 = sys.argv pyplot.hold(True) for i, d in enumerate([d1, d2]): fs = os.listdir(d) best = np.inf x = [] y = [] assert len(fs) > 0 for f...
23.457627
80
0.574422
4132959be50c8f9dc85450fcb4772cd6aa533d6b
2,887
py
Python
panda/examples/query_fw_versions.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
1,279
2017-04-07T02:11:39.000Z
2022-03-28T05:01:30.000Z
panda/examples/query_fw_versions.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
473
2017-05-03T06:54:54.000Z
2022-03-31T07:09:12.000Z
panda/examples/query_fw_versions.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
610
2017-04-07T05:17:33.000Z
2022-03-26T14:58:32.000Z
#!/usr/bin/env python3 import argparse from tqdm import tqdm from panda import Panda from panda.python.uds import UdsClient, MessageTimeoutError, NegativeResponseError, SESSION_TYPE, DATA_IDENTIFIER_TYPE if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--rxoffset', default="") p...
36.544304
118
0.686872
dc1354d9f36c1b736fb50b8cede6ee0a49464471
8,493
py
Python
desktop/core/ext-py/lxml-3.3.6/src/lxml/sax.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/lxml-3.3.6/src/lxml/sax.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/lxml-3.3.6/src/lxml/sax.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
""" SAX-based adapter to copy trees from/to the Python standard library. Use the `ElementTreeContentHandler` class to build an ElementTree from SAX events. Use the `ElementTreeProducer` class or the `saxify()` function to fire the SAX events of an ElementTree against a SAX ContentHandler. See http://codespeak.net/lx...
34.245968
79
0.608854
593ce73fd55ccc38b533887c8c9f350ccf94cf41
4,979
py
Python
oasislmf/cli/test.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
oasislmf/cli/test.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
oasislmf/cli/test.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
import oasislmf.cli.base import tempfile import os from argparsetree import BaseCommand from ..model_testing.validation import csv_validity_test from ..utils.path import as_path from ..utils.exceptions import OasisException from .base import OasisBaseCommand from .inputs import InputValues from ..manager import Oa...
28.947674
113
0.596505
65dd2ceac931427d68d9f5dca501e66cf2147a91
671
py
Python
ProjectEulerPython/problems/problem_024.py
geo-desic/project-euler
8065ee082a6948447ef961c9aa960c90a815a3ab
[ "MIT" ]
null
null
null
ProjectEulerPython/problems/problem_024.py
geo-desic/project-euler
8065ee082a6948447ef961c9aa960c90a815a3ab
[ "MIT" ]
null
null
null
ProjectEulerPython/problems/problem_024.py
geo-desic/project-euler
8065ee082a6948447ef961c9aa960c90a815a3ab
[ "MIT" ]
null
null
null
import math_helpers from problems.problem import Problem class Problem024(Problem): def calculate_answer(self) -> int: elements = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] n = 1000000 batch = n // 20 index = 1 returned_first_permutation = False while True: if index % batch == 0: self.pri...
25.807692
60
0.621461
fb0474b6971b6e3d7d3925a7b1d92bb0fcb96fb3
1,026
py
Python
statistics/meters.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
12
2019-10-11T12:32:13.000Z
2021-09-05T06:26:43.000Z
statistics/meters.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
null
null
null
statistics/meters.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
1
2021-11-05T01:36:19.000Z
2021-11-05T01:36:19.000Z
import collections from pandas import DataFrame class Meter: def __init__(self, key_spec): self.key_spec = key_spec def compute(self, model, metadata, device): raise NotImplementedError def __add__(self, other): return ConcatMeter(self, other) def __call__(self, model, metad...
30.176471
84
0.647173
9e9505364573a1f51a8fb38467054ad591ee5bb1
2,693
py
Python
polygonscan/enums/actions_enum.py
sdadia/polygonscan-python
6ef00e5e47d3a37203af3f05d7e344fb30e83409
[ "MIT" ]
null
null
null
polygonscan/enums/actions_enum.py
sdadia/polygonscan-python
6ef00e5e47d3a37203af3f05d7e344fb30e83409
[ "MIT" ]
null
null
null
polygonscan/enums/actions_enum.py
sdadia/polygonscan-python
6ef00e5e47d3a37203af3f05d7e344fb30e83409
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass(frozen=True) class ActionsEnum: BALANCE_HISTORY: str = "balancehistory" BALANCE_MULTI: str = "balancemulti" BALANCE: str = "balance" CHAIN_SIZE: str = "chainsize" DAILY_AVG_BLOCK_SIZE: str = "dailyavgblocksize" DAILY_AVG_BLOCK_TIME: str = "dailyavgb...
41.430769
86
0.737839
4bab4534fe5356ac7ebd1d65999fcf5764b4df45
3,722
py
Python
relancer-exp/original_notebooks/nsrose7224_crowdedness-at-the-campus-gym/forecasting-with-facebook-prophet.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
1
2022-03-05T22:27:49.000Z
2022-03-05T22:27:49.000Z
relancer-exp/original_notebooks/nsrose7224_crowdedness-at-the-campus-gym/forecasting-with-facebook-prophet.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
null
null
null
relancer-exp/original_notebooks/nsrose7224_crowdedness-at-the-campus-gym/forecasting-with-facebook-prophet.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # I have decided to interpretate the results using Facebook recently realeased Prophet, for TimeSeries forecast # In[ ]: import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt import seaborn a...
13.245552
154
0.648307
fdcfd44a5d1d05592bb3bc4b1223a03953537f94
4,447
py
Python
huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/command_body.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/command_body.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/command_body.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CommandBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is att...
26.789157
79
0.57387
5a061890cc8ae88cfaff4e31d51f433a9ffd92b6
4,948
py
Python
eval.py
ericharley/dnn-binary-code-similarity
8552d5b7a35095d901e6e3b3aec62bdc3a1d884e
[ "BSD-3-Clause" ]
98
2018-08-31T01:59:51.000Z
2022-03-31T09:41:19.000Z
eval.py
ericharley/dnn-binary-code-similarity
8552d5b7a35095d901e6e3b3aec62bdc3a1d884e
[ "BSD-3-Clause" ]
8
2019-04-15T10:32:46.000Z
2021-12-23T12:07:24.000Z
eval.py
ericharley/dnn-binary-code-similarity
8552d5b7a35095d901e6e3b3aec62bdc3a1d884e
[ "BSD-3-Clause" ]
49
2018-11-16T14:54:25.000Z
2022-03-09T17:51:48.000Z
import tensorflow as tf print tf.__version__ #import matplotlib.pyplot as plt import numpy as np from datetime import datetime from graphnnSiamese import graphnn from utils import * import os import argparse import json parser = argparse.ArgumentParser() parser.add_argument('--device', type=str, default='0', h...
34.84507
76
0.63561
64571c6b4f4744786da40a998113be2e760b42a3
1,375
py
Python
configs/_base_/models/ocrnet_r50-d32.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
2
2020-07-10T12:13:56.000Z
2020-11-09T07:09:29.000Z
configs/_base_/models/ocrnet_r50-d32.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/ocrnet_r50-d32.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
2
2020-07-28T09:12:55.000Z
2021-01-04T07:49:59.000Z
# model settings norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='CascadeEncoderDecoder', num_stages=2, pretrained='open-mmlab://resnet50_v1c', backbone=dict( type='ResNetV1c', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), dilations=(1, 1...
28.645833
78
0.540364
206127732675e5b4ef638067932c00334ae06384
4,153
py
Python
tests/models/conftest.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
tests/models/conftest.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
1
2021-02-16T18:31:53.000Z
2021-02-16T18:31:53.000Z
tests/models/conftest.py
joshualyguessennd/ocean.py
23274698df4aae078d53b12d768c721af16f6e80
[ "Apache-2.0" ]
null
null
null
import os import pytest from ocean_lib.config_provider import ConfigProvider from ocean_lib.models import btoken from ocean_lib.models.bfactory import BFactory from ocean_lib.models.data_token import DataToken from ocean_lib.models.dtfactory import DTFactory from ocean_lib.ocean.util import get_ocean_token_address, to...
22.448649
84
0.722369
d0bc6c364682e6db1987033f0efebd4e11b11314
979
py
Python
telegram2/views.py
juanbelieni/django-lp
5e86d0f6f34bf6512ff5b7d6a4df88bfb89926cd
[ "MIT" ]
null
null
null
telegram2/views.py
juanbelieni/django-lp
5e86d0f6f34bf6512ff5b7d6a4df88bfb89926cd
[ "MIT" ]
null
null
null
telegram2/views.py
juanbelieni/django-lp
5e86d0f6f34bf6512ff5b7d6a4df88bfb89926cd
[ "MIT" ]
null
null
null
from django.shortcuts import render, reverse from django.http import HttpResponse, HttpResponseRedirect, Http404 # Create your views here. def index(request): return HttpResponse("<h1>TELEGRAM2.apk baixar</h1>") def introducao(request): return render(request, 'telegram2/introducao.html') def post(request,...
26.459459
67
0.645557
676050eb290a481794f5e4a8dc1a30c9a59c5321
2,720
py
Python
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
80
2020-01-16T09:55:09.000Z
2020-10-03T13:43:07.000Z
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo_test.py
eyal0/beam
9c6922976cc2a5c6a2ef836c1986ff769cda99a5
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
34.871795
79
0.710662
a7f572323e090589656c721a3491a27eb3177384
11,551
py
Python
exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py
dengliming/opentelemetry-python
65ddc2db20885ad8928c167c835dc8b54e4a491c
[ "Apache-2.0" ]
null
null
null
exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py
dengliming/opentelemetry-python
65ddc2db20885ad8928c167c835dc8b54e4a491c
[ "Apache-2.0" ]
null
null
null
exporter/opentelemetry-exporter-otlp/tests/test_otlp_trace_exporter.py
dengliming/opentelemetry-python
65ddc2db20885ad8928c167c835dc8b54e4a491c
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry 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 in ...
39.289116
79
0.464722
9aacf305e38a0cf773a8f42112af24c74f5af062
1,093
py
Python
microsoft/gestures/protocol/gestures_protocol.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
1
2017-07-30T10:17:38.000Z
2017-07-30T10:17:38.000Z
microsoft/gestures/protocol/gestures_protocol.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
microsoft/gestures/protocol/gestures_protocol.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
from microsoft.gestures.protocol.serialization_utils import dict_to_string from microsoft.gestures.protocol.gestures_request import GesturesRequest from microsoft.gestures.protocol.client_command import ClientCommand from collections import OrderedDict class GesturesProtocol(object): def __init__(self, port): self...
37.689655
132
0.817932
651a05285c5f8c6429afe09f6eacf0612d11ee3e
83
py
Python
auctions/auctions/infrastructure/adapters/__init__.py
Enforcer/clean-architecture-example-1
a51a2a2a4b8cc38f08305a919b0fa59264a91b20
[ "MIT" ]
34
2018-02-02T21:42:09.000Z
2022-01-22T20:19:01.000Z
auctions/auctions/infrastructure/adapters/__init__.py
Enforcer/clean-architecture-example-1
a51a2a2a4b8cc38f08305a919b0fa59264a91b20
[ "MIT" ]
null
null
null
auctions/auctions/infrastructure/adapters/__init__.py
Enforcer/clean-architecture-example-1
a51a2a2a4b8cc38f08305a919b0fa59264a91b20
[ "MIT" ]
10
2018-09-18T23:56:59.000Z
2020-10-15T15:32:02.000Z
from auctions.infrastructure.adapters.dummy_email_gateway import DummyEmailGateway
41.5
82
0.915663
0a5bdeecaaabeb153f0ceb538afa732ea0aed4cd
9,484
py
Python
openpype/hosts/blender/plugins/load/load_layout_json.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
null
null
null
openpype/hosts/blender/plugins/load/load_layout_json.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
null
null
null
openpype/hosts/blender/plugins/load/load_layout_json.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
null
null
null
"""Load a layout in Blender.""" import json from pathlib import Path from pprint import pformat from typing import Dict, Optional import bpy from avalon import api from openpype import lib from openpype.hosts.blender.api.pipeline import ( AVALON_INSTANCES, AVALON_CONTAINERS, AVALON_PROPERTY, AVALON_C...
33.394366
79
0.583509
c8412fbb57ede3ddc3c36677acbd8755f99d5083
3,104
py
Python
tests/configurations_test.py
d61h6k4/brep2graph
f6ac7b58bd36fbaf98a56aed3224496285b29167
[ "Apache-2.0" ]
null
null
null
tests/configurations_test.py
d61h6k4/brep2graph
f6ac7b58bd36fbaf98a56aed3224496285b29167
[ "Apache-2.0" ]
null
null
null
tests/configurations_test.py
d61h6k4/brep2graph
f6ac7b58bd36fbaf98a56aed3224496285b29167
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Petrov, Danil <ddbihbka@gmail.com>. All Rights Reserved. # Author: Petrov, Danil <ddbihbka@gmail.com> # # 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....
32
80
0.572809
f81963ff2de69c4bb6d9be36e78e7eb621367f92
1,577
py
Python
other_models/lwf/toybox.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
6
2021-04-07T15:17:24.000Z
2021-07-07T04:37:29.000Z
other_models/lwf/toybox.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
other_models/lwf/toybox.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
class toybox(): def __init__(self, paradigm, run): self.batch_num = 6 self.rootdir = '/home/rushikesh/P1_Oct/toybox_task_filelists/' self.train_data = [] self.train_labels = [] self.train_groups = [[],[],[],[],[],[]] for b in range(self.batch_num): with open( self.rootdir + paradigm + '/run' + str(ru...
35.044444
128
0.60558
fd0eb87daf9a12b0dafce3d2e1d657a41adf978f
421
py
Python
src/pretalx/submission/migrations/0044_submission_editedvideo.py
leibert/pretalx
4f9a5f3df680dcfe05312366ce4e68cf9b8dc34d
[ "Apache-2.0" ]
null
null
null
src/pretalx/submission/migrations/0044_submission_editedvideo.py
leibert/pretalx
4f9a5f3df680dcfe05312366ce4e68cf9b8dc34d
[ "Apache-2.0" ]
null
null
null
src/pretalx/submission/migrations/0044_submission_editedvideo.py
leibert/pretalx
4f9a5f3df680dcfe05312366ce4e68cf9b8dc34d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2020-06-07 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0043_auto_20200607_1654'), ] operations = [ migrations.AddField( model_name='submission', name='edited...
22.157895
75
0.617577
02f375c7e064186d19b4361d678532557e672a7f
4,429
py
Python
lib/python2.7/site-packages/tensorflow/contrib/boosted_trees/python/ops/gen_ensemble_optimizer_ops.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/python2.7/site-packages/tensorflow/contrib/boosted_trees/python/ops/gen_ensemble_optimizer_ops.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
10
2020-01-28T22:23:57.000Z
2022-02-09T23:39:43.000Z
udacity-car/lib/python2.7/site-packages/tensorflow/contrib/boosted_trees/python/ops/gen_ensemble_optimizer_ops.py
808brick/CarND-Capstone
f9e536b4a9d96322d7e971073602c8969dbd9369
[ "MIT" ]
1
2020-06-18T15:56:53.000Z
2020-06-18T15:56:53.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections from tensorflow.core.framework import op_def_pb2 as _op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorflow.python.framework import common_shapes as _common_shape...
40.263636
460
0.703093
4f605704746f1668545fbdd511aeb4928f5bd059
2,770
py
Python
model.py
Ellavn/oaps
d5e565b3e6e09c3f2ee605c405d803529657d1bd
[ "MIT" ]
null
null
null
model.py
Ellavn/oaps
d5e565b3e6e09c3f2ee605c405d803529657d1bd
[ "MIT" ]
null
null
null
model.py
Ellavn/oaps
d5e565b3e6e09c3f2ee605c405d803529657d1bd
[ "MIT" ]
null
null
null
from app import db class Article(db.Model): __tablename__ = 'article' id = db.Column(db.Integer,primary_key=True) title = db.Column(db.Text) user_id = db.Column(db.Text,db.ForeignKey('user.id')) subject_id = db.Column(db.Integer,db.ForeignKey('subject.id')) abstract = db.Column(db.Text) hi...
30.777778
83
0.684838
6df67895e75e940d873548750a5a3944d9e2b2d0
2,814
py
Python
sealrtc/ancillary/calibrate_scc.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
sealrtc/ancillary/calibrate_scc.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
sealrtc/ancillary/calibrate_scc.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
''' generate the high order SCC IM ''' import os from os import path import sys import itertools import numpy as np from scipy.ndimage.interpolation import rotate from scipy.signal import welch import matplotlib.pyplot as plt import matplotlib as mpl import multiprocessing as mp from tqdm.contrib.concurrent import pro...
29.3125
187
0.734186
b9559f503b64fe28027a5fc0385c1f4ad25992f5
3,208
py
Python
convertpdf/settings.py
smoreilly/scanyourpdf
dd8e3d12f989d00c28b6af32c3fa8d31af5fdcb1
[ "MIT" ]
1
2021-06-16T10:53:18.000Z
2021-06-16T10:53:18.000Z
convertpdf/settings.py
smoreilly/scanyourpdf
dd8e3d12f989d00c28b6af32c3fa8d31af5fdcb1
[ "MIT" ]
null
null
null
convertpdf/settings.py
smoreilly/scanyourpdf
dd8e3d12f989d00c28b6af32c3fa8d31af5fdcb1
[ "MIT" ]
null
null
null
""" Django settings for convertpdf project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
25.664
91
0.695761
616d8cb67faf5a65a627cdb13dab4602fb728588
11,284
py
Python
textacy/resources/depeche_mood.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/resources/depeche_mood.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/resources/depeche_mood.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
""" DepecheMood ----------- DepecheMood is a high-quality and high-coverage emotion lexicon for English and Italian text, mapping individual terms to their emotional valences. These word-emotion weights are inferred from crowd-sourced datasets of emotionally tagged news articles (rappler.com for English, corriere.it f...
37.240924
104
0.58871
78b1c181fed0889f3297e7f0eabe412398b6ea81
14,330
py
Python
qiskit/aqua/operators/matrix_operator.py
desireevl/qiskit-aqua
84c067f3170187be05f40ae5368d439c109fd895
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/operators/matrix_operator.py
desireevl/qiskit-aqua
84c067f3170187be05f40ae5368d439c109fd895
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/operators/matrix_operator.py
desireevl/qiskit-aqua
84c067f3170187be05f40ae5368d439c109fd895
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
36.649616
100
0.573482
cef96fd5e3c084399f8c6b0debe037e8345c2a15
3,531
py
Python
netbox/wireless/urls.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
null
null
null
netbox/wireless/urls.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
null
null
null
netbox/wireless/urls.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
null
null
null
from django.urls import path from netbox.views.generic import ObjectChangeLogView, ObjectJournalView from . import views from .models import * app_name = 'wireless' urlpatterns = ( # Wireless LAN groups path('wireless-lan-groups/', views.WirelessLANGroupListView.as_view(), name='wirelesslangroup_list'), ...
76.76087
154
0.755593
968a4fae2bef5c2e7a37c24c53218b99d3270db9
3,995
py
Python
tests/test_util_merge.py
kviktor/dpath-python
071d7b4fc0b036bea6b11cafc79a8612df990aa4
[ "MIT" ]
393
2015-01-05T15:29:39.000Z
2021-04-11T13:09:55.000Z
tests/test_util_merge.py
kviktor/dpath-python
071d7b4fc0b036bea6b11cafc79a8612df990aa4
[ "MIT" ]
90
2015-01-01T18:01:01.000Z
2021-05-08T17:31:35.000Z
tests/test_util_merge.py
kviktor/dpath-python
071d7b4fc0b036bea6b11cafc79a8612df990aa4
[ "MIT" ]
87
2015-01-05T19:38:56.000Z
2021-04-25T09:04:15.000Z
import nose import copy from nose.tools import raises import dpath.util def test_merge_typesafe_and_separator(): src = { "dict": { "integer": 0, }, } dst = { "dict": { "integer": "3", }, } try: dpath.util.merge(dst, src, flags=(dpa...
20.075377
112
0.491865
94cc8ecf594c6a4bf71da22f7e18b7c18e376d90
9,762
py
Python
logdevice/ops/ldops/types/maintenance_view.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
1,831
2018-09-12T15:41:52.000Z
2022-01-05T02:38:03.000Z
logdevice/ops/ldops/types/maintenance_view.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
183
2018-09-12T16:14:59.000Z
2021-12-07T15:49:43.000Z
logdevice/ops/ldops/types/maintenance_view.py
YangKian/LogDevice
e5c2168c11e9de867a1bcf519f95016e1c879b5c
[ "BSD-3-Clause" ]
228
2018-09-12T15:41:51.000Z
2022-01-05T08:12:09.000Z
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import operator from datetime import datetime, timedelta from typing impor...
34.013937
88
0.65714
2807978e4ddbdd15dc441507ce0ebbeb5351770b
3,562
py
Python
das_framework/dfxml/python/deidentify_xml.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
35
2019-04-16T19:37:01.000Z
2022-02-14T20:33:41.000Z
das_framework/dfxml/python/deidentify_xml.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
6
2019-06-05T19:41:15.000Z
2020-08-19T19:04:59.000Z
das_framework/dfxml/python/deidentify_xml.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
12
2019-05-02T19:38:06.000Z
2021-09-11T22:02:03.000Z
#!/usr/bin/python # # deidentify_xml.py: # Given XML for a disk, remove information that might be personally identifying from filenames. # remember the mapping so that directory names don't get changed. # # 2012-10-27 slg - updated to Python3 private_dirs = ["home/","usr/home","Users"] ok_top_paths_win = ["program fil...
33.603774
101
0.576923
19040765b0192a3b0bf56d4f02dd050cb66a09cc
30,318
py
Python
kiwi/wallet/cc_wallet/cc_wallet.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
8
2021-08-21T03:10:13.000Z
2022-02-09T04:30:05.000Z
kiwi/wallet/cc_wallet/cc_wallet.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
null
null
null
kiwi/wallet/cc_wallet/cc_wallet.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
1
2021-09-03T02:30:26.000Z
2021-09-03T02:30:26.000Z
from __future__ import annotations import logging import time from dataclasses import replace from secrets import token_bytes from typing import Any, Dict, List, Optional, Set from blspy import AugSchemeMPL, G2Element from kiwi.consensus.cost_calculator import calculate_cost_of_program, NPCResult from kiwi.full_node...
40.532086
118
0.647536
d6c0ba1873f94f35697c3c67267ffa1d7a11c882
2,392
py
Python
tests/functional/tests/engine/test_large_io.py
hammerg/ocf
adfa76a21af3d1fac5ca024257c6a7480e730821
[ "BSD-3-Clause" ]
null
null
null
tests/functional/tests/engine/test_large_io.py
hammerg/ocf
adfa76a21af3d1fac5ca024257c6a7480e730821
[ "BSD-3-Clause" ]
null
null
null
tests/functional/tests/engine/test_large_io.py
hammerg/ocf
adfa76a21af3d1fac5ca024257c6a7480e730821
[ "BSD-3-Clause" ]
null
null
null
# # Copyright(c) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # from ctypes import c_int from pyocf.types.cache import Cache from pyocf.types.data import Data from pyocf.types.core import Core from pyocf.types.io import IoDir from pyocf.types.volume import RamVolume, IoFlags from pyocf.types.volume_...
27.181818
84
0.709448
f060b36466055cfe2a49790923fdb80c728dcb51
7,558
py
Python
LegoLib/legoMotor.py
rphuang/IotDevicesPy
44b6e12338ce3c6a292b8ef9b3fa05c5d56b244b
[ "MIT" ]
null
null
null
LegoLib/legoMotor.py
rphuang/IotDevicesPy
44b6e12338ce3c6a292b8ef9b3fa05c5d56b244b
[ "MIT" ]
null
null
null
LegoLib/legoMotor.py
rphuang/IotDevicesPy
44b6e12338ce3c6a292b8ef9b3fa05c5d56b244b
[ "MIT" ]
null
null
null
from threading import RLock from pylgbst.peripherals import EncodedMotor from IotLib.pyUtils import startThread from IotLib.log import Log from IotLib.iotMotor import IotMotor from IotLib.iotEncodedMotor import IotEncodedMotor from .legoNode import SendCommand # todo: LegoMotor inherits both IotMotor and IotSteering. ...
43.94186
151
0.649775
bc3337348e0483d4278ce1a4574e748fd61007c1
37,783
py
Python
src/sentry/south_migrations/0107_expand_user.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
src/sentry/south_migrations/0107_expand_user.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/south_migrations/0107_expand_user.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.alter_column( 'auth_user', 'username', self.gf('django.db.models.fields.CharField')(max_le...
35.677998
96
0.386867
e62c349dc7a6d7639cf582c4704bb33885ccd9fb
26,136
py
Python
train_classification.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
train_classification.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
train_classification.py
krishanr/geo-deep-learning
990ca1799dfeef317fe7438ec2f3eba9dfad70d5
[ "MIT" ]
null
null
null
import torch # import torch should be first. Unclear issue, mentioned here: https://github.com/pytorch/pytorch/issues/2083 import os import argparse from pathlib import Path import csv import time import h5py import datetime import warnings import functools from tqdm import tqdm from collections import OrderedDict imp...
48.4
176
0.630012
8c5ae42f5e69ba221a33c484766d25a39958f772
7,570
py
Python
beautifly/main.py
kolomatskiy/beautifly
a92d4c9aba04bdcc8a31c7dc9e3927c91580f979
[ "MIT" ]
null
null
null
beautifly/main.py
kolomatskiy/beautifly
a92d4c9aba04bdcc8a31c7dc9e3927c91580f979
[ "MIT" ]
null
null
null
beautifly/main.py
kolomatskiy/beautifly
a92d4c9aba04bdcc8a31c7dc9e3927c91580f979
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 28 19:54:43 2021 @author: kolomatskiy """ import os import requests import cv2 import logging from telegram import ReplyKeyboardMarkup, KeyboardButton from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import filters from dotenv import load_dotenv ...
37.29064
186
0.657596
5e9246c73903cb4b08480304b3994685569c59ca
10,808
py
Python
code/ARAX/ARAXQuery/Expand/expand_utilities.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/expand_utilities.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/expand_utilities.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
#!/bin/env python3 # This file contains utilities/helper functions for general use within the Expand module import sys import os import time import traceback from typing import List, Dict, Union, Tuple from response import Response sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../../../UI/OpenAPI/pytho...
41.569231
134
0.688749
cae800a63c7368bb8fafe729aff21d125caf6036
5,281
py
Python
src/deeprace/models/tf_details/utils/logs/benchmark_uploader.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
11
2018-03-02T15:21:26.000Z
2020-02-13T20:38:15.000Z
src/deeprace/models/tf_details/utils/logs/benchmark_uploader.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
13
2018-03-23T16:45:27.000Z
2019-10-11T12:54:29.000Z
src/deeprace/models/tf_details/utils/logs/benchmark_uploader.py
psteinb/deeprace
a3e6cbc83e466f86a76d91c2077349e4d69495c2
[ "BSD-3-Clause" ]
1
2018-11-26T23:20:10.000Z
2018-11-26T23:20:10.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.623077
85
0.66957
76e4e5d6006c7fc4c4f514d42d11bb04ef49e959
977
py
Python
tex/figures/src/ch7_figures.py
albahnsen/phd-thesis
8aedb00cba939b6f8a2f891f453a37206db1f635
[ "BSD-3-Clause" ]
9
2015-10-07T13:31:49.000Z
2019-08-09T12:02:27.000Z
tex/figures/src/ch7_figures.py
albahnsen/phd-thesis
8aedb00cba939b6f8a2f891f453a37206db1f635
[ "BSD-3-Clause" ]
null
null
null
tex/figures/src/ch7_figures.py
albahnsen/phd-thesis
8aedb00cba939b6f8a2f891f453a37206db1f635
[ "BSD-3-Clause" ]
6
2017-01-25T17:16:32.000Z
2020-02-11T13:47:21.000Z
__author__ = 'al' import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns from sklearn import linear_model path = "/home/al/DriveAl/Publications/2015/phd-thesis/tex/figures/" col_pal = sns.color_palette() ################################################...
29.606061
93
0.605937
dfbc5e019a10dc5c439c5f4b6fd960f0986d3331
1,972
py
Python
taro/dto.py
taro-suite/taro
baa76e75706bc824a799928d9b7548431b898338
[ "MIT" ]
null
null
null
taro/dto.py
taro-suite/taro
baa76e75706bc824a799928d9b7548431b898338
[ "MIT" ]
26
2021-04-05T12:32:21.000Z
2022-03-22T12:53:44.000Z
taro/dto.py
taro-suite/taro
baa76e75706bc824a799928d9b7548431b898338
[ "MIT" ]
1
2021-04-16T21:04:53.000Z
2021-04-16T21:04:53.000Z
from typing import Dict, Any from taro import util from taro.jobs.execution import ExecutionError, ExecutionState, ExecutionLifecycle from taro.jobs.job import JobInfo def _format_td(td): if td is None: return None return td.isoformat() def to_info_dto(info) -> Dict[str, Any]: lc = info.lifecyc...
35.214286
117
0.65568
05967d8349d07c9f98a080f672c391729c315592
1,863
py
Python
FilamentCalculator.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
FilamentCalculator.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
FilamentCalculator.py
vlmarch/rhino-tools
491a17859f33613192e7a1d175ad7cee80521cba
[ "MIT" ]
null
null
null
import rhinoscriptsyntax as rs import math def FilamentCalculator(): """3D Printing filament length, weight, volume calculator.""" input_obj = rs.SelectedObjects() if not input_obj: input_obj = rs.GetObjects("Select objects") if not input_obj:return volume = 0.0 for o in input_obj: ...
27.80597
92
0.534622
4d6dfbb37fe08b44d20380237ee2c26d69705965
1,964
py
Python
operations/operations/migrations/0005_auto_20180111_1226.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/operations/migrations/0005_auto_20180111_1226.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/operations/migrations/0005_auto_20180111_1226.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-11 10:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('operations', '0004_document_created_by'), ] operations = [ migrations.Alter...
35.071429
118
0.601324
bd0a618373393a0cab45ebb2cb0d878ae7d25a89
1,556
py
Python
day_03/main.py
orfeasa/advent-of-code-2021
f8a5e542e2d9a6364bb48c90b2148dc4a33608b4
[ "MIT" ]
29
2021-11-18T20:49:49.000Z
2022-03-24T02:17:41.000Z
day_03/main.py
orfeasa/advent-of-code-2021
f8a5e542e2d9a6364bb48c90b2148dc4a33608b4
[ "MIT" ]
null
null
null
day_03/main.py
orfeasa/advent-of-code-2021
f8a5e542e2d9a6364bb48c90b2148dc4a33608b4
[ "MIT" ]
4
2021-11-30T20:57:11.000Z
2021-12-02T16:05:51.000Z
def part_one(filename: str) -> int: with open(filename) as f: nums = list(map(lambda line: [int(i) for i in line.strip()], f.readlines())) counters = [sum(col) for col in zip(*nums)] gamma = int("".join([str(int(c > len(nums) / 2)) for c in counters]), 2) epsilon = int("".join([str(int(c < len(...
29.923077
84
0.546915
f40caa5a35788cb725c0cd98f280e07abcace149
690
py
Python
scripts/start_alsa.py
granolamatt/SoundProcessor
6c903a20b2da268e054d5e9189d746e36ac38ce1
[ "MIT" ]
null
null
null
scripts/start_alsa.py
granolamatt/SoundProcessor
6c903a20b2da268e054d5e9189d746e36ac38ce1
[ "MIT" ]
null
null
null
scripts/start_alsa.py
granolamatt/SoundProcessor
6c903a20b2da268e054d5e9189d746e36ac38ce1
[ "MIT" ]
null
null
null
import sys sys.path.append('/home/matt/workarea/SoundProcessor/build') import time import dsp_example #import ctypes #libc = ctypes.CDLL(None) alsa_capture = dsp_example.AlsaCapture() alsa_capture.start() time.sleep(2) #log_proc = dsp_example.LogProcessor() #log_proc.start() print "hello" ai = dsp_example.AlsaInterf...
21.5625
73
0.695652
61b9acfa15b2bb1c182514fbe516cbc214dbe13c
184
py
Python
company/pagination.py
uktrade/directory-api
45a9024a7ecc2842895201cbb51420ba9e57a168
[ "MIT" ]
2
2017-06-02T09:09:08.000Z
2021-01-18T10:26:53.000Z
company/pagination.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
629
2016-10-10T09:35:52.000Z
2022-03-25T15:04:04.000Z
company/pagination.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
5
2017-06-22T10:02:22.000Z
2022-03-14T17:55:21.000Z
from rest_framework import pagination class CompanyPublicProfile(pagination.PageNumberPagination): page_size = 10 page_size_query_param = 'page_size' max_page_size = 100
23
60
0.793478
2317e32031ba0efe2e3c210044419cbfd29490cf
1,839
py
Python
models.py
hogansung/udacity-computer-vision-nanodegree-program-project-1
bc1bcc70f04e0df5635c181e7640975a05fd3412
[ "MIT" ]
null
null
null
models.py
hogansung/udacity-computer-vision-nanodegree-program-project-1
bc1bcc70f04e0df5635c181e7640975a05fd3412
[ "MIT" ]
null
null
null
models.py
hogansung/udacity-computer-vision-nanodegree-program-project-1
bc1bcc70f04e0df5635c181e7640975a05fd3412
[ "MIT" ]
null
null
null
## TODO: define the convolutional neural network architecture import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F # can use the below import should you choose to initialize the weights of your Net import torch.nn.init as I class Net(nn.Module): def __init__(sel...
36.78
113
0.60087
dd8656418139c274e58ad52f8e43e96030a06d51
1,225
py
Python
django/conf/locale/lv/formats.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
3
2016-07-08T23:49:32.000Z
2018-04-15T22:55:01.000Z
django/conf/locale/lv/formats.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
27
2017-02-05T15:57:04.000Z
2018-04-15T22:57:26.000Z
django/conf/locale/lv/formats.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # DATE_FORMAT = r'Y. \g\a\d\a j. F' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = r'Y. \g\a\d\a j. F, H:i:s' YEAR_MONTH_FORMAT = r'Y. \g. F' MONTH_DAY_FORMAT = 'j. F' SHORT_DATE_FORMAT = r'j.m.Y' SHORT_DATETIME_FORMA...
33.108108
81
0.465306
26763026ed0dfd83d8ed650b187731828c678021
19,342
py
Python
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_base.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_base.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_base.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
15
2017-01-12T10:35:10.000Z
2019-04-19T08:22:10.000Z
# Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2015 Tom Barron. 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.a...
40.805907
79
0.604901
cc994fb8df7640696b2bbd0e29d9ab1c732499f5
1,235
py
Python
matlab/dates_and_time.py
MuadDev/PythonNuggets
95d0cd6204e2e7f464ea21e75815b2dc9453a86f
[ "MIT" ]
null
null
null
matlab/dates_and_time.py
MuadDev/PythonNuggets
95d0cd6204e2e7f464ea21e75815b2dc9453a86f
[ "MIT" ]
null
null
null
matlab/dates_and_time.py
MuadDev/PythonNuggets
95d0cd6204e2e7f464ea21e75815b2dc9453a86f
[ "MIT" ]
null
null
null
# %% # How to convert a Matlab datenum to a Python datetime? from datetime import datetime, timedelta def datenum_to_datetime(dn: float) -> datetime: """Converts a Matlab datenum to a Python datetime From: https://stackoverflow.com/a/13965852/8488985 Example: >>> dn = 731965.04835648148 ...
31.666667
101
0.65587
fd457f8dbbeb10ea10b222be46afdf6c41bcdf00
30,107
py
Python
lib/ledsettings.py
theblackhat17/Piano-LED-Visualizer
4c9ba4bbfe3754cb764e47a8753852adfa26d5a7
[ "MIT" ]
null
null
null
lib/ledsettings.py
theblackhat17/Piano-LED-Visualizer
4c9ba4bbfe3754cb764e47a8753852adfa26d5a7
[ "MIT" ]
null
null
null
lib/ledsettings.py
theblackhat17/Piano-LED-Visualizer
4c9ba4bbfe3754cb764e47a8753852adfa26d5a7
[ "MIT" ]
null
null
null
import ast import random import time from xml.dom import minidom from lib.functions import fastColorWipe, find_between, clamp from neopixel import Color class LedSettings: def __init__(self, usersettings): self.usersettings = usersettings self.red = int(usersettings.get_setting_value("red")) ...
53.476021
121
0.601388
b28a8690e53d5b5418398966be9acdce973db45c
17,089
py
Python
electrum_dsv/tests/test_wallet.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/tests/test_wallet.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/tests/test_wallet.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
import shutil import tempfile import sys import os import json from decimal import Decimal import time from io import StringIO from electrum_dsv.storage import WalletStorage from electrum_dsv.wallet_db import FINAL_SEED_VERSION from electrum_dsv.wallet import (Abstract_Wallet, Standard_Wallet, create_new_wallet, ...
58.523973
2,651
0.734508
da8e8ad41d21b9cd65b24070dc1a60e949691c15
3,707
py
Python
server/src/main_script.py
jnicolla/cost-coach
a62e38691f6ac29d23848dc4feaa848536e7bbcd
[ "MIT" ]
null
null
null
server/src/main_script.py
jnicolla/cost-coach
a62e38691f6ac29d23848dc4feaa848536e7bbcd
[ "MIT" ]
null
null
null
server/src/main_script.py
jnicolla/cost-coach
a62e38691f6ac29d23848dc4feaa848536e7bbcd
[ "MIT" ]
null
null
null
import os import csv from Plinko_Model import insuranceFunc # If you wan to change the input files to obtain different output files, run the main_script.py # Make sure you change the file name (pathname) in the process_data to the one you want to be runing def getPath(rel_path): script_path = os.path.abspath(__fil...
37.826531
163
0.637712
99e6499a928d18698979352665d8fda37e55d56a
725
py
Python
tests/func/slack/TestSlackFixtures.py
StrandHQ/strand-slack
44d63df66c7f26b516b1e823dbba6bd6afa49fee
[ "MIT" ]
null
null
null
tests/func/slack/TestSlackFixtures.py
StrandHQ/strand-slack
44d63df66c7f26b516b1e823dbba6bd6afa49fee
[ "MIT" ]
null
null
null
tests/func/slack/TestSlackFixtures.py
StrandHQ/strand-slack
44d63df66c7f26b516b1e823dbba6bd6afa49fee
[ "MIT" ]
null
null
null
import pytest from src.models.domain.Agent import Agent from src.models.domain.User import User from tests.utils.create_in_db import insert_agent_user_installation class TestSlackFixtures: @pytest.fixture(scope='function') def installed_user(self, db_session) -> User: """Inserts Agent, User, and Inst...
36.25
81
0.74069
ecc4078b31833e2c53ad59ca9eb0368cb510b500
17,339
py
Python
mne/transforms.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
mne/transforms.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
mne/transforms.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2018-09-15T09:45:38.000Z
2018-09-15T09:45:38.000Z
# Authors: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD (3-clause) import numpy as np from numpy import sin, cos from scipy import linalg from copy import deepcopy from .fiff import FIFF from .fiff.open import fiff_open from .fiff.tag imp...
31.582878
80
0.541092
c41111d4291ede1534e1fadc2c1dea6e10527417
24,722
py
Python
run_fashion_dnn_experiment.py
jramapuram/LifelongVAE
91a1d61826637ed5d173679af25faca997532ee4
[ "MIT" ]
17
2017-06-03T23:00:17.000Z
2020-11-29T03:04:38.000Z
run_fashion_dnn_experiment.py
jramapuram/LifelongVAE
91a1d61826637ed5d173679af25faca997532ee4
[ "MIT" ]
1
2019-12-04T10:59:09.000Z
2019-12-11T06:23:11.000Z
run_fashion_dnn_experiment.py
jramapuram/LifelongVAE
91a1d61826637ed5d173679af25faca997532ee4
[ "MIT" ]
6
2017-05-30T09:28:53.000Z
2018-08-02T09:57:11.000Z
import os import sys sys.setrecursionlimit(200) import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.cm as cm import tensorflow as tf import numpy as np import tensorflow.contrib.distributions as distributions from fashion_number import Fashion_Class, Fashion, fashion from lifelong...
41.619529
131
0.572688
afd71571f7ae1d32ea037b6697c13621af22c796
19,087
py
Python
bot.py
DeafeN22/bot
40e98dac2c2023018bc2f87a010e063249ef5e45
[ "MIT" ]
1
2019-05-04T16:43:40.000Z
2019-05-04T16:43:40.000Z
bot.py
DeafeN22/bot2
40e98dac2c2023018bc2f87a010e063249ef5e45
[ "MIT" ]
null
null
null
bot.py
DeafeN22/bot2
40e98dac2c2023018bc2f87a010e063249ef5e45
[ "MIT" ]
null
null
null
''' MIT License Copyright (c) 2019 TNkP#6750 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
37.279297
134
0.575942
b606711d431033c6500df5cfa75dbbe7db36eba2
18
py
Python
coverage-3.7.1/tests/modules/pkg2/p2a.py
I-Valchev/UrPas
7babb5208fab6975891fba440e633cc9ad6e8718
[ "Apache-2.0" ]
1
2015-03-04T09:00:44.000Z
2015-03-04T09:00:44.000Z
coverage-3.7.1/tests/modules/pkg2/p2a.py
I-Valchev/UrPas
7babb5208fab6975891fba440e633cc9ad6e8718
[ "Apache-2.0" ]
null
null
null
coverage-3.7.1/tests/modules/pkg2/p2a.py
I-Valchev/UrPas
7babb5208fab6975891fba440e633cc9ad6e8718
[ "Apache-2.0" ]
null
null
null
q = 1 r = 1 s = 1
4.5
5
0.333333
dd3ab37432c9823449c03ccea910402657e595d9
1,882
py
Python
ooobuild/dyn/mozilla/menu_single_change.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/mozilla/menu_single_change.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/mozilla/menu_single_change.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
34.851852
109
0.680659
a94f5a57c4c4165393c48605d6d814783982508b
1,290
py
Python
api/barriers/migrations/0104_auto_20210415_0836.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
null
null
null
api/barriers/migrations/0104_auto_20210415_0836.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
api/barriers/migrations/0104_auto_20210415_0836.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
# Generated by Django 3.1.8 on 2021-04-15 08:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("barriers", "0103_auto_20210407_1012"), ] operations = [ migrations.AlterField( model_name="barrier", name="trading_b...
30.714286
69
0.469767
e4d15d1c3b79691d9f116cad9a8a09d3169dde23
3,481
py
Python
k-NN-MNIST/k-nn.py
cc-shen/machine-learning
447862f020ec0a384d9cb3ec0f6e15a6bb17504f
[ "MIT" ]
null
null
null
k-NN-MNIST/k-nn.py
cc-shen/machine-learning
447862f020ec0a384d9cb3ec0f6e15a6bb17504f
[ "MIT" ]
null
null
null
k-NN-MNIST/k-nn.py
cc-shen/machine-learning
447862f020ec0a384d9cb3ec0f6e15a6bb17504f
[ "MIT" ]
null
null
null
""" Charles Shen October 11, 2017 """ # Lin. alg. calculations import numpy # Distance calcuations import scipy.spatial # MNIST data set import keras from keras.datasets import mnist # || x - y ||_{2} def euclidean_distance(x, y): return scipy.spatial.distance.euclidean(x, y) # || x - y ||_{1} def manh...
32.53271
110
0.649526
d81f051f9dbcc7381f2877f7423759bed385e0da
677
py
Python
blog/auth.py
gabrielsroka/okta-flask-blog
77389ca23fe01757a0535449471d2d6b559356b1
[ "Unlicense" ]
null
null
null
blog/auth.py
gabrielsroka/okta-flask-blog
77389ca23fe01757a0535449471d2d6b559356b1
[ "Unlicense" ]
null
null
null
blog/auth.py
gabrielsroka/okta-flask-blog
77389ca23fe01757a0535449471d2d6b559356b1
[ "Unlicense" ]
null
null
null
"""Authentication views and helpers.""" from os import environ from flask import Blueprint, redirect, url_for from flask_oidc import OpenIDConnect from okta import UsersClient bp = Blueprint("auth", __name__, url_prefix="/") oidc = OpenIDConnect() okta_client = UsersClient(environ.get("OKTA_ORG_URL"), environ.get(...
21.15625
86
0.698671
b973f9e8b0a2acb5f79142d1588fba1681a1844b
3,113
py
Python
mmdet/models/necks/icarafe_3_sa_se_3_norm.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/icarafe_3_sa_se_3_norm.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/icarafe_3_sa_se_3_norm.py
zhaoyang97/mmdetection
93ce0e7b735ad1ed2e7d856ef80e3aa598cb47e5
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F from .i_attention_layer import SqueezeExcitation_c64 from .i_attention_layer import SqueezeExcitation_c100 from .i_attention_layer import SpatialAttention from .i_attention_layer import ConvBNReLU from .i_attention_layer import SE from .i_attention...
38.432099
124
0.590748
ae26e4a20878ce28aff635b47db6d0aa8e46b6a4
4,691
py
Python
GUImain.py
faizzahmed/ticker
6eab0c9e3a595026b1ec9a65859659c74fefeb30
[ "MIT" ]
null
null
null
GUImain.py
faizzahmed/ticker
6eab0c9e3a595026b1ec9a65859659c74fefeb30
[ "MIT" ]
null
null
null
GUImain.py
faizzahmed/ticker
6eab0c9e3a595026b1ec9a65859659c74fefeb30
[ "MIT" ]
null
null
null
# ______________________________________________________________________________________________________ # Stock Ticker Tkinter GUI # WIP - use ticker script to expose same data via tkinter GUI # ____________________________________________________________________________________________...
32.576389
162
0.602857
fbd274d3663861c060b999c714ebf9e91ccf3c53
700
py
Python
ExerciciosPython/ex026.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/ex026.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/ex026.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
# Exercício Python 26: Faça um programa que leia uma frase pelo teclado e mostre quantas vezes aparece a letra “A”, # em que posição ela aparece a primeira vez e em que posição ela aparece a última vez. frase = str(input('Escreva uma frase: ')).strip().lower() a = frase.count('a') b = frase.find('a') c = frase.rfind('...
41.176471
115
0.691429
0871b2f4a8d0a94982cc8d6c984ddcfe9d18290a
73
py
Python
tests/app/controller/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
tests/app/controller/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
tests/app/controller/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
"""Pack the modules contained in the tests/app/controller directory."""
36.5
72
0.753425
4ca5d96fdca2a17c52e06814949d13651bfa6a55
3,977
py
Python
data/complex/PCAD_main.py
markus-antero/Stock
492e9b26c376d5e5f779e3b5cc2e51c7f92c7feb
[ "Apache-2.0" ]
null
null
null
data/complex/PCAD_main.py
markus-antero/Stock
492e9b26c376d5e5f779e3b5cc2e51c7f92c7feb
[ "Apache-2.0" ]
null
null
null
data/complex/PCAD_main.py
markus-antero/Stock
492e9b26c376d5e5f779e3b5cc2e51c7f92c7feb
[ "Apache-2.0" ]
null
null
null
''' Created on 19.4.2017 @author: Markus.Walden ''' from __future__ import print_function, division import numpy as np import matplotlib.pyplot as plt from scipy import stats # use seaborn plotting style defaults import seaborn as sns; sns.set() # premade pca SKLEARN from sklearn.decomposition import...
30.829457
91
0.567513
21f907cd6e953b2c3540e47b81bee6df2a00753c
1,011
py
Python
prompt_toolkit_dev/layout/mouse_handlers.py
tcrensink/python-prompt-toolkit
bc200c4a58d2a3059f8a4606e95ecdd731f4e1cd
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit_dev/layout/mouse_handlers.py
tcrensink/python-prompt-toolkit
bc200c4a58d2a3059f8a4606e95ecdd731f4e1cd
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit_dev/layout/mouse_handlers.py
tcrensink/python-prompt-toolkit
bc200c4a58d2a3059f8a4606e95ecdd731f4e1cd
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from itertools import product from typing import Callable, DefaultDict, Tuple from prompt_toolkit_dev.mouse_events import MouseEvent __all__ = [ 'MouseHandlers', ] class MouseHandlers: """ Two dimensional raster of callbacks for mouse events. """ def __init__(...
29.735294
91
0.628091
fffcabd34df7ba1f64347d948b4b80811723afa8
482
py
Python
python/cross-stack-resources/raw-strings/raw_strings/application_stack.py
marclyo/aws-cdk-examples
f041f07ebd4c94897e16d37ff813a38eb32645a1
[ "Apache-2.0" ]
2,941
2019-02-08T15:29:36.000Z
2022-03-31T23:57:42.000Z
python/cross-stack-resources/raw-strings/raw_strings/application_stack.py
marclyo/aws-cdk-examples
f041f07ebd4c94897e16d37ff813a38eb32645a1
[ "Apache-2.0" ]
558
2019-02-14T23:32:02.000Z
2022-03-30T00:35:11.000Z
python/cross-stack-resources/raw-strings/raw_strings/application_stack.py
marclyo/aws-cdk-examples
f041f07ebd4c94897e16d37ff813a38eb32645a1
[ "Apache-2.0" ]
1,409
2019-02-12T19:13:04.000Z
2022-03-31T18:46:21.000Z
from aws_cdk import ( aws_lambda as lambda_, aws_apigateway as apigw, core ) class ApplicationStack(core.Stack): def __init__(self, scope: core.Construct, id: str, lambda_arn: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) referenced_function = lambda_.Function....
32.133333
122
0.705394
b5591c3bc975d3e8341ca7686acf63de9e492958
3,859
py
Python
ais/plugins/task_mon/task_mon.py
rbogle/autoimgsys
55808d0ddefb949a278bc9790c014f3b4fcf6fdb
[ "Unlicense" ]
4
2017-04-10T02:50:05.000Z
2018-10-31T12:07:55.000Z
ais/plugins/task_mon/task_mon.py
rbogle/autoimgsys
55808d0ddefb949a278bc9790c014f3b4fcf6fdb
[ "Unlicense" ]
1
2017-03-22T20:46:39.000Z
2017-03-22T20:47:23.000Z
ais/plugins/task_mon/task_mon.py
rbogle/autoimgsys
55808d0ddefb949a278bc9790c014f3b4fcf6fdb
[ "Unlicense" ]
1
2018-09-12T19:31:16.000Z
2018-09-12T19:31:16.000Z
# -*- coding: utf-8 -*- from flask.ext.admin import expose from flask import Markup from apscheduler.events import * from ais.lib.listener import Listener from ais.ui.models import Event,Job,Plugin from ais.ui import db class Task_Monitor(Listener): def __init__(self, **kwargs): super(Task_Mo...
37.466019
104
0.569059
e284f72a71e054e537a4c508d12bb067a9297ae2
1,880
py
Python
cor.py
wellingtonfs/fsek-pessoal
c4e63eb36050614cab18f2ccc6eb5c62cd8b867d
[ "MIT" ]
null
null
null
cor.py
wellingtonfs/fsek-pessoal
c4e63eb36050614cab18f2ccc6eb5c62cd8b867d
[ "MIT" ]
null
null
null
cor.py
wellingtonfs/fsek-pessoal
c4e63eb36050614cab18f2ccc6eb5c62cd8b867d
[ "MIT" ]
4
2019-08-20T15:07:01.000Z
2020-03-10T13:53:18.000Z
#!/usr/bin/env python3 # so that script can be run from Brickman import termios, tty, sys, time from ev3dev.ev3 import * from threading import * # attach large motors to ports B and C, medium motor to port A motor_left = LargeMotor('outC') motor_right = LargeMotor('outD') us = UltrasonicSensor('in3') us2 = UltrasonicS...
22.650602
81
0.54734
568b607412752d28aa132c4f73b55b536c0c2d9f
838
py
Python
h/migrations/versions/296573bb30b3_add_feature_featurecohort_association_table.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
2,103
2015-01-07T12:47:49.000Z
2022-03-29T02:38:25.000Z
h/migrations/versions/296573bb30b3_add_feature_featurecohort_association_table.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
4,322
2015-01-04T17:18:01.000Z
2022-03-31T17:06:02.000Z
h/migrations/versions/296573bb30b3_add_feature_featurecohort_association_table.py
admariner/h
25ef1b8d94889df86ace5a084f1aa0effd9f4e25
[ "BSD-2-Clause" ]
389
2015-01-24T04:10:02.000Z
2022-03-28T08:00:16.000Z
""" Add feature_featurecohort association table. Revision ID: 296573bb30b3 Revises: f6ffcfc50583 Create Date: 2016-06-09 16:35:09.065224 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "296573bb30b3" down_revision = "f6ffcfc50583" def upgrade(): op.create_...
26.1875
69
0.687351
cd724902edab598e8619902c82f58618729b3873
13,905
py
Python
statestream/backends/backend_theano.py
boschresearch/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
9
2019-02-21T14:25:26.000Z
2021-07-21T08:14:32.000Z
statestream/backends/backend_theano.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
null
null
null
statestream/backends/backend_theano.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
1
2019-03-04T03:17:00.000Z
2019-03-04T03:17:00.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/statestream # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
24.964093
103
0.596404
f995525f5eb7edbd430ca0b2f7293c7cdecf83cd
5,730
py
Python
softlearning/samplers/simple_sampler.py
jschweiz/semester-project
c64d4335622e33c8effcf472e3709568195c51d1
[ "MIT" ]
null
null
null
softlearning/samplers/simple_sampler.py
jschweiz/semester-project
c64d4335622e33c8effcf472e3709568195c51d1
[ "MIT" ]
null
null
null
softlearning/samplers/simple_sampler.py
jschweiz/semester-project
c64d4335622e33c8effcf472e3709568195c51d1
[ "MIT" ]
null
null
null
from collections import defaultdict import tensorflow as tf import numpy as np from flatten_dict import flatten, unflatten from softlearning.models.utils import flatten_input_structure from .base_sampler import BaseSampler class SimpleSampler(BaseSampler): def __init__(self, latent_dim=0, session=None, **kwargs...
34.727273
131
0.590401
a5a316d19d5bad5413f60942002c3eaed1cb591d
14,987
py
Python
sdcclient/secure/_policy_events_old.py
dark-vex/sysdig-sdk-python
52962a0c283ca12b93a743ae8c5d1639a12b0998
[ "MIT" ]
45
2016-04-11T16:50:15.000Z
2020-07-11T23:37:51.000Z
sdcclient/secure/_policy_events_old.py
dark-vex/sysdig-sdk-python
52962a0c283ca12b93a743ae8c5d1639a12b0998
[ "MIT" ]
74
2016-08-09T17:10:55.000Z
2020-07-09T08:36:16.000Z
sdcclient/secure/_policy_events_old.py
dark-vex/sysdig-sdk-python
52962a0c283ca12b93a743ae8c5d1639a12b0998
[ "MIT" ]
39
2016-04-20T17:22:23.000Z
2020-07-08T17:25:52.000Z
import datetime import json from warnings import warn from sdcclient._common import _SdcCommon class PolicyEventsClientOld(_SdcCommon): def __init__(self, token="", sdc_url='https://secure.sysdig.com', ssl_verify=True, custom_headers=None): super(PolicyEventsClientOld, self).__init__(token, sdc_url, ssl_...
70.361502
432
0.66531