hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
063d415117d4abb47714642336dcc0b8360cdccd
2,273
py
Python
pubnub/endpoints/push/remove_channels_from_push.py
stefan-qsd/python
6bb4477c28b62a39bff1ec22d764efa24b02e0e5
[ "MIT" ]
null
null
null
pubnub/endpoints/push/remove_channels_from_push.py
stefan-qsd/python
6bb4477c28b62a39bff1ec22d764efa24b02e0e5
[ "MIT" ]
null
null
null
pubnub/endpoints/push/remove_channels_from_push.py
stefan-qsd/python
6bb4477c28b62a39bff1ec22d764efa24b02e0e5
[ "MIT" ]
null
null
null
import six from pubnub.endpoints.endpoint import Endpoint from pubnub.errors import PNERR_CHANNEL_MISSING, PNERR_PUSH_DEVICE_MISSING, PNERROR_PUSH_TYPE_MISSING from pubnub.exceptions import PubNubException from pubnub.enums import HttpMethod, PNOperationType from pubnub.models.consumer.push import PNPushRemoveChannelR...
30.716216
113
0.714474
de5c89ea184e66917d98cc805bc0763502ba6c9d
121,983
py
Python
supplemental/io_export_babylon.py
jtmckay/PenguinWars
f146fedefc296c1e6ab36413a09fac876aabb526
[ "MIT" ]
null
null
null
supplemental/io_export_babylon.py
jtmckay/PenguinWars
f146fedefc296c1e6ab36413a09fac876aabb526
[ "MIT" ]
null
null
null
supplemental/io_export_babylon.py
jtmckay/PenguinWars
f146fedefc296c1e6ab36413a09fac876aabb526
[ "MIT" ]
null
null
null
bl_info = { 'name': 'Babylon.js', 'author': 'David Catuhe, Jeff Palmer', 'version': (4, 6, 1), 'blender': (2, 75, 0), 'location': 'File > Export > Babylon.js (.babylon)', 'description': 'Export Babylon.js scenes (.babylon)', 'wiki_url': 'https://github.com/BabylonJS/Babylon.js/tree/master/Ex...
43.302449
222
0.57126
139198cb5f46c00c612f0f9fac61a80ac534bf1b
2,739
py
Python
bqskit/ir/gates/composed/tagged.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
13
2021-05-26T21:32:26.000Z
2022-03-15T17:48:10.000Z
bqskit/ir/gates/composed/tagged.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
20
2021-05-26T20:17:15.000Z
2022-02-27T20:04:10.000Z
bqskit/ir/gates/composed/tagged.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
2
2021-10-05T16:00:47.000Z
2021-10-08T01:30:06.000Z
"""This module implements the TaggedGate Class.""" from __future__ import annotations from typing import Any import numpy as np from bqskit.ir.gate import Gate from bqskit.ir.gates.composedgate import ComposedGate from bqskit.qis.unitary.differentiable import DifferentiableUnitary from bqskit.qis.unitary.optimizable...
29.138298
78
0.627236
69c7b273c75aec3a1416b7fd2167ed0a7325abf7
11,849
py
Python
mesh_tensorflow/experimental/data_aug_lib.py
merrymercy/mesh
8931eb9025f833b09d8425404ebd5801acbb0cac
[ "Apache-2.0" ]
1,264
2018-09-21T02:17:33.000Z
2022-03-31T15:22:23.000Z
mesh_tensorflow/experimental/data_aug_lib.py
merrymercy/mesh
8931eb9025f833b09d8425404ebd5801acbb0cac
[ "Apache-2.0" ]
187
2018-10-11T22:54:59.000Z
2022-03-31T08:49:37.000Z
mesh_tensorflow/experimental/data_aug_lib.py
merrymercy/mesh
8931eb9025f833b09d8425404ebd5801acbb0cac
[ "Apache-2.0" ]
241
2018-10-17T02:30:33.000Z
2022-03-30T20:51:22.000Z
# coding=utf-8 # Copyright 2021 The Mesh TensorFlow 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 applicab...
36.684211
80
0.672209
446f8dc5cb3e5b3f6625d0de2f74021ed3bf20e7
5,369
py
Python
taskcat/_cfn/template.py
meckhardt/taskcat
39192da47c71de2b7e25c6e7746ddb193a712b9a
[ "Apache-2.0" ]
null
null
null
taskcat/_cfn/template.py
meckhardt/taskcat
39192da47c71de2b7e25c6e7746ddb193a712b9a
[ "Apache-2.0" ]
null
null
null
taskcat/_cfn/template.py
meckhardt/taskcat
39192da47c71de2b7e25c6e7746ddb193a712b9a
[ "Apache-2.0" ]
null
null
null
import logging from pathlib import Path from typing import Dict, List, Union import cfnlint from taskcat._cfn.stack_url_helper import StackURLHelper from taskcat.exceptions import TaskCatException LOG = logging.getLogger(__name__) class Template: def __init__( self, template_path: Union[str, Pat...
34.197452
84
0.590985
6b43c5d734a833342a66c0a12c7201fd6e63bcba
125
py
Python
pyftdi/tests/backend/__init__.py
marcjordan2112/pyftdi
0cfd44701260d086e79e6e485ceaadfbb7f360f4
[ "BSD-3-Clause" ]
345
2015-04-27T10:15:42.000Z
2022-03-30T10:07:28.000Z
pyftdi/tests/backend/__init__.py
marcjordan2112/pyftdi
0cfd44701260d086e79e6e485ceaadfbb7f360f4
[ "BSD-3-Clause" ]
250
2015-01-18T17:44:27.000Z
2022-03-29T06:45:42.000Z
pyftdi/tests/backend/__init__.py
marcjordan2112/pyftdi
0cfd44701260d086e79e6e485ceaadfbb7f360f4
[ "BSD-3-Clause" ]
168
2015-01-08T12:03:48.000Z
2022-03-13T18:44:09.000Z
# Copyright (c) 2020, Emmanuel Blot <emmanuel.blot@free.fr> # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause
25
59
0.736
e24e632118fcbd4d370aa16ba6954ba12b1c4ec8
2,832
py
Python
expr/kernelpca_ski.py
idf/FaceReader
d649bf7ca7f9cf66ac99e81a5187cfcc2b54f49d
[ "MIT" ]
7
2015-04-17T02:12:32.000Z
2018-08-08T01:29:24.000Z
expr/kernelpca_ski.py
idf/FaceReader
d649bf7ca7f9cf66ac99e81a5187cfcc2b54f49d
[ "MIT" ]
null
null
null
expr/kernelpca_ski.py
idf/FaceReader
d649bf7ca7f9cf66ac99e81a5187cfcc2b54f49d
[ "MIT" ]
4
2017-08-26T11:44:20.000Z
2021-06-13T11:50:11.000Z
from facerec_py.facerec.feature import AbstractFeature import numpy as np from facerec_py.facerec.util import asColumnMatrix from sklearn.decomposition import KernelPCA __author__ = 'Danyang' class KPCA(AbstractFeature): def __init__(self, num_components=50, kernel="poly", degree=3, coef0=0.0, gamma=None): ...
34.120482
127
0.623234
dca72d5c895f122a9057bd82d9111e87a507a48d
1,835
py
Python
lib/models/backbones.py
sunshuofeng/TracKit
bf9d09aed7d7b8e01ccfc40a67653aa0666c868d
[ "MIT" ]
null
null
null
lib/models/backbones.py
sunshuofeng/TracKit
bf9d09aed7d7b8e01ccfc40a67653aa0666c868d
[ "MIT" ]
null
null
null
lib/models/backbones.py
sunshuofeng/TracKit
bf9d09aed7d7b8e01ccfc40a67653aa0666c868d
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Zhipeng Zhang (zhangzhipeng2017@ia.ac.cn) # ------------------------------------------------------------------------------ import torch import torch.nn as nn from lib...
27.80303
125
0.522071
0de533c471da22e0f2d1a7aeac3cbceaf9273acb
2,594
py
Python
gnuradio/gr-iotSDR/docs/doxygen/doxyxml/__init__.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
12
2020-10-01T02:50:56.000Z
2022-02-24T22:43:24.000Z
gnuradio/gr-iotSDR/docs/doxygen/doxyxml/__init__.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
1
2021-11-21T11:17:27.000Z
2021-12-31T17:23:50.000Z
gnuradio/gr-iotSDR/docs/doxygen/doxyxml/__init__.py
mfkiwl/iotSDR
2a2e4953894107b225f50d95dbdee0f90fa0f934
[ "BSD-3-Clause" ]
3
2021-03-19T07:53:19.000Z
2022-02-24T00:52:28.000Z
# # Copyright 2010 Free Software Foundation, Inc. # # This file was generated by gr_modtool, a tool from the GNU Radio framework # This file is a part of gr-iotSDR # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Soft...
30.517647
127
0.731303
ee9b3e018014715fccc4d752b3c4a2e2e549f50f
3,617
py
Python
google-cloud-talent/synth.py
busunkim96/google-cloud-ruby
b622389a445c245ee15f640a720f59fff6512fe2
[ "Apache-2.0" ]
null
null
null
google-cloud-talent/synth.py
busunkim96/google-cloud-ruby
b622389a445c245ee15f640a720f59fff6512fe2
[ "Apache-2.0" ]
null
null
null
google-cloud-talent/synth.py
busunkim96/google-cloud-ruby
b622389a445c245ee15f640a720f59fff6512fe2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.141667
116
0.663533
5a97b40df9e2911bbce2ae88c4eb1d6253f1c2f3
693
py
Python
3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/management/commands/update_fts_indices.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
null
null
null
3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/management/commands/update_fts_indices.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
9
2020-02-11T23:38:20.000Z
2022-03-11T23:16:29.000Z
3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/management/commands/update_fts_indices.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
null
null
null
from django.core.management.base import NoArgsCommand from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS import fts class Command(NoArgsCommand): help = 'update FTS indices' def handle_noargs(self, **options): manifest = dict((app.__name__.split('.')[-2], [m for m in mode...
40.764706
120
0.660895
67bead02e5686b5da643e9787a677e0c7218bcb4
601
py
Python
src/ptrading/simulator/__init__.py
abhishekpratapa/ptrading
7eb097f3e52a1a22cb4a818c10c2b7c5c5e66dac
[ "BSD-3-Clause" ]
null
null
null
src/ptrading/simulator/__init__.py
abhishekpratapa/ptrading
7eb097f3e52a1a22cb4a818c10c2b7c5c5e66dac
[ "BSD-3-Clause" ]
null
null
null
src/ptrading/simulator/__init__.py
abhishekpratapa/ptrading
7eb097f3e52a1a22cb4a818c10c2b7c5c5e66dac
[ "BSD-3-Clause" ]
null
null
null
""" # -*- coding: utf-8 -*- # Copyright © 2020 Abhishek Pratapa. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause """ from __future__ import print_function as _ from __future__ import di...
31.631579
85
0.787022
27f161feee712edc6c31826ae816a3b2f036fac0
3,484
py
Python
Pj016_CDEKFpaper_Code002.py
AshivDhondea/AshivD_Masters_Codes_py
e2abc3475fe1e1f6beb3ee5a40876273f7046f31
[ "MIT" ]
null
null
null
Pj016_CDEKFpaper_Code002.py
AshivDhondea/AshivD_Masters_Codes_py
e2abc3475fe1e1f6beb3ee5a40876273f7046f31
[ "MIT" ]
null
null
null
Pj016_CDEKFpaper_Code002.py
AshivDhondea/AshivD_Masters_Codes_py
e2abc3475fe1e1f6beb3ee5a40876273f7046f31
[ "MIT" ]
null
null
null
## Pj016_CDEKFpaper_Code002.py # Based on Pj014_Simulating_TwoBody_save_data_radar.py # ------------------------- # # Description: # This project generates radar observations from the true data data generated in Pj010_Simulating_TwoBody_SDE_save_data.py # ------------------------- # # Created by: Ashiv Dhondea, R...
40.045977
158
0.60907
6475a568ebea29d6bc6345c72387beed704993f2
1,799
py
Python
tests/test_parsing.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
tests/test_parsing.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
tests/test_parsing.py
jonashaag/lleaves
a9181059090953aecf20b6ef13b5e5c823e9d4d6
[ "MIT" ]
null
null
null
from pathlib import Path from lleaves.compiler.ast.scanner import scan_model_file, scan_pandas_categorical def test_parser(): model_file = "tests/models/boston_housing/model.txt" result = scan_model_file(model_file) assert result["general_info"]["max_feature_idx"] == 12 assert result["pandas_categori...
26.455882
85
0.587549
cc544506204b87e6605174c5884f65bd204c56f5
3,427
py
Python
babysage/commands/init.py
ayemos/babysage
91fe2816395cbf665b7b38f6a4e03bad2e17cd5b
[ "MIT" ]
5
2019-03-12T06:18:57.000Z
2019-03-12T06:41:55.000Z
babysage/commands/init.py
ayemos/babysage
91fe2816395cbf665b7b38f6a4e03bad2e17cd5b
[ "MIT" ]
null
null
null
babysage/commands/init.py
ayemos/babysage
91fe2816395cbf665b7b38f6a4e03bad2e17cd5b
[ "MIT" ]
null
null
null
import os import pkg_resources import boto3 from jinja2 import Template def init(name, ecr_repo_name, s3_bucket_name, execution_role_arn, region): aws_account_id = boto3.client('sts').get_caller_identity()['Account'] print(f'Creating babysage experiment {name}.') session = boto3.session.Session() r...
37.659341
90
0.613073
14a1a3397045dd9539b89ff299c30ba1a13dc381
10,266
py
Python
ibis/tests/expr/test_window_functions.py
GrapeBaBa/ibis
507bb14efdcfd719a0487ee23fe1c85c177517f6
[ "Apache-2.0" ]
null
null
null
ibis/tests/expr/test_window_functions.py
GrapeBaBa/ibis
507bb14efdcfd719a0487ee23fe1c85c177517f6
[ "Apache-2.0" ]
null
null
null
ibis/tests/expr/test_window_functions.py
GrapeBaBa/ibis
507bb14efdcfd719a0487ee23fe1c85c177517f6
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Cloudera Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
28.359116
79
0.648354
764d5a8b420f30f07abb302b2bfff8fce0ceafd7
4,266
py
Python
userbot/plugins/account_edits.py
Declan57/botkulah
a1da46e45b25ef39919cbe7edb2fafa02dcd7bc1
[ "MIT" ]
1
2020-10-04T10:08:43.000Z
2020-10-04T10:08:43.000Z
userbot/plugins/account_edits.py
ranijithhub/SPARKZZZ
4fcbd15d7466b71261f8b437b0654d9e5cde1b55
[ "MIT" ]
null
null
null
userbot/plugins/account_edits.py
ranijithhub/SPARKZZZ
4fcbd15d7466b71261f8b437b0654d9e5cde1b55
[ "MIT" ]
null
null
null
# Ported from other Telegram UserBots for TeleBot//Made for TeleBot # Kangers, don't remove this line # @its_xditya """COMMAND : .pbio, .ppic, .pname, .delpfp {n}""" import os from telethon.tl import functions from userbot.utils import admin_cmd from telethon.errors import ImageProcessFailedError, PhotoCropSizeSmall...
38.089286
94
0.624707
4af07930f014314bf7404f76da907b5103ff5db3
1,542
py
Python
Coursework_02/Q3/q3_c_ql.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/q3_c_ql.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/q3_c_ql.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' Created on 21 Mar 2022 @author: ucacsjj ''' import math from airport.scenarios import * from airport.airport_driving_environment import AirportDrivingEnvironment from airport.airport_map_drawer import AirportMapDrawer from airport.driving_policy_drawer import DrivingPolicyDrawer from airp...
29.653846
87
0.758755
5a3621c1a5c742004a3dd66c6628b118a976805a
2,266
py
Python
scripts/ch2o_tests.py
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
null
null
null
scripts/ch2o_tests.py
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
null
null
null
scripts/ch2o_tests.py
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
null
null
null
import glob import os from test_case import TestCase # TODO(hamaji): Consolidate this list with the one for CMake's. NODE_TESTS = ''' AddMul AveragePool2d BatchNorm BroadcastTo Ceil Concat Convolution2D Cumsum Dropout EmbedID ExpandDims Hstack Id LRN Len Linear Matmul MaxPool2d Mean NStepBiLSTM NStepLSTM NpArray Np...
17.84252
78
0.589585
76c07e6f35a037a33aaacd8d62c3ad4eb7567432
4,061
py
Python
descarteslabs/client/scripts/cli.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
167
2017-03-23T22:16:58.000Z
2022-03-08T09:19:30.000Z
descarteslabs/client/scripts/cli.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
93
2017-03-23T22:11:40.000Z
2021-12-13T18:38:53.000Z
descarteslabs/client/scripts/cli.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
46
2017-03-25T19:12:14.000Z
2021-08-15T18:04:29.000Z
#!/usr/bin/env python # Copyright 2018-2020 Descartes Labs. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
35.313043
109
0.733563
ac9c2e6b0b42c512ce5177897ea525f2a9b30644
4,599
py
Python
tests/prompts/test_common.py
OakNinja/questionary
8373389422a64d48aaedd61703bbbbf10742612c
[ "MIT" ]
null
null
null
tests/prompts/test_common.py
OakNinja/questionary
8373389422a64d48aaedd61703bbbbf10742612c
[ "MIT" ]
null
null
null
tests/prompts/test_common.py
OakNinja/questionary
8373389422a64d48aaedd61703bbbbf10742612c
[ "MIT" ]
null
null
null
import pytest from prompt_toolkit.document import Document from prompt_toolkit.input.defaults import create_pipe_input from prompt_toolkit.output import DummyOutput from prompt_toolkit.validation import ValidationError, Validator from questionary.prompts import common from questionary.prompts.common import Questionary...
28.565217
86
0.575777
5c68768128975a61703214c90065b7b292c1a084
3,060
py
Python
drf-sns/core/models.py
Yi-Gaoqiao/sns-api
24ec23522d474bcbae31e7781304c601e92c04a9
[ "MIT" ]
null
null
null
drf-sns/core/models.py
Yi-Gaoqiao/sns-api
24ec23522d474bcbae31e7781304c601e92c04a9
[ "MIT" ]
null
null
null
drf-sns/core/models.py
Yi-Gaoqiao/sns-api
24ec23522d474bcbae31e7781304c601e92c04a9
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from django.conf import settings def upload_path(instance, filename): """split file extension and store it""" ext = filename.split('.')[-1] # Add image folder under the '_media' fold...
29.708738
94
0.666013
baa5eebeb9ea5d260853a886399e7bae3d2f1472
2,450
py
Python
datasets/urdu_sentiment_corpus/urdu_sentiment_corpus.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
9
2021-04-26T14:43:52.000Z
2021-11-08T09:47:24.000Z
datasets/urdu_sentiment_corpus/urdu_sentiment_corpus.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
null
null
null
datasets/urdu_sentiment_corpus/urdu_sentiment_corpus.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
"""Urdu Sentiment Corpus""" from __future__ import absolute_import, division, print_function import os import datasets _CITATION = """ @inproceedings{khan2020usc, title={Urdu Sentiment Corpus (v1.0): Linguistic Exploration and Visualization of Labeled Datasetfor Urdu Sentiment Analysis.}, author={Khan, Muhamma...
32.236842
128
0.617959
bfb88e3e6f7d3810fe4cc77c2c5dbe63f9e98051
2,039
py
Python
test_something.py
Lenchik13/ironpython_training
3fbd45ac51cdddc58e806593acb09904603aa923
[ "Apache-2.0" ]
null
null
null
test_something.py
Lenchik13/ironpython_training
3fbd45ac51cdddc58e806593acb09904603aa923
[ "Apache-2.0" ]
null
null
null
test_something.py
Lenchik13/ironpython_training
3fbd45ac51cdddc58e806593acb09904603aa923
[ "Apache-2.0" ]
null
null
null
import clr import os.path project_dir = os.path.dirname(os.path.abspath(__file__)) import sys sys.path.append(os.path.join(project_dir, "TestStack.White.0.13.3\\lib\\net40\\")) sys.path.append(os.path.join(project_dir, "Castle.Core.3.3.0\\lib\\net40-client\\")) clr.AddReferenceByName('TestStack.White') from TestStack....
38.471698
114
0.77538
60aa8a13b1ed102461df067dee8804c4d41c0e18
1,356
py
Python
src/olympia/constants/scanners.py
anik31/addons-server
cecb61da98d6e830fb45a2b1d61b41e72812137e
[ "BSD-3-Clause" ]
2
2021-07-19T03:26:43.000Z
2021-07-24T03:12:52.000Z
src/olympia/constants/scanners.py
anik31/addons-server
cecb61da98d6e830fb45a2b1d61b41e72812137e
[ "BSD-3-Clause" ]
738
2021-05-31T08:12:17.000Z
2022-03-31T22:17:15.000Z
src/olympia/constants/scanners.py
championshuttler/addons-server
5d4c1bfbed2fc509ecc1f3f5065955996e057eeb
[ "BSD-3-Clause" ]
1
2021-07-19T03:26:52.000Z
2021-07-19T03:26:52.000Z
from django.utils.translation import gettext_lazy as _ CUSTOMS = 1 WAT = 2 YARA = 3 MAD = 4 SCANNERS = {CUSTOMS: 'customs', WAT: 'wat', YARA: 'yara', MAD: 'mad'} # Action IDs are also used for severity (the higher, the more severe). # The field is a PositiveSmallIntegerField, it should go up to 65535. NO_ACTION = 1...
22.983051
76
0.705752
1548d432831c02b6f6f52b87fd7160793bc14c15
3,715
py
Python
submission.py
cenktaskin/PSMNet
afd5566df9d101a543142da898fd46d0f331660e
[ "MIT" ]
null
null
null
submission.py
cenktaskin/PSMNet
afd5566df9d101a543142da898fd46d0f331660e
[ "MIT" ]
null
null
null
submission.py
cenktaskin/PSMNet
afd5566df9d101a543142da898fd46d0f331660e
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import random import torch import torch.nn as nn import torchvision.transforms as transforms import torch.nn.functional as F import numpy as np import time import math from models import * from PIL import Image parser = argparse.ArgumentParser(description...
29.959677
100
0.617766
a7dd165d3cde99c8de90b12cdb200422ab56c497
2,975
py
Python
council/member_wrapper.py
bentheiii/coiuncil
badf96ca580e4935a5686d974c99d8bfd708ebcf
[ "MIT" ]
null
null
null
council/member_wrapper.py
bentheiii/coiuncil
badf96ca580e4935a5686d974c99d8bfd708ebcf
[ "MIT" ]
null
null
null
council/member_wrapper.py
bentheiii/coiuncil
badf96ca580e4935a5686d974c99d8bfd708ebcf
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from council.council_member import CouncilMember from council.return_value import Postpone, Continue, Break, MemberAction class MemberWrapper(CouncilMember): def __init__(self, inner: CouncilMember): super().__init__() self.inner = CouncilMember.coerce(inner) ...
25
74
0.678655
4c5de77cd9cad40308a9e1ccba2da1f9ae6f5688
5,818
py
Python
src/molecule/shell.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
null
null
null
src/molecule/shell.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
null
null
null
src/molecule/shell.py
prity-k/molecule
4fe7e046b8d24dda91c783e7477331ea66b7dbc1
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
36.822785
128
0.722069
4788b6f70a3f9bf981b18b82b988c0430eb907cb
8,931
py
Python
.history/pages/intro_20220303162027.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
.history/pages/intro_20220303162027.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
.history/pages/intro_20220303162027.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
""" Off Multipage Cheatsheet https://github.com/daniellewisDL/streamlit-cheat-sheet @daniellewisDL : https://github.com/daniellewisDL """ import streamlit as st from pathlib import Path import base64 from modules.toc import * # Initial page config st.set_page_config( page_title='Code Compendium Intro Page', ...
28.262658
206
0.652223
8f104b5661836f5be7edc0ffb289f0055a1c9b2f
2,265
py
Python
api/models.py
DominikWolek/survey
358794ea1ed81ba7ba2ffe4a0897d9867455cf31
[ "MIT" ]
null
null
null
api/models.py
DominikWolek/survey
358794ea1ed81ba7ba2ffe4a0897d9867455cf31
[ "MIT" ]
null
null
null
api/models.py
DominikWolek/survey
358794ea1ed81ba7ba2ffe4a0897d9867455cf31
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.contrib.postgres.fields import ArrayField from django.utils import timezone class Survey(models.Model): name = models.CharField(max_length=200) def __str__(self): return self.name def questions(self): return self.question_set ...
26.964286
117
0.671082
94ad626f22b2935f1bb87d168fa6f40190b8dfb8
1,195
py
Python
katrain/gui/sound.py
jimmycheng603/katrain
05f04d117a3cf0325a82464c59f4c7f849caf30e
[ "MIT" ]
719
2020-02-13T22:17:53.000Z
2022-03-29T14:08:01.000Z
katrain/gui/sound.py
jimmycheng603/katrain
05f04d117a3cf0325a82464c59f4c7f849caf30e
[ "MIT" ]
370
2020-02-16T08:29:18.000Z
2022-03-31T14:25:25.000Z
katrain/gui/sound.py
jimmycheng603/katrain
05f04d117a3cf0325a82464c59f4c7f849caf30e
[ "MIT" ]
143
2020-04-02T14:33:47.000Z
2022-03-26T10:13:32.000Z
from kivy.clock import Clock from kivymd.app import MDApp from kivy.core.audio import SoundLoader from kivy.utils import platform cached_sounds = {} # prefer ffpyplayer on linux, then others, avoid gst and avoid or ffpyplayer on windows ranking = [("ffpy", 98 if platform in ["win",'macosx'] else -2), ("sdl", -1), ("g...
31.447368
102
0.635983
760d6cdb263ccf6f3b7e4b6361825e5bb33324c6
2,057
py
Python
data/kitti_split1/setup_depth.py
dennis-park-TRI/D4LCN
9258bfb31376b97ab16abee31bd0fec131236c7a
[ "MIT" ]
298
2019-12-13T09:21:44.000Z
2022-03-31T06:10:02.000Z
data/kitti_split1/setup_depth.py
kevin0525/D4LCN
aa87f2240c3f38377cc0122b591c56d44b2364dd
[ "MIT" ]
40
2019-12-18T02:48:59.000Z
2021-11-04T09:15:30.000Z
data/kitti_split1/setup_depth.py
kevin0525/D4LCN
aa87f2240c3f38377cc0122b591c56d44b2364dd
[ "MIT" ]
65
2019-12-17T01:02:41.000Z
2021-12-06T14:47:17.000Z
from importlib import import_module from getopt import getopt import scipy.io as sio import matplotlib.pyplot as plt from matplotlib.path import Path import numpy as np import pprint import sys import os import cv2 import math import shutil import re # stop python from writing so much bytecode sys.dont_write_bytecode ...
23.11236
130
0.638794
19467126d6ddce27f58e6ac54271799e762027f9
902
py
Python
setup.py
tiddlyweb/tiddlywebplugins.imaker
43b5f92c57c0ac1360595fc131f19ccd38d6eefc
[ "BSD-3-Clause" ]
null
null
null
setup.py
tiddlyweb/tiddlywebplugins.imaker
43b5f92c57c0ac1360595fc131f19ccd38d6eefc
[ "BSD-3-Clause" ]
1
2015-02-09T11:18:45.000Z
2015-02-09T11:18:45.000Z
setup.py
tiddlyweb/tiddlywebplugins.imaker
43b5f92c57c0ac1360595fc131f19ccd38d6eefc
[ "BSD-3-Clause" ]
null
null
null
AUTHOR = 'Chris Dent' AUTHOR_EMAIL = 'cdent@peermore.com' NAME = 'tiddlywebplugins.imaker' DESCRIPTION = 'Make TiddlyWeb instances' VERSION = '0.1.5' import os from setuptools import setup, find_packages # You should carefully review the below (install_requires especially). setup( namespace_packages = ['tiddly...
26.529412
86
0.670732
3754988848428c18a8256ac75618b1ea8b805280
3,073
py
Python
tests/test_experiment/test_core_metrics/test_classification.py
mv1388/AIToolbox
c64ac4810a02d230ce471d86b758e82ea232a7e7
[ "MIT" ]
3
2019-10-12T12:24:09.000Z
2020-08-02T02:42:43.000Z
tests/test_experiment/test_core_metrics/test_classification.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
3
2020-04-10T14:07:07.000Z
2020-04-22T19:04:38.000Z
tests/test_experiment/test_core_metrics/test_classification.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
null
null
null
import unittest import numpy as np from aitoolbox.experiment.core_metrics.classification import AccuracyMetric class TestAccuracyMetric(unittest.TestCase): def test_basic(self): acc_1 = AccuracyMetric([1.] * 100, [1.] * 100) self.assertEqual(acc_1.get_metric(), 1.) self.assertEqual(acc_1....
44.536232
75
0.609177
cf48a2f0889fad34af367125f066f50239bee8e9
2,465
py
Python
util/loader.py
ostwind/ProteinLatentRep
33d2667b6ee6dfeed0946fd9e2f22eef0e2960cc
[ "MIT" ]
2
2018-02-02T17:04:41.000Z
2018-02-12T19:24:12.000Z
util/loader.py
ostwind/ProteinLatentRep
33d2667b6ee6dfeed0946fd9e2f22eef0e2960cc
[ "MIT" ]
null
null
null
util/loader.py
ostwind/ProteinLatentRep
33d2667b6ee6dfeed0946fd9e2f22eef0e2960cc
[ "MIT" ]
null
null
null
''' loads pickles produced via preprocessing.py instantiates a pytorch loader according to input parameters ''' from torch.utils.data import TensorDataset,Dataset, DataLoader from util.preprocessing import * import numpy as np #denoising pass: clean and noisy unlabeled data #backtranslation pass: clean unlabeled d...
35.214286
102
0.715619
6200a1d7ae481c581194ca81881d64e0095d1558
27,316
py
Python
DPGAnalysis/HcalTools/python/remoteMonitoring_LED_IterMethod_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DPGAnalysis/HcalTools/python/remoteMonitoring_LED_IterMethod_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DPGAnalysis/HcalTools/python/remoteMonitoring_LED_IterMethod_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# choose run in /store/group/dpg_hcal/comm_hcal/USC/ #how to run: cmsRun remoteMonitoring_LED_IterMethod_cfg.py # # import FWCore.ParameterSet.Config as cms from Configuration.StandardSequences.Eras import eras process = cms.Process("TEST", eras.Run3) process.load("Configuration.StandardSequences.GeometryDB_cff") proce...
61.800905
139
0.408991
0c8c23c292559fc003bc3c881c284b608212e3e4
1,489
py
Python
sandbox/rocky/tf/envs/vec_env_executor.py
prosello/rllab
8677356874d41eb9354785500b554eaf635ece2e
[ "MIT" ]
10
2017-09-05T17:57:26.000Z
2021-11-10T20:54:09.000Z
sandbox/rocky/tf/envs/vec_env_executor.py
prosello/rllab
8677356874d41eb9354785500b554eaf635ece2e
[ "MIT" ]
null
null
null
sandbox/rocky/tf/envs/vec_env_executor.py
prosello/rllab
8677356874d41eb9354785500b554eaf635ece2e
[ "MIT" ]
18
2017-04-11T22:29:39.000Z
2021-01-11T13:45:50.000Z
from __future__ import print_function from __future__ import absolute_import import numpy as np import cPickle as pickle from sandbox.rocky.tf.misc import tensor_utils class VecEnvExecutor(object): def __init__(self, env, n, max_path_length): envs = [pickle.loads(pickle.dumps(env)) for _ in xrange(n)] ...
30.387755
82
0.634654
a4cd41feb1b104aa649386a74e5ebfff7c1e7975
2,136
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BindGatewayToEdgeInstanceRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BindGatewayToEdgeInstanceRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BindGatewayToEdgeInstanceRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "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...
34.451613
84
0.764981
3f25d121e9da11f38a2ce3d208f4fc48e6bc0d3f
6,168
py
Python
news_scrapper/news_scrapper/settings.py
maximeLpt/DL_project
754a81357579802b0b4fe82d1f663a33306f5abf
[ "Unlicense", "MIT" ]
null
null
null
news_scrapper/news_scrapper/settings.py
maximeLpt/DL_project
754a81357579802b0b4fe82d1f663a33306f5abf
[ "Unlicense", "MIT" ]
null
null
null
news_scrapper/news_scrapper/settings.py
maximeLpt/DL_project
754a81357579802b0b4fe82d1f663a33306f5abf
[ "Unlicense", "MIT" ]
null
null
null
# Scrapy settings for news_scrapper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-midd...
43.744681
123
0.746757
6a4566d9d37b79d83a3a2368300a84b873f81d83
630
py
Python
test/unit/Algorithms/OrdinaryPercolationTest.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
1
2021-03-30T21:38:26.000Z
2021-03-30T21:38:26.000Z
test/unit/Algorithms/OrdinaryPercolationTest.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
test/unit/Algorithms/OrdinaryPercolationTest.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
import OpenPNM ctrl = OpenPNM.Base.Controller() ctrl.loglevel = 60 class OrdinaryPercolationTest: def setup_test(self): self.net = OpenPNM.Network.Cubic(shape=[5, 5, 5]) self.geo = OpenPNM.Geometry.Toray090(network=self.net, pores=self.net.Ps, ...
39.375
65
0.507937
60d9d52461d8343be02188077e2f060a113873a5
13,257
py
Python
journalwatch.py
richli/scripts
dad9f12be4eec85579503a74fdb5bee6d9e40775
[ "Unlicense", "MIT" ]
null
null
null
journalwatch.py
richli/scripts
dad9f12be4eec85579503a74fdb5bee6d9e40775
[ "Unlicense", "MIT" ]
null
null
null
journalwatch.py
richli/scripts
dad9f12be4eec85579503a74fdb5bee6d9e40775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python """Find notable content in the journal and email it. Tested with Python 3.4 Inspired by: https://tim.siosm.fr/blog/2014/02/24/journald-log-scanner-python/ """ __author__ = 'Rich Li' __version__ = 0.3 # Version history: # v0.1 2014-06-14: Started # v0.2 2014-07-01: Updated to group output from ...
41.820189
145
0.506525
8f626067c35b6d5cabd0dae69eb287b2913a04b5
310
py
Python
bynge/default_settings.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
bynge/default_settings.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
bynge/default_settings.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
DEBUG = True SECRET_KEY = 'HaUmelXAUmfrn§8e8dA2nf=' LOG_DIR = '/tmp' LOG_LEVEL = 'INFO' LOG_FORMAT = '%(asctime)-15s %(filename)s: %(levelname)s: %(funcName)s(): %(lineno)d:\t%(message)s' ELASTIC_URL = 'localhost' UPLOAD_DIRECTORY = '/Users/jazz/playground/incoming' ALLOWED_EXTENSIONS = {'mp3', 'm4a', 'flac'}
38.75
99
0.703226
c772ad83c64953115d8b890119ea9ccae8958d89
9,484
py
Python
src/lib/models/backbones/resnet_dcn.py
luyu-fan/fsoccermot
90fa879a5c573f8bc87314f2df34f1a20afb4534
[ "MIT" ]
null
null
null
src/lib/models/backbones/resnet_dcn.py
luyu-fan/fsoccermot
90fa879a5c573f8bc87314f2df34f1a20afb4534
[ "MIT" ]
null
null
null
src/lib/models/backbones/resnet_dcn.py
luyu-fan/fsoccermot
90fa879a5c573f8bc87314f2df34f1a20afb4534
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Dequan Wang and Xingyi Zhou # ------------------------------------------------------------------------------ f...
34.867647
120
0.55873
ceae4abf88e6299cd3895d7d4066ac2a1ee2c824
2,724
py
Python
speech/setup.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
1
2019-12-09T11:40:28.000Z
2019-12-09T11:40:28.000Z
speech/setup.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
null
null
null
speech/setup.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
1
2021-12-27T05:31:45.000Z
2021-12-27T05:31:45.000Z
# Copyright 2018 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.310345
85
0.691263
97f07b1614d24815d4e9ffcac6abd867bdca02ec
1,466
py
Python
5a modularSafecracker.py
spoonsandhangers/Term2_Python
380464b353fac39ea357f779d720f553abb39dca
[ "CC0-1.0" ]
null
null
null
5a modularSafecracker.py
spoonsandhangers/Term2_Python
380464b353fac39ea357f779d720f553abb39dca
[ "CC0-1.0" ]
null
null
null
5a modularSafecracker.py
spoonsandhangers/Term2_Python
380464b353fac39ea357f779d720f553abb39dca
[ "CC0-1.0" ]
null
null
null
""" Using functions and while loops """ import random # imports the random library # set the safe code to "000" safeCode = "000" # define the functions that the menu will select. # menu item 1 manually enter a 3 digit code def enterCode(): safeCode = input("Enter a 3-digit code for the safe: ") return safeCode # ...
20.361111
190
0.678718
4ae7b627128814b4d042e0df616dcd6a333a367f
14,608
py
Python
source/tomopy/misc/phantom.py
WilliamJudge94/tomopy
301ee367d18ca6d18f2b9b18e2c531c33d4739e4
[ "BSD-3-Clause" ]
229
2015-02-13T08:10:58.000Z
2022-03-30T00:19:32.000Z
source/tomopy/misc/phantom.py
WilliamJudge94/tomopy
301ee367d18ca6d18f2b9b18e2c531c33d4739e4
[ "BSD-3-Clause" ]
459
2015-01-02T16:33:23.000Z
2022-03-29T05:30:11.000Z
source/tomopy/misc/phantom.py
WilliamJudge94/tomopy
301ee367d18ca6d18f2b9b18e2c531c33d4739e4
[ "BSD-3-Clause" ]
272
2015-01-11T13:59:58.000Z
2022-03-06T10:22:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ######################################################################### # Copyright (c) 2015-2019, UChicago Argonne, LLC. All rights reserved. # # # # Copyright 2015-2019. UChicago Argonne, LLC....
31.895197
76
0.546961
bbc3d1e44c77e089a85b6988352a5c5572edfac9
392
py
Python
ch1/blog/migrations/0002_auto_20201128_2238.py
dhk1349/Django-practice-ground
006eed76b8fa508dcbdd04dddd919921cd93902f
[ "MIT" ]
1
2020-11-26T15:30:28.000Z
2020-11-26T15:30:28.000Z
ch1/blog/migrations/0002_auto_20201128_2238.py
dhk1349/Django-practice-ground
006eed76b8fa508dcbdd04dddd919921cd93902f
[ "MIT" ]
null
null
null
ch1/blog/migrations/0002_auto_20201128_2238.py
dhk1349/Django-practice-ground
006eed76b8fa508dcbdd04dddd919921cd93902f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-11-28 13:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='post', options={'ordering': ('-modify_dt',), 'v...
21.777778
106
0.591837
954c9cc175e7d27ee2180d040d2e930576e67c98
22,867
py
Python
tests/pytests/unit/states/test_pkg.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
tests/pytests/unit/states/test_pkg.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
tests/pytests/unit/states/test_pkg.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
import logging import pytest import salt.modules.beacons as beaconmod import salt.states.beacon as beaconstate import salt.states.pkg as pkg import salt.utils.state as state_utils from salt.utils.event import SaltEvent from tests.support.mock import MagicMock, patch log = logging.getLogger(__name__) @pytest.fixture...
31.367627
113
0.489658
a4b7fba9c1ac33af3b22c8c7ddedb451451e12bb
1,693
py
Python
plugins/dramatica.py
gabriel-cr/discord.py
9a33fa89146c96394f62ee6c4165aa31f0d6da94
[ "MIT" ]
null
null
null
plugins/dramatica.py
gabriel-cr/discord.py
9a33fa89146c96394f62ee6c4165aa31f0d6da94
[ "MIT" ]
null
null
null
plugins/dramatica.py
gabriel-cr/discord.py
9a33fa89146c96394f62ee6c4165aa31f0d6da94
[ "MIT" ]
2
2018-10-09T15:42:59.000Z
2019-02-11T07:16:00.000Z
import re from urllib import parse import requests from lxml import html from requests import HTTPError from cloudbot import hook from cloudbot.util import formatting api_url = "http://encyclopediadramatica.se/api.php" ed_url = "http://encyclopediadramatica.se/" @hook.command() def drama(text, reply): """<phra...
28.694915
95
0.661548
6429ac99de1c57442482dfc0d3a3db939342c90d
2,306
py
Python
test/ec/utils.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/ec/utils.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/ec/utils.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
import pstats import sys from pathlib import Path from subprocess import run, PIPE, DEVNULL from itertools import product from functools import reduce from pyinstrument import Profiler as PyProfiler from cProfile import Profile as cProfiler def slow(func): func.slow = 1 return func def cartesian(*items): ...
32.478873
118
0.623591
9c53dcad0f0bd06f192e01e761f4c15df6f83eec
1,440
py
Python
examples/word_language_model/data.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
442
2018-10-17T14:59:26.000Z
2022-03-13T11:24:42.000Z
examples/word_language_model/data.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
7
2018-12-07T18:44:04.000Z
2020-11-19T11:25:23.000Z
examples/word_language_model/data.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
70
2018-10-18T01:18:16.000Z
2021-08-16T13:59:48.000Z
import os import torch class Dictionary(object): def __init__(self): self.word2idx = {} self.idx2word = [] def add_word(self, word): if word not in self.word2idx: self.idx2word.append(word) self.word2idx[word] = len(self.idx2word) - 1 return self.word2i...
28.8
67
0.527778
c93d59fa39630f61208d90e0dc4959741d2527cc
12,590
py
Python
pylot/planning/planning_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/planning/planning_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/planning/planning_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
from collections import deque import carla from erdos.op import Op from erdos.utils import setup_csv_logging, setup_logging from pylot.map.hd_map import HDMap import pylot.planning.cost_functions from pylot.planning.messages import WaypointsMessage from pylot.planning.utils import get_distance,\ get_waypoint_vec...
45.948905
79
0.645989
275c3b3a0683faf0134cae063da9b03e92e3ac35
6,410
py
Python
opennre/framework/sentence_re.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
3,284
2018-07-13T00:30:08.000Z
2022-03-30T07:07:36.000Z
opennre/framework/sentence_re.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
328
2018-07-13T02:45:05.000Z
2022-01-26T16:24:01.000Z
opennre/framework/sentence_re.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
803
2018-07-16T05:56:14.000Z
2022-03-29T20:12:22.000Z
import os, logging, json from tqdm import tqdm import torch from torch import nn, optim from .data_loader import SentenceRELoader from .utils import AverageMeter class SentenceRE(nn.Module): def __init__(self, model, train_path, val_path, test...
37.267442
141
0.483931
3963e893a36bc47fed7665c9683503793def74d1
688
py
Python
src/test_data.py
dadosjusbr/parser-mpro
6f10fd73c2a6fcba600b4503b5eca25282159ae0
[ "MIT" ]
null
null
null
src/test_data.py
dadosjusbr/parser-mpro
6f10fd73c2a6fcba600b4503b5eca25282159ae0
[ "MIT" ]
null
null
null
src/test_data.py
dadosjusbr/parser-mpro
6f10fd73c2a6fcba600b4503b5eca25282159ae0
[ "MIT" ]
null
null
null
import unittest from data import load file_names = [ "src/output_test/sheets/membros-ativos-contracheque-01-2020.csv", "src/output_test/sheets/membros-ativos-verbas-indenizatorias-01-2020.csv", ] class TestData(unittest.TestCase): # Validação para ver se a planilha não foi apagada no processo... de...
29.913043
102
0.706395
b7357d6dfdb6bdbf8eeef6d5e76fb3298a7b554a
1,447
py
Python
vasp-validator/src/vasp_validator/tests/test_tx_no_travel_rule.py
tanshuai/reference-wallet
e8efec4acc6af6e319cf075c10693ddf7754cc83
[ "Apache-2.0" ]
14
2020-12-17T08:03:51.000Z
2022-03-26T04:21:18.000Z
vasp-validator/src/vasp_validator/tests/test_tx_no_travel_rule.py
tanshuai/reference-wallet
e8efec4acc6af6e319cf075c10693ddf7754cc83
[ "Apache-2.0" ]
20
2020-12-15T12:02:56.000Z
2021-05-19T23:37:34.000Z
vasp-validator/src/vasp_validator/tests/test_tx_no_travel_rule.py
tanshuai/reference-wallet
e8efec4acc6af6e319cf075c10693ddf7754cc83
[ "Apache-2.0" ]
12
2020-12-10T16:35:27.000Z
2022-02-01T04:06:10.000Z
# Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 from ..vasp_proxy import VaspProxy, TxStatus CURRENCY = "XUS" def test_send_tx_no_travel_rule(validator, vasp_proxy: VaspProxy): """ Successfully send a transaction not requiring travel rule approval. """ dest_address...
32.155556
80
0.733932
4ebf73ab6d29994c2a5979d2aae741423afdd51d
2,490
py
Python
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_search_put_request1_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_search_put_request1_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/instances_instance_id_manage_search_put_request1_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
7
2021-02-11T19:48:57.000Z
2021-12-17T08:00:15.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
51.875
290
0.676305
1b84519f8fd87302dd3041f913d78f6e976d352f
114,463
py
Python
tensorflow/python/data/ops/dataset_ops.py
LucasSloan/tensorflow
eddf3635b41fd457b2a36cf17bba40352c4abc57
[ "Apache-2.0" ]
2
2019-03-14T14:51:00.000Z
2021-06-16T05:06:22.000Z
tensorflow/python/data/ops/dataset_ops.py
LucasSloan/tensorflow
eddf3635b41fd457b2a36cf17bba40352c4abc57
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/ops/dataset_ops.py
LucasSloan/tensorflow
eddf3635b41fd457b2a36cf17bba40352c4abc57
[ "Apache-2.0" ]
1
2018-08-02T10:50:35.000Z
2018-08-02T10:50:35.000Z
# 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...
37.418437
99
0.687716
2a4ae91b73a4971696e46837534ba2e8d548cd7e
806
py
Python
back_end/manage.py
Elmartin913/myAPI
9b11605088c35e7bb1c0841b0089d6f7bf6d39c0
[ "MIT" ]
null
null
null
back_end/manage.py
Elmartin913/myAPI
9b11605088c35e7bb1c0841b0089d6f7bf6d39c0
[ "MIT" ]
null
null
null
back_end/manage.py
Elmartin913/myAPI
9b11605088c35e7bb1c0841b0089d6f7bf6d39c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "back_end.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
35.043478
77
0.64268
8369768d67986f6bce46f63406fc4e751f795aac
1,189
py
Python
boost/libs/python/test/pickle1.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
11
2016-04-12T16:29:29.000Z
2021-06-28T11:01:57.000Z
boost/libs/python/test/pickle1.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
3
2018-10-31T19:35:14.000Z
2019-06-04T17:11:27.000Z
boost/libs/python/test/pickle1.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
9
2015-09-09T02:38:32.000Z
2021-01-30T00:24:24.000Z
# Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) r'''>>> import pickle1_ext >>> import pickle >>> pickle1_ext.world.__module__ 'pickle1_ext' >>> pickle1_ext.world.__safe...
28.309524
71
0.636669
f9450b8633d3041b049dc7495aa478644dc000ce
7,331
py
Python
py/classes.py
LeoLy77/Project-Plutus-Gold
0e1f300bfe9989c5d532d7c4f8e23e789c98f72e
[ "Unlicense", "MIT" ]
null
null
null
py/classes.py
LeoLy77/Project-Plutus-Gold
0e1f300bfe9989c5d532d7c4f8e23e789c98f72e
[ "Unlicense", "MIT" ]
null
null
null
py/classes.py
LeoLy77/Project-Plutus-Gold
0e1f300bfe9989c5d532d7c4f8e23e789c98f72e
[ "Unlicense", "MIT" ]
1
2021-05-17T10:24:38.000Z
2021-05-17T10:24:38.000Z
import numpy as np from sklearn.cluster import DBSCAN from sklearn import metrics from sklearn.datasets import make_blobs from sklearn.preprocessing import StandardScaler from sklearn.neighbors import NearestNeighbors import matplotlib.pyplot as plt from numpy.linalg import inv class Point: def __init__(self, x, y...
34.580189
131
0.558723
a9b4c73cdb82d5d35f6908821646540188dea943
15,068
py
Python
Generator_original.py
LEE-SEON-WOO/CRNN-Keras
d6900dd3f459e676dccf631c711d68cd1f0a689c
[ "MIT" ]
1
2019-12-17T12:13:54.000Z
2019-12-17T12:13:54.000Z
Generator_original.py
LEE-SEON-WOO/CRNN-Keras
d6900dd3f459e676dccf631c711d68cd1f0a689c
[ "MIT" ]
null
null
null
Generator_original.py
LEE-SEON-WOO/CRNN-Keras
d6900dd3f459e676dccf631c711d68cd1f0a689c
[ "MIT" ]
null
null
null
import os, random import cv2, argparse import numpy as np import sys sys.path.append(os.getcwd()) sys.path.append('.') def random_bright(img): img = cv2.cvtColor(img, cv2.COLOR_RGB2HSV) img = np.array(img, dtype=np.float64) random_bright = .5 + np.random.uniform() img[:, :, 2] = img[:, :, 2] * random_...
35.04186
90
0.497876
527fe826ffb7122f3eef99939d9c97419a6eb103
446
py
Python
sdk/python/pulumi_azure_native/kubernetes/v20210401preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetes/v20210401preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetes/v20210401preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .connected_cluster import * from .get_c...
31.857143
80
0.757848
d331c00c3e8e6e3074bcd7364830f88259bf1035
1,043
py
Python
Python-3/basic_examples/python_max_examples.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/python_max_examples.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/python_max_examples.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
# max of string s = 'abcCba' print(max(s)) print('c' > 'C') # max with tuple tuple_numbers = (1, 2, 3, 4) print(max(tuple_numbers)) # max of list list_numbers = [1, 2, 3, -4] print(max(list_numbers)) class Data: id = 0 def __init__(self, i): self.id = i def __str__(self): return 'Data...
16.822581
45
0.62512
7db10428f804efceb7323abf470f5af625962f94
18,269
py
Python
prysm/geometry.py
JakobSilbermann/prysm
01fb5572b7a1ac5e3ee095f89f133166050af719
[ "MIT" ]
null
null
null
prysm/geometry.py
JakobSilbermann/prysm
01fb5572b7a1ac5e3ee095f89f133166050af719
[ "MIT" ]
null
null
null
prysm/geometry.py
JakobSilbermann/prysm
01fb5572b7a1ac5e3ee095f89f133166050af719
[ "MIT" ]
null
null
null
"""Functions used to generate various geometrical constructs.""" from scipy import spatial from .conf import config from .mathops import engine as e from .coordinates import make_rho_phi_grid, cart_to_polar, polar_to_cart, make_xy_grid def mask_cleaner(mask_or_str_or_tuple, samples): """Return an array if given...
27.47218
132
0.606054
afca760e55ba4b4072611f144ce221b0bdb8e2d3
1,065
py
Python
src/ext/errors_extensions.py
helish88/AnimateaBot
2ff03b62a31ef19ce4436858ed38c090682e3629
[ "Apache-2.0" ]
null
null
null
src/ext/errors_extensions.py
helish88/AnimateaBot
2ff03b62a31ef19ce4436858ed38c090682e3629
[ "Apache-2.0" ]
null
null
null
src/ext/errors_extensions.py
helish88/AnimateaBot
2ff03b62a31ef19ce4436858ed38c090682e3629
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import typing if typing.TYPE_CHECKING: from src.typehints import ClsDecorator __all__: tuple[str, ...] = ("overload_error_message",) _DEFAULT_ERRMSG_TEMPLATE: typing.Final[str] = "An error was thrown for the following reason -> " def overload_error_message(*, template: str...
32.272727
96
0.616901
57661b73a48f7d665d6f011071b429d8f56cfb2a
313
py
Python
routes/routes.py
ThugLifed0233/SimpleMath-Flask
c102cbd4d64bd74f9f87640ef7c4279ef2709fbe
[ "MIT" ]
null
null
null
routes/routes.py
ThugLifed0233/SimpleMath-Flask
c102cbd4d64bd74f9f87640ef7c4279ef2709fbe
[ "MIT" ]
null
null
null
routes/routes.py
ThugLifed0233/SimpleMath-Flask
c102cbd4d64bd74f9f87640ef7c4279ef2709fbe
[ "MIT" ]
null
null
null
from flask import Blueprint router = Blueprint("router", __name__) @router.route("/check") def check(): return "Congratulations! Your app works. :)" @router.route("/hello") def hello(): return "Hacktoberfest is cool!" @router.route("/add", methods=["POST"]) def add(): # Add logic here return
18.411765
48
0.664537
7e7c422507cc19385b7583fa598d4cfabb31b7cb
1,031
py
Python
myproject/urls.py
Palash51/kd
2f28adbff98756a84906a4170b428c3298e9273d
[ "MIT" ]
null
null
null
myproject/urls.py
Palash51/kd
2f28adbff98756a84906a4170b428c3298e9273d
[ "MIT" ]
null
null
null
myproject/urls.py
Palash51/kd
2f28adbff98756a84906a4170b428c3298e9273d
[ "MIT" ]
null
null
null
"""myproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
30.323529
77
0.694471
c217ee4222d87576d077fdde17f067d0d7093f1f
6,158
py
Python
test.py
vargaz/emsdk
aa2812b8bab743e08452ca1ebeedaf50e3bb677c
[ "MIT" ]
1
2019-08-20T03:21:53.000Z
2019-08-20T03:21:53.000Z
test.py
vargaz/emsdk
aa2812b8bab743e08452ca1ebeedaf50e3bb677c
[ "MIT" ]
null
null
null
test.py
vargaz/emsdk
aa2812b8bab743e08452ca1ebeedaf50e3bb677c
[ "MIT" ]
null
null
null
import json import os import shlex import shutil import subprocess import sys import tempfile # Utilities def listify(x): if type(x) == list or type(x) == tuple: return x return [x] def check_call(cmd): subprocess.check_call(shlex.split(cmd)) def checked_call_with_output(cmd, expected=None, unexpected=Non...
36.654762
140
0.720201
93fc61c05cdf576126d528bff275c0e4c4217699
596
py
Python
hatefull/apps/answers/migrations/0002_auto_20160214_0028.py
MauricioDinki/hatefull
fdefd69251ea136798ff483bfa90a3b08a871ec7
[ "BSD-3-Clause" ]
null
null
null
hatefull/apps/answers/migrations/0002_auto_20160214_0028.py
MauricioDinki/hatefull
fdefd69251ea136798ff483bfa90a3b08a871ec7
[ "BSD-3-Clause" ]
null
null
null
hatefull/apps/answers/migrations/0002_auto_20160214_0028.py
MauricioDinki/hatefull
fdefd69251ea136798ff483bfa90a3b08a871ec7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-14 06:28 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('answers', '0001_initial'), ] operations = [ migrations.RemoveField( mode...
21.285714
47
0.557047
5f28c24aed7358468aeb53dc1b9c94b1cfb1a1a7
3,793
py
Python
test/unit-test/flbase.strategies.FedAvg.py
Yutong-Dai/FLBase
1ff11799a5248f4c25a5b85e0588f567c7f33454
[ "MIT" ]
null
null
null
test/unit-test/flbase.strategies.FedAvg.py
Yutong-Dai/FLBase
1ff11799a5248f4c25a5b85e0588f567c7f33454
[ "MIT" ]
null
null
null
test/unit-test/flbase.strategies.FedAvg.py
Yutong-Dai/FLBase
1ff11799a5248f4c25a5b85e0588f567c7f33454
[ "MIT" ]
null
null
null
''' # File: flbase.strategies.FedAvg.py # Project: unit-test # Created Date: 2021-12-19 11:31 # Author: Yutong Dai yutongdai95@gmail.com # ----- # Last Modified: 2022-02-18 3:27 # Modified By: Yutong Dai yutongdai95@gmail.com # # This code is published under the MIT License. # ----- # HISTORY: # Date By Comments...
42.617978
185
0.696019
33db582effa6f1a56f40072d4d523bf2efce6e2e
3,360
py
Python
examples/bearable-test.py
kevinjwalters/CircuitPython_Bearable
a9dcc0750096ec5514781694a913fafe701f0f3c
[ "MIT" ]
1
2018-06-19T21:38:50.000Z
2018-06-19T21:38:50.000Z
examples/bearable-test.py
kevinjwalters/Adafruit_CircuitPython_Bearable
a9dcc0750096ec5514781694a913fafe701f0f3c
[ "MIT" ]
2
2018-06-24T23:27:40.000Z
2019-06-14T10:37:07.000Z
examples/bearable-test.py
kevinjwalters/CircuitPython_Bearable
a9dcc0750096ec5514781694a913fafe701f0f3c
[ "MIT" ]
null
null
null
# bearable-test v1.0 # # tested with CircuitPython 2.2.0 on GEMMA M0 with 2.2k pull-up resistors # copy this file to Gemma M0 as main.py # needs lib/adafruit_bus_device/i2c_device.mpy and lib/bearable.py # MIT License # Copyright (c) 2018 Kevin J. Walters # Permission is hereby granted, free of charge,...
25.454545
81
0.672619
6a8df4bc9b86516c6ddee794cb688223f5cb38c9
155
py
Python
configs/path_cfg.py
seominseok0429/motsynth-baselines
e5f3676408af021055addacef407af15fc0036f0
[ "MIT" ]
7
2022-02-24T06:31:25.000Z
2022-03-30T17:42:14.000Z
configs/path_cfg.py
seominseok0429/motsynth-baselines
e5f3676408af021055addacef407af15fc0036f0
[ "MIT" ]
7
2022-02-27T06:20:37.000Z
2022-03-28T07:30:10.000Z
configs/path_cfg.py
seominseok0429/motsynth-baselines
e5f3676408af021055addacef407af15fc0036f0
[ "MIT" ]
2
2022-03-21T06:49:47.000Z
2022-03-23T18:59:32.000Z
MOTSYNTH_ROOT = '/storage/user/brasoand/MOTSynth' MOTCHA_ROOT = '/storage/slurm/brasoand/mpntrack' OUTPUT_DIR = '/storage/slurm/brasoand/motsynth_output'
51.666667
55
0.8
6dd8c68bd6a633bd859be29764674e34bc774e7a
94
py
Python
caluma/core/tests/test_urls.py
czosel/caluma
4a3e81b2000961ab934bfc1c6840ec00f0ba2c19
[ "MIT" ]
null
null
null
caluma/core/tests/test_urls.py
czosel/caluma
4a3e81b2000961ab934bfc1c6840ec00f0ba2c19
[ "MIT" ]
1
2020-07-11T01:07:44.000Z
2020-07-11T01:07:44.000Z
caluma/core/tests/test_urls.py
czosel/caluma
4a3e81b2000961ab934bfc1c6840ec00f0ba2c19
[ "MIT" ]
null
null
null
from django.urls import reverse def test_graphql_url(client): assert reverse("graphql")
15.666667
31
0.765957
0235497261986eeabb238960faf27f252611a249
4,407
py
Python
component-catalog-connectors/kfp-example-components-connector/kfp_examples_connector/examples_connector.py
kiersten-stokes/examples
1330bac580354b37d5dd00ec5ef94eae1b93fb13
[ "BSD-3-Clause" ]
44
2020-07-01T16:19:59.000Z
2022-03-09T12:41:37.000Z
component-catalog-connectors/kfp-example-components-connector/kfp_examples_connector/examples_connector.py
kiersten-stokes/examples
1330bac580354b37d5dd00ec5ef94eae1b93fb13
[ "BSD-3-Clause" ]
56
2020-06-15T21:55:29.000Z
2022-03-30T22:01:03.000Z
component-catalog-connectors/kfp-example-components-connector/kfp_examples_connector/examples_connector.py
kiersten-stokes/examples
1330bac580354b37d5dd00ec5ef94eae1b93fb13
[ "BSD-3-Clause" ]
44
2020-06-15T17:13:58.000Z
2022-03-28T19:41:34.000Z
# # Copyright 2018-2021 Elyra 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 writ...
41.971429
110
0.657136
a1f8dc65c60c2fb456b29718527c5c48e873b61a
4,523
py
Python
core/domain/interaction_registry_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
core/domain/interaction_registry_test.py
danigrim/oppia
e54f5cef31bb8c9e2802ba2b62695b4352774bf9
[ "Apache-2.0" ]
2
2019-09-11T23:11:48.000Z
2019-11-29T06:04:52.000Z
core/domain/interaction_registry_test.py
danigrim/oppia
e54f5cef31bb8c9e2802ba2b62695b4352774bf9
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
36.772358
78
0.70639
091721813d5d4f5121228bbef07183dbe27995a9
820
py
Python
example/notes/migrations/0001_initial.py
xunil154/ExampleREST
8c536d6368101857181e5eb6e6af893f4cc0e005
[ "MIT" ]
null
null
null
example/notes/migrations/0001_initial.py
xunil154/ExampleREST
8c536d6368101857181e5eb6e6af893f4cc0e005
[ "MIT" ]
null
null
null
example/notes/migrations/0001_initial.py
xunil154/ExampleREST
8c536d6368101857181e5eb6e6af893f4cc0e005
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
29.285714
114
0.591463
568ee9adb8a79ce729f78144f88efb07ddb6f1d0
1,347
py
Python
VMEncryption/test/console_logger.py
shridpant/azure-linux-extensions
4b5e66f33d5b93b15b427a9438931f0414f12a6e
[ "Apache-2.0" ]
266
2015-01-05T04:13:15.000Z
2022-03-24T17:52:51.000Z
VMEncryption/test/console_logger.py
shridpant/azure-linux-extensions
4b5e66f33d5b93b15b427a9438931f0414f12a6e
[ "Apache-2.0" ]
703
2015-01-27T07:16:57.000Z
2022-03-29T09:01:23.000Z
VMEncryption/test/console_logger.py
shridpant/azure-linux-extensions
4b5e66f33d5b93b15b427a9438931f0414f12a6e
[ "Apache-2.0" ]
276
2015-01-20T11:11:15.000Z
2022-03-24T12:40:49.000Z
#!/usr/bin/env python # # ********************************************************* # Copyright (c) Microsoft. All rights reserved. # # Apache 2.0 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 # dis...
32.071429
162
0.62435
e339846cb2d820500c4c2719f56797709b938ca0
77
py
Python
mfecfe/tests/test_enviar_pagamento.py
kmee/mfecfe
2f947346cd7b5e6fe95b846eedb6ff45e121ab6e
[ "Apache-2.0" ]
3
2020-06-20T02:43:40.000Z
2021-03-04T17:23:41.000Z
mfecfe/tests/test_enviar_pagamento.py
kmee/mfesat
2f947346cd7b5e6fe95b846eedb6ff45e121ab6e
[ "Apache-2.0" ]
5
2017-11-28T15:35:21.000Z
2018-11-06T12:54:01.000Z
mfecfe/tests/test_enviar_pagamento.py
kmee/mfesat
2f947346cd7b5e6fe95b846eedb6ff45e121ab6e
[ "Apache-2.0" ]
2
2018-11-30T05:51:48.000Z
2021-01-22T14:56:14.000Z
def test_enviar_pagamento(cliente): resposta = cliente.enviar_pagamento()
38.5
41
0.805195
89e566927cbac2bb31a887e8351be83007ec7b8d
7,822
py
Python
innocu.py/api.py
sugus-labs/innocu.py
432a6996d8894f1094d2eb712c209acaaa584bea
[ "MIT" ]
1
2022-02-03T21:26:22.000Z
2022-02-03T21:26:22.000Z
innocu.py/api.py
sugus-labs/innocu.py
432a6996d8894f1094d2eb712c209acaaa584bea
[ "MIT" ]
null
null
null
innocu.py/api.py
sugus-labs/innocu.py
432a6996d8894f1094d2eb712c209acaaa584bea
[ "MIT" ]
null
null
null
from datetime import date, timedelta import pprint from requests import Session import sys import vars as ss pp = pprint.PrettyPrinter(indent = 4) yesterday_dt = date.today() - timedelta(days = 1) yesterday_str = yesterday_dt.strftime('%d-%m-%Y00:00:00') class Elec: __iber_domain = "https://www.i-de.es" __ib...
38.722772
216
0.586551
a001372d3d81728c7713e95d4a132dbdd8aeb77b
7,764
py
Python
src/channcap_exp/ignore_datasets/20161212_O3_RBS1027_mwc_experiment/processing.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
2
2020-08-21T04:06:12.000Z
2022-02-09T07:36:58.000Z
src/channcap_exp/ignore_datasets/20161212_O3_RBS1027_mwc_experiment/processing.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
null
null
null
src/channcap_exp/ignore_datasets/20161212_O3_RBS1027_mwc_experiment/processing.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
2
2020-04-29T17:43:28.000Z
2020-09-09T00:20:16.000Z
import sys import pickle import os import glob import re import datetime import itertools # Our numerical workhorses import numpy as np from sympy import mpmath import scipy.optimize import scipy.special import scipy.integrate import pandas as pd # Import libraries to parallelize processes from joblib import Parallel...
36.622642
82
0.555255
dcd5ccb1d2df2eb47b50c5bb5dcb6b5ce92b7741
4,623
py
Python
cohesity_management_sdk/models/smb_permission.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/smb_permission.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/smb_permission.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class SMBPermission(object): """Implementation of the 'SMB Permission.' model. Specifies information about a single SMB permission. Attributes: access (AccessEnum): Specifies the read/write access to the SMB share. 'kReadyOnly' ...
40.552632
81
0.622972
bce28483bd0bfd2add1850a78ef8beb6b06ae4b9
7,070
py
Python
python/common/acllite/utils.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
25
2020-11-20T09:01:35.000Z
2022-03-29T10:35:38.000Z
python/common/acllite/utils.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
5
2021-02-28T20:49:37.000Z
2022-03-04T21:50:27.000Z
python/common/acllite/utils.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
16
2020-12-06T07:26:13.000Z
2022-03-01T07:51:55.000Z
import numpy as np import acl import constants as const from acllite_logger import log_error, log_info import time from functools import wraps DEBUG = True def check_ret(message, ret_int): """Check int value is 0 or not Args: message: output log str ret_int: check value that type is int ""...
28.508065
75
0.612588
29ecd54a82ba4557022fa2ca1e44bb7ba95beaf0
517
py
Python
api/gunicorn.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
6
2017-06-20T09:44:03.000Z
2018-07-28T06:44:10.000Z
api/gunicorn.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
null
null
null
api/gunicorn.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
3
2017-09-23T16:48:18.000Z
2018-05-26T19:12:12.000Z
# Gunicorn configuration file. bind = '0.0.0.0:9897' daemon = False workers = 5 worker_class = 'sync' worker_connections = 1000 threads = 10 #restart after reach max_requests. bypass the memory continuous climbing up issues. max_requests = 5000 timeout = 300 # raw_env = 'RPS_WEB_DEPLOY_MODE=PROD' proc_name = 'rp...
17.827586
99
0.682785
1d3afc459fe315a2ad9e8860101fa66b1406cb0b
20,397
py
Python
tcex/playbook/playbook_create.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/playbook/playbook_create.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/playbook/playbook_create.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""Playbook Create""" # standard library import base64 import json import logging from typing import Any, Dict, Iterable, List, Optional, Union # third-party from pydantic import BaseModel # first-party from tcex.key_value_store import KeyValueApi, KeyValueRedis from tcex.utils.utils import Utils # get tcex logger l...
35.910211
100
0.615826
cf25b511d08f12079d196a2393ea93fc68bef6ad
3,984
py
Python
docs/conf.py
amangoel185/boost-histogram
4de56da56a776f429c4685c0b5c64149d63c2768
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
amangoel185/boost-histogram
4de56da56a776f429c4685c0b5c64149d63c2768
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
amangoel185/boost-histogram
4de56da56a776f429c4685c0b5c64149d63c2768
[ "BSD-3-Clause" ]
null
null
null
# To regenerate API docs: # sphinx-apidoc -o api ../src/boost_histogram -M -f -t template/ # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setu...
28.056338
79
0.674197
c3a193cde7229d1331dfcb3f7e88bbf61c6dc3bb
1,644
py
Python
src/python/WMCore/BossAir/MySQL/LoadByWMBSID.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/BossAir/MySQL/LoadByWMBSID.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/BossAir/MySQL/LoadByWMBSID.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _LoadByWMBSID_ MySQL implementation for loading a job by WMBS info """ from WMCore.Database.DBFormatter import DBFormatter class LoadByWMBSID(DBFormatter): """ _LoadByWMBSID_ Load all jobs in full by WMBS ID and retry count """ sql = """SELECT rj.wmbs_id AS jobid, rj....
32.235294
84
0.600973
15f4b603d606189b081d387107dda152e7be84d0
969
py
Python
recursion/python/fibonacci.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
2
2020-08-24T18:39:12.000Z
2020-08-30T06:45:26.000Z
recursion/python/fibonacci.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
15
2020-08-25T04:29:15.000Z
2021-06-28T18:26:44.000Z
recursion/python/fibonacci.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
4
2021-06-15T03:56:56.000Z
2021-06-29T07:34:27.000Z
#O(2^n) solution #Not a good solution because along with its complex recursion tree, # it also take O(N) space in stack for N function calls def fibonacci_term(n): if n==1: return 0 elif n==2: return 1 else: return fibonacci_term(n-1) + fibonacci_term(n-2) #Good solution using Memoi...
29.363636
87
0.68937
0cb67c7fa0292ca07736baa5c1d2ccb50af3e70c
5,153
py
Python
entities/Film.py
Sushant/quest
436d77dd4139817ec4a883c6d42e4e89422f5e9a
[ "Unlicense", "MIT" ]
null
null
null
entities/Film.py
Sushant/quest
436d77dd4139817ec4a883c6d42e4e89422f5e9a
[ "Unlicense", "MIT" ]
2
2021-03-19T21:48:45.000Z
2021-03-25T21:38:42.000Z
entities/Film.py
Sushant/quest
436d77dd4139817ec4a883c6d42e4e89422f5e9a
[ "Unlicense", "MIT" ]
null
null
null
from Entity import Entity import wolframalpha import json import urllib import os import sys CWD = os.path.dirname(__file__) path = os.path.abspath(os.path.join(CWD, '..')) if not path in sys.path: sys.path.insert(1, path) del path from lib import params from lib import cache from lib import threadpool class Fil...
31.042169
87
0.584514
e1a56dc51a6ae9a07d95114e6845889ad6d3d891
4,509
py
Python
keras_textclassification/m02_TextCNN/train.py
cdj0311/Keras-TextClassification
b414894b8d34f545014db133d70b9d8447a90f12
[ "MIT" ]
null
null
null
keras_textclassification/m02_TextCNN/train.py
cdj0311/Keras-TextClassification
b414894b8d34f545014db133d70b9d8447a90f12
[ "MIT" ]
null
null
null
keras_textclassification/m02_TextCNN/train.py
cdj0311/Keras-TextClassification
b414894b8d34f545014db133d70b9d8447a90f12
[ "MIT" ]
1
2020-03-20T10:32:51.000Z
2020-03-20T10:32:51.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/3 10:51 # @author :Mo # @function :train of TextCNN with baidu-qa-2019 in question title # 适配linux import pathlib import sys import os project_path = str(pathlib.Path(os.path.abspath(__file__)).parent.parent.parent) sys.path.append(project_p...
49.01087
191
0.607008
cd34a9be41414ca4970652a78d9ec01cbf13ed10
615
py
Python
test/mitmproxy/addons/test_check_ca.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
4
2018-03-14T03:47:22.000Z
2018-06-28T08:00:39.000Z
test/mitmproxy/addons/test_check_ca.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
1
2021-05-11T20:51:11.000Z
2021-05-11T20:51:11.000Z
test/mitmproxy/addons/test_check_ca.py
00cool/project-X
a76988a07311a6e9706197d1ca5c7c5961cfaf9a
[ "MIT" ]
1
2018-04-22T15:43:46.000Z
2018-04-22T15:43:46.000Z
import pytest from unittest import mock from mitmproxy.addons import check_ca from mitmproxy.test import taddons class TestCheckCA: @pytest.mark.parametrize('expired', [False, True]) def test_check_ca(self, expired): msg = 'The mitmproxy certificate authority has expired!' with taddons.cont...
30.75
109
0.689431
91e10d467f621604c10a7a22d6117d3c9602c114
865
py
Python
bimt/indexer/indexer.py
mtsz-thiago/bimt
605c573fc2926b47dc2e29b712a9d742a7afae29
[ "MIT" ]
null
null
null
bimt/indexer/indexer.py
mtsz-thiago/bimt
605c573fc2926b47dc2e29b712a9d742a7afae29
[ "MIT" ]
null
null
null
bimt/indexer/indexer.py
mtsz-thiago/bimt
605c573fc2926b47dc2e29b712a9d742a7afae29
[ "MIT" ]
null
null
null
import re from bimt.indexer.inverted_list import InvertedIndex from sklearn.feature_extraction.text import TfidfTransformer class VectorModel(): def __init__(self, inverted_list): self.inverted_list = inverted_list self.eliminate_unwanted_tokens() self.tfidf_model = TfidfTransformer().fit...
30.892857
86
0.710983
182122981502e273af0ed2b9d662fea4d453deda
1,669
py
Python
msoffcrypto/format/common.py
jackydo/msoffcrypto-tool
a161b9ddf295d5c33064c58be1b53751c235a787
[ "MIT" ]
336
2018-04-23T16:07:18.000Z
2022-03-24T08:23:38.000Z
msoffcrypto/format/common.py
jackydo/msoffcrypto-tool
a161b9ddf295d5c33064c58be1b53751c235a787
[ "MIT" ]
58
2018-05-07T03:50:42.000Z
2022-02-06T15:08:40.000Z
Lib/site-packages/msoffcrypto/format/common.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
75
2018-05-06T11:02:10.000Z
2022-03-05T15:28:09.000Z
import logging from struct import unpack logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) # https://msdn.microsoft.com/en-us/library/dd926359(v=office.12).aspx def _parse_encryptionheader(blob): (flags,) = unpack("<I", blob.read(4)) # if mode == 'strict': compare values with spec...
32.096154
69
0.620132
6f1aaf849f21f9f17a636a8108efe32934c2f391
6,728
py
Python
sdk/python/pulumi_aws/wafv2/web_acl_association.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafv2/web_acl_association.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafv2/web_acl_association.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
45.459459
208
0.656361
2f9f0a98b64ed83cf66bb7b0c77491b8dd588459
4,257
py
Python
hubspot/crm/extensions/cards/models/card_actions.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
1
2020-11-12T08:46:32.000Z
2020-11-12T08:46:32.000Z
hubspot/crm/extensions/cards/models/card_actions.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/crm/extensions/cards/models/card_actions.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CRM cards Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user. # noqa: E501 The version of...
33.785714
264
0.601362
e8ce39946293cb1cb4cb01c594833959e6279399
1,961
py
Python
train.py
sofiryef/Recycle-GAN
892814652e978df7f6bf68f24fd5921974c8c30c
[ "MIT" ]
null
null
null
train.py
sofiryef/Recycle-GAN
892814652e978df7f6bf68f24fd5921974c8c30c
[ "MIT" ]
null
null
null
train.py
sofiryef/Recycle-GAN
892814652e978df7f6bf68f24fd5921974c8c30c
[ "MIT" ]
null
null
null
import time from options.train_options import TrainOptions from data.data_loader import CreateDataLoader from models.models import create_model #from util.visualizer import visualizer opt = TrainOptions().parse() data_loader = CreateDataLoader(opt) dataset = data_loader.load_data() dataset_size = len(data_loader) prin...
36.314815
99
0.657318
7745cde7b442d97fe7afeb16e8456e8dd3885f87
2,017
py
Python
docs/conf.py
magicmq/ItemAPI
50c1e3cc24e1c02fd39a32f1423e4d3d3d733bb5
[ "Apache-2.0" ]
null
null
null
docs/conf.py
magicmq/ItemAPI
50c1e3cc24e1c02fd39a32f1423e4d3d3d733bb5
[ "Apache-2.0" ]
1
2021-02-20T21:53:06.000Z
2021-02-20T21:53:06.000Z
docs/conf.py
magicmq/ItemAPI
50c1e3cc24e1c02fd39a32f1423e4d3d3d733bb5
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.065574
79
0.667824
3feed450a33b3001414deeec190f4cb40a522cbd
330
py
Python
ACM-Solution/FACT1.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/FACT1.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
ACM-Solution/FACT1.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
from sys import stdin,stdout for i in range(5,1,-1):print(i) out=[] def calc(a,b,c): s=(a+b+c)/2 return pow((s*(s-a)*(s-b)*(s-c)),.5) for i in[0]*int(stdin.readline()): input() x=list(map(int,input().split())) ans=[0]*len(x) x.sort() for i in range() print("\n".jo...
16.5
41
0.5
955e129b3ca5438b4f2d5b880791e3e03920de09
5,438
py
Python
edk2toolext/base_abstract_invocable.py
joschock/edk2-pytool-extensions
34cd69415f8a8363291e8ae6f7c6bddec7ac9967
[ "BSD-2-Clause-Patent" ]
32
2019-07-09T21:43:57.000Z
2022-03-31T01:43:59.000Z
edk2toolext/base_abstract_invocable.py
joschock/edk2-pytool-extensions
34cd69415f8a8363291e8ae6f7c6bddec7ac9967
[ "BSD-2-Clause-Patent" ]
217
2019-08-07T01:12:27.000Z
2022-03-30T07:28:24.000Z
edk2toolext/base_abstract_invocable.py
joschock/edk2-pytool-extensions
34cd69415f8a8363291e8ae6f7c6bddec7ac9967
[ "BSD-2-Clause-Patent" ]
28
2019-08-05T17:23:08.000Z
2022-03-04T00:20:04.000Z
# @file base_abstract_invocable # Base class for an Invocable. Loads environment before calling subclass. ## # Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent ## import os import sys import logging from datetime import datetime from edk2toolext import edk2_logging from edk2toolext.e...
36.253333
103
0.641596
e86fd8156d2ca35ae6f627030a1240a96b2912a3
5,927
py
Python
teaser/logic/buildingobjects/calculation/ibpsa.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
null
null
null
teaser/logic/buildingobjects/calculation/ibpsa.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
null
null
null
teaser/logic/buildingobjects/calculation/ibpsa.py
Ja98/TEASER
1bb782a01ce1b38c4abecb9c6ecc4d59f1ba21a3
[ "MIT" ]
null
null
null
# Created December 2016 # TEASER 4 Development Team """This module includes IBPSA calculation class """ import os import numpy as np import scipy.io import teaser.logic.utilities as utilities class IBPSA(object): """IBPSA Class This class holds functions to sort and partly rewrite zone and building a...
34.063218
79
0.604859
5e34747d5a5d1d4080c402910a2c1d34fb63b9a7
537
py
Python
manage.py
collinmutembei/III
03c48e4dfdd05ce999c658d9c236d67aa9554f08
[ "MIT" ]
2
2017-02-03T23:21:48.000Z
2017-04-16T21:36:59.000Z
manage.py
collinmutembei/III
03c48e4dfdd05ce999c658d9c236d67aa9554f08
[ "MIT" ]
1
2018-08-13T19:53:14.000Z
2018-10-22T18:40:40.000Z
manage.py
collinmutembei/III
03c48e4dfdd05ce999c658d9c236d67aa9554f08
[ "MIT" ]
1
2018-11-07T19:37:03.000Z
2018-11-07T19:37:03.000Z
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plana.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are yo...
33.5625
73
0.685289