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
4a08f17904d9037f2d71ad0f48a5328f02383132
7,645
py
Python
src/largest50/models/t5/abln_prott5.py
vam-sin/CATHe
230d64b3a1268650e6c4d0ec88df0a9bd729cad2
[ "MIT" ]
2
2021-11-29T16:05:03.000Z
2022-02-18T08:32:51.000Z
src/largest50/models/t5/abln_prott5.py
vam-sin/CATHe
230d64b3a1268650e6c4d0ec88df0a9bd729cad2
[ "MIT" ]
null
null
null
src/largest50/models/t5/abln_prott5.py
vam-sin/CATHe
230d64b3a1268650e6c4d0ec88df0a9bd729cad2
[ "MIT" ]
null
null
null
#libraries import pandas as pd from sklearn import preprocessing import numpy as np import pickle from sklearn.preprocessing import OneHotEncoder from keras.preprocessing.sequence import pad_sequences from sklearn.preprocessing import StandardScaler, LabelEncoder, normalize from sklearn.utils import shuffle from skl...
32.811159
242
0.722956
4a08f32339df3e9822a06eca358e0c96d052b087
18,113
py
Python
platform/psvita/cg_builders.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
platform/psvita/cg_builders.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
platform/psvita/cg_builders.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
"""Functions used to generate source files during build time All such functions are invoked in a subprocess on Windows to prevent build flakiness. """ import errno from subprocess import Popen, PIPE, STDOUT from platform_methods import subprocess_main excluded_cond = ["GL_ES"] def runexe(exe, **kwargs): try: ...
34.435361
199
0.565064
4a08f37e24e84e96806ff9d54c1c4dd992d40b5b
10,631
py
Python
clu/fs/abc.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
1
2019-07-02T08:17:59.000Z
2019-07-02T08:17:59.000Z
clu/fs/abc.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
13
2019-12-17T02:28:30.000Z
2021-11-17T03:46:10.000Z
clu/fs/abc.py
fish2000/CLU
80bc2df5f001b5639d79ba979e19ec77a9931425
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from tempfile import _TemporaryFileWrapper as TemporaryFileWrapperBase import abc import clu.abstract import collections.abc import contextlib import sys, os import weakref abstract = abc.abstractmethod from clu.constants.consts import λ, ENCODING from cl...
36.913194
87
0.594582
4a08f41d3ce27c636cd989a2ad7a694ad4ad4ade
155
py
Python
Tests/runlibregr.py
amaeckelberghe/Pyjion
cdf8fbd3f3808d398a71fca085420f71c7dff106
[ "MIT" ]
null
null
null
Tests/runlibregr.py
amaeckelberghe/Pyjion
cdf8fbd3f3808d398a71fca085420f71c7dff106
[ "MIT" ]
null
null
null
Tests/runlibregr.py
amaeckelberghe/Pyjion
cdf8fbd3f3808d398a71fca085420f71c7dff106
[ "MIT" ]
null
null
null
import pyjion import gc pyjion.enable() from test.libregrtest import main main() gc.collect() pyjion.disable() print("Disabling JIT") print(pyjion.stats())
17.222222
33
0.774194
4a08f692f4091f2d1ebdeb8daf337c9b16fc8f47
1,112
py
Python
mri_works/NodeEditor/modules/Matlab/MP3_ANTS.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
2
2020-08-20T21:00:53.000Z
2021-08-16T15:28:51.000Z
mri_works/NodeEditor/modules/Matlab/MP3_ANTS.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
3
2020-09-24T06:50:43.000Z
2020-12-15T11:02:04.000Z
mri_works/NodeEditor/modules/Matlab/MP3_ANTS.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
1
2020-08-20T21:00:59.000Z
2020-08-20T21:00:59.000Z
class MP3_Atlas_ANTS(): def __init__(self, mat_eng='', Nifti_in='path', Ref_in='path', Mask_in='path', file_Atlas_name='path', file_Label_name='path', **options): import matlab.engine ...
31.771429
67
0.528777
4a08f6c876bacb96603d1d6db09016f70b3becb9
479
py
Python
output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/nistschema_sv_iv_list_double_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/nistschema_sv_iv_list_double_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/double/schema_instance/nistschema_sv_iv_list_double_min_length_5_xsd/nistschema_sv_iv_list_double_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-double-minLength-5-NS" @dataclass class NistschemaSvIvListDoubleMinLength5: class Meta: name = "NISTSchema-SV-IV-list-double-minLength-5" namespace = "NISTSchema-SV-IV-list-double-minLength-5-N...
23.95
65
0.651357
4a08f7753a8b83ce1b69a2977096c0d1ecd463f5
10,749
py
Python
edith/app/ingest/ingestProcesses.py
BAM-PFA/edith
a9bca397a7878e76fd6ac148aa122f410751b32c
[ "BSD-2-Clause" ]
8
2018-10-18T19:14:55.000Z
2020-07-29T08:10:46.000Z
edith/app/ingest/ingestProcesses.py
BAM-PFA/edith
a9bca397a7878e76fd6ac148aa122f410751b32c
[ "BSD-2-Clause" ]
27
2018-10-06T22:50:06.000Z
2019-07-08T20:12:27.000Z
edith/app/ingest/ingestProcesses.py
BAM-PFA/resourcespace
40aeb1f40f9283d2e452e75cb98d41ea951d33a6
[ "BSD-2-Clause" ]
1
2018-11-16T18:52:41.000Z
2018-11-16T18:52:41.000Z
#!/usr/bin/env python3 # standard library modules import ast import json import os import re import subprocess import sys import uuid # non-standard modules from flask_login import current_user # local modules from . import dataSourceAccess from . import metadataMaster from ..pymm import ingestSip from .. import reso...
29.051351
71
0.690948
4a08f8d6ce0c1ab7e3368c80009caf081abad6f6
4,225
py
Python
lib/spack/spack/schema/gitlab_ci.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
lib/spack/spack/schema/gitlab_ci.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
lib/spack/spack/schema/gitlab_ci.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.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) """Schema for gitlab-ci.yaml configuration file. .. literalinclude:: ../spack/schema/gitlab_ci.py :lines: 13- """ fro...
26.080247
73
0.394083
4a08f9f69fdb38c38e890667963a0947e47843c6
1,323
py
Python
setup.py
kapetan/MicroPython_VL53L0X
1cb1518e44f92c4b4b7942239018b1a8f304063c
[ "MIT" ]
null
null
null
setup.py
kapetan/MicroPython_VL53L0X
1cb1518e44f92c4b4b7942239018b1a8f304063c
[ "MIT" ]
null
null
null
setup.py
kapetan/MicroPython_VL53L0X
1cb1518e44f92c4b4b7942239018b1a8f304063c
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # To use a consistent encoding import codecs from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # Get the long descript...
31.5
84
0.690098
4a08faa94378f1301dfe343e996cb51e27dd1143
3,315
py
Python
tools/mo/openvino/tools/mo/subprocess_main.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
1
2022-02-26T17:33:44.000Z
2022-02-26T17:33:44.000Z
tools/mo/openvino/tools/mo/subprocess_main.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
18
2022-01-21T08:42:58.000Z
2022-03-28T13:21:31.000Z
tools/mo/openvino/tools/mo/subprocess_main.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import logging as log import os import subprocess from multiprocessing import Process, Queue import sys def check_python_version(): """ Checks python version to be greater or equal than 3.4 :return: exit code (1 - error, No...
35.645161
122
0.669985
4a08fc555598c702718c5fc896a6a45d227b5f79
3,569
py
Python
galaxies/galaxies.py
philrosenfield/ResolvedStellarPops
ab24083ae5080545165ccf7589d5a22c7989ce75
[ "BSD-3-Clause" ]
null
null
null
galaxies/galaxies.py
philrosenfield/ResolvedStellarPops
ab24083ae5080545165ccf7589d5a22c7989ce75
[ "BSD-3-Clause" ]
null
null
null
galaxies/galaxies.py
philrosenfield/ResolvedStellarPops
ab24083ae5080545165ccf7589d5a22c7989ce75
[ "BSD-3-Clause" ]
null
null
null
''' wrapper for lists of galaxy objects, each method returns lists, unless they are setting attributes. ''' import numpy as np import itertools from .starpop import StarPop __all__ = ['Galaxies'] class Galaxies(StarPop): ''' wrapper for lists of galaxy objects, each method returns lists, unless they are...
33.046296
84
0.564864
4a08fe108edd6a35f797954c4bd83515300cae14
9,124
py
Python
tests/test_ec2/test_internet_gateways.py
argos83/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
tests/test_ec2/test_internet_gateways.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
null
null
null
tests/test_ec2/test_internet_gateways.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from __future__ import unicode_literals # Ensure 'assert_raises' context manager support for Python 2.6 import tests.backport_assert_raises from nose.tools import assert_raises import re import boto from boto.exception import EC2ResponseError, JSONResponseError import sure # noqa from moto import mock_ec2 VPC_CI...
36.350598
179
0.738053
4a08fea9ab9a9c47049abaa03a1e55fb84be7817
1,330
py
Python
app/api/events.py
benranderson/run
c2079a61b16311646e88494f9ac4742c970fec98
[ "MIT" ]
null
null
null
app/api/events.py
benranderson/run
c2079a61b16311646e88494f9ac4742c970fec98
[ "MIT" ]
22
2018-01-23T15:20:14.000Z
2018-03-01T23:44:12.000Z
app/api/events.py
benranderson/run
c2079a61b16311646e88494f9ac4742c970fec98
[ "MIT" ]
null
null
null
from flask import jsonify, request, url_for from app import db from app.api import api from app.models import Event @api.route('/events/<int:id>', methods=['GET']) def get_event(id): return jsonify(Event.query.get_or_404(id).to_dict()) @api.route('/events', methods=['GET']) def get_events(): page = request....
27.142857
72
0.670677
4a09011b5150ab35a720a3403dda3839e05b6d47
164
py
Python
utilities/functions.py
mlists/pyinfiniterecharge
3ac5697767e87c669dab5b089f0831909466f3b7
[ "BSD-3-Clause" ]
3
2020-02-04T20:39:10.000Z
2022-01-08T23:24:10.000Z
utilities/functions.py
mlists/pyinfiniterecharge
3ac5697767e87c669dab5b089f0831909466f3b7
[ "BSD-3-Clause" ]
48
2020-01-18T05:00:37.000Z
2021-05-01T02:05:56.000Z
utilities/functions.py
mlists/pyinfiniterecharge
3ac5697767e87c669dab5b089f0831909466f3b7
[ "BSD-3-Clause" ]
16
2020-01-17T23:36:27.000Z
2021-03-03T06:31:33.000Z
import math def constrain_angle(angle: float) -> float: """Wrap an angle to the interval [-pi,pi].""" return math.atan2(math.sin(angle), math.cos(angle))
23.428571
55
0.670732
4a09016895fcbd53a06b2ad55065ee97726aa3dc
37,517
py
Python
src/prefect/core/task.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
src/prefect/core/task.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
src/prefect/core/task.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
import collections import copy import inspect import uuid import warnings from datetime import timedelta from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Set, Tuple, Union import prefect import prefect.engine.cache_validators import prefect.engine.signals import prefect.triggers from prefect.util...
36.21332
121
0.587547
4a090244465fe8f2b7a05fc12b621d0b53ceca0b
21,038
py
Python
spacy/pipeline/entity_linker.py
TeMU-BSC/spaCy-develop
5facdb031c64b9b3383e2f041c34474cfb32bb21
[ "Apache-2.0", "MIT" ]
22,040
2016-10-03T11:58:15.000Z
2022-03-31T21:08:19.000Z
spacy/pipeline/entity_linker.py
TeMU-BSC/spaCy-develop
5facdb031c64b9b3383e2f041c34474cfb32bb21
[ "Apache-2.0", "MIT" ]
6,927
2016-10-03T13:11:11.000Z
2022-03-31T17:01:25.000Z
spacy/pipeline/entity_linker.py
TeMU-BSC/spaCy-develop
5facdb031c64b9b3383e2f041c34474cfb32bb21
[ "Apache-2.0", "MIT" ]
4,403
2016-10-04T03:36:33.000Z
2022-03-31T14:12:34.000Z
from typing import Optional, Iterable, Callable, Dict, Union, List, Any from thinc.types import Floats2d from pathlib import Path from itertools import islice import srsly import random from thinc.api import CosineDistance, Model, Optimizer, Config from thinc.api import set_dropout_rate import warnings from ..kb impor...
42.415323
116
0.596207
4a09036f23a8ae7fa78360b51ab5573b3160e321
1,646
py
Python
alembic/versions/cb0e90ac778c_.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
alembic/versions/cb0e90ac778c_.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
alembic/versions/cb0e90ac778c_.py
AlexandruScrob/fast_api_proj_2
9aca5d48ab3e42933747b23ff04c6d4f3487d93e
[ "MIT" ]
null
null
null
"""empty message Revision ID: cb0e90ac778c Revises: 6bfa16c7b895 Create Date: 2022-03-13 15:25:56.616337 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cb0e90ac778c' down_revision = '6bfa16c7b895' branch_labels = None depends_on = None def upgrade(): # ...
33.591837
81
0.681045
4a09046d04766846b6a302793afdfaaeded6d054
3,392
py
Python
src/apps/dive_log/migrations/0001_squashed_0004_auto_20150125_0811.py
GotlingSystem/apnea
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
[ "MIT" ]
null
null
null
src/apps/dive_log/migrations/0001_squashed_0004_auto_20150125_0811.py
GotlingSystem/apnea
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
[ "MIT" ]
3
2015-02-14T18:51:19.000Z
2015-02-24T07:44:05.000Z
src/apps/dive_log/migrations/0001_squashed_0004_auto_20150125_0811.py
GotlingSystem/apnea
6b2c0bdaa3733b5ec19456aae6177da4a13ab7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): #replaces = [(b'dive_log', '0001_squashed_0003_auto_20150125_0429'), (b'dive_log', '0002_dive_duration'), (b'dive_log', '0003_auto_20150125_0804'), (b'dive_log', '0004_...
39.905882
193
0.567217
4a0904dd15487643f64160a0eba4a44d586bfbb2
96
py
Python
venv/lib/python3.8/site-packages/setuptools/_vendor/packaging/markers.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/setuptools/_vendor/packaging/markers.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/setuptools/_vendor/packaging/markers.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/96/28/51/82aa598cb33e256fafc652cfa94de49957bbf60f6fca9cb593199346e4
96
96
0.895833
4a0905bc8c8c78a22c6c83dd1f6d0f0a5432abf1
7,056
py
Python
networkx/algorithms/tests/test_euler.py
ErikBrendel/networkx
8f36023a8c97c9ab659cb8a956a4c0cdb0089b8e
[ "BSD-3-Clause" ]
1
2021-02-28T07:31:48.000Z
2021-02-28T07:31:48.000Z
networkx/algorithms/tests/test_euler.py
ErikBrendel/networkx
8f36023a8c97c9ab659cb8a956a4c0cdb0089b8e
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/tests/test_euler.py
ErikBrendel/networkx
8f36023a8c97c9ab659cb8a956a4c0cdb0089b8e
[ "BSD-3-Clause" ]
1
2020-12-03T05:51:32.000Z
2020-12-03T05:51:32.000Z
import collections import pytest import networkx as nx class TestIsEulerian: def test_is_eulerian(self): assert nx.is_eulerian(nx.complete_graph(5)) assert nx.is_eulerian(nx.complete_graph(7)) assert nx.is_eulerian(nx.hypercube_graph(4)) assert nx.is_eulerian(nx.hypercube_graph(6...
33.923077
72
0.595238
4a0905fdb046706689b4d11beaefeb4a30be69cd
15,715
py
Python
globus_sdk/auth/client_types/base.py
jaswilli/globus-sdk-python
35579f5520150a28ee4e375802d7c863ed3c21ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
globus_sdk/auth/client_types/base.py
jaswilli/globus-sdk-python
35579f5520150a28ee4e375802d7c863ed3c21ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
globus_sdk/auth/client_types/base.py
jaswilli/globus-sdk-python
35579f5520150a28ee4e375802d7c863ed3c21ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from __future__ import print_function, unicode_literals import collections import logging import six from globus_sdk import exc from globus_sdk.auth.token_response import OAuthTokenResponse from globus_sdk.authorizers import NullAuthorizer from globus_sdk.base import BaseClient, safe_stringify logger = logging.getL...
38.995037
87
0.632389
4a090613244b13254eca6211b913a154a63f4b62
20,008
py
Python
benchmark/memhred/model.py
BorisPolonsky/KdConv
124616c8a074ab32065757d47e315c5a54db259c
[ "Apache-2.0" ]
294
2020-04-08T23:54:36.000Z
2022-03-30T09:29:32.000Z
benchmark/memhred/model.py
thu-coai/KNIVES
fcee15bf8d4f6b0a80ffe01a00739755a7f44e0a
[ "Apache-2.0" ]
18
2020-04-16T03:37:07.000Z
2022-02-21T13:46:57.000Z
benchmark/memhred/model.py
thu-coai/KNIVES
fcee15bf8d4f6b0a80ffe01a00739755a7f44e0a
[ "Apache-2.0" ]
51
2020-04-09T02:50:58.000Z
2022-03-29T08:04:52.000Z
#coding=utf8 import numpy as np import tensorflow as tf import time from itertools import chain from tensorflow.python.ops.nn import dynamic_rnn from utils.output_projection import output_projection_layer, MyDense, MyInferenceHelper, MyAttention from utils import SummaryHelper import os import jieba import json clas...
47.188679
202
0.72496
4a090703f80312cadcae7800b33c6cbb3f893964
2,931
py
Python
DL_Models/main-DenseGCN.py
kusumikakd/EEG_DL1
5a6e6fc7c643fbad35a6b427dddadab930f00f2a
[ "MIT" ]
3
2020-12-10T00:50:57.000Z
2022-02-10T08:49:55.000Z
DL_Models/main-DenseGCN.py
kusumikakd/EEG_DL
5a6e6fc7c643fbad35a6b427dddadab930f00f2a
[ "MIT" ]
null
null
null
DL_Models/main-DenseGCN.py
kusumikakd/EEG_DL
5a6e6fc7c643fbad35a6b427dddadab930f00f2a
[ "MIT" ]
1
2021-05-21T09:18:05.000Z
2021-05-21T09:18:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Import useful packages from __future__ import absolute_import from __future__ import print_function from __future__ import division # Hide the Configuration and Warnings import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = '3' import tensorflow as tf import numpy as np impor...
36.6375
104
0.719891
4a090704b6b4bd0ec5b62b6d04c54b6ec057c0ad
82,355
py
Python
rclpy/rclpy/node.py
ksuszka/rclpy
b3cd14d65d4aeb528b6bcd2db489c8000acfaf82
[ "Apache-2.0" ]
null
null
null
rclpy/rclpy/node.py
ksuszka/rclpy
b3cd14d65d4aeb528b6bcd2db489c8000acfaf82
[ "Apache-2.0" ]
null
null
null
rclpy/rclpy/node.py
ksuszka/rclpy
b3cd14d65d4aeb528b6bcd2db489c8000acfaf82
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.960355
99
0.649724
4a09070a7db366d6b58eb959db0e86af1896df29
3,908
py
Python
fastestimator/trace/io/model_saver.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
null
null
null
fastestimator/trace/io/model_saver.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
null
null
null
fastestimator/trace/io/model_saver.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
48.85
119
0.660184
4a09072891aaa7ea17e8180d34e8c7f8788c38d1
3,698
py
Python
setup.py
readingwritingcode/google-scholar-report
611c0416ec7ca65a81d34a2c984c7f2a5b6eb450
[ "BSD-2-Clause" ]
1
2021-07-10T15:52:42.000Z
2021-07-10T15:52:42.000Z
setup.py
restrepo/GoogleScholarReport
611c0416ec7ca65a81d34a2c984c7f2a5b6eb450
[ "BSD-2-Clause" ]
null
null
null
setup.py
restrepo/GoogleScholarReport
611c0416ec7ca65a81d34a2c984c7f2a5b6eb450
[ "BSD-2-Clause" ]
2
2021-07-09T13:15:59.000Z
2021-07-09T13:40:59.000Z
#!/usr/bin/env python3 # coding: utf-8 # Copyright (c) Colav. # Distributed under the terms of the Modified BSD License. # ----------------------------------------------------------------------------- # Minimal Python version sanity check (from IPython) # --------------------------------------------------------------...
28.890625
82
0.556247
4a09091f069fcdd7d5006dfe82de50816d2d57be
546
py
Python
modules/math-codes/modules/differential-calculus/limits/src/stars_function.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
1
2020-09-06T22:17:19.000Z
2020-09-06T22:17:19.000Z
modules/math-codes/modules/differential-calculus/limits/src/stars_function.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/math-codes/modules/differential-calculus/limits/src/stars_function.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
def f(x): return 1 / x if __name__ =='__main__': from matplotlib import pyplot as plt import pandas as pd df = pd.DataFrame ({'x': range(-10, 10+1)}) # x Values. df['y'] = f(df['x']) # y Values. print(df) plt.figure(figsize=(10, 10)) plt.plot(df.x, df.y, color="b", marker='o') plt.title('f(x) = 1 ...
21.84
57
0.578755
4a09099f33a8573c7d084bfcaae074df61946c6e
2,393
py
Python
DarunGrimAnalyzers.py
infamous41md/darun-grim-script
9f1a5fe55652a37c54ed52266aceef2a26a81550
[ "BSD-3-Clause" ]
1
2015-07-17T14:26:15.000Z
2015-07-17T14:26:15.000Z
DarunGrimAnalyzers.py
infamous41md/darun-grim-script
9f1a5fe55652a37c54ed52266aceef2a26a81550
[ "BSD-3-Clause" ]
null
null
null
DarunGrimAnalyzers.py
infamous41md/darun-grim-script
9f1a5fe55652a37c54ed52266aceef2a26a81550
[ "BSD-3-Clause" ]
null
null
null
import DarunGrimDatabaseWrapper class PatternAnalyzer: SecurityImpactPatterns = ( ( "match", "cmp", 1 ), ( "match", "test", 1 ), ( "match", "wcslen", 2 ), ( "match", "strlen", 2 ), ( "match", "0xFFFFFFF", 3 ), ( "match", "StringCchCopyW", 2 ), ( "match", "ULongLongToULong", 2 ) ) ...
38.596774
144
0.731718
4a090a606e4e4e16f84d46041dff630bd8b26a27
120
py
Python
homework/stunum.py
hiyouga/PY-Learning
296f08e7964845c314874906039f244010d5422a
[ "MIT" ]
2
2017-12-09T14:41:29.000Z
2017-12-27T11:12:16.000Z
homework/stunum.py
hiyouga/PY-Learning
296f08e7964845c314874906039f244010d5422a
[ "MIT" ]
null
null
null
homework/stunum.py
hiyouga/PY-Learning
296f08e7964845c314874906039f244010d5422a
[ "MIT" ]
null
null
null
import re line = input() print("True" if re.match(r'(^\d{5}$)|(^((ZY)|(SY)|(BY))\d{7}$)|(^\d{8}$)', line) else "False")
30
94
0.508333
4a090acbc5fec25c8a3c5e050b25d4705675d332
933
py
Python
main/migrations/0005_auto_20200606_1023.py
Sudani-Coder/ResistanceCommitteesSystem
58c79a906070f9c29fc668fc608542678b245535
[ "MIT" ]
null
null
null
main/migrations/0005_auto_20200606_1023.py
Sudani-Coder/ResistanceCommitteesSystem
58c79a906070f9c29fc668fc608542678b245535
[ "MIT" ]
null
null
null
main/migrations/0005_auto_20200606_1023.py
Sudani-Coder/ResistanceCommitteesSystem
58c79a906070f9c29fc668fc608542678b245535
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-06 08:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20200602_0858'), ] operations = [ migrations.AlterModelOptions( name='task', ...
30.096774
117
0.560557
4a090b805237fed32d5298e0e04f61f119b56a08
354
py
Python
mbgdml/data/__init__.py
aalexmmaldonado/mbGDML
a7f89973730fd22d017eeda10de8d3c2cea25aee
[ "MIT" ]
null
null
null
mbgdml/data/__init__.py
aalexmmaldonado/mbGDML
a7f89973730fd22d017eeda10de8d3c2cea25aee
[ "MIT" ]
null
null
null
mbgdml/data/__init__.py
aalexmmaldonado/mbGDML
a7f89973730fd22d017eeda10de8d3c2cea25aee
[ "MIT" ]
null
null
null
"""Data structures handled by mbgdml.""" from .basedata import mbGDMLData from .calculation import PartitionOutput from .structureset import structureSet from .model import mbModel from .predictset import predictSet from .dataset import dataSet __all__ = [ 'mbGDMLData', 'PartitionOutput', 'structureSet', 'mbModel...
25.285714
78
0.765537
4a090c073d1362a9782c3199afaffdb42be254b8
3,648
py
Python
integration/python/src/test_naughty_strings.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
3
2022-01-19T13:39:52.000Z
2022-01-28T05:57:08.000Z
integration/python/src/test_naughty_strings.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
67
2022-01-13T22:42:17.000Z
2022-03-31T14:18:26.000Z
integration/python/src/test_naughty_strings.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
7
2022-01-13T16:20:54.000Z
2022-02-07T11:42:05.000Z
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 # ## Testing potentially hazardous strings # This test uses a library of `naughty` strings (code injections, weird ...
36.118812
118
0.700658
4a090c7906f45725651ac4e6abdab0b4a3ff9cd7
15,710
py
Python
geolite2legacy.py
miyurusankalpa/geolite2legacy
19d7f2f3f102db03eb4adc9b6524172a18128c6a
[ "MIT" ]
1
2021-08-19T00:41:38.000Z
2021-08-19T00:41:38.000Z
geolite2legacy.py
miyurusankalpa/geolite2legacy
19d7f2f3f102db03eb4adc9b6524172a18128c6a
[ "MIT" ]
null
null
null
geolite2legacy.py
miyurusankalpa/geolite2legacy
19d7f2f3f102db03eb4adc9b6524172a18128c6a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2015 Mark Teodoro # Copyright (c) 2018-2019 Gianluigi Tiesi # # 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 restricti...
33.784946
117
0.61515
4a090ddb75236a20cb81fb582f01c5b3f713d0f2
2,348
py
Python
visu_util.py
gillbam/pcn
b23687f28f080ed26654c3ebc89bfa00c8579f72
[ "MIT" ]
199
2019-09-27T02:26:32.000Z
2022-03-31T06:24:18.000Z
visu_util.py
gillbam/pcn
b23687f28f080ed26654c3ebc89bfa00c8579f72
[ "MIT" ]
38
2019-09-27T17:42:59.000Z
2022-03-16T22:46:39.000Z
visu_util.py
gillbam/pcn
b23687f28f080ed26654c3ebc89bfa00c8579f72
[ "MIT" ]
50
2019-10-10T17:33:45.000Z
2022-03-15T00:03:17.000Z
''' MIT License Copyright (c) 2018 Wentao Yuan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
39.79661
113
0.680153
4a090dde9178bb8d0b1b5f68508950f216c4c5df
28,578
py
Python
languages/pt-br.py
rosanaw/chipincode
8c15c962676937dc8c1c2ac69e0780d88198094e
[ "MIT" ]
1
2019-01-15T11:14:28.000Z
2019-01-15T11:14:28.000Z
languages/pt-br.py
rosanaw/chipincode
8c15c962676937dc8c1c2ac69e0780d88198094e
[ "MIT" ]
null
null
null
languages/pt-br.py
rosanaw/chipincode
8c15c962676937dc8c1c2ac69e0780d88198094e
[ "MIT" ]
null
null
null
# coding: utf8 { '!=': '!=', '!langcode!': 'pt-br', '!langname!': 'Português (do Brasil)', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novovalor\'". Você não pode atualizar ou apagar os resultados d...
47.080725
526
0.702883
4a090eabcd338ad4e2730c0936e6e553ac8b64b3
8,350
py
Python
get_1M_RANSAC_FPFH_error.py
BiaoBiaoLi/TAG-Reg-Iterative-Accurate-Global-Registration-Algorithm
36bb217da8aec44d1cde5082b1126ccd00d47e7f
[ "MIT" ]
1
2021-06-14T21:43:59.000Z
2021-06-14T21:43:59.000Z
get_1M_RANSAC_FPFH_error.py
BiaoBiaoLi/TAG-Reg-Iterative-Accurate-Global-Registration-Algorithm
36bb217da8aec44d1cde5082b1126ccd00d47e7f
[ "MIT" ]
null
null
null
get_1M_RANSAC_FPFH_error.py
BiaoBiaoLi/TAG-Reg-Iterative-Accurate-Global-Registration-Algorithm
36bb217da8aec44d1cde5082b1126ccd00d47e7f
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np import time import copy from sklearn.neighbors import KDTree import matplotlib.pyplot as plt def draw_registration_result(source, target, transformation): source_temp = copy.deepcopy(source) target_temp = copy.deepcopy(target) source_temp.estimate_normals( ...
45.135135
135
0.596287
4a090fa554c397d92c52778d4f897d548579be7c
4,242
py
Python
setup.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
51
2021-03-19T14:14:31.000Z
2022-02-18T00:42:51.000Z
setup.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
9
2021-03-31T15:39:28.000Z
2021-04-16T13:28:15.000Z
setup.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
1
2021-07-26T04:54:18.000Z
2021-07-26T04:54:18.000Z
""" TakeLab Podium is an open source library for natural language processing. Podium accelerates data loading, preprocessing & batching to enable faster development of NLP models. See http://takelab.fer.hr/podium/ for complete documentation. """ import re from pathlib import Path from setuptools import find_packages,...
25.865854
101
0.62777
4a0910705e434460ea2c25824a54b982db5ebfa2
403
py
Python
course/urls.py
JumjieYang/TutorPlatform
4aa6ffb2393b39ba888fab29f73db69d24f689f8
[ "MIT" ]
3
2020-07-01T14:06:01.000Z
2022-01-23T23:51:10.000Z
course/urls.py
Stanleyjhx/TutorPlatform
f7aba1f22a7d9a9821351d797b8ec1b4a11f2dd0
[ "MIT" ]
1
2020-03-15T02:34:09.000Z
2020-03-15T02:34:09.000Z
course/urls.py
Stanleyjhx/TutorPlatform
f7aba1f22a7d9a9821351d797b8ec1b4a11f2dd0
[ "MIT" ]
1
2020-05-06T02:53:36.000Z
2020-05-06T02:53:36.000Z
from django.urls import path from .views import * urlpatterns = [ path('course/', CourseCreateView.as_view(),name='course_create'), path('course/<int:pk>', CourseDetail.as_view(),name='course_detail'), path('courses/', CourseList.as_view(),name='course_list'), path('carts/', CartList.as_view(),name='c...
31
73
0.684864
4a091186807ff12dd3b4f8d314bdab2ce97f56ac
6,889
py
Python
monty/dev.py
jmmshn/monty
e410311ae3785d14d1dfe8a1f26ebc34786bc35f
[ "MIT" ]
null
null
null
monty/dev.py
jmmshn/monty
e410311ae3785d14d1dfe8a1f26ebc34786bc35f
[ "MIT" ]
24
2021-11-01T13:21:44.000Z
2022-03-29T13:23:09.000Z
monty/dev.py
jmmshn/monty
e410311ae3785d14d1dfe8a1f26ebc34786bc35f
[ "MIT" ]
null
null
null
""" This module implements several useful functions and decorators that can be particularly useful for developers. E.g., deprecating methods / classes, etc. """ import re import sys import logging import warnings import os import subprocess import multiprocessing import functools logger = logging.getLogger(__name__) ...
29.693966
93
0.609813
4a0913827b4d090791af4277f2a1a69a5a513f29
2,218
py
Python
core/utils/form_utils.py
Archinowsk/kompassi
00f754498d0a5c0a3e4cfa1e4b19620aa99e7cd6
[ "CC-BY-3.0" ]
null
null
null
core/utils/form_utils.py
Archinowsk/kompassi
00f754498d0a5c0a3e4cfa1e4b19620aa99e7cd6
[ "CC-BY-3.0" ]
null
null
null
core/utils/form_utils.py
Archinowsk/kompassi
00f754498d0a5c0a3e4cfa1e4b19620aa99e7cd6
[ "CC-BY-3.0" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Div def make_field_readonly(field): if type(field.widget) in [ forms.widgets.CheckboxSelectMultiple, forms.widgets.CheckboxInput, ]: field.widget.attrs['disabled'] = True else: ...
26.094118
97
0.638413
4a0913b9729954e1e91599266a8b6a87501c45c6
172
py
Python
JDjangoDemo/JDjangoDemo/asgi.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjangoDemo/JDjangoDemo/asgi.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjangoDemo/JDjangoDemo/asgi.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'JDjangoDemo.settings') application = get_asgi_application()
21.5
71
0.831395
4a091516c7adfa1697ba0c224c48ef9804f319ac
4,092
py
Python
annotations/post/post_comp.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
annotations/post/post_comp.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
annotations/post/post_comp.py
don4apaev/anfisa
2e4bdd83c584c0000f037413ccc1f9067c07fa70
[ "Apache-2.0" ]
null
null
null
import sys, json, codecs, gzip from datetime import datetime from argparse import ArgumentParser from app.prepare.read_json import JsonLineReader from .comp_hets import FamilyDataMiner, CompHetsBatch #===================================== class PostAttonationProcess: def __init__(self, mine_lines = 1000, line_peri...
36.212389
73
0.605083
4a091551ac7a3ee3d5c59f561392133f4b64f366
6,363
py
Python
reparameterizers/beta.py
jramapuram/vae
6000c71ceae0ae7de3fae4a61691ef05ad13a4b5
[ "MIT" ]
1
2019-10-15T16:17:06.000Z
2019-10-15T16:17:06.000Z
reparameterizers/beta.py
jramapuram/vae
6000c71ceae0ae7de3fae4a61691ef05ad13a4b5
[ "MIT" ]
null
null
null
reparameterizers/beta.py
jramapuram/vae
6000c71ceae0ae7de3fae4a61691ef05ad13a4b5
[ "MIT" ]
2
2019-05-29T15:22:52.000Z
2019-06-06T20:15:30.000Z
# coding: utf-8 from __future__ import print_function import torch import torch.nn as nn import torch.distributions as D from torch.autograd import Variable from helpers.utils import zeros_like, same_type # from helpers.utils import eps as eps_fn class Beta(nn.Module): def __init__(self, config): """ Be...
35.747191
101
0.598146
4a09170d962c1737d9c054a991144eb34640ca69
73,646
py
Python
nwb/find_links.py
ajtritt/nwb-api-python
927ac74e1f84b694bd034774bb21aa1ff16b303f
[ "BSD-3-Clause" ]
null
null
null
nwb/find_links.py
ajtritt/nwb-api-python
927ac74e1f84b694bd034774bb21aa1ff16b303f
[ "BSD-3-Clause" ]
null
null
null
nwb/find_links.py
ajtritt/nwb-api-python
927ac74e1f84b694bd034774bb21aa1ff16b303f
[ "BSD-3-Clause" ]
null
null
null
# program to find hdf5 links import re import sys import h5py import copy import numpy as np import operator import pprint pp = pprint.PrettyPrinter(indent=4) # def get_group_info(f, h5_node): # """ Return information about h5_node""" # paths = h5py.h5i.h5_node.name # gi = f.get(path, getlink=True)...
44.525998
128
0.587961
4a091719671560d8e564038a19c2545f0fb0683b
2,117
py
Python
gen-plasma/test/test_erc20_plasma_contract.py
plasma-group/research
4d454351cd2417ccaa18ac214e2f155ea7345704
[ "MIT" ]
16
2019-03-01T11:16:25.000Z
2019-07-04T21:12:10.000Z
gen-plasma/test/test_erc20_plasma_contract.py
plasma-group/research
4d454351cd2417ccaa18ac214e2f155ea7345704
[ "MIT" ]
16
2019-03-20T17:20:59.000Z
2021-08-01T20:36:40.000Z
gen-plasma/test/test_erc20_plasma_contract.py
plasma-group/research
4d454351cd2417ccaa18ac214e2f155ea7345704
[ "MIT" ]
1
2019-04-16T07:50:57.000Z
2019-04-16T07:50:57.000Z
from utils import State, StateUpdate def test_deposit(alice, erc20_ct, erc20_plasma_ct, ownership_predicate): # Deposit some funds erc20_plasma_ct.deposit(alice.address, 100, ownership_predicate, {'recipient': alice.address}) # Assert the balances have changed assert erc20_ct.balanceOf(alice.address) =...
73
142
0.800189
4a09174ee1e271d8bf8f70496d8dfe4d1d5d52c1
2,601
py
Python
mindmappings/costModel/example/grad_descent.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
17
2021-03-30T07:11:44.000Z
2022-03-08T11:06:39.000Z
mindmappings/costModel/example/grad_descent.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
1
2022-01-12T03:20:31.000Z
2022-01-30T17:24:30.000Z
mindmappings/costModel/example/grad_descent.py
kartik-hegde/mindmappings
e96f2a287da2a93c4af0794a3bab1211bc95ba0a
[ "MIT" ]
4
2021-05-25T00:30:41.000Z
2022-02-09T13:57:21.000Z
import numpy as np from mindmappings.utils.parallelProcess import parallelProcess from copy import deepcopy class GradientDescent: """ Basic Gradient Descent Algorithm. """ def __init__(self, f, df, constraints, learning_factor=0.5, decay_factor=0.5, error=1e-10): """ Initializ...
30.6
111
0.553633
4a091765f55ffdbed0ba18e34b6f61e91e994b90
39
py
Python
example/mnist/src/training/__init__.py
dsanno/chainer-training-template
b9edb257c37a7ef32b57c509a0e94d163391b307
[ "MIT" ]
1
2017-11-13T01:39:45.000Z
2017-11-13T01:39:45.000Z
template/src/training/__init__.py
dsanno/chainer-training-template
b9edb257c37a7ef32b57c509a0e94d163391b307
[ "MIT" ]
null
null
null
template/src/training/__init__.py
dsanno/chainer-training-template
b9edb257c37a7ef32b57c509a0e94d163391b307
[ "MIT" ]
null
null
null
from training_step import TrainingStep
19.5
38
0.897436
4a09178e6692854a6f309b5ccb5a0c743d5a5a65
6,915
py
Python
backend/foodz4_32695/settings.py
crowdbotics-apps/foodz4-32695
cf29b53e70cda9b647fe4e7bb0680879de468cad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/foodz4_32695/settings.py
crowdbotics-apps/foodz4-32695
cf29b53e70cda9b647fe4e7bb0680879de468cad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/foodz4_32695/settings.py
crowdbotics-apps/foodz4-32695
cf29b53e70cda9b647fe4e7bb0680879de468cad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for foodz4_32695 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
29.551282
112
0.730441
4a0917e96c00e330f5d9b64ec01675c19b0164f0
4,806
py
Python
build/lua-reader/source/protobuf-2.6.1/python/google/protobuf/text_encoding.py
LazyPlanet/MX_LIB
8f4032b53153ee630f621afbda22454e7aae9a4e
[ "BSD-3-Clause" ]
null
null
null
build/lua-reader/source/protobuf-2.6.1/python/google/protobuf/text_encoding.py
LazyPlanet/MX_LIB
8f4032b53153ee630f621afbda22454e7aae9a4e
[ "BSD-3-Clause" ]
null
null
null
build/lua-reader/source/protobuf-2.6.1/python/google/protobuf/text_encoding.py
LazyPlanet/MX_LIB
8f4032b53153ee630f621afbda22454e7aae9a4e
[ "BSD-3-Clause" ]
null
null
null
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # ...
43.297297
80
0.694757
4a091a2c9d83075d64f5396802741e79a9dda82e
1,014
py
Python
setup.py
ritiek/smartbytes-monitor
9f55d9455be211b7c9a59b4525af7d5f51c64d86
[ "MIT" ]
3
2017-08-16T19:06:29.000Z
2020-04-12T01:03:31.000Z
setup.py
Gilles00/smartbytes-monitor
9f55d9455be211b7c9a59b4525af7d5f51c64d86
[ "MIT" ]
2
2017-08-15T14:14:15.000Z
2017-08-17T13:23:41.000Z
setup.py
Gilles00/smartbytes-monitor
9f55d9455be211b7c9a59b4525af7d5f51c64d86
[ "MIT" ]
2
2017-08-15T14:06:28.000Z
2020-04-12T01:04:16.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import smartbytes with open("README.rst", "r") as f: long_description = f.read() setup(name='smartbytes-monitor', version=smartbytes.__version__, description=' A Python package to monitor your Airtel Broadband network stats, remaining ...
33.8
117
0.653846
4a091af3409c20a9530ad9d701a3f8bb4f13daa1
4,452
py
Python
test/multimaster_tests.py
privalof/azure-cosmos-python
fa438e477cea85cf3f57e11f2ac9298b0c411e93
[ "MIT" ]
88
2018-09-25T05:51:11.000Z
2022-03-30T06:56:26.000Z
test/multimaster_tests.py
privalof/azure-cosmos-python
fa438e477cea85cf3f57e11f2ac9298b0c411e93
[ "MIT" ]
81
2018-09-25T21:42:01.000Z
2021-03-24T03:21:24.000Z
test/multimaster_tests.py
privalof/azure-cosmos-python
fa438e477cea85cf3f57e11f2ac9298b0c411e93
[ "MIT" ]
85
2018-10-02T12:01:24.000Z
2022-01-07T19:27:08.000Z
import json import os.path import unittest import uuid import pytest import azure.cosmos.cosmos_client as cosmos_client import azure.cosmos.documents as documents import azure.cosmos.errors as errors import azure.cosmos.base as base import azure.cosmos.constants as constants import azure.cosmos.retry_options as retry_o...
42.4
127
0.708895
4a091afd386f8d588dcb3c43028a2f2810382894
1,032
py
Python
tracker/models/recipient/call_me_bot.py
jneuendorf/price_tracker
9cb6878613e7af52f049ddd80a7a5ae2ae21028b
[ "MIT" ]
null
null
null
tracker/models/recipient/call_me_bot.py
jneuendorf/price_tracker
9cb6878613e7af52f049ddd80a7a5ae2ae21028b
[ "MIT" ]
null
null
null
tracker/models/recipient/call_me_bot.py
jneuendorf/price_tracker
9cb6878613e7af52f049ddd80a7a5ae2ae21028b
[ "MIT" ]
null
null
null
import logging import urllib from django.db import models import requests from tracker.models import NotificationRecipient logger = logging.getLogger(__name__) class CallMeBotRecipient(NotificationRecipient): API_URL = ( 'https://api.callmebot.com/whatsapp.php' '?phone={phone}' '&apike...
27.157895
76
0.60562
4a091b323578c0ba9ac8f37dabee147cd7fa1b00
2,302
py
Python
pygccxml/declarations/algorithm.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
945
2015-01-09T00:43:52.000Z
2022-03-30T08:23:02.000Z
pygccxml/declarations/algorithm.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
2,354
2015-02-04T21:54:21.000Z
2022-03-31T20:58:21.000Z
pygccxml/declarations/algorithm.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
566
2015-01-04T14:26:57.000Z
2022-03-18T20:33:18.000Z
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt """ Define few unrelated algorithms that work on declarations. """ from . import declaration_utils from . import runtime_er...
26.159091
76
0.622068
4a091b5b3afefcda16740f52c97a3c237dc59b3d
370
py
Python
estimoji/model.py
kenkov/estimoji
2bdce4f8cd54a913cbcabc9600ff888d9b301902
[ "MIT" ]
5
2018-05-16T18:40:31.000Z
2019-03-01T05:41:41.000Z
estimoji/model.py
kenkov/estimoji
2bdce4f8cd54a913cbcabc9600ff888d9b301902
[ "MIT" ]
null
null
null
estimoji/model.py
kenkov/estimoji
2bdce4f8cd54a913cbcabc9600ff888d9b301902
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer from sklearn.linear_model import LogisticRegression from estimoji.util import load_emoji_id from estimoji.util import Tokenizer import pickle def load_model(modelname): pipe = ...
26.428571
59
0.805405
4a091d9431dde532fc08a391b4b48a4bdd6bff88
8,501
py
Python
old/main_experiments.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
29
2020-03-06T05:55:15.000Z
2022-01-24T19:10:23.000Z
old/main_experiments.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
22
2020-04-06T19:17:32.000Z
2022-03-08T02:42:38.000Z
old/main_experiments.py
jsuagee/dcss-ai-wrapper
da446a88d4f2ca290fe8477773373ce7c9bb88a7
[ "MIT" ]
10
2020-03-06T03:04:35.000Z
2022-03-24T18:08:17.000Z
import asyncio import websockets import zlib import json import time import logging import sys import threading import signal import datetime # custom import actions import state import simple_planning_agent import relational_learning_agent from exploratory_planning_agent import ExploratoryPlanningAgent logging.basi...
36.021186
114
0.590166
4a091ddaffee13001c0e702f1a90059be29f0ec1
3,068
py
Python
pincho/settings.py
rafen/pincho
fbc697f94838017e73832c046b940a416ae794bc
[ "MIT" ]
null
null
null
pincho/settings.py
rafen/pincho
fbc697f94838017e73832c046b940a416ae794bc
[ "MIT" ]
null
null
null
pincho/settings.py
rafen/pincho
fbc697f94838017e73832c046b940a416ae794bc
[ "MIT" ]
null
null
null
""" Django settings for pincho project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
24.943089
71
0.69296
4a091f9a99b10cf84c8f97395b4ef0c0b6e38b8a
637
py
Python
meanMedianMinMax.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-11-19T10:30:16.000Z
2021-11-19T10:30:16.000Z
meanMedianMinMax.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-11-01T19:06:36.000Z
2021-11-01T19:06:36.000Z
meanMedianMinMax.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-07-11T18:32:19.000Z
2021-07-11T18:32:19.000Z
#!/usr/bin/env python3 import sys import statistics def help(): print(''' Usage: ------------ meanMedianMinMax < <path> Description: ------------ Calculates min, max, mean, and median from a list of numbers given on stdin and outputs to stdout. ''') sys.exit(0) if '-h' in ...
20.548387
65
0.618524
4a09206589721a826743fd69903a3a5f3dd453ee
4,172
py
Python
Forest-Type-Cover-Prediction/code.py
Shamika14/ga-learner-dsmp-repo
51f01820e68813e8e074c8ca926e984e08368ac3
[ "MIT" ]
null
null
null
Forest-Type-Cover-Prediction/code.py
Shamika14/ga-learner-dsmp-repo
51f01820e68813e8e074c8ca926e984e08368ac3
[ "MIT" ]
null
null
null
Forest-Type-Cover-Prediction/code.py
Shamika14/ga-learner-dsmp-repo
51f01820e68813e8e074c8ca926e984e08368ac3
[ "MIT" ]
null
null
null
# -------------- import pandas as pd from sklearn import preprocessing #path : File path # read the dataset dataset= pd.read_csv(path) # look at the first five columns print(dataset.head()) # Check if there's any column which is not useful and remove it like the column id dataset.drop('Id',axis=1, inplace=True) # ...
28.380952
138
0.774449
4a0920c7e2f952f7246c3a5209b2da3fdfd149aa
4,475
py
Python
agent_stable_baselines/stable_baselines/acktr/policies.py
Jannkar/doom_actionspace
37663341f60a05943202b77394a4203d070fad95
[ "MIT" ]
1
2020-04-24T13:54:01.000Z
2020-04-24T13:54:01.000Z
agent_stable_baselines/stable_baselines/acktr/policies.py
Jannkar/doom_actionspace
37663341f60a05943202b77394a4203d070fad95
[ "MIT" ]
null
null
null
agent_stable_baselines/stable_baselines/acktr/policies.py
Jannkar/doom_actionspace
37663341f60a05943202b77394a4203d070fad95
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from stable_baselines.acktr.utils import dense, kl_div import stable_baselines.common.tf_util as tf_util class GaussianMlpPolicy(object): def __init__(self, ob_dim, ac_dim): """ Create a gaussian MLP policy :param ob_dim: (int) Obser...
58.881579
120
0.619218
4a0920da2e09d1448e2ceaf1e7a6e60797a1bc83
292
py
Python
server_py/flatgov/common/management/commands/process_bill_meta.py
aih/BillMap
d130b1396cb25b415cd7d9ea7389ad558a34eec1
[ "CC0-1.0" ]
2
2022-01-18T14:55:52.000Z
2022-01-31T03:38:39.000Z
server_py/flatgov/common/management/commands/process_bill_meta.py
aih/FlatGov
8201ef1813bbc062841421017f492e877f75a5f8
[ "CC0-1.0" ]
321
2020-09-01T16:20:35.000Z
2021-07-03T06:42:34.000Z
server_py/flatgov/common/management/commands/process_bill_meta.py
aih/FlatGov
8201ef1813bbc062841421017f492e877f75a5f8
[ "CC0-1.0" ]
1
2022-03-31T15:02:49.000Z
2022-03-31T15:02:49.000Z
from django.core.management.base import BaseCommand from common.process_bill_meta import makeAndSaveTitlesIndex class Command(BaseCommand): help = 'combines data from the results of the bill data, to get titles' def handle(self, *args, **options): makeAndSaveTitlesIndex()
29.2
75
0.763699
4a09223260817161a73b404d2ac214e64a889b03
11,678
py
Python
bp_includes/external/httpagentparser/__init__.py
chuycepeda/mboilerplate
1fad3f10d491e5f6e051ff615370073e38dba1fe
[ "MIT" ]
5
2016-02-23T17:18:16.000Z
2016-08-05T22:26:29.000Z
bp_includes/external/httpagentparser/__init__.py
CodeandoMonterrey/mboilerplate
2ddbb408229cb9164895a5de571a39cc58042d85
[ "MIT" ]
1
2016-03-19T02:02:32.000Z
2016-05-09T05:43:36.000Z
bp_includes/external/httpagentparser/__init__.py
CodeandoMonterrey/mboilerplate
2ddbb408229cb9164895a5de571a39cc58042d85
[ "MIT" ]
9
2016-02-19T18:56:18.000Z
2019-01-13T16:50:05.000Z
""" Extract client information from http user agent The module does not try to detect all capabilities of browser in current form (it can easily be extended though). Tries to * be fast * very easy to extend * reliable enough for practical purposes * assist python web apps to detect clients. """ class ...
26.361174
122
0.569276
4a092268d604cefa6ece5142884f9f315e091344
344
py
Python
pyeccodes/defs/grib1/local_98_8_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib1/local_98_8_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib1/local_98_8_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): h.add(_.Constant('GRIBEXSection1Problem', (62 - _.Get('section1Length')))) _.Template('grib1/mars_labeling.def').load(h) h.add(_.Unsigned('intervalBetweenTimes', 1)) h.add(_.Constant('numberOfIntegers', 12)) h.add(_.Unsigned('unsignedIntegers', 1, _.Ge...
31.272727
78
0.694767
4a09228e338c3f71f3622d057912c73c9999c4ee
2,387
py
Python
scrape/spatula/cli.py
csnardi/people
9279bc9b755237b07513ca707f7265d1d1dfd5bf
[ "CC0-1.0" ]
1
2021-04-19T20:42:59.000Z
2021-04-19T20:42:59.000Z
scrape/spatula/cli.py
csnardi/people
9279bc9b755237b07513ca707f7265d1d1dfd5bf
[ "CC0-1.0" ]
null
null
null
scrape/spatula/cli.py
csnardi/people
9279bc9b755237b07513ca707f7265d1d1dfd5bf
[ "CC0-1.0" ]
null
null
null
import attr import click import importlib import pprint from typing import List from scrapelib import Scraper from .pages import ListPage from .core import URL def get_class(dotted_name: str): mod_name, cls_name = dotted_name.rsplit(".", 1) mod = importlib.import_module(mod_name) return getattr(mod, cls_n...
27.436782
83
0.629661
4a0923c7ef49230c3fc381a15e61498c01500d79
2,274
py
Python
Python/win32/win32_msg_handler.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
Python/win32/win32_msg_handler.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
3
2020-03-24T16:26:35.000Z
2020-04-15T19:40:41.000Z
Python/win32/win32_msg_handler.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
import win32con import win32api import win32gui import time mainloop_delay = 0.1 # [s] className = "CLICK PLC manager WM handler className" windowName = "CLICK PLC manager WM handler" WM_START_ACCUMUL_DATA = win32con.WM_USER + 0 WM_STOP_ACCUMUL_DATA = win32con.WM_USER + 1 class WMHandler(object): def __ini...
34.454545
73
0.643799
4a0923d6d084a6c7b32369fb6ecebab46717fd93
243
py
Python
main.py
fujihiraryo/rubiks-cube
f833544e07638772c81b5913111e9df632637a44
[ "MIT" ]
null
null
null
main.py
fujihiraryo/rubiks-cube
f833544e07638772c81b5913111e9df632637a44
[ "MIT" ]
null
null
null
main.py
fujihiraryo/rubiks-cube
f833544e07638772c81b5913111e9df632637a44
[ "MIT" ]
null
null
null
import rubiks22 import solver22 *u, = input().split() *d, = input().split() *f, = input().split() *b, = input().split() *l, = input().split() *r, = input().split() cube = rubiks22.Cube(u, d, f, b, l, r) cube.show() print(*solver22.solve(cube))
22.090909
38
0.600823
4a09252f068881f8d80f9a02fbd0459de1ddf3da
7,436
py
Python
homeassistant/components/here_travel_time/sensor.py
devnull-nz/home-assistant-core
b6b72f50ec4a21e0c9cc5681bd09193e1a4ec256
[ "Apache-2.0" ]
null
null
null
homeassistant/components/here_travel_time/sensor.py
devnull-nz/home-assistant-core
b6b72f50ec4a21e0c9cc5681bd09193e1a4ec256
[ "Apache-2.0" ]
null
null
null
homeassistant/components/here_travel_time/sensor.py
devnull-nz/home-assistant-core
b6b72f50ec4a21e0c9cc5681bd09193e1a4ec256
[ "Apache-2.0" ]
null
null
null
"""Support for HERE travel time sensors.""" from __future__ import annotations from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const ...
32.471616
87
0.666756
4a092617c6071bf1da0087afb6dda2533cfa16d8
4,938
py
Python
resources/lib/kodi/context_menu.py
mediabrasiltv/plugin.video.netflix
48c7ccc0492d877bd21076140fcd5b1f8a1b31b2
[ "MIT" ]
null
null
null
resources/lib/kodi/context_menu.py
mediabrasiltv/plugin.video.netflix
48c7ccc0492d877bd21076140fcd5b1f8a1b31b2
[ "MIT" ]
null
null
null
resources/lib/kodi/context_menu.py
mediabrasiltv/plugin.video.netflix
48c7ccc0492d877bd21076140fcd5b1f8a1b31b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Helper functions to generating context menu items SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import absol...
44.890909
116
0.707371
4a092696ed13f903f9436d528ecd35b29c2272a3
283
py
Python
app/main/forms.py
josylad/News-App
111e55365541cdbfc5841c8bc0a9af0ea38e60d4
[ "MIT" ]
null
null
null
app/main/forms.py
josylad/News-App
111e55365541cdbfc5841c8bc0a9af0ea38e60d4
[ "MIT" ]
1
2021-06-02T00:24:52.000Z
2021-06-02T00:24:52.000Z
app/main/forms.py
josylad/News-App
111e55365541cdbfc5841c8bc0a9af0ea38e60d4
[ "MIT" ]
2
2019-09-10T03:02:26.000Z
2019-09-10T18:12:14.000Z
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField # from wtforms.validators import Required class ReviewForm(FlaskForm): title = StringField('Review Title') review = TextAreaField('Movie Review') submit = SubmitField('Submit')
28.3
59
0.773852
4a0926be4a186cc72f9f46cc0132f4ced3de347b
2,315
py
Python
ass3-airplane_det/mmdet/datasets/dataset_wrappers.py
Rooooyy/BUAA_PR
5b4d12dc786c3fdc469ae59e0b099e8095aee550
[ "BSD-2-Clause" ]
2
2021-06-09T16:21:53.000Z
2021-08-30T02:31:56.000Z
mmdet/datasets/dataset_wrappers.py
jedibobo/S2ANet-custom-dataset
869b196d4c33713a5c61bd80064d10a453fb76ef
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/dataset_wrappers.py
jedibobo/S2ANet-custom-dataset
869b196d4c33713a5c61bd80064d10a453fb76ef
[ "Apache-2.0" ]
null
null
null
import bisect import math from collections import defaultdict import numpy as np from torch.utils.data.dataset import ConcatDataset as _ConcatDataset from .registry import DATASETS @DATASETS.register_module class ConcatDataset(_ConcatDataset): """A wrapper of concatenated dataset. Same as :obj:`torch.utils...
30.866667
79
0.642333
4a0926e8faa272a11bb6ae789968807503611894
4,175
py
Python
src/third_party/wiredtiger/test/suite/test_compact01.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
72
2020-06-12T06:33:41.000Z
2021-03-22T03:15:56.000Z
src/third_party/wiredtiger/test/suite/test_compact01.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
9
2020-07-02T09:36:49.000Z
2021-03-25T23:54:00.000Z
src/third_party/wiredtiger/test/suite/test_compact01.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
14
2020-06-12T03:08:03.000Z
2021-02-03T11:43:09.000Z
#!/usr/bin/env python # # Public Domain 2014-2018 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
38.657407
83
0.68503
4a0926fafe4f606a43b7994dce7f88beb25c1c65
656
py
Python
audit/models.py
thulasi-ram/logistika
a9a7b649f0e15bf8cdad43fdab2a8bd61326f83d
[ "MIT" ]
null
null
null
audit/models.py
thulasi-ram/logistika
a9a7b649f0e15bf8cdad43fdab2a8bd61326f83d
[ "MIT" ]
null
null
null
audit/models.py
thulasi-ram/logistika
a9a7b649f0e15bf8cdad43fdab2a8bd61326f83d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from djutil.models import TimeStampedModel from logistika.views.model_crud_permissions import CRUDPermissions from quotes.models import Quotes from tenders.models import Tenders from users.models import User class TendersAudit(TimeStampedModel, CR...
29.818182
66
0.803354
4a0927200eb2c270a1dc30a89afd0b8805ecaa7e
798
py
Python
safe_transaction_service/tokens/migrations/0004_ethereum_address_field_v2_20211201_1512.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
5
2018-07-02T17:18:18.000Z
2018-09-10T20:58:34.000Z
safe_transaction_service/tokens/migrations/0004_ethereum_address_field_v2_20211201_1512.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
5
2018-08-08T11:05:56.000Z
2018-10-03T08:51:37.000Z
safe_transaction_service/tokens/migrations/0004_ethereum_address_field_v2_20211201_1512.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
1
2022-02-07T09:04:23.000Z
2022-02-07T09:04:23.000Z
# Generated by Django 3.2.9 on 2021-12-01 15:12 from django.db import migrations import gnosis.eth.django.models class Migration(migrations.Migration): dependencies = [ ("tokens", "0003_auto_20201222_1053"), ] operations = [ migrations.RunSQL( """ DROP INDEX IF ...
26.6
118
0.593985
4a09293d8a1ce139914c5cd60705d1e61165e7b5
25,210
py
Python
src/olympia/versions/tests/test_views.py
soniasingla/addons-server
1bbaa965faf180e866b6e908e5f7e27edb8fe506
[ "BSD-3-Clause" ]
null
null
null
src/olympia/versions/tests/test_views.py
soniasingla/addons-server
1bbaa965faf180e866b6e908e5f7e27edb8fe506
[ "BSD-3-Clause" ]
null
null
null
src/olympia/versions/tests/test_views.py
soniasingla/addons-server
1bbaa965faf180e866b6e908e5f7e27edb8fe506
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os from django.conf import settings from django.core.files import temp from django.core.files.base import File as DjangoFile from django.test.utils import override_settings from django.utils.http import urlquote import mock import pytest from pyquery import PyQuery from olympia import...
42.584459
79
0.661325
4a092d536c946a36da4ad76b90fa929be8ac2377
3,372
py
Python
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
16
2019-07-23T04:14:27.000Z
2022-02-15T10:46:06.000Z
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
1
2021-04-08T19:34:31.000Z
2021-04-08T19:34:31.000Z
apps/account/migrations/0001_initial.py
kagxin/django-template
3cdddf8ff3e1d95298ffe359f0a40e27220d795b
[ "MIT" ]
5
2019-07-23T13:18:42.000Z
2021-01-28T06:37:47.000Z
# Generated by Django 2.2.2 on 2019-07-18 01:37 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permission...
68.816327
329
0.654804
4a092e9ee0c021556629a5ef8d8d43b4cd8a86d6
9,117
py
Python
fiftyone/server/metadata.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
3
2022-01-18T06:13:33.000Z
2022-02-14T13:28:23.000Z
fiftyone/server/metadata.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
null
null
null
fiftyone/server/metadata.py
Bukkster/fiftyone
c061216de5094131c8ce8718d8a6ac58056b003e
[ "Apache-2.0" ]
null
null
null
""" FiftyOne Server JIT metadata utilities. | Copyright 2017-2022, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import logging import shutil import struct import asyncio import aiofiles import eta.core.serial as etas import eta.core.utils as etau import eta.core.video as etav import fiftyone.core.med...
31.116041
78
0.54371
4a092f58b1c7590cc84f277a51e3ea8d34f58a80
12,275
py
Python
pymatgen/io/cifio.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
1
2022-03-29T20:03:58.000Z
2022-03-29T20:03:58.000Z
pymatgen/io/cifio.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
null
null
null
pymatgen/io/cifio.py
qimin/pymatgen
4823c777a8af4a3ca7cd29297563ba8174ec402c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Wrapper classes for Cif input and output from Structures. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Materials Project" __version__ = "1.0" __maintainer__ = "Shyue Ping Ong" __email__ = "shyue@mit.edu" __status__ = "Production" __d...
35.476879
80
0.563747
4a092f6116fba1e90eb002755bcc47b7169d2b6d
431
py
Python
labext/modules/jquery.py
binh-vu/ipywidgets_extra
3ddf46445306b2aa158bf3f696ec33f8ddd499e7
[ "MIT" ]
3
2020-06-21T22:57:55.000Z
2021-06-03T23:36:39.000Z
labext/modules/jquery.py
binh-vu/ipywidgets_extra
3ddf46445306b2aa158bf3f696ec33f8ddd499e7
[ "MIT" ]
null
null
null
labext/modules/jquery.py
binh-vu/ipywidgets_extra
3ddf46445306b2aa158bf3f696ec33f8ddd499e7
[ "MIT" ]
1
2020-06-20T19:50:37.000Z
2020-06-20T19:50:37.000Z
from typing import List, Type, Dict from labext.module import Module class JQuery(Module): @classmethod def id(cls) -> str: return 'jquery' @classmethod def css(cls) -> List[str]: return [] @classmethod def js(cls) -> Dict[str, str]: return {cls.id(): '//code.jquery...
18.73913
63
0.589327
4a092f9136fe8f965d910552ab5c32363a4b2c3b
1,966
py
Python
nova/tests/unit/scheduler/filters/test_exact_core_filter.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/scheduler/filters/test_exact_core_filter.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/tests/unit/scheduler/filters/test_exact_core_filter.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
40.122449
78
0.70295
4a092ff78bedc5e9d9713924b42e70f90948cd4f
7,196
py
Python
human_data/subject_data_to_csv.py
NYUMaLab/confidence
50b6e906753315707bd01d682df2cf3d8f8e5d6b
[ "MIT" ]
6
2016-01-10T06:56:53.000Z
2020-10-23T12:11:54.000Z
human_data/subject_data_to_csv.py
NYUMaLab/confidence
50b6e906753315707bd01d682df2cf3d8f8e5d6b
[ "MIT" ]
null
null
null
human_data/subject_data_to_csv.py
NYUMaLab/confidence
50b6e906753315707bd01d682df2cf3d8f8e5d6b
[ "MIT" ]
5
2018-05-01T18:09:52.000Z
2021-07-16T06:50:02.000Z
import numpy as np import os import datetime import re import pandas as pd import scipy.io as spio ### https://stackoverflow.com/questions/7008608/scipy-io-loadmat-nested-structures-i-e-dictionaries def loadmat(filename): ''' this function should be called instead of direct spio.loadmat as it cures the pr...
47.03268
261
0.522513
4a0933131a47df9dac45b781e06b794413aff850
4,128
py
Python
app/recipe/test/test_tags_api.py
jtartsi/recipe-app-api
56d35b2eadc426d2214aa3e312a8cc003a9cbf08
[ "MIT" ]
null
null
null
app/recipe/test/test_tags_api.py
jtartsi/recipe-app-api
56d35b2eadc426d2214aa3e312a8cc003a9cbf08
[ "MIT" ]
null
null
null
app/recipe/test/test_tags_api.py
jtartsi/recipe-app-api
56d35b2eadc426d2214aa3e312a8cc003a9cbf08
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') def cre...
31.51145
71
0.630329
4a093318c2520961c7354d6d8c16a928c5e0dba4
191,935
py
Python
jax/_src/lax/lax.py
VolodyaCO/jax
4d148999404a572ebac6dd1b58f2d93f73245360
[ "Apache-2.0" ]
1
2022-03-10T16:30:31.000Z
2022-03-10T16:30:31.000Z
jax/_src/lax/lax.py
VolodyaCO/jax
4d148999404a572ebac6dd1b58f2d93f73245360
[ "Apache-2.0" ]
null
null
null
jax/_src/lax/lax.py
VolodyaCO/jax
4d148999404a572ebac6dd1b58f2d93f73245360
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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, ...
41.038059
141
0.702347
4a09356b3183f6ada7b08928c3001fd5219f3f05
98,707
py
Python
sdk/python/pulumi_aws_native/lex/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/lex/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/lex/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "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 from...
40.354456
314
0.683558
4a0936a0c9439087d412f3865abec9af99cba83d
63,562
py
Python
src/panoptes/pocs/camera/sbigudrv.py
ASTROGBAE/POCS
ddbc716ba375be92c7af1c8ebd536f9cdbc899da
[ "MIT" ]
69
2015-08-27T01:17:26.000Z
2022-01-05T19:11:09.000Z
src/panoptes/pocs/camera/sbigudrv.py
ASTROGBAE/POCS
ddbc716ba375be92c7af1c8ebd536f9cdbc899da
[ "MIT" ]
1,094
2016-01-19T18:18:06.000Z
2022-03-17T04:28:38.000Z
src/panoptes/pocs/camera/sbigudrv.py
ASTROGBAE/POCS
ddbc716ba375be92c7af1c8ebd536f9cdbc899da
[ "MIT" ]
65
2015-08-27T01:17:28.000Z
2021-02-24T04:12:03.000Z
""" Low level interface to the SBIG Unversal Driver/Library. Reproduces in Python (using ctypes) the C interface provided by SBIG's shared library, i.e. 1 function that does 72 different things selected by passing an integer as the first argument. This is basically a direct translation of the enums and structs defined...
41.060724
100
0.572669
4a0936b81fc3283200d64b406c2d029b78698bc2
6,642
py
Python
experiments/util.py
shlu2019/meta_learning_pacoh
376349e66bdd782e3d06b4bac2ecb56a2a10bcf6
[ "MIT" ]
23
2020-02-13T12:45:42.000Z
2022-03-07T20:37:14.000Z
experiments/util.py
JeremyAlain/meta_learning_pacoh
b4c2c37d9715e74542bab556ac1f5d778cc3409c
[ "MIT" ]
3
2020-09-01T15:24:04.000Z
2021-06-03T10:39:16.000Z
experiments/util.py
JeremyAlain/meta_learning_pacoh
b4c2c37d9715e74542bab556ac1f5d778cc3409c
[ "MIT" ]
9
2020-04-15T09:43:22.000Z
2021-07-18T13:37:38.000Z
import os import copy import json import hashlib import sys import glob import collections import itertools import multiprocessing import pandas as pd from absl import flags from meta_learn.util import get_logger DEFAULT_FLAGS = ['logtostderr', 'alsologtostderr', 'v', 'verbosity', 'stderrthreshold',...
33.715736
102
0.604938
4a0936de6594f4c716776302ac76529180f83ebf
6,338
py
Python
ipclassifier/syllabify/syllabify.py
Chad-Mowbray/iamb-classifier
9da3bbfa2cac4518dae5b01de7c62a100a785a82
[ "MIT" ]
2
2021-09-11T13:12:38.000Z
2022-03-16T23:42:34.000Z
ipclassifier/syllabify/syllabify.py
redova87/iamb-classifier
9da3bbfa2cac4518dae5b01de7c62a100a785a82
[ "MIT" ]
2
2021-09-07T02:35:37.000Z
2022-02-06T08:29:18.000Z
ipclassifier/syllabify/syllabify.py
redova87/iamb-classifier
9da3bbfa2cac4518dae5b01de7c62a100a785a82
[ "MIT" ]
2
2022-02-06T08:27:47.000Z
2022-02-06T17:46:34.000Z
# slightly modified from https://github.com/kylebgorman/syllabify from itertools import chain ## constants SLAX = {'IH1', 'IH2', 'EH1', 'EH2', 'AE1', 'AE2', 'AH1', 'AH2', 'UH1', 'UH2',} VOWELS = {'IY1', 'IY2', 'IY0', 'EY1', 'EY2', 'EY0', 'AA1', 'AA2', 'AA0', ...
37.502959
75
0.508993
4a0937c909b86b0b1c344569fb707e91f1213b25
606
py
Python
model/keras_layer.py
yoshiinet/dcase2021_task2_ar_frame_seq_model
acc2fe8c7ef5be873e42a4b3b85dbf5ce30f4e01
[ "MIT" ]
null
null
null
model/keras_layer.py
yoshiinet/dcase2021_task2_ar_frame_seq_model
acc2fe8c7ef5be873e42a4b3b85dbf5ce30f4e01
[ "MIT" ]
1
2022-03-30T11:29:28.000Z
2022-03-30T11:29:28.000Z
model/keras_layer.py
yoshiinet/dcase2021_task2_ar_frame_seq_model
acc2fe8c7ef5be873e42a4b3b85dbf5ce30f4e01
[ "MIT" ]
1
2021-09-22T11:25:22.000Z
2021-09-22T11:25:22.000Z
# Copyright (c) 2021 ralabo.jp # This software is released under the MIT License. # see https://opensource.org/licenses/mit-license.php # ==================================================== import torch from torch import nn from torch.nn import functional as F def Dense(dim_in, dim_out): """ Linear ...
28.857143
58
0.623762
4a09381dddef13763a8eeda79936a9813b3c17b0
3,868
py
Python
modules/food.py
pyjka/yoda
19e55ace193cf157ea10ffe23d6b3201a140fb3f
[ "MIT" ]
null
null
null
modules/food.py
pyjka/yoda
19e55ace193cf157ea10ffe23d6b3201a140fb3f
[ "MIT" ]
null
null
null
modules/food.py
pyjka/yoda
19e55ace193cf157ea10ffe23d6b3201a140fb3f
[ "MIT" ]
null
null
null
import click import requests FOOD_URL = 'https://www.themealdb.com/api/json/v1/1/search.php?s=' RANDOM_FOOD_URL = 'https://www.themealdb.com/api/json/v1/1/random.php' INGREDIENTS = [] def food_request(food): req = requests.get(FOOD_URL + food) parsed_response = req.json() food_json = parsed_response['mea...
30.944
84
0.605739
4a0938c32763821352afcebe8be61e3f517d05c2
4,228
py
Python
display_layouts/views/image.py
FoamyGuy/circuitpython_display_layouts
d4380236d0613af8b77aaeeeb8d71dbd0a14dbd7
[ "MIT" ]
3
2020-06-29T19:00:23.000Z
2021-05-06T21:56:07.000Z
display_layouts/views/image.py
FoamyGuy/circuitpython_display_layouts
d4380236d0613af8b77aaeeeb8d71dbd0a14dbd7
[ "MIT" ]
null
null
null
display_layouts/views/image.py
FoamyGuy/circuitpython_display_layouts
d4380236d0613af8b77aaeeeb8d71dbd0a14dbd7
[ "MIT" ]
null
null
null
import displayio import adafruit_imageload from display_layouts.layout_exceptions import MissingTypeError, IncorrectTypeError, MissingRequiredAttributesError from display_layouts.views.view import View REQUIRED_ATTRIBUTES = [] class ImageView(View): def __init__(self, display, layout_json): self.json = ...
41.048544
114
0.594134
4a0938c8b877bbfb7d6f2801d0dd25cf7a29bdb4
1,087
py
Python
bin/merge_jsons.py
skrakau/epitopeprediction
a4c32a0ad83f6d7b8e9f36829af6bb75379ab60d
[ "MIT" ]
null
null
null
bin/merge_jsons.py
skrakau/epitopeprediction
a4c32a0ad83f6d7b8e9f36829af6bb75379ab60d
[ "MIT" ]
null
null
null
bin/merge_jsons.py
skrakau/epitopeprediction
a4c32a0ad83f6d7b8e9f36829af6bb75379ab60d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import json import argparse from collections import Counter def __main__(): parser = argparse.ArgumentParser(description="") parser.add_argument('-i', "--input", help='Input directory with JSON reports') args = parser.parse_args() if len(sys.argv) <= 1: ...
29.378378
101
0.669733
4a0939e224ad253a48d287e5a50423c32bc94844
13,137
py
Python
tests/apps/courses/test_cms_plugins_organization.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
tests/apps/courses/test_cms_plugins_organization.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
tests/apps/courses/test_cms_plugins_organization.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for the Organization plugin and its model """ import re from django import forms from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.test.client import RequestFactory from cms.api import add_plugin, create_page from cms.plugin_render...
38.982196
97
0.644439
4a093b3268c02631f28aa5566b08ec71256c560c
8,683
py
Python
smdebug/profiler/analysis/notebook_utils/heatmap.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
133
2019-12-03T18:56:27.000Z
2022-03-18T19:54:49.000Z
smdebug/profiler/analysis/notebook_utils/heatmap.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
384
2019-12-04T03:04:14.000Z
2022-03-31T20:42:48.000Z
smdebug/profiler/analysis/notebook_utils/heatmap.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
64
2019-12-05T20:39:51.000Z
2022-03-25T13:30:54.000Z
# Standard Library import re from copy import deepcopy # Third Party import bokeh import numpy as np from bokeh.io import output_notebook, show from bokeh.models import ColumnDataSource, HoverTool from bokeh.models.glyphs import Image from bokeh.models.tickers import FixedTicker from bokeh.plotting import figure, show...
39.648402
97
0.575838
4a093b937f319b0d8b8afef1debe821c4fe3d91b
3,795
py
Python
tests/test_trimming.py
stephenkraemer/bistro
c9f63e948d20f8f1e59163f6267ad83cb70caa9d
[ "BSD-3-Clause" ]
1
2020-11-09T13:41:46.000Z
2020-11-09T13:41:46.000Z
tests/test_trimming.py
stephenkraemer/bistro
c9f63e948d20f8f1e59163f6267ad83cb70caa9d
[ "BSD-3-Clause" ]
null
null
null
tests/test_trimming.py
stephenkraemer/bistro
c9f63e948d20f8f1e59163f6267ad83cb70caa9d
[ "BSD-3-Clause" ]
null
null
null
"""Test Trimmer""" import numpy as np import pandas as pd import pytest from mqc.trimming import Trimmer from mqc.flag_and_index_values import ( bsseq_strand_indices as b_inds, methylation_status_flags as mflags, ) class AlignedSegmentStub: def __init__(self, tlen): self.template_length = tlen cl...
35.801887
94
0.676943
4a093d35c93be3545dc7d90d11fc5ee84dc26664
13,950
py
Python
sdk/python/pulumi_azure_native/network/v20190401/get_security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190401/get_security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190401/get_security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.888158
481
0.698065
4a093e102cb376bd2c4d6785d9a38e5bef777fc7
18,253
py
Python
VideoSource.py
rommyhsu/python-video-class
ab9abaff213191d162393f6c12f32102ef6f3104
[ "Apache-2.0" ]
null
null
null
VideoSource.py
rommyhsu/python-video-class
ab9abaff213191d162393f6c12f32102ef6f3104
[ "Apache-2.0" ]
null
null
null
VideoSource.py
rommyhsu/python-video-class
ab9abaff213191d162393f6c12f32102ef6f3104
[ "Apache-2.0" ]
null
null
null
# Video module import ctypes import datetime import os import queue import sys import time import cv2 import numpy as np import vlc from PIL import Image # 設置VLC庫路徑,需在import vlc之前 # os.environ['PYTHON_VLC_MODULE_PATH'] = "C:/Users/Rommy/python/vlc-3.0.6-win64" # os.environ['PYTHON_VLC_MODULE_PATH'] = 'C:/Program File...
31.201709
118
0.562045
4a093f86880e87bd1148c71443d7d41f16a179ee
1,316
py
Python
setup.py
aeby/localkhan
01c2d5b020f158c1d6e0ec3268181364ec035c95
[ "MIT" ]
3
2015-03-22T16:07:11.000Z
2015-07-02T18:44:51.000Z
setup.py
aeby/localkhan
01c2d5b020f158c1d6e0ec3268181364ec035c95
[ "MIT" ]
1
2015-05-10T19:52:11.000Z
2015-05-13T17:58:05.000Z
setup.py
aeby/localkhan
01c2d5b020f158c1d6e0ec3268181364ec035c95
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path import localkhan here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='localkhan', version=localkhan.__version__, url...
27.416667
64
0.62234
4a09415993efcf367b628c27d133663b5d800d0d
1,614
py
Python
codereef/misc.py
codereef-ai/client
9e28b988c7b10e5c1f45a0c21d6b5f66a4a17dd9
[ "Apache-2.0" ]
10
2019-12-13T16:05:08.000Z
2021-03-30T07:13:03.000Z
codereef/misc.py
codereef-ai/client
9e28b988c7b10e5c1f45a0c21d6b5f66a4a17dd9
[ "Apache-2.0" ]
12
2019-12-17T15:10:46.000Z
2019-12-30T15:51:04.000Z
codereef/misc.py
codereef-ai/client
9e28b988c7b10e5c1f45a0c21d6b5f66a4a17dd9
[ "Apache-2.0" ]
2
2020-01-07T09:17:50.000Z
2020-01-08T18:28:52.000Z
# # Low-level API # Developer: Grigori Fursin # import urllib import json import sys try: import urllib.request as urllib2 except: import urllib2 try: from urllib.parse import urlencode from urllib.parse import quote_plus except: from urllib import urlencode from urllib import quote_plus def request(...
18.551724
76
0.547088
4a09417630aa6daeef8de283c5d44104dc4f1839
10,289
py
Python
tensorflow/python/estimator/run_config_test.py
DHsLc/test
f286c78b619b81ca95ba9f738cc0de4e14440e44
[ "Apache-2.0" ]
5
2021-01-11T01:51:57.000Z
2021-12-11T17:19:08.000Z
tensorflow/python/estimator/run_config_test.py
radi2015/tensorflow
4b2fb49fd7578afe7e289936f347af581b5bdab1
[ "Apache-2.0" ]
null
null
null
tensorflow/python/estimator/run_config_test.py
radi2015/tensorflow
4b2fb49fd7578afe7e289936f347af581b5bdab1
[ "Apache-2.0" ]
3
2020-07-02T13:46:32.000Z
2021-01-11T01:52:01.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.516529
80
0.777335
4a0941d2050418523c43bdefadc0618cfb3a6c0d
298
py
Python
training/components/training/blessed_model.py
anifort/vertex-mlops-airlines
5a213836070bcbe72419239f05dd15a42bdebd19
[ "MIT" ]
null
null
null
training/components/training/blessed_model.py
anifort/vertex-mlops-airlines
5a213836070bcbe72419239f05dd15a42bdebd19
[ "MIT" ]
null
null
null
training/components/training/blessed_model.py
anifort/vertex-mlops-airlines
5a213836070bcbe72419239f05dd15a42bdebd19
[ "MIT" ]
null
null
null
from kfp.v2.dsl import ( component, Input, Metrics, ) @component() def blessed_model_comp( model_1: Input[Metrics], model_2: Input[Metrics] ) -> int: if model_1.metadata['bt_f1_test_score']>model_2.metadata['svm_f1_test_score']: return 1 else: return 2
18.625
82
0.647651
4a0941de8628274736b119e31440776f970e4385
31,935
py
Python
dogechia/server/server.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
27
2021-07-06T16:33:50.000Z
2022-02-19T21:11:25.000Z
dogechia/server/server.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
15
2021-07-07T02:32:59.000Z
2021-10-15T21:19:51.000Z
dogechia/server/server.py
hagbardcelene/doge-chia
72bdf0a7b20a579fe4645f0cb132955e181e1c44
[ "Apache-2.0" ]
12
2021-07-08T15:36:20.000Z
2022-03-15T08:34:01.000Z
import asyncio import logging import ssl import time import traceback from ipaddress import IPv6Address, ip_address, ip_network, IPv4Network, IPv6Network from pathlib import Path from secrets import token_bytes from typing import Any, Callable, Dict, List, Optional, Union, Set, Tuple from aiohttp import ClientSession,...
45.491453
119
0.625896
4a094296451a8a3646324a9909cc22d3b6f0bf06
2,181
py
Python
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/sms_channel_properties.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
38.946429
76
0.615314