hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
4043f84908b97607d02cc9c6faf2b455d08e20a4
1,055
py
Python
scripts/commands/html/actions/search.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
scripts/commands/html/actions/search.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
scripts/commands/html/actions/search.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
import click import requests from bs4 import BeautifulSoup from modules.Word.managers.DictionaryManager import DictionaryManager import re
30.142857
70
0.6
404408dcaaf3ec9278595ad0836bc4bc90af7ec0
81
py
Python
asf_search/constants/DATASET/__init__.py
jhkennedy/Discovery-asf_search
4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f
[ "BSD-3-Clause" ]
null
null
null
asf_search/constants/DATASET/__init__.py
jhkennedy/Discovery-asf_search
4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f
[ "BSD-3-Clause" ]
1
2021-04-01T16:30:56.000Z
2021-04-01T16:30:56.000Z
asf_search/constants/DATASET/__init__.py
jhkennedy/Discovery-asf_search
4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f
[ "BSD-3-Clause" ]
null
null
null
"""Datasets to be used in search and related functions""" from .DATASET import *
27
57
0.740741
404411fc8cdef43afe8b983d66104ed1efd7c616
16,089
py
Python
cell2cell/plotting/cci_plot.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
16
2020-09-30T01:53:43.000Z
2022-03-25T09:58:54.000Z
cell2cell/plotting/cci_plot.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
2
2021-08-09T21:26:54.000Z
2021-11-08T14:47:39.000Z
cell2cell/plotting/cci_plot.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
3
2021-11-08T07:47:44.000Z
2022-03-30T18:40:00.000Z
# -*- coding: utf-8 -*- import matplotlib as mpl import numpy as np import pandas as pd import seaborn as sns from matplotlib import pyplot as plt from cell2cell.clustering import compute_linkage from cell2cell.preprocessing.manipulate_dataframes import check_symmetry from cell2cell.plotting.aesthetics import map_col...
38.307143
122
0.605134
40465e4dbbb9334d5135c8ffe536947ae617c71d
1,051
py
Python
var/spack/repos/builtin.mock/packages/gnuconfig/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin.mock/packages/gnuconfig/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin.mock/packages/gnuconfig/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack.package import *
29.194444
78
0.669838
40472eab6c9976684dd368889d9c68536758019e
378
py
Python
mp4box/parsing/ctts.py
abhijeetbhagat/mp4box
841ff0ef70c7f5a96548f47414bba69c00aa2f5e
[ "BSD-3-Clause" ]
7
2019-08-14T03:03:51.000Z
2021-11-14T19:10:00.000Z
mp4box/parsing/ctts.py
wanyhamo/mp4box
c5c73cd37c01bd9d637f1f3ed82221065dc86d6f
[ "BSD-3-Clause" ]
10
2019-08-03T16:27:08.000Z
2019-09-10T10:05:23.000Z
mp4box/parsing/ctts.py
abhijeetbhagat/mp4box
841ff0ef70c7f5a96548f47414bba69c00aa2f5e
[ "BSD-3-Clause" ]
7
2019-08-19T17:58:03.000Z
2021-03-03T07:25:54.000Z
from mp4box.box import CompositionTimeToSampleBox
29.076923
58
0.693122
4047883a8f6ee83210f65d3f654ff142172cb4a8
24,485
py
Python
MsLightweaverManager.py
Goobley/MsLightweaver
6383867ba2a7ab00df947c8470b438d9eadcc321
[ "MIT" ]
null
null
null
MsLightweaverManager.py
Goobley/MsLightweaver
6383867ba2a7ab00df947c8470b438d9eadcc321
[ "MIT" ]
1
2020-05-05T13:49:54.000Z
2021-04-29T12:41:40.000Z
MsLightweaverManager.py
Goobley/MsLightweaver
6383867ba2a7ab00df947c8470b438d9eadcc321
[ "MIT" ]
null
null
null
import pickle import numpy as np import matplotlib.pyplot as plt from lightweaver.rh_atoms import H_6_atom, C_atom, O_atom, OI_ord_atom, Si_atom, Al_atom, Fe_atom, FeI_atom, MgII_atom, N_atom, Na_atom, S_atom, CaII_atom from lightweaver.atmosphere import Atmosphere, ScaleType from lightweaver.atomic_table import Defaul...
37.611367
260
0.575128
404999f8afb17c0ba6be91ab0f875db288f28bae
1,895
py
Python
common/writeExcel.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
null
null
null
common/writeExcel.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
6
2020-06-06T00:44:08.000Z
2022-01-13T01:52:46.000Z
common/writeExcel.py
lixiaofeng1993/DjangoBlog
94d062324367b8a30edf8d29e2e661c822bcb7c1
[ "MIT" ]
null
null
null
# coding:utf-8 from openpyxl import load_workbook import openpyxl from openpyxl.styles import Font, colors def copy_excel(cese_path, report_path): """ report_path :param cese_path: :param report_path: :return: """ wb2 = openpyxl.Workbook() wb2.save(report_path) # excel # wb1 ...
28.712121
65
0.601055
404a28cfcd9e972210d8ead53be99918c37812fc
1,904
py
Python
test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py
zhaoming0/webml-polyfill
56cf96eff96665da0f5fd7ef86fd5748f4bd22b9
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py
zhaoming0/webml-polyfill
56cf96eff96665da0f5fd7ef86fd5748f4bd22b9
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
test/cts/tool/CTSConverter/src/nn/specs/V1_1/depthwise_conv2d_float_weights_as_inputs_relaxed.mod.py
ibelem/webml-polyfill
aaf1ba4f5357eaf6e89bf9990f5bdfb543cd2bc2
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
# # Copyright (C) 2018 The Android Open Source Project # # 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 la...
31.733333
74
0.56355
404a73f48e1b3ca8bb85958c0c604a1931f4d34f
1,450
py
Python
jina/executors/evaluators/rank/recall.py
sdsd0101/jina
1a835d9015c627a2cbcdc58ee3d127962ada1bc9
[ "Apache-2.0" ]
2
2020-10-19T17:06:19.000Z
2020-10-22T14:10:55.000Z
jina/executors/evaluators/rank/recall.py
ayansiddiqui007/jina
2a764410de47cc11e53c8f652ea1095d5dab5435
[ "Apache-2.0" ]
null
null
null
jina/executors/evaluators/rank/recall.py
ayansiddiqui007/jina
2a764410de47cc11e53c8f652ea1095d5dab5435
[ "Apache-2.0" ]
null
null
null
from typing import Sequence, Any from jina.executors.evaluators.rank import BaseRankingEvaluator from jina.executors.evaluators.decorators import as_aggregator
35.365854
117
0.648966
404be03a1fd1048c68239ebc361551f5a1526980
270
py
Python
tests/schema_mapping/structures/example5.py
danny-vayu/typedpy
e97735a742acbd5f1133e23f08cf43836476686a
[ "MIT" ]
null
null
null
tests/schema_mapping/structures/example5.py
danny-vayu/typedpy
e97735a742acbd5f1133e23f08cf43836476686a
[ "MIT" ]
null
null
null
tests/schema_mapping/structures/example5.py
danny-vayu/typedpy
e97735a742acbd5f1133e23f08cf43836476686a
[ "MIT" ]
null
null
null
from typedpy import Array, DoNotSerialize, Structure, mappers
20.769231
73
0.674074
404bea024a89b873fc6d227cd6a12a54af3b3b8c
3,447
py
Python
src/semantic_parsing_with_constrained_lm/eval.py
microsoft/semantic_parsing_with_constrained_lm
7e3c099500c3102e46d7a47469fe6840580c2b11
[ "MIT" ]
17
2021-09-22T13:08:37.000Z
2022-03-27T10:39:53.000Z
src/semantic_parsing_with_constrained_lm/eval.py
microsoft/semantic_parsing_with_constrained_lm
7e3c099500c3102e46d7a47469fe6840580c2b11
[ "MIT" ]
1
2022-03-12T01:05:15.000Z
2022-03-12T01:05:15.000Z
src/semantic_parsing_with_constrained_lm/eval.py
microsoft/semantic_parsing_with_constrained_lm
7e3c099500c3102e46d7a47469fe6840580c2b11
[ "MIT" ]
1
2021-12-16T22:26:54.000Z
2021-12-16T22:26:54.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import dataclasses from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Dict, Generic, List, Optional, Sequence, TypeVar from semantic_parsing_with_constrained_lm.datum import FullDatum, FullDatumSub from sema...
32.214953
81
0.630403
404c32173164735222505b93f1ef2b7219cec987
8,913
py
Python
lib/surface/spanner/operations/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/spanner/operations/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/spanner/operations/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2016 Google LLC. 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 requir...
37.766949
95
0.674072
404cc5bda9dc3a1cc2cecd17725e8022aeed3ad0
49,844
py
Python
pgmpy/tests/test_models/test_SEM.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
pgmpy/tests/test_models/test_SEM.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
pgmpy/tests/test_models/test_SEM.py
predictive-analytics-lab/pgmpy
6c2a31641adc72793acd130d007190fdb1632271
[ "MIT" ]
null
null
null
import os import unittest import numpy as np import networkx as nx import numpy.testing as npt from pgmpy.models import SEM, SEMGraph, SEMAlg
41.536667
100
0.455862
404d173b85da7aa2302b72d549875f4086a67bcc
1,790
py
Python
data_scripts/translation.py
wangcongcong123/transection
3b931ce09c9b5e03ec6afdea6f58a317ad07361b
[ "MIT" ]
4
2021-01-11T06:21:27.000Z
2021-12-19T17:49:07.000Z
data_scripts/translation.py
wangcongcong123/transection
3b931ce09c9b5e03ec6afdea6f58a317ad07361b
[ "MIT" ]
null
null
null
data_scripts/translation.py
wangcongcong123/transection
3b931ce09c9b5e03ec6afdea6f58a317ad07361b
[ "MIT" ]
2
2021-01-21T02:48:49.000Z
2021-03-19T09:45:52.000Z
# coding=utf-8 # This script is finished following HF's datasets' template: # https://github.com/huggingface/datasets/blob/master/templates/new_dataset_script.py # More examples as references to write a customized dataset can be found here: # https://github.com/huggingface/datasets/tree/master/datasets from __future__...
32.545455
103
0.622346
404f20db207c728bba35266d11df1248aa4d138a
7,941
py
Python
utils/chat_formatting.py
lyricalpaws/snekbot
704197777dbaa284d163a95642e224d6efe2c4b2
[ "MIT" ]
13
2018-11-26T15:55:28.000Z
2022-02-05T16:07:02.000Z
utils/chat_formatting.py
lyricalpaws/snekbot
704197777dbaa284d163a95642e224d6efe2c4b2
[ "MIT" ]
8
2018-11-12T19:04:01.000Z
2018-11-23T15:11:55.000Z
utils/chat_formatting.py
lyricalpaws/snekbot
704197777dbaa284d163a95642e224d6efe2c4b2
[ "MIT" ]
23
2019-01-01T23:53:37.000Z
2022-03-12T14:52:45.000Z
import itertools from typing import Sequence, Iterator # Source: https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/redbot/core/utils/chat_formatting.py def error(text: str) -> str: """Get text prefixed with an error emoji. Returns ------- str The new message. """ return "...
27.28866
109
0.546783
404ff68f947024e93fe50b765fa029be24f36c84
35,410
py
Python
strategy/trade/strategymargintrade.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
strategy/trade/strategymargintrade.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
strategy/trade/strategymargintrade.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
# @date 2018-12-28 # @author Frederic Scherma, All rights reserved without prejudices. # @license Copyright (c) 2018 Dream Overflow # Strategy trade for margin with multiples positions. from __future__ import annotations from typing import TYPE_CHECKING, Optional, Tuple if TYPE_CHECKING: from trader.trader impor...
37.352321
119
0.553347
4050379eb6d6d6226db82e9fbcbba3933c358e43
718
py
Python
src/pyramid_debugtoolbar_api_sqlalchemy/__init__.py
jvanasco/pyramid_debugtoolbar_api_sqla
286a7e4ee32e7dd64f31813c46d59e0651534cbd
[ "MIT" ]
null
null
null
src/pyramid_debugtoolbar_api_sqlalchemy/__init__.py
jvanasco/pyramid_debugtoolbar_api_sqla
286a7e4ee32e7dd64f31813c46d59e0651534cbd
[ "MIT" ]
null
null
null
src/pyramid_debugtoolbar_api_sqlalchemy/__init__.py
jvanasco/pyramid_debugtoolbar_api_sqla
286a7e4ee32e7dd64f31813c46d59e0651534cbd
[ "MIT" ]
null
null
null
# local from .panels import SqlalchemyCsvDebugPanel __VERSION__ = "0.3.1" # ============================================================================== def includeme(config): """ Pyramid hook to install this debugtoolbar plugin. Update your ENVIRONMENT.ini file debugtoolbar.includes = pyr...
24.758621
80
0.558496
4050460227ae968820c1eb94e5dff24549e4e557
1,165
py
Python
ultron/utilities/zlib_engine.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
4
2019-06-06T09:38:49.000Z
2022-01-29T00:02:11.000Z
ultron/utilities/zlib_engine.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
1
2022-02-11T03:43:10.000Z
2022-02-11T03:43:10.000Z
ultron/utilities/zlib_engine.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
8
2019-06-02T13:11:00.000Z
2021-11-11T01:06:22.000Z
# -*- coding: utf-8 -*- import os,os.path import zipfile
32.361111
66
0.581974
4050b29c16a41f96705714cdbf17492431b85f0e
1,985
py
Python
scripts/instances2inventory.py
TipaZloy/coda-automation
20c00a92f2e3088e205677c0db96b3ed5c82b238
[ "Apache-2.0" ]
null
null
null
scripts/instances2inventory.py
TipaZloy/coda-automation
20c00a92f2e3088e205677c0db96b3ed5c82b238
[ "Apache-2.0" ]
null
null
null
scripts/instances2inventory.py
TipaZloy/coda-automation
20c00a92f2e3088e205677c0db96b3ed5c82b238
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import boto import boto.ec2 import sys from pprint import pprint from collections import defaultdict output = defaultdict(lambda: []) comments = defaultdict(lambda: {}) skip_region_strings = ['us-gov', 'cn-', 'ca-'] #skip_region_strings = ['us-gov', 'cn-', 'ca-', 'eu-', 'ap-'] if len(sys.arg...
25.126582
144
0.602519
4050f12cd3fda3e62426b196e960faffe455d7f7
938
py
Python
selfdrive/crash.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
19
2020-08-05T12:11:58.000Z
2022-03-07T01:18:56.000Z
selfdrive/crash.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
18
2020-08-20T05:17:38.000Z
2021-12-06T09:02:00.000Z
selfdrive/crash.py
darknight111/openpilot3
a0c755fbe1889f26404a8225816f57e89fde7bc2
[ "MIT" ]
25
2020-08-30T09:10:14.000Z
2022-02-20T02:31:13.000Z
"""Install exception handler for process crash.""" from selfdrive.swaglog import cloudlog from selfdrive.version import version import sentry_sdk from sentry_sdk.integrations.threading import ThreadingIntegration
33.5
102
0.735608
4051ffa508f128d4ca3a6951f908adec0dd2fce3
1,235
py
Python
0000_examples/grasping_antipodal_planning.py
huzhengtao14z/wrs
d567787ca41818f1756c325b304215faf7f10f29
[ "MIT" ]
null
null
null
0000_examples/grasping_antipodal_planning.py
huzhengtao14z/wrs
d567787ca41818f1756c325b304215faf7f10f29
[ "MIT" ]
null
null
null
0000_examples/grasping_antipodal_planning.py
huzhengtao14z/wrs
d567787ca41818f1756c325b304215faf7f10f29
[ "MIT" ]
null
null
null
import math import visualization.panda.world as wd import modeling.geometric_model as gm import modeling.collision_model as cm import grasping.planning.antipodal as gpa import robot_sim.end_effectors.grippers.yumi_gripper.yumi_gripper as yg base = wd.World(cam_pos=[1, 1, 1],w=960, h=540, lookat_pos=[0...
44.107143
95
0.701215
40544e3050932f38de418744707458dee5d3337b
60,103
py
Python
keystone/assignment/core.py
pritha-srivastava/keystone
69abe058328954becdea13cc245459f2ba2342fc
[ "Apache-2.0" ]
null
null
null
keystone/assignment/core.py
pritha-srivastava/keystone
69abe058328954becdea13cc245459f2ba2342fc
[ "Apache-2.0" ]
null
null
null
keystone/assignment/core.py
pritha-srivastava/keystone
69abe058328954becdea13cc245459f2ba2342fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
44.520741
79
0.606842
4059ed80d6a8d54038d707dea3406a21f8501339
3,193
py
Python
single-shot-pose/lib/linemod_dataset.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
112
2018-04-18T07:13:03.000Z
2022-03-11T03:36:34.000Z
single-shot-pose/lib/linemod_dataset.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
16
2018-05-11T11:41:08.000Z
2021-04-24T03:50:54.000Z
single-shot-pose/lib/linemod_dataset.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
45
2018-04-18T07:13:06.000Z
2021-12-22T03:46:18.000Z
import numpy as np import os from chainercv.chainer_experimental.datasets.sliceable import GetterDataset from chainercv.utils import read_image linemod_object_diameters = { 'ape': 0.103, 'benchvise': 0.286908, 'cam': 0.173, 'can': 0.202, 'cat': 0.155, 'driller': 0.262, 'duck': 0.109, ...
30.409524
75
0.551832
405b957bd7045b5d856865ed3de04736c0fcea38
10,857
py
Python
DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQM/BeamMonitor/test/44X_beam_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("BeamMonitor") #---------------------------- # Common part for PP and H.I Running #----------------------------- process.load("DQM.Integration.test.inputsource_cfi") #-------------------------- # HLT Filter process.load("HLTrigger.special.HLTTriggerType...
42.410156
127
0.644377
405c6e44b37edbad093dd87de80a9e8b880c990d
3,036
py
Python
tests/routes/test_hackers.py
TorrentofShame/hackathon-2021-backend
a85989421df8ad900b01ad026dbe713312b0a54e
[ "MIT" ]
null
null
null
tests/routes/test_hackers.py
TorrentofShame/hackathon-2021-backend
a85989421df8ad900b01ad026dbe713312b0a54e
[ "MIT" ]
null
null
null
tests/routes/test_hackers.py
TorrentofShame/hackathon-2021-backend
a85989421df8ad900b01ad026dbe713312b0a54e
[ "MIT" ]
null
null
null
# flake8: noqa import json from src.models.hacker import Hacker from tests.base import BaseTestCase from datetime import datetime
28.641509
96
0.560606
405e5ce74a48720ac95f86fcad8f93d05cb3edfc
13,330
py
Python
open_cp/sources/chicago.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
18
2017-04-19T09:17:19.000Z
2021-05-24T08:53:28.000Z
open_cp/sources/chicago.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
8
2017-06-11T17:46:35.000Z
2021-06-07T10:49:10.000Z
open_cp/sources/chicago.py
sumau/PredictCode
e2a2d5a8fa5d83f011c33e18d4ce6ac7e1429aa8
[ "Artistic-2.0" ]
10
2017-07-19T18:29:37.000Z
2020-11-12T22:06:45.000Z
""" sources.chicago =============== Reads a CSV file in the format (as of April 2017) of data available from: - https://catalog.data.gov/dataset/crimes-one-year-prior-to-present-e171f - https://catalog.data.gov/dataset/crimes-2001-to-present-398a4 The default data is loaded from a file "chicago.csv" which should be ...
37.130919
113
0.641485
405e96dac8375ff59b836544a212c81d70fbb3ff
2,140
py
Python
Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py
kimi0230/LeetcodeGolang
2b276e49b67d7f66731ce6c629cd1390642af230
[ "MIT" ]
4
2021-07-21T01:16:11.000Z
2022-01-11T07:43:51.000Z
Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py
kimi0230/LeetcodeGolang
2b276e49b67d7f66731ce6c629cd1390642af230
[ "MIT" ]
null
null
null
Codility/Lesson/0011.Sieve-of-Eratosthenes/CountSemiprimes/CountSemiprimes.py
kimi0230/LeetcodeGolang
2b276e49b67d7f66731ce6c629cd1390642af230
[ "MIT" ]
null
null
null
# https://github.com/Anfany/Codility-Lessons-By-Python3/blob/master/L11_Sieve%20of%20Eratosthenes/11.2%20CountSemiprimes.md def solution(N, P, Q): """ PQN, O(N * log(log(N)) + M) :param N: :param P: :param Q: :return: , """ # 34(1, 3, 9, 27)(1, 5, 25, 125) # N0 semi_prime = ...
33.4375
191
0.482243
4060cef76afd120f8b88cf8abb7104b1c967dfca
2,614
py
Python
src/zope/formlib/errors.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
4
2018-05-09T04:16:25.000Z
2021-03-05T17:27:21.000Z
src/zope/formlib/errors.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
25
2016-03-24T15:23:08.000Z
2021-03-05T16:53:53.000Z
src/zope/formlib/errors.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
5
2015-02-11T13:32:06.000Z
2018-05-09T04:16:26.000Z
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
34.394737
78
0.653405
4061946ebfbadada4a68b023604bd5475c508749
6,090
py
Python
src/packagedcode/about.py
sthagen/nexB-scancode-toolkit
12cc1286df78af898fae76fa339da2bb50ad51b9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/packagedcode/about.py
sthagen/nexB-scancode-toolkit
12cc1286df78af898fae76fa339da2bb50ad51b9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/packagedcode/about.py
sthagen/nexB-scancode-toolkit
12cc1286df78af898fae76fa339da2bb50ad51b9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutcode.org for more in...
36.25
98
0.621182
4061e49b5b1d7dddbcbb3f8df2b62b73c065877a
2,359
py
Python
gazepattern/eyedetector/admin.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
null
null
null
gazepattern/eyedetector/admin.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
12
2020-06-05T22:56:39.000Z
2022-02-10T10:35:13.000Z
gazepattern/eyedetector/admin.py
AriRodriguezCruz/mcfgpr
c6f83f8e68bbab0054a7ea337feab276fc0790fc
[ "MIT" ]
1
2019-10-06T23:40:45.000Z
2019-10-06T23:40:45.000Z
# -*- coding: utf-8 -*- #django from django.contrib import admin from django.db import transaction #python import csv from decimal import Decimal #gazepattern from .models import Experiment, ExperimentPoint, Image, ImageRectangle, ExperimentPointCSV, ExperimentFunction procesar.short_description = "Procesar CSV para ...
31.878378
110
0.676982
4061ef1026efc595fdfdf42014af88613e5012a6
2,634
py
Python
orders/tests/test_views.py
ms0680146/Order_System
934c3849ad0d72c0ce560706a6857870935e8599
[ "MIT" ]
null
null
null
orders/tests/test_views.py
ms0680146/Order_System
934c3849ad0d72c0ce560706a6857870935e8599
[ "MIT" ]
null
null
null
orders/tests/test_views.py
ms0680146/Order_System
934c3849ad0d72c0ce560706a6857870935e8599
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.urls import reverse from orders.models import Order, OrderItem from datetime import datetime from django.utils.timezone import get_current_timezone import pytz
34.207792
118
0.612756
406203c920d38242adfa5e5ed2a39070a52fd1c1
373
py
Python
codigo/hexagonal/app/adapter/light_bulb_repository.py
VulturARG/charla_01
43a53fded4f3205a02b00993a523e2f94b79fc99
[ "Apache-2.0" ]
null
null
null
codigo/hexagonal/app/adapter/light_bulb_repository.py
VulturARG/charla_01
43a53fded4f3205a02b00993a523e2f94b79fc99
[ "Apache-2.0" ]
null
null
null
codigo/hexagonal/app/adapter/light_bulb_repository.py
VulturARG/charla_01
43a53fded4f3205a02b00993a523e2f94b79fc99
[ "Apache-2.0" ]
null
null
null
from codigo.hexagonal.app.domain.switchable_repository import Switchable
26.642857
72
0.646113
4062ba894ee618c56f6c5822e3859495a6c3298f
541
py
Python
aula12/ex1.py
otaviobizulli/python-exercices
2c61f014bf481fa463721b174ddd4238bf8d0cb3
[ "MIT" ]
null
null
null
aula12/ex1.py
otaviobizulli/python-exercices
2c61f014bf481fa463721b174ddd4238bf8d0cb3
[ "MIT" ]
null
null
null
aula12/ex1.py
otaviobizulli/python-exercices
2c61f014bf481fa463721b174ddd4238bf8d0cb3
[ "MIT" ]
null
null
null
from random import randint menor = 100 linha = 0 maior = 0 m = [] for i in range(10): m.append([]) for j in range(10): m[i].append(randint(1,99)) for i in range(10): for j in range(10): print(f'{m[i][j]:2}',end=' ') print() for i in range(10): for j in range(10): if m[i][j...
16.393939
76
0.51756
4063e065b5e1d8a9952507fe4d95419e55a2613a
1,153
py
Python
src/token_classification/format.py
adriens63/BERT_fine_tuning_for_MLM_and_token_classification
89ff0d8ed12da370b1f8757ae9db8d725143a5bb
[ "Apache-2.0" ]
null
null
null
src/token_classification/format.py
adriens63/BERT_fine_tuning_for_MLM_and_token_classification
89ff0d8ed12da370b1f8757ae9db8d725143a5bb
[ "Apache-2.0" ]
1
2021-12-10T15:26:05.000Z
2021-12-10T15:26:05.000Z
src/token_classification/format.py
adriens63/BERT_fine_tuning_for_MLM_and_token_classification
89ff0d8ed12da370b1f8757ae9db8d725143a5bb
[ "Apache-2.0" ]
3
2021-12-05T12:43:23.000Z
2021-12-10T15:42:40.000Z
import os.path as osp import argparse import yaml from src.token_classification.archs.data_formatter import * # ********************* launch formating *********************** # cmd to launch : python -m src.token_classification.format --config ./src/token_classification/config/config.yml if __name__ == '__main__...
32.942857
142
0.674761
4063f5350f19ec0fcf289e841719b7191b72872c
6,393
py
Python
add.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
add.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
add.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import os, sys, time import numpy as np import scipy.sparse import scipy.linalg import scipy.sparse.linalg from astropy.table import Table, Column import multiprocessing from desiutil.log import get_logger from desispec.interpolation import resample...
40.980769
126
0.552323
40642da36f0613fe957f14edea19df84f13b530a
2,525
py
Python
pontoon/pretranslation/tests/test_pretranslate.py
timvisee/pontoon
aec1ef7b5c5d56c3be28fecf1147945d2622bbad
[ "BSD-3-Clause" ]
null
null
null
pontoon/pretranslation/tests/test_pretranslate.py
timvisee/pontoon
aec1ef7b5c5d56c3be28fecf1147945d2622bbad
[ "BSD-3-Clause" ]
null
null
null
pontoon/pretranslation/tests/test_pretranslate.py
timvisee/pontoon
aec1ef7b5c5d56c3be28fecf1147945d2622bbad
[ "BSD-3-Clause" ]
null
null
null
from mock import patch import pytest from pontoon.base.models import User from pontoon.pretranslation.pretranslate import get_translations from pontoon.test.factories import ( EntityFactory, TranslationMemoryFactory, )
34.121622
87
0.693069
406526a2d40a76aa8b9a7ce0c6aadecb3ce65af4
9,615
py
Python
cubes/common.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
1,020
2015-01-02T03:05:26.000Z
2022-02-12T18:48:51.000Z
cubes/common.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
259
2015-01-02T22:35:14.000Z
2021-09-02T04:20:41.000Z
cubes/common.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
288
2015-01-08T00:42:26.000Z
2022-03-31T17:25:10.000Z
# -*- encoding: utf-8 -*- """Utility functions for computing combinations of dimensions and hierarchy levels""" from __future__ import absolute_import import re import os.path import json from collections import OrderedDict from .errors import ModelInconsistencyError, ArgumentError, ConfigurationError from . impor...
30.141066
83
0.584191
40665e1c58be6db40c3e5c0613a58755896c8a6f
4,366
py
Python
wavenet_iaf.py
Ella77/ClariNet
1a2eea899f5c28b34beb6fb08725f38309e7e053
[ "MIT" ]
126
2019-05-23T03:37:43.000Z
2021-08-02T20:15:22.000Z
wavenet_iaf.py
Ella77/ClariNet
1a2eea899f5c28b34beb6fb08725f38309e7e053
[ "MIT" ]
4
2019-06-05T11:30:51.000Z
2022-03-17T09:01:29.000Z
wavenet_iaf.py
Ella77/ClariNet
1a2eea899f5c28b34beb6fb08725f38309e7e053
[ "MIT" ]
24
2019-05-23T03:37:39.000Z
2021-12-23T22:29:01.000Z
import torch import torch.nn as nn import torch.nn.functional as F from modules import Conv, ResBlock
39.690909
111
0.584517
4066b6af1e7dfd680248198011c778dca827452b
828
py
Python
tests/__init__.py
ybelleguic/openbrokerapi
9d6019dd1b6649c9d0cb0dee4b3236e0ee209dbc
[ "MIT" ]
36
2017-10-06T15:16:21.000Z
2021-07-30T16:25:59.000Z
tests/__init__.py
ybelleguic/openbrokerapi
9d6019dd1b6649c9d0cb0dee4b3236e0ee209dbc
[ "MIT" ]
167
2017-09-28T23:38:33.000Z
2022-03-28T21:18:49.000Z
tests/__init__.py
ybelleguic/openbrokerapi
9d6019dd1b6649c9d0cb0dee4b3236e0ee209dbc
[ "MIT" ]
26
2017-09-29T13:46:38.000Z
2022-01-05T08:49:25.000Z
try: from gevent import monkey monkey.patch_all() except ImportError: # fine if no gevent is available pass import base64 import logging from unittest.mock import Mock from flask.app import Flask from flask_testing import TestCase from openbrokerapi.api import BrokerCredentials from openbrokerapi.log...
23.657143
67
0.641304
4067311b4e6925a510e59163839cef51d453a910
5,234
py
Python
ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/network/f5/bigip_gtm_wide_ip.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Michael Perzel # # This file is part of Ansible # # Ansible 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 you...
31.914634
97
0.643676
4067cec9a6ceb8438c7e66edc2d29eb2148964ae
1,323
py
Python
sql/src/test/resources/joins/create_sample_table.py
MichelaSalvemini/Modelli_project
b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d
[ "Apache-2.0" ]
677
2016-01-04T04:05:50.000Z
2022-03-24T06:37:27.000Z
sql/src/test/resources/joins/create_sample_table.py
MichelaSalvemini/Modelli_project
b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d
[ "Apache-2.0" ]
249
2015-12-29T03:41:31.000Z
2020-09-02T03:11:30.000Z
sql/src/test/resources/joins/create_sample_table.py
MichelaSalvemini/Modelli_project
b70d505f9c3fef4a5f857fdccaa60b1b64c8a71d
[ "Apache-2.0" ]
148
2015-12-29T03:25:48.000Z
2021-08-25T03:59:52.000Z
#! /usr/bin/env python from __future__ import print_function import pandas as pd import numpy as np import argparse if __name__ == '__main__': parser = argparse.ArgumentParser( description='Generate sample tables to test joins.') parser.add_argument('--num-rows', '-r', type=int, default=100) par...
30.068182
77
0.670446
4067fffb2bd9b7aaa8d3273ea742884e5f876e2d
1,219
py
Python
Advanced/1- Introduction/5- Index_words.py
AlirezaMojtabavi/Python_Practice
c0128d6ce4cf172d93cc4e48861e7980e8e016a2
[ "MIT" ]
null
null
null
Advanced/1- Introduction/5- Index_words.py
AlirezaMojtabavi/Python_Practice
c0128d6ce4cf172d93cc4e48861e7980e8e016a2
[ "MIT" ]
null
null
null
Advanced/1- Introduction/5- Index_words.py
AlirezaMojtabavi/Python_Practice
c0128d6ce4cf172d93cc4e48861e7980e8e016a2
[ "MIT" ]
1
2020-11-14T07:19:26.000Z
2020-11-14T07:19:26.000Z
indexWords = list() phrase = str(input()) phraseList = phrase.split(" ") length = len(phraseList) for item in phraseList : item = item.strip() if phrase != "" : for i in range(1, length-1) : lengthOfWord = len(phraseList[i]) if phraseList[i][0].isupper() : if PreviousWord(...
31.25641
74
0.538966
40686bfbfab402b52cf133e6f6f5366a147289d1
14,107
py
Python
appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 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 base64 import json import mock import webapp2 from google.appengine.api import taskqueue from go.chromium.org.luci.buildbucket.proto.build_pb2 impor...
40.654179
78
0.607712
40686c4879d63aced85e26a35f076b9028592fdb
24,660
py
Python
sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20191027preview/open_shift_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
47.514451
856
0.679927
40686f7cd56545ec9981f33c3903dd74fd6b1048
326
py
Python
django_drf_server/quiz/migrations/0017_remove_quiz_questions.py
pammalPrasanna/quizie
3c03552c39ef3d7e613f5b613479df4ef8d44ac1
[ "MIT" ]
null
null
null
django_drf_server/quiz/migrations/0017_remove_quiz_questions.py
pammalPrasanna/quizie
3c03552c39ef3d7e613f5b613479df4ef8d44ac1
[ "MIT" ]
null
null
null
django_drf_server/quiz/migrations/0017_remove_quiz_questions.py
pammalPrasanna/quizie
3c03552c39ef3d7e613f5b613479df4ef8d44ac1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-17 02:01 from django.db import migrations
18.111111
47
0.588957
4069e772d72345dc8c5aa0533940bffe33f5921a
18,348
py
Python
main.py
khan-git/webRecipies
4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb
[ "MIT" ]
null
null
null
main.py
khan-git/webRecipies
4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb
[ "MIT" ]
null
null
null
main.py
khan-git/webRecipies
4fa9f9bc3c9809f82c5c8fd94dbb604da3443dcb
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-1 -*- import os import shutil import datetime import sqlite3 from flask import Flask, request, session, render_template, g, redirect, url_for, abort, flash, make_response from random import randint import json import urllib2 import json from json.decoder import JSONObject from werkzeug.utils imp...
33
150
0.601373
406a21613d9b1dbc55f543cfe42bc9ef9b68a79c
1,749
py
Python
tests/bugs/core_2678_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_2678_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_2678_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_2678 # title: Full outer join cannot use available indices (very slow execution) # decription: # tracker_id: CORE-2678 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3....
23.958904
109
0.619211
406ae0237fa650007fb4d1f31a942b053762212b
962
py
Python
application/model/entity/category.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
1
2020-07-15T14:23:30.000Z
2020-07-15T14:23:30.000Z
application/model/entity/category.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
null
null
null
application/model/entity/category.py
UniversidadeDeVassouras/labproghiper-2020.1-MatheusTelles-p1
d0d81fc82d031f7add9e38add765aad0c404ee35
[ "Apache-2.0" ]
null
null
null
from flask import current_app
24.666667
60
0.613306
406b1ddec2cc13a47e3515d6e9a2b41aa445fd1b
76
py
Python
cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py
e2jk/cookietemple
86af5622cdabe9ae446048536571898716939f29
[ "Apache-2.0" ]
117
2020-11-23T02:07:23.000Z
2022-03-21T16:14:53.000Z
cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py
e2jk/cookietemple
86af5622cdabe9ae446048536571898716939f29
[ "Apache-2.0" ]
226
2020-10-19T19:58:13.000Z
2022-03-27T18:54:30.000Z
cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py
e2jk/cookietemple
86af5622cdabe9ae446048536571898716939f29
[ "Apache-2.0" ]
9
2020-11-24T12:45:10.000Z
2022-03-13T15:58:23.000Z
"""Test suite for the {{ cookiecutter.project_slug_no_hyphen }} package."""
38
75
0.736842
406bcb88801f876f8613c7d8e41183ccf8efc7dd
153
py
Python
bricks/ev3dev/modules/pybricks/robotics.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
115
2020-06-15T16:43:14.000Z
2022-03-21T21:11:57.000Z
bricks/ev3dev/modules/pybricks/robotics.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
83
2020-06-17T17:19:29.000Z
2022-03-08T18:50:35.000Z
bricks/ev3dev/modules/pybricks/robotics.py
BertLindeman/pybricks-micropython
8f22a99551100e66ddf08d014d9f442f22b33b4d
[ "MIT" ]
40
2020-06-15T18:36:39.000Z
2022-03-28T13:22:43.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2020 The Pybricks Authors """Pybricks robotics module.""" from _pybricks.robotics import DriveBase
21.857143
46
0.771242
406bff6901669314a484753b5d5e8d18397cb7b2
3,693
py
Python
flask-app/web_app/storage_manager/storage_manager.py
PetrMokrov/back_end_project
4dd58d61e637d10872fe58a154dc89f6d0829d94
[ "MIT" ]
null
null
null
flask-app/web_app/storage_manager/storage_manager.py
PetrMokrov/back_end_project
4dd58d61e637d10872fe58a154dc89f6d0829d94
[ "MIT" ]
null
null
null
flask-app/web_app/storage_manager/storage_manager.py
PetrMokrov/back_end_project
4dd58d61e637d10872fe58a154dc89f6d0829d94
[ "MIT" ]
1
2019-04-02T12:30:13.000Z
2019-04-02T12:30:13.000Z
#!/usr/bin/env python import psycopg2 import time from ..models import User
33.572727
107
0.479285
406c19e470ed1397c6d2535e8a38599b7798d3a3
2,906
py
Python
custom/ahex.py
piyush1104/ColorHelper
7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc
[ "MIT" ]
null
null
null
custom/ahex.py
piyush1104/ColorHelper
7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc
[ "MIT" ]
null
null
null
custom/ahex.py
piyush1104/ColorHelper
7321cc2642f82c701e3c9c1ff1ebdad3a8ff19dc
[ "MIT" ]
null
null
null
"""Custon color that looks for colors of format `#RRGGBBAA` as `#AARRGGBB`.""" from coloraide.css.colors import Color, SRGB from coloraide.colors import _parse as parse from coloraide import util import copy import re class ColorAlphaHex(Color): """Color object whose sRGB color space looks for colors of format `...
33.022727
100
0.547144
406c1c0028a84aba8bcd01a2421dbf11b583f400
2,115
py
Python
source_code/terrain.py
Wiolarz/Console_PY_dungeon
cbf3b9a68251b9ce620aac1f4ca36361160186ea
[ "Apache-2.0" ]
null
null
null
source_code/terrain.py
Wiolarz/Console_PY_dungeon
cbf3b9a68251b9ce620aac1f4ca36361160186ea
[ "Apache-2.0" ]
2
2021-11-29T16:26:03.000Z
2021-11-29T16:27:14.000Z
source_code/terrain.py
Wiolarz/Console_PY_dungeon
cbf3b9a68251b9ce620aac1f4ca36361160186ea
[ "Apache-2.0" ]
null
null
null
import random import jobs import balance from economy import roman_numbers
27.467532
113
0.613239
406d45c5b1e3edd5a8eec1e610e28a22eb3881b2
2,190
py
Python
entrepreneurial_property/models/scientificpark.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
1
2019-05-26T22:24:01.000Z
2019-05-26T22:24:01.000Z
entrepreneurial_property/models/scientificpark.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
6
2019-01-22T14:53:43.000Z
2020-09-22T16:20:28.000Z
entrepreneurial_property/models/scientificpark.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
null
null
null
from django.db import models from .media import Water from .media import Electricity from .media import Gas from .media import WasteWater from .media import Telecommunication from .generic import Attachment from .generic import Photo from .generic import Location as EstateLocation from cigeo.models import GenericNote ...
20.660377
57
0.696347
406e0a83e413ef1e4bba7c5add21f6292e7188e7
2,328
py
Python
pusion/input_output/file_input_output.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
5
2021-07-24T16:05:12.000Z
2022-01-21T15:06:03.000Z
pusion/input_output/file_input_output.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
null
null
null
pusion/input_output/file_input_output.py
IPVS-AS/pusion
58ef24b602f611192430f6005ecf5305f878f412
[ "MIT" ]
2
2021-07-24T16:05:14.000Z
2022-03-25T21:24:40.000Z
import json import ntpath import shutil from pathlib import Path import pickle5 def load_pickle_files_as_data(file_paths): """ Load pickle files containing decision outputs as an data array. :param file_paths: A List of file paths to the individual pickle files. :return: A data array. """ da...
32.333333
97
0.681701
407208de4a5ad6967ea27d59e0496b7b2dfa6fe5
747
py
Python
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
aGrass0825/meiduo_project
78c560c1e9a3205d4958ddbe798cd0ab2be41830
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
aGrass0825/meiduo_project
78c560c1e9a3205d4958ddbe798cd0ab2be41830
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
aGrass0825/meiduo_project
78c560c1e9a3205d4958ddbe798cd0ab2be41830
[ "MIT" ]
null
null
null
from rest_framework.generics import ListAPIView from rest_framework.permissions import IsAdminUser from goods.models import SPU, SPUSpecification from meiduo_admin.serializers.spus import SPUSimpleSerializer, SPUSpecSerializer # GET/meiduo_admin/goods/(?P<pk>\d+)/specs/
24.096774
80
0.749665
4072139f6fa73549f4c92cc0b2aa6d9bd1e96911
1,172
py
Python
Scientific Computing with Python/Probability Calculator/prob_calculator.py
Fradxyz/FCCProjects
f337ebdfb86605107e0b85d9e83e88ec7ed60778
[ "MIT" ]
null
null
null
Scientific Computing with Python/Probability Calculator/prob_calculator.py
Fradxyz/FCCProjects
f337ebdfb86605107e0b85d9e83e88ec7ed60778
[ "MIT" ]
null
null
null
Scientific Computing with Python/Probability Calculator/prob_calculator.py
Fradxyz/FCCProjects
f337ebdfb86605107e0b85d9e83e88ec7ed60778
[ "MIT" ]
null
null
null
# Hacked by Ry2uko :D import copy import random # Consider using the modules imported above. if __name__ == '__main__': # Test here pass
26.044444
70
0.551195
40738ad4ddc2dca3384f1a7a4b98ec684eed9a5c
1,611
py
Python
src/frames/add_quantity_frame.py
GolovPavel/ValueConverter
8492f100667af49fe4bf06eaf0de660513424252
[ "MIT" ]
1
2020-09-22T17:10:21.000Z
2020-09-22T17:10:21.000Z
src/frames/add_quantity_frame.py
GolovPavel/ValueConverter
8492f100667af49fe4bf06eaf0de660513424252
[ "MIT" ]
1
2020-03-06T21:18:10.000Z
2020-03-06T21:18:10.000Z
src/frames/add_quantity_frame.py
GolovPavel/ValueConverter
8492f100667af49fe4bf06eaf0de660513424252
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.messagebox import showerror from constants.frames import MAIN_FRAME_NAME from util import add_new_quantity
33.5625
116
0.666667
4073fadf1987f151aaa0076f63a670fabd02b58e
226
py
Python
setup.py
vwxyzjn/pysc2gym
7c43e55a8f48be77f53332b73fda7635e6063589
[ "MIT" ]
6
2020-09-23T21:31:48.000Z
2022-03-14T23:59:35.000Z
setup.py
vwxyzjn/pysc2gym
7c43e55a8f48be77f53332b73fda7635e6063589
[ "MIT" ]
2
2022-01-13T03:48:47.000Z
2022-03-12T00:58:26.000Z
setup.py
vwxyzjn/pysc2gym
7c43e55a8f48be77f53332b73fda7635e6063589
[ "MIT" ]
1
2021-06-28T14:17:11.000Z
2021-06-28T14:17:11.000Z
from setuptools import setup import versioneer setup(name='gym_pysc2', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=['gym'] # And any other dependencies foo needs )
28.25
70
0.738938
40747f1fe0cf14a0bae5770661298c543ddc7ac6
1,395
py
Python
Compressed downloads/server.py
Aldair47x/aa
ac49239ff94ec6735b316606482dc366ae52bfe8
[ "MIT" ]
null
null
null
Compressed downloads/server.py
Aldair47x/aa
ac49239ff94ec6735b316606482dc366ae52bfe8
[ "MIT" ]
null
null
null
Compressed downloads/server.py
Aldair47x/aa
ac49239ff94ec6735b316606482dc366ae52bfe8
[ "MIT" ]
null
null
null
import zmq import sys import os import math if __name__ == '__main__': main()
26.320755
72
0.496774
40757d236a917305a24dbe63896ecb49966f293c
1,618
py
Python
metric_learn/nca.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
null
null
null
metric_learn/nca.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
null
null
null
metric_learn/nca.py
ogrisel/metric-learn
fb6733c190911d2c408bd7f0b8c9b54ff005fa8d
[ "MIT" ]
2
2017-08-02T08:57:50.000Z
2020-03-20T13:32:54.000Z
""" Neighborhood Components Analysis (NCA) Ported to Python from https://github.com/vomjom/nca """ from __future__ import absolute_import import numpy as np from six.moves import xrange from sklearn.utils.validation import check_X_y from .base_metric import BaseMetricLearner EPS = np.finfo(float).eps
26.966667
74
0.600742
4075a5272343f25994c7b713935ff6736a8b4fb7
2,923
py
Python
rl_repr/batch_rl/evaluation.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
rl_repr/batch_rl/evaluation.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
rl_repr/batch_rl/evaluation.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
31.771739
80
0.671912
4075b24c28e51db8658934eede3f2eedb744d8c0
4,721
py
Python
src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py
ben-dichter-consulting/nwbn-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
null
null
null
src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py
ben-dichter-consulting/nwbn-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
6
2020-01-31T13:29:40.000Z
2020-03-27T13:09:32.000Z
src/nwb_conversion_tools/datainterfaces/ecephys/intan/intandatainterface.py
ben-dichter-consulting/nwb-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
1
2019-11-24T05:08:06.000Z
2019-11-24T05:08:06.000Z
"""Authors: Cody Baker and Ben Dichter.""" from pathlib import Path import spikeextractors as se from pynwb.ecephys import ElectricalSeries from ..baserecordingextractorinterface import BaseRecordingExtractorInterface from ....utils import get_schema_from_hdmf_class, FilePathType try: from pyintan.intan import r...
44.121495
118
0.615336
40771f48cc35e55bf1ed0377d840f200b12f6982
739
py
Python
Use.py
XtremeCoder1384/SongDownloader
7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02
[ "MIT" ]
1
2019-03-04T02:26:41.000Z
2019-03-04T02:26:41.000Z
Use.py
XtremeCoder1384/SongDownloader
7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02
[ "MIT" ]
1
2018-12-20T02:32:35.000Z
2019-03-11T12:51:15.000Z
Use.py
IngeniousCoder/SongDownloader
7bb06d7961ec699af8517cbd7cb4a1ec83d4fd02
[ "MIT" ]
null
null
null
import os import youtube_dl os.system("setup.bat") playlist = input("Paste the Youtube Playlist URL Here.") track = 1 print("""THIS TOOL WILL ATTEMPT TO DOWNLOAD THE FIRST 1000 SONGS IN THE QUEUE.\n PLEASE DO NOT INTERRUPT THE TOOL. YOU MAY CLOSE THE TOOL WHEN IT DISPLAYS "DONE!". ALL...
36.95
129
0.663058
40776dbc5b7aba40a9cfd205d779833d8dd62541
1,903
py
Python
site/manage.py
oaoouo/railgun
b09d276723976740841d8b8adf9cbf87a05cd970
[ "MIT" ]
null
null
null
site/manage.py
oaoouo/railgun
b09d276723976740841d8b8adf9cbf87a05cd970
[ "MIT" ]
null
null
null
site/manage.py
oaoouo/railgun
b09d276723976740841d8b8adf9cbf87a05cd970
[ "MIT" ]
null
null
null
# coding: utf-8 """ manage.py ~~~~~~~~~ """ import os import sys import shutil import platform from app import app from gen import Gen from flask_script import Manager """""" if (platform.python_version().split('.')[0] == '2'): # reload(sys) is evil :) reload(sys) sys.setdefaultencoding('utf-8')...
25.039474
71
0.60536
40780e501d35b1715806673a2e143e24f1727e1c
3,152
py
Python
tests/test_segmenters.py
edoarn/cv-models
5fa7e50fd69f76b54611bb323b15610eeb1bb5cf
[ "MIT" ]
null
null
null
tests/test_segmenters.py
edoarn/cv-models
5fa7e50fd69f76b54611bb323b15610eeb1bb5cf
[ "MIT" ]
4
2021-04-23T12:05:45.000Z
2021-04-25T11:38:01.000Z
tests/test_segmenters.py
edoarn/cv-models
5fa7e50fd69f76b54611bb323b15610eeb1bb5cf
[ "MIT" ]
null
null
null
from typing import Any import torch import torch.nn as nn from cvmodels.segmentation import unet, deeplab as dl
36.651163
115
0.703046
40788e305d7f2fee1abfae85125753bcd3fa071f
10,981
py
Python
bagua/torch_api/contrib/sync_batchnorm.py
mmathys/bagua
e17978690452318b65b317b283259f09c24d59bb
[ "MIT" ]
635
2021-06-11T03:03:11.000Z
2022-03-31T14:52:57.000Z
bagua/torch_api/contrib/sync_batchnorm.py
mmathys/bagua
e17978690452318b65b317b283259f09c24d59bb
[ "MIT" ]
181
2021-06-10T12:27:19.000Z
2022-03-31T04:08:19.000Z
bagua/torch_api/contrib/sync_batchnorm.py
shjwudp/bagua
7e1b438e27e3119b23e472f5b9217a9862932bef
[ "MIT" ]
71
2021-06-10T13:16:53.000Z
2022-03-22T09:26:22.000Z
# Copyright (c) Uber Technologies, Inc. and its affiliates. # Copyright (c) 2021 Kuaishou AI Platform & DS3 Lab. # # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from distutils.version import LooseVersion impor...
38.128472
160
0.601858
407a65f9c4b9f958fde5ab42bad4bdd15788bb31
4,046
py
Python
tests/test_classification_metric.py
DaveFClarke/ml_bias_checking
90f67ebc602b6107042e6cbff3268051bb3b1c95
[ "Apache-2.0" ]
2
2021-07-31T20:52:37.000Z
2022-02-15T21:05:17.000Z
tests/test_classification_metric.py
DaveFClarke/ml_bias_checking
90f67ebc602b6107042e6cbff3268051bb3b1c95
[ "Apache-2.0" ]
2
2021-08-25T16:16:43.000Z
2022-02-10T05:26:14.000Z
tests/test_classification_metric.py
DaveFClarke/ml_bias_checking
90f67ebc602b6107042e6cbff3268051bb3b1c95
[ "Apache-2.0" ]
1
2019-05-21T15:31:24.000Z
2019-05-21T15:31:24.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import pandas as pd from aif360.datasets import BinaryLabelDataset from aif360.metrics import ClassificationMetric
34.87931
85
0.505685
407b22ddf13dab3659fb801ada3a7cb31608cf9a
200
py
Python
PDA/extra_assignments/10.6. Dicts_ Countries and cities/solution/main.py
EMbeDS-education/StatsAndComputing20212022
971e418882b206a1b5606d15d222cef1a5a04834
[ "MIT" ]
2
2022-02-24T09:35:15.000Z
2022-03-14T20:34:33.000Z
PDA/extra_assignments/10.6. Dicts_ Countries and cities/solution/main.py
GeorgiosArg/StatsAndComputing20212022
798d39af6aa5ef5eef49d5d6f43191351e8a49f3
[ "MIT" ]
null
null
null
PDA/extra_assignments/10.6. Dicts_ Countries and cities/solution/main.py
GeorgiosArg/StatsAndComputing20212022
798d39af6aa5ef5eef49d5d6f43191351e8a49f3
[ "MIT" ]
2
2022-03-15T21:40:35.000Z
2022-03-26T14:51:31.000Z
city_country = {} for _ in range(int(input())): country, *cities = input().split() for city in cities: city_country[city] = country for _ in range(int(input())): print(city_country[input()])
28.571429
36
0.665
407cd39412220721420002d2204aeef22618cb4c
1,562
py
Python
config.py
oyasr/mudawen
6f0161ab783536d7c5d695225ef28ce4947a46e3
[ "MIT" ]
null
null
null
config.py
oyasr/mudawen
6f0161ab783536d7c5d695225ef28ce4947a46e3
[ "MIT" ]
null
null
null
config.py
oyasr/mudawen
6f0161ab783536d7c5d695225ef28ce4947a46e3
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() basedir = os.path.abspath(os.path.dirname(__file__)) config = { 'development': DevConfig, 'testing': TestConfig, 'production': ProductionConfig, 'default': DevConfig }
28.4
70
0.691421
407ce0ad1e21c01e8414bc4b63e17958aa42df9e
998
py
Python
experiments/async_tests/async_3.py
10ks/py_utils
54ce06dbd567b097deda1c7ef2d0a2265e5b243e
[ "MIT" ]
null
null
null
experiments/async_tests/async_3.py
10ks/py_utils
54ce06dbd567b097deda1c7ef2d0a2265e5b243e
[ "MIT" ]
null
null
null
experiments/async_tests/async_3.py
10ks/py_utils
54ce06dbd567b097deda1c7ef2d0a2265e5b243e
[ "MIT" ]
null
null
null
import asyncio if __name__ == "__main__": import time s = time.perf_counter() asyncio.run(main()) # Completing unfinished tasks (throws a warning) # loop = asyncio.get_event_loop() # loop.run_until_complete(main()) # pending = asyncio.Task.all_tasks() # loop.run_until_complete(a...
23.209302
80
0.607214
407d150b5548e5dc5c3decda923610fd51eb2141
1,438
py
Python
vk_bot/mods/util/calculator.py
triangle1984/GLaDOS
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
3
2019-12-12T05:48:34.000Z
2020-12-07T19:23:41.000Z
vk_bot/mods/util/calculator.py
anar66/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
1
2019-11-15T14:28:49.000Z
2019-11-15T14:28:49.000Z
vk_bot/mods/util/calculator.py
triangle1984/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
5
2019-11-20T14:20:30.000Z
2022-02-05T10:37:01.000Z
# from vk_bot.core.modules.basicplug import BasicPlug # import math # class Calculator(BasicPlug): # doc = "" # command = ("",) # def main(self): # try: # x = self.text[1]; x = int(x) # encalc = self.text[2]; encalc = encalc.lower() # y = self.text[3]; y = int(y) ...
36.871795
74
0.462448
407dc792a754cf8c4cf33cd4fb3c31fe49507ba3
9,201
py
Python
sample-input/homogeneous/geometry.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
97
2015-01-02T02:13:45.000Z
2022-03-09T14:12:45.000Z
sample-input/homogeneous/geometry.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
325
2015-01-07T17:43:14.000Z
2022-02-21T17:22:00.000Z
sample-input/homogeneous/geometry.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
73
2015-01-17T19:11:58.000Z
2022-03-24T16:31:37.000Z
import openmoc import openmoc.log as log import openmoc.plotter as plotter import openmoc.materialize as materialize log.set_log_level('NORMAL') ############################################################################### ########################### Creating Materials ############################ #############...
46.705584
79
0.29236
407e66ad31400c201f52210276cc27484a563068
22,314
py
Python
google/ads/google_ads/v5/__init__.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/__init__.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/__init__.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
71.519231
113
0.791118
407f96b82e23f251ebe7b0d09ba3c8416a7e9d98
5,279
py
Python
PNN/model.py
jingxiufenghua/rec-model
23204f70fc1bf384d3cdd0cc85e43117d3394074
[ "MIT" ]
1,323
2020-08-24T02:34:25.000Z
2022-03-31T06:03:28.000Z
PNN/model.py
yiLinMaster/Recommender-System-with-TF2.0
cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822
[ "MIT" ]
65
2020-08-25T06:07:41.000Z
2022-03-18T20:10:53.000Z
PNN/model.py
yiLinMaster/Recommender-System-with-TF2.0
cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822
[ "MIT" ]
395
2020-08-24T00:57:08.000Z
2022-03-31T12:41:13.000Z
""" Created on July 20, 2020 Updated on May 19, 2021 model: Product-based Neural Networks for User Response Prediction @author: Ziyao Geng(zggzy1996@163.com) """ import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.regularizers import l2 from tensorflow.keras.layers import Embedding, Dens...
47.990909
114
0.544232
407fa3643267388dca73bf3b3496b61a0c5f9491
314
py
Python
exercicio3.py
DrokaGit/-infosatc-lp-avaliativo-02
6bb78ce84ac325c866201ff538f426d6e7a72ab5
[ "MIT" ]
null
null
null
exercicio3.py
DrokaGit/-infosatc-lp-avaliativo-02
6bb78ce84ac325c866201ff538f426d6e7a72ab5
[ "MIT" ]
null
null
null
exercicio3.py
DrokaGit/-infosatc-lp-avaliativo-02
6bb78ce84ac325c866201ff538f426d6e7a72ab5
[ "MIT" ]
null
null
null
nume1 = int(input("Digite um numero")) nume2 = int(input("Digite um numero")) nume3 = int(input("Digite um numero")) nume4 = int(input("Digite um numero")) nume5 = int(input("Digite um numero")) table = [nume1,nume2,nume3,nume4,nume5] tableM = (float((nume1 + nume2 + nume3 + nume4 + nume5))) print(float(tableM))
34.888889
57
0.691083
40804fd1f1dd57a07519de8f44b10f0b6f6d1a54
274
py
Python
platonic/platonic/box/implementation.py
anatoly-scherbakov/platonic
b2d239e19f3ebf5a562b6aabcd4b82492bb03564
[ "MIT" ]
1
2019-11-01T09:08:50.000Z
2019-11-01T09:08:50.000Z
platonic/platonic/box/implementation.py
anatoly-scherbakov/platonic
b2d239e19f3ebf5a562b6aabcd4b82492bb03564
[ "MIT" ]
null
null
null
platonic/platonic/box/implementation.py
anatoly-scherbakov/platonic
b2d239e19f3ebf5a562b6aabcd4b82492bb03564
[ "MIT" ]
null
null
null
from typing import TypeVar from .abstract import AbstractBox T = TypeVar('T')
15.222222
33
0.635036
408169e338ef415cc1c1cefeaa3179019885ca4e
79
py
Python
Schemas/Subject.py
esot0/jmsa-tutoring-backend
f35000c73fbbb31f9b4dcca36e40854dc2e06d23
[ "MIT" ]
null
null
null
Schemas/Subject.py
esot0/jmsa-tutoring-backend
f35000c73fbbb31f9b4dcca36e40854dc2e06d23
[ "MIT" ]
null
null
null
Schemas/Subject.py
esot0/jmsa-tutoring-backend
f35000c73fbbb31f9b4dcca36e40854dc2e06d23
[ "MIT" ]
null
null
null
from mongoengine import *
19.75
27
0.746835
40826ce560682ad3ad560f8fecc12e0ab6658bc0
767
py
Python
39. Combination Sum.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
1
2020-12-04T07:38:16.000Z
2020-12-04T07:38:16.000Z
39. Combination Sum.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
null
null
null
39. Combination Sum.py
MapleLove2014/leetcode
135c79ebe98815d0e38280edfadaba90e677aff5
[ "Apache-2.0" ]
null
null
null
s = Solution() print(s.combinationSum([2,3,6,7], 7)) print(s.combinationSum([2,3,5], 8))
34.863636
114
0.555411
4082bcb5f99112c93d2d504f08622c615955a33b
1,204
py
Python
crawl_comments.py
tosh1ki/NicoCrawler
236029f103e01de9e61a042759dc9bf2cb7d3d55
[ "MIT" ]
1
2015-03-04T14:06:33.000Z
2015-03-04T14:06:33.000Z
crawl_comments.py
tosh1ki/NicoCrawler
236029f103e01de9e61a042759dc9bf2cb7d3d55
[ "MIT" ]
2
2015-03-04T02:48:18.000Z
2015-03-04T14:18:32.000Z
crawl_comments.py
tosh1ki/NicoCrawler
236029f103e01de9e61a042759dc9bf2cb7d3d55
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __doc__ = ''' Crawl comment from nicovideo.jp Usage: crawl_comments.py --url <url> --mail <mail> --pass <pass> [--sqlite <sqlite>] [--csv <csv>] Options: --url <url> --mail <mail> --pass <pass> --sqlite <sqlite> (optional) path of comment DB [d...
26.173913
102
0.671096
40830eea2a3d7f03b3b7dae05b19fdc253a0e60b
2,095
py
Python
sif/greedy_sim_max.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
null
null
null
sif/greedy_sim_max.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
2
2021-08-25T16:04:29.000Z
2022-02-10T01:50:44.000Z
sif/greedy_sim_max.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
null
null
null
# Functions to do the greedy similarity maximisation for article:node assignments # All code is original import random def computeSimSum(G, similarityMatrix, asgn): """ Compute the total similarity sum for the current node:article assignment """ S = sum([similarityMatrix[asgn[j], asgn[i]] for j in ra...
32.230769
82
0.651074
40836d6113e4a1359c6e3078275ec9078aa642e4
23,463
py
Python
plab/photon_counters/Idq801.py
joamatab/photonic-coupling-drivers
c12581d8e2158a292e1c585e45c0207c8129c0f1
[ "MIT" ]
null
null
null
plab/photon_counters/Idq801.py
joamatab/photonic-coupling-drivers
c12581d8e2158a292e1c585e45c0207c8129c0f1
[ "MIT" ]
null
null
null
plab/photon_counters/Idq801.py
joamatab/photonic-coupling-drivers
c12581d8e2158a292e1c585e45c0207c8129c0f1
[ "MIT" ]
null
null
null
import sys import numpy as np import shutil import time import itertools as it import collections import ctypes as ct import os import copy sys.path.append(os.path.dirname(__file__)) from ThreadStoppable import ThreadStoppable # if __name__ == "__main__": main()
35.931087
112
0.592507
408378ae2d1cd6ca599deacc2843f436a637b9b1
7,472
py
Python
IRIS/IRIS_formatting.py
Xinglab/IRIS
dc3c172eae9083daf57ce0e71c4fe322ab5cc928
[ "BSD-2-Clause-FreeBSD" ]
7
2019-11-21T08:42:37.000Z
2021-08-13T15:49:18.000Z
IRIS/IRIS_formatting.py
Xinglab/IRIS
dc3c172eae9083daf57ce0e71c4fe322ab5cc928
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
IRIS/IRIS_formatting.py
Xinglab/IRIS
dc3c172eae9083daf57ce0e71c4fe322ab5cc928
[ "BSD-2-Clause-FreeBSD" ]
2
2021-05-08T08:22:38.000Z
2022-01-20T23:43:03.000Z
import sys, numpy, argparse, os if __name__ == '__main__': main()
42.454545
204
0.722564
408407cd45d1d31df97defaffbefa6540d0ab484
7,444
py
Python
quests/dataflow_python/streaming_event_generator.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
2
2022-01-06T11:52:57.000Z
2022-01-09T01:53:56.000Z
quests/dataflow_python/streaming_event_generator.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
quests/dataflow_python/streaming_event_generator.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
# This program reads a file representing web server logs in common log format and streams them into a PubSub topic # with lag characteristics as determined by command-line arguments import argparse from google.cloud import pubsub_v1 import time from datetime import datetime, timezone import random from anytree...
39.595745
116
0.657174
4084a9455c8745ebe8cdb17a3177996a15d02016
210
py
Python
src/models/configs/database.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
src/models/configs/database.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
src/models/configs/database.py
Nardri/rbac-service
c5cf6baf60e95a7790156c85e37c76c697efd585
[ "MIT" ]
null
null
null
"""Database setup""" # Third party library from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate # initialization of the database and migration database = SQLAlchemy() migrate = Migrate()
21
46
0.795238
4085bccb38fa4dfee0e895626450b9f141da766f
4,111
py
Python
postreise/plot/plot_heatmap.py
lanesmith/PostREISE
69d47968cf353bca57aa8b587cc035d127fa424f
[ "MIT" ]
1
2022-01-31T16:53:40.000Z
2022-01-31T16:53:40.000Z
postreise/plot/plot_heatmap.py
lanesmith/PostREISE
69d47968cf353bca57aa8b587cc035d127fa424f
[ "MIT" ]
71
2021-01-22T20:09:47.000Z
2022-03-30T16:53:18.000Z
postreise/plot/plot_heatmap.py
lanesmith/PostREISE
69d47968cf353bca57aa8b587cc035d127fa424f
[ "MIT" ]
7
2021-04-02T14:45:21.000Z
2022-01-17T22:23:38.000Z
import datetime as dt import matplotlib.dates as mdates import matplotlib.pyplot as plt import pandas as pd from powersimdata.input.check import _check_time_series from postreise.analyze.time import change_time_zone def plot_heatmap( series, time_zone=None, time_zone_label=None, title=None, cmap...
37.036036
88
0.683289
4086e4dd21e9a774c97734bcd63cd0233cf32c3d
4,000
py
Python
tensorflow_federated/python/simulation/file_per_user_client_data.py
houcharlie/federated-legacy
cb10a9cdcea33288f8113e7445782d21c8c65f81
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/simulation/file_per_user_client_data.py
houcharlie/federated-legacy
cb10a9cdcea33288f8113e7445782d21c8c65f81
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/simulation/file_per_user_client_data.py
houcharlie/federated-legacy
cb10a9cdcea33288f8113e7445782d21c8c65f81
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, The TensorFlow Federated 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 o...
36.363636
80
0.74325
4086e6c92cd0f6bf0670ff63d76bbec71943f194
162
py
Python
20-Blog_Clone_Project/blog_project_Practice/blog/admin.py
andy2167565/Django-Bootcamp-Practice
f08d2866382db96060450d4dbd1ffaca7243f623
[ "MIT" ]
null
null
null
20-Blog_Clone_Project/blog_project_Practice/blog/admin.py
andy2167565/Django-Bootcamp-Practice
f08d2866382db96060450d4dbd1ffaca7243f623
[ "MIT" ]
null
null
null
20-Blog_Clone_Project/blog_project_Practice/blog/admin.py
andy2167565/Django-Bootcamp-Practice
f08d2866382db96060450d4dbd1ffaca7243f623
[ "MIT" ]
null
null
null
from django.contrib import admin from blog.models import Post, Comment # Register your models here. admin.site.register(Post) admin.site.register(Comment)
23.142857
38
0.777778
408710371dd0d37abadd9978ea2c4a4f85a8ec3b
6,459
py
Python
tests/compilation/request/test_request_compiler.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
3
2019-08-01T03:14:49.000Z
2020-01-31T08:55:22.000Z
tests/compilation/request/test_request_compiler.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
353
2019-04-14T14:53:28.000Z
2022-03-11T03:26:08.000Z
tests/compilation/request/test_request_compiler.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
1
2020-08-01T06:23:08.000Z
2020-08-01T06:23:08.000Z
from unittest.mock import NonCallableMock, sentinel from pytest import mark, raises, fixture from preacher.compilation.argument import Argument from preacher.compilation.error import CompilationError, NamedNode, IndexedNode from preacher.compilation.request.request import RequestCompiler, RequestCompiled from preache...
34.174603
81
0.71203
408784a24cae84367d1864aa02a8ff6e4a8e197a
1,109
py
Python
bot/conversation_handlers/stage01.py
gerbigtim/coaching_bot
5b4ef6e207a5017f7b4274d8238550b4988d0a6e
[ "MIT" ]
null
null
null
bot/conversation_handlers/stage01.py
gerbigtim/coaching_bot
5b4ef6e207a5017f7b4274d8238550b4988d0a6e
[ "MIT" ]
null
null
null
bot/conversation_handlers/stage01.py
gerbigtim/coaching_bot
5b4ef6e207a5017f7b4274d8238550b4988d0a6e
[ "MIT" ]
null
null
null
# imports from telegram.ext import ( CommandHandler, MessageHandler, Filters, ConversationHandler, ) from handler_functions.start import start from handler_functions.bio import bio from handler_functions.gender import gender from handler_functions.photo import photo, skip_photo from handler_functions.lo...
38.241379
102
0.734896
4087ac882a0e642cb2645d67bfb2e7473130d2e9
265
py
Python
python100days/day03/conversion.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
python100days/day03/conversion.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
1
2021-06-02T00:58:26.000Z
2021-06-02T00:58:26.000Z
python100days/day03/conversion.py
lanSeFangZhou/pythonbase
f4daa373573b2fc0a59a5eb919d02eddf5914e18
[ "Apache-2.0" ]
null
null
null
# value =float(input('')) unit =input('') if unit == 'in' or unit == '': print('%f = %f' % (value, value * 2.54)) elif unit == '' or unit == 'cm': print('%f = %f' % (value, value / 2.54)) else: print('')
26.5
49
0.558491
4088dc579c34d53321481174879bd2850ab8f43e
485
py
Python
tests/models/test_dtfactory.py
surajsjain/ocean.py
2e853db94d9aee2a0cf6b3d58f714215b83d917b
[ "Apache-2.0" ]
4
2021-07-05T20:21:41.000Z
2021-09-02T14:13:26.000Z
tests/models/test_dtfactory.py
surajsjain/ocean.py
2e853db94d9aee2a0cf6b3d58f714215b83d917b
[ "Apache-2.0" ]
null
null
null
tests/models/test_dtfactory.py
surajsjain/ocean.py
2e853db94d9aee2a0cf6b3d58f714215b83d917b
[ "Apache-2.0" ]
1
2021-03-25T15:04:12.000Z
2021-03-25T15:04:12.000Z
from ocean_lib.models.data_token import DataToken from ocean_lib.models.dtfactory import DTFactory from ocean_lib.ocean.util import to_base_18
37.307692
108
0.781443
408a713d6a5b30cf98528302f34eefe2000e2530
4,223
py
Python
methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py
Guaguago/CommonGen
0a81b4edb8cd111571eba817eb994420f1070c48
[ "MIT" ]
100
2020-01-30T08:14:25.000Z
2022-03-30T08:59:33.000Z
methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py
Guaguago/CommonGen
0a81b4edb8cd111571eba817eb994420f1070c48
[ "MIT" ]
4
2021-06-08T22:34:33.000Z
2022-03-12T00:50:13.000Z
methods/unilm_based/unilm/src/pytorch_pretrained_bert/optimization_fp16.py
Guaguago/CommonGen
0a81b4edb8cd111571eba817eb994420f1070c48
[ "MIT" ]
15
2020-04-13T22:56:27.000Z
2022-03-10T02:44:26.000Z
# coding=utf-8 """PyTorch optimization for BERT model.""" from apex.contrib.optimizers import FP16_Optimizer
52.135802
117
0.656642
408ac0aced4fa7689e5bb64bd87a616424377650
46
py
Python
ermaket/api/generation/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/generation/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/generation/__init__.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
from .generator import * from .types import *
15.333333
24
0.73913
408c88fb92a834b62165870e3156152b98dd330c
956
py
Python
Source/stack0verf10w.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
Source/stack0verf10w.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
Source/stack0verf10w.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
import Bugdetectionuniversalframe import os import re
30.83871
84
0.582636
408e5eee21b5e0ed193fbd1da82ee85348eb987d
7,517
py
Python
ndbc/station.py
ppokhrel1/ndbc
e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2
[ "MIT" ]
null
null
null
ndbc/station.py
ppokhrel1/ndbc
e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2
[ "MIT" ]
null
null
null
ndbc/station.py
ppokhrel1/ndbc
e8ed73ae35a49c967384e2c80c1a2bf838eeb0c2
[ "MIT" ]
null
null
null
""" station.py """ from datetime import datetime, timedelta import gzip import numpy as np import requests import urllib _BASEURL = 'http://www.ndbc.noaa.gov/data' _SENSOR_URL = _BASEURL+'/stations/buoyht.txt' _REALTIME_URL = _BASEURL+'/realtime2/' _RECENT_URL = _BASEURL+'/stdmet/' _HISTORICAL_URL = _BASEURL+'/histori...
41.994413
89
0.543036
408f68f533f8c5055f6e751095cb737571178a12
765
py
Python
main.py
kajuna0amendez/Cython_Machine_Learning_Models
8b7d502bae07487ae0fdbced796e0fa50082e681
[ "Apache-2.0" ]
null
null
null
main.py
kajuna0amendez/Cython_Machine_Learning_Models
8b7d502bae07487ae0fdbced796e0fa50082e681
[ "Apache-2.0" ]
2
2021-02-02T23:02:12.000Z
2021-08-23T20:51:22.000Z
main.py
kajuna0amendez/Machine_Learning_Models
8b7d502bae07487ae0fdbced796e0fa50082e681
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python __author__ = "Andres Mendez-Vazquez" __copyright__ = "Copyright 2018" __credits__ = ["Andres Mendez-Vazquez"] __license__ = "Apache" __version__ = "v1.0.0" __maintainer__ = "Andres Mendez-Vazquez" __email = "kajuna0kajuna@gmail.com" __status__ = "Development" from data_m...
23.181818
68
0.705882
408f7d16d7791c4eaced84288001a4eccaab5dae
54
py
Python
graw/__init__.py
iamsajjad/graw
84289b9bd2e298bad72ade402ab8a87e7c37688d
[ "MIT" ]
null
null
null
graw/__init__.py
iamsajjad/graw
84289b9bd2e298bad72ade402ab8a87e7c37688d
[ "MIT" ]
null
null
null
graw/__init__.py
iamsajjad/graw
84289b9bd2e298bad72ade402ab8a87e7c37688d
[ "MIT" ]
null
null
null
# version of the graw package __version__ = "0.1.0"
10.8
29
0.685185
408fa80f7b62ab2142b5ebe87fafa4317281b530
6,779
py
Python
sdk/python/pulumi_aws/acm/get_certificate.py
mehd-io/pulumi-aws
034629c3fb30dc90db65b196d115df43723df19c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/acm/get_certificate.py
mehd-io/pulumi-aws
034629c3fb30dc90db65b196d115df43723df19c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/acm/get_certificate.py
mehd-io/pulumi-aws
034629c3fb30dc90db65b196d115df43723df19c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
39.184971
260
0.651424
40902a024648160483f25a5dd670916ae7cc2c01
2,688
py
Python
Part 3/batch_VS_stochastic.py
m9psy/neural_network_habr_guide
543b4bc82cfed5d5675b9ecc1cc97c2286a5562a
[ "MIT" ]
20
2016-08-08T12:16:51.000Z
2022-03-26T19:56:09.000Z
Part 3/batch_VS_stochastic.py
m9psy/neural_network_habr_guide
543b4bc82cfed5d5675b9ecc1cc97c2286a5562a
[ "MIT" ]
null
null
null
Part 3/batch_VS_stochastic.py
m9psy/neural_network_habr_guide
543b4bc82cfed5d5675b9ecc1cc97c2286a5562a
[ "MIT" ]
8
2016-08-08T14:22:13.000Z
2020-05-30T07:05:36.000Z
import numpy as np import matplotlib.pyplot as plt TOTAL = 200 STEP = 0.25 EPS = 0.1 INITIAL_THETA = [9, 14] X = np.arange(0, TOTAL * STEP, STEP) Y = np.array([y for y in generate_sample(TOTAL)]) # , X = (X - X.min()) / (X.max() - X.min()) A = np.empty((TOTAL, 2)) A[:, 0] = 1 A[:, 1] = X theta = np.linal...
29.866667
74
0.553943