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
e84b8f9386067408ffd161ecb595143a207a1dda
1,523
py
Python
XASH_BASEDIR/py/PySDK/entity.py
Hing-s/HL_PyMod
62628e48996fe1062e17d91f9bd05d9aa50f396c
[ "MIT" ]
null
null
null
XASH_BASEDIR/py/PySDK/entity.py
Hing-s/HL_PyMod
62628e48996fe1062e17d91f9bd05d9aa50f396c
[ "MIT" ]
null
null
null
XASH_BASEDIR/py/PySDK/entity.py
Hing-s/HL_PyMod
62628e48996fe1062e17d91f9bd05d9aa50f396c
[ "MIT" ]
null
null
null
SET_GLOBAL('LINKED_ENTS', {}) class EntLinker: def __init__(self, pEnt): self.pEnt = pEnt class entvars(object): def __init__(self, edict): self.edict = edict def __getattr__(self, y): if y == 'edict': return super().__getattribute__(y) return eng.ent_get(self.edict, y) def __setattr__(self, x,...
20.863014
88
0.697308
e8dd9c20d7fb9aa4d21cb03a560e808fd1fdf227
9,843
py
Python
great_expectations/expectations/core/expect_table_row_count_to_be_between.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
null
null
null
great_expectations/expectations/core/expect_table_row_count_to_be_between.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
null
null
null
great_expectations/expectations/core/expect_table_row_count_to_be_between.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
1
2021-11-29T07:37:28.000Z
2021-11-29T07:37:28.000Z
from typing import Dict, Optional from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.execution_engine import ExecutionEngine from great_expectations.expectations.expectation import TableExpectation from great_expectations.expectations.util import render_evalu...
36.727612
116
0.594737
3a2961bbf02fdebaeef811af1e58c1e2c760cb2f
1,857
py
Python
autogluon/utils/tabular/features/generators/drop_unique.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/features/generators/drop_unique.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/features/generators/drop_unique.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
import logging from pandas import DataFrame from .abstract import AbstractFeatureGenerator from ..feature_metadata import FeatureMetadata, R_CATEGORY, R_OBJECT logger = logging.getLogger(__name__) # TODO: Not necessary to exist after fitting, can just update outer context feature_out/feature_in and then delete thi...
42.204545
159
0.724825
924b61db6fe548a6f271f19a4358d4c4219969fb
10,671
py
Python
lgr/tools/compare/union.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
7
2017-07-10T22:39:52.000Z
2021-06-25T20:19:28.000Z
lgr/tools/compare/union.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
13
2016-10-26T19:42:00.000Z
2021-12-13T19:43:42.000Z
lgr/tools/compare/union.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
8
2016-11-07T15:40:27.000Z
2020-09-22T13:48:52.000Z
# -*- coding: utf-8 -*- """ union.py - Union two LGRs. """ from __future__ import unicode_literals import copy import logging from datetime import date from collections import OrderedDict from lgr.tools.compare.utils import compare_objects from lgr.core import LGR from lgr.metadata import Metadata, Version, Descript...
29.477901
110
0.639115
1e1306356938ab812c755d792ec33553573eb9ad
3,367
py
Python
lib/spack/external/_pytest/assertion/truncate.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
lib/spack/external/_pytest/assertion/truncate.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
lib/spack/external/_pytest/assertion/truncate.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
""" Utilities for truncating assertion output. Current default behaviour is to truncate assertion explanations at ~8 terminal lines, unless running in "-vv" mode or running on CI. """ from __future__ import absolute_import, division, print_function import os import py DEFAULT_MAX_LINES = 8 DEFAULT_MAX_CHARS = 8 * 8...
32.68932
85
0.716662
450a0b8a2552c8e834658ad5fa69c518eb670a91
4,034
py
Python
mapclientplugins/trcsourcestep/step.py
tsalemink/trcsourcestep
377d5b3eb579246853b401bbe1ec1839ed36501c
[ "Apache-2.0" ]
null
null
null
mapclientplugins/trcsourcestep/step.py
tsalemink/trcsourcestep
377d5b3eb579246853b401bbe1ec1839ed36501c
[ "Apache-2.0" ]
null
null
null
mapclientplugins/trcsourcestep/step.py
tsalemink/trcsourcestep
377d5b3eb579246853b401bbe1ec1839ed36501c
[ "Apache-2.0" ]
2
2016-08-17T23:26:46.000Z
2021-06-01T04:09:09.000Z
import os.path import json import os.path from PySide2 import QtGui from trc import TRCData from mapclient.mountpoints.workflowstep import WorkflowStepMountPoint from mapclientplugins.trcsourcestep.configuredialog import ConfigureDialog class TRCSourceStep(WorkflowStepMountPoint): def __init__(self, location...
36.672727
95
0.647
aef0b93de5b377034c2a42b6fa3c0c917cd8fdae
11,891
py
Python
tests/unit/network_services/traffic_profile/test_rfc2544.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
1
2019-12-08T21:57:31.000Z
2019-12-08T21:57:31.000Z
tests/unit/network_services/traffic_profile/test_rfc2544.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
null
null
null
tests/unit/network_services/traffic_profile/test_rfc2544.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016-2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
41.576923
86
0.56404
58e27c83c1d8c5aa97ed2e7fce33b99b21a57a42
106
py
Python
backend/src/__init__.py
leowucn/lazykindler
45717e08aa0ccc504a9a5e3883dc403470ae824b
[ "MIT" ]
2
2021-12-22T15:00:15.000Z
2022-03-21T10:38:30.000Z
backend/src/__init__.py
leowucn/lazykindler
45717e08aa0ccc504a9a5e3883dc403470ae824b
[ "MIT" ]
null
null
null
backend/src/__init__.py
leowucn/lazykindler
45717e08aa0ccc504a9a5e3883dc403470ae824b
[ "MIT" ]
null
null
null
# from backend.src.routes.users import users_info # from backend.src.routes.products import products_info
35.333333
55
0.830189
ffd6d8e4370ad598bb06d9214528cfcd4fb40ef1
2,297
py
Python
src/accounts/forms.py
anukini05/newTest
ddab3ece42be931a91a08928f2dc9d452ecac468
[ "MIT" ]
null
null
null
src/accounts/forms.py
anukini05/newTest
ddab3ece42be931a91a08928f2dc9d452ecac468
[ "MIT" ]
null
null
null
src/accounts/forms.py
anukini05/newTest
ddab3ece42be931a91a08928f2dc9d452ecac468
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import ( authenticate, get_user_model, login, logout, ) User = get_user_model() class UserLoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) def clean(self, *args, **kwargs): ...
33.289855
83
0.617327
6df4d8b096d5dcd160cc56a8825d3c5e64b26125
3,712
py
Python
poediscordbot/cogs/pob/output/aggregators/config_aggregator.py
Altyrost/poediscordbot
8561de4cf377d14635774e2a72530538871f942f
[ "MIT" ]
8
2019-10-01T16:58:35.000Z
2022-02-08T21:54:43.000Z
poediscordbot/cogs/pob/output/aggregators/config_aggregator.py
Altyrost/poediscordbot
8561de4cf377d14635774e2a72530538871f942f
[ "MIT" ]
13
2019-07-31T08:35:24.000Z
2021-09-08T03:47:27.000Z
poediscordbot/cogs/pob/output/aggregators/config_aggregator.py
Altyrost/poediscordbot
8561de4cf377d14635774e2a72530538871f942f
[ "MIT" ]
9
2019-12-07T10:39:43.000Z
2022-02-04T15:20:20.000Z
from poediscordbot.cogs.pob.output.aggregators.abstract_aggregator import AbstractAggregator from poediscordbot.util.logging import log class ConfigAggregator(AbstractAggregator): def get_output(self) -> (str, str): return 'Configuration', self.get_config_string(self.build.config, ...
38.268041
117
0.576239
3fc1ffc5fd16703af4c46b3382528280be1eea16
1,314
py
Python
kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py
Sentient07/kivy
e5022e1cc84b1bcda6e4619d618509dc4ea7da04
[ "MIT" ]
317
2015-07-30T07:47:41.000Z
2022-03-30T00:38:39.000Z
kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py
Sentient07/kivy
e5022e1cc84b1bcda6e4619d618509dc4ea7da04
[ "MIT" ]
42
2015-07-30T10:32:46.000Z
2021-11-23T02:44:47.000Z
kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py
Sentient07/kivy
e5022e1cc84b1bcda6e4619d618509dc4ea7da04
[ "MIT" ]
69
2015-08-04T03:27:30.000Z
2021-12-27T09:53:26.000Z
from os.path import join, dirname from os import environ, chdir, putenv import sys root = 'kivy_install' if hasattr(sys, '_MEIPASS'): # PyInstaller >= 1.6 chdir(sys._MEIPASS) root = join(sys._MEIPASS, root) elif '_MEIPASS2' in environ: # PyInstaller < 1.6 (tested on 1.5 only) chdir(environ['_MEIPAS...
30.55814
72
0.694064
4a07654e1a495ee6c39c5bef595ff42902f73813
6,848
py
Python
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
multimodelity/datasets/builders/visual_genome/dataset.py
hahaxun/mmf
6d32c3925ed9bf938e19a071aaa5e72a5cf01ee1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import copy import json import torch from multimodelity.common.sample import Sample, SampleList from multimodelity.datasets.builders.vqa2 import VQA2Dataset from multimodelity.datasets.databases.scene_graph_database import SceneGraphDatabase _CONSTANTS = {"image_id_...
34.938776
88
0.609375
f8337f4cf0059ce48c9d977e0ae9ff97d8326b08
3,440
py
Python
sdk/python/pulumi_aws_native/ecr/get_registry_policy.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ecr/get_registry_policy.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ecr/get_registry_policy.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# 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 __a...
44.675325
324
0.722093
41ccfadb1152704118e1bc016c7996f42201db0b
1,318
py
Python
var/spack/repos/builtin/packages/r-backports/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-backports/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-backports/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# 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 RBackports(RPackage): """Implementations of functions which have been introduced in R ...
47.071429
95
0.762519
39c2958b1b2b5afdf6c17d6b879075849857cdde
1,595
py
Python
xlsxwriter/test/comparison/test_chart_errorbars09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_errorbars09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_chart_errorbars09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
24.921875
79
0.518495
bcbd76a8ed0576897920b829ed3de6f1f639bc9c
34,539
py
Python
tests/frontend/test_projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
tests/frontend/test_projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
tests/frontend/test_projects.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
# coding: utf-8 """ """ import json import requests import pytest from bs4 import BeautifulSoup import sampledb import sampledb.models import sampledb.logic from sampledb.logic.authentication import add_email_authentication @pytest.fixture def user_session(flask_server): user = sampledb.models.User(name="Basic...
49.768012
193
0.731145
ce113ec30f2c80e2e48b311581c58412aea33f1d
31,107
py
Python
third_party/evaluate_retrieval_rembert.py
EmmaCaldwell/xtreme
fdc297071131ddae524e9822b5c31075fae167e3
[ "Apache-2.0" ]
null
null
null
third_party/evaluate_retrieval_rembert.py
EmmaCaldwell/xtreme
fdc297071131ddae524e9822b5c31075fae167e3
[ "Apache-2.0" ]
null
null
null
third_party/evaluate_retrieval_rembert.py
EmmaCaldwell/xtreme
fdc297071131ddae524e9822b5c31075fae167e3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright The XTREME Benchmark Authors. # 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 copy of the License at # # http:/...
41.476
166
0.647732
15cb1b2186e5c5da3bc2e0f33fc94bba8a950125
3,114
py
Python
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_shared/multi_api.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-12-10T03:17:51.000Z
2020-12-10T03:17:51.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_shared/multi_api.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_shared/multi_api.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-07-31T16:33:36.000Z
2020-07-31T16:33:36.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from collections import namedtuple from enum import Enum from typing import TYPE_CHECKING from ._generated.v7_1_preview.version import VERSION as V7_1_PREVIEW_VERSION f...
42.081081
116
0.70456
cc194e877764bc45516d4da4308b515afd2f15a1
4,315
py
Python
anodet/sampling_methods/kcenter_greedy.py
VictorOlof/anodet
528b984d33e494ee730db7b7f9276b5f076e0f2c
[ "MIT" ]
34
2021-08-30T00:50:25.000Z
2022-02-23T09:34:39.000Z
anodet/sampling_methods/kcenter_greedy.py
VictorOlof/anodet
528b984d33e494ee730db7b7f9276b5f076e0f2c
[ "MIT" ]
16
2021-08-20T11:00:19.000Z
2022-01-24T11:08:02.000Z
anodet/sampling_methods/kcenter_greedy.py
VictorOlof/anodet
528b984d33e494ee730db7b7f9276b5f076e0f2c
[ "MIT" ]
10
2021-08-23T12:43:13.000Z
2022-02-01T02:04:41.000Z
# Copyright 2017 Google 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 or agreed to in writing,...
37.198276
80
0.723986
11efa36379f29dc26b0ee35dbf22e3375a27a632
4,150
py
Python
contrib/Research/nlp/bert/BERT_tf_Soapeggpain/script/e2e_func_node/tools/catchdata.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
contrib/Research/nlp/bert/BERT_tf_Soapeggpain/script/e2e_func_node/tools/catchdata.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
contrib/Research/nlp/bert/BERT_tf_Soapeggpain/script/e2e_func_node/tools/catchdata.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- ''' Created on 2020-03-10 @author: wwx371270 ''' import os, sys import commands import csv import datetime import time route = commands.getoutput("pwd") resultroute = route.replace("tools", "") + "result/" now = time.strftime('%Y%m%d%H%M%S') resultfile = resultroute + "report_" + now + ".csv" ...
41.919192
115
0.584096
f4946176e518acc43cf40dc9310d3dddbb2bcfc4
2,834
py
Python
facebook_business/adobjects/adcreativelinkdatacalltoactionvalue.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adcreativelinkdatacalltoactionvalue.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adcreativelinkdatacalltoactionvalue.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.805195
87
0.716655
4b34cf5bdf52c4c8e5c2f0705622da0cbf171e72
4,570
py
Python
BIRL_modular_robot/birl_module_canopen/scripts/module_state_adaptor.py
zhaolongkzz/ROS
52c70d9d22fe1714c438312fde61214920a4dc3c
[ "MIT" ]
null
null
null
BIRL_modular_robot/birl_module_canopen/scripts/module_state_adaptor.py
zhaolongkzz/ROS
52c70d9d22fe1714c438312fde61214920a4dc3c
[ "MIT" ]
null
null
null
BIRL_modular_robot/birl_module_canopen/scripts/module_state_adaptor.py
zhaolongkzz/ROS
52c70d9d22fe1714c438312fde61214920a4dc3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python #brief: # adaptor node between joint_state_publisher and # joint_group_position_controller of canopen_motor node #input: # 1) encoder resolution and node ID from parameter server # 2) transmission reduction ratio from URDF, # 3) /joint_states topic (e.g. topic of joint_state_publisher)...
35.426357
102
0.620131
79e22e5ab568836fc4b60265bec1ddea046c0a2b
414
py
Python
dictionariesAndHashmaps/hashTablesRansomNote.py
silvioedu/HackerRank-InterviewPreparationKit
728a5a7f898b8f40e1bf55604a00e25494010c28
[ "MIT" ]
null
null
null
dictionariesAndHashmaps/hashTablesRansomNote.py
silvioedu/HackerRank-InterviewPreparationKit
728a5a7f898b8f40e1bf55604a00e25494010c28
[ "MIT" ]
null
null
null
dictionariesAndHashmaps/hashTablesRansomNote.py
silvioedu/HackerRank-InterviewPreparationKit
728a5a7f898b8f40e1bf55604a00e25494010c28
[ "MIT" ]
null
null
null
#!/bin/python3 from collections import Counter # Complete the checkMagazine function below. def checkMagazine(magazine, note): print("Yes") if Counter(note) - Counter(magazine) == {} else print("No") if __name__ == '__main__': mn = input().split() m = int(mn[0]) n = int(mn[1]) magazine = inp...
18
76
0.635266
42cc579b29be617fbcbbb3827bdf09c1316fb3b9
2,796
py
Python
azure-mgmt-scheduler/azure/mgmt/scheduler/models/client_cert_authentication.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-scheduler/azure/mgmt/scheduler/models/client_cert_authentication.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-scheduler/azure/mgmt/scheduler/models/client_cert_authentication.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
44.380952
153
0.687411
d1fcb6e489cd66ea89839c8e746949d259e26258
818
py
Python
simulation_ws/src/rl-agent/setup.py
rcampbell95/AWS-JPL-OSR-Challenge
edfd5429d5db2a9169172a494f92daaf42f900cd
[ "Apache-2.0" ]
null
null
null
simulation_ws/src/rl-agent/setup.py
rcampbell95/AWS-JPL-OSR-Challenge
edfd5429d5db2a9169172a494f92daaf42f900cd
[ "Apache-2.0" ]
null
null
null
simulation_ws/src/rl-agent/setup.py
rcampbell95/AWS-JPL-OSR-Challenge
edfd5429d5db2a9169172a494f92daaf42f900cd
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name="markov", version="0.1.1", zip_safe=False, author="Chris", long_description="RL Agent for NASA-Rover-Challenge", packages=find_packages(), python_requires='>=3.6', install_requires=[ 'boto3==1.9.23', 'futures==3.1.1'...
24.058824
57
0.50489
eeb059f21edd7db6dcfae091b4dfa4a5d1fbfe9d
503
py
Python
task_queue/migrations/0003_auto_20190408_2107.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
task_queue/migrations/0003_auto_20190408_2107.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
task_queue/migrations/0003_auto_20190408_2107.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
# Generated by Django 2.1.7 on 2019-04-08 19:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('task_queue', '0002_asynctask_traceback'), ] operations = [ migrations.AlterField( model_name='asynctask', name='stat...
26.473684
160
0.59841
540a290f5325f065fa4fc57591a495a2d82d77f7
5,389
py
Python
monai/handlers/checkpoint_loader.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
monai/handlers/checkpoint_loader.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
monai/handlers/checkpoint_loader.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
46.059829
115
0.674708
e72c57f0931809e2e1bedc79707f191de1dcaeec
3,845
py
Python
solutions/video_similarity_search/quick_deploy/server/src/mysql_helpers.py
kilianovski/bootcamp
8f3a753592ecb931815fde068f6377485e3fbe79
[ "Apache-2.0" ]
789
2019-08-26T11:20:33.000Z
2022-03-31T05:12:20.000Z
solutions/video_similarity_search/quick_deploy/server/src/mysql_helpers.py
kilianovski/bootcamp
8f3a753592ecb931815fde068f6377485e3fbe79
[ "Apache-2.0" ]
569
2019-08-22T12:45:59.000Z
2022-03-27T09:08:39.000Z
solutions/video_similarity_search/quick_deploy/server/src/mysql_helpers.py
kilianovski/bootcamp
8f3a753592ecb931815fde068f6377485e3fbe79
[ "Apache-2.0" ]
450
2019-08-09T10:12:14.000Z
2022-03-27T12:30:36.000Z
import sys import pymysql from config import MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PWD, MYSQL_DB from logs import LOGGER class MySQLHelper(): """ Say something about the ExampleCalass... Args: args_0 (`type`): ... """ def __init__(self): self.conn = pymysql.connect(hos...
37.696078
138
0.573212
ccff29814fcb908827e2d75b30c019818f00dd4c
3,201
py
Python
vspk/v6/nuvsdsession.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
19
2016-03-07T12:34:22.000Z
2020-06-11T11:09:02.000Z
vspk/v6/nuvsdsession.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
40
2016-06-13T15:36:54.000Z
2020-11-10T18:14:43.000Z
vspk/v6/nuvsdsession.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
15
2016-06-10T22:06:01.000Z
2020-12-15T18:37:42.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
37.22093
196
0.692596
298fcaf8233ffd51d659b02d596620b1f512ca77
1,583
py
Python
Allura/allura/model/repo.py
rohankumardubey/allura
9c490a051ca912d28b81ce656441d6fed100cb24
[ "Apache-2.0" ]
1
2021-12-09T21:52:12.000Z
2021-12-09T21:52:12.000Z
Allura/allura/model/repo.py
rohankumardubey/allura
9c490a051ca912d28b81ce656441d6fed100cb24
[ "Apache-2.0" ]
null
null
null
Allura/allura/model/repo.py
rohankumardubey/allura
9c490a051ca912d28b81ce656441d6fed100cb24
[ "Apache-2.0" ]
null
null
null
# 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 (t...
47.969697
109
0.734049
1448d4438f7a39176b6d4e2a54255edb077f4f25
2,156
py
Python
get_fst_batch_paraphrases.py
ucdaviscl/soliloquy
9d108a6984c00868c3fbaa171e1cd9bbb0258829
[ "BSD-2-Clause" ]
1
2018-05-05T00:14:12.000Z
2018-05-05T00:14:12.000Z
get_fst_batch_paraphrases.py
ucdaviscl/soliloquy
9d108a6984c00868c3fbaa171e1cd9bbb0258829
[ "BSD-2-Clause" ]
null
null
null
get_fst_batch_paraphrases.py
ucdaviscl/soliloquy
9d108a6984c00868c3fbaa171e1cd9bbb0258829
[ "BSD-2-Clause" ]
3
2018-07-11T07:13:36.000Z
2018-07-16T22:05:14.000Z
import sys import argparse import pickle import sentalter import tokenizer print('Initializing...') # lv = sentalter.AlterSent('en_vec.txt', 'wiki_other_en.o4.h10m.fst', '/data/OpenNMT', '/data/soliloquy_variation/language_model/luamodel_1/model_epoch13_1.16.t7', 50000) eprint = lambda x: print(x, file = sys.stderr)...
30.366197
170
0.690631
3c4c617814ef7d2514496a7dab718e019efb4ce7
3,715
py
Python
mhmm/train/utils.py
warhuus/mhmms
d292dce898c1cdfa16f6d16dea1d116ec94ea35d
[ "MIT" ]
null
null
null
mhmm/train/utils.py
warhuus/mhmms
d292dce898c1cdfa16f6d16dea1d116ec94ea35d
[ "MIT" ]
null
null
null
mhmm/train/utils.py
warhuus/mhmms
d292dce898c1cdfa16f6d16dea1d116ec94ea35d
[ "MIT" ]
null
null
null
from typing import Optional import torch import numpy as np from hmmlearn import hmm from sklearn import cluster from scipy import linalg from .. import ops def get_D_from_L_dense(L_dense: torch.tensor) -> int: """ Get number of dimensions from L_dense """ L_dense_np = L_dense.detach().cpu().numpy() ret...
29.251969
104
0.605114
f4248d9ab14c2527ab1fcc13fe88eb4f955336d8
862
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_45/rule_5.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_45/rule_5.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_45/rule_5.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Age, obj[4]: Education, obj[5]: Occupation, obj[6]: Bar, obj[7]: Coffeehouse, obj[8]: Restaurant20to50, obj[9]: Direction_same, obj[10]: Distance # {"feature": "Time", "instances": 23, "metric_value": 0.9986, "depth": 1} if obj[1]<=1: ...
37.478261
226
0.602088
95fc1d9382047f4b373f1348185dd3886d191b6c
1,251
py
Python
2018/08.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2018/08.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2018/08.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
DATA = '08.txt' def get_data(): with open(DATA) as f: data = [int(_) for _ in f.readline().split()] return get_tree(data, pointer=0)[0] def get_tree(data, pointer): if pointer >= len(data): return [], pointer else: num_children = data[pointer] num_meta = data[pointer...
20.508197
71
0.541167
50b2df8000cf7bd43347fa314b62c2abed715d2f
26,632
py
Python
PythonApp/externals/WebScrapper/get_players_historical_data.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
PythonApp/externals/WebScrapper/get_players_historical_data.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
PythonApp/externals/WebScrapper/get_players_historical_data.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ =Get Players' Data= Scrapes all of the players' urls to get individual data from each one. """ import selenium_func as sel from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expect...
56.66383
186
0.371583
c8ed87b8b81707ded4b2bd88ff838dc73c3bc700
3,899
py
Python
metrics.py
mazzamani/bike-sharing
61019741541925ef0623fd0ca472c2028582c2d4
[ "MIT" ]
null
null
null
metrics.py
mazzamani/bike-sharing
61019741541925ef0623fd0ca472c2028582c2d4
[ "MIT" ]
null
null
null
metrics.py
mazzamani/bike-sharing
61019741541925ef0623fd0ca472c2028582c2d4
[ "MIT" ]
null
null
null
import torch import numpy as np from sklearn.metrics import mean_absolute_error import matplotlib.pyplot as plt class Metric(): def __init__(self, train_loader, val_loader, test_loader, model, optimizer, loss, bins, test_prev_out_continuous, test_out_continuous, max_val): self.bins = bins...
36.783019
115
0.612208
19a50c338dc62f47167be6c04464bc6100387243
2,176
py
Python
evelink/parsing/industry_jobs.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
1
2017-05-06T22:58:13.000Z
2017-05-06T22:58:13.000Z
evelink/parsing/industry_jobs.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
null
null
null
evelink/parsing/industry_jobs.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
null
null
null
from evelink import api from evelink import constants def parse_industry_jobs(api_result): rowset = api_result.find('rowset') result = {} if rowset is None: return for row in rowset.findall('row'): # shortcut to make the following block less painful ...
38.175439
65
0.431526
0c272c6e335859ae8c228b49076800c1f90470a7
1,330
py
Python
tests/jobwatcher/unittests.py
jeyarajsiddhu/aws-parallelcluster-node
9bd95de70a752949c0526d1ade6df75198c53882
[ "Apache-2.0" ]
1
2020-11-18T21:06:15.000Z
2020-11-18T21:06:15.000Z
tests/jobwatcher/unittests.py
jeyarajsiddhu/aws-parallelcluster-node
9bd95de70a752949c0526d1ade6df75198c53882
[ "Apache-2.0" ]
1
2019-10-03T21:34:33.000Z
2019-10-03T21:34:33.000Z
tests/jobwatcher/unittests.py
jeyarajsiddhu/aws-parallelcluster-node
9bd95de70a752949c0526d1ade6df75198c53882
[ "Apache-2.0" ]
null
null
null
import unittest from jobwatcher.plugins import utils instance_properties = {"slots": 8} class OptimalNodeCountTests(unittest.TestCase): def test_empty_lists(self): nodes = utils.get_optimal_nodes([], [], instance_properties) expected = 0 self.assertEqual(nodes, expected) def test_ea...
31.666667
89
0.672932
ac2260f06ee51e1860243c50a5762eba944d5e65
2,667
py
Python
tests/conftest.py
szkkteam/flask_mm
ea96899a41a0573e51792f1554550c6d77f22a07
[ "MIT" ]
1
2021-03-21T18:46:36.000Z
2021-03-21T18:46:36.000Z
tests/conftest.py
szkkteam/flask_mm
ea96899a41a0573e51792f1554550c6d77f22a07
[ "MIT" ]
null
null
null
tests/conftest.py
szkkteam/flask_mm
ea96899a41a0573e51792f1554550c6d77f22a07
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Common Python library imports from __future__ import unicode_literals import io import os import six # Pip package imports from flask import Flask from werkzeug.datastructures import FileStorage import pytest # Internal package imports import flask_mm as mm PNG_FILE...
22.411765
80
0.615673
e04ae8df3826a7fb0382650c3234d0116e820fb2
3,382
py
Python
examples/ner-run.py
echan00/FARM
2dab3362c749eaddccacfc71d3bcfee4753fd72a
[ "Apache-2.0" ]
null
null
null
examples/ner-run.py
echan00/FARM
2dab3362c749eaddccacfc71d3bcfee4753fd72a
[ "Apache-2.0" ]
null
null
null
examples/ner-run.py
echan00/FARM
2dab3362c749eaddccacfc71d3bcfee4753fd72a
[ "Apache-2.0" ]
null
null
null
# fmt: off import logging from farm.data_handler.data_silo import DataSilo from farm.data_handler.processor import NER2Processor from farm.modeling.optimization import initialize_optimizer from farm.infer import Inferencer from farm.modeling.adaptive_model import AdaptiveModel from farm.modeling.language_model import B...
39.325581
158
0.745713
4ddb6cf5e77a90945961bfb2e22496c25d926977
5,773
py
Python
setup.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
5
2015-12-03T09:42:44.000Z
2021-06-06T19:23:29.000Z
setup.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2016-09-27T02:00:41.000Z
2016-09-27T02:15:32.000Z
setup.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2017-10-27T13:27:32.000Z
2017-10-27T13:27:32.000Z
#!/usr/bin/env python # Do not add setuptools here; use setupegg.py instead. Nose still has problems running # tests inside of egg packages, so it is useful to be able to install without eggs as needed. from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info import os, sys #...
43.406015
115
0.638663
9ae33c4ad8d52f60978eb03aed6304e10b28d6ab
5,639
py
Python
ludwig/utils/image_utils.py
geodesign/ludwig
9b2db8938d22999e42211f5fbc1f596fb62ef28c
[ "Apache-2.0" ]
null
null
null
ludwig/utils/image_utils.py
geodesign/ludwig
9b2db8938d22999e42211f5fbc1f596fb62ef28c
[ "Apache-2.0" ]
null
null
null
ludwig/utils/image_utils.py
geodesign/ludwig
9b2db8938d22999e42211f5fbc1f596fb62ef28c
[ "Apache-2.0" ]
1
2019-09-05T09:19:39.000Z
2019-09-05T09:19:39.000Z
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
30.983516
120
0.630254
17edae6eaa387a6b409760fb41f07a4992aaa30f
628
py
Python
pastepwn/core/paste.py
razper/pastepwn
b84daa8eca9eb0eac72518e1f2596eec41cb1c77
[ "MIT" ]
null
null
null
pastepwn/core/paste.py
razper/pastepwn
b84daa8eca9eb0eac72518e1f2596eec41cb1c77
[ "MIT" ]
null
null
null
pastepwn/core/paste.py
razper/pastepwn
b84daa8eca9eb0eac72518e1f2596eec41cb1c77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Paste(object): def __init__(self, key, title, user, size, date, expire, syntax, scrape_url, full_url): self.key = key self.title = title self.user = user self.size = size self.date = date self.expire = expire self.syntax = synt...
22.428571
91
0.573248
17273b3aa1095fa5947eb8e0fde70410ff46f214
6,782
py
Python
flexmeasures/data/models/forecasting/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/data/models/forecasting/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/data/models/forecasting/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from typing import Tuple, List, Union from datetime import datetime, timedelta from flexmeasures.data.models.forecasting.exceptions import NotEnoughDataException from flexmeasures.data.models.time_series import Sensor from flexmeasures.utils.time_utils import as_server_time def check_data_availability( old_senso...
50.992481
119
0.569154
0b8a414de4307661152b7c82884bba51754aab2d
2,317
py
Python
setup.py
notme9/climetlab-s2s-ai-competition
6757c57f6ae6c1e99fab5fde5da68b4ae336af92
[ "Apache-2.0" ]
null
null
null
setup.py
notme9/climetlab-s2s-ai-competition
6757c57f6ae6c1e99fab5fde5da68b4ae336af92
[ "Apache-2.0" ]
null
null
null
setup.py
notme9/climetlab-s2s-ai-competition
6757c57f6ae6c1e99fab5fde5da68b4ae336af92
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status ...
34.073529
98
0.684506
068d5e5275f0d1ae8606383c7068af0ebc153285
63,843
py
Python
pandas/core/groupby/generic.py
Nabel0721/pandas
82ccf04142a32fddbb202d6dcaed36915d942333
[ "BSD-3-Clause" ]
null
null
null
pandas/core/groupby/generic.py
Nabel0721/pandas
82ccf04142a32fddbb202d6dcaed36915d942333
[ "BSD-3-Clause" ]
null
null
null
pandas/core/groupby/generic.py
Nabel0721/pandas
82ccf04142a32fddbb202d6dcaed36915d942333
[ "BSD-3-Clause" ]
null
null
null
""" Define the SeriesGroupBy and DataFrameGroupBy classes that hold the groupby interfaces (and some implementations). These are user facing as the result of the ``df.groupby(...)`` operations, which here returns a DataFrameGroupBy object. """ from collections import OrderedDict, abc, namedtuple import copy import fun...
33.027936
88
0.548674
93febfe0182db748a0c32ac5f39aa03966852dce
1,025
py
Python
OnlineOrderConsumer/online_order_consumer.py
AidanFarhi/DataEngineering.Kafka.MbyN
ebd377cb24b9b72d8a4ba40f8d4737e3e7279fe9
[ "MIT" ]
null
null
null
OnlineOrderConsumer/online_order_consumer.py
AidanFarhi/DataEngineering.Kafka.MbyN
ebd377cb24b9b72d8a4ba40f8d4737e3e7279fe9
[ "MIT" ]
null
null
null
OnlineOrderConsumer/online_order_consumer.py
AidanFarhi/DataEngineering.Kafka.MbyN
ebd377cb24b9b72d8a4ba40f8d4737e3e7279fe9
[ "MIT" ]
null
null
null
from typing import Counter from kafka import KafkaConsumer, TopicPartition from time import sleep from sys import argv def extract_orders(records): orders = [] for record in records: orders.append(record.value.decode('utf-8')) return orders if __name__ == '__main__': # pass in partition fro...
25
87
0.595122
50e2c013afcd9d22d8ad54d90b8b913269cf7e9f
10,367
py
Python
gen_data.py
cherry979988/OpenNRE
740e6abd3b8b30625cb88a643a2acb65d5e923dd
[ "MIT" ]
null
null
null
gen_data.py
cherry979988/OpenNRE
740e6abd3b8b30625cb88a643a2acb65d5e923dd
[ "MIT" ]
null
null
null
gen_data.py
cherry979988/OpenNRE
740e6abd3b8b30625cb88a643a2acb65d5e923dd
[ "MIT" ]
null
null
null
import numpy as np import os import json import os import pickle # folder of training datasets data_path = "./origin_data/" # files to export data export_path = "./data/" if not os.path.exists('./data'): os.mkdir('./data') #length of sentence fixlen = 120 #max length of position embedding is 100 (-100~+100) maxlen...
36.503521
183
0.607215
df0a8c804b0f350932d415236644b6731a973192
1,147
py
Python
f5/bigip/tm/sys/test/test_dns.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/bigip/tm/sys/test/test_dns.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
f5/bigip/tm/sys/test/test_dns.py
jputrino/f5-common-python
64cd019eb22b0e9a49e0c49ebb05f2a23ffa0e49
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 F5 Networks 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 or agreed to in writi...
29.410256
74
0.747167
bc9c3e215db104102722df35b79425ec63549135
922
py
Python
seamges/prestaciones/migrations/0001_initial.py
jaramosperez/seamges
8bb522de5a3b73ffc29572d73de898462f76b644
[ "MIT" ]
null
null
null
seamges/prestaciones/migrations/0001_initial.py
jaramosperez/seamges
8bb522de5a3b73ffc29572d73de898462f76b644
[ "MIT" ]
4
2021-04-08T21:42:43.000Z
2021-06-10T19:55:08.000Z
seamges/prestaciones/migrations/0001_initial.py
jaramosperez/seamges
8bb522de5a3b73ffc29572d73de898462f76b644
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-24 19:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Prestacion', fields=[ ('id', models.AutoFie...
31.793103
114
0.575922
2feb1f69d14978aec6428bf9669517f9b47704d7
972
py
Python
courses/migrations/0003_course.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
courses/migrations/0003_course.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
courses/migrations/0003_course.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-31 15:15 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('courses', '0002_rename_course_to_courserun'), ] ope...
34.714286
114
0.614198
221bb572f5184827d16d1b1f3bb65336ab802873
2,233
py
Python
cinema_system/paymentSystem/migrations/0001_initial.py
SJPark94/E-Cinema-Booking-System
dbb92f615a3c5f63def2cc7247183555176d79ef
[ "MIT" ]
1
2019-04-22T19:55:25.000Z
2019-04-22T19:55:25.000Z
cinema_system/paymentSystem/migrations/0001_initial.py
SJPark94/E-Cinema-Booking-System
dbb92f615a3c5f63def2cc7247183555176d79ef
[ "MIT" ]
null
null
null
cinema_system/paymentSystem/migrations/0001_initial.py
SJPark94/E-Cinema-Booking-System
dbb92f615a3c5f63def2cc7247183555176d79ef
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-12-02 22:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('userAccount', '0012_auto_20181202_2126'), ] operations = [ ...
42.942308
163
0.598298
1ac08cab04376663c48298bb3eb2af703e4151e0
179
py
Python
yahooWebAutomation.py
sanogotech/RPA-Python
c420844b6a7db08861dfba0424bdfd412b70ec01
[ "Apache-2.0" ]
null
null
null
yahooWebAutomation.py
sanogotech/RPA-Python
c420844b6a7db08861dfba0424bdfd412b70ec01
[ "Apache-2.0" ]
null
null
null
yahooWebAutomation.py
sanogotech/RPA-Python
c420844b6a7db08861dfba0424bdfd412b70ec01
[ "Apache-2.0" ]
null
null
null
import rpa as r r.init() r.url('https://fr.yahoo.com/') r.type('//*[@name="p"]', 'java in action [enter]') #print(r.read('result-stats')) #r.snap('page', 'results.png') r.close()
22.375
50
0.608939
90562d6795ac05105665bc645a17f9817c51822a
990
py
Python
setup.py
jjaros587/selenium_generator
9653d880f7603e374a0f210bd1fcfedf2f1fd717
[ "MIT" ]
1
2020-08-24T18:40:37.000Z
2020-08-24T18:40:37.000Z
setup.py
jjaros587/selenium_generator
9653d880f7603e374a0f210bd1fcfedf2f1fd717
[ "MIT" ]
null
null
null
setup.py
jjaros587/selenium_generator
9653d880f7603e374a0f210bd1fcfedf2f1fd717
[ "MIT" ]
null
null
null
import setuptools with open("README.rst", 'r') as f: long_description = f.read() with open("requirements.txt", 'r') as f: install_requires = f.readlines() setuptools.setup( name='selenium-generator', version='0.3', description='A framework for automated generating of Selenim WebDriver tests from ...
33
121
0.690909
88ade649c8691e67ea69421cd478a8c73a391fc7
479
py
Python
titan/django_pkg/extendspectypes/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/django_pkg/extendspectypes/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/django_pkg/extendspectypes/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
from moonleap import MemFun, Prop, extend from moonleap.typespec.field_spec import FieldSpec from moonleap.typespec.type_spec_store import TypeSpec from . import props @extend(TypeSpec) class ExtendTypeSpec: tn_graphene = Prop(props.tn_graphene) @extend(FieldSpec) class ExtendFieldSpec: graphene_input_type...
26.611111
61
0.816284
a69bd66ce1fab11d9ba8f861538ef756680b8dea
3,050
py
Python
netket/sampler/rules/hamiltonian_numpy.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
352
2018-04-24T16:45:10.000Z
2022-03-31T01:15:34.000Z
netket/sampler/rules/hamiltonian_numpy.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
947
2018-04-24T20:16:17.000Z
2022-03-31T17:33:52.000Z
netket/sampler/rules/hamiltonian_numpy.py
gpescia/MyNetKet
958510966a5870d9d491de0628903cf1fc210921
[ "Apache-2.0" ]
148
2018-04-25T02:44:20.000Z
2022-03-11T11:42:34.000Z
# Copyright 2021 The NetKet 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 applicable ...
31.443299
141
0.662623
42b9f33beb4f10a143ac87acb76f58b0b9bf371f
491
py
Python
alfastaff_account/migrations/0002_auto_20201118_1738.py
spanickroon/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
1
2020-12-22T12:14:44.000Z
2020-12-22T12:14:44.000Z
alfastaff_account/migrations/0002_auto_20201118_1738.py
ZayJob/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
6
2020-12-20T01:32:44.000Z
2021-07-08T10:11:14.000Z
alfastaff_account/migrations/0002_auto_20201118_1738.py
ZayJob/Alfa-Staff
4db9332634f278bac2fb7b543bcd86a2651214e2
[ "MIT" ]
1
2022-03-27T10:10:54.000Z
2022-03-27T10:10:54.000Z
# Generated by Django 3.0.7 on 2020-11-18 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('alfastaff_account', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='avatar', ...
25.842105
155
0.639511
7c516b78fea7c17114fd23d9470b071cc9455627
1,151
py
Python
PsychoPy/Tangram Game/tangram.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/Tangram Game/tangram.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/Tangram Game/tangram.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
# Importing libraries import datetime import random import glob import pandas as pd from psychopy import core, event, gui, sound, visual # Variable definitions stopwatch = core.Clock() stopwatch.reset() reaction_time = [] answer = [] # Fetching figures pics = glob.glob("stimulus/stimulus_*.png") pics_descriptor =...
19.183333
100
0.67854
62b2ed9b9d9fe50eeb0370d065742b66eb5c10b6
2,211
py
Python
homeassistant/components/bmw_connected_drive/device_tracker.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
homeassistant/components/bmw_connected_drive/device_tracker.py
flexy2dd/core
1019ee22ff13e5f542e868179d791e6a0d87369a
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/bmw_connected_drive/device_tracker.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
1
2020-03-09T19:15:38.000Z
2020-03-09T19:15:38.000Z
"""Device tracker for BMW Connected Drive vehicles.""" import logging from homeassistant.components.device_tracker import SOURCE_TYPE_GPS from homeassistant.components.device_tracker.config_entry import TrackerEntity from . import DOMAIN as BMW_DOMAIN, BMWConnectedDriveBaseEntity from .const import CONF_ACCOUNT, DATA...
33
94
0.678426
84866a1bb1d29132d5bf1ee549dc55236b4551ca
20,365
py
Python
stats/models.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
stats/models.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
stats/models.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
from email.policy import default from typing_extensions import Required from django.core import validators import hashlib from django.db import models from roulette.models import Weapon from django.contrib.auth.models import User import datetime from .validators import InRangeValidator, ListedValueValidator, SumValidat...
32.172196
150
0.617039
5b2298b51b3d336b14b2368e8e5a84af2349dc09
3,498
py
Python
google/ads/google_ads/v5/proto/services/ad_schedule_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/proto/services/ad_schedule_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/proto/services/ad_schedule_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.ads.google_ads.v5.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_resources_dot_ad__schedule__view__pb2...
45.428571
176
0.75243
d5bc3549916df57be3905c91ad310147ce4e3a39
3,340
py
Python
google/cloud/automl/v1beta1/automl-v1beta1-py/google/cloud/automl_v1beta1/types/translation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/automl/v1beta1/automl-v1beta1-py/google/cloud/automl_v1beta1/types/translation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/automl/v1beta1/automl-v1beta1-py/google/cloud/automl_v1beta1/types/translation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.377049
79
0.649701
9093d6087090283ff9dc341da5068fd14034ce8f
982
py
Python
loader_png.py
MathGaron/data_loading_test
dbccd64d4e40a33de1aa89ca1a83ff8b6e82daaf
[ "MIT" ]
null
null
null
loader_png.py
MathGaron/data_loading_test
dbccd64d4e40a33de1aa89ca1a83ff8b6e82daaf
[ "MIT" ]
null
null
null
loader_png.py
MathGaron/data_loading_test
dbccd64d4e40a33de1aa89ca1a83ff8b6e82daaf
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image from loader_base import LoaderBase import os class LoaderPng(LoaderBase): def __init__(self, root, data_transform=[], target_transform=[]): super(LoaderPng, self).__init__(root, data_transform, target_transform) def index_dataset(self, dir): # get all...
32.733333
95
0.639511
9669823cd68575637acc4620f0e2a6af1e54e650
2,462
py
Python
behavioural/strategy.py
prateeksan/python-design-patterns
f9c6fc3501a5a2c8467980aaf1ba7a9839bf07cf
[ "MIT" ]
61
2017-06-07T22:48:38.000Z
2022-02-25T01:06:37.000Z
behavioural/strategy.py
smohant/python-design-patterns
f9c6fc3501a5a2c8467980aaf1ba7a9839bf07cf
[ "MIT" ]
2
2017-06-25T21:08:58.000Z
2021-04-20T00:41:49.000Z
behavioural/strategy.py
smohant/python-design-patterns
f9c6fc3501a5a2c8467980aaf1ba7a9839bf07cf
[ "MIT" ]
12
2017-06-08T15:34:52.000Z
2022-02-24T09:01:05.000Z
""" The Strategy Pattern The strategy pattern aims to separate an algorithm's logic from its interface. This is particularly useful when a client programmer would like to dynamically select an algorithm from a predefinted set while maintaining the same interface to use the algorithm. In Python, it is possible to dynam...
35.171429
80
0.711617
44808c7feb85c8ba922bb1e76022a6b3610aa392
1,965
py
Python
bsp/rockchip/tools/buildutil.py
h-hys/new_rk2108
a899e5e4512e5fc7dbb70cdea19257291e9ff042
[ "Apache-2.0" ]
null
null
null
bsp/rockchip/tools/buildutil.py
h-hys/new_rk2108
a899e5e4512e5fc7dbb70cdea19257291e9ff042
[ "Apache-2.0" ]
1
2021-08-19T10:47:10.000Z
2021-08-19T10:47:10.000Z
bsp/rockchip/tools/buildutil.py
h-hys/new_rk2108
a899e5e4512e5fc7dbb70cdea19257291e9ff042
[ "Apache-2.0" ]
1
2021-06-11T09:42:42.000Z
2021-06-11T09:42:42.000Z
import os import configparser def GetStringFromConfig(bsp_dir, string): try: config = open(bsp_dir + '/rtconfig.h', 'r') except IOError: print('no found rtconfig.h, use scons --menuconfig before compile') else: cfg_list = config.readlines() for cfg in cfg_list: i...
30.703125
96
0.556234
9282555d370e59195f4dacbc0447e4e8d294ddd9
12,331
py
Python
examples/test_context_based_restrictions_v1_examples.py
cam-d12/platform-services-python-sdk
ceb5367d2e51596e6dcebc8a965c1442011ea21c
[ "Apache-2.0" ]
10
2020-04-02T15:48:33.000Z
2021-06-23T05:12:49.000Z
examples/test_context_based_restrictions_v1_examples.py
cam-d12/platform-services-python-sdk
ceb5367d2e51596e6dcebc8a965c1442011ea21c
[ "Apache-2.0" ]
151
2020-03-30T20:24:39.000Z
2022-03-30T16:51:22.000Z
examples/test_context_based_restrictions_v1_examples.py
cam-d12/platform-services-python-sdk
ceb5367d2e51596e6dcebc8a965c1442011ea21c
[ "Apache-2.0" ]
25
2020-04-16T21:03:19.000Z
2021-12-13T19:37:39.000Z
# -*- coding: utf-8 -*- # (C) Copyright IBM Corp. 2021. # # 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 l...
29.5
121
0.579839
64aa5b6c6bc5aa91673ec73c6080131574b84d2f
2,477
py
Python
graph_based_clustering/utils.py
dayyass/graph-clustering
b5ac8730dc657698b90493f8c726204aa96517dd
[ "MIT" ]
15
2021-09-21T06:57:28.000Z
2021-10-03T14:02:16.000Z
graph_based_clustering/utils.py
dayyass/graph-clustering
b5ac8730dc657698b90493f8c726204aa96517dd
[ "MIT" ]
14
2021-09-18T19:57:09.000Z
2021-10-09T07:18:50.000Z
graph_based_clustering/utils.py
dayyass/graph-clustering
b5ac8730dc657698b90493f8c726204aa96517dd
[ "MIT" ]
1
2022-03-23T18:52:45.000Z
2022-03-23T18:52:45.000Z
from typing import Callable, Optional, Tuple, Union import numpy as np from sklearn.metrics import pairwise_distances from .check import _check_matrix, check_symmetric def _pairwise_distances( X: np.ndarray, metric: Union[str, Callable] = "euclidean", n_jobs: Optional[int] = None, ) -> np.ndarray: "...
27.522222
130
0.669358
9b3b3e4780962ac0eb84f3fdd18bfd1c1bfa712a
239
py
Python
Python/Collections namedtuple/collections_namedtuple.py
sachinprabhu007/HackerRank-Solutions
f42d3c1e989b288e42b4674a926d007aa22940a1
[ "MIT" ]
null
null
null
Python/Collections namedtuple/collections_namedtuple.py
sachinprabhu007/HackerRank-Solutions
f42d3c1e989b288e42b4674a926d007aa22940a1
[ "MIT" ]
1
2019-01-16T12:13:29.000Z
2019-01-16T14:57:57.000Z
Python/Collections namedtuple/collections_namedtuple.py
sachinprabhu007/HackerRank-Solutions
f42d3c1e989b288e42b4674a926d007aa22940a1
[ "MIT" ]
null
null
null
from collections import namedtuple n = int(input()) a = input() total = 0 Student = namedtuple('Student', a) for _ in range(n): student = Student(*input().split()) total += int(student.MARKS) print('{:.2f}'.format(total/n))
26.555556
40
0.635983
2dad3fd2b1cc1c447cbdfe751a706d32f1080e62
445
py
Python
controllers/users_controller.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
controllers/users_controller.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
controllers/users_controller.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
from connection import connect_db import cx_Oracle def get_user(username, password): found_user = [] sql = "select * from admin.users where user_name = :username and user_pass = :password" conn = connect_db() c = conn.cursor() c.execute(sql, [username, password]) for row in c: found_u...
23.421053
91
0.631461
62f1059a797857bf3e9a660096fe8950e091c695
5,025
py
Python
test/functional/p2p-leaktests.py
Serik53/PAC
4e8814a58097c9b8abd0efccaf40b22060e33c36
[ "MIT" ]
null
null
null
test/functional/p2p-leaktests.py
Serik53/PAC
4e8814a58097c9b8abd0efccaf40b22060e33c36
[ "MIT" ]
null
null
null
test/functional/p2p-leaktests.py
Serik53/PAC
4e8814a58097c9b8abd0efccaf40b22060e33c36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test message sending before handshake completion. A node should never send anything other than VERSION/VERA...
39.880952
104
0.722189
067f34662140ad8b31c2518e7108f8932710e07b
7,446
py
Python
transporter/Object/road.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
transporter/Object/road.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
transporter/Object/road.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
import math class Road: def __init__(self, start, end, width): # self.no = no self.s = start # 시작 위치 클래스 self.e = end # 도착 위치 클래스 self.w = width # 넓이 self.d = math.sqrt((start.x - end.x)**2 + (start.y - end.y)**2) # 길이 self.s_e = {} # 시작 --> 도착...
34.472222
100
0.437013
cac44621020b327543539a7e024c31399cb28f9c
5,982
py
Python
AdBlocker.py
alextharaud/Umbrella
c156fd490768992f77c46a261279623774007635
[ "Apache-2.0" ]
null
null
null
AdBlocker.py
alextharaud/Umbrella
c156fd490768992f77c46a261279623774007635
[ "Apache-2.0" ]
null
null
null
AdBlocker.py
alextharaud/Umbrella
c156fd490768992f77c46a261279623774007635
[ "Apache-2.0" ]
null
null
null
# NOTE: this is the main script used for the ad blocker # import necessary libraries and functions import simplejson as json import requests from config import Config import time import sys from datetime import datetime # additional functions can be imported from external python script (i.e. AdBlockerFunctions.py) fro...
42.126761
151
0.640254
0478e8d94c7de350f225ec04c061cb98b4b3c401
2,373
py
Python
browser/markers/main.py
aksarkar/singlecell-modes
4e621e87407498a7b6d7bcf9955f2a02adc35e71
[ "MIT" ]
2
2020-04-13T16:21:20.000Z
2021-04-25T05:08:09.000Z
browser/markers/main.py
aksarkar/singlecell-modes
4e621e87407498a7b6d7bcf9955f2a02adc35e71
[ "MIT" ]
null
null
null
browser/markers/main.py
aksarkar/singlecell-modes
4e621e87407498a7b6d7bcf9955f2a02adc35e71
[ "MIT" ]
3
2020-04-13T16:21:46.000Z
2021-06-10T04:18:08.000Z
import bokeh.io import bokeh.layouts import bokeh.models import bokeh.palettes import bokeh.plotting import numpy as np import pandas as pd import sqlite3 db = '/project2/mstephens/aksarkar/projects/singlecell-modes/browser/browser.db' def update_gene(attr, old, new): global gene_df global gene_data with sqlite...
33.422535
109
0.698694
1c66d25305f7ff105e401f431f4fc84b8ea3b005
4,321
py
Python
scripts/style/prompt.py
JamzumSum/AssetsUpdater
05fc783fe116cab8d754c237356ee3b4fdd098f0
[ "MIT" ]
1
2021-09-28T11:51:02.000Z
2021-09-28T11:51:02.000Z
scripts/style/prompt.py
JamzumSum/AssetsUpdater
05fc783fe116cab8d754c237356ee3b4fdd098f0
[ "MIT" ]
null
null
null
scripts/style/prompt.py
JamzumSum/AssetsUpdater
05fc783fe116cab8d754c237356ee3b4fdd098f0
[ "MIT" ]
null
null
null
from typing import Any, Callable, List, Optional, TextIO, Type, TypeVar, Union, overload from rich.console import Console from rich.prompt import InvalidResponse, PromptBase from rich.text import Text, TextType IndexType = TypeVar("IndexType") class IndexPrompt(PromptBase[IndexType]): response_type: Union[Type[...
29.195946
99
0.564453
abdefed495d1d62d0075984fd29b55c17b620bd1
1,374
py
Python
Constants.py
KINGTeC2169/RoyalVision
99252b789a1f4850170a8d25fb7de1767ca46c27
[ "MIT" ]
null
null
null
Constants.py
KINGTeC2169/RoyalVision
99252b789a1f4850170a8d25fb7de1767ca46c27
[ "MIT" ]
null
null
null
Constants.py
KINGTeC2169/RoyalVision
99252b789a1f4850170a8d25fb7de1767ca46c27
[ "MIT" ]
1
2019-01-01T21:07:27.000Z
2019-01-01T21:07:27.000Z
import numpy as np import csv class Constants: lowArray = np.array([]) highArray = np.array([]) ''' Debug Modes: 0 - No Debugging. For use on field 1 - Display Image. Print Yaw and Pitch 2 - Print All Points and Slopes 3 - 1 & 2 ''' debugLevel = 1 def isDebug(self): ...
27.48
110
0.565502
b72294e6948b01724201d19a63a93728aa3fc422
4,276
py
Python
2018/Round_1A/exo1.py
victor-paltz/code-jam
95b876131595d65b004ab682dafa7d71e7b8c421
[ "MIT" ]
1
2020-05-23T22:46:18.000Z
2020-05-23T22:46:18.000Z
2018/Round_1A/exo1.py
victor-paltz/code-jam
95b876131595d65b004ab682dafa7d71e7b8c421
[ "MIT" ]
null
null
null
2018/Round_1A/exo1.py
victor-paltz/code-jam
95b876131595d65b004ab682dafa7d71e7b8c421
[ "MIT" ]
null
null
null
import numpy as np def area_sum(a2, i1, i2, j1, j2): #n, m = a2.shape() if j2 <= j1 or i2 <= i1: return 0 res = a2[i2-1][j2-1] if i1 > 0: res -= a2[i1-1][j2-1] if j1 > 0: res -= a2[i2-1][j1-1] if i1 > 0 and j1 > 0: res += a2[i1-1][j1-1] return res d...
25.759036
98
0.415809
2c93674989f0130ffa55bc33fefc047ce2d6aaa0
2,141
py
Python
examples/ExecutionPools/Rerun/test_plan.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
96
2018-03-14T13:14:50.000Z
2021-01-14T08:26:08.000Z
examples/ExecutionPools/Rerun/test_plan.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
135
2018-06-28T02:41:05.000Z
2021-01-19T02:16:58.000Z
examples/ExecutionPools/Rerun/test_plan.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
53
2018-03-17T14:39:15.000Z
2021-01-21T10:54:13.000Z
#!/usr/bin/env python """ This example is to demonstrate task level rerun feature in a pool. """ import os import sys import uuid import getpass import tempfile from testplan import test_plan from testplan import Task from testplan.runners.pools.base import Pool as ThreadPool from testplan.parser import TestplanPars...
30.585714
79
0.723027
6854e6c32760ec4e4daa9ce732364bcb116fe301
10,109
py
Python
ansible/modules/cloud/azure/azure_rm_availabilityset.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/cloud/azure/azure_rm_availabilityset.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/cloud/azure/azure_rm_availabilityset.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2017 Julien Stroheker, <juliens@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
31.492212
157
0.597487
811b21bb0681b4294fc2d3e89a41438dfb2abb1c
560
py
Python
uptee/lib/templatetags/captcha_tag.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
2
2018-12-26T18:48:58.000Z
2021-07-20T23:41:14.000Z
uptee/lib/templatetags/captcha_tag.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
13
2015-01-20T19:18:10.000Z
2022-03-07T21:35:55.000Z
uptee/lib/templatetags/captcha_tag.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
3
2015-12-04T20:10:50.000Z
2022-01-24T12:31:09.000Z
from captcha.conf import settings as captcha_settings from captcha.models import CaptchaStore from django import template register = template.Library() class CaptchaNode(template.Node): def __init__(self): challenge, response = captcha_settings.get_challenge()() store = CaptchaStore.objects.creat...
25.454545
83
0.723214
a990582a76f2ba523c47478d3aa6306f286618e3
1,257
py
Python
omnisci_olio/workflow/test_client.py
omnisci/omnisci-olio.py
e8b33d660b49bc7677d82845ed384e57582ef0f8
[ "Apache-2.0" ]
2
2022-03-16T20:46:26.000Z
2022-03-16T20:46:28.000Z
omnisci_olio/workflow/test_client.py
heavyai/heavyai-olio.py
e8b33d660b49bc7677d82845ed384e57582ef0f8
[ "Apache-2.0" ]
1
2022-02-05T12:16:09.000Z
2022-02-05T12:16:09.000Z
omnisci_olio/workflow/test_client.py
omnisci/omnisci-olio.py
e8b33d660b49bc7677d82845ed384e57582ef0f8
[ "Apache-2.0" ]
null
null
null
import os import json from time import time import datetime import pandas as pd import pyomnisci from .client import OmniSciDBClient, log_info, log_warning OMNISCI_DB_URL = os.environ['OMNISCI_DB_URL'] def round_sig(x): return float("%.3g" % x) # return x if abs(x) < 100 else int(x) class OmniSciDBTestClien...
27.326087
84
0.659507
975da0f7b1a85c594725294bf457938170cfd49f
14,063
py
Python
src/securebox_options.py
miguelarman/Redes-de-comunicaciones-ii-practica2
143180336ac7ad7b8874fdc4efbfd645876221fc
[ "MIT" ]
null
null
null
src/securebox_options.py
miguelarman/Redes-de-comunicaciones-ii-practica2
143180336ac7ad7b8874fdc4efbfd645876221fc
[ "MIT" ]
null
null
null
src/securebox_options.py
miguelarman/Redes-de-comunicaciones-ii-practica2
143180336ac7ad7b8874fdc4efbfd645876221fc
[ "MIT" ]
null
null
null
""" Prácticas de Redes de comunicaciones 2 Autores: Miguel Arconada Manteca Mario García Pascual securebox_options: En este fichero se implementa el parseo de los argumentos y todas las funcionalidades que tiene el programa a alto nivel. Lo que tiene que ver con cri...
31.46085
102
0.684776
af7f3e4d245320ae3bd9857698add8acc6936c57
7,570
py
Python
viscid/readers/athena_tab.py
jimgreen/Viscid
41e19fee8576c5e3fa9c758c48731bc25e1db1b9
[ "BSD-2-Clause" ]
null
null
null
viscid/readers/athena_tab.py
jimgreen/Viscid
41e19fee8576c5e3fa9c758c48731bc25e1db1b9
[ "BSD-2-Clause" ]
null
null
null
viscid/readers/athena_tab.py
jimgreen/Viscid
41e19fee8576c5e3fa9c758c48731bc25e1db1b9
[ "BSD-2-Clause" ]
1
2019-11-16T18:55:48.000Z
2019-11-16T18:55:48.000Z
"""Athena ascii file reader""" from __future__ import print_function import os import re from itertools import takewhile, count import numpy as np from viscid.readers.vfile_bucket import ContainerFile from viscid.readers import athena from viscid.readers import vfile from viscid import coordinate class AthenaTabFi...
33.201754
89
0.550859
9cc91df4db031ad0dcf209c34c4a1ec8d2f1be11
325
py
Python
applications/pytorch/cnns/utils/__init__.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/pytorch/cnns/utils/__init__.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/pytorch/cnns/utils/__init__.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. from .logger import Logger from .argparser import get_common_parser, parse_with_config from .metrics import Metrics, sync_metrics, accuracy from .ipu_settings import inference_settings, train_settings from .distributed import handle_distributed_settings, init_pop...
46.428571
66
0.849231
c8b1d3a76ac8bd5200811f317d84a61ccb37368e
2,067
py
Python
tests/solph_tests.py
hannesfelipe/oemof-solph
a29802c73b9f3a1240a9ea6cec28f9d52bf1001c
[ "MIT" ]
null
null
null
tests/solph_tests.py
hannesfelipe/oemof-solph
a29802c73b9f3a1240a9ea6cec28f9d52bf1001c
[ "MIT" ]
null
null
null
tests/solph_tests.py
hannesfelipe/oemof-solph
a29802c73b9f3a1240a9ea6cec28f9d52bf1001c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - """Grouping tests. This file is part of project oemof (github.com/oemof/oemof). It's copyrighted by the contributors recorded in the version control history of the file, available from its original location oemof/tests/solph_tests.py SPDX-License-Identifier: MIT """ import os import oemof.sol...
33.33871
77
0.69521
42567699db93ce305d32c95509aa655b80aa11f3
13,530
py
Python
apps/events/utils.py
Xtuden-com/onlineweb4
04b17ba43e150a16481255213f1bc49e38d7e2af
[ "MIT" ]
null
null
null
apps/events/utils.py
Xtuden-com/onlineweb4
04b17ba43e150a16481255213f1bc49e38d7e2af
[ "MIT" ]
1
2021-04-22T12:22:17.000Z
2021-04-29T12:47:45.000Z
apps/events/utils.py
tor0405/onlineweb4
1dd5ebcfb18504d6c280f5ed1d91b945ed9029b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import icalendar from django.conf import settings from django.contrib.humanize.templatetags.humanize import naturaltime from django.core.exceptions import ImproperlyConfigured from django.core.mail import EmailMessage from django.core.signing import BadSignature, Signer from djan...
33.573201
118
0.638285
c517dcd2b88ef5b204d92bbf9929576ccfb259b4
71
py
Python
cmsplugin_newsplus/__init__.py
nimbis/cmsplugin-newsplus
1787fb674faa7800845f18ce782154e290f6be27
[ "BSD-2-Clause" ]
6
2015-06-07T15:09:09.000Z
2016-12-16T20:19:11.000Z
cmsplugin_newsplus/__init__.py
nimbis/cmsplugin-newsplus
1787fb674faa7800845f18ce782154e290f6be27
[ "BSD-2-Clause" ]
17
2015-03-17T16:29:50.000Z
2017-12-08T01:40:47.000Z
cmsplugin_newsplus/__init__.py
nimbis/cmsplugin-newsplus
1787fb674faa7800845f18ce782154e290f6be27
[ "BSD-2-Clause" ]
12
2015-03-02T19:12:49.000Z
2016-07-31T07:58:01.000Z
default_app_config = 'cmsplugin_newsplus.apps.CMSPluginNewsPlusConfig'
35.5
70
0.887324
bf1008118db31c05102d7d19cd765796e110feeb
4,216
py
Python
utils/DialogueState.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
1
2022-03-12T10:09:43.000Z
2022-03-12T10:09:43.000Z
utils/DialogueState.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
null
null
null
utils/DialogueState.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
null
null
null
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2017 # Cambridge University Engineering Department Dialogue Systems Grou...
32.682171
130
0.583729
397e3648481ac6efefd85122048966421a1772f0
14,691
py
Python
models/official/detection/utils/input_utils.py
normster/tpu
5ccd9783b70f759bdeeb4f8d3e944121a8d97668
[ "Apache-2.0" ]
1
2019-11-27T14:54:25.000Z
2019-11-27T14:54:25.000Z
models/official/detection/utils/input_utils.py
normster/tpu
5ccd9783b70f759bdeeb4f8d3e944121a8d97668
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Official/cv/image_classification/EfficientNet_B0_for_TensorFlow/99-origin/tpu-r1.15/models/official/detection/utils/input_utils.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
1
2019-10-10T06:22:37.000Z
2019-10-10T06:22:37.000Z
# Copyright 2019 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...
38.865079
80
0.664352
9e3f2f38fe14655538d64204143cd3f33058bd13
2,767
py
Python
docs/stats.py
HolyCrap96/mmocr-1
c6c4acd39b1c56fec1b87530b2d241fe8af4ceed
[ "Apache-2.0" ]
5
2021-12-28T09:48:11.000Z
2021-12-31T08:18:03.000Z
docs/stats.py
HolyCrap96/mmocr-1
c6c4acd39b1c56fec1b87530b2d241fe8af4ceed
[ "Apache-2.0" ]
null
null
null
docs/stats.py
HolyCrap96/mmocr-1
c6c4acd39b1c56fec1b87530b2d241fe8af4ceed
[ "Apache-2.0" ]
1
2021-09-08T02:30:25.000Z
2021-09-08T02:30:25.000Z
#!/usr/bin/env python # Copyright (c) OpenMMLab. All rights reserved. import functools as func import glob import re from os.path import basename, splitext import numpy as np import titlecase def title2anchor(name): return re.sub(r'-+', '-', re.sub(r'[^a-zA-Z0-9]', '-', name....
29.126316
78
0.563787
bd410b7ba1a2832778e5ced81ddeed9fdee9bc85
16,362
py
Python
discovery-infra/test_infra/utils.py
osherdp/assisted-test-infra
d320b5d76e12a4824c910e405316668fd5d93327
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/utils.py
osherdp/assisted-test-infra
d320b5d76e12a4824c910e405316668fd5d93327
[ "Apache-2.0" ]
124
2020-11-09T06:44:26.000Z
2022-03-28T08:04:02.000Z
discovery-infra/test_infra/utils.py
osherdp/assisted-test-infra
d320b5d76e12a4824c910e405316668fd5d93327
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging import itertools import ipaddress import json import os import shlex import shutil import subprocess import time import datetime from pathlib import Path from functools import wraps from contextlib import contextmanager import libvirt import waiting import requests import fileloc...
29.587703
109
0.639836
81aea95d354716000e08297b84705999ef9ba29a
4,772
py
Python
ichnaea/customjson.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
ichnaea/customjson.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
ichnaea/customjson.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
from calendar import timegm from datetime import date, datetime from uuid import UUID from pytz import UTC import simplejson as json from ichnaea.constants import DEGREE_DECIMAL_PLACES from ichnaea.models.base import JSONMixin def encode_datetime(obj): if isinstance(obj, datetime): return obj.strftime('...
29.276074
78
0.592205
014b00eeb3413ac1e0d5760debe9e79d9c7c05bd
3,397
py
Python
scrapy/commands/check.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
26
2015-02-07T17:35:26.000Z
2020-04-27T21:11:00.000Z
scrapy/commands/check.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
2
2021-09-20T19:54:29.000Z
2022-03-22T21:47:39.000Z
scrapy/commands/check.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
9
2015-09-21T08:17:20.000Z
2021-02-07T02:31:36.000Z
from __future__ import print_function import time import sys from collections import defaultdict from unittest import TextTestRunner, TextTestResult as _TextTestResult from scrapy.command import ScrapyCommand from scrapy.contracts import ContractsManager from scrapy.utils.misc import load_object from scrapy.utils.conf...
33.303922
96
0.600236
029659a93a848f02b625e7757072a89a91a0dcdf
3,574
py
Python
tests/tests.py
poikilos/kivy-tkinter
2dbae24bde6fd9ab32a50421c365835cf1df9fa5
[ "MIT" ]
4
2021-01-05T09:53:05.000Z
2021-03-12T21:16:36.000Z
tests/tests.py
poikilos/kivy-tkinter
2dbae24bde6fd9ab32a50421c365835cf1df9fa5
[ "MIT" ]
1
2021-01-06T12:21:47.000Z
2021-01-14T09:16:19.000Z
tests/tests.py
poikilos/kivy-tkinter
2dbae24bde6fd9ab32a50421c365835cf1df9fa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from inspect import getmembers, isfunction if os.path.isfile("../kivy/properties.py"): sys.path.append("..") from kivy.properties import (ListProperty, DictProperty) d = { '0': 'a', '1': 'b', '3': 'd', } d2 = { '2': 'c', } resultD = { '0': 'a', ...
25.898551
72
0.59737
96511e2b9c183d79dc7fcc51a09e62816ef1bcfe
6,556
py
Python
qats/app/funcs.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
qats/app/funcs.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
qats/app/funcs.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
""" Module with functions for handling file operations and calculations. Made for multithreading. """ import numpy as np from ..tsdb import TsDB from ..stats.weibull import pwm as weibull_pwm from ..stats.gumbel import pwm as gumbel_pwm from ..fatigue.rainflow import rebin as rebin_cycles def calculate_psd(container,...
27.430962
119
0.636821
99e04e66c56527e2c7be03aaf48836e077832c1f
9,818
py
Python
research/cognitive_planning/standard_fields.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
object_detection/serving_script/standard_fields.py
arki1/examples
c93b792d67c8c52bc91d4ccf5fbaead4e2324331
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
object_detection/serving_script/standard_fields.py
arki1/examples
c93b792d67c8c52bc91d4ccf5fbaead4e2324331
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.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...
43.635556
80
0.762783
61d4d46d7ba347aade121b3a1fba2efb9287ab09
13,145
py
Python
connexion/decorators/validation.py
Neufund/connexion
19daa6c6292d0dd4c380d0dc9473c4df1bada234
[ "Apache-2.0" ]
1
2020-11-14T11:22:11.000Z
2020-11-14T11:22:11.000Z
connexion/decorators/validation.py
Neufund/connexion
19daa6c6292d0dd4c380d0dc9473c4df1bada234
[ "Apache-2.0" ]
2
2020-10-26T10:07:35.000Z
2020-11-09T17:21:36.000Z
connexion/decorators/validation.py
Neufund/connexion
19daa6c6292d0dd4c380d0dc9473c4df1bada234
[ "Apache-2.0" ]
2
2020-10-26T05:54:29.000Z
2020-11-14T11:22:14.000Z
import collections import copy import functools import logging import sys import six from jsonschema import (Draft4Validator, ValidationError, draft4_format_checker, validators) from werkzeug import FileStorage from ..exceptions import ExtraParameterProblem from ..problem import problem from ....
38.775811
112
0.601521
ad1c65200ee482f848b7fef358fc4329b17e242f
227
py
Python
notifyore/utils.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
3
2015-11-05T08:57:03.000Z
2016-07-17T18:11:06.000Z
notifyore/utils.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
notifyore/utils.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os def get_convore_logo(): """ returns a path to file for convore logo """ return os.path.join( os.path.dirname( os.path.realpath(__file__)), 'convore_logo.jpg')
18.916667
44
0.550661
11cb76ab31746ed3231aa5eb2cc6de97bf09dfa9
4,009
py
Python
tournament.py
mhhoban/swiss-games
cf5ba2846278336a87511b3c52df4b68bccff7a9
[ "MIT" ]
null
null
null
tournament.py
mhhoban/swiss-games
cf5ba2846278336a87511b3c52df4b68bccff7a9
[ "MIT" ]
null
null
null
tournament.py
mhhoban/swiss-games
cf5ba2846278336a87511b3c52df4b68bccff7a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # tournament.py -- implementation of a Swiss-system tournament # import psycopg2 def connect(): """Connect to the PostgreSQL database. Returns a database connection.""" try: DB = psycopg2.connect("dbname=tournament") cursor = DB.cursor() return DB, cursor ...
26.90604
79
0.650536
5cf87c4985712069510cb381ae03d5b6363d8453
848
py
Python
appengine/flexible/static_files/main_test.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
appengine/flexible/static_files/main_test.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
appengine/flexible/static_files/main_test.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. 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 applicable ...
31.407407
75
0.701651
882b784f98d5cd8d6953f8e7b063671d39726ef2
229
py
Python
record.py
rmcdonnell/BSQL
24880cced80fedd0719fb062de7f6b5f923b2140
[ "MIT" ]
null
null
null
record.py
rmcdonnell/BSQL
24880cced80fedd0719fb062de7f6b5f923b2140
[ "MIT" ]
null
null
null
record.py
rmcdonnell/BSQL
24880cced80fedd0719fb062de7f6b5f923b2140
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # python 3.5.1 """ Author: Bobby McDonnell Date: 12/17/2015 Heirarchy: BSQL > database > table > record """ from table import table class record(table): def __init__(self): pass
12.052632
32
0.655022