hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795d5b84df825747a262fdbf3c4b14d02af7ae99
588
py
Python
L1Trigger/L1TCalorimeter/python/caloStage1JetSF_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/L1TCalorimeter/python/caloStage1JetSF_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/L1TCalorimeter/python/caloStage1JetSF_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# -*- coding: utf-8 -*- # # flake8: noqa # Eeg_EHSums, physics LUTs (new: CRAFTPhysicsV1 for HCAL), includes HF AND EE import FWCore.ParameterSet.Config as cms jetSF_8TeV_data = cms.vdouble( 1.27997, 10.0382, 1.45051, 6.49017, 1.52978, 7.53412, 1.61689, 10.1012, 1.29395, 18.7129, 1.22278, 23.6606, 1.25293, 24.4677, 1....
65.333333
394
0.683673
795d5e1b5ad3f9927f4508510ab5499f9be918bc
510
py
Python
locale/pot/api/core/_autosummary/pyvista-Light-world_position-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/_autosummary/pyvista-Light-world_position-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/_autosummary/pyvista-Light-world_position-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a light with a transformation matrix that corresponds to a # 90-degree rotation around the z axis and a shift by (0, 0, -1), and # check that the light's position transforms as expected. # import numpy as np import pyvista as pv light = pv.Light(position=(1, 0, 3)) trans = np.zeros((4, 4)) trans[:-1, :-1] = [[...
28.333333
69
0.645098
795d5e2749aacb5846dc1a1066520bb6df0d7732
4,513
py
Python
gg/ecs/actors.py
willieLjohnson/pygg
b204e4b6ab01a5156f7b38e99e8077875d038c86
[ "MIT" ]
null
null
null
gg/ecs/actors.py
willieLjohnson/pygg
b204e4b6ab01a5156f7b38e99e8077875d038c86
[ "MIT" ]
null
null
null
gg/ecs/actors.py
willieLjohnson/pygg
b204e4b6ab01a5156f7b38e99e8077875d038c86
[ "MIT" ]
null
null
null
import random import pygame from .. import structures Vec2 = structures.Vec2 Point = structures.Point from .. import style Color = style.Color from .. import world World = world.World from . import defaults from . import entities _Body = entities.Body _Accelerator = entities.Accelerator _Weapon = entities.Weapo...
32.941606
127
0.56725
795d5e3a6776a8a8f0e8bd7a30a283fbe32f0a20
1,729
py
Python
Packages/matplotlib-2.2.2/lib/mpl_examples/images_contours_and_fields/shading_example.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
1
2018-06-11T07:36:04.000Z
2018-06-11T07:36:04.000Z
Packages/matplotlib-2.2.2/lib/mpl_examples/images_contours_and_fields/shading_example.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
null
null
null
Packages/matplotlib-2.2.2/lib/mpl_examples/images_contours_and_fields/shading_example.py
NightKirie/NCKU_NLP_2108_industry3
23ac13644b140587e23cfeffb114c7c6f46f17a2
[ "MIT" ]
4
2018-05-19T11:31:20.000Z
2018-07-01T20:58:29.000Z
""" =============== Shading Example =============== Example showing how to make shaded relief plots like Mathematica (http://reference.wolfram.com/mathematica/ref/ReliefPlot.html) or Generic Mapping Tools (https://gmt.soest.hawaii.edu/) """ import numpy as np import matplotlib.pyplot as plt from matplotlib.colors impo...
27.015625
75
0.64893
795d5e804760e567b1d224ef5339b128406fe0cf
6,467
py
Python
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_config_admin_groups/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_config_admin_groups/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/brocade_mpls_rpc/show_mpls_lsp_name_extensive/output/lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_instances_info/lsp_instances/lsp_config_admin_groups/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
52.153226
444
0.734498
795d5ea83b5219aba0764bec9724e9806ccf3bf5
856
py
Python
mysite/urls.py
KaptanSingh2020/pyblog
5b0af8dce4b1c324f0384f27f7331c156e9ad51e
[ "MIT" ]
null
null
null
mysite/urls.py
KaptanSingh2020/pyblog
5b0af8dce4b1c324f0384f27f7331c156e9ad51e
[ "MIT" ]
null
null
null
mysite/urls.py
KaptanSingh2020/pyblog
5b0af8dce4b1c324f0384f27f7331c156e9ad51e
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/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-bas...
34.24
79
0.689252
795d5ee5395cdfc72a76d35ca10672ac8d15cbe0
30,928
py
Python
main/sqla/methods.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/sqla/methods.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/sqla/methods.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
import flask_login as login from flask_admin.menu import MenuLink as ML import classes import dbconfig import dev.models as devmodels import views import main.iaas as iaas if dbconfig.test: from core.mock_access_helper import MockAccessHelper as AccessHelper else: from core.access_helper import AccessHelper A...
41.402945
136
0.538282
795d5f504c22d524ce1a297d36473d406fa0a3f0
5,343
py
Python
src/transformers/models/bert_generation/tokenization_bert_generation.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
39
2021-04-30T06:06:30.000Z
2022-03-12T11:56:06.000Z
src/transformers/models/bert_generation/tokenization_bert_generation.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
3
2021-08-19T09:56:35.000Z
2021-12-05T20:30:08.000Z
src/transformers/models/bert_generation/tokenization_bert_generation.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
36.346939
134
0.669287
795d601d04f3d3fcfe897d6e2891b7a044b8252a
4,983
py
Python
observations/r/snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/snow_deaths2.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def snow_deaths2(path): """John Snow's Map and Data on the 1854 London Ch...
35.091549
74
0.725065
795d60b06b41de9e0dd85000a2b0c25a0b971e9f
455
py
Python
sourcehold/maps/sections/section1089.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
sourcehold/maps/sections/section1089.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
sourcehold/maps/sections/section1089.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
from .types import CompressedMapSection class Section1089(CompressedMapSection): def get_string(self): v = self.get_data().decode('ascii') i = v.index('\x00') return v[:i] def set_string(self, s): v = s.encode('ascii') remaining = 128 - len(v) if remaining < ...
23.947368
83
0.586813
795d611c668b4abf4d244b22cc51105634c27c04
7,677
py
Python
lib/helpers/moviesetdetails.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
lib/helpers/moviesetdetails.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
lib/helpers/moviesetdetails.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Returns complete (nicely formatted) information about the movieset and it's movies """ import os, sys from .kodi_constants import FIELDS_MOVIES from .utils import get_duration, get_clean_image, extend_dict from urllib.parse import quote_plus from operator import itemg...
42.414365
119
0.574443
795d614d3ee40ef270cfa6541030c30689b3051f
5,056
py
Python
integration_tests/integration_test.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
integration_tests/integration_test.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
integration_tests/integration_test.py
cmilam87/runway
e1b2aca8e9468bf246ae5afa878ed4a36fb36ab1
[ "Apache-2.0" ]
null
null
null
"""Integration test module.""" import errno import os import shutil import subprocess import sys from copy import deepcopy import yaml from send2trash import send2trash from runway.util import change_dir class IntegrationTest(object): """Base class for Integration Tests. Attributes: REQUIRED_FIXTUR...
38.30303
81
0.585839
795d6174584ae349555e57aa046b62d5634b5e12
33,846
py
Python
sdk/python/pulumi_azure_native/web/list_web_app_auth_settings.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/list_web_app_auth_settings.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/list_web_app_auth_settings.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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
51.911043
1,176
0.716599
795d6202c521bc09f46376da42e00a383667bf67
7,090
py
Python
server/tournament/views.py
eIGato/mahjong-portal
550a2a872c4287adab6ce30c3440dc2141430a20
[ "MIT" ]
10
2018-02-12T10:30:22.000Z
2020-06-29T21:06:15.000Z
server/tournament/views.py
eIGato/mahjong-portal
550a2a872c4287adab6ce30c3440dc2141430a20
[ "MIT" ]
62
2018-01-05T04:52:38.000Z
2021-04-10T07:14:45.000Z
server/tournament/views.py
eIGato/mahjong-portal
550a2a872c4287adab6ce30c3440dc2141430a20
[ "MIT" ]
8
2018-05-11T11:05:41.000Z
2021-03-10T08:10:50.000Z
from django.contrib import messages from django.shortcuts import get_object_or_404, redirect, render from django.utils import timezone from django.utils.translation import gettext as _ from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from player.models import P...
34.754902
117
0.669676
795d62c8ab20460730d7b4ba7c28fa83b55aaee3
2,221
py
Python
mnist/test/filed/read_model_sess_reorganized.py
Banyc/TensorFlow_practice
f9b0d27cbc440d6c67dd29b94828a08f192f76e1
[ "MIT" ]
6
2018-07-26T09:47:28.000Z
2019-03-19T11:55:19.000Z
mnist/test/filed/read_model_sess_reorganized.py
Banyc/TensorFlow_practice
f9b0d27cbc440d6c67dd29b94828a08f192f76e1
[ "MIT" ]
null
null
null
mnist/test/filed/read_model_sess_reorganized.py
Banyc/TensorFlow_practice
f9b0d27cbc440d6c67dd29b94828a08f192f76e1
[ "MIT" ]
null
null
null
import tensorflow as tf from PIL import Image import numpy as np MODEL_PATH = "./saved_variables/mnist5.2.1.ckpt" PIC_PATH = "./pictures/4.png" INPUT_NODE = 784 # 输入节点 OUTPUT_NODE = 10 # 输出节点 LAYER1_NODE = 500 # 隐藏层神经元数 def inference(input_tensor, weights1, biases1, weights2, biases2): layer1 = tf.nn.relu(t...
26.759036
72
0.664115
795d633049a1e63cd6b5b59f447122065e30368b
27
py
Python
recruitment_ext/config/desktop.py
aakvatech/recruitment-ext
e16b14fa60c783b0b965035c5c134dc02231d7fd
[ "MIT" ]
null
null
null
recruitment_ext/config/desktop.py
aakvatech/recruitment-ext
e16b14fa60c783b0b965035c5c134dc02231d7fd
[ "MIT" ]
null
null
null
recruitment_ext/config/desktop.py
aakvatech/recruitment-ext
e16b14fa60c783b0b965035c5c134dc02231d7fd
[ "MIT" ]
1
2021-11-03T15:29:33.000Z
2021-11-03T15:29:33.000Z
def get_data(): return []
9
15
0.62963
795d635b50484140bb1db380ba5a6d175522e839
2,717
py
Python
ggit/core/common.py
pahumadad/ggit
df697f8a012d7c512211f291e4b00eeb24f0beb9
[ "MIT" ]
null
null
null
ggit/core/common.py
pahumadad/ggit
df697f8a012d7c512211f291e4b00eeb24f0beb9
[ "MIT" ]
null
null
null
ggit/core/common.py
pahumadad/ggit
df697f8a012d7c512211f291e4b00eeb24f0beb9
[ "MIT" ]
null
null
null
import os import sys from difflib import unified_diff from ggit.core.gpg import GPG BC_BOLD = "\033[1m" BC_CYAN = "\033[96m" BC_END = "\033[0m" BC_GREEN = "\033[92m" BC_RED = "\033[91m" BLACKLIST = ( ".git", ".gitignore", "README.md", ) FILE_TYPE_ALL = "all" FILE_TYPE_ENC = "encrypted" FILE_TYPE_NO_ENC = ...
25.87619
78
0.617593
795d637df7f9bfc500e5f59b547c8e7e1c3dabc4
2,760
py
Python
xen/xen-4.2.2/tools/python/xen/util/xsm/dummy/dummy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/util/xsm/dummy/dummy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/util/xsm/dummy/dummy.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
import sys from xen.util import xsconstants from xen.xend.XendLogging import log class XSMError(Exception): def __init__(self,value): self.value = value def __str__(self): return repr(self.value) security_dir_prefix = ""; policy_dir_prefix = ""; active_policy = ""; NULL_SSIDREF = 0; #Functio...
20.145985
74
0.702174
795d64abe90976ecd38c994ac3179c6e04677298
145
py
Python
Python/PythonFundamentals/7-python-fundamentals-m06-exceptions-exercise-files/demos/exceptional7.py
Mujtaba-Biyabani/Research
211f57812786a151ce8c3b1c3ed379fd1ba4e2f9
[ "Unlicense" ]
52
2017-12-06T10:44:05.000Z
2021-11-24T10:44:16.000Z
Python/PythonFundamentals/7-python-fundamentals-m06-exceptions-exercise-files/demos/exceptional7.py
Mujtaba-Biyabani/Research
211f57812786a151ce8c3b1c3ed379fd1ba4e2f9
[ "Unlicense" ]
8
2018-01-29T08:32:34.000Z
2019-01-02T05:56:51.000Z
Python/PythonFundamentals/7-python-fundamentals-m06-exceptions-exercise-files/demos/exceptional7.py
Mujtaba-Biyabani/Research
211f57812786a151ce8c3b1c3ed379fd1ba4e2f9
[ "Unlicense" ]
125
2018-11-20T07:56:22.000Z
2022-03-16T06:32:42.000Z
def convert(s): '''Convert a string to an integer.''' x = 0 try: x = int(s) except (ValueError, TypeError): return x
18.125
41
0.537931
795d6507dcedae415d046e8a1cf08ab2fb842f56
6,017
py
Python
source/events/media_events.py
aws-solutions/aws-media-services-application-mapper
d227bd53ecac348f263a8202af98153cb4b89f48
[ "Apache-2.0" ]
5
2021-10-20T07:09:47.000Z
2022-01-09T09:18:19.000Z
source/events/media_events.py
aws-solutions/aws-media-services-application-mapper
d227bd53ecac348f263a8202af98153cb4b89f48
[ "Apache-2.0" ]
59
2021-11-23T18:11:52.000Z
2022-03-31T21:13:54.000Z
source/events/media_events.py
aws-solutions/aws-media-services-application-mapper
d227bd53ecac348f263a8202af98153cb4b89f48
[ "Apache-2.0" ]
2
2021-10-30T13:03:56.000Z
2021-11-07T03:20:33.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ This Lambda is responsible for receiving and storing CloudWatch events originating from Media Services. This Lambda must be installed into each region where Media Services are created. """ import datetim...
46.284615
122
0.611102
795d651ecb9f244b6aff9ae784983908b972e014
683
py
Python
pysm3/tests/test_ame.py
LBJ-Wade/pysm
cec3de6e9bee8d24d9369f6f3f2bae36610e1a89
[ "BSD-3-Clause" ]
12
2021-08-04T08:34:08.000Z
2022-03-23T16:43:07.000Z
pysm3/tests/test_ame.py
LBJ-Wade/pysm
cec3de6e9bee8d24d9369f6f3f2bae36610e1a89
[ "BSD-3-Clause" ]
61
2018-12-12T04:01:10.000Z
2021-07-15T14:31:23.000Z
pysm3/tests/test_ame.py
LBJ-Wade/pysm
cec3de6e9bee8d24d9369f6f3f2bae36610e1a89
[ "BSD-3-Clause" ]
14
2018-12-13T06:08:08.000Z
2021-06-30T15:40:34.000Z
import pysm3 import pytest from astropy.tests.helper import assert_quantity_allclose @pytest.mark.parametrize("freq", [30, 100]) @pytest.mark.parametrize("model", ["a1"]) def test_model(model, freq): model = pysm3.Sky(preset_strings=[model], nside=64) model_number = 3 expected_map = pysm3.read_map( ...
26.269231
80
0.685212
795d66ac5b5ba4f66653a91ca830d07559769c21
1,751
py
Python
pages/helpers.py
Khanitachi/hexapod-robot-simulator
0026c10a3aa7e935a1a3ef6d5b96c04fefb0af14
[ "MIT" ]
1
2020-04-19T14:30:51.000Z
2020-04-19T14:30:51.000Z
pages/helpers.py
MikeyBeez/hexapod-robot-simulator
7fcacede4bb6f18e9dc595c7e994108cbc5d1092
[ "MIT" ]
null
null
null
pages/helpers.py
MikeyBeez/hexapod-robot-simulator
7fcacede4bb6f18e9dc595c7e994108cbc5d1092
[ "MIT" ]
1
2020-05-05T16:08:58.000Z
2020-05-05T16:08:58.000Z
import dash_core_components as dcc from hexapod.const import BASE_PLOTTER from hexapod.const import HEXAPOD_POSE, NAMES_LEG, BASE_DIMENSIONS from copy import deepcopy import json poses = deepcopy(HEXAPOD_POSE) poses_mgs_header = f""" +----------------+------------+------------+------------+ | leg name | coxia ...
26.530303
86
0.56482
795d66cd9c014934394353e426e883f18b5d5ff8
197
py
Python
competitive/AtCoder/ABC126/C.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
competitive/AtCoder/ABC126/C.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
22
2020-03-24T16:24:47.000Z
2022-02-26T15:51:18.000Z
competitive/AtCoder/ABC126/C.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
N, K = [int(a) for a in input().split()] prob = 0 for i in range(1, N+1): j = i inverse_p = N while j < K: j *= 2 inverse_p *= 2 prob += 1/ inverse_p print(prob)
14.071429
40
0.482234
795d6824886e552cf062dc909899c1b0ee458f9b
17,474
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/tests/test_mail.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/tests/test_mail.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/tests/test_mail.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import cgi import unittest from odoo.tools import html_sanitize, append_content_to_html, plaintext2html, email_split from . import test_mail_examples class TestSanitizer(unittest.TestCase): """ Test the html sanit...
52.63253
389
0.59992
795d686a7ae8a4a4d06034db2845070e4c46759c
342
py
Python
RestapiManage/restapi/migrations/0006_auto_20200416_1141.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
RestapiManage/restapi/migrations/0006_auto_20200416_1141.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
3
2021-03-19T01:28:43.000Z
2021-04-08T19:57:19.000Z
RestapiManage/restapi/migrations/0006_auto_20200416_1141.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-16 03:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('restapi', '0005_auto_20200412_1015'), ] operations = [ migrations.AlterModelOptions( name='url', options={'ordering': ['path...
19
47
0.584795
795d6b862816530ad2a7aeded842de4cf7dfbff6
603
py
Python
common/mongo_.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
12
2019-06-06T12:23:08.000Z
2021-06-15T17:50:07.000Z
common/mongo_.py
524243642/mall_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
3
2021-03-31T19:02:47.000Z
2022-02-11T03:43:15.000Z
common/mongo_.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
5
2019-09-17T03:55:56.000Z
2020-12-18T03:34:03.000Z
# -*- coding: utf-8 -*- import traceback from contextlib import contextmanager from pymongo import MongoClient from config.config_loader import global_profile, logger mongo_client = MongoClient(global_profile.MONGO_DATABASE_URI) db = mongo_client.get_database(global_profile.MONGO_DB) @contextmanager def mongo_coll...
27.409091
85
0.756219
795d6bccd3ec2ca6ba864a211eb650aca093ecda
4,712
py
Python
quetzal/io/gtfs_reader/importer.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
25
2018-11-20T16:33:02.000Z
2022-03-03T12:46:52.000Z
quetzal/io/gtfs_reader/importer.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
14
2019-06-13T13:26:20.000Z
2022-01-13T03:51:07.000Z
quetzal/io/gtfs_reader/importer.py
systragroup/quetzal
bb7934bcae588cddf0f0da810d75114d1c64768f
[ "CECILL-B" ]
4
2020-01-31T18:34:59.000Z
2022-03-18T17:22:45.000Z
# pylint: disable=no-member import geopandas as gpd import gtfs_kit as gk import pandas as pd from shapely.geometry import LineString from syspy.transitfeed import feed_links from . import patterns from .feed_gtfsk import Feed def get_epsg(lat, lon): return int(32700 - round((45 + lat) / 90, 0) * 100 + round((18...
34.903704
102
0.629032
795d6be74a9d47315f184b627501302b5e3e447d
2,993
py
Python
examples/fetchparse.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
examples/fetchparse.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
examples/fetchparse.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
""" An exceptionally lousy site spider Ken Kinder <ken@kenkinder.com> Updated for newparallel by Min Ragan-Kelley <benjaminrk@gmail.com> This module gives an example of how the task interface to the IPython controller works. Before running this script start the IPython controller and some engines using something lik...
28.504762
82
0.607083
795d6c39eb76eae65e387c42e317574e1e600de6
2,773
py
Python
qa/rpc-tests/blockchain.py
mirzaei-ce/core-moselbit
7e8e723109f22b0fddfa227692b9492f48d12d7c
[ "MIT" ]
null
null
null
qa/rpc-tests/blockchain.py
mirzaei-ce/core-moselbit
7e8e723109f22b0fddfa227692b9492f48d12d7c
[ "MIT" ]
null
null
null
qa/rpc-tests/blockchain.py
mirzaei-ce/core-moselbit
7e8e723109f22b0fddfa227692b9492f48d12d7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test RPC calls related to blockchain state. Tests correspond to code in # rpcblockchain.cpp. # from ...
31.873563
73
0.687342
795d6c874b1bf6ee6fea58c3e9a495ba41465f32
5,102
py
Python
SigBridge.py
nafooesi/sigbridge
757d644220ea56f69b29b5b27cc82382c03c90ff
[ "MIT" ]
4
2019-09-05T03:27:54.000Z
2022-02-20T03:52:12.000Z
SigBridge.py
nafooesi/sigbridge
757d644220ea56f69b29b5b27cc82382c03c90ff
[ "MIT" ]
null
null
null
SigBridge.py
nafooesi/sigbridge
757d644220ea56f69b29b5b27cc82382c03c90ff
[ "MIT" ]
2
2018-04-22T08:47:37.000Z
2020-06-24T08:00:03.000Z
################################################################################ # This is the main program that runs the UI and instantiates other modules. ################################################################################ # -*- coding: iso-8859-1 -*- import threading import logging import Queue from Tk...
34.472973
95
0.617993
795d6cad8e613aa69373086f23e5fd88a394020f
1,547
py
Python
hth/music/admin.py
roperi/myband
ec1955626fe6997484fd92ed02127b6899cd7062
[ "MIT" ]
1
2016-04-12T17:38:26.000Z
2016-04-12T17:38:26.000Z
hth/music/admin.py
bhrutledge/jahhills.com
74fe94a214f1ed5681bd45159315f0b68daf5a33
[ "MIT" ]
92
2015-04-03T10:04:55.000Z
2021-07-17T11:13:52.000Z
hth/music/admin.py
roperi/myband
ec1955626fe6997484fd92ed02127b6899cd7062
[ "MIT" ]
1
2021-01-26T18:02:49.000Z
2021-01-26T18:02:49.000Z
from django.contrib import admin from .models import Release, Song, Video, Press class ReleaseAdmin(admin.ModelAdmin): save_on_top = True fields = ('title', 'slug', 'date', 'cover_url', 'player_code', 'description', 'credits', 'publish', 'publish_on', 'priority',) prepopulated_fields = {'sl...
31.571429
78
0.627666
795d6cccae94f5ae2335b3770d77d60ec9b66121
64
py
Python
django_filters/constants.py
A-Ashiq/django-filter
5a2548afebba2d30f5fede12e7bf4e3f6ef16920
[ "BSD-3-Clause" ]
2,512
2016-02-19T11:48:54.000Z
2022-03-30T03:26:15.000Z
django_filters/constants.py
A-Ashiq/django-filter
5a2548afebba2d30f5fede12e7bf4e3f6ef16920
[ "BSD-3-Clause" ]
979
2015-11-23T08:14:39.000Z
2022-03-26T02:54:18.000Z
virtual/lib/python3.6/site-packages/django_filters/constants.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
572
2016-02-25T16:07:00.000Z
2022-02-24T20:49:47.000Z
ALL_FIELDS = '__all__' EMPTY_VALUES = ([], (), {}, '', None)
10.666667
37
0.515625
795d6d1b0af0201c9d6b6e53d5d73002ef9e3f44
417
py
Python
py/motion2.py
kaiyujin/pi
e14a3261c303f8468cd98d0475f301a16bc7290c
[ "MIT" ]
null
null
null
py/motion2.py
kaiyujin/pi
e14a3261c303f8468cd98d0475f301a16bc7290c
[ "MIT" ]
null
null
null
py/motion2.py
kaiyujin/pi
e14a3261c303f8468cd98d0475f301a16bc7290c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from gpiozero import MotionSensor from gpiozero import LED import time LED_PIN = 4 MOTION_PIN = 15 if __name__ != '__main__': exit print("start process") ms = MotionSensor(MOTION_PIN) led = LED(LED_PIN) ms.wait_for_motion() for i in range(10): if ms.motion_detecte...
18.130435
33
0.666667
795d6db8e50fe326ab6b68c0a3e8ecd6899d983f
403
py
Python
python/scrapy/tutorial/tutorial/items.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
null
null
null
python/scrapy/tutorial/tutorial/items.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
null
null
null
python/scrapy/tutorial/tutorial/items.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
1
2020-08-16T16:22:17.000Z
2020-08-16T16:22:17.000Z
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class TutorialItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class DmozItem(scrapy.Item): ...
14.925926
51
0.66005
795d6e4368b96c668c1f2c943fccc6e6bbf0a7b6
13,668
py
Python
src/edeposit/amqp/rest/database/status_handler.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
1
2015-12-10T13:30:22.000Z
2015-12-10T13:30:22.000Z
src/edeposit/amqp/rest/database/status_handler.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
33
2015-10-06T16:02:13.000Z
2015-12-10T15:00:04.000Z
src/edeposit/amqp/rest/database/status_handler.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== import time import random from functools import total_ordering import transaction from persistent import Persistent from BTrees.OOBTree import OOSet from...
31.42069
79
0.578139
795d6f5409abfbfe9bdf449ad41f0ac381d420b8
1,323
py
Python
pytorch_lightning/metrics/regression/mean_squared_log_error.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
1
2021-03-25T22:39:21.000Z
2021-03-25T22:39:21.000Z
pytorch_lightning/metrics/regression/mean_squared_log_error.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/metrics/regression/mean_squared_log_error.py
lyuxingjian/pytorch-lightning
576afd59f3456eb06fb8805ed65a24b41c428a3e
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
35.756757
87
0.724112
795d70a79074929120a5cf0f0e9d3f0fa65dbeaa
3,523
py
Python
src/moca_modules/moca_counter/AsyncInMemoryDriver.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_counter/AsyncInMemoryDriver.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_counter/AsyncInMemoryDriver.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
# -- Imports -------------------------------------------------------------------------- from typing import ( Optional, Tuple ) from .AsyncDriverInterface import AsyncDriverInterface # -------------------------------------------------------------------------- Imports -- # -- In Memory Driver ---------------------...
33.875
105
0.351689
795d71b73fb3c886a451de20c75df0b90e9b462c
29,377
py
Python
chia/server/node_discovery.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
1
2021-05-29T15:59:06.000Z
2021-05-29T15:59:06.000Z
chia/server/node_discovery.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
28
2021-07-13T21:07:14.000Z
2022-03-29T21:10:38.000Z
chia/server/node_discovery.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
2
2021-05-18T15:33:58.000Z
2021-05-28T21:15:09.000Z
import asyncio import math import time import traceback from pathlib import Path from random import Random from secrets import randbits from typing import Dict, Optional, List, Set import aiosqlite import chia.server.ws_connection as ws import dns.asyncresolver from chia.protocols import full_node_protocol, introduce...
44.043478
119
0.578514
795d722db1d36e070782917b9aa4fccd5f61a883
7,890
py
Python
cpp2py_test/BM_test.py
fevorl/BM3D_py
aefd4ceb2bd9e95bd7e67285a714bccd5e2140e5
[ "CNRI-Python" ]
157
2019-12-13T09:52:45.000Z
2022-03-30T03:28:01.000Z
cpp2py_test/BM_test.py
fevorl/BM3D_py
aefd4ceb2bd9e95bd7e67285a714bccd5e2140e5
[ "CNRI-Python" ]
9
2019-12-11T10:43:09.000Z
2022-03-24T09:35:00.000Z
cpp2py_test/BM_test.py
fevorl/BM3D_py
aefd4ceb2bd9e95bd7e67285a714bccd5e2140e5
[ "CNRI-Python" ]
34
2019-12-06T02:41:02.000Z
2022-03-14T04:04:23.000Z
import numpy as np def precompute_BM(img, width, height, kHW, NHW, nHW, pHW, tauMatch): Ns = 2 * nHW + 1 threshold = tauMatch * kHW * kHW diff_table = np.zeros(width * height, dtype=np.int) sum_table = np.ones(((nHW + 1) * Ns, width * height), dtype=np.int) * 2 * threshold row_ind = ind_initialize...
37.571429
116
0.511787
795d72e00a137a88053343eac175d10313f7a929
757
py
Python
clickhouse_mysql/reader/reader.py
imiskolee/clickhouse-mysql-data-reader
501331ade93c2fca0898153070c950bb83966e7a
[ "MIT" ]
2
2019-09-18T06:24:57.000Z
2020-01-17T08:50:56.000Z
clickhouse_mysql/reader/reader.py
imiskolee/clickhouse-mysql-data-reader
501331ade93c2fca0898153070c950bb83966e7a
[ "MIT" ]
null
null
null
clickhouse_mysql/reader/reader.py
imiskolee/clickhouse-mysql-data-reader
501331ade93c2fca0898153070c950bb83966e7a
[ "MIT" ]
2
2020-02-11T12:09:13.000Z
2020-04-28T08:43:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from clickhouse_mysql.observable import Observable class Reader(Observable): """Read data from source and notify observers""" converter = None event_handlers = { # called on each WriteRowsEvent 'WriteRowsEvent': [], # called on each...
24.419355
105
0.627477
795d72e82a0fd635aa87397f129416f0ffeebd4a
275
py
Python
TryPython/core/admin.py
IuryAlves/try-python
358cb62fc0dab9da2a30e97b718888a366c4fd5c
[ "MIT" ]
12
2015-12-14T03:31:51.000Z
2016-02-02T21:48:13.000Z
TryPython/core/admin.py
QuentinQuarantine/TryPython
358cb62fc0dab9da2a30e97b718888a366c4fd5c
[ "MIT" ]
10
2020-07-17T21:01:11.000Z
2020-07-27T17:53:12.000Z
TryPython/core/admin.py
IuryAlves/try-python
358cb62fc0dab9da2a30e97b718888a366c4fd5c
[ "MIT" ]
4
2016-02-27T18:54:07.000Z
2016-02-29T19:25:36.000Z
from django.contrib import admin from django.contrib.sessions.models import Session class SessionAdmin(admin.ModelAdmin): def _session_data(self, obj): return obj.get_decoded() list_display = ['_session_data'] admin.site.register(Session, SessionAdmin)
19.642857
50
0.756364
795d749a9d5ece2c86d64a91ef6bcff24cef31d6
1,630
py
Python
loop_yl2ds.py
pvtien96/Detectron2DeepSortPlus
ff9cd9150a1984a37bbde3a299edeb317c4d274b
[ "Apache-2.0" ]
36
2020-05-02T08:30:52.000Z
2021-06-04T01:29:38.000Z
loop_yl2ds.py
pvtien96/D2DP
ff9cd9150a1984a37bbde3a299edeb317c4d274b
[ "Apache-2.0" ]
6
2020-04-11T15:45:44.000Z
2021-04-09T07:05:30.000Z
loop_yl2ds.py
pvtien96/D2DP
ff9cd9150a1984a37bbde3a299edeb317c4d274b
[ "Apache-2.0" ]
6
2020-05-11T08:25:13.000Z
2020-12-20T15:14:55.000Z
#recusively inference yolov5 import os from tqdm import tqdm import argparse def get_parser(): parser = argparse.ArgumentParser(description="inference vids") parser.add_argument( "--root_path", default="/media/data3/EgoCentric_Nafosted/micand26/gt/", help="Root path", ) pars...
31.960784
172
0.619632
795d752603664cc19d6678f32c871ebea386dc5c
475
py
Python
apps/payment/migrations/0019_paymenttransaction_unique_id.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/payment/migrations/0019_paymenttransaction_unique_id.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
apps/payment/migrations/0019_paymenttransaction_unique_id.py
kharann/onlineweb4
1130128c6233b623780779a25934ea73ef62c264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-11-15 21:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payment', '0018_merge'), ] operations = [ migrations.AddField( ...
22.619048
74
0.623158
795d77918233d05341c50073cb63462eedfd80f4
4,181
py
Python
gui/qt/amountedit.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
16
2018-11-05T13:19:02.000Z
2021-04-06T12:11:49.000Z
gui/qt/amountedit.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
9
2018-09-19T03:37:26.000Z
2019-04-17T21:58:27.000Z
gui/qt/amountedit.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
5
2018-11-05T13:19:02.000Z
2020-10-20T09:15:54.000Z
# -*- coding: utf-8 -*- from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import (QLineEdit, QStyle, QStyleOptionFrame) from decimal import Decimal from electroncash.util import format_satoshis_plain class MyLineEdit(QLineEdit): frozen = pyqtSignal() def setFrozen(self, b): ...
30.518248
105
0.587658
795d779fe8e813fda18d2f5041372ce627ad9d19
6,069
py
Python
tools/c7n_gcp/c7n_gcp/policy.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2020-09-07T21:10:29.000Z
2020-09-07T21:10:29.000Z
tools/c7n_gcp/c7n_gcp/policy.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2021-02-10T02:20:45.000Z
2021-02-10T02:20:45.000Z
tools/c7n_gcp/c7n_gcp/policy.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2021-10-15T11:29:54.000Z
2021-10-15T11:29:54.000Z
# Copyright 2018 Capital One Services, LLC # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import logging from dateutil.tz import tz from c7n.exceptions import PolicyValidationError from c7n.policy import execution, ServerlessExecutionMode, PullMode from c7n.utils import local_session, ...
34.87931
98
0.633218
795d77b1e907861fa10f4f001bc2bfa99c81192e
2,074
py
Python
PDF.co Web API/HTML To PDF API/Python/Generate PDF Invoice From HTML Template/GeneratePdfInvoiceFromHtmlTemplate.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
PDF.co Web API/HTML To PDF API/Python/Generate PDF Invoice From HTML Template/GeneratePdfInvoiceFromHtmlTemplate.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
PDF.co Web API/HTML To PDF API/Python/Generate PDF Invoice From HTML Template/GeneratePdfInvoiceFromHtmlTemplate.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
import os import json import requests # pip install requests # The authentication key (API Key). # Get your own by registering at https://app.pdf.co/documentation/api API_KEY = "***********************************************" # Base URL for PDF.co Web API requests BASE_URL = "https://api.pdf.co/v1" # HTML template...
30.057971
81
0.604629
795d7a26ee26584a6120152459e722b098fc1c0b
13,343
py
Python
demos/tests/run_tests.py
KorA6/open_model_zoo
2856f9d6f5b4d2cb19b0c98c127b6c758851c51b
[ "Apache-2.0" ]
null
null
null
demos/tests/run_tests.py
KorA6/open_model_zoo
2856f9d6f5b4d2cb19b0c98c127b6c758851c51b
[ "Apache-2.0" ]
null
null
null
demos/tests/run_tests.py
KorA6/open_model_zoo
2856f9d6f5b4d2cb19b0c98c127b6c758851c51b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 Intel Corporation # # 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 appli...
41.827586
159
0.610582
795d7ac6128dffaa1c7c398c3207dd0b7b288d15
1,551
py
Python
ipl_scrap.py
SenthilVikram/IPL-Data-Scraping-Live-Scorecard
cd8eeff7f5e6f184db9086068cfcad7c9f6d2b67
[ "MIT" ]
null
null
null
ipl_scrap.py
SenthilVikram/IPL-Data-Scraping-Live-Scorecard
cd8eeff7f5e6f184db9086068cfcad7c9f6d2b67
[ "MIT" ]
null
null
null
ipl_scrap.py
SenthilVikram/IPL-Data-Scraping-Live-Scorecard
cd8eeff7f5e6f184db9086068cfcad7c9f6d2b67
[ "MIT" ]
null
null
null
import pandas as pd import re from bs4 import BeautifulSoup with open("Doc.html") as fp: soup = BeautifulSoup(fp, 'html.parser') # Deleting a tag and its content because it's a useless tag and interrupts # while iterating through player names in table for span in soup.find_all("span", {'class':'dismissalSmall'})...
36.928571
105
0.702772
795d7b268c0dd2cd417d7ce0962e08022184a163
714
py
Python
packages/python/plotly/plotly/validators/candlestick/increasing/_line.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/candlestick/increasing/_line.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/candlestick/increasing/_line.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="line", parent_name="candlestick.increasing", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=p...
29.75
80
0.55042
795d7d15e04ff2086976e22f0a3021dd8ad82f19
8,651
py
Python
sdk/python/pulumi_azure/cosmosdb/get_account.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/cosmosdb/get_account.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/cosmosdb/get_account.py
stack72/pulumi-azure
18245b4e74abbd3f768f9eda67adb1df609ff32e
[ "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 json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class GetAccountResult: """ A...
50.888235
533
0.692752
795d7d577bf7efbdc0f870ae78290ab930298889
5,221
py
Python
src/probnum/filtsmooth/optim/_iterated_component.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
1
2022-03-30T20:16:13.000Z
2022-03-30T20:16:13.000Z
src/probnum/filtsmooth/optim/_iterated_component.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
null
null
null
src/probnum/filtsmooth/optim/_iterated_component.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
null
null
null
"""Iterated components for iterated filtering and smoothing.""" import numpy as np from probnum import randprocs from probnum.filtsmooth.optim import _stopping_criterion class IteratedDiscreteComponent(randprocs.markov.Transition): """Iterated updates. Examples -------- >>> from probnum.filtsmooth....
29.834286
88
0.601034
795d7d894f81409291db9bb6613edc39c1e3bda7
1,218
py
Python
saw-remote-api/python/tests/saw/test_nested_struct2.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
411
2015-06-09T22:00:47.000Z
2022-03-30T11:41:23.000Z
saw-remote-api/python/tests/saw/test_nested_struct2.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
1,151
2015-06-12T20:46:31.000Z
2022-03-23T02:56:32.000Z
saw-remote-api/python/tests/saw/test_nested_struct2.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
65
2015-06-10T17:52:26.000Z
2022-02-10T18:17:06.000Z
from pathlib import Path import unittest from saw_client import * from saw_client.llvm import Contract, elem, field, i32, alias_ty # like test_nested_struct.py but using cute __getitem__ indexing on SetupVals class FContract1(Contract): def specification(self): tp = self.alloc(alias_ty('struct.t')) ...
27.681818
77
0.646962
795d7e40d1168d4f1023f0507838d6eaceb613e1
2,207
py
Python
cajas/users/api/views/employee_update.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/employee_update.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/users/api/views/employee_update.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
from django.db.models import Q from django.contrib.auth import get_user_model from django.contrib.auth.hashers import make_password from rest_framework import generics from rest_framework.response import Response from rest_framework import status from cajas.api.CsrfExempt import CsrfExemptSessionAuthentication from ...
37.40678
115
0.660625
795d7e654caeb65b739c93353cc505a40fca610f
2,674
py
Python
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_create_dataset_test.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
17
2017-06-29T18:32:25.000Z
2021-10-03T12:30:49.000Z
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_create_dataset_test.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
12
2021-02-15T07:42:08.000Z
2022-02-08T02:05:27.000Z
magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_create_dataset_test.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
6
2017-07-06T06:12:36.000Z
2021-07-06T13:07:32.000Z
# Copyright 2020 The Magenta 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 ...
38.2
79
0.553478
795d7ea833acf773aa32a91acf4e8212262bf554
27,595
py
Python
custom_components/ds_air/ds_air_service/decoder.py
mypal/ha-dsair
73e5a8322dd680b891241274b112987a764a6e3e
[ "MIT" ]
26
2019-12-29T15:49:05.000Z
2022-03-25T07:43:58.000Z
custom_components/ds_air/ds_air_service/decoder.py
mypalg/ha-dsair
db694ae7e9c8afc0e1b921349b34cdbbf9a3a6d6
[ "MIT" ]
12
2020-06-28T06:31:39.000Z
2022-03-25T07:41:40.000Z
custom_components/ds_air/ds_air_service/decoder.py
mypalg/ha-dsair
db694ae7e9c8afc0e1b921349b34cdbbf9a3a6d6
[ "MIT" ]
12
2019-12-15T15:59:56.000Z
2022-03-31T06:33:15.000Z
import struct import typing from .base_bean import BaseBean from .config import Config from .ctrl_enum import EnumDevice, EnumCmdType, EnumFanDirection, EnumOutDoorRunCond, EnumFanVolume, EnumControl, \ EnumSensor, FreshAirHumidification, ThreeDFresh from .dao import Room, AirCon, Geothermic, Ventilation, HD, Devi...
34.667085
118
0.576626
795d7ec672c3625fd52cef302bcea035069fac34
985
py
Python
uploads/migrations/0001_initial.py
briefmnews/django-uploads
c40d6d969ca66e83ec5716d97fdf3a9753e535bd
[ "MIT" ]
null
null
null
uploads/migrations/0001_initial.py
briefmnews/django-uploads
c40d6d969ca66e83ec5716d97fdf3a9753e535bd
[ "MIT" ]
null
null
null
uploads/migrations/0001_initial.py
briefmnews/django-uploads
c40d6d969ca66e83ec5716d97fdf3a9753e535bd
[ "MIT" ]
null
null
null
# Generated by Django 2.2.15 on 2021-01-27 14:41 from django.db import migrations, models import uploads.models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Document", fields=[ ( ...
27.361111
79
0.46802
795d7f561c939b79fac5f02eba1a5923e493c2a1
651
py
Python
list_and_dicts.py
angelxehg/python-intermedio
e4067db7e97f50728fbdc087845806694843b817
[ "MIT" ]
null
null
null
list_and_dicts.py
angelxehg/python-intermedio
e4067db7e97f50728fbdc087845806694843b817
[ "MIT" ]
null
null
null
list_and_dicts.py
angelxehg/python-intermedio
e4067db7e97f50728fbdc087845806694843b817
[ "MIT" ]
null
null
null
#!/usr/bin/env python def main(): my_list = [1, "Hello", True, 4.5] my_dict = {"first_name": "Angel", "last_name": "Hurtado"} super_list = [ {"first_name": "Angel", "last_name": "Hurtado"}, {"first_name": "Eduardo", "last_name": "Hurtado"}, {"first_name": "Angel", "last_name": "Gar...
26.04
61
0.522273
795d7fb959334548562d8e26dd73efbc4949813d
331
py
Python
emoji_search/test/test_create_whoosh_index.py
AdamKBeck/EmojiFi
b90aeb656a4474b3011c074b57741282aaf3bb23
[ "MIT" ]
1
2019-02-16T16:34:09.000Z
2019-02-16T16:34:09.000Z
emoji_search/test/test_create_whoosh_index.py
AdamKBeck/EmojiFi
b90aeb656a4474b3011c074b57741282aaf3bb23
[ "MIT" ]
29
2019-02-22T21:00:04.000Z
2019-04-10T01:41:34.000Z
emoji_search/test/test_create_whoosh_index.py
AdamKBeck/EmojiFi
b90aeb656a4474b3011c074b57741282aaf3bb23
[ "MIT" ]
1
2019-02-18T15:57:42.000Z
2019-02-18T15:57:42.000Z
from emojisearch.create_whoosh_index import create_indexes from emojisearch.paths import INDEX_DIR from emojisearch.paths import INDEX_DIR_FALLBACK import os def test_generate_search_files(setup_fake_filesystem): create_indexes() assert len(os.listdir(INDEX_DIR)) == 3 assert len(os.listdir(INDEX_DIR_FALLB...
30.090909
58
0.81571
795d809107f1d55ece80ff95f471a1bfe1449ceb
1,366
py
Python
tao_detection_release/.history/tools/multi_process_inference/multi_inference_20200804110853.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
73
2021-02-01T11:33:51.000Z
2021-11-15T11:46:55.000Z
tao_detection_release/.history/tools/multi_process_inference/multi_inference_20200804110853.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
3
2021-03-16T11:35:35.000Z
2021-07-09T06:07:25.000Z
tao_detection_release/.history/tools/multi_process_inference/multi_inference_20200804110853.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
4
2021-02-01T16:16:37.000Z
2021-07-28T05:38:50.000Z
# coding=utf-8 import os import cv2 import sys import pdb import subprocess import multiprocessing import inference_utils import common def single_process(index, task, gpu): print(("任务%d处理%d张图片" % (index, len(task)))) # 写文件 filename = inference_utils.dump_testfile(task, index) out_str = subproces...
26.269231
166
0.66325
795d81711a5436cfc857c0dffdc152e2b1cbff83
427
py
Python
process_info_pages.py
invisiblebob395/awefawe
42daf9d3ae06bcdb3b91973d94eed8bed1303e2b
[ "BSD-3-Clause" ]
17
2015-01-19T07:53:57.000Z
2021-07-10T02:26:51.000Z
process_info_pages.py
qt911025/pw_module_system
dbd257e5231d16c47f17091a3ab18972be7687e5
[ "BSD-3-Clause" ]
1
2017-08-31T03:55:09.000Z
2017-08-31T03:55:09.000Z
process_info_pages.py
qt911025/pw_module_system
dbd257e5231d16c47f17091a3ab18972be7687e5
[ "BSD-3-Clause" ]
14
2015-05-03T05:20:01.000Z
2021-12-29T17:10:50.000Z
import process_common as pc import process_operations as po import module_info_pages def process_entry(processor, txt_file, entry, index): txt_file.write("ip_%s %s %s\r\n" % (entry[0], pc.replace_spaces(entry[1]), pc.replace_spaces(entry[2]))) export = po.make_export(data=module_info_pages.info_pages, data_name="in...
42.7
106
0.772834
795d8372cd26271a5ea0835e69a24f638fc2b0dd
2,280
py
Python
components/google-cloud/tests/container/experimental/gcp_launcher/utils/test_artifact_util.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/google-cloud/tests/container/experimental/gcp_launcher/utils/test_artifact_util.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/google-cloud/tests/container/experimental/gcp_launcher/utils/test_artifact_util.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow 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 applicabl...
44.705882
207
0.712719
795d844b6395234cdfefacffc01421ebc16c05c1
348
py
Python
opt/ipfwd.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
1
2020-08-13T14:44:41.000Z
2020-08-13T14:44:41.000Z
opt/ipfwd.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
null
null
null
opt/ipfwd.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
null
null
null
# opt/ipfwd.py from twisted.internet import protocol from twisted.web.http_headers import Headers from stringprod import StringProducer from collections import deque from datetime import datetime import json, sys, random, uuid class IpForward(protocol.Protocol): pass class IpForwardFactory(protocol.Reconnecti...
19.333333
59
0.813218
795d84dbef6422dd22eb1aa2aedacfa4e9a904d4
2,347
py
Python
profiler/src/openmetadata/databases/athena.py
tomtor/OpenMetadata
c925168f6503c6db74742b87caf1a4011b89beea
[ "Apache-2.0" ]
null
null
null
profiler/src/openmetadata/databases/athena.py
tomtor/OpenMetadata
c925168f6503c6db74742b87caf1a4011b89beea
[ "Apache-2.0" ]
null
null
null
profiler/src/openmetadata/databases/athena.py
tomtor/OpenMetadata
c925168f6503c6db74742b87caf1a4011b89beea
[ "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...
31.293333
75
0.668513
795d861cf235db5b3677115074089a87d5f1772a
3,422
py
Python
logger.py
StefOe/selection-masks
e59487bffe3c30bdab7a6425bed01f6adeda4f67
[ "BSD-2-Clause" ]
null
null
null
logger.py
StefOe/selection-masks
e59487bffe3c30bdab7a6425bed01f6adeda4f67
[ "BSD-2-Clause" ]
null
null
null
logger.py
StefOe/selection-masks
e59487bffe3c30bdab7a6425bed01f6adeda4f67
[ "BSD-2-Clause" ]
1
2021-06-10T12:13:31.000Z
2021-06-10T12:13:31.000Z
from torch.utils.tensorboard import SummaryWriter import torch class Logger(SummaryWriter): def __init__(self, log_iter, use_any_mask, use_thumbs, use_fmap, n_featuremaps, n_thumbs, img_mean, img_std, device, **kwargs): self.log_iter = log_iter self.n_featuremaps = n_featuremaps ...
41.731707
120
0.593805
795d862ee9e9ae841a69c2539b1d94c92bbaefa7
8,558
py
Python
graph_objs/layout/yaxis/title/_font.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/layout/yaxis/title/_font.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/layout/yaxis/title/_font.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.yaxis.title" _path_str = "layout.yaxis.title.font" _valid_props = {"color", "family"...
37.371179
84
0.566838
795d87cd2120dbfed56f9ede20726dc260f3d4b4
637
py
Python
snipslms/shared/use_case.py
CrystalMethod/snips-lms-skill
dfa879270010d5ece8a144c45c81124b9ad36e23
[ "MIT" ]
10
2018-08-01T08:15:12.000Z
2019-10-09T21:05:50.000Z
snipslms/shared/use_case.py
CrystalMethod/snips-lms-skill
dfa879270010d5ece8a144c45c81124b9ad36e23
[ "MIT" ]
2
2018-08-01T08:06:21.000Z
2019-07-28T14:01:20.000Z
snipslms/shared/use_case.py
CrystalMethod/snips-lms-skill
dfa879270010d5ece8a144c45c81124b9ad36e23
[ "MIT" ]
4
2018-08-01T08:15:15.000Z
2019-08-28T13:17:56.000Z
from snipslms.shared.response_object import ResponseFailure class UseCase(object): def execute(self, request_object): if not request_object: return ResponseFailure.build_from_invalid_request_object(request_object) try: return self.process_request(request_object) e...
30.333333
84
0.66405
795d895930f3cfbc09a6b5c7d17cb735f104c1ad
1,038
py
Python
metatone_gesture_encoding.py
cpmpercussion/ensemble-performance-deep-models
04037777d7cc6d4fdfd30bfa9fa07642cc1754a0
[ "MIT" ]
null
null
null
metatone_gesture_encoding.py
cpmpercussion/ensemble-performance-deep-models
04037777d7cc6d4fdfd30bfa9fa07642cc1754a0
[ "MIT" ]
null
null
null
metatone_gesture_encoding.py
cpmpercussion/ensemble-performance-deep-models
04037777d7cc6d4fdfd30bfa9fa07642cc1754a0
[ "MIT" ]
null
null
null
""" Encodes (and decodes) multiple metatone performance gesture codes into single natural numbers. Given n gesture codes g_1,g_2,\ldots,g_n in the range [1,j-1], these can be encoded as a unique integer: g_1j^0 + g_2j^1 + \ldots + g_nj^(n-1) And subsequently decoded into the original ordered set. """ # Int values for ...
27.315789
104
0.635838
795d8bce77b9fb1690c04c9bc9f835d42c08dbb3
15,738
py
Python
assertpy/base.py
santunioni/assertpy
c970c6612a80aa10769dc612324630d27019e1b5
[ "BSD-3-Clause" ]
138
2019-11-19T11:58:50.000Z
2022-03-29T21:30:33.000Z
assertpy/base.py
santunioni/assertpy
c970c6612a80aa10769dc612324630d27019e1b5
[ "BSD-3-Clause" ]
24
2019-11-17T21:13:22.000Z
2022-03-18T21:57:33.000Z
assertpy/base.py
santunioni/assertpy
c970c6612a80aa10769dc612324630d27019e1b5
[ "BSD-3-Clause" ]
23
2019-11-17T15:47:15.000Z
2022-03-18T21:25:51.000Z
# Copyright (c) 2015-2019, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
36.771028
133
0.564112
795d8bdef0c7c2c88ae29769d089b74e56d8edbb
12,714
py
Python
calendarium/south_migrations/0010_auto__add_field_event_image.py
SlavaSkvortsov/django-calendarium
eafcd132b88d500b4dcb94f4fcffc93092c85762
[ "MIT" ]
null
null
null
calendarium/south_migrations/0010_auto__add_field_event_image.py
SlavaSkvortsov/django-calendarium
eafcd132b88d500b4dcb94f4fcffc93092c85762
[ "MIT" ]
null
null
null
calendarium/south_migrations/0010_auto__add_field_event_image.py
SlavaSkvortsov/django-calendarium
eafcd132b88d500b4dcb94f4fcffc93092c85762
[ "MIT" ]
null
null
null
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Event.image' db.add_column('calendarium_event', 'image', ...
80.468354
191
0.562765
795d8d3248f98a32cf137844332d3af48e82f2f9
2,158
py
Python
iris classification/iris classification by SVM.py
Daniel-Cheng249/Model-reproduction
71c83ef1e0dc6a5013e5458d39781c721f797c6e
[ "MIT" ]
null
null
null
iris classification/iris classification by SVM.py
Daniel-Cheng249/Model-reproduction
71c83ef1e0dc6a5013e5458d39781c721f797c6e
[ "MIT" ]
null
null
null
iris classification/iris classification by SVM.py
Daniel-Cheng249/Model-reproduction
71c83ef1e0dc6a5013e5458d39781c721f797c6e
[ "MIT" ]
null
null
null
from sklearn import svm import numpy as np import matplotlib.pyplot as plt import matplotlib from sklearn.model_selection import train_test_split # 定义字典,将字符与数字对应起来 def Iris_label(s): it = {b'Iris-setosa': 0, b'Iris-versicolor': 1, b'Iris-virginica': 2} return it[s] path = 'Iris.data' data = np...
33.71875
119
0.683967
795d8dbebc39fa8f3edb10790167e35058895a6e
10,673
py
Python
pyavreceiver/zone.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
2
2020-12-28T06:09:18.000Z
2021-01-09T22:36:57.000Z
pyavreceiver/zone.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
1
2021-02-03T22:59:49.000Z
2021-02-03T22:59:49.000Z
pyavreceiver/zone.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
null
null
null
"""Define the interface of an A/V Receiver Zone.""" import asyncio import logging from functools import partial from typing import Callable, Coroutine, Dict, List, Optional, Sequence, Union from pyavreceiver import const from pyavreceiver.command import Command from pyavreceiver.functions import none _LOGGER = loggin...
33.043344
91
0.61857
795d9084f9f5b67882cf769e6728d0598076ac4b
225
py
Python
opaal/opaal/passed_waiting_list/__init__.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
opaal/opaal/passed_waiting_list/__init__.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
opaal/opaal/passed_waiting_list/__init__.py
sen-uni-kn/tartar
5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0
[ "MIT" ]
null
null
null
#What we want to export from simple_pwlist import NoMoreStatesException, GoalFoundException from simple_pwlist import SimplePWList from lattice_pwlist import LatticeCoverPWList, LatticeJoinPWList # vim:ts=4:sw=4:expandtab
25
67
0.853333
795d90a0424491b194037494818993ec38148e62
8,933
py
Python
tools/tfm_parse_manifest_list.py
hakonfam/us-trusted-firmware-m
9c1d16a0b63f51cdbe546d9dcbc179603a51be3e
[ "BSD-3-Clause" ]
null
null
null
tools/tfm_parse_manifest_list.py
hakonfam/us-trusted-firmware-m
9c1d16a0b63f51cdbe546d9dcbc179603a51be3e
[ "BSD-3-Clause" ]
1
2021-04-30T06:32:41.000Z
2021-05-06T01:32:34.000Z
tools/tfm_parse_manifest_list.py
hakonfam/us-trusted-firmware-m
9c1d16a0b63f51cdbe546d9dcbc179603a51be3e
[ "BSD-3-Clause" ]
null
null
null
#------------------------------------------------------------------------------- # Copyright (c) 2018-2020, Arm Limited. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # #------------------------------------------------------------------------------- import os import io import sys import argparse from ...
33.965779
138
0.621964
795d91149863290c0c8503ac675119933fb6ec49
3,200
py
Python
dortoka_flexbe_behaviors/src/dortoka_flexbe_behaviors/autodock_sm.py
xabigarde/dortoka_behaviors
723a88759f2fa674266b0102c0fc4bde832dfd36
[ "BSD-3-Clause" ]
null
null
null
dortoka_flexbe_behaviors/src/dortoka_flexbe_behaviors/autodock_sm.py
xabigarde/dortoka_behaviors
723a88759f2fa674266b0102c0fc4bde832dfd36
[ "BSD-3-Clause" ]
null
null
null
dortoka_flexbe_behaviors/src/dortoka_flexbe_behaviors/autodock_sm.py
xabigarde/dortoka_behaviors
723a88759f2fa674266b0102c0fc4bde832dfd36
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
35.164835
151
0.573438
795d91edea9ad88c864eba8f5f9aa44fe36fdd31
2,165
py
Python
monitor_django/config/settings/local.py
hernanramirez/monitor_ovcida
c1920b0438b1516c8667f07d1739b5d177fd778b
[ "MIT" ]
null
null
null
monitor_django/config/settings/local.py
hernanramirez/monitor_ovcida
c1920b0438b1516c8667f07d1739b5d177fd778b
[ "MIT" ]
null
null
null
monitor_django/config/settings/local.py
hernanramirez/monitor_ovcida
c1920b0438b1516c8667f07d1739b5d177fd778b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Local settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app """ from .common import * # noqa import socket import os # DEBUG # ------------------------------------------------------------------------------ DEBUG = env.bool...
30.069444
99
0.515012
795d91f70402f40b3d793464ee7a7081b6a2e217
33,099
py
Python
src/pretix/control/views/user.py
tcatm/pretix
a76f74b161e140f4445568b97cb26fc57247e0d2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/views/user.py
tcatm/pretix
a76f74b161e140f4445568b97cb26fc57247e0d2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/views/user.py
tcatm/pretix
a76f74b161e140f4445568b97cb26fc57247e0d2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import base64 import json import logging import os import time from collections import defaultdict from urllib.parse import quote, urlparse import webauthn from django.conf import settings from django.contrib import messages from django.contrib.auth import update_session_auth_hash from django.contrib.contenttypes.mode...
43.666227
127
0.629898
795d92604e412225e6675462595b4de14ca29089
1,113
py
Python
RecommenderModule/evaluation/resources/evaluation_data_provider.py
amir-rahim/BookClubSocialNetwork
b69a07cd33592f700214252a64c7c1c53845625d
[ "MIT" ]
4
2022-02-04T02:11:48.000Z
2022-03-12T21:38:01.000Z
RecommenderModule/evaluation/resources/evaluation_data_provider.py
amir-rahim/BookClubSocialNetwork
b69a07cd33592f700214252a64c7c1c53845625d
[ "MIT" ]
51
2022-02-01T18:56:23.000Z
2022-03-31T15:35:37.000Z
RecommenderModule/evaluation/resources/evaluation_data_provider.py
amir-rahim/BookClubSocialNetwork
b69a07cd33592f700214252a64c7c1c53845625d
[ "MIT" ]
null
null
null
from surprise.model_selection import LeaveOneOut """This class provides the Evaluator Engine with a dataset split into a train set and a test set, using 'Leave-One-Out'.""" class EvaluationDataProvider: dataset = None loocv_trainset = None loocv_testset = None def __init__(self, dataset):...
38.37931
84
0.67655
795d92ee27295dee763f393172177dd5d86060cf
742
py
Python
rAnProject/settings.py
rAnYKM/rAnProject
4004ee26b8a61e6ceb95c16f88f1cdc1fd0866bb
[ "Apache-2.0" ]
null
null
null
rAnProject/settings.py
rAnYKM/rAnProject
4004ee26b8a61e6ceb95c16f88f1cdc1fd0866bb
[ "Apache-2.0" ]
null
null
null
rAnProject/settings.py
rAnYKM/rAnProject
4004ee26b8a61e6ceb95c16f88f1cdc1fd0866bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2016 rAnYKM (Jiayi Chen) # """ settings.py - rAnProject Configuration Module Python Define Constants """ import os # Module Names SNAP_DATA_MODULE = 'SNAPdata' ATTACK_MODULE = 'rAnAttack' PROTECTION_MODULE = 'rAnPriv' DEMO_MODULE = 'rAnPage' # SNAP_DATA_MODULE GOOGLE_PLUS = '...
21.2
96
0.766846
795d9364097f0b9f8c5a98e90ea90fcbaee8f658
21,303
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "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 ...
50.361702
252
0.674553
795d936840ea5e04455d7e2e87c7fbce5a01ec4f
1,825
py
Python
src/config.py
muzilli/azure-batch-ffmpeg
cbead7ffa9b28eb1f98fa93dc51883ef4741b731
[ "MIT" ]
null
null
null
src/config.py
muzilli/azure-batch-ffmpeg
cbead7ffa9b28eb1f98fa93dc51883ef4741b731
[ "MIT" ]
null
null
null
src/config.py
muzilli/azure-batch-ffmpeg
cbead7ffa9b28eb1f98fa93dc51883ef4741b731
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. # ----------------...
55.30303
141
0.70411
795d9382774c9273a3234de405fbc81688409e9b
12,005
py
Python
pytorch/pytorchcv/models/ibnbresnet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
1
2021-01-08T04:55:45.000Z
2021-01-08T04:55:45.000Z
pytorch/pytorchcv/models/ibnbresnet.py
earhian/imgclsmob
c87c0942420876941868c016211073dec4392e4d
[ "MIT" ]
null
null
null
pytorch/pytorchcv/models/ibnbresnet.py
earhian/imgclsmob
c87c0942420876941868c016211073dec4392e4d
[ "MIT" ]
null
null
null
""" IBN(b)-ResNet, implemented in PyTorch. Original paper: 'Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net,' https://arxiv.org/abs/1807.09441. """ __all__ = ['IBNbResNet', 'ibnb_resnet50', 'ibnb_resnet101', 'ibnb_resnet152'] import os import torch.nn as nn import torch.nn.init a...
30.0125
115
0.587755
795d93aad7e1d4927d3acd0e4d3ebbb29a13bff2
21,740
py
Python
benchmarks/benchmark_expm1.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
2
2017-08-28T08:41:16.000Z
2018-05-29T03:49:36.000Z
benchmarks/benchmark_expm1.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
benchmarks/benchmark_expm1.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ############################################################################## # Project: arrayfunc # Module: benchmark_expm1.py # Purpose: Benchmark tests for 'arrayfunc' functions. # Language: Python 3.5 # Date: 20-Dec-2018. # Ver: 07-Sep-2021. # ###################################...
30.320781
134
0.673597
795d93cff630f13442f76a3a0c3e56908d451a48
3,859
py
Python
slovakrailways/route.py
martinbenes1996/slovak-railways
d82438275d284571ff8d856a7fec64be7c743060
[ "MIT" ]
null
null
null
slovakrailways/route.py
martinbenes1996/slovak-railways
d82438275d284571ff8d856a7fec64be7c743060
[ "MIT" ]
1
2021-10-04T08:12:38.000Z
2021-10-04T08:29:19.000Z
slovakrailways/route.py
martinbenes1996/slovak-railways
d82438275d284571ff8d856a7fec64be7c743060
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Slovak Railways API. This module contains functions to call Slovak Railways API. Todo: * delays of multiple trains at single request * caching """ # global imports import datetime import json import logging import sys from urllib.error import HTTPError,URLError # local imports fro...
33.556522
111
0.622182
795d95f515a1c4da73dc2f194567a6fdbf753576
1,002
py
Python
snakemake/workflow/scripts/ntSecondaryLca.py
henr0089/hecatomb
54c7636fac5af430ba8064246eb0e6a7d525740d
[ "MIT" ]
null
null
null
snakemake/workflow/scripts/ntSecondaryLca.py
henr0089/hecatomb
54c7636fac5af430ba8064246eb0e6a7d525740d
[ "MIT" ]
null
null
null
snakemake/workflow/scripts/ntSecondaryLca.py
henr0089/hecatomb
54c7636fac5af430ba8064246eb0e6a7d525740d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import logging import atexit def exitLogCleanup(*args): """Cleanup the logging file(s) prior to exiting""" for logFile in args: os.unlink(logFile) return None atexit.register(exitLogCleanup, snakemake.log[0]) logging.basicConfig(filename=snakemake.log[0], filemode...
28.628571
81
0.618762
795d96a49f25e7f837d08ff64265590a96bb2845
9,268
py
Python
third_party/sol2/docs/source/conf.py
EricWang1hitsz/osrm-backend
ff1af413d6c78f8e454584fe978d5468d984d74a
[ "BSD-2-Clause" ]
4,526
2015-01-01T15:31:00.000Z
2022-03-31T17:33:49.000Z
third_party/sol2/docs/source/conf.py
wsx9527/osrm-backend
1e70b645e480946dad313b67f6a7d331baecfe3c
[ "BSD-2-Clause" ]
4,497
2015-01-01T15:29:12.000Z
2022-03-31T19:19:35.000Z
third_party/sol2/docs/source/conf.py
wsx9527/osrm-backend
1e70b645e480946dad313b67f6a7d331baecfe3c
[ "BSD-2-Clause" ]
3,023
2015-01-01T18:40:53.000Z
2022-03-30T13:30:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Sol documentation build configuration file, created by # sphinx-quickstart on Mon Feb 29 21:49:51 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autoge...
32.865248
80
0.714502
795d9732da90e794d7760273767f1a4426306dcd
762
py
Python
CheckIO/Elementary/10_Boolean_Algebra.py
marshallhumble/Project_Euler
90101d308a3342a0eab33c1f4580df549bfc8896
[ "MIT" ]
3
2015-12-16T18:38:34.000Z
2015-12-22T15:21:17.000Z
CheckIO/Elementary/10_Boolean_Algebra.py
marshallhumble/Project_Euler
90101d308a3342a0eab33c1f4580df549bfc8896
[ "MIT" ]
null
null
null
CheckIO/Elementary/10_Boolean_Algebra.py
marshallhumble/Project_Euler
90101d308a3342a0eab33c1f4580df549bfc8896
[ "MIT" ]
null
null
null
OPERATION_NAMES = ("conjunction", "disjunction", "implication", "exclusive", "equivalence") def boolean(x, y, operation): if operation == OPERATION_NAMES[0]: return int(x and y) if operation == OPERATION_NAMES[1]: return int(x or y) if operation == OPERATION_NAMES[2]: return int(no...
29.307692
91
0.610236
795d97bb019f72bcc39a6d706fae185fcee49f6a
7,519
py
Python
python/jmxquery/__init__.py
RTBHOUSE/JMXQuery
876e7cb73521cb8eb8ba4baadff82d48e6a81d35
[ "MIT" ]
35
2019-03-01T03:12:16.000Z
2022-02-03T06:09:50.000Z
python/jmxquery/__init__.py
RTBHOUSE/JMXQuery
876e7cb73521cb8eb8ba4baadff82d48e6a81d35
[ "MIT" ]
10
2019-02-19T04:52:17.000Z
2020-11-11T14:54:26.000Z
python/jmxquery/__init__.py
RTBHOUSE/JMXQuery
876e7cb73521cb8eb8ba4baadff82d48e6a81d35
[ "MIT" ]
24
2019-02-21T03:47:19.000Z
2022-02-25T22:29:35.000Z
#!/usr/bin/env python3 """ Python interface to JMX. Uses local jar to pass commands to JMX and read JSON results returned. """ import subprocess import os import json from typing import List from enum import Enum import logging # Full Path to Jar JAR_PATH = os.path.dirname(os.path.realpath(__file__)) + '/JMX...
36.149038
132
0.572683
795d98271f73a1a530d3aa1fba5c7d091ce0fb6c
3,486
py
Python
tests/test_line_processor.py
gs-kikim/md_docs-trans-app
c28d19a1b72680fbe10e29e74b3c20a02f3bc7c6
[ "MIT" ]
null
null
null
tests/test_line_processor.py
gs-kikim/md_docs-trans-app
c28d19a1b72680fbe10e29e74b3c20a02f3bc7c6
[ "MIT" ]
null
null
null
tests/test_line_processor.py
gs-kikim/md_docs-trans-app
c28d19a1b72680fbe10e29e74b3c20a02f3bc7c6
[ "MIT" ]
null
null
null
from unittest import mock import pytest from langdetect.lang_detect_exception import LangDetectException from docs_translate import const from docs_translate.line_processor import Line detect_path = 'docs_translate.translator.detect' @pytest.fixture() def en_ru_settings(): class MockedSettings: api_key...
30.849558
74
0.602697
795d995fa6bed0f049a265c6b374252492520b22
12,147
py
Python
src/extensions/COMMANDS/SetCommand.py
Nandi-Ai/python-redfish-utility
9e1f6b856fcdee48306fcf1bcc88cb5ae9c3d93a
[ "Apache-2.0" ]
null
null
null
src/extensions/COMMANDS/SetCommand.py
Nandi-Ai/python-redfish-utility
9e1f6b856fcdee48306fcf1bcc88cb5ae9c3d93a
[ "Apache-2.0" ]
null
null
null
src/extensions/COMMANDS/SetCommand.py
Nandi-Ai/python-redfish-utility
9e1f6b856fcdee48306fcf1bcc88cb5ae9c3d93a
[ "Apache-2.0" ]
null
null
null
### # Copyright 2020 Hewlett Packard Enterprise, 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 ...
42.771127
103
0.506627
795d996701619a6c9e1909deb3e63ab7156aabe9
56,713
py
Python
models_nonconvex_simple/edgecross10-070.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_nonconvex_simple/edgecross10-070.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_nonconvex_simple/edgecross10-070.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
1
2019-05-10T18:34:18.000Z
2019-05-10T18:34:18.000Z
# MINLP written by GAMS Convert at 08/13/20 17:38:08 # # Equation counts # Total E G L N X C B # 481 0 1 480 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
44.376369
120
0.51646
795d99c52475d6426a22bf5893db65f3b4be7f7b
2,094
py
Python
setup.py
inmagik/django-rest-admin
61c0d1a993ebcf144352e0ee0f916d9e63c1ccf7
[ "BSD-3-Clause" ]
15
2015-11-13T00:22:11.000Z
2020-02-04T12:07:05.000Z
setup.py
inmagik/django-rest-admin
61c0d1a993ebcf144352e0ee0f916d9e63c1ccf7
[ "BSD-3-Clause" ]
null
null
null
setup.py
inmagik/django-rest-admin
61c0d1a993ebcf144352e0ee0f916d9e63c1ccf7
[ "BSD-3-Clause" ]
5
2015-11-13T11:23:19.000Z
2019-08-06T18:43:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import django_rest_admin try: from setuptools import setup except ImportError: from distutils.core import setup version = django_rest_admin.__version__ if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.syste...
29.083333
99
0.631805
795d9a312f62803bc5992e91fa84d09724a8da2b
54,702
py
Python
test/terra/reference/ref_non_clifford.py
1ucian0/qiskit-aer
138353ed262346e5431cd73cfe40ffd750c92d56
[ "Apache-2.0" ]
1
2019-05-19T10:30:03.000Z
2019-05-19T10:30:03.000Z
test/terra/reference/ref_non_clifford.py
1ucian0/qiskit-aer
138353ed262346e5431cd73cfe40ffd750c92d56
[ "Apache-2.0" ]
4
2020-09-18T15:35:31.000Z
2020-11-10T17:15:15.000Z
test/terra/reference/ref_non_clifford.py
1ucian0/qiskit-aer
138353ed262346e5431cd73cfe40ffd750c92d56
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
32.083284
79
0.481481
795d9a4ae2badecb61c71aae725676ca1e839eca
6,842
py
Python
data/voc07_consistency_init.py
soo89/CSD-SSD
0466f9670e781e46cac8d96f880bf5645f49d499
[ "MIT" ]
86
2019-11-20T05:46:54.000Z
2022-03-14T03:19:13.000Z
CISSL_det/data/voc07_consistency_init.py
MinsungHyun/Class-Imbalanced-Semi-Supervsied-Learning
fed14a47fa4dda8a72e8f606ad9a21922b4f7ba4
[ "MIT" ]
15
2019-11-06T07:13:15.000Z
2021-09-26T02:53:02.000Z
CISSL_det/data/voc07_consistency_init.py
MinsungHyun/Class-Imbalanced-Semi-Supervsied-Learning
fed14a47fa4dda8a72e8f606ad9a21922b4f7ba4
[ "MIT" ]
18
2020-02-12T09:36:15.000Z
2021-12-22T23:52:50.000Z
"""VOC Dataset Classes Original author: Francisco Massa https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py Updated by: Ellis Brown, Max deGroot """ from .config import HOME import os.path as osp import sys import torch import torch.utils.data as data import cv2 import numpy as np if sys.ver...
35.450777
85
0.592371
795d9c863aaa6a7356c1f24597fd9f6c8dc19960
3,818
py
Python
MainTool.py
Amreeta-18/AID-GUI
92e7b441136d8a48798ef7ed9ed34f629b3ad0a0
[ "Apache-2.0" ]
null
null
null
MainTool.py
Amreeta-18/AID-GUI
92e7b441136d8a48798ef7ed9ed34f629b3ad0a0
[ "Apache-2.0" ]
null
null
null
MainTool.py
Amreeta-18/AID-GUI
92e7b441136d8a48798ef7ed9ed34f629b3ad0a0
[ "Apache-2.0" ]
null
null
null
from GMFormInput import GMFormInput from parseDOM import parseDOM from CheckRules import CheckRules from gensim.summarization import keywords import re import openpyxl from openpyxl import load_workbook import spacy from collections import Counter import xlrd import textParser # This file runs each of the rules for ea...
32.632479
136
0.629387
795d9cd5410a4c902905271de32965f4af4d7f65
944
py
Python
screenshooter/__main__.py
guilherme-kenzo/auto-lovelace-screenshooter
86a73da37a587906aaaee9fc8ed2d481f9a94ba9
[ "MIT" ]
null
null
null
screenshooter/__main__.py
guilherme-kenzo/auto-lovelace-screenshooter
86a73da37a587906aaaee9fc8ed2d481f9a94ba9
[ "MIT" ]
null
null
null
screenshooter/__main__.py
guilherme-kenzo/auto-lovelace-screenshooter
86a73da37a587906aaaee9fc8ed2d481f9a94ba9
[ "MIT" ]
null
null
null
from .client import ScreenshotClient import schedule import click from .schedule import run_screenshot_every @click.command() @click.option("--xpath", type=click.STRING, required=True, help="The XPATH of the element to be screenshot.") @click.option("--output-file", type=click.STRING, required=True, help="The path o...
39.333333
146
0.711864
795d9d1040dcfc0b961884a3e05d3fc7eba53d10
465
py
Python
World/WorldEnter/Handlers/TimeSync.py
sergio-ivanuzzo/idewave-core
31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae
[ "Apache-2.0" ]
10
2019-06-29T19:24:52.000Z
2021-02-21T22:45:57.000Z
World/WorldEnter/Handlers/TimeSync.py
sergio-ivanuzzo/wowcore
31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae
[ "Apache-2.0" ]
4
2019-08-15T07:03:36.000Z
2021-06-02T13:01:25.000Z
World/WorldEnter/Handlers/TimeSync.py
sergio-ivanuzzo/idewave-core
31b2b2ec4ac222e02af57d8b2d7a3277e4a444ae
[ "Apache-2.0" ]
8
2019-06-30T22:47:48.000Z
2021-02-20T19:21:30.000Z
from World.WorldPacket.Constants.WorldOpCode import WorldOpCode from Server.Connection.Connection import Connection class TimeSync(object): def __init__(self, **kwargs): self.data = kwargs.pop('data', bytes()) self.connection: Connection = kwargs.pop('connection') async def process(self) -> ...
31
63
0.701075
795d9d51c3b4ec06e6a1e8438305367f33327bd4
21,211
py
Python
se3_transformer_pytorch/se3_transformer_pytorch.py
SuperXiang/se3-transformer-pytorch
d0db110533c0cd29a243e05e27dbef083ff232f4
[ "MIT" ]
1
2021-03-15T03:03:26.000Z
2021-03-15T03:03:26.000Z
se3_transformer_pytorch/se3_transformer_pytorch.py
SuperXiang/se3-transformer-pytorch
d0db110533c0cd29a243e05e27dbef083ff232f4
[ "MIT" ]
null
null
null
se3_transformer_pytorch/se3_transformer_pytorch.py
SuperXiang/se3-transformer-pytorch
d0db110533c0cd29a243e05e27dbef083ff232f4
[ "MIT" ]
null
null
null
from math import sqrt from itertools import product from collections import namedtuple import torch import torch.nn.functional as F from torch import nn, einsum from se3_transformer_pytorch.basis import get_basis from se3_transformer_pytorch.utils import exists, default, uniq, map_values, batched_index_select, masked...
34.21129
202
0.599595
795d9d73d2eb15eb3f048f5c493b61c6a36d3055
4,737
py
Python
tests/functional/services/policy_engine/vulnerability_data_tests/test_query_vulnerabilities.py
Be-Secure/anchore-engine
0677a822f9d9fcfbd7562682b9641ceba9b47200
[ "Apache-2.0" ]
1,484
2017-09-11T19:08:42.000Z
2022-03-29T07:47:44.000Z
tests/functional/services/policy_engine/vulnerability_data_tests/test_query_vulnerabilities.py
Be-Secure/anchore-engine
0677a822f9d9fcfbd7562682b9641ceba9b47200
[ "Apache-2.0" ]
913
2017-09-27T20:37:53.000Z
2022-03-29T17:21:28.000Z
tests/functional/services/policy_engine/vulnerability_data_tests/test_query_vulnerabilities.py
PhoenixRedflash/anchore-engine
4192eba02bb91cf0eebebe32e8134b27b06feefe
[ "Apache-2.0" ]
294
2017-09-12T16:54:03.000Z
2022-03-14T01:28:51.000Z
from collections import defaultdict from dataclasses import asdict import pytest import tests.functional.services.policy_engine.utils.api as policy_engine_api from tests.functional.services.policy_engine.utils.utils import ( VulnerabilityQuery, VulnerabilityQueryMetadata, ) from tests.functional.services.util...
38.827869
112
0.574414
795d9dc8661d58c6af9dee05aedd1526f389b6ab
345
py
Python
src/algoritmia/problems/activityselection/greedy1.py
DavidLlorens/algoritmia
40ca0a89ea6de9b633fa5f697f0a28cae70816a2
[ "MIT" ]
6
2018-09-15T15:09:10.000Z
2022-02-27T01:23:11.000Z
src/algoritmia/problems/activityselection/greedy1.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
null
null
null
src/algoritmia/problems/activityselection/greedy1.py
JeromeIllgner/algoritmia
406afe7206f2411557859bf03480c16db7dcce0d
[ "MIT" ]
5
2018-07-10T20:19:55.000Z
2021-03-31T03:32:22.000Z
#< act1 class ActivitiesSelector1: def select(self, C: "ISet<(Real, Real)>") -> "ISet<(Real, Real)>": x = [] for (s, t) in sorted(C, key=lambda st: st[1]): if not any(s_prime <= s < t_prime or s_prime < t <= t_prime for (s_prime, t_prime) in x): x.append( (s, t) ) ...
38.333333
102
0.507246
795d9e308528d4838cfa41f668d2756088a811b3
10,808
py
Python
projectq/backends/_awsbraket/_awsbraket_boto3_client_test.py
ssc1729/ProjectQ
78afc11353387ff9657bf65ac9dfdb834c966792
[ "Apache-2.0" ]
795
2016-12-27T17:29:30.000Z
2022-02-21T13:58:18.000Z
projectq/backends/_awsbraket/_awsbraket_boto3_client_test.py
ssc1729/ProjectQ
78afc11353387ff9657bf65ac9dfdb834c966792
[ "Apache-2.0" ]
264
2016-12-29T01:13:15.000Z
2022-03-29T12:14:56.000Z
projectq/backends/_awsbraket/_awsbraket_boto3_client_test.py
ssc1729/ProjectQ
78afc11353387ff9657bf65ac9dfdb834c966792
[ "Apache-2.0" ]
309
2016-12-28T20:26:15.000Z
2022-03-29T15:38:34.000Z
# -*- coding: utf-8 -*- # Copyright 2021 ProjectQ-Framework (www.projectq.ch) # # 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 # # ...
35.788079
118
0.643782