hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7960ed48d493cfad7b7534f3cae4245eb4d0481f
7,063
py
Python
command_line/refine_error_model.py
jbeilstenedmands/dials
fb9672b91854f564cbbba6f1cceeefa18d135965
[ "BSD-3-Clause" ]
null
null
null
command_line/refine_error_model.py
jbeilstenedmands/dials
fb9672b91854f564cbbba6f1cceeefa18d135965
[ "BSD-3-Clause" ]
null
null
null
command_line/refine_error_model.py
jbeilstenedmands/dials
fb9672b91854f564cbbba6f1cceeefa18d135965
[ "BSD-3-Clause" ]
null
null
null
""" A standalone program to explore error model minimisation after scaling. Scale factors and outliers determined from scaling are respected. Profile intensities will be used by default. Profile/summation intensity combination can be used, with the options: intensity_choice=combine combine.Imid={value} All scalin...
35.315
86
0.688942
7960ee4908051745133f0b5576027fd9784459d3
1,099
py
Python
setup.py
peprolinbot/DomainConnectDDNS-Python
f33308d6d2d880d07a1da606e4a3ca2a48d44d77
[ "MIT" ]
null
null
null
setup.py
peprolinbot/DomainConnectDDNS-Python
f33308d6d2d880d07a1da606e4a3ca2a48d44d77
[ "MIT" ]
null
null
null
setup.py
peprolinbot/DomainConnectDDNS-Python
f33308d6d2d880d07a1da606e4a3ca2a48d44d77
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name = 'domain-connect-dyndns', version = '0.0.8', description = 'Python client library for Dynamic DNS using Domain Connect', license = 'MIT', long_description=long_descri...
29.702703
79
0.606005
7960eee03eae6e190fa571dbe822715001811602
12,908
py
Python
intersight/model/storage_r0_drive.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/storage_r0_drive.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/storage_r0_drive.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
48.344569
1,678
0.624961
7960ef0c53c5dc753388268fc1d4396b492d2953
2,330
py
Python
creten/db_managers/TradeManager.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
9
2019-12-17T10:42:40.000Z
2021-12-02T23:07:05.000Z
creten/db_managers/TradeManager.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
null
null
null
creten/db_managers/TradeManager.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
6
2019-03-04T15:01:10.000Z
2022-01-12T23:22:55.000Z
from common.Db import Db from db_entities.db_codes import REF_ORDER_STATE from db_entities.Orders import Orders from db_entities.Trade import Trade from db_entities.StrategyExec import StrategyExec from common.ListOperations import makeList class TradeManager(): @staticmethod def getAllTrades(strategyExecId = None, ...
25.604396
126
0.728326
7960ef3175e5d37a16f3215d022b53fc83590fcf
26,407
py
Python
data_store.py
JLahti/whistle-calculator
860b38adb94677ab1e4273a7e9ee98a71bfdbdd1
[ "MIT" ]
2
2019-11-09T20:25:12.000Z
2020-07-11T20:38:39.000Z
data_store.py
JLahti/whistle-calculator
860b38adb94677ab1e4273a7e9ee98a71bfdbdd1
[ "MIT" ]
1
2020-01-01T17:58:08.000Z
2020-01-01T17:58:08.000Z
data_store.py
JLahti/whistle-calculator
860b38adb94677ab1e4273a7e9ee98a71bfdbdd1
[ "MIT" ]
1
2019-12-31T07:36:07.000Z
2019-12-31T07:36:07.000Z
import sys, os, pickle, pprint from tkinter import messagebox as mbox from utility import Logger, debugger, register_event import utility #from exception import AppError, AppFatalError, AppWarning #from configuration import Configuration class DataStore: ''' This is a simple class to facilitate comm...
38.32656
128
0.555724
7960ef629df1dc55739c4cb81054fe6466c9b142
4,891
py
Python
tensorflow/contrib/learn/python/learn/evaluable.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/contrib/learn/python/learn/evaluable.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
tensorflow/contrib/learn/python/learn/evaluable.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
38
2017-04-28T04:15:48.000Z
2019-09-28T05:11:46.000Z
# Copyright 2016 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...
45.287037
89
0.673277
7960efa0c8d7e4cc3ee96a2dfc41a639c105644d
4,208
py
Python
camundatools/definition.py
frayel/camundacmd
664090dbb05846d9deae0e72f5b76f3bfe765c65
[ "MIT" ]
1
2021-09-10T11:41:42.000Z
2021-09-10T11:41:42.000Z
camundatools/definition.py
frayel/camundatools
664090dbb05846d9deae0e72f5b76f3bfe765c65
[ "MIT" ]
null
null
null
camundatools/definition.py
frayel/camundatools
664090dbb05846d9deae0e72f5b76f3bfe765c65
[ "MIT" ]
null
null
null
import pathlib from xml.dom import minidom from camundatools.base_rest import BaseRest class Definition(BaseRest): base_url: str silent: bool def __init__(self, url=None, username=None, password=None, config_file="camundatools.cfg", silent=False): super().__init__(silent=silent, config_file=con...
41.254902
118
0.657319
7960efc01e144181c97bdbd76ce13bbc6eba0330
1,417
py
Python
pyslackers/blueprints/auth.py
pyslackers/website-old
5355e22cfc76be6a27597652ea8fbd8fe1c3c26e
[ "Apache-2.0" ]
null
null
null
pyslackers/blueprints/auth.py
pyslackers/website-old
5355e22cfc76be6a27597652ea8fbd8fe1c3c26e
[ "Apache-2.0" ]
3
2017-07-06T05:20:23.000Z
2017-07-06T05:21:53.000Z
pyslackers/blueprints/auth.py
pyslackers/website-old
5355e22cfc76be6a27597652ea8fbd8fe1c3c26e
[ "Apache-2.0" ]
null
null
null
from flask import ( Blueprint, flash, redirect, render_template, session, url_for, ) from flask_login import login_user, logout_user from pyslackers.external import db, slack_oauth from pyslackers.models import User bp_auth = Blueprint('auth', __name__) @bp_auth.route('/login') def login():...
25.303571
73
0.649965
7960efc7d6bdd26323adc84f1d8dcbd1a319dade
4,368
py
Python
examples/atari.py
duburcqa/tianshou
26fb87433de0d2604078ecbc99502efe0a815d5d
[ "MIT" ]
1
2021-12-18T02:31:04.000Z
2021-12-18T02:31:04.000Z
examples/atari.py
duburcqa/tianshou
26fb87433de0d2604078ecbc99502efe0a815d5d
[ "MIT" ]
null
null
null
examples/atari.py
duburcqa/tianshou
26fb87433de0d2604078ecbc99502efe0a815d5d
[ "MIT" ]
null
null
null
import cv2 import gym import numpy as np from gym.spaces.box import Box from tianshou.data import Batch SIZE = 84 FRAME = 4 def create_atari_environment(name=None, sticky_actions=True, max_episode_steps=2000): game_version = 'v0' if sticky_actions else 'v4' name = '{}NoFrameskip-...
32.597015
77
0.589515
7960f0138482d22772bc25fa3c564c74b8085857
5,513
py
Python
Configuration/Generator/python/BuToKstarJPsiToMuMu_forSTEAM_13TeV_ExtGen_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Generator/python/BuToKstarJPsiToMuMu_forSTEAM_13TeV_ExtGen_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Generator/python/BuToKstarJPsiToMuMu_forSTEAM_13TeV_ExtGen_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * from GeneratorInterface.EvtGenInterface.EvtGenSetting_cff import * _generator = cms.EDFilter("Pythia8GeneratorFilter", ...
51.523364
123
0.438962
7960f0b510633699f9d98c37d7acda8e481c2970
2,005
py
Python
gs/group/member/email/settings/interfaces.py
groupserver/gs.group.member.email.settings
8d1b0bc0eac73681f8e21304173db32edbde4ce3
[ "ZPL-2.1" ]
null
null
null
gs/group/member/email/settings/interfaces.py
groupserver/gs.group.member.email.settings
8d1b0bc0eac73681f8e21304173db32edbde4ce3
[ "ZPL-2.1" ]
null
null
null
gs/group/member/email/settings/interfaces.py
groupserver/gs.group.member.email.settings
8d1b0bc0eac73681f8e21304173db32edbde4ce3
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################ # # Copyright © 2010, 2011, 2012, 2013, 2014 OnlineGroups.net and # Contributors. # # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the Z...
34.568966
76
0.640898
7960f105dd953ad8cb920b21ae0e8fc5bb82fd0e
100
py
Python
hpvi/servers/__init__.py
MattAshman/hierarchical-pvi
385ebdac9c4cd8c1531de7fd83464e3bcc0ff5ce
[ "MIT" ]
null
null
null
hpvi/servers/__init__.py
MattAshman/hierarchical-pvi
385ebdac9c4cd8c1531de7fd83464e3bcc0ff5ce
[ "MIT" ]
null
null
null
hpvi/servers/__init__.py
MattAshman/hierarchical-pvi
385ebdac9c4cd8c1531de7fd83464e3bcc0ff5ce
[ "MIT" ]
null
null
null
from .base import * from .sequential import * from .synchronous import * from .ray_servers import *
20
26
0.76
7960f1c9ac683e25211e3fd17b168fe0130ee093
94
py
Python
tests/artist_app/apps.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
4
2018-11-24T14:46:45.000Z
2020-12-04T08:49:28.000Z
tests/artist_app/apps.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
40
2018-11-17T11:34:35.000Z
2020-06-26T11:27:01.000Z
tests/artist_app/apps.py
moshthepitt/django-vega-admin
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AuthorAppConfig(AppConfig): name = 'author_app'
15.666667
33
0.765957
7960f2c5d2466336fc35c052b66205001dfcf2d0
10,197
py
Python
src/langdetect/evalEuroparl.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
164
2015-07-10T21:27:54.000Z
2022-03-26T22:56:47.000Z
src/langdetect/evalEuroparl.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
126
2015-10-26T18:48:43.000Z
2022-03-21T13:19:39.000Z
src/langdetect/evalEuroparl.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
87
2015-10-26T15:47:02.000Z
2022-02-11T07:32:14.000Z
# Copyright (c) 2011 Michael McCandless. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import time import codecs import subprocess import cld import unicodedata import cPickle # Cool Python language detection lib: https:...
29.991176
161
0.593116
7960f36a9e23d63baa0bd0601302f2171b6a4b97
23,575
py
Python
tests/client/test_client.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
tests/client/test_client.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
tests/client/test_client.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
import tempfile import datetime import json import os from unittest.mock import MagicMock, mock_open import marshmallow import pendulum import pytest import requests import prefect from prefect.client.client import Client, FlowRunInfoResult, TaskRunInfoResult from prefect.engine.result import NoResult, Result, SafeRe...
33.630528
118
0.626893
7960f3acc3d062bee0d0bfc53723e6cddc67f834
5,070
py
Python
custom_dataset_generators/generators.py
amsabour/GRAN
75169775c1ce76dc171e7f4403d2ede280b34d10
[ "MIT" ]
null
null
null
custom_dataset_generators/generators.py
amsabour/GRAN
75169775c1ce76dc171e7f4403d2ede280b34d10
[ "MIT" ]
null
null
null
custom_dataset_generators/generators.py
amsabour/GRAN
75169775c1ce76dc171e7f4403d2ede280b34d10
[ "MIT" ]
1
2021-02-13T20:48:09.000Z
2021-02-13T20:48:09.000Z
import os import numpy as np import networkx as nx from tqdm import tqdm def generate_dataset(generators, size, name): assert type(generators) == list all_node_labels = [] all_edges = [] all_graph_indicators = [] all_graph_labels = [] counter = 0 num_nodes = 0 for i in tqdm(range(siz...
27.258065
104
0.617357
7960f5699910ba5dffdfcba8123631ae9cf32bcd
23,092
py
Python
src/azure-cli/azure/cli/command_modules/backup/_params.py
jyothirmaikatighar/azure-cli
1bd397971e8c26d685a612889ca1b663fa8c9cdb
[ "MIT" ]
4
2016-08-23T06:19:01.000Z
2018-03-20T22:47:15.000Z
src/azure-cli/azure/cli/command_modules/backup/_params.py
cindywu/azure-cli
bd011cb91ac6e0ac89f53e1105d76ea30b6609a0
[ "MIT" ]
120
2018-03-27T19:14:40.000Z
2020-12-10T23:53:35.000Z
src/azure-cli/azure/cli/command_modules/backup/_params.py
cindywu/azure-cli
bd011cb91ac6e0ac89f53e1105d76ea30b6609a0
[ "MIT" ]
11
2018-08-23T21:31:06.000Z
2020-09-03T21:39:51.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
75.218241
337
0.730729
7960f5f89bb57ead90efa5c18566b359e8c8ac73
457
py
Python
data/scripts/templates/object/static/structure/general/shared_campfire_smoldering.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/static/structure/general/shared_campfire_smoldering.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/static/structure/general/shared_campfire_smoldering.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Static() result.template = "object/static/structure/general/shared_campfire_smoldering.iff" result.attribute_temp...
26.882353
83
0.730853
7960f5fef2d0751e4b9b0fc4cbfa256ed57896c5
303
py
Python
data/multilingual/Latn.TOJ/Sans_16/pdf_to_json_test_Latn.TOJ_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.TOJ/Sans_16/pdf_to_json_test_Latn.TOJ_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.TOJ/Sans_16/pdf_to_json_test_Latn.TOJ_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.TOJ/Sans_16/udhr_Latn.TOJ_Sans_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
7960f61d3b5633d65fb51a1b1b2e4c25e0004576
2,454
py
Python
solution/fields/file/file.py
jpscaletti/solution
eabafd8e695bbb0209242e002dbcc05ffb327f43
[ "MIT" ]
2
2016-05-10T21:47:41.000Z
2017-04-18T16:43:38.000Z
solution/fields/file/file.py
lucuma/solution
eabafd8e695bbb0209242e002dbcc05ffb327f43
[ "MIT" ]
1
2016-02-26T18:57:14.000Z
2016-02-26T18:59:24.000Z
solution/fields/file/file.py
jpscaletti/solution
eabafd8e695bbb0209242e002dbcc05ffb327f43
[ "MIT" ]
null
null
null
# coding=utf-8 from werkzeug.datastructures import FileStorage from solution.fields import Field from solution.utils import Markup, get_html_attrs from .helpers import FileSystemUploader class File(Field): """ An upload file field. **Does not actually upload the file. Use its ``clean`` method for that.** ...
31.87013
77
0.610024
7960f6cd110fa3a416a553c0b7e0ae2a513283f3
1,535
py
Python
Chapter 5/train_model pt4 final.py
waealobidallah/Machine-Learning-and-AI-Foundations
d30fbaa8bc08b24ab5a27af62bc25af059c486e1
[ "MIT" ]
null
null
null
Chapter 5/train_model pt4 final.py
waealobidallah/Machine-Learning-and-AI-Foundations
d30fbaa8bc08b24ab5a27af62bc25af059c486e1
[ "MIT" ]
null
null
null
Chapter 5/train_model pt4 final.py
waealobidallah/Machine-Learning-and-AI-Foundations
d30fbaa8bc08b24ab5a27af62bc25af059c486e1
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split from sklearn import ensemble from sklearn.metrics import mean_absolute_error from sklearn.externals import joblib # Load the data set df = pd.read_csv("ml_house_data_set.csv") # Remove the fields from the data set that we don't want to include i...
30.098039
88
0.755049
7960f7659146a1570c1a45ec0bcf8862f154690c
13,623
py
Python
tests/test_bilateral_approx_cpu.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
3
2020-07-02T18:39:36.000Z
2021-06-16T09:35:53.000Z
tests/test_bilateral_approx_cpu.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
28
2020-06-26T12:47:52.000Z
2020-09-08T00:33:42.000Z
tests/test_bilateral_approx_cpu.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
34.0575
106
0.40505
7960f82022ee86a56ed6d0cd9e501e94c62a9082
161
py
Python
built-in/MindSpore/Research/nlp/DSCNN_for_MindSpore/src/utils.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/MindSpore/Research/nlp/DSCNN_for_MindSpore/src/utils.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/MindSpore/Research/nlp/DSCNN_for_MindSpore/src/utils.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
SILENCE_LABEL = '_silence_' UNKNOWN_WORD_LABEL = '_unknown_' def prepare_words_list(wanted_words): return [SILENCE_LABEL, UNKNOWN_WORD_LABEL] + wanted_words
32.2
61
0.813665
7960f8723fab5a7d55fe9aaa819783d86e7adcca
20,331
py
Python
core/storage/collection/gae_models.py
carolinajimenez26/oppia
8a8f07e37e11beb441a53635530e1d3cebe6beef
[ "Apache-2.0" ]
1
2019-11-05T09:32:39.000Z
2019-11-05T09:32:39.000Z
core/storage/collection/gae_models.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
core/storage/collection/gae_models.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
1
2020-10-04T06:54:41.000Z
2020-10-04T06:54:41.000Z
# coding: utf-8 # # Copyright 2015 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
42.622642
91
0.683242
7960f99e031e7d9a8e7c27d04510ed4cb3e9f19c
66,104
py
Python
src/fparser/common/readfortran.py
reuterbal/fparser
463d4f7f27d952fba8b2400a6a54378d470853aa
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/readfortran.py
reuterbal/fparser
463d4f7f27d952fba8b2400a6a54378d470853aa
[ "BSD-3-Clause" ]
null
null
null
src/fparser/common/readfortran.py
reuterbal/fparser
463d4f7f27d952fba8b2400a6a54378d470853aa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Modified work Copyright (c) 2017-2021 Science and Technology # Facilities Council # Original work Copyright (c) 1999-2008 Pearu Peterson # All rights reserved. # Modifications made as part of the fparser project are distributed # under the following license: # Redistri...
39.347619
79
0.538243
7960fb8fd7f7392860b578906163c46776e14a21
1,358
py
Python
wtl/tex/enumeratefig.py
heavywatal/pywtl
a0a1c6239cf832db79925733dd830394cb0425fb
[ "MIT" ]
null
null
null
wtl/tex/enumeratefig.py
heavywatal/pywtl
a0a1c6239cf832db79925733dd830394cb0425fb
[ "MIT" ]
null
null
null
wtl/tex/enumeratefig.py
heavywatal/pywtl
a0a1c6239cf832db79925733dd830394cb0425fb
[ "MIT" ]
null
null
null
""" Extract \\includegraphics{...} from TeX file and rename them (for PLOS) http://journals.plos.org/ploscompbiol/s/figures """ import sys import os import re import shutil def finditer(text): pattern = r'^.*(?<!%).*\\includegraphics.*?{(\S+?)}' for mobj in re.finditer(pattern, text, re.M): yield mobj...
30.177778
71
0.588365
7960fb9f2670675f70e37ad339b62ee09d4c54f8
489
py
Python
setup.py
qmxp55/bgs-cmxsv
55850e44d65570da69de0788c652cff698416834
[ "MIT" ]
2
2020-11-15T18:48:28.000Z
2021-02-24T15:02:38.000Z
setup.py
qmxp55/bgs-cmxsv
55850e44d65570da69de0788c652cff698416834
[ "MIT" ]
12
2020-11-13T21:08:02.000Z
2022-02-10T13:39:42.000Z
setup.py
qmxp55/bgs-cmxsv
55850e44d65570da69de0788c652cff698416834
[ "MIT" ]
2
2020-11-15T18:48:32.000Z
2021-02-23T19:30:02.000Z
#!/usr/bin/env python from setuptools import find_packages, setup __version__ = '0.0' if __name__ == "__main__": setup( name='bgs_sv', version = __version__, description='python package for DESI BGS CMX + SV efforts', packages=['bgs_sv'], package_dir={'': 'py'}, in...
27.166667
70
0.591002
7960fc4ae7d3d47ec541362d75bf8eb3dcffec2a
3,060
py
Python
provenance/sftp/__init__.py
nitramsivart/provenance
9eda16117f6603e3c8e2562f6b461d092fa9eef2
[ "MIT" ]
30
2017-03-05T00:55:43.000Z
2021-07-24T13:03:03.000Z
provenance/sftp/__init__.py
nitramsivart/provenance
9eda16117f6603e3c8e2562f6b461d092fa9eef2
[ "MIT" ]
48
2017-03-07T18:46:09.000Z
2020-12-03T03:42:33.000Z
provenance/sftp/__init__.py
nitramsivart/provenance
9eda16117f6603e3c8e2562f6b461d092fa9eef2
[ "MIT" ]
12
2017-03-03T15:19:28.000Z
2021-03-13T06:49:15.000Z
import os import paramiko from .. import blobstores as bs def _ssh_client(ssh_config): client = paramiko.SSHClient() client.load_host_keys(os.path.expanduser('~/.ssh/known_hosts')) # There still seems to be problems with some types keys. # See https://github.com/paramiko/paramiko/issues/243 # So...
34
106
0.641503
7960fc8fa8d20b63bb47236f040a4b5e1cb53434
246
py
Python
hackerrank/python/itertools/04combsreplacmt.py
Alu0331/python
0a751b5acf067eae1b04e8f34559b7f580317cb3
[ "MIT" ]
null
null
null
hackerrank/python/itertools/04combsreplacmt.py
Alu0331/python
0a751b5acf067eae1b04e8f34559b7f580317cb3
[ "MIT" ]
1
2020-12-30T14:34:06.000Z
2020-12-31T12:00:29.000Z
hackerrank/python/itertools/04combsreplacmt.py
Alu0331/python
0a751b5acf067eae1b04e8f34559b7f580317cb3
[ "MIT" ]
null
null
null
from itertools import combinations_with_replacement a= input().split() o= list (combinations_with_replacement(sorted(a[0]),int(a[1]))) for i in range (0,len(o)): for j in range(0,int(a[1])): print (o[i][j],sep='',end='') print('')
35.142857
63
0.642276
7960fdceb20b9647e0e95a22f00b6ae8af986ba6
1,259
py
Python
examples/HDrun.py
csahlholdt/2dG
fd071b218c5c649b3e726a42e7040c35e4f5948f
[ "MIT" ]
null
null
null
examples/HDrun.py
csahlholdt/2dG
fd071b218c5c649b3e726a42e7040c35e4f5948f
[ "MIT" ]
null
null
null
examples/HDrun.py
csahlholdt/2dG
fd071b218c5c649b3e726a42e7040c35e4f5948f
[ "MIT" ]
null
null
null
from gfunc2d.gfunc2dmain import gfunc2d_run # Define input file, output directory, and path to an isochrone grid inputfile = '/Users/csahlholdt/code/gfunc2D/examples/HDinput.txt' outputdir = '/Users/csahlholdt/code/gfunc2D/examples/HDoutput/' isogrid = '/Users/csahlholdt/isochrones/grids/PARSEC/3.3/PARSEC_label6_inter...
34.972222
81
0.679905
7960fe38e2f2c9a0a9db5d5c034a3ee76a7b4899
216
py
Python
fir/commands/info.py
scottfwilliams/fir
41681aee9ecf2a18fe05d4a3fd78f74241f2e803
[ "MIT" ]
null
null
null
fir/commands/info.py
scottfwilliams/fir
41681aee9ecf2a18fe05d4a3fd78f74241f2e803
[ "MIT" ]
null
null
null
fir/commands/info.py
scottfwilliams/fir
41681aee9ecf2a18fe05d4a3fd78f74241f2e803
[ "MIT" ]
null
null
null
import click @click.group(help='A group that holds a subcommand') def info(): pass @info.command(name="list", help='Choose a user') @click.argument("somearg", type=click.STRING) def _list(somearg): pass
15.428571
52
0.694444
7960ff1b565eb8f45c8670a90cb22540b4c07a2f
4,227
py
Python
social_core/backends/azuread_tenant.py
odidev/social-core
71b76511f0b92e4bcba60dc61d9b982bd53c5d5e
[ "BSD-3-Clause" ]
2
2021-01-07T07:53:20.000Z
2021-01-13T06:07:15.000Z
social_core/backends/azuread_tenant.py
odidev/social-core
71b76511f0b92e4bcba60dc61d9b982bd53c5d5e
[ "BSD-3-Clause" ]
1
2021-09-17T08:27:05.000Z
2021-09-17T08:27:05.000Z
social_core/backends/azuread_tenant.py
odidev/social-core
71b76511f0b92e4bcba60dc61d9b982bd53c5d5e
[ "BSD-3-Clause" ]
1
2020-08-01T03:19:13.000Z
2020-08-01T03:19:13.000Z
import base64 import json from cryptography.x509 import load_pem_x509_certificate from cryptography.hazmat.backends import default_backend from jwt import DecodeError, ExpiredSignature, decode as jwt_decode from ..exceptions import AuthTokenError from .azuread import AzureADOAuth2 """ Copyright (c) 2015 Microsoft Op...
35.521008
108
0.682754
7960ff7a53aeb2bf50b8e40c49e18b98ab4bd176
28,671
py
Python
aas_core_codegen/intermediate/type_inference.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
aas_core_codegen/intermediate/type_inference.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
2
2021-11-17T22:11:59.000Z
2021-11-18T15:17:40.000Z
aas_core_codegen/intermediate/type_inference.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
""" Infer the types of the tree nodes. Note that these types roughly follow the type annotations in :py:mod:`aas_core_codegen.intermediate._types`, but are not identical. For example, the ``LENGTH`` primitive exists only in type inference. Another example, we do not track ``parsed`` as the types are inferred in the in...
33.5726
89
0.629416
7960ffc450f276a58926891e8648fa305410e380
4,299
py
Python
share/seeds/generate-seeds.py
ahmedbodi/test
7b78d41ffb3530372fd3d797c2a08c422c378b30
[ "MIT" ]
null
null
null
share/seeds/generate-seeds.py
ahmedbodi/test
7b78d41ffb3530372fd3d797c2a08c422c378b30
[ "MIT" ]
null
null
null
share/seeds/generate-seeds.py
ahmedbodi/test
7b78d41ffb3530372fd3d797c2a08c422c378b30
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Wladmir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the directory that...
31.610294
98
0.58595
79610046a04cfdbb7509ec4e8c39b9657ad812f7
23,076
py
Python
dosagelib/scraper.py
Ruthalas/dosage
90bd4a05f93eb2a20657800a5837364edc304f5d
[ "MIT" ]
1
2020-06-18T17:51:13.000Z
2020-06-18T17:51:13.000Z
dosagelib/scraper.py
Ruthalas/dosage
90bd4a05f93eb2a20657800a5837364edc304f5d
[ "MIT" ]
null
null
null
dosagelib/scraper.py
Ruthalas/dosage
90bd4a05f93eb2a20657800a5837364edc304f5d
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2015-2020 Tobias Gruetzmacher import html import os import re import warnings from urllib.parse import urljoin import lxml from lxml.html.defs import link_attrs as...
36.112676
93
0.587017
79610250c70dd76b78d37b18edd50c2edcf9bbae
83,428
py
Python
PPOCRLabel/PPOCRLabel.py
LKKlein/PaddleOCR
b78549484bf8c2c5c7cdd3521f2ba37ae2a46781
[ "Apache-2.0" ]
null
null
null
PPOCRLabel/PPOCRLabel.py
LKKlein/PaddleOCR
b78549484bf8c2c5c7cdd3521f2ba37ae2a46781
[ "Apache-2.0" ]
null
null
null
PPOCRLabel/PPOCRLabel.py
LKKlein/PaddleOCR
b78549484bf8c2c5c7cdd3521f2ba37ae2a46781
[ "Apache-2.0" ]
null
null
null
# Copyright (c) <2015-Present> Tzutalin # Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, # William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Soft...
40.617332
124
0.603634
796102d219ae3cea95482ec60455ba639ac8ff7c
3,515
py
Python
tests/integration/api/test_workbenches.py
alanfung/Tenable.io-SDK-for-Python
21db906b652a700e11e0cd3435413f7dc7c9f6be
[ "MIT" ]
null
null
null
tests/integration/api/test_workbenches.py
alanfung/Tenable.io-SDK-for-Python
21db906b652a700e11e0cd3435413f7dc7c9f6be
[ "MIT" ]
null
null
null
tests/integration/api/test_workbenches.py
alanfung/Tenable.io-SDK-for-Python
21db906b652a700e11e0cd3435413f7dc7c9f6be
[ "MIT" ]
1
2019-07-24T21:03:04.000Z
2019-07-24T21:03:04.000Z
import os from tests.base import BaseTest from tenable_io.api.models import AssetList, VulnerabilityList from tenable_io.api.workbenches import WorkbenchesApi from tenable_io.exceptions import TenableIOErrorCode, TenableIOApiException class TestWorkbenchesApi(BaseTest): def test_assets(self, client): a...
45.649351
109
0.717212
796103667a775047324016bf595c07220eb4b883
54,806
py
Python
PRESUBMIT.py
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
1
2016-06-23T01:26:53.000Z
2016-06-23T01:26:53.000Z
PRESUBMIT.py
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
null
null
null
PRESUBMIT.py
shishuo365/webrtc
96e60852faaa8ab4cf6477fa92c80a434921625d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env vpython3 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. Al...
38.245639
80
0.661679
796103d367529f91d3b47c7fa0fe93adc27e2b13
10,748
py
Python
sdk/python/pulumi_kubernetes/core/v1/ServiceList.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
277
2018-06-18T14:57:09.000Z
2022-03-29T04:05:06.000Z
sdk/python/pulumi_kubernetes/core/v1/ServiceList.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
1,447
2018-06-20T00:58:34.000Z
2022-03-31T21:28:43.000Z
sdk/python/pulumi_kubernetes/core/v1/ServiceList.py
polivbr/pulumi-kubernetes
36a5fb34240a38a60b52a5f4e55e66e248d9305f
[ "Apache-2.0" ]
95
2018-06-30T03:30:05.000Z
2022-03-29T04:05:09.000Z
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outp...
50.224299
335
0.672497
7961052be81252898468f1aec6724c6b3d4f7c73
6,961
py
Python
tweepy_streamer.py
Samguyette/CryptoTwitterBot
60d95421816e93e351ca05a658acbf574202143a
[ "MIT" ]
null
null
null
tweepy_streamer.py
Samguyette/CryptoTwitterBot
60d95421816e93e351ca05a658acbf574202143a
[ "MIT" ]
null
null
null
tweepy_streamer.py
Samguyette/CryptoTwitterBot
60d95421816e93e351ca05a658acbf574202143a
[ "MIT" ]
null
null
null
from tweepy import API from tweepy import Cursor from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import twitter_credentials from collections import Counter from itertools import repeat, chain import re import sys import pandas as pd import numpy as np #Twitter ...
30.39738
137
0.652492
796105619b1fd280e3f34d6022a43cbdf47e52e1
1,061
py
Python
trafaret/dataerror.py
mzubov/trafaret
ee11710ade3a66f0c0f051446cc3d318dea90280
[ "BSD-2-Clause" ]
null
null
null
trafaret/dataerror.py
mzubov/trafaret
ee11710ade3a66f0c0f051446cc3d318dea90280
[ "BSD-2-Clause" ]
null
null
null
trafaret/dataerror.py
mzubov/trafaret
ee11710ade3a66f0c0f051446cc3d318dea90280
[ "BSD-2-Clause" ]
null
null
null
from .lib import _empty class DataError(ValueError): """ Error with data preserve error can be a message or None if error raised in childs data can be anything """ __slots__ = ['error', 'name', 'value', 'trafaret'] def __init__(self, error=None, name=None, value=_empty, trafaret=None): ...
31.205882
86
0.580584
796105cb25f6b9709bb1d39e40ec68adfdfff284
157
py
Python
log/dreyeve/old/long/configuration.py
ErikKratzCth/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
5
2019-03-01T12:22:50.000Z
2020-09-24T07:19:14.000Z
log/dreyeve/old/long/configuration.py
KratzErik/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
null
null
null
log/dreyeve/old/long/configuration.py
KratzErik/ALOCC_Keras_SMILE
27dc6aafd951e95085351bd8d56f4006f58ca9fa
[ "MIT" ]
1
2020-07-28T14:41:58.000Z
2020-07-28T14:41:58.000Z
################################################################# Test started at: 2018-12-02 07:23:06.979351AUROC D()-score: 0.82961AUPRC D()-score: 0.77627
157
157
0.426752
79610660237682122b5b5b99717f230dbeb4f21a
350
py
Python
setup.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
setup.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
setup.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='chopen', version='1.0.0', packages=find_packages(), description='An open source toolbox for ion channel data modeling and analysis', author='Vahid Ghayoomie', author_email='vahidghayoomi@gmail.com', url='https:/...
26.923077
84
0.708571
79610677f38e2caaeac8866f36013dea6fece5c8
2,937
py
Python
nova/api/openstack/compute/views/limits.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/views/limits.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/api/openstack/compute/views/limits.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# Copyright 2010-2011 OpenStack Foundation # 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...
35.385542
78
0.641811
796106b72bfcf4f5f5145e895d920109608bd5b4
4,666
py
Python
tests/test_parser.py
rolandmueller/rita-dsl
d0457fcf220baaf7fa8f647bab36b5ff5ea9367b
[ "MIT" ]
null
null
null
tests/test_parser.py
rolandmueller/rita-dsl
d0457fcf220baaf7fa8f647bab36b5ff5ea9367b
[ "MIT" ]
null
null
null
tests/test_parser.py
rolandmueller/rita-dsl
d0457fcf220baaf7fa8f647bab36b5ff5ea9367b
[ "MIT" ]
null
null
null
import logging import pytest from rita.parser import RitaParser from rita.config import SessionConfig @pytest.fixture def config(): return SessionConfig() def test_parser_empty_rules(config): p = RitaParser(config) p.build() results = p.parse("") assert len(results) == 0 def test_parser_any_m...
18.96748
83
0.563223
796106c38c8fc3f8cf54d08404227e571b72cd17
70,486
py
Python
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright (c) 2013 OpenStack Foundation # 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 ...
46.556143
79
0.484252
7961086daa567d0011d0b79c671b053ee0a80bd7
71,444
py
Python
infoblox_netmri/api/broker/v2_3_0/detected_change_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v2_3_0/detected_change_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v2_3_0/detected_change_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..broker import Broker class DetectedChangeBroker(Broker): controller = "detected_changes" def show(self, **kwargs): """Shows the details for the specified detected change. **Inputs** | ``api version min:`` None | ``api version max:`` None ...
51.141016
672
0.60278
7961092e01be0e73d03ce2344c5e71e4c3d99041
1,852
py
Python
tests/test_subscription.py
Press-One/prs-lib-py
5f088d58993a93bee660a27579966aa015606c9a
[ "MIT" ]
1
2019-07-27T06:41:18.000Z
2019-07-27T06:41:18.000Z
tests/test_subscription.py
Press-One/prs-lib-py
5f088d58993a93bee660a27579966aa015606c9a
[ "MIT" ]
2
2019-07-27T07:47:05.000Z
2019-08-28T13:24:40.000Z
tests/test_subscription.py
Press-One/prs-lib-py
5f088d58993a93bee660a27579966aa015606c9a
[ "MIT" ]
1
2019-07-03T14:23:29.000Z
2019-07-03T14:23:29.000Z
from . import get_client_buyer def test_get_subscription_json(client_with_auth): user_address = client_with_auth.config.address res = client_with_auth.subscription.get_subscription_json(user_address) assert res.status_code == 200 assert res.content def test_get_subscriptions(client_with_auth): u...
29.396825
75
0.74676
796109d8b69e1dc0237977966bbb1aa8a3b26337
2,908
py
Python
example/image_extractor.py
ahlusar1989/fileprocessor
ad8557e86b054ebc14d9b2364ddfa9d7104e2391
[ "MIT" ]
1
2021-06-27T22:49:02.000Z
2021-06-27T22:49:02.000Z
example/image_extractor.py
DonaldWhyte/fileprocessor
5ccbbae87387b5683b9e5fc5fe559a0d3e50b9c1
[ "MIT" ]
null
null
null
example/image_extractor.py
DonaldWhyte/fileprocessor
5ccbbae87387b5683b9e5fc5fe559a0d3e50b9c1
[ "MIT" ]
null
null
null
"""Recursviely searches through directory and displays any image URLs inside web pages. Created to provide an example of how to use the fileprocessor module. """ import sys import re from fileprocessor import FileProcessor, searchers, filterers, extractors class ImageURLExtractor(extractors.TextExtractor...
33.045455
88
0.678129
796109fc9715412538e1fca9c5e8e6a43a65784d
1,491
py
Python
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/markdown.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/markdown.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/markdown.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
MOCK_SINGLE_LEVEL_LIST = [ 1, 'b', 3, 'x' ] EXPECTED_MD_LIST = """ * 0: 1 * 1: b * 2: 3 * 3: x """ MOCK_SINGLE_LEVEL_DICT = { 'Server': 'abc', 'IP': '123.123.123.123', 'Changed': 'Yes' } EXPECTED_MD_DICT = """ * Server: abc * IP: 123.123.123.123 * Changed: Yes """ MOCK_MULTI_...
15.371134
48
0.457411
79610a4af58b8f5c9912d10ff12d1a25b3327f55
3,756
py
Python
libardrone/h264decoder.py
jamesrobertlloyd/python-ardrone
c323867b31e2ab43f776d221df8bf96587a075e2
[ "MIT" ]
1
2015-03-05T20:08:01.000Z
2015-03-05T20:08:01.000Z
libardrone/h264decoder.py
jamesrobertlloyd/python-ardrone
c323867b31e2ab43f776d221df8bf96587a075e2
[ "MIT" ]
null
null
null
libardrone/h264decoder.py
jamesrobertlloyd/python-ardrone
c323867b31e2ab43f776d221df8bf96587a075e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013 Adrian Taylor # Inspired by equivalent node.js code by Felix Geisendörfer # # 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, i...
37.188119
113
0.661076
79610ae729df9dd4e969bfea7796ba9dcd1c7eca
5,583
py
Python
examples/Arctic_runoff/addto_runoff_file.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
75
2016-04-05T07:15:57.000Z
2022-03-04T22:49:54.000Z
examples/Arctic_runoff/addto_runoff_file.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
27
2017-02-26T04:27:49.000Z
2021-12-01T17:26:56.000Z
examples/Arctic_runoff/addto_runoff_file.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
56
2016-05-11T06:19:14.000Z
2022-03-22T19:04:17.000Z
import numpy as np import netCDF4 as netCDF from datetime import datetime import pyroms import pyroms_toolbox #You need to edit and run compute_daitren_remap_weights.py first #then edit and run make_ARCTIC2_runoff.py to generate the runoff file. #In make_ARCTIC2_runoff.py you can tune the number of cell defining the ...
36.490196
113
0.662905
79610c6ac868116ea11fce7b332e0e2019ca046c
16,535
py
Python
NT_UDA/utils/utils.py
chamwen/NT-Benchmark
d5a17a07fdfa89d80d47843c35ecf3e078b94371
[ "MIT" ]
1
2022-03-21T16:30:40.000Z
2022-03-21T16:30:40.000Z
NT_UDA/utils/utils.py
chamwen/NT-Benchmark
d5a17a07fdfa89d80d47843c35ecf3e078b94371
[ "MIT" ]
null
null
null
NT_UDA/utils/utils.py
chamwen/NT-Benchmark
d5a17a07fdfa89d80d47843c35ecf3e078b94371
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # A Survey on Negative Transfer # https://github.com/chamwen/NT-Benchmark import os.path as osp import os import numpy as np import random import torch as tr import torch.nn as nn from torchvision import transforms from torch.utils.data import Dataset, DataLoader import torch.utils.data as Data ...
37.837529
116
0.613003
79610c79a0febb2ca062e74615547180ee0c8f1b
3,032
py
Python
examples/versus_demo.py
jsfrancal/AssimpCy
15d69f423f09fed2155b895610c9e813fc525da8
[ "BSD-3-Clause" ]
null
null
null
examples/versus_demo.py
jsfrancal/AssimpCy
15d69f423f09fed2155b895610c9e813fc525da8
[ "BSD-3-Clause" ]
null
null
null
examples/versus_demo.py
jsfrancal/AssimpCy
15d69f423f09fed2155b895610c9e813fc525da8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from timeit import Timer from os import path as pt from pyassimp import postprocess as pp2, release, load import _setpath _setpath.setAssimpPath() from assimpcy import aiImportFile, aiPostProcessSteps as pp home = pt.dirname(__file__) path = 'models/cil/cil.x' path = pt.join(hom...
41.534247
109
0.597625
79610d09c91a213f40046d045aabfd43d18b7c82
60,212
py
Python
tests/app/template/test_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/template/test_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/template/test_rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
import base64 import json import random import string import uuid from datetime import datetime, timedelta import botocore import pytest import requests_mock from freezegun import freeze_time from notifications_utils import SMS_CHAR_COUNT_LIMIT from PyPDF2.utils import PdfReadError from app.dao.templates_dao import (...
35.586288
148
0.641483
79610da0c9c954a35ce861e763cda0c6a0592591
1,751
py
Python
scenes/plugins/scene_stats.py
pretix/pretix-screenshots
31f0e1244939d3a732cfdcd0fa04cb99eafaf23b
[ "Apache-2.0" ]
14
2017-08-24T19:39:31.000Z
2021-04-01T22:01:08.000Z
scenes/plugins/scene_stats.py
pretix/pretix-screenshots
31f0e1244939d3a732cfdcd0fa04cb99eafaf23b
[ "Apache-2.0" ]
null
null
null
scenes/plugins/scene_stats.py
pretix/pretix-screenshots
31f0e1244939d3a732cfdcd0fa04cb99eafaf23b
[ "Apache-2.0" ]
2
2018-11-15T19:55:05.000Z
2018-11-19T04:07:03.000Z
import random import time from datetime import timedelta from decimal import Decimal from django.utils.timezone import now from django.utils.translation import gettext as _ from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait ...
34.333333
92
0.628212
79610e54350ec8e2a31613e205233e67da456835
11,038
py
Python
train.py
Hemanthhh/aipnd-project
193a1dedbc392a73ef484ed6c8df2ea16f3944fa
[ "MIT" ]
1
2021-12-01T10:49:40.000Z
2021-12-01T10:49:40.000Z
train.py
Hemanthhh/aipnd-project
193a1dedbc392a73ef484ed6c8df2ea16f3944fa
[ "MIT" ]
null
null
null
train.py
Hemanthhh/aipnd-project
193a1dedbc392a73ef484ed6c8df2ea16f3944fa
[ "MIT" ]
null
null
null
# Filename : train.py # Author : Rahul Mannepally # Course : Udacity - The AI Programming with Python Nanodegree # Date : 15-09-2018 #!/usr/bin/env python3 # Train - Inputs tested with my code. # python train.py ../aipnd-project/flowers --arch vgg --gpu # python train.py ../aipnd-project/flowers --arch vgg --s...
39.705036
166
0.547835
79610ee5e0f4c6b87f367e33ce35184f25bf820d
857
py
Python
setup.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
setup.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
setup.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='stylobate-mgmt', version='0.0.2', description='Manage instances of Stylobate-based projects', long_description=long_description, long_description_content_type="text/markdown", url='htt...
29.551724
63
0.659277
79610fb91754900a03c23b05d094630435cd1269
397
py
Python
Medium/2221 Find Triangular Sum of an Array.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
Medium/2221 Find Triangular Sum of an Array.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
Medium/2221 Find Triangular Sum of an Array.py
raj713335/LeetCode
e60e145d90f45d37e148e8307a3d97f5f0741de0
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/find-triangular-sum-of-an-array/ class Solution: def triangularSum(self, nums: List[int]) -> int: while(len(nums)!=1): temp_array = [] for i in range(0, len(nums)-1): temp_array.append((nums[i]+nums[i+1])%10...
23.352941
64
0.488665
7961111efb6cd0705b12cd253851b34307caa418
1,434
py
Python
xlsxwriter/test/comparison/test_chart_chartarea05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_chartarea05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_chartarea05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
24.305085
79
0.53696
7961126a448bc7b032ca50caa53283e96a79afca
2,447
py
Python
gta/gxt.py
CookiePLMonster/GXT-Extractor
75df2c41ee810677910aea3f1f469dc5a3d6bb3b
[ "MIT" ]
4
2020-03-22T19:42:03.000Z
2020-08-01T19:56:54.000Z
gta/gxt.py
CookiePLMonster/GXT-Extractor
75df2c41ee810677910aea3f1f469dc5a3d6bb3b
[ "MIT" ]
null
null
null
gta/gxt.py
CookiePLMonster/GXT-Extractor
75df2c41ee810677910aea3f1f469dc5a3d6bb3b
[ "MIT" ]
2
2020-05-12T02:17:48.000Z
2021-03-28T10:59:54.000Z
import struct import os class VC: def hasTables(self): return True def parseTables(self, stream): return _parseTables(stream) def parseTKeyTDat(self, stream): size = findBlock(stream, 'TKEY') TKey = [] for i in range(int(size / 12)): # TKEY entry size ...
24.969388
85
0.536167
796112b4c79172933a1ffa9e73b85e20b3957e2f
327
py
Python
jsonclasses/validators/deny_validator.py
katrina799/jsonclasses
7648d2c1dbef8a001975013f24e49dd6421099ba
[ "MIT" ]
null
null
null
jsonclasses/validators/deny_validator.py
katrina799/jsonclasses
7648d2c1dbef8a001975013f24e49dd6421099ba
[ "MIT" ]
null
null
null
jsonclasses/validators/deny_validator.py
katrina799/jsonclasses
7648d2c1dbef8a001975013f24e49dd6421099ba
[ "MIT" ]
null
null
null
"""module for deny validator.""" from ..field_definition import FieldDefinition, DeleteRule from .validator import Validator class DenyValidator(Validator): """Deny validator marks a relationship's delete rule as deny.""" def define(self, fdesc: FieldDefinition) -> None: fdesc.delete_rule = DeleteRul...
29.727273
68
0.743119
7961131b42c69eaeccf5b2fd9596e2c715b35e24
685
py
Python
games/chapter1/examples/guessthepassword.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
4
2021-03-01T00:32:45.000Z
2021-05-21T22:01:52.000Z
games/chapter1/examples/guessthepassword.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
29
2020-09-12T22:56:04.000Z
2021-09-25T17:08:42.000Z
games/chapter1/examples/guessthepassword.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
7
2021-02-25T01:50:55.000Z
2022-02-28T00:00:42.000Z
# Directions: The goal of this exercise is to create # a game where the user has to guess a certain password that # you set and see how many tries it takes for that user to guess correctly # start with assigning the password to some variable pas = "password" # set an input so it will appear in the console and ask the...
32.619048
87
0.735766
7961133d28189783daddc4b59bfb5f74aab2caa5
6,210
py
Python
riglib/experiment/mocks.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
7
2015-08-25T00:28:49.000Z
2020-04-14T22:58:51.000Z
riglib/experiment/mocks.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
89
2020-08-03T16:54:08.000Z
2022-03-09T19:56:19.000Z
riglib/experiment/mocks.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
4
2020-03-06T15:39:00.000Z
2021-05-26T17:03:21.000Z
''' Mock experiment classes for testing ''' from .experiment import LogExperiment, FSMTable, StateTransitions, Sequence event1to2 = [False, True, False, False, False, False, False, False] event1to3 = [False, False, False, False, True, False, False, False] event2to3 = [False, False, True, False, False, False, False,...
38.333333
95
0.672464
79611360ec1df89da6fd823ed9ae0b0962f53425
4,967
py
Python
tests/test_core/test_eopatch.py
sentinel-hub/eo-grow
458202fc55c01cc95a17b442144ef2c935103c80
[ "MIT" ]
17
2022-01-27T11:50:23.000Z
2022-02-12T10:01:03.000Z
tests/test_core/test_eopatch.py
sentinel-hub/eo-grow
458202fc55c01cc95a17b442144ef2c935103c80
[ "MIT" ]
5
2022-02-10T11:15:09.000Z
2022-02-28T10:46:47.000Z
tests/test_core/test_eopatch.py
sentinel-hub/eo-grow
458202fc55c01cc95a17b442144ef2c935103c80
[ "MIT" ]
null
null
null
import os from tempfile import NamedTemporaryFile import pytest from eogrow.core.area import CustomGridAreaManager, UtmZoneAreaManager from eogrow.core.config import interpret_config_from_dict, interpret_config_from_path from eogrow.core.eopatch import CustomGridEOPatchManager, EOPatchManager pytestmark = pytest.mar...
40.713115
108
0.728407
796113ab542a17392bd36f7e465f017eef592a50
874
py
Python
app/user/bootstrap.py
jonatasoli/reguleque-core
a47899030ed72cfa0c60f22672bf76f4eba64ed3
[ "MIT" ]
null
null
null
app/user/bootstrap.py
jonatasoli/reguleque-core
a47899030ed72cfa0c60f22672bf76f4eba64ed3
[ "MIT" ]
null
null
null
app/user/bootstrap.py
jonatasoli/reguleque-core
a47899030ed72cfa0c60f22672bf76f4eba64ed3
[ "MIT" ]
null
null
null
import inspect from typing import Callable from user import orm from user import unit_of_work from fastapi.security import OAuth2PasswordRequestForm, OAuth2PasswordBearer from passlib.context import CryptContext class MessageBus: def __init__( self, uow: unit_of_work.AbstractUnitOfWork, o...
24.277778
84
0.718535
796113e0c7410ec771fbc589e5e8ab6315870470
788
py
Python
plot_sign.py
Darklanx/rl-baselines3-zoo
b04c52c0532f3b474f43078db235896f3167b50a
[ "MIT" ]
null
null
null
plot_sign.py
Darklanx/rl-baselines3-zoo
b04c52c0532f3b474f43078db235896f3167b50a
[ "MIT" ]
null
null
null
plot_sign.py
Darklanx/rl-baselines3-zoo
b04c52c0532f3b474f43078db235896f3167b50a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib matplotlib.use('Agg') import numpy as np from scipy.signal import savgol_filter FILE = "./sign.txt" corrects = [] incorrects = [] with open(FILE, 'r') as f: for i, l in enumerate(f): correct, incorrect = l.strip().split(',') correct = int(correct.s...
25.419355
83
0.685279
7961141b4e7a4c64cdc454ac5ffde7f336d7bd20
830
py
Python
maskrcnn_benchmark/layers/__init__.py
RyanXLi/OneshotDet
77f629978d9d1739787b08de8cccea81341507bf
[ "BSD-2-Clause" ]
16
2020-09-07T15:28:57.000Z
2022-03-03T02:52:25.000Z
maskrcnn_benchmark/layers/__init__.py
RyanXLi/OneshotDet
77f629978d9d1739787b08de8cccea81341507bf
[ "BSD-2-Clause" ]
3
2021-01-06T12:02:54.000Z
2021-03-14T14:08:57.000Z
maskrcnn_benchmark/layers/__init__.py
RyanXLi/OneshotDet
77f629978d9d1739787b08de8cccea81341507bf
[ "BSD-2-Clause" ]
4
2020-11-13T09:21:36.000Z
2021-05-27T02:12:19.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from .batch_norm import FrozenBatchNorm2d from .misc import Conv2d from .misc import ConvTranspose2d from .misc import BatchNorm2d from .misc import interpolate from .nms import nms from .roi_align import ROIAlign from .roi_align impo...
31.923077
77
0.768675
796114cc66de9cd9b19ac161f2d79a8d4329fb9b
3,579
py
Python
tools/ports/libjpeg.py
yunku2002/emscripten
73117286fa8f6230e8f25c1d3658e83ca832ac45
[ "MIT" ]
9,724
2015-01-01T02:06:30.000Z
2019-01-17T15:13:51.000Z
tools/ports/libjpeg.py
yunku2002/emscripten
73117286fa8f6230e8f25c1d3658e83ca832ac45
[ "MIT" ]
7,584
2019-01-17T22:58:27.000Z
2022-03-31T23:10:22.000Z
tools/ports/libjpeg.py
yunku2002/emscripten
73117286fa8f6230e8f25c1d3658e83ca832ac45
[ "MIT" ]
1,519
2015-01-01T18:11:12.000Z
2019-01-17T14:16:02.000Z
# Copyright 2014 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. import os import shutil import logging from pathlib import Path VERS...
29.336066
142
0.727298
7961154a5ccfc317c6b8a5292b265644a08da3fc
2,492
py
Python
deepinsight_iqa/data_pipeline/nima_gen/schema/LIVE/get_labels.py
sandyz1000/deepinsight-iqa
1be15ba4bdb005d05d01eddd247de1dafbf3d256
[ "Apache-2.0" ]
2
2021-11-22T15:57:47.000Z
2021-11-23T12:02:56.000Z
deepinsight_iqa/data_pipeline/nima_gen/schema/LIVE/get_labels.py
sandyz1000/deepinsight-iqa
1be15ba4bdb005d05d01eddd247de1dafbf3d256
[ "Apache-2.0" ]
null
null
null
deepinsight_iqa/data_pipeline/nima_gen/schema/LIVE/get_labels.py
sandyz1000/deepinsight-iqa
1be15ba4bdb005d05d01eddd247de1dafbf3d256
[ "Apache-2.0" ]
1
2022-02-05T03:19:31.000Z
2022-02-05T03:19:31.000Z
import os import argparse import numpy as np import pandas as pd import json from maxentropy.skmaxent import MinDivergenceModel def load_json(file_path): with open(file_path, 'r') as f: return json.load(f) def save_json(data, target_file, prefix=""): with open(f"{prefix}_{target_file}", 'w') as f: ...
29.317647
116
0.681782
79611589dac4274d53fcf168c8b914df34e5532a
7,285
py
Python
find_best_model.py
liuwen-ts/Speech_emotion_recognition_BLSTM
2f10b5687da63ac3885eb1ca4f222a7b9cd424dd
[ "MIT" ]
245
2018-04-14T05:55:41.000Z
2022-03-26T16:17:11.000Z
find_best_model.py
xingcheng1994/Speech_emotion_recognition_BLSTM
4a40968c130f81e80612f4aafcf5dcc56539e020
[ "MIT" ]
22
2018-05-03T08:54:28.000Z
2022-03-22T09:21:40.000Z
find_best_model.py
xingcheng1994/Speech_emotion_recognition_BLSTM
4a40968c130f81e80612f4aafcf5dcc56539e020
[ "MIT" ]
84
2018-06-03T09:41:55.000Z
2022-03-23T07:36:36.000Z
from optparse import OptionParser from utility import globalvars from utility.audio import extract_dataset from dataset import Dataset from keras.layers import Input, Dense, Masking, Dropout, LSTM, Bidirectional, Activation from keras.layers.merge import dot from keras.models import Model, load_model from keras.utils...
36.60804
112
0.643926
796115d5dcde5714c126ff9dd9e30c695069fad9
4,613
py
Python
social_auth/backends/pipeline/user.py
ggreer/django-social-auth
2df9029ba2db34661b3542778de9e8d329fd7044
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-06-14T11:09:42.000Z
2021-06-14T11:09:42.000Z
social_auth/backends/pipeline/user.py
ggreer/django-social-auth
2df9029ba2db34661b3542778de9e8d329fd7044
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
social_auth/backends/pipeline/user.py
ggreer/django-social-auth
2df9029ba2db34661b3542778de9e8d329fd7044
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 from social_auth.utils import setting, module_member from social_auth.models import UserSocialAuth slugify = module_member(setting('SOCIAL_AUTH_SLUGIFY_FUNCTION', 'django.template.defaultfilters.slugify')) def get_username(details, user=None, ...
35.75969
78
0.648168
7961167e196aea4410366d007c705066a653427f
2,301
py
Python
sommelier/logging/logger.py
Cobalt0s/sommelier
d64943a5d7be4ecdf08aa18e9f184b757e408425
[ "MIT" ]
null
null
null
sommelier/logging/logger.py
Cobalt0s/sommelier
d64943a5d7be4ecdf08aa18e9f184b757e408425
[ "MIT" ]
null
null
null
sommelier/logging/logger.py
Cobalt0s/sommelier
d64943a5d7be4ecdf08aa18e9f184b757e408425
[ "MIT" ]
null
null
null
import json class Judge: def __init__(self, context): self.context = context def expectation(self, condition, message, extra_details=None, api_enhancements=True): if condition: return if api_enhancements: log_info(self.context, f'Request {self.context.request...
26.147727
94
0.590613
796116f49c88ca0e0585602f4bb3c06f31dbe3f3
16,361
py
Python
FromESRI/PPA2/PPAv1.0/RegionCommType_Calcs/getMasterTable_region_bikwyfix.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
FromESRI/PPA2/PPAv1.0/RegionCommType_Calcs/getMasterTable_region_bikwyfix.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
FromESRI/PPA2/PPAv1.0/RegionCommType_Calcs/getMasterTable_region_bikwyfix.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
''' Purpose - create tabular data table with PPA projects as rows and metrics as columns. Metrics are in excel sheet Q:\ProjectLevelPerformanceAssessment\DataLayers_Proof_of_Concept\Spreadsheet\RawDataTableLayout.xlsx 11/20/2017: Made this just a module. If user wants region-level data they can bring in the...
35.41342
145
0.725811
796117655a4ac76e374a39586b9de2edd687761c
1,081
py
Python
2021/14/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
22
2019-12-13T20:41:52.000Z
2022-01-05T00:19:21.000Z
2021/14/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
null
null
null
2021/14/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
13
2019-12-21T02:35:19.000Z
2022-02-14T09:37:01.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2021 Akumatic from code import part1, part2, read_file, count def count_chars(s: str) -> dict: cnt = dict() for c in s: if c in cnt: cnt[c] += 1 else: cnt[c] = 1 return cnt def test(): vals = read_file("test_input....
30.027778
105
0.614246
796119086bb6e798b4773144da32fe4ea954ed99
2,978
py
Python
data/globs.py
Skorpio-X/Laenderquiz
e222af3ab251d4a119260f89c2ec982dd7597bff
[ "MIT" ]
null
null
null
data/globs.py
Skorpio-X/Laenderquiz
e222af3ab251d4a119260f89c2ec982dd7597bff
[ "MIT" ]
null
null
null
data/globs.py
Skorpio-X/Laenderquiz
e222af3ab251d4a119260f89c2ec982dd7597bff
[ "MIT" ]
null
null
null
"""Globals constants.""" import pygame import os import gettext en = gettext.translation('quiz', localedir='locale', languages=['en']) en.install() pygame.init() pygame.font.init() BLACK = (0, 0, 0) RED = (210, 73, 0) BLUE = (30, 70, 170) GREEN = (0, 90, 0) WHITE = (255, 255, 255) WINDOW_WIDTH = 800 WINDOW_HEIGHT ...
33.088889
91
0.676629
79611ae194866497e8b96184cf13bff468ee0cac
396
py
Python
app/website/routes.py
nox-noctua-consulting/peon-ui
0f3128c76c76505c2ba8f4e1ddd68087bacf91a8
[ "MIT" ]
1
2022-03-23T17:48:39.000Z
2022-03-23T17:48:39.000Z
app/website/routes.py
nox-noctua-consulting/peon-ui
0f3128c76c76505c2ba8f4e1ddd68087bacf91a8
[ "MIT" ]
null
null
null
app/website/routes.py
nox-noctua-consulting/peon-ui
0f3128c76c76505c2ba8f4e1ddd68087bacf91a8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # IMPORT import inspect from flask import Blueprint,render_template # Blueprint is a module for neatening up app routes from flask_login import login_required, current_user # VARIABLES routes = Blueprint('routes', __name__) # Define a blueprint for views # APP ROUTES (URLs) @routes.route('/') # Deco...
33
95
0.772727
79611b3d149f4aabec7aeb3218d0e3ec589998a7
1,757
py
Python
models-ae/export_as_onnx.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
69
2021-06-01T03:19:12.000Z
2022-03-26T00:14:20.000Z
models-ae/export_as_onnx.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
null
null
null
models-ae/export_as_onnx.py
hgl71964/PET
4cedb25c5dce0c49eebb693125235fc4ad1e26f8
[ "Apache-2.0" ]
4
2021-07-10T07:21:11.000Z
2022-02-06T18:56:56.000Z
import torch import torchvision.models as models from berts import Bert from dilated_onnx import csrnet # 330 330 inception # 224 224 other # 16 1 # resnet inception import argparse # model_list = ["resnet18", "inception", "bert-opt", "bert-onnx", "csrnet"] model_list = ["resnet18", "inception", "bert", "csrnet"] bat...
34.45098
78
0.650541
79611bc695579a7b1640db5e0f0a6ccf9ea52758
10,834
py
Python
pytorch/pytorchcv/models/peleenet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
pytorch/pytorchcv/models/peleenet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
pytorch/pytorchcv/models/peleenet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
""" PeleeNet, implemented in PyTorch. Original paper: 'Pelee: A Real-Time Object Detection System on Mobile Devices,' https://arxiv.org/abs/1804.06882. """ __all__ = ['PeleeNet', 'peleenet'] import os import torch import torch.nn as nn import torch.nn.init as init from .common import conv1x1_block, conv3x3_bl...
28.435696
117
0.58381
79611c5c2de8ef5098feb8fdd8f0271f18113662
317
py
Python
Course-2:Graphs/shortest_path.py
karenk1010/Coursera-Algorithms-Specialization
5d293ff6e74e7d6f2090696d21d282e1734f396a
[ "MIT" ]
null
null
null
Course-2:Graphs/shortest_path.py
karenk1010/Coursera-Algorithms-Specialization
5d293ff6e74e7d6f2090696d21d282e1734f396a
[ "MIT" ]
null
null
null
Course-2:Graphs/shortest_path.py
karenk1010/Coursera-Algorithms-Specialization
5d293ff6e74e7d6f2090696d21d282e1734f396a
[ "MIT" ]
2
2021-02-04T22:20:15.000Z
2021-02-11T13:27:24.000Z
#!/usr/bin/python3 """ Implement Dijkstra's shortest path algorithm using 'dijkstraData.txt' graph. Source Vertex = 1. Report shortest path distance to the following vertices in the same order: 7,37,59,82,99,115,133,165,188,197 Problem answer: [2599, 2610, 2947, 2052, 2367, 2399, 2029, 2442, 2505, 3068] """
24.384615
76
0.722397
79611d46ccb091be62c714799703c03fd7c45a4a
28,159
py
Python
datacube/utils/geometry/_base.py
otto-AMA/datacube-core
b5ef5bb8d303a73bebdeca5b80486265067bbcb3
[ "Apache-2.0" ]
null
null
null
datacube/utils/geometry/_base.py
otto-AMA/datacube-core
b5ef5bb8d303a73bebdeca5b80486265067bbcb3
[ "Apache-2.0" ]
null
null
null
datacube/utils/geometry/_base.py
otto-AMA/datacube-core
b5ef5bb8d303a73bebdeca5b80486265067bbcb3
[ "Apache-2.0" ]
null
null
null
import functools import math from collections import namedtuple, OrderedDict from typing import Tuple, Callable import cachetools import numpy from affine import Affine from osgeo import ogr, osr from .tools import roi_normalise, roi_shape Coordinate = namedtuple('Coordinate', ('values', 'units')) _BoundingBox = nam...
29.362878
118
0.610427
79611df87f1befdc9640090332d77e4a81494bca
7,165
py
Python
examples/viz_dataset/plot_visualizers.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
5
2020-10-07T14:34:32.000Z
2021-11-17T11:25:06.000Z
examples/viz_dataset/plot_visualizers.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
94
2020-07-31T17:34:23.000Z
2022-02-11T21:57:09.000Z
examples/viz_dataset/plot_visualizers.py
ondrejdyck/sidpy
779034440b8233e1dae609a58a64ce2d25ca41c0
[ "MIT" ]
15
2020-08-16T14:22:47.000Z
2021-08-20T18:15:37.000Z
""" ================================================================================ Plotting Datasets ================================================================================ **Gerd Duscher** 08/25/2020 **Please download this example and run it as a notebook by scrolling to the bottom of this page** """ # E...
37.710526
145
0.583391
79611dfa4a1487ad3ee11bb886d4b8b0188dbaf7
263
py
Python
testserver.py
Tur8008/django-markitup
e2f2b27e0198a091ee079e0ccb8ee2580467354d
[ "BSD-3-Clause" ]
19
2015-11-17T15:41:02.000Z
2022-02-14T06:58:12.000Z
testserver.py
Tur8008/django-markitup
e2f2b27e0198a091ee079e0ccb8ee2580467354d
[ "BSD-3-Clause" ]
16
2015-11-26T00:52:30.000Z
2020-02-10T09:46:03.000Z
testserver.py
Tur8008/django-markitup
e2f2b27e0198a091ee079e0ccb8ee2580467354d
[ "BSD-3-Clause" ]
21
2015-11-10T20:48:43.000Z
2020-03-25T19:35:14.000Z
#!/usr/bin/env python import os, sys if __name__ == '__main__': os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.project.settings' from django.core.management import execute_from_command_line execute_from_command_line(['./testserver.py', 'runserver'])
29.222222
67
0.745247
79611fc874fd39616561ca75552548dc28cb6a51
1,015
py
Python
data/registry_model/label_handlers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
data/registry_model/label_handlers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
data/registry_model/label_handlers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import logging from util.timedeltastring import convert_to_timedelta logger = logging.getLogger(__name__) LABEL_EXPIRY_KEY = "quay.expires-after" def _expires_after(label_dict, manifest, model): """ Sets the expiration of a manifest based on the quay.expires-in label. """ try: timedelta = ...
26.710526
88
0.722167
796120636d5d933690b50974da223c9581afba49
1,253
py
Python
src/usaspending_client/utils.py
jeff-tilton/usaspending_client
dbde16f89ce0bd171bd393692b938000f90f4a7b
[ "MIT" ]
null
null
null
src/usaspending_client/utils.py
jeff-tilton/usaspending_client
dbde16f89ce0bd171bd393692b938000f90f4a7b
[ "MIT" ]
null
null
null
src/usaspending_client/utils.py
jeff-tilton/usaspending_client
dbde16f89ce0bd171bd393692b938000f90f4a7b
[ "MIT" ]
null
null
null
from functools import wraps def log_decorator(logger, level=10): def real_decorator(function): @wraps(function) def wrapper(*args, **kwargs): name = function.__name__ logger.log(level=level, msg=f"Start {name}") out = function(*args, **kwargs) logger...
32.128205
126
0.596967
79612099e77501019f2ef5090e0826dfc0194045
3,699
py
Python
addons/stock/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/stock/__manifest__.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Inventory', 'version': '1.1', 'summary': 'Manage your stock and logistics activities', 'description': "", 'website': 'https://www.odoo.com/page/warehouse', 'depends': ['product', 'barco...
37.363636
74
0.660178
7961214a6c45562e382b38f45e2577544161fbb1
1,008
py
Python
stonks/__main__.py
WattsUp/PyStonks
e988c74846362b299544ff7dce5e151f28c32b19
[ "MIT" ]
2
2021-07-02T14:35:06.000Z
2022-01-03T02:50:36.000Z
stonks/__main__.py
WattsUp/PyStonks
e988c74846362b299544ff7dce5e151f28c32b19
[ "MIT" ]
null
null
null
stonks/__main__.py
WattsUp/PyStonks
e988c74846362b299544ff7dce5e151f28c32b19
[ "MIT" ]
1
2020-06-27T02:47:12.000Z
2020-06-27T02:47:12.000Z
#!/usr/bin/env python ## Trading bot programs import sys if sys.version_info[0] != 3 or sys.version_info[1] < 6: print("This script requires Python version >=3.6") sys.exit(1) import bench import live import prune import test if __name__ == "__main__": if len(sys.argv) < 2: mode = None else: mode = sy...
26.526316
80
0.656746
796121cae019a4aaaeeaf8e4b228e2519021dba2
208
py
Python
PythonExercicio/ex057.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/ex057.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/ex057.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
sexo = "" while sexo != "M" and sexo != "F": sexo = str(input("Digite o sexo da pessoa (M/F): ")) if sexo == "M": print("O sexo da pessoa é masculino.") else: print("O sexo da pessoa é feminino.")
29.714286
56
0.581731
79612209a1b442ea05758e812c096ce8c2170da7
4,499
py
Python
src/datasets/covid19_v1.py
JanAlexanderPersonal/covid19_weak_supervision
5599e48c9945f1e08a2731740bc8f6e44a031703
[ "Apache-2.0" ]
36
2020-06-30T01:17:47.000Z
2022-03-25T16:42:42.000Z
src/datasets/covid19_v1.py
JanAlexanderPersonal/covid19_weak_supervision
5599e48c9945f1e08a2731740bc8f6e44a031703
[ "Apache-2.0" ]
3
2020-08-05T09:32:09.000Z
2021-01-29T18:38:47.000Z
src/datasets/covid19_v1.py
JanAlexanderPersonal/covid19_weak_supervision
5599e48c9945f1e08a2731740bc8f6e44a031703
[ "Apache-2.0" ]
12
2020-07-19T09:49:16.000Z
2022-01-08T02:49:22.000Z
import glob, torch from haven import haven_utils as hu import numpy as np import os from PIL import Image import torch.utils.data as data import torchvision.transforms as transforms import kornia.augmentation as K import PIL class COVIDDataset(data.Dataset): def __init__(self, split, datadir, exp_dict): i...
34.343511
105
0.53523
796123e48679337663dbf2818bc94bd122993004
8,998
py
Python
ssqueezepy/_ssq_stft.py
OverLordGoldDragon/ssqueezepy
b08fcb84dbc526245c66eb3bf5e441e04b87da23
[ "MIT" ]
271
2020-01-29T05:36:52.000Z
2022-03-30T03:22:38.000Z
ssqueezepy/_ssq_stft.py
OverLordGoldDragon/ssqueezepy
b08fcb84dbc526245c66eb3bf5e441e04b87da23
[ "MIT" ]
40
2020-02-06T20:01:16.000Z
2022-03-31T17:52:56.000Z
ssqueezepy/_ssq_stft.py
OverLordGoldDragon/ssqueezepy
b08fcb84dbc526245c66eb3bf5e441e04b87da23
[ "MIT" ]
49
2020-06-12T06:30:52.000Z
2022-03-28T06:36:12.000Z
# -*- coding: utf-8 -*- import numpy as np from ._stft import stft, get_window, _check_NOLA from ._ssq_cwt import _invert_components, _process_component_inversion_args from .utils.cwt_utils import _process_fs_and_t, infer_scaletype from .utils.common import WARN, EPS32, EPS64 from .utils import backend as S from .utils...
35.992
82
0.60469
7961253a68a89def1f3b9b3688e28ff97b834788
18,923
py
Python
coremltools/converters/mil/mil/ops/defs/elementwise_unary.py
alkoumpa/coremltools
0f0b24254fd9804402c2eaab77f74e8850e3ec05
[ "BSD-3-Clause" ]
1
2020-12-17T22:26:35.000Z
2020-12-17T22:26:35.000Z
coremltools/converters/mil/mil/ops/defs/elementwise_unary.py
alkoumpa/coremltools
0f0b24254fd9804402c2eaab77f74e8850e3ec05
[ "BSD-3-Clause" ]
75
2020-11-24T05:37:45.000Z
2022-02-25T15:14:23.000Z
coremltools/converters/mil/mil/ops/defs/elementwise_unary.py
alkoumpa/coremltools
0f0b24254fd9804402c2eaab77f74e8850e3ec05
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import scipy from ._op_reqs import * """ Elementwise Unary Op Superclass """ class elementwise_una...
21.926999
86
0.549226
79612787ce1b2e7fca0e522066a7d263240b232a
12,903
py
Python
chainercv/links/model/ssd/ssd_vgg16.py
apple2373/chainercv
1442eac6a316c31eab029c156b6d6e151553be2a
[ "MIT" ]
1
2018-12-05T04:30:10.000Z
2018-12-05T04:30:10.000Z
chainercv/links/model/ssd/ssd_vgg16.py
apple2373/chainercv
1442eac6a316c31eab029c156b6d6e151553be2a
[ "MIT" ]
null
null
null
chainercv/links/model/ssd/ssd_vgg16.py
apple2373/chainercv
1442eac6a316c31eab029c156b6d6e151553be2a
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np import chainer import chainer.functions as F from chainer import initializers import chainer.links as L from chainercv.links.model.ssd import Multibox from chainercv.links.model.ssd import Normalize from chainercv.links.model.ssd import SSD from chainercv import uti...
37.291908
79
0.580718
7961282027afda08f6c11e0f316d4374c8a135ec
402
py
Python
htxaarhuslan/wsgi.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
1
2019-09-06T10:28:40.000Z
2019-09-06T10:28:40.000Z
htxaarhuslan/wsgi.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
2
2018-10-22T10:33:04.000Z
2019-01-31T19:36:04.000Z
htxaarhuslan/wsgi.py
jsmnbom/htxaarhuslan
5244c4e65f4912c5d2e193f1ac355b3206d1c1b8
[ "MIT" ]
1
2019-09-06T10:28:41.000Z
2019-09-06T10:28:41.000Z
""" WSGI config for htxaarhuslan project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO...
23.647059
78
0.791045
796129233b3a47d41db9964ca6de92d18e1dc6b5
5,146
py
Python
networking_ovn/tests/functional/test_trunk_driver.py
cubeek/networking-ovn
b7188dab568d65b87379681213aaaf3c7db5cd8c
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/test_trunk_driver.py
cubeek/networking-ovn
b7188dab568d65b87379681213aaaf3c7db5cd8c
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/test_trunk_driver.py
cubeek/networking-ovn
b7188dab568d65b87379681213aaaf3c7db5cd8c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 DT Dream Technology 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 applica...
43.982906
79
0.595025
79612a13c362b46538d4016ac7095ebf3e0b3276
8,880
py
Python
ckan/tests/model/test_user.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
1
2021-10-01T12:47:19.000Z
2021-10-01T12:47:19.000Z
ckan/tests/model/test_user.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/model/test_user.py
robin-NEC/ckan
71a82c4b0bb499fd3a6d1ccfd038b2231f50f92a
[ "BSD-3-Clause" ]
2
2018-01-21T17:03:08.000Z
2019-07-23T08:49:52.000Z
# encoding: utf-8 import os import hashlib import pytest import six from passlib.hash import pbkdf2_sha512 import ckan.model as model import ckan.tests.factories as factories def _set_password(password): """Copy of the old password hashing function This is needed to create old password hashes in the test...
34.153846
81
0.653491
79612abd4da04445b017bb6165f75171a126fa2d
7,120
py
Python
fondInformatica/python/image_cutter_+_istogramma.py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
fondInformatica/python/image_cutter_+_istogramma.py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
fondInformatica/python/image_cutter_+_istogramma.py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
import cImage as image import turtle def pixel_grigi(immagine,lista): img = image.Image(immagine) for riga in range(img.getHeight()): for colonna in range(img.getWidth()): p = img.getPixel(colonna,riga) media=(p.getRed()+p.getGreen()+p.getBlue())//3 lista[media]+=1 ...
29.790795
103
0.558427
79612c3b69fcdb2b58b533491d607e3ee2dff743
5,256
py
Python
scripts/sanity_tests_without_euca.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/sanity_tests_without_euca.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/sanity_tests_without_euca.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
# Need to import path to test/fixtures and test/scripts/ # Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/' # # To run tests, you can do 'python sanity_tests.py'. To run specific tests, # You can do 'python -m testtools.run -l tests' # Set the env variable PARAMS_FILE to point to your ini file. E...
45.310345
105
0.768645
79612c4fd701eb66d9d62df8733de12848a65690
399
py
Python
docker/python/app/src/schemes/project.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
docker/python/app/src/schemes/project.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
docker/python/app/src/schemes/project.py
morisakigogogo/python-react-demo
656299a200479bc5b508c6d15ad8d4cfbb0c7fe0
[ "MIT" ]
null
null
null
from ._base import ModelSchema from ..models import Project class ProjectScheme(ModelSchema): class Meta: model = Project # project_type = fields.Method('_project_type') # # @staticmethod # def _project_type(obj): # if isinstance(obj.content_type, ProjectType): # retur...
23.470588
55
0.641604
79612e0f6128deb9da3e321d20c8ec92e3643d76
381
py
Python
basic/flagging/admin.py
neechadi/django-basic-apps
3a90090857549ea4198a72c44f45f6edb238e2a8
[ "BSD-3-Clause" ]
548
2015-01-02T21:41:29.000Z
2022-03-23T09:10:04.000Z
basic/flagging/admin.py
neechadi/django-basic-apps
3a90090857549ea4198a72c44f45f6edb238e2a8
[ "BSD-3-Clause" ]
4
2015-01-13T16:27:02.000Z
2016-11-01T01:51:31.000Z
basic/flagging/admin.py
neechadi/django-basic-apps
3a90090857549ea4198a72c44f45f6edb238e2a8
[ "BSD-3-Clause" ]
182
2015-01-02T21:41:29.000Z
2021-08-09T07:01:07.000Z
from django.contrib import admin from basic.flagging.models import * class FlagTypeAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} admin.site.register(FlagType, FlagTypeAdmin) class FlagAdmin(admin.ModelAdmin): list_display = ('object', 'flag_type') list_filter = ('flag_type',) r...
27.214286
46
0.732283
79612f2794c1da3be1e55cd63bcf4f98020a9388
11,334
py
Python
tests/show/test_show_show.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
null
null
null
tests/show/test_show_show.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
1
2022-01-17T04:25:49.000Z
2022-01-17T04:25:49.000Z
tests/show/test_show_show.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # vim: set noai syntax=python ts=4 sw=4: # # Copyright (c) 2018-2021 Linh Pham # wwdtm is released under the terms of the Apache License 2.0 """Testing for object :py:class:`wwdtm.show.Show` """ import json from typing import Any, Dict import pytest from wwdtm.show import Show @pytest.mark.sk...
36.918567
83
0.684401