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
33e460c53ca0fe50442508cb71d6e390ccd7f0c7
3,409
py
Python
app/api/v1/views/auth_endpoints.py
huudi001/Question-api-v1
9b98013ca3830645d6b27fb53e99a2d05e9807cb
[ "MIT" ]
null
null
null
app/api/v1/views/auth_endpoints.py
huudi001/Question-api-v1
9b98013ca3830645d6b27fb53e99a2d05e9807cb
[ "MIT" ]
null
null
null
app/api/v1/views/auth_endpoints.py
huudi001/Question-api-v1
9b98013ca3830645d6b27fb53e99a2d05e9807cb
[ "MIT" ]
null
null
null
import re from flask import Flask, request, jsonify, Blueprint, make_response from flask_jwt_extended import ( JWTManager, jwt_required, create_access_token, get_raw_jwt) from ..models import users from ..models.users import USERS_LIST from ..utils import _iterator auth = Blueprint('auth', __name__, url_prefix='/a...
32.778846
132
0.676738
33e464d6665d4261f6f235c1a48c0e67eb8a54fa
959
py
Python
kg/diff/exact.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
6
2019-11-30T17:03:13.000Z
2021-09-30T05:08:31.000Z
kg/diff/exact.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
1
2020-01-20T12:13:03.000Z
2020-01-20T12:13:03.000Z
kg/diff/exact.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
null
null
null
from itertools import zip_longest from kg.checkers import * ### @import def is_exactly_equal(seq1, seq2): return all(val1 == val2 for val1, val2 in zip_longest(seq1, seq2)) @set_checker() @default_score def check_exactly_equal(input_file, output_file, judge_file, **kwargs): output_lines = list(output_file) ...
34.25
122
0.619395
33e47d173deb1aa2b2743796893cc89b80b7b4d8
86,594
py
Python
old_projects/eoc/chapter1.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
old_projects/eoc/chapter1.py
elphasminyato/manim
8488b621ef3367e6a911354d2765684321fed20e
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
old_projects/eoc/chapter1.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
from big_ol_pile_of_manim_imports import * from old_projects.eoc.chapter2 import Car, MoveCar class CircleScene(PiCreatureScene): CONFIG = { "radius" : 1.5, "stroke_color" : WHITE, "fill_color" : BLUE_E, "fill_opacity" : 0.75, "radial_line_color" : MAROON_B, "outer_r...
30.838319
89
0.534379
33e480f8593db8883cf135bb7f03b4701fcb331e
22,252
py
Python
python/nano/src/bigdl/nano/pytorch/trainer/Trainer.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/pytorch/trainer/Trainer.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/pytorch/trainer/Trainer.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL 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 ...
49.448889
100
0.583723
33e481435cc6e86656d3c3b4f87e6efd4b7f0412
847
py
Python
rls/envs/make_env.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/envs/make_env.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/envs/make_env.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 from copy import deepcopy from easydict import EasyDict from rls.utils.logging_utils import get_logger logger = get_logger(__name__) def make_env(env_kargs: EasyDict): logger.info('Initialize environment begin...') copied_env_kargs = deepcopy(env_kargs) if en...
26.46875
57
0.70366
33e486d829c2ad2d6b0ba04e57ec3e50b709cf30
2,468
py
Python
src/inworldz/maestro/uuid.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
src/inworldz/maestro/uuid.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
src/inworldz/maestro/uuid.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope t...
34.760563
78
0.630875
33e4883105ba09643f7ebbe27a5bb7f8c2e21efd
12,848
py
Python
onmt/model_builder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
26
2019-03-29T07:52:43.000Z
2021-12-29T02:41:31.000Z
onmt/model_builder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
1
2020-02-15T10:31:58.000Z
2020-02-17T14:19:26.000Z
onmt/model_builder.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
5
2019-06-30T19:57:46.000Z
2021-04-01T07:56:53.000Z
""" This file is for models creation, which consults options and creates each encoder and decoder accordingly. """ import torch import torch.nn as nn from torch.nn.init import xavier_uniform_ import onmt.inputters as inputters import onmt.modules from onmt.encoders.rnn_encoder import RNNEncoder from onmt.encoders.gcn...
42.826667
88
0.595501
33e49d63110650fd76c72d04160ae8edf8fb349d
6,474
py
Python
imagenet_add_jobs.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
19
2018-07-27T04:46:32.000Z
2021-06-05T07:36:35.000Z
imagenet_add_jobs.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
1
2018-12-15T14:16:31.000Z
2018-12-19T07:46:27.000Z
imagenet_add_jobs.py
xyukiono/tf-tracking
408df350140f4a5eda3359070495c3218952e6f5
[ "MIT" ]
7
2018-09-04T12:49:43.000Z
2019-12-11T01:28:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import time import hashlib import numpy as np import glob from hyper_params import HyperParamsBase, ParamGenerator def is_cc(): # check server is compute canada hostname = os.uname()[1] is_cc = 'gra' in hostname or 'cedar' in hostname ...
33.371134
123
0.600247
33e4a048930d90cb4fba9f6ef023ea567eb664a6
762
py
Python
ufora/distributed/SharedState/Connections/ChannelFactory.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/distributed/SharedState/Connections/ChannelFactory.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/distributed/SharedState/Connections/ChannelFactory.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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 i...
38.1
76
0.728346
33e4a56d4a3a2d1479ca85aef57805fe22b77836
4,681
py
Python
examples/PlainPython/Simput/AddressBook/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/PlainPython/Simput/AddressBook/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/PlainPython/Simput/AddressBook/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
import os from trame import change, update_state, get_state from trame.layouts import SinglePageWithDrawer from trame.html import simput, vuetify from simput.core import ProxyManager, UIManager from simput.ui.web import VuetifyResolver # ----------------------------------------------------------------------------- # ...
27.374269
79
0.469985
33e4aea1f95fc44443a88bb9bdf7a1e74208bf97
4,010
py
Python
sdks/python/appcenter_sdk/models/CrashGroupLanguage.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/CrashGroupLanguage.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/CrashGroupLanguage.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class CrashGroupLang...
28.848921
89
0.589027
33e4b224666e68f143f7541dd7f96565a43b45f8
2,464
py
Python
ColorfulSoftlight.py
bluebossa63/softlight-iot
38217a376135e8287e0c0d37aa7617958efde366
[ "MIT" ]
null
null
null
ColorfulSoftlight.py
bluebossa63/softlight-iot
38217a376135e8287e0c0d37aa7617958efde366
[ "MIT" ]
null
null
null
ColorfulSoftlight.py
bluebossa63/softlight-iot
38217a376135e8287e0c0d37aa7617958efde366
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################# # Filename : Softlight.py # Description : Control RGBLED with Potentiometer # Author : www.freenove.com # modification: 2019/12/27 ######################################################################## import...
32
122
0.612013
33e4ba6f477e9abfc2d6f0175f26410b3f35d7bf
9,335
py
Python
electrumsv/gui/qt/dialogs.py
CherryDT/electrumsv
6b778b1c363e22286c3e3ef1bc5a2fa56955ac48
[ "MIT" ]
1
2021-12-28T10:52:11.000Z
2021-12-28T10:52:11.000Z
electrumsv/gui/qt/dialogs.py
SomberNight/electrumsv
28262e3cab7b73e4960466f8aee252975953acf8
[ "MIT" ]
null
null
null
electrumsv/gui/qt/dialogs.py
SomberNight/electrumsv
28262e3cab7b73e4960466f8aee252975953acf8
[ "MIT" ]
null
null
null
# ElectrumSV - lightweight Bitcoin SV client # Copyright (C) 2019 The ElectrumSV Developers # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitati...
39.555085
97
0.69759
33e4ecc638aa9bb9fe0066117aa77dbc090f837d
2,627
py
Python
ninfs/gui/setupwizard/nandctr.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
213
2019-04-18T04:43:18.000Z
2022-03-29T06:25:38.000Z
ninfs/gui/setupwizard/nandctr.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
55
2019-04-20T01:21:26.000Z
2022-03-26T02:40:17.000Z
ninfs/gui/setupwizard/nandctr.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
17
2019-05-11T22:15:31.000Z
2021-10-06T03:46:51.000Z
# This file is a part of ninfs. # # Copyright (c) 2017-2021 Ian Burgwin # This file is licensed under The MIT License (MIT). # You can find the full license text in LICENSE.md in the root of this project. import tkinter as tk from typing import TYPE_CHECKING from .base import WizardBase from .. import supportfiles i...
37.528571
119
0.661211
33e4faa434dcf0729c754a9de568f94c8412bbee
3,129
py
Python
experiments/configuration.py
LPD-EPFL/DifferentialByzantine
132d4feee305126c672b4f06198287daa615ec35
[ "MIT" ]
2
2021-10-18T02:56:19.000Z
2021-11-13T02:31:15.000Z
experiments/configuration.py
IKACE/DifferentialByzantine-1
809fd6e070fedeb87a6dbff6f883e93e3c5c8e09
[ "MIT" ]
null
null
null
experiments/configuration.py
IKACE/DifferentialByzantine-1
809fd6e070fedeb87a6dbff6f883e93e3c5c8e09
[ "MIT" ]
1
2021-12-04T21:58:48.000Z
2021-12-04T21:58:48.000Z
# coding: utf-8 ### # @file configuration.py # @author Sébastien Rouault <sebastien.rouault@alumni.epfl.ch> # # @section LICENSE # # Copyright © 2019-2021 École Polytechnique Fédérale de Lausanne (EPFL). # See LICENSE file. # # @section DESCRIPTION # # Configuration wrapper. ### __all__ = ["Configuration"...
30.676471
122
0.660594
33e4ff1b0415b6cc16bb7ca84d3b9f643cc38ecd
2,636
py
Python
script/ME/extract_frames.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
2
2021-01-14T14:07:40.000Z
2021-03-09T10:57:36.000Z
script/ME/extract_frames.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
null
null
null
script/ME/extract_frames.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
1
2021-01-12T16:52:28.000Z
2021-01-12T16:52:28.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt import os from tqdm import tqdm import random import re import numpy as np import argparse def main(): parser = argparse.ArgumentParser() parser.add_argument( "--output_folder", type=str, help="Output folder" ) ...
33.367089
142
0.52959
33e50455514fb049bf5cdcd54d53710dfe37d468
757
py
Python
examples/pytorch/reading-comprehender/predictor.py
wingkwong/cortex
be0ebebef68c4bad83d947b2325325b71ef2940f
[ "Apache-2.0" ]
1
2020-06-04T12:48:04.000Z
2020-06-04T12:48:04.000Z
examples/pytorch/reading-comprehender/predictor.py
wingkwong/cortex
be0ebebef68c4bad83d947b2325325b71ef2940f
[ "Apache-2.0" ]
10
2020-02-03T21:38:08.000Z
2020-02-14T18:44:13.000Z
examples/pytorch/reading-comprehender/predictor.py
wingkwong/cortex
be0ebebef68c4bad83d947b2325325b71ef2940f
[ "Apache-2.0" ]
null
null
null
# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` from allennlp.predictors.predictor import Predictor as AllenNLPPredictor class PythonPredictor: def __init__(self, config): cuda_device = -1 if config["device"] == "cuda": ...
32.913043
118
0.667107
33e57932a43dbf8124d199db386d4843c798b732
9,349
py
Python
tools/ipp_custom_library_tool_python/tool/utils.py
dongbinghua/ipp-crypto
5f6c4afec3d86f0f586cd9344963111fd5c04213
[ "Apache-2.0" ]
null
null
null
tools/ipp_custom_library_tool_python/tool/utils.py
dongbinghua/ipp-crypto
5f6c4afec3d86f0f586cd9344963111fd5c04213
[ "Apache-2.0" ]
null
null
null
tools/ipp_custom_library_tool_python/tool/utils.py
dongbinghua/ipp-crypto
5f6c4afec3d86f0f586cd9344963111fd5c04213
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018-2021 Intel Corporation. This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you (License). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute,...
26.787966
117
0.567119
33e59036843a24ea71d307f35383a9ee4c2f5663
2,971
py
Python
tensorflow/contrib/distributions/python/kernel_tests/conditional_transformed_distribution_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2019-06-19T08:43:26.000Z
2019-06-19T08:43:26.000Z
tensorflow/contrib/distributions/python/kernel_tests/conditional_transformed_distribution_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/kernel_tests/conditional_transformed_distribution_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2022-01-22T05:39:49.000Z
2022-01-22T05:39:49.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.011111
94
0.721979
33e59a105a0100ef46d2851c5b88ee45f1bffbdf
3,645
py
Python
open_spiel/python/games/xiang_test.py
zouxu09/open_spiel
8de8aa528616b27d1a4d0a0adc74a228c080ee5e
[ "Apache-2.0" ]
null
null
null
open_spiel/python/games/xiang_test.py
zouxu09/open_spiel
8de8aa528616b27d1a4d0a0adc74a228c080ee5e
[ "Apache-2.0" ]
null
null
null
open_spiel/python/games/xiang_test.py
zouxu09/open_spiel
8de8aa528616b27d1a4d0a0adc74a228c080ee5e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind 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 required by appl...
37.57732
80
0.73882
33e5c3cbdf98398e8eb4b11bf7e7507fb5fe4ea9
789
py
Python
awesomeness/daniel_meh.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
awesomeness/daniel_meh.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
awesomeness/daniel_meh.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
from graphics import * win = GraphWin('Meh') center = Point(100, 100) circ = Circle(center, 100) circ.setFill('yellow') circ.draw(win) left_eye = Point(60, 60) circ = Circle(left_eye, 20) circ.setFill('black') circ.draw(win) right_eye = Point(150, 60) circ = Circle(right_eye, 20) circ.setFill('black...
17.931818
45
0.656527
33e5de74797eb08a661468e41268b627478d49be
5,132
py
Python
tests/test_parser_try.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
2
2021-07-21T10:24:30.000Z
2022-01-11T11:25:25.000Z
tests/test_parser_try.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
null
null
null
tests/test_parser_try.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
1
2021-07-28T05:47:28.000Z
2021-07-28T05:47:28.000Z
import unittest from kopyt import node from . import TestParserBase class TestParserTry(TestParserBase): def do_test(self, code: str, test_str: bool = True) -> node.TryExpression: return super().do_test("parse_expression", code, node.TryExpres...
32.075
78
0.637373
33e5e31baa84ccd6febd44cade58a8689a4f282d
2,964
py
Python
conans/test/integration/multi_build_test.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/test/integration/multi_build_test.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/test/integration/multi_build_test.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
import unittest from conans.test.tools import TestClient from conans.model.ref import ConanFileReference, PackageReference import os from conans.paths import CONANFILE import platform import time from conans.test.utils.cpp_test_files import cpp_hello_conan_files from nose.plugins.attrib import attr from conans.test.uti...
40.60274
85
0.667341
33e5ebda568de476b59a3e16eba4833fd9452fce
9,067
py
Python
sleepy/ext/trivia/backend.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
4
2021-12-08T21:38:14.000Z
2022-01-30T04:16:38.000Z
sleepy/ext/trivia/backend.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
2
2021-09-29T13:33:26.000Z
2021-12-12T12:52:16.000Z
sleepy/ext/trivia/backend.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
null
null
null
""" Copyright (c) 2018-present HitchedSyringe This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. """ __all__ = ( "TriviaSession", "TriviaQuestion", ) import asyncio...
31.05137
95
0.550899
33e6440b2a08eabd641fb861591af92ca70c3570
2,428
py
Python
docs/conf.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2021-03-14T17:22:41.000Z
2021-03-14T17:22:41.000Z
docs/conf.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
23
2018-11-17T21:05:31.000Z
2019-01-15T09:58:33.000Z
docs/conf.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2020-07-31T06:09:31.000Z
2020-07-31T06:09:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath('..')) add_module_names = False extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.githubpages' ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' pr...
23.346154
88
0.666804
33e6674389e7c5a8a859cd7a389d3ffba3259091
77,045
py
Python
pandas/core/arrays/datetimes.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
12
2015-02-13T06:55:58.000Z
2020-06-22T19:02:52.000Z
pandas/core/arrays/datetimes.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/datetimes.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
16
2015-01-24T07:42:41.000Z
2021-07-06T21:13:39.000Z
# -*- coding: utf-8 -*- from datetime import datetime, time, timedelta import textwrap from typing import Union import warnings import numpy as np from pytz import utc from pandas._libs import lib, tslib from pandas._libs.tslibs import ( NaT, Timestamp, ccalendar, conversion, fields, iNaT, normalize_date, res...
35.834884
79
0.563463
33e6a1acf7c7463b3da57843fdddcf4055f9c610
252
py
Python
tql/ml/feature_tranformer/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/ml/feature_tranformer/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/ml/feature_tranformer/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : __init__.py # @Time : 2020/10/2 2:48 下午 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description :
21
36
0.519841
33e6c316d2def589384275b2416e2a3beae23ad2
1,265
py
Python
cli_tasks/prepare_secrets.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
null
null
null
cli_tasks/prepare_secrets.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
2
2021-04-06T18:24:23.000Z
2021-04-06T18:24:34.000Z
cli_tasks/prepare_secrets.py
andre487/auth487
5e2906b29958015791ffd10f42f29058aaad2c8c
[ "MIT" ]
null
null
null
import logging import os from . import common, yandex_cloud SECRETS = { 'auth_info': 'e6q6vfo2vo565h0cb0nq', 'mongo': 'e6qi9pel32r3mjoks1bj', 'gmail_sender': 'e6qar6a7mkjfu29vpv7b', } def run(c, recreate_venv, no_secret_cache=False): common.prepare_virtual_env(c, recreate_venv) if not no_secret_...
25.816327
74
0.6917
33e6d25f222354ad1ab6e7a551380f7958d00e55
4,081
py
Python
dataloaders/datasets/sbd.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
dataloaders/datasets/sbd.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
dataloaders/datasets/sbd.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
from __future__ import print_function, division import os import numpy as np import scipy.io import torch.utils.data as data from PIL import Image from myinfo import Path from torchvision import transforms from dataloaders import custom_transforms as tr class SBDSegmentation(data.Dataset): NUM_CLASSES = 21 ...
31.635659
106
0.588336
33e6d932ae21fd179219c2841f575087f0ebd592
76,015
py
Python
topo/plotting/plotgroup.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/plotting/plotgroup.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/plotting/plotgroup.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
""" Hierarchy of PlotGroup classes, i.e. output-device-independent sets of plots. Includes PlotGroups for standard plots of anything in a Sheet database, plus weight plots for one unit, and projections. """ import copy import Image import param from param.parameterized import ParamOverrides, ParameterizedFunction fr...
40.562967
159
0.629428
33e6e1e7988e960fe72e581bda81eeaaa65807de
5,371
py
Python
Examples/asposeimagingcloudexamples/update_web_p_image.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
Examples/asposeimagingcloudexamples/update_web_p_image.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
Examples/asposeimagingcloudexamples/update_web_p_image.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="update_web_p_image.py"> # Copyright (c) 2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaini...
47.530973
116
0.676969
33e7107458b39ecbda268e5c8fb656f04cda73a3
5,606
py
Python
neuroscience/scidb/test_stream_denoise.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
3
2017-08-08T09:07:27.000Z
2018-09-12T14:54:56.000Z
neuroscience/scidb/test_stream_denoise.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
1
2020-10-13T04:13:10.000Z
2020-10-13T04:13:10.000Z
neuroscience/scidb/test_stream_denoise.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
2
2018-02-26T18:03:23.000Z
2018-03-20T08:29:00.000Z
#!/usr/bin/python # #DFZ 11/15/2016: it's hard to control the chunk size read from the # stream() interface, see run_mri_stream.output for a concrete idea. # #the following import block is for testing only import dipy.core.gradients as dpg import os.path as op from dipy.segment.mask import median_otsu import nibabel...
42.469697
148
0.650018
33e74b4afcb0231cb6ba4370ecccb4082b015a0f
11,868
py
Python
venv/lib/python3.8/site-packages/dateparser/data/numeral_translation_data/he.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/numeral_translation_data/he.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/numeral_translation_data/he.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "%%and-feminine": { "1": "ו=%spellout-numbering=;", "2": "ושתיים;", "(3, 19)": "ו=%spellout-numbering=;", "20": "עשרים;", "(21, 29)": "עשרים >>;", "30": "שלושים;", "(31, 39)": "שלושים >>;", "40": "ארבעים;", "(41...
40.230508
106
0.44363
33e78cab3c683ca9db45964ad24f63c9efff1244
875
py
Python
plugins/maya/publish/avalon_instances_no_deadline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/avalon_instances_no_deadline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/avalon_instances_no_deadline.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api class CollectDeadlineExcluded(pyblish.api.ContextPlugin): order = pyblish.api.CollectorOrder - 0.29 hosts = ["maya"] label = "Deadline Excluded" targets = ["deadline"] def process(self, context): supported = [ "reveries.pointcache", "reveries...
25
64
0.570286
33e7a0d17594bfe19b46e6a4d2a68020ee37c4d0
1,411
py
Python
jina/parsers/flow.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
jina/parsers/flow.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
jina/parsers/flow.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
"""Argparser module for Flow""" from .base import set_base_parser from .helper import add_arg_group, KVAppendAction def mixin_flow_features_parser(parser): """Add the arguments for the Flow features to the parser :param parser: the parser configure """ from ..enums import FlowInspectType gp = ad...
25.654545
82
0.674699
33e7c014e40be4f33dc295bc599def6b750395ae
32,040
py
Python
homeassistant/components/kodi/media_player.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/kodi/media_player.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/kodi/media_player.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Support for interfacing with the XBMC/Kodi JSON-RPC API.""" from collections import OrderedDict from functools import wraps import logging import re import socket import urllib import aiohttp import jsonrpc_async import jsonrpc_base import jsonrpc_websocket import voluptuous as vol from homeassistant.components.ko...
33.620147
88
0.605275
33e7d3d83c8edff431a3f189385d6f0f681b441e
1,906
py
Python
data/transcoder_evaluation_gfg/python/COUNT_POSSIBLE_DECODINGS_GIVEN_DIGIT_SEQUENCE_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_POSSIBLE_DECODINGS_GIVEN_DIGIT_SEQUENCE_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_POSSIBLE_DECODINGS_GIVEN_DIGIT_SEQUENCE_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( digits , n ) : count = [ 0 ] * ( n + 1 ) ; count [ 0 ] = 1 ; count [ 1 ] = 1 ; for i in range ( 2 ,...
48.871795
221
0.334208
33e7f6997d537c49d6bbe0d0ec5f516f9a5ef3d5
4,692
py
Python
tests/model/sandbox/sandbox_test.py
3d-pli/fastpli
fe90ac53a7e78d122696bebb4816f4cb953cdb72
[ "MIT" ]
13
2020-03-21T10:40:36.000Z
2022-03-20T17:27:56.000Z
tests/model/sandbox/sandbox_test.py
3d-pli/fastpli
fe90ac53a7e78d122696bebb4816f4cb953cdb72
[ "MIT" ]
11
2021-01-30T07:21:52.000Z
2021-03-16T15:24:41.000Z
tests/model/sandbox/sandbox_test.py
3d-pli/fastpli
fe90ac53a7e78d122696bebb4816f4cb953cdb72
[ "MIT" ]
6
2020-08-27T07:19:30.000Z
2021-07-20T08:49:11.000Z
import unittest import numpy as np import fastpli.model.sandbox as sb import fastpli.objects as obj class MainTest(unittest.TestCase): def setUp(self): pass def test_triangular_grid(self): seeds = sb.seeds.triangular_grid(0, 0, 1, endpoint=False) self.assertTrue(seeds.size == 0) ...
37.536
74
0.473998
33e7fc3836b66ce074077b3ed723fac1b79f4e82
12,311
py
Python
homeassistant/components/unifi/controller.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2021-03-05T17:29:45.000Z
2021-03-05T17:29:45.000Z
homeassistant/components/unifi/controller.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/components/unifi/controller.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-06-01T12:43:03.000Z
2020-06-01T12:43:03.000Z
"""UniFi Controller abstraction.""" import asyncio from datetime import timedelta import ssl from aiohttp import CookieJar import aiounifi from aiounifi.controller import ( DATA_CLIENT, DATA_CLIENT_REMOVED, DATA_DEVICE, DATA_EVENT, SIGNAL_CONNECTION_STATE, SIGNAL_DATA, ) from aiounifi.events im...
32.312336
88
0.656567
33e8082e7f266ae41b47071e574b5a532b3e19ec
22,099
py
Python
cloudmesh_web/modules/cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_web/modules/cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_web/modules/cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from flask import render_template, request, redirect, g, jsonify, session from cloudmesh.config.cm_config import cm_config # from cloudmesh.cm_mesh import cm_mesh from cloudmesh_common.tables import table_printer from cloudmesh.cm_mongo import cm_mongo from cloudmesh.user.cm_user import cm_...
32.261314
119
0.569211
33e81047e895beec0a31fcf30e571d888166c9ff
693
py
Python
histomicsui/constants.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
17
2020-06-17T06:03:10.000Z
2022-03-16T15:44:52.000Z
histomicsui/constants.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
67
2020-02-27T20:17:04.000Z
2022-03-31T15:36:32.000Z
histomicsui/constants.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
9
2020-02-11T19:35:23.000Z
2021-11-04T02:22:15.000Z
from girder.settings import SettingDefault, SettingKey TCGACollectionSettingKey = 'tcga.tcga_collection_id' SettingDefault.defaults[SettingKey.BRAND_NAME] = 'HistomicsUI' # Constants representing the setting keys for this plugin class PluginSettings: HUI_DEFAULT_DRAW_STYLES = 'histomicsui.default_draw_styles' ...
38.5
69
0.813853
33e829a874c3f5fd6df33e2247a427d9f0a91b2b
536
py
Python
test/language/test_language.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
2
2020-02-11T08:29:49.000Z
2020-02-17T10:24:36.000Z
test/language/test_language.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
test/language/test_language.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
from test.test_case import * from main.dao.language import LanguageDao from main.model.language import Language class TestLanguage(TestCase): def setUp(self): super().setUp() self.lang_dao = application.get_component(LanguageDao) def test_create_lang(self): lang = Language(name='Kh...
23.304348
67
0.69403
33e8444d144eed64ec9096cfa5869817026e4061
5,529
py
Python
tests/test_setup_intent.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
937
2017-06-04T18:44:20.000Z
2022-03-27T07:28:32.000Z
tests/test_setup_intent.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
969
2017-06-05T01:57:20.000Z
2022-03-31T23:42:54.000Z
tests/test_setup_intent.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
309
2017-06-12T03:18:10.000Z
2022-03-29T17:05:18.000Z
""" dj-stripe SetupIntent Model Tests. """ from copy import deepcopy from unittest.mock import patch import pytest import stripe from django.test import TestCase from djstripe.enums import SetupIntentStatus from djstripe.models import Account, Customer, PaymentMethod, SetupIntent from tests import ( FAKE_CUSTOMER...
36.137255
123
0.66739
33e845cbcfe535c4cc38fe0325393fcd8f876f65
1,919
py
Python
dakotathon/tests/test_variables_base.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
dakotathon/tests/test_variables_base.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
dakotathon/tests/test_variables_base.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
"""Tests for the dakotathon.variables.base module.""" import os, sys from nose.tools import raises, assert_true, assert_false, assert_equal from dakotathon.variables.base import VariablesBase class Concrete(VariablesBase): """A subclass of VariablesBase used for testing.""" def __init__(self): Vari...
23.402439
70
0.669098
33e8600ea9ca32bbdab8dcfd64de53cf28768455
2,998
py
Python
venv/Lib/site-packages/pyrogram/raw/types/update_chat_participant_add.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/update_chat_participant_add.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/update_chat_participant_add.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...
32.236559
124
0.599733
33e8d2217b5541e75541ae9b2fcd1a4945df6286
2,836
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/managed/stop_proactive_update_instances.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/compute/instance_groups/managed/stop_proactive_update_instances.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/managed/stop_proactive_update_instances.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...
40.514286
93
0.764457
33e8d5f96eeab176aae1d79e650ef72225cc5b74
3,492
py
Python
ocdsapi_outlet/run.py
openprocurement/ocdsapi_outlet
e5aab856fbb833d34c4d56831cad7c09d7719a5e
[ "Apache-2.0" ]
null
null
null
ocdsapi_outlet/run.py
openprocurement/ocdsapi_outlet
e5aab856fbb833d34c4d56831cad7c09d7719a5e
[ "Apache-2.0" ]
6
2019-12-26T16:43:14.000Z
2022-03-21T22:16:25.000Z
ocdsapi_outlet/run.py
openprocurement/ocdsapi_outlet
e5aab856fbb833d34c4d56831cad7c09d7719a5e
[ "Apache-2.0" ]
1
2018-07-27T16:19:27.000Z
2018-07-27T16:19:27.000Z
""" run.py - main module """ from gevent import monkey monkey.patch_all() import click import logging from datetime import datetime import sys import yaml import json import os.path #from zc.lockfile import LockError from zope.dottedname.resolve import resolve from ocdsapi.storage import ReleaseStorage from .utils im...
28.859504
100
0.635166
33e8d62c51fe6b1da7c3a7c539adbcb5d5511caf
9,264
py
Python
components/statusbar.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
3
2022-03-05T21:54:34.000Z
2022-03-15T12:55:45.000Z
components/statusbar.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
2
2022-03-13T04:15:47.000Z
2022-03-30T11:51:41.000Z
components/statusbar.py
SrGambiarra/KivyStudioDesigner
7f617b60aef3d5e99865cb559b9b5ee93a1988f5
[ "MIT" ]
null
null
null
__all__ = [ 'StatusNavBarButton', 'StatusNavBarSeparator' 'StatusNavbar', 'StatusMessage', 'StatusInfo', 'StatusBar'] from utils.utils import icons from kivy.clock import Clock from kivy.uix.label import Label from kivy.uix.button import Button from kivy.lang.builder import Builder from kivy.uix.boxlayout...
30.777409
93
0.602332
33e90701b5e5bf239d249b85e467d43be4915ada
2,403
py
Python
code/plot.py
muggledy/retinex
be606a6eae75a00042a87d9e0173530fbb4fa8a9
[ "BSD-2-Clause" ]
36
2020-04-11T07:39:17.000Z
2022-03-30T03:56:13.000Z
code/plot.py
KeepOnPan/retinex
be606a6eae75a00042a87d9e0173530fbb4fa8a9
[ "BSD-2-Clause" ]
null
null
null
code/plot.py
KeepOnPan/retinex
be606a6eae75a00042a87d9e0173530fbb4fa8a9
[ "BSD-2-Clause" ]
7
2020-10-14T02:49:12.000Z
2022-03-06T11:34:02.000Z
import cv2 import numpy as np import re import matplotlib.pyplot as plt import os.path from .tools import get_dir import time def get_now_time(): return time.strftime('%Y.%m.%d.%H.%M.%S',time.localtime(time.time())) def save_img(img,name,parent_dir=get_now_time()): save_dir=os.path.join(get_dir(),'temp/'+pare...
31.618421
87
0.588847
33e91aa813f5d5c31cb46367311530a7bff5396a
1,466
py
Python
tfx/components/example_gen/csv_example_gen/component_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
2
2019-07-08T20:56:13.000Z
2020-08-04T17:07:26.000Z
tfx/components/example_gen/csv_example_gen/component_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
tfx/components/example_gen/csv_example_gen/component_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. 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 a...
36.65
80
0.779673
33e965abdd91f57f4eaa5acbbdc8ee92c186c874
2,487
py
Python
bolt11/types.py
python-ln/bolt11
76f8800dc2235f99a6059dae41dcc7c1f19f2d49
[ "MIT" ]
3
2020-11-18T01:57:18.000Z
2022-03-08T18:35:19.000Z
bolt11/types.py
python-ln/bolt11
76f8800dc2235f99a6059dae41dcc7c1f19f2d49
[ "MIT" ]
3
2020-11-19T07:16:54.000Z
2021-12-05T13:12:42.000Z
bolt11/types.py
python-ln/bolt11
76f8800dc2235f99a6059dae41dcc7c1f19f2d49
[ "MIT" ]
5
2020-09-04T17:54:41.000Z
2022-03-08T18:49:32.000Z
import time from datetime import datetime from decimal import Decimal from hashlib import sha256 from typing import Any, Dict, List, NamedTuple, Optional class LightningInvoice(NamedTuple): """Lightning invoice.""" currency: str payee_public_key: str signature: "Signature" tags: Dict[str, Any] ...
23.242991
62
0.632087
33e9a4c4dbcff246097cf6c16e890532ee5d2e84
1,395
py
Python
source/strobogrammatic_number/strobo_number.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/strobogrammatic_number/strobo_number.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/strobogrammatic_number/strobo_number.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
""" strobo_number.py For the given length n, find all n-length Strobogrammatic numbers. Strobogrammatic Number is a number whose numeral is rotationally symmetric so that it appears the same when rotated 180 degrees. In other words, Strobogrammatic Number appears the same right-side up and upside down. Usage: ...
24.910714
129
0.645878
33e9b4f0e804f3e06c0be4027bd6fb241d4e97dd
4,349
py
Python
flexget/tests/test_imdb_parser.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_imdb_parser.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_imdb_parser.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import pytest from flexget.utils.imdb import ImdbParser @pytest.mark.online class TestImdbParser(object): def test_parsed_data(self): parser = ImdbParser() ...
54.3625
132
0.619683
33e9ccd1818fd0a933d736a0a82d7b455a29b3d1
5,545
py
Python
alipay/aop/api/domain/VoucherQueryInfo.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/VoucherQueryInfo.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/VoucherQueryInfo.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 VoucherQueryInfo(object): def __init__(self): self._active_time = None self._amount = None self._available_amount = None self._expired_time = None self._se...
31.505682
83
0.597115
33e9e69b041a7d250c9d86bdf8912bf0585f7d81
40,481
py
Python
tensorflow/python/estimator/canned/boosted_trees_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/estimator/canned/boosted_trees_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/estimator/canned/boosted_trees_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.540102
87
0.623082
33e9e6fe91360d29a954871bf6aa279ea34b92aa
3,588
py
Python
src/cops_and_robots/map_tools/feasible_layer.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/map_tools/feasible_layer.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/map_tools/feasible_layer.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
#!/usr/bin/env python """Provides a feasible region for robot and point locations. Two types of feasible regions are defined: point regions and pose regions. Point regions are simply all points not contained within solid physical objects, whereas pose regions are all locations to which a robot can reach without inters...
32.035714
82
0.659699
33e9ee84c8e7da178b8a2ec345955a04dd528d51
3,663
py
Python
tests/test_7_TrainingData.py
naturalis/trait-geo-diverse-angiosperms
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
13
2019-11-06T05:43:01.000Z
2022-03-16T11:47:26.000Z
tests/test_7_TrainingData.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
249
2019-08-21T10:14:25.000Z
2022-03-24T02:30:58.000Z
tests/test_7_TrainingData.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
8
2019-08-21T11:07:30.000Z
2021-10-20T02:19:18.000Z
from sdmdl.sdmdl.config import Config from sdmdl.sdmdl.occurrences import Occurrences from sdmdl.sdmdl.gis import GIS from sdmdl.sdmdl.data_prep.training_data import TrainingData import unittest import pandas as pd import numpy as np import os import rasterio import gdal class TrainingDataTestCase(unittest.TestCase):...
50.178082
115
0.70243
33ea05b8c67a09f6000baf1c85a5923f1c877a0b
946
py
Python
sqlalchemy_pydantic_orm/__init__.py
Wouterkoorn/sqlalchemy-pydantic
dafd002a404eaffab4c0c51db90fa4b6121107ed
[ "MIT" ]
17
2021-04-24T09:00:17.000Z
2022-03-29T07:55:32.000Z
sqlalchemy_pydantic_orm/__init__.py
Wouterkoorn/sqlalchemy-pydantic
dafd002a404eaffab4c0c51db90fa4b6121107ed
[ "MIT" ]
null
null
null
sqlalchemy_pydantic_orm/__init__.py
Wouterkoorn/sqlalchemy-pydantic
dafd002a404eaffab4c0c51db90fa4b6121107ed
[ "MIT" ]
3
2022-02-01T19:46:19.000Z
2022-03-03T11:29:43.000Z
""" This library makes it a lot easier to do nested database operation with SQLAlchemy. With this library it is for example possible to validate, convert, and upload a 100-level deep nested JSON (dict) to its corresponding tables in a given database, within 3 lines of code. [Pydantic](https://pydantic-docs.helpmanual....
49.789474
105
0.77167
33ea10dc2140c89ae47a526efe23f93a01e1ee49
3,963
py
Python
fir_irma/utils.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
fir_irma/utils.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
2
2015-06-06T07:14:11.000Z
2015-06-06T07:48:54.000Z
fir_irma/utils.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__) from django.core.exceptions import PermissionDenied from django.http import JsonResponse, Http404, HttpResponseServerError, HttpResponseBadRequest from fir_irma import api from fir_irma.models import IrmaScan from fir_irma.settings import settings ERROR_NOT_FOUND =...
40.85567
100
0.643452
33ea3093982c62535fcb7149d9ab45986f3d7589
5,402
py
Python
src/data_processing/process_data.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
1
2022-02-22T07:05:46.000Z
2022-02-22T07:05:46.000Z
src/data_processing/process_data.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
src/data_processing/process_data.py
saridormi/commits_dataset
8dc5309c3b55385c0455ff91974704e18ab7cfdc
[ "Apache-2.0" ]
null
null
null
import os import logging import hydra from hydra.utils import to_absolute_path from omegaconf import DictConfig from src.data_processing.utils import ( OutliersProcessor, PreDeduplicationProcessor, PostDeduplicationProcessor, MessageProcessor, DiffProcessor, ) @hydra.main(config_path=".", config...
43.918699
119
0.5796
33ea375a5d14690de2f581fa6dbf59a96f3d152f
20,710
py
Python
ingestion/src/metadata/orm_profiler/processor/orm_profiler.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/orm_profiler/processor/orm_profiler.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/orm_profiler/processor/orm_profiler.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
34.806723
99
0.618928
33ea3a39b5d067e9a7e9629c21b4428e7afac4c7
84
py
Python
by-session/ta-921/j8/errors.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/ta-921/j8/errors.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/ta-921/j8/errors.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
s = "xxx" x = y = 0 #runtime s[1] = 'y' x/y # syntax if x print 'x'
7.636364
14
0.404762
33ea4372f004d5c170239d74c1fc7ac9aef23099
425
py
Python
build/scripts/build_java_with_error_prone.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
33
2016-12-15T21:47:13.000Z
2020-10-27T23:53:59.000Z
build/scripts/build_java_with_error_prone.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
build/scripts/build_java_with_error_prone.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
14
2016-12-28T17:00:33.000Z
2022-01-16T20:15:27.000Z
import sys import os ERROR_PRONE_FLAGS = [ '-Xep:FunctionalInterfaceMethodChanged:WARN', '-Xep:ReturnValueIgnored:WARN', ] def just_do_it(argv): java, error_prone_tool, javac_cmd = argv[0], argv[1], argv[2:] os.execv(java, [java, '-Xbootclasspath/p:' + error_prone_tool, 'com.google.errorprone.ErrorPr...
25
143
0.715294
33ea569520b5079e77e6d29673cf1d1c4b9f852c
13,276
py
Python
cifar/cifar10_deepspeed.py
guozhuoran918/DeepSpeedExamples
fe90e01ef144ea8c54bcffd270efc06e33d5f583
[ "MIT" ]
null
null
null
cifar/cifar10_deepspeed.py
guozhuoran918/DeepSpeedExamples
fe90e01ef144ea8c54bcffd270efc06e33d5f583
[ "MIT" ]
null
null
null
cifar/cifar10_deepspeed.py
guozhuoran918/DeepSpeedExamples
fe90e01ef144ea8c54bcffd270efc06e33d5f583
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import argparse import deepspeed def add_argument(): parser = argparse.ArgumentParser(description='CIFAR') #data # cuda parser.add_argument('--with_cuda', default=False, ...
34.936842
101
0.524179
33ea684070205ab87a1ff130a32093a043a4cf44
23,504
py
Python
main/playground/model2/CompositionalVectorAlgorithm.py
wliu88/AttentivePathRanking
4757d0d825442170cc7f2b11c9939cf3e2cec121
[ "MIT" ]
16
2019-12-02T21:18:48.000Z
2022-03-01T11:27:01.000Z
main/playground/model2/CompositionalVectorAlgorithm.py
wliu88/AttentivePathRanking
4757d0d825442170cc7f2b11c9939cf3e2cec121
[ "MIT" ]
6
2020-11-09T09:28:22.000Z
2022-01-13T01:52:20.000Z
main/playground/model2/CompositionalVectorAlgorithm.py
wliu88/AttentivePathRanking
4757d0d825442170cc7f2b11c9939cf3e2cec121
[ "MIT" ]
5
2019-12-29T06:32:25.000Z
2021-07-29T12:36:36.000Z
import time import numpy as np np.set_printoptions(threshold=np.inf) import random import pickle from tqdm import tqdm import os import json from collections import OrderedDict, defaultdict from scipy.stats import kurtosis, skew from scipy.interpolate import interp1d import matplotlib.pyplot as plt import torch import...
54.407407
130
0.551906
33ea6b96f63cb94873ba139e671a1a16d8e73051
5,194
py
Python
std/pytorch/01-low/42.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/42.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/42.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import torch import math x = torch.empty(3, 4) print(type(x)) print(x) zeros = torch.zeros(2, 3) print(zeros) ones = torch.ones(2, 3) print(ones) torch.manual_seed(1729) random = torch.rand(2, 3) print(random) torch.manual_seed(1729) random1 = torch.rand(2, 3) print(random1) random2 = torch.rand(2, 3) print(rando...
17.029508
75
0.66057
33ea99f55ffb57aef57a070427d9eb3d44f8b3ee
36,396
py
Python
sandbox/grist/migrations.py
petarnikolovski/grist-core
aa3fe975e799ebe81873c71ff9c40ff679f4b860
[ "Apache-2.0" ]
1
2022-02-22T14:45:49.000Z
2022-02-22T14:45:49.000Z
sandbox/grist/migrations.py
davgit/grist-core
6d941fb5a3eab008c424bdce70dbb906d6925324
[ "Apache-2.0" ]
null
null
null
sandbox/grist/migrations.py
davgit/grist-core
6d941fb5a3eab008c424bdce70dbb906d6925324
[ "Apache-2.0" ]
null
null
null
import json import re import six from six.moves import xrange import actions import identifiers import schema import summary import table_data_set import logger from column import is_visible_column log = logger.Logger(__name__, logger.INFO) # PHILOSOPHY OF MIGRATIONS. # # We should probably never remove, modify, or...
40.395117
100
0.71299
33eacd9e59e53004feaba4295a1b57eeda5bf0f7
18,601
py
Python
sporco/dictlrn/cbpdndl.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
217
2016-06-13T16:41:26.000Z
2022-03-22T06:31:05.000Z
sporco/dictlrn/cbpdndl.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
21
2016-06-13T23:28:35.000Z
2022-02-17T23:20:01.000Z
sporco/dictlrn/cbpdndl.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
47
2016-12-14T13:08:33.000Z
2021-12-12T01:59:49.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2015-2020 by Brendt Wohlberg <brendt@ieee.org> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """Dictionary learning based ...
35.430476
77
0.63502
33eb0d6fd784787c289493f320487bff6b5ad5e9
212
py
Python
tests/test_input_biot_short_syntax.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
tests/test_input_biot_short_syntax.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
tests/test_input_biot_short_syntax.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
from __future__ import absolute_import input_name = '../examples/multi_physics/biot_short_syntax.py' output_name = 'test_biot_short_syntax.vtk' from tests_basic import TestInput class Test(TestInput): pass
23.555556
61
0.816038
33eb342d8974b8fd8c26c68d517870901a37bfe1
15,187
py
Python
utils/legacy_utils.py
drcastillo/hicss2020
0a812257215c75054d8b891e23c933d6a8327c0d
[ "Apache-2.0" ]
null
null
null
utils/legacy_utils.py
drcastillo/hicss2020
0a812257215c75054d8b891e23c933d6a8327c0d
[ "Apache-2.0" ]
null
null
null
utils/legacy_utils.py
drcastillo/hicss2020
0a812257215c75054d8b891e23c933d6a8327c0d
[ "Apache-2.0" ]
null
null
null
from utils.helpful_util import * #################################################################################################### # Utilities for Fetching data files from dir #################################################################################################### def list_dir(verbose=True): ''' ...
39.965789
164
0.668598
33eb4ac6fe3cf60e97fee3a6e77b46ba4c33db24
36,207
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.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 ...
45.543396
292
0.66175
33eb87240221e59e48682a8c92d92c1e5e7f1b2c
54,831
py
Python
4.py
CalvinNeo/PyGeo
80848b941e86fa40e7e42d8083596601061109da
[ "Apache-2.0" ]
2
2016-02-23T11:25:50.000Z
2016-03-07T07:33:39.000Z
4.py
CalvinNeo/PyGeo
80848b941e86fa40e7e42d8083596601061109da
[ "Apache-2.0" ]
null
null
null
4.py
CalvinNeo/PyGeo
80848b941e86fa40e7e42d8083596601061109da
[ "Apache-2.0" ]
1
2019-01-04T17:41:52.000Z
2019-01-04T17:41:52.000Z
13.97905 9.815920 40.62300 14.00805 9.801919 40.63100 13.95905 9.831920 40.62200 14.03005 9.801919 40.61400 13.99905 9.807920 40.62400 14.01405 9.801919 40.63300 13.99105 9.816919 40.61200 ...
45.999161
45
0.45653
33eb8e217f7813151649ae65be7450c3e4f4201d
10,118
py
Python
mfe_saw/esm.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
null
null
null
mfe_saw/esm.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
null
null
null
mfe_saw/esm.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
1
2021-09-07T12:34:17.000Z
2021-09-07T12:34:17.000Z
# -*- coding: utf-8 -*- """ mfe_saw ESM Class """ import json from functools import lru_cache from mfe_saw.base import Base class ESM(Base): """ ESM class Puvlic Methods: version() Returns simple version string, '10.1.0' buildstamp() Returns buildstamp stri...
30.023739
85
0.499209
33eba502ef910e8f9f348525eea0cd7f43b3ea06
13,306
py
Python
distributed/profile.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
1
2020-08-11T16:09:14.000Z
2020-08-11T16:09:14.000Z
distributed/profile.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
distributed/profile.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
1
2020-06-19T11:38:14.000Z
2020-06-19T11:38:14.000Z
""" This module contains utility functions to construct and manipulate counting data structures for frames. When performing statistical profiling we obtain many call stacks. We aggregate these call stacks into data structures that maintain counts of how many times each function in that call stack has been called. Be...
26.665331
98
0.563505
33ec15f91716d5c50f068e9a22414d1ea89c58d8
8,107
py
Python
superset/dashboards/dao.py
a-cid/superset
c51778e861751397874e45e27938d616a63b80c5
[ "Apache-2.0" ]
1
2021-03-09T12:27:09.000Z
2021-03-09T12:27:09.000Z
superset/dashboards/dao.py
spookymotion/superset
d0714a097294f5ab1405b7958994eab1b6af7dec
[ "Apache-2.0" ]
34
2021-03-10T20:27:28.000Z
2022-03-15T18:37:08.000Z
superset/dashboards/dao.py
spookymotion/superset
d0714a097294f5ab1405b7958994eab1b6af7dec
[ "Apache-2.0" ]
null
null
null
# 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...
37.706977
88
0.620081
33ec4d7ccf8dd197f825667b2e3a711c376c7956
731
py
Python
test/test_cli.py
AIBiuBiu/stagesepx
20ccfa8145e5896144702eb1d0db19c4fef737a5
[ "MIT" ]
1
2021-01-07T01:14:00.000Z
2021-01-07T01:14:00.000Z
test/test_cli.py
AIBiuBiu/stagesepx
20ccfa8145e5896144702eb1d0db19c4fef737a5
[ "MIT" ]
null
null
null
test/test_cli.py
AIBiuBiu/stagesepx
20ccfa8145e5896144702eb1d0db19c4fef737a5
[ "MIT" ]
null
null
null
from loguru import logger import subprocess import os import shutil PROJECT_PATH = os.path.dirname(os.path.dirname(__file__)) VIDEO_PATH = os.path.join(PROJECT_PATH, "demo.mp4") def test_cli(): logger.info("checking main") subprocess.check_call(["python", "-m", "stagesepx.cli"]) logger.info("checking on...
30.458333
89
0.686731
33ec5543427a14b913eff859936ff7fe1f7e533b
44,530
py
Python
pygsti/circuits/gstcircuits.py
maij/pyGSTi
70e83e05fa689f53550feb3914c4fac40ca4a943
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
pygsti/circuits/gstcircuits.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
pygsti/circuits/gstcircuits.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
""" Circuit list creation functions using repeated-germs limited by a max-length. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525...
48.934066
120
0.642668
33ec57f51a2a6e6c63417bfa3c0f3c2ee755acce
1,632
py
Python
sessions/user_note_search.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
3
2021-08-04T08:51:28.000Z
2022-01-13T01:48:10.000Z
sessions/user_note_search.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
null
null
null
sessions/user_note_search.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
2
2021-08-04T08:52:15.000Z
2022-01-12T14:20:25.000Z
from .argument import ArgSession, Argument from ..responses import ResponseMsg from ..paths import PATHS import pandas as pd import os TOTAL_TABLE = os.path.join(PATHS['data'], 'naoc_user_note.xlsx') class UserNoteSession(ArgSession): def __init__(self, user_id): ArgSession.__init__(self, user...
39.804878
95
0.559436
33ecad6a3f84ba753b280fbf0a44a7a027c68100
22,418
py
Python
ndcube/extra_coords/table_coord.py
donnacn/ndcube
196daeb407ff7cdb918313fa729d44510e6d9172
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ndcube/extra_coords/table_coord.py
donnacn/ndcube
196daeb407ff7cdb918313fa729d44510e6d9172
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ndcube/extra_coords/table_coord.py
donnacn/ndcube
196daeb407ff7cdb918313fa729d44510e6d9172
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import abc import copy from numbers import Integral from collections import defaultdict import astropy.units as u import gwcs import gwcs.coordinate_frames as cf import numpy as np from astropy.coordinates import SkyCoord from astropy.modeling import models from astropy.modeling.models import tabular_model from astrop...
37.301165
126
0.636453
33ecbe0d3feb5f768f5d04259c895e6b06121f4d
8,578
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/scattermapbox/marker/colorbar/title/__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/scattermapbox/marker/colorbar/title/__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/scattermapbox/marker/colorbar/title/__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'...
37.622807
88
0.570529
33ecc655e9be7c98130479b19a9a0d00001835f6
3,679
py
Python
forum/migrations/0001_initial.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
1
2020-06-17T02:51:35.000Z
2020-06-17T02:51:35.000Z
forum/migrations/0001_initial.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
7
2020-06-06T18:32:37.000Z
2022-03-12T00:33:42.000Z
forum/migrations/0001_initial.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-06 23:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
47.166667
147
0.596086
33ecd6ba5a2fece472ad174034abbe88987537a4
19,672
py
Python
dags/twitter_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
dags/twitter_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
dags/twitter_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
39.741414
4,468
0.527704
33ececdbb57abd9f4ac53da3bcd469e1536fcbc6
15,064
py
Python
dl/step1/trainer.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
dl/stepall/trainer.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
dl/stepall/trainer.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
42.674221
80
0.72504
33ecee852943966dc8cc7c909c3e4e25a981d88e
338
py
Python
owtf/plugins/web/external/Bypassing_authorization_schema@OWTF-AZ-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/external/Bypassing_authorization_schema@OWTF-AZ-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/external/Bypassing_authorization_schema@OWTF-AZ-002.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
from owtf.managers.resource import get_resources from owtf.plugin.plugin_helper import plugin_helper DESCRIPTION = "Plugin to assist manual testing" def run(PluginInfo): resource = get_resources('ExternalBypassingAuthorisationSchema') Content = plugin_helper.resource_linklist('Online Resources', resource) ...
28.166667
75
0.807692
33ed000c085d5fe712a8fcfa486d2d1949208733
14,052
py
Python
test/test.py
saierd/python-nuclos
3390d453952744c9bc1ec2d4c1ddc99adf2335e3
[ "MIT" ]
10
2015-06-23T20:14:51.000Z
2021-12-22T10:42:41.000Z
test/test.py
saierd/python-nuclos
3390d453952744c9bc1ec2d4c1ddc99adf2335e3
[ "MIT" ]
4
2016-05-27T07:15:12.000Z
2021-04-07T15:44:39.000Z
test/test.py
saierd/python-nuclos
3390d453952744c9bc1ec2d4c1ddc99adf2335e3
[ "MIT" ]
1
2016-11-20T19:30:52.000Z
2016-11-20T19:30:52.000Z
import os import sys import unittest sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from nuclos import NuclosAPI, AttributeMeta, BusinessObject, BusinessObjectInstance, BusinessObjectMeta, NuclosException NUCLOS_VERSION_MAJOR = 4 NUCLOS_VERSION_MINOR = 20 NUCLOS_VERSION_REVISION = 1 # Note: We give ...
38.49863
120
0.687091
33ed0c0618402ad201eed0ae92b0c0164ed7300f
5,514
py
Python
tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_child_device_measurement/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
1
2022-03-22T17:24:03.000Z
2022-03-22T17:24:03.000Z
tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_child_device_measurement/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
null
null
null
tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_child_device_measurement/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
null
null
null
from environment_c8y import EnvironmentC8y import time import json import os import secrets """ Validate measurements published to child devices When various measurements are sent to 2 different child devices and to the parent device, Then validate that these measurements are associated to the appropriate devices in...
40.844444
119
0.626406
33ed1978d23fccb1736ef4253ecc0499504b5b01
748
py
Python
setup.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
setup.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
setup.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
import versioneer from setuptools import setup with open('README.rst', 'r') as fh: long_description = fh.read() setup( name='aerial', packages=['aerial'], version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='The easy way to catch signals', long_description=l...
27.703704
74
0.663102
33ed478c0a2c403e008a3be2cdde60f8c60c6f2e
2,896
py
Python
app/dao/date_util.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
app/dao/date_util.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
51
2019-07-03T14:11:19.000Z
2019-07-08T12:24:55.000Z
app/dao/date_util.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
import os from datetime import date, datetime, time, timedelta import pytz from notifications_utils.strftime_codes import no_pad_month from notifications_utils.timezones import convert_local_timezone_to_utc def get_months_for_financial_year(year): return [ convert_local_timezone_to_utc(month) for...
34.47619
112
0.723757
33ed61e2262340b3ed1536584fe327538719dae9
150,048
py
Python
numba/np/arraymath.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
null
null
null
numba/np/arraymath.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
1
2020-07-28T20:47:24.000Z
2020-07-28T20:47:24.000Z
numba/np/arraymath.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
null
null
null
""" Implementation of math operations on Array objects. """ import math from collections import namedtuple from enum import IntEnum from functools import partial import operator import llvmlite.ir import numpy as np from numba import generated_jit from numba.core import types, cgutils from numba.core.extending impo...
31.123833
166
0.575416
33ed982ee35dc55aa1139637c89b16487c48874a
2,674
py
Python
tests/v1_and_BotUpSaliency/t06_test_V2_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/t06_test_V2_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/v1_and_BotUpSaliency/t06_test_V2_activation.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import json from models.layers.layers import GaborFilters from models.layers import create_preds_seq import os from tensorflow.keras.layers import Input from tensorflow.keras.layers import MaxPool2D from tensorflow.keras.models import Model print("Visualize gabor filter") # load config ...
28.147368
110
0.68175
33eda4bcd4964f8d9f866305268d2654c480e8c9
9,050
py
Python
cache-simulator/cache_model_evaluation/evaluate_cache_models.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
cache-simulator/cache_model_evaluation/evaluate_cache_models.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
cache-simulator/cache_model_evaluation/evaluate_cache_models.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import gzip import json import hashlib import resource import datetime from CacheBuckets import CacheBuckets from StorageSystem import StorageSystem # add ecmwf_utils to python path util_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(_...
36.491935
276
0.523094
33edb22ef1ae15d827b53f9f1d99beae7579036f
47,261
py
Python
tests/test_rachford_rice.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_rachford_rice.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_rachford_rice.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
61.139715
969
0.712406
33edf324ddfa548b8caecea801baf14def15f94a
2,859
py
Python
pay-api/src/pay_api/resources/fee.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/resources/fee.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/resources/fee.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "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...
42.044118
103
0.694998
33edf3d840b5257676a520166802aab47f028395
390
py
Python
github/migrations/0015_auto_20201003_2021.py
h3nnn4n/git-o-matic-9k
d8241cc768591e0f41c02b2057d7b56697a4cc86
[ "MIT" ]
null
null
null
github/migrations/0015_auto_20201003_2021.py
h3nnn4n/git-o-matic-9k
d8241cc768591e0f41c02b2057d7b56697a4cc86
[ "MIT" ]
null
null
null
github/migrations/0015_auto_20201003_2021.py
h3nnn4n/git-o-matic-9k
d8241cc768591e0f41c02b2057d7b56697a4cc86
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-03 20:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('github', '0014_repository_owner_github_id'), ] operations = [ migrations.AlterField( model_name='developer', name='n...
20.526316
54
0.602564
33ee0cd3dd782adea51d256aba13124705bbe322
2,107
py
Python
pandayoda/common/StatefulService.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
null
null
null
pandayoda/common/StatefulService.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
22
2018-07-26T15:54:36.000Z
2019-05-27T09:28:48.000Z
pandayoda/common/StatefulService.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
3
2018-05-21T13:12:10.000Z
2019-04-02T08:41:57.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Authors: # - Taylor Childers (john.taylor.childers@cern.ch) import logging import time from pan...
31.447761
101
0.654485
33ee226d5beac4e78461c78dcf16d7549bf4bdbc
11,833
py
Python
figure_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
null
null
null
figure_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
1
2021-06-02T01:47:20.000Z
2021-06-02T01:47:20.000Z
figure_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
1
2020-01-06T17:39:14.000Z
2020-01-06T17:39:14.000Z
import string from skimage import io import matplotlib.pyplot as plt from matplotlib import cm import numpy as np from matplotlib.cm import ScalarMappable from numpy import linspace import pandas as pd from tree_extraction import extract_crowns_from_dhm from neighborhood_funcs import * from pattern_generation import ...
35.857576
120
0.553452
33ee2baf023380b174aad5b57a6ea255f5c34673
659
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.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/policy/v2016_04_01/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.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 ...
41.1875
94
0.611533
33ee3d924ff6995102b57b9f112d9dc29114584f
12,790
py
Python
bbopt/backends/skopt.py
vishalbelsare/bbopt
408e210e57b7a2aaf3cfd3a3c225fc2af6b3c56d
[ "Apache-2.0" ]
67
2017-09-19T21:23:56.000Z
2022-03-30T14:13:06.000Z
bbopt/backends/skopt.py
vishalbelsare/bbopt
408e210e57b7a2aaf3cfd3a3c225fc2af6b3c56d
[ "Apache-2.0" ]
16
2018-03-01T19:50:46.000Z
2022-01-22T02:04:53.000Z
bbopt/backends/skopt.py
vishalbelsare/bbopt
408e210e57b7a2aaf3cfd3a3c225fc2af6b3c56d
[ "Apache-2.0" ]
8
2019-01-04T17:12:35.000Z
2021-09-17T14:11:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # __coconut_hash__ = 0x2135b4fd # Compiled with Coconut version 2.0.0-a_dev9 [How Not to Be Seen] """ The scikit-optimize backend. Does black box optimization using scikit-optimize. """ # Coconut Header: ------------------------------------------------------------- from...
47.723881
913
0.692494
33ee42d7e78ad6a28a33252e19aba8ffb01f17bc
135
py
Python
src/alfasim_sdk/_internal/__init__.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
17
2019-02-04T12:58:10.000Z
2021-07-16T12:36:23.000Z
src/alfasim_sdk/_internal/__init__.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
201
2018-08-07T19:39:10.000Z
2022-03-15T00:20:24.000Z
src/alfasim_sdk/_internal/__init__.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
5
2019-06-07T15:45:34.000Z
2021-10-13T18:49:52.000Z
# Register new categories and units used from CaseDescription from alfasim_sdk._internal.units import register_units register_units()
27
61
0.851852
33ee4e829ff05b7ee30188d93f358250965b6ad2
5,882
py
Python
std/pytorch/01-low/61.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/61.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/61.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils import warnings warnings.filterwarnings("ignore") plt.ion() landmarks_frame = pd.read_csv("data/f...
28.009524
101
0.641789