hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0ae7ece3c69418050369e97c97c69c668d4452
3,751
py
Python
venv/Lib/site-packages/fsspec/implementations/jupyter.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/fsspec/implementations/jupyter.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/fsspec/implementations/jupyter.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
null
null
null
import base64 import io import fsspec import re import requests class JupyterFileSystem(fsspec.AbstractFileSystem): """View of the files as seen by a Jupyter server (notebook or lab)""" protocol = ("jupyter", "jlab") def __init__(self, url, tok=None, **kwargs): """ Parameters --...
30.745902
79
0.517729
4a0ae8494d6b3840a8df85ed1119a46faa5c24f2
1,475
py
Python
progressivis/table/loc.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
51
2015-09-14T16:31:02.000Z
2022-01-12T17:56:53.000Z
progressivis/table/loc.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
10
2017-11-15T15:10:05.000Z
2022-01-19T07:36:43.000Z
progressivis/table/loc.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
5
2017-11-14T20:20:56.000Z
2020-01-22T06:26:51.000Z
import numpy as np from collections import Iterable from progressivis.core.utils import integer_types from progressivis.core.bitmap import bitmap class Loc(object): ITERABLE = 8 INT = 1 LIST = 2 | ITERABLE SLICE = 3 NDARRAY = 4 | ITERABLE NDBOOLARRAY = 6 BITMAP ...
27.830189
68
0.570169
4a0ae8bf1dfbaceaa22a0f549451a8d084f3d513
6,288
py
Python
ADVENT/advent/domain_adaptation/eval_UDA.py
BinBrent/IntraDA
8acba3671462808cc831bc9da842513b9f742540
[ "MIT" ]
261
2020-04-16T15:34:10.000Z
2022-03-30T08:56:31.000Z
ADVENT/advent/domain_adaptation/eval_UDA.py
I-Hope-Peace/IntraDA
65a118754b063285f2d93cc66e15b3bb4166328d
[ "MIT" ]
14
2020-05-14T09:03:58.000Z
2021-11-02T05:53:47.000Z
ADVENT/advent/domain_adaptation/eval_UDA.py
I-Hope-Peace/IntraDA
65a118754b063285f2d93cc66e15b3bb4166328d
[ "MIT" ]
32
2020-04-16T15:35:02.000Z
2021-05-27T07:18:05.000Z
# -------------------------------------------------------- # Domain adpatation evaluation # Copyright (c) 2019 valeo.ai # # Written by Tuan-Hung Vu # -------------------------------------------------------- import os.path as osp import time import numpy as np import torch from torch import nn from tqdm i...
43.666667
137
0.591126
4a0ae9d4c9e2defa4f123d45689bbc8136144c0f
81,928
py
Python
tensorflow/lite/python/lite.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2020-09-08T15:04:52.000Z
2020-09-08T15:04:54.000Z
tensorflow/lite/python/lite.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2021-08-25T16:16:36.000Z
2022-02-10T04:51:33.000Z
tensorflow/lite/python/lite.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
2
2019-03-07T05:54:18.000Z
2019-05-16T20:31:25.000Z
# Lint as: python2, python3 # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
41.524582
125
0.702507
4a0aeb2e679256a5a4266bc02c98f3983a046524
11,087
py
Python
kedro/extras/datasets/spark/spark_hive_dataset.py
PaulEmmanuelSotir/kedro
0b0d095bfc11324dc5a0fcf6e8dec891426b3a01
[ "Apache-2.0" ]
2
2020-07-27T12:20:55.000Z
2020-08-15T17:06:15.000Z
kedro/extras/datasets/spark/spark_hive_dataset.py
PaulEmmanuelSotir/kedro
0b0d095bfc11324dc5a0fcf6e8dec891426b3a01
[ "Apache-2.0" ]
1
2021-05-11T19:22:42.000Z
2021-05-11T19:22:42.000Z
kedro/extras/datasets/spark/spark_hive_dataset.py
PaulEmmanuelSotir/kedro
0b0d095bfc11324dc5a0fcf6e8dec891426b3a01
[ "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",...
39.738351
100
0.622441
4a0aebbd4b723d0beaef3d583dd374ef8105930f
5,940
py
Python
oliver/subcommands/inspect.py
stjudecloud/csub
d68476f825eed359fda00e89c9ffa3eef21c7bd9
[ "MIT" ]
null
null
null
oliver/subcommands/inspect.py
stjudecloud/csub
d68476f825eed359fda00e89c9ffa3eef21c7bd9
[ "MIT" ]
null
null
null
oliver/subcommands/inspect.py
stjudecloud/csub
d68476f825eed359fda00e89c9ffa3eef21c7bd9
[ "MIT" ]
null
null
null
import argparse from typing import Any, Dict import pendulum from ..lib import api, constants, errors, reporting def report_failure( failure: Dict[str, Any], indent: int, step: int = 2, offset: int = 2 ) -> None: print((" " * offset) + "| " + (" " * indent) + failure["message"]) for f in failure["cause...
33
104
0.601684
4a0aebc98e9556758d388cfa729c77411b4643a9
144
py
Python
StringOps.py
AnupamaDhekane/Python-Data-Structures
c742f9833cbbe4842b6b6ef71b4051155142efba
[ "MIT" ]
null
null
null
StringOps.py
AnupamaDhekane/Python-Data-Structures
c742f9833cbbe4842b6b6ef71b4051155142efba
[ "MIT" ]
null
null
null
StringOps.py
AnupamaDhekane/Python-Data-Structures
c742f9833cbbe4842b6b6ef71b4051155142efba
[ "MIT" ]
1
2020-08-01T20:50:37.000Z
2020-08-01T20:50:37.000Z
f = open("alice.txt", "r") text = f.read() print(text.count('Alice')) print(text.split("Alice", 12)) print(len(text.split("Alice", 12)))
20.571429
36
0.604167
4a0aed1bc5953d0bfe189b7495930e0a0fd101da
3,438
py
Python
dashboard/dashboard/__init__.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/__init__.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/__init__.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2020-07-24T05:13:01.000Z
2020-07-24T05:13:01.000Z
# Copyright 2015 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 os import sys _CATAPULT_PATH = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..')) # Directories in catapult/third_party requi...
29.135593
80
0.715241
4a0aed53280c067cf262a3702910eac32a6cb1c0
883
py
Python
Scripts/county_pops_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
Scripts/county_pops_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
Scripts/county_pops_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
# Percentage of homeowners & renters devoting 30+% of household income to housing # Source: Census (census.data.gov) advanced search (Topics: 'Housing' & 'Income and Poverty'; Geography: All US Counties; Years: ACS 1-Yr. Estimates) import pandas as pd import numpy as np import os master_df = pd.DataFrame() for ...
44.15
150
0.657984
4a0aede82df99d8461b505496f79f80f53e0c29b
95
py
Python
pertanyaan/apps.py
rafimuhammad01/donasi-covid-19-2
eee8fb28ce492639d900923c985bbb5e0a8ec07f
[ "Unlicense" ]
null
null
null
pertanyaan/apps.py
rafimuhammad01/donasi-covid-19-2
eee8fb28ce492639d900923c985bbb5e0a8ec07f
[ "Unlicense" ]
null
null
null
pertanyaan/apps.py
rafimuhammad01/donasi-covid-19-2
eee8fb28ce492639d900923c985bbb5e0a8ec07f
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class PertanyaanConfig(AppConfig): name = 'pertanyaan'
15.833333
34
0.768421
4a0aee3030221e118e83e79858bb1932dde020b0
803
py
Python
challenges/left_join/conftest.py
jayadams011/data-structures-and-algorithms
b9a49c65ca769c82b2a34d840bd1e4dd626be025
[ "MIT" ]
null
null
null
challenges/left_join/conftest.py
jayadams011/data-structures-and-algorithms
b9a49c65ca769c82b2a34d840bd1e4dd626be025
[ "MIT" ]
4
2018-03-22T16:56:06.000Z
2018-03-28T23:30:29.000Z
challenges/left_join/conftest.py
jayadams011/data-structures-and-algorithms
b9a49c65ca769c82b2a34d840bd1e4dd626be025
[ "MIT" ]
null
null
null
"""Imports.""" import pytest from hash_table import HashTable from left_join import left_join @pytest.fixture def empty_hash_table(): """Make empty table.""" return HashTable() @pytest.fixture def small_table(): """Small table.""" small_table = HashTable(10) small_table.set('John', 1234) sma...
20.589744
35
0.657534
4a0aeeb23ba9e3cf38fe9eb85194d03f7a59e580
3,071
py
Python
automationtools/models.py
mark-bondo/moondance
3347c3fb8ac3e40a5c66b61a21cfb562841531ba
[ "MIT" ]
null
null
null
automationtools/models.py
mark-bondo/moondance
3347c3fb8ac3e40a5c66b61a21cfb562841531ba
[ "MIT" ]
null
null
null
automationtools/models.py
mark-bondo/moondance
3347c3fb8ac3e40a5c66b61a21cfb562841531ba
[ "MIT" ]
null
null
null
from django.db import models from moondance.meta_models import MetaModel class Chart(MetaModel): type_choices = ( ("pie", "pie"), ("donut", "donut"), ("line", "line"), ("spline", "spline"), ("area", "area"), ("column", "column"), ("bar", "bar"), ) t...
26.704348
75
0.609248
4a0aeee0dc1902a892056887faee708e7eef5b50
7,541
py
Python
tensorflow_datasets/rl_unplugged/atari_utils.py
yukimasano/datasets
6b2c79be6b27991e3d7ecba6aa5edc8d13d19b6d
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/rl_unplugged/atari_utils.py
yukimasano/datasets
6b2c79be6b27991e3d7ecba6aa5edc8d13d19b6d
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/rl_unplugged/atari_utils.py
yukimasano/datasets
6b2c79be6b27991e3d7ecba6aa5edc8d13d19b6d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
28.564394
80
0.631349
4a0af082605f4abc70d8e096aeb0b6369f3f9dcb
2,406
py
Python
www/app.py
mcwall/miot
3ccb8730023085be52ff866f1ccbba88b201d834
[ "MIT" ]
null
null
null
www/app.py
mcwall/miot
3ccb8730023085be52ff866f1ccbba88b201d834
[ "MIT" ]
1
2021-03-25T23:30:18.000Z
2021-03-25T23:30:18.000Z
www/app.py
mcwall/miot
3ccb8730023085be52ff866f1ccbba88b201d834
[ "MIT" ]
null
null
null
import logging import os from flask import Flask, request, render_template from flask_ask import Ask, session, question, statement import RPi.GPIO as GPIO from rpi_rf import RFDevice app = Flask(__name__) ask = Ask(app, "/ask") logging.getLogger('flask_ask').setLevel(logging.DEBUG) tx_gpio = 17 n_repeat = 1 n_devic...
27.340909
93
0.680798
4a0af1a29ae69ecb8419f1fc5cbfdcc4ce61e315
5,737
py
Python
pyclustering/cluster/tests/unit/ut_elbow.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/cluster/tests/unit/ut_elbow.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/cluster/tests/unit/ut_elbow.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Unit-tests for Elbow method. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import unittest # Generate images without having a window appear. import matplotlib matplotlib.use('Agg') from pyclustering.cluster.center_initializer import rand...
46.266129
159
0.757364
4a0af1f9494c3a2eb8183e3a119cad5a5d1a9b51
315
py
Python
context/context.py
Joejiong/joelang
2eef19c427fa9559dece8705e8c6868e75280068
[ "WTFPL" ]
1
2019-11-25T14:04:55.000Z
2019-11-25T14:04:55.000Z
context/context.py
Joejiong/joelang
2eef19c427fa9559dece8705e8c6868e75280068
[ "WTFPL" ]
null
null
null
context/context.py
Joejiong/joelang
2eef19c427fa9559dece8705e8c6868e75280068
[ "WTFPL" ]
null
null
null
####################################### # CONTEXT ####################################### class Context: def __init__(self, display_name, parent=None, parent_entry_pos=None): self.display_name = display_name self.parent = parent self.parent_entry_pos = parent_entry_pos self.symbol_table = None
26.25
71
0.55873
4a0af2735c3346bff73746dec6252a96a83db931
1,132
py
Python
project/apps/django_backend_template/models/student.py
adosaa/Backend-django-app
3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85
[ "MIT" ]
2
2020-11-04T21:47:48.000Z
2020-11-04T21:47:50.000Z
project/apps/django_backend_template/models/student.py
adosaa/Backend-Django-App
3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85
[ "MIT" ]
null
null
null
project/apps/django_backend_template/models/student.py
adosaa/Backend-Django-App
3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85
[ "MIT" ]
null
null
null
""" Student Model. Part of models module. """ __license__ = "MIT" __version__ = "0.0.1" __author__ = "Ariel Saavedra D" __email__ = "ariel@gmail.com" __copyright__ = "Copyright 2020" from django.db import models from django_backend_template.models.core import BaseModel class Student(BaseModel): """ Student...
29.789474
99
0.713781
4a0af2bde9867ad39e81e0b3ff35f5a48538b1f6
3,066
py
Python
bauh/view/util/disk.py
leoneii/bauh
ceef6c30851552ec37e21ef6335a4cbdd126622f
[ "Zlib" ]
1
2020-06-16T17:08:32.000Z
2020-06-16T17:08:32.000Z
bauh/view/util/disk.py
octopusSD/bauh
c1f210fef87ddb4614b201ec2030330b71e43fe4
[ "Zlib" ]
null
null
null
bauh/view/util/disk.py
octopusSD/bauh
c1f210fef87ddb4614b201ec2030330b71e43fe4
[ "Zlib" ]
null
null
null
import json import logging import os import time from threading import Thread, Lock from typing import Type, Dict import yaml from bauh.api.abstract.cache import MemoryCache from bauh.api.abstract.disk import DiskCacheLoader, DiskCacheLoaderFactory from bauh.api.abstract.model import SoftwarePackage class AsyncDisk...
32.617021
115
0.587084
4a0af4519dfd919a25b7484520628165bf93f1e5
188
py
Python
api/app/utilities/extensions/bcrypt.py
wafer-bw/generic-flask-api
b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c
[ "MIT" ]
2
2019-11-08T16:57:44.000Z
2020-01-30T18:24:24.000Z
api/app/utilities/extensions/bcrypt.py
wafer-bw/generic-flask-api
b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c
[ "MIT" ]
null
null
null
api/app/utilities/extensions/bcrypt.py
wafer-bw/generic-flask-api
b4ad6ac1ef3cab2d4e91f13a1fd1664f9de1fe6c
[ "MIT" ]
1
2019-11-04T13:30:03.000Z
2019-11-04T13:30:03.000Z
""" Flask bcrypt Extension https://flask-bcrypt.readthedocs.io/en/latest/ This must be registered to the app within app/factory.py """ from flask_bcrypt import Bcrypt bcrypt = Bcrypt()
17.090909
56
0.760638
4a0af467aedd0132c85fcf3831c29299d2e6a22f
1,422
py
Python
processing/osm/utils.py
fieldmaps/styles
c2a5b63a5117d9e46f775dd98876e040186c1de7
[ "MIT" ]
null
null
null
processing/osm/utils.py
fieldmaps/styles
c2a5b63a5117d9e46f775dd98876e040186c1de7
[ "MIT" ]
null
null
null
processing/osm/utils.py
fieldmaps/styles
c2a5b63a5117d9e46f775dd98876e040186c1de7
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S') # MAX_ZOOM = 13 MAX_ZOOM = 10 polygon_steps = [ (0, 65536e5), (3, 16384e5), (4, 4096e5), (5, 1024e5), (6, 256e5), (7, 64e5...
21.223881
75
0.491561
4a0af4f36b989a8dbc261eb8d0a3b7a0c0025b94
10,242
py
Python
integration_tests/test_full_ingestion.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
1
2020-04-15T16:10:27.000Z
2020-04-15T16:10:27.000Z
integration_tests/test_full_ingestion.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
integration_tests/test_full_ingestion.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
import hashlib import warnings from uuid import UUID import netCDF4 import pytest import yaml import rasterio from affine import Affine from datacube.api.query import query_group_by from datacube.utils import geometry, read_documents, netcdf_extract_string from integration_tests.utils import prepare_test_ingestion_co...
39.392308
115
0.699668
4a0af6e9bf851c31a68f46e16143097bd281eb6a
2,223
py
Python
prjxray/state_gen.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
583
2017-12-21T11:06:13.000Z
2022-02-20T21:27:33.000Z
prjxray/state_gen.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
1,212
2017-12-22T15:05:06.000Z
2022-02-19T13:04:59.000Z
prjxray/state_gen.py
mfkiwl/prjxray-xilinx-7-bitstream-fortmat
5349556bc2c230801d6df0cf11bccb9cfd171639
[ "ISC" ]
134
2017-12-21T10:16:50.000Z
2022-02-16T06:42:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC from prjxray import util class Sta...
28.5
79
0.647773
4a0af704336d2f97ea96469140fc9a295d97c5c1
4,248
py
Python
src/oci/mysql/models/update_analytics_cluster_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/mysql/models/update_analytics_cluster_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/mysql/models/update_analytics_cluster_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.697479
245
0.680556
4a0af7198704a240a11049a75e709b07d96499e4
529
py
Python
config/re_token.py
Four-sun/Requests_Load
472f3f6d9bd407f1c4ed30a5557ec141e2434188
[ "Apache-2.0" ]
null
null
null
config/re_token.py
Four-sun/Requests_Load
472f3f6d9bd407f1c4ed30a5557ec141e2434188
[ "Apache-2.0" ]
null
null
null
config/re_token.py
Four-sun/Requests_Load
472f3f6d9bd407f1c4ed30a5557ec141e2434188
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 """ Created: on 2018-07-11 @author: Four Project: config\re_token.py Description:token值读取 """ import yaml import os current_path = os.path.dirname(os.path.realpath(__file__)) def get_token(yamlName = "token.yaml"): """ 从token.yaml读取token值 :param yamlName: 配置文件名称 :return: token值 """...
18.241379
58
0.663516
4a0af8d26d1e6e8a0b0bf7f5a4a5559a622d0f99
870
py
Python
etc/pip_install/toree/_version.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
762
2016-01-07T18:33:03.000Z
2022-03-30T13:15:42.000Z
etc/pip_install/toree/_version.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
157
2016-01-16T15:19:16.000Z
2022-02-10T03:21:52.000Z
etc/pip_install/toree/_version.py
hmost1/incubator-toree
f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
[ "Apache-2.0" ]
276
2016-01-11T21:39:30.000Z
2022-03-13T14:50:04.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
45.789474
84
0.773563
4a0afbe20399dd96c3a4b154eb5c30b349267b05
28,304
py
Python
ludwig/data/preprocessing.py
istefano82/alabala
025e5796a1ce3feab8d783782cb57f5be3136dec
[ "Apache-2.0" ]
null
null
null
ludwig/data/preprocessing.py
istefano82/alabala
025e5796a1ce3feab8d783782cb57f5be3136dec
[ "Apache-2.0" ]
6
2020-01-28T22:42:31.000Z
2022-02-10T00:16:09.000Z
ludwig/data/preprocessing.py
istefano82/ludwig_clone
025e5796a1ce3feab8d783782cb57f5be3136dec
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
33.575326
82
0.610479
4a0afbf30f151822a86a33949589612e38d46908
406
py
Python
Project Euler Problems/Problem39.py
rishusingh022/My-Journey-of-Data-Structures-and-Algorithms
28a70fdf10366fc97ddb9f6a69852b3478b564e6
[ "MIT" ]
null
null
null
Project Euler Problems/Problem39.py
rishusingh022/My-Journey-of-Data-Structures-and-Algorithms
28a70fdf10366fc97ddb9f6a69852b3478b564e6
[ "MIT" ]
1
2021-10-01T18:26:34.000Z
2021-10-01T18:26:34.000Z
Project Euler Problems/Problem39.py
rishusingh022/My-Journey-of-Data-Structures-and-Algorithms
28a70fdf10366fc97ddb9f6a69852b3478b564e6
[ "MIT" ]
7
2021-10-01T16:07:29.000Z
2021-10-04T13:23:48.000Z
def count_right_angle(p): ans = 0 for i in range(1,p): for j in range(i+1,p): if p - i - j >0 and p - i - j >j: c = p - i - j if i**2 + j**2 == c**2: ans += 1 return ans ans = 0 count = 0 for i in range(1,1001): check = count...
21.368421
47
0.426108
4a0afc10462c85709ec5b2a7cb48e9e8479f3716
1,167
py
Python
S4/S4 Library/simulation/vet/vet_clinic_utils.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/vet/vet_clinic_utils.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/vet/vet_clinic_utils.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from event_testing.resolver import SingleSimResolver from vet.vet_clinic_tuning import VetClinicTuning, logger import services def get_vet_clinic_zone_director(): venue_service = services.venue_service() if venue_service is None or not venue_service.venue_is_type(VetClinicTuning.VET_CLINIC_VENUE): retu...
46.68
160
0.774636
4a0afc76ae465f6bc6a857f54370e9f8e8e18e4d
29,697
py
Python
tests/package/test_manifest.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
null
null
null
tests/package/test_manifest.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
null
null
null
tests/package/test_manifest.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
1
2021-01-27T21:40:48.000Z
2021-01-27T21:40:48.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.939429
580
0.538809
4a0afc9f3ad18b1cd94d4e9a3c2abd54975aea38
9,020
py
Python
examples/plot_optimization.py
wmvanvliet/posthoc
a011a4219cee1e80cf77895543597438f71cd299
[ "BSD-3-Clause" ]
6
2019-01-13T04:18:07.000Z
2020-10-10T22:22:09.000Z
examples/plot_optimization.py
wmvanvliet/posthoc
a011a4219cee1e80cf77895543597438f71cd299
[ "BSD-3-Clause" ]
null
null
null
examples/plot_optimization.py
wmvanvliet/posthoc
a011a4219cee1e80cf77895543597438f71cd299
[ "BSD-3-Clause" ]
null
null
null
""" Automatic post-hoc optimization of linear models ================================================= This example will demonstrate how to define custom modifications to a linear model that introduce new hyperparameters. We will then use post-hoc's optimizer to find the optimal values for these hyperparameters. We w...
46.020408
94
0.67051
4a0afcce4dbc9c484f81c7e02709f906ead56d88
814
py
Python
manage.py
njcx/django_blog_njcx
66c7ff949cb933bb72da91a8f31c12734b380737
[ "MIT" ]
null
null
null
manage.py
njcx/django_blog_njcx
66c7ff949cb933bb72da91a8f31c12734b380737
[ "MIT" ]
null
null
null
manage.py
njcx/django_blog_njcx
66c7ff949cb933bb72da91a8f31c12734b380737
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_blog_nicx.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure ...
35.391304
80
0.646192
4a0afd0b88cf2f5c21d5bc08d87666b67bfaef99
816
py
Python
pythonforandroid/recipes/openssl/__init__.py
micahjohnson150/python-for-android
3faf827ad6dff77b8e8d6923637e4b8e2cb771f7
[ "MIT" ]
null
null
null
pythonforandroid/recipes/openssl/__init__.py
micahjohnson150/python-for-android
3faf827ad6dff77b8e8d6923637e4b8e2cb771f7
[ "MIT" ]
null
null
null
pythonforandroid/recipes/openssl/__init__.py
micahjohnson150/python-for-android
3faf827ad6dff77b8e8d6923637e4b8e2cb771f7
[ "MIT" ]
1
2021-02-18T05:23:20.000Z
2021-02-18T05:23:20.000Z
from pythonforandroid.toolchain import Recipe, shprint, current_directory from os.path import exists, join import sh class OpenSSLRecipe(Recipe): version = '1.0.2d' url = 'https://www.openssl.org/source/openssl-{version}.tar.gz' def should_build(self): return not exists(join(self.get_build_dir('...
34
84
0.66299
4a0afd95dc44f190ebdfe47da59bf04532812dff
23,161
py
Python
osx/devkit/plug-ins/scripted/pyPointOnMeshInfo.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
osx/devkit/plug-ins/scripted/pyPointOnMeshInfo.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
null
null
null
osx/devkit/plug-ins/scripted/pyPointOnMeshInfo.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
# # ========================================================================== # Copyright 2015 Autodesk, Inc. All rights reserved. # # Use of this software is subject to the terms of the Autodesk # license agreement provided at the time of installation or download, # or which otherwise accompanies this software in ei...
38.860738
328
0.758128
4a0afd9b913e46cf13d1787e71894c428845e3cb
1,917
py
Python
test/test_iam_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
test/test_iam_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
test/test_iam_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
50.447368
1,052
0.780386
4a0afe23588c11d714ba325bb43646923a664102
45
py
Python
coursera/python_programming_basics/1_week_17_clock's_time.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
coursera/python_programming_basics/1_week_17_clock's_time.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
coursera/python_programming_basics/1_week_17_clock's_time.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
n = int(input()) print(n // 60 % 24, n % 60)
15
27
0.488889
4a0afe25338f6869d406bcc38a4a2e58410bfc10
3,883
py
Python
model/Resnet.py
zhyhan/RDA
8407c01630e09565199a1bad823f3e69e6193c43
[ "Apache-2.0" ]
15
2020-04-23T01:14:50.000Z
2022-03-26T12:51:16.000Z
model/Resnet.py
zhyhan/RDA
8407c01630e09565199a1bad823f3e69e6193c43
[ "Apache-2.0" ]
3
2020-07-18T01:13:23.000Z
2021-12-24T00:34:52.000Z
model/Resnet.py
zhyhan/RDA
8407c01630e09565199a1bad823f3e69e6193c43
[ "Apache-2.0" ]
5
2020-08-18T12:41:41.000Z
2022-03-26T12:51:09.000Z
import torch.nn as nn import model.backbone as backbone import torch.nn.functional as F import torch import numpy as np import random class GradientReverseLayer(torch.autograd.Function): def __init__(self, iter_num=0, alpha=1.0, low_value=0.0, high_value=0.1, max_iter=1000.0): self.iter_num = iter_num ...
41.308511
169
0.661344
4a0afeab5517a9d37a8f83e0bfbb0ba69f5742a8
147
py
Python
starter_code/api_keys.py
AmrAlwakeal/Python-API
24a27c704d550358384c0bfda9c4c893ce4dde3c
[ "ADSL" ]
null
null
null
starter_code/api_keys.py
AmrAlwakeal/Python-API
24a27c704d550358384c0bfda9c4c893ce4dde3c
[ "ADSL" ]
null
null
null
starter_code/api_keys.py
AmrAlwakeal/Python-API
24a27c704d550358384c0bfda9c4c893ce4dde3c
[ "ADSL" ]
null
null
null
# OpenWeatherMap API Key weather_api_key = "3452081acc23c00e2fde75d756503f8e" # Google API Key g_key = "AIzaSyCkBVdD7f-qTJQcvEdqXXA3t2BX0EEbnMA"
21
52
0.829932
4a0afee07352db79d9c2fe236d07495ba16f979f
483
py
Python
palindrome_check.py
jmmL/misc
6bdbcd977fd29ea9a73f99364ff21caccd30d3d0
[ "MIT" ]
null
null
null
palindrome_check.py
jmmL/misc
6bdbcd977fd29ea9a73f99364ff21caccd30d3d0
[ "MIT" ]
null
null
null
palindrome_check.py
jmmL/misc
6bdbcd977fd29ea9a73f99364ff21caccd30d3d0
[ "MIT" ]
null
null
null
def main(): """ A program for checking whether a string is a palindrome or not""" palindrome_string = input("Please enter a string:\n") # print(len(palindrome_string)) def is_palindrome(string): for i in range(len(string)//2): if string[i] != string[len(string)-i-1]: ...
28.411765
73
0.57764
4a0affbb18e8c0ad3d69b21fea172b575434e9d9
8,543
py
Python
osbot_aws/apis/SQS.py
pbx-gs/OSBot-AWS
202f9347c861508a4780224384202c971fb54a45
[ "Apache-2.0" ]
2
2019-04-19T07:42:08.000Z
2019-06-23T11:46:18.000Z
osbot_aws/apis/SQS.py
pbx-gs/OSBot-AWS
202f9347c861508a4780224384202c971fb54a45
[ "Apache-2.0" ]
8
2020-02-16T23:43:07.000Z
2021-02-26T01:58:20.000Z
osbot_aws/apis/SQS.py
owasp-sbot/OSBot-AWS
202f9347c861508a4780224384202c971fb54a45
[ "Apache-2.0" ]
3
2020-02-16T15:45:58.000Z
2021-02-11T01:04:58.000Z
from osbot_utils.decorators.lists.index_by import index_by from osbot_utils.decorators.methods.cache_on_self import cache_on_self from osbot_utils.utils.Json import json_loads, json_to_str from osbot_utils.utils.Misc import array_pop, array_get, list_set from osbot_utils.decorators.methods.catch import catch from os...
45.684492
202
0.640876
4a0b0071aa1def60423d78a0f86e1de1dda99537
1,524
py
Python
test/runtime/frontend_test/chainer_test/functions_test/normalization_test/normalize_test.py
urantialife/webdnn
dedc5da424288594cdfa605a015ddc7a3afcf2b7
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/runtime/frontend_test/chainer_test/functions_test/normalization_test/normalize_test.py
urantialife/webdnn
dedc5da424288594cdfa605a015ddc7a3afcf2b7
[ "MIT" ]
null
null
null
test/runtime/frontend_test/chainer_test/functions_test/normalization_test/normalize_test.py
urantialife/webdnn
dedc5da424288594cdfa605a015ddc7a3afcf2b7
[ "MIT" ]
null
null
null
import chainer import numpy as np from test.util import generate_kernel_test_case, wrap_template from webdnn.graph.placeholder import Placeholder from webdnn.frontend.chainer.converter import ChainerConverter from webdnn.frontend.chainer.placeholder_variable import PlaceholderVariable @wrap_template def template(eps...
25.4
76
0.664698
4a0b00da7d7c00738d045321fcfbd4faeb0e57d8
10,415
py
Python
config/settings/production.py
SamwelOpiyo/simple_company_employee_management_backend
75723dd6aed002a1bc30f2d78d077e498eb25226
[ "MIT" ]
null
null
null
config/settings/production.py
SamwelOpiyo/simple_company_employee_management_backend
75723dd6aed002a1bc30f2d78d077e498eb25226
[ "MIT" ]
null
null
null
config/settings/production.py
SamwelOpiyo/simple_company_employee_management_backend
75723dd6aed002a1bc30f2d78d077e498eb25226
[ "MIT" ]
null
null
null
import logging from google.oauth2 import service_account from .base import * # noqa from .base import env # Get an instance of a logger logger = logging.getLogger(__name__) # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/setting...
37.599278
98
0.600768
4a0b01251d39af931efceda9cdb0ea9c8b6bf378
15,848
py
Python
frille-lang/lib/python3.6/site-packages/typer/completion.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
1
2020-12-01T07:02:53.000Z
2020-12-01T07:02:53.000Z
frille-lang/lib/python3.6/site-packages/typer/completion.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
3
2021-07-17T17:00:28.000Z
2021-07-18T14:22:12.000Z
frille-lang/lib/python3.6/site-packages/typer/completion.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
1
2021-07-07T16:07:13.000Z
2021-07-07T16:07:13.000Z
import os import re import subprocess import sys from enum import Enum from pathlib import Path from typing import Any, Optional, Tuple import click import click._bashcomplete from .models import ParamMeta from .params import Option from .utils import get_params_from_function try: import shellingham except Impor...
33.719149
357
0.653584
4a0b0244e8162a8b197c6dd12ec001a803372313
6,214
py
Python
app/systems/commands/messages.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
app/systems/commands/messages.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
app/systems/commands/messages.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
from django.utils.module_loading import import_string from utility.runtime import Runtime from utility.terminal import TerminalMixin from utility.encryption import Cipher from utility.display import format_data import sys import json import logging logger = logging.getLogger(__name__) class AppMessage(TerminalMix...
30.019324
117
0.594947
4a0b02604ca5aae87e9469f3b1cd07f253aa71e5
285
py
Python
huf/generic_utils.py
jackd/huf
2ca50eb24dcb907c66d6caad3d0a680c3efcae86
[ "Apache-2.0" ]
null
null
null
huf/generic_utils.py
jackd/huf
2ca50eb24dcb907c66d6caad3d0a680c3efcae86
[ "Apache-2.0" ]
null
null
null
huf/generic_utils.py
jackd/huf
2ca50eb24dcb907c66d6caad3d0a680c3efcae86
[ "Apache-2.0" ]
null
null
null
import typing as tp from collections import defaultdict V = tp.TypeVar("V") K = tp.TypeVar("K") def group_by(objs: tp.Iterable[V], key: tp.Callable[[V], K]) -> tp.Dict[K, tp.List[V]]: out = defaultdict(list) for obj in objs: out[key(obj)].append(obj) return out
21.923077
87
0.638596
4a0b0265b2808a5c7eb20932d44275881b03d893
1,118
py
Python
lrschedule.py
seo3650/wavenet_vocoder
106ee674b1b19d4d20606231198552a8a574249d
[ "MIT" ]
2,068
2017-12-31T06:16:58.000Z
2022-03-29T08:16:22.000Z
lrschedule.py
seo3650/wavenet_vocoder
106ee674b1b19d4d20606231198552a8a574249d
[ "MIT" ]
202
2017-12-31T05:33:24.000Z
2022-03-15T19:20:22.000Z
lrschedule.py
seo3650/wavenet_vocoder
106ee674b1b19d4d20606231198552a8a574249d
[ "MIT" ]
486
2017-12-31T10:06:06.000Z
2022-03-31T05:26:30.000Z
import numpy as np # https://github.com/tensorflow/tensor2tensor/issues/280#issuecomment-339110329 def noam_learning_rate_decay(init_lr, global_step, warmup_steps=4000): # Noam scheme from tensor2tensor: warmup_steps = float(warmup_steps) step = global_step + 1. lr = init_lr * warmup_steps**0.5 * np.m...
31.055556
86
0.644007
4a0b039a396689360dc56ab19e0a907abe011b49
107
py
Python
numpyro/version.py
ibab/numpyro
076bb2a15026734a41abf4eb39ce384ab68c297f
[ "Apache-2.0" ]
1
2020-11-30T23:51:45.000Z
2020-11-30T23:51:45.000Z
numpyro/version.py
ibab/numpyro
076bb2a15026734a41abf4eb39ce384ab68c297f
[ "Apache-2.0" ]
null
null
null
numpyro/version.py
ibab/numpyro
076bb2a15026734a41abf4eb39ce384ab68c297f
[ "Apache-2.0" ]
1
2020-11-30T23:52:33.000Z
2020-11-30T23:52:33.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 __version__ = '0.2.4'
21.4
45
0.747664
4a0b058da68acdb2dd3c36435fd997713249fdde
2,915
py
Python
adobe_tools/adobe_tools.py
1dustindavis/IT-CPE
bf7c097cb0c3749a533799e1ceeb60eebc658f10
[ "BSD-3-Clause" ]
1
2020-08-13T07:56:12.000Z
2020-08-13T07:56:12.000Z
adobe_tools/adobe_tools.py
1dustindavis/IT-CPE
bf7c097cb0c3749a533799e1ceeb60eebc658f10
[ "BSD-3-Clause" ]
null
null
null
adobe_tools/adobe_tools.py
1dustindavis/IT-CPE
bf7c097cb0c3749a533799e1ceeb60eebc658f10
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """Adobe API tools.""" import adobe_api # These are the most common actions that one would use the Adobe UM API for. def user_exists(username): """Return True if the username exists, or False if it doesn't.""" try: adobe_api.AdobeAPIObject(username) except adobe_api.AdobeAPINoUs...
28.300971
76
0.709777
4a0b05ab108f6372801d46878e43cedc3beccd98
11,650
py
Python
pptx/shapes/connector.py
auxi-ai/python_pptx_auxi
d55ff63a808f7acb52354f0b0cb8d3176def34cd
[ "MIT" ]
null
null
null
pptx/shapes/connector.py
auxi-ai/python_pptx_auxi
d55ff63a808f7acb52354f0b0cb8d3176def34cd
[ "MIT" ]
null
null
null
pptx/shapes/connector.py
auxi-ai/python_pptx_auxi
d55ff63a808f7acb52354f0b0cb8d3176def34cd
[ "MIT" ]
null
null
null
# encoding: utf-8 """Connector (line) shape and related objects. A connector is a line shape having end-points that can be connected to other objects (but not to other connectors). A connector can be straight, have elbows, or can be curved. """ from __future__ import absolute_import, division, print_function, unicod...
36.520376
105
0.511502
4a0b0673e68217390407994f6c23ac5277d212ea
1,995
py
Python
App/migrations/0003_mainshow.py
luomantic/AiXianFeng
52723fb764889f583c010f9889313b6f50cbc3bd
[ "MIT" ]
null
null
null
App/migrations/0003_mainshow.py
luomantic/AiXianFeng
52723fb764889f583c010f9889313b6f50cbc3bd
[ "MIT" ]
1
2019-03-01T12:00:36.000Z
2019-03-01T12:01:12.000Z
App/migrations/0003_mainshow.py
luomantic/AiXianFeng
52723fb764889f583c010f9889313b6f50cbc3bd
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-15 08:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App', '0002_mainmustbuy_mainnav_mainshop'), ] operations = [ migrations.CreateModel( name='MainShow', fields=[ ...
43.369565
114
0.55589
4a0b06d8271ac2605cf92db54eec08b29859c61c
807
py
Python
tasks/apscheduler_tasks.py
kfrime/explore
98e498e244900f81591f8a190dac87813404cf61
[ "MIT" ]
null
null
null
tasks/apscheduler_tasks.py
kfrime/explore
98e498e244900f81591f8a190dac87813404cf61
[ "MIT" ]
null
null
null
tasks/apscheduler_tasks.py
kfrime/explore
98e498e244900f81591f8a190dac87813404cf61
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function from models.test_models import (db, Role, User, Post) def create_data(): print('start') db.create_all() admin = Role(name='Admin') guest = Role(name='Guest') user = Role(name='U...
20.175
72
0.61834
4a0b0874a3691970c615f666519bab7b218e1cf5
953
py
Python
python/perspective/perspective/core/data/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/core/data/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/core/data/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from .base import _is_dict, _i...
36.653846
100
0.647429
4a0b0a1b21de65298943e3e399e79be52387a1d4
10,825
py
Python
tools/ParameterSpaceConversion/visualize_poses_parameter_space_trajectory.py
murilovarges/HARBoP
326bb20d073b97a8bca451509c5ce38083b7d415
[ "Apache-2.0" ]
4
2020-06-25T20:19:54.000Z
2020-11-11T07:05:04.000Z
tools/ParameterSpaceConversion/visualize_poses_parameter_space_trajectory.py
murilovarges/HARBoP
326bb20d073b97a8bca451509c5ce38083b7d415
[ "Apache-2.0" ]
1
2020-11-17T09:09:38.000Z
2020-11-18T07:27:00.000Z
tools/ParameterSpaceConversion/visualize_poses_parameter_space_trajectory.py
murilovarges/HARBoP
326bb20d073b97a8bca451509c5ce38083b7d415
[ "Apache-2.0" ]
1
2021-08-19T07:27:18.000Z
2021-08-19T07:27:18.000Z
import glob import json import os import argparse import numpy as np from PIL import Image, ImageDraw, ImageFont from sklearn.preprocessing import MinMaxScaler POSE_BODY_25_PAIRS_RENDER_GPU = \ [1, 8, 1, 2, 1, 5, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 10, 11, 8, 12, 12, 13, 13, 14, 1, 0, 0, 15, 15, 17, 0, 16, 1...
37.982456
119
0.52194
4a0b0a4836b010ca4d72995c8857a8bb0ddd7aa2
2,041
py
Python
modules/image/Image_gan/gan/photopen/model.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
1
2022-03-23T14:33:07.000Z
2022-03-23T14:33:07.000Z
modules/image/Image_gan/gan/photopen/model.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
null
null
null
modules/image/Image_gan/gan/photopen/model.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
32.396825
89
0.657521
4a0b0ac79e331b2c0e5d42be9a19e2efc9c6357c
11,931
py
Python
otherCodeTaskSnippets/27.11.2021.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
otherCodeTaskSnippets/27.11.2021.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
otherCodeTaskSnippets/27.11.2021.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Nov 27 16:28:00 2021 @author: dariu """ import numpy as np import pandas as pd import os from tqdm import tqdm import pacmap import matplotlib.pyplot as plt from sklearn.manifold import TSNE import umap from sklearn.cluster import KMeans from sklearn.cluster import DBSCAN #i...
28.958738
145
0.626519
4a0b0acd89eb769d07920f9fa5f1b0ea5a50508f
39,317
py
Python
Fig_9-13.py
pcampeti/SGWBProbe
eaa33cefba9bdcba88ab4032543f5370b7f4925b
[ "MIT" ]
2
2021-04-25T06:22:21.000Z
2022-02-07T18:10:52.000Z
Fig_9-13.py
pcampeti/SGWBProbe
eaa33cefba9bdcba88ab4032543f5370b7f4925b
[ "MIT" ]
null
null
null
Fig_9-13.py
pcampeti/SGWBProbe
eaa33cefba9bdcba88ab4032543f5370b7f4925b
[ "MIT" ]
1
2022-02-22T00:15:16.000Z
2022-02-22T00:15:16.000Z
""" @author: Paolo Campeti This script reproduces Figures 9 - 13 in the paper. Uses methods imported from module sgwbprobecomb/SGWB_Signal.py, sgwbprobecomb/Binned_errors.py. and sgwbprobecomb/error_boxes.py. """ import os.path as op import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import...
40.201431
198
0.545159
4a0b0aef6e2b8be1dd939a2074810206f111ac59
6,325
py
Python
getchanges.py
jrbudda/minecrift
081c39921be750f7d9ca27fd4c31f8a4231b754f
[ "BSD-3-Clause" ]
353
2016-05-22T19:15:21.000Z
2022-03-24T17:49:31.000Z
getchanges.py
jrbudda/minecrift
081c39921be750f7d9ca27fd4c31f8a4231b754f
[ "BSD-3-Clause" ]
332
2016-05-23T15:00:11.000Z
2022-03-14T17:41:34.000Z
getchanges.py
jrbudda/minecrift
081c39921be750f7d9ca27fd4c31f8a4231b754f
[ "BSD-3-Clause" ]
46
2016-05-24T19:25:18.000Z
2020-03-25T21:02:11.000Z
#!/usr/bin/env python import os, os.path, sys import shutil, glob, fnmatch import subprocess, logging, shlex, re from optparse import OptionParser from minecriftversion import mcp_version, minecrift_version_num, minecrift_build from build import replacelineinfile base_dir = os.path.dirname(os.path.abspath(__file__)) ...
40.544872
206
0.614545
4a0b0d150d90b23f3aa753c1cfd571856049bdfa
24
py
Python
geanno/__init__.py
HiDiHlabs/geanno
625d815e88d6f3c10a232697a707f2c8b28d899e
[ "BSD-3-Clause" ]
null
null
null
geanno/__init__.py
HiDiHlabs/geanno
625d815e88d6f3c10a232697a707f2c8b28d899e
[ "BSD-3-Clause" ]
null
null
null
geanno/__init__.py
HiDiHlabs/geanno
625d815e88d6f3c10a232697a707f2c8b28d899e
[ "BSD-3-Clause" ]
null
null
null
from . import Annotator
12
23
0.791667
4a0b0d2674d8eb48893225aa4e496ba34db92d87
1,641
py
Python
test/test_workspaces.py
delftrobotics-forks/catkin_pkg
122eae0971f13a6080b72af6bb0eb52656c00bea
[ "BSD-3-Clause" ]
null
null
null
test/test_workspaces.py
delftrobotics-forks/catkin_pkg
122eae0971f13a6080b72af6bb0eb52656c00bea
[ "BSD-3-Clause" ]
1
2020-08-25T11:24:44.000Z
2020-09-22T14:01:26.000Z
test/test_workspaces.py
plusone-robotics/catkin_pkg
9d68332b97db07f77a8b56bb5afaf89ec2536dfa
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import shutil import tempfile import unittest try: from catkin_pkg.workspaces import ensure_workspace_marker, get_spaces, order_paths,\ CATKIN_WORKSPACE_MARKER_FILE except ImportError as e: raise ImportError('Please adjust your PYTHONPATH before running ...
37.295455
112
0.621572
4a0b0d5bb01c3bdf3b3cdc0f9fbca77f61822b8c
34,695
py
Python
desktop/core/src/desktop/middleware.py
10088/hue
802811941dabd015a4fd7a640d349f9d26ac5572
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/middleware.py
10088/hue
802811941dabd015a4fd7a640d349f9d26ac5572
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/middleware.py
10088/hue
802811941dabd015a4fd7a640d349f9d26ac5572
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
36.675476
138
0.691252
4a0b0da5eeb937f2e1cfd584e38ae487a41c08f6
267
py
Python
starlette_cbge/endpoints/__init__.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
7
2019-09-01T21:37:23.000Z
2020-05-12T19:36:04.000Z
starlette_cbge/endpoints/__init__.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
null
null
null
starlette_cbge/endpoints/__init__.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
null
null
null
from starlette_cbge.endpoints.base import BaseEndpoint from starlette_cbge.endpoints.list_endpoint import ListEndpoint from starlette_cbge.endpoints.pydantic_base import PydanticBaseEndpoint from starlette_cbge.endpoints.typesystem_base import TypesystemBaseEndpoint
53.4
75
0.910112
4a0b0db3690c48784cfc8d99f64ab8c1f317686a
4,107
py
Python
venv/lib/python3.8/site-packages/matplotlib/testing/jpl_units/StrConverter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
venv/lib/python3.8/site-packages/matplotlib/testing/jpl_units/StrConverter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
venv/lib/python3.8/site-packages/matplotlib/testing/jpl_units/StrConverter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
"""StrConverter module containing class StrConverter.""" import numpy as np import matplotlib.units as units __all__ = ['StrConverter'] class StrConverter(units.ConversionInterface): """: A matplotlib converter class. Provides matplotlib conversion functionality for string data values. Valid un...
31.113636
81
0.59216
4a0b0e7111f982e547040c4422c213e76cb24eab
948
py
Python
makepost.py
sdlyyxy/sdlyyxy.github.io
2e8c00f5cbb56ad65e60aa82dc6f6d7569244d91
[ "MIT" ]
null
null
null
makepost.py
sdlyyxy/sdlyyxy.github.io
2e8c00f5cbb56ad65e60aa82dc6f6d7569244d91
[ "MIT" ]
3
2020-02-25T07:56:10.000Z
2022-02-26T03:30:52.000Z
makepost.py
sdlyyxy/sdlyyxy.github.io
2e8c00f5cbb56ad65e60aa82dc6f6d7569244d91
[ "MIT" ]
null
null
null
#-*_coding:utf8-*- #!/usr/bin/python import sys import os import time import platform fileName = '' if len(sys.argv) > 1: fileName = sys.argv[1] if fileName == '': print('Usage: ./makepost.py <filename>') exit() output = '' output += '---\n' output += 'layout: post\n' output += 'title: %s\n' % (os.path.bas...
27.085714
77
0.627637
4a0b0eaaad15bd5e40bd490813ec8a76371daf97
799
py
Python
rackio_AI/preprocessing/synthetic_data_base.py
JesusDBS/RackioAI
01bcb0c06e73ae6f3ed0bdcf25ce3328456d6786
[ "MIT" ]
null
null
null
rackio_AI/preprocessing/synthetic_data_base.py
JesusDBS/RackioAI
01bcb0c06e73ae6f3ed0bdcf25ce3328456d6786
[ "MIT" ]
null
null
null
rackio_AI/preprocessing/synthetic_data_base.py
JesusDBS/RackioAI
01bcb0c06e73ae6f3ed0bdcf25ce3328456d6786
[ "MIT" ]
1
2021-05-19T22:32:44.000Z
2021-05-19T22:32:44.000Z
from rackio_AI.decorators import typeCheckedAttribute import numpy as np import pandas as pd import functools from abc import abstractmethod, ABCMeta @typeCheckedAttribute.typeassert(data=[pd.Series, pd.DataFrame, np.ndarray]) class PrepareData(metaclass=ABCMeta): def __init__(self): pass def __str_...
23.5
76
0.634543
4a0b0f2679fe1b8c534f34e3301540d2a3e9c212
1,398
py
Python
face_recognition.py
lotus-biswas/Real-Time-Face-Recognition
e205eb9fc402d45046e14dd5429a90d9e2dfe334
[ "MIT" ]
1
2019-09-14T18:11:52.000Z
2019-09-14T18:11:52.000Z
face_recognition.py
lotus-biswas/Real-Time-Face-Recognition
e205eb9fc402d45046e14dd5429a90d9e2dfe334
[ "MIT" ]
null
null
null
face_recognition.py
lotus-biswas/Real-Time-Face-Recognition
e205eb9fc402d45046e14dd5429a90d9e2dfe334
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os def assure_path_exists(path): dir = os.path.dirname(path) if not os.path.exists(dir): os.makedirs(dir) recognizer = cv2.face.LBPHFaceRecognizer_create() assure_path_exists("trainer/") recognizer.read('trainer/trainer.yml') cascadePath = "haarcascade_f...
17.696203
79
0.577969
4a0b10d327b93ad41d3335a69afdb1a6b77c1523
3,265
py
Python
detectron2/utils/testing.py
FunkyKoki/SparseR-CNN
84ccd42e974b7c7a7a4d05942b6e8b120146d5b3
[ "MIT" ]
1,158
2020-11-24T04:44:06.000Z
2022-03-31T07:24:11.000Z
detectron2/utils/testing.py
FunkyKoki/SparseR-CNN
84ccd42e974b7c7a7a4d05942b6e8b120146d5b3
[ "MIT" ]
94
2020-11-25T08:29:07.000Z
2022-03-30T09:18:09.000Z
detectron2/utils/testing.py
FunkyKoki/SparseR-CNN
84ccd42e974b7c7a7a4d05942b6e8b120146d5b3
[ "MIT" ]
189
2020-11-24T07:32:03.000Z
2022-03-28T06:16:30.000Z
import numpy as np import torch from detectron2 import model_zoo from detectron2.data import DatasetCatalog from detectron2.data.detection_utils import read_image from detectron2.modeling import build_model from detectron2.structures import Boxes from detectron2.utils.file_io import PathManager """ Internal utilitie...
34.010417
85
0.627871
4a0b11dd6043ea4acffc58db58153bb81cb06d58
1,756
py
Python
2021/day4.py
blin00/advent-of-code
0a8cafb1eb6c2ec0b35af2af1fdbf6498ca0a83f
[ "Unlicense" ]
7
2021-12-11T00:04:11.000Z
2021-12-30T11:13:36.000Z
2021/day4.py
blin00/advent-of-code
0a8cafb1eb6c2ec0b35af2af1fdbf6498ca0a83f
[ "Unlicense" ]
null
null
null
2021/day4.py
blin00/advent-of-code
0a8cafb1eb6c2ec0b35af2af1fdbf6498ca0a83f
[ "Unlicense" ]
2
2021-12-18T10:15:43.000Z
2021-12-22T05:11:32.000Z
from sortedcontainers import * from bisect import * from collections import * from functools import * from heapq import * import itertools from string import whitespace, ascii_lowercase, ascii_uppercase, ascii_letters, digits, hexdigits, octdigits, punctuation, printable from util import * """ echo "=== sample ===" ...
21.156627
132
0.556948
4a0b1278861dad6e88e015739aa3a5b376e8d695
1,580
py
Python
django_fsm_log/managers.py
lananelson/django-fsm-log
3e82a2461d452691c3fb8b539fb8b950bafdd4f1
[ "MIT" ]
null
null
null
django_fsm_log/managers.py
lananelson/django-fsm-log
3e82a2461d452691c3fb8b539fb8b950bafdd4f1
[ "MIT" ]
null
null
null
django_fsm_log/managers.py
lananelson/django-fsm-log
3e82a2461d452691c3fb8b539fb8b950bafdd4f1
[ "MIT" ]
null
null
null
import django from django.db import models from django.db.models.query import QuerySet from django.contrib.contenttypes.models import ContentType from django_fsm_log.backends import cache class StateLogQuerySet(QuerySet): def _get_content_type(self, obj): return ContentType.objects.get_for_model(obj) ...
28.214286
70
0.657595
4a0b143a95c1bda1d634802426daeb2adccb6ac9
514
py
Python
tests/unit_tests/cx_core/color_helper_test.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
19
2019-11-21T19:51:40.000Z
2020-01-14T09:24:33.000Z
tests/unit_tests/cx_core/color_helper_test.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
11
2019-11-20T16:43:35.000Z
2020-01-17T16:23:06.000Z
tests/unit_tests/cx_core/color_helper_test.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
5
2019-12-20T21:31:07.000Z
2020-01-06T18:49:52.000Z
import pytest from cx_core.color_helper import Colors, get_color_wheel from tests.test_utils import wrap_execution @pytest.mark.parametrize( "colors, error_expected", [ ("default_color_wheel", False), ("non_existing", True), ([(0.2, 0.3), (0.4, 0.5)], False), (0, True), ],...
27.052632
77
0.678988
4a0b14f2216dceef82f732cde6938e736d7064d7
409
py
Python
mypackage/janken.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
mypackage/janken.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
mypackage/janken.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
import random HANDS = ['グー', 'チョキ', 'パー'] class Janken(): def __init__(self): self.hand = random.choice(HANDS) def __eq__(self, other): # 「__eq__()」を定義するとselfとotherを「==」で比較できる return self.hand == other.hand def __gt__(self, other): # 「__gt__()」を定義するとselfとotherを「>」で比較できる diff =...
25.5625
69
0.613692
4a0b151eb902d3ce87cea9650c5518dc7f63cace
402
py
Python
tests/data/expected/openapi/default_template/body_and_parameters/models.py
lakkay/fastapi-code-generator
9f562b2d2ce18c4d037e36b7d3f229793f1eaed5
[ "MIT" ]
null
null
null
tests/data/expected/openapi/default_template/body_and_parameters/models.py
lakkay/fastapi-code-generator
9f562b2d2ce18c4d037e36b7d3f229793f1eaed5
[ "MIT" ]
null
null
null
tests/data/expected/openapi/default_template/body_and_parameters/models.py
lakkay/fastapi-code-generator
9f562b2d2ce18c4d037e36b7d3f229793f1eaed5
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: body_and_parameters.yaml # timestamp: 2020-06-19T00:00:00+00:00 from typing import Optional from pydantic import BaseModel class Pet(BaseModel): id: int name: str tag: Optional[str] = None class Error(BaseModel): code: int message: str class...
16.75
40
0.691542
4a0b15ad702664b08ddf8fd8d24d6504cd0c102a
531
py
Python
styczen/generator.py
angelm1974/Bydgoszcz_2_spotkanie
377eab44cd7d39aa23c83762c2dc2514d8a1edd8
[ "MIT" ]
null
null
null
styczen/generator.py
angelm1974/Bydgoszcz_2_spotkanie
377eab44cd7d39aa23c83762c2dc2514d8a1edd8
[ "MIT" ]
null
null
null
styczen/generator.py
angelm1974/Bydgoszcz_2_spotkanie
377eab44cd7d39aa23c83762c2dc2514d8a1edd8
[ "MIT" ]
null
null
null
class Fib: def __init__(self,nn): print("inicjujemy") self.__n=nn self.__i=0 self.__p1=self.__p2=1 def __iter__(self): print('iter') return self def __next__(self): print('next') self.__i+=1 if self.__i>self.__n: ...
22.125
43
0.500942
4a0b16e3462e87c204b6e5acb0c599d3bda74043
12,802
py
Python
pytorch_probgraph/hm.py
kpoeppel/pytorch_probgraph
b78595ab03bbe92595ad2f6b35f5dd8bf84d6da0
[ "BSD-3-Clause" ]
47
2020-08-10T02:04:26.000Z
2022-03-23T22:20:56.000Z
pytorch_probgraph/hm.py
kpoeppel/pytorch_probgraph
b78595ab03bbe92595ad2f6b35f5dd8bf84d6da0
[ "BSD-3-Clause" ]
null
null
null
pytorch_probgraph/hm.py
kpoeppel/pytorch_probgraph
b78595ab03bbe92595ad2f6b35f5dd8bf84d6da0
[ "BSD-3-Clause" ]
4
2020-08-10T15:32:06.000Z
2021-12-29T15:04:20.000Z
''' A library implementing a generic sigmoid belief network aka Helmholtz Machine. ''' from typing import List, Tuple, Union from .interaction import Interaction from .unitlayer import UnitLayer from itertools import chain import torch import numpy as np from .utils import ListModule def logsumexp(x, dim=0, keepdim=...
42.959732
133
0.574754
4a0b174aabf43ee9910d2ad4c9d7508a6bbd62e8
3,847
py
Python
maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
1
2022-03-30T14:04:55.000Z
2022-03-30T14:04:55.000Z
maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py
CityU-AIM-Group/NLTE
a111390bcc38bd0c759a3a9d971a7d9defce88fb
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn import torch.nn.functional as F from .roi_box_feature_extractors import make_roi_box_feature_extractor from .roi_box_predictors import make_roi_box_predictor from .inference import make_roi_box_post_processor from...
37.715686
102
0.658695
4a0b17d72595acaa580c50726add31772ff59249
856
py
Python
Chapter06/programs/prog14.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
17
2020-08-08T20:47:29.000Z
2022-03-12T03:08:21.000Z
Chapter06/programs/prog14.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
1
2020-07-27T09:57:19.000Z
2020-08-18T10:57:31.000Z
Chapter06/programs/prog14.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
15
2020-06-30T01:52:06.000Z
2022-02-08T08:28:48.000Z
import cv2 import matplotlib.pyplot as plt import numpy as np img = cv2.imread('/home/pi/book/dataset/gray21.512.tiff', 1) th = 127 max_val = 255 ret, o1 = cv2.threshold(img, th, max_val, cv2.THRESH_BINARY) print(o1) ret, o2 = cv2.threshold(img, th, max_val, cv2.THRESH_BI...
31.703704
60
0.586449
4a0b18886525a3b356f1c1ff4e29d124495dd812
12,319
py
Python
examples/deprecated/bench_conv2d_sigmoid.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
825
2019-04-18T09:21:32.000Z
2022-03-30T05:55:26.000Z
examples/deprecated/bench_conv2d_sigmoid.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
354
2019-04-18T08:42:40.000Z
2022-03-31T18:06:31.000Z
examples/deprecated/bench_conv2d_sigmoid.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
161
2019-05-02T16:43:31.000Z
2022-03-31T01:35:03.000Z
import sys import tensorflow as tf import tf_encrypted as tfe from tf_encrypted.layers import Conv2D from tf_encrypted.layers import Dense from tf_encrypted.layers import Reshape from tf_encrypted.layers import Sigmoid config = tfe.LocalConfig( ["server0", "server1", "crypto-producer", "weights-provider", "predi...
36.773134
86
0.636009
4a0b1bba1e34cc3bbf31779159f458c7581e474e
1,337
py
Python
pybb/middleware.py
magatz/pybbm
6d80889386df22547395ca67af8184957a6d3ada
[ "BSD-2-Clause" ]
null
null
null
pybb/middleware.py
magatz/pybbm
6d80889386df22547395ca67af8184957a6d3ada
[ "BSD-2-Clause" ]
null
null
null
pybb/middleware.py
magatz/pybbm
6d80889386df22547395ca67af8184957a6d3ada
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import translation from django.db.models import ObjectDoesNotExist from pybb import util class PybbMiddleware(object): def process_request(self, request): if request.user.is_authenticated(): try: ...
41.78125
81
0.62902
4a0b1be994971cb9b72cb98661b27c9f9ee51214
3,255
py
Python
setup.py
JulesGrd/google-calendar-simple-api
c4033807d0f35a0ad149e311bb51d128cd19cc4a
[ "MIT" ]
null
null
null
setup.py
JulesGrd/google-calendar-simple-api
c4033807d0f35a0ad149e311bb51d128cd19cc4a
[ "MIT" ]
null
null
null
setup.py
JulesGrd/google-calendar-simple-api
c4033807d0f35a0ad149e311bb51d128cd19cc4a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages, Command from sphinx.setup_command import BuildDoc from shutil import rmtree import os import sys here = os.path.abspath(os.path.dirname(__file__)) VERSION = '1.2.0' class UploadCommand(Command): """Support setup.py upload.""" description = 'Build and publish the...
28.060345
86
0.590476
4a0b1d277efd289b4ff0008a19020d4f614f1ae5
303
py
Python
data/multilingual/Latn.AME/Sans_16/pdf_to_json_test_Latn.AME_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.AME/Sans_16/pdf_to_json_test_Latn.AME_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.AME/Sans_16/pdf_to_json_test_Latn.AME_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.AME/Sans_16/udhr_Latn.AME_Sans_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
4a0b1e6788501989b359ab08e758a5f33b3fa879
2,667
py
Python
renamePackage.py
stuartsoft/Incubator
b33c237647d811d4878b51ccf4613c8541f43c7e
[ "Apache-2.0" ]
null
null
null
renamePackage.py
stuartsoft/Incubator
b33c237647d811d4878b51ccf4613c8541f43c7e
[ "Apache-2.0" ]
null
null
null
renamePackage.py
stuartsoft/Incubator
b33c237647d811d4878b51ccf4613c8541f43c7e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Usage renamePackage.py package # Ex: renamePackage.py com.demo.mobile import os, sys import shutil import platform from functools import reduce stuffToRemove = [".gradle", ".git", ".idea", "build", "app/build", ".iml", "local.properties"] dirChar = os.sep args = sys.argv if (len(args) != 2): pri...
30.306818
163
0.710911
4a0b1eb1f82363d90a5f09305fcbc4c27aa10911
2,372
py
Python
datasette_auth_github/utils.py
simonw/datasette-auth-github
9564e25d756e328bf60e5d01f63c688ea2e44ca0
[ "Apache-2.0" ]
39
2019-07-08T04:29:08.000Z
2022-02-22T22:38:58.000Z
datasette_auth_github/utils.py
simonw/datasette-auth-github
9564e25d756e328bf60e5d01f63c688ea2e44ca0
[ "Apache-2.0" ]
66
2019-07-03T16:18:14.000Z
2021-03-12T17:47:53.000Z
datasette_auth_github/utils.py
simonw/datasette-auth-github
9564e25d756e328bf60e5d01f63c688ea2e44ca0
[ "Apache-2.0" ]
6
2019-08-27T22:44:37.000Z
2020-11-03T22:37:21.000Z
import httpx import time async def load_orgs_and_teams(config, profile, access_token): store_timestamp = False extras = {} if config.get("load_orgs"): load_orgs = config["load_orgs"] gh_orgs = [] for org in force_list(load_orgs): url = "https://api.github.com/orgs/{}/me...
35.402985
84
0.526981
4a0b20512f95ce66368571c264c96d7a3822e481
1,009
py
Python
sdk/python/kfp/__init__.py
mbaijal/pipelines
78200c8e0317c28e05642363296efba427993547
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/__init__.py
mbaijal/pipelines
78200c8e0317c28e05642363296efba427993547
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/__init__.py
mbaijal/pipelines
78200c8e0317c28e05642363296efba427993547
[ "Apache-2.0" ]
1
2022-03-04T14:26:55.000Z
2022-03-04T14:26:55.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...
34.793103
100
0.77106
4a0b2165c225696b95d09e55fb3e76a4bf1cbdd9
1,030
py
Python
fn_qradar_advisor/tools/offense_insights.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_qradar_advisor/tools/offense_insights.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_qradar_advisor/tools/offense_insights.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ToolCommand import ToolCommand import sys from fn_qradar_advisor.lib.qradar_advisor_client import QRadarAdvisorClient import logging logging.basicConfig(filename="testing.log", level=logging.DEBUG) HELP_STR = """ Usage:\n \t offense_insights.py -i app_id -f offense_...
34.333333
77
0.63301
4a0b21dab78744772d784ba6542836a971a26486
410
py
Python
lets_party/migrations/0007_letspartyredflag_dt.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-10T21:20:56.000Z
2021-04-04T11:21:06.000Z
lets_party/migrations/0007_letspartyredflag_dt.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
7
2018-08-14T20:54:49.000Z
2020-06-05T18:17:30.000Z
lets_party/migrations/0007_letspartyredflag_dt.py
dchaplinsky/ragoogle
dccb3d29334c3220ea12c46c725c443c8bd725c0
[ "MIT" ]
3
2018-06-27T12:53:13.000Z
2020-09-25T19:41:46.000Z
# Generated by Django 2.2.4 on 2019-09-12 18:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lets_party', '0006_letspartyredflag'), ] operations = [ migrations.AddField( model_name='letspartyredflag', name='dt...
21.578947
69
0.614634
4a0b2267786c3ed40f4d1e4bd0b8c4a329eebcf6
623
py
Python
LeetCodeSolutions/LeetCode_1169.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
24
2020-03-28T06:10:25.000Z
2021-11-23T05:01:29.000Z
LeetCodeSolutions/LeetCode_1169.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
null
null
null
LeetCodeSolutions/LeetCode_1169.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
8
2020-05-18T02:43:16.000Z
2021-05-24T18:11:38.000Z
class Solution: def invalidTransactions(self, transactions: List[str]) -> List[str]: trans = [t.split(',') + [idx] for idx, t in enumerate(transactions)] res = [] for i, val in enumerate(trans): if int(val[2]) > 1000: res.append(transactions[i]) co...
38.9375
101
0.47512
4a0b23dffa318b2c52542937334c5a4f960ab07a
8,445
py
Python
specutils/io/parsing_utils.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/io/parsing_utils.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/io/parsing_utils.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from astropy.table import Table import astropy.units as u from astropy.nddata import StdDevUncertainty from astropy.utils.exceptions import AstropyUserWarning import warnings import logging from specutils.spectra import Spectrum1D def spectrum_from_column_mapping(table, column_mapping, wcs=None): ...
40.023697
97
0.65151
4a0b245333a68feb280645a25b8862654eed837d
248
py
Python
qa/reputations.py
SMMousaviSP/gapbug
464469f712df5ec02ebbc80ef0c500bffd096eb9
[ "MIT" ]
null
null
null
qa/reputations.py
SMMousaviSP/gapbug
464469f712df5ec02ebbc80ef0c500bffd096eb9
[ "MIT" ]
null
null
null
qa/reputations.py
SMMousaviSP/gapbug
464469f712df5ec02ebbc80ef0c500bffd096eb9
[ "MIT" ]
null
null
null
from enum import Enum class Reputation(Enum): QUESTION_VOTE_UP = 10 ANSWER_VOTE_UP = 10 ANSWER_MARKED_ACCEPTED = 15 ANSWER_MARKED_ACCEPTED_ACCEPTOR = 2 QUESTION_VOTE_DOWN = -2 ANSWER_VOTE_DOWN = -2 USER_VOTE_DOWN = -1
20.666667
39
0.717742
4a0b247122c3657894f61ff9b789dbdc98357253
7,693
py
Python
python/mxnet/recordio.py
bill-teng/mxnet-test
39a2c0cff1be8b8277b2e0a8c55214acc186a49c
[ "Apache-2.0" ]
5
2017-01-21T08:53:55.000Z
2021-08-20T13:06:43.000Z
python/mxnet/recordio.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
null
null
null
python/mxnet/recordio.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
5
2017-02-20T18:55:16.000Z
2020-04-17T21:34:22.000Z
# coding: utf-8 # pylint: disable=invalid-name, protected-access, fixme, too-many-arguments, no-member """Python interface for DLMC RecrodIO data format""" from __future__ import absolute_import from collections import namedtuple import ctypes import struct import numbers import numpy as np from .base import _LIB fr...
28.076642
88
0.578318
4a0b251ae97f8a1f366c336d2cb6a8cf9a520233
1,946
py
Python
flask_tinyclients/nessus.py
certeu/Flask-Tinyclients
317f52b943bde1170ede89cccb53e37fa5bc6170
[ "MIT" ]
2
2017-12-14T12:35:12.000Z
2018-02-23T15:54:10.000Z
flask_tinyclients/nessus.py
certeu/Flask-Tinyclients
317f52b943bde1170ede89cccb53e37fa5bc6170
[ "MIT" ]
null
null
null
flask_tinyclients/nessus.py
certeu/Flask-Tinyclients
317f52b943bde1170ede89cccb53e37fa5bc6170
[ "MIT" ]
null
null
null
""" flask_tinyclients.nessus ~~~~~~~~~~~~~~~~~~~~~~~~ Nessus API client """ from urllib.parse import urljoin import requests from . import RESTAPIClient __all__ = ['Nessus'] class NessusAPIClient(RESTAPIClient): base_url = None accesskey = None secretkey = None def request(self, *args,...
28.202899
74
0.568859
4a0b25be51cfcf111a891a76a07f2d1ced7cd301
1,223
py
Python
expensiveoptimbenchmark/problems/ESP2/evaluateSimulation4.py
AlgTUDelft/ExpensiveOptimBenchmark
642056f8d94c7f953e50c3cd05bbbf9f39ad5c3d
[ "MIT" ]
9
2021-03-03T15:17:04.000Z
2022-02-11T14:30:29.000Z
expensiveoptimbenchmark/problems/ESP2/evaluateSimulation4.py
WholeG/ExpensiveOptimBenchmark
642056f8d94c7f953e50c3cd05bbbf9f39ad5c3d
[ "MIT" ]
6
2021-06-08T22:24:31.000Z
2022-03-12T00:49:58.000Z
expensiveoptimbenchmark/problems/ESP2/evaluateSimulation4.py
WholeG/ExpensiveOptimBenchmark
642056f8d94c7f953e50c3cd05bbbf9f39ad5c3d
[ "MIT" ]
3
2021-03-22T12:12:03.000Z
2022-02-25T15:24:07.000Z
#!/usr/bin/env python # coding: utf8 # ver 0.2 TBB modified system calls to ensure bash shell import os import sys import csv import ntpath import time from subprocess import call ## Accept decimal information string via command line from R baffleStr = sys.argv[1] # Modification: Do not replace `,` with ''. It is no...
42.172414
148
0.774325
4a0b261388cc7421f1ea5fe93c0bbebb6cccfd82
4,007
py
Python
tests/test_float.py
prakritichauhan07/python-rapidjson
936cecc2f95215a55f1956066e3a0e4b2d262eb7
[ "MIT" ]
341
2017-01-23T09:40:08.000Z
2022-03-25T07:10:41.000Z
tests/test_float.py
prakritichauhan07/python-rapidjson
936cecc2f95215a55f1956066e3a0e4b2d262eb7
[ "MIT" ]
109
2017-01-20T20:15:40.000Z
2022-02-19T08:51:40.000Z
tests/test_float.py
prakritichauhan07/python-rapidjson
936cecc2f95215a55f1956066e3a0e4b2d262eb7
[ "MIT" ]
40
2017-02-28T11:49:26.000Z
2022-03-07T23:00:52.000Z
# -*- coding: utf-8 -*- # :Project: python-rapidjson -- Tests on floats # :Author: John Anderson <sontek@gmail.com> # :License: MIT License # :Copyright: © 2015 John Anderson # :Copyright: © 2016, 2017, 2020 Lele Gaifax # from decimal import Decimal import math import pytest import rapidjson as rj def test_...
24.734568
72
0.667083
4a0b26302e48033749e7b72fa82a13c4d135eda6
1,037
py
Python
tests/test_merge.py
parlaylabs/model
d6e9e5bede6b6d31bdf3f29a9873b5faa69d7ec5
[ "Apache-2.0" ]
4
2020-05-03T05:27:51.000Z
2021-10-19T22:45:36.000Z
tests/test_merge.py
parlaylabs/model
d6e9e5bede6b6d31bdf3f29a9873b5faa69d7ec5
[ "Apache-2.0" ]
null
null
null
tests/test_merge.py
parlaylabs/model
d6e9e5bede6b6d31bdf3f29a9873b5faa69d7ec5
[ "Apache-2.0" ]
null
null
null
import pytest from model import utils import jsonmerge a = dict( this="that", nest=dict(a=1, b=2, c=3), lst=[1, 2, 3], d=[{"name": "foo", "val": 9}, {"name": "bar", "val": 11}], ) b = dict( flubber="blubber", nest=dict(a=99, b=2), lst=[3, 4, 4], d=[{"name": "alpha", "val": 1}, {"name"...
22.543478
63
0.419479
4a0b26b26a77dbf8e2b591455da23d884d0967b6
95
py
Python
app/apps/versioning/apps.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
4
2021-09-21T09:15:24.000Z
2022-02-12T13:36:33.000Z
app/apps/versioning/apps.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
1
2021-11-30T12:04:11.000Z
2021-11-30T12:04:11.000Z
app/apps/versioning/apps.py
stweil/escriptorium
63a063f2dbecebe9f79aa6376e99030f49a02502
[ "MIT" ]
2
2021-11-10T09:39:52.000Z
2022-01-10T08:52:40.000Z
from django.apps import AppConfig class VersioningConfig(AppConfig): name = 'versioning'
15.833333
34
0.768421
4a0b27d2aab9ac545d42712bece78ef05bef10ec
11,638
py
Python
src/oci/data_integration/models/connection_validation.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/data_integration/models/connection_validation.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/data_integration/models/connection_validation.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.539295
245
0.645042
4a0b28107e754c10085f32a8ff425f68238986ec
2,314
py
Python
p7_ex5_difference_calculator_orig.py
eduardo-jh/HW02_Binary_Fission
22a3cc619946ec875b13f26fbe788e23511844b9
[ "MIT" ]
null
null
null
p7_ex5_difference_calculator_orig.py
eduardo-jh/HW02_Binary_Fission
22a3cc619946ec875b13f26fbe788e23511844b9
[ "MIT" ]
null
null
null
p7_ex5_difference_calculator_orig.py
eduardo-jh/HW02_Binary_Fission
22a3cc619946ec875b13f26fbe788e23511844b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ BE523 Biosystems Analysis & Design HW2 - Problem 7. Bacteria growth, difference calculator https://mathinsight.org/bacteria_growth_initial_model_exercises Exercise 5 Created on Thu Jan 21 12:11:46 2021 @author: eduardo """ import matplotlib.pyplot as plt import numpy ...
35.6
94
0.668539
4a0b28eded1289dd1eca944d6365e2f3f8b69925
2,058
py
Python
restorm/registry.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-03T16:41:35.000Z
2020-09-17T09:39:02.000Z
restorm/registry.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
null
null
null
restorm/registry.py
gt3389b/restorm
7901ffb8d05589508604e84352257486f350ac79
[ "MIT" ]
3
2017-01-02T18:59:02.000Z
2020-09-17T09:53:31.000Z
import warnings from collections import OrderedDict, defaultdict class Registry(object): """ Registry class for Restorm Resources. Adapted from django.apps.registry.Apps. """ def __init__(self): # Mapping of app labels => resource names => model classes. Every time # a resource is ...
38.830189
78
0.622449
4a0b295fe27259d1f29b3c16d40f307bc1330aeb
50,492
py
Python
overwrite_inventory/models/models.py
xpheragroup/Preproductivo2
b176d3e0500ae0055b61d1370bff4eb40a129724
[ "MIT" ]
null
null
null
overwrite_inventory/models/models.py
xpheragroup/Preproductivo2
b176d3e0500ae0055b61d1370bff4eb40a129724
[ "MIT" ]
null
null
null
overwrite_inventory/models/models.py
xpheragroup/Preproductivo2
b176d3e0500ae0055b61d1370bff4eb40a129724
[ "MIT" ]
null
null
null
from copy import copy import datetime from odoo import api, fields, models, _ from odoo.exceptions import UserError, ValidationError from odoo.osv import expression from odoo.tools import float_compare, float_is_zero from odoo.addons.base.models.ir_model import MODULE_UNINSTALL_FLAG from odoo.tools.float_utils import ...
46.450782
206
0.587301
4a0b2a710569f8b91695095ac42b4602ed363155
2,024
py
Python
scraper.py
vyacheslav-polyakov/vocabmap
32ffa7fd98f73bbdb0f49d937f3a98e41c7dc9e8
[ "MIT" ]
null
null
null
scraper.py
vyacheslav-polyakov/vocabmap
32ffa7fd98f73bbdb0f49d937f3a98e41c7dc9e8
[ "MIT" ]
null
null
null
scraper.py
vyacheslav-polyakov/vocabmap
32ffa7fd98f73bbdb0f49d937f3a98e41c7dc9e8
[ "MIT" ]
null
null
null
from urllib.request import Request, urlopen from urllib.parse import quote from bs4 import BeautifulSoup as bs import io import re headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept': 'text/html,application/xhtml+xml,ap...
38.188679
132
0.635375
4a0b2a96a66d116aad8b765e9a7fd3b846ba1df6
87,976
py
Python
discord/ext/commands/core.py
curiositIy/discord.py
f6a74f74a7aed0879fc086805eae8873e745d0ea
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
curiositIy/discord.py
f6a74f74a7aed0879fc086805eae8873e745d0ea
[ "MIT" ]
null
null
null
discord/ext/commands/core.py
curiositIy/discord.py
f6a74f74a7aed0879fc086805eae8873e745d0ea
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
33.849942
122
0.608166
4a0b2bd6dbee3e911529ab45b6d33c312e5d5747
4,966
py
Python
xnu-2782.1.97/tools/lldbmacros/core/caching.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
null
null
null
xnu-2782.1.97/tools/lldbmacros/core/caching.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
null
null
null
xnu-2782.1.97/tools/lldbmacros/core/caching.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
1
2021-03-28T02:56:16.000Z
2021-03-28T02:56:16.000Z
""" A basic caching module for xnu debug macros to use. It is recommended to use [Get|Save][Static|Dynamic]CacheData() apis for your caching needs. These APIs will handle the case of clearing caches when a debugger continues and stops or hit a breakpoint. Use Static caches for data that will not change if the prog...
29.915663
124
0.671365
4a0b2bd7fb7143c581d937365612c2be751a7ddb
5,226
py
Python
tests/test_types.py
madebr/conan-templates-script
7830d74e69c5a62d3606b7d33a800ae9290b6502
[ "MIT" ]
null
null
null
tests/test_types.py
madebr/conan-templates-script
7830d74e69c5a62d3606b7d33a800ae9290b6502
[ "MIT" ]
null
null
null
tests/test_types.py
madebr/conan-templates-script
7830d74e69c5a62d3606b7d33a800ae9290b6502
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from . import create_configuration, create_remote_conan_templates, conan from bincrafters_templates import PROJECT_TYPES from bincrafters_templates.bincrafters_templates import BincraftersTemplatesError, Configuration, generate_project, \ template_geturl, template_seturl, template_update im...
32.6625
117
0.730578