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
74db8fbec7a7354651081c30d019771a43a7e043
5,461
py
Python
module/OutHandler.py
sigmarising/poetry-data-merge
62232726d6a23460afc93d592d2c6cd1d865b432
[ "MIT" ]
null
null
null
module/OutHandler.py
sigmarising/poetry-data-merge
62232726d6a23460afc93d592d2c6cd1d865b432
[ "MIT" ]
null
null
null
module/OutHandler.py
sigmarising/poetry-data-merge
62232726d6a23460afc93d592d2c6cd1d865b432
[ "MIT" ]
null
null
null
""" class: OutHandler Author: Jason Zhang Date: 2019/4/6 Desc: 用于操作合并后的数据集 """ import json import os import numpy as np from .BasicHandler import BasicHandler from .ColorLogDecorator import ColorLogDecorator class OutHandler(BasicHandler): def __init__(self, root_path: str, threshold_cos: float, filter_len: i...
34.13125
120
0.503388
74db9262b799b88a00077a0cd72199febb4de2cb
790
py
Python
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: image_proc.py # # Tests: mesh - Image # plots - Pseudocolor # # Defect ID: '6492 # # Programmer: Hank Childs # Date: August 19, 2005 # # -----------------------------...
23.235294
78
0.563291
74dbbf4a2775ef913a483840bbb9398fd5e03ec2
2,698
py
Python
tools/config/config_send.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
40
2016-10-04T19:59:22.000Z
2020-12-25T18:11:35.000Z
tools/config/config_send.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
209
2016-09-21T21:54:28.000Z
2022-01-26T07:42:37.000Z
tools/config/config_send.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
21
2016-11-07T14:40:16.000Z
2021-11-02T09:53:37.000Z
#!/usr/bin/env python3 import cvra_rpc.message import cvra_rpc.service_call import yaml import argparse import logging import os.path import time MASTER_BOARD_SERVICE_ADDR = ("192.168.3.20", 20001) def keys_to_str(to_convert): """ Replaces all non str keys by converting them. Useful because python yaml t...
26.712871
83
0.616012
74dbd16396da03a391f87a4cc522b798c1affd4a
14,105
py
Python
nova/tests/unit/cells/test_cells_state_manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/tests/unit/cells/test_cells_state_manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/tests/unit/cells/test_cells_state_manager.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# Copyright (c) 2013 Rackspace Hosting # 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 req...
36.827676
79
0.63396
74dbe957f4dc421f9ad353431f70b29cccceeec4
1,876
py
Python
src/osducli/commands/schema/list.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
3
2021-08-19T05:59:39.000Z
2021-11-10T08:02:58.000Z
src/osducli/commands/schema/list.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
2
2021-09-13T11:10:15.000Z
2021-11-25T13:21:54.000Z
src/osducli/commands/schema/list.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) Equinor ASA. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------------------- """Schema se...
36.784314
249
0.652985
74dbf68922d0ae86505fc407bd980fe0d76ff426
7,465
py
Python
asposewordscloud/models/requests/update_drawing_object_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/update_drawing_object_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/update_drawing_object_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="update_drawing_object_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obt...
50.782313
255
0.670462
74dbfd6e184d0c9e613791816a0c229010230c50
2,687
py
Python
docs/source/conf.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
docs/source/conf.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
docs/source/conf.py
engdan77/tasks_collector
098dbe332184baeaeb442a70f91e167f9a48afc4
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.012658
79
0.633048
74dc027f662036def405739d231461335ebb487c
2,022
py
Python
src/test_predicter.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
2
2019-02-03T22:38:15.000Z
2021-09-15T08:07:22.000Z
src/test_predicter.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
2
2018-06-14T05:27:16.000Z
2019-06-24T22:53:24.000Z
src/test_predicter.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
7
2018-09-06T21:13:28.000Z
2019-06-23T23:29:34.000Z
import data_readers import os import pandas as pd import random from collections import Counter from config import Config from data_readers import read_dataset_splits, read_corpus from functools import reduce from model_utils import add_question_length, add_jensen_shannon from pathlib import Path from sklearn.external...
43.956522
234
0.769535
74dc097fd77e728ac4cf2d62ce6ae2ed76202d89
3,402
py
Python
plugins/view.py
xamronpc/MarkdownEditing
9e96fa62badefddee1e71233c8aa348670662954
[ "MIT" ]
null
null
null
plugins/view.py
xamronpc/MarkdownEditing
9e96fa62badefddee1e71233c8aa348670662954
[ "MIT" ]
null
null
null
plugins/view.py
xamronpc/MarkdownEditing
9e96fa62badefddee1e71233c8aa348670662954
[ "MIT" ]
null
null
null
import re import sublime import sublime_plugin def view_is_markdown(view): try: return view.match_selector(view.sel()[0].begin(), "text.html.markdown") except IndexError: return False def syntax_specific_settings_file(view): if isinstance(view, sublime.View): syntax = view.settin...
28.588235
98
0.660494
74dc1b3d7a7472086a68cfc9b67123a7142ece07
81,361
py
Python
toontown/battle/BattleCalculatorAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/battle/BattleCalculatorAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/battle/BattleCalculatorAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random, sys from toontown.battle.BattleBase import * from toontown.battle.BattleGlobals import * from toontown.battle.DistributedBattleAI import * from toontown.toonbase.ToontownBattleGlobals import * from toontown.toonbase import ToontownGlobals from toontown.suit import DistributedSuitBaseAI from toontown.batt...
46.070781
272
0.561719
74dc48c2ae2a652c1ef7c69f23e73e8c4fb0ceb8
94
py
Python
aim/sdk/legacy/flush.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
2,195
2020-01-23T03:08:11.000Z
2022-03-31T14:32:19.000Z
aim/sdk/legacy/flush.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
696
2020-02-08T21:55:45.000Z
2022-03-31T16:52:22.000Z
aim/sdk/legacy/flush.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
150
2020-03-27T10:44:25.000Z
2022-03-21T21:29:41.000Z
from aim.sdk.legacy.deprecation_warning import deprecated @deprecated def flush(): pass
13.428571
57
0.776596
74dc52685c0640f56645f9618fdb541687e62f48
651
py
Python
biosimulators_mpbn/__main__.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
biosimulators_mpbn/__main__.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
biosimulators_mpbn/__main__.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
""" BioSimulators-compliant command-line interface to the `MySimulator <https://url.for.my.simulator>`_ simulation program. :Author: Author name <email@organization> :Date: YYYY-MM-DD :Copyright: YYYY, Owner :License: <License, e.g., MIT> """ from ._version import __version__ from .core import get_simulator_version, ...
31
123
0.728111
74dcc9514b0a66a02ba76e3841c88d9baf97e9f7
14,397
py
Python
src/iam/resources.py
DD-DeCaF/iam
e70ed924b5fdd4bed2a684a1bada43c2755fb0bc
[ "Apache-2.0" ]
2
2018-03-29T14:41:06.000Z
2019-01-20T21:56:26.000Z
src/iam/resources.py
DD-DeCaF/iam
e70ed924b5fdd4bed2a684a1bada43c2755fb0bc
[ "Apache-2.0" ]
25
2018-02-20T14:52:13.000Z
2020-04-30T09:50:38.000Z
src/iam/resources.py
DD-DeCaF/iam
e70ed924b5fdd4bed2a684a1bada43c2755fb0bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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/lic...
34.116114
80
0.620338
74dceb2a0bf3feca0f45d08e5f39969789bba195
11,002
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/carpet/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000'...
34.38125
82
0.563988
74dd0729ce383917d7f3b09c21d87f5300bf940f
2,848
py
Python
datatype_tools/utils/list_functions.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
datatype_tools/utils/list_functions.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
datatype_tools/utils/list_functions.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
from datatype_tools.utils.string_functions import format_date from datatype_tools.utils.dict_functions import get_nested_keys, get_nested_tuple #: Dict to Tuple def to_tuple(d): """ Expects dict with single key, returns tuple. >>> to_tuple({'a': 1}) ('a', 1) """ return next(iter(d.items())) #: Sort List def l...
41.275362
141
0.660463
74dd15b7f90de193145f8ab00c77c60c85093b12
815
py
Python
setup.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
1
2021-08-16T02:38:40.000Z
2021-08-16T02:38:40.000Z
setup.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
setup.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
""" Setup """ from setuptools import find_packages, setup setup( packages=find_packages(exclude=["tests", "examples"]), install_requires=[ "APScheduler==3.7.0", "click==7.1.2", "dill==0.3.3", "redis==3.5.3", ], extras_require={ "diskcache": ["diskcache==5.2...
26.290323
69
0.55092
74dd2fd2db931530045c941426ed2c797816d2a7
1,743
py
Python
Part1/helpers.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part1/helpers.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part1/helpers.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
import cx_Oracle class Helpers: def __init__ (self, curs ): self.cursor = curs ############################# # Table Checking Methods # - Each take in respective integeres # - Returns True or False depending on # the id is already there ############################# def check_transaction_id( self, ...
33.519231
87
0.603557
74dd38b7dc33c8dd8d7808cdd813c67da7866e39
2,894
py
Python
src/pytest_mock_resources/container/postgres.py
JonM0/pytest-mock-resources
96936b750bf26d53205b02008e02546e59b95082
[ "MIT" ]
null
null
null
src/pytest_mock_resources/container/postgres.py
JonM0/pytest-mock-resources
96936b750bf26d53205b02008e02546e59b95082
[ "MIT" ]
null
null
null
src/pytest_mock_resources/container/postgres.py
JonM0/pytest-mock-resources
96936b750bf26d53205b02008e02546e59b95082
[ "MIT" ]
null
null
null
import sqlalchemy from pytest_mock_resources.compat.sqlalchemy import URL from pytest_mock_resources.config import DockerContainerConfig, fallback from pytest_mock_resources.container.base import ContainerCheckFailed class PostgresConfig(DockerContainerConfig): """Define the configuration object for postgres. ...
30.787234
102
0.629578
74dd5a09506908bdfef5788a94b2a5d363452835
8,523
py
Python
notebooks/tfx_utils.py
alkari/tfx-lab
9653d4b8f3c901df33f36061ba5edb50583a69d5
[ "Apache-2.0" ]
4
2019-04-08T20:05:36.000Z
2021-11-28T14:39:24.000Z
notebooks/tfx_utils.py
alkari/tfx-lab
9653d4b8f3c901df33f36061ba5edb50583a69d5
[ "Apache-2.0" ]
null
null
null
notebooks/tfx_utils.py
alkari/tfx-lab
9653d4b8f3c901df33f36061ba5edb50583a69d5
[ "Apache-2.0" ]
6
2019-03-28T06:05:55.000Z
2022-01-14T19:06:43.000Z
"""Utils to query a TFX pipeline's ml-metadata store in a notebook. pip packages required to use this module are listed in requirements.txt. """ import os import time from ml_metadata.metadata_store import metadata_store from ml_metadata.proto import metadata_store_pb2 import papermill as pm import tensorflow_data_v...
38.391892
83
0.701396
74dd65e7c84e3611bf0537a6b7474281d2f50ad2
893
py
Python
Python/ibmcloudsql/__init__.py
shawnzhu/sql-query-clients
536cf5f0dbc240817782fb3cac3407a7d6c4873e
[ "Apache-2.0" ]
null
null
null
Python/ibmcloudsql/__init__.py
shawnzhu/sql-query-clients
536cf5f0dbc240817782fb3cac3407a7d6c4873e
[ "Apache-2.0" ]
null
null
null
Python/ibmcloudsql/__init__.py
shawnzhu/sql-query-clients
536cf5f0dbc240817782fb3cac3407a7d6c4873e
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright IBM Corp. 2018 # # 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/licens...
38.826087
80
0.632699
74dd6eeb6ee2e35da2ea35d19ad686faf61bc021
299
py
Python
tests/test_service.py
ebk46/park-nyc
0552cc638da6c80cc011f579adbdd48940a56cdf
[ "MIT" ]
null
null
null
tests/test_service.py
ebk46/park-nyc
0552cc638da6c80cc011f579adbdd48940a56cdf
[ "MIT" ]
null
null
null
tests/test_service.py
ebk46/park-nyc
0552cc638da6c80cc011f579adbdd48940a56cdf
[ "MIT" ]
null
null
null
from unittest import TestCase from parknyc.exceptions import InvalidCredentialsError from parknyc.service import NYCParkingService class ServiceTestCase(TestCase): def test_invalid_credentials(self): self.assertRaises(InvalidCredentialsError, NYCParkingService, 'illegal', 'illegal')
29.9
91
0.822742
74ddbf41789f1ef28ce84976bad43ec1d267b806
12,383
py
Python
models/detection/SSD/ssd_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
models/detection/SSD/ssd_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
1
2021-06-08T21:53:42.000Z
2021-06-08T21:53:42.000Z
models/detection/SSD/ssd_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
""" SSD model on top of TorchVision feature extractor. The constant values are suitable to a 512X512 image. Automatic change to a different image size can be done by runnint the dry_run method. requirements: PyTorch and TorchVision """ import torch import torch.nn as nn import torch.nn.functional as F import torchvi...
41.976271
118
0.591941
74ddcb07fcfdee46df3d1fb6e4c77225e5384fb9
6,439
py
Python
airflow/providers/google/cloud/transfers/gcs_to_local.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
airflow/providers/google/cloud/transfers/gcs_to_local.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
airflow/providers/google/cloud/transfers/gcs_to_local.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.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...
45.027972
104
0.692499
74ddcbec7accc12673f23ca4909f274dc76597d0
3,241
py
Python
streamparse/cli/tail.py
tail/streamparse
8500325fad61d1606285227c658bfac587060b4c
[ "Apache-2.0" ]
null
null
null
streamparse/cli/tail.py
tail/streamparse
8500325fad61d1606285227c658bfac587060b4c
[ "Apache-2.0" ]
null
null
null
streamparse/cli/tail.py
tail/streamparse
8500325fad61d1606285227c658bfac587060b4c
[ "Apache-2.0" ]
null
null
null
""" Tail the specified log files. """ from __future__ import absolute_import, print_function from fabric.api import env, execute, parallel, run from pkg_resources import parse_version from .common import (add_config, add_environment, add_name, add_override_name, add_pattern, add_pool_size) from ...
40.5125
91
0.634064
74de2d02dfd63f8749ad77dcae506a180c1ccca1
1,731
py
Python
SoftLayer/CLI/image/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/image/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/image/list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
"""List images.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting from SoftLayer.CLI import image as image_mod from SoftLayer import utils import click @click.command() @click.option('--public/--private', is_fl...
30.910714
79
0.571924
74de3d31a217c0e64f100be9a6289b5d9876b604
1,525
py
Python
src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) class ZincLanguageM...
40.131579
98
0.717377
74de65bf0f4aa05154531a814f919abacd11fa02
2,322
py
Python
tests/test_datasets_manipulation/test_dictionary/test_generate_full_dir_dictionary.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
6
2020-04-17T17:37:24.000Z
2021-12-04T03:03:46.000Z
tests/test_datasets_manipulation/test_dictionary/test_generate_full_dir_dictionary.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
62
2019-05-21T21:06:42.000Z
2020-01-26T17:33:45.000Z
tests/test_datasets_manipulation/test_dictionary/test_generate_full_dir_dictionary.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
1
2019-07-22T10:19:38.000Z
2019-07-22T10:19:38.000Z
import json import os from unittest import mock from src.datasets_manipulation.dictionary import Dictionary DIR_TEST_DATA = 'tests/test_datasets_manipulation/test_dictionary/mock_data/' @mock.patch('src.datasets_manipulation.dictionary.consts.TEST_SET_FILE_NAME', DIR_TEST_DATA + 'test.txt') @mock.patch('src.dataset...
43
114
0.719638
74de6a89638430101822bfecaedf2232926eaed8
22,982
py
Python
skbio/io/fastq.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/io/fastq.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/io/fastq.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
r""" FASTQ format (:mod:`skbio.io.fastq`) ==================================== .. currentmodule:: skbio.io.fastq The FASTQ file format (``fastq``) stores biological (e.g., nucleotide) sequences and their quality scores in a simple plain text format that is both human-readable and easy to parse. The file format was in...
42.402214
79
0.600513
74de77737b8bb586c6928d8d5e435d2df7007244
70,370
py
Python
packages/main/src/RPA/Desktop/Windows.py
pavelee/rpaframework
30bf09eb7a3bb3b22f596690791013e0ff2f7b73
[ "Apache-2.0" ]
null
null
null
packages/main/src/RPA/Desktop/Windows.py
pavelee/rpaframework
30bf09eb7a3bb3b22f596690791013e0ff2f7b73
[ "Apache-2.0" ]
null
null
null
packages/main/src/RPA/Desktop/Windows.py
pavelee/rpaframework
30bf09eb7a3bb3b22f596690791013e0ff2f7b73
[ "Apache-2.0" ]
null
null
null
# pylint: disable=c-extension-no-member # pylint: disable=too-many-lines from enum import Enum import json import logging import os import platform import re import subprocess import time from pathlib import Path from typing import Any, Optional from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError from R...
34.682109
147
0.577135
74dea542c2c621ec86bc02d8d4f4cbeb4d70b9c6
4,562
py
Python
bph/core/configuration.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
bph/core/configuration.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
bph/core/configuration.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
#!/usr/bin/python # # Copyright 2019 Fortinet 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 applicab...
47.030928
136
0.736957
74dec24c76ddfb1f5dd6ddc9f2e6ff4e0e34facf
355
py
Python
app/Pipeline/surfline.py
RowenWitt/CheckCheck
2e1054d95a41a84f36727667c1cbeb2b11aaf0df
[ "MIT" ]
null
null
null
app/Pipeline/surfline.py
RowenWitt/CheckCheck
2e1054d95a41a84f36727667c1cbeb2b11aaf0df
[ "MIT" ]
null
null
null
app/Pipeline/surfline.py
RowenWitt/CheckCheck
2e1054d95a41a84f36727667c1cbeb2b11aaf0df
[ "MIT" ]
null
null
null
import requests class SurflineGetter(object): def __init__(self): self.base_url = "https://services.surfline.com/kbyg/spots/forecasts/{}?spotId={}" def get_surfline_forecast(self, spot_id=None, product_type='wave'): url = self.base_url.format(product_type, spot_id) res = requests.get...
23.666667
89
0.68169
74def6827036dbfd9b4ebf9505ad70228fd106df
11,287
py
Python
clients/client/python/ory_client/model/ui_node_meta.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_meta.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_meta.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
42.91635
194
0.571897
74defe86bc689a3c8560c0e0b1831c03b5336697
1,926
py
Python
qnt/data/cryptofutures.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
1
2021-04-23T21:27:24.000Z
2021-04-23T21:27:24.000Z
qnt/data/cryptofutures.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
null
null
null
qnt/data/cryptofutures.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
null
null
null
from qnt.data.common import * import qnt.data.common as qdc def load_data( assets: tp.Union[None, tp.List[str]] = None, min_date: tp.Union[str, datetime.date, datetime.datetime] = None, max_date: tp.Union[str, datetime.date, datetime.datetime, None] = None, dims: tp.Tuple[str, str, str]...
35.666667
96
0.604881
74df077f9be1dfd7f77c4e783f59775a5a50b9f5
2,297
py
Python
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/xml_dom_parser.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
4
2022-03-04T11:11:30.000Z
2022-03-07T09:55:07.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/xml_dom_parser.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
43
2021-03-09T08:58:29.000Z
2022-03-18T09:05:12.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/xml_dom_parser.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
2
2022-02-08T22:02:50.000Z
2022-03-27T16:52:26.000Z
# # Copyright 2021 Splunk 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 writing, so...
35.338462
80
0.57771
74df435b76697615e58f700b4463835258eda6b9
2,181
py
Python
Leetcode/Three Equal Parts/three_parts.py
vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes
35cee8317c05b36864a992789c741554205b3919
[ "MIT" ]
1
2021-02-11T14:54:34.000Z
2021-02-11T14:54:34.000Z
Leetcode/Three Equal Parts/three_parts.py
vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes
35cee8317c05b36864a992789c741554205b3919
[ "MIT" ]
null
null
null
Leetcode/Three Equal Parts/three_parts.py
vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes
35cee8317c05b36864a992789c741554205b3919
[ "MIT" ]
null
null
null
""" Link to the question - https://leetcode.com/explore/featured/card/july-leetcoding-challenge-2021/610/week-3-july-15th-july-21st/3817/ """ class Solution: def threeEqualParts(self, arr: List[int]) -> List[int]: """ -------------------------------------------------------------------------- ...
31.157143
133
0.36497
74df513e062d8d0e0328382afc0a2beece6106d8
8,566
py
Python
datasketch/lean_minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
datasketch/lean_minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
datasketch/lean_minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
import struct import numpy as np from datasketch import MinHash class LeanMinHash(MinHash): '''Lean MinHash is MinHash with a smaller memory footprint and faster deserialization, but with its internal state frozen -- no `update()`. Lean MinHash inherits all methods from :class:`datasketch.MinHash`. ...
38.585586
96
0.601331
74df71180ef448a445919051cabfdba7fbf4b9c1
67
py
Python
run.py
blueduck981/coursexray
6df5b1550643559c3edd008e83b549fbc7b1a37f
[ "Apache-2.0" ]
null
null
null
run.py
blueduck981/coursexray
6df5b1550643559c3edd008e83b549fbc7b1a37f
[ "Apache-2.0" ]
null
null
null
run.py
blueduck981/coursexray
6df5b1550643559c3edd008e83b549fbc7b1a37f
[ "Apache-2.0" ]
null
null
null
from flaskexample import app app.run(host='0.0.0.0', debug = True)
22.333333
37
0.716418
74dfa8bebd71939aad572f646d5222203da35caa
6,121
py
Python
experiments/train_lstm_1_vqa_test.py
Asteur/visual-qa
99be95d61bf9302495e741fa53cf63b7e9a91a35
[ "MIT" ]
528
2015-11-02T22:06:38.000Z
2022-02-17T16:07:47.000Z
experiments/train_lstm_1_vqa_test.py
Asteur/visual-qa
99be95d61bf9302495e741fa53cf63b7e9a91a35
[ "MIT" ]
33
2015-11-02T16:10:36.000Z
2021-01-09T06:05:16.000Z
experiments/train_lstm_1_vqa_test.py
Asteur/visual-qa
99be95d61bf9302495e741fa53cf63b7e9a91a35
[ "MIT" ]
221
2015-11-02T19:13:21.000Z
2020-09-25T03:41:24.000Z
import numpy as np import scipy.io import sys import argparse from keras.models import Sequential from keras.layers.core import Dense, Activation, Merge, Dropout, Reshape from keras.layers.recurrent import LSTM from keras.utils import np_utils, generic_utils from keras.callbacks import ModelCheckpoint, RemoteMonitor ...
45.679104
180
0.772913
74dfd77cbe29eefd40b96a7049cbeebec3809ed0
63
py
Python
instance/config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
instance/config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
instance/config.py
shureim/News-Highlights
371163656101b096b40f2f8c796dc27761803745
[ "MIT" ]
null
null
null
NEWS_API_KEY=b62306347a174207a25a5159d554386d SECRET_KEY=tarek
21
45
0.936508
74dfddb75c9c8ccda5894721c021e078b81910ce
3,743
py
Python
azure-devops/azext_devops/dev/team/arguments.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/dev/team/arguments.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/dev/team/arguments.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
63.440678
108
0.675661
74e0150bc883a82dd86bc7bc6fffec7be2ac38f5
4,540
py
Python
modoboa/core/forms.py
teicee/modoboa
e2492a08b0a7749fbebc3f161af17df20142d028
[ "ISC" ]
null
null
null
modoboa/core/forms.py
teicee/modoboa
e2492a08b0a7749fbebc3f161af17df20142d028
[ "ISC" ]
null
null
null
modoboa/core/forms.py
teicee/modoboa
e2492a08b0a7749fbebc3f161af17df20142d028
[ "ISC" ]
null
null
null
"""Core forms.""" from django import forms from django.contrib.auth import ( forms as auth_forms, get_user_model, password_validation ) from django.db.models import Q from django.utils.translation import ugettext as _, ugettext_lazy from modoboa.core.models import User from modoboa.parameters import tools as para...
35.46875
78
0.642952
74e02305c0d28ed2a24f05325e29b9e5e08e91c0
2,826
py
Python
retention_data_pipeline/models.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
1
2020-12-09T17:19:47.000Z
2020-12-09T17:19:47.000Z
retention_data_pipeline/models.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
retention_data_pipeline/models.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
from django.db import models QUARTER_CHOICES = ((1, "Winter"), (2, "Spring"), (3, "Summer"), (4, "Autumn")) class RawStudent(models.Model): CAMPUS_CHOICES = ((1, "Seattle"), (2, "Tacoma"), (3, "Bothell")) last_yr_enrolled = models.PositiveSmallIntegerField() last_qtr_enrolled = models.PositiveSmallIntege...
38.189189
86
0.724345
74e03447e0ccd081183f64b17c2d7a092de627a5
4,364
py
Python
tests/test_read_simple_R.py
fool65c/jupytext
4b55d2e6ccc995c04679de0863234c60c3741a69
[ "MIT" ]
1
2019-05-06T07:39:15.000Z
2019-05-06T07:39:15.000Z
tests/test_read_simple_R.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
tests/test_read_simple_R.py
royalosyin/jupytext
72aa6c4968da714323fbd7a7c548ee4b1274c946
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from testfixtures import compare import jupytext @pytest.mark.parametrize('ext', ['.r', '.R']) def test_read_simple_file(ext, rnb="""#' --- #' title: Simple file #' --- #' Here we have some text #' And below we have some R code f <- function(x) { x + 1 } h <- functio...
25.520468
78
0.602658
74e069d62b631946a57df557ee5f711358528446
2,171
py
Python
BagModules/bag_digital_ec/dff_ck2.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/bag_digital_ec/dff_ck2.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/bag_digital_ec/dff_ck2.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
2
2019-06-30T07:03:02.000Z
2020-01-07T04:55:21.000Z
# -*- coding: utf-8 -*- from typing import Dict, Any import os import pkg_resources from bag.design import Module yaml_file = pkg_resources.resource_filename(__name__, os.path.join('netlist_info', 'dff_ck2.yaml')) # noinspection PyPep8Naming class bag_digital_ec__dff_ck2(Module): """Module for library bag_di...
32.402985
99
0.563795
74e06bfda2c97f1b9c4bb2a072d5bad8f3aebf20
1,720
py
Python
tools/gen_mot16_label17.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
tools/gen_mot16_label17.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
tools/gen_mot16_label17.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
import os.path as osp import os import numpy as np import pdb # Modify here. # Note: Since we borrow detection results from MOT17 dataset, # we need to place MOT17 dataset under the same folder of MOT16 dataset, # e.g. /home/wangzd/datasets/MOT/MOT17 det = 'DPM' # 'DPM'/'FRCNN'/'SDP' split = 'train' # 'test'/'train' m...
33.72549
88
0.602326
74e06d77b963bbbcd9d77d448a3c2b81ff341059
15,908
py
Python
ArchNew/EDITING_composition_analysis_Thermo.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
2
2018-12-05T07:43:39.000Z
2018-12-05T07:43:42.000Z
ArchNew/EDITING_composition_analysis_Thermo.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
ArchNew/EDITING_composition_analysis_Thermo.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
import pandas as pd import os import subprocess as sub import re import sys from Bio import SeqUtils import matplotlib.pyplot as plt import numpy as np from scipy import stats path = "." # ['DbxRefs','Description','FeaturesNum','GenomicID','GenomicLen','GenomicName','Keywords','NucsPresent','Organism_des', # 'Source...
31.192157
212
0.651936
74e077ddc5f1293017a66bb6af41585b12d0b9f0
1,990
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_policy_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_policy_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2019_09_01/models/_policy_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.851852
102
0.674372
74e0956d05f70e0aec0243fea3aaa6c23b00a056
1,192
py
Python
alipay/aop/api/domain/District.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/domain/District.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/domain/District.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.constant.ParamConstants import * class District(object): def __init__(self): self._code = None self._name = None @property def code(self): return self._code @code.setter def code(self, value):...
21.285714
59
0.521812
74e0ad75d2875e5c3f8081339e38f5ad81b342ba
5,886
py
Python
docs/examples/advanced_find_bleboy_clone_advertise.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
docs/examples/advanced_find_bleboy_clone_advertise.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
docs/examples/advanced_find_bleboy_clone_advertise.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
from blesuite.connection_manager import BLEConnectionManager import blesuite.utils.gap_utils as gap_utils import bdaddr import gevent import time adapter = 0 timeout_seconds = 10 target_device_name = "BLEBoy" target_address = None target_address_type = None target_device_bledevice = None successful_scan = False with...
40.315068
121
0.675331
74e0ad7e0d78b4306801cd3e5edeab6198734d85
2,464
py
Python
google-cloud-sdk/lib/surface/service_registry/operations/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/service_registry/operations/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/service_registry/operations/list.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.686747
90
0.707792
74e0b8559d30d23a72e36407036dc4d448cdaf0b
4,966
py
Python
nonrad/tests/test_ccd.py
warcard/nonrad
702d54f449f6c6e6bf53abefe25845f2de0eab2e
[ "MIT" ]
21
2020-11-15T02:58:24.000Z
2022-03-30T05:39:56.000Z
nonrad/tests/test_ccd.py
yildirimbet/nonrad
5ef02f5d99939649f0e01383fb9e2ae6e86801cd
[ "MIT" ]
2
2020-12-10T19:53:25.000Z
2022-03-31T10:03:27.000Z
nonrad/tests/test_ccd.py
yildirimbet/nonrad
5ef02f5d99939649f0e01383fb9e2ae6e86801cd
[ "MIT" ]
15
2020-11-22T04:23:43.000Z
2022-03-19T03:31:20.000Z
# pylint: disable=C0114,C0115,C0116 import glob import unittest import warnings import numpy as np from pymatgen.core import Lattice, Structure from nonrad.ccd import (get_cc_structures, get_dQ, get_omega_from_PES, get_PES_from_vaspruns, get_Q_from_struct) from nonrad.nonrad import AMU2KG, AN...
46.411215
79
0.557994
74e1073adb1f21974efdd389be60b2c2623227fe
974
py
Python
leetcode_python/Greedy/boats-to-save-people.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Greedy/boats-to-save-people.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Greedy/boats-to-save-people.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/82806311 # IDEA : TWO POINTERS class Solution(object): def numRescueBoats(self, people, limit): """ :type people: List[int] :type limit: int :rtype: int """ people.sort() res = 0 hi, lo...
23.190476
61
0.465092
74e13410ded939d2a10840e5ef93a52b9ede6b38
397
py
Python
getIP.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
12
2015-04-30T10:57:28.000Z
2020-12-02T16:28:07.000Z
getIP.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
26
2015-05-05T18:41:33.000Z
2022-03-11T23:12:34.000Z
getIP.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
4
2015-05-04T14:14:29.000Z
2016-06-22T08:52:02.000Z
""" Module provides a function that finds the current user IP. """ from flask import request def getIP(): """ 'unknown' serves as a universal IP :D """ ip = request.headers.get('X-Real-IP') if ip is None: try: ip = request.headers.getlist("X-Forwarded-For")[0] except: ...
19.85
62
0.556675
74e136216c96f36d0007961c668502185378ae77
619
py
Python
Hackerrank/Algorithms/cat and mouse.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Hackerrank/Algorithms/cat and mouse.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
Hackerrank/Algorithms/cat and mouse.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the catAndMouse function below. def catAndMouse(x, y, z): a = abs(x-z) b = abs(y-z) if (a<b): return "Cat A" elif (a>b): return "Cat B" else: return "Mouse C" if __name__ == '__main_...
15.871795
47
0.518578
74e14efdbf2bbbefce0556b8f4b244014f640248
1,177
py
Python
cloudmesh_cmd3light/plugins/CommandsCommands.py
cloudmesh/cmd3light
48652c3557488b9871bce6d746497f48d5485659
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3light/plugins/CommandsCommands.py
cloudmesh/cmd3light
48652c3557488b9871bce6d746497f48d5485659
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3light/plugins/CommandsCommands.py
cloudmesh/cmd3light
48652c3557488b9871bce6d746497f48d5485659
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys from builtins import input from cloudmesh_cmd3light.command import command, Cmd3Command from cloudmesh_cmd3light.console import Console class CommandsCommands(Cmd3Command): topics = {"commands": "shell"} def __init__(self, context): self.co...
23.078431
71
0.57774
74e1513ad216569fd52a8093966facd49797cf79
2,035
py
Python
sensitive/wsd.py
merrickchoo/sensitive
31e9ff5cbae525e3479321cf5966e5442769cc24
[ "MIT" ]
null
null
null
sensitive/wsd.py
merrickchoo/sensitive
31e9ff5cbae525e3479321cf5966e5442769cc24
[ "MIT" ]
null
null
null
sensitive/wsd.py
merrickchoo/sensitive
31e9ff5cbae525e3479321cf5966e5442769cc24
[ "MIT" ]
null
null
null
import nltk from nltk.tokenize import word_tokenize from nltk.tag import pos_tag def pos2wn (pos): """Take PTB POS and return wordnet POS a, v, n, r, x or None 'don't tag' z becomes z FIXME: add language as an attribute """ if pos in "CC EX IN MD POS RP VAX TO".split(): return No...
26.089744
83
0.529238
74e15eb08cec0d525b1e5f95cc906b48a7f253c3
15,806
py
Python
in-develop/src/autobridge/HLSParser/vivado_hls/TopRTLParser.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
76
2020-12-30T05:47:35.000Z
2022-02-21T20:05:20.000Z
in-develop/src/autobridge/HLSParser/vivado_hls/TopRTLParser.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
16
2021-01-08T23:49:08.000Z
2022-03-28T22:08:31.000Z
in-develop/src/autobridge/HLSParser/vivado_hls/TopRTLParser.py
Blaok/AutoBridge
e296a6d5ffe96ddf7ee35bd239ce1cd4a41f3670
[ "MIT" ]
15
2021-03-02T05:56:58.000Z
2021-12-23T01:28:25.000Z
#! /usr/bin/python3.6 from collections import defaultdict from pyverilog.vparser.parser import parse as rtl_parse import pyverilog.vparser.ast as ast from pyverilog.ast_code_generator.codegen import ASTCodeGenerator import re import logging import math class TopRTLParser: fifo_dout_format = '([^ ]*[^_])_+dout' fi...
37.543943
122
0.682462
74e1686fddd8c392cc709c8c86d160505aefb962
10,905
py
Python
remo/profiles/admin.py
acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
1
2018-04-05T13:29:30.000Z
2018-04-05T13:29:30.000Z
remo/profiles/admin.py
acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
3
2021-03-20T05:31:34.000Z
2021-06-10T23:43:06.000Z
remo/profiles/admin.py
Acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
null
null
null
from socket import error as socket_error from django.conf.urls import patterns, url from django.contrib import admin, messages from django.contrib.admin import SimpleListFilter from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.core.urlresolvers import reverse from ...
33.045455
83
0.654287
74e1819f376a25147c64e9c23313200d098c99b0
24,284
py
Python
docx_microreader/translators/html/html_translators.py
DudaEugen/docx_microreader
cc524ff5233b0c074786f2a5c378ea542607359a
[ "MIT" ]
null
null
null
docx_microreader/translators/html/html_translators.py
DudaEugen/docx_microreader
cc524ff5233b0c074786f2a5c378ea542607359a
[ "MIT" ]
null
null
null
docx_microreader/translators/html/html_translators.py
DudaEugen/docx_microreader
cc524ff5233b0c074786f2a5c378ea542607359a
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple, Optional from .mixins import BorderedElementToHTMLMixin, ParagraphContainerMixin class TranslatorToHTML(ParagraphContainerMixin): def __init__(self): self.styles: Dict[str, str] = {} self.inner_html_wrapper_styles: Dict[str, str] = {} self.attributes: ...
36.849772
114
0.624321
74e18ea1c2ddde85f635dd7a07ffb2305bb7bb5e
1,852
py
Python
src/dispatch/alembic/versions/f011c050b9ba_.py
dmyers87/dispatch
78c4ba3bcf4f44cbaa1c6dd3597973e988fd3a77
[ "Apache-2.0" ]
1
2021-06-16T17:02:35.000Z
2021-06-16T17:02:35.000Z
src/dispatch/alembic/versions/f011c050b9ba_.py
dilbwagsingh/dispatch
ca7c9730dea64e196c6653321552d570dfdad069
[ "Apache-2.0" ]
null
null
null
src/dispatch/alembic/versions/f011c050b9ba_.py
dilbwagsingh/dispatch
ca7c9730dea64e196c6653321552d570dfdad069
[ "Apache-2.0" ]
null
null
null
"""Ensures we always have a tag type Revision ID: f011c050b9ba Revises: 3e5f024e72f4 Create Date: 2021-06-01 10:33:32.006080 """ from alembic import op import sqlalchemy as sa from datetime import datetime from sqlalchemy.orm import relationship, Session from sqlalchemy.ext.declarative import declarative_base, decl...
25.027027
85
0.721922
74e19b0e8a0230464e18d6acfb807c5f69cface6
396,598
py
Python
languages/de.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
languages/de.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
languages/de.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
{ "'Cancel' will indicate an asset log entry did not occur": "'Abbrechen' zeigt an, dass ein Asset Log Eintrag nicht eingetreten ist", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area...
58.348977
931
0.766411
74e1a2d3c99da246b9ff5f5c5b0ded651b984198
1,781
py
Python
django_cache_dependencies/tests/views.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
3
2017-08-08T20:06:56.000Z
2018-09-19T03:16:20.000Z
django_cache_dependencies/tests/views.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
1
2017-10-24T23:11:32.000Z
2017-10-24T23:11:32.000Z
django_cache_dependencies/tests/views.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
8
2017-10-24T07:43:56.000Z
2021-06-17T07:03:02.000Z
from __future__ import absolute_import, unicode_literals from uuid import uuid4 from django.http import HttpResponse from django.views.generic import View from django.utils.decorators import method_decorator from django_cache_dependencies.decorators import cache_page @cache_page(3600, tags=lambda request: ('tests.fi...
29.683333
88
0.663672
74e1a49a860ebff43615897dcde06b05c9b03950
7,382
py
Python
machine_learning/k_means_clust.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
machine_learning/k_means_clust.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
machine_learning/k_means_clust.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
32.519824
111
0.667841
74e1a94383d158ee711153ea083f8bbada87771c
312
py
Python
demo/blueprints.py
uk-gov-mirror/LandRegistry.hmlr-design-system
02f680224512b344d28d13b2821fd74687fa9d7f
[ "MIT" ]
6
2019-02-19T11:30:30.000Z
2022-02-22T12:10:25.000Z
demo/blueprints.py
uk-gov-mirror/LandRegistry.hmlr-design-system
02f680224512b344d28d13b2821fd74687fa9d7f
[ "MIT" ]
21
2019-02-19T14:09:22.000Z
2022-01-13T13:16:38.000Z
demo/blueprints.py
uk-gov-mirror/LandRegistry.hmlr-design-system
02f680224512b344d28d13b2821fd74687fa9d7f
[ "MIT" ]
6
2019-05-10T09:18:57.000Z
2021-04-15T14:12:11.000Z
# Import every blueprint file from demo.views import components, general def register_blueprints(app): """Adds all blueprint objects into the app.""" app.register_blueprint(general.general) app.register_blueprint(components.components) # All done! app.logger.info("Blueprints registered")
26
50
0.75
74e1dd6e70525b0842852bae20b9ef905eb6ddfc
1,758
py
Python
src/api/views/userView.py
0x6f736f646f/backend-blog-application
e2f5444def814776df5754aaf56e4d1eec9336d6
[ "MIT" ]
null
null
null
src/api/views/userView.py
0x6f736f646f/backend-blog-application
e2f5444def814776df5754aaf56e4d1eec9336d6
[ "MIT" ]
33
2020-04-20T23:15:59.000Z
2020-04-24T22:14:05.000Z
src/api/views/userView.py
0x6f736f646f/backend-blog-application
e2f5444def814776df5754aaf56e4d1eec9336d6
[ "MIT" ]
null
null
null
from api.helpers import response_builder from api.models.userModel import UserModel from flask import Blueprint, request from flask.views import MethodView user = Blueprint('user', __name__) class UserApi(MethodView): """ User resource """ def get(self): auth_header = request.headers.get('Au...
30.310345
69
0.498294
74e213cfd2b9901d4b9f8379e16c0e54a2381fc8
124
py
Python
opytimark/markers/__init__.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
3
2020-06-11T22:58:26.000Z
2021-03-15T20:12:29.000Z
opytimark/markers/__init__.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
1
2020-08-13T12:10:35.000Z
2020-08-17T14:30:45.000Z
opytimark/markers/__init__.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
null
null
null
"""A marker package for all common opytimark modules. It contains the logic of every implemented benchmarking function. """
24.8
55
0.790323
74e21c25f7b648c6dac9a09a931d5c6e2555395d
1,886
py
Python
model/op2l/op2l.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
model/op2l/op2l.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
model/op2l/op2l.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
# -------------------------------------------------------- # Visual Detection: State-of-the-Art # Copyright: Hanbo Zhang # Licensed under The MIT License [see LICENSE for details] # Written by Hanbo Zhang # -------------------------------------------------------- from __future__ import absolute_import import torch.nn...
41
118
0.663309
74e263094662e3e28ae1c0a26f398bb4b512b9e5
17,602
py
Python
pygsti/modelmembers/states/__init__.py
maij/pyGSTi
70e83e05fa689f53550feb3914c4fac40ca4a943
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
pygsti/modelmembers/states/__init__.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
pygsti/modelmembers/states/__init__.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
""" Sub-package holding model state preparation objects. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Gov...
42.211031
120
0.624247
74e28025ad4ae674d81d1058ba58e57fffa07e14
1,386
py
Python
orchid/measurement.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/measurement.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/measurement.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# # This file is part of Orchid and related technologies. # # Copyright (c) 2017-2022 Reveal Energy Services. All Rights Reserved. # # LEGAL NOTICE: # Orchid contains trade secrets and otherwise confidential information # owned by Reveal Energy Services. Access to and use of this information is # strictly limited and...
38.5
111
0.781385
74e29c3f8bd36d36e58c3ebcf390e809bfa32bc8
6,183
py
Python
earhart/physicalpositions.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
earhart/physicalpositions.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
earhart/physicalpositions.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
""" Tools for working in XYZ, UVW, and Δμ_δ, Δμ_α' [km/s] coordinates. Contents: append_physicalpositions: (α,δ,π,μ_α,μ_δ)->(X,Y,Z,v*_tang). given_gaia_df_get_icrs_arr: DataFrame -> SkyCoord conversion calc_dist: between two 3d cartesian points. """ import numpy as np from numpy import array as nparr impo...
32.888298
89
0.599062
74e2e0b44929a18ffc6abb2eb33864325d32c870
493
py
Python
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
"""circles admin.""" #Django from django.contrib import admin # Models from cride.circles.models import Circle @admin.register(Circle) class CircleAdmin(admin.ModelAdmin): """Circle admin.""" list_display = ( "slug_name", "name", "is_public", "verified", "is_limited", ...
20.541667
41
0.559838
74e2e9180bb6bc2cad3c23eb5ff1c61842166925
448
py
Python
portals/wwits/groups/certification/update_skills/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/certification/update_skills/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/certification/update_skills/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass from portals.wwits.mixins import WWITSBaseMixin @dataclass class ParmModel(WWITSBaseMixin): Version: str UserID: str Env: str Session: int Source: str RecType: str Mode: str SkillCode: str SkillDesc: str Category: str InceptionDate: str ...
16.592593
47
0.691964
74e2f576258453e4285416769311c5da6a20456f
749
py
Python
setup.py
dogpandacat/python-ipmi
f08f6d31c1e4602bc48656486f5c6948d768b7f1
[ "Apache-2.0" ]
1
2021-03-09T06:19:49.000Z
2021-03-09T06:19:49.000Z
setup.py
dogpandacat/python-ipmi
f08f6d31c1e4602bc48656486f5c6948d768b7f1
[ "Apache-2.0" ]
null
null
null
setup.py
dogpandacat/python-ipmi
f08f6d31c1e4602bc48656486f5c6948d768b7f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # 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 # # Unle...
34.045455
69
0.738318
74e31801b72f250d0a6f08e689fe37166919a249
10,559
py
Python
mmdet3d/datasets/custom_3d.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
12
2021-03-17T09:07:18.000Z
2022-01-21T01:37:42.000Z
mmdet3d/datasets/custom_3d.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
1
2020-08-11T05:44:29.000Z
2020-08-11T05:44:29.000Z
mmdet3d/datasets/custom_3d.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
2
2021-03-17T09:25:15.000Z
2021-04-22T09:15:58.000Z
import mmcv import numpy as np import tempfile from os import path as osp from torch.utils.data import Dataset from mmdet.datasets import DATASETS from ..core.bbox import get_box_type from .pipelines import Compose @DATASETS.register_module() class Custom3DDataset(Dataset): """Customized 3D dataset. This is...
34.394137
78
0.576286
74e32c5254d9be26e768d2b8574720bbc6a34b2d
71,372
py
Python
lib/galaxy/webapps/galaxy/controllers/dataset.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/webapps/galaxy/controllers/dataset.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/webapps/galaxy/controllers/dataset.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import logging import os import urllib import json from markupsafe import escape import paste.httpexceptions from six import string_types, text_type from sqlalchemy import false, true from galaxy import datatypes, model, util, web from galaxy import managers from galaxy.datatypes.display_applications.util import deco...
54.234043
254
0.589573
74e32d88cbc52544df016468c880c465ff787e25
537
py
Python
django_comments_xtd/demos/multiple/projects/urls.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/demos/multiple/projects/urls.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/demos/multiple/projects/urls.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import patterns, url from django.views.generic import ListView, DateDetailView, DetailView from multiple.projects import views urlpatterns = patterns('', url(r'^$', views.ProjectsView.as_view(), name='projects-index'), url(r'^(?P<slug>[-\w]+)/$', views.Project...
26.85
69
0.633147
74e33d70ea7327059b054a887f8be847daa1573e
736
py
Python
autox/autox_competition/file_io/read_data.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
499
2021-07-27T02:57:58.000Z
2022-03-28T12:08:27.000Z
autox/autox_competition/file_io/read_data.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
9
2021-08-03T15:14:56.000Z
2022-03-11T07:06:06.000Z
autox/autox_competition/file_io/read_data.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
87
2021-07-27T01:13:02.000Z
2022-03-29T02:14:09.000Z
import pandas as pd import os import warnings warnings.filterwarnings('ignore') from autox.autox_competition.util import log, reduce_mem_usage def read_data_from_path(path, train_name, target, target_map, file_type='csv'): G_df_dict = {} files = os.listdir(path) files = [x for x in files if x.endswith('.' ...
32
79
0.630435
74e37d4601082383d2d6e74c329b2babf53ba721
4,041
py
Python
module/tests/views/test_login_view.py
antkrit/project
89172be482a640fe656c45a1c35ea1242cd98347
[ "MIT" ]
null
null
null
module/tests/views/test_login_view.py
antkrit/project
89172be482a640fe656c45a1c35ea1242cd98347
[ "MIT" ]
1
2021-05-20T18:15:46.000Z
2021-05-21T14:27:47.000Z
module/tests/views/test_login_view.py
antkrit/project
89172be482a640fe656c45a1c35ea1242cd98347
[ "MIT" ]
null
null
null
"""Testing route /""" from flask_wtf import FlaskForm from flask_login import current_user from module.tests import captured_templates, login_user, logout_user, init_app def test_login_view_access_and_render(init_app): """Make sure route '/' works and template with login form is rendered""" app = init_app ...
37.416667
100
0.64192
74e3a44070732d8d38146bdbf7f7133bc6df1049
3,417
py
Python
ics/serializers/todo_serializer.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
ics/serializers/todo_serializer.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
ics/serializers/todo_serializer.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from ics.grammar.parse import Container, ContentLine from ics.serializers.serializer import Serializer from ics.utils import (escape_string, serialize_datetime_to_contentline, serialize_duration, uid_gen) if TYPE_CHECKING: from ics.todo import Todo class TodoSerializer(Serialize...
38.829545
101
0.670179
74e3bf021069ef03c296dc9500c56187c4eac40f
738
py
Python
test/test_telegrambot.py
puumuki/tahmatassutelegrambot
6fb48cd196d57bb686504e38e3dbb08f617ec6cd
[ "MIT" ]
null
null
null
test/test_telegrambot.py
puumuki/tahmatassutelegrambot
6fb48cd196d57bb686504e38e3dbb08f617ec6cd
[ "MIT" ]
null
null
null
test/test_telegrambot.py
puumuki/tahmatassutelegrambot
6fb48cd196d57bb686504e38e3dbb08f617ec6cd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest from bot.tahmatassubot import TelegramBot from bot.telegrambot import TelegramBotException class TestTelegramBot(unittest.TestCase): def test_instantiating_wihtout_token(self): with self.assertRaises(TelegramBotException) as context: Telegr...
33.545455
109
0.743902
74e3d50ca5296550322b6e2590398bea775c8572
1,625
py
Python
test/test_client.py
Flywheel-Technologies/dynamics365crm-python
b1fe2818710e51d65203145ba86282d6e642de4b
[ "MIT" ]
null
null
null
test/test_client.py
Flywheel-Technologies/dynamics365crm-python
b1fe2818710e51d65203145ba86282d6e642de4b
[ "MIT" ]
null
null
null
test/test_client.py
Flywheel-Technologies/dynamics365crm-python
b1fe2818710e51d65203145ba86282d6e642de4b
[ "MIT" ]
null
null
null
import os from unittest import TestCase from urllib.parse import urlparse, parse_qs from dynamics365crm.client import Client class Dynamics365CRMTestCases(TestCase): def setUp(self): self.client_id = os.environ.get("CLIENT_ID") self.client_secret = os.environ.get("CLIENT_SECRET") self.toke...
34.574468
88
0.635692
74e40619b55ae30cebbe429472fb22f73933bcf2
418
py
Python
chirun/plastex/cancel/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
5
2021-12-06T15:57:24.000Z
2022-01-24T20:34:00.000Z
chirun/plastex/cancel/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
38
2021-12-09T13:16:46.000Z
2022-03-30T11:42:13.000Z
chirun/plastex/cancel/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
1
2022-01-17T17:41:35.000Z
2022-01-17T17:41:35.000Z
from plasTeX.PackageResource import (PackageTemplateDir) from plasTeX import Command, sourceArguments def ProcessOptions(options, document): tpl = PackageTemplateDir(renderers='html5', package='cancel') document.addPackageResource([tpl]) class cancel(Command): args = 'obj' @property def source(...
26.125
90
0.732057
74e43dcc4eae05922a9c13ac33106669b24f8942
126
py
Python
tests/configuration/config_model.py
NHSDigital/fhir-converter
02d3650dd328eb6ccd52b2fbabcc2b38e95625fc
[ "MIT" ]
null
null
null
tests/configuration/config_model.py
NHSDigital/fhir-converter
02d3650dd328eb6ccd52b2fbabcc2b38e95625fc
[ "MIT" ]
53
2021-09-22T09:34:31.000Z
2022-03-28T15:18:09.000Z
tests/configuration/config_model.py
NHSDigital/fhir-converter
02d3650dd328eb6ccd52b2fbabcc2b38e95625fc
[ "MIT" ]
null
null
null
from typing import NamedTuple class DefaultApp(NamedTuple): client_id: str client_secret: str callback_url: str
15.75
29
0.746032
74e44d97dc2cc4268d3eebf5822b8eb7e01becb9
719
py
Python
tools/cli.py
innovationOUtside/notebook_processing
7444235112c2c0677f0873db54f080138c78ad95
[ "MIT" ]
2
2020-02-12T06:34:03.000Z
2021-09-30T04:55:10.000Z
tools/cli.py
innovationOUtside/notebook_processing
7444235112c2c0677f0873db54f080138c78ad95
[ "MIT" ]
8
2020-07-04T21:35:31.000Z
2022-01-10T17:13:40.000Z
tools/cli.py
innovationOUtside/notebook_processing
7444235112c2c0677f0873db54f080138c78ad95
[ "MIT" ]
null
null
null
import click import tools.imagetable as imagetable @click.command() @click.argument('path', default='.', type=click.Path(exists=True)) @click.option('--out_file', '-o', default='gallery.md', help='Gallery filename') @click.option('--out_table_type', '-t', default='github', help='Output table type') def imagetable_ge...
47.933333
84
0.717663
74e45d0cf8fe07b53ff00bfa05c5cd6ad9187b21
9,750
py
Python
geomloss/examples/brain_tractograms/tract_io.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
null
null
null
geomloss/examples/brain_tractograms/tract_io.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
1
2021-07-15T12:43:21.000Z
2021-07-15T12:43:21.000Z
geomloss/examples/brain_tractograms/tract_io.py
ismedina/geomloss
bbd6289a139174effedb6855e1e992eb77772c67
[ "MIT" ]
null
null
null
""" Input-Output with brain tractograms ========================================== """ import argparse import os.path import sys import pdb import numpy as np from dipy.tracking.streamline import set_number_of_points import vtk from vtk.util import numpy_support as ns try: # Python 2 from itertools import ...
29.816514
86
0.627897
74e4cbb524a84ead80f8e76552c83334b76565c6
2,851
py
Python
flute/urls.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
flute/urls.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
4
2019-03-18T20:11:30.000Z
2019-03-18T20:11:59.000Z
flute/urls.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'analysis.views.home', name='home'), url(r'^login/$', 'analysis.views.login_user', name='login_user'), url(r'^ambitus/$', 'analysis.views.show_ambitus', name='amb...
75.026316
129
0.726061
74e4cd4405e7ab74c0e25e4c6eb191652827f650
1,092
py
Python
tests/_animation/test_animation_scale_x_from_center_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_animation/test_animation_scale_x_from_center_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_animation/test_animation_scale_x_from_center_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._display.scale_x_from_center_interface import \ ScaleXFromCenterInterface from tests.testing_helper import assert_attrs class TestAnimationScaleXFromCenterInterface: @retry(stop_max_attempt_number=15, wait_fixed...
35.225806
75
0.649267
74e4dc4c05c3784f0033d6425131b81963f9a7a2
1,032
py
Python
python/tree/0783_minimum_distance_between_bst_nodes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0783_minimum_distance_between_bst_nodes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0783_minimum_distance_between_bst_nodes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def minDiffInBST(self, root): """ :type root: TreeNode :rtype: int """ if not root: ...
22.434783
51
0.502907
74e4f188be1cf1b62283643cb900e4b651cbcc0c
2,522
py
Python
samples/core/volume_snapshot_ops/volume_snapshot_ops.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
samples/core/volume_snapshot_ops/volume_snapshot_ops.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
samples/core/volume_snapshot_ops/volume_snapshot_ops.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2019 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
29.670588
85
0.617764
74e50d8d0a4490a401a5234385e649cceee13a36
3,717
py
Python
LDU_utils.py
ankuPRK/LDU_Factorization
08e1144fd0af01b7aac5e7c6c9c5bc8c18da3e72
[ "MIT" ]
null
null
null
LDU_utils.py
ankuPRK/LDU_Factorization
08e1144fd0af01b7aac5e7c6c9c5bc8c18da3e72
[ "MIT" ]
null
null
null
LDU_utils.py
ankuPRK/LDU_Factorization
08e1144fd0af01b7aac5e7c6c9c5bc8c18da3e72
[ "MIT" ]
null
null
null
import numpy as np from math import cos, sin """ Swaps ith and jth rows of matrix A """ def swap_rows(A, i, j): ri = A[i].copy() A[i] = A[j] A[j] = ri return """ Swaps ith and jth columns of matrix A """ def swap_columns(A, i, j): ci = A[:,i].copy() A[:,i] = A[:,j] A[:,j] = ci return "...
29.267717
123
0.594835
74e50e9a1056a80cf74d5d2f867c002634e78229
11,914
py
Python
theano_models/SdA/test_pretrain_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/test_pretrain_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/SdA/test_pretrain_SdA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
import numpy import cPickle import theano import theano.tensor as T from mlp.logistic_sgd import LogisticRegression from dA.AutoEncoder import AutoEncoder from SdA import SdA from numpy.linalg import norm from theano.tensor.shared_randomstreams import RandomStreams from extract_datasets import extract_unlabeled_chu...
42.55
135
0.627665
74e52490c1de5ba3f0e24116057c14406e0c6295
33,066
py
Python
pkgcore/util/commandline.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/util/commandline.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/util/commandline.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2009-2011 Brian Harring <ferringb@gmail.com> # Copyright: 2006 Marien Zwart <marienz@gentoo.org> # License: BSD/GPL2 """Utilities for writing commandline utilities. pkgcore scripts should use the :obj:`OptionParser` subclass here for a consistent commandline "look and feel" (and it tries to make life a ...
35.863341
106
0.619246
74e53abe7658aee39a870268b65e05a48b26765c
2,361
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_layer.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_layer.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/invoke_with_layer.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.269231
103
0.609488
74e53b06d627330e09aed619749d441674fd4fcb
3,238
py
Python
legal-api/tests/unit/api/test_business_filings/test_filing_alteration.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
legal-api/tests/unit/api/test_business_filings/test_filing_alteration.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
legal-api/tests/unit/api/test_business_filings/test_filing_alteration.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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...
41.512821
103
0.736566
74e5709982d84eb022367b519a59606384fd9726
12,988
py
Python
rllib/agents/ppo/ddppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/ddppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/ddppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
""" Decentralized Distributed PPO (DD-PPO) ====================================== Unlike APPO or PPO, learning is no longer done centralized in the trainer process. Instead, gradients are computed remotely on each rollout worker and all-reduced to sync them at each mini-batch. This allows each worker's GPU to be used ...
41.231746
87
0.644056
74e57648f3361ec31a1e69fdf31ac87a3f5578fb
191
py
Python
src/gifts/tests/__init__.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
1
2016-08-29T17:34:01.000Z
2016-08-29T17:34:01.000Z
src/gifts/tests/__init__.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
null
null
null
src/gifts/tests/__init__.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
null
null
null
''' gaia: tests module. Meant for use with py.test. Organize tests into files, each named xxx_test.py Read more here: http://pytest.org/ Copyright 2016, Thomas Latzko Licensed under MIT '''
19.1
49
0.748691
74e57ddf6815f4581e3dba7dfc5f533cc82e00c2
2,178
py
Python
cloudmesh_cmd3/plugins/cm_shell_status.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3/plugins/cm_shell_status.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_cmd3/plugins/cm_shell_status.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from cmd3.shell import command from cloudmesh_base.logger import LOGGER from pprint import pprint from cloudmesh.cm_mongo import cm_mongo_status # from cloudmesh_common.tables import two_column_table log = LOGGER(__file__) class cm_shell_status: def activate_cm_shell_status...
26.888889
74
0.566116
74e590fe10325c3e48501586b0e89c15fc01981b
7,637
py
Python
userbot/modules/system_stats.py
adolf1408/NightCore
6edd49a1ce623710aef914cad0ac591ad27334ff
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
adolf1408/NightCore
6edd49a1ce623710aef914cad0ac591ad27334ff
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
adolf1408/NightCore
6edd49a1ce623710aef914cad0ac591ad27334ff
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-03-02T01:32:57.000Z
2021-03-02T01:32:57.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for getting information about the server. """ import time from asyncio import create_subprocess_exe...
34.400901
85
0.519707
74e59612cb343306e0af78c1d4c535458a5cebd4
515
py
Python
hw4/top_pages.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-01-05T14:27:20.000Z
2022-01-05T14:27:20.000Z
hw4/top_pages.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
hw4/top_pages.py
venamax/ucb-261
7df292668a971f49f8a099d38f899e9961432e7c
[ "MIT-0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from mrjob.job import MRJob import csv def csv_readline(line): for row in csv.reader([line]): return row class TopPages(MRJob): def mapper(self, line_no, line): record = csv_readline(line) page_visitor = ((record[1],record[4])) yield page_visitor, 1 def ...
24.52381
50
0.592233
74e59e80da4ddc30e5db1077648d501e0862c758
436
py
Python
abc/144/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/144/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/144/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, A, B = na() if (B - A) % 2 == 0: print((B - A) // 2) else: cnt = 0 if A - 1 >= N - B: cnt = N - B + 1 ...
18.166667
53
0.454128