hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
33ee6777b6e83ba8f19c6531660cd338f9600734
955
py
Python
install/windows.py
HazelTheWitch/destiny.py
a22297243299f7d1c8f597a4451c2236c6ff92df
[ "MIT" ]
null
null
null
install/windows.py
HazelTheWitch/destiny.py
a22297243299f7d1c8f597a4451c2236c6ff92df
[ "MIT" ]
1
2021-05-21T04:41:03.000Z
2021-05-21T04:41:03.000Z
install/windows.py
HazelTheWitch/destiny.py
a22297243299f7d1c8f597a4451c2236c6ff92df
[ "MIT" ]
null
null
null
import winreg from sys import executable from pathlib import Path __all__ = [ 'createURIScheme' ] def createURIScheme(): # Create the custom scheme key, all other keys should go under this one schemeKey = winreg.CreateKey(winreg.HKEY_CLASSES_ROOT, 'dpy') winreg.SetValue(winreg.HKEY_CLASSES_ROOT, 'dpy...
31.833333
105
0.703665
33ee70376ab0ca20785646a9c6cea51b1e1239c8
12,662
py
Python
ceciestunepipe/file/bcistructure_pouli.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
ceciestunepipe/file/bcistructure_pouli.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
ceciestunepipe/file/bcistructure_pouli.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
import os import socket import json import logging import glob import warnings logger = logging.getLogger('ceciestunepipe.file.bcistructure') locations_dict = dict() # locations_dict['passaro'] = {'mnt': os.path.abspath('/mnt/cube/earneodo/basalganglia/birds'), # 'local': os.path.abspath...
40.713826
125
0.597615
33eeb6c08e02925589034c911bea1a0115b90ad3
4,069
py
Python
appengine/findit/services/compile_failure/test/extract_compile_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/compile_failure/test/extract_compile_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/compile_failure/test/extract_compile_signal_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import json import mock from model.wf_analysis import WfAnalysis from model.wf_step import WfStep from services import extract_signal from servi...
31.542636
79
0.662571
33eeb7818c31604f42397e11291712f14457ee68
536
py
Python
tests/test_alarms.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
1
2019-03-09T14:23:48.000Z
2019-03-09T14:23:48.000Z
tests/test_alarms.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
null
null
null
tests/test_alarms.py
gitter-badger/SoCo
65977466057748ea522a6d8b7f2a649091485a07
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the alarms module.""" from __future__ import unicode_literals from soco.alarms import is_valid_recurrence def test_recurrence(): for recur in ('DAILY', 'WEEKDAYS', 'WEEKENDS', 'ONCE'): assert is_valid_recurrence(recur) assert is_valid_recurrence('ON_1') asse...
28.210526
59
0.725746
33eec4a248db4688e9a3a35d84d4ea293cb934b2
601
py
Python
data/pickle_loader.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
data/pickle_loader.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
data/pickle_loader.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
''' 2019. 1. 25 Eojin Rho import cmu-wafer ''' import pickle as pkl import numpy as np import os dir = os.path.dirname(os.path.realpath(__file__)) def np2pkl(file_name, data, dataset_name = "cmu-wafer"): file_path = os.path.join(dir, dataset_name, file_name) file_object = open(file_path, 'wb') pkl.dump...
22.259259
58
0.697171
33eecee1f3aa1216ba577d17d627ae1b537e1eb5
3,463
py
Python
django_oci/files.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
5
2020-03-24T23:45:28.000Z
2021-11-26T03:31:05.000Z
django_oci/files.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
14
2020-04-02T17:13:28.000Z
2020-12-29T12:36:38.000Z
django_oci/files.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020, Vanessa Sochat 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, softwa...
32.064815
121
0.654923
33eed7f964442fb13d31c4501689b6d9239ab9cc
34,661
py
Python
intersight/apis/workflow_workflow_info_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/workflow_workflow_info_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/workflow_workflow_info_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
48.612903
818
0.608609
33eefc63fe2021a98569c140b025f9626d878250
4,551
py
Python
tests/test_quadratures.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
tests/test_quadratures.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
tests/test_quadratures.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import numpy as nm from six.moves import range try: import sympy as sm except ImportError: sm = None from sfepy.base.testing import TestCommon from sfepy.base.base import assert_, ordered_iteritems def symarray(prefix, shape): """ Copied from SymPy so that the t...
28.44375
79
0.546693
33ef3ef01d8cf22b726be05511588daab06bda34
80,923
py
Python
python_pb2/go/chromium/org/luci/buildbucket/proto/rpc_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/buildbucket/proto/rpc_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/buildbucket/proto/rpc_prpc_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: go.chromium.org/luci/buildbucket/proto/rpc.proto import base64 import zlib from google.protobuf import descriptor_pb2 # Includes description of the go.chromium.org/luci/buildbucket/proto/rpc.proto and all of its transitive # dependencie...
79.727094
107
0.883457
33ef57fa0a01cf096a2bbd4600c0c69148633e5a
470
py
Python
src/utils/DataNormalization.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
src/utils/DataNormalization.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
src/utils/DataNormalization.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
import numpy as np from src.utils import DataSetStat def centerData(data: np.ndarray): mean = DataSetStat.dataMean(data) return data - mean, mean def handleZeroVariance(varVec: np.ndarray): varVec[varVec == 0] = 1e-20 return varVec def standardizeData(data: np.ndarray): zeroMeanData, _ = center...
26.111111
95
0.712766
33ef5e661c14d66527f970416cadaa0ca29e8037
34,535
py
Python
Lib/yp_test/test_fileinput.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_fileinput.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_fileinput.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
''' Tests for fileinput module. Nick Mathewson ''' from yp import * import os import sys import re import fileinput import collections import builtins from yp_test import yp_unittest try: import bz2 except ImportError: bz2 = None try: import gzip except ImportError: gzip = None from io import BytesIO,...
38.457684
84
0.615868
33ef73f500c0bd7c788f4cc83e3e41dd18442d6c
3,256
py
Python
redbrick/coco/tests/test_categories.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2020-11-26T04:25:15.000Z
2020-11-26T04:25:15.000Z
redbrick/coco/tests/test_categories.py
redbrick-ai/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
33
2021-02-04T17:51:53.000Z
2022-03-17T07:28:36.000Z
redbrick/coco/tests/test_categories.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2021-06-09T10:06:35.000Z
2021-06-09T10:06:35.000Z
"""Test functions for coco and rb categories.""" from redbrick.coco.categories import rb2coco_categories_format, rb_get_class_id taxonomy1 = { "name": "helloWorld", "version": 1, "attributes": [], "categories": [ { "name": "object", "classId": -1, "children"...
30.429907
80
0.407862
33efe2ecf25b64678c799aced9a05a091ad7ffbe
2,745
py
Python
AlgorithmicTradingAndQuantitativeAnalysis/Examples/16_stockrow.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/16_stockrow.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/16_stockrow.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
# ============================================================================= # Data extraction from stockrow.com # Author : Reza Sadegehi (Reviewed by Mayank Rasu) # Please report bug/issues in the Q&A section # ============================================================================= import pandas as pd from...
32.678571
128
0.613115
33f027d3d1e5ff273084cef283d42e6c6242d363
1,423
py
Python
superset/db_engine_specs/dremio.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
30
2020-10-24T02:30:31.000Z
2022-03-29T23:21:48.000Z
superset/db_engine_specs/dremio.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
339
2017-03-09T00:02:21.000Z
2022-03-29T22:28:50.000Z
superset/db_engine_specs/dremio.py
aerhuasi/superset
b4cd57b7bd2d87092ea50cfb2a38f27458195bf4
[ "Apache-2.0" ]
9
2020-12-21T16:20:20.000Z
2022-03-18T06:04:37.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.487179
62
0.674631
33f028c2e73dd6f020723b0ebe534e1b1241919a
771
py
Python
libpython/gary/chemistry.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
8
2015-11-02T22:55:24.000Z
2018-05-27T22:11:40.000Z
libpython/gary/chemistry.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
3
2021-03-31T19:12:43.000Z
2021-12-13T20:03:51.000Z
libpython/gary/chemistry.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
2
2016-07-11T18:00:18.000Z
2019-04-23T14:41:52.000Z
import regex as re symbols = ['Ac', 'Ag', 'Al', 'Am', 'Ar', 'As', 'At', 'Au', 'B', 'Ba', 'Be', 'Bi', 'Bk', 'Br', 'C', 'Ca', 'Cd', 'Ce', 'Cf', 'Cl', 'Cm', 'Co', 'Cr', 'Cs', 'Cu', 'Dy', 'Er', 'Es', 'Eu', 'F', 'Fe', 'Fm', 'Fr', 'Ga', 'Gd', 'Ge', 'H', 'He', 'Hf', 'Hg', 'Ho', 'I', 'In', 'Ir', 'K', 'Kr', 'La', ...
55.071429
116
0.351492
33f029d7cc545e7510063df1d46a3bb086163161
12,518
py
Python
metrics/dashboards/create_dashboards.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
metrics/dashboards/create_dashboards.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
3
2021-09-30T18:02:15.000Z
2022-02-26T12:22:50.000Z
metrics/dashboards/create_dashboards.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
# # create_dashboards.py # Uses jinja2 + json to read from a template file on disk # and create a set of dashboards for grafana. This is surprisingly # the best/recommended way to configure this -- there are a few YAML # options but they seem to be less fully featured. # # If wanting to add/change something in ...
35.663818
111
0.558875
33f08611ab824feb21d36b4da943b03269fdcfcd
547
py
Python
agc/027/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
agc/027/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
agc/027/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, x = na() A = na() A.sort() ans = 0 for i in range(N): if x >= A[i]: x -= A...
18.862069
57
0.398537
33f086f99b2d15f85573b7b9d72db6d64e8e150d
7,325
py
Python
assignments/2019/assignment2/Dropout.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
null
null
null
assignments/2019/assignment2/Dropout.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
19
2020-03-31T06:21:29.000Z
2022-03-11T23:58:51.000Z
assignments/2019/assignment2/Dropout.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
1
2020-02-08T11:11:44.000Z
2020-02-08T11:11:44.000Z
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 1.2.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --...
35.216346
364
0.693652
33f087235d8aebf262e2a73bb6ddcd88b75902a0
551
py
Python
Python-code-snippets-201-300/233-get-environment-variables.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/233-get-environment-variables.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/233-get-environment-variables.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
"""Code snippets vol-47-snippet-233 Get environment variables Download all snippets so far: https://wp.me/Pa5TU8-1yg Blog: stevepython.wordpress.com Requirements: None. Origin: Steve Shambles March 2020 """ import os # Display some example environmental variables. print(os.getenv('USERNAME')) print(os.getenv('H...
21.192308
47
0.760436
33f0a08a647759888149301c5c2ad5fade804369
5,429
py
Python
PythonProjects/17-LoopsWithinLoops/src/m5_more_nested_loops_in_printing.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/17-LoopsWithinLoops/src/m5_more_nested_loops_in_printing.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/17-LoopsWithinLoops/src/m5_more_nested_loops_in_printing.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" This project lets you practice NESTED LOOPS (i.e., loops within loops) in the context of PRINTING on the CONSOLE. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Derek Whitley, their colleagues, and Seth Mutchler. """ # DONE: 1. PUT YOUR NAME IN THE ...
32.90303
79
0.524038
33f0a2932ca7948cc947af73ee110fc73c28336e
5,300
py
Python
agent.py
sdsc-bw/MCXAI
088fc2e636cb90418ffbc91cda9e707eab97745f
[ "MIT" ]
null
null
null
agent.py
sdsc-bw/MCXAI
088fc2e636cb90418ffbc91cda9e707eab97745f
[ "MIT" ]
null
null
null
agent.py
sdsc-bw/MCXAI
088fc2e636cb90418ffbc91cda9e707eab97745f
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from mct import MC_node, MC_edge, MCFE_tree from state import State import util import copy import numpy as np import pandas as pd import random import logging logging.basicConfig(level=logging.ERROR, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logg...
35.57047
200
0.584528
33f0ab3223700f5d2d92b5bec8dbef311342aa86
751
py
Python
alipay/aop/api/response/AntMerchantExpandIndirectZftSimplecreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AntMerchantExpandIndirectZftSimplecreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AntMerchantExpandIndirectZftSimplecreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AntMerchantExpandIndirectZftSimplecreateResponse(AlipayResponse): def __init__(self): super(AntMerchantExpandIndirectZftSimplecreateResponse, self).__init__() self._o...
28.884615
121
0.728362
33f0e501503c16b1a4d55bf8b8a21490284675c3
2,302
py
Python
tests/swagger_generation/test_swagger_generator_hidden_api.py
sourya-deepsource/flask-rebar
6c4a763228ab2c49585c695e4efc8e390f37e55b
[ "MIT" ]
null
null
null
tests/swagger_generation/test_swagger_generator_hidden_api.py
sourya-deepsource/flask-rebar
6c4a763228ab2c49585c695e4efc8e390f37e55b
[ "MIT" ]
1
2020-12-15T14:48:26.000Z
2020-12-15T15:22:48.000Z
tests/swagger_generation/test_swagger_generator_hidden_api.py
sourya-deepsource/flask-rebar
6c4a763228ab2c49585c695e4efc8e390f37e55b
[ "MIT" ]
1
2020-12-15T14:43:46.000Z
2020-12-15T14:43:46.000Z
""" Test Swagger Generation ~~~~~~~~~~~~~~~~~~~~~~~ Tests for converting a handler registry to a Swagger specification. :copyright: Copyright 2018 PlanGrid, Inc., see AUTHORS. :license: MIT, see LICENSE for details. """ import json import marshmallow as m import pytest from flask_rebar.rebar imp...
30.693333
80
0.728497
33f0f02968ec0798031e01a56ba18f57179b9291
6,664
py
Python
python3/numpy/AggregationsMinMaxAndEverythinginBetween.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/numpy/AggregationsMinMaxAndEverythinginBetween.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/numpy/AggregationsMinMaxAndEverythinginBetween.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
# Reference Book: Python Data Science Handbook (page:(59-)) # Date(13 April, 2019) Day-3 # We’ll start with the standard NumPy import, under the alias np : import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn seaborn.set() # set plot style # Often when you are faced with a large amou...
40.387879
103
0.629652
33f1217412c5b8167116fa6ff6c23204e627f7f9
7,272
py
Python
tensorflow/contrib/graph_editor/tests/transform_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/contrib/graph_editor/tests/transform_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
5
2017-01-31T00:32:02.000Z
2017-12-17T14:34:17.000Z
tensorflow/contrib/graph_editor/tests/transform_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
10
2017-02-08T21:39:27.000Z
2018-10-04T17:34:54.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.096774
80
0.672305
33f135628199fa9dd30206880330526bbcfe0eba
192
py
Python
riemann/manifolds/__init__.py
arunchaganty/riemannian-nlp
bcaa0590a6be22e1cd2103dd12835400f35f170d
[ "MIT" ]
null
null
null
riemann/manifolds/__init__.py
arunchaganty/riemannian-nlp
bcaa0590a6be22e1cd2103dd12835400f35f170d
[ "MIT" ]
null
null
null
riemann/manifolds/__init__.py
arunchaganty/riemannian-nlp
bcaa0590a6be22e1cd2103dd12835400f35f170d
[ "MIT" ]
null
null
null
from .manifold import RiemannianManifold from .euclidean import EuclideanManifold from .product import ProductManifold from .sphere import SphericalManifold from .poincare import PoincareBall
32
40
0.869792
33f13579550bbe299a025881090a0c4746351e7c
834
py
Python
tests/test_law_and_institution.py
Spider2themax/math_model_of_trust
3aa1a03e31df2a4e0464b251a4de1280832b28d8
[ "MIT" ]
null
null
null
tests/test_law_and_institution.py
Spider2themax/math_model_of_trust
3aa1a03e31df2a4e0464b251a4de1280832b28d8
[ "MIT" ]
null
null
null
tests/test_law_and_institution.py
Spider2themax/math_model_of_trust
3aa1a03e31df2a4e0464b251a4de1280832b28d8
[ "MIT" ]
null
null
null
# Copyright MaxAndMitchCorp 2020 from trust_simulator import TrustSimulator from society import Society from institution import Institution from law import Law import pytest def test_lawInstitution_fields(): # Verify, upon instantiation, that all fields of the law and institution # classes are of the type the...
29.785714
76
0.726619
33f14d57844a70faf880afaff71debef52108273
6,832
py
Python
python_crawler/crawler.py
maxymkuz/mini_google
64100a813c42d2a8aed7480061679b2b21d69851
[ "MIT" ]
16
2021-03-27T09:41:53.000Z
2021-12-27T13:07:41.000Z
python_crawler/crawler.py
maxymkuz/mini_google
64100a813c42d2a8aed7480061679b2b21d69851
[ "MIT" ]
1
2021-03-28T13:44:11.000Z
2021-03-28T16:36:35.000Z
python_crawler/crawler.py
maxymkuz/mini_google
64100a813c42d2a8aed7480061679b2b21d69851
[ "MIT" ]
null
null
null
import asyncio import multiprocessing from datetime import datetime, timedelta from urllib.parse import urlparse, urljoin import requests import json from bs4 import BeautifulSoup import sys import queue from database.elastic_manipulator import ElasticSearchDB def get_many(mp_queue, queue, n): """ Safely gets...
28.949153
77
0.585773
33f14d7360e040a979d17a0c211ab0ee15ca8604
10,267
py
Python
facebook_business/test/docs_utils.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/docs_utils.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/docs_utils.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
37.334545
101
0.607188
33f17a1fac7ade9daa246b4976513c06f64b83a7
2,337
py
Python
doc/utils/runepydoc.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
doc/utils/runepydoc.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
doc/utils/runepydoc.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2010-2013 Edgewall Software # Copyright (C) 2010 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://tr...
33.385714
80
0.74754
33f17adc49d69698daa93ff4a4cd2ff5c2d36f8a
1,955
py
Python
rootfs/scheduler/tests/test_namespaces.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/scheduler/tests/test_namespaces.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
19
2020-07-30T06:31:29.000Z
2022-03-14T07:33:44.000Z
rootfs/scheduler/tests/test_namespaces.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
9
2020-07-30T02:50:12.000Z
2020-12-11T06:44:19.000Z
""" Unit tests for the Drycc scheduler module. Run the tests with './manage.py test scheduler' """ from scheduler import KubeHTTPException from scheduler.tests import TestCase class NamespacesTest(TestCase): """Tests scheduler namespace calls""" def test_create_namespace(self): # subclassed function...
32.583333
78
0.617391
33f1862e9f82d213d6d1cee99057f5fa2a603891
1,595
py
Python
packages/simcore-sdk/src/simcore_sdk/node_ports/_data_items_list.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/simcore-sdk/src/simcore_sdk/node_ports/_data_items_list.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/simcore-sdk/src/simcore_sdk/node_ports/_data_items_list.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
"""This module defines a container for port descriptions""" # pylint: disable=too-many-ancestors import logging from collections import MutableMapping from typing import Dict from . import exceptions from ._data_item import DataItem log = logging.getLogger(__name__) class DataItemsList(MutableMapping): ...
30.09434
60
0.594357
33f1ee90059cdb6bc27781e90b970b98fd8d10a2
3,630
py
Python
test/apps/_flask/__init__.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
test/apps/_flask/__init__.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
test/apps/_flask/__init__.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
from time import sleep from typing import Tuple import yaml from flask import Flask, Response, _request_ctx_stack, jsonify, request from werkzeug.exceptions import GatewayTimeout, InternalServerError try: from ..utils import make_schema, Endpoint except (ImportError, ValueError): from utils import make_schema...
32.123894
93
0.625895
33f22b797a1001e13c608d923070c7bafb62129b
2,946
py
Python
djaludir/bin/search.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
djaludir/bin/search.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
2
2020-06-05T19:30:19.000Z
2021-06-10T20:54:38.000Z
djaludir/bin/search.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys # env sys.path.append('/usr/lib/python2.7/dist-packages/') sys.path.append('/usr/lib/python2.7/') sys.path.append('/usr/local/lib/python2.7/dist-packages/') sys.path.append('/data2/django_1.11/') sys.path.append('/data2/django_projects/') sys.path.append('/data2/django_third/') o...
22.48855
74
0.568568
33f23e50602a589440d742f52e5f1520303065b3
658
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_SB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_SB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_SB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. SB metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_SB = PhoneMetadata(id='SB', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[127-9]\\d{2}', possible_length=(3,...
73.111111
203
0.726444
33f287b9863bd339dc15a1ee1b890f7c6608f1b7
6,300
py
Python
mypy/visitor.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/visitor.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/visitor.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
1
2020-03-24T05:28:58.000Z
2020-03-24T05:28:58.000Z
"""Generic abstract syntax tree node visitor""" from typing import TypeVar, Generic if False: # break import cycle only needed for mypy import mypy.nodes T = TypeVar('T') class NodeVisitor(Generic[T]): """Empty base class for parse tree node visitors. The T type argument specifies the return type...
26.033058
91
0.615714
33f2e183101f396f6bfe05e86c8f6e0682c4767f
2,338
py
Python
src/models/sac/q_net.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
src/models/sac/q_net.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
src/models/sac/q_net.py
dapetri/coin-it
933b56a85abca9e5130d7a657c9524e76bc09c35
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F class QNet(nn.Module): def __init__(self, learning_rate: float, q_net_update_rate: float): # make sure that the Q Network is registered as a pytorch module super(QNet, self).__init__() # specify ...
41.75
94
0.64799
33f2f0e2288fde46852c92488fcf0d8f2d1b03fd
406
py
Python
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/__init__.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/__init__.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/autoscaler/v1beta2/__init__.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
"""Common imports for generated autoscaler client library.""" # pylint:disable=wildcard-import import pkgutil from googlecloudsdk.third_party.apitools.base.py import * from googlecloudsdk.third_party.apis.autoscaler.v1beta2.autoscaler_v1beta2_client import * from googlecloudsdk.third_party.apis.autoscaler.v1beta2.aut...
36.909091
92
0.844828
33f3819445d6a61c49409645f9f7b94628a6eba6
22,338
py
Python
valarpy/metamodel.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
null
null
null
valarpy/metamodel.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
46
2020-09-23T19:12:43.000Z
2022-03-28T08:08:07.000Z
valarpy/metamodel.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from collections import defaultdict from numbers import Integral from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Union import pandas as pd import peewee from peewee import * from valarpy import ( ValarLookupError, ValarTableTypeError, ...
35.913183
115
0.579819
33f3984de9d78f1267d8ac82b0b3eb7d53c7e7b0
3,573
py
Python
src/code2doc/run.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
1
2021-02-09T19:40:19.000Z
2021-02-09T19:40:19.000Z
src/code2doc/run.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
null
null
null
src/code2doc/run.py
rahulsrma26/code2doc
050d0bb93dcbe0e177da5069cfd63bcbced26312
[ "MIT" ]
null
null
null
''' This is the entry point for the commands. Currently, it supports three sub-commands: init, build, and clean. ''' import os from .constants import PROGRAM_NAME, VERSION, DEFAULT_CONFIG_FILENAME from .build_config import BUILD_CONFIG, Options from .builder import DocBuilder from .renderer.renderer import MdR...
31.901786
110
0.671984
33f3de73697e233ecda6c5d36902e9e43edd50d3
5,048
py
Python
utils.py
jiangycTarheel/TPT-Summ
4e9a7f774c5ef1c09381efd1db62bcecd528d6d9
[ "MIT" ]
9
2021-06-04T04:28:36.000Z
2021-12-10T09:32:49.000Z
utils.py
jiangycTarheel/TPT-Summ
4e9a7f774c5ef1c09381efd1db62bcecd528d6d9
[ "MIT" ]
1
2021-08-17T03:25:32.000Z
2021-08-17T05:21:04.000Z
utils.py
jiangycTarheel/TPT-Summ
4e9a7f774c5ef1c09381efd1db62bcecd528d6d9
[ "MIT" ]
2
2021-08-29T03:24:01.000Z
2021-09-12T21:04:58.000Z
import os import json import gzip import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader, RandomSampler from transformers.tokenization_utils import trim_batch from rouge import Rouge rouge = Rouge() def calculate_rouge(preds, gts): assert len(preds) ==...
37.671642
116
0.646197
33f414994c7a21d811a73755f5eccdf8d8d1e8a3
3,872
py
Python
tinc/tests/client_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
1
2020-11-23T22:42:50.000Z
2020-11-23T22:42:50.000Z
tinc/tests/client_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
tinc/tests/client_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 24 10:12:47 2020 @author: Andres """ import time import sys from tinc import * tclient = TincClient() tclient.debug = True time.sleep(0.5) tclient.request_parameter_spaces() tclient.synchronize() time.sleep(2) #print(tclient.parameter_spaces) ps=tclient.parameter_spa...
27.076923
80
0.687242
33f430173120216e66d6b7d27d4ba84aa57d2540
2,139
py
Python
py/cidoc_crm_types/properties/p161_has_spatial_projection.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p161_has_spatial_projection.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p161_has_spatial_projection.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class P161HasSpatialProjection: """ Scope note: This property associates an instance of an instance of E92 Spacetime Volume with an instance of E53 Place that is the result of the spatial projection of the instance of the E92 Spacetime Volume on a reference space. In ...
64.818182
586
0.802244
33f43b32b8512bd639b1102b22c897e852f52e3d
483
py
Python
model/datasets/__init__.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
24
2021-08-09T00:47:22.000Z
2022-03-06T09:38:48.000Z
model/datasets/__init__.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
3
2021-07-19T16:01:37.000Z
2022-03-03T07:09:03.000Z
model/datasets/__init__.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
8
2021-11-08T12:39:05.000Z
2022-01-30T14:59:37.000Z
import fiftyone as fo import fiftyone.zoo as foz food_list = [ "Apple", "Orange", "Pizza", "Hamburger", "French fries", "Sandwich", "Cheese", "Burrito", "Banana", "Pancake", "Coffee", "Tea", "Milk", "Salab", "Cucumber", "Tomato", "Egg"] dataset = foz.load_zoo_dataset( "open-images-v6", split=...
21.954545
61
0.623188
33f4410645b36c08b5e712ee557dc1a43c0f2dcd
29,083
py
Python
data/model/test/test_gc.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
data/model/test/test_gc.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
data/model/test/test_gc.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import hashlib import pytest from datetime import datetime, timedelta from mock import patch from app import storage, docker_v2_signing_key from contextlib import contextmanager from playhouse.test_utils import assert_query_count from freezegun import freeze_time from data import model, database from data.databas...
35.860666
100
0.6772
33f4421631f3628286e186a418f33a10f5e4c578
16,836
py
Python
bang_question/bang_question.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
11
2016-07-02T19:00:02.000Z
2021-03-06T20:48:13.000Z
bang_question/bang_question.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
1
2021-08-04T09:53:54.000Z
2021-08-10T22:32:42.000Z
bang_question/bang_question.py
farsightsec/blog-code
e0e46ed4b93debc3eaadec2c3019f9538c324aee
[ "ECL-2.0", "Apache-2.0" ]
9
2015-03-16T15:06:42.000Z
2019-04-08T16:07:58.000Z
#!/usr/local/bin/python3 # You MUST install Python 3.9.1 (or later) on macOS Big Sur # (see https://www.python.org/downloads/release/python-391/ ) import asyncio import errno import json import os from pathlib import Path import socket import sys from datetime import datetime import datetime import tkinter as tk fro...
31.646617
116
0.629069
33f44969520947e1127c7cc95c0f245ec55b2a05
381
py
Python
atnlp/core/__init__.py
wedavey/atnlp
002497f27abfcdac9701aa324301d482dbf4df0e
[ "MIT" ]
null
null
null
atnlp/core/__init__.py
wedavey/atnlp
002497f27abfcdac9701aa324301d482dbf4df0e
[ "MIT" ]
null
null
null
atnlp/core/__init__.py
wedavey/atnlp
002497f27abfcdac9701aa324301d482dbf4df0e
[ "MIT" ]
null
null
null
# encoding: utf-8 """Core functionality .. automodule:: atnlp.core.helpers :members: .. automodule:: atnlp.core.logger :members: .. automodule:: atnlp.core.setup :members: """ __author__ = "Will Davey" __email__ = "wedavey@gmail.com" __created__ = "2018-05-29" __copyright__ = "Copyright 2018 Will Davey" _...
21.166667
55
0.703412
33f48c1f11a2796ba24e492912315e265eb63ea6
1,338
py
Python
app/models/document/state.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/models/document/state.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/models/document/state.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from app.models.base import BaseModel class DocumentState(BaseModel): EXPIRED = 1 STR_EXPIRED = _("Expired") STATES = { EXPIRED: STR_EXPIRED, } state_previous = models.ForeignKey('self', default=None, bl...
31.857143
76
0.626308
33f4c07bb6803cdbafd2742d221dd4848e82518e
8,477
py
Python
checkov/common/checks/base_check_registry.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/common/checks/base_check_registry.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/common/checks/base_check_registry.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import fnmatch import importlib import logging import os import sys from abc import abstractmethod from itertools import chain from typing import Generator, Tuple, Dict, List, Optional, Any from checkov.common.checks.base_check import BaseCheck from collections import defaultdict from checkov.common.typing import _S...
43.471795
119
0.605167
33f4face9b3a903e4aac910120ec4398714612ec
1,075
py
Python
av_clipboard_lib/varint.py
DeltaEpsilon7787/AVClipboardLib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
1
2021-11-27T14:47:17.000Z
2021-11-27T14:47:17.000Z
av_clipboard_lib/varint.py
DeltaEpsilon7787/av-clipboard-lib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
null
null
null
av_clipboard_lib/varint.py
DeltaEpsilon7787/av-clipboard-lib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
null
null
null
from io import BytesIO from itertools import count def decode_next_varint(stream: BytesIO) -> int: """Read the var int in `stream`, mutating it. Inverse of `encode_varint` >>> decode_next_varint(BytesIO(bytes.fromhex("BDC703F00DBAADF00DBAAD"))) 58301 """ result = 0 for segment_num in count(...
24.431818
93
0.626047
33f51adab10e1b26fecbecd1e68d2c074c79ba1a
838
py
Python
multivimbroker/multivimbroker/forwarder/tests/test_reqeust_forward.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-06-17T07:02:08.000Z
2020-06-17T07:02:08.000Z
multivimbroker/multivimbroker/forwarder/tests/test_reqeust_forward.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
multivimbroker/multivimbroker/forwarder/tests/test_reqeust_forward.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
2
2018-03-07T08:53:29.000Z
2020-09-30T15:41:33.000Z
# Copyright 2017 Wind River Systems, Inc. # Copyright (c) 2017-2018 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
29.928571
74
0.727924
33f5239296018177d900d66cd7325362af2c8bd8
6,864
py
Python
base/base_trainer.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
29
2018-03-04T07:16:16.000Z
2021-01-25T08:09:26.000Z
base/base_trainer.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
9
2018-04-23T03:51:42.000Z
2020-04-24T12:45:34.000Z
base/base_trainer.py
WenmuZhou/crnn.gluon
cef44837e052d1934289f0f9e3fb57972e28cc6b
[ "Apache-2.0" ]
7
2018-11-23T01:15:46.000Z
2020-03-30T06:24:53.000Z
# -*- coding: utf-8 -*- # @Time : 2018/8/23 22:20 # @Author : zhoujun import os import pickle import shutil import pathlib from pprint import pformat import mxnet as mx from mxnet import gluon import traceback from utils import setup_logger,save class BaseTrainer: def __init__(self, config, model, criterion...
39.222857
118
0.620775
33f52a323446cbbbe718ab8784d997828729070c
734
py
Python
examples/atomicity.py
gitter-badger/zproc
b26d39d9c564886c48c84a1e93e616f21f3bece4
[ "MIT" ]
null
null
null
examples/atomicity.py
gitter-badger/zproc
b26d39d9c564886c48c84a1e93e616f21f3bece4
[ "MIT" ]
null
null
null
examples/atomicity.py
gitter-badger/zproc
b26d39d9c564886c48c84a1e93e616f21f3bece4
[ "MIT" ]
null
null
null
""" Shows how much ZProc is resillient to race conditions. Complete with a fuzz! (Thanks to Raymond's talk on the Concurrency) Spawns 100 processes that do non-atomic operation (incrementation) on state. Since the operations are run using ".atomic()", they magically avoid race conditions! Expected Output: 1 2 3 . . ...
18.35
85
0.722071
33f52bb094fdc39e903b40ae3f92ee6b9a30b493
4,367
py
Python
tuskar_ui/test/settings.py
rdo-management/tuskar-ui
513f0da17bc4714d8c93209dd71c1f52c2713a8b
[ "Apache-2.0" ]
1
2015-02-19T12:23:23.000Z
2015-02-19T12:23:23.000Z
tuskar_ui/test/settings.py
rdo-management/tuskar-ui
513f0da17bc4714d8c93209dd71c1f52c2713a8b
[ "Apache-2.0" ]
null
null
null
tuskar_ui/test/settings.py
rdo-management/tuskar-ui
513f0da17bc4714d8c93209dd71c1f52c2713a8b
[ "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 # ...
26.95679
78
0.667735
33f53156d671c3ab6b2c2b4263a13731b1b694df
29,360
py
Python
scripts/train_rnn_memorization.py
nelson-liu/LSTMs-exploit-linguistic-attributes
227ef83654f7db4510e18f44fcc994bdc4d6c54a
[ "MIT" ]
5
2018-06-13T19:44:02.000Z
2019-09-02T21:33:41.000Z
scripts/train_rnn_memorization.py
nelson-liu/LSTMs-exploit-linguistic-attributes
227ef83654f7db4510e18f44fcc994bdc4d6c54a
[ "MIT" ]
null
null
null
scripts/train_rnn_memorization.py
nelson-liu/LSTMs-exploit-linguistic-attributes
227ef83654f7db4510e18f44fcc994bdc4d6c54a
[ "MIT" ]
3
2018-08-29T21:48:26.000Z
2018-11-12T21:59:17.000Z
import argparse from collections import Counter import itertools import json import logging import math import os import random import sys import time import numpy as np import torch import torch.nn as nn from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import DataLoader, TensorDataset sys...
45.378671
79
0.58205
33f534abddad1593e0474c029af0045d393f1f3b
4,956
py
Python
samples/Windows/gpio.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
5
2020-04-21T07:18:44.000Z
2021-12-28T17:33:38.000Z
samples/Windows/gpio.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2020-05-19T19:08:25.000Z
2020-05-22T10:24:11.000Z
samples/Windows/gpio.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2021-11-16T18:55:54.000Z
2021-11-16T18:55:54.000Z
""" gpio.py This demonstrates how to control a camera's general purpose input (gpi), and general purpose output (gpo). This program will setup the first GPIO as an 'input', and the second GPO as an 'output'. It will then poll the GPI value, reporting on the value on the console, and on the GPO. """ from pix...
33.261745
113
0.626917
33f53c351134d5d155df0980efa93e4087ba850d
1,355
py
Python
appengine/monorail/sitewide/sitewide_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/sitewide/sitewide_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/sitewide/sitewide_helpers.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Helper functions used in sitewide servlets.""" from __future__ import print_function from __...
34.74359
75
0.780812
33f54d3abd205bf1b4b3df5ebecc44de490c1082
5,904
py
Python
day6/day6.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
day6/day6.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
day6/day6.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """Day 6: Probably a Fire Hazard -- Advent of Code 2015""" from collections import namedtuple from typing import Callable from abc import ABC from abc import abstractmethod import re Point = namedtuple('Point', 'x y') class LightBoard(ABC): """Class describing an abstract light board.""" ...
34.127168
94
0.637534
33f56a4f5550d09e0abb769676db3f110e17e3fb
5,193
py
Python
joulescope/jls_v2_writer.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
null
null
null
joulescope/jls_v2_writer.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
null
null
null
joulescope/jls_v2_writer.py
tadodotcom/pyjoulescope
ab9645a2774cf5d5355dee4c1e60a566419b0e00
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Jetperch LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.095808
85
0.585403
33f5904a71c26139026f682490eb3ad90161fc66
14,590
py
Python
visualizer.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
visualizer.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
visualizer.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this sof...
44.754601
160
0.635367
33f5a088d33b99fd48461cab754b37bc91135749
3,671
py
Python
django_rest/django_rest/settings/base.py
deepaerial/django-rest-sandbox
af94ae5b92cf3732bae5ceab43362906ef4e9633
[ "MIT" ]
null
null
null
django_rest/django_rest/settings/base.py
deepaerial/django-rest-sandbox
af94ae5b92cf3732bae5ceab43362906ef4e9633
[ "MIT" ]
7
2019-12-15T18:00:27.000Z
2021-09-22T18:07:46.000Z
django_rest/django_rest/settings/base.py
deepaerial/django-rest-sandbox
af94ae5b92cf3732bae5ceab43362906ef4e9633
[ "MIT" ]
null
null
null
""" Django settings for django_rest project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import en...
24.804054
91
0.70444
33f5a5593a898ea9a4480f3f38c993d813a2a882
8,538
py
Python
testcases/technical_ma_test.py
gbecedatxapo/pyalgotrade
b1015f2f20714ae02f834a90f25376e40c6f8ab9
[ "Apache-2.0" ]
1
2020-07-06T18:38:38.000Z
2020-07-06T18:38:38.000Z
testcases/technical_ma_test.py
gbecedatxapo/pyalgotrade
b1015f2f20714ae02f834a90f25376e40c6f8ab9
[ "Apache-2.0" ]
null
null
null
testcases/technical_ma_test.py
gbecedatxapo/pyalgotrade
b1015f2f20714ae02f834a90f25376e40c6f8ab9
[ "Apache-2.0" ]
null
null
null
# PyAlgoTrade # # Copyright 2011-2014 Gabriel Martin Becedillas Ruiz # # 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 ap...
37.447368
287
0.626845
33f5c3f82f07c3665c3f6e2fdd996089b8c963a7
1,871
py
Python
src/apps/mesas/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/mesas/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/mesas/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-29 21:45 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Registro', fields=[ ('id', models.AutoField...
53.457143
381
0.59861
33f5e2d50424be9fb6f3d6f1e9e0dedf453bda79
139
py
Python
baldr/app.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
4
2019-08-07T22:29:33.000Z
2021-12-19T14:25:39.000Z
baldr/app.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
2
2016-12-15T15:46:26.000Z
2020-06-06T23:07:56.000Z
baldr/app.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
3
2015-09-27T16:43:40.000Z
2020-06-06T23:04:07.000Z
# -*- coding: utf-8 -*- from django.apps import AppConfig class BaldrAppConfig(AppConfig): name = 'baldr' verbose_name = 'Baldr'
17.375
33
0.669065
33f5ef8b0e06938320bc2e1a1cdbe3c0bf329b33
1,566
py
Python
tests/conftest.py
doronhorwitz/mopidy-choosmoos
3de8906ec6d841e29cd8e4b337b47627acda4487
[ "MIT" ]
null
null
null
tests/conftest.py
doronhorwitz/mopidy-choosmoos
3de8906ec6d841e29cd8e4b337b47627acda4487
[ "MIT" ]
null
null
null
tests/conftest.py
doronhorwitz/mopidy-choosmoos
3de8906ec6d841e29cd8e4b337b47627acda4487
[ "MIT" ]
null
null
null
import pytest import os from gpiozero import Device from gpiozero.pins.mock import MockFactory from mopidy import core as mopidy_core from mopidy_choosmoos import frontend as frontend_lib from tests import dummy_mixer, dummy_audio, dummy_backend def mock_system(val): pass @pytest.fixture def frontend(monkeypatc...
30.705882
87
0.609834
33f60e162ddf62cc6def246b1942e2bd20e15010
382
py
Python
api/graphql/base_serializers.py
iivoraitahila/tilavarauspalvelu-core
ed809dd74dffc1e21141564a005fcdf138a49448
[ "MIT" ]
null
null
null
api/graphql/base_serializers.py
iivoraitahila/tilavarauspalvelu-core
ed809dd74dffc1e21141564a005fcdf138a49448
[ "MIT" ]
null
null
null
api/graphql/base_serializers.py
iivoraitahila/tilavarauspalvelu-core
ed809dd74dffc1e21141564a005fcdf138a49448
[ "MIT" ]
null
null
null
from rest_framework import serializers class PrimaryKeySerializer(serializers.ModelSerializer): pk = serializers.IntegerField(read_only=True) def get_pk(self, instance): return instance.id class PrimaryKeyUpdateSerializer(serializers.ModelSerializer): pk = serializers.IntegerField(required=True...
23.875
62
0.764398
33f61847e21e8dbcf85d7eaefda9731f56aceae3
173
py
Python
locations/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
1
2017-03-13T08:49:49.000Z
2017-03-13T08:49:49.000Z
locations/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
locations/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig class AllinkLocationsConfig(AppConfig): name = 'allink_apps.locations' verbose_name = "Allink Locations"
21.625
39
0.722543
33f61fb8e44f2406236ce9fd1689bb2d5e2432eb
8,264
py
Python
ztflc/fitter.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2020-04-07T14:36:49.000Z
2020-04-07T14:36:49.000Z
ztflc/fitter.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
3
2020-01-16T18:25:46.000Z
2021-05-19T20:51:52.000Z
ztflc/fitter.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2021-03-31T19:47:33.000Z
2021-03-31T19:47:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np from scipy import stats import warnings from iminuit import Minuit from .utils import make_method class DiffImgFitter(object): FREEPARAMETERS = ["sigma", "ampl"] def __new__(cls, *arg, **kwargs): """ """ obj = super(DiffImg...
30.494465
104
0.51319
33f6298925b83b1add29f6ad0f42658199ba632e
1,072
py
Python
apps/accounts/views/oauth2_profile.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
1
2020-01-26T16:02:27.000Z
2020-01-26T16:02:27.000Z
apps/accounts/views/oauth2_profile.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
null
null
null
apps/accounts/views/oauth2_profile.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
2
2018-09-29T18:53:08.000Z
2020-01-26T16:02:31.000Z
from django.http import JsonResponse from django.views.decorators.http import require_GET from apps.fhir.bluebutton.models import Crosswalk from oauth2_provider.decorators import protected_resource from collections import OrderedDict def get_userinfo(user): """ OIDC-style userinfo """ data = OrderedDi...
24.930233
62
0.6875
33f632d47a748437de896c8cd17a6fe288927724
7,540
py
Python
Lib/test/libregrtest/runtest_mp.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/test/libregrtest/runtest_mp.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
9
2016-05-15T22:08:48.000Z
2016-06-17T19:16:17.000Z
Lib/test/libregrtest/runtest_mp.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
import faulthandler import json import os import queue import sys import time import traceback import types from test import support try: import threading except ImportError: print("Multiprocess option requires thread support") sys.exit(2) from test.libregrtest.runtest import ( runtest, INTERRUPTED, CH...
30.77551
79
0.589655
33f64e01f6561dc2ed9dfc8ad9f90dcc8254ab50
589
py
Python
cell2cell/core/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
16
2020-09-30T01:53:43.000Z
2022-03-25T09:58:54.000Z
cell2cell/core/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
2
2021-08-09T21:26:54.000Z
2021-11-08T14:47:39.000Z
cell2cell/core/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
3
2021-11-08T07:47:44.000Z
2022-03-30T18:40:00.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from cell2cell.core.cci_scores import (compute_braycurtis_like_cci_score, compute_count_score, compute_jaccard_like_cci_score, matmul_bray_curtis_like, matmul_count_active, matmul_jaccard_like) from cell2cell.core.ce...
65.444444
134
0.813243
33f64fa16211ca6168bd6ba8f00d4550e2c4575b
3,789
py
Python
sdk/schemaregistry/azure-schemaregistry-avroencoder/samples/sync_samples/eventhub_send_integration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/schemaregistry/azure-schemaregistry-avroencoder/samples/sync_samples/eventhub_send_integration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/schemaregistry/azure-schemaregistry-avroencoder/samples/sync_samples/eventhub_send_integration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
43.056818
113
0.732119
33f6631d985898b050198fcdeaf7722afd717fb3
1,054
py
Python
loadlamb/contrib/requests/login.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
loadlamb/contrib/requests/login.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
loadlamb/contrib/requests/login.py
babyhuey/loadlamb
b06a4259bd4f2bae6b35ff838de62a11a5305a1f
[ "BSD-3-Clause" ]
null
null
null
import random from loadlamb.request import Request from loadlamb.response import Response from loadlamb.utils import get_form_values, get_csrf_token class RemoteLogin(Request): def run(self): url = '{}{}'.format( self.proj_config.get('url'),self.req_config.get('path')) a = self.sessi...
42.16
99
0.597723
33f6b6d171db4b092b59242d60816fabde8cc59f
359
py
Python
v8/utils.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
2
2018-02-12T22:34:09.000Z
2019-01-03T05:18:00.000Z
v8/utils.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
null
null
null
v8/utils.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
3
2019-02-13T08:00:06.000Z
2020-05-17T22:40:20.000Z
import sys import _v8 __all__ = ['is_py3k', 'convert'] is_py3k = sys.version_info[0] > 2 def convert(obj): if type(obj) == _v8.JSArray: return [convert(v) for v in obj] if type(obj) == _v8.JSObject: return dict([[str(k), convert(obj.__getattr__(str(k)))] for k in (obj.__dir__() if is_py3k e...
21.117647
122
0.637883
33f6b6fa490e28c0ce35baa8b3740bb47190abf6
1,278
py
Python
office365/runtime/client_request_exception.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/runtime/client_request_exception.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/runtime/client_request_exception.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from requests import RequestException class ClientRequestException(RequestException): def __init__(self, *args, **kwargs): super(ClientRequestException, self).__init__(*args, **kwargs) content_type = self.response.headers.get('Content-Type', '').lower().split(';')[0] if self.response.conte...
31.95
90
0.551643
33f6bbcdfcc91dc79900b264564109e4a30c072e
5,085
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.401786
209
0.701672
33f6f54dfd98d233b9982266d732b4dc3c354d5e
21,753
py
Python
nicos_sinq/sxtal/instrument.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_sinq/sxtal/instrument.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_sinq/sxtal/instrument.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
36.014901
79
0.552797
33f75db114b631ecb8e2d8cd86b98bc89894d7f7
3,893
py
Python
Projects/Project 1 - Stock Index Prediction using ML classifiers/code.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Projects/Project 1 - Stock Index Prediction using ML classifiers/code.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Projects/Project 1 - Stock Index Prediction using ML classifiers/code.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split import time ### DATA PREPROCESSING ### #Importing data data = pd.read_csv (r'NASDAQ.csv') print (data) print (data['LABEL'].unique().tolist()) #To check number of variables i.e. should be only 2 (0 and1) print(d...
29.492424
101
0.721552
33f7615ec1b2de1b0aad18d65557af52c2771a15
13,229
py
Python
modules/unit_tests/core/msg/base.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/unit_tests/core/msg/base.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/unit_tests/core/msg/base.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
# Eden Unit Tests # # To run this script use: # python web2py.py -S eden -M -R applications/eden/modules/unit_tests/core/msg/base.py # import unittest import datetime from lxml import etree from gluon import * from gluon.storage import Storage from core import * from unit_tests import run_suite # ====================...
34.905013
87
0.537002
33f7875be6e31057b4ede448ce7eb86d7bf976cd
8,893
py
Python
acme/environment_loops/open_spiel_environment_loop.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
acme/environment_loops/open_spiel_environment_loop.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
acme/environment_loops/open_spiel_environment_loop.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
38.834061
80
0.692792
33f796ed69ecc77d1ef7ebd87c003a485a051960
3,134
py
Python
lib/streamlit/elements/map.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
4
2019-11-10T13:50:56.000Z
2020-01-07T21:02:29.000Z
lib/streamlit/elements/map.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/streamlit/elements/map.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
1
2019-11-26T09:37:57.000Z
2019-11-26T09:37:57.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
24.294574
86
0.619974
33f7a51c4b44da83c19b823ef9c0c5b30f56848d
1,617
py
Python
chamfer_pytorch/test_chamfer.py
jiyeonkim127/PSI
5c525d5304fb756c9314ea3e225bbb180e521b9a
[ "Xnet", "X11" ]
138
2020-04-18T19:32:12.000Z
2022-03-31T06:58:33.000Z
chamfer_pytorch/test_chamfer.py
sanweiliti/Generating_Person_Scene_Interactions
0cf72576b1f31d80be43b057b81df42190a3c72b
[ "MIT" ]
19
2020-04-21T18:24:20.000Z
2022-03-12T00:25:11.000Z
chamfer_pytorch/test_chamfer.py
sanweiliti/Generating_Person_Scene_Interactions
0cf72576b1f31d80be43b057b81df42190a3c72b
[ "MIT" ]
19
2020-04-22T01:32:25.000Z
2022-03-24T02:52:01.000Z
import torch import dist_chamfer as ext distChamfer = ext.chamferDist() from torch.autograd import Variable def pairwise_dist(x, y): xx, yy, zz = torch.mm(x, x.t()), torch.mm(y, y.t()), torch.mm(x, y.t()) rx = xx.diag().unsqueeze(0).expand_as(xx) ry = yy.diag().unsqueeze(0).expand_as(yy) P = rx.t() +...
27.87931
75
0.62214
33f7daec8520bf61c9a9ff557667fd5b5759236d
2,598
py
Python
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
experiments/e2_multi_directional_model_comparison/file_naming/rules/single_target_tree_rule_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import os from experiments.file_naming.single_target_classifier_indicator import SingleTargetClassifierIndicator from project_info import project_dir def get_single_target_tree_rule_dir() -> str: mcars_dir: str = os.path.join(project_dir, 'models', ...
36.591549
102
0.734411
33f7dc73637699063990095776068f3edc1026bb
8,177
py
Python
celery_typed_tasks/core.py
massover/celery-typed-tasks
260b42f76832f11a5a355f0aa1c8e0261b02da31
[ "MIT" ]
null
null
null
celery_typed_tasks/core.py
massover/celery-typed-tasks
260b42f76832f11a5a355f0aa1c8e0261b02da31
[ "MIT" ]
5
2022-01-24T23:03:09.000Z
2022-03-19T18:44:20.000Z
celery_typed_tasks/core.py
massover/celery-typed-tasks
260b42f76832f11a5a355f0aa1c8e0261b02da31
[ "MIT" ]
null
null
null
import datetime import decimal import inspect import typing import uuid from dataclasses import asdict from dataclasses import is_dataclass import celery from celery.result import AsyncResult class TypedTask(celery.Task): type_hint_serialization: bool def __init__(self, *args, **kwargs) -> None: # type: ig...
40.280788
109
0.618442
33f7e9c7d413e4e0f983d2f8977ec90bfafa31fd
2,577
py
Python
bonneville/returners/smtp_return.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/returners/smtp_return.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/returners/smtp_return.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Return salt data via email The following fields can be set in the minion conf file: smtp.from (required) smtp.to (required) smtp.host (required) smtp.username (optional) smtp.password (optional) smtp.tls (optional, defaults to False) smtp.subject (optional, but ...
29.62069
76
0.579744
33f7eaa0ea9be4fea515b7302bb0ae1d6fd2e7a5
4,463
py
Python
contxt/services/nionic_iot.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
contxt/services/nionic_iot.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
contxt/services/nionic_iot.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
from datetime import datetime, timedelta from dateutil import parser from typing import Any, Dict, Iterable, List import pandas as pd from sgqlc.operation import Operation from ..models.iot import ( MetricField, MetricWindow, ) from ..utils import make_logger from ..utils.config import ContxtEnvironmentConfig...
37.504202
122
0.610576
33f82771ead5fad25e0b71bf8888d3ed8bbb9067
2,350
py
Python
plugins/center.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
plugins/center.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
plugins/center.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- # Author: @harvie Tomas Mudrunka # Date: 7 july 2018 __author__ = "@harvie Tomas Mudrunka" #__email__ = "" __name__ = _("Center") __version__ = "0.1" import math import os.path import re from CNC import CNC,Block from ToolsPage import Plugin from math import pi, sqrt, sin,...
37.903226
138
0.608085
33f82e273a4c2d6d8254c472de0ef565bead9ac3
747
py
Python
plots/final/plot_activities.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
2
2021-11-01T09:13:17.000Z
2022-03-08T14:34:16.000Z
plots/final/plot_activities.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
plots/final/plot_activities.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from activity import plot_activity # Simulation parameters params = dict( dt=0.5 * 1e-2, time_end=20, Lambda=np.array([12.3, 2.5]), Gamma=np.array([-8.0, -2.5]), c=30, lambda_kappa=50, Delta=2, theta=0, base_I=0.5, I_ext=3, ...
17.785714
52
0.615797
33f86a434beaf775530b25cb0174bcfcedfc9180
2,405
py
Python
plugins/aea-ledger-cosmos/setup.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-ledger-cosmos/setup.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-ledger-cosmos/setup.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compl...
36.439394
108
0.593347
33f86b13a7184e74876385c97b5d919a1beea762
5,729
py
Python
oscar/lib/python2.7/site-packages/faker/providers/lorem/zh_TW/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/lorem/zh_TW/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/lorem/zh_TW/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .. import Provider as LoremProvider class Provider(LoremProvider): word_connector = '' word_list = ( u'一個', u'我們', u'時間', u'台灣', u'可以', u'公司', u'沒有', u'信息', ...
16.138028
41
0.203526
33f885bc8610c8546af148e78b5689f8dac767c5
1,138
py
Python
account/managers.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
account/managers.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2015-03-11T16:18:12.000Z
2015-03-11T16:18:12.000Z
sokoapp/account/managers.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models, IntegrityError class EmailAddressManager(models.Manager): def add_email(self, user, email, **kwargs): confirm = kwargs.pop("confirm", False) try: email_address = self.create(user=user, email=email, **kwargs) ...
30.756757
84
0.646749
33f89bb99dd1486de36bf83e850f11a03a67f90c
1,781
py
Python
JDjangoDemo/docs/urls.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjangoDemo/docs/urls.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjangoDemo/docs/urls.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import Index from .views import ( PkReturnName, PkReturnAll, ContentDetail, Menu2Articles, AddMenu, DelMenu, ModifyMenu, Vote,JSONPluGinExplain,JSONArticle, CheckPlugInActive,CreateAuthorizationCode, CheckPlugInActiveContinue,ContinuePlugIn ...
48.135135
149
0.64402
33f8ad6d768d9975d12110134ea02ed8497d6149
6,269
py
Python
openstack_dashboard/dashboards/admin/instances/views.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/instances/views.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/instances/views.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 OpenStack Foundation # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Versio...
39.427673
78
0.637422
33f8c26121ba28249a8fd1686aceb6f6c24b5de4
1,439
py
Python
husky_ws/src/ur5/ur5_gazebo/scripts/send_gripper.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
null
null
null
husky_ws/src/ur5/ur5_gazebo/scripts/send_gripper.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
4
2020-05-07T13:31:11.000Z
2020-06-09T00:14:08.000Z
ur_d435_ws/src/ur5/ur5_gazebo/scripts/send_gripper.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
1
2021-03-06T07:02:51.000Z
2021-03-06T07:02:51.000Z
#!/usr/bin/python # # Send a value to change the opening of the Robotiq gripper using an action # import argparse import rospy import actionlib import control_msgs.msg def gripper_client(value): # Create an action client client = actionlib.SimpleActionClient( '/gripper_controller/gripper_cmd', # n...
29.367347
78
0.66991
33f8ddf3163785a7d92a7abcdbd3942e6bbb037c
2,572
py
Python
script/show_terms_use.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
script/show_terms_use.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
script/show_terms_use.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
30.987952
74
0.602644
33f8e5b3a7738aafe2bd02d95c6cf70a531c9528
3,344
py
Python
app/__init__.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
null
null
null
app/__init__.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
1
2021-06-02T01:45:42.000Z
2021-06-02T01:45:42.000Z
app/__init__.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
null
null
null
import logging from logging.handlers import SMTPHandler, RotatingFileHandler import os from flask import Flask, request, current_app from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_mail import Mail from flask_bootstrap import Bootstrap from flask...
33.44
79
0.664773
33f90bc5be3ed231fb918332df6061741f6f5b3a
1,299
py
Python
program_synthesis/naps/pipes/compose.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/naps/pipes/compose.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/naps/pipes/compose.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
""" Example of basic usage: batching_pipeline = Compose([ open("mydataset.jsonl"), JsonLoader(), Cache(), Batcher(batch_size=100)]) preparation_pipeline = Compose([ batching_pipeline, ExtractFeatures(), TensorCreator()]) """ import c...
26.510204
104
0.605851
33f9183e4a6a0fad80fe83c616452d5ea22e615b
646
py
Python
feedstorage/managers.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
1
2016-10-12T12:30:17.000Z
2016-10-12T12:30:17.000Z
feedstorage/managers.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
null
null
null
feedstorage/managers.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
null
null
null
# Django from django.db import models class FeedManager(models.Manager): def get_by_natural_key(self, url): return self.get(url=url) class FetchStatusManager(models.Manager): def get_by_natural_key(self, feed_url, timestamp_start): return self.get(feed__url=feed_url, timestamp_start=timestam...
28.086957
76
0.760062
33f91bcd9141accfb89329b2474c1db4082f8efd
52,521
py
Python
external/mxnet/mxnet-aconv/python/mxnet/symbol.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2017-08-28T13:13:48.000Z
2017-08-28T13:13:48.000Z
python/mxnet/symbol.py
devbib/mxnet
f613e29e58c5257d615268b3c92b0bcffff489e9
[ "Apache-2.0" ]
null
null
null
python/mxnet/symbol.py
devbib/mxnet
f613e29e58c5257d615268b3c92b0bcffff489e9
[ "Apache-2.0" ]
2
2019-06-04T07:00:16.000Z
2019-12-14T10:32:33.000Z
# coding: utf-8 # pylint: disable=invalid-name, protected-access, too-many-arguments, too-many-lines # pylint: disable=import-error, no-name-in-module """Symbolic configuration API of MXNet.""" from __future__ import absolute_import as _abs import ctypes import warnings from numbers import Number import os as _os imp...
36.805186
100
0.583424
33f98889093ce0726711b0a789c91b381239b96a
2,209
py
Python
experiments/state_distance/iclr2018/sawyer_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/iclr2018/sawyer_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/iclr2018/sawyer_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.misc.data_processing import get_all_csv import matplotlib.pyplot as plt import numpy as np # naf_path = "/home/vitchyr/git/rllab-rail/rlkit/data/papers/iclr2018/sawyer/naf/" # ddpg_path = "/home/vitchyr/git/rllab-rail/rlkit/data/papers/iclr2018/sawyer" \ # "/ddpg-new" # tdm_path = "/home/vitchyr...
35.063492
82
0.675871