hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7949ef51ac8d0e525ca8e5edd0cebee89039f348
211,261
py
Python
src/twisted/mail/imap4.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/imap4.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/imap4.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
# -*- test-case-name: twisted.mail.test.test_imap.IMAP4HelperTests -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An IMAP4 protocol implementation @author: Jp Calderone To do:: Suspend idle timeout while server is processing Use an async message parser instead of buffering in mem...
32.983763
111
0.574025
7949efad6b6e2c4a01f588e3be883d963235f4c0
3,561
py
Python
currencies/management/commands/_exchangeratesapi_client.py
wardsi/django-currencies
175cba42835591d9b544f14dbbf96345d46cdb8a
[ "BSD-3-Clause" ]
null
null
null
currencies/management/commands/_exchangeratesapi_client.py
wardsi/django-currencies
175cba42835591d9b544f14dbbf96345d46cdb8a
[ "BSD-3-Clause" ]
null
null
null
currencies/management/commands/_exchangeratesapi_client.py
wardsi/django-currencies
175cba42835591d9b544f14dbbf96345d46cdb8a
[ "BSD-3-Clause" ]
null
null
null
import decimal import requests __version__ = '0.1.0' __author__ = 'Ward and Partners' __license__ = 'MIT' __copyright__ = 'Copyright 2021 Ward and Partners' # https://exchangeratesapi.io/documentation/ class ExchangeRatesApiClientException(requests.exceptions.RequestException): """Base client except...
32.669725
80
0.505757
7949f0e4ee9c10b0a0a3900abf472fcd7e987dda
16,110
py
Python
osprofiler/profiler.py
kklimonda/osprofiler
d0d65fd4f9fc762ec09b10f24f9f59c840af0198
[ "Apache-2.0" ]
null
null
null
osprofiler/profiler.py
kklimonda/osprofiler
d0d65fd4f9fc762ec09b10f24f9f59c840af0198
[ "Apache-2.0" ]
null
null
null
osprofiler/profiler.py
kklimonda/osprofiler
d0d65fd4f9fc762ec09b10f24f9f59c840af0198
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis 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...
36.697039
79
0.582619
7949f2bda4a53e7a6a1b7087467ca88ff49ec83f
1,388
py
Python
modules/utils.py
GeoffreyWesthoff/AuximCore
5dcfa9ca51284b1c8f13d081d67ec87232b56c80
[ "MIT" ]
5
2018-05-15T17:40:27.000Z
2021-05-03T23:45:21.000Z
modules/utils.py
GeoffreyWesthoff/AuximCore
5dcfa9ca51284b1c8f13d081d67ec87232b56c80
[ "MIT" ]
3
2018-05-11T22:56:03.000Z
2021-12-24T04:11:30.000Z
modules/utils.py
GeoffreyWesthoff/AuximCore
5dcfa9ca51284b1c8f13d081d67ec87232b56c80
[ "MIT" ]
4
2020-01-22T21:47:44.000Z
2021-12-23T16:03:11.000Z
import redis import aiohttp import json import asyncio import os class SettingsLoader: config = json.load(open('settings.json')) class LanguageHandler: def get_language(self, guild_id): try: lang = DatabaseHandler.db.get(str(guild_id) + ":language").decode('utf-8') file = jso...
24.785714
94
0.612392
7949f3c9bf5c8b9765a3573fe3b12bc2ee0e162f
1,619
py
Python
lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
1
2017-08-07T13:34:55.000Z
2017-08-07T13:34:55.000Z
lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
null
null
null
lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py
pujanm/rucio
355a997a5ea213c427a5d841ab151ceb01073eb4
[ "Apache-2.0" ]
1
2021-06-17T14:15:15.000Z
2021-06-17T14:15:15.000Z
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Vincent Garonne, <vin...
34.446809
128
0.681285
7949f440f70640b56f74d6d4fcc8d64ee29d7e4a
168,495
py
Python
py-polars/polars/internals/frame.py
paulstey/polars
5ed1c2de8224311bc4df6c1e8fa5b371a6bc99f6
[ "MIT" ]
null
null
null
py-polars/polars/internals/frame.py
paulstey/polars
5ed1c2de8224311bc4df6c1e8fa5b371a6bc99f6
[ "MIT" ]
null
null
null
py-polars/polars/internals/frame.py
paulstey/polars
5ed1c2de8224311bc4df6c1e8fa5b371a6bc99f6
[ "MIT" ]
null
null
null
""" Module containing logic related to eager DataFrames """ import os import sys import warnings from io import BytesIO, IOBase, StringIO from pathlib import Path from typing import ( Any, BinaryIO, Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Sequence, TextIO...
29.896203
137
0.411763
7949f44d09b56a1711c7722c0ab5858c20364337
10,895
py
Python
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/operators/docker_operator.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import ast import json from contextlib import contextmanager from airflow.exceptions import AirflowException, AirflowSkipException from dagster_airflow.vendor.docker_operator import DockerOperator from docker import APIClient, from_env import dagster._check as check import dagster.seven as seven from dagster.core.exe...
40.055147
100
0.634328
7949f5bb169874551aa2000bc092d6ee34253c01
7,829
py
Python
nbviewer/providers/gist/handlers.py
krishnatg/nbviewer
e07f8651c6b71c0482de26bed77352b965f9ddc1
[ "BSD-3-Clause-Clear" ]
1
2020-04-01T07:17:27.000Z
2020-04-01T07:17:27.000Z
nbviewer/providers/gist/handlers.py
krishnatg/nbviewer
e07f8651c6b71c0482de26bed77352b965f9ddc1
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/providers/gist/handlers.py
krishnatg/nbviewer
e07f8651c6b71c0482de26bed77352b965f9ddc1
[ "BSD-3-Clause-Clear" ]
1
2021-09-10T17:18:44.000Z
2021-09-10T17:18:44.000Z
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import json from tornado import web, gen from tornado.log import app_log from ..base import ( BaseHandler, cached, RenderingHandler, ) from ...utils import ( clean_filename, quote, response_...
34.187773
119
0.53404
7949f848dde62ff3495185ec9fc75138949e335b
12,722
py
Python
flow/benchmarks/1merge_scratch_FLOW.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-06-17T03:25:13.000Z
2021-06-17T03:25:13.000Z
flow/benchmarks/1merge_scratch_FLOW.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
null
null
null
flow/benchmarks/1merge_scratch_FLOW.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-03-18T16:20:57.000Z
2021-03-18T16:20:57.000Z
"""Open merge example. Trains a a small perce1tage of rl vehicles to dissipate shockwaves caused by merges in an open network. """ import json import os import random from copy import deepcopy import numpy as np import pickle from argparse import ArgumentParser import ray try: from ray.rllib.agents.agent import g...
34.570652
202
0.662003
7949f88a4100aadd89387a71af7559a72c5b7088
2,739
py
Python
examples/bulk_tagger/bulk_tagger.py
PaloAltoNetworks/cortex-xpanse-python-sdk
532d3fdb031a0e5943cc492222299f94ad93d030
[ "0BSD" ]
3
2021-09-02T16:05:04.000Z
2021-09-10T01:10:48.000Z
examples/bulk_tagger/bulk_tagger.py
PaloAltoNetworks/cortex-xpanse-python-sdk
532d3fdb031a0e5943cc492222299f94ad93d030
[ "0BSD" ]
7
2021-08-31T17:43:33.000Z
2021-12-01T00:36:48.000Z
examples/bulk_tagger/bulk_tagger.py
PaloAltoNetworks/cortex-xpanse-python-sdk
532d3fdb031a0e5943cc492222299f94ad93d030
[ "0BSD" ]
null
null
null
from csv import reader import click from xpanse.client import ExClient def fetch_tags(client): return client.annotations.tags.list(disabled=False).dump() def create_tag(client, tag): print(f"Creating a new tag named {tag}") return client.annotations.tags.create(name=tag)["id"] def build_tag_id_list...
28.53125
94
0.626871
7949f8f6b60bf2bf15a08972e6bef153493d0aae
11,735
py
Python
cuegui/cuegui/ServiceDialog.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
null
null
null
cuegui/cuegui/ServiceDialog.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
null
null
null
cuegui/cuegui/ServiceDialog.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the OpenCue Project # # 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...
35.560606
96
0.634001
7949fa90b402d05771c5e9e9cfbd4d83bc44fa17
1,576
py
Python
textalyzer/texttools/word_freq.py
rubenpeters91/textalyzer
c56bd9d1bbc52e97b4d8ba034be99fa5777e5b41
[ "MIT" ]
null
null
null
textalyzer/texttools/word_freq.py
rubenpeters91/textalyzer
c56bd9d1bbc52e97b4d8ba034be99fa5777e5b41
[ "MIT" ]
null
null
null
textalyzer/texttools/word_freq.py
rubenpeters91/textalyzer
c56bd9d1bbc52e97b4d8ba034be99fa5777e5b41
[ "MIT" ]
null
null
null
from textalyzer.texttools import TextTool from wordcloud import WordCloud from typing import List class WordFreq(TextTool): def __init__(self, language: str = "en"): """Word frequency Preprocesses the text and then uses spacy filters to determine the term frequency and plot the result. ...
28.142857
80
0.581853
7949fafab04e551fa5e6420a55d4fee598fed0cb
10,777
py
Python
LearningAlgorithm/mnist.py
Mirotivo/biovid
4cc4b1d2afd3f37224c74fe982d67aee99b81dc0
[ "BSD-2-Clause" ]
null
null
null
LearningAlgorithm/mnist.py
Mirotivo/biovid
4cc4b1d2afd3f37224c74fe982d67aee99b81dc0
[ "BSD-2-Clause" ]
null
null
null
LearningAlgorithm/mnist.py
Mirotivo/biovid
4cc4b1d2afd3f37224c74fe982d67aee99b81dc0
[ "BSD-2-Clause" ]
null
null
null
''' 2-D Convolutional Neural Networks using TensorFlow library for Kaggle competition. Target competition on Kaggle: https://www.kaggle.com/c/digit-recognizer Author: Taegyun Jeon Project: https://github.com/tgjeon/cnnForMnist Train instances: 42000 number images with vector format (1 number = 1 x 748) Test instances...
32.558912
163
0.657419
7949fb4c8dceda6fcffc589a892ba99b45aa563a
1,561
py
Python
wsgidav/server/server_sample.py
monash-merc/wsgidav
ba4aa2f64edfd3e3bb21958b56e18d5d92e3065c
[ "MIT" ]
null
null
null
wsgidav/server/server_sample.py
monash-merc/wsgidav
ba4aa2f64edfd3e3bb21958b56e18d5d92e3065c
[ "MIT" ]
null
null
null
wsgidav/server/server_sample.py
monash-merc/wsgidav
ba4aa2f64edfd3e3bb21958b56e18d5d92e3065c
[ "MIT" ]
null
null
null
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/ # Original PyFileServer (c) 2005 Ho Chun Wei. # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Simple example how to a run WsgiDAV in a 3rd-party WSGI server. """ from tempfile import ...
37.166667
96
0.686739
7949fdb0c86444ae27d5e63a3f462ef8f84991dd
5,977
py
Python
examples/GAN/DCGAN.py
Pearl-UTexas/tensorpack
3ef33a341861769e66995e1630949113404cdd0c
[ "Apache-2.0" ]
5
2018-05-04T02:04:15.000Z
2020-04-02T05:38:48.000Z
examples/GAN/DCGAN.py
Pearl-UTexas/tensorpack
3ef33a341861769e66995e1630949113404cdd0c
[ "Apache-2.0" ]
null
null
null
examples/GAN/DCGAN.py
Pearl-UTexas/tensorpack
3ef33a341861769e66995e1630949113404cdd0c
[ "Apache-2.0" ]
2
2018-04-23T13:43:10.000Z
2019-10-30T09:56:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: DCGAN.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import glob import numpy as np import os import argparse from tensorpack import * from tensorpack.utils.viz import stack_patches from tensorpack.tfutils.scope_utils import auto_reuse_variable_scope import tensorfl...
34.75
92
0.622386
7949fe1ab91513033227ea5936fcabea67a54f48
6,709
py
Python
examples/ResNet/imagenet-resnet.py
swift-n-brutal/tensorpack
521b0bb9653866ee2499b67fbfb2a8316b0cc225
[ "Apache-2.0" ]
null
null
null
examples/ResNet/imagenet-resnet.py
swift-n-brutal/tensorpack
521b0bb9653866ee2499b67fbfb2a8316b0cc225
[ "Apache-2.0" ]
null
null
null
examples/ResNet/imagenet-resnet.py
swift-n-brutal/tensorpack
521b0bb9653866ee2499b67fbfb2a8316b0cc225
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: imagenet-resnet.py import argparse import os from tensorpack import QueueInput, TFDatasetInput, logger from tensorpack.callbacks import * from tensorpack.dataflow import FakeData from tensorpack.models import * from tensorpack.tfutils import argscope, get_model_lo...
42.194969
119
0.616336
7949fe9003d803da081b7acb7d387900c7bcdd0a
688
bzl
Python
scala/scala_proto_library.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
scala/scala_proto_library.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
scala/scala_proto_library.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
load("@build_stack_rules_proto//scala:scala_proto_compile.bzl", "scala_proto_compile") load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library") def scala_proto_library(**kwargs): name = kwargs.get("name") deps = kwargs.get("deps") visibility = kwargs.get("visibility") name_pb = name + "_pb" ...
25.481481
86
0.594477
7949ff2898db0dc8881c2e65c93c152478f3d64f
1,556
py
Python
tests/test_functions.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
null
null
null
tests/test_functions.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
7
2022-03-21T08:46:44.000Z
2022-03-25T16:20:48.000Z
tests/test_functions.py
pjhartout/fastwlk
deb78923c9a8450099c26bac09da94ae87892d0d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """test_filename.py ***file description*** """ import json import pickle from typing import List import pytest from fastwlk.utils.functions import ( chunks, distribute_function, flatten_lists, generate_random_strings, ) from pyprojroot import here # Lo...
21.027027
75
0.618895
7949ff407aff4dcbc55e4563afee2ca80403c944
73
py
Python
source/fiblist/conf/settings/production.py
nicorellius/fiblist
269c73096cf6e67184966dadd3efc5225ce9b01e
[ "Unlicense" ]
null
null
null
source/fiblist/conf/settings/production.py
nicorellius/fiblist
269c73096cf6e67184966dadd3efc5225ce9b01e
[ "Unlicense" ]
null
null
null
source/fiblist/conf/settings/production.py
nicorellius/fiblist
269c73096cf6e67184966dadd3efc5225ce9b01e
[ "Unlicense" ]
null
null
null
from .base import * DEBUG = False ALLOWED_HOSTS += ['fiblist.opsys.io']
14.6
37
0.69863
7949fffd7e7c97e320402073971299f938ca79af
2,763
py
Python
src/pose_moves_final (copy).py
yousszr/Dji-TelloPy-PoseEstimation-FaceTracking
40ba58c307ea081a6ddef470ca2557b48df33680
[ "Apache-2.0" ]
null
null
null
src/pose_moves_final (copy).py
yousszr/Dji-TelloPy-PoseEstimation-FaceTracking
40ba58c307ea081a6ddef470ca2557b48df33680
[ "Apache-2.0" ]
null
null
null
src/pose_moves_final (copy).py
yousszr/Dji-TelloPy-PoseEstimation-FaceTracking
40ba58c307ea081a6ddef470ca2557b48df33680
[ "Apache-2.0" ]
null
null
null
# from tellopy import Tello from djitellopy import tello import cv2 from simple_pid import PID import math class PoseMover: def __init__(self, drone: tello.Tello): self.drone = drone self.target =[960/2,720*0.35,0] #Messo solo per sicurezza --> Quando non c'è naso, sto fermo al centro self...
38.915493
119
0.581614
794a00a141bc5aacd3a7224404ae82b63d15499e
7,767
py
Python
docs/conf.py
spcial/crypto-prediction
dd568c4de386c551e36bd9b698472de83a847ef4
[ "MIT" ]
null
null
null
docs/conf.py
spcial/crypto-prediction
dd568c4de386c551e36bd9b698472de83a847ef4
[ "MIT" ]
null
null
null
docs/conf.py
spcial/crypto-prediction
dd568c4de386c551e36bd9b698472de83a847ef4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # sample documentation build configuration file, created by # sphinx-quickstart on Mon Apr 16 21:22:43 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
31.962963
80
0.71469
794a019b82f1f0b81472790f2864534060f68f95
14,216
py
Python
test/functional/wallet_bumpfee.py
Mirkolance1/altcoin
d77e25be0ce015ff03c3df79801ac208e68be963
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
Mirkolance1/altcoin
d77e25be0ce015ff03c3df79801ac208e68be963
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
Mirkolance1/altcoin
d77e25be0ce015ff03c3df79801ac208e68be963
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the bumpfee RPC. Verifies that the bumpfee RPC creates replacement transactions successfully when...
45.564103
159
0.728686
794a02b7324ca863ca662a4480f9e8c19b9b0cd1
12,357
py
Python
datalad/distribution/tests/test_clone.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
null
null
null
datalad/distribution/tests/test_clone.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
6
2015-11-20T21:41:13.000Z
2018-06-12T14:27:32.000Z
datalad/distribution/tests/test_clone.py
yarikoptic/datalad
c0cd538de2ed9a30c0f58256c7afa6e18d325505
[ "MIT" ]
1
2017-03-28T14:44:16.000Z
2017-03-28T14:44:16.000Z
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test clone actio...
36.886567
105
0.68358
794a02d1fdff5dc44f7d5064cfd3572d311d7688
3,888
py
Python
scale.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
null
null
null
scale.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
13
2018-10-29T19:54:17.000Z
2020-04-13T20:38:23.000Z
scale.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
36.336449
81
0.689043
794a02dd77dce6793e7f79b1fea0a6bd5a984a29
421
py
Python
bin/shutdown.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
1
2020-02-05T16:50:17.000Z
2020-02-05T16:50:17.000Z
bin/shutdown.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
null
null
null
bin/shutdown.py
robertdigital/lookyloo
c9cbf27accac519e7060edc1feeba364c0b8729a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from lookyloo.helpers import is_running, get_socket_path import time from redis import StrictRedis if __name__ == '__main__': r = StrictRedis(unix_socket_path=get_socket_path('cache'), db=1) r.set('shutdown', 1) time.sleep(5) while True: running =...
23.388889
68
0.638955
794a04b989b70c59ad16339e2dcca48f0624b450
2,416
py
Python
src/ggrc_workflows/models/cycle.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc_workflows/models/cycle.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc_workflows/models/cycle.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: dan@reciprocitylabs.com # Maintained By: dan@reciprocitylabs.com """Module contains a workflow Cycle model """ from sqlalchemy import orm from gg...
30.974359
79
0.709851
794a058737532503e8ff32d95cc2bf25f8aa25a2
1,075
py
Python
566 Reshape the Matrix.py
krishna13052001/LeetCode
cd6ec626bea61f0bd9e8493622074f9e69a7a1c3
[ "MIT" ]
872
2015-06-15T12:02:41.000Z
2022-03-30T08:44:35.000Z
566 Reshape the Matrix.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
8
2015-06-21T15:11:59.000Z
2022-02-01T11:22:34.000Z
566 Reshape the Matrix.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
328
2015-06-28T03:10:35.000Z
2022-03-29T11:05:28.000Z
#!/usr/bin/python3 """ In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. You're given a matrix represented by a two-dimensional array, and two positive integers r and c representing the row number and column number of ...
33.59375
86
0.645581
794a060464dcf3e529a7aca6eb88913e282a1655
1,999
py
Python
packages/vaex-arrow/vaex_arrow/dataset.py
claforte/vaex
adf0d9280c6a931465dd65f1ead6d0466eceb637
[ "MIT" ]
1
2019-06-05T00:10:36.000Z
2019-06-05T00:10:36.000Z
packages/vaex-arrow/vaex_arrow/dataset.py
claforte/vaex
adf0d9280c6a931465dd65f1ead6d0466eceb637
[ "MIT" ]
1
2019-06-03T21:25:01.000Z
2019-06-03T21:25:01.000Z
packages/vaex-arrow/vaex_arrow/dataset.py
claforte/vaex
adf0d9280c6a931465dd65f1ead6d0466eceb637
[ "MIT" ]
null
null
null
__author__ = 'maartenbreddels' import logging import pyarrow as pa import pyarrow.parquet as pq import vaex.dataset import vaex.file.other from .convert import column_from_arrow_array logger = logging.getLogger("vaex_arrow") class DatasetArrow(vaex.dataset.DatasetLocal): """Implements storage using arrow""" ...
30.287879
89
0.66083
794a0685c3f5710f03a016656286c6b413dab2c2
13,643
py
Python
src/genie/libs/parser/iosxe/tests/test_show_vtp.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/test_show_vtp.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
1
2020-08-01T00:23:31.000Z
2020-08-01T00:40:05.000Z
src/genie/libs/parser/iosxe/tests/test_show_vtp.py
nujo/genieparser
083b01efc46afc32abe1a1858729578beab50cd3
[ "Apache-2.0" ]
null
null
null
# Python import unittest from unittest.mock import Mock # ATS from pyats.topology import Device # Metaparset from genie.metaparser.util.exceptions import SchemaEmptyParserError, \ SchemaMissingKeyError # Parser from genie.libs.parser.iosxe.show_vtp import ShowVtpStatus, \ ...
34.539241
99
0.47922
794a075c4d033339c3dd3c94c3442c16cbdbadb2
344
py
Python
daemonator/__init__.py
flaviocpontes/daemonator
bb70e698acd6ccda2940b80086449b0637aa4ecf
[ "X11", "MIT" ]
null
null
null
daemonator/__init__.py
flaviocpontes/daemonator
bb70e698acd6ccda2940b80086449b0637aa4ecf
[ "X11", "MIT" ]
null
null
null
daemonator/__init__.py
flaviocpontes/daemonator
bb70e698acd6ccda2940b80086449b0637aa4ecf
[ "X11", "MIT" ]
null
null
null
from .daemonator import Daemon __author__ = 'Flávio Cardoso Pontes' __author_email__ = '<flaviopontes@acerp.org.br>' __copyright__ = 'Copyright © 2015 Associação de Comunicação Educativa Roquette Pinto - ACERP' __version_info__ = (0, 4, 1, 1) __version__ = '.'.join(map(str, __version_info__)) __package__ = 'daemonato...
31.272727
93
0.755814
794a07e0a9fbf13b393dc78d3d79c3a18f9d5ea5
12,812
py
Python
common/asserts.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
common/asserts.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
common/asserts.py
CoderRushil/fyle-www-tests
d9a82d87c201fcc76cad73412ea85497d424f6fa
[ "MIT" ]
null
null
null
from time import sleep import logging logger = logging.getLogger(__name__) def assert_hero_section(browser, section): h1s = section.find_elements_by_xpath('.//h1') assert len(h1s) == 1, 'Hero section should have 1 h1' h1 = h1s[0] font_size = h1.value_of_css_property('font-size') if browser.is_desk...
54.288136
162
0.70715
794a087180168dc6794887566a90294fed73c259
6,669
py
Python
uptrop/cloud_slice_no2.py
eamarais/erc-uptrop
d7340ca7ad4be2e9b7e98da0847964c2a532e1ca
[ "MIT" ]
3
2020-10-09T07:13:40.000Z
2022-02-15T13:14:36.000Z
uptrop/cloud_slice_no2.py
eamarais/erc-uptrop
d7340ca7ad4be2e9b7e98da0847964c2a532e1ca
[ "MIT" ]
4
2020-07-04T18:56:25.000Z
2022-02-14T13:14:47.000Z
uptrop/cloud_slice_no2.py
eamarais/erc-uptrop
d7340ca7ad4be2e9b7e98da0847964c2a532e1ca
[ "MIT" ]
3
2020-10-09T07:17:16.000Z
2022-01-09T09:36:46.000Z
#!/usr/bin/python ''' Cloud-slicing steps applied to a cluster of data using as input the partial NO2 columns in molecules/m2 and cloud top heights in hPa. If successful, the output is NO2 mixing ratios in pptv. Other output is the estimated error on the NO2 mixing ratio and the mean cloud top pressure (hPa) for the...
34.734375
170
0.690808
794a08ef810a1806de7b2a758ac31eca384ff250
4,239
py
Python
src/batou/lib/mercurial.py
ZeitOnline/batou
cade3526e7979a53d47bb020c5191702972ff2ff
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/batou/lib/mercurial.py
ZeitOnline/batou
cade3526e7979a53d47bb020c5191702972ff2ff
[ "BSD-2-Clause-FreeBSD" ]
2
2020-03-06T08:37:18.000Z
2020-04-24T06:33:18.000Z
src/batou/lib/mercurial.py
ZeitOnline/batou
cade3526e7979a53d47bb020c5191702972ff2ff
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from batou import UpdateNeeded, output from batou.component import Component from batou.lib.file import Directory from batou.utils import CmdExecutionError import os.path import re class Clone(Component): namevar = 'url' target = '.' revision = None branch = None vcs_update = True _revision_...
33.377953
79
0.544468
794a0906ad2331288671df2161069508cbb11720
32,856
py
Python
dlkit/abstract_osid/assessment_authoring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/abstract_osid/assessment_authoring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/abstract_osid/assessment_authoring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Implementations of assessment.authoring abstract base class queries.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' ...
29.869091
159
0.648192
794a0a004093b2d5cb338f544a86b480153ed089
10,467
py
Python
tea/runsingle.py
SiddhantDeshmukh/TEA
beaa882b7084d380a38a6bf5f219b0ee848afb9e
[ "BSD-4-Clause-UC" ]
null
null
null
tea/runsingle.py
SiddhantDeshmukh/TEA
beaa882b7084d380a38a6bf5f219b0ee848afb9e
[ "BSD-4-Clause-UC" ]
null
null
null
tea/runsingle.py
SiddhantDeshmukh/TEA
beaa882b7084d380a38a6bf5f219b0ee848afb9e
[ "BSD-4-Clause-UC" ]
null
null
null
#! /usr/bin/env python ############################# BEGIN FRONTMATTER ################################ # # # TEA - calculates Thermochemical Equilibrium Abundances of chemical species # # ...
46.110132
106
0.542276
794a0b1b42d0fb8afa5e6d4a3d273799e375e33e
7,669
py
Python
utils/loss.py
edornd/satellite-mib
a4423dc866ecfb77dc62548764917c048006dd8a
[ "MIT" ]
null
null
null
utils/loss.py
edornd/satellite-mib
a4423dc866ecfb77dc62548764917c048006dd8a
[ "MIT" ]
null
null
null
utils/loss.py
edornd/satellite-mib
a4423dc866ecfb77dc62548764917c048006dd8a
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F import torch def get_loss(loss_type): if loss_type == 'focal_loss': return FocalLoss(ignore_index=255, size_average=True) elif loss_type == 'cross_entropy': return nn.CrossEntropyLoss(ignore_index=255, reduction='mean') class FocalLoss(nn...
38.928934
118
0.592255
794a0b5f11223ac40c91a68addef03c0aa932410
6,778
py
Python
indico/core/settings/models/base.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/core/settings/models/base.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
5
2021-04-08T19:26:47.000Z
2022-01-24T16:30:18.000Z
indico/core/settings/models/base.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
2
2019-02-24T17:29:10.000Z
2021-04-08T19:23:27.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from collections import defaultdict from enum import Enum from flask import g, has_request_context from s...
32.902913
108
0.628504
794a0c2f96bc6f32cd8ecc8cdc0f0b258be0a96f
796
py
Python
tests/configuration_tests.py
Charestlab/eegprep
f8ca1e823fa50c0644bcbc807a02a49d9f8af283
[ "MIT" ]
1
2019-04-30T12:14:40.000Z
2019-04-30T12:14:40.000Z
tests/configuration_tests.py
Charestlab/eegprep
f8ca1e823fa50c0644bcbc807a02a49d9f8af283
[ "MIT" ]
18
2018-08-21T09:01:48.000Z
2020-01-08T21:03:06.000Z
tests/configuration_tests.py
Charestlab/eegprep
f8ca1e823fa50c0644bcbc807a02a49d9f8af283
[ "MIT" ]
null
null
null
from unittest import TestCase class TestConfiguration(TestCase): def test_configure(self): from eegprep.configuration import Configuration config = Configuration() config.setDefaults({'downsample': 4096, 'out_file_format': 'fif'}) self.assertEqual(config['downsample'], 4096) ...
37.904762
81
0.689698
794a0cdd7525eb8ebcb057ec6d1ceb6cf48b34ab
6,822
py
Python
httprunner/context.py
MannixZ/httprunner
ab8ec80d8ed6913bd322592d721cd1de232f2dde
[ "Apache-2.0" ]
null
null
null
httprunner/context.py
MannixZ/httprunner
ab8ec80d8ed6913bd322592d721cd1de232f2dde
[ "Apache-2.0" ]
null
null
null
httprunner/context.py
MannixZ/httprunner
ab8ec80d8ed6913bd322592d721cd1de232f2dde
[ "Apache-2.0" ]
null
null
null
from httprunner import exceptions, logger, parser, utils class SessionContext(object): """ HttpRunner session, store runtime variables. Examples: >>> variables = {"SECRET_KEY": "DebugTalk"} >>> context = SessionContext(variables) Equivalent to: >>> context = Sessio...
39.894737
100
0.586485
794a0cff3534fc224bc8d274a3d787383f7e71e5
11,602
py
Python
nodes/cassandraBag.py
andre-dietrich/cassandra_ros
5e8a0c482ab2bf72ef647b2ad1ca5f9d84981e67
[ "MIT" ]
null
null
null
nodes/cassandraBag.py
andre-dietrich/cassandra_ros
5e8a0c482ab2bf72ef647b2ad1ca5f9d84981e67
[ "MIT" ]
1
2021-01-15T04:41:54.000Z
2021-01-29T11:12:59.000Z
nodes/cassandraBag.py
andre-dietrich/cassandra_ros
5e8a0c482ab2bf72ef647b2ad1ca5f9d84981e67
[ "MIT" ]
2
2019-09-09T02:46:04.000Z
2021-01-15T04:36:33.000Z
#!/usr/bin/env python import roslib; roslib.load_manifest('cassandra_ros') import rospy import rostopic from cassandra_ros.srv import * import RosCassandra.RosCassandra as rc import time import threading from PyQt4.QtCore import QThread def enum(**enums): return type('Enum', (), enums) running = enum(START=1,...
33.148571
129
0.542837
794a0d9fca9abb2f525a97c86b5f0d992b6becda
55,114
py
Python
Packs/DNSDB/Integrations/DNSDB_v2/DNSDB_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DNSDB/Integrations/DNSDB_v2/DNSDB_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DNSDB/Integrations/DNSDB_v2/DNSDB_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# Copyright (c) 2020 by Farsight Security, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
40.764793
202
0.538067
794a0e0878f1001b2c181038cef93b673cab2210
1,220
py
Python
kdezero/datasets/sincurve.py
kotabrog/K_DeZero
e8145a539874956bc235d4577fa38211c01c30ea
[ "MIT" ]
null
null
null
kdezero/datasets/sincurve.py
kotabrog/K_DeZero
e8145a539874956bc235d4577fa38211c01c30ea
[ "MIT" ]
null
null
null
kdezero/datasets/sincurve.py
kotabrog/K_DeZero
e8145a539874956bc235d4577fa38211c01c30ea
[ "MIT" ]
null
null
null
import numpy as np from kdezero.datasets import Dataset class SinCurve(Dataset): """The data is a sine curve, and the label advances one index by one. The number of data is 1000. Attribute: Attribute: data (ndarray): label (ndarray): train (bool): Flag for lear...
26.521739
79
0.494262
794a0e1ff816e200f4df6109942c80297eabe0b2
526
py
Python
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-11-14 00:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workflow', '0016_auto_20170623_1306'), ] operations = [ migrations.AddField...
25.047619
122
0.638783
794a0e220d00b4123ed94efef6358d90d0f40a37
6,852
py
Python
tests/extension/thread_/stream_substream_nested_reduce/thread_stream_substream_nested_reduce.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/thread_/stream_substream_nested_reduce/thread_stream_substream_nested_reduce.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
tests/extension/thread_/stream_substream_nested_reduce/thread_stream_substream_nested_reduce.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen import * import ve...
29.407725
79
0.593549
794a0e4b79d251c41c42898ae804576cb46c430a
1,888
py
Python
hoomd/pytest/test_dcd.py
XT-Lee/hoomd-blue
0188f56f32c4a3efe0e74a3dc27397d6ec3469b0
[ "BSD-3-Clause" ]
null
null
null
hoomd/pytest/test_dcd.py
XT-Lee/hoomd-blue
0188f56f32c4a3efe0e74a3dc27397d6ec3469b0
[ "BSD-3-Clause" ]
null
null
null
hoomd/pytest/test_dcd.py
XT-Lee/hoomd-blue
0188f56f32c4a3efe0e74a3dc27397d6ec3469b0
[ "BSD-3-Clause" ]
null
null
null
import hoomd from hoomd.conftest import operation_pickling_check import pytest import numpy as np def test_attach(simulation_factory, two_particle_snapshot_factory, tmp_path): filename = tmp_path / "temporary_test_file.dcd" sim = simulation_factory(two_particle_snapshot_factory()) dcd_dump = hoomd.write.D...
38.530612
80
0.726165
794a0e506c8e9d0901898188ecbe0f434dd15233
1,119
py
Python
src/genie/libs/parser/iosxr/tests/ShowRipStatistics/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxr/tests/ShowRipStatistics/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxr/tests/ShowRipStatistics/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'vrf': { 'default': { 'address_family': { 'ipv4': { 'instance': { 'rip': { 'statistics': { 'total_messages_sent': 5294, 'm...
34.96875
65
0.301162
794a0ee448f0d0f634fd3b54e5adbd65a5e5332a
5,699
py
Python
ucsmsdk/mometa/firmware/FirmwareRunning.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/firmware/FirmwareRunning.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/firmware/FirmwareRunning.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FirmwareRunning ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FirmwareRunningConsts: DEPLOYMENT_BOOT_LOADER = "boot-loader" DEPLOYMENT_KERNEL = "kernel" DE...
58.752577
745
0.689244
794a11aa17fbe4aff57faabff5acbf609bd4fb8d
1,742
py
Python
tests/quick/se/50.vortex/test.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
31
2015-12-15T19:14:10.000Z
2021-12-31T17:40:21.000Z
tests/quick/se/50.vortex/test.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
5
2015-12-04T08:06:47.000Z
2020-08-09T21:49:46.000Z
tests/quick/se/50.vortex/test.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
21
2015-11-05T08:25:45.000Z
2021-06-19T02:24:50.000Z
# Copyright (c) 2006-2007 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this ...
51.235294
72
0.791045
794a11d37fc51683848d4c66f0bc69302f864b60
7,851
py
Python
dankypipe/utils.py
lukeWaninger/DankDefense
969c151a42857f9fa72e6887aed22e8c977740a5
[ "MIT" ]
null
null
null
dankypipe/utils.py
lukeWaninger/DankDefense
969c151a42857f9fa72e6887aed22e8c977740a5
[ "MIT" ]
4
2020-03-24T16:36:56.000Z
2021-06-01T23:19:39.000Z
dankypipe/utils.py
lukeWaninger/DankDefense
969c151a42857f9fa72e6887aed22e8c977740a5
[ "MIT" ]
null
null
null
import datetime as dt import gc import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns NO_DETECTIONS = '#706C60' DETECTIONS = '#FFAE09' dp = lambda x: os.path.join('/', 'mnt', 'f', 'DankDefense', x) def write_feat(name, train, test): path = dp(os.path.join('feats...
25.244373
108
0.524392
794a1257ec624afeab41eb394bc7c0a2fa8df6a9
1,023
py
Python
src/collective/solr/zcml.py
IMIO/collective.solr
844219eb3968b34d2b83a7bd5f59340d676d149e
[ "ZPL-1.1" ]
15
2015-04-13T14:54:47.000Z
2022-01-17T09:18:00.000Z
src/collective/solr/zcml.py
IMIO/collective.solr
844219eb3968b34d2b83a7bd5f59340d676d149e
[ "ZPL-1.1" ]
198
2015-01-30T15:29:32.000Z
2022-03-22T10:39:31.000Z
src/collective/solr/zcml.py
adrianschulz/collective.solr
2d76fe01a02174d383fdc335d38ee52afa8bfa27
[ "ZPL-1.1" ]
34
2015-02-24T09:23:31.000Z
2022-03-01T02:31:39.000Z
# -*- coding: utf-8 -*- from zope.interface import Interface from zope import schema from zope.component.zcml import utility from collective.solr.interfaces import IZCMLSolrConnectionConfig from collective.solr.manager import ZCMLSolrConnectionConfig class ISolrConnectionConfigDirective(Interface): """Directive ...
26.230769
72
0.686217
794a1267c98bd5602670aa07805d7b87d1430d68
2,748
py
Python
apysc/_animation/animation_scale_y_from_center_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
apysc/_animation/animation_scale_y_from_center_interface.py
simon-ritchie/apysc
61d0078e5f3b702eaacceedfbe6e5cafe48f8033
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
apysc/_animation/animation_scale_y_from_center_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""Class implementation for the animation_scale_y_from_center interface. """ from typing import Union from apysc._animation.animation_interface_base import AnimationInterfaceBase from apysc._animation.animation_scale_y_from_center import \ AnimationScaleYFromCenter from apysc._animation.easing import Eas...
37.643836
78
0.633916
794a13e6121821e471b113eef575b0451bd3a4dc
221
py
Python
py/desispec/workflow/__init__.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
24
2015-09-29T06:06:29.000Z
2022-01-14T07:31:45.000Z
py/desispec/workflow/__init__.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
1,452
2015-02-26T00:14:23.000Z
2022-03-31T23:35:10.000Z
py/desispec/workflow/__init__.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
25
2015-02-06T21:39:13.000Z
2022-02-22T14:16:31.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ desispec.workflow =========== Tools for workflow management and running the pipeline """ from __future__ import absolute_import
22.1
63
0.710407
794a1493c8a37024e6225b9ef9195fda039d9453
1,063
py
Python
backend/tag_id.py
gustavozapata/Team4
ab64cfeff219891cdd74f5f3995ef90816b5eb9d
[ "Apache-2.0" ]
2
2019-11-04T19:03:39.000Z
2019-12-30T11:55:51.000Z
backend/tag_id.py
gustavozapata/Team4
ab64cfeff219891cdd74f5f3995ef90816b5eb9d
[ "Apache-2.0" ]
1
2019-12-29T16:37:12.000Z
2019-12-29T16:37:12.000Z
backend/tag_id.py
gustavozapata/Team4
ab64cfeff219891cdd74f5f3995ef90816b5eb9d
[ "Apache-2.0" ]
3
2019-11-02T23:51:36.000Z
2019-12-29T16:41:02.000Z
class TagID: def __init__(self): self.tag_dictionary = { 'Natural Disaster': 1, 'Homeless': 2, 'Animals': 3, 'Health': 4, 'Children': 5, 'Immigration': 6, 'Culture': 7, ...
20.442308
62
0.4619
794a14dbfead8555fabdd0594fcd63688cf76bb3
8,731
py
Python
src/pyxer/command.py
holtwick/pyxer
5e962352a8bebe33baee8858d326e7eac406f694
[ "MIT" ]
2
2016-01-25T06:01:14.000Z
2016-02-07T20:30:25.000Z
src/pyxer/command.py
holtwick/pyxer
5e962352a8bebe33baee8858d326e7eac406f694
[ "MIT" ]
2
2018-03-21T06:27:50.000Z
2018-03-22T12:57:58.000Z
src/pyxer/command.py
holtwick/pyxer
5e962352a8bebe33baee8858d326e7eac406f694
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- ############################################# ## (C)opyright by Dirk Holtwick, 2008 ## ## All rights reserved ## ############################################# from optparse import OptionParser from pyxer.utils import system, call_subprocess, find_root, install_package f...
28.255663
121
0.532471
794a150c448ce3adb22a06d8a4efef932223e644
571
py
Python
meregistro/apps/registro/forms/AnexoAlcancesForm.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/forms/AnexoAlcancesForm.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/forms/AnexoAlcancesForm.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.forms import ModelForm from apps.registro.models.Alcance import Alcance from django.core.exceptions import ValidationError from django import forms class AnexoAlcancesForm(ModelForm): alcances = forms.ModelMultipleChoiceField(queryset=Alcance.objects.all().order_by('nombre'), w...
31.722222
149
0.747811
794a15a2516db8f714b143b37f9c067c53406803
765
py
Python
dstools/flatten.py
keans/dstools
b29ff1ae191d94ce6bfac66f4c14dcac0c1a350b
[ "MIT" ]
null
null
null
dstools/flatten.py
keans/dstools
b29ff1ae191d94ce6bfac66f4c14dcac0c1a350b
[ "MIT" ]
null
null
null
dstools/flatten.py
keans/dstools
b29ff1ae191d94ce6bfac66f4c14dcac0c1a350b
[ "MIT" ]
null
null
null
def flatten_dict(y, key_filter=None, seperator="."): """ flatten given dictionary, if filter is provided only given values are returned """ res = {} def flatten(x, name="", seperator=""): if isinstance(x, dict): # --- dict --- for k in x.keys(): f...
27.321429
77
0.478431
794a1654b86848c4a62ed55d5fceb8d46b62316e
2,344
py
Python
benchmark/datasets/reddit/preprocess/get_json.py
FederalLab/benchmark-lightly
ff05a99a19c0e1dcddf16996f922431e09771c4c
[ "MIT" ]
null
null
null
benchmark/datasets/reddit/preprocess/get_json.py
FederalLab/benchmark-lightly
ff05a99a19c0e1dcddf16996f922431e09771c4c
[ "MIT" ]
null
null
null
benchmark/datasets/reddit/preprocess/get_json.py
FederalLab/benchmark-lightly
ff05a99a19c0e1dcddf16996f922431e09771c4c
[ "MIT" ]
null
null
null
# @Author : FederalLab # @Date : 2021-09-26 00:32:41 # @Last Modified by : Chen Dengsheng # @Last Modified time: 2021-09-26 00:32:41 # Copyright (c) FederalLab. All rights reserved. import json import math import os import pickle data_root = os.path.join( os.path.dirname(os.path.dirname(os...
26.044444
76
0.596416
794a16a52627d2a1a5f91159340e293ffd7ee02a
938
py
Python
examples/simple.py
Jessime/word_cloud
36d4e26cf1347a3979ef83d01714a82652685ada
[ "MIT" ]
8,935
2015-01-01T07:23:24.000Z
2022-03-31T10:40:34.000Z
examples/simple.py
Jessime/word_cloud
36d4e26cf1347a3979ef83d01714a82652685ada
[ "MIT" ]
579
2015-01-09T17:28:55.000Z
2022-03-30T05:54:12.000Z
examples/simple.py
Jessime/word_cloud
36d4e26cf1347a3979ef83d01714a82652685ada
[ "MIT" ]
2,522
2015-01-02T17:11:32.000Z
2022-03-31T14:35:34.000Z
#!/usr/bin/env python """ Minimal Example =============== Generating a square wordcloud from the US constitution using default arguments. """ import os from os import path from wordcloud import WordCloud # get data directory (using getcwd() is needed to support running example in generated IPython notebook) d = pat...
24.051282
104
0.740938
794a16f2ca707a6946a69d0c35cbdbf7af9550a3
6,288
py
Python
zerver/lib/presence.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
1
2020-03-17T14:58:50.000Z
2020-03-17T14:58:50.000Z
zerver/lib/presence.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
null
null
null
zerver/lib/presence.py
DD2480-group7-2020/zulip
9a1e18bcf383c38c35da168563a7345768c6d784
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import datetime import itertools import time from django.utils.timezone import now as timezone_now from typing import Any, Dict, List, Set from zerver.lib.timestamp import datetime_to_timestamp from zerver.models import ( query_for_ids, PushDeviceToken, Realm, Use...
33.989189
102
0.667303
794a188ed24af88fd94bbc14212196a1e96176c4
15,549
py
Python
saleor/graphql/checkout/dataloaders.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
1,392
2021-10-06T15:54:28.000Z
2022-03-31T20:50:55.000Z
saleor/graphql/checkout/dataloaders.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
888
2021-10-06T10:48:54.000Z
2022-03-31T11:00:30.000Z
saleor/graphql/checkout/dataloaders.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
538
2021-10-07T16:21:27.000Z
2022-03-31T22:58:57.000Z
from collections import defaultdict from django.db.models import F from promise import Promise from ...checkout.fetch import ( CheckoutInfo, CheckoutLineInfo, apply_voucher_to_checkout_line, get_delivery_method_info, update_delivery_method_lists_for_checkout_info, ) from ...checkout.models import ...
40.704188
88
0.548974
794a1967bb710ad39b1bbf6992bb8d126146ce15
10,444
py
Python
py3status/events.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
1
2020-04-07T19:11:36.000Z
2020-04-07T19:11:36.000Z
py3status/events.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
2
2018-03-15T18:44:42.000Z
2018-03-15T19:22:04.000Z
py3status/events.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
null
null
null
import select import sys from threading import Thread from subprocess import Popen, PIPE from json import loads from py3status.profiling import profile try: # Python 3 from shlex import quote as shell_quote except ImportError: # Python 2 from pipes import quote as shell_quote class IOPoller: ""...
35.890034
84
0.588568
794a1993e788670563631d6574aa5b89561e42d9
6,865
py
Python
game.py
paulvinell/2048-python-custom-player
f4bae0a0b220ce1f7bf3d2a76d350bed93816064
[ "MIT" ]
null
null
null
game.py
paulvinell/2048-python-custom-player
f4bae0a0b220ce1f7bf3d2a76d350bed93816064
[ "MIT" ]
null
null
null
game.py
paulvinell/2048-python-custom-player
f4bae0a0b220ce1f7bf3d2a76d350bed93816064
[ "MIT" ]
null
null
null
import random import numpy as np import copy import constants as c class Game(): def __init__(self, log_history=False): # Fitness variables self.move_count = 0 self.max_tile = 0 self.score = 0 # Reward variables self.score_diff = 0 self.tile_count_diff = 0 ...
29.088983
84
0.499199
794a19e7ab0e91c4a1e51ffd790753d7021a3bfb
1,539
py
Python
Python Advanced Exam - 27 June 2020/Bombs.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Python Advanced Exam - 27 June 2020/Bombs.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
Python Advanced Exam - 27 June 2020/Bombs.py
DiyanKalaydzhiev23/Advanced---Python
ed2c60bb887c49e5a87624719633e2b8432f6f6b
[ "MIT" ]
null
null
null
from collections import deque def check_bomb(): if bomb in (40, 60, 120): if bomb == 60: bombs_dict['Cherry Bombs'] += 1 elif bomb == 40: bombs_dict['Datura Bombs'] += 1 elif bomb == 120: bombs_dict['Smoke Decoy Bombs'] += 1 return Tru...
27
79
0.609487
794a1abf96cdcf6a49091a7ef003bf24f0fd4bab
2,378
py
Python
baike_spider/spider_main.py
python-qi/PythonScrapingWithDiskCache
392afed650a09bd5029da7a93a7bcae122c7bb76
[ "Apache-2.0" ]
null
null
null
baike_spider/spider_main.py
python-qi/PythonScrapingWithDiskCache
392afed650a09bd5029da7a93a7bcae122c7bb76
[ "Apache-2.0" ]
null
null
null
baike_spider/spider_main.py
python-qi/PythonScrapingWithDiskCache
392afed650a09bd5029da7a93a7bcae122c7bb76
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 import url_manager, html_downLoader, html_parser, html_outputer import robotparser import disk_cache import logging import sys if sys.getdefaultencoding()!="utf-8": reload(sys) sys.setdefaultencoding("utf-8") class SpiderMain(object): def __init__(self): self.urls = url_manager.Url_Ma...
33.971429
65
0.578638
794a1b1a1f554b972fa45e5ed3e5bdcb3b1f3df6
4,260
py
Python
tutorials/rllib_pistonball.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
846
2020-05-12T05:55:00.000Z
2021-10-08T19:38:40.000Z
tutorials/rllib_pistonball.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
237
2020-04-27T06:01:39.000Z
2021-10-13T02:55:54.000Z
tutorials/rllib_pistonball.py
carlosluis/PettingZoo
aec87907777e0e62652d499b3ac96f680acf35ad
[ "Apache-2.0" ]
126
2020-05-29T04:20:29.000Z
2021-10-13T05:31:12.000Z
from ray import tune from ray.rllib.models import ModelCatalog from ray.tune.registry import register_env from ray.rllib.env.wrappers.pettingzoo_env import ParallelPettingZooEnv from pettingzoo.butterfly import pistonball_v5 import supersuit as ss import torch from torch import nn from ray.rllib.models.torch.torch_mode...
30
87
0.51338
794a1b66c416b4d4fdb5425f0e030919cc9362d6
9,246
py
Python
sensei_mode.py
aq-amani/music-theory
e9292e2bf818f9d98d1d9042ad854219ca61c081
[ "MIT" ]
1
2022-02-10T23:36:23.000Z
2022-02-10T23:36:23.000Z
sensei_mode.py
aq-amani/music-theory
e9292e2bf818f9d98d1d9042ad854219ca61c081
[ "MIT" ]
null
null
null
sensei_mode.py
aq-amani/music-theory
e9292e2bf818f9d98d1d9042ad854219ca61c081
[ "MIT" ]
null
null
null
import time import sys import mt_toolbox as mt def sensei_print(s, play_flag=False, wait_flag=True): for c in s: sys.stdout.write(c) sys.stdout.flush() time.sleep(0.04) if wait_flag: input("\n[Press any key to play the sample...]" if play_flag else "\n[Press any key to continue....
35.837209
133
0.676941
794a1b7b30acbf76666942ad9d3647b90d50ec8c
119,959
py
Python
tests/integration/boxscore/test_ncaaf_boxscore.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
tests/integration/boxscore/test_ncaaf_boxscore.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
tests/integration/boxscore/test_ncaaf_boxscore.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-07-08T16:05:25.000Z
2020-07-08T16:05:25.000Z
import mock import os import pandas as pd from datetime import datetime from flexmock import flexmock from sportsreference import utils from sportsreference.constants import AWAY from sportsreference.ncaaf.constants import BOXSCORE_URL, BOXSCORES_URL from sportsreference.ncaaf.boxscore import Boxscore, Boxscores MONT...
40.066466
78
0.401729
794a1c9784881bbdf7ee2bf9e99c652b7719dab3
688
py
Python
src/data/gopro_large.py
alpayuz/DeepDeblur-PyTorch
771252e123e3a11da849bb9cef2a7cc49d8d1a2d
[ "MIT" ]
158
2020-06-09T08:55:00.000Z
2022-03-28T12:13:18.000Z
src/data/gopro_large.py
alpayuz/DeepDeblur-PyTorch
771252e123e3a11da849bb9cef2a7cc49d8d1a2d
[ "MIT" ]
43
2020-06-10T10:56:02.000Z
2022-03-28T10:27:21.000Z
src/data/gopro_large.py
alpayuz/DeepDeblur-PyTorch
771252e123e3a11da849bb9cef2a7cc49d8d1a2d
[ "MIT" ]
35
2020-06-13T15:00:31.000Z
2022-03-19T21:26:20.000Z
from data.dataset import Dataset from utils import interact class GOPRO_Large(Dataset): """GOPRO_Large train, test subset class """ def __init__(self, args, mode='train'): super(GOPRO_Large, self).__init__(args, mode) def set_modes(self): self.modes = ('train', 'test') def set_ke...
28.666667
88
0.642442
794a1d8899dd7a1c2dc07aed20f7c2abff547117
383
py
Python
proj/creator.py
natn2323/mosaic-maker-python
2e3d15fbe62be7e14ee42533a3c7e9925b03dfc4
[ "MIT" ]
null
null
null
proj/creator.py
natn2323/mosaic-maker-python
2e3d15fbe62be7e14ee42533a3c7e9925b03dfc4
[ "MIT" ]
null
null
null
proj/creator.py
natn2323/mosaic-maker-python
2e3d15fbe62be7e14ee42533a3c7e9925b03dfc4
[ "MIT" ]
null
null
null
def easy_create(filename, color=(0,0,0)): img = Image.new("RGB", (360, 360), color) img.save(filename) if __name__ == '__main__': import sys from PIL import Image print("Input your colors:") r = raw_input("Red: ") g = raw_input("Green: ") b = raw_input("Blue: ") color = (int(r...
21.277778
45
0.582245
794a1e615be5f8aaa436cfa9e75426be5854fb94
351
py
Python
Diena_8_dictionaries/d8_g1_u1.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_8_dictionaries/d8_g1_u1.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_8_dictionaries/d8_g1_u1.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
from collections import Counter letters = input("enter words to count letters") count = Counter(letters) print(count.most_common()) # catalog = {} # for i in letters: # if i in catalog: # catalog[i] += 1 # else: # catalog[i] = 1 # list_ = list(catalog.keys()) # list_.sort() # for z in list_: # ...
25.071429
47
0.606838
794a1edf70cc12944955496eb0d8d1f9e98d843a
4,987
py
Python
music21/tie.py
ismail4040/DeepLeanirngJazz
1e79cdde5652870706331c634aec4eca4b07ba01
[ "Apache-1.1" ]
null
null
null
music21/tie.py
ismail4040/DeepLeanirngJazz
1e79cdde5652870706331c634aec4eca4b07ba01
[ "Apache-1.1" ]
null
null
null
music21/tie.py
ismail4040/DeepLeanirngJazz
1e79cdde5652870706331c634aec4eca4b07ba01
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Name: tie.py # Purpose: music21 classes for representing ties (visual and conceptual) # # Authors: Michael Scott Cuthbert # Christopher Ariza # # Copyright: Copyright © 2009-2010...
30.042169
97
0.54221
794a1ef6813a9364752b3f062a90bca5f01efc82
3,526
py
Python
orchestra/management/commands/orchestrastatus.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
68
2015-02-09T10:28:44.000Z
2022-03-12T11:08:36.000Z
orchestra/management/commands/orchestrastatus.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
17
2015-05-01T18:10:03.000Z
2021-03-19T21:52:55.000Z
orchestra/management/commands/orchestrastatus.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
29
2015-03-31T04:51:03.000Z
2022-02-17T02:58:50.000Z
import os import re from django.conf import settings as djsettings from django.core.management.base import BaseCommand from django.db import connections from orchestra import settings, get_version from orchestra.utils import paths from orchestra.utils.sys import run from .startservices import flatten class Command...
44.075
138
0.525241
794a1f3a362332a2a73ea2b5fbb8d7c0faccb296
11,821
py
Python
extra_tests/cffi_tests/cffi0/test_zdistutils.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
1
2018-12-27T20:40:49.000Z
2018-12-27T20:40:49.000Z
extra_tests/cffi_tests/cffi0/test_zdistutils.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
extra_tests/cffi_tests/cffi0/test_zdistutils.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# Generated by pypy/tool/import_cffi.py import sys, os, imp, math, shutil import py from cffi import FFI, FFIError from cffi.verifier import Verifier, _locate_engine_class, _get_so_suffixes from cffi.ffiplatform import maybe_relative_path from extra_tests.cffi_tests.udir import udir class DistUtilsTest(object): d...
40.762069
79
0.58303
794a1f44b5dce9956b208874ca579c62fdff25ea
14,104
py
Python
oneflow/python/test/ops/test_slice_v2.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
1
2020-10-13T03:03:40.000Z
2020-10-13T03:03:40.000Z
oneflow/python/test/ops/test_slice_v2.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
null
null
null
oneflow/python/test/ops/test_slice_v2.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
33.107981
124
0.659175
794a1fb6e01794e33fe321311f1a73e07e157321
4,570
py
Python
tests/test_dfp_create_orders.py
Pubmatic-Dhruv-Sonone/dfp-prebid-setup
bff688831f40ae067459072632b48675ca26175d
[ "MIT" ]
111
2017-03-09T02:05:25.000Z
2022-03-14T21:03:00.000Z
tests/test_dfp_create_orders.py
propertypal/dfp-prebid-setup
03d5d0cdc37b60031fc5e2962fb89fd7c7945d9e
[ "MIT" ]
81
2017-03-10T08:07:02.000Z
2022-03-02T04:44:06.000Z
tests/test_dfp_create_orders.py
propertypal/dfp-prebid-setup
03d5d0cdc37b60031fc5e2962fb89fd7c7945d9e
[ "MIT" ]
87
2017-03-16T21:38:53.000Z
2022-02-04T11:48:29.000Z
from unittest import TestCase from mock import MagicMock, Mock, patch import settings import dfp.create_orders from dfp.exceptions import BadSettingException, MissingSettingException @patch('googleads.ad_manager.AdManagerClient.LoadFromStorage') class DFPCreateOrderTests(TestCase): @patch('dfp.get_orders.get_ord...
29.10828
78
0.686871
794a213a30039565706b722b9a48f175fa1339e5
1,321
py
Python
app/core/tests/test_admin.py
shojibhasan/racipe-app-api
f641b71ac7b5dc7e0a8d72614c80620bb265ae3e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
shojibhasan/racipe-app-api
f641b71ac7b5dc7e0a8d72614c80620bb265ae3e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
shojibhasan/racipe-app-api
f641b71ac7b5dc7e0a8d72614c80620bb265ae3e
[ "MIT" ]
null
null
null
from django.test import TestCase,Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@londonappdev.com', ...
33.025
68
0.647994
794a21ce4931b025319c382f5c936d6b0b2654b1
1,304
py
Python
lab4/espclient.py
petersumner/ECE40862
ce5132b7fb48276e80de5f8df19f3434fb282e1b
[ "MIT" ]
null
null
null
lab4/espclient.py
petersumner/ECE40862
ce5132b7fb48276e80de5f8df19f3434fb282e1b
[ "MIT" ]
null
null
null
lab4/espclient.py
petersumner/ECE40862
ce5132b7fb48276e80de5f8df19f3434fb282e1b
[ "MIT" ]
null
null
null
from machine import Pin, Timer import network import esp32 import socket import ssl # Initialize Red and Green LEDS on GPIO Output led_red = Pin(12, Pin.OUT) led_green = Pin(21, Pin.OUT) led_red.value(1) led_green.value(1) timer = Timer(0) # Connect to WiFi network essid = "The MATRIX" password = "redacted" wlan = ...
23.709091
65
0.671779
794a268c71cb461cd02fa9422f2a72473fa39f22
1,922
py
Python
named_entity_recognizer.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
1
2021-12-27T12:57:07.000Z
2021-12-27T12:57:07.000Z
named_entity_recognizer.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
named_entity_recognizer.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
import spacy import streamlit as st # txt = 'Apple reached an all-time high stock price of 143 dollars this January' # nlp = spacy.load('en_core_web_trf') # doc = nlp(txt) # for ent in doc.ents: # print(ent.text) # print(ent.label_) # print('='*5) # import gc # gc.collect() ## requirements.txt # https...
30.507937
132
0.646202
794a270129755c3ca3fd97c2e44069897e770a46
12,155
py
Python
TrainingInterfaces/Text_to_Spectrogram/Tacotron2/tacotron2_train_loop.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
93
2021-08-11T13:52:37.000Z
2022-03-29T23:19:07.000Z
TrainingInterfaces/Text_to_Spectrogram/Tacotron2/tacotron2_train_loop.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
4
2021-12-15T17:23:14.000Z
2022-03-24T04:51:40.000Z
TrainingInterfaces/Text_to_Spectrogram/Tacotron2/tacotron2_train_loop.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
25
2021-08-11T14:23:47.000Z
2022-03-28T20:23:51.000Z
import os import time import matplotlib.pyplot as plt import torch import torch.multiprocessing import torch.nn.functional as F from speechbrain.pretrained import EncoderClassifier from torch.cuda.amp import GradScaler from torch.cuda.amp import autocast from torch.nn.utils.rnn import pad_sequence from torch.utils.dat...
53.311404
145
0.56956
794a297ca1bc2e2b144b1f22bbb005d822e90cfb
32,404
py
Python
docassemble_webapp/docassemble/webapp/update.py
patrickr81/docassemble
651653f6d3ab4c4c95d1defbc547ab8e15e460cc
[ "MIT" ]
null
null
null
docassemble_webapp/docassemble/webapp/update.py
patrickr81/docassemble
651653f6d3ab4c4c95d1defbc547ab8e15e460cc
[ "MIT" ]
6
2021-02-08T20:44:14.000Z
2022-01-13T02:42:41.000Z
docassemble_webapp/docassemble/webapp/update.py
mkrejpsky/docassemble.pirati.cz
ffce141cad187aa96f477aa42877c5ad185a02e4
[ "MIT" ]
null
null
null
import os import sys import socket import tempfile import subprocess import xmlrpc.client import re #from io import StringIO import sys import shutil import time import fcntl from distutils.version import LooseVersion if __name__ == "__main__": import docassemble.base.config docassemble.base.config.load(argume...
50.395023
335
0.64776
794a29f6e5a4b5e6be3bd0fd3286684ab64d73ea
1,089
py
Python
utils/swift_build_support/swift_build_support/products/sourcekitlsp.py
Vooblin/swift
acc13579c6493c58144a180d3a5013eec164efb3
[ "Apache-2.0" ]
10
2019-05-11T02:17:28.000Z
2022-02-06T15:37:53.000Z
utils/swift_build_support/swift_build_support/products/sourcekitlsp.py
Vooblin/swift
acc13579c6493c58144a180d3a5013eec164efb3
[ "Apache-2.0" ]
1
2020-05-20T21:18:01.000Z
2020-05-20T21:18:01.000Z
utils/swift_build_support/swift_build_support/products/sourcekitlsp.py
Vooblin/swift
acc13579c6493c58144a180d3a5013eec164efb3
[ "Apache-2.0" ]
1
2021-09-12T16:22:05.000Z
2021-09-12T16:22:05.000Z
# swift_build_support/products/sourcekitlsp.py -------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.t...
32.029412
79
0.647383
794a2b286ba2606b25dc78e69842c531b5059fa0
3,634
py
Python
ftis/ftis/process.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
4
2021-04-16T05:47:52.000Z
2021-12-04T08:50:46.000Z
ftis/ftis/process.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
10
2020-05-13T16:47:38.000Z
2022-03-09T15:45:16.000Z
ftis/ftis/process.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
null
null
null
import datetime import logging from pathlib import Path from rich.console import Console from rich.markdown import Markdown from ftis.common.io import write_json, read_json from ftis.common.exceptions import InvalidSource from ftis.common.utils import ignored_keys, create_hash class FTISProcess: """Class that rep...
34.283019
103
0.594111
794a2b93e64430465d077ba6e09c84da1dafe8dc
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/packages/utils/utils.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/packages/utils/utils.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/packages/utils/utils.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/0c/1f/be/81c5f1985c122a8a1b09de03082e9c77a993fa809dc5855c6cc1a9137a
96
96
0.895833
794a2bf333fe61a6c779b0834afad6687661341f
4,344
py
Python
envs/cheetah-mod-control.py
russellmendonca/oyster
0bdc46e650e47615a459d7eaad53ead735907c05
[ "MIT" ]
null
null
null
envs/cheetah-mod-control.py
russellmendonca/oyster
0bdc46e650e47615a459d7eaad53ead735907c05
[ "MIT" ]
null
null
null
envs/cheetah-mod-control.py
russellmendonca/oyster
0bdc46e650e47615a459d7eaad53ead735907c05
[ "MIT" ]
null
null
null
import numpy as np from itertools import combinations from . import register_env from .half_cheetah import HalfCheetahEnv @register_env('cheetah-mod-control') class HalfCheetahModControlEnv(HalfCheetahEnv): """Half-cheetah environment with target velocity, as described in [1]. The code is adapted from htt...
35.317073
126
0.638812
794a2d2ed315a11becabfe6193a571510c2ce21f
92,489
py
Python
tools/runtime_CLI.py
shaiazulay/behavioral-model
3b7b1ff13860aa7e2d8c08d18342aae928bd2a97
[ "Apache-2.0" ]
null
null
null
tools/runtime_CLI.py
shaiazulay/behavioral-model
3b7b1ff13860aa7e2d8c08d18342aae928bd2a97
[ "Apache-2.0" ]
null
null
null
tools/runtime_CLI.py
shaiazulay/behavioral-model
3b7b1ff13860aa7e2d8c08d18342aae928bd2a97
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2013-present Barefoot Networks, 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 b...
36.542473
193
0.620225
794a2d8313987a7e6fa279ea4b0d86a29fd93cdc
994
py
Python
shuffle_images.py
blackrubystudio/bread-scanner
a8fa01201506373e03c9a93279a0bea5f4a74ce9
[ "MIT" ]
3
2018-11-09T04:36:08.000Z
2018-11-12T04:57:24.000Z
shuffle_images.py
blackrubystudio/Bread-scanner
a8fa01201506373e03c9a93279a0bea5f4a74ce9
[ "MIT" ]
null
null
null
shuffle_images.py
blackrubystudio/Bread-scanner
a8fa01201506373e03c9a93279a0bea5f4a74ce9
[ "MIT" ]
null
null
null
""" Shuffle and renames images in the given directory. Usage: python3 shuffle_images.py --dataset ${PWD}/path/to/data """ import os import random INDEX = 256 def suffle_images (path): filenames = os.listdir(path) random.shuffle(filenames) for index, filename in enumerate(filenames): if '.jpg' in...
29.235294
97
0.627767
794a2da0e5708cda7df4d7c83cd3b9235bedd82e
2,713
py
Python
src/generators/cloth.py
saic-vul/point_based_clothing
3650fdae2ba9a5ced40f3075a4f0fd995442a64e
[ "MIT" ]
29
2021-10-09T08:43:51.000Z
2022-02-27T04:51:58.000Z
src/generators/cloth.py
SamsungLabs/point_based_clothing
1dbb7465ef2b032eb92947f5aa9ccdfaed9f8a39
[ "MIT" ]
4
2021-10-08T06:51:46.000Z
2022-03-25T18:07:07.000Z
src/generators/cloth.py
SamsungLabs/point_based_clothing
1dbb7465ef2b032eb92947f5aa9ccdfaed9f8a39
[ "MIT" ]
3
2021-11-01T07:36:57.000Z
2022-01-18T08:57:32.000Z
import os import segmentation_models_pytorch as smp import torch from torch import nn from utils.common import to_tanh, to_sigm class Wrapper: @staticmethod def get_args(parser): parser.add('--gen_in_channels', type=int, default=17) parser.add('--backbone', type=str, default='resnet18') ...
32.297619
109
0.60118
794a2dd105bae1dcd79e815bb8b167c0d733155b
3,531
py
Python
distanceMetricLearning/load_data_dml.py
KareemYousrii/2015-DL-TIWafer
5aa7d2ecfcfd3da95811a0a49c855ba1bcb3f034
[ "BSD-2-Clause" ]
null
null
null
distanceMetricLearning/load_data_dml.py
KareemYousrii/2015-DL-TIWafer
5aa7d2ecfcfd3da95811a0a49c855ba1bcb3f034
[ "BSD-2-Clause" ]
null
null
null
distanceMetricLearning/load_data_dml.py
KareemYousrii/2015-DL-TIWafer
5aa7d2ecfcfd3da95811a0a49c855ba1bcb3f034
[ "BSD-2-Clause" ]
null
null
null
""" """ from os.path import dirname from pandas import read_csv from itertools import combinations from random import shuffle import pandas as pd import cPickle import numpy as np import lmdb import cPickle from collections import defaultdict import sys # Make sure that caffe is on the python path: sys.path.append('/h...
30.973684
104
0.661286
794a2e111df770b9ed40926fb6c9e26b3d44a221
97,057
py
Python
lightly/openapi_generated/swagger_client/api/docker_api.py
CodeGuy-007/lightly
64143fe8a477c04288009c65fa1265cef8aa48f8
[ "MIT" ]
1
2022-03-10T00:22:30.000Z
2022-03-10T00:22:30.000Z
lightly/openapi_generated/swagger_client/api/docker_api.py
CodeGuy-007/lightly
64143fe8a477c04288009c65fa1265cef8aa48f8
[ "MIT" ]
null
null
null
lightly/openapi_generated/swagger_client/api/docker_api.py
CodeGuy-007/lightly
64143fe8a477c04288009c65fa1265cef8aa48f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ Lightly API Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@lightly...
42.420017
252
0.622016
794a2e50c8eac2ea18e8b1c98aa006d2752140df
1,329
py
Python
park/envs/multi_dim_index/spaces.py
utkarsh5k/park
e7eba74f532204564df42a8e82a65ed025ce3b30
[ "MIT" ]
180
2019-04-30T05:50:32.000Z
2022-03-28T01:32:07.000Z
park/envs/multi_dim_index/spaces.py
utkarsh5k/park
e7eba74f532204564df42a8e82a65ed025ce3b30
[ "MIT" ]
21
2019-05-03T17:42:54.000Z
2022-01-25T19:31:42.000Z
park/envs/multi_dim_index/spaces.py
utkarsh5k/park
e7eba74f532204564df42a8e82a65ed025ce3b30
[ "MIT" ]
42
2019-05-01T15:15:19.000Z
2021-11-19T05:27:09.000Z
import random from park.core import Space from park.envs.multi_dim_index.params import Params as params from park.envs.multi_dim_index.config import Action, Query class ActionSpace(Space): def sample(self): n = random.randint(1, params.NDIMS) dims = random.sample(range(params.NDIMS), n) col...
29.533333
92
0.598194
794a2e5a854e866dfc118d308be6b9bc0bf71980
1,526
py
Python
main.py
biprodip/multi_omic_vae
e174bfd97f9a47b2b916390fcf46830fccae063b
[ "MIT" ]
17
2019-08-11T12:29:06.000Z
2022-03-16T15:47:50.000Z
main.py
biprodip/multi_omic_vae
e174bfd97f9a47b2b916390fcf46830fccae063b
[ "MIT" ]
1
2021-12-23T08:38:26.000Z
2021-12-24T02:40:35.000Z
main.py
biprodip/multi_omic_vae
e174bfd97f9a47b2b916390fcf46830fccae063b
[ "MIT" ]
17
2019-08-15T09:03:51.000Z
2022-03-17T14:23:04.000Z
import numpy as np import pandas as pd from MultiOmiVAE import MultiOmiVAE from MethyOmiVAE import MethyOmiVAE from ExprOmiVAE import ExprOmiVAE from plot_sactter import plot_scatter from classification import classification if __name__ == "__main__": input_path = 'data/OmiVAE/PANCAN/GDC-PANCAN_' expr_path =...
38.15
111
0.673657
794a2e8000ad496b4fbbb1bdbbf91b79c1addb68
3,269
py
Python
HeapMemoryUsage.py
carlo4002/kafka_checks
b7bb2897b0c3b1b7ffa8a73d6d5600f3b3a874ae
[ "Apache-2.0" ]
null
null
null
HeapMemoryUsage.py
carlo4002/kafka_checks
b7bb2897b0c3b1b7ffa8a73d6d5600f3b3a874ae
[ "Apache-2.0" ]
null
null
null
HeapMemoryUsage.py
carlo4002/kafka_checks
b7bb2897b0c3b1b7ffa8a73d6d5600f3b3a874ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ####################################### # Copyright (C) 2019: # SETRA Conseil ####################################### from subprocess import CalledProcessError from jmxquery import JMXConnection from jmxquery import JMXQuery import argparse def parsing_arguments(): p = argparse.Argu...
35.923077
108
0.566228
794a2e98ca444dd396fe67baa9f9ef619f7a4d59
24,451
py
Python
Lib/fontTools/cffLib/specializer.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
240
2021-01-11T14:49:24.000Z
2022-03-29T22:33:49.000Z
Lib/fontTools/cffLib/specializer.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
77
2021-01-12T20:23:30.000Z
2022-03-28T12:14:34.000Z
Lib/fontTools/cffLib/specializer.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
28
2021-01-17T05:44:11.000Z
2022-01-11T19:58:46.000Z
# -*- coding: utf-8 -*- """T2CharString operator specializer and generalizer.""" from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from fontTools.cffLib import maxStackLimit def stringToProgram(string): if isinstance(string, basestring): string = string.split() p...
32.95283
104
0.665617
794a2fb9b59515218ab99ca2b415afea06a23c62
3,432
py
Python
deploy-agent/deployd/common/utils.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
null
null
null
deploy-agent/deployd/common/utils.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
null
null
null
deploy-agent/deployd/common/utils.py
jsoref/pinterest-teletraan
e1093a8fc232c66b01595f46ed5f2f2ff42d6dc6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pinterest, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
27.902439
79
0.677156
794a308b0be02eb93b17276da2c2a743ea3b3bcc
11,031
py
Python
gitScrabber/argHandler.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/argHandler.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/argHandler.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017 Roland Jaeger 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...
36.77
80
0.550267
794a31c9d8973a445a99fad61b16375756fecaa9
4,306
py
Python
namedtensor/distributions/distributions.py
larslorch/namedtensor
8689fdfb8190fe0f31f05a982778c21a85c713b1
[ "MIT" ]
null
null
null
namedtensor/distributions/distributions.py
larslorch/namedtensor
8689fdfb8190fe0f31f05a982778c21a85c713b1
[ "MIT" ]
null
null
null
namedtensor/distributions/distributions.py
larslorch/namedtensor
8689fdfb8190fe0f31f05a982778c21a85c713b1
[ "MIT" ]
null
null
null
from ..schema import _Schema from ..torch_helpers import NamedTensor import torch import torch.distributions class NamedDistribution: def __init__(self, dist, batch_names, event_names): self._dist = dist self._batch_schema = _Schema.build(batch_names, 0) self._event_schema = _Schema.build(...
26.745342
78
0.55922
794a323b1bc269c50200e901bf79a656f237cde3
271
py
Python
Avaliacion7e.py
JoaozinhoProgramation/infosatc-lp-avaliativo-02
9049f69c3d66767e1b26bdd4f980eacbcede8713
[ "MIT" ]
null
null
null
Avaliacion7e.py
JoaozinhoProgramation/infosatc-lp-avaliativo-02
9049f69c3d66767e1b26bdd4f980eacbcede8713
[ "MIT" ]
null
null
null
Avaliacion7e.py
JoaozinhoProgramation/infosatc-lp-avaliativo-02
9049f69c3d66767e1b26bdd4f980eacbcede8713
[ "MIT" ]
null
null
null
Filmes = ["infinite","Jungle Cruise",] Jogos = ["Hitman","Crash"] Livros = ["Você sabia","mindset"] Esporte = ["Futebol","Basquete"] Disciplinas =["Matemática","História"] Lista = Filmes.copy(),Jogos.copy(),Livros.copy(),Esporte.copy(),Disciplinas.copy() print(ABCD)
22.583333
82
0.678967
794a32d50c6cc821447e9e9e396796237be5dd1e
3,299
py
Python
plugins/action/mnt_session_disconnect_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
plugins/action/mnt_session_disconnect_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
plugins/action/mnt_session_disconnect_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import ( AnsibleArgSpecValidator, ) except ImportError: ANSIBLE_UTILS_IS_INST...
34.364583
128
0.64656
794a32e14120424cbeb6675e4014824abf7c99ff
140
py
Python
cargo/domain/model/base/factory.py
agiledragon/ddd-sample-in-python
5268e580845e599d8d3488c92bd1b44f4ece2378
[ "MIT" ]
2
2018-08-24T15:09:07.000Z
2018-10-29T01:45:21.000Z
cargo/domain/model/base/factory.py
agiledragon/ddd-sample-in-python
5268e580845e599d8d3488c92bd1b44f4ece2378
[ "MIT" ]
null
null
null
cargo/domain/model/base/factory.py
agiledragon/ddd-sample-in-python
5268e580845e599d8d3488c92bd1b44f4ece2378
[ "MIT" ]
3
2018-07-30T02:07:21.000Z
2021-02-18T07:04:21.000Z
from abc import abstractmethod class Factory(object): @abstractmethod def create(self, *args): raise NotImplementedError
15.555556
33
0.714286
794a3312c94fb00c4795bccb081b09e783ac1069
14,264
py
Python
iotprovision/winc/pywinc_main.py
microchip-pic-avr-tools/iotprovision
310806d6df4462484fe289a14957228a6f34ca48
[ "MIT" ]
null
null
null
iotprovision/winc/pywinc_main.py
microchip-pic-avr-tools/iotprovision
310806d6df4462484fe289a14957228a6f34ca48
[ "MIT" ]
null
null
null
iotprovision/winc/pywinc_main.py
microchip-pic-avr-tools/iotprovision
310806d6df4462484fe289a14957228a6f34ca48
[ "MIT" ]
null
null
null
"""Main pywinc tool functions """ import pathlib import serial from pykitcommander.kitprotocols import setup_kit from .wincupgrade import WincUpgradeBridgeLink, WincUpgrade from .winc_flash_map import FlashMap from .winc_certs import ClientCertStorage, RootCertStorage PYWINC_VERSION = "1.0.0" # FIXME where to def...
39.622222
114
0.672883