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
abad891b06140e2bef4579619552a0ef383015eb
1,179
py
Python
nova/tests/unit/api/openstack/compute/test_plugins/basic.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/tests/unit/api/openstack/compute/test_plugins/basic.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
2
2015-09-07T22:14:46.000Z
2020-08-12T08:51:56.000Z
nova/tests/unit/api/openstack/compute/test_plugins/basic.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
4
2017-06-23T07:37:43.000Z
2020-12-28T09:57:22.000Z
# Copyright 2014 IBM Corp. # # 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...
26.795455
78
0.693808
4ab2538ede6f86e9d1c48cb6654cea7a35f46256
193
py
Python
sns_client.py
advancedcsg/aws-scheduler
75a317f31b65e8452320f28cd780577fe4d00f51
[ "MIT" ]
null
null
null
sns_client.py
advancedcsg/aws-scheduler
75a317f31b65e8452320f28cd780577fe4d00f51
[ "MIT" ]
null
null
null
sns_client.py
advancedcsg/aws-scheduler
75a317f31b65e8452320f28cd780577fe4d00f51
[ "MIT" ]
1
2020-07-10T06:23:57.000Z
2020-07-10T06:23:57.000Z
import boto3 client = boto3.client('sns') def publish_sns(arn, payload): print(f"publishing to an event : {arn}") client.publish( TopicArn=arn, Message=payload )
16.083333
44
0.626943
2aa550331c7f4cb93ebe4d576d3866f2cb68eace
387
py
Python
examples/mpl/test.py
minrk/bokeh
ae4366e508355afc06b5fc62f1ee399635ab909d
[ "BSD-3-Clause" ]
null
null
null
examples/mpl/test.py
minrk/bokeh
ae4366e508355afc06b5fc62f1ee399635ab909d
[ "BSD-3-Clause" ]
null
null
null
examples/mpl/test.py
minrk/bokeh
ae4366e508355afc06b5fc62f1ee399635ab909d
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from bokeh import pyplot from bokeh import plotting x = np.linspace(-2 * np.pi, 2 * np.pi, 100) y = np.sin(x) plt.plot(x, y, "r-") plt.title("Matplotlib Figure in Bokeh") # dashed lines work #plt.plot(x,y,"r-x", linestyle="-.") pyplot.show_bokeh(plt.gcf(), filenam...
21.5
53
0.702842
799796ace0c75801a5e1895b5daa633b86f12791
5,476
py
Python
tensorflow/contrib/distributions/python/ops/poisson.py
wangguizhu27/tensorflow1
3462966ac7d3884c2153b1655e8528a0f6bac0f4
[ "Apache-2.0" ]
1
2020-08-27T08:17:15.000Z
2020-08-27T08:17:15.000Z
tensorflow/contrib/distributions/python/ops/poisson.py
wangguizhu27/tensorflow1
3462966ac7d3884c2153b1655e8528a0f6bac0f4
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/poisson.py
wangguizhu27/tensorflow1
3462966ac7d3884c2153b1655e8528a0f6bac0f4
[ "Apache-2.0" ]
1
2019-06-19T08:43:23.000Z
2019-06-19T08:43:23.000Z
# Copyright 2016 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...
34.440252
80
0.709094
4cc8d74f18244259c2dbe3ab50411d7e005feacd
6,616
py
Python
pytracer/interface/api.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
9
2017-11-20T18:17:27.000Z
2022-01-27T23:00:31.000Z
pytracer/interface/api.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
4
2021-06-08T19:03:51.000Z
2022-03-11T23:18:44.000Z
pytracer/interface/api.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
1
2017-11-20T22:48:01.000Z
2017-11-20T22:48:01.000Z
""" api.py pytracer.interface package Interfacing from the scene descriptions. Created by Jiayao on Aug 21, 2017 """ from __future__ import absolute_import from typing import TYPE_CHECKING import pytracer.utility as util if TYPE_CHECKING: from pytracer.interface.option import Option from pytracer.interface.parame...
25.544402
82
0.778114
aa41b134a29d9928d7cac582d19c219b42a7321f
5,423
py
Python
isi_sdk_8_2_0/isi_sdk_8_2_0/models/audit_topic_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/audit_topic_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/audit_topic_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AuditTopicCreateParams(obj...
35.677632
299
0.619952
6716539bb76a430784548200ee3a8a28dc63b906
760
py
Python
salt/output/json_out.py
d--j/salt
579f900be67a80e1a77674bc6aa21fec836c1c4c
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/output/json_out.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/output/json_out.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2020-03-07T07:04:55.000Z
2020-03-07T07:04:55.000Z
''' The JSON output module converts the return data into JSON. ''' # Import python libs import json import logging log = logging.getLogger(__name__) def __virtual__(): ''' Rename to json ''' return 'json' def output(data): ''' Print the output data in JSON ''' try: if 'outp...
23.030303
87
0.639474
0c0c0eeb2eed81d7b9e5589370d3b2472e82bfcf
1,779
py
Python
src/main/resources/google/cloud/compute/instance/planningScripts/steps_for_destroy.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
src/main/resources/google/cloud/compute/instance/planningScripts/steps_for_destroy.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
src/main/resources/google/cloud/compute/instance/planningScripts/steps_for_destroy.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
# # Copyright 2020 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
59.3
462
0.786397
9871043e63d1c483d8d8fadf36a596fdc991cb54
4,375
py
Python
source/eval.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
11
2020-10-27T00:05:55.000Z
2021-08-25T08:42:34.000Z
source/eval.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
1
2021-06-02T01:59:03.000Z
2021-06-02T01:59:03.000Z
source/eval.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
null
null
null
import os import argparse import json import torch from models.clustering_models import ClusteringModel from pipeline.evaluator import Evaluator from replay_memory.replay_pil import ReplayPILDataset from config import MemoryConfigPIL, TestingConfig, ClusteringModelConfig from config import global_config from tools.lo...
31.702899
124
0.662171
41c29e64d7b1f1207bce2967c2ece9198dd9bf42
1,191
py
Python
Aula33/Aula33-4/dao/endereco_db.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula33/Aula33-4/dao/endereco_db.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula33/Aula33-4/dao/endereco_db.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
#----- Importar biblioteca do Mysql import MySQLdb from model.endereco import Endereco class EnderecoDb: conexao = MySQLdb.connect(host='mysql.topskills.study', database='topskills01', user='topskills01', passwd='ts2019') cursor = conexao.cursor() def listar_todos(self): comando_sql_select = "...
34.028571
120
0.630563
b465ea6842f0ea8537f4875ff50c4978b2c7b171
5,198
py
Python
pycycle/elements/test/test_mixer.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
null
null
null
pycycle/elements/test/test_mixer.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
null
null
null
pycycle/elements/test/test_mixer.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
null
null
null
""" Tests the duct component. """ import unittest import os import numpy as np import openmdao.api as om from openmdao.api import Problem, Group from openmdao.utils.assert_utils import assert_near_equal, assert_check_partials from pycycle.constants import AIR_ELEMENTS, AIR_FUEL_ELEMENTS from pycycle.mp_cycle impo...
37.395683
133
0.651982
55ff229f7aab00af1a551f9bda039dbf18e47754
2,411
py
Python
caravaggio_rest_api/utils.py
brunohenriquy/django-caravaggio-rest-api
25abe3666dae63e88b8f2cec9b4c8deac980207f
[ "MIT" ]
1
2019-10-30T20:14:37.000Z
2019-10-30T20:14:37.000Z
caravaggio_rest_api/utils.py
joaomedeiros95/django-caravaggio-rest-api
cb2647c55597623174992b555c949f4d08503115
[ "MIT" ]
null
null
null
caravaggio_rest_api/utils.py
joaomedeiros95/django-caravaggio-rest-api
cb2647c55597623174992b555c949f4d08503115
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* # Copyright (c) 2019 BuildGroup Data Services Inc. # All rights reserved. import dateutil from datetime import datetime try: from dse.cqlengine import columns except ImportError: from cassandra.cqlengine import columns from django.db import connections from django_cassandra_engine.mode...
27.089888
79
0.69017
da7aaa3a1eaf77be7695d6a23b385f65806c627e
701
py
Python
pyramidvue/tests.py
timgates42/pyramidVue
4e066ee6c8c23b27d56ebb87b6b32df65c338d4c
[ "MIT" ]
37
2017-06-06T18:09:25.000Z
2021-05-28T21:22:48.000Z
pyramidvue/tests.py
timgates42/pyramidVue
4e066ee6c8c23b27d56ebb87b6b32df65c338d4c
[ "MIT" ]
8
2017-10-08T07:10:25.000Z
2022-02-26T03:25:56.000Z
pyramidvue/tests.py
timgates42/pyramidVue
4e066ee6c8c23b27d56ebb87b6b32df65c338d4c
[ "MIT" ]
6
2017-07-10T07:10:27.000Z
2020-10-26T17:58:02.000Z
import unittest from pyramid import testing class ViewTests(unittest.TestCase): def setUp(self): self.config = testing.setUp() def tearDown(self): testing.tearDown() def test_my_view(self): from .views import my_view request = testing.DummyRequest() info = my_vie...
23.366667
55
0.636234
be344feab1b88658cfb3916bda031b9d9b0e2826
2,300
py
Python
examples/copy_example.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
85
2016-08-07T16:46:58.000Z
2022-03-23T01:44:02.000Z
examples/copy_example.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
109
2016-08-02T18:40:04.000Z
2021-08-23T08:08:02.000Z
examples/copy_example.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
29
2016-11-29T03:42:47.000Z
2022-01-23T17:37:11.000Z
import argparse import os import sys import logging from carto.auth import APIKeyAuthClient from carto.sql import SQLClient from carto.sql import CopySQLClient # Logger (better than print) logging.basicConfig( level=logging.INFO, format=' %(asctime)s - %(levelname)s - %(message)s', datefmt='%I:%M:%S %p') ...
31.944444
101
0.687391
a15ba0a42d3caf424e0f4de3198694cd5dba355a
1,152
py
Python
2021/src/Utils.py
nimroha/HashCode
a98e341cb1f569bb9baf2005946c9cde168ae362
[ "MIT" ]
null
null
null
2021/src/Utils.py
nimroha/HashCode
a98e341cb1f569bb9baf2005946c9cde168ae362
[ "MIT" ]
null
null
null
2021/src/Utils.py
nimroha/HashCode
a98e341cb1f569bb9baf2005946c9cde168ae362
[ "MIT" ]
1
2021-02-26T03:08:37.000Z
2021-02-26T03:08:37.000Z
import numpy as np import matplotlib.pyplot as plt import pickle from argparse import ArgumentTypeError def plotHist(lst, title): max = np.max(lst) min = np.min(lst) plt.hist(lst, np.arange(start=min, stop=max)) plt.title(title) plt.show() def savePickle(savePath, obj): """ pickle dump w...
20.945455
114
0.626736
9f720caa971609bff07006f563d48fb4e57e02a9
21,733
py
Python
heat/tests/aws/test_security_group.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/tests/aws/test_security_group.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/tests/aws/test_security_group.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
38.465487
79
0.473151
f359aeb80388c40a4268afd8e21d138dedc28c84
2,817
py
Python
altimu10v5/lis3mdl.py
SvetoslavKuzmanov/altimu10v5
87c10bd9918360632d5ea1a356e5cd3fe06eb33f
[ "MIT" ]
4
2018-03-27T05:15:02.000Z
2022-03-18T13:17:37.000Z
Diddyborg_python/lis3mdl.py
EEA-sensors/elec-e8740-project-code-template
ef7020a9ed4f2ee25756dd907a16d602bffeb6fe
[ "Apache-2.0" ]
1
2018-06-03T23:35:18.000Z
2018-06-03T23:35:18.000Z
Diddyborg_python/lis3mdl.py
EEA-sensors/elec-e8740-project-code-template
ef7020a9ed4f2ee25756dd907a16d602bffeb6fe
[ "Apache-2.0" ]
6
2018-07-31T09:52:10.000Z
2021-08-30T17:54:27.000Z
# -*- coding: utf-8 -*- """Python library module for LIS3MDL magnetometer. This module for the Raspberry Pi computer helps interface the LIS3MDL magnetometer.The library makes it easy to read the raw magnetometer through I²C interface. The datasheet for the LSM6DS33 is available at [https://www.pololu.com/file/downlo...
32.755814
77
0.665247
a3c0d2b152e221651ed9886183d0d558f38ba8b8
7,065
py
Python
src/twisted/names/secondary.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/names/secondary.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/names/secondary.py
clokep/twisted
79a26b0aa4b1b81b46cc64d203644b35e455e46b
[ "Unlicense", "MIT" ]
1
2021-12-13T10:46:13.000Z
2021-12-13T10:46:13.000Z
# -*- test-case-name: twisted.names.test.test_names -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. __all__ = ['SecondaryAuthority', 'SecondaryAuthorityService'] from twisted.internet import task, defer from twisted.names import dns from twisted.names import common from twisted.names impo...
31.968326
99
0.639207
ab5fe50b9feb29d0941d996ad1d085d60838e920
626
py
Python
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
from socket import * from win32clipboard import * import sys OpenClipboard() try: text=GetClipboardData(CF_TEXT) except: print "Error in getting clipboard data!" sys.exit() finally: CloseClipboard() print "ClipCross Alpha" host = raw_input("Enter IP address of machine you want to connect...
20.193548
73
0.653355
304e47e0fefda26f06277b9b74915872f0c3bc7a
873
py
Python
script.module.urlresolver/lib/urlresolver/plugins/bitvid.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
script.module.urlresolver/lib/urlresolver/plugins/bitvid.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.urlresolver/lib/urlresolver/plugins/bitvid.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" urlresolver XBMC Addon Copyright (C) 2017 Anis3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribute...
37.956522
68
0.752577
6e1d6c30716011c9c6a3ea61cf6be53ee1ee7bc1
10,916
py
Python
pydic/tests/test_services.py
felixcarmona/pydic
e0aa2ec7ca34d8ce1578770bff7e64a2704a9229
[ "MIT" ]
null
null
null
pydic/tests/test_services.py
felixcarmona/pydic
e0aa2ec7ca34d8ce1578770bff7e64a2704a9229
[ "MIT" ]
null
null
null
pydic/tests/test_services.py
felixcarmona/pydic
e0aa2ec7ca34d8ce1578770bff7e64a2704a9229
[ "MIT" ]
null
null
null
from unittest import TestCase from pydic import Services, ServicesException, Parameters class SimpleService: def __init__(self): pass def say(self): return 'hello' class SimpleServiceWithConstructorArguments: def __init__(self, name, surname): self._name = name self._sur...
32.295858
94
0.566599
a5729ab658a92ee337cc5926ededd37ccbead72e
34,369
py
Python
dask/bag/tests/test_bag.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/bag/tests/test_bag.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/bag/tests/test_bag.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function import pytest import math import os import sys from collections import Iterator from distutils.version import LooseVersion import partd from toolz import merge, join, filter, identity, valmap, groupby, pluck import dask import dask.bag a...
30.990983
105
0.577468
543664183cf1babb63ffa4eaa831e7193aa73f45
2,134
py
Python
phase_cells/nature_method2020/plot_metric_loss.py
shenghh2015/segmentation_models
473c528c724f62ff38ac127747dd8babb7de6b85
[ "MIT" ]
null
null
null
phase_cells/nature_method2020/plot_metric_loss.py
shenghh2015/segmentation_models
473c528c724f62ff38ac127747dd8babb7de6b85
[ "MIT" ]
null
null
null
phase_cells/nature_method2020/plot_metric_loss.py
shenghh2015/segmentation_models
473c528c724f62ff38ac127747dd8babb7de6b85
[ "MIT" ]
null
null
null
import numpy as np import os import sys def plot_separate(file_name, loss_list, title_list): import matplotlib.pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg from matplotlib.figure import Figure rows, cols, size = 1,1,5 font_size = 30; label_size = 25; line_width = 2.5 fig = Figure(ti...
46.391304
184
0.752577
8dc23c61e2100b217d30f351b85c8c498df2881d
1,133
py
Python
miningsimulator/views.py
emergent-consensus/simulator
7853177f5d6bbfd6f674a96013dad822172f724c
[ "MIT" ]
null
null
null
miningsimulator/views.py
emergent-consensus/simulator
7853177f5d6bbfd6f674a96013dad822172f724c
[ "MIT" ]
null
null
null
miningsimulator/views.py
emergent-consensus/simulator
7853177f5d6bbfd6f674a96013dad822172f724c
[ "MIT" ]
null
null
null
from flask import Flask, request, Response, render_template from flask_bootstrap import Bootstrap from app import connectionmanager, miningnetwork, socketapi app = Flask(__name__) from flask_socketio import SocketIO import os import logging logging.basicConfig() app = Flask(__name__) Bootstrap(app) socketio = Socke...
25.75
73
0.774051
2b0d27b80bfd2d2892bf8b806f3196b800701250
2,730
py
Python
data/cirq_new/cirq_program/startCirq_pragma793.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma793.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_pragma793.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=18 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
32.891566
92
0.646154
d8ebae69baa1859200dda65dcc8fa725fb3159d9
6,596
py
Python
Tools/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
VincentWei/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
6
2017-05-31T01:46:45.000Z
2018-06-12T10:53:30.000Z
Tools/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
null
null
null
Tools/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-17T06:02:42.000Z
2018-09-19T10:08:38.000Z
# Copyright (C) 2009 Google Inc. 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 copyright # notice, this list of conditions and the f...
39.73494
163
0.619012
9ca078f5096248492c19ba88c5d59b442777ee1e
3,391
py
Python
pdf_data.py
yk-st/foreign_tax
157a844ce348fb8d43a9f1d1ee6280fc5eca6d78
[ "MIT" ]
1
2021-11-19T01:54:05.000Z
2021-11-19T01:54:05.000Z
pdf_data.py
yk-st/foreign_tax
157a844ce348fb8d43a9f1d1ee6280fc5eca6d78
[ "MIT" ]
null
null
null
pdf_data.py
yk-st/foreign_tax
157a844ce348fb8d43a9f1d1ee6280fc5eca6d78
[ "MIT" ]
null
null
null
from re import split from pdfminer.high_level import extract_text import re import os from decimal import Decimal DIR = "/Users/saitouyuuki/Desktop/src/2021-exempt/" exempt_d={} exempts_l=[] # Ticker Symb macher ticker_r = re.compile(r"[0-9]{3}-[a-zA-Z]*") # % macher for 「配当金等金額」「外国源泉徴収額」 delimiter_r = re.compile(r"%...
34.252525
75
0.535535
6a76df0da261671fca4b666b750cb092e5eb8167
597
py
Python
apis/migrations/0002_api_user.py
ale180192/openapi-viewer-back
22dedf5f21438e8f7ff89d5e17ff2ff711bdd167
[ "Apache-2.0" ]
2
2020-03-02T04:16:47.000Z
2020-05-20T06:21:32.000Z
apis/migrations/0002_api_user.py
ale180192/openapi-viewer-back
22dedf5f21438e8f7ff89d5e17ff2ff711bdd167
[ "Apache-2.0" ]
6
2020-06-06T01:28:39.000Z
2022-02-10T12:06:42.000Z
apis/migrations/0002_api_user.py
ale180192/openapi-viewer-back
22dedf5f21438e8f7ff89d5e17ff2ff711bdd167
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2020-02-26 05:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('apis',...
24.875
131
0.664992
97e90ead0be16ebd7c187144dd1507536727c22e
5,057
py
Python
huey/tests/test_signals.py
vb8448/huey
345857dd01293af70a3a72dcb8052e34b38574b1
[ "MIT" ]
1
2021-01-28T15:26:45.000Z
2021-01-28T15:26:45.000Z
huey/tests/test_signals.py
vb8448/huey
345857dd01293af70a3a72dcb8052e34b38574b1
[ "MIT" ]
1
2021-01-31T08:01:24.000Z
2021-01-31T08:01:24.000Z
huey/tests/test_signals.py
vb8448/huey
345857dd01293af70a3a72dcb8052e34b38574b1
[ "MIT" ]
1
2021-01-31T07:59:29.000Z
2021-01-31T07:59:29.000Z
from huey.signals import * from huey.tests.base import BaseTestCase class TestSignals(BaseTestCase): def setUp(self): super(TestSignals, self).setUp() self._state = [] @self.huey.signal() def signal_handle(signal, task, *args): self._state.append((signal, task, args)) ...
31.02454
77
0.606684
a7bec55db505161faafdf71c929ae51d5a8fa418
14,253
py
Python
fragmenstein/monster/_utility.py
matteoferla/Fragmenstein
151bde01f4ebd930880cb7ad234bab68ac4a3e76
[ "MIT" ]
41
2020-04-09T14:11:39.000Z
2022-03-15T15:44:14.000Z
fragmenstein/monster/_utility.py
LaYeqa/Fragmenstein
151bde01f4ebd930880cb7ad234bab68ac4a3e76
[ "MIT" ]
13
2020-12-02T13:13:59.000Z
2022-01-14T11:29:46.000Z
fragmenstein/monster/_utility.py
LaYeqa/Fragmenstein
151bde01f4ebd930880cb7ad234bab68ac4a3e76
[ "MIT" ]
6
2020-09-07T10:47:51.000Z
2021-09-23T14:22:39.000Z
######################################################################################################################## __doc__ = \ """ These are extras for the Monster step """ ######################################################################################################################## from typin...
43.587156
164
0.585631
e2395b86b152ddefb08f63b1dacb5f7b0f14b502
7,338
py
Python
ecal/fit_peak_pos.py
rhambach/TEMareels
92a907f483baeb919dd485895c56454f0b552c76
[ "MIT" ]
null
null
null
ecal/fit_peak_pos.py
rhambach/TEMareels
92a907f483baeb919dd485895c56454f0b552c76
[ "MIT" ]
null
null
null
ecal/fit_peak_pos.py
rhambach/TEMareels
92a907f483baeb919dd485895c56454f0b552c76
[ "MIT" ]
1
2019-03-20T21:05:24.000Z
2019-03-20T21:05:24.000Z
""" fitting of peak positions in shifted EELS spectra for energy-calibrations IMPLEMENTATION: - gauss fit for ZLP (highest peak in spectrum) - correlation with plasmon spectrum for second highest peak (The position corresponds to the center of the reference spectrum.) TODO: - make implement...
34.130233
109
0.626874
06c705153f88c7a618a8529cab462287c82efaf7
82,027
py
Python
plenum/cli/cli.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/cli/cli.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/cli/cli.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import glob import shutil from os.path import basename, dirname from typing import Iterable from jsonpickle import json from ledger.compact_merkle_tree import CompactMerkleTree from ledger.genesis_txn.genesis_txn_file_util import create_genesis_txn_init_ledger from ledger.genes...
39.974172
119
0.573104
7bc4ffdff2074a7dd1a2664af7adbe879862ba32
1,769
py
Python
django_project/billing/views.py
aliyaandabekova/DJANGO_PROJECT
7b94f80fa56acf936da014aa5d91da79457bf4eb
[ "MIT" ]
null
null
null
django_project/billing/views.py
aliyaandabekova/DJANGO_PROJECT
7b94f80fa56acf936da014aa5d91da79457bf4eb
[ "MIT" ]
null
null
null
django_project/billing/views.py
aliyaandabekova/DJANGO_PROJECT
7b94f80fa56acf936da014aa5d91da79457bf4eb
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from .forms import CardCreateForm,PayForm, TransactionForm from .models import Card def cardCreate(request): form = CardCreateForm(initial={'profile':request.user.profile}) if request.method == 'POST': form = CardCreateForm(reques...
38.456522
67
0.600339
09bdaf9fa0a6c7f037e16c29f3c31d565ef27bd2
2,165
py
Python
azure-mgmt-batchai/azure/mgmt/batchai/models/file.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-batchai/azure/mgmt/batchai/models/file.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-batchai/azure/mgmt/batchai/models/file.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 ...
36.694915
80
0.609238
122e4183e2a98897ac0a71cf75fa9fdf7e7e3295
586
py
Python
var/spack/repos/builtin/packages/sandbox/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/sandbox/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/sandbox/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Sandbox(AutotoolsPackage): """sandbox'd LD_PRELOAD hack by Gentoo Linux""" ho...
32.555556
94
0.737201
c9afbd465f28e2e08b6f5e71619f7d7ded93e8ad
2,273
py
Python
test/distributed/fsdp/test_fsdp_multiple_forward.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
2
2020-03-13T06:57:49.000Z
2020-05-17T04:18:14.000Z
test/distributed/fsdp/test_fsdp_multiple_forward.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
1
2019-07-23T15:23:32.000Z
2019-07-23T15:32:23.000Z
test/distributed/fsdp/test_fsdp_multiple_forward.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
2
2019-07-23T14:37:31.000Z
2019-07-23T14:47:13.000Z
# Owner(s): ["oncall: distributed"] import sys import torch from torch import distributed as dist from torch.distributed.fsdp import FullyShardedDataParallel as FSDP from torch.nn import Linear, Module from torch.nn.parallel import DistributedDataParallel from torch.optim import SGD from torch.testing._internal.commo...
26.430233
82
0.650242
6b5672afad589a19b1252b223067f45d787a4eb3
30
py
Python
quel/__init__.py
eppingere/hackcmu18-backend
696c050c4ce5acdf49aeaeeaded730a33443f5bd
[ "MIT" ]
2
2018-09-22T00:18:06.000Z
2018-09-23T04:49:29.000Z
quel/__init__.py
eppingere/hackcmu18-backend
696c050c4ce5acdf49aeaeeaded730a33443f5bd
[ "MIT" ]
null
null
null
quel/__init__.py
eppingere/hackcmu18-backend
696c050c4ce5acdf49aeaeeaded730a33443f5bd
[ "MIT" ]
null
null
null
from .sort import sort_a_list
15
29
0.833333
3d746a2ab4eeb7e97cb109141356c26daa107ce7
221
py
Python
frappe/patches/v13_0/disable_system_update_notification.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
null
null
null
frappe/patches/v13_0/disable_system_update_notification.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
17
2021-03-22T18:47:14.000Z
2022-03-15T12:21:00.000Z
frappe/patches/v13_0/disable_system_update_notification.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc("core", "doctype", "system_settings") frappe.db.set_value('System Settings', None, "disable_system_update_notification", 1)
27.625
89
0.769231
7b9567176c3066c9795afed144ab00601d9bc24d
83
py
Python
template.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
3
2020-08-05T10:18:59.000Z
2022-01-19T08:28:16.000Z
template.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
2
2016-03-24T15:28:51.000Z
2019-12-10T03:54:47.000Z
template.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
4
2020-08-19T05:06:16.000Z
2021-02-03T09:53:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': pass
13.833333
26
0.566265
5cd9fe69482202e3241424e9da5b38564d6f8200
2,467
py
Python
aiida/utils/capturing.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/utils/capturing.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/utils/capturing.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
1
2018-12-21T11:10:09.000Z
2018-12-21T11:10:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
35.753623
79
0.568707
3ed802774b9a1329007a9dc332e1a02e8db62687
914
py
Python
Python/Algorithms/Dynamic Programming/MultiStageGraph.py
arghyadeep99/DS_Algorithms
ac1ea351204f8cf37c41033e40338270f042118e
[ "MIT" ]
2
2019-03-21T04:41:05.000Z
2019-05-09T05:01:03.000Z
Python/Algorithms/Dynamic Programming/MultiStageGraph.py
arghyadeep99/DS_Algorithms
ac1ea351204f8cf37c41033e40338270f042118e
[ "MIT" ]
null
null
null
Python/Algorithms/Dynamic Programming/MultiStageGraph.py
arghyadeep99/DS_Algorithms
ac1ea351204f8cf37c41033e40338270f042118e
[ "MIT" ]
null
null
null
from prettytable import PrettyTable pr1=PrettyTable() stages,minimum,n=4,float('inf'),8 cost,d,path,=[0 for i in range(9)],[0 for i in range(9)],[0 for i in range(9)] graph=[[0,0,0,0,0,0,0,0,0],[0,0,2,1,3,0,0,0,0],[0,0,0,0,0,2,3,0,0],[0,0,0,0,0,6,7,0,0],[0,0,0,0,0,6,8,9,0],[0,0,0,0,0,0,0,0,6],[0,0,0,0,0,0,0,0,4],[0,0,0...
36.56
187
0.609409
0d619081bee4402576d6e915a8358efd7c42126c
15,078
py
Python
blahtex/__init__.py
amuramatsu/blahtex-py
9644ec8e4edaee707c8e7f2d3094f469cb1c3727
[ "BSD-3-Clause" ]
null
null
null
blahtex/__init__.py
amuramatsu/blahtex-py
9644ec8e4edaee707c8e7f2d3094f469cb1c3727
[ "BSD-3-Clause" ]
null
null
null
blahtex/__init__.py
amuramatsu/blahtex-py
9644ec8e4edaee707c8e7f2d3094f469cb1c3727
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License # # Copyright (c) 2020, MURAMATSU Atshshi # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this ...
38.366412
137
0.616262
ca6b9333870c2bdac870bc495bdcfab6490e60c8
962
py
Python
final_project/run.py
sabbir420/Automation-with-Python
c689f3132ae2c55e5f5e46539e98e17547463d54
[ "MIT" ]
null
null
null
final_project/run.py
sabbir420/Automation-with-Python
c689f3132ae2c55e5f5e46539e98e17547463d54
[ "MIT" ]
null
null
null
final_project/run.py
sabbir420/Automation-with-Python
c689f3132ae2c55e5f5e46539e98e17547463d54
[ "MIT" ]
2
2020-10-04T06:55:18.000Z
2022-03-04T19:31:39.000Z
#! /usr/bin/env python3 import os, glob import requests text_files = glob.glob("/home/student-04-e1a4e4b25306/supplier-data/descriptions/*.txt") keys = ["name", "weight", "description","image_name"] feed_list = [] #parsing through the text files for files in text_files: with open(files) as f: dict = {} reader =...
27.485714
88
0.691268
54dd527fc7920703a50c2a0f7eaeb4d0e86218dd
3,258
py
Python
src/om_aiv_navigation/om_aiv_navigation/localize_at_point.py
zach-goh/Omron_AMR_ROS2
50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52
[ "BSD-3-Clause" ]
2
2022-01-04T02:55:51.000Z
2022-03-18T05:43:33.000Z
src/om_aiv_navigation/om_aiv_navigation/localize_at_point.py
zach-goh/Omron_AMR_ROS2
50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52
[ "BSD-3-Clause" ]
3
2021-08-25T13:56:12.000Z
2021-10-13T00:51:14.000Z
src/om_aiv_navigation/om_aiv_navigation/localize_at_point.py
zach-goh/Omron_AMR_ROS2
50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function import rclpy import sys import math from rclpy.action import ActionClient from rclpy.node import Node from om_aiv_msg.action import Action from geometry_msgs.msg import PoseWithCovarianceStamped LOCALIZE_TO_POINT_COMMAND = "localizetopoint " INITIAL_POSE_TO...
38.329412
131
0.645795
b0b51bc9ad66546a0a7195c35e605de582131d48
1,435
py
Python
homework_03/18_stelian_todorichkov/test_circle.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
7
2021-10-05T14:54:55.000Z
2022-02-16T06:07:12.000Z
homework_03/18_stelian_todorichkov/test_circle.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
2
2021-12-04T10:49:46.000Z
2022-02-28T06:09:06.000Z
homework_03/18_stelian_todorichkov/test_circle.py
valentinvarbanov/software_engineering_2021
33ece7d1e4889840621626e30f975d6cfd370b38
[ "MIT" ]
null
null
null
from circle import Circle, Point, RealativePosition def test_same(): circle1 = Circle(Point(0.0, 0.0), 5.0) circle2 = Circle(Point(0.0, 0.0), 5.0) assert circle1.find_relative_position(circle2) == RealativePosition.SAME def test_intersecting(): circle1 = Circle(Point(0.0, 0.0), 2.0) circle2 = Circ...
37.763158
88
0.696864
b094a21dba009c5bdc56ed5155ffc215a06eb6eb
2,219
py
Python
data/db/distribute_db_import.py
saikatgomes/recsys
6bbc831ec87fdb0ea01112d6cfe22676577c029b
[ "Apache-2.0" ]
1
2017-03-08T07:53:25.000Z
2017-03-08T07:53:25.000Z
data/db/distribute_db_import.py
saikatgomes/recsys
6bbc831ec87fdb0ea01112d6cfe22676577c029b
[ "Apache-2.0" ]
null
null
null
data/db/distribute_db_import.py
saikatgomes/recsys
6bbc831ec87fdb0ea01112d6cfe22676577c029b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys,glob,io,requests,json,time,datetime,os.path,socket,random,re from lxml import html from random import shuffle, randint BASE_URL="http://imdb.com" DATA_DIR="../data/tweet" OUT_DIR="../data/imdb/parts" RATING_ONLY=0; C_COUNT=0 M_COUNT=0 MOVIES=[] # current time for logging def getTime(f...
29.986486
125
0.525913
9de12a355fb2013533bbb7541ce208323ca679cd
18,861
py
Python
vcr/patch.py
Smosker/vcrpy
a56a0726d4f325f963696087d83c82b78e2a3464
[ "MIT" ]
null
null
null
vcr/patch.py
Smosker/vcrpy
a56a0726d4f325f963696087d83c82b78e2a3464
[ "MIT" ]
null
null
null
vcr/patch.py
Smosker/vcrpy
a56a0726d4f325f963696087d83c82b78e2a3464
[ "MIT" ]
2
2017-12-14T07:59:31.000Z
2017-12-26T10:07:55.000Z
'''Utilities for patching in cassettes''' import functools import itertools from .compat import contextlib, mock from .stubs import VCRHTTPConnection, VCRHTTPSConnection from six.moves import http_client as httplib # Save some of the original types for the purposes of unpatching _HTTPConnection = httplib.HTTPConnect...
39.959746
102
0.66831
8c828f51679330db431d1d2fa0a60eb275113e7b
9,293
py
Python
tests/parser/functions/test_raw_call.py
abdullathedruid/vyper
02b1b207f453b704cf1c491741bc85be9168a373
[ "Apache-2.0" ]
2
2022-02-08T16:17:10.000Z
2022-03-06T11:01:46.000Z
tests/parser/functions/test_raw_call.py
abdullathedruid/vyper
02b1b207f453b704cf1c491741bc85be9168a373
[ "Apache-2.0" ]
4
2018-12-06T23:21:02.000Z
2022-02-07T15:28:01.000Z
tests/parser/functions/test_raw_call.py
charles-cooper/vyper
bbbd8618f8427d416d6751214dd560872f8848f3
[ "Apache-2.0" ]
null
null
null
import pytest from hexbytes import HexBytes from vyper import compiler from vyper.builtin_functions import get_create_forwarder_to_bytecode from vyper.exceptions import ArgumentException, StateAccessViolation pytestmark = pytest.mark.usefixtures("memory_mocker") def test_max_outsize_exceeds_returndatasize(get_contr...
26.627507
162
0.696976
5fd383b7dee34a5dfdb36134a44adbf2699c5dfe
17,393
py
Python
Next_gen_systems/Blockchain/myblockchain_mod.py
UAH-s-Telematics-Engineering-Tasks/ortega_collado_telematics_reports
7759fda9552c5a59f37b137c20357d4da0f29e21
[ "MIT" ]
null
null
null
Next_gen_systems/Blockchain/myblockchain_mod.py
UAH-s-Telematics-Engineering-Tasks/ortega_collado_telematics_reports
7759fda9552c5a59f37b137c20357d4da0f29e21
[ "MIT" ]
null
null
null
Next_gen_systems/Blockchain/myblockchain_mod.py
UAH-s-Telematics-Engineering-Tasks/ortega_collado_telematics_reports
7759fda9552c5a59f37b137c20357d4da0f29e21
[ "MIT" ]
1
2020-05-17T18:50:36.000Z
2020-05-17T18:50:36.000Z
from hashlib import sha256 from flask import Flask, jsonify, request import requests, json, time, copy class Block: def __init__(self, index, transactions, timestamp, previous_hash, nonce = 0): self.index = index self.transactions = transactions self.timestamp = timestamp s...
40.543124
158
0.588858
43e9c9f31ee37cd2340c2682b8290fca1c91cecc
10,288
py
Python
tokenization.py
a1da4/bert-japanese
a8e74022d589cefb00a3467ca43f38e62db06908
[ "Apache-2.0" ]
null
null
null
tokenization.py
a1da4/bert-japanese
a8e74022d589cefb00a3467ca43f38e62db06908
[ "Apache-2.0" ]
null
null
null
tokenization.py
a1da4/bert-japanese
a8e74022d589cefb00a3467ca43f38e62db06908
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. team, # and Masatoshi Suzuki. # # 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.apac...
39.722008
91
0.606532
5825d43645cb9f0eb50dede80a06842331dd20e5
6,789
py
Python
tests/integration/test_uninstall.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
6,263
2017-01-20T17:41:36.000Z
2022-02-15T20:48:57.000Z
tests/integration/test_uninstall.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
1,100
2017-01-20T19:41:52.000Z
2017-12-06T09:15:13.000Z
tests/integration/test_uninstall.py
jrottenberg/pipenv
cda15b3b30e04e038ee286bced6c47a311f1e0ec
[ "MIT" ]
366
2017-01-21T10:06:52.000Z
2021-11-25T17:09:19.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import os import shutil import pytest from pipenv.utils import temp_environ @pytest.mark.uninstall @pytest.mark.install def test_uninstall_requests(PipenvInstance): # Uninstalling requests can fail even when uninstall Django below ...
34.115578
95
0.628222
842abd3429eccf4f74606f30aadbde84363cd512
5,839
py
Python
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_push_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
681
2019-09-09T19:34:37.000Z
2022-03-31T12:17:58.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_push_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
212
2019-09-18T14:43:44.000Z
2022-03-27T22:21:00.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_push_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
157
2019-09-12T05:06:05.000Z
2022-03-29T14:47:24.000Z
import numpy as np from gym.spaces import Box from scipy.spatial.transform import Rotation from metaworld.envs import reward_utils from metaworld.envs.asset_path_utils import full_v2_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set class SawyerPushEnvV2(SawyerXYZ...
32.988701
93
0.57801
d235ce422ff23540520acb984183b8d8c19f27d7
2,794
py
Python
testcases/logger_test.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
3,719
2015-01-06T09:00:02.000Z
2022-03-31T20:55:01.000Z
testcases/logger_test.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
122
2015-01-01T17:06:22.000Z
2022-03-22T13:33:38.000Z
testcases/logger_test.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
1,428
2015-01-01T17:07:38.000Z
2022-03-31T10:02:37.000Z
# PyAlgoTrade # # Copyright 2011-2018 Gabriel Martin Becedillas Ruiz # # 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 ap...
40.492754
117
0.659986
8b8289b55cb02101265255283d074585270abaa2
15,285
py
Python
nova/tests/unit/scheduler/test_scheduler_utils.py
viggates/nova-1
d2b7ce91f2d4c34a0794efc710b9e96574f9f605
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/test_scheduler_utils.py
viggates/nova-1
d2b7ce91f2d4c34a0794efc710b9e96574f9f605
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/test_scheduler_utils.py
viggates/nova-1
d2b7ce91f2d4c34a0794efc710b9e96574f9f605
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Rackspace Hosting # 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 req...
42.34072
78
0.585541
c6def6a49ebf562826846a7d5e9f3597eb239b36
3,878
py
Python
src/commands/return_inventory.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
19
2018-10-02T03:58:46.000Z
2021-04-09T13:09:23.000Z
commands/return_inventory.py
seisatsu/Dennis
8f1892f21beba6b21b4f7b9ba3062296bb1dc4b9
[ "MIT" ]
100
2018-09-22T22:54:35.000Z
2021-04-16T17:46:34.000Z
commands/return_inventory.py
zbylyrcxr/DennisMUD
cb9be389e3be3e267fd78b1520ed2902941742da
[ "MIT" ]
1
2022-03-07T08:10:59.000Z
2022-03-07T08:10:59.000Z
####################### # Dennis MUD # # return_inventory.py # # Copyright 2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal i...
45.623529
120
0.65936
8dc901142dd1b9965849a5fd11e6c03fd5cb33fe
916
py
Python
sdk/python/pulumi_aws_native/greengrassv2/_enums.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/greengrassv2/_enums.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/greengrassv2/_enums.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "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! *** from enum import Enum __all__ = [ 'ComponentVersionLambdaEventSourceType', 'ComponentVersionLambdaExecutionParametersInputPayloadEncodingType'...
27.757576
83
0.766376
d30504cf61e9b575a443cbd9bef1f572daddf155
1,353
py
Python
examples/pytorch-lightning/hyperparams-as-output/mnist_trainer.py
DAGsHub/DAGsHub
e1c61bed6afee3cad0b3157aa86406d0da53a455
[ "MIT" ]
37
2019-11-12T13:49:02.000Z
2022-03-15T06:59:56.000Z
examples/pytorch-lightning/hyperparams-as-output/mnist_trainer.py
DAGsHub/DAGsHub
e1c61bed6afee3cad0b3157aa86406d0da53a455
[ "MIT" ]
59
2019-11-13T15:16:16.000Z
2022-03-14T15:01:26.000Z
examples/pytorch-lightning/hyperparams-as-output/mnist_trainer.py
DAGsHub/DAGsHub
e1c61bed6afee3cad0b3157aa86406d0da53a455
[ "MIT" ]
7
2020-05-09T09:32:05.000Z
2021-11-24T16:02:28.000Z
""" This file runs the main training/val loop, etc... using Lightning Trainer """ from argparse import ArgumentParser from pytorch_lightning import Trainer from dagshub.pytorch_lightning import DAGsHubLogger def import_model(): """ Ugly hack to be able to import the model from ../mnist_model.py """ ...
28.787234
98
0.704361
1d69eeac521e3a69541aa0947dae8465a0d33824
16,746
py
Python
resilient_alexnet/a_to_a.py
maxzvyagin/resilient_alexnet
a492a1da93133995057dc3504312158d6c25b2b0
[ "MIT" ]
null
null
null
resilient_alexnet/a_to_a.py
maxzvyagin/resilient_alexnet
a492a1da93133995057dc3504312158d6c25b2b0
[ "MIT" ]
null
null
null
resilient_alexnet/a_to_a.py
maxzvyagin/resilient_alexnet
a492a1da93133995057dc3504312158d6c25b2b0
[ "MIT" ]
null
null
null
import sys from resilient_alexnet.alexnet_fashion import fashion_pytorch_alexnet, fashion_tensorflow_alexnet from resilient_alexnet.alexnet_caltech import caltech_pytorch_alexnet, caltech_tensorflow_alexnet from resilient_alexnet.alexnet_cinic import cinic_pytorch_alexnet, cinic_tensorflow_alexnet from resilient_alexne...
46.387812
138
0.662188
8d9918e5c6b272431e825dc3516eb0a97370e791
3,840
py
Python
quantecon/tests/test_gridtools.py
JMFU/QuantEcon.py
2840efe51d207b4d58d875e5112f038c75b995ef
[ "BSD-3-Clause" ]
1
2022-03-09T14:43:35.000Z
2022-03-09T14:43:35.000Z
quantecon/tests/test_gridtools.py
JMFU/QuantEcon.py
2840efe51d207b4d58d875e5112f038c75b995ef
[ "BSD-3-Clause" ]
null
null
null
quantecon/tests/test_gridtools.py
JMFU/QuantEcon.py
2840efe51d207b4d58d875e5112f038c75b995ef
[ "BSD-3-Clause" ]
3
2018-06-14T04:42:50.000Z
2021-10-09T18:59:08.000Z
""" Author: Pablo Winant Filename: test_cartesian.py Tests for gridtools.py file """ from quantecon.gridtools import cartesian, _repeat_1d def test_cartesian_C_order(): from numpy import linspace x = linspace(0,9,10) prod = cartesian([x,x,x]) correct = True for i in range(999): n = pr...
21.452514
61
0.600781
d59a6b6e80935273701c12dbac41589990d6743b
2,867
py
Python
checker/src/util.py
enowars/bambi-service-postit
8743161eb4454ed73094fde1789d77e704d5a3f1
[ "MIT" ]
null
null
null
checker/src/util.py
enowars/bambi-service-postit
8743161eb4454ed73094fde1789d77e704d5a3f1
[ "MIT" ]
null
null
null
checker/src/util.py
enowars/bambi-service-postit
8743161eb4454ed73094fde1789d77e704d5a3f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import secrets import string import time from base64 import b64encode from logging import LoggerAdapter from os import path from typing import Any leetconv = { "O": "0", "l": "1", "I": "1", "Z": "2", "E": "3", "A": "4", "S": "5", "G": "6", "T": "7...
25.828829
79
0.60586
6b9c221879a9d3d664f5efff6a254844d70da7d8
1,289
py
Python
GoogleAppEngineLauncher.py
CKallemeres/google-appengine-wx-launcher
ae6ca9a073e2f8ec5fa09178a8148e9e5519aa8d
[ "Apache-2.0" ]
2
2015-02-03T10:30:38.000Z
2016-11-24T06:44:55.000Z
GoogleAppEngineLauncher.py
CKallemeres/google-appengine-wx-launcher
ae6ca9a073e2f8ec5fa09178a8148e9e5519aa8d
[ "Apache-2.0" ]
null
null
null
GoogleAppEngineLauncher.py
CKallemeres/google-appengine-wx-launcher
ae6ca9a073e2f8ec5fa09178a8148e9e5519aa8d
[ "Apache-2.0" ]
1
2015-12-13T18:19:21.000Z
2015-12-13T18:19:21.000Z
#!/usr/bin/env python # # Copyright 2008 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 o...
29.295455
78
0.724593
9b68be82f9eefbca5387d273a6833de76961e2b6
281
py
Python
268. Missing Number/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
268. Missing Number/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
268. Missing Number/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def missingNumber(self, nums: List[int]) -> int: ideal_sum = 0 actual_sum = 0 for i in range(0, len(nums)): ideal_sum += i actual_sum += nums[i] ideal_sum += len(nums) return ideal_sum - actual_sum
31.222222
52
0.544484
7f2186f8b69bbb0059f3822184d47029767e49ad
5,028
py
Python
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
visuphi/openthread
a193a6f23a70fd2413538d251328eb027dcb5cf3
[ "BSD-3-Clause" ]
5
2020-09-17T04:57:13.000Z
2021-04-26T12:41:53.000Z
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
visuphi/openthread
a193a6f23a70fd2413538d251328eb027dcb5cf3
[ "BSD-3-Clause" ]
7
2021-06-02T09:34:31.000Z
2022-02-10T09:33:33.000Z
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
visuphi/openthread
a193a6f23a70fd2413538d251328eb027dcb5cf3
[ "BSD-3-Clause" ]
11
2021-06-02T09:02:04.000Z
2022-03-12T06:26:25.000Z
#!/usr/bin/env python3 # # Copyright (c) 2021, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
38.090909
119
0.636635
36997c43feccc1b026253b8db8ce58c662a8ed1d
6,250
py
Python
frappe/permissions.py
gangadharkadam/office_frappe
38ea6c9c68bf61b71b7af1d28b83d0253dd0041f
[ "MIT" ]
null
null
null
frappe/permissions.py
gangadharkadam/office_frappe
38ea6c9c68bf61b71b7af1d28b83d0253dd0041f
[ "MIT" ]
null
null
null
frappe/permissions.py
gangadharkadam/office_frappe
38ea6c9c68bf61b71b7af1d28b83d0253dd0041f
[ "MIT" ]
1
2018-03-21T18:39:06.000Z
2018-03-21T18:39:06.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, copy from frappe import _, msgprint from frappe.utils import cint rights = ("read", "write", "create", "delete", "submit", "cancel", "amend", "print", "email",...
32.894737
128
0.7496
00f242f67158ae93e2e72316530265383bb364b3
1,022
py
Python
var/spack/repos/builtin/packages/pdf2svg/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/pdf2svg/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/pdf2svg/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 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 Pdf2svg(AutotoolsPackage): """A simple PDF to SVG converter using the Poppler and Cairo li...
39.307692
95
0.73092
1ff5b8b8ee7884b5c4ad7b751efc86f5bd5d8d36
32,114
py
Python
tests/test_reusable_executor.py
mgorny/loky
6245bb2f7c16e283ced3d2ff25a9c9cc439a8867
[ "BSD-3-Clause" ]
null
null
null
tests/test_reusable_executor.py
mgorny/loky
6245bb2f7c16e283ced3d2ff25a9c9cc439a8867
[ "BSD-3-Clause" ]
null
null
null
tests/test_reusable_executor.py
mgorny/loky
6245bb2f7c16e283ced3d2ff25a9c9cc439a8867
[ "BSD-3-Clause" ]
null
null
null
import os import sys import gc import ctypes import psutil import pytest import warnings import threading from time import sleep from multiprocessing import util, current_process from pickle import PicklingError, UnpicklingError from distutils.version import LooseVersion import loky from loky import cpu_count from lok...
38.691566
79
0.641153
f318e07fec7dd9ba97163d5eed51a456e10e0d9c
2,316
py
Python
facebook_business/adobjects/adruleexecutionspec.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adruleexecutionspec.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adruleexecutionspec.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
1
2020-07-27T16:34:58.000Z
2020-07-27T16:34:58.000Z
# 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...
35.630769
94
0.729275
88abbe347f91635197df385aa2d9642d30513489
397
py
Python
appengine/handlers/deferred.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/handlers/deferred.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/handlers/deferred.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
from __future__ import absolute_import import os import fix_paths from greenday_core.utils import get_settings_name os.environ.setdefault("DJANGO_SETTINGS_MODULE", get_settings_name()) import django django.setup() from deferred_manager.handler import application as deferred_manager_app from .middleware import djan...
23.352941
72
0.86398
57edad9988a7149327a9f469e1acb5fb20fcbddd
14,267
py
Python
fuse/eval/metrics/libs/classification.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
fuse/eval/metrics/libs/classification.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
fuse/eval/metrics/libs/classification.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
""" (C) Copyright 2021 IBM Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
47.085809
178
0.605103
a40677f39d4298201fb6d7dd372e94382ff19f56
1,652
py
Python
locallibrary/locallibrary/urls.py
Supernaturaal/django_local_library-
6ebd2d17060012b074809ce1a0a1d95a72937ad5
[ "Apache-2.0" ]
null
null
null
locallibrary/locallibrary/urls.py
Supernaturaal/django_local_library-
6ebd2d17060012b074809ce1a0a1d95a72937ad5
[ "Apache-2.0" ]
null
null
null
locallibrary/locallibrary/urls.py
Supernaturaal/django_local_library-
6ebd2d17060012b074809ce1a0a1d95a72937ad5
[ "Apache-2.0" ]
null
null
null
""" locallibrary URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='h...
35.913043
94
0.720339
3cece2e8c40520ea24e8043964fb2b1113fa1a2f
4,234
py
Python
Raspberry_Pi_Animated_Gif_Player/animatedgif.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Raspberry_Pi_Animated_Gif_Player/animatedgif.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Raspberry_Pi_Animated_Gif_Player/animatedgif.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
import os import time from PIL import Image, ImageOps # pylint: disable=too-few-public-methods class Frame: def __init__(self, duration=0): self.duration = duration self.image = None # pylint: enable=too-few-public-methods class AnimatedGif: def __init__(self, display, include_delays=True, ...
34.422764
85
0.536845
c4e8ed451894ee31d1f39e6a1eb56c71d5112a68
48,431
py
Python
cclib/parser/molcasparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
null
null
null
cclib/parser/molcasparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
null
null
null
cclib/parser/molcasparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Parser for Molcas output files""" import re import string import numpy from cclib.parser import logfileparser from c...
48.09434
161
0.424253
131c31bf7cc2e81274bbffa8af6479ad6ede2cd3
1,763
py
Python
config/urls.py
fabianrios/stratum
2481515d53e39edef4cecf056c23bc43341cac9b
[ "MIT" ]
1
2019-10-07T15:00:38.000Z
2019-10-07T15:00:38.000Z
config/urls.py
fabianrios/stratum
2481515d53e39edef4cecf056c23bc43341cac9b
[ "MIT" ]
null
null
null
config/urls.py
fabianrios/stratum
2481515d53e39edef4cecf056c23bc43341cac9b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="page...
32.648148
86
0.623369
98aa453690124c29eea31f69ae201c7caa4265b7
3,055
py
Python
epitran/bin/connl2ipaspace.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
422
2016-05-19T09:07:38.000Z
2022-03-31T15:06:36.000Z
epitran/bin/connl2ipaspace.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
80
2017-05-22T14:58:19.000Z
2022-03-28T19:23:31.000Z
epitran/bin/connl2ipaspace.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
95
2017-05-06T04:19:53.000Z
2022-03-21T10:41:42.000Z
#!/usr/bin/env python import argparse import codecs import logging from collections import Counter import epitran import panphon import unicodecsv as csv logging.basicConfig(level=logging.DEBUG) def normpunc(epi, s): def norm(c): if c in epi.puncnorm: return epi.puncnorm[c] else: ...
30.247525
113
0.554501
57432fe98612bc035821e371d410fb7d9cc44d8c
621
py
Python
mindhome_alpha/erpnext/patches/v7_2/update_abbr_in_salary_slips.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/patches/v7_2/update_abbr_in_salary_slips.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/patches/v7_2/update_abbr_in_salary_slips.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc('Payroll', 'doctype', 'Salary Slip') if not frappe.db.has_column('Salary Detail', 'abbr'): return salary_details = frappe.db.sql("""select abbr, salary_component, name from `tabSalary Detail` where abbr is null or abbr = '...
44.357143
122
0.756844
c1ab8ccf26950940bd2b7b3a044b8d364aa5f888
1,517
py
Python
gemd/__init__.py
CitrineInformatics/gemd
f4bb7e5ff09e7ec89d277c26e61ed14f6bab0306
[ "Apache-2.0" ]
3
2019-09-27T02:56:26.000Z
2019-11-11T22:21:18.000Z
gemd/__init__.py
CitrineInformatics/gemd
f4bb7e5ff09e7ec89d277c26e61ed14f6bab0306
[ "Apache-2.0" ]
29
2019-09-09T23:20:41.000Z
2020-03-31T19:13:01.000Z
gemd/__init__.py
CitrineInformatics/gemd
f4bb7e5ff09e7ec89d277c26e61ed14f6bab0306
[ "Apache-2.0" ]
3
2019-09-20T19:01:02.000Z
2019-11-26T02:43:45.000Z
"""Data concepts library.""" # flake8: noqa from .entity import Condition, Parameter, Property, PropertyAndConditions, \ CategoricalBounds, CompositionBounds, IntegerBounds, \ MolecularStructureBounds, RealBounds, \ MaterialRun, MeasurementRun, ProcessRun, IngredientRun, \ MaterialSpec, MeasurementSpec,...
48.935484
78
0.696111
9e34c8039bd5c46ba55b2e4be6bc2bd94b5ee245
1,712
py
Python
setup.py
gilwoolee/bpo_baselines
2fbd39be8e79d69f2d2b23b4e5b8e6dfd372a58a
[ "MIT" ]
null
null
null
setup.py
gilwoolee/bpo_baselines
2fbd39be8e79d69f2d2b23b4e5b8e6dfd372a58a
[ "MIT" ]
null
null
null
setup.py
gilwoolee/bpo_baselines
2fbd39be8e79d69f2d2b23b4e5b8e6dfd372a58a
[ "MIT" ]
null
null
null
import re from setuptools import setup, find_packages import sys if sys.version_info.major != 3: print('This Python is only compatible with Python 3, but you are running ' 'Python {}. The installation will likely fail.'.format(sys.version_info.major)) extras = { 'test': [ 'filelock', ...
27.174603
104
0.620911
97e7a787fb57792188a5d80b69459edf431981fd
1,240
py
Python
profiles_api/serializers.py
FHSAF/prifiles-rest-api
4c329d42846cff50dbf2474164cbe36b818c01c6
[ "MIT" ]
null
null
null
profiles_api/serializers.py
FHSAF/prifiles-rest-api
4c329d42846cff50dbf2474164cbe36b818c01c6
[ "MIT" ]
6
2020-06-05T20:52:01.000Z
2021-09-22T18:32:22.000Z
profiles_api/serializers.py
FHSAF/prifiles-rest-api
4c329d42846cff50dbf2474164cbe36b818c01c6
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializers a name filed for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): '''serializers a user profile...
28.181818
70
0.579839
34ba5685b23e23a18bd727e9804d7ba5f6aad1d9
1,654
py
Python
services/users/project/tests/test_config.py
Wirya2700/testdriven-app
fc98c15f04e7c5e22b276d96bfbd6756201b3bfc
[ "MIT" ]
1
2021-09-16T06:31:18.000Z
2021-09-16T06:31:18.000Z
services/users/project/tests/test_config.py
Wirya2700/testdriven-app
fc98c15f04e7c5e22b276d96bfbd6756201b3bfc
[ "MIT" ]
null
null
null
services/users/project/tests/test_config.py
Wirya2700/testdriven-app
fc98c15f04e7c5e22b276d96bfbd6756201b3bfc
[ "MIT" ]
null
null
null
# services/users/project/tests/test_config.py import os import unittest from flask import current_app from flask_testing import TestCase from project import create_app app = create_app() class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object('project.config.DevelopmentCon...
28.033898
69
0.685611
457fac15e3b24a406ac1ea5a69f7ebb6dc44c8b0
4,173
py
Python
thzspider/scripts/archive/searchrfidvianame.py
jiangtianyu2009/softcake
a7696185e6cc4366af8f4c98f8b7053593b199dd
[ "MIT" ]
1
2020-10-15T16:09:13.000Z
2020-10-15T16:09:13.000Z
thzspider/scripts/archive/searchrfidvianame.py
jiangtianyu2009/softcake
a7696185e6cc4366af8f4c98f8b7053593b199dd
[ "MIT" ]
null
null
null
thzspider/scripts/archive/searchrfidvianame.py
jiangtianyu2009/softcake
a7696185e6cc4366af8f4c98f8b7053593b199dd
[ "MIT" ]
null
null
null
from scrapinghub import ScrapinghubClient apikey = '11befd9da9304fecb83dfa114d1926e9' client = ScrapinghubClient(apikey) project = client.get_project(252342) javjob = project.jobs.list(spider='javname', state='finished')[0] print(javjob['key']) lastjob = project.jobs.get(javjob['key']) namelist = [] namelist.append...
24.839286
65
0.75006
079c658930d40362445de830785dc6b7a4987715
10,754
py
Python
pyrender/mesh.py
KailinLi/pyrender
cd943dac32ea943b464b0e37262367c593bbd1c9
[ "MIT" ]
null
null
null
pyrender/mesh.py
KailinLi/pyrender
cd943dac32ea943b464b0e37262367c593bbd1c9
[ "MIT" ]
null
null
null
pyrender/mesh.py
KailinLi/pyrender
cd943dac32ea943b464b0e37262367c593bbd1c9
[ "MIT" ]
null
null
null
"""Meshes, conforming to the glTF 2.0 standards as specified in https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-mesh Author: Matthew Matl """ import copy import numpy as np import trimesh from .constants import GLTF from .material import MetallicRoughnessMaterial from .primitive import P...
34.915584
116
0.553654
8df2de09156a5a83e1c901cf4151fdbc995731dc
2,523
py
Python
scripts/txt_replace.py
chargio/koku-metrics-operator
dc79ca3a8680c47230f6dd51c6e2e9868f2025b8
[ "Apache-2.0" ]
5
2021-01-21T15:31:28.000Z
2021-12-19T04:18:44.000Z
scripts/txt_replace.py
chargio/koku-metrics-operator
dc79ca3a8680c47230f6dd51c6e2e9868f2025b8
[ "Apache-2.0" ]
86
2020-12-03T22:58:32.000Z
2022-01-25T21:38:56.000Z
scripts/txt_replace.py
chargio/koku-metrics-operator
dc79ca3a8680c47230f6dd51c6e2e9868f2025b8
[ "Apache-2.0" ]
5
2021-03-05T09:04:20.000Z
2022-02-19T19:20:29.000Z
#!/usr/bin/env python3 import sys from datetime import datetime from tempfile import mkstemp from shutil import move, copymode from os import fdopen, name, path, remove def check_version(v_tup): new, old, _ = v_tup if new == old: print("expect new and previous versions to differ:\n\tnew version: %s\n...
32.766234
126
0.640507
45525d4c07f28d75ab2b5376dcee9f9d80ff418e
8,732
py
Python
yt/frontends/flash/fields.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
1
2021-09-15T08:17:43.000Z
2021-09-15T08:17:43.000Z
yt/frontends/flash/fields.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
31
2017-04-19T21:07:18.000Z
2017-04-20T01:08:43.000Z
yt/frontends/flash/fields.py
stonnes/yt
aad3cfa3b4ebab7838352ab467275a27c26ff363
[ "BSD-3-Clause-Clear" ]
1
2021-04-21T07:01:51.000Z
2021-04-21T07:01:51.000Z
from yt.fields.field_info_container import FieldInfoContainer # Common fields in FLASH: (Thanks to John ZuHone for this list) # # dens gas mass density (g/cc) -- # eint internal energy (ergs/g) -- # ener total energy (ergs/g), with 0.5*v^2 -- # gamc gamma defined as ratio of specific heats, no units # game gamma defin...
37.800866
88
0.504695
4fd2a7ef8ef9bd847bb3d52b19cc90472bd773db
234
py
Python
uaber-api/uaber/settings/base.py
lahim/UAber
ae3a3c6e155eeba7f3f2f9d9c9358ba105c98cd4
[ "MIT" ]
1
2022-03-03T14:55:15.000Z
2022-03-03T14:55:15.000Z
uaber-api/uaber/settings/base.py
lahim/Code4Ukraine
ae3a3c6e155eeba7f3f2f9d9c9358ba105c98cd4
[ "MIT" ]
null
null
null
uaber-api/uaber/settings/base.py
lahim/Code4Ukraine
ae3a3c6e155eeba7f3f2f9d9c9358ba105c98cd4
[ "MIT" ]
null
null
null
CORS_ALLOW_ORIGINS = '*' # fixme! CORS_ALLOW_METHODS = ['GET', 'POST', 'PATH', 'DELETE'] CORS_ALLOW_HEADERS = ['*'] # fixme! DATABASE = { 'uri': 'mongodb://localhost:27017', 'max_pool_size': 10, 'db_name': 'uaberdb', }
23.4
54
0.606838
2620a583dd36b2960742917eefd154f1a303b496
5,037
py
Python
docker_compose_wait.py
kbkk/docker-compose-wait
46f5aa5ba89024f96529c75dc676e1fb3b23c278
[ "MIT" ]
null
null
null
docker_compose_wait.py
kbkk/docker-compose-wait
46f5aa5ba89024f96529c75dc676e1fb3b23c278
[ "MIT" ]
null
null
null
docker_compose_wait.py
kbkk/docker-compose-wait
46f5aa5ba89024f96529c75dc676e1fb3b23c278
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import division, absolute_import, print_function, unicode_literals import subprocess import re import time import sys import argparse import yaml from timeparse import timeparse def call(args): return '\n'.join(subprocess.check_output(args).decode().splitlines()) def get_a...
35.978571
125
0.604129
7ba2942d9d5dcdc95adaff2ce6168207eb23d2dd
358,370
py
Python
Cython/Compiler/Nodes.py
arigo/cython
c4a0aa5969258afcc22d6a76732b5c4a2aa696b0
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/Nodes.py
arigo/cython
c4a0aa5969258afcc22d6a76732b5c4a2aa696b0
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/Nodes.py
arigo/cython
c4a0aa5969258afcc22d6a76732b5c4a2aa696b0
[ "Apache-2.0" ]
1
2020-09-09T16:10:27.000Z
2020-09-09T16:10:27.000Z
# # Parse tree nodes # from __future__ import absolute_import import cython cython.declare(sys=object, os=object, copy=object, Builtin=object, error=object, warning=object, Naming=object, PyrexTypes=object, py_object_type=object, ModuleScope=object, LocalScope=object, ClosureScope=obje...
40.590101
120
0.597723
1eb60500d28469e2ff7287e03bc9f616b11e7c0c
9,318
py
Python
docs/conf.py
graysham/fluentcms-jumbotron
4c28475a13cc3b4c190acca313d73641a2c533f2
[ "Apache-2.0" ]
null
null
null
docs/conf.py
graysham/fluentcms-jumbotron
4c28475a13cc3b4c190acca313d73641a2c533f2
[ "Apache-2.0" ]
null
null
null
docs/conf.py
graysham/fluentcms-jumbotron
4c28475a13cc3b4c190acca313d73641a2c533f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # fluentcms-jumbotron documentation build configuration file, created by # sphinx-quickstart on Wed Apr 20 14:26:24 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated...
32.809859
81
0.71979
8d23d62b5dc7b99f8d5522af95ce66a2fd33a6fc
680
py
Python
floydwarshall.py
priyanshu5055/cpp
16310ae8a824cd08b74f47bb4aec300b9b8b0f50
[ "MIT" ]
1
2021-12-17T06:12:51.000Z
2021-12-17T06:12:51.000Z
floydwarshall.py
AneriSonani09/cpp
898fd0719c6ca501837661869070c939d07b595a
[ "MIT" ]
null
null
null
floydwarshall.py
AneriSonani09/cpp
898fd0719c6ca501837661869070c939d07b595a
[ "MIT" ]
5
2020-10-01T04:12:34.000Z
2021-10-22T04:49:45.000Z
V = 4 INF = 99999 def floydWarshall(graph): dist = map(lambda i : map(lambda j : j , i) , graph) for k in range(V): for i in range(V): for j in range(V): dist[i][j] = min(dist[i][j] , dist[i][k]+ dist[k][j] ) printSolution(dist) def printSolution(dist): print("Following matr...
19.428571
87
0.532353
0a4e97b0bf7dbd4ee50cff7db1ccb596ac1d1625
2,336
py
Python
freyr_app/core/management/commands/download_models.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
2
2021-06-01T20:27:14.000Z
2021-10-01T23:24:45.000Z
freyr_app/core/management/commands/download_models.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
null
null
null
freyr_app/core/management/commands/download_models.py
blanchefort/freyrmonitoring
5bf10ba86d3f88390f91106426dd964289f5aee6
[ "MIT" ]
null
null
null
"""Команда скачивания новых версий ML-моделей $python manage.py download_models --full """ import logging from django.core.management.base import BaseCommand from core.models import categories, Category from ._download_funcs import (geography, download_freyr_model, ...
35.393939
79
0.56464
4c1a67022c237566bd29841e7e9cf4d6b10544e3
1,154
py
Python
main.py
minexixi/BlackRGB
03767e7f96a3298a07a40e2098298288180eeb78
[ "Apache-2.0" ]
null
null
null
main.py
minexixi/BlackRGB
03767e7f96a3298a07a40e2098298288180eeb78
[ "Apache-2.0" ]
null
null
null
main.py
minexixi/BlackRGB
03767e7f96a3298a07a40e2098298288180eeb78
[ "Apache-2.0" ]
null
null
null
import os,argparse from PIL import Image def Color2RGB(Cname, mB): C = Image.open(Cname) w, h =C .size nR = Image.new('RGBA', C.size, 'Black') nG = Image.new('RGBA', C.size, 'Black') nB = Image.new('RGBA', C.size, 'Black') for x in range(w): for y in range(h): PR, PG, PB, PA ...
29.589744
51
0.47487
421144ba783bf47f99c877e56ccb3330c355e1da
4,156
py
Python
examples/simple.py
Mortafix/AutoConv-Telegram-Python
9274539f5622b416f4a5187289038f8d8649864e
[ "MIT" ]
4
2020-12-27T09:52:23.000Z
2022-01-20T13:40:06.000Z
examples/simple.py
Mortafix/AutoConv-Telegram-Python
9274539f5622b416f4a5187289038f8d8649864e
[ "MIT" ]
4
2021-03-06T18:06:03.000Z
2021-11-03T10:59:09.000Z
examples/simple.py
Mortafix/AutoConv-Telegram-Python
9274539f5622b416f4a5187289038f8d8649864e
[ "MIT" ]
2
2020-11-14T17:35:14.000Z
2021-09-21T17:37:21.000Z
import logging from datetime import datetime from autoconv.autoconv_handler import AutoConvHandler from autoconv.conversation import Conversation from autoconv.state import State from telegram.ext import (CallbackQueryHandler, CommandHandler, ConversationHandler, Filters, MessageHandler, ...
28.272109
87
0.595765
0c391acb692f08fc760f82b52fd1ab3679f55ee8
3,120
py
Python
7-assets/past-student-repos/Python-master/compression/lempel_ziv_decompress.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Python-master/compression/lempel_ziv_decompress.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Python-master/compression/lempel_ziv_decompress.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
""" One of the several implementations of Lempel-Ziv-Welch decompression algorithm https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch """ import math import sys def read_file_binary(file_path: str) -> str: """ Reads given file as bytes and returns them as a long string """ result ...
27.857143
85
0.590705
dcd959fb071ec0418e03060a7ff4244fd093e600
438
py
Python
openarticlegauge/tests/plugins/test_workflow/test_13_3/test_13_3.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
1
2016-04-07T18:29:27.000Z
2016-04-07T18:29:27.000Z
openarticlegauge/tests/plugins/test_workflow/test_13_3/test_13_3.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
11
2015-01-06T15:53:09.000Z
2022-03-01T01:46:14.000Z
openarticlegauge/tests/plugins/test_workflow/test_13_3/test_13_3.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
null
null
null
from openarticlegauge import plugin class mock_licence_plugin_error(plugin.Plugin): _short_name="mock" def capabilities(self): return { "type_detect_verify" : False, "canonicalise" : [], "detect_provider" : [], "license_detect" : True } def su...
27.375
47
0.598174
faadced976f17c690169fd01bbc46f76df168ca7
5,310
py
Python
logger/writers/udp_writer.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
logger/writers/udp_writer.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
logger/writers/udp_writer.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import json import ipaddress import logging import socket import struct import sys from os.path import dirname, realpath; sys.path.append(dirname(dirname(dirname(realpath(__file__))))) from logger.utils.formats import Text from logger.utils.das_record import DASRecord from logger.writers.netwo...
36.122449
101
0.64049
d837d94694df636dfe7b9df2a1451c965365c8bd
28,964
py
Python
saveDataWorker.py
olfa-lab/PyBpodGUI
73895e493d982fd1d3abb5c8b521de116ef87c79
[ "MIT" ]
null
null
null
saveDataWorker.py
olfa-lab/PyBpodGUI
73895e493d982fd1d3abb5c8b521de116ef87c79
[ "MIT" ]
null
null
null
saveDataWorker.py
olfa-lab/PyBpodGUI
73895e493d982fd1d3abb5c8b521de116ef87c79
[ "MIT" ]
1
2021-12-03T16:18:57.000Z
2021-12-03T16:18:57.000Z
import tables import logging import os import json import numpy as np from datetime import datetime from PyQt5.QtCore import QObject, QThread, QTimer, pyqtSignal, pyqtSlot logging.basicConfig(format="%(message)s", level=logging.INFO) ''' Example trial info dictionary created by the bpod. { 'Bpod start timestamp...
58.395161
278
0.610482
be6623a9ea9767d5eb20a9cf0c394244be98c206
7,380
py
Python
invar-example/target/generated-sources/example/python/TestXyzTestRefer.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
7
2016-08-26T05:10:20.000Z
2017-08-09T14:28:56.000Z
invar-example/target/generated-sources/example/python/TestXyzTestRefer.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
null
null
null
invar-example/target/generated-sources/example/python/TestXyzTestRefer.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ===------------------------------* Python *------------------------------=== # THIS FILE IS GENERATED BY INVAR. DO NOT EDIT !!! # ===------------------------------------------------------------------------=== from TestAbcCustom import Custom from TestAbcGen...
28.384615
95
0.499187
ca65e093659c860b114ea8a3534c62099ab8bde5
626
py
Python
pyramid_sendgrid_webhooks/parser.py
GoodRx/pyramid-sendgrid-webhooks
5746b59c7b5a90c6a87c3e0114d760011fc13436
[ "MIT" ]
5
2016-07-11T19:34:36.000Z
2021-11-06T17:00:39.000Z
pyramid_sendgrid_webhooks/parser.py
GoodRx/pyramid-sendgrid-webhooks
5746b59c7b5a90c6a87c3e0114d760011fc13436
[ "MIT" ]
1
2019-07-09T15:59:04.000Z
2019-07-09T15:59:04.000Z
pyramid_sendgrid_webhooks/parser.py
GoodRx/pyramid-sendgrid-webhooks
5746b59c7b5a90c6a87c3e0114d760011fc13436
[ "MIT" ]
4
2016-01-09T10:17:51.000Z
2021-11-06T17:00:32.000Z
# -*- coding: utf-8 -*- """ Parses webhook events from request """ from . import events from . import errors def parse_event_data(request, event_data): """ Returns a single BaseWebhookEvent instance """ event_type = event_data['event'] try: event_cls = events.event_mapping[event_type] except ...
23.185185
54
0.704473
ccda05aec1fd2aaf56d604469b2a3a545404270a
2,907
py
Python
federatedml/logistic_regression/test/logistic_regression_test.py
chenlongzhen/FATE-0.1
5a1f316676e77dca8311bb74a26a7623c4a97b86
[ "Apache-2.0" ]
1
2019-02-25T13:43:24.000Z
2019-02-25T13:43:24.000Z
federatedml/logistic_regression/test/logistic_regression_test.py
crownpku/FATE
38fe6cea0dca3841b59c3d04cb04f556803e2e29
[ "Apache-2.0" ]
null
null
null
federatedml/logistic_regression/test/logistic_regression_test.py
crownpku/FATE
38fe6cea0dca3841b59c3d04cb04f556803e2e29
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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 appli...
37.269231
91
0.689026
18d214bee86fa42e41b3e88646b1ee8bba51d43f
914
py
Python
tadpole/template/app/lib/database/custom_types/email.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
2
2017-12-02T07:02:31.000Z
2020-10-13T02:20:18.000Z
tadpole/template/app/lib/database/custom_types/email.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
null
null
null
tadpole/template/app/lib/database/custom_types/email.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
1
2018-04-23T04:59:38.000Z
2018-04-23T04:59:38.000Z
#!/usr/bin/env python # coding: utf-8 """ create at 2017/11/6 by allen """ import re import sqlalchemy as sa from sqlalchemy import types from app.lib.database.utils import CaseInsensitiveComparator class EmailType(types.TypeDecorator): impl = sa.Unicode comparator_factory = CaseInsensitiveComparator ...
25.388889
74
0.645514
8c6fd1f8fc3a608784ac80c6dd954239a00d94d4
242
py
Python
exercises/pyfiles/ex311_hypotenuse.py
TUDelft-AE-Python/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
1
2021-10-05T04:49:54.000Z
2021-10-05T04:49:54.000Z
exercises/pyfiles/ex311_hypotenuse.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
exercises/pyfiles/ex311_hypotenuse.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
from math import sqrt a = float(input("Enter the length of right side a: ")) b = float(input("Enter the length of right side b: ")) # Option 1 c = sqrt(a * a + b * b) # Option 2 c = (a**2 + b**2)**0.5 print("The length hypotenuse c is", c)
22
54
0.619835