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
1aaf19363244b370f5281eb37bdacbd1797a6f34
12,244
py
Python
JHMDB_dloader.py
Yuexiaoxi10/Keyframe-Proposal-Network
6a2fa667946bf6e3d7d5aa474174ca4638cde147
[ "MIT" ]
4
2020-04-12T09:20:00.000Z
2020-07-06T08:13:42.000Z
JHMDB_dloader.py
Yuexiaoxi10/K-FPN-Old-project
6a2fa667946bf6e3d7d5aa474174ca4638cde147
[ "MIT" ]
null
null
null
JHMDB_dloader.py
Yuexiaoxi10/K-FPN-Old-project
6a2fa667946bf6e3d7d5aa474174ca4638cde147
[ "MIT" ]
1
2020-07-06T05:52:01.000Z
2020-07-06T05:52:01.000Z
import numpy as np import torch from PIL import Image from torchvision import transforms import torch.utils.data as data from torch.utils.data import DataLoader import numpy as np from h5py import File import os import scipy.io import statistics import random from six.moves import xrange import fnmatch # borrowed from...
39.369775
160
0.606991
1aaf585c17b3f7509128ab84cd47623dfb0e8f9a
3,080
py
Python
tests/long_running/db_disk_growth.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
tests/long_running/db_disk_growth.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
tests/long_running/db_disk_growth.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. # chroma-sampling is a commandline command. Use it to periodically sample # logs and disk usage for long periods of time. # Install by copying to...
33.478261
160
0.684416
1aaf9301956bd625028607baecd4371d7381b150
6,276
py
Python
division_detection/trainer.py
rueberger/division_detection
4d0181047c54315de3c67c2d52133084c441746e
[ "MIT" ]
3
2018-10-13T05:55:49.000Z
2020-06-26T13:06:48.000Z
division_detection/trainer.py
rueberger/division_detection
4d0181047c54315de3c67c2d52133084c441746e
[ "MIT" ]
2
2020-07-26T05:39:52.000Z
2021-04-16T06:21:29.000Z
division_detection/trainer.py
rueberger/division_detection
4d0181047c54315de3c67c2d52133084c441746e
[ "MIT" ]
1
2020-01-17T16:16:18.000Z
2020-01-17T16:16:18.000Z
""" This module contains methods for training the model """ import tensorflow as tf import os import json from warnings import warn from division_detection.model import build_model_mk2_full_res from division_detection.preprocessing import batch_generator from division_detection.vol_preprocessing import fetch_callbac...
34.108696
103
0.638305
1aafbe825e72abb0f6505efdd1b90b7bfe759837
4,261
py
Python
salt/spm/pkgfiles/local.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
salt/spm/pkgfiles/local.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
1
2015-09-02T12:49:48.000Z
2015-09-02T19:22:58.000Z
salt/spm/pkgfiles/local.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module allows SPM to use the local filesystem to install files for SPM. .. versionadded:: 2015.8.0 ''' from __future__ import absolute_import import os import os.path import logging import salt.syspaths # Get logging started log = logging.getLogger(__name__) def init(**kwargs): ...
30.876812
115
0.634123
1aafc549fe07ef16045fa3b101c0d0b6e3071a6c
962
py
Python
tests/support/pinspect_support_module_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
tests/support/pinspect_support_module_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
tests/support/pinspect_support_module_2.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# pinspect_support_module_2.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,W0212 def setter_enclosing_func(offset): """ Test function to see if property enclosures are detected """ def setter_closure_func(self, num): """ Actual closure function """...
25.315789
75
0.66632
1aafda29c24a729f18e31078295198684fc48f94
3,043
py
Python
utils/signal_and_noise_histograms_loglog_individual_pixel_spectrum_per_channel_after_integration.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
null
null
null
utils/signal_and_noise_histograms_loglog_individual_pixel_spectrum_per_channel_after_integration.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
1
2018-03-23T15:44:10.000Z
2018-03-23T15:44:10.000Z
utils/signal_and_noise_histograms_loglog_individual_pixel_spectrum_per_channel_after_integration.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
1
2018-10-02T08:34:53.000Z
2018-10-02T08:34:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Signal and noise histograms per channel import numpy as np import pandas as pd import os from os.path import expanduser import pywicta from pywicta.io import geometry_converter from pywicta.io.images import image_generator from pywicta.io.images import plot_ctapipe_i...
34.191011
142
0.648373
1aafde0bd1277600ad61025939575995b76c73a9
276
py
Python
rbc/thrift/__init__.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
21
2019-05-21T14:44:01.000Z
2021-12-09T21:48:36.000Z
rbc/thrift/__init__.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
349
2019-07-31T17:48:21.000Z
2022-03-31T06:57:52.000Z
rbc/thrift/__init__.py
krunalkharat/rbc
f3a4665bde03d2cef6521dcea030f22236435f79
[ "BSD-3-Clause" ]
10
2020-01-23T20:14:17.000Z
2022-02-08T20:43:08.000Z
from .server import Server # noqa: F401 from .client import Client # noqa: F401 from .dispatcher import Dispatcher # noqa: F401 from .types import Buffer, NDArray, Data # noqa: F401 from .utils import dispatchermethod # noqa: F401
39.428571
54
0.641304
1aafe8b1fd96f83b51ca9ffa2df8155709cf1c6e
9,203
py
Python
msl/qt/logger.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/logger.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/logger.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
""" A :class:`~QtWidgets.QWidget` to display :mod:`logging` messages. """ import random import logging import datetime from . import QtWidgets, QtGui, Qt, prompt, io class Logger(logging.Handler, QtWidgets.QWidget): def __init__(self, level=logging.INFO, fmt='%(asctime)s [%(lev...
38.345833
114
0.61317
1aaff68b1960deb72afd808773716602ee974139
3,559
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
48.094595
125
0.696544
1ab003a82bdef4f4dc9ea1d11dcc9c1dcf8a9086
22,452
py
Python
bigml/tests/test_40_local_from_file.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:38.000Z
2021-08-30T20:18:38.000Z
bigml/tests/test_40_local_from_file.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
null
null
null
bigml/tests/test_40_local_from_file.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:40.000Z
2021-08-30T20:18:40.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2018-2019 BigML # # 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 requi...
54.101205
226
0.62039
1ab05966a6bca27f4b1969565b4e379e81ef4a95
3,355
py
Python
DAE_Method/trajectory_viewer.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
6
2019-10-29T03:05:14.000Z
2022-03-18T05:14:25.000Z
DAE_Method/trajectory_viewer.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2022-03-11T03:49:34.000Z
2022-03-11T03:49:34.000Z
DAE_Method/trajectory_viewer.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2021-12-15T09:21:26.000Z
2021-12-15T09:21:26.000Z
""" This script is used to view all the trajectories, including augmented and abnormal ones. """ import matplotlib.pyplot as plt from scipy import ndimage from PIL import Image import os.path number_of_images = 400 background_image_path = 'background_image.png' overwrite_background_image = False # Ref.: https://sta...
32.892157
110
0.687332
1ab067e1d734ab5b1fcf1fd3d6d98288fc0e9ad9
27,985
py
Python
img_config.py
liujiyuan13/MvDOCC-code
1f2d4427dab9f90fbba1575621948f7acbdffddb
[ "MIT" ]
1
2021-05-18T01:29:20.000Z
2021-05-18T01:29:20.000Z
img_config.py
liujiyuan13/MvDOCC-code
1f2d4427dab9f90fbba1575621948f7acbdffddb
[ "MIT" ]
null
null
null
img_config.py
liujiyuan13/MvDOCC-code
1f2d4427dab9f90fbba1575621948f7acbdffddb
[ "MIT" ]
null
null
null
import numpy as np img_dataset_split = {'cifar10': [np.array([i for i in range(50000)]), np.array([i for i in range(50000, 60000)])], 'mnist': [np.array([i for i in range(60000)]), np.array([i for i in range(60000, 70000)])], 'fmnist': [np.array([i for i in range(60000)]), np.array([i for i in rang...
176.006289
441
0.588565
1ab08a97dd7c412d0d638732696e633ab60d1181
5,944
py
Python
evaluate_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
evaluate_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
1
2021-06-08T21:53:42.000Z
2021-06-08T21:53:42.000Z
evaluate_model.py
danmalowany/trains-model-zoo
2091100057afae9593b18ddcefd81b7d46724a96
[ "Apache-2.0" ]
null
null
null
import os from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from dataclasses import dataclass, field import torch from ignite.engine import Events from pathlib2 import Path from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from trains import Task, InputModel fr...
44.358209
118
0.71181
1ab095399162e79cd36749d6abea5e8889c68e8c
1,597
py
Python
src/buildstream/_scheduler/queues/pullqueue.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_scheduler/queues/pullqueue.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_scheduler/queues/pullqueue.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2016 Codethink Limited # # 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...
29.036364
75
0.703193
1ab0cbb2ddeacf13b4ec07fefb8a9178cf048043
1,177
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_KW.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_KW.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/region_KW.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. KW metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_KW = PhoneMetadata(id='KW', country_code=965, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[12569]\\d{6,7}', possible_length=(7...
107
334
0.625319
1ab0cd75cbaac355b51950e5cbb5e1155d753d9e
39,940
py
Python
kats/utils/backtesters.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/utils/backtesters.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/utils/backtesters.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ This file defines the BackTester classes for Kats. Kats supports multiple types of backtesters, including: - :class:`BackTesterSimple...
39.50544
88
0.625138
1ab0ec03f6888c3d2c42bea5eda6b2371ae93ee7
10,650
py
Python
nnef/physics/dynamics.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
2
2021-04-30T06:07:49.000Z
2021-06-30T06:47:00.000Z
nnef/physics/dynamics.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
nnef/physics/dynamics.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
import numpy as np from tqdm import tqdm import torch class DynamicsBase(): def __init__(self, energy_fn, protein, num_steps=100000, log_interval=10): self.energy_fn = energy_fn self.protein = protein self.int_scale = 0.1 * torch.tensor([[0.1, 1.0, 1.0]], device=protein.coords.device) ...
43.82716
124
0.618028
1ab105a35c6dae0783a8330b7001ba08bce98f10
2,758
py
Python
Tools/Scripts/webkitpy/common/system/systemhost.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/system/systemhost.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/system/systemhost.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2011 Google Inc. All rights reserved. # Copyright (C) 2019 Apple Inc. 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...
43.09375
111
0.746918
1ab15a6792a1f75666f675793ffd8e351819fd16
139
py
Python
tanacompendium/trials/apps.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/trials/apps.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
tanacompendium/trials/apps.py
nkoech/tanacompendium
b4fd81b23f2c8263735806765d93eb4a70be8aba
[ "MIT" ]
null
null
null
# from __future__ import unicode_literals # # from django.apps import AppConfig # # # class TrialsConfig(AppConfig): # name = 'trials'
17.375
41
0.726619
1ab171db4687479c1d4638b1589d4e9188f1c38e
23,438
py
Python
ResultsTableBuilder.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
ResultsTableBuilder.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
ResultsTableBuilder.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
from ResultTable import ResultTable from StatCalculator import compare_anova class ResultsTableBuilder: """ Builds the table objects from the table commands and sample data""" def __init__(self): pass def create_tables(self, table_commands, job): """ Builds an array of tables, one...
42.306859
134
0.496032
1ab18d962d25d6bf134e98e4c9aa30384b86889c
5,687
py
Python
imgsieve.py
branpx/imgsieve
7a963c0fc3a773030cf52a906fd9017dd818e2bd
[ "0BSD" ]
null
null
null
imgsieve.py
branpx/imgsieve
7a963c0fc3a773030cf52a906fd9017dd818e2bd
[ "0BSD" ]
null
null
null
imgsieve.py
branpx/imgsieve
7a963c0fc3a773030cf52a906fd9017dd818e2bd
[ "0BSD" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from argparse import ArgumentParser import os from functools import partial import imagehash from PIL import Image def find_images(directory, recursive=False): """Finds all images under the specified directory. Args: directory: The path t...
33.452941
79
0.616318
1ab1a1f170f8080d21c8a87b0f0c62365587fe09
25,617
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
41.721498
268
0.67666
1ab1c216c8a8d18593de87695d6ed70d392a299a
247
py
Python
programmers/kth_number.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
programmers/kth_number.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
programmers/kth_number.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
""" https://programmers.co.kr/learn/courses/30/lessons/42748?language=python3 """ def solution(array, commands): answer = [] for start, end, mid in commands: answer.append(sorted(array[start - 1:end])[mid - 1]) return answer
22.454545
73
0.659919
1ab1dd1fe961f79f8881fe68bc44f1d7c083ce4a
81,733
py
Python
tensorflow/python/ops/math_ops.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
1
2017-09-30T07:16:45.000Z
2017-09-30T07:16:45.000Z
tensorflow/python/ops/math_ops.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/math_ops.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.238308
80
0.656014
1ab1dd4fa94f930100bcdb02ce3008f7b6ff0dc1
1,649
py
Python
damast/docs/user_log.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
2
2021-12-22T17:01:02.000Z
2022-01-18T17:05:48.000Z
damast/docs/user_log.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
94
2021-12-22T11:21:57.000Z
2022-03-31T22:40:56.000Z
damast/docs/user_log.py
UniStuttgart-VISUS/damast
05ceb150e86227d81f0f4bb441af6d4f8bce65ee
[ "MIT" ]
1
2022-01-04T09:04:47.000Z
2022-01-04T09:04:47.000Z
import flask import json from ..authenticated_blueprint_preparator import AuthenticatedBlueprintPreparator from ..postgres_rest_api.decorators import rest_endpoint name = 'user-log' app = AuthenticatedBlueprintPreparator(name, __name__, template_folder='templates') @app.route('/log', role='admin') @rest_endpoint def ...
32.333333
102
0.624015
1ab207a9a0a13ad090dfded62b6ea6c7507c579f
1,307
py
Python
repos/spiketoolkit/spiketoolkit/preprocessing/whiten.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/preprocessing/whiten.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/preprocessing/whiten.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from .filterrecording import FilterRecording import numpy as np class WhitenRecording(FilterRecording): def __init__(self, *, recording): FilterRecording.__init__(self, recording=recording, chunk_size=1000) self._recording = recording self._whitening_matrix = self._compute_whitening_matrix...
34.394737
88
0.664881
1ab25aede965b8d69ff6211f373f85c23ccd06c9
1,760
py
Python
aiger_discrete/mdd.py
mvcisback/py-aiger-discrete
19ca1bc6914b99347b60cb47b14063abd432937d
[ "MIT" ]
null
null
null
aiger_discrete/mdd.py
mvcisback/py-aiger-discrete
19ca1bc6914b99347b60cb47b14063abd432937d
[ "MIT" ]
null
null
null
aiger_discrete/mdd.py
mvcisback/py-aiger-discrete
19ca1bc6914b99347b60cb47b14063abd432937d
[ "MIT" ]
null
null
null
"""Converters to and from multi-valued decision diagrams.""" from functools import reduce from typing import Optional import aiger_bv as BV import funcy as fn import mdd from aiger_bv.bundle import Bundle from aiger_discrete import Encoding, FiniteFunc def to_var(bdl: Bundle, encoding: Optional[Encoding]) -> mdd.V...
27.936508
78
0.680114
1ab28544c88194e5a2a48c6c9399aea2bc8198ae
2,211
py
Python
day03/solution2.py
evanbrumley/aoc2021
96e66be2a003eebc942c8cb2845925277bd28645
[ "MIT" ]
null
null
null
day03/solution2.py
evanbrumley/aoc2021
96e66be2a003eebc942c8cb2845925277bd28645
[ "MIT" ]
null
null
null
day03/solution2.py
evanbrumley/aoc2021
96e66be2a003eebc942c8cb2845925277bd28645
[ "MIT" ]
null
null
null
import statistics class DiagnosticReport: def __init__(self, report_content): self.report_content = report_content self.rows = self.parse_report_content() self.cols = list(map(list, zip(*self.rows))) self.width = len(self.rows[0]) self.height = len(self.cols[0]) def pa...
24.032609
74
0.586612
1ab2c2ae47e4afd6ac89e8b508bd65214bba128e
4,845
py
Python
neon/datasets/cifar10.py
zhenglab/neon
ba5b008a03001c2a2e38a1e688b4f265c6461539
[ "Apache-2.0" ]
3
2017-02-02T05:20:48.000Z
2021-07-07T16:50:41.000Z
neon/datasets/cifar10.py
tambetm/neon
1597082ad0bab59102f1ceb20feb08c5a0bf9d04
[ "Apache-2.0" ]
null
null
null
neon/datasets/cifar10.py
tambetm/neon
1597082ad0bab59102f1ceb20feb08c5a0bf9d04
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems 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.o...
37.55814
79
0.563467
1ab34c9b048ed1fdbb74edba77fba4d784ca9f9f
24,847
py
Python
rydehubsol/lib/python3.7/site-packages/httpie/input.py
phisyche/rydhubsolutions
50cd35c9f2f6530bcc19358beb6c91cda5287f4f
[ "MIT" ]
2
2019-04-30T22:09:42.000Z
2019-04-30T22:48:37.000Z
httpie/input.py
theruziev/httpie
fd44f1af93ce1d2c84f324b8474d2d075b5a7b13
[ "BSD-3-Clause" ]
1
2020-07-05T07:44:37.000Z
2020-07-05T07:44:37.000Z
httpie/input.py
theruziev/httpie
fd44f1af93ce1d2c84f324b8474d2d075b5a7b13
[ "BSD-3-Clause" ]
1
2020-07-05T07:37:39.000Z
2020-07-05T07:37:39.000Z
"""Parsing and processing of CLI input (args, auth credentials, files, stdin). """ import os import ssl import sys import re import errno import mimetypes import getpass from io import BytesIO from collections import namedtuple, Iterable, OrderedDict # noinspection PyCompatibility from argparse import ArgumentParser, ...
32.736495
79
0.567835
1ab3530889b224a3b88701a9053d54111ee8b275
20,059
py
Python
samples/carla/carla.py
zgxsin/semester-project
8d167a1717edfdbada956abfa3e2a54b252ac04c
[ "MIT" ]
null
null
null
samples/carla/carla.py
zgxsin/semester-project
8d167a1717edfdbada956abfa3e2a54b252ac04c
[ "MIT" ]
null
null
null
samples/carla/carla.py
zgxsin/semester-project
8d167a1717edfdbada956abfa3e2a54b252ac04c
[ "MIT" ]
null
null
null
""" Mask R-CNN Train on the combined CARLA dataset and real-world dataset Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Guoxiang Zhou ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for examples), ...
38.353728
107
0.577247
1ab359cb9d9329b3f439d630f6e10de64142dc7e
3,274
py
Python
helpers/stats.py
kemerelab/NeuroHMM
31874a924340d8946229375e9a676a694de495a6
[ "MIT" ]
2
2016-07-18T16:54:04.000Z
2018-03-24T05:10:35.000Z
helpers/stats.py
ckemere/SimulatedReplayStatistics
f9767ca0652b5d87f1e87a44b4aeb4b8626dfbb1
[ "MIT" ]
null
null
null
helpers/stats.py
ckemere/SimulatedReplayStatistics
f9767ca0652b5d87f1e87a44b4aeb4b8626dfbb1
[ "MIT" ]
null
null
null
"""stats.py -- helper functions for working with probabilities/statistics This software is licensed under the terms of the MIT License as follows: Copyright (c) 2013 Jessica B. Hamrick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
30.598131
73
0.636836
1ab361b15d89fb3a216c3bbb662742a778be381a
115
py
Python
ksksite/landingpage/views.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
ksksite/landingpage/views.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
ksksite/landingpage/views.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
from django.shortcuts import render def landing(request): return render(request, 'landingpage/landing.html')
19.166667
54
0.773913
1ab373dd070d6454a3f018f75ed2848698d2a919
1,473
py
Python
tools/map.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
tools/map.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
tools/map.py
gronchi/mpts
5e33e885b099a337c0cadc78840dd2c216a6d9df
[ "MIT" ]
null
null
null
import dd_20180130 import map_equ_20180130 import dd import numpy as np sf = dd_20180130.shotfile() eqm = map_equ_20180130.equ_map() nshot = 35759 eq_diag = 'EQH' status = eqm.Open(nshot, diag=eq_diag) # rho = eqm.rz2rho([2.135 - 0.007, 2.135 + 0.008, 2.135 - 0.02, 0.135 + 0.02], [0.155, 0.155, 0.155, 0.155], t_in=4...
35.926829
238
0.631365
1ab3933c8ca38d9c941f5dd66e8862f0f6a93d55
2,401
py
Python
demo/excel_web_usage.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
demo/excel_web_usage.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
demo/excel_web_usage.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: demo.excel_web_usage Rough version history: v1.0 Original version to use ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) MAIL: lkf20031988@163.com RCS: demo.excel_web_usage,v 1.0 ...
33.816901
123
0.578509
1ab3bb75b83752dd4f4a3deef9795478b0514d1f
45,340
py
Python
dnacentersdk/api/v1_3_1/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_3_1/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_3_1/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Non-Fabric Wireless API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, in...
38.985383
78
0.566806
1ab3cfc2387511750bd8b4e5ef4b574cdef407c7
7,324
py
Python
ThresholdScripts/parseErrorUtils_gold_tre.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
ThresholdScripts/parseErrorUtils_gold_tre.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
ThresholdScripts/parseErrorUtils_gold_tre.py
UFRGS-CAROL/radiation-benchmarks-parsers
a39844ed3ed511f4f2672bc2e0c7e6f920dc7f2b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import re # Returns an error item in dict form: {"positions" : listPosition, "values" : listValues} # Returns None if it is not possible to parse def parseErrLavaMD(errString, header): box = None m = re.match(".*boxes[\:-](\d+).*", header) if m: try: box = int(m....
37.948187
266
0.525806
1ab3dc2554c6c18db335d690b722191e02d37e47
44,610
py
Python
openpype/modules/default_modules/deadline/plugins/publish/submit_maya_deadline.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/deadline/plugins/publish/submit_maya_deadline.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/deadline/plugins/publish/submit_maya_deadline.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Submitting render job to Deadline. This module is taking care of submitting job from Maya to Deadline. It creates job and set correct environments. Its behavior is controlled by ``DEADLINE_REST_URL`` environment variable - pointing to Deadline Web Service and :data:`MayaSubmitDeadline.use_pu...
39.759358
119
0.553844
1ab3e782209967bd7a5841544249421afb13366c
809
py
Python
istio/tests/test_e2e.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
istio/tests/test_e2e.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
istio/tests/test_e2e.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import pytest from datadog_checks.istio import Istio from .common import ISTIOD_METRICS INTERMITTENT_METRICS = [ 'istio.mesh.request.count', 'istio.pilot.mcp_sink.recv_failures_total', 'istio.gall...
25.28125
72
0.73424
1ab3f70cfee39212df9898113170cba921377763
3,149
py
Python
examples/derivative_finder.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
3
2016-03-20T02:51:01.000Z
2020-05-30T20:25:46.000Z
examples/derivative_finder.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
null
null
null
examples/derivative_finder.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
1
2019-10-21T05:43:46.000Z
2019-10-21T05:43:46.000Z
"""Derivative Finder Example. This example demonstrates how a artificially intelligent agent can use `Hill Climbing` to find the domain point of a function `f` in which this functions' derivative is zero. Author: Lucas David -- <ld492@drexel.edu> License: MIT (c) 2016 """ import random import time import artifici...
25.395161
78
0.587806
1ab497f1bdacb8f7dfc43e0b982133b8af949235
7,540
py
Python
djstripe/models/webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
djstripe/models/webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
djstripe/models/webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
""" Module for dj-stripe Webhook models """ import json import warnings from traceback import format_exc import stripe from django.db import models from django.utils.datastructures import CaseInsensitiveMapping from django.utils.functional import cached_property from ..context_managers import stripe_temporary_api_ve...
33.660714
87
0.622944
1ab49b48d5b8b3c43f55bd2dfa4e59107d7e21dc
15,868
py
Python
tests/plugins/test_resolve_remote_source.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_resolve_remote_source.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_resolve_remote_source.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2019 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from textwrap import dedent import sys from flexmock import flexmock import pytest import atomic_reactor.utils.koji as koji_util from atomi...
33.196653
98
0.640156
1ab4a9d5d6afd3e10191a178decca5cc45d472e0
1,523
py
Python
tests/mock_plugins/get_attribute/tasks.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
1
2015-11-03T14:27:11.000Z
2015-11-03T14:27:11.000Z
tests/mock_plugins/get_attribute/tasks.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
2
2021-03-20T05:33:19.000Z
2021-03-26T00:38:21.000Z
tests/mock_plugins/get_attribute/tasks.py
acidburn0zzz/cloudify-manager
ee2224c52347f7461a95976179ab61aee74a49dd
[ "Apache-2.0" ]
1
2019-10-29T06:15:31.000Z
2019-10-29T06:15:31.000Z
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
31.729167
79
0.703217
1ab4ceba19286be308000057dffaea8b5842820e
2,877
py
Python
wsh/command_processor.py
pinntech/wsh
6243046eb90b193c2d203525c2712a7d7bc29e1f
[ "MIT" ]
null
null
null
wsh/command_processor.py
pinntech/wsh
6243046eb90b193c2d203525c2712a7d7bc29e1f
[ "MIT" ]
null
null
null
wsh/command_processor.py
pinntech/wsh
6243046eb90b193c2d203525c2712a7d7bc29e1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ :copyright: (c) 2018 Pinn Technologies, Inc. :license: All rights reserved """ __version__ = '0.1.0' from blinker import signal from enum import Enum, unique from prompt_toolkit.document import Document from prompt_toolkit.application.current import get_app @unique class Command(Enum): ...
34.25
81
0.589851
1ab4dadb8cd05cc9543152bff70743d2f464aa4c
4,929
py
Python
infinisdk/infinibox/link.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
infinisdk/infinibox/link.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
infinisdk/infinibox/link.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
from ..core.api.special_values import Autogenerate from ..core import Field from ..core.bindings import RelatedObjectBinding from ..core.exceptions import UnknownSystem from ..core.utils import DONT_CARE from .system_object import InfiniBoxObject from ..core.type_binder import TypeBinder class LinkBinder(TypeBinder): ...
44.809091
124
0.694664
1ab50277be9361db2d1d7a227281908e2d77dd29
11,909
py
Python
oscar/lib/python2.7/site-packages/waitress/tests/test_server.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/waitress/tests/test_server.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/waitress/tests/test_server.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import errno import socket import unittest dummy_app = object() class TestWSGIServer(unittest.TestCase): def _makeOne(self, application=dummy_app, host='127.0.0.1', port=0, _dispatcher=None, adj=None, map=None, _start=True, _sock=None, _server=None): from wait...
32.361413
81
0.598707
1ab52614dcf60f9dbb60cb8bbe20f59c1b4523fd
18,919
py
Python
tests/unit/utilities/test_attachments_api.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
8
2019-09-16T14:31:38.000Z
2022-02-03T21:26:04.000Z
tests/unit/utilities/test_attachments_api.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
12
2019-09-13T14:47:26.000Z
2022-01-10T11:24:52.000Z
tests/unit/utilities/test_attachments_api.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
4
2019-09-16T14:49:53.000Z
2022-02-02T15:42:01.000Z
from unittest import mock from hamcrest import equal_to, less_than, starts_with, calling, is_not, raises from tests.unit.unit_test_utils import * from uitestcore.utilities.datetime_handler import get_date_altered_by_days from uitestcore.utilities.attachments_api import * class MockResponse: def __init__(self, con...
50.857527
120
0.707596
1ab54a23ee9991ccaba56093d5b6e0cdc301b6c8
1,145
py
Python
app/templatetags/addstr.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/templatetags/addstr.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/templatetags/addstr.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter(name='addstr') def addstr(arg1, arg2): """ concatenate arg1 & arg2 Ici, la seconde réponse explique que si on concatène en utilisant le filtre de base "add", alors il ne passe pas par str() mais convertit la totale en enti...
28.625
80
0.650655
1ab552352d7d9bab66a34f2e33c4bab17ddcecb3
6,724
py
Python
OpinosisSummarization.py
KG16/Abstractive_Summarization
afb5887962b25c6eab846aa526fb300796e1b5bf
[ "MIT" ]
null
null
null
OpinosisSummarization.py
KG16/Abstractive_Summarization
afb5887962b25c6eab846aa526fb300796e1b5bf
[ "MIT" ]
null
null
null
OpinosisSummarization.py
KG16/Abstractive_Summarization
afb5887962b25c6eab846aa526fb300796e1b5bf
[ "MIT" ]
1
2018-03-20T08:43:10.000Z
2018-03-20T08:43:10.000Z
import math import os import re from operator import itemgetter import networkx as nx import pylab as plt from numpy import random import GlobVars import PruneSimilarSentences graph_helper = dict() G = nx.DiGraph() flag = 0 def create_graph(lines_list, file): global G global graph_helper no_sentences =...
34.13198
114
0.595479
1ab56577e9abac38993e76a1ade534851a3192b9
1,322
py
Python
utils/read_balfile.py
joeaortiz/gbp
5670a498950bfa948da502b2381899ab46f61021
[ "MIT" ]
50
2020-03-10T08:49:45.000Z
2022-03-24T01:50:24.000Z
utils/read_balfile.py
joeaortiz/gbp
5670a498950bfa948da502b2381899ab46f61021
[ "MIT" ]
1
2022-03-21T02:36:36.000Z
2022-03-21T03:03:38.000Z
utils/read_balfile.py
joeaortiz/gbp
5670a498950bfa948da502b2381899ab46f61021
[ "MIT" ]
11
2020-04-24T16:29:48.000Z
2022-03-09T07:39:30.000Z
import numpy as np def read_balfile(balfile): with open(balfile, 'r') as f: while True: line = f.readline() if len(line.split()) != 0: if line.split()[0] != '#': break n_keyframes, n_points, n_edges = [int(x) for x in line.split()] ...
34.789474
120
0.554463
1ab56efb750035035bea82f576e31ef61566918d
907
py
Python
somaticseq/vcfModifier/complex2indel.py
bioinform/somaticseq
71f058dcdfea78ec056aa46f96a40cc737cc559f
[ "BSD-2-Clause" ]
159
2015-07-26T15:14:44.000Z
2022-03-31T03:29:25.000Z
vcfModifier/complex2indel.py
ccgenomics/somaticseq
74505690ae0f35ccbe117a1440aa6b350a8b5c03
[ "BSD-2-Clause" ]
77
2016-06-12T21:44:43.000Z
2022-03-31T19:33:49.000Z
vcfModifier/complex2indel.py
ccgenomics/somaticseq
74505690ae0f35ccbe117a1440aa6b350a8b5c03
[ "BSD-2-Clause" ]
64
2015-10-26T01:34:32.000Z
2022-03-14T14:43:08.000Z
#!/usr/bin/env python3 def translate(refbase, altbase): offset = 0 if len(refbase) == len(altbase): return False elif len(refbase) == 1 or len(altbase) == 1: return ( (refbase, altbase), offset ) else: for base_i, base_j in zip(refbase[::-1], altbase[::-...
26.676471
78
0.491731
1ab570ca0f5b5617166557b0920d33c5e46dca26
176
py
Python
setup.py
beckjake/linthint
b2f23230bb746425eb8bb47f13c19c9647846ab0
[ "MIT" ]
null
null
null
setup.py
beckjake/linthint
b2f23230bb746425eb8bb47f13c19c9647846ab0
[ "MIT" ]
null
null
null
setup.py
beckjake/linthint
b2f23230bb746425eb8bb47f13c19c9647846ab0
[ "MIT" ]
null
null
null
from setuptools import setup __version__ = '1.0' setup( name='linthints', version=__version__, install_requires=['pylint>=1.4.3'], py_modules=['linthints'] )
16
39
0.670455
1ab5865863c0dc4c68f2442d5d5aabebe7aee9dd
49,616
py
Python
tests/test_worker.py
infludb-inc/rq
f5ce159b60e426b229a0605c3b9c952e50e98aea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_worker.py
infludb-inc/rq
f5ce159b60e426b229a0605c3b9c952e50e98aea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_worker.py
infludb-inc/rq
f5ce159b60e426b229a0605c3b9c952e50e98aea
[ "BSD-2-Clause-FreeBSD" ]
2
2021-01-29T10:10:31.000Z
2021-08-14T13:51:15.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import json import os import psutil import shutil import signal import subprocess import sys import time import zlib from datetime import datetime, timedelta, timezone from multiprocess...
37.333333
119
0.632981
1ab5876c032164e02adfcf376966b7986c8a5ef1
28,969
py
Python
Tools/Scripts/webkitpy/port/test.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/port/test.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/port/test.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. 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 list of conditions and the ...
45.123053
230
0.699783
1ab5952d3b51ad7b4379a231eb0f51e17798723b
3,072
py
Python
tests/app/clients/test_aws_sns.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
tests/app/clients/test_aws_sns.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
tests/app/clients/test_aws_sns.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
import pytest from flask import current_app from app import aws_sns_client def test_send_sms_successful_returns_aws_sns_response(notify_api, mocker): boto_mock = mocker.patch.object(aws_sns_client, "_client", create=True) mocker.patch.object(aws_sns_client, "statsd_client", create=True) to = "6135555555...
32.336842
96
0.651042
1ab5ac1416f6a683f5f5e042a3ca14abe4dd61bc
2,408
py
Python
exercises/book-store/book_store_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/book-store/book_store_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/book-store/book_store_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
1
2021-12-29T19:26:23.000Z
2021-12-29T19:26:23.000Z
import unittest from book_store import calculate_total # Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.1 class BookStoreTests(unittest.TestCase): def test_only_a_single_book(self): self.assertAlmostEqual(calculate_total([1]), 8.00, places=2) ...
32.986301
78
0.5951
1ab5bb4eaa3ca4b0534e59ab00627d04c95290ac
267
py
Python
src/ggplib/util/init.py
richemslie/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
11
2019-03-02T13:49:07.000Z
2021-12-21T17:03:05.000Z
src/ggplib/util/init.py
ggplib/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
2
2019-05-15T18:23:50.000Z
2019-05-19T08:13:19.000Z
src/ggplib/util/init.py
ggplib/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
1
2020-04-02T17:35:35.000Z
2020-04-02T17:35:35.000Z
import ggplib.util.log _setup_once = False def setup_once(log_name_base="test"): from ggplib import interface global _setup_once if not _setup_once: interface.initialise_k273(1, log_name_base=log_name_base) ggplib.util.log.initialise()
22.25
65
0.737828
1ab5beef1861bed40e09309885bde63d3bdd6135
1,062
py
Python
slackchatbakery/utils/api_auth.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
slackchatbakery/utils/api_auth.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
9
2018-10-19T20:12:23.000Z
2021-06-08T19:30:27.000Z
slackchatbakery/utils/api_auth.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
from slackchatbakery.conf import settings from django.conf import settings as project_settings from django.contrib.auth.models import AnonymousUser from django.utils.decorators import method_decorator from rest_framework import authentication, exceptions class TokenAPIAuthentication(authentication.BaseAuthentication)...
36.62069
71
0.69209
1ab5d209158afa0bc0bf7ee3ed55f03de6859ef6
719
py
Python
fabfile/daemons.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
1
2017-04-15T01:48:27.000Z
2017-04-15T01:48:27.000Z
fabfile/daemons.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
153
2017-04-14T18:06:26.000Z
2017-06-02T13:08:09.000Z
fabfile/daemons.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
1
2021-02-18T11:15:52.000Z
2021-02-18T11:15:52.000Z
#!/usr/bin/env python # _*_ coding:utf-8 _*_ from time import sleep, time from fabric.api import execute, task import app_config import logging logging.basicConfig(format=app_config.LOG_FORMAT) logger = logging.getLogger(__name__) logger.setLevel(app_config.LOG_LEVEL) @task def main(run_once=False): """ Ma...
21.787879
69
0.663421
1ab5dda66b7bef673be8aee70f695aaad5cda6d0
801
py
Python
scripts/benchmark/utils/tx.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
scripts/benchmark/utils/tx.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
scripts/benchmark/utils/tx.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
from eth_typing import ( Address ) from eth.rlp.transactions import ( BaseTransaction ) from eth.vm.base import ( VM ) from eth_keys.datatypes import ( PrivateKey ) def new_transaction( vm: VM, from_: Address, to: Address, amount: int=0, private_key: PrivateKe...
22.25
82
0.651685
1ab60f937a6b9aef1aa67544ecf6153c68d00f55
2,966
py
Python
tests/validate_features.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
35
2016-03-02T06:32:16.000Z
2021-12-17T22:57:22.000Z
tests/validate_features.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
80
2015-12-30T21:55:57.000Z
2021-03-13T10:38:47.000Z
tests/validate_features.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
17
2016-02-19T09:25:39.000Z
2021-12-17T22:57:33.000Z
# -*- coding: utf-8 -*- """ Validate that the features calculations in open-worm-analysis-toolbox match those of the original Matlab codebase, by comparing calculated features with a saved copy of the file generated by the original Matlab code. To run this code files should be obtained from: https://drive.google.com/f...
34.091954
79
0.682738
1ab6154b83560d20d15c1133d240b0bb82ce3e69
14,694
py
Python
test_net.py
LeftThink/pytorch-lighthead
5f4bf1c87b9be77bf7242ad89900239a9d66914c
[ "MIT" ]
97
2018-08-17T10:33:30.000Z
2021-08-10T07:15:55.000Z
test_net.py
LeftThink/pytorch-lighthead
5f4bf1c87b9be77bf7242ad89900239a9d66914c
[ "MIT" ]
1
2019-11-19T09:00:03.000Z
2019-11-19T09:00:03.000Z
test_net.py
ZhuYun97/light-head-rcnn-shufflenet
49ca7f34ef22825ee316113bab279774835f07b3
[ "MIT" ]
25
2018-07-28T14:47:14.000Z
2021-12-03T09:48:52.000Z
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __...
38.770449
144
0.639309
1ab61c650a42778192e45751db738da3fec30957
442
py
Python
test/host_tests/basic_ht.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
test/host_tests/basic_ht.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
test/host_tests/basic_ht.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import unittest from htrun import get_plugin_caps class BasicHostTestsTestCase(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_get_plugin_caps(s...
17.68
71
0.680995
1ab625284049a4caa6c544d40dcbaae0e18fc333
7,286
py
Python
src/encoded/tests/test_upgrade_donor.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
null
null
null
src/encoded/tests/test_upgrade_donor.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
1
2018-12-14T18:00:30.000Z
2018-12-14T18:00:30.000Z
src/encoded/tests/test_upgrade_donor.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def human_donor(lab, award, organism): return { 'award': award['uuid'], 'lab': lab['uuid'], 'organism': organism['uuid'], } @pytest.fixture def mouse_donor_base(lab, award): return { 'award': award['uuid'], 'lab': lab['uuid'], ...
29.144
139
0.665935
1ab63ca50b30917d00f26ae48d9f70208274588c
35,760
py
Python
pytorch/test/onnx/test_utility_funs.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/onnx/test_utility_funs.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/onnx/test_utility_funs.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from test_pytorch_common import TestCase, run_tests import torch import torch.onnx from torch.onnx import utils, OperatorExportTypes, TrainingMode from torch.onnx.symbolic_helper import _set_opset_version, _set_operator_export_type impo...
42.021152
131
0.558949
1ab65ab3eaf0f121dc2f21da4eabf7198bab5ca7
38,639
py
Python
b_classifier.py
Mills33/RADiKal
a7a0802f47b7ef30b425631dc938f7b6719d438f
[ "MIT" ]
null
null
null
b_classifier.py
Mills33/RADiKal
a7a0802f47b7ef30b425631dc938f7b6719d438f
[ "MIT" ]
null
null
null
b_classifier.py
Mills33/RADiKal
a7a0802f47b7ef30b425631dc938f7b6719d438f
[ "MIT" ]
null
null
null
import re import weakref import random import sys sys.path.append("/hpc-home/ryanc/sdg/build/pysdg/pysdg") import pysdg import numpy as np import seaborn as sns import matplotlib.pyplot as plt import os class Classifier: """ The Classifier class is responsible for generating a forward strand and reverse strand ...
56.822059
332
0.644038
1ab66d7739ffbabd9a6911d8078b874e1a4d2619
20,529
py
Python
tests/api/api/test_utils.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
tests/api/api/test_utils.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
tests/api/api/test_utils.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
from http import HTTPStatus from deepdiff import DeepDiff from fastapi.testclient import TestClient from sqlalchemy.orm import Session import mlrun import mlrun.api.schemas from mlrun.api.api.utils import _generate_function_and_task_from_submit_run_body def test_generate_function_and_task_from_submit_run_body_body_...
35.827225
101
0.478153
1ab679a16968ccd4198de7500c1daefe7966a6c9
4,172
py
Python
scripts/helper.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/helper.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
scripts/helper.py
CurtisThompson/VDOT-Calculator
a4a8f7e0fa7ee3d9588fd8f111fc6b39a5f0f529
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def load_times(): """Load the VDOT to distance times from file.""" df = pd.read_csv('../data/vdot-times-jack-daniels-running-formula-2.csv') return df def load_paces(): """Load the VDOT to training paces from file.""" df = pd.read_csv('../data/vdot-paces-ja...
31.368421
94
0.598993
1ab67e799ffc128d753ac91d4f1c51e70d2b747b
2,396
py
Python
swim_pubsub/publisher/__init__.py
eurocontrol-swim/swim-pubsub
be46664c7ff919d6835ed005218841ea2ba39659
[ "BSD-3-Clause" ]
null
null
null
swim_pubsub/publisher/__init__.py
eurocontrol-swim/swim-pubsub
be46664c7ff919d6835ed005218841ea2ba39659
[ "BSD-3-Clause" ]
null
null
null
swim_pubsub/publisher/__init__.py
eurocontrol-swim/swim-pubsub
be46664c7ff919d6835ed005218841ea2ba39659
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2019 EUROCONTROL ========================================== Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions an...
49.916667
121
0.763773
1ab6b08018e482964e9e9bae4b3adaac38a03b40
3,558
py
Python
gaiadet/datasets/builder.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
149
2021-06-21T06:18:16.000Z
2022-03-23T08:55:23.000Z
gaiadet/datasets/builder.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
7
2021-07-11T07:52:58.000Z
2022-03-30T11:41:39.000Z
gaiadet/datasets/builder.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
13
2021-06-29T06:06:13.000Z
2022-02-28T01:31:17.000Z
# standard lib import copy import platform import random from functools import partial # 3rd party lib import numpy as np from torch.utils.data import DataLoader # mm lib from mmcv.parallel import collate from mmcv.runner import get_dist_info from mmcv.utils import Registry, build_from_cfg from mmdet.datasets import ...
37.452632
79
0.674255
1ab6b18794911c6edc1adca9a8e88f2636a525c4
500
py
Python
carehare/__init__.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
4
2021-06-16T12:45:42.000Z
2022-02-18T04:14:27.000Z
carehare/__init__.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
6
2021-05-14T13:30:08.000Z
2022-02-25T22:10:09.000Z
carehare/__init__.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
1
2022-01-14T13:42:51.000Z
2022-01-14T13:42:51.000Z
from ._connection import Connection, connect from ._exceptions import ( BadBytesFromServer, ChannelClosed, ChannelClosedByServer, ConnectionClosed, ConnectionClosedByHeartbeatMonitor, ConnectionClosedByServer, ServerSentNack, ) __all__ = [ "BadBytesFromServer", "ChannelClosed", ...
21.73913
44
0.726
1ab6d0cd3cfb1ca01cf5a75f47e00d64713ac2d1
1,920
py
Python
BrainQuake/Server_codes/server.py
FangCai-fifi/BrainQuake
014a7def60b33681713e098d595ab5afd5d5ade5
[ "Apache-2.0" ]
2
2022-02-18T06:47:18.000Z
2022-02-18T06:47:20.000Z
BrainQuake/Server_codes/server.py
FangCai-fifi/BrainQuake
014a7def60b33681713e098d595ab5afd5d5ade5
[ "Apache-2.0" ]
null
null
null
BrainQuake/Server_codes/server.py
FangCai-fifi/BrainQuake
014a7def60b33681713e098d595ab5afd5d5ade5
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3.7 # -- coding: utf-8 -- ** import sys import socket import os import multiprocessing import task_utils import utils_scs HEADERSIZE = 10 SEPARATOR = '<SEPARATOR>' BUFFER_SIZE = 4096 host = '0.0.0.0' port = 6669 FILEPATH = '/usr/local/freesurfer/subjects' FILEPATH1 = '/home/hello/reconModule_test/te...
32
97
0.605208
1ab70309bc136e8c2d2ec76fe85af67a45a1934e
1,469
py
Python
tests/scrapers/test_hashtag.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
1
2021-03-10T03:36:43.000Z
2021-03-10T03:36:43.000Z
tests/scrapers/test_hashtag.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
tests/scrapers/test_hashtag.py
fo0nikens/instascrape
699dd2169a96438d1d71bce5b1401fd5c5f0e531
[ "MIT" ]
null
null
null
import csv import json import pytest from instascrape import Hashtag class TestHashtag: @pytest.fixture def page_instance(self): kotlin_hashtag_name = "kotlin" kotlin_hashtag_url = f"https://www.instagram.com/tags/{kotlin_hashtag_name}/" kotlin_hashtag = Hashtag(kotlin_hashtag_url) ...
28.25
85
0.622192
1ab7536b4f3ed3009d6d5910cf5a9ba3e383940d
1,839
py
Python
jyzond/rpcconfig.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
4
2019-11-22T16:37:58.000Z
2020-11-08T12:28:14.000Z
jyzond/rpcconfig.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
null
null
null
jyzond/rpcconfig.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
null
null
null
""" Config file manager. """ import os.path as path from logging import getLogger __version__ = '0.0.1' app_log = getLogger("tornado.application") class Get: # "param_name":["type"] or "param_name"=["type","property_name"] vars = {"nyzoverifieripport": ["str"], "nyzopath": ["str"], "rpcuser": ["str"], "r...
32.839286
107
0.52311
1ab791362b394b5257f252f30e8c0b59b80710b5
269
py
Python
sciwing/api/conf.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/api/conf.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/api/conf.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
import pathlib import sciwing.constants as constants import os CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) PATHS = constants.PATHS OUTPUT_DIR = PATHS["OUTPUT_DIR"] PDF_STORE_LOCATION = pathlib.Path("/tmp/") BIN_FOLDER = pathlib.Path(CURRENT_DIR, "bin")
24.454545
57
0.784387
1ab79d363ad53ae0f6c24a449f3f2d36ee65f6a5
61
py
Python
riberry_web/__main__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
1
2020-09-01T15:34:52.000Z
2020-09-01T15:34:52.000Z
riberry_web/__main__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
riberry_web/__main__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
from . import app if __name__ == '__main__': app.main()
12.2
26
0.622951
1ab7ab234055042a6a244453cbd92ae54bef2886
16,224
py
Python
pyiron_atomistics/sphinx/interactive.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
14
2021-01-18T10:03:56.000Z
2022-03-01T20:59:35.000Z
pyiron_atomistics/sphinx/interactive.py
pyiron/pyiron_atomistics
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
569
2018-04-12T06:37:14.000Z
2022-03-31T18:06:27.000Z
pyiron_atomistics/sphinx/interactive.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
6
2018-10-23T09:48:48.000Z
2022-02-13T12:13:00.000Z
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. import numpy as np import os import scipy.constants import subprocess import warnings import time from pyiron_atomistics...
39.667482
112
0.615138
1ab7ba1850727ff979604129807db8206c2c6e3a
1,634
py
Python
chargebee/models/unbilled_charge.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
28
2015-09-16T01:52:44.000Z
2022-01-13T21:38:55.000Z
chargebee/models/unbilled_charge.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
45
2015-01-22T15:41:23.000Z
2022-03-31T11:12:49.000Z
chargebee/models/unbilled_charge.py
cloudtruth/chargebee-python
d72c45f0ff32170fd7d03fcfbc7c4f2b3a379324
[ "MIT" ]
23
2017-01-10T15:41:48.000Z
2022-03-21T14:16:54.000Z
import json from chargebee.model import Model from chargebee import request from chargebee import APIError class UnbilledCharge(Model): class Tier(Model): fields = ["starting_unit", "ending_unit", "quantity_used", "unit_amount", "starting_unit_in_decimal", "ending_unit_in_decimal", "quantity_used_in_decimal"...
45.388889
187
0.722154
1ab81865a35f8918e4dbaa072d983986907674a2
861
py
Python
src/utils/files_clean.py
cristinalunaj/WI-IAT20_PopularityModule
0a4894e2b889bf31ea1a8beab3025d5dd0b1ed47
[ "MIT" ]
null
null
null
src/utils/files_clean.py
cristinalunaj/WI-IAT20_PopularityModule
0a4894e2b889bf31ea1a8beab3025d5dd0b1ed47
[ "MIT" ]
null
null
null
src/utils/files_clean.py
cristinalunaj/WI-IAT20_PopularityModule
0a4894e2b889bf31ea1a8beab3025d5dd0b1ed47
[ "MIT" ]
null
null
null
from natsort import natsorted import unicodedata import pandas as pd def natural_string_sort(list2sort): return natsorted(list2sort, key=lambda y: y.lower()) # Definimos la función de CORRECCIÓN de TILDES y Ñs def strip_accents(s): """ Remove accents,ñ and other symbols Args: s (str): S...
31.888889
98
0.660859
1ab82a3774688a752ca0b26b959c7c5cbd219722
31,702
py
Python
canvas_course_site_wizard/controller.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
canvas_course_site_wizard/controller.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
5
2018-05-10T19:49:43.000Z
2021-01-29T19:39:34.000Z
canvas_course_site_wizard/controller.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
import logging from canvas_sdk.methods.courses import create_new_course, get_single_course_courses, update_course from canvas_sdk.methods.accounts import get_single_account, create_new_sub_account from canvas_sdk.methods.sections import create_course_section from canvas_sdk.methods.enrollments import enroll_user_secti...
49.534375
130
0.691029
1ab830edba5c17fe664cac5243b5ec5969eb0c06
1,270
py
Python
python_modules/libraries/dagster-twilio/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-twilio/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-twilio/setup.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from typing import Dict from setuptools import find_packages, setup def get_version() -> str: version: Dict[str, str] = {} with open("dagster_twilio/version.py") as fp: exec(fp.read(), version) # pylint: disable=W0122 return version["__version__"] if __name__ == "__main__": ver = get_vers...
33.421053
104
0.606299
1ab85f39117890dc54ff411e80f4af9f6dda6018
145
py
Python
esl/simulation/world.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
1
2020-04-17T18:18:08.000Z
2020-04-17T18:18:08.000Z
esl/simulation/world.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
null
null
null
esl/simulation/world.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
null
null
null
from esl.simulation.entity import Entity class World(Entity):#['World']): def __init__(self): super(World, self).__init__()
14.5
40
0.641379
1ab86889b58f8e73843729dcb6dbf3c2a0fa969c
10,964
py
Python
src/ggrc/fulltext/attributes.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/fulltext/attributes.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/fulltext/attributes.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ This module collect all custom full text attributes classes""" from collections import defaultdict import datetime from flask import g from ggrc.utils import date_parsers from ggrc.fulltext.mixin imp...
34.696203
79
0.702207
1ab895bbd67daec224fdb083418e3bfe43d7d369
56,075
py
Python
pytorch/tools/autograd/gen_variable_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/tools/autograd/gen_variable_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/tools/autograd/gen_variable_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
# Generates VariableType.h/cpp # # VariableType is a subclass of at::Type that provides the binding code # necessary to provide a differentiable version of ATen operators. There are a # number of different things we could mean: # # - Given a non-differentiable forward implementation, we might # directly associate...
44.153543
131
0.667338
1ab896299ebc62ba83eb58c7ae615e727df39f39
26,629
py
Python
dhutil/stac.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
1
2021-10-05T13:44:43.000Z
2021-10-05T13:44:43.000Z
dhutil/stac.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
null
null
null
dhutil/stac.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
1
2021-11-02T14:25:13.000Z
2021-11-02T14:25:13.000Z
# -*- coding: utf-8 -*- import numpy as np import scipy as sp import scipy.stats as st import itertools as it def binomial_sign_test(*args): """ Performs a binomial sign test for two dependent samples. Tests the hypothesis that the two dependent samples represent two different populations. ...
40.34697
179
0.609411
1ab899175996429106541bea296d9e0826f34027
4,477
py
Python
var/spack/repos/builtin/packages/pgi/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/pgi/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/pgi/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * from spack.util.prefix import Prefix import os class Pgi(Package): """PGI optimizing multi-core ...
43.466019
95
0.660487
1ab8a7934014b8be9d1ff8e0b149a9408912fffc
2,831
py
Python
tests/test_protocol.py
mrbrian/LSP
72ea25a57fe31eed1466a610ac59be9cac105793
[ "MIT" ]
null
null
null
tests/test_protocol.py
mrbrian/LSP
72ea25a57fe31eed1466a610ac59be9cac105793
[ "MIT" ]
null
null
null
tests/test_protocol.py
mrbrian/LSP
72ea25a57fe31eed1466a610ac59be9cac105793
[ "MIT" ]
null
null
null
from LSP.plugin.core.protocol import ( Point, Range, Diagnostic, DiagnosticSeverity, Request, Notification ) import unittest LSP_START_POSITION = {'line': 10, 'character': 4} LSP_END_POSITION = {'line': 11, 'character': 3} LSP_RANGE = {'start': LSP_START_POSITION, 'end': LSP_END_POSITION} LSP_MINIMAL_DIAGNOSTIC = ...
33.305882
71
0.67326
1ab8ae725058fe9d963d0365f26dee5c0492e45e
13,339
py
Python
db/QueryBuilder.py
refactoring-ai/Machine-Learning
908d35322a06a7b1709d83f731033a939a864c6b
[ "MIT" ]
5
2020-09-02T19:46:37.000Z
2021-04-21T15:41:11.000Z
db/QueryBuilder.py
refactoring-ai/Machine-Learning
908d35322a06a7b1709d83f731033a939a864c6b
[ "MIT" ]
16
2020-08-04T08:07:50.000Z
2021-03-23T08:15:30.000Z
db/QueryBuilder.py
refactoring-ai/Machine-Learning
908d35322a06a7b1709d83f731033a939a864c6b
[ "MIT" ]
1
2021-04-17T18:34:47.000Z
2021-04-17T18:34:47.000Z
from typing import Iterable from configs import FILE_TYPE, CLASS_METRICS_Fields, METHOD_METRICS_FIELDS, \ VARIABLE_METRICS_FIELDS, FIELD_METRICS_FIELDS, PROCESS_METRICS_FIELDS,\ COMMIT_METADATA_FIELDS, PROJECT_FIELDS, REFACTORING_COMMIT_FIELDS, \ STABLE_COMMIT_FIELDS, FileType # region database structure #...
39.937126
249
0.626209
1ab903d7d9017c51e02e19aeeeb4c02edb60471e
1,334
py
Python
mfvis/__main__.py
MaxWolf-01/Membership-function-visualization
f053992ea6df75f89bf3b5e876b1b70a96f52e98
[ "MIT" ]
1
2022-02-24T20:12:55.000Z
2022-02-24T20:12:55.000Z
mfvis/__main__.py
MaxWolf-01/Membership-function-visualization
f053992ea6df75f89bf3b5e876b1b70a96f52e98
[ "MIT" ]
null
null
null
mfvis/__main__.py
MaxWolf-01/Membership-function-visualization
f053992ea6df75f89bf3b5e876b1b70a96f52e98
[ "MIT" ]
null
null
null
from os import environ from mfvis.membership_functions import * def suppress_qt_warnings(): environ["QT_DEVICE_PIXEL_RATIO"] = "0" environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1" environ["QT_SCREEN_SCALE_FACTORS"] = "1" environ["QT_SCALE_FACTOR"] = "1" def main(): # cli with rich https://youtu.be/...
30.318182
96
0.597451
1ab90680f959caaee31785586dac2c0f483852ca
47,330
py
Python
util/data/gen/RPCRT4.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/RPCRT4.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/RPCRT4.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'CStdStubBuffer_AddRef', 'address': '0x7ffb3d3fbf50'}, {'type': 'function', 'name': 'CStdStubBuffer_Connect', 'address': '0x7ffb3d46bd70'}, {'type': 'function', 'name': 'CStdStubBuffer_CountRefs', 'address': '0x7ffb3d46bdd0'}, {'type': 'function', 'name': 'CStdStubBu...
23,665
47,317
0.696577
1ab906cd2fd007ebbb8550917fa399c875667acf
15,769
py
Python
pysweeper/_version.py
cpcloud/pysweeper
ea4768b9edc7106263879b5cbf7e80a33052b67d
[ "MIT" ]
null
null
null
pysweeper/_version.py
cpcloud/pysweeper
ea4768b9edc7106263879b5cbf7e80a33052b67d
[ "MIT" ]
null
null
null
pysweeper/_version.py
cpcloud/pysweeper
ea4768b9edc7106263879b5cbf7e80a33052b67d
[ "MIT" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
34.206074
79
0.588053
1ab90c2bd616e4773f8122e513688e17e3b3194c
1,573
py
Python
moderation/filterspecs.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
97
2015-03-21T02:18:39.000Z
2022-02-22T01:30:19.000Z
moderation/filterspecs.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
85
2015-05-05T05:22:23.000Z
2022-03-28T10:32:00.000Z
moderation/filterspecs.py
EnvSys/django-moderation
afa80926354bdc263d6d9214eb983000334d77e2
[ "BSD-3-Clause" ]
70
2015-04-13T07:29:32.000Z
2022-03-24T10:54:58.000Z
from django.contrib.admin.filters import FieldListFilter from django.contrib.contenttypes.models import ContentType from django.utils.encoding import smart_text from django.utils.translation import ugettext as _ from . import moderation def _registered_content_types(): "Return sorted content types for all regist...
35.75
73
0.666243
1ab935daadb1104be38f9ea8b63155d840477f0b
17
py
Python
tests/initial_test.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
12
2017-03-29T18:17:24.000Z
2020-03-19T05:28:56.000Z
tests/initial_test.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
7
2017-03-08T21:06:01.000Z
2017-06-21T19:01:58.000Z
tests/initial_test.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
5
2017-03-02T09:08:21.000Z
2019-10-26T05:37:39.000Z
import qtim_tools
17
17
0.941176
1ab9616c9cdfb42b7ed6a808ab2fe592b62c0b23
7,636
py
Python
model.py
shaileshkumpawat/SRGAN-PyTorch
666a6e2ad506f31564a196305643335435a6059d
[ "Apache-2.0" ]
1
2022-03-29T04:07:10.000Z
2022-03-29T04:07:10.000Z
model.py
shaileshkumpawat/SRGAN-PyTorch
666a6e2ad506f31564a196305643335435a6059d
[ "Apache-2.0" ]
null
null
null
model.py
shaileshkumpawat/SRGAN-PyTorch
666a6e2ad506f31564a196305643335435a6059d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Dakewe Biotech Corporation. 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.018868
141
0.567182
1ab9a4137b7e1ba23bf691e079039795774b6879
7,678
py
Python
backend/noise_engine.py
orgurar/recognotes
14ee22c3739fedbc993ce565bcdfe257aa6411ab
[ "MIT" ]
1
2022-01-18T15:58:49.000Z
2022-01-18T15:58:49.000Z
backend/noise_engine.py
orgurar/recognotes
14ee22c3739fedbc993ce565bcdfe257aa6411ab
[ "MIT" ]
null
null
null
backend/noise_engine.py
orgurar/recognotes
14ee22c3739fedbc993ce565bcdfe257aa6411ab
[ "MIT" ]
null
null
null
import numpy as np # import sounddevice as sd # import wave from scipy.io import wavfile import math SIGNAL_COEFFICIENT = 2 * np.pi FS_SAMPLE_RATE = 8192 # Recording default sampling rate, in Hz, must be integer # FUNCTION NOT IN USE! """def record_mic_audio(fs, filename='user_input.wav', chunk_size=1024, record...
32.67234
157
0.677781
1ab9c62a2af3d8dc7a553b7e65da6d632e27aeb9
9,034
py
Python
data_converter/settings_local.base.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
data_converter/settings_local.base.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
data_converter/settings_local.base.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
import os from celery.schedules import crontab # sentry import configarution import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.redis import RedisIntegration BASE_DIR = os.path.dirname(os.path.dirname...
31.477352
106
0.679212
1ab9cc45bc073735d27c4b6e3bb8199943de7927
4,817
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_groovy.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
9
2018-10-15T04:57:37.000Z
2021-12-07T07:39:35.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_groovy.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
13
2018-10-19T11:52:44.000Z
2021-09-08T00:39:30.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_groovy.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
3
2018-10-25T11:08:04.000Z
2021-02-23T08:28:31.000Z
############################################################################### # Name: groovy.py # # Purpose: Define Groovy syntax for highlighting and other features # # Author: Omar Gomez <omar.gomez@gmail.com> # ...
40.822034
81
0.614283
1ab9f615499cfd99b42fbabfbb5650368fa125e7
5,232
py
Python
lib/galaxy/webapps/tool_shed/model/migrate/versions/0016_add_do_not_test_tools_functionally_correct_errors_columns.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/tool_shed/model/migrate/versions/0016_add_do_not_test_tools_functionally_correct_errors_columns.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/tool_shed/model/migrate/versions/0016_add_do_not_test_tools_functionally_correct_errors_columns.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Migration script to add the tool_test_errors, do_not_test, tools_functionally_correct, and time_last_tested columns to the repository_metadata table. """ import logging import sys from sqlalchemy import Boolean, Column, DateTime, MetaData, Table # Need our custom types, but don't import anything else from model f...
52.32
149
0.737194
1aba40fec5c2a093b9d3ec1cccc0327b342939d5
3,146
py
Python
day18.py
FlorianGD/adventofcode_2018
cfe452b823b8d24a20857becf7974c448cd67f68
[ "MIT" ]
null
null
null
day18.py
FlorianGD/adventofcode_2018
cfe452b823b8d24a20857becf7974c448cd67f68
[ "MIT" ]
null
null
null
day18.py
FlorianGD/adventofcode_2018
cfe452b823b8d24a20857becf7974c448cd67f68
[ "MIT" ]
null
null
null
"""AoC 2018 Day 18: Settlers of The North Pole""" from collections import Counter # Part 1 class Land(): def __init__(self, input): land = dict() for y, line in enumerate(input.splitlines()): for x, elem in enumerate(line): land[(x, y)] = elem self.current_lan...
29.401869
78
0.526701
1aba4dee7aa5e522489f8ced5849138afce4ec00
22,132
py
Python
src/stonkgs/models/transestonkgs_finetuning.py
stonkgs/stonkgs
6fd093f45ec113caf8d2d546301937c06530ed50
[ "MIT" ]
24
2021-07-12T19:17:25.000Z
2022-03-24T16:22:21.000Z
src/stonkgs/models/transestonkgs_finetuning.py
stonkgs/stonkgs
6fd093f45ec113caf8d2d546301937c06530ed50
[ "MIT" ]
2
2021-08-16T15:53:32.000Z
2021-08-17T10:31:51.000Z
src/stonkgs/models/transestonkgs_finetuning.py
stonkgs/stonkgs
6fd093f45ec113caf8d2d546301937c06530ed50
[ "MIT" ]
3
2022-01-24T06:25:19.000Z
2022-03-28T11:35:47.000Z
# -*- coding: utf-8 -*- """Runs the STonKGs model on the fine-tuning classification task, assuming the model embeddings are pre-trained. Run with: python -m src.stonkgs.models.stonkgs_finetuning """ import logging import os from collections import Counter from typing import Dict, List, Optional import click import ...
37.639456
119
0.660672