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
ced77f9b79511fe1d0c809c0b89f8a8b9ed3ac04
832
py
Python
inference/utils.py
macarthur-lab/MyoSeq_reports
e91ed57f01fcbf2e0ea982d95741a69b16c4c2fb
[ "MIT" ]
null
null
null
inference/utils.py
macarthur-lab/MyoSeq_reports
e91ed57f01fcbf2e0ea982d95741a69b16c4c2fb
[ "MIT" ]
null
null
null
inference/utils.py
macarthur-lab/MyoSeq_reports
e91ed57f01fcbf2e0ea982d95741a69b16c4c2fb
[ "MIT" ]
null
null
null
def get_samples(sampleFile): """ Get requested sample IDs from input file (one sample per line) :param str samp: Name of file containing requested samples :return: List of sample IDs :rtype: list """ samples = [] with open(sampleFile) as s: for line in s: samples.app...
28.689655
83
0.641827
cdbfe2ade1050f220719ec43b177f5c756765332
1,712
py
Python
lib/python2.7/site-packages/twilio/rest/resources/task_router/tasks.py
Gchorba/Ask
cf68c9a522d2c67519a64927c603990c1399af57
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/twilio/rest/resources/task_router/tasks.py
Gchorba/Ask
cf68c9a522d2c67519a64927c603990c1399af57
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/twilio/rest/resources/task_router/tasks.py
Gchorba/Ask
cf68c9a522d2c67519a64927c603990c1399af57
[ "MIT" ]
null
null
null
from .. import NextGenInstanceResource, NextGenListResource class Task(NextGenInstanceResource): """ A Task resource """ def delete(self): """ Delete a task. """ return self.parent.delete_instance(self.name) def update(self, **kwargs): """ Update a...
29.016949
79
0.606893
6f6d57311d8c52083dbd257a9a4bdadd32ebd875
38,234
py
Python
src/olympia/signing/tests/test_views.py
varundey/addons-server
bdc39c4f0510a5e1c8b4e3551f5f15fcd50f10e9
[ "BSD-3-Clause" ]
null
null
null
src/olympia/signing/tests/test_views.py
varundey/addons-server
bdc39c4f0510a5e1c8b4e3551f5f15fcd50f10e9
[ "BSD-3-Clause" ]
null
null
null
src/olympia/signing/tests/test_views.py
varundey/addons-server
bdc39c4f0510a5e1c8b4e3551f5f15fcd50f10e9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import os from datetime import datetime, timedelta from django.conf import settings from django.forms import ValidationError from django.test.utils import override_settings from django.utils import translation import mock import responses from rest_framework.response import Respon...
42.10793
79
0.640451
9681d3bdd6e6a5e379a86bee2ef0f797ee573676
3,754
py
Python
lib/services/loadbalancer/ncloud_loadbalancer/__init__.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/loadbalancer/ncloud_loadbalancer/__init__.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/loadbalancer/ncloud_loadbalancer/__init__.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ loadbalancer OpenAPI spec version: 2018-06-21T02:19:18Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import apis into sdk package from ncloud_loadbalancer.api.v2_api import V2Api # import ApiClien...
69.518519
140
0.922749
7224c4154fa34161e3731f41913fab8ab366d1ee
6,667
py
Python
mayan/apps/documents/links/document_version_page_links.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/documents/links/document_version_page_links.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/documents/links/document_version_page_links.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from django.utils.translation import ugettext_lazy as _ from mayan.apps.navigation.classes import Link from ..icons import ( icon_document_version_page_delete, icon_document_version_page_list, icon_document_version_page_list_append, icon_document_version_page_list_remap, icon_document_version_page_lis...
44.446667
84
0.818359
fbbfa89ebe5b550006b541f5e8d75616bd047c14
1,905
py
Python
data_prep/MP2RAGE/15_cmb_all_masks.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
1
2022-03-17T15:46:25.000Z
2022-03-17T15:46:25.000Z
data_prep/MP2RAGE/15_cmb_all_masks.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
data_prep/MP2RAGE/15_cmb_all_masks.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
"""Opening closing operations on MRI data (nifti).""" import os import numpy as np from nibabel import load, save, Nifti1Image # set analysis path analysispath = str(os.environ['parent_path']) + "/data/shared_data/data_mp2rage" # set list with subj names subjnames = [ 'sub-001', 'sub-013', 'sub-014', ...
29.765625
80
0.645669
f90a1b6d424f52c929c7aeed117d3747ba6850fe
5,888
py
Python
src/pycycle/nozzle.py
OpenMDAO-Plugins/pyCycle
e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d
[ "Apache-2.0" ]
3
2016-11-26T17:19:32.000Z
2020-07-07T14:50:22.000Z
src/pycycle/nozzle.py
jcchin/pyCycle
1a9807901af9d85b667588e8810d86aefde7bd9e
[ "Apache-2.0" ]
null
null
null
src/pycycle/nozzle.py
jcchin/pyCycle
1a9807901af9d85b667588e8810d86aefde7bd9e
[ "Apache-2.0" ]
5
2015-07-02T07:35:05.000Z
2016-11-26T17:18:30.000Z
from openmdao.main.api import Component from openmdao.lib.datatypes.api import Float, VarTree, Enum from pycycle.flowstation import FlowStationVar, FlowStation from pycycle.cycle_component import CycleComponent class Nozzle(CycleComponent): """Calculates the gross thrust for a convergent-divergent nozzle, assu...
38.993377
124
0.608696
3aab721326294ba8b0b7d6710684bdb1b4563719
1,674
py
Python
modules/utils.py
merlinfuchs/clancy
7c08025a47a48ae2fa90ce8916fb32fa6311db68
[ "MIT" ]
null
null
null
modules/utils.py
merlinfuchs/clancy
7c08025a47a48ae2fa90ce8916fb32fa6311db68
[ "MIT" ]
null
null
null
modules/utils.py
merlinfuchs/clancy
7c08025a47a48ae2fa90ce8916fb32fa6311db68
[ "MIT" ]
null
null
null
from dbots.cmd import * from dbots import rest from util import * class UtilsModule(Module): @Module.command() async def nopings(self, ctx, message): """ Send the message without having to worry about pings """ await send_webhook_response(ctx, message) @Module.command() ...
28.862069
104
0.546595
bdeb6fe03c20487e7edcc878dcd2309d32e5097b
26,083
py
Python
crc/services/study_service.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
2
2019-12-02T12:39:21.000Z
2022-01-10T23:31:36.000Z
crc/services/study_service.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
341
2019-12-11T15:23:59.000Z
2022-03-22T19:36:37.000Z
crc/services/study_service.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
4
2021-03-23T19:17:14.000Z
2022-03-10T03:12:10.000Z
import urllib from copy import copy from datetime import datetime from typing import List import flask import requests from SpiffWorkflow import WorkflowException from SpiffWorkflow.bpmn.PythonScriptEngine import Box from SpiffWorkflow.exceptions import WorkflowTaskExecException from ldap3.core.exceptions import LDAPS...
49.681905
188
0.613273
9bcfa0a5ec4bfa90e04715fd6fc8793e42b2a77f
770
py
Python
subtools/subase.py
huimingz/subtools
185aff705f3730bac5e4d1725c5d24c549e8b0e4
[ "MIT" ]
4
2017-11-27T15:18:33.000Z
2018-07-27T06:30:23.000Z
subtools/subase.py
Kairu-Madigan/subtools
185aff705f3730bac5e4d1725c5d24c549e8b0e4
[ "MIT" ]
1
2021-06-01T22:06:59.000Z
2021-06-01T22:06:59.000Z
subtools/subase.py
huimingz/subtools
185aff705f3730bac5e4d1725c5d24c549e8b0e4
[ "MIT" ]
1
2017-11-27T08:37:35.000Z
2017-11-27T08:37:35.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # author: "Kairu" class Sub(object): def __init__(self): self.text = "" def from_file(self, path, encoding="utf-8", format=None, *args, **kwargs): """从文件中读取字幕内容""" pass def from_str(self, text, format=None, *args, **kwar...
17.906977
81
0.48961
8d0bf284a91754131c14b3756cff78aca752b622
10,071
py
Python
Lib/site-packages/rest_framework/generics.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
Lib/site-packages/rest_framework/generics.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
Lib/site-packages/rest_framework/generics.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
""" Generic views that provide commonly needed behaviour. """ from __future__ import unicode_literals from django.core.exceptions import ValidationError from django.db.models.query import QuerySet from django.http import Http404 from django.shortcuts import get_object_or_404 as _get_object_or_404 from rest_framework ...
34.255102
82
0.63946
73d5a65bf829a99b706a39dfc549d9803ebb4eb0
34
py
Python
02_bootstrap-scripts-python/bootstrap/__main__.py
aws-samples/eks-bootstrap-scripts
9845edf6e64ba98bbb0e1cbb61733fdb2642b126
[ "MIT-0" ]
3
2021-10-24T01:10:58.000Z
2022-01-28T16:20:32.000Z
02_bootstrap-scripts-python/bootstrap/__main__.py
aws-samples/eks-bootstrap-scripts
9845edf6e64ba98bbb0e1cbb61733fdb2642b126
[ "MIT-0" ]
null
null
null
02_bootstrap-scripts-python/bootstrap/__main__.py
aws-samples/eks-bootstrap-scripts
9845edf6e64ba98bbb0e1cbb61733fdb2642b126
[ "MIT-0" ]
1
2021-10-24T01:10:58.000Z
2021-10-24T01:10:58.000Z
from .bootstrap import main main()
17
27
0.794118
153b1db50f22ba5c025e3af9ed9a84793c78f549
708
py
Python
contrib/seeds/makeseeds.py
zahidaliayub/spec-wallet
5d09eee58fb2a87a952985de22a9b40425eb18e0
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
zahidaliayub/spec-wallet
5d09eee58fb2a87a952985de22a9b40425eb18e0
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
zahidaliayub/spec-wallet
5d09eee58fb2a87a952985de22a9b40425eb18e0
[ "MIT" ]
5
2015-08-15T20:52:25.000Z
2021-03-13T08:10:05.000Z
#!/usr/bin/env python # # Generate pnSeed[] from Pieter's DNS seeder # NSEEDS=600 import re import sys from subprocess import check_output def main(): lines = sys.stdin.readlines() ips = [] pattern = re.compile(r"^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}):4319") for line in lines: m = patte...
21.454545
78
0.508475
8c0a211699704036184f1e4e306caf82e49c88ef
6,357
py
Python
python/eva/__init__.py
seounghwan-oh/py_EVA_for_homomorphic_encryption
d1f2895ba54bc4a7204b6188f608e82c9edf5868
[ "MIT" ]
119
2020-11-21T04:03:31.000Z
2022-03-31T11:01:00.000Z
python/eva/__init__.py
seounghwan-oh/py_EVA_for_homomorphic_encryption
d1f2895ba54bc4a7204b6188f608e82c9edf5868
[ "MIT" ]
25
2020-11-24T21:38:09.000Z
2022-03-24T12:35:56.000Z
python/eva/__init__.py
seounghwan-oh/py_EVA_for_homomorphic_encryption
d1f2895ba54bc4a7204b6188f608e82c9edf5868
[ "MIT" ]
37
2020-11-23T13:59:49.000Z
2022-03-29T10:07:28.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. from ._eva import * import numbers import psutil # Find the number of CPU cores available to this process. This has to happen before Galois is initialized because it # messes with the CPU affinity of the process. _default_nu...
36.959302
116
0.641655
629581506471e64bfc4802c6ae0fd3358ed1bd86
4,099
py
Python
test/functional/feature_includeconf.py
olivingcoin/olivingcoin
e34ee63da7c35c717c8045b1ed1c43562430c508
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
olivingcoin/olivingcoin
e34ee63da7c35c717c8045b1ed1c43562430c508
[ "MIT" ]
null
null
null
test/functional/feature_includeconf.py
olivingcoin/olivingcoin
e34ee63da7c35c717c8045b1ed1c43562430c508
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Olivingcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests the includeconf argument Verify that: 1. adding includeconf to the configuration file causes the...
49.385542
224
0.696023
c7298ae350d1549923ca935fd10489213bc869cd
23,057
py
Python
main.py
PritamKamble/ImageEditorPython
f7a5efb1177d0cc5368f6a59a72fc6155d1fc7cc
[ "MIT" ]
1
2021-01-12T10:03:12.000Z
2021-01-12T10:03:12.000Z
main.py
2727-ask/ImageEditorPython
f7a5efb1177d0cc5368f6a59a72fc6155d1fc7cc
[ "MIT" ]
null
null
null
main.py
2727-ask/ImageEditorPython
f7a5efb1177d0cc5368f6a59a72fc6155d1fc7cc
[ "MIT" ]
1
2020-10-01T08:04:15.000Z
2020-10-01T08:04:15.000Z
""" Date: 07 DEC 2018 Author: Pritam Kamble """ from UI.dialogs import UIdialog import grayscale, flip, _filter, _rotation, _enhance from tkinter import * from tkinter import ttk from PIL import Image, ImageTk import threading import copy import datetime # from multiprocessing.pool import ThreadPool from random...
46.021956
120
0.624019
1f55aff0cb9306efce1493253058b82c5aca878b
330
py
Python
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/user/unix/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/user/unix/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/user/unix/__init__.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: __init__.py import dsz def IsRoot(): try: user = dsz.process.GetCurrent() return user == 'root' except: pass re...
22
67
0.633333
9e167c64f95b7fa01e791e78ebfa5e3c26fbd0ed
3,297
py
Python
model-optimizer/extensions/ops/non_max_suppression_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
1
2021-04-06T03:32:12.000Z
2021-04-06T03:32:12.000Z
model-optimizer/extensions/ops/non_max_suppression_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
28
2021-09-24T09:29:02.000Z
2022-03-28T13:20:46.000Z
model-optimizer/extensions/ops/non_max_suppression_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
1
2020-08-30T11:48:03.000Z
2020-08-30T11:48:03.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from extensions.ops.non_max_suppression import NonMaxSuppression from mo.front.common.partial_infer.utils import int64_array from mo.graph.graph import Node from mo.utils.unittest.graph import build_g...
41.2125
117
0.651501
d6b53fe056311af867bc1dea3ddb6867a31ba770
3,015
py
Python
tensorflow_addons/models/tests/crf_wrapper_test.py
old-school-kid/addons
825f2d24a4074334bda38e4e00d6c42c0da25029
[ "Apache-2.0" ]
1,560
2018-11-26T23:57:34.000Z
2022-03-27T10:37:34.000Z
tensorflow_addons/models/tests/crf_wrapper_test.py
midsterx/addons
334cd7ca8fb944aab38164a13d7d2203d7c39605
[ "Apache-2.0" ]
2,067
2018-11-28T04:40:23.000Z
2022-03-31T11:36:50.000Z
tensorflow_addons/models/tests/crf_wrapper_test.py
midsterx/addons
334cd7ca8fb944aab38164a13d7d2203d7c39605
[ "Apache-2.0" ]
679
2018-11-27T14:39:25.000Z
2022-03-31T10:09:22.000Z
# Copyright 2021 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...
31.40625
83
0.627197
3c66e0bfbd4aeafebb36df2cdce16596144639f2
1,617
py
Python
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33
76
0.584416
22fbebd974b65b34d770ba5c0f76306fef455e68
21,058
py
Python
tests/examples/minlplib/sssd18-06persp.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/sssd18-06persp.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/sssd18-06persp.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:54:21 # # Equation counts # Total E G L N X C B # 67 25 0 42 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
55.270341
120
0.628265
cf058134a69f9562b79223cc73ce74fc64cd03f1
18,990
py
Python
bins/ml/predictors/predict-from-cache-iris-classifier.py
jay-johnson/datanode
0b491332f8b74478c02c9951a997702db1b79d9e
[ "Apache-2.0" ]
2
2017-02-02T09:08:25.000Z
2017-03-03T11:54:31.000Z
bins/ml/predictors/predict-from-cache-iris-classifier.py
jay-johnson/datanode
0b491332f8b74478c02c9951a997702db1b79d9e
[ "Apache-2.0" ]
null
null
null
bins/ml/predictors/predict-from-cache-iris-classifier.py
jay-johnson/datanode
0b491332f8b74478c02c9951a997702db1b79d9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Load common imports and system envs to build the core object import sys, os # For running inside the docker container use: #import matplotlib #matplotlib.use('Agg') # Load the Environment: os.environ["ENV_DEPLOYMENT_TYPE"] = "JustRedis" from src.common.inits_for_python import * ###########...
44.787736
199
0.47367
bf7650586cf2e0d29d53f59133030ab79083af58
6,104
py
Python
domainbed/scripts/collect_results.py
zhuwenzhen/DomainBed
e8e8ed831bf30887675e5b3a5117d9d66d0ee46f
[ "MIT" ]
null
null
null
domainbed/scripts/collect_results.py
zhuwenzhen/DomainBed
e8e8ed831bf30887675e5b3a5117d9d66d0ee46f
[ "MIT" ]
null
null
null
domainbed/scripts/collect_results.py
zhuwenzhen/DomainBed
e8e8ed831bf30887675e5b3a5117d9d66d0ee46f
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import collections import argparse import functools import glob import pickle import itertools import json import os import random import sys import numpy as np import tqdm from domainbed import datasets from domainbed import algorithms from do...
34.292135
96
0.623362
baa921c72db2fd7ea7910b6444a7cdca85c62a14
7,660
py
Python
contrib/devtools/update-translations.py
defland/aither
35c7cef0aef09253bec92ce961463533cbf22fc1
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
defland/aither
35c7cef0aef09253bec92ce961463533cbf22fc1
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
defland/aither
35c7cef0aef09253bec92ce961463533cbf22fc1
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
37.54902
124
0.629373
5dceadc3c7d630bbdf40d22ca332a98133c8c476
1,258
py
Python
app/routes/platforms/web/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/routes/platforms/web/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/routes/platforms/web/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module '__init__.py' of the project 'tingerwork' # :date_create: 10.12.2017.0:28 # :author: Tingerlink # :description: from flask_classy import FlaskView from flask_classy import route, request from routes.tools import response_builder from routes.tools.request_validator import R...
29.952381
86
0.68442
71e77f97d87979eca0398fd98bc4ec8ee26e70ab
10,963
py
Python
pandas/core/window/indexers.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
1
2020-10-29T17:32:26.000Z
2020-10-29T17:32:26.000Z
pandas/core/window/indexers.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
null
null
null
pandas/core/window/indexers.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
1
2022-03-15T14:46:56.000Z
2022-03-15T14:46:56.000Z
"""Indexer objects for computing start/end window bounds for rolling operations""" from datetime import timedelta from typing import Dict, Optional, Tuple, Type import numpy as np from pandas._libs.window.indexers import calculate_variable_window_bounds from pandas.util._decorators import Appender from pandas.core.d...
31.962099
88
0.60239
0160bbe0aacf55c076f1610a38ff651247053404
629
py
Python
nba_data/data/matchup.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
8
2017-01-07T13:32:16.000Z
2019-08-08T17:36:26.000Z
nba_data/data/matchup.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
72
2016-09-01T01:21:07.000Z
2021-03-25T21:41:38.000Z
nba_data/data/matchup.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
4
2016-12-06T10:30:59.000Z
2021-09-08T21:23:43.000Z
from team import Team class MatchUp: def __init__(self, home_team, away_team): self.home_team = home_team self.away_team = away_team @staticmethod def create(home_team_id, away_team_id): return MatchUp(home_team=Team.get_team_by_id(team_id=home_team_id), awa...
34.944444
87
0.720191
a95eae30ae55487c90056694f4aef1b03ea952c5
2,123
py
Python
telethon/tl/custom/forward.py
TgCat/Telethon
f9aabaca2049906a7e94dcab010bcc7a645a8278
[ "MIT" ]
6,709
2016-09-07T07:11:00.000Z
2022-03-31T23:22:59.000Z
telethon/tl/custom/forward.py
TgCat/Telethon
f9aabaca2049906a7e94dcab010bcc7a645a8278
[ "MIT" ]
3,211
2016-09-15T10:29:22.000Z
2022-03-31T15:51:33.000Z
telethon/tl/custom/forward.py
TgCat/Telethon
f9aabaca2049906a7e94dcab010bcc7a645a8278
[ "MIT" ]
1,403
2016-10-09T03:07:33.000Z
2022-03-31T14:09:55.000Z
from .chatgetter import ChatGetter from .sendergetter import SenderGetter from ... import utils, helpers from ...tl import types class Forward(ChatGetter, SenderGetter): """ Custom class that encapsulates a :tl:`MessageFwdHeader` providing an abstraction to easily access information like the original send...
40.826923
88
0.678285
f80011c3fb0b6185eaba542690e5d2046d2693db
1,406
py
Python
server/service/users.py
hmiguellima/jogodafortuna
ad8008b551858c691db9ab63a4985cfaf45a6e8b
[ "Apache-2.0" ]
null
null
null
server/service/users.py
hmiguellima/jogodafortuna
ad8008b551858c691db9ab63a4985cfaf45a6e8b
[ "Apache-2.0" ]
null
null
null
server/service/users.py
hmiguellima/jogodafortuna
ad8008b551858c691db9ab63a4985cfaf45a6e8b
[ "Apache-2.0" ]
null
null
null
# import the Bottle framework from bottle import Bottle, request, template, redirect, abort # Run the Bottle wsgi application. We don't need to call run() since our # application is embedded within an App Engine WSGI application server. bottle = Bottle() from controllers.users import UserController users = UserContr...
27.038462
72
0.701991
fe75e7471e1f95b1b8433e28c95bda6cd9ca7cf8
14,302
py
Python
core/domain/subscription_services_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/subscription_services_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/subscription_services_test.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
1
2021-09-22T10:37:34.000Z
2021-09-22T10:37:34.000Z
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
42.692537
119
0.715285
edc8f38b3d63d7a6de75168bddab830ea6e91017
5,494
py
Python
dataset/forced_alignment/audio.py
FilthyFrankTheGoanimator/Voice
0bf3570bd6b376c936ea9f04fc15f129e738b168
[ "BSD-3-Clause" ]
556
2021-03-10T19:09:47.000Z
2022-03-30T13:45:13.000Z
dataset/forced_alignment/audio.py
FilthyFrankTheGoanimator/Voice
0bf3570bd6b376c936ea9f04fc15f129e738b168
[ "BSD-3-Clause" ]
100
2021-03-14T12:35:46.000Z
2022-03-26T07:57:42.000Z
dataset/forced_alignment/audio.py
FilthyFrankTheGoanimator/Voice
0bf3570bd6b376c936ea9f04fc15f129e738b168
[ "BSD-3-Clause" ]
84
2021-03-16T21:44:06.000Z
2022-03-30T21:58:28.000Z
import wave import collections from webrtcvad import Vad DEFAULT_RATE = 16000 DEFAULT_CHANNELS = 1 DEFAULT_WIDTH = 2 DEFAULT_FORMAT = (DEFAULT_RATE, DEFAULT_CHANNELS, DEFAULT_WIDTH) def get_num_samples(pcm_buffer_size, audio_format=DEFAULT_FORMAT): """ Credit: https://github.com/mozilla/DSAlign Gets nu...
30.865169
116
0.644703
07584fe89dff1b627876a32eb0cf8615d2f1f4d2
976
py
Python
eventsourcing/application/django.py
scbabacus/eventsourcing
8404c5b26719ed9d9d1d257ebba774879c7243c4
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/application/django.py
scbabacus/eventsourcing
8404c5b26719ed9d9d1d257ebba774879c7243c4
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/application/django.py
scbabacus/eventsourcing
8404c5b26719ed9d9d1d257ebba774879c7243c4
[ "BSD-3-Clause" ]
null
null
null
from eventsourcing.application.command import CommandProcess from eventsourcing.application.process import ProcessApplication from eventsourcing.application.simple import SimpleApplication from eventsourcing.infrastructure.django.manager import DjangoRecordManager from eventsourcing.infrastructure.django.models import...
30.5
78
0.846311
c5f9401efdbf30db0427243f58fa7446d4aca295
270
py
Python
data_collection_app/data_collection_app/doctype/item_specification/item_specification.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
data_collection_app/data_collection_app/doctype/item_specification/item_specification.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
data_collection_app/data_collection_app/doctype/item_specification/item_specification.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Inquire.Solute and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class ItemSpecification(Document): pass
24.545455
53
0.781481
5da366e8bc899a357691d995528c494546ca11dc
2,124
py
Python
bgc_detection/antismash/antismash_tsv_to_csv.py
prihoda/bgc-pipeline-1
3df49f1b4c25232ce3f7e622607465c8f6a88df8
[ "MIT" ]
6
2019-05-06T04:32:47.000Z
2022-01-25T03:24:10.000Z
bgc_detection/antismash/antismash_tsv_to_csv.py
prihoda/bgc-pipeline
29300da912fd1836eea8e285e2e50f5326f021f3
[ "MIT" ]
6
2019-02-15T19:02:56.000Z
2021-07-12T08:28:48.000Z
bgc_detection/antismash/antismash_tsv_to_csv.py
prihoda/bgc-pipeline
29300da912fd1836eea8e285e2e50f5326f021f3
[ "MIT" ]
4
2019-09-09T07:15:23.000Z
2021-07-12T07:25:04.000Z
#!/usr/bin/env python # David Prihoda # Convert an antiSMASH TSV file taken from 'txt/*_BGC.txt' file into a Candidate CSV file import argparse import pandas as pd import numpy as np def antismash_tsv_candidates(export): """ Convert an antiSMASH TSV file taken from 'txt/*_BGC.txt' into a Candidate DataFrame ...
44.25
142
0.677495
2300ea4d3d5851dc31be7490cc251f576b72de66
131
py
Python
landing/views.py
kabloosh1234/booking-buddy
886c77398101a60a9617fd6d0f8b6e59321c38bb
[ "MIT" ]
null
null
null
landing/views.py
kabloosh1234/booking-buddy
886c77398101a60a9617fd6d0f8b6e59321c38bb
[ "MIT" ]
5
2020-06-05T20:34:46.000Z
2021-06-10T18:18:24.000Z
landing/views.py
kabloosh1234/booking-buddy
886c77398101a60a9617fd6d0f8b6e59321c38bb
[ "MIT" ]
2
2021-12-24T17:06:01.000Z
2021-12-24T17:06:29.000Z
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'landing/index.html')
26.2
48
0.763359
66809d921087f809f3021e8bc12ac24f51714489
1,436
py
Python
AI/day01/Module_NFS/submit/mini_justi_loss.py
Ersikan/Pool2021
cc64658039dee04127a3a641f891781c53647244
[ "MIT" ]
16
2021-03-09T10:25:18.000Z
2022-02-08T14:29:24.000Z
AI/day01/Module_NFS/submit/mini_justi_loss.py
Ersikan/Pool2021
cc64658039dee04127a3a641f891781c53647244
[ "MIT" ]
null
null
null
AI/day01/Module_NFS/submit/mini_justi_loss.py
Ersikan/Pool2021
cc64658039dee04127a3a641f891781c53647244
[ "MIT" ]
3
2021-02-10T09:32:21.000Z
2022-02-01T17:07:59.000Z
import numpy as np import matplotlib.pyplot as plt LR = 0.1 def f1(x, y): return #Need Some Code def d_f1_dx(x, y): return #Need Some Code def d_f1_dy(x, y): return #Need Some Code def f2(x): return #Need Some Code def d_f2_dx(x): return #Need Some Code def getData_f1() : return #Need Som...
22.092308
52
0.628134
3cab4915f783d07a751ef743ff04900e0626f0e0
1,047
py
Python
pandajedi/jedicore/JediDBProxyPool.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
2
2020-04-17T10:24:09.000Z
2020-05-12T17:59:06.000Z
pandajedi/jedicore/JediDBProxyPool.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
20
2015-08-25T13:40:14.000Z
2022-03-29T12:50:46.000Z
pandajedi/jedicore/JediDBProxyPool.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
10
2015-05-27T14:01:42.000Z
2021-09-20T17:38:02.000Z
from pandaserver import taskbuffer import taskbuffer.DBProxyPool from . import JediDBProxy # use customized proxy taskbuffer.DBProxyPool.DBProxy = JediDBProxy class DBProxyPool(taskbuffer.DBProxyPool.DBProxyPool): # constructor def __init__(self, dbhost, dbpasswd, nConnection, useTimeout=False): task...
28.297297
76
0.679083
2897a833e2614669726ca50c8d86a9ae0b53120b
4,829
py
Python
tables/dump-parsers/convert-to-postfix.py
yash-srivastava19/sempre
b27c06906da33e345c645ff9470132bf6d1c26dc
[ "Apache-2.0" ]
812
2015-01-08T01:58:39.000Z
2022-03-24T02:43:05.000Z
tables/dump-parsers/convert-to-postfix.py
yash-srivastava19/sempre
b27c06906da33e345c645ff9470132bf6d1c26dc
[ "Apache-2.0" ]
181
2015-01-26T21:54:04.000Z
2022-03-09T17:52:04.000Z
tables/dump-parsers/convert-to-postfix.py
yash-srivastava19/sempre
b27c06906da33e345c645ff9470132bf6d1c26dc
[ "Apache-2.0" ]
314
2015-01-14T11:23:08.000Z
2022-03-07T02:36:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Convert LispTree formulas to Postfix. If the file is tab-separated, only process the first column. """ import sys, os, shutil, re, argparse, json, gzip from codecs import open from itertools import izip from collections import defaultdict import fileinput import lispt...
36.862595
84
0.512528
76a57e7d414b12bd5bb36e7c3b0b41fb5016b697
228
py
Python
programming-laboratory-I/yeku/aprovacao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/yeku/aprovacao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/yeku/aprovacao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
# coding: utf-8 unidade = int(raw_input('Unidade? ')) media = float(raw_input('Média de aprovação na unidade? ')) proxima_unidade = unidade + 1 print '\nO aluno vai para a unidade %i com média %.1f.' % (proxima_unidade,media)
28.5
81
0.70614
4547059766800df7fd23e282c7b0029e82e5208e
103
py
Python
pyweatherflowudp/__init__.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
3
2021-12-22T21:53:07.000Z
2022-01-11T17:28:35.000Z
pyweatherflowudp/__init__.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
2
2021-12-01T06:27:58.000Z
2021-12-02T08:45:32.000Z
pyweatherflowudp/__init__.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
1
2021-12-26T18:24:13.000Z
2021-12-26T18:24:13.000Z
"""Asynchronous library to read UDP Packets from Weatherflow weather systems.""" __version__ = "1.3.0"
34.333333
80
0.757282
0ccd5385affc6a4183f443a246735b54fe87c0d7
15,123
py
Python
pykg2vec/core/KG2E.py
jiangnanyida/pykg2vec
0c125fe04b59286206045b9884ee10569182a2a5
[ "MIT" ]
1
2020-06-26T16:50:38.000Z
2020-06-26T16:50:38.000Z
pykg2vec/core/KG2E.py
jiangnanyida/pykg2vec
0c125fe04b59286206045b9884ee10569182a2a5
[ "MIT" ]
null
null
null
pykg2vec/core/KG2E.py
jiangnanyida/pykg2vec
0c125fe04b59286206045b9884ee10569182a2a5
[ "MIT" ]
1
2020-06-26T16:50:39.000Z
2020-06-26T16:50:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from pykg2vec.core.KGMeta import ModelMeta class KG2E(ModelMeta): """`Learning to Represent Knowledge Graphs with Gaussian Embedding`...
49.421569
121
0.598823
8eb8d5af4010786f6fdbbeb678e1b007ae6dafc8
2,072
py
Python
DQMOffline/EGamma/test/PhotonAnalyzer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMOffline/EGamma/test/PhotonAnalyzer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMOffline/EGamma/test/PhotonAnalyzer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("photonAnalysis") process.load("FWCore.MessageService.MessageLogger_cfi") process.load("Configuration.StandardSequences.GeometryDB_cff") process.load("DQMOffline.EGamma.photonAnalyzer_cfi") process.load("DQMOffline.EGamma.zmumugammaAnalyzer_cfi") process.l...
37.672727
147
0.821911
b5272ac48a746c06f1094ab3cf87b436aee5d60d
4,006
py
Python
configs/ttfnext/ttfnext_r18_search_gumbel_lr5e4_3e4wd_nons_0_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnext/ttfnext_r18_search_gumbel_lr5e4_3e4wd_nons_0_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnext/ttfnext_r18_search_gumbel_lr5e4_3e4wd_nons_0_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='TTFNeXt', pretrained='modelzoo://resnet18', backbone=dict( type='ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_eval=False, style='pytorch'), neck=None, bbox_head=dict( ...
31.054264
84
0.6333
13664f3045b40e53dde1fc8cbce7cabbd55df01a
4,296
py
Python
chartpy_examples/vispy_demo.py
Joukahainen/chartpy
410f9e4553cb07be7d11823cad404f10da079ada
[ "Apache-2.0" ]
519
2016-08-17T10:38:58.000Z
2022-03-30T19:30:15.000Z
chartpy_examples/vispy_demo.py
Joukahainen/chartpy
410f9e4553cb07be7d11823cad404f10da079ada
[ "Apache-2.0" ]
5
2016-08-21T22:16:17.000Z
2019-12-06T06:17:13.000Z
chartpy_examples/vispy_demo.py
Joukahainen/chartpy
410f9e4553cb07be7d11823cad404f10da079ada
[ "Apache-2.0" ]
108
2016-08-21T12:01:10.000Z
2022-03-25T06:38:58.000Z
__author__ = 'saeedamen' # Saeed Amen # # Copyright 2016 Cuemacro # # 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 ...
33.5625
123
0.664106
3ad9916f6a11ba65ce034d0e04b889b382ec5368
1,836
py
Python
tests/app/db/test_redis.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
5
2019-05-11T05:14:44.000Z
2019-09-07T10:22:53.000Z
tests/app/db/test_redis.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
161
2019-09-09T07:30:25.000Z
2022-03-14T19:52:43.000Z
tests/app/db/test_redis.py
renovate-tests/pol
dca9aa4ce34273575d69a140dc3bb1d2ac14ecbf
[ "MIT" ]
3
2019-09-07T13:15:05.000Z
2020-05-06T04:30:46.000Z
import pickle import random import string import pytest from app.core import config from app.db.redis import PickleRedis, setup_redis_pool def random_str(length: int = 8): all_char = string.ascii_letters + string.digits + string.punctuation return "".join(random.choice(all_char) for i in range(length)) as...
24.157895
86
0.71024
f0b890d71402b4ebef2a654badf45c09cea48335
462
py
Python
PracticeData/PracticeScript_SB.py
everymind/SurprisingMindsOnYoutube
d6f4c5173e14ec2fa9e1e6156133ca4d9e09a562
[ "MIT" ]
null
null
null
PracticeData/PracticeScript_SB.py
everymind/SurprisingMindsOnYoutube
d6f4c5173e14ec2fa9e1e6156133ca4d9e09a562
[ "MIT" ]
null
null
null
PracticeData/PracticeScript_SB.py
everymind/SurprisingMindsOnYoutube
d6f4c5173e14ec2fa9e1e6156133ca4d9e09a562
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib import colors as mcolors import numpy as np x, y = np.loadtxt('2018-08-15T15_06_26-pupilproper.txt', delimiter=',', unpack=True) plt.plot(y,x, label='Trial1') x, y = np.loadtxt('pupilarea2.txt', delimiter=',', unpack=True,) plt.plot(y,x, color='green', label='Trial2') ...
25.666667
84
0.720779
48320d6a3d4212dbf52aa697d1635725144eefd5
8,130
py
Python
get_pulse.py
JediRhymeTrix/webcam-pulse-detector
5b00810ef637acfb4dc6d6ca011c32e53df606d7
[ "Apache-2.0" ]
null
null
null
get_pulse.py
JediRhymeTrix/webcam-pulse-detector
5b00810ef637acfb4dc6d6ca011c32e53df606d7
[ "Apache-2.0" ]
null
null
null
get_pulse.py
JediRhymeTrix/webcam-pulse-detector
5b00810ef637acfb4dc6d6ca011c32e53df606d7
[ "Apache-2.0" ]
null
null
null
from lib.device import Camera from lib.processors_noopenmdao import findFaceGetPulse from lib.interface import plotXY, imshow, waitKey, destroyWindow from cv2 import moveWindow import argparse import numpy as np import datetime #TODO: work on serial port comms, if anyone asks for it #from serial import Serial import so...
34.303797
84
0.570726
3f073861c8bfa4bea65ff9ccb43ce4d1de4dca6b
270
py
Python
tests/artificial/transf_Quantization/trend_MovingMedian/cycle_5/ar_12/test_artificial_32_Quantization_MovingMedian_5_12_20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Quantization/trend_MovingMedian/cycle_5/ar_12/test_artificial_32_Quantization_MovingMedian_5_12_20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Quantization/trend_MovingMedian/cycle_5/ar_12/test_artificial_32_Quantization_MovingMedian_5_12_20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 12);
38.571429
170
0.737037
aee341bd88b05cb9502b7beb427a8ae9cf3f6e4a
64,244
py
Python
sklearn/decomposition/_dict_learning.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
199
2020-08-27T09:03:21.000Z
2021-11-09T11:21:07.000Z
sklearn/decomposition/_dict_learning.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
4
2021-10-07T08:40:50.000Z
2021-11-18T19:11:40.000Z
sklearn/decomposition/_dict_learning.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
2
2018-10-02T03:13:40.000Z
2020-04-27T07:29:18.000Z
""" Dictionary learning. """ # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools import warnings from math import ceil import numpy as np from scipy import linalg from joblib import Parallel, effective_n_jobs from ..base import BaseEstimator, Tr...
33.047325
88
0.617552
d9a3fca4565fc06defc14f87c3871da9cec62b50
8,338
py
Python
cdpcli/configloader.py
anuragpatro/cdpcli
fe2b78308e4f8c09aa9609a43a646f314fa20327
[ "Apache-2.0" ]
7
2020-10-01T14:03:57.000Z
2022-02-23T17:47:08.000Z
cdpcli/configloader.py
anuragpatro/cdpcli
fe2b78308e4f8c09aa9609a43a646f314fa20327
[ "Apache-2.0" ]
1
2020-11-30T08:00:50.000Z
2020-12-01T08:00:20.000Z
cdpcli/configloader.py
anuragpatro/cdpcli
fe2b78308e4f8c09aa9609a43a646f314fa20327
[ "Apache-2.0" ]
7
2020-11-07T20:55:47.000Z
2021-11-09T18:45:33.000Z
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Modifications made by Cloudera are: # Copyright (c) 2016 Cloudera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may no...
34.312757
79
0.600024
c744a751ac829b8df6e6ea43ded8308d051da6ea
2,783
py
Python
_unittests/ut_asv_benchmark/test_create_asv_benchmark_rf.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
1
2020-12-18T03:49:53.000Z
2020-12-18T03:49:53.000Z
_unittests/ut_asv_benchmark/test_create_asv_benchmark_rf.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
_unittests/ut_asv_benchmark/test_create_asv_benchmark_rf.py
henrywu2019/mlprodict
4c09dc39d5ba7a7235fa321d80c81b5bf4f078ad
[ "MIT" ]
null
null
null
""" @brief test log(time=6s) """ import os import unittest import re from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import ExtTestCase, get_temp_folder from pyquickhelper.loghelper.run_cmd import run_script from pyquickhelper.texthelper.version_helper import compare_module_version import sklear...
40.926471
86
0.561265
d723ff88b21bebb486f6659fac645d737bcce281
22,221
py
Python
mmtbx/refinement/adp_refinement.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/refinement/adp_refinement.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/refinement/adp_refinement.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division import mmtbx.refinement.group from mmtbx.refinement import minimization from mmtbx.refinement import print_statistics from mmtbx import utils from mmtbx.tls import tools import iotbx.phil from cctbx import adptbx from cctbx.array_family import flex import scitbx.lbfgs from libtbx.test_ut...
39.751342
97
0.634895
e9b64ffc3a51400ff4d8c3b45ab360de3f969bc3
31,104
py
Python
Src/Hosts/Silverlight/Tests/pylib/unittest.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
Src/Hosts/Silverlight/Tests/pylib/unittest.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
Src/Hosts/Silverlight/Tests/pylib/unittest.py
jdhardy/dlr
dca078fbf9d103fad4dcabda76795a23d82106bc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's Smalltalk testing framework. This module contains the core framework classes that form the basis of specific test cases and suites (TestCase, TestSuite etc.), and also a text-based utility class for running the tests ...
35.628866
120
0.59539
46ae6866889e3c0f9da59c6f973da7a158d84e1f
13,257
py
Python
epydoc/markup/doctest.py
AnjaneyuluBatta505/epydoc
e074483d519912218b1fb1d4eacb492076a1ed73
[ "MIT" ]
1
2022-01-29T08:19:34.000Z
2022-01-29T08:19:34.000Z
epydoc/markup/doctest.py
AnjaneyuluBatta505/epydoc
e074483d519912218b1fb1d4eacb492076a1ed73
[ "MIT" ]
null
null
null
epydoc/markup/doctest.py
AnjaneyuluBatta505/epydoc
e074483d519912218b1fb1d4eacb492076a1ed73
[ "MIT" ]
null
null
null
# # doctest.py: Syntax Highlighting for doctest blocks # Edward Loper # # Created [06/28/03 02:52 AM] # $Id: restructuredtext.py 1210 2006-04-10 13:25:50Z edloper $ # """ Syntax highlighting for doctest blocks. This module defines two functions, L{doctest_to_html()} and L{doctest_to_latex()}, which can be used to per...
41.557994
79
0.569058
8d012bd572a9939e549404f28fab9e887e13ef51
3,766
py
Python
python/test/function/test_binary_connect_convolution.py
syoyo/nnabla
b776b68dcdffe894cac1233dfd07c301415cc0fb
[ "Apache-2.0" ]
1
2020-08-03T12:49:19.000Z
2020-08-03T12:49:19.000Z
python/test/function/test_binary_connect_convolution.py
langbin2014/nnabla
e94bac5bed65337010e2ac07a5937fb862ab2dd8
[ "Apache-2.0" ]
null
null
null
python/test/function/test_binary_connect_convolution.py
langbin2014/nnabla
e94bac5bed65337010e2ac07a5937fb862ab2dd8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.824742
122
0.656665
3be486a81cabe9c7ed16b4a19fa3609712e023ba
15,738
py
Python
mitmproxy/net/quic/tproxy.py
Meitinger/mitmproxy
f5d872d8fc96b97256f48b55aa137e9d81cb8edf
[ "MIT" ]
7
2020-11-29T11:42:44.000Z
2022-03-28T15:31:38.000Z
mitmproxy/net/quic/tproxy.py
Meitinger/mitmproxy
f5d872d8fc96b97256f48b55aa137e9d81cb8edf
[ "MIT" ]
null
null
null
mitmproxy/net/quic/tproxy.py
Meitinger/mitmproxy
f5d872d8fc96b97256f48b55aa137e9d81cb8edf
[ "MIT" ]
1
2021-08-31T05:02:59.000Z
2021-08-31T05:02:59.000Z
import asyncio import asyncio.selector_events import collections import ipaddress import socket import struct from typing import cast, Any, Callable, Dict, Optional, Tuple from aioquic.asyncio import QuicConnectionProtocol from aioquic.asyncio.protocol import QuicStreamHandler from aioquic.asyncio.server import QuicSe...
35.606335
100
0.620536
6b3994db5445ce1a3aa29e8b918790d090e8d726
77
py
Python
frostbyte/lang/__init__.py
frostbyte-lang/frostbyte-lang
1dbc2e130abb755a1afeca6e24a3084d4f60bc3f
[ "MIT" ]
null
null
null
frostbyte/lang/__init__.py
frostbyte-lang/frostbyte-lang
1dbc2e130abb755a1afeca6e24a3084d4f60bc3f
[ "MIT" ]
null
null
null
frostbyte/lang/__init__.py
frostbyte-lang/frostbyte-lang
1dbc2e130abb755a1afeca6e24a3084d4f60bc3f
[ "MIT" ]
null
null
null
""" Reference implementation for the Frostbyte programming language. """
19.25
68
0.74026
33edb589be03e92586f7f566256c11a51ece8be1
3,931
py
Python
arch_x86.py
mytbk/r2dumpbin
151d2dc32c16c62dca024bbd1bcbab36d1e08843
[ "MIT" ]
20
2018-12-18T17:23:58.000Z
2021-12-19T09:55:28.000Z
arch_x86.py
mytbk/dumpbin
151d2dc32c16c62dca024bbd1bcbab36d1e08843
[ "MIT" ]
2
2019-10-28T06:43:55.000Z
2020-11-01T12:51:42.000Z
arch_x86.py
mytbk/dumpbin
151d2dc32c16c62dca024bbd1bcbab36d1e08843
[ "MIT" ]
5
2019-10-28T06:06:22.000Z
2022-03-27T02:19:50.000Z
# Copyright (C) 2021 Iru Cai <mytbk920423@gmail.com> # SPDX-License-Identifier: MIT import re segmem_expr = re.compile('(cs|ds|es|ss|fs|gs):\[(.*)\]') def asmfixup(dumper, insn): orig_insn = insn["opcode"] final_insn = orig_insn comment = "" # correct the r2 assembly to the NASM one if insn["ty...
38.539216
103
0.532689
fd9720a79a291befe413351daf2aadd566eaa53b
97
py
Python
test/tests/list_eq_contains.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/list_eq_contains.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/list_eq_contains.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
nan = float('nan') print nan == nan print nan in [nan] print [nan] == [nan] print [nan] in [nan]
16.166667
20
0.608247
a77d23e8b3d5095b37e4ec71207b31f9d1f87e1e
3,721
py
Python
mars/tensor/arithmetic/divide.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/arithmetic/divide.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tensor/arithmetic/divide.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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-...
32.356522
106
0.640688
bf4ba63c10ebe8f1b4d0dee39eed5fe6a9f728e5
3,243
py
Python
kidmondo_spider/settings.py
plar/kidmondo_export
b3719072e26f210e5951fd01aa5005332b65be5a
[ "Apache-2.0" ]
null
null
null
kidmondo_spider/settings.py
plar/kidmondo_export
b3719072e26f210e5951fd01aa5005332b65be5a
[ "Apache-2.0" ]
null
null
null
kidmondo_spider/settings.py
plar/kidmondo_export
b3719072e26f210e5951fd01aa5005332b65be5a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for amazon project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/...
33.78125
109
0.785076
78cb6c6ff6db9ac0c462628a4d4d4bc10e588470
2,811
py
Python
sample_datasource/lacrime/lacrime_pub.py
rbpandya/I3-SDK
80d99b9dec25da9a2f55ababc3c814ff883e695b
[ "BSD-3-Clause" ]
2
2020-04-15T23:05:09.000Z
2020-06-09T16:58:45.000Z
sample_datasource/lacrime/lacrime_pub.py
rbpandya/I3-SDK
80d99b9dec25da9a2f55ababc3c814ff883e695b
[ "BSD-3-Clause" ]
5
2019-09-24T21:33:04.000Z
2019-10-09T21:05:48.000Z
sample_datasource/lacrime/lacrime_pub.py
rbpandya/I3-SDK
80d99b9dec25da9a2f55ababc3c814ff883e695b
[ "BSD-3-Clause" ]
5
2019-10-23T17:46:14.000Z
2020-06-09T16:58:53.000Z
#!/usr/bin/python """ test_sub.py is an example of a publisher subscribing to a topic """ import paho.mqtt.client as mqtt import datetime from datetime import timedelta import requests import json import os def on_connect(client, userdata, flags, rc): """print out result code when connecting with the broker ...
28.393939
121
0.630736
995fe8fb1860a8b9bff4cebcc81850cf275f8406
2,591
py
Python
setup.py
adriaan-vd-graaf/genome_integration
345eae53aab9a23c080ae10f2ee3d8305f75a5c6
[ "MIT" ]
13
2019-08-18T15:48:35.000Z
2022-03-28T07:48:49.000Z
setup.py
adriaan-vd-graaf/genome_integration
345eae53aab9a23c080ae10f2ee3d8305f75a5c6
[ "MIT" ]
1
2021-09-10T06:58:24.000Z
2021-09-10T07:50:45.000Z
setup.py
adriaan-vd-graaf/genome_integration
345eae53aab9a23c080ae10f2ee3d8305f75a5c6
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_descripti...
29.443182
116
0.648398
47df330ae7f9dd82f9163f6dbc94864d34b2baa7
5,076
py
Python
setup.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
2
2019-03-30T02:12:57.000Z
2021-03-08T18:59:52.000Z
setup.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
null
null
null
setup.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' The setup script for salt ''' import os import urllib2 from distutils import log from distutils.core import setup from distutils.command.sdist import sdist as original_sdist setup_kwargs = {} USE_SETUPTOOLS = False SALTCLOUD_SOURCE_DIR = os.path.abspath(os.path.dirname(__file__)) BOOTSTRAP_...
32.33121
79
0.559693
13fae6e5f1f12d58b1595d382e946a95f7d4b28a
4,461
py
Python
custom_components/hacs/repositories/integration.py
Mofeywalker/hacs
4176b50896f0d51e260704e0aab45a6d60676213
[ "MIT" ]
null
null
null
custom_components/hacs/repositories/integration.py
Mofeywalker/hacs
4176b50896f0d51e260704e0aab45a6d60676213
[ "MIT" ]
null
null
null
custom_components/hacs/repositories/integration.py
Mofeywalker/hacs
4176b50896f0d51e260704e0aab45a6d60676213
[ "MIT" ]
null
null
null
"""Class for integrations in HACS.""" import json from homeassistant.loader import async_get_custom_components from .repository import HacsRepository, register_repository_class @register_repository_class class HacsIntegration(HacsRepository): """Integrations in HACS.""" category = "integration" ...
34.315385
89
0.618471
19e3c97377b2f34caf432ca51c10e95eb238b34b
4,139
py
Python
sentiment/train.py
terrifyzhao/nlp
2dd15e6b584bd0620bd09aa1408d1a956a936390
[ "Apache-2.0" ]
1
2019-08-02T05:55:10.000Z
2019-08-02T05:55:10.000Z
sentiment/train.py
terrifyzhao/nlp
2dd15e6b584bd0620bd09aa1408d1a956a936390
[ "Apache-2.0" ]
null
null
null
sentiment/train.py
terrifyzhao/nlp
2dd15e6b584bd0620bd09aa1408d1a956a936390
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../')) import json from tqdm import tqdm import os import pandas as pd from data_utils import * from keras.callbacks import Callback from keras_bert import Tokenizer import codecs import tensorflow as tf from sentiment.sentiment_model impor...
26.703226
84
0.590722
307ff989cdc20ce8ab9cc180823164458236e7cf
930
py
Python
example/dj/apps/issue_tracker/tests/factories.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
1
2019-10-07T12:40:38.000Z
2019-10-07T12:40:38.000Z
example/dj/apps/issue_tracker/tests/factories.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
3
2019-08-09T14:10:21.000Z
2022-02-01T13:48:01.000Z
example/dj/apps/issue_tracker/tests/factories.py
druids/django-fperms-iscore
8e919cdc70ed57e0eb6407469de9ef2441ae06ad
[ "MIT" ]
null
null
null
import factory from factory import fuzzy from factory.django import DjangoModelFactory from django.contrib.auth.models import User from issue_tracker.models import Issue class UserFactory(DjangoModelFactory): username = factory.Faker('user_name') password = fuzzy.FuzzyText(length=10) email = 'user@test...
25.833333
68
0.704301
7154a6174361a0e06ea3ad26e2db4b55f9ac5a26
6,146
py
Python
permanentclock/src/plugin.py
FoxyRabbit67/enigma2-plugins
f6b94012726931fdf28e80a26226aec612b350de
[ "Linux-OpenIB" ]
41
2016-01-21T17:54:44.000Z
2021-06-26T05:54:41.000Z
permanentclock/src/plugin.py
FoxyRabbit67/enigma2-plugins
f6b94012726931fdf28e80a26226aec612b350de
[ "Linux-OpenIB" ]
22
2016-11-16T11:25:26.000Z
2021-12-13T09:13:06.000Z
permanentclock/src/plugin.py
FoxyRabbit67/enigma2-plugins
f6b94012726931fdf28e80a26226aec612b350de
[ "Linux-OpenIB" ]
62
2016-02-05T22:55:48.000Z
2022-03-12T21:48:22.000Z
## ## Permanent Clock ## by AliAbdul ## from Components.ActionMap import ActionMap from Components.config import config, ConfigInteger, ConfigSubsection, ConfigYesNo from Components.MenuList import MenuList from enigma import ePoint, eTimer, getDesktop from os import environ from Plugins.Plugin import PluginDescriptor ...
31.84456
176
0.664823
0b357bb07ada26c3ba997f3da50652cc4f841b95
2,584
py
Python
gamestonk_terminal/stocks/discovery/yahoofinance_model.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
1,835
2021-05-09T02:55:06.000Z
2022-03-29T12:37:05.000Z
gamestonk_terminal/stocks/discovery/yahoofinance_model.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
569
2021-05-09T15:59:41.000Z
2022-03-29T12:25:16.000Z
gamestonk_terminal/stocks/discovery/yahoofinance_model.py
Aerex/GamestonkTerminal
680e0cd278f0d8e45031cdc9d51f247e9aa90ce1
[ "MIT" ]
268
2021-05-10T21:46:50.000Z
2022-03-28T09:18:38.000Z
""" Yahoo Finance Model """ __docformat__ = "numpy" import pandas as pd import requests def get_gainers() -> pd.DataFrame: """Get top gainers. [Source: Yahoo Finance] Returns ------- pd.DataFrame Stock Gainers """ url_gainers = "https://finance.yahoo.com/screener/predefined/day_gaine...
24.846154
122
0.657121
2f90a926e7c8ae9d47cca77c84ca5477595de9d3
759
py
Python
hero_slider/tests/views_tests.py
bitlabstudio/django-hero-slider
8153b3eece76c47210a266c2edb660725c34a56e
[ "MIT" ]
3
2019-12-24T18:22:25.000Z
2021-07-21T19:37:30.000Z
hero_slider/tests/views_tests.py
bitmazk/django-hero-slider
8153b3eece76c47210a266c2edb660725c34a56e
[ "MIT" ]
5
2015-01-01T02:54:30.000Z
2016-08-08T12:48:08.000Z
hero_slider/tests/views_tests.py
bitmazk/django-hero-slider
8153b3eece76c47210a266c2edb660725c34a56e
[ "MIT" ]
3
2015-01-01T14:51:48.000Z
2016-08-05T19:46:24.000Z
"""Tests for the views of the ``hero_slider`` app.""" from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django_libs.tests.mixins import ViewRequestFactoryTestMixin from ..views import GetCTypeDetails class GetCTypeDetailsTestCase(ViewRequestFactoryTestMixin, TestCase):...
34.5
74
0.716733
a0f182b1ac469b1738f5dff68ff208a4f11047ac
215
py
Python
shortcuts/actions/calculation.py
maximejf42/python-shortcuts
addde7732e88d250aaea75c228241ed182fca850
[ "MIT" ]
1
2021-12-07T09:07:10.000Z
2021-12-07T09:07:10.000Z
shortcuts/actions/calculation.py
yy/python-shortcuts
025c54be965600fbe7ff6ec96f594efea503cbc3
[ "MIT" ]
null
null
null
shortcuts/actions/calculation.py
yy/python-shortcuts
025c54be965600fbe7ff6ec96f594efea503cbc3
[ "MIT" ]
null
null
null
from shortcuts.actions.base import BaseAction, Field class CountAction(BaseAction): '''Count''' itype = 'is.workflow.actions.count' keyword = 'count' count = Field('WFCountType', capitalize=True)
21.5
52
0.697674
061b79de324b6c5068393ad5672024bc5341a144
1,813
py
Python
src/bindings/rmr-python/examples/receive.py
cachengo/ric-plt-lib-rmr
a1575dacc478b945ea63f5d0cc3db3d66dcb5983
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/bindings/rmr-python/examples/receive.py
cachengo/ric-plt-lib-rmr
a1575dacc478b945ea63f5d0cc3db3d66dcb5983
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
src/bindings/rmr-python/examples/receive.py
cachengo/ric-plt-lib-rmr
a1575dacc478b945ea63f5d0cc3db3d66dcb5983
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
31.807018
84
0.63155
b08ada0660beee3ab49f49762bae69f432a84b0d
766
py
Python
nonbonded/tests/library/plotting/plotly/test_benchmark.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
5
2020-05-11T18:25:00.000Z
2022-01-27T10:55:09.000Z
nonbonded/tests/library/plotting/plotly/test_benchmark.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
88
2020-06-02T14:40:05.000Z
2022-03-02T09:20:39.000Z
nonbonded/tests/library/plotting/plotly/test_benchmark.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
null
null
null
from nonbonded.library.plotting.plotly.benchmark import ( plot_overall_statistics, plot_scatter_results, ) from nonbonded.library.statistics.statistics import StatisticType def test_plot_overall_statistics(benchmarks_and_results, tmpdir): benchmarks, results, _ = benchmarks_and_results figure = plot...
27.357143
77
0.778068
741cf7ff78759a87b0918152eb88caa74c40ae1c
9,940
py
Python
tensorforce/models/distribution_model.py
youlei202/tensorforce-lei
871ef7f5c41d496aa8ad674854792ebd52ce1546
[ "Apache-2.0" ]
null
null
null
tensorforce/models/distribution_model.py
youlei202/tensorforce-lei
871ef7f5c41d496aa8ad674854792ebd52ce1546
[ "Apache-2.0" ]
null
null
null
tensorforce/models/distribution_model.py
youlei202/tensorforce-lei
871ef7f5c41d496aa8ad674854792ebd52ce1546
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 reinforce.io. 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 law or...
39.919679
130
0.645272
d849d729c9e3c4164be9ee3af875f5f69a7f991f
1,500
py
Python
tests/test_responseparser.py
qyanu-pull-requests/python-sdk
ae27a7b680637025529e3421016d8931cbc28306
[ "MIT" ]
null
null
null
tests/test_responseparser.py
qyanu-pull-requests/python-sdk
ae27a7b680637025529e3421016d8931cbc28306
[ "MIT" ]
null
null
null
tests/test_responseparser.py
qyanu-pull-requests/python-sdk
ae27a7b680637025529e3421016d8931cbc28306
[ "MIT" ]
null
null
null
import re import hexonet.apiconnector.responseparser as RP from hexonet.apiconnector.responsetemplatemanager import ResponseTemplateManager as RTM def test_rpmethods(): rtm = RTM() rtm.addTemplate( 'OK', rtm.generateTemplate('200', 'Command completed successfully') ) # #.serialize() ...
31.914894
87
0.601333
4e88375f3bf62fe33ed8e2369b8de0709ad57242
777
py
Python
Python3/0658-Find-K-Closest-Elements/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0658-Find-K-Closest-Elements/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0658-Find-K-Closest-Elements/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def findClosestElements(self, arr, k, x): """ :type arr: List[int] :type k: int :type x: int :rtype: List[int] """ lefts, rights = [], [] idx = bisect.bisect_left(arr, x) l, r = idx - 1, idx # this is important count = k...
28.777778
54
0.392535
8f698edff44070d2e8a076a598cf3cbec6465680
5,153
py
Python
qmpy/data/meta_data.py
WalterjhShen/qmpy
686e18cecbb82a6bb523249ac1779a99fb865350
[ "MIT" ]
2
2019-04-25T17:49:16.000Z
2019-06-01T01:36:04.000Z
qmpy/data/meta_data.py
WalterjhShen/qmpy
686e18cecbb82a6bb523249ac1779a99fb865350
[ "MIT" ]
10
2018-07-05T03:19:58.000Z
2019-03-24T13:05:14.000Z
qmpy/data/meta_data.py
WalterjhShen/qmpy
686e18cecbb82a6bb523249ac1779a99fb865350
[ "MIT" ]
1
2020-04-30T14:08:45.000Z
2020-04-30T14:08:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models import logging logger = logging.getLogger(__name__) class MetaData(models.Model): """ Base class for variable typed model tagging. Model for arbitrary meta-data descriptors for various qmpy objects. Generally accessed by prop...
29.786127
81
0.571512
10b3c22ab6f568a5fcf4c18b475ef2fb3dbaa092
4,613
py
Python
reviewboard/webapi/decorators.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
1
2020-02-11T07:09:14.000Z
2020-02-11T07:09:14.000Z
reviewboard/webapi/decorators.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
null
null
null
reviewboard/webapi/decorators.py
vigneshsrinivasan/reviewboard
4775130c1c1022f81edc11928e02b1b6c069f6ed
[ "MIT" ]
null
null
null
from django.http import HttpRequest from djblets.siteconfig.models import SiteConfiguration from djblets.util.decorators import simple_decorator from djblets.webapi.core import WebAPIResponse, WebAPIResponseError from djblets.webapi.decorators import webapi_login_required, \ webapi...
35.484615
80
0.656189
2c6f506132ef71a1a22f72694c74270c008387fd
28,769
py
Python
tests/unit/transport/test_zeromq.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/transport/test_zeromq.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/transport/test_zeromq.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ :codeauthor: Thomas Jackson <jacksontj.89@gmail.com> """ from __future__ import absolute_import, print_function, unicode_literals import ctypes import multiprocessing import os import threading import time from concurrent.futures.thread import ThreadPoolExecutor import salt.config imp...
36.416456
104
0.60155
37e95b964f4c28cb7587823696f33cc402f0d4a3
3,213
py
Python
speakeasy/smirnoff.py
jaimergp/speakeasy
aba633b0d03e2dd8e2e1712a032f587244a02350
[ "MIT" ]
1
2021-03-17T18:57:27.000Z
2021-03-17T18:57:27.000Z
speakeasy/smirnoff.py
jaimergp/speakeasy
aba633b0d03e2dd8e2e1712a032f587244a02350
[ "MIT" ]
null
null
null
speakeasy/smirnoff.py
jaimergp/speakeasy
aba633b0d03e2dd8e2e1712a032f587244a02350
[ "MIT" ]
null
null
null
import parmed as pmd from openforcefield.typing.engines.smirnoff import ForceField, unit from openeye.oechem import ( oemolistream, oemolostream, OEIFlavor_MOL2_Forcefield, OEIFlavor_Generic_Default, OEIFlavor_PDB_Default, OEIFlavor_PDB_ALL, OEFormat_MOL2, OEFormat_MOL2H, OEWriteMolecule, OETriposAtomNames,...
36.511364
104
0.654217
9c21c35cf61aa68e5ff72da845550c6b3d688bbc
6,279
py
Python
sushy/resources/system/processor.py
yrobla/sushy
74be09c798ac3422335a4e0e30b778639ff5a122
[ "Apache-2.0" ]
null
null
null
sushy/resources/system/processor.py
yrobla/sushy
74be09c798ac3422335a4e0e30b778639ff5a122
[ "Apache-2.0" ]
4
2020-07-08T10:53:30.000Z
2020-07-30T11:56:20.000Z
sushy/resources/system/processor.py
yrobla/sushy
74be09c798ac3422335a4e0e30b778639ff5a122
[ "Apache-2.0" ]
3
2020-05-19T12:24:50.000Z
2020-07-08T10:26:51.000Z
# 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 law or agreed to in...
36.719298
79
0.687211
3f8f802b2ef4a81bf5a9d50a62df080f94bd5e12
1,116
py
Python
chapter3/dbscan.py
DCtheTall/introduction-to-machine-learning
636ec4733a504fe6798098d28337cf2088dcfce5
[ "MIT" ]
4
2018-09-21T17:15:19.000Z
2022-03-17T23:25:18.000Z
chapter3/dbscan.py
DCtheTall/introduction-to-machine-learning
636ec4733a504fe6798098d28337cf2088dcfce5
[ "MIT" ]
null
null
null
chapter3/dbscan.py
DCtheTall/introduction-to-machine-learning
636ec4733a504fe6798098d28337cf2088dcfce5
[ "MIT" ]
null
null
null
""" DBSCAN ------ """ import numpy as np import matplotlib.pyplot as plt import pandas as pd import mglearn from IPython.display import display from sklearn.cluster import DBSCAN from sklearn.datasets import make_blobs, make_moons from sklearn.preprocessing import StandardScaler X, y = make_blobs(random_state=0, n...
24.26087
75
0.767921
25acb8a2a50f4e794bf3c24f429d6871ec82acfe
7,911
py
Python
sap/cli/atc.py
gtreskas/sapcli
ff82ddb998834e1c83dff799134f026df93b3175
[ "Apache-2.0" ]
null
null
null
sap/cli/atc.py
gtreskas/sapcli
ff82ddb998834e1c83dff799134f026df93b3175
[ "Apache-2.0" ]
null
null
null
sap/cli/atc.py
gtreskas/sapcli
ff82ddb998834e1c83dff799134f026df93b3175
[ "Apache-2.0" ]
null
null
null
"""ATC proxy for ABAP Unit""" import json import os import re import sys from xml.sax.saxutils import escape, quoteattr from sap import get_logger import sap.adt import sap.adt.atc from sap.cli.core import printout from sap.errors import SAPCliError CHECKSTYLE_VERSION = '8.36' ERROR = 'error' WARNING = 'warning' INF...
35.635135
120
0.61484
99d64ebd01c9a3a0c9fcbb1d55aaf05bb27bab92
9,447
py
Python
tests/helpers/runif.py
mathemusician/pytorch-lightning
15fa5389387b3a220bc044dd30eb0be1e8f64944
[ "Apache-2.0" ]
null
null
null
tests/helpers/runif.py
mathemusician/pytorch-lightning
15fa5389387b3a220bc044dd30eb0be1e8f64944
[ "Apache-2.0" ]
null
null
null
tests/helpers/runif.py
mathemusician/pytorch-lightning
15fa5389387b3a220bc044dd30eb0be1e8f64944
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
36.902344
119
0.631523
2d08abfed8158e3cac1a151d92803c02e988bf3d
6,332
py
Python
chainer_chemistry/links/update/megnet_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
184
2019-11-27T12:59:01.000Z
2022-03-29T19:18:54.000Z
chainer_chemistry/links/update/megnet_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
21
2019-12-08T01:53:33.000Z
2020-10-23T01:19:56.000Z
chainer_chemistry/links/update/megnet_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
45
2019-11-28T09:59:54.000Z
2022-02-07T02:42:46.000Z
import chainer from chainer import functions, links # NOQA from chainer_chemistry.functions import megnet_softplus class DenseLayer(chainer.Chain): def __init__(self, hidden_dim=[64, 32], activation=megnet_softplus): super(DenseLayer, self).__init__() self.n_layers = len(hidden_dim) sel...
41.116883
79
0.638029
72a58db347e5578c54d7cceecb497f1714327fce
731
py
Python
codeit/closest_pair.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
codeit/closest_pair.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
codeit/closest_pair.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
#!usr/bin/python ''' Codeit-Brute Force 6. 가장 가까운 매장 찾기 ''' # 제곱근 사용을 위한 sqrt 함수 from math import sqrt # 두 매장의 직선 거리를 계산해 주는 함수 def distance(store1, store2): return sqrt((store1[0] - store2[0]) ** 2 + (store1[1] - store2[1]) ** 2) # 가장 가까운 두 매장을 찾아주는 함수 def closest_pair(coordinates): pair = [coordinates[0],...
23.580645
76
0.604651
bd2f739973f340d52ce9112d649e76b784cf9d92
21,801
py
Python
deploy-agent/tests/unit/deploy/server/test_agent.py
aagxxi/teletraan
93af2abfd72e99258e80f978a80343656de2172f
[ "Apache-2.0" ]
null
null
null
deploy-agent/tests/unit/deploy/server/test_agent.py
aagxxi/teletraan
93af2abfd72e99258e80f978a80343656de2172f
[ "Apache-2.0" ]
null
null
null
deploy-agent/tests/unit/deploy/server/test_agent.py
aagxxi/teletraan
93af2abfd72e99258e80f978a80343656de2172f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pinterest, 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...
43.777108
125
0.634237
9760e75d6f5f857820bc35a7d267dc6323eb9be3
2,055
py
Python
helper/refactor_command.py
Bhanditz/JavaScriptEnhancements
f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e
[ "MIT" ]
null
null
null
helper/refactor_command.py
Bhanditz/JavaScriptEnhancements
f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e
[ "MIT" ]
null
null
null
helper/refactor_command.py
Bhanditz/JavaScriptEnhancements
f87ff0ae9dba99bab69bf4fe4e73ca29d198f81e
[ "MIT" ]
null
null
null
# import sublime, sublime_plugin # import re # { "caption": "-" }, # { # "caption": "Refactor (Working on it ...)", # "id": "refactor", # "children": [ # { # "caption": "Extract", # "children": [ # { # "caption": "Method", # "command": "refactor"...
32.109375
157
0.543552
c7be26e6e05d19190651c72af1d0b82d3cb8ae56
430
py
Python
turtle-lib-tests/circle.py
actiago/estudos.py
c0aeca05dfc80b6f22e977f26bae3af9af3cbe1a
[ "MIT" ]
2
2020-10-06T12:15:39.000Z
2020-10-06T12:39:03.000Z
turtle-lib-tests/circle.py
actiago/estudos.py
c0aeca05dfc80b6f22e977f26bae3af9af3cbe1a
[ "MIT" ]
null
null
null
turtle-lib-tests/circle.py
actiago/estudos.py
c0aeca05dfc80b6f22e977f26bae3af9af3cbe1a
[ "MIT" ]
null
null
null
import Turtle ninja = Turtle.Turtle() colors = [ 'red', 'purple', 'yellow', 'blue', 'green', 'orange' ] ninja.speed(10) turtle.bgcolor('black') for i in range(180): ninja.pencolor(colors[i%6]) ninja.forward(100) ninja.right(30) ninja.forward(20) ninja.left(60) ninja.forward(50) ninja.ri...
15.925926
65
0.625581
bb67fb634ce051c9b028f45b081eb2294b82db8d
4,800
py
Python
test/nonregression/iotools/test_run_converters.py
ravih18/clinica
07dfe5ba3bab5852a220dba2c88ab0c5132ef26e
[ "MIT" ]
null
null
null
test/nonregression/iotools/test_run_converters.py
ravih18/clinica
07dfe5ba3bab5852a220dba2c88ab0c5132ef26e
[ "MIT" ]
null
null
null
test/nonregression/iotools/test_run_converters.py
ravih18/clinica
07dfe5ba3bab5852a220dba2c88ab0c5132ef26e
[ "MIT" ]
null
null
null
# coding: utf8 """ This file contains a set of functional tests designed to check the correct execution of the pipeline and the different functions available in Clinica """ import warnings from os import PathLike, fspath from pathlib import Path from test.nonregression.testing_tools import ( clean_folder, co...
29.268293
108
0.704792
cfbbb1eadd4c0cb360bcc94d64424ed73967f1cd
11,593
py
Python
DESHIMA/use_desim.py
EsmeeHuijten/DESHIMAmodel
6e0e3f68276ce3802f233ee999c0a341f79fa120
[ "MIT" ]
1
2020-02-04T12:46:25.000Z
2020-02-04T12:46:25.000Z
DESHIMA/use_desim.py
EsmeeHuijten/DESHIMAmodel
6e0e3f68276ce3802f233ee999c0a341f79fa120
[ "MIT" ]
null
null
null
DESHIMA/use_desim.py
EsmeeHuijten/DESHIMAmodel
6e0e3f68276ce3802f233ee999c0a341f79fa120
[ "MIT" ]
2
2020-03-12T06:46:54.000Z
2020-09-02T09:00:49.000Z
import numpy as np import pandas as pd import time import math import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter from scipy import integrate import sys sys.path.append('./DESHIMA/desim/') sys.path.append('./desim/') sys.path.append('../desim/') import minidesim as dsm sys.path.append('./DES...
43.912879
169
0.590788
1f09f67f0ba06ebfb87a12348e24aff80c25be96
3,499
py
Python
concerns/dmoj.py
JunyuanChen/SonnyBot-ng
9f06b12c0985c77fb154a4c89b975948c9e4953c
[ "CC0-1.0" ]
null
null
null
concerns/dmoj.py
JunyuanChen/SonnyBot-ng
9f06b12c0985c77fb154a4c89b975948c9e4953c
[ "CC0-1.0" ]
null
null
null
concerns/dmoj.py
JunyuanChen/SonnyBot-ng
9f06b12c0985c77fb154a4c89b975948c9e4953c
[ "CC0-1.0" ]
null
null
null
# coding: utf-8 """ DMOJ web scraping. """ import json import requests import lxml.html from concerns import ( calc_exp, calc_coins ) with open("assets/ccc.json", "r", encoding="utf-8") as f: CCC_PROBLEMS = json.load(f) def ccc_difficulty(problem): if problem in CCC_PROBLEMS: return CCC_...
28.680328
78
0.66962
85cd924f705995d96e2e6733975058b4af7400a0
8,965
py
Python
plotly/validators/_heatmap.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/validators/_heatmap.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/validators/_heatmap.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
import _plotly_utils.basevalidators class HeatmapValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name='heatmap', parent_name='', **kwargs): super(HeatmapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, da...
44.381188
72
0.52783
43363f8a9082a67675bee3e0e79c5b6694a956da
13,226
py
Python
sdk/python/pulumi_azure_native/kubernetesconfiguration/get_source_control_configuration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetesconfiguration/get_source_control_configuration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetesconfiguration/get_source_control_configuration.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
46.407018
419
0.6987
c71e307552cce160effb2e619ccca3cfaec5443c
7,821
py
Python
core/main.py
weijianxing/APITestMaid
48649cf2199ab90708a4441d6fdc58a235cb4a28
[ "MIT" ]
1
2021-03-01T03:09:20.000Z
2021-03-01T03:09:20.000Z
core/main.py
weijianxing/APITestMaid
48649cf2199ab90708a4441d6fdc58a235cb4a28
[ "MIT" ]
null
null
null
core/main.py
weijianxing/APITestMaid
48649cf2199ab90708a4441d6fdc58a235cb4a28
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- # ------ wuage.com testing team --------- # __author__ : weijx.cpp@gmail.com import json import os import sys import traceback from abc import ABCMeta import fire from com.wuage.testing.helper.chatbotHelper import DingtalkChatbot from core.MetaCases import MetaCases, APIRequest from util import...
34.76
86
0.540979
8926c843d46f6f5407d279062dc97b65be11c62d
11,144
py
Python
leetcode_python/Array/employee-free-time.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Array/employee-free-time.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Array/employee-free-time.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" LC 759 We are given a list schedule of employees, which represents the working time for each employee. Each employee has a list of non-overlapping Intervals, and these intervals are in sorted order. Return the list of finite intervals representing common, positive-length free time for all employees, also in sor...
33.465465
445
0.541906
865b158109bac8040ef8ca6db6a55589443946b2
16,205
py
Python
code/hopenet.py
KelvinCPChiu/deep-head-pose
125c9085dd12c88fb32dba6eea874020621432c2
[ "Apache-2.0" ]
null
null
null
code/hopenet.py
KelvinCPChiu/deep-head-pose
125c9085dd12c88fb32dba6eea874020621432c2
[ "Apache-2.0" ]
null
null
null
code/hopenet.py
KelvinCPChiu/deep-head-pose
125c9085dd12c88fb32dba6eea874020621432c2
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable import math import torch.nn.functional as F class Hopenet(nn.Module): # Hopenet with 3 output layers for yaw, pitch and roll # Predicts Euler angles by binning and regression with the expected value def __init__(self, block, layers, nu...
34.849462
121
0.567417
94835202b42f72126971db2aa12a9db8c6614234
2,515
py
Python
networkx/algorithms/tests/test_distance_regular.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/tests/test_distance_regular.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/tests/test_distance_regular.py
argriffing/networkx
5a3d000e605be2ca567f69a4694afcba3b8acb54
[ "BSD-3-Clause" ]
null
null
null
from nose.tools import assert_equal from nose.tools import assert_false from nose.tools import assert_true import networkx as nx from networkx import is_strongly_regular class TestDistanceRegular(object): def test_is_distance_regular(self): assert_true(nx.is_distance_regular(nx.icosahedral_graph())) ...
34.452055
77
0.667197
6a1ea6963abd61deaab0a384353a6a8f29667965
6,662
py
Python
tf_privacy/optimizers/dp_optimizer_vectorized.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
tf_privacy/optimizers/dp_optimizer_vectorized.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
tf_privacy/optimizers/dp_optimizer_vectorized.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
43.25974
103
0.683278
674b1db0c1d0a94e66cf3ea228dc437ce27feec0
1,220
py
Python
catnado/testing/testcase.py
tylertrussell/gae-catnado
91a73e9108bb724fb780cc8dcfca4da579313cb9
[ "Apache-2.0" ]
null
null
null
catnado/testing/testcase.py
tylertrussell/gae-catnado
91a73e9108bb724fb780cc8dcfca4da579313cb9
[ "Apache-2.0" ]
null
null
null
catnado/testing/testcase.py
tylertrussell/gae-catnado
91a73e9108bb724fb780cc8dcfca4da579313cb9
[ "Apache-2.0" ]
null
null
null
import unittest from google.appengine.ext import testbed import mock class SimpleAppEngineTestCase(unittest.TestCase): """A very simple AppEngine test case which sets up basic stubs. By default, stubs for Datastore and Memcache are created. """ def setUp(self): """Override setUp to set up stubs.""" ...
27.727273
76
0.745082