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
35cd349742537e8094877a70317264f9edac6875
7,951
py
Python
env/lib/python3.6/site-packages/traits/_py2to3.py
Raniac/NEURO-LEARN
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
env/lib/python3.6/site-packages/traits/_py2to3.py
Raniac/neurolearn_dev
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
env/lib/python3.6/site-packages/traits/_py2to3.py
Raniac/NEURO-LEARN
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
""" Helper module, providing a common API for tasks that require a different implementation in python 2 and 3. """ from __future__ import division, absolute_import import sys import six if six.PY2: LONG_TYPE = long else: LONG_TYPE = int if sys.version_info[0] < 3: import string str_find = string.f...
31.426877
110
0.552886
a6dad5ba014616d1052d4197029525bf80a5c801
4,763
py
Python
conf.py
whoopnip/pl-builder
2dad3f293aeeb654d4b36f8a3456d430f8bf4b16
[ "MIT" ]
null
null
null
conf.py
whoopnip/pl-builder
2dad3f293aeeb654d4b36f8a3456d430f8bf4b16
[ "MIT" ]
19
2020-03-24T17:35:39.000Z
2022-03-12T01:00:05.000Z
conf.py
whoopnip/pl-builder
2dad3f293aeeb654d4b36f8a3456d430f8bf4b16
[ "MIT" ]
null
null
null
# This is the main settings file for package setup and PyPi deployment. # Sphinx configuration is in the docsrc folder # Main package name PACKAGE_NAME = "pl-builder" # Directory name of package PACKAGE_DIRECTORY = "plbuilder" # Name of Repo REPO_NAME = "pl-builder" # Github username of the user which owns the repo...
35.544776
110
0.741969
81ace3bf39808511e59e91e33c6e1a5bf411b22f
26
py
Python
homeassistant/components/push/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/push/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/push/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The push component."""
13
25
0.615385
f2b5a25a238610562698286bdbe361922cc71053
443
py
Python
plot.py
jbenleo/invester
0605882b2d487098e0aec3387dfd73878c777b99
[ "Apache-2.0" ]
null
null
null
plot.py
jbenleo/invester
0605882b2d487098e0aec3387dfd73878c777b99
[ "Apache-2.0" ]
null
null
null
plot.py
jbenleo/invester
0605882b2d487098e0aec3387dfd73878c777b99
[ "Apache-2.0" ]
null
null
null
# Data format and transformations import numpy as np import pandas as pd # Plot library import matplotlib.pyplot as plt from matplotlib import style def plot_graphs(dataframes): style.use('ggplot') for data in dataframes: df = pd.DataFrame() df[data.name] = data df.index...
22.15
55
0.625282
bd67f1a147e909b74eed2f79c003143199c05456
4,917
py
Python
voc_annotation.py
LuckyXie0427/myFasterRCNN
0603a6dfdde32be7cec44cf314c3d5b2c5f97add
[ "MIT" ]
null
null
null
voc_annotation.py
LuckyXie0427/myFasterRCNN
0603a6dfdde32be7cec44cf314c3d5b2c5f97add
[ "MIT" ]
null
null
null
voc_annotation.py
LuckyXie0427/myFasterRCNN
0603a6dfdde32be7cec44cf314c3d5b2c5f97add
[ "MIT" ]
null
null
null
import os import random import xml.etree.ElementTree as ET from utils.utils import get_classes #--------------------------------------------------------------------------------------------------------------------------------# # annotation_mode用于指定该文件运行时计算的内容 # annotation_mode为0代表整个标签处理过程,包括获得VOCdevkit/VOC2007/Ima...
44.7
164
0.510881
e8de2822d22e6a7242c7311485b70bde632a3db1
3,120
py
Python
froide/helper/search/signal_processor.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/helper/search/signal_processor.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/helper/search/signal_processor.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
from contextlib import contextmanager from django.db import models from django.db import transaction from elasticsearch_dsl.connections import connections from django_elasticsearch_dsl.registries import registry from django_elasticsearch_dsl.signals import RealTimeSignalProcessor from ..tasks import search_instance...
38.04878
118
0.711538
a7708bcf8d46c74cb3464c2f3a180f96981ce8fe
11,018
py
Python
dftools/transform.py
albertdow/dftools
746e4a9b620db94216bf9473c41ebb0480518a96
[ "MIT" ]
null
null
null
dftools/transform.py
albertdow/dftools
746e4a9b620db94216bf9473c41ebb0480518a96
[ "MIT" ]
null
null
null
dftools/transform.py
albertdow/dftools
746e4a9b620db94216bf9473c41ebb0480518a96
[ "MIT" ]
2
2020-03-17T19:41:05.000Z
2021-01-18T15:26:38.000Z
import numpy as np import pandas as pd __all__ = [ "rebin", "merge", "analysis_aggcols", "analysis_pivot_merge", "analysis_pivot_variations", ] def rebin(df, bins, label="binvar0", underflow=True, overflow=True): """ Take a dataframe with the 'label' as an index and rebin/densify into the ...
33.591463
88
0.601017
945787e894bfd08866e69c68f4eaefe3fdadf8f0
4,564
py
Python
recommendation/model/embedding.py
lawRossi/recommendation
aab356d122fd2a4317092e8a322206ad46a2c2f0
[ "MIT" ]
6
2021-01-16T18:51:46.000Z
2021-12-13T06:47:42.000Z
recommendation/model/embedding.py
lawRossi/recommendation
aab356d122fd2a4317092e8a322206ad46a2c2f0
[ "MIT" ]
null
null
null
recommendation/model/embedding.py
lawRossi/recommendation
aab356d122fd2a4317092e8a322206ad46a2c2f0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class GESModel(nn.Module): def __init__(self, num_items, side_info_vocab_sizes, emb_dims=100): super().__init__() self.emb_dims = emb_dims self.item_embedding_in = nn.Embedding(num_items, emb_dims) self.item_embedding_out = nn.Embedding(n...
46.10101
128
0.655784
bfedaf4d2b0065926cf0cb8b215139acb7b493a7
3,953
py
Python
pymunk/examples/box2d_pyramid.py
irskep/gw0rp
f985c919141e19ee099766c18b7fe416f921836c
[ "MIT", "BSD-3-Clause" ]
1
2017-05-25T17:41:23.000Z
2017-05-25T17:41:23.000Z
pymunk/examples/box2d_pyramid.py
irskep/gw0rp
f985c919141e19ee099766c18b7fe416f921836c
[ "MIT", "BSD-3-Clause" ]
null
null
null
pymunk/examples/box2d_pyramid.py
irskep/gw0rp
f985c919141e19ee099766c18b7fe416f921836c
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" Remake of the pyramid demo from the box2d testbed. """ import pygame from pygame.locals import * from pygame.color import * import pymunk from pymunk import Vec2d class PyramidDemo: def flipyv(self, v): v = Vec2d(v) v.y = -v.y+self.h return v def __init__...
31.879032
96
0.502656
2d73f2b589bee8613b54f3a3bb0f572cca0b5f5b
5,131
py
Python
tests/forms_tests/widget_tests/test_checkboxselectmultiple.py
geelweb/django
59afe61a970dd60df388e7cda9041ef3c0e770cb
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/forms_tests/widget_tests/test_checkboxselectmultiple.py
geelweb/django
59afe61a970dd60df388e7cda9041ef3c0e770cb
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/forms_tests/widget_tests/test_checkboxselectmultiple.py
geelweb/django
59afe61a970dd60df388e7cda9041ef3c0e770cb
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.forms import CheckboxSelectMultiple from .base import WidgetTest class CheckboxSelectMultipleTest(WidgetTest): widget = CheckboxSelectMultiple def test_render_value(self): self.check_html(self.widget(choices=self.beatles), 'beatles', ['J'], html=( """<ul> <li><lab...
41.715447
117
0.542195
3f8a0b9bb582e0f51845bed7b7af6f8d87fbc574
18,535
py
Python
data/tiered_imagenet.py
DingYuan0118/MetaOptNet
37aa48432237ce22eb84c0104db5d3f7f3aefad5
[ "Apache-2.0" ]
496
2019-04-08T18:36:03.000Z
2022-03-28T08:31:53.000Z
data/tiered_imagenet.py
The-Shuai/MetaOptNet
7a8e2ae25ef47cfe75a6fe8bc7920dc9fd29191f
[ "Apache-2.0" ]
54
2019-04-23T06:57:56.000Z
2022-01-25T00:46:39.000Z
data/tiered_imagenet.py
The-Shuai/MetaOptNet
7a8e2ae25ef47cfe75a6fe8bc7920dc9fd29191f
[ "Apache-2.0" ]
101
2019-04-11T03:21:34.000Z
2022-02-25T19:14:33.000Z
# Dataloader of Gidaris & Komodakis, CVPR 2018 # Adapted from: # https://github.com/gidariss/FewShotWithoutForgetting/blob/master/dataloader.py from __future__ import print_function import os import os.path import numpy as np import random import pickle import json import math import torch import torch.utils.data as ...
40.825991
131
0.618883
559d5444d81bc21005863760eff287218ab51494
746
py
Python
Calculator.py
mofahad/python
f2d8a878aff707b80e0acf95cd2ea057e5fd4b9d
[ "Apache-2.0" ]
null
null
null
Calculator.py
mofahad/python
f2d8a878aff707b80e0acf95cd2ea057e5fd4b9d
[ "Apache-2.0" ]
null
null
null
Calculator.py
mofahad/python
f2d8a878aff707b80e0acf95cd2ea057e5fd4b9d
[ "Apache-2.0" ]
null
null
null
class Calculator: ass = """ PROGRAM OF CALCULATOR HERE U CAN ADD , SUBTRACT , MULTIPLY, DIVIDE, ALSO RUN A FUNC NAMED FAHAD """ print(ass) def addition(x,y): add = x+y print(add) def subtraction(x,y): sub =x-y print(sub) def...
16.577778
84
0.449062
2108df3d599f7d87c7e8cd9ef71f33f0db5160b3
2,435
py
Python
ZTMvsOSM.py
javnik36/ZTMvsOSM
b7f0c3c2ceb1cd28ae2f6a5a37007f985c3145e0
[ "MIT" ]
1
2017-05-08T20:15:40.000Z
2017-05-08T20:15:40.000Z
ZTMvsOSM.py
javnik36/ZTMvsOSM
b7f0c3c2ceb1cd28ae2f6a5a37007f985c3145e0
[ "MIT" ]
null
null
null
ZTMvsOSM.py
javnik36/ZTMvsOSM
b7f0c3c2ceb1cd28ae2f6a5a37007f985c3145e0
[ "MIT" ]
null
null
null
import extract as t0 import id_base as t1 import sorter as t2 import checker as t3 import save_json as t4 import server as t5 baza = [] stop_position = [] bad_stop_position = [] bus_stop = [] tram_stop = [] bad_stop = [] platform = [] rail_platform = [] bad_platform = [] error = [] another_error = [] bez_ref_stop...
29.695122
131
0.760986
f654258bb55d91ffa8f98d7e369d1800ba98888b
4,294
py
Python
cirq/contrib/quil_import/quil_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
3
2020-09-26T03:56:28.000Z
2020-09-27T13:21:04.000Z
cirq/contrib/quil_import/quil_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
null
null
null
cirq/contrib/quil_import/quil_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-04-14T15:29:29.000Z
2020-04-14T15:29:29.000Z
# Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
22.719577
75
0.633675
cb5fdc28852d7588c6c474ec5d4d07ce94d82708
17,562
py
Python
.history/jmetal/algorithm/multiobjective/moead_20220323202619.py
Amgroot-w/jMetalPy
fcfc5bf436734c6318c89dde0e543fbfd8551ba0
[ "MIT" ]
null
null
null
.history/jmetal/algorithm/multiobjective/moead_20220323202619.py
Amgroot-w/jMetalPy
fcfc5bf436734c6318c89dde0e543fbfd8551ba0
[ "MIT" ]
null
null
null
.history/jmetal/algorithm/multiobjective/moead_20220323202619.py
Amgroot-w/jMetalPy
fcfc5bf436734c6318c89dde0e543fbfd8551ba0
[ "MIT" ]
null
null
null
import copy import random from math import ceil from typing import TypeVar, List, Generator import numpy as np from jmetal.algorithm.singleobjective.genetic_algorithm import GeneticAlgorithm from jmetal.config import store from jmetal.core.operator import Mutation from jmetal.core.problem import Problem from jmetal.o...
41.322353
120
0.655962
d207c3402056f1e9be117262c7b8972cd5b6e080
7,082
py
Python
contrib/agdc_workshop_exercises/ndvi_analysis_stacker.py
jeremyh/agdc
2e22c6bdd9305555db3615305ff6a5df6219cd51
[ "BSD-3-Clause" ]
34
2015-03-10T22:27:50.000Z
2021-09-27T09:26:31.000Z
contrib/agdc_workshop_exercises/ndvi_analysis_stacker.py
jeremyh/agdc
2e22c6bdd9305555db3615305ff6a5df6219cd51
[ "BSD-3-Clause" ]
81
2015-01-28T07:41:58.000Z
2016-01-28T23:01:22.000Z
contrib/agdc_workshop_exercises/ndvi_analysis_stacker.py
jeremyh/agdc
2e22c6bdd9305555db3615305ff6a5df6219cd51
[ "BSD-3-Clause" ]
29
2015-01-08T05:06:40.000Z
2021-09-27T09:26:34.000Z
''' Created on 21/02/2013 @author: u76345 ''' import os import sys import logging import re import numpy from datetime import datetime, time from osgeo import gdal from agdc.stacker import Stacker from EOtools.utils import log_multiline import EOtools.stats.temporal_stats SCALE_FACTOR = 10000 # Set top level standa...
46.287582
132
0.64205
36bf390796d3600b85b9764c0a14154a77afeaa4
3,101
py
Python
benchml/models/__init__.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
3
2021-08-12T13:25:31.000Z
2022-03-21T21:30:22.000Z
benchml/models/__init__.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
5
2020-12-08T08:59:41.000Z
2022-01-22T06:46:09.000Z
benchml/models/__init__.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
1
2021-06-25T11:07:32.000Z
2021-06-25T11:07:32.000Z
import re import numpy as np from benchml.logger import log from benchml.models import ( mod_basic, mod_bench, mod_bench_class, mod_bench_xtal, mod_dscribe, mod_logd, mod_logd_ai, mod_xy, ) collections = {} for register in [ mod_basic.register_all, mod_dscribe.register_all, ...
31.01
98
0.542083
0054bd702c99d43d548ab8db8aa7903f3aa74e2b
22,799
py
Python
test/mavsdk_tests/mavsdk_test_runner.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
test/mavsdk_tests/mavsdk_test_runner.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
test/mavsdk_tests/mavsdk_test_runner.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#!/usr/bin/env python3 import argparse import datetime import fnmatch import json import math import os import psutil # type: ignore import signal import subprocess import sys import time from logger_helper import color, colorize import process_helper as ph from typing import Any, Dict, List, NoReturn, TextIO, Option...
34.754573
78
0.512172
890ad67a94cfac9daa5bf5fd7a890de5ee742e09
315
py
Python
settings.example.py
jkcgs/mirror-ufro-status
3a919ab7f9ca01c8053344268f8d33104e6dd92b
[ "MIT" ]
1
2020-07-17T15:38:55.000Z
2020-07-17T15:38:55.000Z
settings.example.py
jkcgs/mirror-ufro-status
3a919ab7f9ca01c8053344268f8d33104e6dd92b
[ "MIT" ]
1
2021-03-12T21:29:53.000Z
2021-03-12T21:29:53.000Z
settings.example.py
jkcgs/mirror-ufro-status
3a919ab7f9ca01c8053344268f8d33104e6dd92b
[ "MIT" ]
null
null
null
mirror_path = '/srv/mirror' default_logdir = '/var/log/mirror' special_logdirs = { 'archlinux': '@/arch.log', 'debian': '/opt/ftpsync/log/rsync-ftpsync.log', 'debian-cd': '@/debiancd.log', 'linuxmint': '@/mint.log', 'linuxmint-cd': '@/mintcd.log', 'ubuntu-releases': '@/ubunturelease.log' }
28.636364
51
0.622222
c3509c54c397b1a034d288b4350d6d8b7a5551c3
3,584
py
Python
tests/test_Sender.py
szuro/zappix
59df329ddc6b70267951cd8d117dc0784763a41c
[ "MIT" ]
null
null
null
tests/test_Sender.py
szuro/zappix
59df329ddc6b70267951cd8d117dc0784763a41c
[ "MIT" ]
null
null
null
tests/test_Sender.py
szuro/zappix
59df329ddc6b70267951cd8d117dc0784763a41c
[ "MIT" ]
null
null
null
import unittest import tempfile import os import random from unittest.mock import patch, MagicMock from zappix.sender import Sender from zappix.protocol import SenderDataRequest, SenderData class TestSender(unittest.TestCase): def setUp(self): self.msock = MagicMock() def test_init(self): get...
38.956522
250
0.603237
4d193a7fd3308ab70958709107c1dd65cbee1238
804
py
Python
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.test import TestCase from waffle.models import Flag, Switch, Sample class ModelsTests(TestCase): def test_natural_keys(self): flag = Flag.objects.create(name='test-flag') switch = Switch.objects.create(name='test-switch') sample = Sampl...
38.285714
82
0.710199
fb43dbab3f20d573daf0f9fcd4e7b1fc299c8aed
7,092
py
Python
test/mnist.py
lmjohns3/py-rbm
d79f1c7c892ea309c4bcb88443b4372b51f5845c
[ "Unlicense", "MIT" ]
49
2015-02-02T21:49:30.000Z
2018-03-18T11:52:11.000Z
test/mnist.py
lmjohns3/rbm
d79f1c7c892ea309c4bcb88443b4372b51f5845c
[ "Unlicense", "MIT" ]
2
2015-11-08T13:43:48.000Z
2017-04-18T07:33:59.000Z
test/mnist.py
lmjohns3/py-rbm
d79f1c7c892ea309c4bcb88443b4372b51f5845c
[ "Unlicense", "MIT" ]
18
2015-05-25T18:53:20.000Z
2017-07-26T10:44:51.000Z
#!/usr/bin/env python # Copyright (c) 2011 Leif Johnson <leif@leifjohnson.net> # # 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 ...
36.369231
93
0.613508
d25d5bc70712cd2d12c33db9f77cc7f799eba3b4
393
py
Python
example_main.py
silgence/synapse
0bfba5e07b9d517288356bb6e76ef7c24a72b599
[ "MIT" ]
null
null
null
example_main.py
silgence/synapse
0bfba5e07b9d517288356bb6e76ef7c24a72b599
[ "MIT" ]
null
null
null
example_main.py
silgence/synapse
0bfba5e07b9d517288356bb6e76ef7c24a72b599
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Main function for Silgence Synapse controlled Atari environment.""" import client from envs.atari import environment as atari_environment_lib def main(client_run_fn=client.run): environment = atari_environment_lib.newEnvironment() try: client_run_fn(environment) finally: envir...
21.833333
70
0.755725
3aef305857bb9689759efaa0dfc7867b6c07084d
1,641
py
Python
archetypal/template/__init__.py
samuelduchesne/archetypal
4042971180320a6ed7fb8c51f709e227e7f90e94
[ "MIT" ]
5
2020-01-07T15:50:08.000Z
2021-09-21T14:39:25.000Z
archetypal/template/__init__.py
samuelduchesne/archetypal
4042971180320a6ed7fb8c51f709e227e7f90e94
[ "MIT" ]
149
2019-05-10T18:23:41.000Z
2022-03-31T10:18:44.000Z
archetypal/template/__init__.py
samuelduchesne/archetypal
4042971180320a6ed7fb8c51f709e227e7f90e94
[ "MIT" ]
6
2019-05-11T14:35:18.000Z
2021-05-18T19:14:46.000Z
"""archetypal umi template library.""" __all__ = [ "BuildingTemplate", "ZoneConditioning", "DomesticHotWaterSetting", "GasMaterial", "GlazingMaterial", "ZoneLoad", "MaterialLayer", "GasLayer", "OpaqueConstruction", "OpaqueMaterial", "MassRatio", "UmiSchedule", "Struc...
33.489796
86
0.799512
e8854cfd5a1519527443ebc5e06e0ac79a9adffe
7,391
py
Python
zerver/webhooks/gogs/view.py
cozyrohan/zulip
909b484d648cdabc8854dbf8f33e92dda4876968
[ "Apache-2.0" ]
4
2020-09-26T17:46:27.000Z
2021-06-24T16:56:17.000Z
zerver/webhooks/gogs/view.py
cozyrohan/zulip
909b484d648cdabc8854dbf8f33e92dda4876968
[ "Apache-2.0" ]
1
2016-07-16T16:54:33.000Z
2016-07-16T16:54:33.000Z
zerver/webhooks/gogs/view.py
cozyrohan/zulip
909b484d648cdabc8854dbf8f33e92dda4876968
[ "Apache-2.0" ]
1
2020-12-03T17:08:44.000Z
2020-12-03T17:08:44.000Z
# vim:fenc=utf-8 from typing import Any, Callable, Dict, Optional from django.http import HttpRequest, HttpResponse from zerver.decorator import webhook_view from zerver.lib.exceptions import UnsupportedWebhookEventType from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_suc...
36.230392
101
0.627385
ed63a6f7b5476efc197a607f8d3e3fa7d9cbe002
59,560
py
Python
pysnmp_mibs/VRRP-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2017-04-21T13:48:08.000Z
2022-01-06T19:42:52.000Z
pysnmp_mibs/VRRP-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
1
2020-05-05T16:42:25.000Z
2020-05-05T16:42:25.000Z
pysnmp_mibs/VRRP-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2020-02-08T20:28:49.000Z
2021-09-14T13:36:46.000Z
# # PySNMP MIB module VRRP-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/VRRP-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:33:05 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( OctetStrin...
268.288288
4,739
0.722767
dfce06bb339fc114d8b5575b6352ca4c7e65fe17
1,270
py
Python
mayavi_test.py
Physu/variousTest1
7a093a6dc0e7b81cc288ffca34cb9d4179b15dea
[ "MIT" ]
null
null
null
mayavi_test.py
Physu/variousTest1
7a093a6dc0e7b81cc288ffca34cb9d4179b15dea
[ "MIT" ]
null
null
null
mayavi_test.py
Physu/variousTest1
7a093a6dc0e7b81cc288ffca34cb9d4179b15dea
[ "MIT" ]
null
null
null
import numpy as np import mayavi.mlab as mlab import torch from visual_utils import visualize_utils as V pointcloud = np.fromfile(str("000008.bin"), dtype=np.float32, count=-1).reshape([-1, 4]) print(pointcloud.shape) x = pointcloud[:, 0] # x position of point y = pointcloud[:, 1] # y position of point z = pointclo...
30.238095
88
0.582677
0a54330369085c7dafd2227d7699b64fb267b155
1,560
py
Python
codejam/18/2/falling-balls.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
1
2015-10-17T11:15:42.000Z
2015-10-17T11:15:42.000Z
codejam/18/2/falling-balls.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
null
null
null
codejam/18/2/falling-balls.py
neizod/problems
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def get_destination(last_row): nudge = 0 destination = [None for _ in last_row] for index, size in enumerate(last_row): destination[nudge:nudge+size] = [index] * size nudge += size return destination def get_table(last_row): if last_row[0] == 0 or last_row[...
28.363636
62
0.526282
cf3caad833d13400bcb926e54bde1efba6dbb80e
7,891
py
Python
vkbottle/tools/tests/test_tools.py
shugaev1/vkbottle
9759e8e799c2e336f44c78bc92cc8b8029da73aa
[ "MIT" ]
98
2021-08-06T05:31:31.000Z
2022-03-26T03:00:08.000Z
vkbottle/tools/tests/test_tools.py
shugaev1/vkbottle
9759e8e799c2e336f44c78bc92cc8b8029da73aa
[ "MIT" ]
68
2021-08-04T09:56:12.000Z
2022-03-31T16:23:12.000Z
vkbottle/tools/tests/test_tools.py
shugaev1/vkbottle
9759e8e799c2e336f44c78bc92cc8b8029da73aa
[ "MIT" ]
66
2021-08-04T09:21:43.000Z
2022-03-15T14:34:56.000Z
import os from io import StringIO import pytest from pytest_mock import MockerFixture from vkbottle import API from vkbottle.bot import Bot, run_multibot from vkbottle.dispatch import ABCRule, AndRule, NotRule, OrRule from vkbottle.modules import json from vkbottle.tools import ( CallableValidator, Callback, ...
29.225926
97
0.542517
59bb3d7647528cbd5605dd9687781420d19cc802
11,995
py
Python
eZmaxApi/model/common_get_autocomplete_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
eZmaxApi/model/common_get_autocomplete_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
eZmaxApi/model/common_get_autocomplete_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
""" eZmax API Definition (Full) This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.7 Contact: support-api@ezmax.ca Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401...
43.303249
121
0.571238
0e4eff1c080549a0bbee83d88f432ea1d6809b28
133
py
Python
terrascript/data/shell.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/data/shell.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/data/shell.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
# terrascript/data/shell.py import terrascript class shell_script(terrascript.Data): pass __all__ = [ "shell_script", ]
10.230769
37
0.706767
5f069fa00e606c585fc3c4efee7cb55d30288ef3
32,237
py
Python
tests/meltano/core/plugin/singer/test_tap.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
tests/meltano/core/plugin/singer/test_tap.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
tests/meltano/core/plugin/singer/test_tap.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
import asyncio import json import logging import subprocess import sys from contextlib import contextmanager import pytest from asynctest import CoroutineMock, mock from meltano.core.job import Job, Payload from meltano.core.plugin import PluginType from meltano.core.plugin.error import PluginExecutionError from melt...
36.467195
113
0.573565
c3e2304e90891fa1fbcc104b92dbbf71ce5efdc2
138
py
Python
__init__.py
Holt59/mo2-plugins
682516dff93f49d4c08cbe19f42a49acc94633d7
[ "MIT" ]
null
null
null
__init__.py
Holt59/mo2-plugins
682516dff93f49d4c08cbe19f42a49acc94633d7
[ "MIT" ]
null
null
null
__init__.py
Holt59/mo2-plugins
682516dff93f49d4c08cbe19f42a49acc94633d7
[ "MIT" ]
null
null
null
from . import mergePluginsHide, syncModOrder def createPlugins(): return [mergePluginsHide.PluginTool(), syncModOrder.PluginTool()]
23
69
0.782609
897c30c45ca2a6f1db2ecd824160a24d4bb8fb1f
5,339
py
Python
model_shapes/nmn_assembler.py
SIGUSRz/TorchN2N
53f5c3f9668f433052040aefb88e7ef559b0e27e
[ "MIT" ]
null
null
null
model_shapes/nmn_assembler.py
SIGUSRz/TorchN2N
53f5c3f9668f433052040aefb88e7ef559b0e27e
[ "MIT" ]
null
null
null
model_shapes/nmn_assembler.py
SIGUSRz/TorchN2N
53f5c3f9668f433052040aefb88e7ef559b0e27e
[ "MIT" ]
null
null
null
import numpy as np # the number of attention input to each module _module_input_num = { '_Find': 0, '_Transform': 1, '_And': 2, '_Filter': 1, '_Answer': 1 } _module_output_type = { '_Find': 'att', '_Transform': 'att', '_And': 'att', '_Filter': 'att', '_Answer': 'ans' } INVALID_E...
43.056452
95
0.582131
5a37afafb4e87d6edc462071a7084735250d7cd9
4,166
py
Python
mezzanine/project_template/urls.py
mauriziobit/mezzanine
aa7e7c100ebb691ad8c55074e34b3eedca4cdd6e
[ "BSD-2-Clause" ]
1
2017-10-09T14:09:47.000Z
2017-10-09T14:09:47.000Z
mezzanine/project_template/urls.py
mauriziobit/mezzanine
aa7e7c100ebb691ad8c55074e34b3eedca4cdd6e
[ "BSD-2-Clause" ]
1
2015-10-01T18:22:53.000Z
2021-03-06T12:13:31.000Z
mezzanine/project_template/urls.py
mauriziobit/mezzanine
aa7e7c100ebb691ad8c55074e34b3eedca4cdd6e
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import patterns, include, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from mezzanine.core.views import direct_to_template from mezzanine.conf import settings admin.autodiscover() # Add the urlpatterns for any cus...
41.247525
78
0.663226
9b4746ccb86bd1c5586db050f4c664e1044f1cc7
462
py
Python
gw2/api/characters.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
gw2/api/characters.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
gw2/api/characters.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
import functools from gw2 import models from gw2.api._base import Base, IdsBase class Characters(IdsBase[models.Character, str], _type=models.Character): pass class Character(Base[models.Character], _type=models.Character): def __init__(self, character_name: str): self.character_name = character_na...
24.315789
73
0.725108
4c4aafdb4f066f93cfa75f574b7a0a50c6c1b1bc
8,312
py
Python
bot/exts/utils/reminder.py
doublevcodes/gurkbot
17983017361f55477c9bbb567710df63fdf16f5d
[ "MIT" ]
null
null
null
bot/exts/utils/reminder.py
doublevcodes/gurkbot
17983017361f55477c9bbb567710df63fdf16f5d
[ "MIT" ]
null
null
null
bot/exts/utils/reminder.py
doublevcodes/gurkbot
17983017361f55477c9bbb567710df63fdf16f5d
[ "MIT" ]
null
null
null
import asyncio import re from contextlib import suppress from datetime import datetime from typing import Optional, Union import discord import humanize from asyncpg import Record from bot.bot import Bot from bot.postgres.utils import db_execute, db_fetch from bot.utils.pagination import LinePaginator from bot.utils.p...
34.489627
102
0.596848
0d74176e1bdefb82d9ce8154bc96034161d50d12
2,002
py
Python
tests/tests_work/test_work_film.py
jqueuniet/senscritiquescraper
4b8f45487f93459737f926635d7edf1fe0fe7d7a
[ "MIT" ]
null
null
null
tests/tests_work/test_work_film.py
jqueuniet/senscritiquescraper
4b8f45487f93459737f926635d7edf1fe0fe7d7a
[ "MIT" ]
null
null
null
tests/tests_work/test_work_film.py
jqueuniet/senscritiquescraper
4b8f45487f93459737f926635d7edf1fe0fe7d7a
[ "MIT" ]
null
null
null
def test_get_work_film(work_object_film): details = work_object_film.get_details() assert isinstance(details, dict) assert len(details) == 17 def test_rating_work_film(work_object_film): main_rating = work_object_film.get_main_rating() assert isinstance(main_rating, str) assert main_rating == ...
29.441176
87
0.783217
841e6bb96e087d2561ddc80998f7d249a14f42cc
191
py
Python
crome_synthesis/tools/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
crome_synthesis/tools/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
crome_synthesis/tools/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
import os from pathlib import Path output_folder_synthesis: Path = Path(os.path.dirname(__file__)).parent.parent / "output" persistence_path: Path = output_folder_synthesis / "persistence"
27.285714
88
0.801047
9df883ad88086df856bd6571172ebc006a3d20dc
9,367
py
Python
data/mnist_loader_spur.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
data/mnist_loader_spur.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
data/mnist_loader_spur.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
#Common imports import os import random import copy import numpy as np #Sklearn from scipy.stats import bernoulli #Pytorch import torch import torch.utils.data as data_utils from torchvision import datasets, transforms #Pillow from PIL import Image, ImageColor, ImageOps #Base Class from .data_loader import BaseDat...
43.976526
192
0.545319
5e5695361b0300a830248d824ec0142cff7ddb07
6,756
py
Python
myvenv/Lib/site-packages/weasyprint/tests/test_css_descriptors.py
Fa67/saleor-shop
76110349162c54c8bfcae61983bb59ba8fb0f778
[ "BSD-3-Clause" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
weasyprint/tests/test_css_descriptors.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
9
2020-06-05T20:31:50.000Z
2022-03-11T23:45:47.000Z
weasyprint/tests/test_css_descriptors.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding: utf-8 """ weasyprint.tests.test_css_descriptors ------------------------------------- Test CSS descriptors. :copyright: Copyright 2011-2016 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import division, unicode_literals import t...
37.533333
78
0.608052
1eb8446bd2432d83b501179525aa1be494f0c27c
16,559
py
Python
src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py
Mystic421980/azure-cli
827f5fbc9fe8a673dd4abf7a8991dde7c726107e
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py
Mystic421980/azure-cli
827f5fbc9fe8a673dd4abf7a8991dde7c726107e
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py
Mystic421980/azure-cli
827f5fbc9fe8a673dd4abf7a8991dde7c726107e
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.191748
180
0.635968
7ce64cafda9282113ab29b1001c5a1c6647d4ec3
205
py
Python
pybamm/models/submodels/active_material/__init__.py
YannickNoelStephanKuhn/PyBaMM
d90636a755b7b77bbc75ae7bc2728c8ee2fa730a
[ "BSD-3-Clause" ]
1
2020-06-22T10:11:40.000Z
2020-06-22T10:11:40.000Z
pybamm/models/submodels/active_material/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
1
2021-01-23T08:54:49.000Z
2021-01-23T08:54:49.000Z
pybamm/models/submodels/active_material/__init__.py
masoodtamaddon/PyBaMM
a31e2095600bb92e913598ac4d02b2b6b77b31c1
[ "BSD-3-Clause" ]
2
2020-05-21T23:16:29.000Z
2020-06-22T10:11:40.000Z
from .base_active_material import BaseModel from .constant_active_material import Constant from .varying_active_material_full import VaryingFull from .varying_active_material_uniform import VaryingUniform
41
59
0.902439
f1274f48b83a1fa08f7dc5a8c1e255ead66c0cc5
1,896
py
Python
src/util.py
remcoeijsackers/GridGame
b9945e609155ffe09dbc711df9e5c056449b0def
[ "MIT" ]
1
2021-11-03T16:39:55.000Z
2021-11-03T16:39:55.000Z
src/util.py
remcoeijsackers/GridGame
b9945e609155ffe09dbc711df9e5c056449b0def
[ "MIT" ]
null
null
null
src/util.py
remcoeijsackers/GridGame
b9945e609155ffe09dbc711df9e5c056449b0def
[ "MIT" ]
null
null
null
import random import os from pandas.core.frame import DataFrame from src.objects import cell from src.settings import gridsize symbol_thickness = 40 unit_thickness = 10 cols = ["A","B","C","D","E","F","G","H","I","J"] fullcols = [i for i in "abcdefghijklmnopqrstuvwxyz".upper()] def colsc(): return dict(zip(full...
27.478261
124
0.639241
09499372bb2965cf6b97cf432b7be5c00a3c0406
1,079
py
Python
hacker_rank/python/sets/set_intersection.py
bsmukasa/coding_challenges
33d96bf109d45080d4a8d43653f6671bec4872e5
[ "MIT" ]
null
null
null
hacker_rank/python/sets/set_intersection.py
bsmukasa/coding_challenges
33d96bf109d45080d4a8d43653f6671bec4872e5
[ "MIT" ]
null
null
null
hacker_rank/python/sets/set_intersection.py
bsmukasa/coding_challenges
33d96bf109d45080d4a8d43653f6671bec4872e5
[ "MIT" ]
null
null
null
"""Set Intersection The students of District College have subscriptions to English and French newspapers. Some students have subscribed only to English, some have subscribed only to French, and some have subscribed to both newspapers. You are given two sets of student roll numbers. One set has subscribed to the Engli...
43.16
115
0.774791
a8de66a50c52b766c8465b51be867e8f99a84b0b
2,416
py
Python
environment/frozen_lake/frozen_lake_adjustable_env.py
AlgTUDelft/ucbh_plus
9f77e075bf362a5b64ed10cf3a0ee15517ea927b
[ "MIT" ]
2
2021-04-09T19:00:45.000Z
2021-04-22T15:28:36.000Z
environment/frozen_lake/frozen_lake_adjustable_env.py
AlgTUDelft/ucbh_plus
9f77e075bf362a5b64ed10cf3a0ee15517ea927b
[ "MIT" ]
null
null
null
environment/frozen_lake/frozen_lake_adjustable_env.py
AlgTUDelft/ucbh_plus
9f77e075bf362a5b64ed10cf3a0ee15517ea927b
[ "MIT" ]
null
null
null
import gym.envs.toy_text.frozen_lake as fl import gym.wrappers.time_limit as tl class FrozenLakeAdjustableEnv(tl.TimeLimit): def __init__(self, desc=None, map_name='8x8', p_follow=1.0, rewards=None, terminate_in_holes=True, max_episode_steps=1000): super().__init__(_FrozenLakeAdjustableEn...
38.349206
103
0.551738
f82b780958ae4232fe2c0c26f0772c61287eae04
86
py
Python
integration/_support/parsing.py
crazy-penguins/raft
3eb829f1c0d90608743cadac4c5a04017c93c607
[ "BSD-2-Clause" ]
null
null
null
integration/_support/parsing.py
crazy-penguins/raft
3eb829f1c0d90608743cadac4c5a04017c93c607
[ "BSD-2-Clause" ]
null
null
null
integration/_support/parsing.py
crazy-penguins/raft
3eb829f1c0d90608743cadac4c5a04017c93c607
[ "BSD-2-Clause" ]
null
null
null
from raft import task @task(optional=["meh"]) def foo(c, meh=False): print(meh)
12.285714
23
0.651163
6cb651c05f3d22ba2214428525892efe35f5dc94
443
py
Python
src/commands/look.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
src/commands/look.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
src/commands/look.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
from command import Command, is_command class Look(Command): shortname = 'look' name = 'Look around you' @is_command('l') def l(self, player, *args): return self.look(player, *args) @is_command def look(self, player, *args): self.send_player_location(player) self.sen...
24.611111
51
0.672686
f88d80619fdede4927082d31e213dea559bea5a7
609
py
Python
bayesnet/linalg/trace.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
21
2019-01-08T05:58:41.000Z
2021-11-26T14:24:11.000Z
bayesnet/linalg/trace.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
null
null
null
bayesnet/linalg/trace.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
11
2019-05-04T13:44:19.000Z
2021-08-05T04:26:19.000Z
import numpy as np from bayesnet.tensor.constant import Constant from bayesnet.tensor.tensor import Tensor from bayesnet.function import Function class Trace(Function): def forward(self, x): x = self._convert2tensor(x) self._equal_ndim(x, 2) self.x = x output = np.trace(x.value) ...
24.36
61
0.64532
032b6ccba7b4cc780ebf7f530bda82a58212b0e5
600
py
Python
teamlogic/migrations/0005_auto_20170317_2022.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
11
2017-07-05T20:03:00.000Z
2018-09-19T17:18:26.000Z
teamlogic/migrations/0005_auto_20170317_2022.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
50
2016-07-15T16:21:03.000Z
2018-04-17T11:18:06.000Z
teamlogic/migrations/0005_auto_20170317_2022.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
6
2017-06-23T14:53:38.000Z
2022-01-03T12:38:46.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-03-17 20:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teamlogic', '0004_auto_20170317_1729'), ] operations = [ migrations.RenameFi...
23.076923
61
0.585
404c723f08cad69bcb9fddc0e2a0bba371e90290
2,528
py
Python
MolRep/Explainer/Attribution/utils/utils.py
Jh-SYSU/MolRep
b2c802d18d41d7db26c19c6dd644098f945e48a1
[ "MIT" ]
57
2021-01-17T15:14:34.000Z
2022-03-25T02:36:05.000Z
MolRep/Explainer/Attribution/utils/utils.py
Jh-SYSU/MolRep
b2c802d18d41d7db26c19c6dd644098f945e48a1
[ "MIT" ]
5
2021-03-07T15:13:58.000Z
2022-03-25T02:31:06.000Z
MolRep/Explainer/Attribution/utils/utils.py
Jh-SYSU/MolRep
b2c802d18d41d7db26c19c6dd644098f945e48a1
[ "MIT" ]
16
2021-01-26T11:43:15.000Z
2022-02-11T12:17:27.000Z
import collections import functools from typing import Callable, List, MutableMapping, Optional, Text import torch import numpy as np from MolRep.Experiments.Graph_Data.Graph_data import Batch def make_constant_like(data, node_vec: np.ndarray, edge_vec: np.ndarray): """Make a similar grap...
38.892308
99
0.669699
bb66d203a6367c61da12316b03a668970179d914
4,649
py
Python
plugins/modules/oci_data_science_model_artifact_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_science_model_artifact_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_science_model_artifact_facts.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
29.993548
155
0.690686
d1c8542876ec4f135b4bb4439aca2c9ed242736a
2,704
py
Python
tools/gyp/test/mac/gyptest-xcode-env-order.py
FloeDesignTechnologies/node
540a441259713b14f78fd3d149db2a51102ba013
[ "MIT" ]
17
2015-01-05T14:45:33.000Z
2020-02-17T09:24:58.000Z
tools/gyp/test/mac/gyptest-xcode-env-order.py
vaenow/node
a3753b496e468ac24eee280485704db1241e75b5
[ "BSD-2-Clause" ]
72
2015-02-05T11:42:13.000Z
2015-12-09T22:18:41.000Z
tools/gyp/test/mac/gyptest-xcode-env-order.py
vaenow/node
a3753b496e468ac24eee280485704db1241e75b5
[ "BSD-2-Clause" ]
8
2015-02-05T13:49:51.000Z
2015-08-21T10:55:03.000Z
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that dependent Xcode settings are processed correctly. """ import TestGyp import sys if sys.platform == 'darwin': test = T...
34.666667
80
0.725962
143ac65499a292346aaa79505580b5dbff8f5916
2,569
py
Python
setup.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
setup.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
setup.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import setuptools here = os.path.abspath(os.path.dirname(__file__)) __version__ = None exec(open(f"{here}/slack_bolt/version.py").read()) with open(f"{here}/README.md", "r") as fh: long_description = fh.read() test_dependencies = [ "pytest>=5,<6", "pytest-cov>=2,<3", ...
30.583333
72
0.551576
10460cedfe97afaad91fa3d85e15bf3656e11824
1,332
py
Python
victory/behave_run.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
5
2017-11-10T12:48:10.000Z
2018-02-21T21:29:52.000Z
victory/behave_run.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
1
2018-04-22T00:08:16.000Z
2018-04-22T00:08:16.000Z
victory/behave_run.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
2
2017-11-10T17:06:34.000Z
2017-11-11T03:27:46.000Z
import subprocess import os import click class BehaveRun: def run(self, module, features_path, scenarios, debug, stop_on_error, tags, headless): if not os.path.isdir(features_path): click.secho("Features path '{}' not found!".format(features_path), fg='red') exit(1) if no...
28.956522
90
0.523273
e4f051be4e07e8b2d05da54edbc0e5bc6f397434
3,551
py
Python
test/functional/abc_mining_basic.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
3
2019-06-17T03:48:07.000Z
2021-03-07T05:47:18.000Z
test/functional/abc_mining_basic.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
68
2019-06-17T01:54:12.000Z
2021-04-10T17:59:15.000Z
test/functional/abc_mining_basic.py
JustFragger/lotusd
7b0eaa73aff8fff9c79637d93c217692a097fe23
[ "MIT" ]
1
2021-02-21T23:51:33.000Z
2021-02-21T23:51:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Tests for Bitcoin ABC mining RPCs """ from test_framework.blocktools import SUBSIDY from decimal import Decimal...
35.158416
90
0.667136
c1d0cb1f1422f87c8ebc6d9d1769e5147be136a8
4,771
py
Python
torchmetrics/functional/__init__.py
gagan3012/metrics
5a2388ccaa97cc3608b1fa28879f77436434a6d6
[ "Apache-2.0" ]
null
null
null
torchmetrics/functional/__init__.py
gagan3012/metrics
5a2388ccaa97cc3608b1fa28879f77436434a6d6
[ "Apache-2.0" ]
null
null
null
torchmetrics/functional/__init__.py
gagan3012/metrics
5a2388ccaa97cc3608b1fa28879f77436434a6d6
[ "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...
73.4
117
0.837351
b8cd5c9ceb2398a6691e11f79f12a0b230468371
4,620
py
Python
models/origin_capsnet/model.py
StephenTerror/TSSCapsNet
edc01b85987da641f4797c1bf60355bc78a6d51f
[ "Apache-2.0" ]
1
2021-03-21T12:37:38.000Z
2021-03-21T12:37:38.000Z
models/origin_capsnet/model.py
StephenTerror/TSSCapsNet
edc01b85987da641f4797c1bf60355bc78a6d51f
[ "Apache-2.0" ]
null
null
null
models/origin_capsnet/model.py
StephenTerror/TSSCapsNet
edc01b85987da641f4797c1bf60355bc78a6d51f
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from tensorflow.python.keras.utils.multi_gpu_utils import multi_gpu_model from ..layers.model_base import Model from . import original_capsnet_graph_mnist from utils.dataset import Dataset from utils.tools import marginLoss from .call_backs import get_callbacks class CapsNet(Model)...
44
123
0.556277
0d6c0119caf2a0ea52b4f8c0ef1692fbc46a8e19
250
py
Python
code/python/usercf.py
gitsoftsun/GraduationThesis
b632266c4071395b4bc020939e63cace54ab3d94
[ "Apache-2.0" ]
null
null
null
code/python/usercf.py
gitsoftsun/GraduationThesis
b632266c4071395b4bc020939e63cace54ab3d94
[ "Apache-2.0" ]
null
null
null
code/python/usercf.py
gitsoftsun/GraduationThesis
b632266c4071395b4bc020939e63cace54ab3d94
[ "Apache-2.0" ]
null
null
null
def SplitData(data, M, k, seed): """ 将数据集合随机分为两个集合 """ test = [] train = [] random.seed(seed) for user, item in data: if random.randint(0,M) == k: test.append([user,item]) else: train.append([user,item]) return train, test
19.230769
32
0.596
8603f22da43dcbfae1924da0c08b50704d34e35b
3,338
py
Python
mediapipe/examples/desktop/autoflip/quality/kinematic_path_solver_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/examples/desktop/autoflip/quality/kinematic_path_solver_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/examples/desktop/autoflip/quality/kinematic_path_solver_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/examples/desktop/autoflip/quality/kinematic_path_solver.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflectio...
39.270588
317
0.780407
994cb173b61875a49bd0673798422e28fc5a631c
824
py
Python
Simulation/FuzzyEngine/rule.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
1
2022-03-11T14:24:10.000Z
2022-03-11T14:24:10.000Z
Simulation/FuzzyEngine/rule.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
null
null
null
Simulation/FuzzyEngine/rule.py
anoppa/Proyecto-IA-Sim-Comp
71132bd0c6cb5aeff812fd96e0017be71178a5f3
[ "MIT" ]
1
2022-01-19T04:29:19.000Z
2022-01-19T04:29:19.000Z
from typing import Dict, Tuple class Rule: def __init__( self, parameters_conditions: Dict[str, str], destination: str, then: Tuple[str, str], ): self._parameters_conditions = parameters_conditions self._destination = destination self.then = then @p...
24.235294
64
0.583738
2aa4f1a5a2b3a16eaf8426009400e36693c9ff9a
580
py
Python
Computer_vision/manipulating_images/videos.py
lennykioko/Awesome_Python
b48d5a3663570dc96d407db1d6b09099cfa98831
[ "MIT" ]
2
2018-03-05T15:29:07.000Z
2018-09-20T20:18:16.000Z
Computer_vision/manipulating_images/videos.py
lennykioko/Awesome_Python
b48d5a3663570dc96d407db1d6b09099cfa98831
[ "MIT" ]
null
null
null
Computer_vision/manipulating_images/videos.py
lennykioko/Awesome_Python
b48d5a3663570dc96d407db1d6b09099cfa98831
[ "MIT" ]
null
null
null
import cv2 import time frames = 0 video = cv2.VideoCapture(0) start = time.time() while True: frames += 1 check, frame = video.read() print(check) print(frame) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow("Capturing Webcam", gray) key = cv2.waitKey(1) if key == ord('q...
17.058824
55
0.675862
560d0014c8cbefce648b8e22b2f9d68b33477155
24,339
py
Python
django/db/migrations/state.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
django/db/migrations/state.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
null
null
null
django/db/migrations/state.py
mitchelljkotler/django
bdd2d7ff92624f5cf4fc6d212ba82b5d309ee48a
[ "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
from __future__ import unicode_literals import copy from collections import OrderedDict from contextlib import contextmanager from django.apps import AppConfig from django.apps.registry import Apps, apps as global_apps from django.conf import settings from django.db import models from django.db.models.fields.proxy im...
41.963793
114
0.611159
dde1b3fadade8dd585d766dc7a804d864a0a19ee
6,317
py
Python
pbsuite/honey/asmEngines/SpadesAssembler.py
cgjosephlee/PBJelly
3fe41716533a49334fd9f13f5ec6ae47845557b8
[ "BSD-2-Clause-FreeBSD" ]
2
2021-12-07T09:01:52.000Z
2021-12-17T16:39:11.000Z
pbsuite/honey/asmEngines/SpadesAssembler.py
cgjosephlee/PBJelly
3fe41716533a49334fd9f13f5ec6ae47845557b8
[ "BSD-2-Clause-FreeBSD" ]
2
2019-12-04T01:07:22.000Z
2019-12-07T02:52:16.000Z
pbsuite/honey/asmEngines/SpadesAssembler.py
cgjosephlee/PBJelly
3fe41716533a49334fd9f13f5ec6ae47845557b8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import tempfile import logging from pbsuite.utils.CommandRunner import exe from pbsuite.honey.asmEngines.Assembler import Assembler class SpadesAssembler(Assembler): def __init__(self, data, args): #buffer, tmpDir, timeout, threads, maxreads): super(SpadesAssembler, self).__init__(data, args)...
39.236025
122
0.53728
c45d549de1e5272efba2979443e7278fe2c05898
685
py
Python
algorithms-implementation/string/string-to-number.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
algorithms-implementation/string/string-to-number.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
algorithms-implementation/string/string-to-number.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
""" Given a string, convert it to an integer without using the builtin str function. You are allowed to use ord to convert a character to ASCII code. Consider all possible cases of an integer. In the case where the string is not a valid integer, return None """ # Time: O(n) # Space: O(1) def convert_to_int(s): i...
22.096774
84
0.623358
1ceb962c938bcc24aee6573fd27875c9cd3633ce
4,649
py
Python
wazimap_ng/boundaries/management/commands/loadshp.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
null
null
null
wazimap_ng/boundaries/management/commands/loadshp.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
1
2021-03-18T14:02:24.000Z
2021-04-14T15:23:30.000Z
wazimap_ng/boundaries/management/commands/loadshp.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
null
null
null
import os import logging from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon from wazimap_ng.datasets.models import Geography from wazimap_ng.boundaries.models import GeographyBoundary import fiona...
40.077586
221
0.660572
905adad611f7449eae331f2d7bc3db9e63235abe
341
py
Python
Automated Scheduled Call Reminders/schedular.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
1
2022-03-23T23:04:02.000Z
2022-03-23T23:04:02.000Z
Automated Scheduled Call Reminders/schedular.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
null
null
null
Automated Scheduled Call Reminders/schedular.py
Wish1991/Python
11b407ea1c47f63cb07dbf8cb90df93d2190821f
[ "MIT" ]
1
2022-03-23T23:04:40.000Z
2022-03-23T23:04:40.000Z
# schedular code for blocking schedular as we have only 1 process to run from apscheduler.schedulers.blocking import BlockingScheduler from caller import search sched = BlockingScheduler() # Schedule job_function to be called every two hours sched.add_job(search, "interval", hours=1) # for testing instead add hou...
24.357143
78
0.788856
26e3235492e565bb57d576bc912377995ad818cb
14,459
py
Python
bin/create_lcmv_full_seqs.py
wukevin/tcr-bert
63aa483ec25a8f4727d1905267499ede75f524de
[ "Apache-2.0" ]
8
2021-11-23T00:36:40.000Z
2022-03-14T23:25:06.000Z
bin/create_lcmv_full_seqs.py
wukevin/tcr-bert
63aa483ec25a8f4727d1905267499ede75f524de
[ "Apache-2.0" ]
null
null
null
bin/create_lcmv_full_seqs.py
wukevin/tcr-bert
63aa483ec25a8f4727d1905267499ede75f524de
[ "Apache-2.0" ]
1
2022-02-22T15:55:30.000Z
2022-02-22T15:55:30.000Z
""" Code to create LCMV sequences for experimental validation """ import os, sys import json import argparse import collections import logging from typing import * import numpy as np import pandas as pd from Bio import pairwise2 from Bio.Align import substitution_matrices import Bio.Data.CodonTable as CodonTable im...
35.878412
112
0.656892
39d655f70b4d561cb68f347dff8cdb7895adeeaf
691
py
Python
python/src/nnabla_ext/cuda/utils/inspection/__init__.py
claymodel/nnabla-ext-cuda
cf5304884fe63675a704eaf6c94a4663ed7fc46b
[ "Apache-2.0" ]
null
null
null
python/src/nnabla_ext/cuda/utils/inspection/__init__.py
claymodel/nnabla-ext-cuda
cf5304884fe63675a704eaf6c94a4663ed7fc46b
[ "Apache-2.0" ]
1
2020-11-09T08:40:20.000Z
2020-11-09T08:40:20.000Z
python/src/nnabla_ext/cuda/utils/inspection/__init__.py
claymodel/nnabla-ext-cuda
cf5304884fe63675a704eaf6c94a4663ed7fc46b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.388889
74
0.775687
dc95c87f77088974455cde6e355dc5a14c138f13
2,751
py
Python
sherpa_client/api/metrics/get_annotation_metrics.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/api/metrics/get_annotation_metrics.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/api/metrics/get_annotation_metrics.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.annotation_metrics import AnnotationMetrics from ...types import UNSET, Response, Unset def _get_kwargs( project_name: str, *, client: Client, facet: Union[Unset, None, str] = "", ) -> Dict[str, An...
22.925
105
0.625954
5606ef1458f411f7d4bae9b11b0253ded97cd9f9
10,626
py
Python
shorttext/classifiers/bow/maxent/MaxEntClassification.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
shorttext/classifiers/bow/maxent/MaxEntClassification.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
shorttext/classifiers/bow/maxent/MaxEntClassification.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
import pickle from scipy.sparse import dok_matrix from gensim.corpora import Dictionary from keras.models import Sequential from keras.layers import Dense from keras.regularizers import l2 import shorttext.utils.kerasmodel_io as kerasio from shorttext.utils import tokenize from shorttext.utils import gensim_corpora ...
39.649254
181
0.643798
910eec50a566da5fa1b89c3c6ec8b3fd1865c8d5
1,004
py
Python
samples/python/qmgr_ping.py
fbraem/mqweb
c030b300a0b7312c24948e0add4eb6a9b7f8a05b
[ "MIT" ]
18
2015-01-12T20:17:27.000Z
2022-02-11T17:40:54.000Z
samples/python/qmgr_ping.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
12
2015-01-20T12:47:01.000Z
2019-03-13T07:10:19.000Z
samples/python/qmgr_ping.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
8
2015-01-13T13:52:29.000Z
2021-12-10T12:07:29.000Z
''' This sample pings a queuemanager. MQWeb runs on localhost and is listening on port 8081. ''' import json import httplib import socket import argparse parser = argparse.ArgumentParser( description='MQWeb - Python sample - Ping Queuemanager', epilog='For more information: http://www.mqweb.org' ) parser.add_argum...
29.529412
117
0.714143
43ef43c76ccfcd3b17af714be5326135128b414b
1,789
py
Python
screens/mazesolver/processing.py
MinnowBoard-Projects/max-opencv-demos
13b9a8ad0b40a67c36c72ef1019283f21db3b0ac
[ "MIT" ]
null
null
null
screens/mazesolver/processing.py
MinnowBoard-Projects/max-opencv-demos
13b9a8ad0b40a67c36c72ef1019283f21db3b0ac
[ "MIT" ]
null
null
null
screens/mazesolver/processing.py
MinnowBoard-Projects/max-opencv-demos
13b9a8ad0b40a67c36c72ef1019283f21db3b0ac
[ "MIT" ]
null
null
null
from .include import * def process (color_in): contours = util.processing.getContours (color_in, 10 * util.input.scale_len, 50 * util.input.scale_area) segments = [ (c[i][0], c[(i + 1) % len (c)][0]) for c in contours for i in xrange (len (c)) ] waypoints = [] def add_wa...
30.322034
108
0.517608
ae3b4397e0250242c456503f90c375b3d23bc216
23,933
py
Python
Archiv/1Main.py
inventivejon/ExSyNL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
null
null
null
Archiv/1Main.py
inventivejon/ExSyNL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
5
2021-05-11T02:08:51.000Z
2022-02-26T23:08:18.000Z
Archiv/1Main.py
inventivejon/ExSyL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
null
null
null
# Prädikate # Mann # Frau # Ehepaar # Formel # Mann(X) # Frau(Y) # Ehepaar(X, Y) continueAsking = True predicates = {} predicate_equals = {} functions = [] def AddEqualsPredicate(eqPrName, predicate): global predicates global predicate_equals if predicate in predicates: for singleEqPrName in eqPr...
47.675299
183
0.581415
93f561ef6cb49477f5b01c28e9f0c6c77dc4d234
167,359
py
Python
virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/module_utils/facts.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
null
null
null
virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/module_utils/facts.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
null
null
null
virt/ansible-2.3.0/lib/python2.7/site-packages/ansible/module_utils/facts.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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 Software Foundation, either version 3 of the License, or # (at your option) any lat...
42.315803
209
0.537181
e632fb2752ecad3c8af9b48d93b90acfba0ad342
110,955
py
Python
core/controllers/reader_test.py
tjinjoy/oppia
ed5ccbd95e42078457d40dde1dda02f1ae6a4354
[ "Apache-2.0" ]
1
2020-03-15T09:09:30.000Z
2020-03-15T09:09:30.000Z
core/controllers/reader_test.py
tjinjoy/oppia
ed5ccbd95e42078457d40dde1dda02f1ae6a4354
[ "Apache-2.0" ]
null
null
null
core/controllers/reader_test.py
tjinjoy/oppia
ed5ccbd95e42078457d40dde1dda02f1ae6a4354
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable ...
40.420765
113
0.632806
8227ac3364a7f15246aa9a6a910b5267befe6ab4
1,111
py
Python
cyborg/accelerator/drivers/fpga/inspur/driver.py
NeCTAR-RC/cyborg
e0fab29181467c0c72667ea26a8b04c53b238ddb
[ "Apache-2.0" ]
37
2017-03-23T02:10:35.000Z
2021-11-25T07:57:36.000Z
cyborg/accelerator/drivers/fpga/inspur/driver.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
null
null
null
cyborg/accelerator/drivers/fpga/inspur/driver.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
27
2017-07-14T02:26:24.000Z
2022-01-19T07:55:10.000Z
# Copyright 2020 Inspur, 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...
28.487179
75
0.738074
385aa0e7c9bb90feb78d1d0286ef76da8defe55b
4,502
py
Python
data_utils/lob_data_utils/lob_classify.py
vevurka/mt-lob
70989bcb61f4cfa7884437e1cff2db2454b3ceff
[ "MIT" ]
2
2019-04-17T02:19:22.000Z
2019-05-23T12:14:59.000Z
data_utils/lob_data_utils/lob_classify.py
vevurka/mt-lob
70989bcb61f4cfa7884437e1cff2db2454b3ceff
[ "MIT" ]
10
2020-01-28T22:32:13.000Z
2021-09-08T00:41:37.000Z
data_utils/lob_data_utils/lob_classify.py
vevurka/mt-lob
70989bcb61f4cfa7884437e1cff2db2454b3ceff
[ "MIT" ]
6
2018-12-05T22:17:05.000Z
2020-09-03T03:00:50.000Z
import logging import numpy as np import pandas as pd from sklearn import utils from lob_data_utils import lob, model from sklearn.svm import SVC logger = logging.getLogger(__name__) class LobClassifySimple(object): def __init__(self, stock: str, data_length: int=10000, data_dir: str='../data/prepared'): ...
40.196429
107
0.625722
ad733fb9ebc6948a4a1c5c4cef79c45b4baac5d7
1,726
py
Python
md2html/md2html.py
MaoXianXin/mdtable2csv
209c011530e789499b3029e1b94411aa9eb09be2
[ "MIT" ]
94
2015-09-23T07:00:35.000Z
2022-03-01T04:52:55.000Z
md2html/md2html.py
sympley/mdtable2csv
209c011530e789499b3029e1b94411aa9eb09be2
[ "MIT" ]
11
2016-09-02T03:18:50.000Z
2021-03-22T12:15:54.000Z
md2html/md2html.py
sympley/mdtable2csv
209c011530e789499b3029e1b94411aa9eb09be2
[ "MIT" ]
21
2016-04-12T22:49:25.000Z
2022-01-26T09:07:20.000Z
#!/usr/bin/python #coding:utf-8 import io import requests from flask import abort, json # filename = "mdtable.md" # api_url = 'https://api.github.com' def _read_file_or_404(filename, read_as_text=True): """ Reads the contents of the specified file, or raise 404. """ mode = 'rt' if read_as_text else 'r...
29.758621
75
0.616454
ed13eec72372e8c80ac161efec72cb8492add639
1,590
py
Python
models/mlp_encoder_spam.py
surrealyz/DeepBayes
b9d9e7a3708d1faf7aa918756619d99b0e71ae3e
[ "MIT" ]
null
null
null
models/mlp_encoder_spam.py
surrealyz/DeepBayes
b9d9e7a3708d1faf7aa918756619d99b0e71ae3e
[ "MIT" ]
null
null
null
models/mlp_encoder_spam.py
surrealyz/DeepBayes
b9d9e7a3708d1faf7aa918756619d99b0e71ae3e
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import time from mlp import mlp_layer def encoder_net(dimX, dimH, dimZ, dimY, n_layers, name): fc_layer = [dimX + dimY] + [dimH for i in range(n_layers)] + [dimZ] enc_mlp = [] for i in range(len(fc_layer) - 1): if i + 2 < len(fc_layer): activa...
25.645161
91
0.567296
acc198beb898b07d569d1819f22b46b165890eec
169
py
Python
doc/python_study_code/doc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/doc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/doc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 def sf(x): 'It\'s a test function doc string for your, your input number is x' return x*x print sf.__doc__ print help(sf)
16.9
71
0.674556
5becfd8e24dbe4b5a46ec0268ba9eb0613972962
2,198
py
Python
saas/backend/debug/views.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
7
2021-08-13T03:48:16.000Z
2021-12-20T15:31:38.000Z
saas/backend/debug/views.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
456
2021-08-16T02:13:57.000Z
2022-03-30T10:02:49.000Z
saas/backend/debug/views.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
17
2021-08-10T04:08:46.000Z
2022-03-14T14:24:36.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
40.703704
115
0.750682
04eefbfce6479fa9fadd9a7e7a45daa9b4f6d27e
87,227
py
Python
tools/ci_build/build.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
null
null
null
tools/ci_build/build.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
null
null
null
tools/ci_build/build.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import argparse import contextlib import glob import os import re import shutil import subprocess import sys import hashlib import platform from amd_hipify import amd_hipify from distutils.version impor...
43.483051
120
0.61395
4659c3692aef9b5c61d39656ca9aea73ee0f64ea
1,086
py
Python
pcd/farthest_point_sample.py
jxtxwsbn/toolkit
39dd5d95e048f1d5b13287d11cc12f110d0c4667
[ "MIT" ]
null
null
null
pcd/farthest_point_sample.py
jxtxwsbn/toolkit
39dd5d95e048f1d5b13287d11cc12f110d0c4667
[ "MIT" ]
null
null
null
pcd/farthest_point_sample.py
jxtxwsbn/toolkit
39dd5d95e048f1d5b13287d11cc12f110d0c4667
[ "MIT" ]
null
null
null
import numpy as np import scipy.spatial.distance def downsample_points(pts, K): # if num_pts > 8K use farthest sampling # else use random sampling if pts.shape[0] >= 2*K: sampler = FarthestSampler() return sampler(pts, K) else: return pts[np.random.choice(pts.shape[0], K, repla...
30.166667
82
0.604972
d2179bdb98d7d2ed2e6c6fa08ca7142528aa6905
1,105
py
Python
manga_py/providers/manganelos_com.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
manga_py/providers/manganelos_com.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
manga_py/providers/manganelos_com.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
from manga_py.provider import Provider from .helpers.std import Std from requests import get class MangaNelosCom(Provider, Std): def get_chapter_index(self) -> str: ch = self.re.search(r'-chapter-(\d+(?:\.\d+)?)', self.chapter) return ch.group(1).replace('.', '-') def get_content(self): ...
26.95122
83
0.620814
5168bbfd942b5e97477996b4d91746d46fc06a7e
17,243
py
Python
hw3/dqn.py
dennismalmgren/homework
d46c7a2845f4fc3bab319d3855705a43bc25c1fc
[ "MIT" ]
null
null
null
hw3/dqn.py
dennismalmgren/homework
d46c7a2845f4fc3bab319d3855705a43bc25c1fc
[ "MIT" ]
null
null
null
hw3/dqn.py
dennismalmgren/homework
d46c7a2845f4fc3bab319d3855705a43bc25c1fc
[ "MIT" ]
null
null
null
import uuid import time import pickle import sys import gym.spaces import itertools import numpy as np import random import tensorflow as tf import tensorflow.contrib.layers as layers from collections import namedtuple from dqn_utils import * OptimizerSpec = namedtuple("OptimizerSpec", ["constructor", "...
43
118
0.689149
c3bbdaadcb4f773122a978c01a9b831c8f541a22
4,670
py
Python
src/python/m5/stats/__init__.py
danielpalomino/gem5
e8175f0ef4ec71d51b16b430f2b554e6a2f81120
[ "BSD-3-Clause" ]
null
null
null
src/python/m5/stats/__init__.py
danielpalomino/gem5
e8175f0ef4ec71d51b16b430f2b554e6a2f81120
[ "BSD-3-Clause" ]
null
null
null
src/python/m5/stats/__init__.py
danielpalomino/gem5
e8175f0ef4ec71d51b16b430f2b554e6a2f81120
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2007 The Regents of The University of Michigan # Copyright (c) 2010 The Hewlett-Packard Development Company # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of sou...
30.723684
72
0.6803
b126fe2a15bb7571c8fae5ed469ef207bc6cf7b6
15,040
py
Python
data/ilsvrc_data.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
1
2018-12-09T06:09:29.000Z
2018-12-09T06:09:29.000Z
data/ilsvrc_data.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
data/ilsvrc_data.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import sys import cv2 from PIL import Image import threading import pandas as pd import numpy as np import os import copy import queue import multiprocessing from multiprocessing import Manager from multiprocessing import Pool from multiprocessing import cpu_count multiprocessing.freeze_support() import ...
41.205479
181
0.64641
7e434929bc33d282afdaf3018804124c1a5dc236
16,617
py
Python
tools/RNN/rnn_quantizer/example/resnet18_qat.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/example/resnet18_qat.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/example/resnet18_qat.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
import argparse import os import shutil import time import torch import torch.nn as nn import torch.optim import torchvision.datasets as datasets import torchvision.transforms as transforms from pytorch_nndct import nn as nndct_nn from pytorch_nndct.nn.modules import functional from pytorch_nndct import QatProcessor ...
29.940541
102
0.64759
a6d0a3d8bb555dd17d300aab0e114ef20c173405
156
py
Python
6.00.1x/Problem-Sets/PS-1/bobs.py
batmanbury/edX
86d66c38951a49ef4b017ad566e95b9a7e330b7c
[ "Xnet", "Linux-OpenIB", "X11" ]
3
2015-10-24T18:57:13.000Z
2017-04-13T22:50:12.000Z
6.00.1x/Problem-Sets/PS-1/bobs.py
neuropil/edX
86d66c38951a49ef4b017ad566e95b9a7e330b7c
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
6.00.1x/Problem-Sets/PS-1/bobs.py
neuropil/edX
86d66c38951a49ef4b017ad566e95b9a7e330b7c
[ "Xnet", "Linux-OpenIB", "X11" ]
6
2016-03-10T00:34:38.000Z
2021-01-11T23:06:12.000Z
s = 'azcbobobeggbobobhakl' bobs = 0 for i in range(len(s)): if s[i:i+3] == 'bob': bobs += 1 print "Number of times bob occurs is: " + str(bobs)
22.285714
51
0.583333
5226da82f920f3491c984c9a849d14cc086e0a6c
7,526
py
Python
tests/integration/checkout/test_mixins.py
liip-forks/django-oscar
b00de80e1dd1d7bd7817edc8b94a5713c196016a
[ "BSD-3-Clause" ]
null
null
null
tests/integration/checkout/test_mixins.py
liip-forks/django-oscar
b00de80e1dd1d7bd7817edc8b94a5713c196016a
[ "BSD-3-Clause" ]
null
null
null
tests/integration/checkout/test_mixins.py
liip-forks/django-oscar
b00de80e1dd1d7bd7817edc8b94a5713c196016a
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D import mock from django.http import HttpRequest from django.test import TestCase from django.test.utils import override_settings from oscar.apps.checkout.calculators import OrderTotalCalculator from oscar.apps.checkout.mixins import CheckoutSessionMixin, OrderPlacementMixin from oscar...
48.87013
97
0.667154
855b76062588294723e6c14aad82e823ae012936
777
py
Python
src/main/python/programmingtheiot/cda/system/SystemCpuUtilTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/system/SystemCpuUtilTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/system/SystemCpuUtilTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging import psutil from...
23.545455
78
0.751609
23da74d6c2bfdeb3c11dc6f70462eda9af40531f
4,633
py
Python
nnrf/analysis/_report.py
paradoxysm/nnrf
4d83e7c03dffd564d6856ff963c7aa85bb96c73c
[ "BSD-3-Clause" ]
1
2020-05-09T23:34:34.000Z
2020-05-09T23:34:34.000Z
nnrf/analysis/_report.py
paradoxysm/nnrf
4d83e7c03dffd564d6856ff963c7aa85bb96c73c
[ "BSD-3-Clause" ]
null
null
null
nnrf/analysis/_report.py
paradoxysm/nnrf
4d83e7c03dffd564d6856ff963c7aa85bb96c73c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from nnrf.analysis import multiconfusion_matrix def calculate_statistics(Y_hat, Y, beta=1, average=None): """ Calculate the precisions, recalls, F-beta scores, and supports for each class in `targets`. Parameters ---------- Y_hat : array-like List of data labels. Y : array-like ...
31.304054
84
0.661774
ae72ade8584d83665b6e1ba088ffff246ae9f5c6
1,186
py
Python
.modules/.theHarvester/discovery/netcraft.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.theHarvester/discovery/netcraft.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.theHarvester/discovery/netcraft.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
161
2018-04-20T15:57:12.000Z
2022-03-15T19:16:16.000Z
import string import requests import sys import myparser import re class search_netcraft: def __init__(self, word): self.word = word.replace(' ', '%20') self.results = "" self.totalresults = "" self.server = "www.google.com" self.hostname = "www.google.com" self.us...
28.926829
117
0.597808
2aeff6ed7df38cdb8d7c3585cce934f466a66574
443
py
Python
passing.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
passing.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
passing.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Pass An Integer To A Function And Modify It ''' Function Name : Pass An Integer To A Function And Modify It. Function Date : 6 Sep 2020 Function Author : Prasad Dangare Input : Integer Output : Integer ''' def modify(x): """ Reassign A Value To The ...
21.095238
66
0.575621
c36d5e57f13b16908f181e42c04818ac09d63a00
16,242
py
Python
OG-USA-0.6.2/ogusa/aggregates.py
grantseiter/Biden-Tax-Proposals
c215ff845264f3fce9281c7fbb343ed10758a4b6
[ "MIT" ]
null
null
null
OG-USA-0.6.2/ogusa/aggregates.py
grantseiter/Biden-Tax-Proposals
c215ff845264f3fce9281c7fbb343ed10758a4b6
[ "MIT" ]
null
null
null
OG-USA-0.6.2/ogusa/aggregates.py
grantseiter/Biden-Tax-Proposals
c215ff845264f3fce9281c7fbb343ed10758a4b6
[ "MIT" ]
null
null
null
''' ------------------------------------------------------------------------ Functions to compute economic aggregates. ------------------------------------------------------------------------ ''' # Packages import numpy as np from ogusa import tax, utils, household ''' ------------------------------------------------...
37.684455
283
0.522657
3cdadf8fac01fa25ef7ca788eaff543d6ee1e37b
8,078
py
Python
contrib/devtools/update-translations.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
1
2017-07-06T06:04:15.000Z
2017-07-06T06:04:15.000Z
contrib/devtools/update-translations.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
38.650718
124
0.635925
3be876fbf49b1d91ddb0d1a5b4bf3c8f6b7c2027
110,768
py
Python
sampledb/frontend/objects.py
rnoffke/sampledb
f1ed01219200a594fafaa9396dcd33f3701bdbf7
[ "MIT" ]
null
null
null
sampledb/frontend/objects.py
rnoffke/sampledb
f1ed01219200a594fafaa9396dcd33f3701bdbf7
[ "MIT" ]
null
null
null
sampledb/frontend/objects.py
rnoffke/sampledb
f1ed01219200a594fafaa9396dcd33f3701bdbf7
[ "MIT" ]
null
null
null
# coding: utf-8 """ """ from copy import deepcopy import datetime import io import json import math import os import zipfile import flask import flask_login import itsdangerous import werkzeug.utils from flask_babel import _ from . import frontend from .. import logic from .. import models from .. import db from .....
47.377246
405
0.663793
3009b5f8f74fca4d8db2a5b1e4c87e679e8b5478
5,077
py
Python
vendor-local/lib/python/debug_toolbar/middleware.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
vendor-local/lib/python/debug_toolbar/middleware.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/debug_toolbar/middleware.py
Koenkk/popcorn_maker
0978b9f98dacd4e8eb753404b24eb584f410aa11
[ "BSD-3-Clause" ]
16
2015-02-18T21:43:31.000Z
2021-11-09T22:50:03.000Z
""" Debug Toolbar middleware """ import imp import thread from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.utils.encoding import smart_unicode from django.utils.importlib import import_module import debug_toolbar.urls from debug_...
36.789855
115
0.63049
be98fab15b49f543135d7dca0adeb5562e1021d9
763
py
Python
app/blueprints/historico.py
freeboxd/GT-Covid19-Atendimento
935f69ede0bfac1bfb1e4b5d2dc21770d39e2a42
[ "MIT" ]
null
null
null
app/blueprints/historico.py
freeboxd/GT-Covid19-Atendimento
935f69ede0bfac1bfb1e4b5d2dc21770d39e2a42
[ "MIT" ]
null
null
null
app/blueprints/historico.py
freeboxd/GT-Covid19-Atendimento
935f69ede0bfac1bfb1e4b5d2dc21770d39e2a42
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, request from mock import objs from flask_login import login_required historico = Blueprint('Historico', __name__) @historico.route('/historico', methods=['GET']) @login_required def index(): idUsuario = request.args.get('idUsuario') inputName = request.args.get('...
24.612903
67
0.572739