hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
65a5aa2720b7569e8e3c3eddf5d0b00c22731893
815
py
Python
anytask/years/migrations/0001_initial.py
antselevich/anytask
b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf
[ "MIT" ]
31
2015-03-24T21:11:44.000Z
2022-03-28T22:55:12.000Z
anytask/years/migrations/0001_initial.py
antselevich/anytask
b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf
[ "MIT" ]
286
2015-06-11T10:32:16.000Z
2022-03-28T12:01:04.000Z
anytask/years/migrations/0001_initial.py
bcskda/anytask
5a359dcb669b689fc5a4f1705f2c88cd031ab37d
[ "MIT" ]
44
2015-05-23T21:30:51.000Z
2021-11-07T12:56:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Year', fields=[ ('...
30.185185
114
0.6
347b1970a6e9dbbeb3bac746c408584829741896
12,674
py
Python
mathics_django/test.py
danielpyon/mathics-django
c7c66c708e1f1214f13ca24a651b0eeb91a75ad8
[ "Apache-2.0" ]
null
null
null
mathics_django/test.py
danielpyon/mathics-django
c7c66c708e1f1214f13ca24a651b0eeb91a75ad8
[ "Apache-2.0" ]
null
null
null
mathics_django/test.py
danielpyon/mathics-django
c7c66c708e1f1214f13ca24a651b0eeb91a75ad8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import re import pickle import os from argparse import ArgumentParser from datetime import datetime import mathics from mathics.core.definitions import Definitions from mathics.core.evaluation import Evaluation, Output from mathics.core.parser import MathicsS...
29.135632
86
0.573379
01f7b5188268eece9dbcf9980fa687e1b8a73ef6
1,706
py
Python
profiles_api/migrations/0001_initial.py
Chinmay-395/profiles-rest-api
70f733ccc6218cdced0731dc46278f5265d51b4f
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
Chinmay-395/profiles-rest-api
70f733ccc6218cdced0731dc46278f5265d51b4f
[ "MIT" ]
5
2020-06-06T01:40:06.000Z
2022-02-10T09:14:42.000Z
profiles_api/migrations/0001_initial.py
Chinmay-395/profiles-rest-api
70f733ccc6218cdced0731dc46278f5265d51b4f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-04-03 07:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
f189b4b3645aaaac5d4a227bd6a779a1a5893d00
233
py
Python
tests/test_dynamo_autoscaler.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
14
2020-09-30T19:14:31.000Z
2021-08-08T18:34:19.000Z
tests/test_dynamo_autoscaler.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
12
2020-10-27T02:12:57.000Z
2022-03-23T10:57:52.000Z
tests/test_dynamo_autoscaler.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
3
2020-09-29T19:25:19.000Z
2022-02-22T22:58:29.000Z
from unittest.mock import MagicMock from dynamo_query.dynamo_autoscaler import DynamoAutoscaler class TestDynamoAutoscaler: def test_init(self): client_mock = MagicMock() result = DynamoAutoscaler(client_mock)
23.3
59
0.772532
c5ce47f169f1b8e8c038d6510a68610de26e464f
12,715
py
Python
script.py
jetstream0/-Banano_Transaction_Categoriser
3a5238813ba8ce4f96495945ddf6907c12109ea3
[ "MIT" ]
null
null
null
script.py
jetstream0/-Banano_Transaction_Categoriser
3a5238813ba8ce4f96495945ddf6907c12109ea3
[ "MIT" ]
null
null
null
script.py
jetstream0/-Banano_Transaction_Categoriser
3a5238813ba8ce4f96495945ddf6907c12109ea3
[ "MIT" ]
null
null
null
import csv import requests import time import json from datetime import datetime print("Welcome to this banano transaction calculator") print("Please take note, that I take no responsability for any incorrect data generated by this") print("If you are planning on using this, please verify the correctness of the gener...
55.04329
782
0.625954
1fefe7b3bb5dbe9f98b8eef3dcae48e1a50e3af5
5,962
py
Python
src/transformers/modeling_tf_camembert.py
hephaex/transformers
794f2bfb1f304853533aade6d3a198aede88699e
[ "Apache-2.0" ]
647
2020-10-27T01:35:35.000Z
2022-03-29T12:59:11.000Z
src/transformers/modeling_tf_camembert.py
hephaex/transformers
794f2bfb1f304853533aade6d3a198aede88699e
[ "Apache-2.0" ]
18
2020-11-01T17:57:59.000Z
2022-03-16T06:33:40.000Z
src/transformers/modeling_tf_camembert.py
hephaex/transformers
794f2bfb1f304853533aade6d3a198aede88699e
[ "Apache-2.0" ]
38
2020-10-29T12:35:30.000Z
2022-03-24T20:48:07.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
40.283784
224
0.750923
28247062997087fb30ba10365a1e2faf8a9e5130
808
py
Python
var/spack/repos/builtin/packages/popt/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-12-28T14:38:41.000Z
2020-12-28T14:38:41.000Z
var/spack/repos/builtin/packages/popt/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
var/spack/repos/builtin/packages/popt/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Popt(AutotoolsPackage): """The popt library parses command line options.""" homepage ...
33.666667
94
0.680693
f665add85a3e111ab7e75b1c4183671bc95c4541
248
py
Python
data/__init__.py
pvgladkov/density-peaks-sentence-clustering
b73230e17cfe511e5470afd4fa37ac71de10ee25
[ "Apache-2.0" ]
null
null
null
data/__init__.py
pvgladkov/density-peaks-sentence-clustering
b73230e17cfe511e5470afd4fa37ac71de10ee25
[ "Apache-2.0" ]
null
null
null
data/__init__.py
pvgladkov/density-peaks-sentence-clustering
b73230e17cfe511e5470afd4fa37ac71de10ee25
[ "Apache-2.0" ]
null
null
null
import tensorflow_datasets as tfds datasets = { 'cnn_dailymail': tfds.load('cnn_dailymail', split='test', as_supervised=True, shuffle_files=False), 'gigaword': tfds.load('gigaword', split='test', as_supervised=True, shuffle_files=False), }
41.333333
103
0.745968
2f991e6173717e97a7b4e3c4fc4ce9aec048e021
1,911
py
Python
vistec_ser/inference/inference.py
wannaphong/vistec-ser
188249c508b102a32555af3fda31f43d785919c9
[ "Apache-2.0" ]
null
null
null
vistec_ser/inference/inference.py
wannaphong/vistec-ser
188249c508b102a32555af3fda31f43d785919c9
[ "Apache-2.0" ]
null
null
null
vistec_ser/inference/inference.py
wannaphong/vistec-ser
188249c508b102a32555af3fda31f43d785919c9
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List import os import torch.nn.functional as F import torch from ..models.base_model import BaseSliceModel from ..models.network import CNN1DLSTMSlice from ..utils.utils import read_config, load_yaml from ..data.datasets.thaiser import ThaiSERDataModule def setup_server(config_path: str): ...
39.8125
117
0.711669
608801e66251f88418ceea993fc249847debbc7b
2,810
py
Python
indico/modules/events/payment/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/events/payment/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
indico/modules/events/payment/__init__.py
UNOG-Indico/UNOG-Indico-v2
4fa4393cc1f3b453a69f5e0ea3b52c18337831a5
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from flask import session from indico.core import signals from i...
38.493151
117
0.724199
25346498497b49d272b702d6a673a9178e8171a2
1,613
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/exceptions.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/exceptions.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/exceptions.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
31.627451
84
0.771234
c619ef315d541968d220a5ce124f934b19c1eefb
1,697
py
Python
tests/recorder_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
1
2015-11-08T13:00:51.000Z
2015-11-08T13:00:51.000Z
tests/recorder_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
null
null
null
tests/recorder_test.py
alex/asciinema
ff23896174c07719d3b2ace6320a193934a0ac71
[ "MIT" ]
null
null
null
from nose.tools import assert_equal from .test_helper import Test from asciinema.recorder import Recorder import asciinema.timer class FakePtyRecorder(object): class Stdout(object): pass def __init__(self): self.stdout = self.Stdout() self.command = None def record_command(self...
28.762712
75
0.676488
367fdd9c92a5ccd39ad6c2793cef71c8202e9de6
2,897
py
Python
pgoapi/protos/pogoprotos/networking/requests/messages/use_item_egg_incubator_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
14
2017-03-28T16:32:24.000Z
2021-03-13T23:03:57.000Z
pgoapi/protos/pogoprotos/networking/requests/messages/use_item_egg_incubator_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
8
2017-03-01T07:56:09.000Z
2017-08-15T07:37:12.000Z
pgoapi/protos/pogoprotos/networking/requests/messages/use_item_egg_incubator_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
15
2017-02-24T01:30:23.000Z
2021-06-27T08:46:43.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/requests/messages/use_item_egg_incubator_message.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import messa...
37.623377
272
0.792889
74cd59222a2bb5042b13b54810fa5b2c67e10289
1,823
py
Python
apps/shared/models.py
kentuck13/django-example
791200e256c74882f3e1602eaca6985e5e3ea0b0
[ "MIT" ]
3
2018-10-08T20:23:18.000Z
2021-02-15T10:27:27.000Z
apps/shared/models.py
myrubapa/django-example
e7c80235d59cc9fa4acf7abbe03f84cfeb5c042c
[ "MIT" ]
null
null
null
apps/shared/models.py
myrubapa/django-example
e7c80235d59cc9fa4acf7abbe03f84cfeb5c042c
[ "MIT" ]
3
2018-09-12T08:38:46.000Z
2021-12-12T10:00:18.000Z
from django.db import models from django.conf import settings from django.contrib.postgres.fields import JSONField from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType DEFAULT_PERMISSIONS = ('list', 'retrieve', 'create', 'update', 'destroy', ...
30.383333
73
0.700494
4b3297563ed30dda5a59fa41fa454effcb647b15
7,750
py
Python
tests/components/openweathermap/test_config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2020-09-30T21:31:53.000Z
2020-09-30T21:31:53.000Z
tests/components/openweathermap/test_config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
tests/components/openweathermap/test_config_flow.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2021-04-30T01:57:13.000Z
2021-04-30T01:57:13.000Z
"""Define tests for the OpenWeatherMap config flow.""" from pyowm.exceptions.api_call_error import APICallError from pyowm.exceptions.api_response_error import UnauthorizedError from homeassistant import data_entry_flow from homeassistant.components.openweathermap.const import ( CONF_LANGUAGE, DEFAULT_FORECAST...
33.261803
114
0.692129
02372bc5827159ee52ae41e7d0fd66951760caca
5,075
py
Python
tests/test_monitors.py
PRECISE/SMEDL
b0096d11fe4aa9febcf2f01346e2e28c6db13a32
[ "MIT" ]
null
null
null
tests/test_monitors.py
PRECISE/SMEDL
b0096d11fe4aa9febcf2f01346e2e28c6db13a32
[ "MIT" ]
null
null
null
tests/test_monitors.py
PRECISE/SMEDL
b0096d11fe4aa9febcf2f01346e2e28c6db13a32
[ "MIT" ]
null
null
null
""" Test generated monitors using the RabbitMQ transport. """ import pytest import json import os import os.path import sys import smedl from smedl.parser.exceptions import SmedlException from tatsu.exceptions import FailedParse from utils import * # Gather test cases test_monitors, test_cases = collect_test_cases...
39.038462
79
0.657537
9b43ab95c6b16da555f8c71ccb8bc6522aabfd6a
524
py
Python
BackEnd/Clase_Estudiante.py
CRS19/registro_notas_python
e1baa020ad5205f786053804dc9116900189c763
[ "Apache-2.0" ]
null
null
null
BackEnd/Clase_Estudiante.py
CRS19/registro_notas_python
e1baa020ad5205f786053804dc9116900189c763
[ "Apache-2.0" ]
null
null
null
BackEnd/Clase_Estudiante.py
CRS19/registro_notas_python
e1baa020ad5205f786053804dc9116900189c763
[ "Apache-2.0" ]
null
null
null
class Estudiante: def __init__ (self, id, cedula, nombre_apellido, registro): self.id = id self.cedula = cedula self.nombre_apellido = nombre_apellido self.registro = registro #Este metodo va a registrar la asistencia en esa posicion por medio del crud (objeto) #posicion es un num...
34.933333
85
0.700382
d9171fa0dc475adc8a1d34e88600a1bc7111ed0e
2,750
py
Python
tests/test_optimize.py
polyledger/lattice
899eca4b66f8f3914fd83a021644e226abd7260e
[ "MIT" ]
1
2022-01-16T22:21:05.000Z
2022-01-16T22:21:05.000Z
tests/test_optimize.py
polyledger/lattice
899eca4b66f8f3914fd83a021644e226abd7260e
[ "MIT" ]
3
2021-09-15T00:38:09.000Z
2021-09-15T00:38:30.000Z
tests/test_optimize.py
polyledger/lattice
899eca4b66f8f3914fd83a021644e226abd7260e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test the optimize module. To run tests for this file only, use the following command: ``` $ python -m unittest tests.test_optimize ``` You can run a specific test like so: ``` $ python -m unittest tests.test_optimize.TestOptimize.test_allocate ``` """ import os import unittest import n...
31.976744
80
0.575636
00276387f29811f2ebce5cc3c6a53148d8c368d1
3,767
py
Python
pmu-query.py
jingliu9/pcm
2606359957df57e3a4ab4d25242c878b6283a201
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
17
2020-11-25T17:45:21.000Z
2021-12-24T06:18:33.000Z
pmu-query.py
jingliu9/pcm
2606359957df57e3a4ab4d25242c878b6283a201
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2022-02-20T14:23:48.000Z
2022-02-25T08:53:40.000Z
pmu-query.py
jingliu9/pcm
2606359957df57e3a4ab4d25242c878b6283a201
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-11-20T17:21:46.000Z
2022-01-21T04:35:24.000Z
#!/usr/bin/python import urllib2 import json, csv import subprocess import sys import platform import getopt import re all_flag = False download_flag = False filename=None offcore_events=[] core_events=[] try: opts, args = getopt.getopt(sys.argv[1:],'a,f:,d',['all','file=','download']) for o, a in opts: ...
37.67
103
0.57579
dbeeb2c836d6f041e6e99801134415e7afaaceaa
12,110
py
Python
tests/terraform/graph/variable_rendering/test_renderer.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
tests/terraform/graph/variable_rendering/test_renderer.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
2
2022-01-10T10:59:53.000Z
2022-01-12T10:51:58.000Z
tests/terraform/graph/variable_rendering/test_renderer.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import os from unittest.case import TestCase from checkov.terraform.graph_builder.graph_components.block_types import BlockType from checkov.terraform.graph_manager import TerraformGraphManager from checkov.terraform.graph_builder.variable_rendering.renderer import TerraformVariableRenderer from tests.terraform.graph....
60.854271
221
0.726177
d25f2f1d2513949d98dcacedcc87daa1d0e9c1fb
859
py
Python
tests/logic_adapter_tests/test_best_match.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
1
2022-02-25T22:08:35.000Z
2022-02-25T22:08:35.000Z
tests/logic_adapter_tests/test_best_match.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
null
null
null
tests/logic_adapter_tests/test_best_match.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
1
2018-09-21T20:50:15.000Z
2018-09-21T20:50:15.000Z
from unittest.mock import MagicMock from chatterbot.logic import BestMatch from chatterbot.conversation import Statement from tests.base_case import ChatBotTestCase class BestMatchTestCase(ChatBotTestCase): """ Unit tests for the BestMatch logic adapter. """ def setUp(self): super(BestMatchTe...
30.678571
74
0.697322
1dd518d71f1ba9116bd2e975e964f819f17db800
13,120
py
Python
functorch/_src/vmap.py
kshitij12345/functorch
e0995ca3ae42b428b48a2358e6e1833fc7e8d338
[ "BSD-3-Clause" ]
null
null
null
functorch/_src/vmap.py
kshitij12345/functorch
e0995ca3ae42b428b48a2358e6e1833fc7e8d338
[ "BSD-3-Clause" ]
null
null
null
functorch/_src/vmap.py
kshitij12345/functorch
e0995ca3ae42b428b48a2358e6e1833fc7e8d338
[ "BSD-3-Clause" ]
1
2021-12-31T14:41:26.000Z
2021-12-31T14:41:26.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch import functools from torch import Tensor from typing import Any, Callable, Optional, Tuple, Union, ...
46.360424
123
0.65968
4b4298391f2684e1012249a2e8ab11820e04eae7
192
py
Python
dotnetz/System/__init__.py
shawwn/dotnetz
c777e4c58e1ff1c8ed4aec8ba70509f403897c9d
[ "MIT" ]
null
null
null
dotnetz/System/__init__.py
shawwn/dotnetz
c777e4c58e1ff1c8ed4aec8ba70509f403897c9d
[ "MIT" ]
null
null
null
dotnetz/System/__init__.py
shawwn/dotnetz
c777e4c58e1ff1c8ed4aec8ba70509f403897c9d
[ "MIT" ]
null
null
null
from dotnetz.runtime import * from dotnetz.System.IDisposable import * from dotnetz.System.Disposable import * from dotnetz.System.EventArgs import * from dotnetz.System.EventHandler import *
32
41
0.822917
55bf2ec2e85f341c4311d0ab752e0df713f35601
1,440
py
Python
case_study/_5_DeepWalk Embedding.py
HongyiZhu/D-GEF
64cbc9dfab7cfe4951a0f0527b8371d90eae03f8
[ "MIT" ]
2
2020-07-14T22:00:43.000Z
2020-11-24T21:54:20.000Z
case_study/_5_DeepWalk Embedding.py
HongyiZhu/D-GEF
64cbc9dfab7cfe4951a0f0527b8371d90eae03f8
[ "MIT" ]
null
null
null
case_study/_5_DeepWalk Embedding.py
HongyiZhu/D-GEF
64cbc9dfab7cfe4951a0f0527b8371d90eae03f8
[ "MIT" ]
2
2020-08-27T05:11:47.000Z
2022-01-27T01:44:17.000Z
from openne.node2vec import Node2vec from openne.graph import Graph import networkx as nx import operator import pickle from case_config import * embedding_size = 128 window_size = 10 # for DeepWalk and Node2vec walk_length = 80 # for DeepWalk and Node2vec number_...
38.918919
107
0.65625
7532f8c6c6042d3bf3a352c6d4dd0ab6312ad1c2
1,136
py
Python
opensentiment/data/dataset.py
johannespischinger/senti_anal
bd9fdaf35c8b2d81e509b2c69b015dd455ee83c2
[ "MIT" ]
2
2022-01-07T10:08:13.000Z
2022-01-19T10:23:11.000Z
opensentiment/data/dataset.py
johannespischinger/senti_anal
bd9fdaf35c8b2d81e509b2c69b015dd455ee83c2
[ "MIT" ]
53
2022-01-07T10:34:15.000Z
2022-01-20T22:58:40.000Z
opensentiment/data/dataset.py
johannespischinger/senti_anal
bd9fdaf35c8b2d81e509b2c69b015dd455ee83c2
[ "MIT" ]
null
null
null
"""Code based on https://github.com/Nitesh0406/-Fine-Tuning-BERT-base-for-Sentiment-Analysis./blob/main /BERT_Sentiment.ipynb """ import torch from torch.utils.data import Dataset class AmazonPolarity(Dataset): def __init__(self, sample, target, tokenizer, max_len): super().__init__() self.sample ...
30.702703
103
0.608275
c361a8d8441cd192c5aeecd1db4737c93fe21d85
4,926
py
Python
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/albasicawareness_human_found.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/albasicawareness_human_found.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/doc/_downloads/albasicawareness_human_found.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
1
2020-10-06T07:44:12.000Z
2020-10-06T07:44:12.000Z
#! /usr/bin/env python # -*- encoding: UTF-8 -*- """Example: A Simple class to Find Human with BasicAwareness""" import qi import argparse import sys import time class HumanTrackedEventWatcher(object): """ A class to react to HumanTracked and PeopleLeft events """ def __init__(self, app): """ ...
35.438849
80
0.607592
7b60d7a9768bdcadec915efa0c0270d654acb4ce
16,491
py
Python
openmdao/utils/tests/test_indexer.py
kaushikponnapalli/OpenMDAO
d71f86240bd87447b2517b658819a986f1d22f36
[ "Apache-2.0" ]
null
null
null
openmdao/utils/tests/test_indexer.py
kaushikponnapalli/OpenMDAO
d71f86240bd87447b2517b658819a986f1d22f36
[ "Apache-2.0" ]
null
null
null
openmdao/utils/tests/test_indexer.py
kaushikponnapalli/OpenMDAO
d71f86240bd87447b2517b658819a986f1d22f36
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from numpy.testing import assert_equal import openmdao.api as om from openmdao.utils.indexer import indexer from openmdao.utils.assert_utils import assert_near_equal class IndexerTestCase(unittest.TestCase): def test_int(self): ind = indexer[4] src = np.arange(...
38.351163
183
0.586987
eb066f7b5ecd588f286e51377e76b02f64c9cdb8
906
py
Python
util/config.py
TheStarterPack/Word-Embedding-Bias-Mitigation-Downstream
09a571f1d5d16441d4564bcc49d6d93324d77f94
[ "Apache-2.0" ]
null
null
null
util/config.py
TheStarterPack/Word-Embedding-Bias-Mitigation-Downstream
09a571f1d5d16441d4564bcc49d6d93324d77f94
[ "Apache-2.0" ]
null
null
null
util/config.py
TheStarterPack/Word-Embedding-Bias-Mitigation-Downstream
09a571f1d5d16441d4564bcc49d6d93324d77f94
[ "Apache-2.0" ]
null
null
null
LM_SEQ_LEN = 50 LM_SEQ_MIN_LEN = 10 CONLL2003_SEN_LEN = 39 CONLL2003_MIN_SEN_LEN = 7 PADDING_WORD = "<pad>" NER_TAGS = {0: '0: O', 1: '1: B-PER', 2: '2: I-PER', 3: '3: B-ORG', 4: '4: I-ORG', 5: '5: B-LOC', 6: '6: I-LOC', 7: '7: B-MISC', 8: '8: I-MISC', 9: '9: PAD'} POS_TAGS = {0: '"', 1: "''", 2: '#', 3: ...
43.142857
117
0.444812
fc10f30f5f8300b8d8d6b6237abc5f2fd739d39b
343
py
Python
auctions/admin.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
14
2020-07-26T07:45:54.000Z
2022-03-31T00:05:58.000Z
auctions/admin.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
null
null
null
auctions/admin.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
17
2020-07-20T06:22:12.000Z
2021-04-12T11:12:09.000Z
from django.contrib import admin from .models import User, Listing, Bid,Comment,Watchlist,Closedbid,Alllisting # Register your models here. admin.site.register(User) admin.site.register(Listing) admin.site.register(Bid) admin.site.register(Comment) admin.site.register(Watchlist) admin.site.register(Closedbid) admin.si...
31.181818
77
0.825073
b013887ff3709663b3dd481043e24f3a96f0722f
1,218
py
Python
datanator_rest_api/server/AutoResolver.py
KarrLab/datanator_rest_api
eeadf30703329fbc8feeb9b96db1b78b54a8ccce
[ "MIT" ]
null
null
null
datanator_rest_api/server/AutoResolver.py
KarrLab/datanator_rest_api
eeadf30703329fbc8feeb9b96db1b78b54a8ccce
[ "MIT" ]
130
2019-08-22T22:29:05.000Z
2020-12-02T15:32:23.000Z
datanator_rest_api/server/AutoResolver.py
KarrLab/datanator_rest_api
eeadf30703329fbc8feeb9b96db1b78b54a8ccce
[ "MIT" ]
null
null
null
from connexion.resolver import RestyResolver import re class AutoResolver(RestyResolver): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def resolve_operation_id_using_rest_semantics(self, operation): """ Resolves the operationId using REST semantics :...
31.230769
115
0.612479
07186c2c3437fbee2789bc2c6b02834e9b649926
2,775
py
Python
piff/mean_interp.py
rmjarvis/Piff
156e96766f647130f05e28c40b52afdc041a3f4a
[ "BSD-2-Clause" ]
41
2016-03-22T05:31:48.000Z
2022-02-03T12:24:37.000Z
piff/mean_interp.py
rmjarvis/Piff
156e96766f647130f05e28c40b52afdc041a3f4a
[ "BSD-2-Clause" ]
118
2016-02-29T04:58:45.000Z
2022-02-21T23:39:26.000Z
piff/mean_interp.py
rmjarvis/Piff
156e96766f647130f05e28c40b52afdc041a3f4a
[ "BSD-2-Clause" ]
15
2016-07-25T17:07:07.000Z
2022-01-25T12:39:41.000Z
# Copyright (c) 2016 by Mike Jarvis and the other collaborators on GitHub at # https://github.com/rmjarvis/Piff All rights reserved. # # Piff is free software: Redistribution and use in source and binary forms # with or without modification, are permitted provided that the following # conditions are met: # # 1. Redist...
36.513158
96
0.656577
5088b7923b5e6a331246687d54420ef90601e5a2
1,708
py
Python
userbot/Plugins/avengersdp.py
its-leo-bitch/LEO-BITCH-USERBOT
b465dbebe06137682e604c36b40bf3020b1a01fd
[ "MIT" ]
null
null
null
userbot/Plugins/avengersdp.py
its-leo-bitch/LEO-BITCH-USERBOT
b465dbebe06137682e604c36b40bf3020b1a01fd
[ "MIT" ]
null
null
null
userbot/Plugins/avengersdp.py
its-leo-bitch/LEO-BITCH-USERBOT
b465dbebe06137682e604c36b40bf3020b1a01fd
[ "MIT" ]
3
2020-12-20T15:58:16.000Z
2021-09-07T04:39:02.000Z
#Made By @ceowhitehatcracks Keep Credits If You Are Goanna Kang This Lol #And Thanks To The Creator Of Autopic This Script Was Made from Snippets From That Script #Usage .avengersdp Im Not Responsible For Any Ban caused By This import requests , re , random import urllib , os from telethon.tl import functions f...
21.35
113
0.694965
ad730a41d45c975e6a699eb6d358e788e750bcb1
3,604
py
Python
src/sentry/api/endpoints/project_searches.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/endpoints/project_searches.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/api/endpoints/project_searches.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.db import IntegrityError, transaction from rest_framework import serializers from rest_framework.response import Response from django.db.models import Q from sentry.api.bases.project import ProjectEndpoint, RelaxedSearchPermission from sentry.api.serializers import s...
34.990291
99
0.553552
95258496ee0a2a6499b5916bce91b92c8b8465ae
10,319
py
Python
HLTrigger/Configuration/python/HLT_Fake1_cff.py
Hemida93/cmssw
75a37059fc69b625a5e985f4f2e684cdebeeb8b5
[ "Apache-2.0" ]
1
2021-01-25T16:39:35.000Z
2021-01-25T16:39:35.000Z
HLTrigger/Configuration/python/HLT_Fake1_cff.py
Hemida93/cmssw
75a37059fc69b625a5e985f4f2e684cdebeeb8b5
[ "Apache-2.0" ]
28
2019-08-15T15:21:11.000Z
2021-12-29T14:13:18.000Z
HLTrigger/Configuration/python/HLT_Fake1_cff.py
Hemida93/cmssw
75a37059fc69b625a5e985f4f2e684cdebeeb8b5
[ "Apache-2.0" ]
1
2020-08-18T10:29:49.000Z
2020-08-18T10:29:49.000Z
# hltGetConfiguration --cff --data /dev/CMSSW_11_2_0/Fake1 --type Fake1 # /dev/CMSSW_11_2_0/Fake1/V6 (CMSSW_11_2_0_pre7) import FWCore.ParameterSet.Config as cms fragment = cms.ProcessFragment( "HLT" ) fragment.HLTConfigVersion = cms.PSet( tableName = cms.string('/dev/CMSSW_11_2_0/Fake1/V6') ) fragment.streams =...
46.066964
206
0.746293
a407a608a079dda4547c7eaebe432b072972ab3f
4,912
py
Python
data/datasets/csl.py
crisbodnar/cwn
31e40d839d9996ef1c1d46931702ca5a69dbe2ce
[ "MIT" ]
74
2021-07-30T08:36:58.000Z
2022-03-27T19:50:49.000Z
data/datasets/csl.py
crisbodnar/cwn
31e40d839d9996ef1c1d46931702ca5a69dbe2ce
[ "MIT" ]
14
2022-01-02T11:22:00.000Z
2022-01-06T19:32:34.000Z
data/datasets/csl.py
crisbodnar/cwn
31e40d839d9996ef1c1d46931702ca5a69dbe2ce
[ "MIT" ]
13
2021-08-05T15:26:06.000Z
2022-02-19T06:59:15.000Z
import os.path as osp import numpy as np import torch from data.datasets import InMemoryComplexDataset from data.utils import convert_graph_dataset_with_rings from torch_geometric.datasets import GNNBenchmarkDataset from torch_geometric.utils import remove_self_loops class CSLDataset(InMemoryComplexDataset): """...
40.262295
127
0.647191
777c155b6a1a1d8aa2bdba6f0b897ac4a63d8787
1,985
py
Python
testing/correctness/tests/autoscale/autoscale_tests.py
cristaloleg/wallaroo
3ec7b8dec402ad148c98c3bf52f57af75b6fb8ae
[ "Apache-2.0" ]
null
null
null
testing/correctness/tests/autoscale/autoscale_tests.py
cristaloleg/wallaroo
3ec7b8dec402ad148c98c3bf52f57af75b6fb8ae
[ "Apache-2.0" ]
null
null
null
testing/correctness/tests/autoscale/autoscale_tests.py
cristaloleg/wallaroo
3ec7b8dec402ad148c98c3bf52f57af75b6fb8ae
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 The Wallaroo 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 agree...
31.015625
80
0.630227
c1e34d4bca8ad30bb575479f8c56316f90012e98
3,274
py
Python
resources/make_pr.py
u-ashish/aioboto3
71c10513c0f0de81b756854c3111d7d27d2ee6ed
[ "Apache-2.0" ]
357
2017-09-27T14:18:53.000Z
2022-03-30T20:55:19.000Z
resources/make_pr.py
u-ashish/aioboto3
71c10513c0f0de81b756854c3111d7d27d2ee6ed
[ "Apache-2.0" ]
164
2017-09-27T20:27:50.000Z
2022-03-29T20:08:07.000Z
resources/make_pr.py
u-ashish/aioboto3
71c10513c0f0de81b756854c3111d7d27d2ee6ed
[ "Apache-2.0" ]
45
2018-05-09T16:11:16.000Z
2022-03-25T21:20:36.000Z
import importlib.machinery import importlib.util import setuptools import pkg_resources import requests import sys import os from github import Github QUIT_EARLY_EXIT_CODE = 38 def extract_values_from_setuptools(): # Wont work if setup.py doesnt use setuptools loader = importlib.machinery.SourceFileLoader('t...
32.098039
139
0.717166
510746e30d928bd4d0bf18714e1cd1e642703fe1
15,462
py
Python
verce-hpc-pe/src/wfs_input_generator/backends/write_ses3d_4_0.py
KNMI/VERCE
c2f9eaa70ecf1621a218afc5d73ca1304ca8ed36
[ "MIT" ]
2
2017-09-07T04:33:18.000Z
2019-01-07T13:32:15.000Z
verce-hpc-pe/src/wfs_input_generator/backends/write_ses3d_4_0.py
KNMI/VERCE
c2f9eaa70ecf1621a218afc5d73ca1304ca8ed36
[ "MIT" ]
2
2016-10-06T13:07:05.000Z
2017-12-20T09:47:08.000Z
verce-hpc-pe/src/wfs_input_generator/backends/write_ses3d_4_0.py
KNMI/VERCE
c2f9eaa70ecf1621a218afc5d73ca1304ca8ed36
[ "MIT" ]
4
2016-04-25T22:15:40.000Z
2017-12-18T14:40:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Input file writer for SES3D 4.0. :copyright: Lion Krischer (krischer@geophysik.uni-muenchen.de), 2013 :license: GNU General Public License, Version 3 (http://www.gnu.org/copyleft/gpl.html) """ EARTH_RADIUS = 6371 * 1000 import numpy as np import obspy impo...
42.95
79
0.54482
04ddc9944a00f377ed276b91a7e62ea3645c96c6
28,032
py
Python
tensorflow/bbox/yolov3-helloworld/dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
tensorflow/bbox/yolov3-helloworld/dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
tensorflow/bbox/yolov3-helloworld/dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
''' This code is inspired on https://github.com/jrieke/shape-detection/ ''' import matplotlib.pyplot as plt import matplotlib import numpy as np import datetime import random # import cairo,math from skimage.draw import circle, polygon from tqdm import tqdm import h5py, os class HelloWorldDataset: def __init__(s...
45.067524
195
0.558005
4de442451d81bd46476e10c56df27aa02a16652e
10,358
py
Python
rosters/models.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
18
2019-10-27T02:53:57.000Z
2021-12-30T06:02:12.000Z
rosters/models.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
9
2020-06-06T02:24:55.000Z
2021-09-11T03:54:05.000Z
rosters/models.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
7
2020-04-20T03:25:56.000Z
2021-09-09T06:50:24.000Z
"""Models.""" from django.db import models from django.contrib.auth import get_user_model from django.urls import reverse class RosterSettings(models.Model): """Roster settings.""" roster_name = models.CharField( max_length=15, null=False, blank=False, default="No Roster Name Set" ) not_used...
26.903896
77
0.625217
ba6ced051ff9a7f5c07a3190f1aea594d60bda48
856
py
Python
archive_for_wyko/Pyro-3.6/examples/benchmark/bench.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
null
null
null
archive_for_wyko/Pyro-3.6/examples/benchmark/bench.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
3
2022-01-16T01:05:01.000Z
2022-02-23T14:05:28.000Z
archive_for_wyko/Pyro-3.6/examples/benchmark/bench.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
1
2022-01-14T14:04:07.000Z
2022-01-14T14:04:07.000Z
class sub1: def meth1(s,arg): return 'Dit is sub1.meth1!' class sub2(sub1): def meth2(s,arg): return 'Dit is sub2.meth2!' class sub3(sub2): def meth3(s,arg): return 'Dit is sub3.meth3!' class sub4(sub3,sub2): def meth4(s,arg): return 'Dit is sub4.meth4!' class bench(sub4): def length(self, string): return len(str...
28.533333
72
0.700935
fc26488e84b607c0e52882b6a88cf54195db4be6
149,924
py
Python
import_data/mysql-connector-python-2.1.6/tests/test_bugs.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
null
null
null
import_data/mysql-connector-python-2.1.6/tests/test_bugs.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
null
null
null
import_data/mysql-connector-python-2.1.6/tests/test_bugs.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
1
2020-07-23T01:49:44.000Z
2020-07-23T01:49:44.000Z
# -*- coding: utf-8 -*- # MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. Th...
34.065894
81
0.579627
a11075cb04dd6ced43365b5750dc5f129c8d63d2
4,323
py
Python
DataSciencePractice/MachineLearning/Linear_regression_with_gradient_descent.py
47shubh/blog
79f349411c7cfbbc52010f5627401b33c74cc40b
[ "Apache-2.0" ]
null
null
null
DataSciencePractice/MachineLearning/Linear_regression_with_gradient_descent.py
47shubh/blog
79f349411c7cfbbc52010f5627401b33c74cc40b
[ "Apache-2.0" ]
null
null
null
DataSciencePractice/MachineLearning/Linear_regression_with_gradient_descent.py
47shubh/blog
79f349411c7cfbbc52010f5627401b33c74cc40b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Linear Regression With Gradient Descent # Linear Regression is the art of finding relationship between two or more variables and it is a kind of supervised learning problem which uses continous value dataset. Linear regression is useful in finding the best fit line which d...
35.727273
307
0.708536
2b0823806306e95de80b37510219b6b55f6cacc5
1,484
py
Python
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
217
2015-01-08T04:49:42.000Z
2022-03-27T10:11:58.000Z
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
185
2015-05-03T13:26:31.000Z
2022-03-28T03:08:59.000Z
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
133
2015-02-11T09:17:45.000Z
2022-03-31T07:28:54.000Z
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
29.68
74
0.703504
f491cdfec73b225b98c37ed9642ef66e7894335e
2,045
py
Python
pandaharvester/harvestertest/stageInTest.py
nikmagini/panda-harvester
707955e7717bc6a15e722e857668b496d9563b85
[ "Apache-2.0" ]
2
2017-04-13T10:39:53.000Z
2018-10-13T22:00:47.000Z
pandaharvester/harvestertest/stageInTest.py
nikmagini/panda-harvester
707955e7717bc6a15e722e857668b496d9563b85
[ "Apache-2.0" ]
null
null
null
pandaharvester/harvestertest/stageInTest.py
nikmagini/panda-harvester
707955e7717bc6a15e722e857668b496d9563b85
[ "Apache-2.0" ]
null
null
null
import sys import time from pandaharvester.harvestercore.queue_config_mapper import QueueConfigMapper from pandaharvester.harvestercore.job_spec import JobSpec queueName = sys.argv[1] queueConfigMapper = QueueConfigMapper() queueConfig = queueConfigMapper.get_queue(queueName) jobSpec = JobSpec() jobSpec.jobParams =...
31.461538
160
0.6978
7a5591f3fbf762a733ce8960627f05f5e4b2fc5d
16,099
py
Python
python/pyspark/ml/fpm.py
adamtobey/spark
20cd47e82d7d84516455df960ededbd647694aa5
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-02T10:43:54.000Z
2020-07-02T10:43:54.000Z
python/pyspark/ml/fpm.py
adamtobey/spark
20cd47e82d7d84516455df960ededbd647694aa5
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2016-09-25T12:38:39.000Z
2020-06-30T00:13:12.000Z
python/pyspark/ml/fpm.py
adamtobey/spark
20cd47e82d7d84516455df960ededbd647694aa5
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2016-09-09T03:54:34.000Z
2016-09-09T03:54:34.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...
35.696231
100
0.586061
9869fbfe5840bfc64d6d10f5eb380a8ad56e144e
263
py
Python
notetool/download/magnet/core.py
notechats/noteutil
bf58e0e3575dac18fff2f4cfcd7fa5ae2f1662fb
[ "Apache-2.0" ]
1
2020-08-05T07:45:00.000Z
2020-08-05T07:45:00.000Z
notetool/download/magnet/core.py
notechats/notetool
bf58e0e3575dac18fff2f4cfcd7fa5ae2f1662fb
[ "Apache-2.0" ]
null
null
null
notetool/download/magnet/core.py
notechats/notetool
bf58e0e3575dac18fff2f4cfcd7fa5ae2f1662fb
[ "Apache-2.0" ]
null
null
null
import feedparser url = 'https://rsshub.app/weibo/search/hot' url = 'https://www.oschina.net/news/rss' data = feedparser.parse(url) print(data) # 标题 print(data['feed'].title) print(data.feed.title) # rss源链接 print(data.feed.link) # 子标题 print(data.feed.subtitle)
17.533333
43
0.726236
01573b241dd4b761f12b57ce582aa2ba6bf1fd07
994
py
Python
kubernetes/test/test_v1_controller_revision.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
1
2019-04-14T23:51:35.000Z
2019-04-14T23:51:35.000Z
kubernetes/test/test_v1_controller_revision.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_controller_revision.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.088889
105
0.71831
fb02836a2d7fad01796fdb73bd1d809c39cf060d
1,902
py
Python
sohutv/middlewares.py
hailinzeng/sohutv
5d9197a4db92cbb35a706de22dcc2eb8ccfa5a38
[ "MIT" ]
null
null
null
sohutv/middlewares.py
hailinzeng/sohutv
5d9197a4db92cbb35a706de22dcc2eb8ccfa5a38
[ "MIT" ]
null
null
null
sohutv/middlewares.py
hailinzeng/sohutv
5d9197a4db92cbb35a706de22dcc2eb8ccfa5a38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class SohutvSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ac...
33.368421
78
0.672976
0f5f8a5a619747d80edaceb3cef24b473d7bedc2
21,589
py
Python
vnpy/api/huobi/vnhuobi.py
vicjoe/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
2
2016-07-19T08:12:11.000Z
2017-10-12T06:02:06.000Z
vnpy/api/huobi/vnhuobi.py
conglin/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
null
null
null
vnpy/api/huobi/vnhuobi.py
conglin/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
1
2018-11-30T02:13:44.000Z
2018-11-30T02:13:44.000Z
# encoding: utf-8 import urllib import hmac import base64 import hashlib import requests import traceback from copy import copy from datetime import datetime from threading import Thread from queue import Queue, Empty from multiprocessing.dummy import Pool from time import sleep import json import zlib from websocke...
31.889217
101
0.400065
d3438924e8d6d98bf7f27bb4bbd8bdb3e5ccf7e5
304
py
Python
server/computation_core/script_core/args_script.py
Rexarrior/plotMaker
6d51aed20c59f581bf7926009076a7509d365029
[ "Apache-2.0" ]
null
null
null
server/computation_core/script_core/args_script.py
Rexarrior/plotMaker
6d51aed20c59f581bf7926009076a7509d365029
[ "Apache-2.0" ]
4
2021-03-10T18:26:45.000Z
2022-02-27T04:51:29.000Z
server/computation_core/script_core/args_script.py
Rexarrior/plotMaker
6d51aed20c59f581bf7926009076a7509d365029
[ "Apache-2.0" ]
null
null
null
import sys def is_numeric(n): try: float(n) except ValueError: return False else: return True def declare_arg_vars(): for arg in sys.argv: parts = arg.split('=') name = parts[0] value = parts[1] exec(f'{name} = {float(value)}')
16
40
0.526316
1973a5c6b6cda00aa1280d4742da35d12e940f67
14,838
py
Python
dask/tests/test_base.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
1
2021-02-16T06:12:20.000Z
2021-02-16T06:12:20.000Z
dask/tests/test_base.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
null
null
null
dask/tests/test_base.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import pytest from operator import add, mul import subprocess import sys import dask from dask import delayed from dask.base import (compute, tokenize, normalize_token, normalize_function, visualize, persist, function_cache) from dask.delayed import Delayed fro...
29.324111
95
0.600822
3f0174f016c940cfb422cd066789c2e268b8de24
844
py
Python
zemfrog/loaders/staticfile.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
null
null
null
zemfrog/loaders/staticfile.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
null
null
null
zemfrog/loaders/staticfile.py
aprilahijriyan/zemfrog
0a4ebc303caa8fadf89ca0cc8569de60c61f3252
[ "MIT" ]
null
null
null
from flask import Flask, send_from_directory def loader(app: Flask): """ This function is to create multiple static files based on the ``STATICFILES`` configuration. """ staticfiles = app.config.get("STATICFILES", []) for static in staticfiles: path, endpoint, static_folder = st...
30.142857
97
0.582938
d1febbf3c7c46b274f07ea84d59a6235c772ee65
28,931
py
Python
gluon/datasets/coco_hpe1_dataset.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
2
2020-11-14T08:40:41.000Z
2021-11-08T09:30:41.000Z
gluon/datasets/coco_hpe1_dataset.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
null
null
null
gluon/datasets/coco_hpe1_dataset.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
2
2020-09-01T12:22:50.000Z
2020-10-24T22:02:35.000Z
""" COCO keypoint detection (2D single human pose estimation) dataset. """ import os import copy import cv2 import numpy as np import mxnet as mx from mxnet.gluon.data import dataset from .dataset_metainfo import DatasetMetaInfo class CocoHpe1Dataset(dataset.Dataset): """ COCO keypoint detection (2D sing...
35.281707
119
0.543742
e85be1d6c87bbd7c1de492564945328b918d76ca
9,605
py
Python
tests/contrib/botocore/test.py
Intelladon-LLC/dd-trace-py
8c450b56ba87cd8cab916bb579a01837c35b0c01
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/botocore/test.py
Intelladon-LLC/dd-trace-py
8c450b56ba87cd8cab916bb579a01837c35b0c01
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-12-22T16:56:55.000Z
2020-12-22T16:56:55.000Z
tests/contrib/botocore/test.py
kenferrara/dd-trace-py
12e52e0ab804061e72b0f76214f5e4bb475ae20f
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-12-22T16:54:02.000Z
2020-12-22T16:54:02.000Z
# 3p import botocore.session from moto import mock_s3, mock_ec2, mock_lambda, mock_sqs, mock_kinesis, mock_kms # project from ddtrace import Pin from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.botocore.patch import patch, unpatch from ddtrace.compat import stringify # testing from tests.o...
36.520913
95
0.653201
947bfed7cf7376c0c14fb0cfcbc747eeab7aa5bc
1,078
py
Python
greendoge/util/json_util.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
44
2021-07-06T10:09:06.000Z
2022-02-09T04:30:14.000Z
greendoge/util/json_util.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
67
2021-07-06T11:57:18.000Z
2022-02-02T16:14:15.000Z
greendoge/util/json_util.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
16
2021-07-06T10:36:37.000Z
2022-03-15T08:35:16.000Z
import dataclasses import json from typing import Any from aiohttp import web from greendoge.wallet.util.wallet_types import WalletType class EnhancedJSONEncoder(json.JSONEncoder): """ Encodes bytes as hex strings with 0x, and converts all dataclasses to json. """ def default(self, o: Any): ...
26.292683
79
0.656772
387449a610d55fb4f87bf0e7df298e0d1fa1d376
1,266
py
Python
Data Pipelines with Airflow/plugins/operators/data_quality.py
KostasD21/Udacity-DataEngineer-Projects
814f6253dbfa3d215d36eb3fa16266b6e1dcc22b
[ "MIT" ]
null
null
null
Data Pipelines with Airflow/plugins/operators/data_quality.py
KostasD21/Udacity-DataEngineer-Projects
814f6253dbfa3d215d36eb3fa16266b6e1dcc22b
[ "MIT" ]
null
null
null
Data Pipelines with Airflow/plugins/operators/data_quality.py
KostasD21/Udacity-DataEngineer-Projects
814f6253dbfa3d215d36eb3fa16266b6e1dcc22b
[ "MIT" ]
null
null
null
from airflow.hooks.postgres_hook import PostgresHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class DataQualityOperator(BaseOperator): ui_color = '#89DA59' @apply_defaults def __init__(self, redshift_conn_id="", dq_check...
30.878049
66
0.56793
e7c7e7a489f3b9991f529cadbe148f7164b2828d
1,132
py
Python
mitama/app/forms/errors.py
mitama-org/mitama-py
ef298bd51a9125c25d502912a126d593750ccc0d
[ "MIT" ]
7
2020-08-17T13:30:38.000Z
2022-02-03T16:36:45.000Z
mitama/app/forms/errors.py
mitama-org/mitama-py
ef298bd51a9125c25d502912a126d593750ccc0d
[ "MIT" ]
85
2020-08-17T10:56:12.000Z
2021-03-12T03:20:11.000Z
mitama/app/forms/errors.py
mitama-org/mitama-py
ef298bd51a9125c25d502912a126d593750ccc0d
[ "MIT" ]
1
2020-11-28T14:34:22.000Z
2020-11-28T14:34:22.000Z
from jinja2 import Template class ValidationError(Exception): template = Template("{{ label }}が適切ではありません") def __init__(self, label="", data=""): self.label = label self.data = data @classmethod def setTemplate(cls, template = "{{ label }}が適切ではありません"): cls.template = Template(t...
26.952381
61
0.65106
72f7c9b856338f816d11de53180a6249e7bfc783
1,108
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/Pygame/__init__.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/Pygame/__init__.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/Pygame/__init__.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# -*- coding: utf-8 -*- # Needed to allow import # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache Lice...
35.741935
78
0.666065
a60d9ee358432523aec1e7cc7992ce7e020d9d56
92,912
py
Python
VoidFinder/vast/voidfinder/viz/void_render.py
DESI-UR/VAST
25f9449a7fe04bba6e261b6406a5d82aefcac2d7
[ "BSD-3-Clause" ]
5
2021-08-18T18:38:16.000Z
2022-02-17T01:33:59.000Z
VoidFinder/vast/voidfinder/viz/void_render.py
DESI-UR/VAST
25f9449a7fe04bba6e261b6406a5d82aefcac2d7
[ "BSD-3-Clause" ]
36
2020-09-16T15:44:28.000Z
2022-03-28T20:32:30.000Z
VoidFinder/vast/voidfinder/viz/void_render.py
DESI-UR/VAST
25f9449a7fe04bba6e261b6406a5d82aefcac2d7
[ "BSD-3-Clause" ]
3
2022-02-05T07:00:39.000Z
2022-03-25T04:27:03.000Z
import os import subprocess import numpy as np from .unionize import union_vertex_selection, seam_vertex_adjustment from .neighborize import build_neighbor_index, build_grouped_neighbor_index from vispy import app, gloo import vispy.io as io from vispy.util.transforms import perspective, translate, rotate #fr...
33.566474
178
0.467313
7f5161ba7af7b67ff00aca2078dffe32ab9ccc94
14,885
py
Python
pmxbot/logging.py
Cloudxtreme/pmxbot
4b95ed84f1cc60ba0f0fd999ee0a59e6dcf5152e
[ "MIT" ]
1
2019-04-15T14:04:03.000Z
2019-04-15T14:04:03.000Z
pmxbot/logging.py
Cloudxtreme/pmxbot
4b95ed84f1cc60ba0f0fd999ee0a59e6dcf5152e
[ "MIT" ]
null
null
null
pmxbot/logging.py
Cloudxtreme/pmxbot
4b95ed84f1cc60ba0f0fd999ee0a59e6dcf5152e
[ "MIT" ]
null
null
null
import re import random import datetime import itertools import struct import traceback import urllib.parse import socket import operator import logging import pytz from jaraco.context import ExceptionTrap from more_itertools import chunked import pmxbot from . import storage from . import core from pmxbot.core impor...
27.212066
79
0.686261
b54a48dd2d406324c11d3415f8942ae7dc5ebdf3
1,125
py
Python
terrascript/pagerduty/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
4
2022-02-07T21:08:14.000Z
2022-03-03T04:41:28.000Z
terrascript/pagerduty/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
null
null
null
terrascript/pagerduty/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
2
2022-02-06T01:49:42.000Z
2022-02-08T14:15:00.000Z
# terrascript/pagerduty/r.py import terrascript class pagerduty_addon(terrascript.Resource): pass class pagerduty_escalation_policy(terrascript.Resource): pass class pagerduty_maintenance_window(terrascript.Resource): pass class pagerduty_schedule(terrascript.Resource): pass class pagerduty_se...
15.84507
61
0.796444
c8e94f8425f21e96e510fc0033c4e0487f654561
2,633
py
Python
tmt/steps/provision/local.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
null
null
null
tmt/steps/provision/local.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
null
null
null
tmt/steps/provision/local.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
null
null
null
import tmt class ProvisionLocal(tmt.steps.provision.ProvisionPlugin): """ Use local host for test execution In general it is not recommended to run tests on your local machine as there might be security risks. Run only those tests which you know are safe so that you don't destroy your laptop ;-) ...
33.329114
76
0.63046
b01676b89389a8efaacd9e2b4f1482bf70389b95
1,020
py
Python
kubernetes/test/test_v1_non_resource_attributes.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2020-04-13T09:54:21.000Z
2020-04-13T09:54:21.000Z
kubernetes/test/test_v1_non_resource_attributes.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2019-08-15T14:27:17.000Z
2019-08-15T14:28:07.000Z
kubernetes/test/test_v1_non_resource_attributes.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
2
2020-08-05T03:06:48.000Z
2020-08-05T16:08:21.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.666667
105
0.72549
aa3feb4e87614fdf2d0a190931d0687138e9f4fa
2,596
py
Python
flask_maple/views.py
handle/flask_maple
5294cf27f159417665b998eb83c1c40a348506c0
[ "BSD-3-Clause" ]
null
null
null
flask_maple/views.py
handle/flask_maple
5294cf27f159417665b998eb83c1c40a348506c0
[ "BSD-3-Clause" ]
null
null
null
flask_maple/views.py
handle/flask_maple
5294cf27f159417665b998eb83c1c40a348506c0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ************************************************************************** # Copyright © 2016 jianglin # File Name: views.py # Author: jianglin # Email: xiyang0807@gmail.com # Created: 2016-10-28 19:56:36 (CST) # Last Update:星期六 2016-11-19 22:21:30 (CST) # By: # ...
32.860759
77
0.574345
3c37bf517ac764f25739c65c7f20c6a166b937fd
1,992
py
Python
pynitrokey/cli/monitor.py
daringer/pynitrokey
dc6bb282c9e08f9de675e17f4ee3b8aca190c1e5
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/cli/monitor.py
daringer/pynitrokey
dc6bb282c9e08f9de675e17f4ee3b8aca190c1e5
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/cli/monitor.py
daringer/pynitrokey
dc6bb282c9e08f9de675e17f4ee3b8aca190c1e5
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 SoloKeys Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
27.666667
76
0.550703
6ce14dc81a2352ae1bb012b603cf62a1b4941c87
2,222
py
Python
lib/fusion360utils/event_utils.py
StephanAigner/LogSpiral
ddbb4bdab08504dc7f3a1fbef672c2a7a0b856fb
[ "Apache-2.0" ]
1
2022-03-18T13:06:54.000Z
2022-03-18T13:06:54.000Z
lib/fusion360utils/event_utils.py
StephanAigner/LogSpiral
ddbb4bdab08504dc7f3a1fbef672c2a7a0b856fb
[ "Apache-2.0" ]
null
null
null
lib/fusion360utils/event_utils.py
StephanAigner/LogSpiral
ddbb4bdab08504dc7f3a1fbef672c2a7a0b856fb
[ "Apache-2.0" ]
null
null
null
import sys from typing import Callable, Union import adsk.core from .general_utils import handle_error # Global Variable to hold Event Handlers _handlers = [] def add_handler( event: adsk.core.Event, callback: Callable, *, name: str = None, local_handlers: list = None ): ...
30.438356
82
0.634113
b230280790d4cf4e19e8aa77222bfeb83ad4f759
14,899
py
Python
keystone/contrib/keystone_scim/controllers.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
keystone/contrib/keystone_scim/controllers.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
keystone/contrib/keystone_scim/controllers.py
TampereTC/tre-smartcity-keystone
e2d0adc25165eef102c87d7991fb1a595680fda6
[ "Apache-2.0" ]
null
null
null
# # Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U # # 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 unde...
40.15903
111
0.664608
9249afecfa5d8ee32851f67a09534ac96e27c6f0
5,328
py
Python
graphgallery/transforms/adj_transform/wavelet.py
Sharpiless/GraphGallery
5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0
[ "MIT" ]
1
2020-11-22T10:14:58.000Z
2020-11-22T10:14:58.000Z
graphgallery/transforms/adj_transform/wavelet.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
null
null
null
graphgallery/transforms/adj_transform/wavelet.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
1
2020-11-22T10:14:59.000Z
2020-11-22T10:14:59.000Z
import scipy.sparse as sp import numpy as np from sklearn.preprocessing import normalize from graphgallery.transforms import Transform from graphgallery.utils.decorators import MultiInputs # Version: Compute the exact signature # def laplacian(W, normalized=True): # """Return the Laplacian of the weigh...
33.3
164
0.584272
e7925623449b790438d1ae9d0f94da1782bcad39
2,309
py
Python
cardinal_pythonlib/regexfunc.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/regexfunc.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/regexfunc.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cardinal_pythonlib/regexfunc.py """ =============================================================================== Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Version 2.0 (t...
36.650794
129
0.606756
ec034b7194a6e010b9b2bd3c5c003d7e23f15ffa
3,171
py
Python
test/word_count_task.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
32
2018-01-09T05:07:18.000Z
2022-03-13T15:50:40.000Z
test/word_count_task.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
14
2017-10-27T21:52:22.000Z
2021-08-06T15:01:46.000Z
test/word_count_task.py
JohnEmhoff/spavro
6a6c32d53e3b882964fbcbd9b4e3bfd071567be0
[ "Apache-2.0" ]
12
2017-10-24T17:14:58.000Z
2021-08-03T10:22:58.000Z
# Modifications copyright (C) 2017 Pluralsight LLC """ * 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...
32.030303
96
0.642384
ec6fdd492665c9307da98be4da9afa9427b14567
5,984
py
Python
configs/representation/ssst/ssst_r18_t_ar3_nc_sgd_cos_30e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssst/ssst_r18_t_ar3_nc_sgd_cos_30e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/ssst/ssst_r18_t_ar3_nc_sgd_cos_30e_r2_1xNx2_k400.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.2 with_norm = True query_dim = 128 model = dict( type='SimSiamBaseSTSNTracker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), # strides=(1, 2, 1, 1), norm_cfg=dict(type='SyncBN', requires_grad=True), ...
30.375635
78
0.61865
b7fa19b6434b655f386d558870f23c33282ffb5f
7,132
py
Python
macros/context.py
Bomberus/mkdocs_macros_plugin
1b10a3d8886ab04d370b670395a4f31a5e7388ea
[ "MIT" ]
null
null
null
macros/context.py
Bomberus/mkdocs_macros_plugin
1b10a3d8886ab04d370b670395a4f31a5e7388ea
[ "MIT" ]
null
null
null
macros/context.py
Bomberus/mkdocs_macros_plugin
1b10a3d8886ab04d370b670395a4f31a5e7388ea
[ "MIT" ]
null
null
null
""" Basic context for the jinja2 templates It contains in particular documentation functions. Laurent Franceschetti (c) 2019 """ import os, sys, subprocess, platform import pkg_resources import datetime import mkdocs, jinja2 from jinja2 import Template from markdown import markdown # ----------------------------...
30.092827
85
0.563376
cfcfd295d976b9633d76d6c07961552a66adf185
1,645
py
Python
var/spack/repos/builtin/packages/py-jupyterhub/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/py-jupyterhub/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-jupyterhub/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJupyterhub(PythonPackage): """Multi-user server for Jupyter notebooks.""" pypi = "j...
47
98
0.648632
2bd68bd7b697ed974210b541c2dd1d272df9391a
3,638
py
Python
parlai/agents/dialog_wae/helper.py
hengyicai/ContrastiveLearning4Dialogue
873c20d21ee810750179356c353d2cce244db028
[ "MIT" ]
55
2020-09-16T02:11:28.000Z
2022-01-27T01:03:19.000Z
parlai/agents/dialog_wae/helper.py
hengyicai/ContrastiveLearning4Dialogue
873c20d21ee810750179356c353d2cce244db028
[ "MIT" ]
5
2020-09-21T03:37:08.000Z
2021-12-08T06:41:30.000Z
parlai/agents/dialog_wae/helper.py
hengyicai/ContrastiveLearning4Dialogue
873c20d21ee810750179356c353d2cce244db028
[ "MIT" ]
7
2020-09-21T14:06:27.000Z
2021-07-20T10:01:32.000Z
""" Copyright 2018 NAVER Corp. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disc...
33.685185
86
0.667675
b891e8088339edd5cd1046c70cbde513cad01b7b
3,208
py
Python
genconfig.py
hopugop/scylla-monitoring
e76485d0f6945c958e0a7fdc0b7d9920cf2ec77f
[ "Apache-2.0" ]
96
2015-10-19T10:57:14.000Z
2022-03-23T01:59:19.000Z
genconfig.py
hopugop/scylla-monitoring
e76485d0f6945c958e0a7fdc0b7d9920cf2ec77f
[ "Apache-2.0" ]
685
2015-10-29T14:31:56.000Z
2022-03-29T15:28:57.000Z
genconfig.py
hopugop/scylla-monitoring
e76485d0f6945c958e0a7fdc0b7d9920cf2ec77f
[ "Apache-2.0" ]
65
2015-11-02T07:29:59.000Z
2022-03-19T13:13:58.000Z
#!/usr/bin/env python3 import argparse import os import yaml import re import sys def gen_targets(servers, cluster): if ':' not in servers: raise Exception('Server list must contain a dc name') dcs = servers.split(':') res = {"labels": {"cluster": cluster, "dc": dcs[0]}} res["targets"] = dcs[1...
41.128205
183
0.644015
0d90792f6b3e72e0595e8685beb4a5fff7ec092b
1,510
py
Python
events_management_system/events/management/commands/fetch_records_from_airtable.py
HNMN3/EventsManagementSystem
533d1d7c1156455498423cef605c20e02322e1f5
[ "MIT" ]
null
null
null
events_management_system/events/management/commands/fetch_records_from_airtable.py
HNMN3/EventsManagementSystem
533d1d7c1156455498423cef605c20e02322e1f5
[ "MIT" ]
null
null
null
events_management_system/events/management/commands/fetch_records_from_airtable.py
HNMN3/EventsManagementSystem
533d1d7c1156455498423cef605c20e02322e1f5
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand import requests from django.conf import settings from events_management_system.events.models import Event class Command(BaseCommand): def handle(self, *args, **options): headers = { 'Authorization': f'Bearer {settings.AIRTABLE_API_KEY}', ...
37.75
70
0.564238
32405fe52812bc0eeba886441f80bf2a77b37b14
1,301
py
Python
src/mmw/apps/export/models.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
45
2015-05-25T22:55:21.000Z
2022-02-27T14:51:52.000Z
src/mmw/apps/export/models.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
3,213
2015-05-22T00:32:00.000Z
2022-03-31T15:05:08.000Z
src/mmw/apps/export/models.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
37
2015-05-22T12:30:46.000Z
2021-09-10T02:13:44.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.conf import settings from django.contrib.gis.db import models from apps.modeling.models import Project HYDROSHARE_BASE_URL = settings.HYDROSHARE['base_url'] class HydroS...
30.97619
73
0.670254
f6d0637e377ea91aa8a8c267921a5d0d3a74244e
2,402
py
Python
blaze/mahimahi/server/interfaces.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
5
2020-12-16T03:13:59.000Z
2022-03-06T07:16:39.000Z
blaze/mahimahi/server/interfaces.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
9
2020-09-25T23:25:59.000Z
2022-03-11T23:45:14.000Z
blaze/mahimahi/server/interfaces.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
3
2019-10-16T21:22:07.000Z
2020-07-21T13:38:22.000Z
""" This module defines Interfaces, which manages the virtual IPs created on the system for some given hosts """ import subprocess import sys from typing import List from blaze.logger import logger def generate_ips(num_ips: int, offset: int = 0) -> List[str]: """ Generates a list of unique IP addresses (seq...
32.026667
117
0.6199
93169cff5cac11db19afce00d4c0a032070734f4
7,254
py
Python
src/falconpy/ml_exclusions.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
src/falconpy/ml_exclusions.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
src/falconpy/ml_exclusions.py
EdgeSync/falconpy
a2c026721259137dbbaa647aa719007ad20d9353
[ "Unlicense" ]
null
null
null
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
54.134328
126
0.595947
b9bfa777e669c10340c106ab356608e6c133a91f
988
py
Python
input.py
AugustineJosephMN/contactlens
6ed54187652d59722a874bd93017dc7f60b9afa2
[ "MIT" ]
null
null
null
input.py
AugustineJosephMN/contactlens
6ed54187652d59722a874bd93017dc7f60b9afa2
[ "MIT" ]
null
null
null
input.py
AugustineJosephMN/contactlens
6ed54187652d59722a874bd93017dc7f60b9afa2
[ "MIT" ]
null
null
null
import sys import argparse from test import YOLO, detect_video from PIL import Image import cv2, numpy import tensorflow as tf from keras.backend.tensorflow_backend import set_session class yoloCamera(): def __init__(self, cameraId=0): self.cameraId=cameraId config = tf.ConfigProto() config...
29.058824
56
0.623482
0e5d6af780677ce46c4a03f5b848e1ae31723dc8
201
py
Python
pyapple/src/__init__.py
fxrcha/PyApple
6f1336c63583204d4b2b723dd1de8d1895e42430
[ "MIT" ]
13
2021-02-21T04:16:40.000Z
2022-03-21T23:34:18.000Z
pyapple/src/__init__.py
fxrcha/PyApple
6f1336c63583204d4b2b723dd1de8d1895e42430
[ "MIT" ]
null
null
null
pyapple/src/__init__.py
fxrcha/PyApple
6f1336c63583204d4b2b723dd1de8d1895e42430
[ "MIT" ]
4
2021-02-21T04:16:42.000Z
2021-03-13T00:22:42.000Z
from .jailbreak import Jailbreak from .ipsw import IPSWME from .shsh2 import SHSH2 from .swscan import SWSCAN from .pallas import Pallas __all__ = ["Jailbreak", "IPSWME", "SHSH2", "SWSCAN", "Pallas"]
25.125
62
0.751244
d0a2f43ea0b7f1979c8e857bebacefc1756edd5e
3,877
py
Python
designate/conf/base.py
cleosson-daitan/designate
37b3fa2ea454183e4a5c6a099eca5129959d10e1
[ "Apache-2.0" ]
null
null
null
designate/conf/base.py
cleosson-daitan/designate
37b3fa2ea454183e4a5c6a099eca5129959d10e1
[ "Apache-2.0" ]
null
null
null
designate/conf/base.py
cleosson-daitan/designate
37b3fa2ea454183e4a5c6a099eca5129959d10e1
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Managed I.T. # # Author: Kiall Mac Innes <kiall@managedit.ie> # # 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 r...
37.278846
79
0.650503
b979dc1538aa57b0f9a001849b8fcd4c72522f3d
7,524
py
Python
tests/contrib/utils/test_mlengine_operator_utils.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
3
2019-08-17T15:16:11.000Z
2019-11-18T06:42:15.000Z
tests/contrib/utils/test_mlengine_operator_utils.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
tests/contrib/utils/test_mlengine_operator_utils.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
42.994286
94
0.620149
62108d933c78aa4e091ad6a15927c4f940586f6a
1,614
py
Python
CASES/05_Challenge_Data/PywerAPM_Case_Setting.py
cmdavidb/PywerAPM
b1c76d8c5625470b99a634662095e1709724ee79
[ "MIT" ]
1
2021-04-19T04:04:05.000Z
2021-04-19T04:04:05.000Z
CASES/05_Challenge_Data/PywerAPM_Case_Setting.py
cmdavidb/PywerAPM
b1c76d8c5625470b99a634662095e1709724ee79
[ "MIT" ]
null
null
null
CASES/05_Challenge_Data/PywerAPM_Case_Setting.py
cmdavidb/PywerAPM
b1c76d8c5625470b99a634662095e1709724ee79
[ "MIT" ]
3
2020-12-17T22:07:36.000Z
2021-08-09T15:29:42.000Z
import datetime import sys # Performance assessment Settings path = '../CASES/05_Challenge_Data/' load_growth = 0.02 # Assumed load growth per year date_beg = datetime.date.today() #h_end = 2*24*365.25 ...
38.428571
110
0.543371
0119e565ff6f896db901471ca7d1b4229c838b34
3,723
py
Python
python_spec/python_blocks/tests/INVERT.py
ak-ustutt/GeCCo-public
8d43a6c9323aeba7eb54625b95553bfd4b2418c6
[ "MIT" ]
null
null
null
python_spec/python_blocks/tests/INVERT.py
ak-ustutt/GeCCo-public
8d43a6c9323aeba7eb54625b95553bfd4b2418c6
[ "MIT" ]
null
null
null
python_spec/python_blocks/tests/INVERT.py
ak-ustutt/GeCCo-public
8d43a6c9323aeba7eb54625b95553bfd4b2418c6
[ "MIT" ]
null
null
null
from python_interface.gecco_interface import * from python_interface.gecco_modules.NoticeUtil import * spinadapt = keywords.get('calculate.routes.spinadapt') spinadapt = int(spinadapt) if spinadapt is not None else 0 _s2 = orbitals.get('imult') _ms = orbitals.get('ims') if ((_ms == 0) and ((_s2-1 % 4) == 0)): ...
21.645349
150
0.553317
c5b79e67b65dd7370a1348e31d4265261b6de3c0
164
py
Python
star_tides/core/data/location_data.py
STAR-TIDES/kb
6f895b03db0eefa86a1667d3024f4fe5b92ea99e
[ "MIT" ]
2
2021-06-10T20:58:27.000Z
2021-12-29T14:40:44.000Z
star_tides/core/data/location_data.py
STAR-TIDES/kb
6f895b03db0eefa86a1667d3024f4fe5b92ea99e
[ "MIT" ]
38
2021-05-13T06:23:49.000Z
2021-10-12T23:32:36.000Z
star_tides/core/data/location_data.py
STAR-TIDES/kb
6f895b03db0eefa86a1667d3024f4fe5b92ea99e
[ "MIT" ]
null
null
null
'''star_tides.core.data.location_data ''' from typing import NamedTuple class LocationData(NamedTuple): ios_3166_1_country_code: int arbitrary_text: str
16.4
37
0.77439
6104ce09e96c483421a7d14db047a2c76416166a
1,802
py
Python
alipay/aop/api/response/KoubeiCateringOrderPayResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/KoubeiCateringOrderPayResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/KoubeiCateringOrderPayResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class KoubeiCateringOrderPayResponse(AlipayResponse): def __init__(self): super(KoubeiCateringOrderPayResponse, self).__init__() self._biz_type = None ...
27.30303
103
0.648169
93ad10cc9d0c57eb017b0ca576b3c80198a9f761
1,695
py
Python
core/tests/test_utils.py
smithdc1/djangopackages
8762a787fe968cbf5f772c6199d1362743c85db9
[ "MIT" ]
null
null
null
core/tests/test_utils.py
smithdc1/djangopackages
8762a787fe968cbf5f772c6199d1362743c85db9
[ "MIT" ]
null
null
null
core/tests/test_utils.py
smithdc1/djangopackages
8762a787fe968cbf5f772c6199d1362743c85db9
[ "MIT" ]
null
null
null
from core import utils def test_oc_slugify(): lst = ( ('test.this.value', 'test-this-value'), ('Plone.OpenComparison', 'plone-opencomparison'), ('Run from here', 'run-from-here'), ('Jump_the shark', 'jump_the-shark'), ) for l in lst: assert utils.oc_slugify(l[0]) ...
37.666667
99
0.670796
a894d77fe59862df91f5667a4e67d87d2899a74f
8,340
py
Python
core/src/test/python/collections_test.py
CarolynRountree/weblogic-deploy-tooling
69c618d57a4f26d6a82da497419a733a9af7a2b1
[ "MIT" ]
null
null
null
core/src/test/python/collections_test.py
CarolynRountree/weblogic-deploy-tooling
69c618d57a4f26d6a82da497419a733a9af7a2b1
[ "MIT" ]
null
null
null
core/src/test/python/collections_test.py
CarolynRountree/weblogic-deploy-tooling
69c618d57a4f26d6a82da497419a733a9af7a2b1
[ "MIT" ]
null
null
null
""" Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. The Universal Permissive License (UPL), Version 1.0 """ import copy import unittest from oracle.weblogic.deploy.util import PyOrderedDict as OrderedDict class CollectionsTestCase(unittest.TestCase): def setUp(self): self.na...
41.287129
111
0.61259
70c4c93977c3c6689132372bb0dda70f32fce0a3
1,989
py
Python
setup.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
setup.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
setup.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies 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 # # Unless required by applicable law or agr...
34.894737
135
0.682252
232d0564951dda494fb8d043b80d97d4d3ff4539
3,418
py
Python
ros_pkgs/src/motor_control/motor_control/motor_driver.py
gecko386/jetson_robot_car
e38503e95c06aa8400ae3640fadde0543c27cc09
[ "MIT" ]
null
null
null
ros_pkgs/src/motor_control/motor_control/motor_driver.py
gecko386/jetson_robot_car
e38503e95c06aa8400ae3640fadde0543c27cc09
[ "MIT" ]
null
null
null
ros_pkgs/src/motor_control/motor_control/motor_driver.py
gecko386/jetson_robot_car
e38503e95c06aa8400ae3640fadde0543c27cc09
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 17 00:30:18 2021 @author: nvidia """ # -*- coding: utf-8 -*- try: import RPi.GPIO as GPIO output_pins = { 'JETSON_XAVIER': 18, 'JETSON_NANO': 33, 'JETSON_NX': 33, 'CLARA_AGX_XAVIER': 18, 'JETSON_TX2_...
26.292308
83
0.631949
aef5546c9f22299f7b3319ffe8fb1e16823f8aff
4,271
py
Python
var/spack/repos/builtin/packages/pexsi/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/pexsi/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/pexsi/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import inspect import os.path from spack import * class Pexsi(MakefilePackage): """The PEXSI library is written in...
37.79646
96
0.627956
70bb0d3277843e1aae7ac907892f986f8f8b458a
18,189
py
Python
utest/parsing/test_model.py
coolwardiw44/robotframework
c76a119babf2a3c534756f2d129f39909c14174c
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-06T15:15:16.000Z
2019-12-06T15:15:16.000Z
utest/parsing/test_model.py
coolwardiw44/robotframework
c76a119babf2a3c534756f2d129f39909c14174c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/parsing/test_model.py
coolwardiw44/robotframework
c76a119babf2a3c534756f2d129f39909c14174c
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-16T01:51:00.000Z
2022-03-16T01:51:00.000Z
import os import unittest from robot.utils.asserts import (assert_equal, assert_false, assert_none, assert_not_equal, assert_true) from robot.parsing.model import (ForLoop, KeywordTable, Step, TestCase, TestCaseFile, TestCaseTable, ...
39.541304
81
0.594755
57cc1726c1e0482969cfc4b721508df255ec07cd
185
py
Python
Src/decimaltobinary.py
bhuvanakundumani/Python
22933e8393ac60b57b59fff14ed4d2960f58e9c6
[ "MIT" ]
null
null
null
Src/decimaltobinary.py
bhuvanakundumani/Python
22933e8393ac60b57b59fff14ed4d2960f58e9c6
[ "MIT" ]
null
null
null
Src/decimaltobinary.py
bhuvanakundumani/Python
22933e8393ac60b57b59fff14ed4d2960f58e9c6
[ "MIT" ]
null
null
null
def decimal_to_binary(num): """ This function converts a decimal number (num ) to a binary number""" if (num > 1): decimal_to_binary(num // 2) print(num % 2, end ='')
23.125
72
0.616216
779c4df09633595c38753383be22ec7e9c022b51
6,931
py
Python
mongodbatlas/atlasapi.py
ozlevka-work/MongoDB-Atlas-API
781221653ea3956243c03670ab50a5308390a76f
[ "Apache-2.0" ]
null
null
null
mongodbatlas/atlasapi.py
ozlevka-work/MongoDB-Atlas-API
781221653ea3956243c03670ab50a5308390a76f
[ "Apache-2.0" ]
null
null
null
mongodbatlas/atlasapi.py
ozlevka-work/MongoDB-Atlas-API
781221653ea3956243c03670ab50a5308390a76f
[ "Apache-2.0" ]
null
null
null
""" MongoDB Atlas Organisation ~~~~~~~~~~~~~~~~~~~~~~~~~~ An organisation is a top level artefact. Users can create multiple organizations and be members of multiple organizations. Each organization can have 0 or more projects (also called groups) and each project can have 0 or more clusters. Author:joe@joedrumgoole....
38.082418
223
0.662242
56544b4c249324f8c074aaf484c32abf1e1565a6
1,628
py
Python
src/whylogs/mlflow/model_wrapper.py
valer-whylabs/whylogs
f71cc98a250c68365ee19b15f7b1eba72677209a
[ "Apache-2.0" ]
null
null
null
src/whylogs/mlflow/model_wrapper.py
valer-whylabs/whylogs
f71cc98a250c68365ee19b15f7b1eba72677209a
[ "Apache-2.0" ]
1
2021-05-24T16:12:11.000Z
2021-05-24T16:12:11.000Z
src/whylogs/mlflow/model_wrapper.py
valer-whylabs/whylogs
f71cc98a250c68365ee19b15f7b1eba72677209a
[ "Apache-2.0" ]
null
null
null
import atexit import datetime from logging import getLogger from typing import Union import numpy as np import pandas as pd import whylogs from whylogs.app.config import WHYLOGS_YML logger = getLogger(__name__) PyFuncOutput = Union[pd.DataFrame, pd.Series, np.ndarray, list] class ModelWrapper(object): def __i...
33.916667
105
0.674447
feac972b850f79b0edbb1f024ce793fc442ef5bc
205
py
Python
okcompute/__init__.py
jayvdb/okcompute
c63702216842a4118bb437d320cbe0fb872db758
[ "MIT" ]
2
2021-03-22T02:39:29.000Z
2021-08-06T20:23:36.000Z
okcompute/__init__.py
jayvdb/okcompute
c63702216842a4118bb437d320cbe0fb872db758
[ "MIT" ]
9
2018-09-11T17:46:53.000Z
2021-11-15T17:53:37.000Z
okcompute/__init__.py
jayvdb/okcompute
c63702216842a4118bb437d320cbe0fb872db758
[ "MIT" ]
2
2020-08-29T11:29:47.000Z
2021-06-21T22:04:32.000Z
""" okcompute ~~~~~~~~~ A framework to make analysis stages clear, self documenting, and fault tolerant. """ from .version import __version__ from .okc import Field from .okc import App
15.769231
74
0.668293
9dca3b317ab78cdaa14f7ffd042dc6a0a504bcd1
15,560
py
Python
cs224n/assignment2/utils/parser_utils.py
quoniammm/mine-pytorch
09d2e6a4a11b472187012be035600a0c84f4cfa5
[ "MIT" ]
3
2017-10-11T02:41:08.000Z
2019-05-06T12:22:06.000Z
cs224n/assignment2/utils/parser_utils.py
quoniammm/mine-pytorch
09d2e6a4a11b472187012be035600a0c84f4cfa5
[ "MIT" ]
null
null
null
cs224n/assignment2/utils/parser_utils.py
quoniammm/mine-pytorch
09d2e6a4a11b472187012be035600a0c84f4cfa5
[ "MIT" ]
null
null
null
"""Utilities for training the dependency parser. You do not need to read/understand this code """ import time import os import logging from collections import Counter from utils.general_utils import logged_loop, get_minibatches from q2_parser_transitions import PartialParse, minibatch_parse import numpy as np P_PRE...
39.693878
100
0.528535
edc126efbd98aeeb4870c25d4b494aaedf8e389a
7,837
py
Python
lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1
2018-03-24T08:28:08.000Z
2018-03-24T08:28:08.000Z
lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import os from matplotlib._pylab_helpers import Gcf from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase, \ NavigationToolbar2, TimerBase from matplotlib.backend_bases impor...
31.473896
80
0.637234