hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
08293c5bc08ed954a23d30906fce3661d9ea94b7
1,118
py
Python
adpkd_segmentation/utils/criterions.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
5
2021-07-09T16:10:56.000Z
2022-03-23T10:22:16.000Z
adpkd_segmentation/utils/criterions.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
3
2021-06-23T02:47:42.000Z
2022-02-04T22:43:27.000Z
adpkd_segmentation/utils/criterions.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
2
2021-06-05T22:19:29.000Z
2022-03-13T20:50:13.000Z
"""Dictionary of criterions""" class LossesMetrics: """ Produces function to generate dict of keys: losses/metrics for batch""" def __init__(self, criterions_dict, requires_extra_info=None): """ Args: criterions_dict {dict} -- key (str) : criterion_losses requires_extr...
34.9375
79
0.596601
08294a1ba524a26f46e7ac3582da4223f4149b28
306
py
Python
flexget/utils/titles/__init__.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/utils/titles/__init__.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/utils/titles/__init__.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
# make importing these a bit less hassle from flexget.utils.titles.series import SeriesParser, ID_TYPES # pylint: disable=unused-import from flexget.utils.titles.movie import MovieParser # pylint: disable=unused-import from flexget.utils.titles.parser import TitleParser # pylint: disable=unused-import
61.2
95
0.816993
08295a6d3180a2d4e5d159bfa36c8a83a9ed3eec
1,802
py
Python
scripts/artifacts/healthSteps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
1
2020-10-06T20:28:03.000Z
2020-10-06T20:28:03.000Z
scripts/artifacts/healthSteps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
scripts/artifacts/healthSteps.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
import glob import os import pathlib import plistlib import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows from scripts.ccl import ccl_bplist def get_healthSteps(files_found, report_folder, seeker): file_found = str(files_f...
31.614035
97
0.651498
082964f5fac07d84ffd4d3ba6bea5088774314c0
1,535
py
Python
python/ray/tune/examples/nevergrad_example.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
python/ray/tune/examples/nevergrad_example.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
python/ray/tune/examples/nevergrad_example.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
"""This test checks that Nevergrad is functional. It also checks that it is usable with a separate scheduler. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import ray from ray.tune import run from ray.tune.schedulers import AsyncHyperBandScheduler fro...
27.410714
79
0.652117
08296ad65c7ec182f41de909222e6a4643f82c76
4,865
py
Python
homeassistant/components/influxdb.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
null
null
null
homeassistant/components/influxdb.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
null
null
null
homeassistant/components/influxdb.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
null
null
null
""" A component which allows you to send data to an Influx database. For more details about this component, please refer to the documentation at https://home-assistant.io/components/influxdb/ """ import logging import voluptuous as vol from homeassistant.const import ( EVENT_STATE_CHANGED, STATE_UNAVAILABLE, STA...
34.75
79
0.629599
082998bb9877d3d32965204312e4a78b418f3c0b
47,361
py
Python
lib/rucio/tests/test_replica.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_replica.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_replica.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
50.762058
179
0.591542
08299a87925b303b06127c9a3422ac7c7516ca14
45,054
py
Python
backend/generate_sketch.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
14
2017-03-07T00:14:33.000Z
2022-02-09T00:59:22.000Z
backend/generate_sketch.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
11
2016-11-22T13:14:55.000Z
2021-12-14T00:56:51.000Z
backend/generate_sketch.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
6
2016-11-07T13:38:45.000Z
2021-04-04T12:13:31.000Z
from stencil_ir import * from verify import * from assertion_to_sketch import * import asp.codegen.ast_tools as ast_tools from invariant import * import logging def loop_key(node): import hashlib return hashlib.sha224(tree_to_str(node)).hexdigest()[0:10] class RHSInvariantReplacer(ast_tools.NodeTransformer): ...
45.463169
181
0.571692
0829d56365ea424dc0367bfe1acee48bf79269dc
4,815
py
Python
exe/borges/db_borges.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/borges/db_borges.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
exe/borges/db_borges.py
Tristanovsk/trios
d84a498f0b562d7a792a4588e4d983be885f24b9
[ "MIT" ]
null
null
null
import os, sys import pandas as pd import numpy as np import xarray as xr import glob import io import matplotlib as mpl import matplotlib.pyplot as plt import plotly import plotly.graph_objs as go import cmocean import scipy.optimize as so from scipy.interpolate import interp1d from trios.process import * from trios....
32.533784
116
0.646937
0829e2d7757574078aa03a897d23d1ad0b67dcd7
341
py
Python
src/lib/setup.py
butterflysky/butterfly_bots
6bc282044dcbee9701aa1c45ee492a76eb1be81e
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib/setup.py
butterflysky/butterfly_bots
6bc282044dcbee9701aa1c45ee492a76eb1be81e
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib/setup.py
butterflysky/butterfly_bots
6bc282044dcbee9701aa1c45ee492a76eb1be81e
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup setup( name="butterfly_bot", version="0.1.0", description="Library for building butterfly's discord chat bots", author="Lina Edwards", author_email="lina@butterflysky.dev", packages=["butterfly_bot"], install_requires=[ "opena...
21.3125
69
0.659824
0829e4c9a61b1b868e2927d3bdc0f9b3cfbd59fd
2,682
py
Python
tests/conftest.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
2
2021-07-21T13:25:29.000Z
2021-09-02T03:25:43.000Z
tests/conftest.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
null
null
null
tests/conftest.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
4
2021-04-15T06:27:29.000Z
2021-07-21T13:25:31.000Z
import os.path import pytest import win32com.client import win32com.client.selecttlb import pythoncom import nitsm.codemoduleapi _standalone_tsm_context_tlb = win32com.client.selecttlb.FindTlbsWithDescription( "NI TestStand Semiconductor Module Standalone Semiconductor Module Context" )[0] @pytest.fixture def _p...
32.313253
97
0.770694
082a22cfc2f02028fb8033b4b9430276cf5b8fdd
15,289
py
Python
kraken/pageseg.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
kraken/pageseg.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
kraken/pageseg.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Benjamin Kiessling # 2014 Thomas M. Breuel # # 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 ...
35.974118
131
0.621166
082a318b5044042dacae91bef3264a71df202c33
10,464
py
Python
mitri_van/day_04.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
mitri_van/day_04.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
mitri_van/day_04.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
''' --- Day 4: Passport Processing --- You arrive at the airport only to realize that you grabbed your North Pole Credentials instead of your passport. While these documents are extremely similar, North Pole Credentials aren't issued by a country and therefore aren't actually valid documentation for travel in most ...
33.219048
291
0.639144
082a54954ed49f2ea0a9ed159e0ccdf13eb960d2
538
py
Python
terrascript/provider/mercari/spinnaker.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/mercari/spinnaker.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/mercari/spinnaker.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/mercari/spinnaker.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:28 UTC) import terrascript class spinnaker(terrascript.Provider): """A Spinnaker provider for Terraform""" __description__ = "A Spinnaker provider for Terraform" __namespace__ = "mercari" __...
26.9
74
0.723048
082a5a4a636b9c24544231876feccd1ac0213974
39,982
py
Python
google/cloud/vision_v1p3beta1/services/product_search/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
google/cloud/vision_v1p3beta1/services/product_search/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-09-08T03:19:56.000Z
2022-03-12T00:58:03.000Z
google/cloud/vision_v1p3beta1/services/product_search/transports/grpc_asyncio.py
baronrustamov/python-vision
236a5676459abaa3f0b7d991977dc712259a3176
[ "Apache-2.0" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.604579
121
0.64459
082a60757433db50b52c6abdaed89f6b0116f632
267
py
Python
Python/ex038.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex038.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex038.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
num1 = int(input('Digite o Primeiro numero: ')) num2 = int(input('Digite o Segundo numero: ')) if num1 > num2: print('O PRIMEIRO valor é maior') elif num2 > num1: print('O SEGUNDO valor é maior') else: print('Não existe valor maior, os dois sao iguais!')
29.666667
56
0.670412
082a69d123791c3e87539e544a4c28c333e24dc3
999
py
Python
contrib/scalajs/tests/python/pants_test/contrib/scalajs/tasks/test_scalajs_repl_integration.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
contrib/scalajs/tests/python/pants_test/contrib/scalajs/tasks/test_scalajs_repl_integration.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
contrib/scalajs/tests/python/pants_test/contrib/scalajs/tasks/test_scalajs_repl_integration.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
35.678571
94
0.71972
082a6ec01a71f5c653f9c155e48c714045795d05
2,303
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_from_try_jobs_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_from_try_jobs_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_from_try_jobs_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2016 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. import json from webkitpy.common.net.web_mock import MockWeb from webkitpy.common.system.outputcapture import OutputCapture from webkitpy.tool.commands.reba...
39.033898
120
0.613982
082a84299ff8edeafd53c4f5f730b4b67d57e87d
4,313
py
Python
gammapy/data/tests/test_pointing.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/data/tests/test_pointing.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/data/tests/test_pointing.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging import numpy as np from numpy.testing import assert_allclose from astropy.time import Time from gammapy.data import FixedPointingInfo, PointingInfo from gammapy.utils.testing import assert_time_allclose, requires_data @requires_data() clas...
32.923664
69
0.676791
082a8aac4c713370a5861ed174ddd1aa9dea8e23
5,010
py
Python
auto3dgm/mesh/meshfactory.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
auto3dgm/mesh/meshfactory.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
auto3dgm/mesh/meshfactory.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
from os.path import isfile, splitext from auto3dgm.mesh.mesh import Mesh from numpy import array, ndarray, concatenate, empty, full from vtk import vtkPLYReader,vtkOBJReader,vtkSTLReader,vtkPolyData, vtkPoints, vtkCellArray from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk, numpy_to_vtkIdTypeArray from warn...
45.135135
151
0.627944
082a90822162751597b11502c12b2a8c6471efdf
637
py
Python
mailchimp/config.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
null
null
null
mailchimp/config.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
null
null
null
mailchimp/config.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
1
2018-02-12T18:11:04.000Z
2018-02-12T18:11:04.000Z
class Config: def __init__(self): self.api_key = None self.base_api_url = 'https://api.mailchimp.com/3.0' def get_server_url(self): """ Gets the correct server url for the current api key (if specified). Checks the api key for the datacenter and adds it to the base_api_u...
28.954545
117
0.604396
082ab4f1922de1d277aa7782871c3401427748f3
334
py
Python
apps/enums.py
s-nagaev/stubborn
092c42f57a3e9f6704171d56ce0bee5f12b29519
[ "MIT" ]
1
2022-01-21T18:52:20.000Z
2022-01-21T18:52:20.000Z
apps/enums.py
s-nagaev/stubborn
092c42f57a3e9f6704171d56ce0bee5f12b29519
[ "MIT" ]
4
2022-01-07T10:08:18.000Z
2022-02-06T10:15:22.000Z
apps/enums.py
s-nagaev/stubborn
c5ad0f02c70ea59af9ecddda76339ae3b3999cd3
[ "MIT" ]
null
null
null
from django.db.models import TextChoices class HTTPMethods(TextChoices): GET = 'GET', 'GET' POST = 'POST', 'POST' PUT = 'PUT', 'PUT' PATCH = 'PATCH', 'PATCH' DELETE = 'DELETE', 'DELETE' class BodyFormat(TextChoices): JSON = 'JSON', 'JSON' XML = 'XML', 'XML' PLAIN_TEXT = 'PLAIN_TEXT',...
20.875
43
0.601796
082abcce4d9dc74f1205dcd8af2426ff6059818e
2,830
py
Python
src/djshop/apps/store/models.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
null
null
null
src/djshop/apps/store/models.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
1
2017-05-08T17:05:00.000Z
2018-04-04T11:55:30.000Z
src/djshop/apps/store/models.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
2
2017-04-25T10:32:57.000Z
2020-05-04T16:12:08.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from decimal import Decimal from django.contrib.auth.models import User from django.db import models # Each product belongs to a category class ProductCategory(models.Model): name = models.CharField(max_length=128, verbose_name=u"Name of the produc...
38.243243
114
0.710954
082ae562331e938c78a3bb831769f42949be53bf
1,494
py
Python
test/test_zfsautosnap.py
UCSD-ANF/pyzfsautosnap
1a1e1f08c7cfbef8179fe13da115d179be3b44d4
[ "BSD-2-Clause" ]
null
null
null
test/test_zfsautosnap.py
UCSD-ANF/pyzfsautosnap
1a1e1f08c7cfbef8179fe13da115d179be3b44d4
[ "BSD-2-Clause" ]
null
null
null
test/test_zfsautosnap.py
UCSD-ANF/pyzfsautosnap
1a1e1f08c7cfbef8179fe13da115d179be3b44d4
[ "BSD-2-Clause" ]
null
null
null
from flexmock import flexmock from nose.tools import raises, assert_raises, assert_equal from optparse import Values from zfs.zfsautosnap import App, main from zfs.snapshot import RollingSnapshotter def test_app(): """Test instantiating an App object directly Bypasses the main function for the module """...
26.210526
69
0.712851
082afb763ffc9a8ab03b7cc105a069992f7a9d6e
3,659
py
Python
scripts/utils/convert2lat.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
10
2018-11-07T14:39:15.000Z
2022-03-30T11:27:27.000Z
scripts/utils/convert2lat.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
1
2019-09-24T07:22:33.000Z
2019-09-24T07:22:33.000Z
scripts/utils/convert2lat.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
5
2018-08-02T21:25:30.000Z
2020-08-08T18:52:50.000Z
import geopandas as gpd from shapely.ops import cascaded_union import gdal from os import listdir from os.path import isfile, join, isdir import sys """ This file accepts a GeoJSON file of bounding boxes with a geometry and image ID column to output the pixel bounds of the bounding box in a string column of the form '...
33.263636
79
0.662749
082b1f19e38b2caf079eae6688e16ed9bdfebaf1
1,029
py
Python
ReadWrite/_settingsTemplate.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
ReadWrite/_settingsTemplate.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
ReadWrite/_settingsTemplate.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
########################################################### # Populate the following variables with your desired values. # When done editing this file, rename it to _settings.py and leave it in the same directory. ### local directory to save data. # This is relevant to the decorator called _backupDFs in ReadWrite. ...
102.9
523
0.733722
082b2d586ac064410def84e9cf6cfacbd5b46ac9
8,326
py
Python
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "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. # --------------------------------------------------------------------...
60.333333
153
0.702618
082b53ff7422b536571c48aa65702dfbcbf9e1af
2,527
py
Python
cloudify_common_sdk/iso9660.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
1
2019-04-23T03:06:52.000Z
2019-04-23T03:06:52.000Z
cloudify_common_sdk/iso9660.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
9
2018-12-17T14:08:29.000Z
2022-01-16T17:52:54.000Z
cloudify_common_sdk/iso9660.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
3
2021-12-13T20:53:37.000Z
2022-01-20T09:01:47.000Z
######## # Copyright (c) 2020 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
30.817073
77
0.623269
082b73ff6fe0095db54bc99c130a0615fff17eac
11,437
py
Python
road_model/Cascade_res50_auto_dcnv2_4x_multi/Cascade_r50_auto+dcnv2_4x_multitrain.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
road_model/Cascade_res50_auto_dcnv2_4x_multi/Cascade_r50_auto+dcnv2_4x_multitrain.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
road_model/Cascade_res50_auto_dcnv2_4x_multi/Cascade_r50_auto+dcnv2_4x_multitrain.py
zhaohongyin/mmdetection-2.15
9fd29bfd373a6ad00674471c04ecc916f8ad413e
[ "Apache-2.0" ]
null
null
null
checkpoint_config = dict(interval=4) log_config = dict(interval=50, hooks=[dict(type='TextLoggerHook')]) custom_hooks = [dict(type='NumClassCheckHook')] dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] model = dict( type='CascadeRCNN', pretraine...
36.657051
120
0.48789
082b8460e2e1bc5eebfa482659920166c3b1f7be
6,894
py
Python
example/dj/settings/base.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
example/dj/settings/base.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
example/dj/settings/base.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
# Django settings. import os try: from django.utils.translation import ugettext_lazy as _ except ImportError: def _(val): return val PROJECT_DIR = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..') ) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@exampl...
29.33617
88
0.679721
082b8b3736b71c23b7ef5cd1a0982d2be3050ade
116,743
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/contour/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/contour/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/contour/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # maxpoints # --------- @property def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming str...
36.132157
93
0.56579
082bac1ae694d84b8292775cf271c68afafa5f91
4,493
py
Python
python/openlattice/models/authorized_objects_search_result.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/openlattice/models/authorized_objects_search_result.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/openlattice/models/authorized_objects_search_result.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openlattice.configuration import Configuration ...
30.358108
112
0.621856
082bb420cdb5bdf1d1377cd6052b25b3eda7fb98
6,969
py
Python
myvenv/lib/python3.7/site-packages/django/contrib/gis/gdal/envelope.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
5
2020-07-24T09:38:50.000Z
2022-01-08T11:16:54.000Z
django/contrib/gis/gdal/envelope.py
DYL521/django_source
c77bc43a4457d62bae9b0d4e5886ed2d1380ee6b
[ "PSF-2.0", "BSD-3-Clause" ]
7
2019-09-30T07:09:54.000Z
2021-09-08T01:21:50.000Z
django/contrib/gis/gdal/envelope.py
DYL521/django_source
c77bc43a4457d62bae9b0d4e5886ed2d1380ee6b
[ "PSF-2.0", "BSD-3-Clause" ]
7
2019-09-25T05:42:05.000Z
2020-07-14T17:45:01.000Z
""" The GDAL/OGR library uses an Envelope structure to hold the bounding box information for a geometry. The envelope (bounding box) contains two pairs of coordinates, one for the lower left coordinate and one for the upper right coordinate: +----------o Upper right; (max_x, max_y) ...
38.932961
99
0.563782
082bde5c131861cb7e11277e0976a85f2d7ed83e
8,465
py
Python
ibllib/io/extractors/base.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/io/extractors/base.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/io/extractors/base.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
"""Base Extractor classes A module for the base Extractor classes. The Extractor, given a session path, will extract the processed data from raw hardware files and optionally save them. """ import abc from collections import OrderedDict import json from pathlib import Path import numpy as np import pandas as pd from...
35.124481
98
0.645245
082be17871b9cc1d5b0f7a44abe70ebd2055e8fa
2,562
py
Python
components/sample/keras/train_classifier/tests/test_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/sample/keras/train_classifier/tests/test_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/sample/keras/train_classifier/tests/test_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.415385
104
0.692428
082be33f15de25be88957cb14229352036ee22cf
9,593
py
Python
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator_templates.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2014-2018 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. 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. Redistribution...
37.03861
196
0.723653
082be70db9be322b3a0c0fcd6c602e5e4aaedbf0
180,732
py
Python
twisted/mail/test/test_imap.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
twisted/mail/test/test_imap.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
twisted/mail/test/test_imap.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
# -*- test-case-name: twisted.mail.test.test_imap -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test case for twisted.mail.imap4 """ try: from cStringIO import StringIO except ImportError: from StringIO import StringIO import codecs import locale import os import types fro...
35.973726
123
0.581801
082bfba71c3fc87b7030df5b849c49bbc5dab659
856
py
Python
tests/test_helpers/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_helpers/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_helpers/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
40.761905
80
0.58528
082c080699b31b7acc7b8e68c3d45faaa7dcdb1b
12,303
py
Python
obsolete/pipeline_mapping_benchmark.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
11
2018-09-07T11:33:23.000Z
2022-01-07T12:16:11.000Z
obsolete/pipeline_mapping_benchmark.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
102
2018-03-22T15:35:26.000Z
2022-03-23T17:46:16.000Z
obsolete/pipeline_mapping_benchmark.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
7
2018-06-11T15:01:41.000Z
2020-03-31T09:29:33.000Z
"""========================================= Read Mapping parameter titration pipeline ========================================= * align reads to the genome using a range of different parameters * calculate alignment statistics Requirements ------------ On top of the default cgat setup, the pipeline requires ...
35.66087
197
0.462408
082c27c52453b7b56b0dde02254e767b083aa2b2
2,116
py
Python
superset/db_engine_specs/__init__.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
superset/db_engine_specs/__init__.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
19
2020-03-24T17:17:37.000Z
2022-03-29T22:28:09.000Z
superset/db_engine_specs/__init__.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
3
2020-04-15T16:34:09.000Z
2020-06-22T17:26:45.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 u...
39.924528
82
0.756144
082c74493e5e3c2c4e3642c2dfdf6be3077e4b9b
9,219
py
Python
ironic/tests/unit/api/controllers/v1/test_event.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
1
2020-06-01T14:57:09.000Z
2020-06-01T14:57:09.000Z
ironic/tests/unit/api/controllers/v1/test_event.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
13
2019-04-12T21:55:36.000Z
2020-05-26T14:07:13.000Z
ironic/tests/unit/api/controllers/v1/test_event.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
11
2019-04-10T04:43:33.000Z
2020-01-31T10:34:14.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...
50.653846
79
0.654409
082c92f42002a4d305c82f0c7b62bd5d36d433d3
4,381
py
Python
mask/eolearn/mask/masking.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
mask/eolearn/mask/masking.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
mask/eolearn/mask/masking.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
""" Module for creating mask features Credits: Copyright (c) 2017-2019 Matej Aleksandrov, Matej Batič, Andrej Burja, Eva Erzin (Sinergise) Copyright (c) 2017-2019 Grega Milčinski, Matic Lubej, Devis Peresutti, Jernej Puc, Tomislav Slijepčević (Sinergise) Copyright (c) 2017-2019 Blaž Sovdat, Nejc Vesel, Jovan Višnjić, ...
45.164948
119
0.698699
082cb99852e37ace0fdefbdd1477ecbfbd0ae3e7
2,475
py
Python
test/attack/test_pgd.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
61
2019-11-19T03:53:54.000Z
2022-03-26T15:57:47.000Z
test/attack/test_pgd.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
2
2020-12-08T10:07:21.000Z
2021-02-24T00:29:15.000Z
test/attack/test_pgd.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
30
2019-12-03T13:43:22.000Z
2022-03-26T15:57:59.000Z
"""Verify that instantiation and operation of the CNN/CLDNN do not crash. .. note:: This doesn't actually check if the attack "works" because "works" is pretty subjective (what "adversarial success" is "good"?). Therefore, whether it "works" is better left to human analysis of experiment outputs but this...
33
87
0.648081
082cd303e10b15eba2fef0dfae4a89fc6b5f38e1
17,659
py
Python
homeassistant/helpers/service.py
maximoei/core
3df67ff9e12868734b369a2a27612036638f6df4
[ "Apache-2.0" ]
1
2018-04-24T21:48:14.000Z
2018-04-24T21:48:14.000Z
homeassistant/helpers/service.py
maximoei/core
3df67ff9e12868734b369a2a27612036638f6df4
[ "Apache-2.0" ]
44
2020-08-03T07:31:07.000Z
2022-03-31T06:02:04.000Z
homeassistant/helpers/service.py
jeroen84/home-assistant
a47f73244c0b3fbe4210ffd7731be69b3984fbbd
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Service calling related helpers.""" import asyncio from functools import partial, wraps import logging from typing import ( TYPE_CHECKING, Any, Awaitable, Callable, Dict, Iterable, List, Optional, Set, Tuple, ) import voluptuous as vol from homeassistant.auth.permissions.con...
30.818499
146
0.636219
082d28fd53447cb01553344e3b1df7f5d8383387
456
py
Python
myproject/common/views.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
3
2018-08-15T16:17:19.000Z
2020-01-13T22:20:49.000Z
myproject/common/views.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
45
2018-06-23T18:02:28.000Z
2021-08-25T14:46:12.000Z
myproject/common/views.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
null
null
null
""" Unauthenticated general view entrance functions. """ import logging from django.http import HttpResponseRedirect from django.urls import reverse __author__ = "Alex Laird" __copyright__ = "Copyright 2018, Alex Laird" __version__ = "0.2.0" logger = logging.getLogger(__name__) def home(request): redirect = r...
19.826087
48
0.743421
082d976af92e779fb14750b67e9118ec5256e3b6
8,220
py
Python
referentiel/forms.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
1
2017-12-13T20:28:32.000Z
2017-12-13T20:28:32.000Z
referentiel/forms.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
referentiel/forms.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
from django import forms from referentiel.models import * class BaseReferenceForm(forms.ModelForm): host = forms.ModelChoiceField(Host.objects.order_by('name'), required=True) service = forms.ModelChoiceField(Service.objects.order_by('name'), required=True) mail_criticity = forms.ModelChoiceField(MailCrit...
40.693069
123
0.650365
082d9a7bcb8aafc559fb8be11a5997bcd110aa20
4,463
py
Python
scripts/adas_label.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
2
2020-01-19T01:21:42.000Z
2020-11-18T01:50:17.000Z
scripts/adas_label.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
null
null
null
scripts/adas_label.py
LeftThink/DetNet_pytorch
c8205fb4cba24bac97bf10a37d74f9940aa0b9c8
[ "MIT" ]
4
2019-01-02T09:14:49.000Z
2020-12-22T02:12:57.000Z
#!/usr/bin/env python from __future__ import print_function import os, sys import re import glob from PIL import Image from adas_utils import convert, image2label, recursive_get_images def get_counters(label_map): counters = {} for i in label_map.keys(): counters[i] = 0 return counters def conv...
31.652482
144
0.560834
082da7a82194e757c261717009109361a4d10785
3,449
py
Python
test/test_models.py
chr1st1ank/schemathesis
f2e160d56c1fdce9eac7fee5875b209c8944f54a
[ "MIT" ]
1
2020-05-22T19:48:35.000Z
2020-05-22T19:48:35.000Z
test/test_models.py
arvindjangra1996/schemathesis
2132cd26e057b19f3f7600ccaa6e8a515a194481
[ "MIT" ]
null
null
null
test/test_models.py
arvindjangra1996/schemathesis
2132cd26e057b19f3f7600ccaa6e8a515a194481
[ "MIT" ]
null
null
null
from test.utils import SIMPLE_PATH import pytest import requests import schemathesis from schemathesis.models import Case, Endpoint def test_path(swagger_20): endpoint = Endpoint("/users/{name}", "GET", {}, swagger_20) case = Case(endpoint, path_parameters={"name": "test"}) assert case.formatted_path ==...
30.794643
141
0.654972
082daedb90e1d7d67654f384d89164daecec5a1c
1,119
py
Python
Roots/code/OldCode/webs_SqRoots.py
klocey/AnthroMath
89fbced1becda1fcbbe82308c494715297ed7f39
[ "CC0-1.0" ]
null
null
null
Roots/code/OldCode/webs_SqRoots.py
klocey/AnthroMath
89fbced1becda1fcbbe82308c494715297ed7f39
[ "CC0-1.0" ]
6
2015-06-24T21:49:20.000Z
2015-08-28T17:17:14.000Z
Roots/code/OldCode/webs_SqRoots.py
klocey/AnthroMath
89fbced1becda1fcbbe82308c494715297ed7f39
[ "CC0-1.0" ]
2
2015-06-24T19:14:54.000Z
2015-06-28T03:40:38.000Z
from __future__ import division import sys import os import matplotlib.pyplot as plt mydir = os.path.expanduser("~/") def closest_perfect_square(n): """ http://stackoverflow.com/questions/15390807/integer-square-root-in-python """ x = n y = (x + 1) // 2 while y < x: x = y y = (x + n /...
18.048387
96
0.60143
082db055b307658686af223af517ab3847ffea9f
348
py
Python
src/emitters/opt/get_class.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/emitters/opt/get_class.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/emitters/opt/get_class.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
"""Provides method for retrieving opt class from string name.""" from src.emitters.opt.cma_es import CMAEvolutionStrategy CLASSES = { "cma_es": CMAEvolutionStrategy, } def get_class(name): """Retrieves opt class associated with a name.""" if name in CLASSES: return CLASSES[name] raise ValueEr...
24.857143
64
0.704023
082dca8e2763e35a22b8053b33ee791170ec6746
679
py
Python
models/losses/L0CrossEntropy.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
24
2020-05-30T21:37:48.000Z
2022-01-17T18:35:43.000Z
models/losses/L0CrossEntropy.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
7
2020-06-03T10:33:36.000Z
2022-02-10T01:39:24.000Z
models/losses/L0CrossEntropy.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
3
2020-11-20T11:15:09.000Z
2021-04-24T16:51:20.000Z
from models.GeneralModel import GeneralModel from models.losses.CrossEntropy import CrossEntropy class L0CrossEntropy(GeneralModel): """ adds l0 to crossentropy """ def __init__(self, device, *args, l0_reg=1, **kwargs): super(L0CrossEntropy, self).__init__(device, **kwargs) self.l0_r...
30.863636
118
0.703976
082de25b96c47ee3f8c50ec64a2e387acf11f707
9,107
py
Python
testing/old_tests/new_alg_1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
testing/old_tests/new_alg_1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
testing/old_tests/new_alg_1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import division from nmpc_mhe.dync.MHEGenv2 import MheGen from sample_mods.bfb.nob5_hi_t import bfb_dae import itertools, sys """Testing the new preparation phases""" def main(): states = ["Hgc", "Nsc", "Hsc", "Hge...
39.085837
118
0.563852
082dedec27d0389e1a8a855f6199f085fd07672a
7,178
py
Python
angr/simos/cgc.py
shlomo88/angr
776eb3c7e892df37152c13275616aaaddbb3ea70
[ "BSD-2-Clause" ]
null
null
null
angr/simos/cgc.py
shlomo88/angr
776eb3c7e892df37152c13275616aaaddbb3ea70
[ "BSD-2-Clause" ]
null
null
null
angr/simos/cgc.py
shlomo88/angr
776eb3c7e892df37152c13275616aaaddbb3ea70
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import logging import claripy from cle import BackedCGC from ..misc import IRange from ..procedures import SIM_LIBRARIES as L from ..state_plugins import SimStateSystem, SimActionData from .. import sim_options as o from .userland import SimUserland _l = logging.getLogger('angr.simos.cgc') class SimCGC(SimUserlan...
37.978836
131
0.565478
082df141e08f75c7bed7ba0102923609eac98cb5
4,227
py
Python
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/resource_skus_operations.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/resource_skus_operations.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/resource_skus_operations.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.644231
144
0.637095
082e03065850761197296896cf86f6d362d0b8fe
18,533
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/aio/operations/_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.312958
219
0.66994
082e57020c7a80134bb4ec73fd588b7a7d164015
851
py
Python
tests/unit/test_loadbalance.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
4
2021-06-29T04:14:31.000Z
2021-08-01T07:01:08.000Z
tests/unit/test_loadbalance.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-12-25T09:06:13.000Z
2021-12-25T09:06:13.000Z
tests/unit/test_loadbalance.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-07-05T12:42:40.000Z
2021-07-05T12:42:40.000Z
import os import time from jina import Flow, Executor, requests from jina.enums import SchedulerType from tests import random_docs os.environ['JINA_LOG_LEVEL'] = 'DEBUG' class SlowWorker(Executor): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # half of worker is slow ...
24.314286
87
0.649824
082e61d856de72e91d12dc2eed636522e4a6ae07
856
py
Python
core/entry/build_and_run.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
core/entry/build_and_run.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
core/entry/build_and_run.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from core.workaround.reproducibility import seed_all_rng from miscellanies.torch.print_running_environment import print_running_environment from miscellanies.git_status import get_git_status_message from miscellanies.torch.distributed import get_rank import numpy as np from core.run.builder import build def build_and...
37.217391
97
0.813084
082e68971ac6cdf1b39f3739b864ea707c5e934d
1,537
py
Python
agogosml/agogosml/reader/input_reader.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml/agogosml/reader/input_reader.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml/agogosml/reader/input_reader.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
"""InputReader.""" from agogosml.common.abstract_streaming_client import AbstractStreamingClient from agogosml.common.message_sender import MessageSender from agogosml.utils.logger import Logger class InputReader: """InputReader.""" def __init__(self, streaming_client: AbstractStreamingClient, message_sende...
36.595238
97
0.685751
082e73f68c71357a902e23668208eca3c63deaa0
580
py
Python
stats/ztest.py
ds-praveenkumar/algorithm-from-scratch
f157529f562de62103cf33a0edee78cb269577da
[ "Apache-2.0" ]
null
null
null
stats/ztest.py
ds-praveenkumar/algorithm-from-scratch
f157529f562de62103cf33a0edee78cb269577da
[ "Apache-2.0" ]
null
null
null
stats/ztest.py
ds-praveenkumar/algorithm-from-scratch
f157529f562de62103cf33a0edee78cb269577da
[ "Apache-2.0" ]
null
null
null
# ztest.py import pandas as pd import math from scipy.stats import norm def ztest(pop_mean: float , pop_std: float, sample: pd.Series ): """ ztest is used when : 1. We need to test the value of mean, given that the population mean is known. 2. When sample is large and population variance is known. ...
26.363636
82
0.691379
082e836e7978305a00173c50ef19b99e1b9f0580
7,936
py
Python
asposewordscloud/models/table_row.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/table_row.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/table_row.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="table_row.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this so...
33.485232
101
0.581023
082ecd95b39bdcdbfadd9300267cb8f531a7d6ce
7,448
py
Python
kedro/pipeline/modular_pipeline.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
kedro/pipeline/modular_pipeline.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
kedro/pipeline/modular_pipeline.py
blah2sr/kedro
a953a8b25a0d2085888464cb17de1a59f18f7dca
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS", WIT...
37.054726
87
0.676155
082ee839ca991b7783f47ddb6396651be95e27ea
2,428
py
Python
lace/serialization/wrl.py
bodylabs/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
2
2020-05-30T10:28:34.000Z
2021-02-17T13:47:23.000Z
lace/serialization/wrl.py
lace/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
11
2019-08-29T16:53:29.000Z
2021-07-01T06:24:37.000Z
lace/serialization/wrl.py
metabolize/lace
75cee6a118932cd027692d6cfe36b3726b3a4a5c
[ "BSD-2-Clause" ]
5
2017-05-09T16:18:16.000Z
2018-05-08T16:16:09.000Z
# pylint: disable=len-as-condition __all__ = ['load', 'ParseError'] class ParseError(Exception): pass def load(f, existing_mesh=None): from baiji.serialization.util.openlib import ensure_file_open_and_call return ensure_file_open_and_call(f, _load, mode='rb', mesh=existing_mesh) def _load(f, mesh=None): ...
26.107527
84
0.574135
082f28484c8ca56bda4dba3b7654659b184aec76
4,479
py
Python
geoq/accounts/urls.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
471
2015-01-05T15:16:26.000Z
2022-03-28T05:06:11.000Z
geoq/accounts/urls.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
109
2015-01-06T20:00:58.000Z
2022-03-11T23:17:53.000Z
geoq/accounts/urls.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
100
2015-01-05T15:16:39.000Z
2021-12-01T12:13:13.000Z
from django.urls import include, path, re_path from django.views.generic import RedirectView from django.conf import settings from geoq.accounts.views import OnlineUserView from .forms import SignupFormExtra from django.contrib.auth.decorators import login_required from userena import views as userena_views from .vie...
39.289474
104
0.648136
082f917993e0cd14c7d162cb08461da20ca4e3b8
1,594
py
Python
examples/Newsgroups20.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/Newsgroups20.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/Newsgroups20.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=wrong-import-position # pylint: disable=wrong-import-order # pylint: disable=not-callable # pylint: disable=ungrouped-imports # pylint: disable=import-error # pylint: disable=pointless-string-statement # pylint: disable=...
22.450704
86
0.72522
082fa5a64275c5057f20b13d1917df4909a5ad70
416
py
Python
free-speech-django/cafe/wsgi.py
BerkeleyAutomation/free-speech
5e046d1f856deb13ff8fd1a68e861d687fdc8705
[ "MIT" ]
null
null
null
free-speech-django/cafe/wsgi.py
BerkeleyAutomation/free-speech
5e046d1f856deb13ff8fd1a68e861d687fdc8705
[ "MIT" ]
null
null
null
free-speech-django/cafe/wsgi.py
BerkeleyAutomation/free-speech
5e046d1f856deb13ff8fd1a68e861d687fdc8705
[ "MIT" ]
null
null
null
""" WSGI config for cafe project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
23.111111
78
0.78125
082fed046959d9ae058fb55352703cd85e9ae40a
18,384
py
Python
configs/config-docbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
configs/config-docbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
configs/config-docbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
def load_parameters(): """ Loads the defined hyperparameters :return parameters: Dictionary of loaded parameters """ # Input data params TASK_NAME = 'english-spanish-all' # Task name DATASET_NAME = TASK_NAME # Dataset name SRC_LAN = 'en' ...
64.961131
175
0.569517
083032fd4acf9703f66e92b4233a6a1703a96a55
3,200
py
Python
imperative/python/megengine/__init__.py
chenbo123222/MegEngine
8230ea2d0b16422136ad27b4073d523b524aa4e6
[ "Apache-2.0" ]
3
2020-10-23T06:33:57.000Z
2020-10-23T06:34:06.000Z
imperative/python/megengine/__init__.py
chenbo123222/MegEngine
8230ea2d0b16422136ad27b4073d523b524aa4e6
[ "Apache-2.0" ]
null
null
null
imperative/python/megengine/__init__.py
chenbo123222/MegEngine
8230ea2d0b16422136ad27b4073d523b524aa4e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
36.781609
89
0.639063
083076914d7445614f457db358a090f7767bf2ab
2,808
py
Python
python/cugraph/structure/renumber.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
null
null
null
python/cugraph/structure/renumber.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
null
null
null
python/cugraph/structure/renumber.py
ogreen/cugraph
d94ab29f14e6212a0c8bb5ec5fbe9e300cd57594
[ "Apache-2.0" ]
1
2019-10-31T18:50:32.000Z
2019-10-31T18:50:32.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
42.545455
78
0.671652
0830b16c3a857df1469807c4e2c05da3b050d5f3
924
py
Python
torchblocks/losses/label_smoothing.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
1
2021-04-26T08:01:25.000Z
2021-04-26T08:01:25.000Z
torchblocks/losses/label_smoothing.py
Raiselimit/TorchBlocks
a5baecb9a2470ff175087475630f2b7db3f7ef51
[ "MIT" ]
null
null
null
torchblocks/losses/label_smoothing.py
Raiselimit/TorchBlocks
a5baecb9a2470ff175087475630f2b7db3f7ef51
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class LabelSmoothingCE(nn.Module): def __init__(self, eps=0.1, reduction='mean', ignore_index=-100): super(LabelSmoothingCE, self).__init__() self.eps = eps self.reduction = reduction self.ignore_index = ignore_index ...
38.5
97
0.506494
0830c440181d4ec7929546423f44f6c12d03283f
5,241
py
Python
testing-playground/logistic_regression.py
ashemag/hate_speech_detection
244165745e9f0a7fa6d4cffc7f5b00a1882bb140
[ "Unlicense" ]
3
2020-02-11T10:31:57.000Z
2021-05-04T21:47:46.000Z
testing-playground/logistic_regression.py
ashemag/hate_speech_detection
244165745e9f0a7fa6d4cffc7f5b00a1882bb140
[ "Unlicense" ]
null
null
null
testing-playground/logistic_regression.py
ashemag/hate_speech_detection
244165745e9f0a7fa6d4cffc7f5b00a1882bb140
[ "Unlicense" ]
1
2020-02-11T10:32:12.000Z
2020-02-11T10:32:12.000Z
import sys sys.path.append("..") import configparser from data_providers import TextDataProvider from sklearn.linear_model import LogisticRegressionCV, LogisticRegression from globals import ROOT_DIR import os import numpy as np from sklearn.metrics import f1_score, precision_score, recall_score import time from utils ...
36.395833
114
0.676588
0830d520e450d0461881a72072d74ab9363aab74
5,323
py
Python
libs/updatertextui.py
HologramEducation/dash-updater
9a09542fbb92780918e6737ecc7e3e1331888fdb
[ "MIT" ]
1
2019-07-12T16:15:49.000Z
2019-07-12T16:15:49.000Z
libs/updatertextui.py
HologramEducation/dash-updater
9a09542fbb92780918e6737ecc7e3e1331888fdb
[ "MIT" ]
null
null
null
libs/updatertextui.py
HologramEducation/dash-updater
9a09542fbb92780918e6737ecc7e3e1331888fdb
[ "MIT" ]
3
2019-11-12T09:32:34.000Z
2022-01-15T02:18:24.000Z
# # updatertextui.py # # Author: Hologram <support@hologram.io> # # License: Copyright (c) 2017 Konekt, Inc. All Rights Reserved. # # Released under the MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Softwar...
33.26875
111
0.574112
0830e7099955619ddc8169352e7452c17fbcbcc2
905
py
Python
src/func/_getfeatures.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/func/_getfeatures.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/func/_getfeatures.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Generate features from pandas dataframe, with columns statistics. ------------------- Return dataframe, columns=[by, col] """ def get_count(df, by): return df.groupby(by=by).count().iloc[:,0] def get_sum(df, col, by): return df.groupby(by=by).sum()[col] def get_mean(df, col, ...
21.547619
108
0.656354
0831035a550751811a888061cff3699758ff0d0d
64,172
py
Python
tests/modeltests/model_forms/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/model_forms/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/model_forms/tests.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement import datetime import os from decimal import Decimal from django import forms from django.test import TestCase from django.core.files.uploadedfile import SimpleUploadedFile from django.core.validators import ValidationError from django.forms.models import model_to_dict from djan...
43.447529
209
0.613944
083109188f28f4c835ecd72002ddf404620d8015
601
py
Python
lookup.py
sbenthall/fancier
648ad9e9c542e2ea600b17436deb5356cd3ceb24
[ "MIT" ]
1
2020-05-18T10:47:53.000Z
2020-05-18T10:47:53.000Z
lookup.py
sbenthall/fancier
648ad9e9c542e2ea600b17436deb5356cd3ceb24
[ "MIT" ]
null
null
null
lookup.py
sbenthall/fancier
648ad9e9c542e2ea600b17436deb5356cd3ceb24
[ "MIT" ]
null
null
null
from base import t import configparser import twitter.follow as follow import utils config = configparser.ConfigParser() config.read('config.ini') def my_friend_objects(): """ Returns an iterator over objects for all my friends. """ # List everyone I follow my_friend_ids = follow.follow(t, ...
27.318182
72
0.545757
08310ce3c3854035c103bbd6bdaa519e381e7b39
17,725
py
Python
util/build_docs.py
CrevinnTeoranta/opentitan
1e4989944a3d9657aca16a5a968dc2b7f32d0be4
[ "Apache-2.0" ]
1
2021-01-12T10:32:17.000Z
2021-01-12T10:32:17.000Z
util/build_docs.py
LIKEJMJJ/opentitan
201be0e0bda391cb0a92fbf62ecfbcf6706949db
[ "Apache-2.0" ]
null
null
null
util/build_docs.py
LIKEJMJJ/opentitan
201be0e0bda391cb0a92fbf62ecfbcf6706949db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 # # Usage: # run './build_docs.py' to generate the documentation and keep it updated # open 'http://localhost:1313/' to check live update (this op...
37.237395
118
0.662793
0831374e9189a7a861c85e62ffe8d3ce7601f0eb
5,034
py
Python
docs/tutorials/04_stream/viz_interaction.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
docs/tutorials/04_stream/viz_interaction.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
docs/tutorials/04_stream/viz_interaction.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
""" ==================================== Streaming FURY with user interaction ==================================== In this tutorial, we show how to use the FURY Streaming system to serve an interactive visualization through a web browser. You can choose between two differnet encodings: WebRTC or MJPEG. WebRTC is a mo...
31.860759
82
0.625745
0831587302d4ac9f73360f81a0247fb56ed94671
4,187
py
Python
doc/examples/inversion/dc_forward.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/inversion/dc_forward.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
doc/examples/inversion/dc_forward.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
38.063636
99
0.562216
0831621a47182dbe8248a46f17aeaf0988e0375b
7,516
py
Python
examples/FasterRCNN/coco.py
rossumai/tensorpack
5854c7de8c2c9192446be6cceeec51ed6439c23c
[ "Apache-2.0" ]
2
2018-07-03T12:57:57.000Z
2018-07-03T13:03:41.000Z
examples/FasterRCNN/coco.py
LJCoopz/tensorpack
5854c7de8c2c9192446be6cceeec51ed6439c23c
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/coco.py
LJCoopz/tensorpack
5854c7de8c2c9192446be6cceeec51ed6439c23c
[ "Apache-2.0" ]
1
2021-12-20T19:27:44.000Z
2021-12-20T19:27:44.000Z
# -*- coding: utf-8 -*- # File: coco.py import numpy as np import os from termcolor import colored from tabulate import tabulate from tensorpack.utils import logger from tensorpack.utils.rect import FloatBox from tensorpack.utils.timer import timed_operation from tensorpack.utils.argtools import log_once from pycoco...
36.485437
114
0.57637
0831672750214abb2acd5e24d15246aeb62aefd5
1,235
py
Python
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_4/identify_cipher_type_practice.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_4/identify_cipher_type_practice.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_4/identify_cipher_type_practice.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
"""Load ciphertext & use fraction of ETAOIN present to classify cipher type.""" import sys from collections import Counter # set arbitrary cutoff fraction of 6-most common letters in English # ciphertext with target fraction or greater = transposition cipher CUTOFF = 0.5 # load ciphertext def load(filename): """O...
30.121951
79
0.721457
08316eadcecb3f010ad7ef852b9ab4ba066a269a
42,188
py
Python
mclumi/deduplicate/monomer/DedupGene.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
3
2021-12-18T09:55:09.000Z
2022-01-12T10:25:28.000Z
mclumi/deduplicate/monomer/DedupGene.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
mclumi/deduplicate/monomer/DedupGene.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
__version__ = "v1.0" __copyright__ = "Copyright 2021" __license__ = "MIT" __lab__ = "Adam Cribbs lab" import os import sys import time import argparse import numpy as np import pandas as pd from mclumi.align.Read import read as aliread from mclumi.align.Write import write as aliwrite from mclumi.util.Writer import wri...
50.283671
269
0.555039
083175d68a04e5454e50348e8a0e8c39f85ba39a
11,408
py
Python
lib/sequentia/classifiers/hmm/hmm_classifier.py
eonu/tempora
b857c72737532983ebe7403d627fc632cbc06dde
[ "MIT" ]
32
2019-12-31T15:53:47.000Z
2022-03-31T12:40:40.000Z
lib/sequentia/classifiers/hmm/hmm_classifier.py
eonu/tempora
b857c72737532983ebe7403d627fc632cbc06dde
[ "MIT" ]
25
2020-06-01T18:32:47.000Z
2022-01-22T13:15:36.000Z
lib/sequentia/classifiers/hmm/hmm_classifier.py
eonu/tempora
b857c72737532983ebe7403d627fc632cbc06dde
[ "MIT" ]
6
2019-12-31T15:54:26.000Z
2022-01-23T07:09:28.000Z
import tqdm, tqdm.auto, numpy as np, pickle from joblib import Parallel, delayed from multiprocessing import cpu_count from .gmmhmm import GMMHMM from sklearn.metrics import confusion_matrix from sklearn.preprocessing import LabelEncoder from ...internals import _Validator class HMMClassifier: """A classifier that...
46.754098
192
0.63622
0831928cf9cf9c7daece142e99840d0952be70a1
13,713
py
Python
test/service/test_schema_service.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
test/service/test_schema_service.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
test/service/test_schema_service.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
import unittest from unittest.mock import patch from mongoengine import connect, disconnect from spaceone.core.unittest.result import print_data from spaceone.core.unittest.runner import RichTestRunner from spaceone.core import config from spaceone.core import utils from spaceone.core.model.mongo_model import MongoMod...
36.470745
93
0.577627
0831ac5137182564ee77de897a724b6578625fa4
556
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UG.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. UG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_UG = PhoneMetadata(id='UG', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='9\\d{2}', possible_length=(3,)), ...
61.777778
107
0.771583
0831b594efd326b406bf3b0580fb847d2a19f5fc
1,194
py
Python
sessio3/resize_nocut.py
gdsa-upc/2017-EZficy
4b44dc23ccfca44f66726664cf15b189ea9fcd52
[ "MIT" ]
null
null
null
sessio3/resize_nocut.py
gdsa-upc/2017-EZficy
4b44dc23ccfca44f66726664cf15b189ea9fcd52
[ "MIT" ]
null
null
null
sessio3/resize_nocut.py
gdsa-upc/2017-EZficy
4b44dc23ccfca44f66726664cf15b189ea9fcd52
[ "MIT" ]
null
null
null
# Reads an image from disk and scales and crops to match a target resolution and aspect ratio. import os from scipy import misc # Specifies which is the largest size on any side of the picture. (Caters for portrait and landscape) FIXED_MAX_DIMENSION = 500.0 # For each allocated class, save pictures in their containin...
51.913043
116
0.646566
0831d7fab8bc4a6ab46fca2d204a19ab72057579
4,223
py
Python
JDjangoDemo/blog/migrations/0001_initial.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjangoDemo/blog/migrations/0001_initial.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjangoDemo/blog/migrations/0001_initial.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2020-10-24 14:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
55.565789
219
0.597916
0831f3b35b7445654a6022aa896bf1724ec2d8b6
18,447
py
Python
magicblue/magicbluelib.py
Betree/magicblue
649bdda36bb75810f9a79bbb48fcf1a9ec70a6a2
[ "MIT" ]
100
2015-12-08T05:57:32.000Z
2022-03-04T03:07:32.000Z
magicblue/magicbluelib.py
Betree/magicblue
649bdda36bb75810f9a79bbb48fcf1a9ec70a6a2
[ "MIT" ]
66
2016-02-28T18:55:25.000Z
2021-06-25T15:29:48.000Z
magicblue/magicbluelib.py
Betree/magicblue
649bdda36bb75810f9a79bbb48fcf1a9ec70a6a2
[ "MIT" ]
25
2015-12-03T21:41:28.000Z
2020-08-27T14:43:10.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # ============================================================================= # title : magicbluelib.py # description : Python library to control Magic Blue bulbs over Bluetooth # author : Benjamin Piouffle # date : 23/11/2015 # python_ve...
29.753226
79
0.562151
083201db4458e6bf1bd1f7bd96283c941b6a36be
3,027
py
Python
starcraft/player_avgs.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
starcraft/player_avgs.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
starcraft/player_avgs.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
# A script to read in a csv with data from StarCraft 2 and sort players # into novice, proficient, and expert categories as well as average all # available statistics for each player # Alison Cameron # July 2020 import csv import time from collections import defaultdict def readCSV(): '''readCSV reads scouting_st...
38.807692
118
0.555666
08320e562c25701c3ed7362d3af94fedfca471e5
6,335
py
Python
anomaly detector/scripts/07_rasterization_benchmark.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
null
null
null
anomaly detector/scripts/07_rasterization_benchmark.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
null
null
null
anomaly detector/scripts/07_rasterization_benchmark.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import consts import argparse parser = argparse.ArgumentParser(description="Benchmark rasterization for spatial binning.", formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--files", metavar="F", dest="files", type=str,...
41.136364
192
0.544278
083210b5fa3397e51e099850dfd59e593600f4b8
8,487
py
Python
source/SC_Fee_Calculation/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Fee_Calculation/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Fee_Calculation/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
import trino from sqlalchemy import create_engine,MetaData #from sqlalchemy.dialects import postgresql import sqlalchemy as db import os from datetime import datetime, timedelta def toll_and_pollution_fee_calculation(vehicle_metadata , event_result, connection, fee_type): ''' For every detected license plate o...
65.284615
392
0.734889
083211f2571a911e62d041d6b7849ab113cf7be3
28,638
py
Python
inference.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
inference.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
inference.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
import gc import logging import warnings from math import sqrt from typing import List import torch import torch.nn.functional as F # import torch should be first. Unclear issue, mentionned here: https://github.com/pytorch/pytorch/issues/2083 import numpy as np import os import csv import time import argparse import h...
51.048128
121
0.599344
08329bf7ba663713118fafa7919a2a385e4a789c
8,542
py
Python
alipay/aop/api/domain/ServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ServiceInfo(object): def __init__(self): self._alipay_url = None self._audit_status = None self._biz_source = None self._detail_desc = None self._granulari...
32.980695
83
0.593655
0832a64f0118fa7e1d98b61da4213124d56acee2
5,615
py
Python
rpc4django/jsonrpcdispatcher.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
rpc4django/jsonrpcdispatcher.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
rpc4django/jsonrpcdispatcher.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
''' This module implements a JSON 1.0 compatible dispatcher see http://json-rpc.org/wiki/specification ''' from types import StringTypes # attempt to import json from 3 sources: # 1. try to import it from django # 2. if this is not run through django, try to import the simplejson module # 3. import the json module t...
37.684564
77
0.563313
0832b1febde1ee7fc06062e0b0d24d11e9113551
3,097
py
Python
rl_memory/models/archive/DQN copy/dqn.py
eskalnes/RL_memory
bd1a5cc07a41be89ea9f8de9edc2a2b557dcedbb
[ "MIT" ]
null
null
null
rl_memory/models/archive/DQN copy/dqn.py
eskalnes/RL_memory
bd1a5cc07a41be89ea9f8de9edc2a2b557dcedbb
[ "MIT" ]
null
null
null
rl_memory/models/archive/DQN copy/dqn.py
eskalnes/RL_memory
bd1a5cc07a41be89ea9f8de9edc2a2b557dcedbb
[ "MIT" ]
1
2021-08-01T17:32:45.000Z
2021-08-01T17:32:45.000Z
from q_network import Q import numpy as np import gym from tools import epsilon, run_target_update, plot_episode_rewards, ReplayBuffer import torch # buffer hyperparameters batchsize = 200 # batchsize for buffer sampling buffer_maxlength = 1000 # max number of tuples held by buffer episodes_til_buffer_sample = 2 buf...
31.927835
114
0.649015
0832b34f1e136887c409493008819fcc2e8ec628
1,402
py
Python
config.py
alphagov/notify-frontend
509695a0e462bef711bc73de3978aa0683f5603a
[ "MIT" ]
1
2015-10-06T09:40:54.000Z
2015-10-06T09:40:54.000Z
config.py
alphagov/notify-frontend
509695a0e462bef711bc73de3978aa0683f5603a
[ "MIT" ]
3
2015-10-15T15:12:04.000Z
2016-06-13T15:13:41.000Z
config.py
alphagov/notify-frontend
509695a0e462bef711bc73de3978aa0683f5603a
[ "MIT" ]
2
2019-08-29T11:39:12.000Z
2021-04-10T20:03:58.000Z
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): DEBUG = True WTF_CSRF_ENABLED = True NOTIFY_HTTP_PROTO = 'http' SESSION_COOKIE_NAME = 'notify_admin_session' SESSION_COOKIE_PATH = '/admin' SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_SECURE = True ...
23.762712
78
0.688302
0832ba4ce2234dde99d2658a7ec4e322f64e0dfc
4,389
py
Python
buildroot-2017.08/support/testing/tests/fs/test_ext.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
null
null
null
buildroot-2017.08/support/testing/tests/fs/test_ext.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
null
null
null
buildroot-2017.08/support/testing/tests/fs/test_ext.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
1
2020-01-31T10:27:07.000Z
2020-01-31T10:27:07.000Z
import os import subprocess import infra.basetest VOLNAME_PROP = "Filesystem volume name" REVISION_PROP = "Filesystem revision #" FEATURES_PROP = "Filesystem features" BLOCKCNT_PROP = "Block count" INODECNT_PROP = "Inode count" RESBLKCNT_PROP = "Reserved block count" CHECK_FS_TYPE_CMD = "mount | grep '/dev/root on /...
36.272727
78
0.661882
0832c19cc290f0a0a6b25b218af776b3a4660534
8,503
py
Python
scripts/Good-ndarr-lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/Good-ndarr-lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/Good-ndarr-lambda.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# coding: utf-8 # In[131]: def mk_gal(halodata, out_q, info, i, save=False, rscale=0.3, verbose=False, galaxy_plot_dir='./'): from galaxymodule import galaxy # print("IDs:", id(star), id(dm), id(cell)) rscale_lambda = 2 print(halodata['id']) print("{}-th *******************************...
27.970395
108
0.6012
0832d19a91dbd1a7cb4dcd29aa4145609a049246
27,197
py
Python
func_tests/pages/createquestionnairepage/create_questionnaire_page.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/pages/createquestionnairepage/create_questionnaire_page.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/pages/createquestionnairepage/create_questionnaire_page.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 # from selenium.webdriver.support.select import Select # # from framework.utils.data_fetcher import * # from framework.utils.global_constant import WAIT_FOR_TITLE # from pages.createdatasenderquestionnairepage.create_data_sender_questionnaire_page import CreateDataSenderQue...
42.231366
162
0.674302
0832e200757d7eda0d589f163cfc66122f4e9d9b
114
py
Python
setup.py
pcarver/OpenEdgeRedfish
649d7c9b379efa71e5b425a1c327d57b4f26ffcb
[ "Apache-2.0" ]
1
2019-12-04T20:49:07.000Z
2019-12-04T20:49:07.000Z
setup.py
pcarver/OpenEdgeRedfish
649d7c9b379efa71e5b425a1c327d57b4f26ffcb
[ "Apache-2.0" ]
null
null
null
setup.py
pcarver/OpenEdgeRedfish
649d7c9b379efa71e5b425a1c327d57b4f26ffcb
[ "Apache-2.0" ]
1
2019-12-04T20:49:11.000Z
2019-12-04T20:49:11.000Z
from setuptools import setup, find_packages setup(name="OpenEdgeRedfish", packages=find_packages() )
19
43
0.72807
0832f355c2756bdbf77dbdbb51dd84312f67a9df
3,374
py
Python
pytorch_toolkit/ote/ote/modules/arg_converters/mmdetection.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/arg_converters/mmdetection.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/arg_converters/mmdetection.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
39.694118
104
0.657676
08330658c6710c05c6c703937954d15e9a2b27ce
1,290
py
Python
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
3
2021-12-12T21:32:40.000Z
2021-12-12T21:32:46.000Z
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
58
2021-09-16T11:03:58.000Z
2022-03-28T17:28:48.000Z
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
5
2021-09-27T14:51:30.000Z
2022-03-11T14:02:44.000Z
""" Expose PV data """ # # import logging # from datetime import datetime, timedelta # from typing import List # # from fastapi import APIRouter, Depends # from nowcasting_datamodel.models import PVYield # from nowcasting_datamodel.read.read_pv import get_latest_pv_yield, get_pv_systems # from sqlalchemy.orm.session im...
30
86
0.71938
083325e1b2369b791cbdc747474ab250c3d24b16
1,881
py
Python
py/798. Smallest Rotation with Highest Score.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/798. Smallest Rotation with Highest Score.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/798. Smallest Rotation with Highest Score.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/smallest-rotation-with-highest-score/ # Given an array nums, we may rotate it by a non-negative integer k so that the # array becomes nums[k], nums[k+1], nums[k+2], ... nums[nums.length - 1], nums[0], # nums[1], ..., nums[k-1]. Afterward, any entries that are less than or equal to # th...
44.785714
116
0.575226