hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
33527c48f65f7f49f8ea0ca44412cfa74c71d4d0
35,764
py
Python
pods/algorithms/differential_evoluation/_differentialevolution.py
louisXW/PODS
e73210112de950533c9e11aed3d90bbd0c83fbed
[ "MIT" ]
null
null
null
pods/algorithms/differential_evoluation/_differentialevolution.py
louisXW/PODS
e73210112de950533c9e11aed3d90bbd0c83fbed
[ "MIT" ]
1
2022-03-24T18:17:50.000Z
2022-03-24T18:17:50.000Z
build/lib/pods/algorithms/differential_evoluation/_differentialevolution.py
louisXW/PODS
e73210112de950533c9e11aed3d90bbd0c83fbed
[ "MIT" ]
1
2021-08-01T12:57:30.000Z
2021-08-01T12:57:30.000Z
""" differential_evolution: The differential evolution global optimization algorithm Added by Andrew Nelson 2014 """ from __future__ import division, print_function, absolute_import import numpy as np from scipy.optimize import OptimizeResult, minimize from scipy.optimize.optimize import _status_message import number...
41.393519
124
0.580081
3352852c7f824e78b96c0e8cacfba86524f0b002
188
py
Python
util/fn.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
util/fn.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
util/fn.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
import os def split_path(full_path): directory, base_path = os.path.split(full_path) file_name, ext = os.path.splitext(base_path) return file_name, directory, ext, base_path
23.5
51
0.739362
3352903d704eac5bd06f09946a095d3328950c35
391
py
Python
CodeChef/OCT19B/MARM.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
CodeChef/OCT19B/MARM.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
CodeChef/OCT19B/MARM.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
def modarray(A, N, K): if(K > 3 * N): if N % 2 != 0: A[N // 2] = 0 x = K % (N * 3) for i in range(x): a = i % N b = N - i % N - 1 A[a] = A[a] ^ A[b] for t in range(int(input())): N, K = map(int, input().split()) A = list(map(int, input().split())) m...
19.55
39
0.378517
335297c82e74474d471f589556bd9c75f14e7279
3,033
py
Python
Deep_Learning/DeepNeuralNetwork.py
shyamsn97/artificial-intelligence
9f15906f0b342195ba66c20bcc77d895ba64169f
[ "MIT" ]
null
null
null
Deep_Learning/DeepNeuralNetwork.py
shyamsn97/artificial-intelligence
9f15906f0b342195ba66c20bcc77d895ba64169f
[ "MIT" ]
null
null
null
Deep_Learning/DeepNeuralNetwork.py
shyamsn97/artificial-intelligence
9f15906f0b342195ba66c20bcc77d895ba64169f
[ "MIT" ]
null
null
null
import numpy as np import sys from nn_optimization_methods import SGD from layers.Dense import Dense from layers.Input import Input from layers.Softmax import Softmax class DNN(): """ Deep Neural Network Template for regression and classification tasks Parameters: output: numpy array() outputs ...
29.446602
91
0.534784
3352a6f10002586e91dd5677472fe98a10c8179d
37
py
Python
HardwareTests/AsynchronousTests/__init__.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
HardwareTests/AsynchronousTests/__init__.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
HardwareTests/AsynchronousTests/__init__.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
from ._x__asynchTests import runTests
37
37
0.891892
3352d3e123af63f8a093556cde70799416d0357e
33,136
py
Python
semesterpage/models.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
6
2017-08-12T09:55:06.000Z
2019-09-03T08:05:21.000Z
semesterpage/models.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
57
2017-08-11T23:05:07.000Z
2022-03-11T23:32:12.000Z
semesterpage/models.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
1
2017-09-27T15:31:15.000Z
2017-09-27T15:31:15.000Z
from collections import defaultdict from gettext import gettext as _ from os.path import basename from typing import Optional import os from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from djang...
32.807921
128
0.633661
33533041b431f0500b9db9a424e79eb5815d3b99
19,829
py
Python
scripts/check_frontend_test_coverage.py
sagarmittal1/oppia
d344792bb5cd89040465c39e98595d2e1efe0e98
[ "Apache-2.0" ]
null
null
null
scripts/check_frontend_test_coverage.py
sagarmittal1/oppia
d344792bb5cd89040465c39e98595d2e1efe0e98
[ "Apache-2.0" ]
null
null
null
scripts/check_frontend_test_coverage.py
sagarmittal1/oppia
d344792bb5cd89040465c39e98595d2e1efe0e98
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 required by applicable ...
39.737475
80
0.681426
3353709b30c299e69245dcf53e1fa989723825f5
6,783
py
Python
configs/detection/ava/slowfast_TranSTL_r50_8x8x1_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/detection/ava/slowfast_TranSTL_r50_8x8x1_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/detection/ava/slowfast_TranSTL_r50_8x8x1_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
model = dict( type='FastRCNN', backbone=dict( type='ResNet3dSlowFast', pretrained=None, freezed=True, resample_rate=4, speed_ratio=4, channel_ratio=8, slow_pathway=dict( type='resnet3d', depth=50, pretrained=None, ...
35.328125
280
0.616984
33539062652197b34254230f3576533de85b4a35
3,559
py
Python
sample_graph.py
fabiofenoglio/lelo-f1-python-sdk
642c7e03b2a6632b0f7aa96b2b31130781a24930
[ "MIT" ]
13
2020-04-15T16:02:53.000Z
2022-01-20T03:43:00.000Z
sample_graph.py
fabiofenoglio/lelo-f1-python-sdk
642c7e03b2a6632b0f7aa96b2b31130781a24930
[ "MIT" ]
3
2020-04-18T17:07:54.000Z
2021-09-15T14:10:25.000Z
sample_graph.py
fabiofenoglio/lelo-f1-python-sdk
642c7e03b2a6632b0f7aa96b2b31130781a24930
[ "MIT" ]
2
2021-01-19T09:00:07.000Z
2021-07-21T10:27:49.000Z
import asyncio import logging import multiprocessing from datetime import datetime from matplotlib import pyplot from matplotlib.animation import FuncAnimation import lelof1py as f1client from sample_gui import * class GraphContext: graph_x_count = 0 graph_x = [] graph_y = [] figure = None line = None anima...
25.421429
110
0.721551
33539e17492124712e4e45faf1831c29ffd12706
1,129
py
Python
flexget/plugins/filter/only_new.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/filter/only_new.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/filter/only_new.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.event import event log = logging.getLogger('only_new') class FilterOnlyNew(object): """Causes input plugins to onl...
33.205882
100
0.712135
3353bc6c0c2c9e5389055ef039882cfe14b85343
1,657
py
Python
wikis/urls/articles.py
mouradmourafiq/django-wikis
211438675b9ae63aa15c19f3d0a8c08582028557
[ "BSD-2-Clause" ]
1
2017-04-27T07:27:12.000Z
2017-04-27T07:27:12.000Z
wikis/urls/articles.py
mouradmourafiq/django-wikis
211438675b9ae63aa15c19f3d0a8c08582028557
[ "BSD-2-Clause" ]
null
null
null
wikis/urls/articles.py
mouradmourafiq/django-wikis
211438675b9ae63aa15c19f3d0a8c08582028557
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from wikis.views import articles as articles urlpatterns = patterns('', url(r'^_create/$', articles.create, {'template_name':'wikis/wiki_form.html', 'next':'article_view','action':'article_create'}, name='article_c...
46.027778
104
0.590827
3353d5cd76e05b501e6803e1d10e272b82635d61
2,438
py
Python
experiments/ashvin/icml2020/hand/pen/demo_awr_offpolicy4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/demo_awr_offpolicy4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/demo_awr_offpolicy4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict(...
27.393258
107
0.57137
3353ec4ad75f2c4c8a0e54eae37d69dd8866d0a3
1,985
py
Python
assemblyline/remote/datatypes/counters.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
39
2020-05-06T02:10:25.000Z
2022-02-22T00:33:52.000Z
assemblyline/remote/datatypes/counters.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
186
2020-04-17T10:38:47.000Z
2022-03-30T13:20:52.000Z
assemblyline/remote/datatypes/counters.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
22
2020-04-22T16:00:38.000Z
2022-02-09T03:06:55.000Z
from redis.exceptions import ConnectionError from assemblyline.remote.datatypes import get_client, retry_call, now_as_iso from assemblyline.remote.datatypes.hash import Hash class Counters(object): def __init__(self, prefix="counter", host=None, port=None, track_counters=False): self.c = get_client(host...
31.015625
89
0.601008
3353f47ba027706f5f9223f2273d9ce7f65a17fd
1,508
py
Python
app/startupscreen.py
S0AndS0/ExpenseTracker
9f024184c499c3af9421d872168447a9c9fae45b
[ "MIT" ]
null
null
null
app/startupscreen.py
S0AndS0/ExpenseTracker
9f024184c499c3af9421d872168447a9c9fae45b
[ "MIT" ]
null
null
null
app/startupscreen.py
S0AndS0/ExpenseTracker
9f024184c499c3af9421d872168447a9c9fae45b
[ "MIT" ]
null
null
null
from kivy.uix.screenmanager import Screen from kivy.properties import ObjectProperty from kivy.app import App startupscreen = ''' <StartupScreen> name: 'StartupScreen' canvas.before: Color: rgba: (0,0,0,1) Rectangle: size: self.size pos: self.pos Image ...
27.418182
74
0.627321
335407fe28da7c43a91875354098743ed442ee13
921
py
Python
source/lib/MediaReplayEnginePluginHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
source/lib/MediaReplayEnginePluginHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
source/lib/MediaReplayEnginePluginHelper/setup.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="Media Replay Engine Plugin Helper", version="1.0.0", author="Aravindharaj Rajendr...
30.7
102
0.690554
33541d0ee9f22bb1e313dba9811763acb1342a3d
1,255
py
Python
taskflow/persistence/backends/sqlalchemy/alembic/versions/14b227d79a87_add_intention_column.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
299
2015-01-11T01:36:28.000Z
2022-03-11T08:56:27.000Z
taskflow/persistence/backends/sqlalchemy/alembic/versions/14b227d79a87_add_intention_column.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
4
2015-02-06T11:12:58.000Z
2018-10-19T18:55:58.000Z
taskflow/persistence/backends/sqlalchemy/alembic/versions/14b227d79a87_add_intention_column.py
jimbobhickville/taskflow
6ea991ce94f5be46b7e4726b4c4f014e10407786
[ "Apache-2.0" ]
67
2015-01-11T14:34:24.000Z
2022-01-14T02:57:03.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012-2013 Yahoo! Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICE...
32.179487
78
0.711554
33542c9c4329345ae0d880281400a215f2e49832
747
py
Python
tests/urls.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
29
2020-03-18T19:37:18.000Z
2021-12-07T09:36:51.000Z
tests/urls.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
null
null
null
tests/urls.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
null
null
null
"""tests URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
33.954545
77
0.708166
335438769d1bf3ac6659d3bedccc789e4cbf5542
18,455
py
Python
arthritis_proj/_version.py
saldilf/arthritis_proj
e6bf0c74df5dc2e689f46c74980b7d4a350f79db
[ "MIT" ]
null
null
null
arthritis_proj/_version.py
saldilf/arthritis_proj
e6bf0c74df5dc2e689f46c74980b7d4a350f79db
[ "MIT" ]
null
null
null
arthritis_proj/_version.py
saldilf/arthritis_proj
e6bf0c74df5dc2e689f46c74980b7d4a350f79db
[ "MIT" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.422265
79
0.584665
33544dcc137aaad2265cdfd2cd8c023b2c32e7a8
4,200
py
Python
exos/20191104/prenoms_2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
7
2016-09-29T07:20:25.000Z
2021-03-15T15:00:06.000Z
exos/20191104/prenoms_2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
null
null
null
exos/20191104/prenoms_2.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
11
2017-01-12T18:50:49.000Z
2021-02-28T22:44:29.000Z
# -*- coding: utf-8 -*- """ Python M1 2019-2020. 04/11/2019 Travail sur l’export csv de Liste des prénoms 2004 à 2018 (opendata.paris.fr) Quels sont les 10 prénoms les plus courants Quels sont les 10 prénoms féminins et masculins les plus courants Indiquez le nombre de naissances par an et par sexe Qu...
37.5
159
0.663095
335489dd1cf4bd99738435c4e7afe393bb6b8f09
9,650
py
Python
tests/api/v2_1_1/test_sites.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_sites.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v2_1_1/test_sites.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI sites API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, inc...
26.222826
304
0.689637
3354936b63aba006afb89dff2b52509c1e999b9d
892
py
Python
setup.py
azhai/rdcache
8f3ca558a2a9af11321916bfe548aaeb66ef75ae
[ "MIT" ]
null
null
null
setup.py
azhai/rdcache
8f3ca558a2a9af11321916bfe548aaeb66ef75ae
[ "MIT" ]
null
null
null
setup.py
azhai/rdcache
8f3ca558a2a9af11321916bfe548aaeb66ef75ae
[ "MIT" ]
null
null
null
import sys from os.path import join, dirname from setuptools import setup, find_packages sys.path.insert(0, join(dirname(__file__), 'src')) from rdcache import __version__ sys.path.pop(0) setup( name="rdcache", version=__version__, description="caching for humans, forked from jneen/python-cache", auth...
30.758621
73
0.656951
3354a7b1f9bf86f6b612fcc5a24f02127bb536b3
36,573
py
Python
sdk/dnsresolver/azure-mgmt-dnsresolver/azure/mgmt/dnsresolver/operations/_virtual_network_links_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/dnsresolver/azure-mgmt-dnsresolver/azure/mgmt/dnsresolver/operations/_virtual_network_links_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/dnsresolver/azure-mgmt-dnsresolver/azure/mgmt/dnsresolver/operations/_virtual_network_links_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
46.119798
256
0.68731
3354acabaeaaf40b6433f222ff444823c9b693b1
16
py
Python
camera/snapshot.py
jw-pyo/coral_utils
715b38aacf9563fd45366f46f04f27658680852e
[ "MIT" ]
2
2020-01-24T16:51:40.000Z
2020-01-24T16:51:57.000Z
camera/snapshot.py
jw-pyo/coral_utils
715b38aacf9563fd45366f46f04f27658680852e
[ "MIT" ]
null
null
null
camera/snapshot.py
jw-pyo/coral_utils
715b38aacf9563fd45366f46f04f27658680852e
[ "MIT" ]
null
null
null
import snapshot
8
15
0.875
3354c3ff3d1c94dfaabd7b68fa14a93532f7f039
1,098
py
Python
setup.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
setup.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
13
2020-02-12T00:58:41.000Z
2022-03-11T23:53:16.000Z
setup.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages VERSION = 0.1 setup( name='bitrix24-bridge-oscar', version=VERSION, url='https://github.com/initflow/bitrix24-bridge-oscar', author="Aidar Rakhimov", author_email="rakhimov.aidar@initflow.com", description="Sync bridge with Bitrix24 via bitrix24-brid...
32.294118
64
0.631148
3354d2103dd860615e57fefa31adc0c91689a953
9,409
py
Python
pycosa/modeling.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
1
2022-02-10T13:50:59.000Z
2022-02-10T13:50:59.000Z
pycosa/modeling.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
5
2022-01-20T14:05:58.000Z
2022-03-29T08:49:44.000Z
pycosa/modeling.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
1
2022-02-10T20:23:01.000Z
2022-02-10T20:23:01.000Z
import itertools from typing import Sequence import networkx as nx import numpy as np import z3 from pyeda.inter import expr, expr2bdd class CNFExpression: def __init__(self): self.clauses = None self.index_map = None self.feature_map = None self.bitvec_constraints = None ...
31.363333
88
0.526517
335501d6a367f5842fa7037b57556b2503789a9e
1,887
py
Python
cride/rides/migrations/0004_rating.py
AndresCendales/cride
150c4fc5db3964cc2cd6498d605e007f10898153
[ "MIT" ]
null
null
null
cride/rides/migrations/0004_rating.py
AndresCendales/cride
150c4fc5db3964cc2cd6498d605e007f10898153
[ "MIT" ]
null
null
null
cride/rides/migrations/0004_rating.py
AndresCendales/cride
150c4fc5db3964cc2cd6498d605e007f10898153
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-11 03:12 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('circles', '0005_invitation'), migrations.swappable_dependency(settings.AUTH_USER_MO...
51
207
0.641229
33551720c95f19b79bada32e5b6fcbae0ab78eb3
8,020
py
Python
mopidy_transistor/protocol/TransistorMasterRouter.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
1
2019-08-19T11:08:05.000Z
2019-08-19T11:08:05.000Z
mopidy_transistor/protocol/TransistorMasterRouter.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
null
null
null
mopidy_transistor/protocol/TransistorMasterRouter.py
lukh/mopidy-transistor
42f7d7c5707b39b82a978404b2a09b50fe5992ae
[ "Apache-2.0" ]
null
null
null
from .TransistorMsg import TransistorMsg class TransistorMasterRouter(object): # |00 | | | | | | | ||01 | | | | | | | ||02 | | | | | | | ||03 | | | | | | | | # |07 |06 |05 |04 |03 |02 |01 |00 ||07 |06 |05 |04 |03 |02 |01 |00 ||07 |06 |05 |04 |03 |0...
41.770833
142
0.516209
3355291e808cb37090d16727122d7301f0c0772d
1,235
py
Python
difference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
difference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
difference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import nibabel as nib import tensorflow as tf np.set_printoptions(threshold=None) cbctpath = 'checkpointsce/20211130-1900/28/test/process7225/crop_resample_register_CBCT1_UID_removeback7225.nii.gz' sctpath = 'checkpointsce/20211130-1900/28/test/process7225/sct_crop_re...
37.424242
118
0.769231
33552aab7ff05a293942973b52237f6e1afb0e61
488
py
Python
episcanpy/api/pp.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
1
2021-06-18T09:12:38.000Z
2021-06-18T09:12:38.000Z
episcanpy/api/pp.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
null
null
null
episcanpy/api/pp.py
LKremer/epiScanpy
607a86a58af52fc4bf8937ddd13cee4a0b72c79f
[ "BSD-3-Clause" ]
null
null
null
#from ..preprocessing._extract import extract_CG, extract_CH from ..preprocessing._readimpute import load_met_noimput, imputation_met from ..preprocessing._readimpute import readandimputematrix from ..preprocessing._quality_control import coverage_cells, commoness_features, binarize from ..preprocessing._recipe import ...
54.222222
89
0.866803
33554b6417bdcf44849d8086550e258e1dab1c97
2,217
py
Python
.circleci/test_examples.py
cloudify-cosmo/cloudify-docker-plugin
2dc04abd92df4a5859e51cee4649a8657bb66d5f
[ "Apache-2.0" ]
13
2015-01-27T05:17:31.000Z
2021-08-11T01:43:33.000Z
.circleci/test_examples.py
cloudify-cosmo/cloudify-docker-plugin
2dc04abd92df4a5859e51cee4649a8657bb66d5f
[ "Apache-2.0" ]
7
2015-03-02T16:23:12.000Z
2016-12-12T16:50:50.000Z
.circleci/test_examples.py
cloudify-cosmo/cloudify-docker-plugin
2dc04abd92df4a5859e51cee4649a8657bb66d5f
[ "Apache-2.0" ]
22
2015-01-21T17:15:14.000Z
2020-06-22T13:17:34.000Z
######## # Copyright (c) 2014-2019 Cloudify Platform Ltd. 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 ...
31.225352
77
0.68516
3355511a66f3f8b8f027bf9eaa0ee304d9951e06
3,664
py
Python
tuf/api/serialization/json.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
null
null
null
tuf/api/serialization/json.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
28
2022-02-11T12:20:30.000Z
2022-03-31T10:32:08.000Z
tuf/api/serialization/json.py
peip-mirror/tuf
46979bb46d3054ca37fc0b9258574a126d975fcc
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """``tuf.api.serialization.json`` module provides concrete implementations to serialize and deserialize TUF role metadata to and from the JSON wireline format for transportation, and to serialize the 'signed' part of ...
34.895238
80
0.657751
335556637dcc0786ddb79b6128318372a0a83e42
987
py
Python
src/gold_rate_skill.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
9
2021-02-01T08:07:05.000Z
2021-08-25T15:22:46.000Z
src/gold_rate_skill.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
null
null
null
src/gold_rate_skill.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
9
2021-02-03T13:34:19.000Z
2021-12-27T13:28:24.000Z
#import news import feedparser import random import re from termcolor import colored import untangle import requests import xml.dom.minidom as minidom import datetime #Read config # data1='hà nội' # data2=2 def main(data1, data2): result='' url = 'https://www.sjc.com.vn/xml/tygiavang.xml' res...
32.9
172
0.651469
33556753c5c210defb968320adb3d30795fc9165
5,760
py
Python
montecarlo.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
2
2021-06-17T05:06:59.000Z
2021-06-25T06:48:36.000Z
montecarlo.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
null
null
null
montecarlo.py
SpatialUMN/Significant-DBSCAN-python
f00d1e50603e3a5475c1f128d9eadf642c9478da
[ "MIT" ]
1
2021-08-01T13:29:04.000Z
2021-08-01T13:29:04.000Z
# @Author: xie # @Date: 2021-06-16T21:32:45-04:00 # @Email: xie@umd.edu # @Last modified by: xie # @Last modified time: 2021-06-16T21:33:02-04:00 # @License: MIT License from sklearn.cluster import DBSCAN import numpy as np from numpy.linalg import norm import math from helper import * def estimate_density(X, h...
39.724138
191
0.668056
3355816b2587da335739dd70c814dedc41ad6b11
1,043
py
Python
wlanpi_commands/set_display_mode.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
1
2021-02-23T11:52:10.000Z
2021-02-23T11:52:10.000Z
wlanpi_commands/set_display_mode.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
2
2021-02-23T12:44:08.000Z
2021-02-23T19:41:32.000Z
wlanpi_commands/set_display_mode.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
3
2021-02-23T12:35:27.000Z
2021-03-02T12:01:49.000Z
from .command import Command from utils.config import Config class SetDisplayMode(Command): def __init__(self, telegram_object, conf_obj): super().__init__(telegram_object, conf_obj) self.command_name = "set_display_mode" def run(self, args_list): # check we have an arg to s...
30.676471
83
0.624161
335590d9c096d56e1ee03651384de257bfd6b60c
406
py
Python
py/2148.count-elements-with-strictly-smaller-and-greater-elements.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2148.count-elements-with-strictly-smaller-and-greater-elements.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2148.count-elements-with-strictly-smaller-and-greater-elements.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# @lc app=leetcode id=2148 lang=python3 # # [2148] Count Elements With Strictly Smaller and Greater Elements # # @lc code=start class Solution: def countElements(self, nums: List[int]) -> int: min_val = min(nums) max_val = max(nums) count = 0 for i in nums: if m...
21.368421
66
0.564039
3355b61e8e703869dc83e842b629de96f2d43410
2,425
py
Python
test/tbats/TBATSComponents_test.py
series-temporais/tbats
1f2e0b5e769250c8ec0604fd75ef08ebbe251d37
[ "MIT" ]
1
2019-07-21T15:38:12.000Z
2019-07-21T15:38:12.000Z
test/tbats/TBATSComponents_test.py
arita37/tbats
4e726919f08e39e74dd70a592b5258dfc7b25953
[ "MIT" ]
null
null
null
test/tbats/TBATSComponents_test.py
arita37/tbats
4e726919f08e39e74dd70a592b5258dfc7b25953
[ "MIT" ]
null
null
null
import pytest import numpy as np from tbats.tbats import Components class TestTBATSComponents(object): @pytest.mark.parametrize( "seasonal_periods, seasonal_harmonics, expected_harmonics", [ [ # no periods means no harmonics None, None, [], ], ...
37.890625
96
0.636289
3355cf18d790c7c3747c19abf21f6fc41a2ce3d6
2,974
py
Python
submission.py
norbertbin/subredditAnalysis
1951267f8e1cd993a9a3aa294a9b7e8caee71545
[ "MIT" ]
null
null
null
submission.py
norbertbin/subredditAnalysis
1951267f8e1cd993a9a3aa294a9b7e8caee71545
[ "MIT" ]
null
null
null
submission.py
norbertbin/subredditAnalysis
1951267f8e1cd993a9a3aa294a9b7e8caee71545
[ "MIT" ]
null
null
null
import sqlite3 as lite class Submission: """A class for scrapped reddit submissions""" def __init__(self, sub_id, title, author, created_utc, score, num_comments, text): self.sub_id = sub_id self.title = title self.author = author self.created_utc = created_utc...
34.581395
78
0.56187
3355d84864aeeb473fce8f783021efa2113cde30
5,304
py
Python
algorithm/python/dijkstra.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
algorithm/python/dijkstra.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
algorithm/python/dijkstra.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
#--------------------------------------------------------------- # Dijkstra’s shortest path algorithm #--------------------------------------------------------------- # V0 # V1 # https://www.geeksforgeeks.org/dijkstras-shortest-path-algorithm-greedy-algo-7/ # https://www.geeksforgeeks.org/python-program-for-dijkstr...
35.36
99
0.574284
33563ebe2ab2e574c348a44211de29a1d65424fc
11,699
py
Python
lib/hyper/pseudo_output_layer.py
leochangzliao/OPBM
9688e03cbf3f8efea2feb8813fa80c702b3e3ed6
[ "BSD-2-Clause" ]
null
null
null
lib/hyper/pseudo_output_layer.py
leochangzliao/OPBM
9688e03cbf3f8efea2feb8813fa80c702b3e3ed6
[ "BSD-2-Clause" ]
null
null
null
lib/hyper/pseudo_output_layer.py
leochangzliao/OPBM
9688e03cbf3f8efea2feb8813fa80c702b3e3ed6
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import caffe import numpy as np import yaml from fast_r...
49.155462
120
0.511155
33564fa52be5cfbf7faf915a2232907334b247e0
257
py
Python
src/oscar/apps/dashboard/reports/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/reports/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/reports/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class ReportsDashboardConfig(AppConfig): label = 'reports_dashboard' name = 'oscar.apps.dashboard.reports' verbose_name = _('Reports dashboard')
28.555556
56
0.750973
33565bf10e35ebce78080486946cf35358cc871d
1,844
py
Python
tests/e2e/scale/test_scale_pvc_expand.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/test_scale_pvc_expand.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/test_scale_pvc_expand.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.ocs import constants from ocs_ci.framework.testlib import ( E2ETest, scale, ignore_leftovers, skipif_ocs_version, ) from ocs_ci.ocs.scale_lib import FioPodScale from ocs_ci.utility import utils log = logging.getLogger(__name__) @pytest.fixture(scope="session")...
25.611111
86
0.655098
33566b89b737513121cb36f3bae53bf6eb57dfc5
383
py
Python
examples/numerical_bin_data.py
vstadnytskyi/anfinrud_auxiliary
bd67c9bac12e67c3b25857866ffbc1a500fc80a7
[ "BSD-3-Clause" ]
null
null
null
examples/numerical_bin_data.py
vstadnytskyi/anfinrud_auxiliary
bd67c9bac12e67c3b25857866ffbc1a500fc80a7
[ "BSD-3-Clause" ]
null
null
null
examples/numerical_bin_data.py
vstadnytskyi/anfinrud_auxiliary
bd67c9bac12e67c3b25857866ffbc1a500fc80a7
[ "BSD-3-Clause" ]
null
null
null
from anfinrud_auxiliary.numerical import bin_data from numpy import random, arange from pdb import pm data = random.rand(1000,4)+ 1 x = arange(0,data.shape[0],1) binned_data = bin_data(data = data, x = x, num_of_bins = 300, dtype = 'float') import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(binned_data...
29.461538
79
0.710183
33566c9337fcf8a7efcd03f56a98f87c154b9ab6
917
py
Python
masakari/version.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
masakari/version.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
masakari/version.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 NTT DATA # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
36.68
78
0.756816
335691e6504cd3110b07650728b0152b51742eab
463
py
Python
setup.py
HRClab/SimInterace
06dac51155f3e3d19445a558325f707e41fbfacd
[ "MIT" ]
2
2016-03-27T04:33:39.000Z
2020-02-24T01:14:43.000Z
setup.py
HRClab/SimInterace
06dac51155f3e3d19445a558325f707e41fbfacd
[ "MIT" ]
null
null
null
setup.py
HRClab/SimInterace
06dac51155f3e3d19445a558325f707e41fbfacd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup # This is a bit spurious, as it does not explicilty have a scipy dependence setup(name='SimInterface', version='0.1', description='Simulation package of optimal control problems', author=['Andy Lamperski','Bolei Di'], author_email=['alampers@um...
25.722222
75
0.643629
33569c48251f7868aa86f5a106345057877b7646
8,975
py
Python
userbot/modules/afk.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/afk.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/afk.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2020 TeamUltroid # Ported by X_ImFine # Recode by @mrismanaziz import asyncio import os from datetime import datetime from telethon import events from telethon.tl import functions, types from userbot.events import register from userbot import ( # noqa pylint: disable=unused-import isort:skip AF...
33.740602
174
0.501281
3356dad1352e5da0615785a85841533beeda8303
981
py
Python
setup.py
fernandojunior/financial-fraud-detection
e66b41765951ff466cd9dfbd519576262dc198f1
[ "MIT" ]
7
2020-02-18T12:46:57.000Z
2022-02-24T07:34:46.000Z
setup.py
fernandojunior/financial-fraud-detection
e66b41765951ff466cd9dfbd519576262dc198f1
[ "MIT" ]
null
null
null
setup.py
fernandojunior/financial-fraud-detection
e66b41765951ff466cd9dfbd519576262dc198f1
[ "MIT" ]
1
2020-08-03T11:22:52.000Z
2020-08-03T11:22:52.000Z
from setuptools import setup, find_packages import os # Model package name NAME = 'fraud_detection' # Current Version VERSION = os.environ.get('APP_VERSION', 'latest') # Dependecies for the package with open('requirements.txt') as r: DEPENDENCIES = [ dep for dep in map(str.strip, r.readlines()) if...
24.525
54
0.638124
3356e584af38b7749ca3a1174124653e094b2cfb
2,272
py
Python
frappe/core/doctype/server_script/test_server_script.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
1
2017-07-30T11:46:08.000Z
2017-07-30T11:46:08.000Z
frappe/core/doctype/server_script/test_server_script.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
null
null
null
frappe/core/doctype/server_script/test_server_script.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest import requests from frappe.utils import get_site_url scripts = [ dict( name='test_todo', script_type = 'DocType Event', doctype_event = 'Be...
25.818182
115
0.716109
33573cfe009047a059339be1221b1c04379b5a51
1,808
py
Python
cupy/binary/elementwise.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/binary/elementwise.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/binary/elementwise.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
from cupy import elementwise def _create_bit_op(name, op, no_bool, doc=''): types = [] if no_bool else ['??->?'] return elementwise.create_ufunc( 'cupy_' + name, types + ['bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l', 'LL->L', 'qq->q', 'QQ->Q'], 'out0 =...
22.320988
79
0.583518
33574eca2e3c654bdbf0d52a191b59cbe7bd65e4
2,434
py
Python
examples/app_with_checkpoint.py
KhalilBR94/PathogenicAaMutation
112988135e3ba8ba5e8112d2ef28e147ae581d77
[ "Apache-2.0" ]
12
2021-09-24T13:56:55.000Z
2022-01-26T18:49:15.000Z
examples/app_with_checkpoint.py
DeepChainBio/deepchain-apps
4590096bf7740a8cf99e5e6eef27bd69ef8b3178
[ "Apache-2.0" ]
3
2021-05-04T17:37:51.000Z
2021-05-07T13:33:21.000Z
examples/app_with_checkpoint.py
DeepChainBio/deepchain-apps
4590096bf7740a8cf99e5e6eef27bd69ef8b3178
[ "Apache-2.0" ]
2
2021-03-19T17:21:21.000Z
2021-04-14T08:57:42.000Z
"""Template file to develop personal app WARNINGS: if you run the app locally and don't have a GPU you should choose device='cpu' """ from typing import Dict, List, Optional import torch from biotransformers import BioTransformers from deepchain.components import DeepChainApp # TODO : from model import myM...
32.026316
86
0.680772
33576f4ab219ac9fcd137d80d1e794d8af2ad3e6
25
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Utils/UIDragHandler/ui_drag_handler.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Utils/UIDragHandler/ui_drag_handler.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Utils/UIDragHandler/ui_drag_handler.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class UIDragHandler: pass
25
25
0.88
335794d190c79a565aef22ed1e56cb6e69a8c9c8
5,954
py
Python
ramCOH/raman/water.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
2
2022-03-08T12:30:55.000Z
2022-03-29T19:46:59.000Z
ramCOH/raman/water.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
null
null
null
ramCOH/raman/water.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
null
null
null
import numpy as np import csaps as cs import scipy.optimize as opt from warnings import warn from ..signal_processing import functions as f from ..signal_processing import curve_fitting as cf from ..signal_processing import curves as c from ..signal_processing import deconvolution as d from .. import raman as ram cla...
36.753086
100
0.621095
33579981559c3ad3a400dada63823f63dec60bcd
2,509
py
Python
applications/tenant/decorators.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/tenant/decorators.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/tenant/decorators.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.db import models from django.core.exceptions import ValidationError from mighty.applications.tenant.apps import TenantConfig as conf def TenantAssociation(**kwargs): def decorator(obj): class TAModel(obj): group_relations = kwargs.get('group_relations', []) group = mode...
35.842857
114
0.518533
3357b5740db5a019fe3a4aa4da032a620d8f21c1
43,841
py
Python
oscar/lib/python2.7/site-packages/treebeard/mp_tree.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/treebeard/mp_tree.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/treebeard/mp_tree.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Materialized Path Trees""" import sys import operator if sys.version_info >= (3, 0): from functools import reduce from django.core import serializers from django.db import models, transaction, connection from django.db.models import F, Q from django.utils.translation import ugettext_noop as _ fr...
38.423313
108
0.548733
3357ba5c0881d258c5d8093addf7b789a9328cdb
14,880
py
Python
src/View/GameBoardView.py
VinceBro/TeamNumberOne
12fc33ffa788ccbc9f6b0f8cccd4d8f878e5f376
[ "MIT" ]
1
2020-03-03T14:36:06.000Z
2020-03-03T14:36:06.000Z
src/View/GameBoardView.py
VinceBro/TeamNumberOne
12fc33ffa788ccbc9f6b0f8cccd4d8f878e5f376
[ "MIT" ]
null
null
null
src/View/GameBoardView.py
VinceBro/TeamNumberOne
12fc33ffa788ccbc9f6b0f8cccd4d8f878e5f376
[ "MIT" ]
null
null
null
import time import numpy as np import sys from PySide2.QtCore import QTimer, QPoint, QSize, QRect from PySide2.QtGui import QPaintEvent, QPainter, QPen, QBrush, QColor, Qt, QMouseEvent, \ QCursor, QPixmap, QPainterPath, QFont, QKeyEvent, QTransform from PySide2.QtWidgets import QWidget, QApplication, QSizePolicy ...
45.644172
153
0.601478
3357beda6158309cbd023d00dd224392d0a8db6c
46,894
py
Python
custom_components/mail_and_packages/helpers.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/mail_and_packages/helpers.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/mail_and_packages/helpers.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
"""Helper functions for Mail and Packages.""" import datetime import email import hashlib import imaplib import locale import logging import os import quopri import re import subprocess # nosec import uuid from datetime import timezone from email.header import decode_header from shutil import copyfile, copytree, whic...
33.809661
99
0.560114
3357e8ebc752f30c1d5b1604fb31f3bb278ec523
41,152
py
Python
mesonbuild/dependencies/base.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/base.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/base.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2017 The Meson development 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 agree...
41.694022
123
0.585488
33580c550f3b3b467e54b29463c8d8f59f2d07a5
416
py
Python
swcms_social/faq/serializers.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
swcms_social/faq/serializers.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
1
2019-06-25T11:17:35.000Z
2019-06-25T11:17:54.000Z
swcms_social/faq/serializers.py
ivanff/swcms-social
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Faq class FaqSerList(serializers.ModelSerializer): subject = serializers.ReadOnlyField(source='subject.h1') class Meta: model = Faq exclude = ('text',) class FaqSerRetrieve(serializers.ModelSerializer): subject = serializers.Rea...
21.894737
60
0.697115
335816ab6005f1c3e24b9ff7878613fee3d83422
1,514
py
Python
tests/auto_test.py
tubleronchik/sensors-connectivity
620be522dd873e21db8a1f29677a514886545835
[ "BSD-3-Clause" ]
5
2020-06-24T09:10:05.000Z
2021-02-10T16:45:27.000Z
tests/auto_test.py
tubleronchik/sensors-connectivity
620be522dd873e21db8a1f29677a514886545835
[ "BSD-3-Clause" ]
13
2020-05-01T15:30:13.000Z
2022-03-16T15:38:18.000Z
tests/auto_test.py
airalab/sensors-connectivity
a7eddb3cd0fa2714ff3b96487ad359fe381881ea
[ "BSD-3-Clause" ]
7
2020-05-26T12:34:57.000Z
2021-12-29T10:36:38.000Z
import random import requests, json import time id = 1 header = {"Content-type": "application/json"} while id < 102000: #id_b = f'{id + 1}' pm10 = round(random.uniform(0.1, 100.99), 3) pm25 = round(random.uniform(0.1, 100.99), 3) lat = round(random.uniform(0.000000, 60.000000), 6) lon = round(...
21.027778
116
0.462351
33584bb1103f145e16c657ddf18ee044d3b0d414
21,223
py
Python
mutagen/apev2.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
mutagen/apev2.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
mutagen/apev2.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2005 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. """APEv2 reading and writing. The APEv2 format is most commonly used wi...
29.599721
79
0.565189
33584bf28f6005d82e0fa72d35aec87a9782d1e5
1,370
py
Python
master/nameko-master/nameko-master/test/amqp/test_utils.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/nameko-master/nameko-master/test/amqp/test_utils.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/nameko-master/nameko-master/test/amqp/test_utils.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import socket import pytest from urllib3.util import Url, parse_url from nameko.amqp import verify_amqp_uri @pytest.fixture def uris(rabbit_config): amqp_uri = rabbit_config['AMQP_URI'] scheme, auth, host, port, path, _, _ = parse_url(amqp_uri) bad_port = Url(scheme, auth, host, port + 1, path).url ...
26.346154
67
0.686861
33587137761ff6297299303566c11fcb9ccf9965
5,766
py
Python
tests/core/contracts/test_contract_estimateGas.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/contracts/test_contract_estimateGas.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/contracts/test_contract_estimateGas.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest from platon.exceptions import ( ValidationError, ) @pytest.fixture(autouse=True) def wait_for_first_block(web3, wait_for_block): wait_for_block(web3) @pytest.fixture() def math_contract(web3, MATH_ABI, MATH_CODE, MATH_RUNTIME, ...
34.526946
93
0.720257
335897fba4f1b06dd2e68133d56c4bf53c0dde55
3,481
py
Python
account/models.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
account/models.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
account/models.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import (AbstractUser) from django.urls import reverse_lazy from account import managers from config.validators import phone_regex, validate_file_size from ckeditor_uploader.fields import RichTextUploadingField from translated_fields import TranslatedField fro...
27.195313
117
0.623384
3358a7c469b9a5a28d5deb739da172ca147158a0
570
py
Python
src/api/endpoints/roles/marshmallow_schemas.py
andela/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
1
2018-09-13T16:33:20.000Z
2018-09-13T16:33:20.000Z
src/api/endpoints/roles/marshmallow_schemas.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
6
2019-03-11T17:50:27.000Z
2019-08-26T11:00:40.000Z
src/api/endpoints/roles/marshmallow_schemas.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
9
2019-01-09T12:23:12.000Z
2021-05-28T04:58:31.000Z
from marshmallow import ValidationError, post_load from api.utils.marshmallow_schemas import BaseSchema from .models import Role class RoleSchema(BaseSchema): """Create a validation schema for Roles.""" @post_load def verify_role(self, data): """Extra validation of roles.""" existing_ro...
24.782609
70
0.666667
3358c33e6d65131ddf132311d771def828e1d5f2
10,135
py
Python
census/topics.py
anoited007/country-dashboard
577bbcc4992e24c484650895fabbcdf4343e1bdb
[ "MIT" ]
16
2017-10-19T03:36:41.000Z
2022-03-03T11:46:20.000Z
census/topics.py
Bhanditz/censusreporter
8931e5b8f036ab2ebcfb414e960d9813bc62691f
[ "MIT" ]
66
2016-02-15T08:59:29.000Z
2017-09-21T14:00:43.000Z
census/topics.py
Bhanditz/censusreporter
8931e5b8f036ab2ebcfb414e960d9813bc62691f
[ "MIT" ]
18
2017-10-06T12:26:37.000Z
2021-08-30T01:38:37.000Z
## TOPICS ## ''' Hey, it's a CMS! Title/slug/description will be used to create the list page at /topics/ Title/description will also be used to create the header on the detail page at /topics/{{ slug }}/. The contents of an individual page should go inside {{ template_name }}, which belongs in /templates/topics. S...
44.257642
466
0.616478
3358d707ad6745b2a83e6fd5fb13c921a39510f6
7,411
py
Python
KRR/KRR_script_2.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
KRR/KRR_script_2.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
KRR/KRR_script_2.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 29 14:40:54 2018 @author: Simon """ def frange(x, y, jump): while x < y: yield x x += jump import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from createLargerFeatureMatrix import simpleLargeMatri...
31.53617
141
0.603023
3358de6912fa9c8c412df1bd0f35417c012c02ee
2,948
py
Python
iiif_collection_server/manifest_processor.py
digirati-co-uk/iiif-collection-server
8376b89c3bd2a9493e0531c38e0e05a1a939c249
[ "MIT" ]
1
2020-06-20T22:03:05.000Z
2020-06-20T22:03:05.000Z
iiif_collection_server/manifest_processor.py
vanda/iiif-collection-server
8376b89c3bd2a9493e0531c38e0e05a1a939c249
[ "MIT" ]
1
2019-03-07T13:56:14.000Z
2019-03-07T13:56:14.000Z
iiif_collection_server/manifest_processor.py
vanda/iiif-collection-server
8376b89c3bd2a9493e0531c38e0e05a1a939c249
[ "MIT" ]
1
2019-07-12T15:26:25.000Z
2019-07-12T15:26:25.000Z
import json from iiif_collection_server.constants import JSON_FILE def check_extension_is_valid(path): """ The uploaded files can only have certain extensions in order to keep compatibility with most of the readers. :param: path - the location where the file will be accessable after upload :raise: Va...
38.285714
112
0.702849
3358fc6476865d9064f6d5126e524a0f0ad2b3ff
77,879
py
Python
cinder/tests/unit/test_image_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_image_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_image_utils.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 eNovance , Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
45.83814
79
0.640609
335917c8f08770afb44f36e4e7fba87413f22ade
3,939
py
Python
components/collector/tests/source_collectors/jmeter_csv/test_slow_transactions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/tests/source_collectors/jmeter_csv/test_slow_transactions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/tests/source_collectors/jmeter_csv/test_slow_transactions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Unit tests for the JMeter CSV slow transactions collector.""" from .base import JMeterCSVTestCase class JMeterCSVSlowTransactionsTest(JMeterCSVTestCase): """Unit tests for the JMeter CSV slow transactions collector.""" METRIC_TYPE = "slow_transactions" def setUp(self): """Extend to set the e...
48.036585
110
0.66819
335920ddc9baf17773e2ceddb961ffe5611091c9
631
py
Python
pyclopedia/p03_stdlib/_datapersistance/sqlite3/dtype_date.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_datapersistance/sqlite3/dtype_date.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_datapersistance/sqlite3/dtype_date.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python 提供为datetime.date对象提供了一个默认的adaptor。但是要启用这个adaptor需要 在创建connect的时候声明关键字 ``detect_types=sqlite3.PARSE_DECLTYPES``。 """ import sqlite3 from datetime import date # Create Connection connect = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) cursor ...
23.37037
75
0.729002
335921e5d30d4d22efe6342d7f9f9ca8928e0c1b
337
py
Python
Amplo/GridSearch/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-01-07T13:34:37.000Z
2022-03-17T06:40:28.000Z
Amplo/GridSearch/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-03-22T13:42:22.000Z
2022-03-31T16:20:44.000Z
Amplo/GridSearch/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
1
2021-12-17T22:41:11.000Z
2021-12-17T22:41:11.000Z
from typing import TypeVar from Amplo.GridSearch.BaseGridSearch import BaseGridSearch from Amplo.GridSearch.HalvingGridSearch import HalvingGridSearch from Amplo.GridSearch.OptunaGridSearch import OptunaGridSearch GridSearchType = TypeVar('GridSearchType', BaseGridSearch, HalvingGridSearch, O...
37.444444
77
0.813056
335932eb65bc144f65659c216c325793fc25b76b
2,892
py
Python
build_tools/doc_py/python_docstring_substitution.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
build_tools/doc_py/python_docstring_substitution.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
build_tools/doc_py/python_docstring_substitution.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import re def mkdir_rec(path): try: os.makedirs(path) except OSError as e: pass def find_file(relative_path, base_dir): relative_dir = os.path.dirname(relative_path) filename = os.path.basename(relative_path) for root, dirs, files in os.w...
39.616438
127
0.591632
335956f071ddcf325af7ee4113920ad78aefa799
17,779
py
Python
python/tvm/autotvm/tuner/xgboost_cost_model.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/autotvm/tuner/xgboost_cost_model.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
python/tvm/autotvm/tuner/xgboost_cost_model.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
# pylint: disable=invalid-name """XGBoost as cost model""" import multiprocessing import logging import time import numpy as np try: import xgboost as xgb except ImportError: xgb = None from .. import feature from ..util import get_rank from .metric import max_curve, recall_curve, cover_curve from .model_bas...
35.275794
90
0.570392
33596ef2f1d1f32491b473170774035e2e183af3
1,978
py
Python
src/popoto/fields/auto_field_mixin.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
5
2021-11-21T01:36:02.000Z
2022-01-28T23:16:51.000Z
src/popoto/fields/auto_field_mixin.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
1
2021-12-29T13:20:17.000Z
2021-12-29T13:20:17.000Z
src/popoto/fields/auto_field_mixin.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
null
null
null
import logging import uuid import redis logger = logging.getLogger('POPOTO.field') class AutoFieldMixin: """ AutoKeyField() is equivalent to KeyField(unique-True, auto=True) The AutoKeyField is an auto-generated, universally unique key It will be automatically added to models with no specified KeyFie...
36.62963
126
0.677958
3359cbe362800edea21a7152ff2c65535a541e84
2,120
py
Python
dyck/grammars/mcfg3.py
omelkonian/dyck
175d0027bdccdfc91be88b991535d05a244fdbb3
[ "MIT" ]
2
2019-03-07T06:09:41.000Z
2020-12-10T14:10:38.000Z
dyck/grammars/mcfg3.py
omelkonian/dyck
175d0027bdccdfc91be88b991535d05a244fdbb3
[ "MIT" ]
10
2018-01-22T10:17:49.000Z
2018-06-01T20:49:27.000Z
dyck/grammars/mcfg3.py
omelkonian/dyck
175d0027bdccdfc91be88b991535d05a244fdbb3
[ "MIT" ]
null
null
null
from ..dyck import Grammar from ..grammar_utils import * ################################################################################ ########################### TOO POWERFULL TO HANDLE ########################### # mcfg3 = Grammar([ # r('S <- W', {(x, y, z)}), # O('W <- W, W', {(x, y, z), (l, m, n)}, x=l...
26.835443
80
0.463679
3359d8258414e7c9ba6832b566de415d962ee1cc
4,121
py
Python
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
34.341667
86
0.694734
3359de05c37c1f6880b6086ddbdc6cffaf1203e9
24,437
py
Python
nanotune/tuningstages/base_tasks.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
5
2021-02-24T14:32:37.000Z
2022-01-05T16:37:26.000Z
nanotune/tuningstages/base_tasks.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
149
2021-03-23T14:44:39.000Z
2022-03-31T06:09:07.000Z
nanotune/tuningstages/base_tasks.py
LaudateCorpus1/nanotune
0ada354597b16f6dbb17ca7be01ab7668b6d5049
[ "MIT" ]
10
2021-03-29T13:36:38.000Z
2022-02-16T23:06:35.000Z
# Copyright (c) 2021 Jana Darulova # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import copy from dataclasses import asdict import datetime import json import logging import time from contextlib import contextmanager from sqlite3 import OperationalError from string import Te...
32.153947
88
0.672832
3359f3c9f3e942fe4771eb5aa8d42712b6a616f4
960
py
Python
docs/conf.py
ruoyangW-dev/magql
a7b6a217495a785afcac12c350cb234ff60f265e
[ "BSD-3-Clause" ]
25
2020-02-13T21:25:08.000Z
2021-11-29T07:19:16.000Z
docs/conf.py
ruoyangW-dev/magql
a7b6a217495a785afcac12c350cb234ff60f265e
[ "BSD-3-Clause" ]
40
2020-02-14T00:54:06.000Z
2021-07-28T18:45:32.000Z
docs/conf.py
ruoyangW-dev/magql
a7b6a217495a785afcac12c350cb234ff60f265e
[ "BSD-3-Clause" ]
2
2021-06-07T21:50:46.000Z
2021-12-21T14:47:31.000Z
from pallets_sphinx_themes import get_version # Project -------------------------------------------------------------- project = "magql" copyright = "2019 Moebius Solutions" release, version = get_version("magql") # General -------------------------------------------------------------- master_doc = "index" extensio...
27.428571
72
0.560417
335a25506746dce24e63c6e8111711036722841d
3,224
py
Python
Vegas Application Extensions/VEGASPython_PN/Audit_Event_Levels.py
haroldlinke/VEGASPython
5845ae1def0355bc02223cf75925a7794964c7a8
[ "BSD-3-Clause" ]
7
2019-07-21T15:30:40.000Z
2021-12-11T13:24:17.000Z
Audit_Event_Levels.py
haroldlinke/VEGASPython_Scripts
024b26898af5190a502144d59876192ff6033cf1
[ "BSD-3-Clause" ]
2
2020-03-13T10:40:46.000Z
2020-09-03T16:09:46.000Z
Audit_Event_Levels.py
haroldlinke/VEGASPython_Scripts
024b26898af5190a502144d59876192ff6033cf1
[ "BSD-3-Clause" ]
1
2020-07-20T12:38:15.000Z
2020-07-20T12:38:15.000Z
# * Find all events where opacity or audio level are sligthly changed #* # * This script finds all events where the opacity level has been # * set to a level only slightly less than 100%, or the audio level # * set to slightly less than 0dB. This usually is not intentional # * and results from accidentally moving...
38.380952
194
0.58902
335a31557108c2f35bda39c71210a03ce0213eb2
34,146
py
Python
run_sentqa_att_sparse_hier.py
mingzhu0527/MASHQA
b7d1e775e9fd96d78fb512ab02357aa2f8177d9b
[ "Apache-2.0" ]
12
2020-11-27T02:20:23.000Z
2022-01-18T07:04:21.000Z
run_sentqa_att_sparse_hier.py
mingzhu0527/MASHQA
b7d1e775e9fd96d78fb512ab02357aa2f8177d9b
[ "Apache-2.0" ]
7
2021-03-07T07:36:04.000Z
2022-01-22T16:27:26.000Z
run_sentqa_att_sparse_hier.py
mingzhu0527/MASHQA
b7d1e775e9fd96d78fb512ab02357aa2f8177d9b
[ "Apache-2.0" ]
3
2021-06-28T14:26:59.000Z
2022-01-17T18:38:45.000Z
from run_sentqa_f1_65 import * from tensorflow.keras.layers import Dense from os.path import join from tensorflow.keras.layers import Dense import tensorflow.keras.backend as K flags.DEFINE_bool("do_eval", default=False, help="whether to do eval") flags.DEFINE_bool("eval_all_ckpt", default=False, help="Eval all ...
40.171765
164
0.596263
335a37c0451d8b6ef6c58cc2ad2b0b085cf405af
25,422
py
Python
tests/test_oauth.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
tests/test_oauth.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
tests/test_oauth.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import httplib as http import logging import json import time import urlparse import httpretty from nose.tools import * # noqa import pytz from oauthlib.oauth2 import OAuth2Error from framework.auth import authenticate from framework.exceptions import PermissionsError, HTTPError from fr...
33.941255
139
0.609039
335a42c4f49814738ec6b7df58391ce949267b5f
127
py
Python
category_python_certification/using-modules/extras.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
2
2020-07-23T19:32:58.000Z
2020-10-24T20:54:09.000Z
category_python_certification/using-modules/extras.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
null
null
null
category_python_certification/using-modules/extras.py
Anshul-GH/upwork_projects
600c2ccf79e5ed5cf962f1ae05c59f18ad411f63
[ "MIT" ]
1
2021-07-11T14:41:04.000Z
2021-07-11T14:41:04.000Z
# print("Importing 'helper' from 'extras'.") import helper # print(f"__name__ in extras.py: {__name__}") name = 'Anshul Jain'
21.166667
45
0.692913
335a78c5bc907a0780fa4b0d10bd8f6c23009984
5,135
py
Python
zerver/views/integrations.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/integrations.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/integrations.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from typing import Optional, Any, Dict from collections import OrderedDict from django.views.generic import TemplateView from django.conf import settings from django.http import HttpRequest, HttpResponse, HttpResponseNotFound import os import ujson from zerver.lib import bugdown...
38.901515
120
0.630964
335a836963ed92df5ad9375d1831df92dc7afa0a
5,326
py
Python
oscar/lib/python2.7/site-packages/pip/operations/freeze.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/operations/freeze.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/operations/freeze.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import logging import re import pip from pip.req import InstallRequirement from pip.req.req_file import COMMENT_RE from pip.utils import get_installed_distributions from pip._vendor import pkg_resources from pip._vendor.packaging.utils import canonicalize_name from pi...
40.045113
80
0.463575
335ab0ccb070411bddace1c212b40153e14265b7
40,966
py
Python
lib/rucio/client/uploadclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
187
2017-11-07T10:19:34.000Z
2022-03-13T11:59:40.000Z
lib/rucio/client/uploadclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
2,592
2017-10-25T06:57:46.000Z
2022-03-31T22:53:51.000Z
lib/rucio/client/uploadclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
322
2017-10-10T06:36:36.000Z
2022-03-31T17:13:23.000Z
# -*- coding: utf-8 -*- # Copyright 2012-2021 CERN # # 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 a...
51.464824
193
0.596714
335ac23bd63e6fecc44a50602b68f8c3d4e4fd6b
1,371
py
Python
yaksh/migrations/0006_release_0_6_0.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
1
2022-03-21T11:14:17.000Z
2022-03-21T11:14:17.000Z
yaksh/migrations/0006_release_0_6_0.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/migrations/0006_release_0_6_0.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
1
2015-04-05T09:51:54.000Z
2015-04-05T09:51:54.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-05-11 09:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('yaksh', '0005_auto_20170410_1024'), ] operations = [ migrations.AddField( ...
29.804348
120
0.571116
335ac78fadd0ebe7945505fba20ad2e4092f5538
1,653
py
Python
examples/pole_balancing/single_pole/ctrnn_test.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
2
2018-03-03T16:30:09.000Z
2022-01-02T17:02:22.000Z
examples/pole_balancing/single_pole/ctrnn_test.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
null
null
null
examples/pole_balancing/single_pole/ctrnn_test.py
machinebrains/neat-society
395c092083aa62ac8ad2a93a9afde659ecbd85fd
[ "BSD-3-Clause" ]
null
null
null
# Test the performance of the best genome produced by ctrnn_evolve.py. from __future__ import print_function import pickle from cart_pole import CartPole, discrete_actuator_force from movie import make_movie from neatsociety import ctrnn # load the winner with open('ctrnn_winner_genome', 'rb') as f: c = pickle....
28.5
86
0.6951
335ac881634193a451e5f6941040a083c59107ba
2,531
py
Python
experiments/ashvin/icml2020/hand/pen/offpolicy/awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/offpolicy/awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/offpolicy/awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict(...
27.51087
74
0.565389
335ad527a9bf1abc8238d67ec59c8b63a0ab2673
1,515
py
Python
examples/structural/bar.py
leal26/pyXFOIL
88ff224be25cdb51eb821315f6e094f68fb13247
[ "MIT" ]
50
2016-03-15T17:24:55.000Z
2021-12-28T07:32:45.000Z
examples/structural/bar.py
carsecond/AeroPy
81685f364abd9536fc62dce114f14bef191dab8c
[ "MIT" ]
22
2017-04-20T11:27:28.000Z
2022-02-09T05:57:06.000Z
examples/structural/bar.py
carsecond/AeroPy
81685f364abd9536fc62dce114f14bef191dab8c
[ "MIT" ]
34
2016-03-04T15:57:37.000Z
2022-02-15T20:06:54.000Z
from aeropy.geometry.parametric import poly from aeropy.structural.stable_solution import (structure, mesh_1D, properties, boundary_conditions) import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np coefficients = np.array([0, 0, 0, 0]) beam_proper...
33.666667
78
0.705611
335ae0f8d39a7eb2965f4968d4017420df0d68de
8,241
py
Python
ac2020/days/Day10.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
ac2020/days/Day10.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
ac2020/days/Day10.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from ac2020.days import AbstractDay from ac2020.io import InputReader def plug_all(adapters: list) -> list: """ Plugs all given adapters into each other by the rules (maximum joltage difference is 3 between two adapters), and collects the joltage difference for each ada...
38.152778
114
0.633054
335ae138438f4ec1d05175615d74ba38c7a2c91e
3,569
py
Python
docs/gafferpm_ext.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
docs/gafferpm_ext.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
docs/gafferpm_ext.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
import os from gaffer.pm.commands import get_commands _HEADER = """\ .. _gaffer: Gaffer ====== The **gaffer** command line tool is an interface to the :doc:`gaffer HTTP api <http>` and include support for loading/unloading Procfile applications, scaling them up and down, ... . It can also be used as a manager for P...
27.666667
80
0.594284
335b25c21156606adf5929e886c6273e80ff1906
1,134
py
Python
GPErks/gp/data/scaled_data.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
null
null
null
GPErks/gp/data/scaled_data.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
6
2021-12-10T14:16:51.000Z
2022-03-25T16:26:50.000Z
GPErks/gp/data/scaled_data.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
1
2022-01-28T11:12:33.000Z
2022-01-28T11:12:33.000Z
from torch import Tensor from GPErks.gp.data.dataset import Dataset from GPErks.utils.array import tensorize class ScaledData: def __init__( self, dataset: Dataset, X_scaler, y_scaler, ): # TODO: automatic reshape when X_train has size 1 (one point) self.scx = ...
31.5
77
0.619048
335b292f9f19d410ebbe8d832f7120a1d364a3c9
4,351
py
Python
test/test_violations.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
test/test_violations.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
test/test_violations.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
import pandas as pd from carla.data.catalog import DataCatalog from carla.evaluation import constraint_violation from carla.models.catalog import MLModelCatalog from carla.models.pipelining import encode, scale def test_constraint_violations(): # Build data and mlmodel data_name = "adult" data = DataCata...
20.143519
78
0.347966
335b2a381a93bcbae337b96905c9315643cb5f84
4,891
py
Python
run_second.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
32
2021-10-30T00:52:24.000Z
2022-03-21T00:10:46.000Z
run_second.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
7
2021-11-05T11:12:46.000Z
2022-02-07T15:21:42.000Z
run_second.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
6
2021-11-02T07:21:10.000Z
2022-03-17T11:07:53.000Z
from pytorch_lightning import Trainer from pytorch_lightning.callbacks import ModelCheckpoint from pretrain.trainer import SecondPassEmoClassifier import argparse parser = argparse.ArgumentParser() parser.add_argument('--saving_path', type=str, default='pretrain/checkpoints_second') parser.add_argument('--lr', type=fl...
53.163043
100
0.570844
335b2fcfd0562429b65b515b5ebd79f9f48e6545
4,695
py
Python
apps/deals/tests/test_forms.py
ilyukevich/tasks
ba0c8202cfe61d26975c35f388155d36e1c2b856
[ "MIT" ]
null
null
null
apps/deals/tests/test_forms.py
ilyukevich/tasks
ba0c8202cfe61d26975c35f388155d36e1c2b856
[ "MIT" ]
null
null
null
apps/deals/tests/test_forms.py
ilyukevich/tasks
ba0c8202cfe61d26975c35f388155d36e1c2b856
[ "MIT" ]
null
null
null
import shutil import tempfile from deals.forms import TaskCreateForm from deals.models import Task from django.conf import settings from django.core.files.uploadedfile import SimpleUploadedFile from django.test import Client, TestCase, override_settings from django.urls import reverse # Создаем временную па...
38.170732
81
0.619595
335b3658d07c8b55bf7c6db278ec95ea3dc2e322
3,539
py
Python
projects/dtree/test_dtree.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
1
2020-11-04T18:25:37.000Z
2020-11-04T18:25:37.000Z
projects/dtree/test_dtree.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
null
null
null
projects/dtree/test_dtree.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
null
null
null
import numpy as np from sklearn.datasets import \ load_boston, load_iris, load_diabetes, load_wine, \ load_breast_cancer, fetch_california_housing from sklearn.tree import DecisionTreeRegressor, DecisionTreeClassifier from sklearn.model_selection import train_test_split from dtree import ClassifierTree621, Reg...
36.864583
121
0.674767
335b57eb825edb32640db1d663bdfbdfd42b45a2
10,527
py
Python
drizzlepac/hlautils/analyze.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/hlautils/analyze.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/hlautils/analyze.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
""" Utility to analyze an input dataset and determine whether the dataset can be aligned The function analyze_data opens an input list containing FLT and/or FLC FITS filenames in order to access the primary header data. Based upon the values of specific FITS keywords, the function determines whether or not each file ...
38.28
106
0.626389
335b5d8f2448e36024a46ddbb4ddcf1b4f18e038
5,930
py
Python
hivwholeseq/sequencing/print_consensi.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/print_consensi.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/print_consensi.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
# vim: fdm=marker ''' author: Fabio Zanini date: 30/06/14 content: Print a table of all consensi with some summary description. ''' # Modules import os import numpy as np import pandas as pd import argparse from Bio import SeqIO from hivwholeseq.sequencing.samples import SampleSeq from hivwholeseq.patient...
35.508982
102
0.611467
335b725bed5558bc0fdfc220cea84b7c1280805f
18,361
py
Python
iscc_schema/generator.py
iscc/iscc-api
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
3
2022-01-04T09:37:10.000Z
2022-03-25T21:29:23.000Z
iscc_schema/generator.py
iscc/iscc-api
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
27
2022-01-04T20:16:34.000Z
2022-03-11T11:10:26.000Z
iscc_schema/generator.py
iscc/iscc-schema
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
null
null
null
# generated by datamodel-codegen: # filename: iscc-generator.yaml from __future__ import annotations from datetime import datetime from enum import Enum from typing import Any, Dict, List, Optional from pydantic import Field from iscc_schema.fields import AnyUrl from iscc_schema.base import BaseModel class Medi...
32.612789
100
0.621371
335b8fd1dfa852052e93ba4a7ab65e74b5142c01
10,919
py
Python
refactored_modular/delegation/spike_rate_conversion.py
sontheimer/EBRAINS_InterscaleHUB
2ee323960fb9b0d0c8920fcaee996b56f8a23b56
[ "BSD-3-Clause" ]
null
null
null
refactored_modular/delegation/spike_rate_conversion.py
sontheimer/EBRAINS_InterscaleHUB
2ee323960fb9b0d0c8920fcaee996b56f8a23b56
[ "BSD-3-Clause" ]
null
null
null
refactored_modular/delegation/spike_rate_conversion.py
sontheimer/EBRAINS_InterscaleHUB
2ee323960fb9b0d0c8920fcaee996b56f8a23b56
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2020 Forschungszentrum Jülich GmbH and Aix-Marseille Université # "Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements; and to You under the Apache License, # Version 2.0. " # # ...
43.158103
131
0.582654
335be2717bd902233761b6707267d1490c17a238
247
py
Python
bingmaps/__pkg__.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
13
2016-03-09T05:50:53.000Z
2022-01-01T09:20:45.000Z
bingmaps/__pkg__.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
8
2016-03-24T21:56:58.000Z
2016-03-25T05:28:43.000Z
bingmaps/__pkg__.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
9
2016-10-11T03:56:53.000Z
2020-05-13T03:05:13.000Z
__package_name__ = "bingmaps" __description__ = "bingmaps" __version__ = "0.3.7" __url__ = "https://github.com/bharadwajyarlagadda/bingmaps.git" __author__ = "Bharadwaj Yarlagadda" __email__ = "yarlagaddabharadwaj@gmail.com" __license__ = "MIT"
24.7
63
0.773279