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
88b0cb79676c38c2e63f4aeff9b36c69f7412146
1,551
py
Python
connectfour/agents/computer_player.py
rmit-s3607407-Tony-Huang/ai1901-connectfour
3faf58296f8bcb6b99e9707d1e17c5a107c39094
[ "MIT" ]
2
2019-04-17T07:42:28.000Z
2019-04-24T08:55:17.000Z
connectfour/agents/computer_player.py
rmit-s3607407-Tony-Huang/ai1901-connectfour
3faf58296f8bcb6b99e9707d1e17c5a107c39094
[ "MIT" ]
null
null
null
connectfour/agents/computer_player.py
rmit-s3607407-Tony-Huang/ai1901-connectfour
3faf58296f8bcb6b99e9707d1e17c5a107c39094
[ "MIT" ]
null
null
null
import random from connectfour.agents.monte_carlo import Node, MTCS from connectfour.agents.agent import Agent MAX_DEPTH = 3 class MonteCarloAgent(Agent): def __init__(self, name): super().__init__(name) def get_move(self, board): best_move = self.find_best_move(board) return self._...
28.2
89
0.604771
ddf90f4b5c45ace337bfc739e847555805737703
1,529
py
Python
test/test_unit.py
firekg/Explore-vs-Teach
2b3b6b8fbc61e28fda75555d5bf0e068f0a9ab8a
[ "MIT" ]
null
null
null
test/test_unit.py
firekg/Explore-vs-Teach
2b3b6b8fbc61e28fda75555d5bf0e068f0a9ab8a
[ "MIT" ]
null
null
null
test/test_unit.py
firekg/Explore-vs-Teach
2b3b6b8fbc61e28fda75555d5bf0e068f0a9ab8a
[ "MIT" ]
1
2018-10-28T11:52:37.000Z
2018-10-28T11:52:37.000Z
""" unit test """ from utils_pattern import genMasterPermSet from e_vs_t import model from simulate import example_model from simulate import perf_all_configs from simulate import perf_all_learner_configs def setup_test_hypo(guy): """ test P(h|X,Y) for initialize_model("full") """ possible_val = guy.getPoss...
28.849057
59
0.653368
64f0fdc1537d90ae3be33c4db7a06c6765cc2e7a
4,031
py
Python
setup.py
corentinravoux/lelantos
8736999e734058e66de5cc7cb4d0d302fc3d793b
[ "MIT" ]
4
2021-09-29T07:49:57.000Z
2022-03-16T16:30:38.000Z
setup.py
corentinravoux/lelantos
8736999e734058e66de5cc7cb4d0d302fc3d793b
[ "MIT" ]
null
null
null
setup.py
corentinravoux/lelantos
8736999e734058e66de5cc7cb4d0d302fc3d793b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys import glob from shutil import rmtree from setuptools import setup, Command # Package meta-data. NAME = 'lelantos' DESCRIPTION = 'Package for tomogra...
28.792857
112
0.64773
ce8c3526b50f026ed21fb2597aed5f38c57d68be
1,733
py
Python
python_web_exam/web_app/models.py
NikolaKolew/softuni-python-web-exam
dfa8bf561a75fdae0083798f953a75afb8e820b9
[ "MIT" ]
null
null
null
python_web_exam/web_app/models.py
NikolaKolew/softuni-python-web-exam
dfa8bf561a75fdae0083798f953a75afb8e820b9
[ "MIT" ]
null
null
null
python_web_exam/web_app/models.py
NikolaKolew/softuni-python-web-exam
dfa8bf561a75fdae0083798f953a75afb8e820b9
[ "MIT" ]
null
null
null
from django.core.validators import MinLengthValidator, MinValueValidator from django.db import models class Profile(models.Model): USER_NAME_MAX_CHARS = 15 USER_NAME_MIN_CHARS = 2 MIN_AGE = 0 user_name = models.CharField( max_length=USER_NAME_MAX_CHARS, validators=( MinLen...
21.6625
72
0.600115
788314d4a73895ea1c771fb87b985876d6ff475a
7,643
py
Python
tests/mesh/test_basemesh.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
1
2020-11-27T03:26:22.000Z
2020-11-27T03:26:22.000Z
tests/mesh/test_basemesh.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
null
null
null
tests/mesh/test_basemesh.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
null
null
null
import unittest import sys from SimPEG.Mesh.BaseMesh import BaseRectangularMesh import numpy as np class TestBaseMesh(unittest.TestCase): def setUp(self): self.mesh = BaseRectangularMesh([6, 2, 3]) def test_meshDimensions(self): self.assertTrue(self.mesh.dim, 3) def test_mesh_nc(self): ...
37.650246
75
0.55541
d42ff521a4ffef837a6470ad14dec23f5ae0e885
3,512
py
Python
tests/parsers/mac_appfirewall.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
27
2019-04-05T12:01:49.000Z
2022-02-08T02:26:25.000Z
tests/parsers/mac_appfirewall.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
null
null
null
tests/parsers/mac_appfirewall.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
8
2019-11-28T08:06:34.000Z
2020-08-29T13:53:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for Mac AppFirewall log file parser.""" from __future__ import unicode_literals import unittest from plaso.formatters import mac_appfirewall as _ # pylint: disable=unused-import from plaso.parsers import mac_appfirewall from tests.parsers import test_lib cl...
32.82243
82
0.714977
1cd2c347614b4b014a6aaa831e3b9dd721e025d0
3,406
py
Python
src/sqlfluff/rules/L026.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L026.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
8
2022-01-26T21:43:03.000Z
2022-01-31T10:22:02.000Z
src/sqlfluff/rules/L026.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
1
2022-01-24T10:10:43.000Z
2022-01-24T10:10:43.000Z
"""Implementation of Rule L026.""" from sqlfluff.core.rules.analysis.select import get_aliases_from_select from sqlfluff.core.rules.base import EvalResultType, LintResult, RuleContext from sqlfluff.core.rules.doc_decorators import document_configuration from sqlfluff.rules.L020 import Rule_L020 @document_configurati...
32.75
88
0.608045
bd47124098c74efe48c2a648371e9c72bc012173
809
py
Python
backend/blog/handler/open/review.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/handler/open/review.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/handler/open/review.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
#!/usr/bin/evn python3 # coding=utf-8 from handler.open.base import WebBaseHandler from service.blog import BlogSrv from service.review import ReviewSrv from handler.open.verifycode import check_verify_code class ReviewHandler(WebBaseHandler): """ # 新增评论 """ # 检查验证码装饰器 @check_verify_code asy...
24.515152
64
0.640297
46552e20822fa6fd305833a6e4dc9d22ce83a066
1,242
py
Python
adaptive_attention_XELoss/inference_wrapper.py
vanpersie32/adaptive_attention
4417f7d10dcf1c7b8188ee4fc4efc36c987f72f3
[ "MIT" ]
1
2018-06-01T01:37:46.000Z
2018-06-01T01:37:46.000Z
adaptive_attention_XELoss/inference_wrapper.py
vanpersie32/adaptive_attention
4417f7d10dcf1c7b8188ee4fc4efc36c987f72f3
[ "MIT" ]
null
null
null
adaptive_attention_XELoss/inference_wrapper.py
vanpersie32/adaptive_attention
4417f7d10dcf1c7b8188ee4fc4efc36c987f72f3
[ "MIT" ]
null
null
null
from language_model import LanguageModel import tensorflow as tf class inference_wrapper(object): def __init__(self,opt,reuse = False): # build the model # separate inference op with train op, especially in train and validation steps with tf.name_scope('inference'): LM = La...
38.8125
130
0.641707
38d379a4c83c1bad3baf274f9e847431da6e8974
89,259
py
Python
lib/sqlalchemy/orm/strategies.py
aadel/sqlalchemy
380f4389922004589bfa7cb4f9b8c8208aa68659
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategies.py
aadel/sqlalchemy
380f4389922004589bfa7cb4f9b8c8208aa68659
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategies.py
aadel/sqlalchemy
380f4389922004589bfa7cb4f9b8c8208aa68659
[ "MIT" ]
null
null
null
# orm/strategies.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """sqlalchemy.orm.interfaces.LoaderStrategy implementations, and related Mapper...
34.731128
79
0.578183
a80b22a5e0d9307266771aa481a302416331be48
6,360
py
Python
Tut 04 Objects at Rest/ShaderPerspective.py
khok/PyOpenGL-Tutorial
ecdd123b2b79c96c5656453c75b6f5d2bbc11c52
[ "MIT" ]
77
2017-04-17T10:15:33.000Z
2021-12-26T00:21:22.000Z
Tut 04 Objects at Rest/ShaderPerspective.py
khok/PyOpenGL-Tutorial
ecdd123b2b79c96c5656453c75b6f5d2bbc11c52
[ "MIT" ]
1
2020-02-12T11:53:44.000Z
2020-02-12T11:53:44.000Z
Tut 04 Objects at Rest/ShaderPerspective.py
khok/PyOpenGL-Tutorial
ecdd123b2b79c96c5656453c75b6f5d2bbc11c52
[ "MIT" ]
30
2017-04-17T14:19:25.000Z
2021-11-22T08:09:29.000Z
# Mario Rosasco, 2016 # adapted from ShaderPerspective.cpp, Copyright (C) 2010-2012 by Jason L. McKesson # This file is licensed under the MIT License. from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * import numpy as np from framework import * # A 1-D array of 3 4-D vertices (X,Y,Z...
26.5
93
0.600786
fd76243a6110b567c2c992d30aa7191df474bdc7
12,753
py
Python
keras_detection/utils.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
2
2017-05-25T01:26:41.000Z
2019-08-16T13:38:57.000Z
keras_detection/utils.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
null
null
null
keras_detection/utils.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
1
2017-05-25T01:26:50.000Z
2017-05-25T01:26:50.000Z
import numpy as np import tensorflow as tf import keras.backend import random import bbox_encode, bbox_decode, batch_generate """ anchor generate; shifts Generate; filters; nms; bbox_overlaps; etc. """ def anchor(base_size=16, ratios=None, scales=None): """ Generates a regular grid of multi-aspect and multi-sca...
31.488889
118
0.605269
9059ac42b8aad2dbfd426eef03bdd793fcab0ac0
462
py
Python
env/Lib/site-packages/plotly/validators/heatmap/colorbar/tickfont/_size.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/heatmap/colorbar/tickfont/_size.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/heatmap/colorbar/tickfont/_size.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="heatmap.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=...
30.8
83
0.638528
951c7551d4830ba2854e51a98c8d95abcd6728d7
13,033
py
Python
cache_highway_translate.py
RogerTsai917/attention-is-all-you-need-pytorch
64197e55d275e5c819bc786a9ff19849cdf2f6b9
[ "MIT" ]
null
null
null
cache_highway_translate.py
RogerTsai917/attention-is-all-you-need-pytorch
64197e55d275e5c819bc786a9ff19849cdf2f6b9
[ "MIT" ]
null
null
null
cache_highway_translate.py
RogerTsai917/attention-is-all-you-need-pytorch
64197e55d275e5c819bc786a9ff19849cdf2f6b9
[ "MIT" ]
null
null
null
''' Translate input text with trained model. ''' import os import time import math import torch import argparse import dill as pickle from tqdm import tqdm import transformer.Constants as Constants from torchtext.data import Dataset from transformer.CacheHighWayModels import HighWayTransformer from transformer.CacheH...
45.56993
170
0.711271
1bbc3e3c912b5ec1e04794f7c687fdfe108a6c43
6,615
py
Python
processImage.py
AxonneQ/safety-helmet-opencv
75b6ca95d2b856227ca52c7bf7e20695dd920fb1
[ "MIT" ]
1
2021-10-09T17:15:30.000Z
2021-10-09T17:15:30.000Z
processImage.py
AxonneQ/safety-helmet-opencv
75b6ca95d2b856227ca52c7bf7e20695dd920fb1
[ "MIT" ]
null
null
null
processImage.py
AxonneQ/safety-helmet-opencv
75b6ca95d2b856227ca52c7bf7e20695dd920fb1
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt from skinDetector import SkinDetector def openCloseMask(mask, iterations = 2): # Create structural element shape = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (6,6)) # perform opening and closing on the image until all the blobs have been ...
32.747525
110
0.570522
e19b5a1f93a8275fdf8f566102ad48606063bd99
936
py
Python
trix/trix_core/tests/test_tagutils.py
Elthan/trix2
5fea5eaea8dfd2a6201377fc7775e89ce99f6cbd
[ "BSD-3-Clause" ]
1
2020-03-15T12:29:13.000Z
2020-03-15T12:29:13.000Z
trix/trix_core/tests/test_tagutils.py
devilry/trix2
5bbf15671b4a72ef1ec41240b975950f413735d8
[ "BSD-3-Clause" ]
63
2015-01-03T17:21:38.000Z
2020-10-07T13:21:08.000Z
trix/trix_core/tests/test_tagutils.py
Elthan/trix2
5fea5eaea8dfd2a6201377fc7775e89ce99f6cbd
[ "BSD-3-Clause" ]
4
2015-01-08T14:49:44.000Z
2018-06-18T06:55:30.000Z
from django.test import TestCase from trix.trix_core import models as coremodels from trix.trix_core.tagutils import bulk_update_assignment_tags class TestTagUtils(TestCase): def test_bulk_update_assignment_tags(self): assignment1 = coremodels.Assignment.objects.create( title='A1', text='text...
37.44
73
0.637821
619aebb70f92653f8d415053eb0486a746b83e8f
26,691
py
Python
rasa/core/test.py
PLNech/rasa
e6be2fe356677e667473566727dff10112d2a5a6
[ "Apache-2.0" ]
null
null
null
rasa/core/test.py
PLNech/rasa
e6be2fe356677e667473566727dff10112d2a5a6
[ "Apache-2.0" ]
null
null
null
rasa/core/test.py
PLNech/rasa
e6be2fe356677e667473566727dff10112d2a5a6
[ "Apache-2.0" ]
null
null
null
import logging import os import warnings import typing from collections import defaultdict, namedtuple from typing import Any, Dict, List, Optional, Text, Tuple from rasa.core.channels import UserMessage from rasa.core.training.story_writer.yaml_story_writer import YAMLStoryWriter import rasa.utils.io as io_utils from...
34.001274
87
0.66322
c8aa14ff3a56a006a8f56d4c6f257dea05ef1fba
16,373
py
Python
mindspore/nn/optim/lamb.py
fufunoyu/mindspore
704e367ada35653e8144eb0528c714f4b0231508
[ "Apache-2.0" ]
2
2021-04-22T07:00:59.000Z
2021-11-08T02:49:09.000Z
mindspore/nn/optim/lamb.py
fufunoyu/mindspore
704e367ada35653e8144eb0528c714f4b0231508
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
mindspore/nn/optim/lamb.py
kungfu-ml/mindspore
3fa5dd4495f4071b701e7ff490b7085b8824aaaa
[ "Apache-2.0" ]
1
2021-05-10T03:30:36.000Z
2021-05-10T03:30:36.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
50.847826
120
0.630489
0a0e957c98248fd7f25af8cca4906ccde8e634c9
636
py
Python
convOldTorrentStore.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
39
2015-04-02T10:54:24.000Z
2021-12-17T04:01:37.000Z
convOldTorrentStore.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
null
null
null
convOldTorrentStore.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
21
2015-03-24T13:58:23.000Z
2021-06-08T11:26:24.000Z
import sys import gdbm import torrents import os import os.path import cPickle as pickle if __name__ == "__main__": torrentsDir = sys.argv[1] db = gdbm.open(sys.argv[2],'cf',0600) for root,dirs,files in os.walk(torrentsDir): for f in files: fpath = os.path.join(root,f) with open(fpath) as fin: torre...
24.461538
90
0.650943
23d4d34218811b39c1c60367d1e40666368ff267
3,264
py
Python
selia_managers/views/detail_views/data_collection.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
null
null
null
selia_managers/views/detail_views/data_collection.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
10
2020-04-15T17:54:57.000Z
2022-03-12T00:11:27.000Z
selia_managers/views/detail_views/data_collection.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
null
null
null
from django.views.generic.detail import SingleObjectMixin from django import forms from django.db.models import Count, Max from irekua_database.models import Collection from irekua_permissions.object_types.data_collections import ( collection_types as permissions) from selia_templates.views.detail_base import Seli...
39.325301
110
0.699755
469a418758aa353692009096f558526cfce085fe
2,510
py
Python
emol/emol/views/combatant/combatant.py
lrt512/emol
e1dd3462632a525c3b9701d4fd9a332d19c93b85
[ "MIT" ]
null
null
null
emol/emol/views/combatant/combatant.py
lrt512/emol
e1dd3462632a525c3b9701d4fd9a332d19c93b85
[ "MIT" ]
null
null
null
emol/emol/views/combatant/combatant.py
lrt512/emol
e1dd3462632a525c3b9701d4fd9a332d19c93b85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Combatant self-serve views.""" # standard library imports import uuid from datetime import datetime # third-party imports from flask import Blueprint, render_template, current_app from flask_login import current_user # application imports from emol.models import Combatant, Discipline, Upda...
28.522727
91
0.666534
810371e60ecd816bb2c450d4099885e58df2944f
12,263
py
Python
nipy/algorithms/statistics/tests/test_intrinsic_volumes.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
1
2016-03-08T15:01:06.000Z
2016-03-08T15:01:06.000Z
nipy/algorithms/statistics/tests/test_intrinsic_volumes.py
fabianp/nipy
40e89f3ca7f34df05631623807993026134e6de3
[ "BSD-3-Clause" ]
1
2015-09-09T07:49:57.000Z
2015-09-25T01:50:40.000Z
nipy/algorithms/statistics/tests/test_intrinsic_volumes.py
fabianp/nipy
40e89f3ca7f34df05631623807993026134e6de3
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import numpy as np import numpy.linalg as npl from .. import intvol, utils from nose.tools import assert_equal, assert_raises from numpy.testing import assert_array_equal, assert_almost_equal def symnor...
32.965054
79
0.567479
e14b747829bb6661dceff0a8c9e3134c6f87e6cd
6,033
py
Python
google/cloud/dialogflow_v2beta1/services/knowledge_bases/pagers.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
80
2020-05-19T20:54:47.000Z
2022-03-27T01:35:30.000Z
google/cloud/dialogflow_v2beta1/services/knowledge_bases/pagers.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
135
2020-12-10T00:33:13.000Z
2022-03-27T16:14:25.000Z
google/cloud/dialogflow_v2beta1/services/knowledge_bases/pagers.py
reichenbch/python-dialogflow
74a54c6fd9d6e03741206ff1e95939123362cab9
[ "Apache-2.0" ]
37
2020-12-12T15:09:15.000Z
2022-03-08T02:25:28.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.673077
91
0.688215
4b8c70fbeccec816347413be381b20b99570af6b
168
py
Python
text/fn.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
text/fn.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
text/fn.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
def fn(a,b): s=0 num=str(a) for i in range(1,b+1): s+=int(num*i) return str(s) a,b=input().split() s=fn(int(a),int(b)) print(s) print()
16.8
27
0.488095
adf16c21b37d2fc6c3344d2c1121e851454ede1e
79,087
py
Python
pyVmomi/PbmObjects.py
timgates42/pyvmomi
a2d5df0b57d7e359b220493c9c77d1635705ef12
[ "Apache-2.0" ]
1
2021-01-13T06:54:10.000Z
2021-01-13T06:54:10.000Z
pyVmomi/PbmObjects.py
timgates42/pyvmomi
a2d5df0b57d7e359b220493c9c77d1635705ef12
[ "Apache-2.0" ]
null
null
null
pyVmomi/PbmObjects.py
timgates42/pyvmomi
a2d5df0b57d7e359b220493c9c77d1635705ef12
[ "Apache-2.0" ]
null
null
null
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT ******* from .VmomiSupport import CreateDataType, CreateManagedType from .VmomiSupport import CreateEnumType from .VmomiSupport import AddVersion, AddVersionParent from .VmomiSupport import AddBreakingChangesInfo from .VmomiSupport import F_LINK, F_LINKABLE from .Vm...
105.168883
6,539
0.779724
2cee3fa56152e4e3c278b13b6e20c1a6bace6a87
3,427
py
Python
src/ramstk/models/programdb/opstress/record.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
26
2019-05-15T02:03:47.000Z
2022-02-21T07:28:11.000Z
src/ramstk/models/programdb/opstress/record.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
815
2019-05-10T12:31:52.000Z
2022-03-31T12:56:26.000Z
src/ramstk/models/programdb/opstress/record.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
9
2019-04-20T23:06:29.000Z
2022-01-24T21:21:04.000Z
# pylint: disable=duplicate-code # -*- coding: utf-8 -*- # # ramstk.models.programdb.RAMSTKOpStress.py is part of The RAMSTK Project # # All rights reserved. # Copyright 2007 - 2021 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com """RAMSTKOpStress Table.""" # Third Party Imports from sqlalchemy import Colum...
32.028037
88
0.635833
6984b6744108862504fd119540fd5ca7ff580e8e
4,326
py
Python
plugins/callback.py
ilhamr0f11/Media-Extractor-IRBot
85678cdb6b677f7cd436c2cbef0376a6c4066f61
[ "MIT" ]
1
2021-10-03T13:21:58.000Z
2021-10-03T13:21:58.000Z
plugins/callback.py
ilhamr0f11/Media-Extractor-IRBot
85678cdb6b677f7cd436c2cbef0376a6c4066f61
[ "MIT" ]
null
null
null
plugins/callback.py
ilhamr0f11/Media-Extractor-IRBot
85678cdb6b677f7cd436c2cbef0376a6c4066f61
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @trojanzhex from pyrogram import filters from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from config import Config from script import Script from helpers.progress import PRGRS from helpers.tool...
32.526316
144
0.567037
fc017a019ca1d48d54aab02e8250c196f0c94277
121,179
py
Python
pytests/tuqquery/tuq_UDF.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
pytests/tuqquery/tuq_UDF.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
pytests/tuqquery/tuq_UDF.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
from remote.remote_util import RemoteMachineShellConnection from .tuq import QueryTests import time from deepdiff import DeepDiff class QueryUDFTests(QueryTests): def setUp(self): super(QueryUDFTests, self).setUp() self.log.info("============== QueryUDFTests setup has started ==============") ...
59.227273
363
0.574968
f6be19b22ddf18ac096ad696cd25dc620006e01b
5,426
py
Python
ub/modules/covid.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
15
2020-12-13T17:37:05.000Z
2021-06-23T00:00:49.000Z
ub/modules/covid.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
2
2021-01-11T16:39:31.000Z
2021-01-25T22:35:28.000Z
ub/modules/covid.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
78
2020-12-13T17:52:51.000Z
2022-03-24T03:43:09.000Z
from datetime import datetime from covid import Covid covid = Covid(source="worldometers") from ub import CMD_HELP from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.account import UpdateNotifySettingsRequest from ub.javes_main.commands import bot, rekcah...
43.063492
138
0.621637
39018c4292fe239c33e00400ac1b5d8994f60633
5,938
py
Python
Tkinter-NoteBook/app_notebook.py
PratyushBasu/Learn-and-Work
57e4c2a06a2556b8db211bab3dbf1727b25405a9
[ "Apache-2.0" ]
null
null
null
Tkinter-NoteBook/app_notebook.py
PratyushBasu/Learn-and-Work
57e4c2a06a2556b8db211bab3dbf1727b25405a9
[ "Apache-2.0" ]
null
null
null
Tkinter-NoteBook/app_notebook.py
PratyushBasu/Learn-and-Work
57e4c2a06a2556b8db211bab3dbf1727b25405a9
[ "Apache-2.0" ]
null
null
null
import os import tkinter as tk from tkinter import ttk, filedialog, messagebox text_contents = dict() def check_for_changes(): current = get_text_widget() content = current.get("1.0", "end-1c") name = notebook.tab("current")["text"] if hash(content) != text_contents[str(current)]: ...
32.626374
170
0.656282
9b482baae981490240af2359aee110ccde0b3921
15,424
py
Python
mne/gui/_marker_gui.py
Okamille/mne-python
25df6b63ea3cc2eca1855fcafd8bfbcfd7199263
[ "BSD-3-Clause" ]
1
2020-11-05T21:30:15.000Z
2020-11-05T21:30:15.000Z
mne/gui/_marker_gui.py
Okamille/mne-python
25df6b63ea3cc2eca1855fcafd8bfbcfd7199263
[ "BSD-3-Clause" ]
2
2016-02-27T13:43:15.000Z
2018-07-18T19:44:45.000Z
mne/gui/_marker_gui.py
Okamille/mne-python
25df6b63ea3cc2eca1855fcafd8bfbcfd7199263
[ "BSD-3-Clause" ]
1
2017-03-05T20:44:07.000Z
2017-03-05T20:44:07.000Z
"""Mayavi/traits GUI for averaging two sets of KIT marker points.""" # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD (3-clause) import os import sys import numpy as np from mayavi.tools.mlab_scene_model import MlabSceneModel from pyface.api import confirm, error, FileDialog, OK, YES from ...
33.824561
79
0.565288
ac456eb4462138315ab3d0779f626a9d8c346023
1,077
py
Python
apps/agentcontroller/jumpscripts/extended/alerts/alert_cpu_core.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
apps/agentcontroller/jumpscripts/extended/alerts/alert_cpu_core.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
apps/agentcontroller/jumpscripts/extended/alerts/alert_cpu_core.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j descr = """ Check on average cpu """ organization = "jumpscale" author = "deboeckj@codescalers.com" license = "bsd" version = "1.0" period = 15*60 # always in sec startatboot = True order = 1 enable = True async = True log = False queue ='process' roles = ['master'] def action(): try: ...
25.642857
107
0.616527
4d51c8d8cf2e9b9fe594088a7ac3237f69db6402
120
py
Python
baekjoon/Python/10951.py
Lumia1108/TIL
fe2e233d6d05c7d04f50f688f6c168e4d6d4ce46
[ "MIT" ]
null
null
null
baekjoon/Python/10951.py
Lumia1108/TIL
fe2e233d6d05c7d04f50f688f6c168e4d6d4ce46
[ "MIT" ]
null
null
null
baekjoon/Python/10951.py
Lumia1108/TIL
fe2e233d6d05c7d04f50f688f6c168e4d6d4ce46
[ "MIT" ]
null
null
null
import sys while True: try: a, b = map(int, input().split()) print(a + b) except: break
15
40
0.475
92d21dca7b899407636831542f8e7558613eb690
359
py
Python
scrapySelector/demo1.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
null
null
null
scrapySelector/demo1.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
3
2021-09-08T01:11:16.000Z
2022-03-02T15:14:03.000Z
scrapySelector/demo1.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
1
2019-08-04T09:57:29.000Z
2019-08-04T09:57:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-06-19 22:13 # @Author : liupan # @Site : # @File : demo1.py # @Software: PyCharm from scrapy import Selector body= '<html><head><title>Hello World</title></head><body></body> </ html>' selector = Selector(text=body) title = selector.xpath('//title...
25.642857
75
0.637883
208bef308bf8ee7de3a1455aa127f3caf7b8f6df
1,097
py
Python
optimization_based_action_selection_performance.py
thomasvandewiel-sai/ros2_launch_test
97008e33ae9ec763fcbd72ce2bc09013a9e62618
[ "MIT" ]
null
null
null
optimization_based_action_selection_performance.py
thomasvandewiel-sai/ros2_launch_test
97008e33ae9ec763fcbd72ce2bc09013a9e62618
[ "MIT" ]
null
null
null
optimization_based_action_selection_performance.py
thomasvandewiel-sai/ros2_launch_test
97008e33ae9ec763fcbd72ce2bc09013a9e62618
[ "MIT" ]
null
null
null
import sys import pickle import numpy as np MAX_ALLOWED_COMPUTATION_TIME = 0 # ms MAX_ALLOWED_COMPUTATION_TIME_MEAN = 0 # ms MAX_ALLOWED_COMPUTATION_TIME_STD = 0 # ms MAX_ALLOWED_PREDICTION_ERROR = 0 # m MAX_ALLOWED_PREDICTION_ERROR_MEAN = 0 # m MAX_ALLOWED_PREDICTION_ERROR_STD = 0 # m def main(): # Load...
27.425
78
0.7165
e151f14c31e70cc75c59587453b145d6f787bf5c
2,331
py
Python
conversationinsights/policies/policy.py
osswangxining/conversationinsights-dialogue
07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9
[ "Apache-2.0" ]
8
2017-10-10T02:18:09.000Z
2019-12-16T15:14:13.000Z
conversationinsights/policies/policy.py
osswangxining/conversationinsights-dialogue
07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9
[ "Apache-2.0" ]
null
null
null
conversationinsights/policies/policy.py
osswangxining/conversationinsights-dialogue
07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9
[ "Apache-2.0" ]
2
2018-06-26T02:03:41.000Z
2018-08-06T10:54:46.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import numpy as np from builtins import object from numpy.core.records import ndarray from typing import Any from typing import List from typing import Op...
30.671053
78
0.692407
b269c085d0da05a3cf604f3e40cebdc546b1e26e
274
py
Python
exercicios/Lista1/Q12.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista1/Q12.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista1/Q12.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
#Leia uma distancia em milhas e apresente-a convertida em quilometros. #A formula de conversao eh K =M*1.61 , # sendo K a distancia em quilometros e M em milhas. m=float(input("Informe a distancia em milhas: ")) K=m*1.61 print(f"A distancia convertida em km eh {K}km/h")
30.444444
70
0.729927
4cca06d760c62de87601467ba3acb9a574f518de
8,821
py
Python
tests/milvus_python_test/conftest.py
bo-huang/milvus
a2e7a91964b2a86fd5d58beefea14734987e5cdf
[ "Apache-2.0" ]
1
2021-10-01T18:16:34.000Z
2021-10-01T18:16:34.000Z
tests/milvus_python_test/conftest.py
bo-huang/milvus
a2e7a91964b2a86fd5d58beefea14734987e5cdf
[ "Apache-2.0" ]
null
null
null
tests/milvus_python_test/conftest.py
bo-huang/milvus
a2e7a91964b2a86fd5d58beefea14734987e5cdf
[ "Apache-2.0" ]
2
2020-03-02T05:16:57.000Z
2020-03-04T06:05:55.000Z
import socket import pdb import logging import pytest from utils import gen_unique_str from milvus import Milvus, IndexType, MetricType from utils import * index_file_size = 10 def pytest_addoption(parser): parser.addoption("--ip", action="store", default="localhost") parser.addoption("--port", action="sto...
35.143426
76
0.668518
33fcefd0d5a91c79b77c614eddb5dd3ca6c61009
1,358
py
Python
05/31-32.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
05/31-32.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
05/31-32.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
import torch # norm ==> Returns the matrix norm or vector norm of a given tensor. # 默认是2-范数 # dime:可以指定维度上的范数 a = torch.full([8], 1, dtype=torch.float) b = a.view(2, 4) c = a.view(2, 2, 2) print(a.shape, b.shape, c.shape) print(a.norm(1), b.norm(1), c.norm(1)) print(a.norm(), b.norm(), c.norm()) print(b.norm(1, dim=1)...
26.627451
79
0.600147
53b007ad1ed5a2ce093b748f21f659ffdcdcbe81
37,473
py
Python
tensorflow/python/data/ops/iterator_ops.py
DwayneDuane/tensorflow
c90698124aa164e7683e3a9d03b69e9aa8461244
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/ops/iterator_ops.py
DwayneDuane/tensorflow
c90698124aa164e7683e3a9d03b69e9aa8461244
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/ops/iterator_ops.py
DwayneDuane/tensorflow
c90698124aa164e7683e3a9d03b69e9aa8461244
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.197699
112
0.709951
76a8a60088d85939709391d3943021659f46bb8c
405
py
Python
app/migrations/0036_auto_20201225_1958.py
ThebiggunSeeoil/app-cbre-exxon
efec395dca662132a19f882b0ff3dbb6318b3e51
[ "MIT" ]
null
null
null
app/migrations/0036_auto_20201225_1958.py
ThebiggunSeeoil/app-cbre-exxon
efec395dca662132a19f882b0ff3dbb6318b3e51
[ "MIT" ]
null
null
null
app/migrations/0036_auto_20201225_1958.py
ThebiggunSeeoil/app-cbre-exxon
efec395dca662132a19f882b0ff3dbb6318b3e51
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-12-25 12:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0035_auto_20201225_1940'), ] operations = [ migrations.AlterField( model_name='workfromgmail_new', name='tim...
21.315789
58
0.617284
9149b7574e1efd58b4c5e450c964e33b8c6e5137
1,068
py
Python
pyvisdk/do/tools_upgrade_cancelled.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/tools_upgrade_cancelled.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/tools_upgrade_cancelled.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def ToolsUpgradeCancelled(vim, *args, **kwargs): '''Thrown when tools install or upgrade ...
31.411765
124
0.61236
639460e05d96a544a16ada6989b9d97a717b2339
2,578
py
Python
src/netius/common/setup.py
timgates42/netius
c6fa76292be0367557518462e0b2bccd852b0d3d
[ "Apache-2.0" ]
107
2015-03-28T23:38:51.000Z
2021-12-20T14:42:45.000Z
src/netius/common/setup.py
timgates42/netius
c6fa76292be0367557518462e0b2bccd852b0d3d
[ "Apache-2.0" ]
25
2015-05-22T08:35:56.000Z
2021-12-26T04:42:14.000Z
src/netius/common/setup.py
timgates42/netius
c6fa76292be0367557518462e0b2bccd852b0d3d
[ "Apache-2.0" ]
11
2015-09-23T00:43:13.000Z
2021-12-26T03:19:36.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Netius System # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Netius System. # # Hive Netius System is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Foun...
31.439024
78
0.66059
444f0af05777270c2a87b79e74c7a06ab7816fba
2,100
py
Python
tests/TestBase.py
hasii2011/PyArcadeStarTrek
370edbb62f15f69322aa7f109d6d36ebf20cbe4a
[ "MIT" ]
1
2021-06-13T00:56:24.000Z
2021-06-13T00:56:24.000Z
tests/TestBase.py
hasii2011/PyArcadeStarTrek
370edbb62f15f69322aa7f109d6d36ebf20cbe4a
[ "MIT" ]
94
2021-04-16T20:34:10.000Z
2022-01-13T19:58:20.000Z
tests/TestBase.py
hasii2011/PyArcadeStarTrek
370edbb62f15f69322aa7f109d6d36ebf20cbe4a
[ "MIT" ]
null
null
null
import json import logging import logging.config from unittest import TestCase from pkg_resources import resource_filename from pytrek.GameState import GameState from pytrek.engine.GameEngine import GameEngine from pytrek.engine.Intelligence import Intelligence from pytrek.engine.devices.Devices import Devices fr...
29.166667
101
0.721429
de8e385b95612914e1d765ee02bd85540af440f9
5,259
py
Python
py/legacypipe/halos.py
legacysurvey/legacypipe
435928b03070533535ad56a712f47659bc557ba2
[ "BSD-3-Clause" ]
32
2015-08-25T00:25:23.000Z
2022-03-04T06:35:54.000Z
py/legacypipe/halos.py
legacysurvey/legacypipe
435928b03070533535ad56a712f47659bc557ba2
[ "BSD-3-Clause" ]
644
2015-07-08T16:26:28.000Z
2022-03-30T19:09:10.000Z
py/legacypipe/halos.py
legacysurvey/legacypipe
435928b03070533535ad56a712f47659bc557ba2
[ "BSD-3-Clause" ]
22
2015-08-24T18:27:36.000Z
2021-12-04T03:10:42.000Z
import numpy as np import logging logger = logging.getLogger('legacypipe.halos') # def info(*args): # from legacypipe.utils import log_info # log_info(logger, args) def debug(*args): from legacypipe.utils import log_debug log_debug(logger, args) def subtract_halos(tims, refs, bands, mp, plots, ps, mof...
38.955556
104
0.543639
e9a226c5d3fa761134e40a0c637f24273f8015ea
100
py
Python
tests/tests.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
tests/tests.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
tests/tests.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
from .test_admin_url import * from .content.test_new_menu_create import * from .core import * #NOQA
25
43
0.79
d46bfee361a72a73bef555bfd3a15b96e0d82bee
14,069
py
Python
MV3D_TF_release/lib/rpn_msr/proposal_target_layer_tf.py
ZiningWang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
52
2018-08-28T03:44:51.000Z
2022-03-23T16:00:14.000Z
MV3D_TF_release/lib/rpn_msr/proposal_target_layer_tf.py
weidezhang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
1
2019-06-25T01:32:35.000Z
2019-07-01T01:34:20.000Z
MV3D_TF_release/lib/rpn_msr/proposal_target_layer_tf.py
weidezhang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
20
2018-07-31T18:17:35.000Z
2021-07-09T08:42:06.000Z
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import yaml import numpy as np import numpy.random as n...
40.428161
125
0.680645
1aed481191e2e7aabc9a9beaae2c5440ebd3c1c3
14,922
py
Python
cnld/abstract.py
bdshieh/cnl-dyna
9013fa11cabb6ad51aaa385b44ef99cc43bf6a2b
[ "MIT" ]
3
2020-07-08T14:42:50.000Z
2021-11-12T06:11:15.000Z
cnld/abstract.py
bdshieh/cnl-dyna
9013fa11cabb6ad51aaa385b44ef99cc43bf6a2b
[ "MIT" ]
null
null
null
cnld/abstract.py
bdshieh/cnl-dyna
9013fa11cabb6ad51aaa385b44ef99cc43bf6a2b
[ "MIT" ]
null
null
null
''' Abstract representation and manipulation of CMUT and PMUT arrays. ''' import collections import inspect import json import math import sys from collections import OrderedDict from copy import copy import numpy as np from cnld import util from namedlist import FACTORY, namedlist __all__ = [ 'SquareCmutMembrane...
25.291525
87
0.607693
2f360cacc99413881b704e6c150accad2e5dde6c
13,391
py
Python
model/im_drive.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
model/im_drive.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
model/im_drive.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
# pylint: disable=C0103 """ This module includes a continuous-time model for an induction motor drive. The space vector models are implemented in stator coordinates, but this is not shown in the variable naming for simplicity. """ import numpy as np from helpers import abc2complex, complex2abc # %% class...
29.301969
79
0.532895
b4a238ad7c67c96e34517c1f9f1433d5e660ce66
27,937
py
Python
zest/server.py
kzinglzy/zest
98e24ff745740c206206cc6dc873a361933d374c
[ "Apache-2.0" ]
6
2016-09-08T13:13:08.000Z
2020-07-10T12:58:04.000Z
zest/server.py
Kzinglzy/zest
98e24ff745740c206206cc6dc873a361933d374c
[ "Apache-2.0" ]
null
null
null
zest/server.py
Kzinglzy/zest
98e24ff745740c206206cc6dc873a361933d374c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2015 by kzing. # # 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 app...
33.904126
79
0.580664
1e88dad312dbb9c5f04ea48c722bc6f2c5814c5e
3,610
py
Python
examples/model_compression/pp-minilm/data.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
1
2022-01-28T06:32:26.000Z
2022-01-28T06:32:26.000Z
examples/model_compression/pp-minilm/data.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
null
null
null
examples/model_compression/pp-minilm/data.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
1
2022-03-30T03:05:52.000Z
2022-03-30T03:05:52.000Z
# Copyright (c) 2021 PaddlePaddle 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 app...
39.23913
87
0.620499
77011e057b1d163b03027dc294fbc9e1531c7baf
771
py
Python
cifar_dataloader.py
KyleSuchenkai/ATTA
107fd6dc2549fb13e4f7720dfeeec8d968cc2733
[ "MIT" ]
27
2020-06-15T19:58:57.000Z
2022-02-13T02:41:02.000Z
cifar_dataloader.py
KyleSuchenkai/ATTA
107fd6dc2549fb13e4f7720dfeeec8d968cc2733
[ "MIT" ]
1
2021-06-21T05:02:40.000Z
2021-06-23T06:04:38.000Z
cifar_dataloader.py
KyleSuchenkai/ATTA
107fd6dc2549fb13e4f7720dfeeec8d968cc2733
[ "MIT" ]
4
2021-02-18T08:12:11.000Z
2022-03-22T19:47:26.000Z
""" This file loads the padded data of CIFAR10. """ import torchvision from torchvision import datasets, transforms import torch def load_pading_training_data(device): transform_padding = transforms.Compose([ transforms.Pad(padding=4), transforms.ToTensor(), ]) trainset = torchvision.datasets.CIFAR10(roo...
33.521739
113
0.71725
b7025c768cc58d61f5a440d4a9fe5c7cac9233ca
23,565
py
Python
tests/test_variants.py
ltalirz/conda-build
6d469fd5fadf20cc4829088b3a4ccd58a71b85c9
[ "BSD-3-Clause" ]
1
2021-09-13T20:18:39.000Z
2021-09-13T20:18:39.000Z
tests/test_variants.py
ltalirz/conda-build
6d469fd5fadf20cc4829088b3a4ccd58a71b85c9
[ "BSD-3-Clause" ]
4
2019-12-09T20:05:06.000Z
2020-01-07T13:44:41.000Z
tests/test_variants.py
ltalirz/conda-build
6d469fd5fadf20cc4829088b3a4ccd58a71b85c9
[ "BSD-3-Clause" ]
1
2020-03-26T18:09:17.000Z
2020-03-26T18:09:17.000Z
from collections import OrderedDict import os import json import re import sys import pytest import yaml from conda_build import api, exceptions, variants from conda_build.utils import package_has_file, FileNotFoundError thisdir = os.path.dirname(__file__) recipe_dir = os.path.join(thisdir, 'test-recipes', 'variants...
45.404624
126
0.669467
62088758be42f0601243fa73d8f67b4af7332d82
2,983
py
Python
artwork_redirect/config.py
metabrainz/coverart_redirect
90ff5c7b57df4c37a6c03fd01dd9f04e76ed5bb8
[ "MIT" ]
10
2018-02-09T10:47:50.000Z
2020-11-03T23:23:46.000Z
artwork_redirect/config.py
metabrainz/coverart_redirect
90ff5c7b57df4c37a6c03fd01dd9f04e76ed5bb8
[ "MIT" ]
16
2015-10-08T20:31:40.000Z
2019-10-15T09:45:05.000Z
artwork_redirect/config.py
metabrainz/coverart_redirect
90ff5c7b57df4c37a6c03fd01dd9f04e76ed5bb8
[ "MIT" ]
10
2015-03-13T21:56:10.000Z
2018-08-01T19:51:06.000Z
# Copyright (C) 2011 Lukas Lalinsky # Distributed under the MIT license, see the LICENSE file for details. import configparser from os import path from sqlalchemy.engine.url import URL class S3Config(object): def __init__(self): self.prefix = None def read(self, parser, section): self.prefix...
29.245098
85
0.614817
9254fc52b6f4e7e6cbe02947a3d7a7c34977fcab
6,280
py
Python
function/python/brightics/function/regression/mlp_regression.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
1
2020-02-08T10:56:29.000Z
2020-02-08T10:56:29.000Z
function/python/brightics/function/regression/mlp_regression.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/regression/mlp_regression.py
sharon1321/studio
c5ce7f6db5503f5020b2aa0c6f2e6acfc61c90c5
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Samsung SDS 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 ...
40.25641
278
0.715764
f1db8a19cbe26867ed904333a8b5998a11261b24
8,128
py
Python
src/panorama/panorama_ui.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
src/panorama/panorama_ui.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
src/panorama/panorama_ui.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import (QLabel, QPushButton, QComboBox, QLineEdit, QRadioButton, QListWidget, QDialogButtonBox, QGridLayout, QVBoxLayout, QHBoxLayout, QSizePolicy) from PyQt5.QtCore import Qt, QMetaObject from PyQt5.QtGui import QIcon, QPixmap from src.operations.form_ui import FormUI...
42.554974
118
0.682948
eb02a7cb809bc453dae916529b81dcfb0ba88861
5,607
py
Python
influxdb_client/domain/check_base_links.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
380
2019-09-19T20:20:10.000Z
2022-03-31T12:59:33.000Z
influxdb_client/domain/check_base_links.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
362
2019-09-16T11:53:29.000Z
2022-03-29T03:11:59.000Z
influxdb_client/domain/check_base_links.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
130
2019-09-20T08:02:35.000Z
2022-03-30T16:44:45.000Z
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class CheckBaseLinks(...
25.256757
120
0.551454
7aa4cfe6812e4bfbb2513a1d6cd8a08747d4b026
2,177
py
Python
python/src/nnabla/backward_function/patch_correlation.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/backward_function/patch_correlation.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "Apache-2.0" ]
1
2020-11-09T07:33:29.000Z
2020-11-09T07:33:29.000Z
python/src/nnabla/backward_function/patch_correlation.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "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.192982
88
0.672944
6b09abe15eacb69fdf3dceb732af7faf21156ea8
3,467
py
Python
core/management/commands/load_workers.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
2
2020-03-02T17:29:14.000Z
2020-05-28T13:19:49.000Z
core/management/commands/load_workers.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
88
2020-02-17T09:46:57.000Z
2022-03-12T00:24:32.000Z
core/management/commands/load_workers.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
1
2020-04-17T15:56:51.000Z
2020-04-17T15:56:51.000Z
import datetime from time import sleep from django.core.management import BaseCommand from djutils.management.commands import add_date_from_to_arguments, process_date_from_to_options from django.utils.timezone import now from swutils.date import iso_to_datetime import mis.worker from core import models class Comman...
32.707547
96
0.522065
0e4f4a8834be550b6c4adada0b1e92a55d63a98b
5,590
py
Python
biobb_vs/fpocket/common.py
bioexcel/biobb_vs
6f492d317b3783e6fd8468ca62883d1db7fa4bc6
[ "Apache-2.0" ]
1
2020-05-05T13:59:02.000Z
2020-05-05T13:59:02.000Z
biobb_vs/fpocket/common.py
bioexcel/biobb_vs
6f492d317b3783e6fd8468ca62883d1db7fa4bc6
[ "Apache-2.0" ]
4
2021-01-19T15:46:07.000Z
2021-12-09T10:22:31.000Z
biobb_vs/fpocket/common.py
bioexcel/biobb_vs
6f492d317b3783e6fd8468ca62883d1db7fa4bc6
[ "Apache-2.0" ]
null
null
null
""" Common functions for package biobb_vs.fpocket """ from pathlib import Path, PurePath import shutil import json import re from biobb_common.tools import file_utils as fu # CHECK PARAMETERS def check_input_path(path, argument, out_log, classname): """ Checks input file """ if not Path(path).exists(): fu.log(cl...
37.516779
126
0.705903
631ff91e70a79d13fdcfedffd99caaec9d8e6825
566
py
Python
python_pce.py
watal/python-pce
a633633f8bab3c0df77715c7fa8a151c9b8c54eb
[ "MIT" ]
null
null
null
python_pce.py
watal/python-pce
a633633f8bab3c0df77715c7fa8a151c9b8c54eb
[ "MIT" ]
null
null
null
python_pce.py
watal/python-pce
a633633f8bab3c0df77715c7fa8a151c9b8c54eb
[ "MIT" ]
1
2020-08-20T12:14:18.000Z
2020-08-20T12:14:18.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import threading import linkstate_socksrv import segmentlist_socksrv import argparse def main(): '''simple PCE for FRRouting''' # Receive linkstate thread_ls = threading.Thread(target=linkstate_socksrv.lsocket) # Receive segment list thread_sl = threa...
18.866667
68
0.708481
4c6f5b5c81844fc16e1e242f5fa6037cfb8330e6
120
py
Python
03Aula09-09/ex03.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
2
2020-09-09T12:50:57.000Z
2020-09-09T12:56:02.000Z
03Aula09-09/ex03.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
null
null
null
03Aula09-09/ex03.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
null
null
null
tabu = int(input('Escolha o número da tabuada: ')) c=0 while c <= 10: print(f" {tabu} x {c} = {tabu*c}") c+=1
17.142857
50
0.533333
22e19e32effd8ea52f3480015115f4d03135a0ef
34,251
py
Python
util/generate_build_files.py
chinshou/boringssl
a12a2497ffc95a4f75e50d6d7e861e7bee7b8a5e
[ "MIT" ]
11
2020-06-24T06:20:13.000Z
2021-11-17T12:07:48.000Z
util/generate_build_files.py
scw00/boringssl
0c30649ba676e73a4bbb449ee684ccf2d452f7f6
[ "MIT" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
util/generate_build_files.py
scw00/boringssl
0c30649ba676e73a4bbb449ee684ccf2d452f7f6
[ "MIT" ]
4
2021-02-19T09:48:47.000Z
2022-03-13T17:29:35.000Z
# coding=utf8 # Copyright (c) 2015, Google Inc. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
34.562059
112
0.663105
ad42a49d0502181c322ef13600a53a3160718798
2,613
py
Python
service/views/error.py
thetestgame/LinkerIO
ef9af2b8f4552dd3b55270271cc1ea2144d9c410
[ "MIT" ]
1
2020-11-03T11:38:38.000Z
2020-11-03T11:38:38.000Z
service/views/error.py
thetestgame/LinkerIO
ef9af2b8f4552dd3b55270271cc1ea2144d9c410
[ "MIT" ]
null
null
null
service/views/error.py
thetestgame/LinkerIO
ef9af2b8f4552dd3b55270271cc1ea2144d9c410
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 Jordan Maxwell Written 10/20/2019 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
27.797872
78
0.716035
3188841a165b92452505051d65114c30083daefa
3,237
py
Python
proteingraph/resi_atoms.py
ericmjl/protein-interaction-network
eba38bc2054b1017500525f78ed0564cce145285
[ "MIT" ]
35
2016-03-11T17:07:07.000Z
2022-02-10T06:53:52.000Z
proteingraph/resi_atoms.py
TopBang/protein-interaction-network
e4920351fced4acec18867f61b8f53b5ef5fb65a
[ "MIT" ]
179
2018-09-26T04:58:52.000Z
2022-03-14T15:45:29.000Z
proteingraph/resi_atoms.py
TopBang/protein-interaction-network
e4920351fced4acec18867f61b8f53b5ef5fb65a
[ "MIT" ]
19
2017-10-22T01:56:44.000Z
2021-11-01T05:19:46.000Z
""" Author: Eric J. Ma Purpose: This is a set of utility variables and functions that can be used across the PIN project. """ import numpy as np from sklearn.preprocessing import StandardScaler BACKBONE_ATOMS = ["N", "CA", "C", "O"] AMINO_ACIDS = [ "A", "B", "C", "D", "E", "F", "G", ...
17.883978
78
0.505097
af0deae8038271d3708ad75137e5cb9f2f706a3b
2,560
py
Python
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/statsbeat_metrics/__init__.py
mpomarole/opencensus-python
5aba7bcc720b63d6349b10bc4696702da0aed3f6
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/statsbeat_metrics/__init__.py
mpomarole/opencensus-python
5aba7bcc720b63d6349b10bc4696702da0aed3f6
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/statsbeat_metrics/__init__.py
mpomarole/opencensus-python
5aba7bcc720b63d6349b10bc4696702da0aed3f6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, OpenCensus 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 w...
38.208955
79
0.701953
f006258b0b1d18c02a349232d2267f4c12d25d63
1,168
py
Python
BackEnd/api/endpoints/database/evaluation.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
1
2021-05-02T14:24:38.000Z
2021-05-02T14:24:38.000Z
BackEnd/api/endpoints/database/evaluation.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
1
2022-02-10T00:48:47.000Z
2022-02-10T00:48:47.000Z
BackEnd/api/endpoints/database/evaluation.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
null
null
null
from flask import request from flask_restplus import Namespace, Resource, fields from api.utils import validator from api.service.evaluation import add_evaluation api = Namespace('evaluations', description='Evaluation operations') evaluation_schema = api.model('Evaluation', { 'user_id': fields.Integer(required=T...
40.275862
111
0.742295
e27dba09695962f0f2d29c30f01c4f536b91effc
2,632
py
Python
models.py
Silve1ra/casting-agency-api
075ac2d465972b84a95fbd3e0eb0823ec33a867c
[ "MIT" ]
null
null
null
models.py
Silve1ra/casting-agency-api
075ac2d465972b84a95fbd3e0eb0823ec33a867c
[ "MIT" ]
null
null
null
models.py
Silve1ra/casting-agency-api
075ac2d465972b84a95fbd3e0eb0823ec33a867c
[ "MIT" ]
null
null
null
import os import sys from sqlalchemy import Column, String, Integer from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate # Db config # ---------------------------------------------------------------- database_path = os.environ['DATABASE_URL_HEROKU'] db = SQLAlchemy() # Setup db # -----------...
23.5
67
0.518237
c56d854bbfb382d4d61acf8bdd87f7c4ef4941d1
12,411
py
Python
tools/c7n_mailer/tests/test_email.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
1
2019-08-25T12:05:20.000Z
2019-08-25T12:05:20.000Z
tools/c7n_mailer/tests/test_email.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
null
null
null
tools/c7n_mailer/tests/test_email.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
41.508361
99
0.639755
f13ca0537ba7ca6ef576bbb61ba4d6e5e79d4823
2,533
py
Python
tests/test_packages/test_protocols/test_gym.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_gym.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
tests/test_packages/test_protocols/test_gym.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
36.185714
92
0.659692
e28f64b3c251ab8ac427dee074d380addb2f630b
8,983
py
Python
efficientdet/object_detection/argmax_matcher.py
Rednickle/automl
2aa620b06cc2645a94d2eb1ea37154926980c856
[ "Apache-2.0" ]
7
2020-04-07T14:24:49.000Z
2020-09-27T08:48:15.000Z
efficientdet/object_detection/argmax_matcher.py
aaryanMontana/automl
3614751749a21ca2fcb299b60238c6651ff51125
[ "Apache-2.0" ]
null
null
null
efficientdet/object_detection/argmax_matcher.py
aaryanMontana/automl
3614751749a21ca2fcb299b60238c6651ff51125
[ "Apache-2.0" ]
1
2020-10-30T10:08:40.000Z
2020-10-30T10:08:40.000Z
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
45.140704
80
0.672159
1a0d57b295046f9d80af12b63b22aad221f8a7b5
2,445
py
Python
web/views/usuarios.py
ESEGroup/Paraguai
42de0a15b7a31d470803e5f88d15e83f93c0a467
[ "Apache-2.0" ]
6
2016-11-08T16:08:48.000Z
2017-03-05T20:48:41.000Z
web/views/usuarios.py
bamorim/eel873-final-assignment
42de0a15b7a31d470803e5f88d15e83f93c0a467
[ "Apache-2.0" ]
39
2016-11-13T00:36:49.000Z
2018-05-20T16:40:15.000Z
web/views/usuarios.py
bamorim/eel873-final-assignment
42de0a15b7a31d470803e5f88d15e83f93c0a467
[ "Apache-2.0" ]
3
2016-11-08T22:33:54.000Z
2017-07-23T21:07:14.000Z
from flask import Blueprint, render_template, current_app, request, url_for, redirect from domain.usuario import Usuario, DTOUsuario from domain.usuario.nivel_acesso import * from web.autenticacao import requer_usuario from web.autorizacao import requer_acesso view_usuarios = Blueprint('usuarios', __name__) niveisAce...
33.493151
122
0.733742
7941355a76edd9e4bff4988571bb3a5d0068a242
33,242
py
Python
rally_openstack/task/scenarios/neutron/utils.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/neutron/utils.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/neutron/utils.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Intel Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.430058
79
0.641357
c9a3ce6cfae9d5790684d4aa0ab25d246678a3fd
7,079
py
Python
Classes/Unit.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Classes/Unit.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Classes/Unit.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Warning : this file has been generated, you shouldn't edit it""" from os import linesep from pyleecan.Classes.check import check_init_dict, check_var, raise_ from pyleecan.Functions.save import save from pyleecan.Classes.frozen import FrozenClass # Import all class method # Try/catch to rem...
31.602679
88
0.608137
79cfba96f08b36e913e2388c099fe992cd6f1d96
7,097
py
Python
ptf_nn/ptf_nn_test/test.py
linarnan/ptf
83444198f295a6fc8486b095379f67d8f7c25ad6
[ "Apache-2.0" ]
1
2021-09-23T05:52:43.000Z
2021-09-23T05:52:43.000Z
ptf_nn/ptf_nn_test/test.py
linarnan/ptf
83444198f295a6fc8486b095379f67d8f7c25ad6
[ "Apache-2.0" ]
1
2020-03-07T18:01:02.000Z
2020-03-07T18:01:02.000Z
ptf_nn/ptf_nn_test/test.py
linarnan/ptf
83444198f295a6fc8486b095379f67d8f7c25ad6
[ "Apache-2.0" ]
1
2020-10-26T18:56:26.000Z
2020-10-26T18:56:26.000Z
import ptf from ptf.base_tests import BaseTest from ptf import config import ptf.testutils as testutils class DataplaneBaseTest(BaseTest): def __init__(self): BaseTest.__init__(self) def setUp(self): self.dataplane = ptf.dataplane_instance self.dataplane.flush() if config["log_...
34.120192
84
0.629421
9ca6537a821949e2a0d5540a56eba2e4ab31762d
339
py
Python
pages/migrations/0002_auto_20190502_1726.py
deejungx/goalza
c9ec93aad13228bccd9f185cfac6ff9e1fc1994a
[ "MIT" ]
1
2019-05-04T11:26:14.000Z
2019-05-04T11:26:14.000Z
pages/migrations/0002_auto_20190502_1726.py
deejungx/goalza
c9ec93aad13228bccd9f185cfac6ff9e1fc1994a
[ "MIT" ]
null
null
null
pages/migrations/0002_auto_20190502_1726.py
deejungx/goalza
c9ec93aad13228bccd9f185cfac6ff9e1fc1994a
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-05-02 17:26 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pages', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='ground', options={'ordering': ['ground_number']}...
18.833333
52
0.584071
b746217733170e4488665c4fe20c360b07e9d5a1
28,650
py
Python
dev/models.py
mariakesa/UdacityMachineLearningEngineerNanoDegree
9909515186a7233c46163971b579a862f8151244
[ "Apache-2.0" ]
null
null
null
dev/models.py
mariakesa/UdacityMachineLearningEngineerNanoDegree
9909515186a7233c46163971b579a862f8151244
[ "Apache-2.0" ]
null
null
null
dev/models.py
mariakesa/UdacityMachineLearningEngineerNanoDegree
9909515186a7233c46163971b579a862f8151244
[ "Apache-2.0" ]
null
null
null
""" This work modifies code from the pl_bolts library. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall ...
39.736477
131
0.657417
ddfd4b6f561e22d172971db77605315cb11b4875
3,217
py
Python
angle_dep_analysis_bin.py
acere/NCD-for-quantum-correlations
dfe7c661ff07d52bd7760d8676281d8c4e7d9722
[ "MIT" ]
null
null
null
angle_dep_analysis_bin.py
acere/NCD-for-quantum-correlations
dfe7c661ff07d52bd7760d8676281d8c4e7d9722
[ "MIT" ]
null
null
null
angle_dep_analysis_bin.py
acere/NCD-for-quantum-correlations
dfe7c661ff07d52bd7760d8676281d8c4e7d9722
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Script to evaluate the NCDs for the violation versus separation angle measurement January 21, 2015 Author: Alessandro Cere, Centre for Quantum Technologies, National University of Singapore """ import glob from bit_compression_analysis import * angles = [x / 100. fo...
38.759036
70
0.56761
f8273dca42debb5e8ab0b05251a5b9b1a1fbe63a
135
py
Python
plugins/robothor_plugin/robothor_constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
1
2020-09-10T13:09:14.000Z
2020-09-10T13:09:14.000Z
plugins/robothor_plugin/robothor_constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
null
null
null
plugins/robothor_plugin/robothor_constants.py
mattdeitke/allenact-1
70f106b32a38424e862399a76d84f607838063be
[ "MIT" ]
null
null
null
MOVE_AHEAD = "MoveAhead" ROTATE_LEFT = "RotateLeft" ROTATE_RIGHT = "RotateRight" LOOK_DOWN = "LookDown" LOOK_UP = "LookUp" END = "End"
19.285714
28
0.733333
3f11057addcd621881ddd7596a5005c9c5bbf81c
768
py
Python
Misc/DTE2509/Oblig3/Classes/MyDb.py
Unicron2k/dte_bsc
1703c6e57e9ceec2dcce3ec6b1b363bf7147536d
[ "MIT" ]
null
null
null
Misc/DTE2509/Oblig3/Classes/MyDb.py
Unicron2k/dte_bsc
1703c6e57e9ceec2dcce3ec6b1b363bf7147536d
[ "MIT" ]
null
null
null
Misc/DTE2509/Oblig3/Classes/MyDb.py
Unicron2k/dte_bsc
1703c6e57e9ceec2dcce3ec6b1b363bf7147536d
[ "MIT" ]
1
2021-12-01T17:19:06.000Z
2021-12-01T17:19:06.000Z
import mysql.connector class MyDb: def __init__(self) -> None: dbconfig = {'host': 'kark.uit.no', 'user': 'stud_v19_eriksen', 'password': 'ThisismyKarkPassword1!$', 'database': 'stud_v19_eriksen',} self.configuration = dbconfig def ...
28.444444
65
0.579427
b9ad97a2db5efae921ed5767334fbc638fd17b29
5,053
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/running_config/get.py
wilbeacham85/genielibs
519da71e3956b86d4211d8649667c0d931dd2715
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/running_config/get.py
wilbeacham85/genielibs
519da71e3956b86d4211d8649667c0d931dd2715
[ "Apache-2.0" ]
1
2020-08-01T00:59:29.000Z
2020-08-01T00:59:32.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/running_config/get.py
jeaubin/genielibs
b4c9c4c0e7b85a7bef94ab77cc477a1c8592a0cb
[ "Apache-2.0" ]
null
null
null
"""Utility type functions that do not fit into another category""" # Python import logging import re # unicon from unicon.core.errors import SubCommandFailure # Running-Config from genie.libs.sdk.apis.utils import get_config_dict log = logging.getLogger(__name__) def search_running_config(device, o...
27.02139
82
0.579458
a641df2deac1c19f7e427d315d80979c571eba2b
1,555
py
Python
getting_personality_profile_tweet.py
samshad/Stack-Twitter-Big5
0716503dc2992ed53dca3730bcea0adef5e15dd2
[ "MIT" ]
null
null
null
getting_personality_profile_tweet.py
samshad/Stack-Twitter-Big5
0716503dc2992ed53dca3730bcea0adef5e15dd2
[ "MIT" ]
null
null
null
getting_personality_profile_tweet.py
samshad/Stack-Twitter-Big5
0716503dc2992ed53dca3730bcea0adef5e15dd2
[ "MIT" ]
null
null
null
from ibm_watson import PersonalityInsightsV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator import json import pandas as pd #personality_insights = PersonalityInsightsV3(version="2017-10-13", iam_apikey='F91VJPHvze7_bD17qLwfvZtLvd-ij9jGwG7oAaiLEyMp', url='https://gateway.watsonplatform.net/personality...
34.555556
193
0.720257
9a2127d144d6bc331540fa83d1d21202e2f14163
7,392
py
Python
tests/python/pants_test/backend/python/tasks/test_interpreter_selection_integration.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks/test_interpreter_selection_integration.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks/test_interpreter_selection_integration.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import glob import os import subprocess from pex.executor import Executor from pex.interpreter import PythonInterpreter from pants.testutil.interpreter_selection_utils import ( PY_3, ...
38.300518
98
0.696293
af22e1059de4204cf3f1ae2c777dba9417a01543
735
py
Python
aws_elb_policies/aws_application_load_balancer_web_acl.py
designing-penguin/panther-analysis
26034cea4504f43227f8d3789225f6ca7b35dfe0
[ "Apache-2.0" ]
1
2020-10-21T08:14:49.000Z
2020-10-21T08:14:49.000Z
aws_elb_policies/aws_application_load_balancer_web_acl.py
designing-penguin/panther-analysis
26034cea4504f43227f8d3789225f6ca7b35dfe0
[ "Apache-2.0" ]
null
null
null
aws_elb_policies/aws_application_load_balancer_web_acl.py
designing-penguin/panther-analysis
26034cea4504f43227f8d3789225f6ca7b35dfe0
[ "Apache-2.0" ]
null
null
null
# MAPPINGS is a dictionary where the Key is an application load balancer ARN, and the # Value is a WAF web ACL ID. For each Load Balancer ARN present in MAPPINGS, # this rule verifies that the load balancer has the associated Web ACL MAPPINGS = { "TEST_LOAD_BALANCER_ARN": "TEST_WAF_WEB_ACL_ID", } def policy(resou...
35
85
0.714286
53012b7f8657db5f38f1856c47074f066cb2620d
14,188
py
Python
moto/kms/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
null
null
null
moto/kms/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
null
null
null
moto/kms/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import base64 import json import re import six from moto.core.responses import BaseResponse from .models import kms_backends from .exceptions import NotFoundException, ValidationException, AlreadyExistsException, NotAuthorizedException reserved_aliases = [ 'alias/aws/ebs',...
40.770115
124
0.607697
b819a9a05188ac717b0ad0158248386f61b10ce0
33,283
py
Python
app/create_db.py
akram/haproxy-wi
5f27f86df07e9392036805c2a79134e9a140f948
[ "Apache-2.0" ]
862
2018-04-10T03:53:03.000Z
2021-05-01T02:05:44.000Z
app/create_db.py
akram/haproxy-wi
5f27f86df07e9392036805c2a79134e9a140f948
[ "Apache-2.0" ]
250
2018-04-19T02:59:34.000Z
2021-04-30T19:08:15.000Z
app/create_db.py
akram/haproxy-wi
5f27f86df07e9392036805c2a79134e9a140f948
[ "Apache-2.0" ]
184
2018-02-10T09:33:38.000Z
2021-04-29T14:38:47.000Z
#!/usr/bin/env python3 import distro from sql import out_error from db_model import * from funct import check_ver def default_values(): if distro.id() == 'ubuntu': apache_dir = 'apache2' else: apache_dir = 'httpd' data_source = [ {'param': 'time_zone', 'value': 'UTC', 'section': 'main', 'desc': 'Time Zone', ...
35.520811
177
0.605354
201059ee54ea78bfa1af3322015f70ba066fb9bc
1,872
py
Python
cycle_2020/management/commands/full_load_from_rss_2020.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
17
2018-03-27T15:09:58.000Z
2020-05-13T11:32:43.000Z
cycle_2020/management/commands/full_load_from_rss_2020.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
59
2018-03-21T17:08:15.000Z
2021-12-13T19:47:37.000Z
cycle_2020/management/commands/full_load_from_rss_2020.py
RobBickel/nyt-fec
802df867c3b31fff8e922be00bab6f40a5db2d00
[ "Apache-2.0" ]
11
2018-09-11T23:18:32.000Z
2021-12-15T08:43:58.000Z
import pytz import datetime import os import requests import csv import process_filing import time import traceback import sys from cycle_2020.models import * from cycle_2020.utils import loader from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): def add_arguments(self,...
28.8
168
0.612179
761b7a56d5d2c7051eb7a49757ed1180133073d9
562
py
Python
Ch06_Code/URL.py
arifmudi/Python-GUI-Programming-Cookbook-Third-Edition
942c151a62ef422bb6fdd15b4b141a07c699cb9a
[ "MIT" ]
68
2019-08-23T10:54:38.000Z
2022-03-09T20:21:39.000Z
Ch06_Code/URL.py
arifmudi/Python-GUI-Programming-Cookbook-Third-Edition
942c151a62ef422bb6fdd15b4b141a07c699cb9a
[ "MIT" ]
null
null
null
Ch06_Code/URL.py
arifmudi/Python-GUI-Programming-Cookbook-Third-Edition
942c151a62ef422bb6fdd15b4b141a07c699cb9a
[ "MIT" ]
46
2019-09-03T18:04:29.000Z
2022-03-30T01:06:52.000Z
''' Created on May 28, 2019 Ch06 @author: Burkhard A. Meier ''' from urllib.request import urlopen link = 'http://python.org/' def get_html(): try: http_rsp = urlopen(link) print(http_rsp) html = http_rsp.read() print(html) html_decoded = html.decode() ...
22.48
62
0.521352
2ba8576809efac0455f734f4562586fe290c9708
1,616
py
Python
tgbot/handlers/utils/info.py
rustamwho/tgbot-django-rentcars
ce834b20487b6a222e3791ab9633ffd0f1bb41bf
[ "Apache-2.0" ]
null
null
null
tgbot/handlers/utils/info.py
rustamwho/tgbot-django-rentcars
ce834b20487b6a222e3791ab9633ffd0f1bb41bf
[ "Apache-2.0" ]
null
null
null
tgbot/handlers/utils/info.py
rustamwho/tgbot-django-rentcars
ce834b20487b6a222e3791ab9633ffd0f1bb41bf
[ "Apache-2.0" ]
null
null
null
from functools import wraps from typing import Dict, Callable import telegram from telegram import Update def send_typing_action(func: Callable): """Sends typing action while processing func command.""" @wraps(func) def command_func(update, context, *args, **kwargs): context.bot.send_chat_action...
33.666667
78
0.654703
819045e58f8b28cadcabcf57c4bb14a1be88d8e9
4,996
py
Python
src/persontitles/academic_german.py
0LL13/persontitles
fcba08e6a4921813972bc3997caf0e805b0268cd
[ "MIT" ]
null
null
null
src/persontitles/academic_german.py
0LL13/persontitles
fcba08e6a4921813972bc3997caf0e805b0268cd
[ "MIT" ]
null
null
null
src/persontitles/academic_german.py
0LL13/persontitles
fcba08e6a4921813972bc3997caf0e805b0268cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # academic_german.py """Collection of German academic degrees combining wiki and drtitel.""" import os import sys import re PACKAGE_PARENT = '..' SCRIPT_DIR = os.path.dirname( os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))), ) # isort:ski...
36.202899
118
0.638511
06dbf748b1ab46020f113b6b75de56300165fe13
10,779
py
Python
optimus/engines/base/set.py
ironmussa/Optimus
fbaea6e0957f0bc016280a85ff021904faac20c5
[ "Apache-2.0" ]
1,045
2017-07-17T17:59:46.000Z
2021-06-15T07:06:48.000Z
optimus/engines/base/set.py
ironmussa/Optimus
fbaea6e0957f0bc016280a85ff021904faac20c5
[ "Apache-2.0" ]
955
2017-07-14T15:47:58.000Z
2021-05-27T14:16:24.000Z
optimus/engines/base/set.py
ironmussa/Optimus
fbaea6e0957f0bc016280a85ff021904faac20c5
[ "Apache-2.0" ]
226
2017-08-04T20:41:33.000Z
2021-05-21T08:28:33.000Z
from typing import Callable from optimus.helpers.types import * class BaseSet(): """Base class for all set implementations""" def __init__(self, root: 'DataFrameType'): self.root = root def __call__(self, cols=None, value=None, default=None, args=[], where=None): return self.root.cols.s...
66.128834
201
0.725485
dd54d8201044ee5c498d44b86f60a93dee1e1542
2,235
py
Python
Python_Arcade/template-master/source_code/main.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
1
2021-10-16T16:22:14.000Z
2021-10-16T16:22:14.000Z
Python_Arcade/template-master/source_code/main.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
Python_Arcade/template-master/source_code/main.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
""" Starting Template """ import arcade SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 SCREEN_TITLE = "Starting Template" class MyGame(arcade.Window): """ Main application class. NOTE: Go ahead and delete the methods you don't need. If you do need a method, delete the 'pass' and replace it with your ow...
23.526316
80
0.597315
e5aeebcf62d2a734004737d19313a04ffe4423fa
4,260
py
Python
Main_Production/Create_Music.py
EricCacciavillani/LyreBird
858657faef39d1adcba19ff0213210ba490b4afa
[ "MIT" ]
1
2019-05-04T02:34:20.000Z
2019-05-04T02:34:20.000Z
Main_Production/Create_Music.py
EricCacciavillani/LyreBird
858657faef39d1adcba19ff0213210ba490b4afa
[ "MIT" ]
null
null
null
Main_Production/Create_Music.py
EricCacciavillani/LyreBird
858657faef39d1adcba19ff0213210ba490b4afa
[ "MIT" ]
1
2019-04-04T19:14:09.000Z
2019-04-04T19:14:09.000Z
import sys sys.path.append('..') from Shared_Files.Constants import * from Shared_Files.Global_Util import * import pickle import numpy from music21 import instrument, note, stream, chord from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import LSTM ...
30
85
0.667371
30c4460f9d59f0f705b4a4d2b4052679a5f42291
857
py
Python
tests/e2e/process_model/main.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
tests/e2e/process_model/main.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
tests/e2e/process_model/main.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from os import path from tempfile import NamedTemporaryFile import test_utils.utils as utils SCRIPT_PATH = path.dirname(path.realpath(__file__)) temp_file = NamedTemporaryFile() site = "bucharest" date = "2020-10-22" instrument = "model" source_data = [ ("eb176ca3-374e-471c...
26.78125
89
0.71762
a95646fa3083150c724bea5154efed7af61fd654
1,053
py
Python
results/pretty_graphs.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
42
2017-01-12T13:59:23.000Z
2022-03-01T01:44:12.000Z
results/pretty_graphs.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
3
2019-05-24T21:02:51.000Z
2019-11-15T15:36:17.000Z
results/pretty_graphs.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
20
2017-01-12T23:07:10.000Z
2021-08-11T09:13:50.000Z
import matplotlib.pyplot as plt from matplotlib import rcParams import pickle rcParams.update({'figure.autolayout': True}) plt.rcParams.update({'font.size': 22}) """ # # Medical # PLOT_LABEL = 'a' for context in [0, 26, 4, 1]: filename = 'medical_reg_plots/context_{}'.format(context) fig = pickle.load(file(f...
25.071429
78
0.587844
330127fe81c80f7efa3125eee653c2279ffa7208
901
py
Python
setup.py
InfraPixels/powerlibs-shentry
c5cf03cf62154db2647ce1ad26bf8355e5371bae
[ "0BSD" ]
null
null
null
setup.py
InfraPixels/powerlibs-shentry
c5cf03cf62154db2647ce1ad26bf8355e5371bae
[ "0BSD" ]
null
null
null
setup.py
InfraPixels/powerlibs-shentry
c5cf03cf62154db2647ce1ad26bf8355e5371bae
[ "0BSD" ]
1
2021-05-26T00:16:04.000Z
2021-05-26T00:16:04.000Z
#!/usr/bin/env python from setuptools import setup setup( name="shentry", version="0.1.0", author="Cléber Zavadniak", author_email="contato@cleber.solutions", url="https://github.com/cleber-solutions/powerlibs-shentry", license="ISC", packages=['shentry'], entry_points=''' [co...
27.30303
64
0.597114
f610aeebfcb5bc4353385ef665d97c2fd7ce26bc
7,377
py
Python
vyper/semantics/validation/annotation.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
1,347
2019-11-22T06:49:38.000Z
2022-03-31T19:49:32.000Z
vyper/semantics/validation/annotation.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
915
2019-11-21T05:48:16.000Z
2022-03-31T23:51:03.000Z
vyper/semantics/validation/annotation.py
upgradvisor/vyper
642884ea938a25793c1b2fac866e8458e63a7b49
[ "Apache-2.0" ]
262
2019-11-28T01:44:04.000Z
2022-03-31T21:33:43.000Z
from vyper import ast as vy_ast from vyper.exceptions import StructureException from vyper.semantics.types.bases import BaseTypeDefinition from vyper.semantics.types.function import ContractFunction from vyper.semantics.types.user.event import Event from vyper.semantics.types.user.struct import StructPrimitive from vyp...
36.339901
94
0.645655
e870d8a17e67984e7f8af7d84b78175d3c8189fd
875
py
Python
secondproject/urls.py
Jeonghun-Ban/likelionmyongji_lotto
1ef6e09eb4eec63a2204ed43ff76d2f378555c9c
[ "MIT" ]
4
2019-03-27T01:52:12.000Z
2019-05-10T17:10:14.000Z
secondproject/urls.py
likelionmyongji/likelionmyongji_lotto
1ef6e09eb4eec63a2204ed43ff76d2f378555c9c
[ "MIT" ]
6
2020-06-05T20:35:49.000Z
2022-02-10T08:14:21.000Z
secondproject/urls.py
likelionmyongji/likelionmyongji_lotto
1ef6e09eb4eec63a2204ed43ff76d2f378555c9c
[ "MIT" ]
null
null
null
"""secondproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
35
77
0.702857
d2abc8179010b59ad405a174e3ec7191e695a91c
2,807
py
Python
icbd/compiler/code_emitter.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
7
2015-04-06T15:17:13.000Z
2020-10-21T04:57:00.000Z
icbd/compiler/code_emitter.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
null
null
null
icbd/compiler/code_emitter.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
4
2016-05-16T17:53:08.000Z
2020-11-28T17:18:50.000Z
from cStringIO import StringIO class CodeEmitter(object): def __init__(self, em): assert em self._lio = StringIO() self._cio = StringIO() self._indent = 0 self._ntemps = {} # (prefix, suffix) -> num self._nplaceholders = 0 self._replacements = {} # subfuncti...
33.023529
216
0.568579
4a7f7a920d9a6628da869cd1212662c631464b79
2,864
py
Python
docs/conf.py
viniciusdc/qhub-cloud
be7256f26d140eb8edb3b5f19dc222458f5284b7
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
viniciusdc/qhub-cloud
be7256f26d140eb8edb3b5f19dc222458f5284b7
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
viniciusdc/qhub-cloud
be7256f26d140eb8edb3b5f19dc222458f5284b7
[ "BSD-3-Clause" ]
null
null
null
# import sphinx.writers.html5 # sphinx.writers.html5.HTML5Translator.visit_pending_xref = lambda *x:... # sphinx.writers.html5.HTML5Translator.depart_pending_xref = lambda *x:... BLOG_TITLE = title = html_title = "QHub Code as Infrastructure." BLOG_AUTHOR = author = "Quansight" html_theme = "pydata_sphinx_theme" master...
28.356436
81
0.61662