hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
db5f51cdfbef8d5427d5e4992a2c3feafa39d505
1,374
py
Python
protocols/mixcolors.py
multiplex-bio/first_steps
1acf3d7d2cc199fb791d61fffa4ed79bd00b8cbd
[ "MIT" ]
null
null
null
protocols/mixcolors.py
multiplex-bio/first_steps
1acf3d7d2cc199fb791d61fffa4ed79bd00b8cbd
[ "MIT" ]
null
null
null
protocols/mixcolors.py
multiplex-bio/first_steps
1acf3d7d2cc199fb791d61fffa4ed79bd00b8cbd
[ "MIT" ]
null
null
null
from opentrons import protocol_api #from opentrons import simualte #opentrons_simulate.exe my_protocol.py ## Metadata metadata = { 'protocolName': 'Creating Green', 'author': 'B. Valderrama>', 'description': 'Mixing water with dyers to make green', 'apiLevel': '2.10' } ## Protocol run def run(protocol...
22.9
88
0.666667
8bbb6c7e6f8520957b47915b4fe386d8bd61da9c
12,346
py
Python
bugswarm/analyzer/log_file_analyzer.py
lxylxy123456/bugswarm
522ea76ede28811463efda7551509f07b3951961
[ "BSD-3-Clause" ]
18
2019-12-27T06:53:39.000Z
2022-03-03T03:05:35.000Z
bugswarm/analyzer/log_file_analyzer.py
lxylxy123456/bugswarm
522ea76ede28811463efda7551509f07b3951961
[ "BSD-3-Clause" ]
13
2020-01-10T17:11:38.000Z
2021-12-13T20:34:38.000Z
bugswarm/analyzer/log_file_analyzer.py
lxylxy123456/bugswarm
522ea76ede28811463efda7551509f07b3951961
[ "BSD-3-Clause" ]
10
2020-01-10T17:36:57.000Z
2021-09-13T19:51:43.000Z
""" Provides general language-independent Analyzer for Travis build log files. Dynamically mixes-in the most specific language Analyzer from the languages packages. If no specific Analyzer is found, it provides basic statistics about any build process on Travis. """ import re from bugswarm.common import log class L...
40.745875
119
0.579702
fe37aa97e5b2b1a606e211a65a3a13e838b9fe57
5,276
py
Python
nadmin/views/form.py
A425/django-xadmin-1.8
9ab06192311b22ec654778935ce3e3c5ffd39a00
[ "MIT" ]
1
2015-10-10T08:04:26.000Z
2015-10-10T08:04:26.000Z
nadmin/views/form.py
A425/django-xadmin-1.8
9ab06192311b22ec654778935ce3e3c5ffd39a00
[ "MIT" ]
1
2016-03-25T01:41:36.000Z
2016-03-25T01:41:36.000Z
nadmin/views/form.py
A425/django-xadmin-1.8
9ab06192311b22ec654778935ce3e3c5ffd39a00
[ "MIT" ]
null
null
null
import copy from django import forms from django.contrib.contenttypes.models import ContentType from django.core.exceptions import PermissionDenied from django.db import models, transaction from django.forms.models import modelform_factory from django.http import Http404, HttpResponseRedirect from django.template.resp...
30.148571
113
0.632108
decd5c253db6a6e8dfe24c9443df492e3a030129
986
py
Python
isi_sdk_8_1_0/test/test_node_driveconfig_node_reboot.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_0/test/test_node_driveconfig_node_reboot.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_0/test/test_node_driveconfig_node_reboot.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 5 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_0 from i...
24.04878
109
0.730223
b559a223c38c3d2dda7682b7da366f208c8e4be3
20,761
py
Python
HNC_github/util/trainer_dhp.py
JM-IP/HNC
d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a
[ "Apache-2.0" ]
3
2022-01-10T10:05:35.000Z
2022-02-14T08:06:27.000Z
HNC_github/util/trainer_dhp.py
JM-IP/HNC
d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a
[ "Apache-2.0" ]
null
null
null
HNC_github/util/trainer_dhp.py
JM-IP/HNC
d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a
[ "Apache-2.0" ]
null
null
null
# This module is used for differentiable meta pruning via hypernetworks. from util import utility import torch import torch.nn as nn from tqdm import tqdm from model.in_use.flops_counter import get_model_flops from model_dhp.flops_counter_dhp import get_flops, get_flops_prune_only, get_parameters_prune_only, \ get_...
54.634211
137
0.556669
8b9ffaf0e64be353fd8ec6cea04709b7999d85e6
2,203
py
Python
tests/test_collaboration.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
tests/test_collaboration.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
tests/test_collaboration.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import unittest import requests_mock from canvasapi import Canvas from canvasapi.collaboration import Collaboration, Collaborator from canvasapi.paginated_list import PaginatedList from tests import settings from tests.util import regi...
33.378788
82
0.629142
5a85534f87dc19b66a6d760f25d2e2dd1049a193
1,565
py
Python
floodsystem/plot.py
SohamK2111/PartIA-Flood-Warning-System
43bdb4b6b9b65c30d59b5652fcc6b605d37a8e46
[ "MIT" ]
null
null
null
floodsystem/plot.py
SohamK2111/PartIA-Flood-Warning-System
43bdb4b6b9b65c30d59b5652fcc6b605d37a8e46
[ "MIT" ]
null
null
null
floodsystem/plot.py
SohamK2111/PartIA-Flood-Warning-System
43bdb4b6b9b65c30d59b5652fcc6b605d37a8e46
[ "MIT" ]
null
null
null
import matplotlib from matplotlib import pyplot import numpy as np import matplotlib.pyplot as plt #from floodsystem.analysis import polyfit from floodsystem.datafetcher import fetch_latest_water_level_data, fetch_measure_levels from datetime import datetime, timedelta def plot_water_level_with_fit(station, dates, ...
30.096154
127
0.696486
724d2820805251dd18344026b3e244db3432fa13
690
py
Python
cGP/DGM4.py
liuyangzhuan/cGP
21335966264d931d00fd2c48f45aedb63e37299c
[ "BSD-3-Clause-LBNL" ]
1
2021-04-07T05:41:08.000Z
2021-04-07T05:41:08.000Z
cGP/DGM4.py
liuyangzhuan/cGP
21335966264d931d00fd2c48f45aedb63e37299c
[ "BSD-3-Clause-LBNL" ]
null
null
null
cGP/DGM4.py
liuyangzhuan/cGP
21335966264d931d00fd2c48f45aedb63e37299c
[ "BSD-3-Clause-LBNL" ]
1
2022-01-26T17:51:25.000Z
2022-01-26T17:51:25.000Z
import numpy as np from sklearn.cluster import KMeans from sklearn.mixture import BayesianGaussianMixture def f_Cluster(RND_SEED): #return KMeans(n_clusters=N_COMPONENTS, # random_state=RND_SEED) return BayesianGaussianMixture( #weight_concentration_prior_type="dirichlet_dis...
40.588235
84
0.72029
74342ce03f68d4fc1d46949c1483e94219ae3f2c
6,618
py
Python
tests/test_impersonated_credentials.py
salrashid123/google-auth-library-python
fadb16c6794c550d49f92f433a662d69873ac171
[ "Apache-2.0" ]
1
2019-11-06T22:05:44.000Z
2019-11-06T22:05:44.000Z
tests/test_impersonated_credentials.py
salrashid123/google-auth-library-python
fadb16c6794c550d49f92f433a662d69873ac171
[ "Apache-2.0" ]
null
null
null
tests/test_impersonated_credentials.py
salrashid123/google-auth-library-python
fadb16c6794c550d49f92f433a662d69873ac171
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
32.282927
79
0.676942
9e68b928ab1b49f1792a177dbbb664d381bbbb8b
6,532
py
Python
tests/core/test_storage.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
tests/core/test_storage.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
tests/core/test_storage.py
hafeez3000/kinto
2b741cf3f34dbb532b595caa4dbb9de2a991938d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import mock from kinto.core.utils import sqlalchemy from kinto.core.storage import generators, memory, postgresql, exceptions, StorageBase from kinto.core.testing import (unittest, skip_if_no_postgresql) from kinto.core.storage.testing import StorageTest class GeneratorTest(unittest.TestCase...
37.325714
86
0.658298
893169b4a1ca03426b196e6d0e4dc562ea589214
4,201
py
Python
ptvs_virtualenv_proxy.py
jordanelizaga/uatennis
be3abd554c961d24dc9d79d5a011856e677bf17c
[ "MIT" ]
8
2017-05-04T18:00:48.000Z
2021-03-17T18:34:07.000Z
ptvs_virtualenv_proxy.py
jordanelizaga/uatennis
be3abd554c961d24dc9d79d5a011856e677bf17c
[ "MIT" ]
4
2017-05-06T00:21:35.000Z
2017-05-06T00:28:38.000Z
ptvs_virtualenv_proxy.py
ConnectionMaster/ALTAR
dcf907b88e8f676e8207efa6bc24321429c1608d
[ "MIT" ]
3
2017-06-17T03:55:12.000Z
2021-12-03T07:13:25.000Z
# ############################################################################ # # Copyright (c) Microsoft Corporation. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of this distribution. If ...
34.154472
98
0.619852
c6c66cfe12cc8d3464763e3ee5ee37bca9fc6f68
5,763
py
Python
docs/conf.py
nborsato/petitRADTRANS
2df983bc46b892486b1b035d7c6933ab46f0d36c
[ "MIT" ]
null
null
null
docs/conf.py
nborsato/petitRADTRANS
2df983bc46b892486b1b035d7c6933ab46f0d36c
[ "MIT" ]
null
null
null
docs/conf.py
nborsato/petitRADTRANS
2df983bc46b892486b1b035d7c6933ab46f0d36c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.983871
104
0.648447
67fd9dea36b5aa76847e0d435923adcb7addba39
6,253
py
Python
deepclean/main.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
1
2020-04-25T20:10:14.000Z
2020-04-25T20:10:14.000Z
deepclean/main.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
null
null
null
deepclean/main.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
null
null
null
import os, copy, cv2, imageio import matplotlib.pyplot as plt import matplotlib.image as mpimg from PIL import Image import numpy as np class Data(object): """ A base class for text, image data (and speech). It implements basic methods to provide support for child class. ... Attributes ------...
24.330739
100
0.502319
07de1bfaf9467ce207e8fdad7b93ae935c3f999a
8,737
py
Python
atom/nucleus/python/nucleus_api/models/page_goal_track.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/nucleus/python/nucleus_api/models/page_goal_track.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/nucleus/python/nucleus_api/models/page_goal_track.py
ShekharPaatni/SDK
6534ffdb63af87c02c431df9add05a90370183cb
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.4 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
26.316265
194
0.575255
9dfaff6aac8283af560458fb0bdda1993b1f8a76
2,862
py
Python
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListGatewayRouteTableEntriesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListGatewayRouteTableEntriesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/ListGatewayRouteTableEntriesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.775
87
0.780573
ac187411e966bf2d14c57cb88d73eee4aac46dff
3,927
py
Python
ingenico/connect/sdk/domain/payout/definitions/payout_result.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
12
2016-09-26T21:46:31.000Z
2020-12-23T18:44:54.000Z
ingenico/connect/sdk/domain/payout/definitions/payout_result.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
3
2020-05-02T16:53:02.000Z
2020-06-02T12:49:51.000Z
ingenico/connect/sdk/domain/payout/definitions/payout_result.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
11
2017-07-16T00:55:28.000Z
2021-09-24T17:00:49.000Z
# -*- coding: utf-8 -*- # # This class was auto-generated from the API references found at # https://epayments-api.developer-ingenico.com/s2sapi/v1/ # from ingenico.connect.sdk.domain.definitions.abstract_order_status import AbstractOrderStatus from ingenico.connect.sdk.domain.definitions.order_status_output import Ord...
41.776596
169
0.67889
6dd839add7873ede387b6c50ae2c6bf6883d5cbb
272
py
Python
coremltools/models/nearest_neighbors/__init__.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
1
2022-02-10T10:54:28.000Z
2022-02-10T10:54:28.000Z
coremltools/models/nearest_neighbors/__init__.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
null
null
null
coremltools/models/nearest_neighbors/__init__.py
LaudateCorpus1/coremltools
777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019, 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 from .builder import KNearestNeighborsClassifierBuilder
38.857143
82
0.779412
97f03a08fc2b61be8ba387e99251b2dbb286ce89
686
py
Python
final_project/server.py
klawik-j/xzceb-flask_eng_fr
578bf1fe7258cf364a29b9ff22f05db863283361
[ "Apache-2.0" ]
null
null
null
final_project/server.py
klawik-j/xzceb-flask_eng_fr
578bf1fe7258cf364a29b9ff22f05db863283361
[ "Apache-2.0" ]
null
null
null
final_project/server.py
klawik-j/xzceb-flask_eng_fr
578bf1fe7258cf364a29b9ff22f05db863283361
[ "Apache-2.0" ]
null
null
null
from machinetranslation import translator from flask import Flask, render_template, request import json import machinetranslation app = Flask("Web Translator") @app.route("/englishToFrench") def englishToFrench(): textToTranslate = request.args.get('textToTranslate') output = translator.englishToFrench(textT...
25.407407
57
0.753644
7584f243798b7295c2515f549c256165e715ef54
2,299
py
Python
Cadastro.py
andrebr45/CadastroPython
3b2d2980e80024468d9566f9093eb8c3f1a152cf
[ "MIT" ]
null
null
null
Cadastro.py
andrebr45/CadastroPython
3b2d2980e80024468d9566f9093eb8c3f1a152cf
[ "MIT" ]
null
null
null
Cadastro.py
andrebr45/CadastroPython
3b2d2980e80024468d9566f9093eb8c3f1a152cf
[ "MIT" ]
null
null
null
#Classe de cores class bcolors: OK = '\033[92m' #GREEN WARNING = '\033[93m' #YELLOW FAIL = '\033[91m' #RED RESET = '\033[0m' #RESET COLOR AZUL = '\033[1;34m ' user = "andre" password = "1234" CPF = ["xxx.xxx.xxx-xx"] #Inicio do Programa en = ("N") while en == ("N") and en!=("S"): print(f'''{bcolo...
28.382716
67
0.515441
22a70c421f9576b2ab54e71fba0a6cf7f517757b
28
py
Python
py_queryable/decorators/__init__.py
viralogic/py-queryable
12034ee04eaa176676df84cb49665c6a9f741f01
[ "MIT" ]
null
null
null
py_queryable/decorators/__init__.py
viralogic/py-queryable
12034ee04eaa176676df84cb49665c6a9f741f01
[ "MIT" ]
1
2018-10-04T22:13:18.000Z
2018-10-18T04:01:59.000Z
py_queryable/decorators/__init__.py
viralogic/py-queryable
12034ee04eaa176676df84cb49665c6a9f741f01
[ "MIT" ]
null
null
null
__author__ = 'Bruce.Fenske'
14
27
0.75
ce302149219d44637eda5704cc5adad25461f7d3
5,271
py
Python
listing/views.py
toddwebsite/preffered_p_plus
a774ab34ef614c77b43b1ff1331f4ff26372d61a
[ "MIT" ]
null
null
null
listing/views.py
toddwebsite/preffered_p_plus
a774ab34ef614c77b43b1ff1331f4ff26372d61a
[ "MIT" ]
null
null
null
listing/views.py
toddwebsite/preffered_p_plus
a774ab34ef614c77b43b1ff1331f4ff26372d61a
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, redirect, render from django.views.generic.detail import DetailView from django.views.generic.list import ListView from django.views.generic.edit import CreateView, UpdateView # from myapp.models import Author from .models import Listing from .forms import ListingCreate...
35.614865
100
0.640675
0879dd05afd3e98255b384f6bc80ad62369b0f3a
2,062
py
Python
lib/music21/ext/nbconvert/transformers/latex.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
2
2016-12-29T04:34:53.000Z
2017-08-01T20:36:18.000Z
lib/music21/ext/nbconvert/transformers/latex.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
null
null
null
lib/music21/ext/nbconvert/transformers/latex.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
null
null
null
"""Module that allows latex output notebooks to be conditioned before they are converted. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the fil...
38.185185
79
0.526188
cfbdc9111ca36284d53f87d12da70fd2ce812ccf
1,884
py
Python
src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/setup.py
colawwj/autorest.az
3606c06491830a3b78443d08f1757314c90128af
[ "MIT" ]
null
null
null
src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/setup.py
colawwj/autorest.az
3606c06491830a3b78443d08f1757314c90128af
[ "MIT" ]
null
null
null
src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/setup.py
colawwj/autorest.az
3606c06491830a3b78443d08f1757314c90128af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
30.885246
94
0.627389
63ff97af7c169ec322cdf12db5b46a6ca5fd9642
267
py
Python
PyCharm/1.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/1.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
PyCharm/1.py
LazarevaDarya/work5
77c29c3453e81995f36c176bb74a610313b882e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': m = int x = int(input("Value of x? ")) if x < 50: m = 30*x elif x in range(50, 75): m = 50*x elif x in range(75, 90): m = 65*x else: m = (70*x)+20 print(m) exit(1)
14.833333
34
0.505618
1ee5807a65a971c1dc884fc8449e622d0aac2247
2,734
py
Python
targets/Ews.py
Tw1sm/spraycharles
a8c2f024c61c9f21ce836b67826bf52339ab6d98
[ "BSD-3-Clause" ]
41
2019-09-23T11:21:26.000Z
2022-03-30T23:00:34.000Z
targets/Ews.py
puzzlepeaches/spraycharles
a3582ce083b80431f5cc40b8a1034ef4f7631f6b
[ "BSD-3-Clause" ]
6
2021-03-14T13:05:36.000Z
2022-03-22T21:27:24.000Z
targets/Ews.py
puzzlepeaches/spraycharles
a3582ce083b80431f5cc40b8a1034ef4f7631f6b
[ "BSD-3-Clause" ]
7
2020-12-09T05:00:25.000Z
2022-03-30T19:31:37.000Z
import requests from requests_ntlm import HttpNtlmAuth import csv class Ews: def __init__(self, host, port, timeout, fireprox): self.timeout = timeout self.url = f'https://{host}:{port}/ews' if fireprox: self.url = f'https://{fireprox}/fireprox/ews' self.headers = { ...
31.790698
142
0.573153
3d492cec7b6d3580d9170c31ac68819cf5b52d34
424
py
Python
src/Main.py
ytyaru/GitHub.Pagenation.20170125074530829
dab69a0aa0c9c9078c4d43dbe7cbb75c61a2f1b9
[ "CC0-1.0" ]
null
null
null
src/Main.py
ytyaru/GitHub.Pagenation.20170125074530829
dab69a0aa0c9c9078c4d43dbe7cbb75c61a2f1b9
[ "CC0-1.0" ]
null
null
null
src/Main.py
ytyaru/GitHub.Pagenation.20170125074530829
dab69a0aa0c9c9078c4d43dbe7cbb75c61a2f1b9
[ "CC0-1.0" ]
null
null
null
from github import GitHub import json username = "github_username" db_path_account = "C:/GitHub.Accounts.sqlite3" db_path_api = "C:/GitHub.Apis.sqlite3" g = GitHub.GitHub(db_path_account, db_path_api, username) res = g.repo.list(type='all', sort='created', direction='asc', per_page=100) with open('GiHubApi.Repositor...
30.285714
87
0.724057
abfdb8ac17552d103932bad42a23eb2a82353f68
22,335
py
Python
forte/models/ner/conditional_random_field.py
jzpang/forte
489fb9cafba6faf5739bda935836b61b5e3d02b6
[ "Apache-2.0" ]
163
2019-11-01T19:25:40.000Z
2022-03-30T22:49:45.000Z
forte/models/ner/conditional_random_field.py
jzpang/forte
489fb9cafba6faf5739bda935836b61b5e3d02b6
[ "Apache-2.0" ]
633
2019-11-01T20:07:08.000Z
2022-03-31T23:11:20.000Z
forte/models/ner/conditional_random_field.py
jzpang/forte
489fb9cafba6faf5739bda935836b61b5e3d02b6
[ "Apache-2.0" ]
62
2019-11-01T19:41:33.000Z
2022-03-24T11:14:21.000Z
# Copyright 2019 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
38.376289
80
0.594851
91b40b765ea8b7f79f5e422277045339ef0a19b5
2,576
py
Python
app/libs/crop_face.py
ohmuraken/faces
0d81cfee53649be20dcf8f68c0d394e0942b7a3d
[ "MIT" ]
null
null
null
app/libs/crop_face.py
ohmuraken/faces
0d81cfee53649be20dcf8f68c0d394e0942b7a3d
[ "MIT" ]
null
null
null
app/libs/crop_face.py
ohmuraken/faces
0d81cfee53649be20dcf8f68c0d394e0942b7a3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from os import path import sys import cv2 import numpy COLOR = (255, 255, 255) CASCADE_PATH = "/var/www/7faces/app/libs/data/haarcascade_frontalface_alt2.xml" # CASCADE_PATH = "/usr/share/opencv/haarcascades/haarcascade_frontalface_alt2.xml" def get_crop...
29.953488
82
0.657997
6b41d5f7d50fdbd57587e44effe71a213c56508e
4,091
py
Python
templates/tpl.ios.py
Cobaltians-Fonts/FontasticToCobalt
74d93033428ccc00a0dedf39c244442d5222bbbc
[ "MIT" ]
null
null
null
templates/tpl.ios.py
Cobaltians-Fonts/FontasticToCobalt
74d93033428ccc00a0dedf39c244442d5222bbbc
[ "MIT" ]
null
null
null
templates/tpl.ios.py
Cobaltians-Fonts/FontasticToCobalt
74d93033428ccc00a0dedf39c244442d5222bbbc
[ "MIT" ]
null
null
null
from string import Template ### Strings licence = """The MIT License (MIT) Copyright (c) 2015 Cobaltians 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 l...
34.091667
117
0.603275
8de40d039e2700d470822192e1711328a5aededf
2,475
py
Python
fn_url_to_dns/tests/test_funct_url_to_dns.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_url_to_dns/tests/test_funct_url_to_dns.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_url_to_dns/tests/test_funct_url_to_dns.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- """Tests using pytest_resilient_circuits""" import pytest from resilient_circuits.util import get_config_data, get_function_definition from resilient_circuits import SubmitTestFunction, FunctionResult PACKAGE_NAME = "fn_url_to_dns" FUNCTION_NAME = "url_to_dns" # Read the default configuration...
34.375
96
0.720808
394d95e5f4b644eefe5c89672738f6bce0e39b42
204
py
Python
day-1-to-10/1-Band-name-generator.py
fadkeabhi/100-Days-of-Python
6ea0e6b1d105be3d15f337c5aadb5504f8975b3d
[ "Unlicense" ]
null
null
null
day-1-to-10/1-Band-name-generator.py
fadkeabhi/100-Days-of-Python
6ea0e6b1d105be3d15f337c5aadb5504f8975b3d
[ "Unlicense" ]
null
null
null
day-1-to-10/1-Band-name-generator.py
fadkeabhi/100-Days-of-Python
6ea0e6b1d105be3d15f337c5aadb5504f8975b3d
[ "Unlicense" ]
null
null
null
print("Welcome to the Band Name Generator.") street = input("What's name of the city you grew up in?\n") pet = input("What's your pet's name?\n") print("Your band name could be " + street + " " + pet)
25.5
59
0.656863
0f35beee24b7a39a43fdc98c6032474c0b294434
19,662
py
Python
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/utils/trainer_lib.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/utils/trainer_lib.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/utils/trainer_lib.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright Huawei Noah's Ark Lab. """Library for training. See train.py.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import os import random import numpy as np import tensorflow as tf from tensorflow.core.protobuf import...
34.017301
98
0.699115
565281a6c6a1d0e5ba1a7239ba7007d0d244c920
1,045
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/mobile_api/migrations/0003_ignore_mobile_available_flag.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/mobile_api/migrations/0003_ignore_mobile_available_flag.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/mobile_api/migrations/0003_ignore_mobile_available_flag.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('mobile_api', '0002_auto_20160406_0904'), ] operations = [ ...
37.321429
178
0.647847
37b842dda973c6dd98a90938a5ed912d2e4d8ee5
1,886
py
Python
discordApi.py
twonkos/discord-user-mimic
b26292ccee2edd9aae7d47ab085d03c4754fda31
[ "MIT" ]
null
null
null
discordApi.py
twonkos/discord-user-mimic
b26292ccee2edd9aae7d47ab085d03c4754fda31
[ "MIT" ]
null
null
null
discordApi.py
twonkos/discord-user-mimic
b26292ccee2edd9aae7d47ab085d03c4754fda31
[ "MIT" ]
null
null
null
import requests, json, time, math def getRequest(params, authorizationid): headers = { 'authorization': authorizationid } r = requests.get( f'https://discord.com/api/v9/guilds/{params}', headers=headers) return json.loads(r.text) def getMessageCount(guildid, authorid, authori...
41.911111
131
0.668611
fd04de0574cf0a20b1521b554857ed453e8991ef
138,591
py
Python
Georeferencing_functions.py
jida-wang/georeferencing-ICOLD-dams-and-reservoirs
8a59d4712241e5f53d52d8f0e1b92d5829ba3f22
[ "MIT" ]
3
2021-03-04T06:46:56.000Z
2021-05-21T19:59:57.000Z
Georeferencing_functions.py
surf-hydro/georeferencing-ICOLD-dams-and-reservoirs
0c95286618ede725c19498e4eaf3b6e36cc5f304
[ "MIT" ]
null
null
null
Georeferencing_functions.py
surf-hydro/georeferencing-ICOLD-dams-and-reservoirs
0c95286618ede725c19498e4eaf3b6e36cc5f304
[ "MIT" ]
1
2021-12-16T02:33:32.000Z
2021-12-16T02:33:32.000Z
# [Description] ------------------------------ # Script name "Georeferencing_functions.py" # This script contains a list of customized functions used for georeferencing ICOLD World Register of # Dams (WRD). See their names, purposes, inputs and outputs below. #--------------------------------------------- # ...
99.491027
197
0.628439
9742e2a9f1b87d201dc64f8c74265c28fb22748e
13,002
py
Python
app/portal/horizon/openstack_dashboard/test/integration_tests/regions/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
37
2018-10-30T02:47:24.000Z
2021-12-04T10:29:40.000Z
app/portal/horizon/openstack_dashboard/test/integration_tests/regions/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
app/portal/horizon/openstack_dashboard/test/integration_tests/regions/tables.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
35
2018-11-26T03:36:31.000Z
2021-12-04T10:29:41.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
38.129032
79
0.63844
50df56a95bc295656e1d2c60b51e39d5bb132af9
11,666
py
Python
scripts/app.py
michaelhalim168/GiftFinder
7fda99be827a06e5ef2d112174ded93ad1d3b7b1
[ "MIT" ]
null
null
null
scripts/app.py
michaelhalim168/GiftFinder
7fda99be827a06e5ef2d112174ded93ad1d3b7b1
[ "MIT" ]
null
null
null
scripts/app.py
michaelhalim168/GiftFinder
7fda99be827a06e5ef2d112174ded93ad1d3b7b1
[ "MIT" ]
1
2021-08-02T07:49:01.000Z
2021-08-02T07:49:01.000Z
#Import Standard Libraries import numpy as np import pandas as pd import streamlit as st import tweepy import pickle import string import re import nltk import spacy from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer from sklearn.metrics.pairwise import euclidean_distances from sklearn.preprocessing i...
39.412162
139
0.608006
294d85557ad942fb361a25376afc5f5d04229b2f
83
py
Python
kensu/utils/__init__.py
vidma/kensu-py
aae1e04373f03c988d55772fde6563de3ca9f375
[ "Apache-2.0" ]
16
2021-04-28T13:22:41.000Z
2022-03-02T10:45:19.000Z
kensu/utils/__init__.py
vidma/kensu-py
aae1e04373f03c988d55772fde6563de3ca9f375
[ "Apache-2.0" ]
12
2021-05-17T08:06:42.000Z
2022-02-28T22:43:04.000Z
kensu/utils/__init__.py
vidma/kensu-py
aae1e04373f03c988d55772fde6563de3ca9f375
[ "Apache-2.0" ]
5
2021-04-27T15:02:16.000Z
2021-10-15T16:07:21.000Z
__all__ = ["kensu.py", "kensu_class_handlers.py", "kensu_provider.py", "helpers"]
27.666667
81
0.710843
3c863ddc9ee404dcfc6c0ccf41794e965848dc6a
922
py
Python
setup.py
kevinxyc1/waterwheel
4234c8212b5c516948c140ae3d8f52eec7d7ac41
[ "Apache-2.0" ]
null
null
null
setup.py
kevinxyc1/waterwheel
4234c8212b5c516948c140ae3d8f52eec7d7ac41
[ "Apache-2.0" ]
null
null
null
setup.py
kevinxyc1/waterwheel
4234c8212b5c516948c140ae3d8f52eec7d7ac41
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import os def readme(): with open(os.path.dirname(os.path.realpath(__file__)) + '/README.md') as f: return f.read() requires = [ 'spacy>=2.2.0' ] setup( name="waterwheel", version="0.1", author="Govind Sharma", author_email="govind.sharma@uwaterloo.ca", ...
28.8125
79
0.66269
fdf95c07114d65d83e09602e8f226c24e3b93527
267
py
Python
codewithstein/urls.py
yaminireshma/blog-suv
243913ab02afc9da5cf563eee041f1aab8f481b2
[ "MIT" ]
8
2021-05-01T19:13:49.000Z
2022-03-15T15:57:41.000Z
codewithstein/urls.py
yaminireshma/blog-suv
243913ab02afc9da5cf563eee041f1aab8f481b2
[ "MIT" ]
null
null
null
codewithstein/urls.py
yaminireshma/blog-suv
243913ab02afc9da5cf563eee041f1aab8f481b2
[ "MIT" ]
11
2020-11-19T16:31:09.000Z
2022-02-05T11:18:13.000Z
from django.contrib import admin from django.urls import path from blog.views import frontpage, post_detail urlpatterns = [ path('', frontpage, name='frontpage'), path('admin/', admin.site.urls), path('<slug:slug>/', post_detail, name='post_detail'), ]
24.272727
58
0.70412
15d33a0ce2b3ab5619f68aaf82ec9ef3b0f7f8f8
6,390
py
Python
kubernetes_asyncio/client/models/v1_pod_template_list.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_pod_template_list.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_pod_template_list.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1PodTempl...
32.272727
295
0.612989
151d755e0efd34e22df52709fb3c654ca7836359
50,188
py
Python
src/packagedcode/debian_copyright.py
aalexanderr/scancode-toolkit
e912830fae079d1f25c4d88995360e1c49a697f9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/packagedcode/debian_copyright.py
aalexanderr/scancode-toolkit
e912830fae079d1f25c4d88995360e1c49a697f9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/packagedcode/debian_copyright.py
aalexanderr/scancode-toolkit
e912830fae079d1f25c4d88995360e1c49a697f9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutcode.org for more in...
34.422497
122
0.651172
2ee49b509aea5473d884e1352c6ec6987aa2014e
2,782
py
Python
Configuration/Geometry/python/GeometryDD4hepExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
Configuration/Geometry/python/GeometryDD4hepExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
Configuration/Geometry/python/GeometryDD4hepExtended2026D90Reco_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryDD4hepExtended2026D90_cff import * # tracker from Geometry.CommonTopologies.globalT...
45.606557
84
0.805176
e894d4284841537bc6cc1075a6513ca3e2d0d738
3,137
py
Python
data/p2DJ/New/program/qiskit/class/startQiskit_Class171.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class171.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class171.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=10 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.261261
80
0.620019
2577c66e5a2cfe2af07f21192eae1c309d7b42c6
5,412
py
Python
xonsh/xontribs.py
caputomarcos/xonsh
9ca29d8f2aad9f026af23b83fb7263d0fb702b1a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/xontribs.py
caputomarcos/xonsh
9ca29d8f2aad9f026af23b83fb7263d0fb702b1a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/xontribs.py
caputomarcos/xonsh
9ca29d8f2aad9f026af23b83fb7263d0fb702b1a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Tools for helping manage xontributions.""" import os import sys import json import builtins import argparse import functools import importlib import importlib.util from xonsh.tools import print_color, unthreadable @functools.lru_cache(1) def xontribs_json(): return os.path.join(os.path.dirname(__file__), 'xon...
31.649123
80
0.587583
c2fcf40a27710d1acf6262a5be8927560dd887bf
18,710
py
Python
roles/lib_openshift/src/test/unit/test_oc_adm_router.py
yannmontp/openshift-ansible
3913d6b7ee39278c0b70b624078c821baf956a2c
[ "Apache-2.0" ]
4
2018-04-26T15:57:07.000Z
2018-09-28T07:38:57.000Z
roles/lib_openshift/src/test/unit/test_oc_adm_router.py
yannmontp/openshift-ansible
3913d6b7ee39278c0b70b624078c821baf956a2c
[ "Apache-2.0" ]
33
2018-04-26T08:51:31.000Z
2018-08-17T15:54:54.000Z
roles/lib_openshift/src/test/unit/test_oc_adm_router.py
yannmontp/openshift-ansible
3913d6b7ee39278c0b70b624078c821baf956a2c
[ "Apache-2.0" ]
5
2018-03-26T15:43:05.000Z
2018-07-13T11:06:29.000Z
#!/usr/bin/env python ''' Unit tests for oc adm router ''' import os import six import sys import unittest import mock # Removing invalid variable names for tests so that I can # keep them brief # pylint: disable=invalid-name,no-name-in-module # Disable import-error b/c our libraries aren't loaded in jenkins # pylin...
39.060543
118
0.381187
307e373a22bc83ca98543ef25d918c4491103c51
833
py
Python
tests/conftest.py
RylanGotto/web-dash
15122757b41539668d6e721b8159e683d40f64ab
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
RylanGotto/web-dash
15122757b41539668d6e721b8159e683d40f64ab
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
RylanGotto/web-dash
15122757b41539668d6e721b8159e683d40f64ab
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Defines fixtures available to all tests.""" import os import pytest from webtest import TestApp from websterton.settings import TestConfig from websterton.app import create_app from websterton.database import db as _db from .factories import UserFactory @pytest.yield_fixture(scope='functi...
18.511111
46
0.695078
44b21bbd6ce4f74772f66cd1d084bb62ab9a712c
2,876
py
Python
cod/aws.py
massung/cod-shell
112f37a48df385ad365625876d4f810fe9e764fb
[ "BSD-3-Clause" ]
1
2020-08-27T16:27:13.000Z
2020-08-27T16:27:13.000Z
cod/aws.py
massung/cod-shell
112f37a48df385ad365625876d4f810fe9e764fb
[ "BSD-3-Clause" ]
null
null
null
cod/aws.py
massung/cod-shell
112f37a48df385ad365625876d4f810fe9e764fb
[ "BSD-3-Clause" ]
null
null
null
import boto3 import re from cod.instance import BaseInstance class AWSInstance(BaseInstance): """ EC2 instance description from AWS. """ def __init__(self, config, id_or_name): """ Use the AWS EC2 client to look up an instance by ID or name. """ session = boto3.sessio...
29.050505
106
0.589013
678bb44f2c5b7450cdc1815aa826f54bcebd318a
33,414
py
Python
tests/unit/utils/test_network.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
5
2018-05-01T20:51:14.000Z
2021-11-09T05:43:00.000Z
tests/unit/utils/test_network.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
4
2019-02-08T17:53:38.000Z
2019-06-06T16:17:27.000Z
tests/unit/utils/test_network.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
7
2017-09-29T18:49:53.000Z
2021-11-09T05:42:49.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import, unicode_literals, print_function import logging import socket import textwrap # Import Salt Testing libs from tests.support.unit import skipIf from tests.support.unit import TestCase from tests.support.mock import ( MagicMock, ...
49.575668
132
0.547136
66e6c41a5e040d2cb418de7e46bce72e635efb00
643
py
Python
setup.py
ViktorWase/ks-disc
141fdb94071121fb9dd0657bfc9f52164e5194e2
[ "MIT" ]
1
2020-08-08T03:46:02.000Z
2020-08-08T03:46:02.000Z
setup.py
ViktorWase/ks-disc
141fdb94071121fb9dd0657bfc9f52164e5194e2
[ "MIT" ]
null
null
null
setup.py
ViktorWase/ks-disc
141fdb94071121fb9dd0657bfc9f52164e5194e2
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="ksdisc", version="0.0.9", author="Viktor Wase", author_email="viktorwase@gmail.com", description="Discrete Kolmogorov–Smirnov test", long_description=long_description, long_descrip...
29.227273
51
0.664075
11bd8069c14ca24fdf182a8a8d5ddc14e1383ea1
28,899
py
Python
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
danieldresser-ie/gaffer
78c22487156a5800fcca49a24f52451a8ac0c559
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferRenderManTest/InteractiveRenderManRenderTest.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
28.471921
94
0.610229
6cbca73f5bfeeb3e478f520693acf5f56ff6e667
20,053
py
Python
flakon/blueprints.py
MFranceschi6/flakon
6842d7873caf27afb418c4f90908dd4cb82ad4e7
[ "Apache-2.0" ]
null
null
null
flakon/blueprints.py
MFranceschi6/flakon
6842d7873caf27afb418c4f90908dd4cb82ad4e7
[ "Apache-2.0" ]
null
null
null
flakon/blueprints.py
MFranceschi6/flakon
6842d7873caf27afb418c4f90908dd4cb82ad4e7
[ "Apache-2.0" ]
1
2018-11-23T14:38:00.000Z
2018-11-23T14:38:00.000Z
from flask import jsonify, Blueprint, request, json from werkzeug.exceptions import default_exceptions from prance import ResolvingParser from flakon.util import get_content, error_handling from jsonschema import validate, ValidationError from datetime import datetime class JsonBlueprint(Blueprint): def __init__(...
48.320482
120
0.446517
71e12ffbbcab04e46552e7b9866405dd16702808
35
py
Python
pyble/const/service/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/service/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/service/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Scan Parameters" UUID=0x1813
11.666667
22
0.8
2978ab53b7a6419563cdd9c54c61622200ef59dc
2,866
py
Python
authors/apps/comments/tests/test_create_comment.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
authors/apps/comments/tests/test_create_comment.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
authors/apps/comments/tests/test_create_comment.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from authors.apps.articles.models import Article from authors.apps.articles.tests.test_data import valid_article from authors.apps.authentication.models import User from authors.apps.authentication.tests.test_d...
34.53012
79
0.677948
2f0576586b0507c1525530d5b06b306d6f5137b3
1,006
gyp
Python
chrome/browser/resources/print_preview/compiled_resources.gyp
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
chrome/browser/resources/print_preview/compiled_resources.gyp
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
chrome/browser/resources/print_preview/compiled_resources.gyp
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'print_preview', 'variables': { 'depends': [ '../../../../ui/webui/resources/js/cr.js', ...
38.692308
79
0.537773
60d386f0ea995fa75cc042baf895d4b2facb8895
369
py
Python
Mundo 1/ex009.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
1
2021-05-12T18:44:11.000Z
2021-05-12T18:44:11.000Z
Mundo 1/ex009.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
null
null
null
Mundo 1/ex009.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
null
null
null
n = int(input('Digite um número para ver sua tabuada: ')) print('-'*13) print(f'{n} x 1 = {n*1}') print(f'{n} x 2 = {n*2}') print(f'{n} x 3 = {n*3}') print(f'{n} x 4 = {n*4}') print(f'{n} x 5 = {n*5}') print(f'{n} x 6 = {n*6}') print(f'{n} x 7 = {n*7}') print(f'{n} x 8 = {n*8}') print(f'{n} x 9 = {n...
24.6
58
0.449864
d55af37aea7025c6b103e70d5bd8a26a7a5b919b
1,655
py
Python
selenium_firefox/models/firefox_capabilities.py
kkristof200/selenium_firefox
2d5f6b2a9625575b6c5ca9c6d3accfc5749c39f9
[ "MIT" ]
9
2020-09-16T00:09:47.000Z
2022-03-25T09:06:34.000Z
selenium_firefox/models/firefox_capabilities.py
kkristof200/selenium_firefox
2d5f6b2a9625575b6c5ca9c6d3accfc5749c39f9
[ "MIT" ]
3
2020-08-26T07:14:49.000Z
2022-01-11T01:56:45.000Z
selenium_firefox/models/firefox_capabilities.py
kkristof200/selenium_firefox
2d5f6b2a9625575b6c5ca9c6d3accfc5749c39f9
[ "MIT" ]
7
2020-08-24T03:41:18.000Z
2022-02-15T16:23:30.000Z
# ------------------------------------------------------------ Imports ----------------------------------------------------------- # # System from typing import Dict # Pip from selenium_browser import Capabilities # -----------------------------------------------------------------------------------------------------...
45.972222
132
0.347432
82b500adba5c9ac6667effc14a225fc46adf9692
100
py
Python
src/decipher_polyalpha.py
askmuhsin/cryptography
5781db2c94f082cd102efcad319fcca3140c7a93
[ "MIT" ]
null
null
null
src/decipher_polyalpha.py
askmuhsin/cryptography
5781db2c94f082cd102efcad319fcca3140c7a93
[ "MIT" ]
null
null
null
src/decipher_polyalpha.py
askmuhsin/cryptography
5781db2c94f082cd102efcad319fcca3140c7a93
[ "MIT" ]
null
null
null
##Break Polycipher ##Input : cipher text ##Output: length of shift word, shift word, decipher text
25
57
0.74
34e67efbb84c3f871f27fbfec4fb4189ab919062
27,352
py
Python
analysis.py
elssam/RGLCG
dfdc983787f83b55e5085a5ccde01128131e79c9
[ "MIT" ]
5
2019-09-15T18:37:28.000Z
2020-06-24T03:45:36.000Z
analysis.py
elssam/RGLCG
dfdc983787f83b55e5085a5ccde01128131e79c9
[ "MIT" ]
null
null
null
analysis.py
elssam/RGLCG
dfdc983787f83b55e5085a5ccde01128131e79c9
[ "MIT" ]
4
2019-09-15T03:54:50.000Z
2021-12-24T04:50:13.000Z
# Import all software libraries ```python import pandas as pd import scipy.stats as stats %matplotlib inline import seaborn as sns import numpy as np import statsmodels.api as sm import statsmodels import matplotlib.pylab as plt import statsmodels.formula.api as smf from sklearn.model_selection import GridSearchCV fro...
33.893432
260
0.679292
77966a63b6a048a90c4df840f8405ceed5e24c36
18,273
py
Python
surftrace/fxpr.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
32
2021-12-27T11:54:37.000Z
2022-03-25T05:14:51.000Z
surftrace/fxpr.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
8
2022-01-07T02:29:05.000Z
2022-03-02T08:16:09.000Z
surftrace/fxpr.py
aliyun/surftrace
c3e7856d69c1f73cec5bb2b0f4d41a35b2ff63b1
[ "MIT" ]
10
2022-01-05T11:41:14.000Z
2022-03-22T08:46:00.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: fxpr Description : Author : liaozhaoyan date: 2022/3/20 ------------------------------------------------- Change Activity: 2022/3/20: --------------------------------------------...
36.989879
116
0.477426
eaa5a67162ea5f060a5755b72172ccfa5c2affeb
1,793
py
Python
test/unit/network_centrality/resting_state_centrality_test.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
test/unit/network_centrality/resting_state_centrality_test.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
test/unit/network_centrality/resting_state_centrality_test.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
# test/unit/network_centrality/test_resting_state_centrality.py # # Contributing authors (please append): # Daniel Clark ''' This module performs testing on the functions in CPAC/pipeline/cpac_pipeline.py ''' # Import packages import unittest from test import RESOURCE_DIR # Test case for the run function class Centr...
27.584615
93
0.65198
ae4969f05dd4b33f6cdab4c9243026ba292dde79
579
py
Python
products/migrations/0002_product_seller.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
null
null
null
products/migrations/0002_product_seller.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
62
2021-11-22T21:52:44.000Z
2021-12-17T15:07:02.000Z
products/migrations/0002_product_seller.py
UB-ES-2021-A1/wannasell-backend
84360b2985fc28971867601373697f39303e396b
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-18 12:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('products', '0001_initial...
26.318182
121
0.671848
47a53c78f49c5b50bcbeb5d6c8856c41cefd54f6
2,050
py
Python
setup.py
techthiyanes/openspeech
71d28bae1232420da1d6f357f52ff1a607dc983f
[ "Apache-2.0", "MIT" ]
207
2021-07-22T02:04:47.000Z
2022-03-31T07:24:12.000Z
setup.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
81
2021-07-21T16:52:22.000Z
2022-03-31T14:56:54.000Z
setup.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
43
2021-07-21T16:33:27.000Z
2022-03-23T09:43:49.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho # # 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...
39.423077
87
0.713171
ac85273e21e876784c5cf41dadcc1daa9334c5e1
5,319
py
Python
label_studio/tests/data_manager/test_views_api.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
3
2021-07-16T03:48:21.000Z
2022-01-10T04:58:25.000Z
label_studio/tests/data_manager/test_views_api.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
6
2022-02-21T15:19:35.000Z
2022-03-07T15:25:16.000Z
label_studio/tests/data_manager/test_views_api.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
1
2021-08-18T15:07:47.000Z
2021-08-18T15:07:47.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import pytest import json from ..utils import project_id @pytest.mark.django_db def test_views_api(business_client, project_id): # create ...
30.568966
168
0.565332
80c795367fa01f214d78d3fa7df7864b6b243b97
3,874
py
Python
tensorflow/examples/speech_commands/models_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/examples/speech_commands/models_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/speech_commands/models_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
44.528736
80
0.719153
310ca74d25b706b357773f5e8fd238a3cdfc6da2
2,982
py
Python
Course8Informatica/file_reader.py
Queuebee2/Course8Informatica
16a5e8ff8628888e352f267d90a06ee606c2471d
[ "MIT" ]
null
null
null
Course8Informatica/file_reader.py
Queuebee2/Course8Informatica
16a5e8ff8628888e352f267d90a06ee606c2471d
[ "MIT" ]
2
2020-04-15T09:26:14.000Z
2020-06-09T18:58:34.000Z
Course8Informatica/file_reader.py
Queuebee2/Course8Informatica
16a5e8ff8628888e352f267d90a06ee606c2471d
[ "MIT" ]
null
null
null
import re import xml.etree.ElementTree as ET import io # Filename had to be changable, so put it into a global for now # Todo rework into a class or change methods to take filenames # because we dont need more cyclical dependencies # https://stackoverflow.com/questions/3400525/global-variable-from-a-different-file-p...
29.82
91
0.56774
de9188140a57196413bb731f7fb742bcfd97f9b4
5,036
py
Python
src/fileseq/__init__.py
sqlboy/fileseq
fbd2abddf1a4d192151da38e608685d9f24bea4f
[ "MIT" ]
103
2015-01-26T09:36:29.000Z
2019-08-02T16:54:39.000Z
src/fileseq/__init__.py
sqlboy/fileseq
fbd2abddf1a4d192151da38e608685d9f24bea4f
[ "MIT" ]
49
2015-03-12T01:56:17.000Z
2019-08-22T21:34:11.000Z
src/fileseq/__init__.py
sqlboy/fileseq
fbd2abddf1a4d192151da38e608685d9f24bea4f
[ "MIT" ]
37
2015-01-05T21:48:27.000Z
2019-08-20T18:27:24.000Z
""" A Python library for parsing frame ranges and file sequences commonly used in VFX and Animation applications. The MIT License (MIT) Original work Copyright (c) 2015 Matthew Chambers Modified work Copyright 2015 Justin Israel Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
26.787234
107
0.704527
07993575f6908a75b764cdee90cd7da00ed7f707
511
py
Python
ABC026/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC026/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC026/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
import sys import math sys.setrecursionlimit(10**8) def f(t, a, b, c): x = c*t*math.pi return a*t + b*math.sin(x) def main(): a,b,c = map(int,input().split()) ok = 0 ng = 10**4 mid = (ok+ng)/2 while abs(f(ok, a, b, c)-100)>10**(-7): mid = (ok+ng) / 2 if f(mid, a, b, c) > 1...
18.25
43
0.448141
e63a33ab1ee0c1069cb9ed3c7873eed408928e75
676
py
Python
recman_sequence.py
kentoj/python-fundamentals
f7b93228c18d1553aad11580b7d2f42c999da376
[ "MIT" ]
6
2017-01-31T18:55:14.000Z
2021-01-02T09:21:40.000Z
recman_sequence.py
kentoj/python-fundamentals
f7b93228c18d1553aad11580b7d2f42c999da376
[ "MIT" ]
null
null
null
recman_sequence.py
kentoj/python-fundamentals
f7b93228c18d1553aad11580b7d2f42c999da376
[ "MIT" ]
1
2020-12-28T15:50:39.000Z
2020-12-28T15:50:39.000Z
"""Writes the Recman's sequence to a file""" import sys from itertools import count, islice def sequence(): """Generate Recaman's sequence.""" seen = set() a = 0 for n in count(1): yield a seen.add(a) c = a - n if c < 0 or c in seen: c = a + n a = c ...
23.310345
58
0.538462
e7c9255782c5e07784c7d27d38a37b913949e7ff
7,129
py
Python
lib/python3.8/site-packages/ansible_collections/netapp_eseries/santricity/plugins/modules/na_santricity_alerts_syslog.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/netapp_eseries/santricity/plugins/modules/na_santricity_alerts_syslog.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/netapp_eseries/santricity/plugins/modules/na_santricity_alerts_syslog.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # (c) 2020, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ --- module: na_santricity_alerts_syslog short_description: NetApp E-Series m...
40.276836
160
0.605274
3bbc25077deb26b5ba75f5b647a71e90fb9f16f3
5,878
py
Python
tensorflow/python/compat/compat.py
harmindergit/tensorflow
0a33657fb7065e1be3826e561f5adb25e0d1cd56
[ "Apache-2.0" ]
1
2019-11-23T16:25:36.000Z
2019-11-23T16:25:36.000Z
tensorflow/python/compat/compat.py
zhangtao1987/tensorflow
68c33b143ebaa8d0eea9338f67a6bec402a658ac
[ "Apache-2.0" ]
null
null
null
tensorflow/python/compat/compat.py
zhangtao1987/tensorflow
68c33b143ebaa8d0eea9338f67a6bec402a658ac
[ "Apache-2.0" ]
1
2019-11-23T16:25:54.000Z
2019-11-23T16:25:54.000Z
# Copyright 2018 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...
35.197605
82
0.747703
ce55b583517b8c60693c537409028768946406d2
2,500
py
Python
dns_check/setup.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
dns_check/setup.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
dns_check/setup.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get the long description from the README file with open(path.join(HERE, 'README.md...
30.487805
81
0.6668
76e621e58471a1508d05d18e6c98162a19e43552
304
py
Python
date-conversion/dev/plt.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
1
2020-03-11T22:52:19.000Z
2020-03-11T22:52:19.000Z
date-conversion/dev/plt.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
3
2021-05-21T16:15:18.000Z
2022-02-10T01:11:23.000Z
date-conversion/dev/plt.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import tensorflow as tf def plotter(): data = tf.random.uniform((10, 10)).numpy() print(data) plt.matshow(data) plt.ylabel('input word') plt.xlabel('generated word') plt.show(block=True) return 1 if __name__ == "__main__": plotter()
19
46
0.644737
a579011506984de634e87b2e65c93aed22b45098
2,202
py
Python
pyacq/core/rpc/bootstrap.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
20
2015-12-18T05:52:04.000Z
2021-05-22T05:12:24.000Z
pyacq/core/rpc/bootstrap.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
72
2015-07-17T19:43:36.000Z
2021-09-14T07:37:30.000Z
pyacq/core/rpc/bootstrap.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
14
2015-06-19T12:07:25.000Z
2021-08-16T14:44:42.000Z
"""Script for bootstrapping new processes created with ProcessSpawner. """ import zmq import time import sys import json import traceback import faulthandler import logging # Load configuration options for this process from stdin conf = json.loads(sys.stdin.read()) # process name is passed in argv to make it easier to...
27.525
113
0.719346
a72eb3d48071a8bd85945eb1a4e0c3c1e949336e
25,866
py
Python
wxmplot/imagepanel.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
wxmplot/imagepanel.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
wxmplot/imagepanel.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
#!/usr/bin/python ## ## MPlot PlotPanel: a wx.Panel for 2D line plotting, using matplotlib ## import sys import time import os import wx from threading import Thread import numpy as np import matplotlib import matplotlib.cm as cmap from matplotlib.figure import Figure from matplotlib.gridspec import GridSpec from mat...
35.144022
85
0.518171
9f8ce1ec62415785db225ddf527c8bf1e3af3df0
3,632
py
Python
python_modules/dagster/dagster/core/definitions/policy.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/policy.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/policy.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
from enum import Enum from random import random from typing import NamedTuple, Optional import dagster._check as check from dagster.core.errors import DagsterInvalidDefinitionError class Backoff(Enum): """ A modifier for delay as a function of attempt number. LINEAR: `attempt_num * delay` EXPONENTIA...
31.859649
98
0.627753
e93c685a84834300dd73ce2c9d00df0582f0bf6d
3,711
py
Python
tests/panda/panda/os_utils.py
vmware-archive/vio
f2d5511bf1bac57f9670d5384debfb89750f9873
[ "Apache-2.0" ]
15
2016-02-29T14:00:52.000Z
2018-11-30T02:29:37.000Z
tests/panda/panda/os_utils.py
vmware-archive/vio
f2d5511bf1bac57f9670d5384debfb89750f9873
[ "Apache-2.0" ]
null
null
null
tests/panda/panda/os_utils.py
vmware-archive/vio
f2d5511bf1bac57f9670d5384debfb89750f9873
[ "Apache-2.0" ]
8
2016-03-15T13:30:56.000Z
2018-03-13T18:59:37.000Z
import logging from keystoneauth1.identity import v3 from keystoneauth1 import session from keystoneclient.v3 import client as keystone_client LOG = logging.getLogger(__name__) LOCAL_DOMAIN_ID = 'local' DEFAULT_DOMAIN_ID = 'default' ADMIN_PROJECT_NAME = 'admin' ADMIN_ROLE_NAME = 'admin' def create_if_not_exist(fun...
39.063158
76
0.610887
2f4f837f7b5ccec843eb683b28cb2d92457ada2e
29,216
py
Python
var/spack/repos/builtin/packages/root/package.py
myan-rarcellino-nnl/spack
654a07d642dc7403c62abab0124dda09f2a07264
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/root/package.py
myan-rarcellino-nnl/spack
654a07d642dc7403c62abab0124dda09f2a07264
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/root/package.py
myan-rarcellino-nnl/spack
654a07d642dc7403c62abab0124dda09f2a07264
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys from spack import * from spack.util.environment import is_system_path class Root(CMakePackage): """ROOT...
45.226006
97
0.614492
27a00ef08576d99f8c1a2f4b33ed18825f8e3fa4
1,532
py
Python
sceptre/resolvers/project_variables.py
tlkcr/sceptre
7ff56cd58f6885847d8577dade2524663958fb72
[ "Apache-2.0" ]
null
null
null
sceptre/resolvers/project_variables.py
tlkcr/sceptre
7ff56cd58f6885847d8577dade2524663958fb72
[ "Apache-2.0" ]
null
null
null
sceptre/resolvers/project_variables.py
tlkcr/sceptre
7ff56cd58f6885847d8577dade2524663958fb72
[ "Apache-2.0" ]
1
2021-05-08T11:20:45.000Z
2021-05-08T11:20:45.000Z
# -*- coding: utf-8 -*- import os import yaml from warnings import warn, simplefilter from colorama import Fore, Style from sceptre.resolvers import Resolver class ProjectVariables(Resolver): """ Resolver for the configuration in a file. :param argument: Configuration value to be returned. :type a...
27.854545
78
0.620104
64852357d403d80988a1490b836c3717775c2616
4,264
py
Python
eex/metadata/validator.py
MolSSI/EEX
bbcd0ab9b02bee75d45afdd3d5df0f09246bc08c
[ "BSD-3-Clause" ]
7
2018-04-03T18:12:04.000Z
2020-03-27T07:52:49.000Z
eex/metadata/validator.py
MolSSI/EEX
bbcd0ab9b02bee75d45afdd3d5df0f09246bc08c
[ "BSD-3-Clause" ]
43
2018-04-03T20:18:23.000Z
2018-10-16T02:28:34.000Z
eex/metadata/validator.py
MolSSI/EEX
bbcd0ab9b02bee75d45afdd3d5df0f09246bc08c
[ "BSD-3-Clause" ]
3
2018-04-06T15:51:37.000Z
2018-07-31T18:53:06.000Z
""" Provides helper functions that validate the functional data. """ from .. import units __all__ = [ 'term_required_fields', 'functional_form_required_fields', 'validate_term_dict', 'validate_functional_form_dict', 'validate_units' ] term_required_fields = ['variables', 'store_name', 'store_indices', 'forms...
34.112
97
0.584662
a1aaa9a75a6ad11c6dc83e8b1ab353b4862f9d3b
322
py
Python
app/encode_jose.py
Simon-Charest/pyqr
d64c8ad67c8a251d7c4c638c7a308d88c619aba0
[ "MIT" ]
null
null
null
app/encode_jose.py
Simon-Charest/pyqr
d64c8ad67c8a251d7c4c638c7a308d88c619aba0
[ "MIT" ]
null
null
null
app/encode_jose.py
Simon-Charest/pyqr
d64c8ad67c8a251d7c4c638c7a308d88c619aba0
[ "MIT" ]
null
null
null
from app import function import jwt def run(json_data, key): algorithms = 'HS256' headers = {"kid": key} token = encode_jose(json_data, key, algorithms, headers) return token def encode_jose(json_data, key, algorithms='HS256', headers=None): return jwt.encode(json_data, key, algorithms, headers...
21.466667
66
0.708075
95455356d9e26016fab0e9b03b03e4e54d016086
115
py
Python
system_command_subprocess_call.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
system_command_subprocess_call.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
system_command_subprocess_call.py
CrazyJ36/python
4cff6e7240672a273d978521bb511065f45d4312
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from subprocess import call print("Running unix 'ls -a' from python:") call(["ls", "-a"])
16.428571
42
0.66087
f72a21c95f67fb3323e247b7bbe34268a650183d
8,864
py
Python
Acceleration/memcached/regressionSims/sw/memtest_deploy.py
pooyaww/Vivado_HLS_Samples
6dc48bded1fc577c99404fc99c5089ae7279189a
[ "BSD-3-Clause" ]
326
2016-07-06T01:50:43.000Z
2022-03-31T21:50:19.000Z
Acceleration/memcached/regressionSims/sw/memtest_deploy.py
asicguy/HLx_Examples
249406bf7718c33d10a837ddd2ee71a683d481e8
[ "BSD-3-Clause" ]
10
2017-04-05T16:02:19.000Z
2021-06-09T14:26:40.000Z
Acceleration/memcached/regressionSims/sw/memtest_deploy.py
asicguy/HLx_Examples
249406bf7718c33d10a837ddd2ee71a683d481e8
[ "BSD-3-Clause" ]
192
2016-08-31T09:15:18.000Z
2022-03-01T11:28:12.000Z
#!/usr/bin/python # ------------------------------------------------------------------------------ # KVS Regression Testing # ------------------------------------------------------------------------------ # # To run regression tests, a environment configuration and simulation setups # are required. These are two pytho...
37.400844
232
0.625903
0625ffb2e714362754f2552c2b035edbba14802d
11,408
py
Python
muxi/muxi.py
neo1218/water
40cc389dbe6b5c86cdb5b2af3a2fceb54be37e29
[ "WTFPL", "Unlicense" ]
6
2015-11-04T13:33:57.000Z
2015-11-19T13:28:40.000Z
muxi/muxi.py
neo1218/water
40cc389dbe6b5c86cdb5b2af3a2fceb54be37e29
[ "WTFPL", "Unlicense" ]
3
2015-11-06T07:33:48.000Z
2015-11-18T12:36:58.000Z
muxi/muxi.py
neo1218/water
40cc389dbe6b5c86cdb5b2af3a2fceb54be37e29
[ "WTFPL", "Unlicense" ]
1
2015-11-25T14:02:07.000Z
2015-11-25T14:02:07.000Z
# coding: utf-8 """ muxi ~~~~ :a decorated python web framework: :copyright: (c) 2016 by neo1218(朱承浩) """ # models import # basic models from basedir import _basedir import os import sys import pkg_resources from threading import local # werkzeug from werkzeug.wrappers import Request, Response from we...
25.351111
73
0.697405
333063f1fa567c23d639e8c4bc432048ca15fcbc
1,163
py
Python
data/p4VQE/R4/benchmark/startPyquil252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startPyquil252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startPyquil252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=12 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
22.803922
64
0.603611
a476a7d7b61721bd450e281694096cf6c34df38f
44,235
py
Python
lang/py/avro/io.py
sunny1988/avro
db82b5bf5cc2e7f2a7d59a3c5611a8b8ee8607fa
[ "Apache-2.0" ]
null
null
null
lang/py/avro/io.py
sunny1988/avro
db82b5bf5cc2e7f2a7d59a3c5611a8b8ee8607fa
[ "Apache-2.0" ]
null
null
null
lang/py/avro/io.py
sunny1988/avro
db82b5bf5cc2e7f2a7d59a3c5611a8b8ee8607fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- mode: python -*- # -*- coding: utf-8 -*- ## # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to ...
38.067986
117
0.628575
928ec887f63d3c4f2f730f5e35706d8bb96d40b2
8,087
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
37.439815
229
0.657722
a43d88e9b6aac5b22d1968fe3bc7292d79a5099a
1,182
py
Python
projetos/models.py
danieldourado/camara-mirim-crawler
a00476a6b85acd788265f1be05e5c4dff7c63226
[ "MIT" ]
null
null
null
projetos/models.py
danieldourado/camara-mirim-crawler
a00476a6b85acd788265f1be05e5c4dff7c63226
[ "MIT" ]
21
2019-12-26T16:41:19.000Z
2022-03-21T22:16:22.000Z
projetos/models.py
danieldourado/plenarinho-util
a00476a6b85acd788265f1be05e5c4dff7c63226
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse from django.db import models class Projeto(models.Model): name = models.TextField() nomeDaCrianca = models.TextField() sexo = models.TextField() dataDeNascimento = models.TextField() cidade = models.Te...
35.818182
62
0.564298
29921541ff8cff2129ff40fb7eb94ad41bbfe93a
6,590
py
Python
advanceKeylogger.py
arinzejustin/keylogger
7244edaae57443ebbe63043cf91b6a663d33beb6
[ "MIT" ]
2
2021-12-03T13:33:16.000Z
2022-01-10T06:13:57.000Z
advanceKeylogger.py
arinzejustin/keylogger
7244edaae57443ebbe63043cf91b6a663d33beb6
[ "MIT" ]
null
null
null
advanceKeylogger.py
arinzejustin/keylogger
7244edaae57443ebbe63043cf91b6a663d33beb6
[ "MIT" ]
null
null
null
#Advance feature of keylogger from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders import smtplib import socket import platform import win32clipboard from pynput.keyboard import Key, Listener import time import os from ...
23.790614
123
0.657663
e4283ca4c2c0669c1ca03af7d10eecfe82b6a0d0
444
py
Python
archiv/migrations/0020_text_not_after.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
2
2021-06-02T11:27:54.000Z
2021-08-25T10:29:04.000Z
archiv/migrations/0020_text_not_after.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
86
2021-01-29T12:31:34.000Z
2022-03-28T11:41:04.000Z
archiv/migrations/0020_text_not_after.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-07-20 11:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('archiv', '0019_auto_20210720_1109'), ] operations = [ migrations.AddField( model_name='text', name='not_after', ...
23.368421
112
0.617117
02758556158097ad5f6a8cb48ba05f65b22b4aa9
5,362
py
Python
data_nlp/KerasSentimentAnalysis.py
aircov/-
2e306b846dcdd3c57f1dba4493dc3d2babb036a7
[ "Apache-2.0" ]
null
null
null
data_nlp/KerasSentimentAnalysis.py
aircov/-
2e306b846dcdd3c57f1dba4493dc3d2babb036a7
[ "Apache-2.0" ]
null
null
null
data_nlp/KerasSentimentAnalysis.py
aircov/-
2e306b846dcdd3c57f1dba4493dc3d2babb036a7
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8 -*- # Keras情感分析(Sentiment Analysis)实战 import time import numpy as np from gensim.models.word2vec import Word2Vec from gensim.corpora.dictionary import Dictionary from gensim import models import pandas as pd import jieba import logging from keras import Sequential from keras.preprocessing.sequence im...
30.99422
238
0.70179
ffba99204a3befe7312bc3ecba24c35db4161f73
25,174
py
Python
localstack/services/cloudformation/models/apigateway.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
1
2022-03-17T07:22:23.000Z
2022-03-17T07:22:23.000Z
localstack/services/cloudformation/models/apigateway.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
localstack/services/cloudformation/models/apigateway.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
import json from urllib.parse import urlparse from localstack.services.cloudformation.deployment_utils import ( generate_default_name, lambda_keys_to_lower, params_list_to_dict, ) from localstack.services.cloudformation.service_models import GenericBaseModel from localstack.utils.aws import aws_stack from ...
36.85798
141
0.576071
fef4d2c25504b464d1bfdcb7537125d1ad796baa
23,331
py
Python
autokeras/tasks/time_series_forecaster.py
mkturkcan/NoiseIgnoringNetworks
5803d666d6c97075d18673825dc07c20bb3e5375
[ "MIT" ]
null
null
null
autokeras/tasks/time_series_forecaster.py
mkturkcan/NoiseIgnoringNetworks
5803d666d6c97075d18673825dc07c20bb3e5375
[ "MIT" ]
null
null
null
autokeras/tasks/time_series_forecaster.py
mkturkcan/NoiseIgnoringNetworks
5803d666d6c97075d18673825dc07c20bb3e5375
[ "MIT" ]
null
null
null
from typing import Type from typing import Union import pandas as pd from autokeras import auto_model from autokeras import blocks from autokeras import nodes as input_module from autokeras.engine import tuner from autokeras.tasks.structured_data_mixin import StructuredDataMixin from autokeras.tuners import greedy ...
50.066524
85
0.58913
1018e045e8b12e290aff11ccc7daa867554e9195
4,159
py
Python
py2/layers/layer_util.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
2
2020-01-08T02:58:18.000Z
2020-01-28T16:42:00.000Z
py2/layers/layer_util.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
py2/layers/layer_util.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class CBAM_Module(nn.Module): def __init__(self, channels, reduction,attention_kernel_size=3): super(CBAM_Module, self).__init__() self.avg_pool = nn.AdaptiveAvgPool2d(1) self.max_pool = ...
38.509259
125
0.579707
629e1ed046adde0402607e37a77642260e035e64
10,009
py
Python
test/text_generation_test/build_copy_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
test/text_generation_test/build_copy_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
test/text_generation_test/build_copy_transformer.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
null
null
null
from post_rec.models.GenerationNets.BertAnswerNet import TextGeneratorModel from pytorch_pretrained_bert import optimization as bertOptimizer import numpy as np import torch from torch import nn import random import onmt import logging from onmt.utils.parse import ArgumentParser import onmt.opts as opts #from post_rec...
38.057034
117
0.579778
6c96817bcacf119f12493b88ada1f6a4da19993e
6,075
py
Python
docs/conf.py
django-graph-api/django-graph-api
904e11efb8331e480ffff4434bb7e0f5bd474163
[ "MIT" ]
26
2018-05-03T07:26:08.000Z
2021-03-04T21:50:48.000Z
docs/conf.py
melinath/django-graph-api
904e11efb8331e480ffff4434bb7e0f5bd474163
[ "MIT" ]
56
2017-08-17T21:07:32.000Z
2018-04-03T04:48:42.000Z
docs/conf.py
melinath/django-graph-api
904e11efb8331e480ffff4434bb7e0f5bd474163
[ "MIT" ]
13
2017-08-18T18:40:52.000Z
2018-01-25T04:20:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # django-graph-api documentation build configuration file, created by # sphinx-quickstart on Tue Sep 12 13:37:37 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in ...
30.074257
79
0.677037
04bf186aa03c9e8a9e2ea32998fcf690089554e9
14,202
py
Python
event_template/root/views.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
event_template/root/views.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
2
2020-06-05T17:29:54.000Z
2021-06-10T18:58:13.000Z
event_template/root/views.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
import json import logging from smtplib import SMTPRecipientsRefused import datetime from django.utils import timezone from django.contrib.auth.forms import PasswordResetForm from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.http import HttpResponse, HttpResponseRedirect from django.shortc...
35.7733
130
0.702084
b5ab1eebfcc5b8448f38e19aecd00b6770ae84bc
478
py
Python
sdds/__init__.py
pylhc/sdds
fa613dbe4621030c5d342e1acabe787fd7b8c68a
[ "MIT" ]
5
2019-05-03T14:41:25.000Z
2021-11-03T17:14:03.000Z
sdds/__init__.py
pylhc/sdds
fa613dbe4621030c5d342e1acabe787fd7b8c68a
[ "MIT" ]
25
2019-02-19T14:43:59.000Z
2021-11-16T17:19:46.000Z
sdds/__init__.py
pylhc/sdds
fa613dbe4621030c5d342e1acabe787fd7b8c68a
[ "MIT" ]
2
2019-10-18T09:06:11.000Z
2021-12-21T20:05:43.000Z
"""Exposes SddsFile, read_sdds and write_sdds directly in sdds namespace.""" from sdds.writer import write_sdds from sdds.reader import read_sdds from sdds.classes import SddsFile __title__ = "sdds" __description__ = "SDDS file handling." __url__ = "https://github.com/pylhc/sdds" __version__ = "0.2.1" __author__ = "py...
25.157895
76
0.763598
de2ab8eac6dd39fc5c9a8d4731cd7f46f90ae83a
33,707
py
Python
numba/tests/test_array_reductions.py
mawanda-jun/numba
8c6658375c1f8fe50e1a5ccd11d4e7bf5a8053de
[ "BSD-2-Clause", "Apache-2.0" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_array_reductions.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_array_reductions.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import division from itertools import product, combinations_with_replacement import numpy as np from numba import unittest_support as unittest from numba import jit, typeof from numba.compiler import compile_isolated from numba.numpy_support import version as np_version from .support import TestCase,...
31.531338
92
0.590026
85962b681a916b03ddd6884b8bd664d04b53e263
1,243
py
Python
setup.py
Jakub-Dv/pyk4a
113e04ad976beb4f6f5c0f038db6b5eebc97e4ab
[ "MIT" ]
null
null
null
setup.py
Jakub-Dv/pyk4a
113e04ad976beb4f6f5c0f038db6b5eebc97e4ab
[ "MIT" ]
3
2020-09-17T17:14:49.000Z
2021-03-03T08:22:01.000Z
setup.py
Jakub-Dv/pyk4a
113e04ad976beb4f6f5c0f038db6b5eebc97e4ab
[ "MIT" ]
1
2022-03-28T20:39:19.000Z
2022-03-28T20:39:19.000Z
from setuptools import setup, Extension import sys if sys.version_info[0] == 2: sys.exit("Python 2 is not supported.") # Enables --editable install with --user # https://github.com/pypa/pip/issues/7953 import site site.ENABLE_USER_SITE = "--user" in sys.argv[1:] # Bypass import numpy before running install_requi...
31.871795
118
0.656476