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
79763213fcba2d68703119a9a90b19523dc1d336
1,159
py
Python
tests/sequence/align/test_matrix.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
208
2018-04-20T15:59:42.000Z
2022-03-22T07:47:12.000Z
tests/sequence/align/test_matrix.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
121
2017-11-15T14:52:07.000Z
2022-03-30T16:31:41.000Z
tests/sequence/align/test_matrix.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
49
2018-07-19T09:06:24.000Z
2022-03-23T17:21:34.000Z
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. import numpy as np import pytest import biotite.sequence as seq import biotite.sequence.align as align @pytest.mark.parametrize("db_entry", [entry for entry ...
32.194444
75
0.616911
797632361c8ab7c304e151ea8bf02ba9aa659650
6,343
py
Python
sdks/python/apache_beam/transforms/periodicsequence.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
5,279
2016-12-29T04:00:44.000Z
2022-03-31T22:56:45.000Z
sdks/python/apache_beam/transforms/periodicsequence.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
14,149
2016-12-28T00:43:50.000Z
2022-03-31T23:50:22.000Z
sdks/python/apache_beam/transforms/periodicsequence.py
damondouglas/beam
4774ac713f427fefb38114f661516faef26d8207
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
3,763
2016-12-29T04:06:10.000Z
2022-03-31T22:25:49.000Z
# # 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 us...
36.039773
79
0.748542
7976351a8d6759c9d6de7552ebcbdda1752555ae
1,961
py
Python
setup.py
tepickering/skycam_utils
2b987f0b9a667e1d1c1aee01d355d00333914f1f
[ "BSD-3-Clause" ]
null
null
null
setup.py
tepickering/skycam_utils
2b987f0b9a667e1d1c1aee01d355d00333914f1f
[ "BSD-3-Clause" ]
null
null
null
setup.py
tepickering/skycam_utils
2b987f0b9a667e1d1c1aee01d355d00333914f1f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # NOTE: The configuration for the package, including the name, version, and # other information are set in the setup.cfg file. import os import sys from setuptools import setup # First provide helpful messages if contributors try...
24.822785
78
0.720041
79763546d6f93716ff7352f392972b7a6533607e
5,317
py
Python
sciwx/plugins/histogram.py
Prevalenter/sciwx
dfa81e39eac6582a9248cc57e96d4418f1a1f245
[ "BSD-3-Clause" ]
10
2020-02-12T02:31:15.000Z
2020-07-16T03:46:15.000Z
sciwx/plugins/histogram.py
Prevalenter/sciwx
dfa81e39eac6582a9248cc57e96d4418f1a1f245
[ "BSD-3-Clause" ]
null
null
null
sciwx/plugins/histogram.py
Prevalenter/sciwx
dfa81e39eac6582a9248cc57e96d4418f1a1f245
[ "BSD-3-Clause" ]
4
2020-02-18T00:55:24.000Z
2020-06-05T02:55:56.000Z
from ..widgets import HistPanel, CMapPanel, FloatSlider, CMapSelCtrl import wx, numpy as np class Histogram( wx.Panel ): title = 'Histogram' def __init__( self, parent, app): wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.Size( 255,0 ), style = wx.TAB_TRAVERSAL ) self.app ...
33.23125
129
0.682152
7976365779205002d2518d2cae3925d0f04f024b
90
py
Python
DK_Project/dk_admin/apps.py
xedporject/DK
af8f9521011ac1ee0256db4863220abbbf9699ac
[ "Apache-2.0" ]
2
2018-08-02T10:59:46.000Z
2018-08-07T08:31:06.000Z
DK_Project/dk_admin/apps.py
xedporject/DK
af8f9521011ac1ee0256db4863220abbbf9699ac
[ "Apache-2.0" ]
null
null
null
DK_Project/dk_admin/apps.py
xedporject/DK
af8f9521011ac1ee0256db4863220abbbf9699ac
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class DkAdminConfig(AppConfig): name = 'dk_admin'
15
33
0.755556
7976380b98a420f1b1d778c73d91d94067e75a3e
4,522
py
Python
horizon/tests/testsettings.py
StackOps/horizon
cb48cebefc277912c870eaee76fe0466308abed4
[ "Apache-2.0" ]
1
2016-08-18T05:55:59.000Z
2016-08-18T05:55:59.000Z
horizon/tests/testsettings.py
StackOps/horizon
cb48cebefc277912c870eaee76fe0466308abed4
[ "Apache-2.0" ]
null
null
null
horizon/tests/testsettings.py
StackOps/horizon
cb48cebefc277912c870eaee76fe0466308abed4
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
29.363636
78
0.642636
7976386b716ac831c5d4e4bb1d870976c785caf3
9,589
py
Python
compliance_exceptions/aws-kms-mrk-aware-symmetric-keyring.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
95
2018-08-20T23:10:00.000Z
2022-02-17T02:54:32.000Z
compliance_exceptions/aws-kms-mrk-aware-symmetric-keyring.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
220
2018-08-01T20:56:29.000Z
2022-03-28T18:12:35.000Z
compliance_exceptions/aws-kms-mrk-aware-symmetric-keyring.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
63
2018-08-01T19:37:33.000Z
2022-03-20T17:14:15.000Z
# The AWS Encryption SDK - Python does not implement Keyrings # //= compliance/framework/aws-kms/aws-kms-mrk-aware-symmetric-keyring.txt#2.5 # //= type=exception # //# MUST implement the AWS Encryption SDK Keyring interface (../keyring- # //# interface.md#interface) # //= compliance/framework/aws-kms/aws-kms-mrk-awar...
43.785388
78
0.721243
79763936ce758d60b5f69755374977c70f91e75e
44,992
py
Python
framework/auth/views.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
null
null
null
framework/auth/views.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
80
2015-02-25T15:12:15.000Z
2015-06-11T18:44:55.000Z
framework/auth/views.py
brianjgeiger/osf.io
aef962685056ac4f721cf9680fca5ec2dbfed675
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import furl from rest_framework import status as http_status from future.moves.urllib.parse import urlencode import markupsafe from django.core.exceptions import ValidationError from django.utils import timezone from flask import request from addons.osfstorage.models import Region from framewo...
39.5708
137
0.662651
79763ca35b7b46dbe131f7671a28c63586350152
6,747
py
Python
cms/plugins/picture/migrations/0008_longdesc_added.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
2
2018-05-17T02:49:49.000Z
2019-08-20T02:07:44.000Z
cms/plugins/picture/migrations/0008_longdesc_added.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
2
2019-02-13T07:58:23.000Z
2019-02-13T07:58:27.000Z
cms/plugins/picture/migrations/0008_longdesc_added.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.db import db from django.db import models from cms.plugins.picture.models import * class Migration: def forwards(self, orm): "Write your forwards migration here" def backwards(self, orm): "Write your backwards migration here" models = { 'cm...
79.376471
184
0.568253
79763d059af33d68b945f67cc044a162a73c75e6
6,668
py
Python
src/redgrease/formatting.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
src/redgrease/formatting.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
src/redgrease/formatting.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Helper module for the sole purpose of handling log formatting. """ __author__ = "Anders Åström" __contact__ = "anders@lyngon.com" __copyright__ = "2021, Lyngon Pte. Ltd." __licence__ = """The MIT License Copyright © 2021 Lyngon Pte. Ltd. Permission is hereby granted, free of charge, to any ...
34.549223
88
0.661368
79763d18d2a25c707fd979d98c4b64551d8b772e
6,953
py
Python
homeassistant/components/fritzbox/config_flow.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
1
2019-08-19T18:18:50.000Z
2019-08-19T18:18:50.000Z
homeassistant/components/fritzbox/config_flow.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
70
2020-08-05T07:20:00.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/fritzbox/config_flow.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
1
2021-09-25T17:35:19.000Z
2021-09-25T17:35:19.000Z
"""Config flow for AVM FRITZ!SmartHome.""" from urllib.parse import urlparse from pyfritzhome import Fritzhome, LoginError from requests.exceptions import HTTPError import voluptuous as vol from homeassistant import config_entries from homeassistant.components.ssdp import ( ATTR_SSDP_LOCATION, ATTR_UPNP_FRIEN...
33.917073
88
0.623903
79763ea0d482b6514dd7ad1924b32edc42b66339
3,100
py
Python
perfkitbenchmarker/linux_benchmarks/blazemark_benchmark.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/linux_benchmarks/blazemark_benchmark.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
1
2021-09-09T07:43:25.000Z
2021-09-09T10:47:56.000Z
perfkitbenchmarker/linux_benchmarks/blazemark_benchmark.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2016 PerfKitBenchmarker 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 appli...
31.313131
80
0.697419
79763fb738581ccf5384d6fe8e65da6b79ca4509
14,506
py
Python
settings.py
douyacun/dianping
8091e946a01933bbea86df20cb9fc5a79d680c10
[ "MIT" ]
null
null
null
settings.py
douyacun/dianping
8091e946a01933bbea86df20cb9fc5a79d680c10
[ "MIT" ]
1
2021-03-31T19:07:47.000Z
2021-03-31T19:07:47.000Z
settings.py
douyacun/dianping
8091e946a01933bbea86df20cb9fc5a79d680c10
[ "MIT" ]
null
null
null
# coding:utf-8 from config import COOKIE # 点评首页 HOST = 'http://www.dianping.com' # 各类请求URL API_CITY = 'https://www.dianping.com/{city}' API_CITY_LIST = 'http://www.dianping.com/citylist' API_CITY_HOT = 'http://www.dianping.com/bar/search?cityId={id}' API_CITY_MAP = 'http://www.dianping.com/search/map/keyword/{id}/0_1...
56.664063
209
0.658279
79763fe49084b520c66eea749d4254af88e32c6d
6,075
py
Python
nodes/roku.py
bpaauwe/RokuPoly
41fcbae7665e4c98a2f183d287d9bdacc3b5d859
[ "MIT" ]
1
2020-10-20T18:29:59.000Z
2020-10-20T18:29:59.000Z
nodes/roku.py
bpaauwe/RokuPoly
41fcbae7665e4c98a2f183d287d9bdacc3b5d859
[ "MIT" ]
5
2020-07-21T23:25:41.000Z
2020-10-21T13:31:57.000Z
nodes/roku.py
bpaauwe/RokuPoly
41fcbae7665e4c98a2f183d287d9bdacc3b5d859
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Polyglot v2 node server experimental Roku Media Player control. Copyright (C) 2019,2020 Robert Paauwe """ import polyinterface import sys import time #import datetime #import socket #import math import json import requests import node_funcs import write_profile as profile from xml.etree impor...
31.973684
115
0.562963
7976410e156eb7e107b8c98c08c709a26b72e44d
1,170
py
Python
packages/sklearn/_bak/Random Forest/nodes/Random Forest___RFCPredict_Log_Proba0/Random Forest___RFCPredict_Log_Proba0___METACODE.py
frecklebars/Ryven
86a8c06effc47897d0b8fbbd1fa8580a957f9515
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
packages/sklearn/base/nodes/base___Predict_Log_Proba0/base___Predict_Log_Proba0___METACODE.py
frecklebars/Ryven
86a8c06effc47897d0b8fbbd1fa8580a957f9515
[ "MIT" ]
null
null
null
packages/sklearn/base/nodes/base___Predict_Log_Proba0/base___Predict_Log_Proba0___METACODE.py
frecklebars/Ryven
86a8c06effc47897d0b8fbbd1fa8580a957f9515
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from NIENV import * # API METHODS -------------- # self.main_widget # self.update_shape() # Ports # self.input(index) # self.set_output_val(index, val) # self.exec_output(index) # self.create_new_input(type_, label, widget_name=None, widget_pos='under', pos=-1) # self.delete_input(index) # self.create_new_output(t...
22.941176
83
0.609402
797641b9efe739eb80fe915a9774b7ebb837ebe8
1,372
py
Python
samples/category_create.py
neethi-shashidhar/python-opsramp
d94071e70be066e82b47e389f1304dbc27e9bc60
[ "Apache-2.0" ]
null
null
null
samples/category_create.py
neethi-shashidhar/python-opsramp
d94071e70be066e82b47e389f1304dbc27e9bc60
[ "Apache-2.0" ]
null
null
null
samples/category_create.py
neethi-shashidhar/python-opsramp
d94071e70be066e82b47e389f1304dbc27e9bc60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Exercise the opsramp module as an illustration of how to use it. # # (c) Copyright 2019 Hewlett Packard Enterprise Development LP # # 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 th...
26.384615
74
0.709184
797642494cb0f579fd9ae8af9e92670d529eccaa
12,246
py
Python
workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy/cdk_snyk_codeartifact_stack.py
dinaodum/aws-modernization-with-snyk-security
bd6552eaf3452d2f31a7af7ebd7b9ef2958e1d10
[ "Apache-2.0", "MIT-0" ]
1
2021-12-02T09:21:41.000Z
2021-12-02T09:21:41.000Z
workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy/cdk_snyk_codeartifact_stack.py
dinaodum/aws-modernization-with-snyk-security
bd6552eaf3452d2f31a7af7ebd7b9ef2958e1d10
[ "Apache-2.0", "MIT-0" ]
null
null
null
workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy/cdk_snyk_codeartifact_stack.py
dinaodum/aws-modernization-with-snyk-security
bd6552eaf3452d2f31a7af7ebd7b9ef2958e1d10
[ "Apache-2.0", "MIT-0" ]
2
2021-11-08T21:21:07.000Z
2021-11-09T17:30:18.000Z
from pathlib import Path from aws_cdk import ( aws_events as events, aws_events_targets as targets, aws_iam as iam, aws_codepipeline as pipeline, aws_codecommit as codecommit, aws_codebuild as codebuild, aws_codepipeline_actions as cpactions, aws_ssm as ssm, aws_s3 as s3, aws_lo...
42.227586
150
0.432386
797642ddf20fec6607740cda699336ed16d728c7
361
py
Python
project0001api/follower/migrations/0002_auto_20201204_0656.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
project0001api/follower/migrations/0002_auto_20201204_0656.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
project0001api/follower/migrations/0002_auto_20201204_0656.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2020-12-04 06:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('follower', '0001_initial'), ] operations = [ migrations.RenameField( model_name='follower', old_name='followers', ...
19
48
0.581717
797644658cbe3254ac7044b2583cb904d4984c86
2,133
bzl
Python
third_party/upb/bazel/workspace_deps.bzl
lishengze/grpc
70fa55155beade94670661f033e91b55f43c9dee
[ "Apache-2.0" ]
1
2021-12-01T03:10:14.000Z
2021-12-01T03:10:14.000Z
third_party/upb/bazel/workspace_deps.bzl
lishengze/grpc
70fa55155beade94670661f033e91b55f43c9dee
[ "Apache-2.0" ]
null
null
null
third_party/upb/bazel/workspace_deps.bzl
lishengze/grpc
70fa55155beade94670661f033e91b55f43c9dee
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def upb_deps(): maybe( http_archive, name = "com_google_absl", url = "https://github.com/abseil/abseil-cpp/archive/b9b925341f9e90f5e7aa0cf23f036c29c7e454eb.zip...
37.421053
106
0.652133
797644a395d3061d1f1fdd99ae06d55556d5ebfe
7,276
py
Python
odoo-13.0/addons/hw_proxy/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/hw_proxy/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/hw_proxy/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from __future__ import print_function import logging import subprocess import time import subprocess from threading import Lock from odoo import http from odoo.http import request _logger = logging.getLogger(__name__)...
33.223744
98
0.577103
79764751e5ba1128175954bed9cc0bdc096afb4f
11
py
Python
tests/modules/aa/bb/cc/cfile.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
2,254
2015-01-05T01:28:03.000Z
2022-03-29T10:37:10.000Z
tests/modules/aa/bb/cc/cfile.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
707
2015-02-07T01:32:02.000Z
2022-03-31T18:00:14.000Z
tests/modules/aa/bb/cc/cfile.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
439
2015-01-16T15:06:08.000Z
2022-03-30T06:19:12.000Z
# cfile.py
5.5
10
0.636364
797648f0d3bdaa2bde13e0165e3472a3989eb008
8,130
py
Python
vuserver/vuserver/settings/base.py
vmware/test-automation-for-web-applications
9a34503f189151136e9e201b341d469719ed1901
[ "Apache-2.0" ]
1
2022-02-23T02:37:02.000Z
2022-02-23T02:37:02.000Z
vuserver/vuserver/settings/base.py
vmware/test-automation-for-web-applications
9a34503f189151136e9e201b341d469719ed1901
[ "Apache-2.0" ]
null
null
null
vuserver/vuserver/settings/base.py
vmware/test-automation-for-web-applications
9a34503f189151136e9e201b341d469719ed1901
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 VMware, Inc. # SPDX-License-Identifier: Apache License 2.0 import os import sys # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(BASE_DIR) # Quick-start development settings - un...
26.568627
107
0.57048
7976493639e333b48112bd5dc57d33a2fedb971a
8,796
py
Python
source/graph.py
Eacaen/composite-blade-design
61437988c4b1a8008927e6365d4c8ba8ba94d162
[ "CNRI-Python", "OML" ]
9
2018-06-01T07:12:25.000Z
2022-03-18T08:43:09.000Z
source/graph.py
furetosan/composite-blade-design
61437988c4b1a8008927e6365d4c8ba8ba94d162
[ "CNRI-Python", "OML" ]
null
null
null
source/graph.py
furetosan/composite-blade-design
61437988c4b1a8008927e6365d4c8ba8ba94d162
[ "CNRI-Python", "OML" ]
3
2019-10-16T01:42:41.000Z
2021-01-14T14:35:27.000Z
import queue import numpy as np import copy def queue_to_list(q): ss = [] while not q.empty(): ss.append(q.get()) return ss ######################################################################### ######################################################################### ################...
25.495652
86
0.491814
7976497eb5c5b86746dc4810f18066e4e2565ed3
1,746
py
Python
setup.py
thiromi/python-schema-registry-client
50fc6a9edd6d5e05d6e251b403108b01f57db067
[ "MIT" ]
null
null
null
setup.py
thiromi/python-schema-registry-client
50fc6a9edd6d5e05d6e251b403108b01f57db067
[ "MIT" ]
null
null
null
setup.py
thiromi/python-schema-registry-client
50fc6a9edd6d5e05d6e251b403108b01f57db067
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ setup.py for python-schema-registry-client.""" from setuptools import find_packages, setup __version__ = "1.8.2" with open("README.md") as readme_file: long_description = readme_file.read() requires = ["fastavro>=1.4.4", "httpx>=0.14,<0.15", "aiofiles>=0.7.0",]...
28.622951
110
0.595074
79764a225ab7ff3768325503a0427a644c7806ea
2,700
py
Python
quizmaster/quiz/models.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
null
null
null
quizmaster/quiz/models.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
5
2021-03-18T20:45:51.000Z
2022-02-10T07:04:31.000Z
quizmaster/quiz/models.py
johnashu/quizmaster
173f27b413b81623f7b80d1bc3768a78b635a972
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.html import escape, mark_safe class User(AbstractUser): is_master = models.BooleanField(default=False) is_quizzer = models.BooleanField(default=False) class Topic(models.Model): name = models.CharField(max_l...
35.526316
106
0.724444
79764a4d5179246d2801ce57ab4766eba0492e8a
627
py
Python
seqpos/lib/python2.7/site-packages/mdseqpos/settings.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mdseqpos/settings.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mdseqpos/settings.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
import os, sys import mdseqpos DEPLOY_DIR = mdseqpos.__path__[0] TEMPLATE_DIRS = (DEPLOY_DIR+'/template') ASSEMBLY_DIR = '/liulab/jfan/reference/' BUILD_DICT = { #"hg17": "humanhg17_May2004/", #"hg18": "humanhg18/", "hg38": "hg38/", #"mm7": "UCSC_MM7/", #"mm...
29.857143
49
0.446571
79764a7fcc3d58623bb28354e09a30b6f047f943
1,259
py
Python
esphomeyaml/components/switch/output.py
sherbang/esphomeyaml
eb7db04d08fd8c1e6fd81934c6ab89959b5678ed
[ "MIT" ]
2
2020-12-03T17:38:24.000Z
2021-03-10T04:11:44.000Z
esphomeyaml/components/switch/output.py
dreed47/esphomeyaml
9890a51c5136c356c2cc7f14a3ab8fe547bbb72a
[ "MIT" ]
null
null
null
esphomeyaml/components/switch/output.py
dreed47/esphomeyaml
9890a51c5136c356c2cc7f14a3ab8fe547bbb72a
[ "MIT" ]
null
null
null
import voluptuous as vol from esphomeyaml.components import output, switch import esphomeyaml.config_validation as cv from esphomeyaml.const import CONF_MAKE_ID, CONF_NAME, CONF_OUTPUT from esphomeyaml.cpp_generator import get_variable, variable from esphomeyaml.cpp_helpers import setup_component from esphomeyaml.cpp_...
34.972222
80
0.798253
79764aebea5c02a2c916c3951ff73f91a020355b
9,449
py
Python
src/cdp/gui.py
GianK128/silla_cdp
d2c7dfbe17ab00e076bd0d79c9d1f8504de8bd5f
[ "MIT" ]
3
2021-09-21T22:14:49.000Z
2021-12-10T20:24:21.000Z
src/cdp/gui.py
GianK128/silla_cdp
d2c7dfbe17ab00e076bd0d79c9d1f8504de8bd5f
[ "MIT" ]
17
2021-07-07T11:29:27.000Z
2021-12-10T20:32:48.000Z
src/cdp/gui.py
GianK128/silla_cdp
d2c7dfbe17ab00e076bd0d79c9d1f8504de8bd5f
[ "MIT" ]
5
2021-10-21T03:41:09.000Z
2021-12-12T17:15:16.000Z
import lvgl as lv import ujson as json from cdp import fsm, group, scr, _users_list, motor_pines, turn_counter from cdp.classes import Usuario from utime import sleep, sleep_ms import lodepng as png from imagetools import get_png_info, open_png def draw_calib_screen(which): group.remove_all_objs() lv.obj.clea...
26.69209
105
0.666102
79764b3ce98da7255cabb27bf8d157fd471cc83b
2,126
py
Python
pysimplegui/DemoPrograms/Demo_Debugger_Built_Into_PSG.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Debugger_Built_Into_PSG.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Debugger_Built_Into_PSG.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg """ Demo program that shows you how to integrate the PySimpleGUI Debugger into your program. This particular program is a GUI based program simply to make it easier for you to interact and change things. In this example, the debugger is not started initiallly. You clic...
37.298246
106
0.637347
79764b5655525d1cbacd5b9b94fc33ec3a7ad2c7
14,703
py
Python
pyaud/_utils.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
2
2021-02-03T01:18:17.000Z
2021-06-28T07:24:29.000Z
pyaud/_utils.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
31
2021-11-11T15:27:14.000Z
2022-03-18T14:44:51.000Z
pyaud/_utils.py
jshwi/pyaud
c3268e56b483661fb8baa6da8c4c96420f0f74b3
[ "MIT" ]
null
null
null
""" pyaud.utils =========== Utility classes and functions. """ from __future__ import annotations import functools as _functools import hashlib as _hashlib import logging as _logging import os as _os import shutil as _shutil import sys as _sys from pathlib import Path as _Path from subprocess import PIPE as _PIPE fro...
34.352804
79
0.572876
79764b88d4817a47987bc4e465c1ca63e770f6ad
1,216
py
Python
sqlfactory.py
israelbgf/sqlfactory
f0ace48b0bee2ba38e23ef9549c5da6c9928c512
[ "MIT" ]
null
null
null
sqlfactory.py
israelbgf/sqlfactory
f0ace48b0bee2ba38e23ef9549c5da6c9928c512
[ "MIT" ]
null
null
null
sqlfactory.py
israelbgf/sqlfactory
f0ace48b0bee2ba38e23ef9549c5da6c9928c512
[ "MIT" ]
null
null
null
import csv import sys from collections import OrderedDict INSERT_STATEMENT = 'INSERT INTO TABLE({0}) VALUES({1});' def csv2sql(csv_file): statements = [] csv_reader = csv.DictReader(csv_file) for row in csv_reader: row = convert_to_ordered_dict(row, csv_reader.fieldnames) statements.appe...
24.32
66
0.624178
79764b95fcaaf516f16f607fdb7dc8419ce4d837
6,379
py
Python
nova/console/xvp.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
null
null
null
nova/console/xvp.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
2
2015-02-03T06:25:24.000Z
2015-02-04T10:10:36.000Z
nova/console/xvp.py
Juniper/nova
f7876474846be4b32070cc33c29535a4174aca7f
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Copyright (c) 2010 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 ...
34.481081
79
0.607305
79764c5a0f93dba06bc935b63b77fbb72fc16d85
971
py
Python
python_utils/plot_utils.py
Selozhd/python_utils
de58d5656ba5c0c21f58c47437c469048e2396c8
[ "MIT" ]
1
2022-03-15T15:44:32.000Z
2022-03-15T15:44:32.000Z
python_utils/plot_utils.py
Selozhd/python_utils
de58d5656ba5c0c21f58c47437c469048e2396c8
[ "MIT" ]
null
null
null
python_utils/plot_utils.py
Selozhd/python_utils
de58d5656ba5c0c21f58c47437c469048e2396c8
[ "MIT" ]
null
null
null
import functools from matplotlib import pyplot as plt def save_or_show(filepath=None): if filepath is not None: plt.savefig(filepath) plt.clf() else: plt.show() def plotting_style(matplotlib_style): """Decorater to wrap a plotting function with a style.""" def style_decorato...
26.243243
61
0.643666
79764ca2da6dbc2a13072d3537878c2736637b47
7,720
py
Python
chesslib/board.py
aditya1709/Multi_agent_chess
5bd5512b455c99fbe72b6263c7222478218d9a9e
[ "WTFPL" ]
null
null
null
chesslib/board.py
aditya1709/Multi_agent_chess
5bd5512b455c99fbe72b6263c7222478218d9a9e
[ "WTFPL" ]
null
null
null
chesslib/board.py
aditya1709/Multi_agent_chess
5bd5512b455c99fbe72b6263c7222478218d9a9e
[ "WTFPL" ]
null
null
null
from itertools import groupby from copy import deepcopy import IPython import pieces import re # import chess.uci class ChessError(Exception): pass class InvalidCoord(ChessError): pass class InvalidColor(ChessError): pass class InvalidMove(ChessError): pass class Check(ChessError): pass class CheckMate(ChessError): p...
29.692308
76
0.546244
79764d0419c0a4f3fb01ffc207caf0fded29a95d
14,233
py
Python
airflow_python_sdk/model/pool_collection_all_of.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
12
2021-01-22T15:07:47.000Z
2021-10-19T13:47:40.000Z
airflow_python_sdk/model/pool_collection_all_of.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
null
null
null
airflow_python_sdk/model/pool_collection_all_of.py
zachliu/airflow-python-sdk
70b5d08955a9e218fa6163b0612856e09eedce63
[ "MIT" ]
2
2021-04-04T13:30:53.000Z
2021-07-20T13:58:07.000Z
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
81.331429
7,645
0.680601
79764d989f7be858e8025f6e34cd40a30bb81d63
1,614
py
Python
data/p3BR/R1/benchmark/startCirq23.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startCirq23.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startCirq23.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=6 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for ...
26.9
77
0.699504
79764de03850c0acdda5df46ba7c8b0036618e1c
4,354
py
Python
attribute_calculators/name_calculator.py
neelsomani/audience-analysis
78e3dd049496f82679eb255b943e4b7ab8595183
[ "MIT" ]
3
2020-07-01T09:59:30.000Z
2021-01-07T22:12:47.000Z
attribute_calculators/name_calculator.py
neelsomani/audience-analysis
78e3dd049496f82679eb255b943e4b7ab8595183
[ "MIT" ]
null
null
null
attribute_calculators/name_calculator.py
neelsomani/audience-analysis
78e3dd049496f82679eb255b943e4b7ab8595183
[ "MIT" ]
null
null
null
from collections import defaultdict import json import logging import requests from typing import Dict from attribute_calculators.attribute_calculator import AttributeCalculator from models import Signal from util import get_urls_from_string from bs4 import BeautifulSoup with open('datasets/female_first_names.json',...
34.015625
78
0.601746
79764ebaa929deffbe2a6336f1dc89235cc2956e
179
py
Python
addons/l10n_be_hr_payroll_fleet/models/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/l10n_be_hr_payroll_fleet/models/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/l10n_be_hr_payroll_fleet/models/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import fleet from . import res_config_settings from . import hr_contract
25.571429
74
0.748603
79764f29e2d86e9d0173bc1aa4a1e9fd2df42e3a
3,554
py
Python
OrzMC/app/Tools.py
OrzGeeker/OrzMC
792791357988c01149b8374db9707547d30631db
[ "Apache-2.0" ]
7
2019-01-14T16:51:02.000Z
2022-02-14T05:50:56.000Z
OrzMC/app/Tools.py
OrzGeeker/OrzMC
792791357988c01149b8374db9707547d30631db
[ "Apache-2.0" ]
2
2019-06-08T11:40:46.000Z
2021-02-23T10:02:18.000Z
OrzMC/app/Tools.py
OrzGeeker/OrzMC
792791357988c01149b8374db9707547d30631db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- from ..core.Oracle import Oracle from ..utils.ColorString import ColorString from ..utils.utils import * from .Config import Config import argparse import re import os def install_jdk(): Oracle.install_jdk() def uninstall_jdk(): Oracle.execute_uninstall_jdk() def rsync_server_core_data...
40.386364
195
0.648846
7976500108fcb7aea392b7f709a6938311e579d6
4,969
py
Python
posthog/test/test_migration_0219.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/test/test_migration_0219.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/test/test_migration_0219.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
from django.db.models import Q from posthog.test.base import TestMigrations class TagsTestCase(TestMigrations): migrate_from = "0218_uniqueness_constraint_tagged_items" # type: ignore migrate_to = "0219_migrate_tags_v2" # type: ignore assert_snapshots = True def setUpBeforeMigration(self, apps): ...
44.366071
116
0.611189
797650068fa15488ae84c91cce80653b42e1ea45
4,476
py
Python
src/ChomskyNormalForm.py
arsaccol/FormalLanguages
1ed65720185e580ffecce6825303c7d2febb7403
[ "MIT" ]
2
2020-07-26T16:48:25.000Z
2020-08-02T02:16:13.000Z
src/ChomskyNormalForm.py
arsaccol/FormalLanguages
1ed65720185e580ffecce6825303c7d2febb7403
[ "MIT" ]
1
2018-05-04T21:50:45.000Z
2018-05-04T21:50:45.000Z
src/ChomskyNormalForm.py
arsaccol/FormalLanguages
1ed65720185e580ffecce6825303c7d2febb7403
[ "MIT" ]
1
2020-10-24T14:15:54.000Z
2020-10-24T14:15:54.000Z
from src.Grammar import Grammar, Rule from copy import deepcopy CONST_VAR_NAMESPACE_SYMBOL = '&' CONST_TERM_NAMESPACE_SYMBOL = ':' class ChomskyNormalForm(Grammar): def __init__(self, grammar, log=False): # remove empty rule from grammar as CNF doesn't have it super().__init__() grammar...
35.808
117
0.604558
79765014b6644025b0fbb9121ef3d9c1d37ce25f
3,018
py
Python
checkers/board.py
as1067/Connect4AlphaZero
1566a3e2cc055ab0d86e75c16c422196dbdb236a
[ "MIT" ]
null
null
null
checkers/board.py
as1067/Connect4AlphaZero
1566a3e2cc055ab0d86e75c16c422196dbdb236a
[ "MIT" ]
null
null
null
checkers/board.py
as1067/Connect4AlphaZero
1566a3e2cc055ab0d86e75c16c422196dbdb236a
[ "MIT" ]
null
null
null
from copy import deepcopy from functools import reduce from .board_searcher import BoardSearcher from .board_initializer import BoardInitializer class Board: def __init__(self): self.player_turn = 1 self.width = 4 self.height = 8 self.position_count = self.width * self.height self.rows_per_user_with_pieces...
33.910112
134
0.777336
79765015ab51f58e0dc490b1ecb89253be5f3e54
224
py
Python
Daily Programmer/Easy Challenges/0121 - Bytelandian Exchange 1/Solution.py
MJVL/Daily-Programmer-Challenges
7db19b46754436189dbcf980348fe47708b44c7e
[ "MIT" ]
2
2018-03-28T18:08:51.000Z
2018-06-09T20:27:52.000Z
Daily Programmer/Easy Challenges/0121 - Bytelandian Exchange 1/Solution.py
MJVL/Programming-Challenges
7db19b46754436189dbcf980348fe47708b44c7e
[ "MIT" ]
null
null
null
Daily Programmer/Easy Challenges/0121 - Bytelandian Exchange 1/Solution.py
MJVL/Programming-Challenges
7db19b46754436189dbcf980348fe47708b44c7e
[ "MIT" ]
null
null
null
def exchange(n): return 1 if n == 0 else exchange(int(n / 2)) + exchange(int(n / 3)) + exchange(int(n / 4)) def main(): print(exchange(int(input("Enter the coin value: ")))) if __name__ == '__main__': main()
20.363636
94
0.59375
7976507053ee33b0d62522eb879208423a6d9c2f
5,518
py
Python
ally/Api.py
alienbrett/PyAlly
bce90f1b7506dbee0a9e3f51947ed16e87687c43
[ "MIT" ]
53
2019-08-11T20:39:16.000Z
2022-02-01T02:05:12.000Z
ally/Api.py
alienbrett/PyAlly
bce90f1b7506dbee0a9e3f51947ed16e87687c43
[ "MIT" ]
53
2019-12-11T06:39:59.000Z
2022-02-13T05:06:44.000Z
ally/Api.py
alienbrett/PyAlly
bce90f1b7506dbee0a9e3f51947ed16e87687c43
[ "MIT" ]
31
2019-10-05T02:28:16.000Z
2022-02-03T03:41:42.000Z
# MIT License # # Copyright (c) 2020 Brett Graves # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
27.59
91
0.626133
797651bb06e4e1e983e2237d5a5a61f89c5be2bc
44,633
py
Python
unet2d/model/proposed.py
vuhoangminh/medical-segmentation
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
[ "MIT" ]
1
2018-12-06T09:17:26.000Z
2018-12-06T09:17:26.000Z
unet2d/model/proposed.py
vuhoangminh/medical-segmentation
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
[ "MIT" ]
null
null
null
unet2d/model/proposed.py
vuhoangminh/medical-segmentation
4a2a663d1f2d6de5c78bc521f6ed2aa1681a8804
[ "MIT" ]
2
2019-05-07T10:07:33.000Z
2019-05-20T12:50:37.000Z
from keras.engine import Input, Model from keras.layers import (Activation, BatchNormalization, Conv2D, Deconvolution2D, Dense, GlobalAveragePooling2D, MaxPooling2D, Permute, PReLU, Reshape, UpSampling2D, multiply, Add) from unet3d.utils.mode...
51.243398
120
0.595591
797651c13ed70112174482a84c66e955ac797187
2,278
py
Python
ModelTrainerScripts/model_trainer_ff_sensor_1140_to_dryspot.py
isse-augsburg/rtm-predictions
cf7336f10a27fadb479b9ef5d341d17200fbf041
[ "MIT" ]
null
null
null
ModelTrainerScripts/model_trainer_ff_sensor_1140_to_dryspot.py
isse-augsburg/rtm-predictions
cf7336f10a27fadb479b9ef5d341d17200fbf041
[ "MIT" ]
null
null
null
ModelTrainerScripts/model_trainer_ff_sensor_1140_to_dryspot.py
isse-augsburg/rtm-predictions
cf7336f10a27fadb479b9ef5d341d17200fbf041
[ "MIT" ]
null
null
null
from pathlib import Path import torch import Resources.training as r from Models.erfh5_fullyConnected import S1140DryspotModelFCWide from Pipeline.data_gather import get_filelist_within_folder_blacklisted from Pipeline.data_loader_flowfront_sensor import DataloaderFlowfrontSensor from Trainer.ModelTrainer import Mode...
44.666667
99
0.632572
797651d13b6592fc8acb8662292ba853d88cad33
823
py
Python
fcc_split/credo_find.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
18
2015-02-11T20:11:19.000Z
2020-11-13T23:22:47.000Z
fcc_split/credo_find.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
null
null
null
fcc_split/credo_find.py
sunlightlabs/fcc-net-neutrality-comments
56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b
[ "MIT" ]
6
2015-10-26T20:51:26.000Z
2021-04-18T16:47:30.000Z
import sys, os, json, shutil datadir = os.path.dirname(sys.argv[1].rstrip(os.path.sep)) outdir = os.path.join(datadir, "credo_files") if not os.path.exists(outdir): os.mkdir(outdir) for path in sys.argv[1:]: print "=>", path path = path.rstrip(os.path.sep) files = os.listdir(path) path_outdir...
32.92
121
0.648846
7976543d26ba7fb2c3a53f0b87576e029a94e8d3
533
py
Python
nd/change/tests/test_omnibus.py
elfmanryan/geo
d83ce1d994c0a8a7fc461c22f8fd86e30216eefc
[ "MIT" ]
null
null
null
nd/change/tests/test_omnibus.py
elfmanryan/geo
d83ce1d994c0a8a7fc461c22f8fd86e30216eefc
[ "MIT" ]
null
null
null
nd/change/tests/test_omnibus.py
elfmanryan/geo
d83ce1d994c0a8a7fc461c22f8fd86e30216eefc
[ "MIT" ]
null
null
null
import xarray as xr from nd import testing from nd.change import OmnibusTest def test_change(): ds1 = testing.generate_test_dataset( mean=[1, 0, 0, 1], sigma=0.1, ny=5, nx=5 ).isel(time=slice(None, 5)) ds2 = testing.generate_test_dataset( mean=[10, 0, 0, 10], sigma=0.1, ny=5, nx=5 ...
31.352941
51
0.617261
7976547fa821f68cf403b70dfaca4e0e682da68d
3,379
py
Python
codewithstein/settings.py
zebestd/soryabebegim
01fa9f7d11994683c0ade4fd4e2c1d258c9c59c3
[ "MIT" ]
null
null
null
codewithstein/settings.py
zebestd/soryabebegim
01fa9f7d11994683c0ade4fd4e2c1d258c9c59c3
[ "MIT" ]
null
null
null
codewithstein/settings.py
zebestd/soryabebegim
01fa9f7d11994683c0ade4fd4e2c1d258c9c59c3
[ "MIT" ]
null
null
null
""" Django settings for codewithstein project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from p...
24.485507
91
0.697544
797654fe81b3cb4be12ef03f9f3c8f3df6e5c387
453
py
Python
ssl_scrapper/ssl_scrapper.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
ssl_scrapper/ssl_scrapper.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
ssl_scrapper/ssl_scrapper.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
import ssl, socket, pprint, urllib.request import http.client pp = pprint.PrettyPrinter(indent = 4) def printer(hostname): s = socket.create_connection((hostname, 443)) context = ssl.create_default_context() ss = context.wrap_socket(s, server_hostname = hostname) cert = ss.getpeercert(hostname) ...
19.695652
60
0.688742
797656871e0d321b72e5c903b245eea0a1b859c2
8,129
py
Python
global_kde.py
davenza/KDE-AMD
536e1009daf3671be4356d0b5ad8e9d7780711b7
[ "MIT" ]
1
2021-06-04T17:33:32.000Z
2021-06-04T17:33:32.000Z
global_kde.py
davenza/KDE-AMD
536e1009daf3671be4356d0b5ad8e9d7780711b7
[ "MIT" ]
null
null
null
global_kde.py
davenza/KDE-AMD
536e1009daf3671be4356d0b5ad8e9d7780711b7
[ "MIT" ]
null
null
null
""" This file implements an anomaly detector using global KernelDensityEstimation models. """ import numpy as np import scipy.stats as stats import observations_set import os class GlobalKDE(object): """ GlobalKDE implements a global Kernel Density Model for each temporal window. """ def __init__(self...
51.125786
121
0.687907
797656a56a30fa6d8dd20aa7e9beeddff7e1d199
1,638
py
Python
pygame/pong/pong06.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
pygame/pong/pong06.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
pygame/pong/pong06.py
txtbits/daw-python
5dde1207e2791e90aa5e9ce2b6afc4116129efab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Este programa es sólo el comienzo de un ping-pong muy simple pong02.py ''' # Imports generales import pygame import sys from pygame.locals import * # Inicialización entorno pygame.init() # Definiciones de colores BLANCO = (255,255,255) NEGRO = (0,0,0) # Inicializac...
21.552632
62
0.638584
79765716ffc9dca322281b21105552701b7f4bb3
963
py
Python
scripts/characterize.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
12
2019-08-17T15:40:11.000Z
2022-02-04T16:22:18.000Z
scripts/characterize.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
null
null
null
scripts/characterize.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
3
2019-06-04T08:39:56.000Z
2020-01-10T06:52:04.000Z
# characterize.py # author: Playinf # email: playinf@stu.xmu.edu.cn import argparse import codecs import os def process(fin, eow=None): fd = codecs.open(fin, "r", "utf-8") fw = codecs.open('char.%s' % os.path.basename(fin), "w", "utf-8") for line in fd: line = line.strip() wlist = line.s...
20.934783
69
0.582555
797657849c03ee80443f1aca86c45fa761cf057c
9,439
py
Python
inverse_rl/algos/irl_batch_polopt.py
clear-nus/BOIRL
cc872111fda3c7b8118e1a864831013c30f63948
[ "MIT" ]
1
2021-02-26T10:09:15.000Z
2021-02-26T10:09:15.000Z
inverse_rl/algos/irl_batch_polopt.py
clear-nus/BOIRL
cc872111fda3c7b8118e1a864831013c30f63948
[ "MIT" ]
null
null
null
inverse_rl/algos/irl_batch_polopt.py
clear-nus/BOIRL
cc872111fda3c7b8118e1a864831013c30f63948
[ "MIT" ]
null
null
null
import time from rllab.algos.base import RLAlgorithm import rllab.misc.logger as logger import rllab.plotter as plotter from sandbox.rocky.tf.policies.base import Policy import tensorflow as tf from sandbox.rocky.tf.samplers.batch_sampler import BatchSampler from sandbox.rocky.tf.samplers.vectorized_sampler import Vec...
37.605578
111
0.615849
7976586e4cae9c6a59fd0a851a158522478c5e59
378
py
Python
src/tests/test_prob_7.py
arnaudblois/leetcode
242e68ba2d83ab67941e12ab95d723ab0bcdcc23
[ "MIT" ]
1
2022-01-19T18:21:31.000Z
2022-01-19T18:21:31.000Z
src/tests/test_prob_7.py
arnaudblois/leetcode
242e68ba2d83ab67941e12ab95d723ab0bcdcc23
[ "MIT" ]
1
2022-03-30T14:33:16.000Z
2022-03-30T14:33:16.000Z
src/tests/test_prob_7.py
arnaudblois/leetcode
242e68ba2d83ab67941e12ab95d723ab0bcdcc23
[ "MIT" ]
null
null
null
""" Tests for leetcode 007 - Reverse integer.""" from leetcode.prob_7_reverse_integer import reverse_int def test_zigzag_conversion(): """Test zigzag conversion for various input.""" assert reverse_int(1234) == 4321 assert reverse_int(0) == 0 assert reverse_int(-4321) == -1234 assert reverse_int(...
29.076923
55
0.71164
797658ffcf057a1a5caa8526cc25591dbc1cf2a0
1,930
py
Python
import.py
iT-Boyer/my-beancount-scripts
23bb903fd1a5f89aecc8e4a4619618b643a88a56
[ "MIT" ]
273
2019-09-16T01:55:18.000Z
2022-03-25T04:33:45.000Z
import.py
iT-Boyer/my-beancount-scripts
23bb903fd1a5f89aecc8e4a4619618b643a88a56
[ "MIT" ]
19
2019-11-25T13:26:19.000Z
2022-03-15T08:22:14.000Z
import.py
iT-Boyer/my-beancount-scripts
23bb903fd1a5f89aecc8e4a4619618b643a88a56
[ "MIT" ]
74
2019-09-15T07:32:45.000Z
2022-03-20T15:51:36.000Z
import argparse import re from datetime import date from beancount import loader from beancount.core import data from beancount.parser import parser, printer from modules.imports.alipay import Alipay #from modules.imports.ccb_debit import CCBDebit from modules.imports.citic_credit import CITICCredit from modules.impo...
27.571429
81
0.737824
7976590206b2e927a78252315616cf81b97f2ba9
3,750
py
Python
intersight/models/policy_category.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/policy_category.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/policy_category.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UCS Starship API This is the UCS Starship REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class PolicyCategory(object): """ NOTE: This class is...
24.350649
77
0.542667
7976590e555fbfcd9be6f8adebd2c60803711103
8,380
py
Python
Scripts/build/lib.linux-x86_64-2.7/rdpy/ui/view.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
Scripts/build/lib.linux-x86_64-2.7/rdpy/ui/view.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
null
null
null
Scripts/build/lib.linux-x86_64-2.7/rdpy/ui/view.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
# # Copyright (c) 2014-2015 Sylvain Peyrefitte # # This file is part of rdpy. # # rdpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
32.355212
175
0.588425
797659bb7f40ae941928f7731abaf167d7d0a7f3
1,151
py
Python
Task2F.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
Task2F.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
Task2F.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
import datetime import matplotlib.pyplot as plt from floodsystem.datafetcher import fetch_latest_water_level_data, fetch_measure_levels from floodsystem.flood import stations_highest_rel_level from floodsystem.plot import plot_water_level_with_fit from floodsystem.stationdata import build_station_list, update_wate...
30.289474
101
0.719374
79765ae07cd40c8a71e7eee37d5bc0e8ad5f38e4
1,003
py
Python
legacy/regenesis/scrape.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
16
2015-04-09T14:40:53.000Z
2021-07-13T15:03:35.000Z
legacy/regenesis/scrape.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
1
2018-06-25T07:51:18.000Z
2018-06-25T07:51:18.000Z
legacy/regenesis/scrape.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
3
2015-12-20T18:24:21.000Z
2018-06-24T16:57:25.000Z
import time import urllib2, urllib from BeautifulSoup import BeautifulSoup from mongo import cache_result, load_cached import pickle def read_table_pages(url): class Request(urllib2.Request): def get_method(self): return 'POST' while True: ph = urllib2.urlopen(url) page = ph.read() ...
32.354839
79
0.575274
79765b7824ec214bb041c553e9fbdf79bea46481
3,477
py
Python
pyowm/webapi25/configuration25.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
null
null
null
pyowm/webapi25/configuration25.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
162
2019-08-25T19:14:18.000Z
2021-05-10T19:16:30.000Z
pyowm/webapi25/configuration25.py
jpelaezClub/pyowm
ed8185fb6f1e3b0dcd1adc18d7082a76993ff762
[ "MIT" ]
null
null
null
from pyowm.caches import nullcache from pyowm.webapi25 import observationparser, observationlistparser, \ forecastparser, weatherhistoryparser, stationparser, stationlistparser, \ stationhistoryparser, uvindexparser, coindexparser, weathercoderegistry,\ cityidregistry, ozone_parser, no2indexparser, so2index...
27.164063
77
0.658614
79765c44875f69f0ca0e3642a5d9be74d1023e1b
1,883
py
Python
tests/full/test_functions.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
tests/full/test_functions.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
tests/full/test_functions.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
import os import yaml import logbook from scilifelab.bcbio import prune_pp_platform_args from scilifelab.experiment.project import find_samples from ..classes import SciLifeTest LOG = logbook.Logger(__name__) filedir = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) j_doe_00_01 = os.path.abspath(os.pat...
41.844444
99
0.694636
79765c4aa5ee96f60812c5f05e30d00ae611fd49
4,377
py
Python
mlops/kubeflow/robustness_evaluation_fgsm_pytorch/src/robustness.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
1
2020-05-22T19:59:02.000Z
2020-05-22T19:59:02.000Z
mlops/kubeflow/robustness_evaluation_fgsm_pytorch/src/robustness.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
null
null
null
mlops/kubeflow/robustness_evaluation_fgsm_pytorch/src/robustness.py
virkt25/adversarial-robustness-toolbox
3cfa6de196cb32a3efafab2ff6bbf44247c9ddbd
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) IBM Corporation 2019 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
40.155963
120
0.69591
79765c5a720ea881cd1d4a6fe6c198a7478f78d2
5,843
py
Python
pyecharts/charts/polar.py
zwr8/pyecharts
0aa11f75b22c3e328275c19c96806a94559c1bce
[ "MIT" ]
5
2019-04-29T05:54:45.000Z
2020-05-03T16:45:37.000Z
pyecharts/charts/polar.py
Willsgao/pyecharts
0aa11f75b22c3e328275c19c96806a94559c1bce
[ "MIT" ]
null
null
null
pyecharts/charts/polar.py
Willsgao/pyecharts
0aa11f75b22c3e328275c19c96806a94559c1bce
[ "MIT" ]
3
2019-05-20T13:13:20.000Z
2020-06-13T00:55:41.000Z
# coding=utf-8 from pyecharts.chart import Chart class Polar(Chart): """ <<< 极坐标系 >>> 可以用于散点图和折线图。 """ def __init__(self, title="", subtitle="", **kwargs): super(Polar, self).__init__(title, subtitle, **kwargs) def add(self, *args, **kwargs): self.__add(*args, **kwargs) ...
30.752632
77
0.500941
79765c778eb43d280308cfd8e8e90b8473ed1b18
2,093
py
Python
torchflare/callbacks/logging/neptune_logger.py
earlbabson/torchflare
15db06d313a53a3ec4640869335ba87730562b28
[ "Apache-2.0" ]
1
2021-04-28T19:57:57.000Z
2021-04-28T19:57:57.000Z
torchflare/callbacks/logging/neptune_logger.py
earlbabson/torchflare
15db06d313a53a3ec4640869335ba87730562b28
[ "Apache-2.0" ]
null
null
null
torchflare/callbacks/logging/neptune_logger.py
earlbabson/torchflare
15db06d313a53a3ec4640869335ba87730562b28
[ "Apache-2.0" ]
null
null
null
"""Implements Neptune Logger.""" from abc import ABC from typing import List import neptune.new as neptune from torchflare.callbacks.callback import Callbacks from torchflare.callbacks.states import CallbackOrder class NeptuneLogger(Callbacks, ABC): """Callback to log your metrics and loss values to Neptune to ...
32.703125
105
0.644529
79765e117a07836317f9e733249cc751c7a51185
17,894
py
Python
aiida_phonopy/workflows/phonopy.py
zhubonan/aiida-phonopy
9ff6efabaec4326cd2be3130ae7a1f95a5a7e195
[ "MIT" ]
null
null
null
aiida_phonopy/workflows/phonopy.py
zhubonan/aiida-phonopy
9ff6efabaec4326cd2be3130ae7a1f95a5a7e195
[ "MIT" ]
null
null
null
aiida_phonopy/workflows/phonopy.py
zhubonan/aiida-phonopy
9ff6efabaec4326cd2be3130ae7a1f95a5a7e195
[ "MIT" ]
null
null
null
from aiida.engine import WorkChain from aiida.plugins import DataFactory from aiida.orm import Float, Bool, Str, Code from aiida.engine import if_ from aiida_phonopy.common.generate_inputs import (get_calcjob_builder, get_immigrant_builder) from aiida_phonopy.common.uti...
42.3026
81
0.613837
79765e9bba50c2bd081603ca02cdeee52cf55acb
2,304
py
Python
music.py
RudyTuning/discord-music-bot
ff4a8ae13a5b15b0e44bb4ed87b98baaa516584e
[ "MIT" ]
null
null
null
music.py
RudyTuning/discord-music-bot
ff4a8ae13a5b15b0e44bb4ed87b98baaa516584e
[ "MIT" ]
null
null
null
music.py
RudyTuning/discord-music-bot
ff4a8ae13a5b15b0e44bb4ed87b98baaa516584e
[ "MIT" ]
null
null
null
from pathlib import Path, PureWindowsPath import discord import youtube_dl from discord.ext import commands ffmppeg = Path("C:/Program Files/ffmpeg/bin/ffmpeg.exe") ffmppeg = PureWindowsPath(ffmppeg) class Music(commands.Cog): def __init__(self, client): self.client = client @commands.command() ...
28.444444
93
0.588542
797660a8e7afaccdddd706a6292feb20405d45ac
1,145
py
Python
cirq/qis/__init__.py
albertonavaa/Cirq
76352585b9667873e60d51ee8cf7e6549c9d9a5e
[ "Apache-2.0" ]
1
2020-10-15T19:02:39.000Z
2020-10-15T19:02:39.000Z
cirq/qis/__init__.py
albertonavaa/Cirq
76352585b9667873e60d51ee8cf7e6549c9d9a5e
[ "Apache-2.0" ]
5
2020-08-20T01:03:57.000Z
2021-04-13T00:26:48.000Z
cirq/qis/__init__.py
albertonavaa/Cirq
76352585b9667873e60d51ee8cf7e6549c9d9a5e
[ "Apache-2.0" ]
1
2019-06-17T11:21:53.000Z
2019-06-17T11:21:53.000Z
# Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
28.625
74
0.755459
797660ebb62aaf361a72296672a72b5a2a496acc
19,702
py
Python
lib/game.py
qvant/achivement_bot
1d91243df5549123c7b54f1aec6e6b837bf68db8
[ "MIT" ]
null
null
null
lib/game.py
qvant/achivement_bot
1d91243df5549123c7b54f1aec6e6b837bf68db8
[ "MIT" ]
null
null
null
lib/game.py
qvant/achivement_bot
1d91243df5549123c7b54f1aec6e6b837bf68db8
[ "MIT" ]
null
null
null
from typing import Union, List, Dict from .achievement import Achievement from .console import Console class Game: def __init__(self, name: str, platform_id: int, id: Union[int, None], ext_id: str, achievements, console_ext_id: Union[str, None], console: Union[Console, None], ico...
50.517949
117
0.505583
7976610fcbcbf335c52aa2f19594984a9cb6d002
13,572
py
Python
muffin_debugtoolbar/tbtools/tbtools.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
4
2015-06-09T15:22:56.000Z
2016-11-08T11:49:57.000Z
muffin_debugtoolbar/tbtools/tbtools.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
null
null
null
muffin_debugtoolbar/tbtools/tbtools.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ werkzeug.debug.tbtools ~~~~~~~~~~~~~~~~~~~~~~ This module provides various traceback related utility functions. :copyright: (c) 2011 by the Werkzeug Team, see AUTHORS for more details. :license: BSD. """ import re import os import sys import inspect import traceback imp...
34.015038
93
0.564029
79766113c2a424cf8c49e9dac20396437a59d0c2
2,094
py
Python
TDD_Test_Driven_Development/Leilao/leilao_Refactored.py
alaanlimaa/QA_tests
2e6c2b982bf4f09c7027a4bbde4aa0adac63a7cf
[ "MIT" ]
null
null
null
TDD_Test_Driven_Development/Leilao/leilao_Refactored.py
alaanlimaa/QA_tests
2e6c2b982bf4f09c7027a4bbde4aa0adac63a7cf
[ "MIT" ]
null
null
null
TDD_Test_Driven_Development/Leilao/leilao_Refactored.py
alaanlimaa/QA_tests
2e6c2b982bf4f09c7027a4bbde4aa0adac63a7cf
[ "MIT" ]
null
null
null
'''MODULO 06 - SERVE PARA REFATORAR O CÓDIGO, OU SEJA, RETIRAR O QUE NÃO É MAIS NECESSÁRIO''' from excecoes import LanceInvalido class Usuario: def __init__(self, nome, carteira): self._nome = nome self._carteira = carteira def propoe_lance(self, leilao, valor): if not self._valor_eh...
25.851852
113
0.628462
79766125d7c0ad1119508d1465bf0927c7d2db08
4,014
py
Python
utils/tools.py
hongyouc/FedBE
7eeb965d29ce6c35c38f31706a004c00745e59b8
[ "Apache-2.0" ]
12
2021-09-23T19:41:46.000Z
2022-03-29T12:17:25.000Z
utils/tools.py
hongyouc/FedBE
7eeb965d29ce6c35c38f31706a004c00745e59b8
[ "Apache-2.0" ]
1
2022-03-17T08:20:17.000Z
2022-03-17T08:20:17.000Z
utils/tools.py
hongyouc/FedBE
7eeb965d29ce6c35c38f31706a004c00745e59b8
[ "Apache-2.0" ]
1
2022-03-01T11:43:31.000Z
2022-03-01T11:43:31.000Z
import copy import pdb import os import pickle import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn import metrics from scipy.stats import mode from scipy.stats import entropy from scipy.stats import entropy import torch import torch.nn as nn from torch.utils.data i...
27.493151
88
0.615346
7976613d8fb317d62879fb75edae751ee261f6a5
7,115
py
Python
src/ros_speech2text/s2t/speech_detection.py
UCRoboticsLab/BaxterTictactoe
34e4761467af3dc7c9ad65726360e0d1f1923c51
[ "Apache-2.0" ]
1
2017-12-22T20:32:04.000Z
2017-12-22T20:32:04.000Z
src/ros_speech2text/s2t/speech_detection.py
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
2
2017-08-16T00:18:52.000Z
2017-08-16T04:30:05.000Z
src/ros_speech2text/s2t/speech_detection.py
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
null
null
null
import numpy as np from collections import deque import rospy NORMAL_MAXIMUM = 16384 BUFFER_NP_TYPE = '<i2' # little endian, signed short def normalize(snd_data): """Average the volume out """ r = snd_data * (NORMAL_MAXIMUM * 1. / max(1, np.abs(snd_data).max())) return r.astype(snd_data.dtype) ...
33.093023
99
0.621504
79766150ffd75c9b46684c22d07f56c100425bfa
451
py
Python
find_duplicated_word.py
zoveedong/learn-regex
8df92e73b1e002b6839a8307769d2d4f113634f7
[ "MIT" ]
24
2018-12-05T09:03:36.000Z
2021-08-30T06:56:46.000Z
find_duplicated_word.py
zoveedong/learn-regex
8df92e73b1e002b6839a8307769d2d4f113634f7
[ "MIT" ]
null
null
null
find_duplicated_word.py
zoveedong/learn-regex
8df92e73b1e002b6839a8307769d2d4f113634f7
[ "MIT" ]
7
2018-12-06T02:33:24.000Z
2020-07-16T02:29:07.000Z
import re import os regex = r"(([a-zA-Z]+)|([\u4e00-\u9fa5])) {0,}\1" test_str = open('/Users/snowman/PycharmProjects/learn-regex/text.txt').read() matches = re.finditer(regex, test_str, re.MULTILINE) for matchNum, match in enumerate(matches): matchNum = matchNum + 1 print ("Match {matchNum} was found...
28.1875
159
0.651885
7976629f3aed94040eed74c3c8c47a3975cd430c
1,127
py
Python
hardware/hardware_factory.py
ThomasGerstenberg/sublime3-serial-monitor
6e25172aca9ad755b8ec2f7e3efc5664ce35ed7e
[ "BSD-3-Clause" ]
10
2016-02-12T08:44:49.000Z
2018-08-29T21:34:49.000Z
hardware/hardware_factory.py
ThomasGerstenberg/sublime3-serial-monitor
6e25172aca9ad755b8ec2f7e3efc5664ce35ed7e
[ "BSD-3-Clause" ]
30
2015-08-31T18:56:31.000Z
2018-12-04T02:55:02.000Z
hardware/hardware_factory.py
ThomasGerstenberg/sublime3-serial-monitor
6e25172aca9ad755b8ec2f7e3efc5664ce35ed7e
[ "BSD-3-Clause" ]
6
2016-01-21T03:40:28.000Z
2021-12-10T08:13:57.000Z
import sublime import serial_constants from hardware import serial, serial_utils, mock_serial def _is_test_mode(): """ Checks if test mode has been enabled in the settings :return: True if test mode, False if not """ settings = sublime.load_settings(serial_constants.DEFAULT_SETTINGS)...
28.175
72
0.676131
7976636f24a170977d7c1328dc6169f23d463d02
17,964
py
Python
var/spack/repos/builtin/packages/gcc/package.py
bm3d/spack
2f63cc528ff6c8d19d275435f7a8f0e1c183c8b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/gcc/package.py
bm3d/spack
2f63cc528ff6c8d19d275435f7a8f0e1c183c8b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/gcc/package.py
bm3d/spack
2f63cc528ff6c8d19d275435f7a8f0e1c183c8b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 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) from spack import * from spack.operating_systems.mac_os import macos_version, macos_sdk_path from llnl.util import tty im...
41.776744
152
0.599477
797664b3f7a0022474e812ab9aee78890bd5fd88
15,147
py
Python
storage/gitrepo.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
storage/gitrepo.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
storage/gitrepo.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Classes to use git as a storage repository for threat model metadata """ import logging import os from pathlib import Path from io import StringIO import sh from sh.contrib import git from sh import rm import utils.shell as shell import utils.match as match from utils import load_yaml from ut...
45.350299
188
0.62283
797665385f7c93ad325505e905ee0f94f4f5c09a
30,701
py
Python
flaxformer/architectures/bert/bert.py
tomweingarten/flaxformer
572d81662309d42b0cefc5ede7c3c02b6def5035
[ "Apache-2.0" ]
37
2021-11-03T23:11:37.000Z
2022-03-30T17:33:47.000Z
flaxformer/architectures/bert/bert.py
tomweingarten/flaxformer
572d81662309d42b0cefc5ede7c3c02b6def5035
[ "Apache-2.0" ]
null
null
null
flaxformer/architectures/bert/bert.py
tomweingarten/flaxformer
572d81662309d42b0cefc5ede7c3c02b6def5035
[ "Apache-2.0" ]
2
2021-12-29T01:11:49.000Z
2022-02-16T02:20:41.000Z
# Copyright 2022 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.636038
111
0.678447
7976654551c727e1f8970c15ef789e017ebabb3b
396
py
Python
doppelpass/www/setup.py
joelios/doppelpass
80108d5aa6529c5efb1cd1115c7938de1c410034
[ "MIT" ]
null
null
null
doppelpass/www/setup.py
joelios/doppelpass
80108d5aa6529c5efb1cd1115c7938de1c410034
[ "MIT" ]
31
2020-04-24T17:56:54.000Z
2020-09-25T11:06:37.000Z
doppelpass/www/setup.py
joelios/doppelpass
80108d5aa6529c5efb1cd1115c7938de1c410034
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, msmr.ch and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ no_cache = 1 def get_context(context): if frappe.session.user != "Guest": frappe.local.flags.redirect_location = "/main_menue" if frappe....
26.4
116
0.747475
7976654736def4353f1d6ea3e7eebe31407b38b0
9,645
py
Python
lambda/magic.py
maxmode/static_website_autosync_terraform
7ab134212b628a8472c5e8684e46d6d116bb0812
[ "Apache-2.0" ]
2
2018-04-28T18:29:15.000Z
2018-04-30T09:33:08.000Z
lambda/magic.py
maxmode/static_website_autosync_terraform
7ab134212b628a8472c5e8684e46d6d116bb0812
[ "Apache-2.0" ]
null
null
null
lambda/magic.py
maxmode/static_website_autosync_terraform
7ab134212b628a8472c5e8684e46d6d116bb0812
[ "Apache-2.0" ]
null
null
null
""" magic is a wrapper around the libmagic file identification library. See README for more information. Usage: >>> import magic >>> magic.from_file("testdata/test.pdf") 'PDF document, version 1.2' >>> magic.from_file("testdata/test.pdf", mime=True) 'application/pdf' >>> magic.from_buffer(open("testdata/test.pdf").read...
32.806122
142
0.677657
7976657f9cafadab496ad23cf64a8207e8a7cfc6
208
py
Python
mouse.py
WikiBotFoundation/AmongUs
eadb19bc263e85f0ee7c152b2914feca154ffca1
[ "MIT" ]
null
null
null
mouse.py
WikiBotFoundation/AmongUs
eadb19bc263e85f0ee7c152b2914feca154ffca1
[ "MIT" ]
null
null
null
mouse.py
WikiBotFoundation/AmongUs
eadb19bc263e85f0ee7c152b2914feca154ffca1
[ "MIT" ]
null
null
null
int{ mouse( x + y ) d( mouse.controller) } int{ control.mouse(impostor.controller) mouse( goToLocation = allLocation) } int{ control( Location + control) }
17.333333
41
0.538462
797665eac809448245894d89cd23d5b8e9f5cd8d
5,748
py
Python
RP1210 and Python/RP1210ReceiveMessages.py
jeremy-daily/Teensy-Crash-EDR
736e958161124e3c1423da24b29054d7ca2dd53f
[ "MIT" ]
2
2017-10-21T03:04:11.000Z
2018-08-10T08:38:12.000Z
RP1210 and Python/RP1210ReceiveMessages.py
jeremy-daily/Teensy-Crash-EDR
736e958161124e3c1423da24b29054d7ca2dd53f
[ "MIT" ]
1
2017-04-17T16:25:09.000Z
2017-04-17T16:25:09.000Z
RP1210 and Python/RP1210ReceiveMessages.py
jeremy-daily/Teensy-Crash-EDR
736e958161124e3c1423da24b29054d7ca2dd53f
[ "MIT" ]
2
2016-09-18T23:58:44.000Z
2018-04-12T02:41:08.000Z
# RP1210 Hello World # Dr. Jeremy Daily # Associate Professor of Mechanical Engineering # The University of Tulsa # 800 S. Tucker Dr. # Tulsa, OK 74104 # # This is a minimal program that tests to see if you can connect to an RP1210 device. # # This is hard coded for a Nexiq USB-Link import struct import sys import os ...
42.577778
140
0.643876
797665eb8fe3afbf8ada6158dcb532f118bfa8d9
1,685
py
Python
remind/migrations/0001_initial.py
yejunzhou/quantserver
4d9c8c396f7f17644211f95cee76ffc88efe4f0e
[ "Apache-2.0" ]
null
null
null
remind/migrations/0001_initial.py
yejunzhou/quantserver
4d9c8c396f7f17644211f95cee76ffc88efe4f0e
[ "Apache-2.0" ]
2
2020-06-05T23:36:11.000Z
2021-06-10T22:05:48.000Z
remind/migrations/0001_initial.py
yejunzhou/quantserver
4d9c8c396f7f17644211f95cee76ffc88efe4f0e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-02-24 16:54 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations...
48.142857
124
0.656973
7976675e87217662338d5fc3054f34f65232b5a1
1,313
py
Python
sharptable/formatters/cell_formatters/facecolor_cell_formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
null
null
null
sharptable/formatters/cell_formatters/facecolor_cell_formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
1
2021-06-20T03:26:51.000Z
2021-06-20T03:26:51.000Z
sharptable/formatters/cell_formatters/facecolor_cell_formatter.py
peterbbryan/sharptable
bd09e22a9ebd597aba8c468821fcd2f3ddcd4013
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Tuple, Union from sharptable.tables.matplotlib_table import MatplotlibTable from ..cell_formatter import CellFormatter if TYPE_CHECKING: from sharptable.tables import Table class FacecolorCellFormatter(CellFormatter): """ Color the background of a specific cell. ""...
24.773585
82
0.617669
797667a6b4614c533b4061d15689da7ebe2e3794
13,968
py
Python
main.py
qvant/idleRPG
bdea422948d3e84fc97a01630e7fc2ab34920bde
[ "MIT" ]
1
2021-12-21T15:25:43.000Z
2021-12-21T15:25:43.000Z
main.py
qvant/idleRPG
bdea422948d3e84fc97a01630e7fc2ab34920bde
[ "MIT" ]
null
null
null
main.py
qvant/idleRPG
bdea422948d3e84fc97a01630e7fc2ab34920bde
[ "MIT" ]
1
2021-12-21T15:26:28.000Z
2021-12-21T15:26:28.000Z
import argparse import codecs import datetime import json import random import time from lib.ability import AbilityType from lib.ai import CharAI from lib.char_classes import CharClass from lib.character import Character from lib.config import Config from lib.consts import START_CLEAR, START_RESUME, LOG_MAIN_APP, LOG_...
40.842105
120
0.551904
797667db7e695c1aabbde4ef274ba975adc5f793
14,956
py
Python
fairseq/utils.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
fairseq/utils.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
fairseq/utils.py
nikitacs16/fairseq
4db7d93e03bae242bb845dd4b6a193e999a9af99
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import contextlib import copy import importlib.util import logging import math import os import sys import warnings from collections import de...
32.094421
111
0.654052
797668602a0b807debbd1753eb8192366a97a8a4
24,863
py
Python
tests/arch/x86/translators/test_sse.py
IMULMUL/barf-project
9547ef843b8eb021c2c32c140e36173c0b4eafa3
[ "BSD-2-Clause" ]
1,395
2015-01-02T11:43:30.000Z
2022-03-30T01:15:26.000Z
tests/arch/x86/translators/test_sse.py
IMULMUL/barf-project
9547ef843b8eb021c2c32c140e36173c0b4eafa3
[ "BSD-2-Clause" ]
54
2015-02-11T05:18:05.000Z
2021-12-10T08:45:39.000Z
tests/arch/x86/translators/test_sse.py
IMULMUL/barf-project
9547ef843b8eb021c2c32c140e36173c0b4eafa3
[ "BSD-2-Clause" ]
207
2015-01-05T09:47:54.000Z
2022-03-30T01:15:29.000Z
# Copyright (c) 2014, Fundacion Dr. Manuel Sadosky # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of condit...
36.138081
107
0.647388
7976686ac3ef9d232f04eb1371aeb63cd0e24e72
5,726
py
Python
practice/data structures/graph.py
wilding/Playground
7649837e0ac099c0eed39fa9d4a69c7c0064b046
[ "MIT" ]
null
null
null
practice/data structures/graph.py
wilding/Playground
7649837e0ac099c0eed39fa9d4a69c7c0064b046
[ "MIT" ]
null
null
null
practice/data structures/graph.py
wilding/Playground
7649837e0ac099c0eed39fa9d4a69c7c0064b046
[ "MIT" ]
null
null
null
class Node(object): """docstring for Node""" def __init__(self, value): self.value = value self.edges = [] class Edge(object): """docstring for Edge""" def __init__(self, value, node_from, node_to): self.value = value self.node_from = node_from self.node_to = no...
39.489655
89
0.613168
79766b2042464683cf452bad747d99c7a3f5f3e0
97
py
Python
genhmm1d/__init__.py
mamadouyamar/GenHMM1d
dc76946938b53be32e26218c21a373bc6663b13a
[ "MIT" ]
null
null
null
genhmm1d/__init__.py
mamadouyamar/GenHMM1d
dc76946938b53be32e26218c21a373bc6663b13a
[ "MIT" ]
null
null
null
genhmm1d/__init__.py
mamadouyamar/GenHMM1d
dc76946938b53be32e26218c21a373bc6663b13a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 22 20:56:14 2020 @author: 49009427 """
10.777778
36
0.525773
79766bc03a1b0126f9cd40f480d1098d7a5c2960
16,419
py
Python
python-client/cloudera/director/v6/models/cluster_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
24
2015-03-04T01:39:36.000Z
2020-06-30T13:34:27.000Z
python-client/cloudera/director/v6/models/cluster_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
5
2015-11-04T08:18:47.000Z
2019-01-05T11:12:19.000Z
python-client/cloudera/director/v6/models/cluster_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
26
2015-02-24T21:13:53.000Z
2020-12-15T06:01:46.000Z
# coding: utf-8 """ Licensed to Cloudera, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Cloudera, Inc. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use thi...
35.616052
367
0.669225
79766c0413b8e62dea9d136277699e3799bf3395
3,528
py
Python
vsts/vsts/git/v4_0/models/git_conflict.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/git/v4_0/models/git_conflict.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/git/v4_0/models/git_conflict.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.675676
284
0.63322
79766cacf08781776c3177370bdcf42a1b4309d3
3,595
py
Python
test/view_helpers/Test_Go_Js_Views.py
clowdi/OSBot-browser
615dea146f0ab2d2badcfa552efb9b6045d3ca69
[ "Apache-2.0" ]
null
null
null
test/view_helpers/Test_Go_Js_Views.py
clowdi/OSBot-browser
615dea146f0ab2d2badcfa552efb9b6045d3ca69
[ "Apache-2.0" ]
null
null
null
test/view_helpers/Test_Go_Js_Views.py
clowdi/OSBot-browser
615dea146f0ab2d2badcfa552efb9b6045d3ca69
[ "Apache-2.0" ]
1
2019-11-08T10:36:45.000Z
2019-11-08T10:36:45.000Z
from unittest import TestCase from osbot_aws.apis.Lambda import Lambda from osbot_browser.view_helpers.Go_Js_Views import Go_Js_Views from browser import Browser_Lamdba_Helper from pbx_gs_python_utils.utils.Dev import Dev from osbot_browser.view_helpers.View_Examples import View_Examples class Test_Go_Js_Views(Test...
42.797619
108
0.701808
79766cf2b5d378afbcb5aa89bcc0f8d3f80d81f7
23,100
py
Python
Benchmark/Subjects/59282996/epoch_30/repair1.py
ArabelaTso/DeepFD
ce2d2ab9d78ec7a0dbd98ced72fe57631c21c937
[ "Apache-2.0" ]
null
null
null
Benchmark/Subjects/59282996/epoch_30/repair1.py
ArabelaTso/DeepFD
ce2d2ab9d78ec7a0dbd98ced72fe57631c21c937
[ "Apache-2.0" ]
null
null
null
Benchmark/Subjects/59282996/epoch_30/repair1.py
ArabelaTso/DeepFD
ce2d2ab9d78ec7a0dbd98ced72fe57631c21c937
[ "Apache-2.0" ]
1
2022-03-13T06:38:10.000Z
2022-03-13T06:38:10.000Z
import pandas as pd from pandas import * from keras.models import Sequential from keras.layers import LSTM, Dense, TimeDistributed, Bidirectional, Dropout, Masking from keras import optimizers import numpy as np X_batches_train = [np.array([[-1.00612917, 1.47313952, 2.68021318, 1.54875809, 0.98385996, ...
72.641509
96
0.428009
79766e644f9261d8c2e71ae0bebde63a5a5361f6
10,572
py
Python
spotdl/providers/ytm_provider.py
danger-ahead/spotify-downloader
110cd35651af13ea8d1badce336f50f9fd7bc4a1
[ "MIT" ]
1
2022-02-16T00:38:13.000Z
2022-02-16T00:38:13.000Z
spotdl/providers/ytm_provider.py
danger-ahead/spotify-downloader
110cd35651af13ea8d1badce336f50f9fd7bc4a1
[ "MIT" ]
2
2022-03-15T16:29:18.000Z
2022-03-25T16:32:14.000Z
spotdl/providers/ytm_provider.py
danger-ahead/spotify-downloader
110cd35651af13ea8d1badce336f50f9fd7bc4a1
[ "MIT" ]
null
null
null
# =============== # === Imports === # =============== # ! Just for static typing from ytmusicapi import YTMusic from unidecode import unidecode from typing import List, Optional from spotdl.providers.provider_utils import ( _match_percentage, _parse_duration, _create_song_title, ) # ! YTMusic api client...
34.776316
99
0.603103
79766ef3f0b76c8a1d781d722fc9355a16c4cb0c
10,044
py
Python
wordLSTM/main.py
XuMuK1/JokeGeneration
c13a3cd1db54e5088faf821f4375f5fec7ddd5db
[ "MIT" ]
3
2018-12-03T11:02:09.000Z
2019-09-24T00:38:51.000Z
wordLSTM/main.py
XuMuK1/JokeGeneration
c13a3cd1db54e5088faf821f4375f5fec7ddd5db
[ "MIT" ]
null
null
null
wordLSTM/main.py
XuMuK1/JokeGeneration
c13a3cd1db54e5088faf821f4375f5fec7ddd5db
[ "MIT" ]
null
null
null
# coding: utf-8 import argparse import time import pickle import math import torch import torch.nn as nn from torch.autograd import Variable import data import model parser = argparse.ArgumentParser(description='PyTorch Wikitext-2 RNN/LSTM Language Model') parser.add_argument('--data', type=str, default='./data/wikit...
40.176
111
0.611808
79766f63953a855a58426e626051522b8ff97084
292
py
Python
FatherSon/HelloWorld2_source_code/listing_8-4.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/listing_8-4.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/listing_8-4.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_8-4.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # A loop using range() for looper in range (1, 5): print looper, "times 8 =", looper * 8
29.2
82
0.606164
79766f9b319210cd63c96ba7308a5a3c331bba0b
1,272
py
Python
ooobuild/lo/security/key_usage.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/security/key_usage.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/security/key_usage.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
28.909091
123
0.721698
7976700a8bfe3893d07e803eae3a8a068be76d96
31,989
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_log_fortiguard_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_log_fortiguard_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_log_fortiguard_setting.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
32.910494
144
0.379943
797672c7142caa88b396661cd1478168ae60bad5
279
py
Python
.github/noreg-pkg/setup.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
5
2017-11-28T14:57:53.000Z
2019-01-16T08:48:10.000Z
.github/noreg-pkg/setup.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
49
2017-04-11T11:18:58.000Z
2021-02-10T23:06:20.000Z
.github/noreg-pkg/setup.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
8
2017-06-16T17:01:33.000Z
2021-02-09T10:28:03.000Z
# pylint: disable=missing-docstring from setuptools import setup, find_packages if __name__ == '__main__': setup(name='reentry-test-noreg', packages=find_packages(), entry_points={'reentry_test': ['test-noreg = reentry_test_plugin.plugin:PluginClass']})
34.875
97
0.716846
797673692338411fff11e182d59fcb6dcd21a450
47,874
py
Python
py/selenium/webdriver/remote/webdriver.py
LorenVS/selenium
ae1f3bc46ee0e045826d4068308f40378a92abb6
[ "Apache-2.0" ]
null
null
null
py/selenium/webdriver/remote/webdriver.py
LorenVS/selenium
ae1f3bc46ee0e045826d4068308f40378a92abb6
[ "Apache-2.0" ]
null
null
null
py/selenium/webdriver/remote/webdriver.py
LorenVS/selenium
ae1f3bc46ee0e045826d4068308f40378a92abb6
[ "Apache-2.0" ]
null
null
null
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
32.391069
131
0.587271