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
705fc5faf5b63443aa1c22a09ab52fb617d85d14
1,911
py
Python
tools/mo/openvino/tools/mo/ops/TFFFT.py
si-eun-kim/openvino
1db4446e2a6ead55d066e0b4e718fa37f509353a
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/ops/TFFFT.py
si-eun-kim/openvino
1db4446e2a6ead55d066e0b4e718fa37f509353a
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/ops/TFFFT.py
tuxedcat/openvino
5939cb1b363ebb56b73c2ad95d8899961a084677
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.graph.graph import Graph from openvino.tools.mo.ops.op import Op class TFFFT(Op): """ This operation is intended to read TF operations FFT, FFT2D, FFT3D, IFFT, IFFT2D, IFFT3D, RFFT, RFFT2D, RFFT3D, IR...
47.775
116
0.695447
45d0f133e36e984c4521fcaf6e31398cfb7a6315
1,620
py
Python
python/lgbserver/lgbserver/test_model.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
6
2022-02-15T21:54:19.000Z
2022-02-16T21:18:54.000Z
python/lgbserver/lgbserver/test_model.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
7
2021-08-31T23:55:06.000Z
2022-03-02T11:34:58.000Z
python/lgbserver/lgbserver/test_model.py
titoeb/kfserving
b072a76842b57e904dbdf46a136474a22051500d
[ "Apache-2.0" ]
2
2021-12-16T10:32:07.000Z
2022-02-28T17:08:52.000Z
# Copyright 2019 kubeflow.org. # # 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,...
33.061224
90
0.685802
f0a8edc242f064cd7b0300568153deb1f0b6c858
25
py
Python
test/tests/39.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/39.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/39.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# should_error int.a = 1
8.333333
14
0.68
32d97faca52be7e65f444621a1dfd80d90be601e
2,604
py
Python
tensorflow_datasets/translate/wmt14.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/translate/wmt14.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/translate/wmt14.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
36.676056
293
0.665131
a1bdd6b642a5f5ea5701af05f1fc9c7c86d40d72
1,751
py
Python
code/dictation.py
nkgfry/knausj_talon
a2327dbfaf685f99a873f11a2005d8563814a7ce
[ "Unlicense" ]
null
null
null
code/dictation.py
nkgfry/knausj_talon
a2327dbfaf685f99a873f11a2005d8563814a7ce
[ "Unlicense" ]
null
null
null
code/dictation.py
nkgfry/knausj_talon
a2327dbfaf685f99a873f11a2005d8563814a7ce
[ "Unlicense" ]
null
null
null
from talon import Module, ui, actions mod = Module() #Courtesy of https://github.com/dwiel/talon_community/blob/master/misc/dictation.py #Port for Talon's new api + wav2letter #dictionary of sentence ends. No space should appear after these. sentence_ends = { "." : ".", "?" : "?", "!" : "!", #these...
25.014286
83
0.561965
a9def4d04e24db5fd53ebf3e662f04edc0200838
7,556
py
Python
encoder_models/ResNet.py
LindaSt/FeatureExtractor
74d96244ea869dbe359f6990e045ff971cde5d52
[ "MIT" ]
null
null
null
encoder_models/ResNet.py
LindaSt/FeatureExtractor
74d96244ea869dbe359f6990e045ff971cde5d52
[ "MIT" ]
null
null
null
encoder_models/ResNet.py
LindaSt/FeatureExtractor
74d96244ea869dbe359f6990e045ff971cde5d52
[ "MIT" ]
null
null
null
""" Model definition adapted from: https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py """ import logging import math import torch.nn as nn import torch.utils.model_zoo as model_zoo model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'resnet34': 'http...
30.224
105
0.609449
f724bcbe159f2f3f6bd41ab81d7cfc844b8fbfab
10,961
bzl
Python
internal/pkg_npm/pkg_npm.bzl
mr-tim/rules_nodejs
7648412d96828875343b0d9c74ddf4d7531eed72
[ "Apache-2.0" ]
1
2020-10-25T10:29:06.000Z
2020-10-25T10:29:06.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
8
2021-03-11T00:12:31.000Z
2022-02-27T07:35:43.000Z
internal/pkg_npm/pkg_npm.bzl
samschlegel/rules_nodejs
21836475c2294476a5a792d5fb0ee3e713f7c6fe
[ "Apache-2.0" ]
null
null
null
"""npm packaging Note, this is intended for sharing library code with non-Bazel consumers. If all users of your library code use Bazel, they should just add your library to the `deps` of one of their targets. """ load("//:providers.bzl", "DeclarationInfo", "JSNamedModuleInfo", "LinkablePackageInfo", "NodeContextInfo...
36.055921
136
0.684609
baea87738fefd5092b28cd6516d4229089db5195
4,189
py
Python
sponge-integration-tests/examples/core/rules_immediate_no_duration.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-integration-tests/examples/core/rules_immediate_no_duration.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-integration-tests/examples/core/rules_immediate_no_duration.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Using rules - immediate, no duration Note that auto-enable is turned off in the configuration. """ from org.openksavi.sponge.examples.util import CorrelationEventsLog def onInit(): global correlationEventsLog # Variables for assertions only correlationEventsLog = Cor...
27.201299
91
0.570542
80cf8c701d656b2489782c960e49fc157f74d9da
1,157
py
Python
cloudmesh_examples/example_1/cloudmesh_task/parallel.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_examples/example_1/cloudmesh_task/parallel.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_examples/example_1/cloudmesh_task/parallel.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from pprint import pprint from cloudmesh_base.util import banner from datetime import timedelta, datetime def Sequential(execution_array, f, **kwargs): print "ARGS", kwargs result = {} for element in execution_array: print "submitting -> {0}".format(element) result[element] = f(element, **...
28.925
74
0.594641
c573be985b9a4e29403da492acd03f4993576e48
1,346
py
Python
raiden/utils/formatting.py
christianbrb/raiden
64f0715af076747b293671157e2cbbd235cab81b
[ "MIT" ]
null
null
null
raiden/utils/formatting.py
christianbrb/raiden
64f0715af076747b293671157e2cbbd235cab81b
[ "MIT" ]
null
null
null
raiden/utils/formatting.py
christianbrb/raiden
64f0715af076747b293671157e2cbbd235cab81b
[ "MIT" ]
null
null
null
import functools import eth_utils from eth_utils import ( encode_hex, is_0x_prefixed, is_checksum_address, remove_0x_prefix, to_canonical_address, ) from raiden.exceptions import InvalidChecksummedAddress from raiden.utils.typing import Address, Iterable, List, Optional, TokenAddress, Union def ...
26.92
86
0.742942
f91385972d448f693c395d32cad3a9b4ffcc46bc
1,696
py
Python
sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/models/tracked_resource.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/models/tracked_resource.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/models/tracked_resource.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.254902
76
0.567807
657d64c74e24aaeb11a86dffe5ab27a47d96adf9
31,894
py
Python
tools/third_party/pytest/testing/test_collection.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
9
2019-04-01T10:57:10.000Z
2021-12-02T11:12:06.000Z
tools/third_party/pytest/testing/test_collection.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
33
2019-03-21T10:18:37.000Z
2022-03-23T13:21:40.000Z
tools/third_party/pytest/testing/test_collection.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
from __future__ import absolute_import, division, print_function import pprint import sys import pytest import _pytest._code from _pytest.main import Session, EXIT_NOTESTSCOLLECTED, _in_venv class TestCollector(object): def test_collect_versus_item(self): from pytest import Collector, Item asse...
33.750265
88
0.570985
d38875338a7e8d485b45914e7943f12541f2b2b6
4,470
py
Python
flightlib/setup.py
arsimone/flightmare
c546d9d54970c7ad803f3ada4c2ea64c51ab7287
[ "MIT" ]
null
null
null
flightlib/setup.py
arsimone/flightmare
c546d9d54970c7ad803f3ada4c2ea64c51ab7287
[ "MIT" ]
null
null
null
flightlib/setup.py
arsimone/flightmare
c546d9d54970c7ad803f3ada4c2ea64c51ab7287
[ "MIT" ]
null
null
null
import os import glob import shutil import re import sys import platform import subprocess from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion class CMakeExtension(Extension): def __init__(self, name, sourcedir=''): Extensi...
36.341463
94
0.551007
ba490aec9f90b1fad3b55a0bf950a61ec76b6a25
1,471
py
Python
Tools/Preprocess.py
Ideas-Laboratory/DRImplicitVecXform
2ec0c64fb098e29ce74929f5e19bce90b2f5791c
[ "MIT" ]
2
2020-09-14T03:29:39.000Z
2021-03-02T03:28:36.000Z
Tools/Preprocess.py
VisLabWang/DRImplicitVecXform
2ec0c64fb098e29ce74929f5e19bce90b2f5791c
[ "MIT" ]
null
null
null
Tools/Preprocess.py
VisLabWang/DRImplicitVecXform
2ec0c64fb098e29ce74929f5e19bce90b2f5791c
[ "MIT" ]
1
2021-04-16T20:15:46.000Z
2021-04-16T20:15:46.000Z
import numpy as np from sklearn.neighbors import NearestNeighbors from sklearn.metrics import euclidean_distances def normalize(x, low=-1, up=1): data_shape = x.shape n = data_shape[0] dim = data_shape[1] new_x = np.zeros(data_shape) min_v = np.zeros((1, dim)) max_v = np.zeros((1, dim)) f...
26.267857
86
0.49966
949e4e6527a76c7ce3258b821c524a3eed7ad123
3,090
py
Python
02_holdout_set_y_cross_validation/code/model.py
sebastiandres/mat281_m04_data_science
adc86f7a30dd87e922be5a7396d3802319b79e29
[ "MIT" ]
null
null
null
02_holdout_set_y_cross_validation/code/model.py
sebastiandres/mat281_m04_data_science
adc86f7a30dd87e922be5a7396d3802319b79e29
[ "MIT" ]
null
null
null
02_holdout_set_y_cross_validation/code/model.py
sebastiandres/mat281_m04_data_science
adc86f7a30dd87e922be5a7396d3802319b79e29
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from scipy import optimize from scipy import random secret_true_params = (5., np.pi/4.0, 0., 0.) def my_model(x, a, b, c, d): return a*np.cos(b*x+c) + d def generate_data(N=100, true_params=secret_true_params, seed = 42): x = np.linspace(-...
35.517241
104
0.671521
e6be056e7a668d093d614d6927e834de649e91fe
558
py
Python
THU--Deep_Learning/homework-2/homework2-mlp/network.py
AlbertMillan/THU--ACM_2019-2021
fc5b3cc7efcd8066e04cf6da6785c6051cd665fb
[ "MIT" ]
4
2020-12-29T14:49:44.000Z
2021-09-17T07:46:28.000Z
THU--Deep_Learning/homework-2/homework2-mlp/network.py
AlbertMillan/THU--ACM_2019-2021
fc5b3cc7efcd8066e04cf6da6785c6051cd665fb
[ "MIT" ]
null
null
null
THU--Deep_Learning/homework-2/homework2-mlp/network.py
AlbertMillan/THU--ACM_2019-2021
fc5b3cc7efcd8066e04cf6da6785c6051cd665fb
[ "MIT" ]
2
2020-12-26T03:05:53.000Z
2020-12-29T14:51:51.000Z
""" Network Class """ class Network(): def __init__(self): self.layerList = [] self.numLayer = 0 def add(self, layer): self.numLayer += 1 self.layerList.append(layer) def forward(self, x): # forward layer by layer for i in range(self.numLayer): x = self.layerList[i].forward(x) retu...
24.26087
70
0.621864
e469dfe331b2ff322a6da64122752c5e709ef8dc
8,612
py
Python
rlchat/train.py
Mrpatekful/dialogue-reinforce
e37fd566174f1dd538682a24eebb73e4b4134155
[ "MIT" ]
11
2019-12-12T04:56:38.000Z
2021-12-10T03:01:35.000Z
rlchat/train.py
Mrpatekful/dialogue-reinforcement
e37fd566174f1dd538682a24eebb73e4b4134155
[ "MIT" ]
5
2021-03-18T22:48:04.000Z
2022-03-11T23:42:25.000Z
rlchat/train.py
Mrpatekful/dialogue-reinforcement
e37fd566174f1dd538682a24eebb73e4b4134155
[ "MIT" ]
5
2019-12-11T22:45:14.000Z
2020-11-16T14:17:36.000Z
""" @author: Patrik Purgai @copyright: Copyright 2019, rlchat @license: MIT @email: purgai.patrik@gmail.com @date: 2019.02.20. """ import numpy as np import torch import copy import signal import json from os.path import isfile from parlai.core.params import ParlaiParser from parlai.core.logs import T...
34.039526
83
0.572573
9654992ad10cf74cc53a13b13f3d82073988b3c6
3,178
py
Python
polling_stations/apps/data_collection/management/commands/import_chiltern.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_chiltern.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_chiltern.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E07000005" addresses_name = "parl.2019-12-12/Version 1/Democracy_Club__12December2019 Chesham & Amersham.tsv" stations_name = "parl.2019-12-12/Version 1/Democ...
52.098361
118
0.647892
b36c7e5c153be9eaf804814bddeffa594e1aab35
879
py
Python
tests/test_articles.py
wendymunyasi/News-IP2
147d0b062b76e72f6942971af105e09f11a51e45
[ "MIT" ]
null
null
null
tests/test_articles.py
wendymunyasi/News-IP2
147d0b062b76e72f6942971af105e09f11a51e45
[ "MIT" ]
null
null
null
tests/test_articles.py
wendymunyasi/News-IP2
147d0b062b76e72f6942971af105e09f11a51e45
[ "MIT" ]
null
null
null
import unittest from app.models import Article class SourceTest(unittest.TestCase): ''' Test Class to test the behaviour of the Source class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_article = Article( "bbc-news", ...
46.263158
490
0.713311
d34dabbd5c096fff30fc522d216424ec7ea08f41
5,151
py
Python
tests/test_comparison.py
CPSuperstore/PyVersionNumber
eef7dc45469603c0875c8359c562a72f48fe761c
[ "MIT" ]
null
null
null
tests/test_comparison.py
CPSuperstore/PyVersionNumber
eef7dc45469603c0875c8359c562a72f48fe761c
[ "MIT" ]
null
null
null
tests/test_comparison.py
CPSuperstore/PyVersionNumber
eef7dc45469603c0875c8359c562a72f48fe761c
[ "MIT" ]
null
null
null
import unittest import sys sys.path.append('..') from PyVersionNumber import VersionNumber class TestCaseComparisons(unittest.TestCase): def test_less_than(self): # equals self.assertEqual(VersionNumber(1, 2, 3) < VersionNumber(1, 2, 3), False) # greater than self.assertEqual(Ver...
47.694444
81
0.625704
2a6a248b3d4ceebf171ba43b135ea30815b5b96b
255
py
Python
app/botbegone/urls.py
KatherineJF/recipe-app-api
6337db40e021233b82f193e41c66d62a009adaf8
[ "MIT" ]
null
null
null
app/botbegone/urls.py
KatherineJF/recipe-app-api
6337db40e021233b82f193e41c66d62a009adaf8
[ "MIT" ]
2
2020-03-24T16:45:17.000Z
2020-03-31T01:19:30.000Z
app/botbegone/urls.py
KatherineJF/recipe-app-api
6337db40e021233b82f193e41c66d62a009adaf8
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from botbegone import views router = DefaultRouter() router.register('tags', views.TagViewSet) app_name = 'botbegone' urlpatterns=[ path("",include(router.urls)) ]
18.214286
48
0.784314
90b73ada6ac08c6db4c1209720428e9cb5731257
3,839
py
Python
tests/test_typical_price.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
635
2017-04-04T20:24:47.000Z
2022-03-28T16:00:23.000Z
tests/test_typical_price.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
24
2017-10-22T15:01:54.000Z
2021-01-30T19:51:00.000Z
tests/test_typical_price.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
183
2017-07-01T16:06:39.000Z
2022-03-07T23:29:11.000Z
from __future__ import absolute_import import unittest import numpy as np from tests.sample_data import SampleData from pyti import typical_price class TestTypicalPrice(unittest.TestCase): def setUp(self): """Create data to use for testing.""" self.close_data = SampleData().get_sample_close_data(...
56.455882
119
0.742641
b2f4db24c95829d011562e84e50a41ccbfd3ed44
22,945
py
Python
helpers/caches.py
tritanium-industries/TITDev
85203129095168bee70630211f625d4a5d0133a1
[ "MIT" ]
null
null
null
helpers/caches.py
tritanium-industries/TITDev
85203129095168bee70630211f625d4a5d0133a1
[ "MIT" ]
null
null
null
helpers/caches.py
tritanium-industries/TITDev
85203129095168bee70630211f625d4a5d0133a1
[ "MIT" ]
null
null
null
import calendar import time import os import json from flask import g, session from defusedxml import ElementTree import requests from pymongo.errors import BulkWriteError from helpers import conversions, error_handling from views.auth import user_agent xml_headers = { "User-Agent": user_agent } if os.environ....
44.990196
117
0.542384
cb7349d08b7b1d9dfa3da3f5819727de66e66da7
4,003
py
Python
experiments/murtaza/off_policy_ssl/gym/ant/bc.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/murtaza/off_policy_ssl/gym/ant/bc.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/murtaza/off_policy_ssl/gym/ant/bc.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
from railrl.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from railrl.torch.sac.policies import GaussianPolicy from railrl.launchers.experiments.ashvin.awr_sac_rl import experiment from railrl.launchers.launcher_util import run_experiment import railrl.misc.hyperparameter as hyp if __name__ == "__mai...
29.873134
75
0.508119
b6bf1d723a7a61dbe4ff44b79d8f65262273fd38
6,501
py
Python
kubernetes/client/models/v1beta2_replica_set_spec.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/client/models/v1beta2_replica_set_spec.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta2_replica_set_spec.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1beta2Rep...
33.168367
276
0.629134
e00c3ef37f96f1bc0b89ac4dcd8e60f69c6ad153
802
py
Python
Python/Day8.py
RylandeFM/AoC2020
77d3e0f4a992073fd814bb664f4e4432dd8cf861
[ "MIT" ]
null
null
null
Python/Day8.py
RylandeFM/AoC2020
77d3e0f4a992073fd814bb664f4e4432dd8cf861
[ "MIT" ]
null
null
null
Python/Day8.py
RylandeFM/AoC2020
77d3e0f4a992073fd814bb664f4e4432dd8cf861
[ "MIT" ]
null
null
null
inputString = open("Python/Day8Input.txt", "r").read().splitlines() accumulator, swappedPos = 0, set() def runProgram(skip): global accumulator pos, hasSwapped, executedPos = 0, False, set() while pos not in executedPos: instr, value = inputString[pos].split(" ") executedPos.add(pos) ...
32.08
80
0.63217
1b92bb70df490a74d4a37d3a2d24b3a6686ad52c
2,556
py
Python
smanager/machines/views/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
null
null
null
smanager/machines/views/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
1
2020-08-03T16:35:56.000Z
2020-08-03T16:35:56.000Z
smanager/machines/views/machines.py
Ferald89/deicaphone
52d0c8ee1818a655257c222f7a0d8f9cc5c52bd3
[ "MIT" ]
null
null
null
"""Machine views.""" # Django REST Framework from rest_framework import viewsets, mixins # Permissions from rest_framework.permissions import IsAuthenticated from smanager.machines.permissions.machines import IsMachineAdmin # Serializer from smanager.machines.serializers import MachineModelSerializer, ManualModelSer...
33.631579
89
0.635759
e546ccc35ed6f75337f9d30d0644060dd00a1edf
4,089
py
Python
tools/valid.py
Sim-ai/HRNet-Image-Classification
c2b2c19604f3076cd49369c4226f45d77e6c973a
[ "MIT" ]
1
2020-11-25T02:16:04.000Z
2020-11-25T02:16:04.000Z
tools/valid.py
Sim-ai/HRNet-Image-Classification
c2b2c19604f3076cd49369c4226f45d77e6c973a
[ "MIT" ]
null
null
null
tools/valid.py
Sim-ai/HRNet-Image-Classification
c2b2c19604f3076cd49369c4226f45d77e6c973a
[ "MIT" ]
1
2020-12-07T11:17:35.000Z
2020-12-07T11:17:35.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Ke Sun (sunk@mail.ustc.edu.cn) # ------------------------------------------------------------------------------ from ...
31.697674
80
0.603571
c711314a99013f68adc46fed37a2cdbd5a45c17d
11,733
py
Python
tests/core/test_lightning_optimizer.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
15,666
2020-01-14T07:16:15.000Z
2022-03-31T23:22:26.000Z
tests/core/test_lightning_optimizer.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
9,140
2020-01-14T03:10:42.000Z
2022-03-31T19:57:09.000Z
tests/core/test_lightning_optimizer.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
2,340
2020-01-14T06:45:32.000Z
2022-03-31T22:57:07.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.605769
118
0.678514
258b9c831601e5deaf7030fe40cb0ba97c6e0510
4,336
py
Python
jobsite/settings.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
null
null
null
jobsite/settings.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
1
2020-11-07T04:15:05.000Z
2020-11-07T04:15:05.000Z
jobsite/settings.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.getenv("SECRETKEY") # SECURITY WARNIN...
24.359551
140
0.659133
c92f2897ac9f050bd6c0ad79739da16d051e3b26
1,759
py
Python
18/solution-b.py
gmodena/adventofcode2017
6fb72b2220f38e5f65b04f491c8787f1b999ba60
[ "Unlicense" ]
1
2017-12-08T21:36:50.000Z
2017-12-08T21:36:50.000Z
18/solution-b.py
gmodena/adventofcode2017
6fb72b2220f38e5f65b04f491c8787f1b999ba60
[ "Unlicense" ]
null
null
null
18/solution-b.py
gmodena/adventofcode2017
6fb72b2220f38e5f65b04f491c8787f1b999ba60
[ "Unlicense" ]
null
null
null
registers = [defaultdict(int), defaultdict(int)] def get_value(registers, v): try: return int(v) except ValueError: return registers[v] if __name__ == '__main__': op = 0; reg = 1; val = 2 with open('input.txt') as infile: instructions = [line.strip().split(' ') for line in infi...
32.574074
75
0.498579
2f5b9fd09b8364b242404f5da987a659d4716f67
12,537
py
Python
tests/heuristic_test.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
tests/heuristic_test.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
tests/heuristic_test.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
import time import unittest import numpy as np from numpy.testing import assert_array_equal import heuristics from environments import spe_ed def empty_board_1player(): """ board state visualised: board size = 5x5 - - - - - - - - - - - - 1 - - - - - - - - - - - - """ cells = np.zeros...
38.694444
115
0.642339
8bd2b98316b5918e4ed9130bc0e5402d12b642a2
2,122
py
Python
spirals/good_fit_test.py
kadglass/RotationCurves
7f52dac022ca4df666e671eeb7f0aaf65c8515c3
[ "BSD-3-Clause" ]
2
2020-03-20T09:43:57.000Z
2020-05-27T23:50:38.000Z
spirals/good_fit_test.py
kadglass/RotationCurves
7f52dac022ca4df666e671eeb7f0aaf65c8515c3
[ "BSD-3-Clause" ]
1
2021-09-14T07:16:09.000Z
2021-09-14T07:16:09.000Z
spirals/good_fit_test.py
kadglass/RotationCurves
7f52dac022ca4df666e671eeb7f0aaf65c8515c3
[ "BSD-3-Clause" ]
3
2021-09-13T18:22:03.000Z
2022-02-08T20:00:24.000Z
''' Script to set the "good_fit" field based on the original fit to the formula from Barrera-Ballestros (BB) without introducing any loss penalty on the values of the individual parameters. A galaxy is considered to have a bad fit if any of the following are true: - Rturn = 0 - Rturn > 200 - Vmax > 20,000 The...
32.151515
81
0.438737
acd0c8ba1e1ae95680d9b5d8028932b87a3525f0
16,367
py
Python
rmgpy/data/reference.py
xiaoruiDong/RMG-Py
7c613c6ffe64c37564cfab2d634566f67d32b947
[ "MIT" ]
1
2020-10-14T12:01:47.000Z
2020-10-14T12:01:47.000Z
rmgpy/data/reference.py
Tingchenlee/RMG-Py
c18ea8090d995e58e2428bfa87cd9036733a5fc0
[ "MIT" ]
null
null
null
rmgpy/data/reference.py
Tingchenlee/RMG-Py
c18ea8090d995e58e2428bfa87cd9036733a5fc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
44.115903
116
0.46997
f90cc7f471330812fca6a20f62b12b9004097c54
1,053
py
Python
onnx2keras/upsampling_layers.py
jkparuchuri/onnx2keras
d24302f48bf74ce2ccc51fce8f096dbf4cb8917a
[ "MIT" ]
null
null
null
onnx2keras/upsampling_layers.py
jkparuchuri/onnx2keras
d24302f48bf74ce2ccc51fce8f096dbf4cb8917a
[ "MIT" ]
null
null
null
onnx2keras/upsampling_layers.py
jkparuchuri/onnx2keras
d24302f48bf74ce2ccc51fce8f096dbf4cb8917a
[ "MIT" ]
null
null
null
from tensorflow import keras import numpy as np import logging def convert_upsample(node, params, layers, lambda_func, node_name, keras_name): """ Convert upsample. :param node: current operation node :param params: operation attributes :param layers: available keras layers :param lambda_func:...
30.970588
79
0.693257
79c20469533c14eeb7d8fb1e33a696ae8ff2131f
1,391
py
Python
src/sultan/echo/__init__.py
curtismuntz/sultan
65b4271a161d6c19a9eb0170b5a95832a139ab7f
[ "MIT" ]
692
2016-08-30T15:09:48.000Z
2022-03-15T00:14:22.000Z
src/sultan/echo/__init__.py
curtismuntz/sultan
65b4271a161d6c19a9eb0170b5a95832a139ab7f
[ "MIT" ]
48
2016-08-30T22:39:52.000Z
2020-09-08T13:34:56.000Z
src/sultan/echo/__init__.py
curtismuntz/sultan
65b4271a161d6c19a9eb0170b5a95832a139ab7f
[ "MIT" ]
41
2016-09-19T20:36:23.000Z
2021-09-10T13:29:34.000Z
import logging from sultan.core import Base from sultan.echo.colorlog import StreamHandler, ColoredFormatter from sultan.config import settings handler = StreamHandler() handler.setFormatter(ColoredFormatter( settings.LOG_FORMAT, log_colors=settings.LOG_COLORS )) def getLogger(name='', level=logging.DEBUG): ...
19.591549
64
0.622574
94892e2cf634c76e92d831837270f21eb43d2e5f
3,087
py
Python
Anchors/Move ogonek Anchors to Baseline Intersection.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
283
2015-01-07T12:35:35.000Z
2022-03-29T06:10:44.000Z
Anchors/Move ogonek Anchors to Baseline Intersection.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
203
2015-01-26T18:43:08.000Z
2022-03-04T01:47:58.000Z
Anchors/Move ogonek Anchors to Baseline Intersection.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
96
2015-01-19T20:58:03.000Z
2022-03-29T06:10:56.000Z
#MenuTitle: Move ogonek anchors to baseline intersection # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__=""" In selected glyphs, moves all ogonek and _ogonek anchors to the rightmost intersection of the outline with the baseline. Verbose report in """ import math from...
34.3
139
0.760285
4d621ed1db01a30d0c6ddae7905c3d73d1c9a0eb
4,590
py
Python
dakara_server/users/tests/test_emails.py
DakaraProject/dakara-server
b28fc1a8561e431d562102932f3d6ff3607e545b
[ "MIT" ]
4
2018-07-24T18:22:16.000Z
2020-01-24T16:30:54.000Z
dakara_server/users/tests/test_emails.py
DakaraProject/dakara-server
b28fc1a8561e431d562102932f3d6ff3607e545b
[ "MIT" ]
88
2017-11-04T08:58:02.000Z
2022-03-30T11:39:08.000Z
dakara_server/users/tests/test_emails.py
DakaraProject/dakara-server
b28fc1a8561e431d562102932f3d6ff3607e545b
[ "MIT" ]
1
2018-05-05T15:37:20.000Z
2018-05-05T15:37:20.000Z
from unittest.mock import ANY, patch from internal.tests.base_test import UserModel from users import emails from users.tests.base_test import UsersAPITestCase, config_email_disabled @patch("users.emails.send_mail") class SendNotificationToManagersTestCase(UsersAPITestCase): """Test the send_notification_to_mana...
35.581395
88
0.683442
090c35a6ad701cbfc3e2d5a5a7c7977223c4dc49
2,710
py
Python
Project 2/network_p2_2/Transmitter.py
MercurialJD/Athernet
0579d5471d7172c8714400bcbc7f892ee4e0f25f
[ "MIT" ]
null
null
null
Project 2/network_p2_2/Transmitter.py
MercurialJD/Athernet
0579d5471d7172c8714400bcbc7f892ee4e0f25f
[ "MIT" ]
null
null
null
Project 2/network_p2_2/Transmitter.py
MercurialJD/Athernet
0579d5471d7172c8714400bcbc7f892ee4e0f25f
[ "MIT" ]
null
null
null
import copy import numpy as np import sounddevice as sd from utils import * class Transmitter: def __init__(self, config): self.data = None self.fs = config.fs self.fc = config.fc self.header_length = config.header_length self.preamble_wave = config.preamble_wave se...
38.169014
120
0.643542
b9091703e1402c65c1f4a6f07bae6b6864b79975
17,266
py
Python
machine_learning/linear_discriminant_analysis.py
MKiperszmid/Python
6b368e6ab2fa1a839b029fd45e127521bbe76005
[ "MIT" ]
1
2020-08-28T18:25:45.000Z
2020-08-28T18:25:45.000Z
machine_learning/linear_discriminant_analysis.py
MKiperszmid/Python
6b368e6ab2fa1a839b029fd45e127521bbe76005
[ "MIT" ]
1
2020-08-28T18:24:31.000Z
2020-08-28T19:35:47.000Z
machine_learning/linear_discriminant_analysis.py
MKiperszmid/Python
6b368e6ab2fa1a839b029fd45e127521bbe76005
[ "MIT" ]
null
null
null
""" Linear Discriminant Analysis Assumptions About Data : 1. The input variables has a gaussian distribution. 2. The variance calculated for each input variables by class grouping is the same. 3. The mix of classes in your training set is representative of the problem. ...
42.527094
87
0.585486
b8e33a53db98d0eb2f1eff2bd14a9b6a63f8b76f
1,343
py
Python
egs/fisher_callhome_spanish_st/st1/local/callhome_make_spk2gender.py
eastonYi/espnet
61a89c182daa9149a57e3fc91ef4971e2727cc38
[ "Apache-2.0" ]
3
2019-10-11T11:41:27.000Z
2020-05-21T09:08:44.000Z
egs/fisher_callhome_spanish_st/st1/local/callhome_make_spk2gender.py
eastonYi/espnet
61a89c182daa9149a57e3fc91ef4971e2727cc38
[ "Apache-2.0" ]
null
null
null
egs/fisher_callhome_spanish_st/st1/local/callhome_make_spk2gender.py
eastonYi/espnet
61a89c182daa9149a57e3fc91ef4971e2727cc38
[ "Apache-2.0" ]
2
2019-03-27T04:34:33.000Z
2019-04-12T17:30:18.000Z
#!/usr/bin/env python # encoding: utf-8 # Note(kamo-naoyuki) 31,Jan,2019: # This file is copied from kaldi/egs/fisher_callhome_spanish/s5/local/callhole_make_spk2gender.sh # and modified for py2/3 compatibility. # Copyright 2014 Gaurav Kumar. Apache 2.0 # Gets the unique speakers from the file created by fsp_make_...
27.408163
97
0.679077
cd851347f9e765837ac59c8a91b93d9f0085ef70
2,218
py
Python
migrations/versions/70888e184c42_initial_migration.py
Daniel6996-arch/verbose-pitches
b50877381e126c37b6a83e8d0b67921538be8bb8
[ "MIT" ]
null
null
null
migrations/versions/70888e184c42_initial_migration.py
Daniel6996-arch/verbose-pitches
b50877381e126c37b6a83e8d0b67921538be8bb8
[ "MIT" ]
null
null
null
migrations/versions/70888e184c42_initial_migration.py
Daniel6996-arch/verbose-pitches
b50877381e126c37b6a83e8d0b67921538be8bb8
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: 70888e184c42 Revises: 2b316ef6f12d Create Date: 2021-11-11 06:57:51.350092 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '70888e184c42' down_revision = '2b316ef6f12d' branch_labels = None depends_on = None def upgrade(): ...
36.966667
89
0.681695
08f1e762f729952dedd3816fc865d4deca3e2eb0
1,156
py
Python
ramm_tox/kegg2pubchem.py
sorgerlab/ramm_tox
8c8ff7d3e22382272af8f1d06db9c40826b8fe5a
[ "MIT" ]
null
null
null
ramm_tox/kegg2pubchem.py
sorgerlab/ramm_tox
8c8ff7d3e22382272af8f1d06db9c40826b8fe5a
[ "MIT" ]
null
null
null
ramm_tox/kegg2pubchem.py
sorgerlab/ramm_tox
8c8ff7d3e22382272af8f1d06db9c40826b8fe5a
[ "MIT" ]
null
null
null
"""Get PubChem CID from KEGG compound/drug accession.""" import sys import csv import bs4 import requests import re reader = csv.DictReader(open(sys.argv[1])) writer = csv.DictWriter(sys.stdout, reader.fieldnames) re_pubchem = re.compile(r'^PubChem:') kegg_url = 'http://www.kegg.jp/dbget-bin/www_bget?{}' pubchem_url...
33.028571
82
0.613322
0ec54666dce4e8ad870af4ecc2d1890bf5b31e84
768
py
Python
LeetCode/Sum Root to Leaf Numbers - Iterative.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/Sum Root to Leaf Numbers - Iterative.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/Sum Root to Leaf Numbers - Iterative.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def sumNumbers(self, root: TreeNode) -> int: rootToLeafSum = 0 stack = [(root, 0)] w...
38.4
61
0.545573
ab047ab8aa767e2099e0f578a6182925f8cd414b
4,027
py
Python
youtuatools/extractor/tvc.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
47
2021-01-02T07:44:50.000Z
2022-02-28T22:02:13.000Z
youtuatools/extractor/tvc.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
4
2021-02-07T03:35:13.000Z
2021-10-31T19:23:53.000Z
youtuatools/extractor/tvc.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
8
2021-01-03T05:44:39.000Z
2021-11-01T05:46:32.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( clean_html, int_or_none, ) class TVCIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?tvc\.ru/video/iframe/id/(?P<id>\d+)" _TEST = { "url": "http://www.tvc.ru/video/if...
33.840336
152
0.488205
fb8c58b893554c57540e72290c175eed6570f79b
4,468
py
Python
mayan/apps/sources/wizards.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/wizards.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/wizards.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils.http import urlencode from django.utils.translation import ugettext_lazy as _ from formtools.wizard.views import SessionWizardView fr...
33.593985
130
0.629588
d397e3a54df3ba02bc4a63d61af692765410f367
3,138
py
Python
url_demo/url_demo/settings.py
gaohj/2001django
0da7227acb37b7cdb3a9595bd96e0e1afd63e760
[ "Apache-2.0" ]
null
null
null
url_demo/url_demo/settings.py
gaohj/2001django
0da7227acb37b7cdb3a9595bd96e0e1afd63e760
[ "Apache-2.0" ]
null
null
null
url_demo/url_demo/settings.py
gaohj/2001django
0da7227acb37b7cdb3a9595bd96e0e1afd63e760
[ "Apache-2.0" ]
null
null
null
""" Django settings for url_demo project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os ...
25.721311
91
0.695347
95b38e9906138f00fdd649f71f5a1f8f6ad940a9
7,534
py
Python
scrapy/http/request/form.py
younthOL/scrapy
6c3970e6722191b642fd99c6c1bfed0d93010cab
[ "BSD-3-Clause" ]
2
2018-06-01T03:40:23.000Z
2018-06-01T03:40:26.000Z
scrapy/http/request/form.py
faheel/scrapy
72d0899bce06190de5a453b24dd66c8910e6d0ee
[ "BSD-3-Clause" ]
1
2022-03-22T20:26:08.000Z
2022-03-22T20:26:08.000Z
scrapy/http/request/form.py
faheel/scrapy
72d0899bce06190de5a453b24dd66c8910e6d0ee
[ "BSD-3-Clause" ]
1
2019-02-18T10:44:20.000Z
2019-02-18T10:44:20.000Z
""" This module implements the FormRequest class which is a more convenient class (than Request) to generate Requests based on form data. See documentation in docs/topics/request-response.rst """ import six from six.moves.urllib.parse import urljoin, urlencode import lxml.html from parsel.selector import create_root...
36.047847
98
0.596894
5b0f5db509c37053a4f94488d2b2b98ddfcfc36d
616
py
Python
os_faults/api/util.py
mail2nsrajesh/os-faults
3610f8dcfe69130c9a4543f1efd04ed41fe2037c
[ "Apache-2.0" ]
null
null
null
os_faults/api/util.py
mail2nsrajesh/os-faults
3610f8dcfe69130c9a4543f1efd04ed41fe2037c
[ "Apache-2.0" ]
null
null
null
os_faults/api/util.py
mail2nsrajesh/os-faults
3610f8dcfe69130c9a4543f1efd04ed41fe2037c
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under the ...
34.222222
69
0.756494
9f1a15fe2d885f1abdeb36e7dc8cb382da0f11c9
1,828
py
Python
python-watcher-2.0.0/watcher/decision_engine/messaging/audit_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
python-watcher-2.0.0/watcher/decision_engine/messaging/audit_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
python-watcher-2.0.0/watcher/decision_engine/messaging/audit_endpoint.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # Authors: Jean-Emile DARTOIS <jean-emile.dartois@b-com.com> # # 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/...
32.642857
77
0.718818
1c25993c0c3cfefa42e58028c11afe254f13513b
874
py
Python
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
#!/bin/python import numpy as np from functions import softmax class Estimator: def __init__(self): pass def __call__(self, A, B): return self.fx(A, B) def fx(self, A, B): return 0 def dfx(self, A, B): return 0 class MSE(Estimator): def __init__(self): pass def fx(self, A, B): retu...
21.317073
51
0.599542
7ce96e050e0980bc413111d8acdc5504b97c2db2
1,360
py
Python
examples/pybadger_pyportal_touchscreen.py
dglaude/Adafruit_CircuitPython_PyBadger
6878e34cccc1a533d62d3adc6634abacad1358c1
[ "MIT" ]
null
null
null
examples/pybadger_pyportal_touchscreen.py
dglaude/Adafruit_CircuitPython_PyBadger
6878e34cccc1a533d62d3adc6634abacad1358c1
[ "MIT" ]
null
null
null
examples/pybadger_pyportal_touchscreen.py
dglaude/Adafruit_CircuitPython_PyBadger
6878e34cccc1a533d62d3adc6634abacad1358c1
[ "MIT" ]
null
null
null
"""Simpletest example using Adafruit PyPortal. Uses the touchscreen to advance between examples.""" import board from adafruit_pybadger import pybadger import adafruit_touchscreen # pylint: disable=invalid-name # These pins are used as both analog and digital! XL, XR and YU must be analog # and digital capable. YD ju...
28.333333
99
0.663235
e88f042b71bb97911518cdfe0148a2b15c55c989
4,478
py
Python
aiobungie/crate/application.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
36
2021-07-09T19:26:18.000Z
2022-03-26T09:12:43.000Z
aiobungie/crate/application.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
149
2021-07-13T21:46:21.000Z
2022-03-29T12:21:38.000Z
aiobungie/crate/application.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
4
2021-07-21T05:33:11.000Z
2022-02-19T11:15:31.000Z
# MIT License # # Copyright (c) 2020 - Present nxtlo # # 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, mer...
31.314685
83
0.687807
6fe6aa5e2add1e4a96bff34247542c3e59728881
1,470
py
Python
python/fasterparallel/benchmark2multi.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
1
2022-03-30T12:59:44.000Z
2022-03-30T12:59:44.000Z
python/fasterparallel/benchmark2multi.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
null
null
null
python/fasterparallel/benchmark2multi.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
3
2019-08-13T11:33:36.000Z
2022-03-08T22:00:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals, annotations) from collections import defaultdict from multiprocessing import Pool import numpy as np import psutil num_cpus = psutil.cpu_count(logical=False) def...
30
76
0.669388
cb12bf07f210836543f58db3d10f41ada53b6baa
1,217
py
Python
2019/day17/solutions.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
3
2019-12-14T16:24:50.000Z
2020-12-06T16:40:13.000Z
2019/day17/solutions.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
4
2019-12-03T14:18:13.000Z
2020-12-03T08:29:32.000Z
2019/day17/solutions.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
2
2019-12-06T07:25:57.000Z
2020-12-08T12:42:37.000Z
from os.path import dirname from os.path import realpath from os.path import join import time import sys sys.path.append(join(dirname(realpath(__file__)), *[".."])) from day17.asci import Asci def part1(input_): asci = Asci(input_) return asci.compute_intersections() def part2(input_): asci = Asci(inpu...
22.962264
59
0.59244
c8cf272f8de5099f73beb31eba0bf4209189e46c
2,724
py
Python
tests/zenora/test_errors.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
tests/zenora/test_errors.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
tests/zenora/test_errors.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
# Copyright (c) 2021 K.M Ahnaf Zamil # 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, dist...
38.914286
80
0.654552
da03e92064e68898a47672c305fcf1badd9b66b5
14,318
py
Python
datar/forcats/lvl_value.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
null
null
null
datar/forcats/lvl_value.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
null
null
null
datar/forcats/lvl_value.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
null
null
null
"""Provides forcats verbs to manipulate factor level values""" from typing import Any, Callable, Iterable, List, Mapping import numpy as np from ..core.backends import pandas as pd from ..core.backends.pandas import Categorical, DataFrame from pipda import register_verb from pipda.utils import CallingEnvs, functype f...
27.376673
79
0.590446
42e5b48173a3a0d113b334fe3dbb5bbabaf47286
104
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/app/config/base.py
LemegetonX/valefor
127b0a1ca646f80740073bddcfa243d775df5cc7
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/app/config/base.py
LemegetonX/valefor
127b0a1ca646f80740073bddcfa243d775df5cc7
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/app/config/base.py
LemegetonX/valefor
127b0a1ca646f80740073bddcfa243d775df5cc7
[ "MIT" ]
null
null
null
import os class BaseConfig: APP_DIR: str = os.path.abspath("./{{cookiecutter.project_name}}/app")
17.333333
73
0.701923
8ae59e162a7b393806fdfb40fac25d312a16d9b7
3,909
py
Python
ucsmsdk/mometa/os/OsEthBondModeBalancedTLB.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/os/OsEthBondModeBalancedTLB.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/os/OsEthBondModeBalancedTLB.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for OsEthBondModeBalancedTLB ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class OsEthBondModeBalancedTLBConsts: LB_TYPE_RECEIVE_XMIT = "receive-xmit" LB_TYPE_XMIT_ONLY ...
56.652174
248
0.664364
2660f4e42f65c5b0bdb50207efda5a13435d980f
1,872
py
Python
macbot_physical/nodes/tf_broadcaster.py
eechhx/macbot
7de8e12b11c6a643ff27061a6d5ddd7dc1aa0f3c
[ "Apache-2.0" ]
1
2021-01-21T20:05:02.000Z
2021-01-21T20:05:02.000Z
macbot_physical/nodes/tf_broadcaster.py
eechhx/macbot
7de8e12b11c6a643ff27061a6d5ddd7dc1aa0f3c
[ "Apache-2.0" ]
null
null
null
macbot_physical/nodes/tf_broadcaster.py
eechhx/macbot
7de8e12b11c6a643ff27061a6d5ddd7dc1aa0f3c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy import tf_conversions import tf2_ros import geometry_msgs.msg from math import pi from std_msgs.msg import (Int32) class macbot_tf2_broadcaster(): def __init__(self, direction_wheel): self.br = tf2_ros.TransformBroadcaster() self.t = geometry_msgs.msg.TransformSta...
37.44
97
0.660256
3753111bdd1bdbc268a22f2449febb01de9d0463
866
py
Python
app.py
gsingh1629/SentAnalysis
dd7401105334825279ccba269649cc2f1361e339
[ "MIT" ]
null
null
null
app.py
gsingh1629/SentAnalysis
dd7401105334825279ccba269649cc2f1361e339
[ "MIT" ]
null
null
null
app.py
gsingh1629/SentAnalysis
dd7401105334825279ccba269649cc2f1361e339
[ "MIT" ]
null
null
null
from flask import Flask,render_template,url_for,request import numpy as np import pickle import pandas as pd import flasgger from flasgger import Swagger from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB app=Flask(__name__) Swagger(app) mnb = pickle.load(open('N...
25.470588
76
0.726328
045db200f816b7ebb77cc3be01202f4eb6031a6a
13,838
py
Python
train.py
ohmygod481999/a-PyTorch-Tutorial-to-Image-Captioning
10f324f63c3eee74ec25a7c8a1127985ab164d34
[ "MIT" ]
null
null
null
train.py
ohmygod481999/a-PyTorch-Tutorial-to-Image-Captioning
10f324f63c3eee74ec25a7c8a1127985ab164d34
[ "MIT" ]
null
null
null
train.py
ohmygod481999/a-PyTorch-Tutorial-to-Image-Captioning
10f324f63c3eee74ec25a7c8a1127985ab164d34
[ "MIT" ]
null
null
null
import time import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torchvision.transforms as transforms from torch import nn from torch.nn.utils.rnn import pack_padded_sequence from models import Encoder, DecoderWithAttention from datasets import * from utils import * from nltk.translate...
40.820059
165
0.61454
f27fa3f09458d2eb1cc80182721989f249077d95
1,150
py
Python
students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py
NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021
77ea82c38eb25c8fd61815b92e4cb006708a6de7
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py
NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021
77ea82c38eb25c8fd61815b92e4cb006708a6de7
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Kirillov_Nikolay/laboratory_work_4/hotel_app/serializers.py
NikolayKirillov/ITMO_ICT_WebDevelopment_2020-2021
77ea82c38eb25c8fd61815b92e4cb006708a6de7
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.contrib.auth.hashers import make_password from .models import * class RoomSerializer(serializers.ModelSerializer): class Meta: model = Room fields = "__all__" class StaffSerializer(serializers.ModelSerializer): class Meta: model = St...
25
63
0.658261
8eccc0a5443bf2eb32dbbfffbfc154a4111380ce
3,174
py
Python
parse.py
karlek/avant-graph
e4faa52b76d4b989cb6da646270973e72965718e
[ "Unlicense" ]
null
null
null
parse.py
karlek/avant-graph
e4faa52b76d4b989cb6da646270973e72965718e
[ "Unlicense" ]
1
2016-03-12T11:28:00.000Z
2018-05-31T09:01:50.000Z
parse.py
karlek/avant-graph
e4faa52b76d4b989cb6da646270973e72965718e
[ "Unlicense" ]
null
null
null
import pprint import re from graph_tool.all import * from table import (Table, Type) vertices = {} edges = {} group_numbers = { 5956:0, 5903:1, 6023:2, 5977:3, 5994:4, 5850:5, 6172:6, 6091:7, 5923:8, 6161:9, } # 5956:cerise 'Skolan för datavetenskap och kommunikation (CSC)', T...
28.339286
128
0.561122
050db92a969b29ca0549317ea2a0cfd6d0e429fe
2,707
py
Python
gnn_agglomeration/pyg_datasets/toy_datasets/random_graph_dataset.py
bentaculum/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2021-05-19T01:56:52.000Z
2021-07-08T20:50:38.000Z
gnn_agglomeration/pyg_datasets/toy_datasets/random_graph_dataset.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
14
2019-07-17T19:23:09.000Z
2021-02-02T22:01:49.000Z
gnn_agglomeration/pyg_datasets/toy_datasets/random_graph_dataset.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2019-07-17T20:14:03.000Z
2019-07-27T16:20:52.000Z
import torch from torch_geometric.data import InMemoryDataset from torch_geometric.data import Data import torch_geometric.transforms as T import numpy as np import json import os from abc import ABC, abstractmethod class RandomGraphDataset(InMemoryDataset, ABC): def __init__(self, root, config): self.con...
33.012195
112
0.637237
a728f737a973cedc7c038ba39f679b2d7aa81b50
246
py
Python
backoffice/routes/membership.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
null
null
null
backoffice/routes/membership.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
1
2021-05-20T16:08:35.000Z
2021-05-20T16:08:35.000Z
backoffice/routes/membership.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
null
null
null
from django.urls import path from backoffice.view import membership members_routes = [ path('user/<str:user_login_code>/group/<str:slug_name>/members/', membership.MembershipView.as_view( {'get': 'list'}), name='group_membership')]
30.75
104
0.731707
24f17f634d6468da1265c79c4f3b10fd7bc9adaa
6,889
py
Python
sources/hud.py
mthenault/MICshooter
2f816d9b96fb525e7f607fad03ca900df9bb32c7
[ "MIT" ]
2
2015-01-12T14:44:44.000Z
2018-05-07T10:49:23.000Z
sources/hud.py
antismap/MICshooter
2f816d9b96fb525e7f607fad03ca900df9bb32c7
[ "MIT" ]
null
null
null
sources/hud.py
antismap/MICshooter
2f816d9b96fb525e7f607fad03ca900df9bb32c7
[ "MIT" ]
2
2016-02-27T09:56:40.000Z
2019-07-19T09:47:22.000Z
import os import common_pygame import random pygame = common_pygame.pygame screen = common_pygame.screen # def __init__(self): #self.color=(0, 0, 255) #self.y1 = screen.get_height()/2 #self.y2 = self.y1 +20 # self.max_width=800-40 ##self.font = pygame.font.Font(None,64) # self.textHeight=self.y1-80 def negtozero(x)...
46.547297
137
0.55712
72ce65eeeb6e69a332139f5a033f1631f5fe070a
891
py
Python
app/core/admin.py
arunjohn96/recipe_app_api
efc0a10cdd45c792f479089209d38f976c46b353
[ "MIT" ]
null
null
null
app/core/admin.py
arunjohn96/recipe_app_api
efc0a10cdd45c792f479089209d38f976c46b353
[ "MIT" ]
null
null
null
app/core/admin.py
arunjohn96/recipe_app_api
efc0a10cdd45c792f479089209d38f976c46b353
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', ...
27
68
0.583614
97d65921a40d455ea70c6c09aab6abf51e7ffca5
5,817
py
Python
app/cascade/query_layers/base.py
inmadria/cascade-server
0ae612d97a5bad60b57a611ac59d491495e4cef1
[ "BSD-3-Clause" ]
205
2017-08-30T19:53:53.000Z
2022-03-29T17:55:32.000Z
app/cascade/query_layers/base.py
inmadria/cascade-server
0ae612d97a5bad60b57a611ac59d491495e4cef1
[ "BSD-3-Clause" ]
14
2017-08-31T15:00:11.000Z
2021-06-01T22:00:06.000Z
app/cascade/query_layers/base.py
inmadria/cascade-server
0ae612d97a5bad60b57a611ac59d491495e4cef1
[ "BSD-3-Clause" ]
51
2017-08-30T19:58:06.000Z
2022-03-30T15:54:03.000Z
# NOTICE # # This software was produced for the U. S. Government # under Basic Contract No. W15P7T-13-C-A802, and is # subject to the Rights in Noncommercial Computer Software # and Noncommercial Computer Software Documentation # Clause 252.227-7014 (FEB 2012) # # (C) 2017 The MITRE Corporation. import logging from m...
36.130435
119
0.653086
bde034cc56effa2226dd050d0510bc87cde947d8
1,682
py
Python
molecule/layouts/tests/test_minio_default.py
Cloud-Temple/ansible-minio
401e45be33428e6502b9dcf28cbc717ea410f5a5
[ "MIT" ]
4
2019-06-11T22:10:43.000Z
2022-01-26T04:55:01.000Z
molecule/layouts/tests/test_minio_default.py
Cloud-Temple/ansible-minio
401e45be33428e6502b9dcf28cbc717ea410f5a5
[ "MIT" ]
5
2020-10-29T22:01:21.000Z
2021-03-30T15:59:27.000Z
molecule/layouts/tests/test_minio_default.py
Cloud-Temple/ansible-minio
401e45be33428e6502b9dcf28cbc717ea410f5a5
[ "MIT" ]
5
2019-09-10T12:46:17.000Z
2022-01-14T15:47:11.000Z
import os import yaml import pytest import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') dir_path = os.path.dirname(os.path.abspath(__file__)) @pytest.fixture() def AnsibleDefaults(): with open(os.path.j...
30.035714
85
0.689655
7e41a96654f0d185568e541b57a2893cb091aed6
976
py
Python
mall_spider/model/cmm_sys_stream_handle_task.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
12
2019-06-06T12:23:08.000Z
2021-06-15T17:50:07.000Z
mall_spider/model/cmm_sys_stream_handle_task.py
524243642/mall_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
3
2021-03-31T19:02:47.000Z
2022-02-11T03:43:15.000Z
mall_spider/model/cmm_sys_stream_handle_task.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
5
2019-09-17T03:55:56.000Z
2020-12-18T03:34:03.000Z
# coding: utf-8 from sqlalchemy import BigInteger, Column, Integer, String from sqlalchemy.schema import FetchedValue from common.column import JSONEncodedLongColumn from mall_spider import model from mall_spider.model.base import VersionMixedIn class CmmSysStreamHandleTask(model.Base, VersionMixedIn): __tablena...
46.47619
91
0.792008
18baba04496f4ceff333648ef16afe75683913b1
3,418
py
Python
paint using hand/paint.py
Jeevananthamcse/Palanisamy
9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c
[ "Unlicense" ]
2
2021-08-30T08:04:04.000Z
2021-09-27T06:01:05.000Z
paint using hand/paint.py
Jeevananthamcse/Palanisamy
9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c
[ "Unlicense" ]
1
2022-02-08T00:01:16.000Z
2022-02-08T00:01:16.000Z
paint using hand/paint.py
Jeevananthamcse/Palanisamy
9b62f7dbcb9f7a747e5ef5b722e07111a6648b3c
[ "Unlicense" ]
1
2021-09-13T07:03:11.000Z
2021-09-13T07:03:11.000Z
import cv2 import numpy as np import time import os import HandTrackingModule as htm ####################### brushThickness = 25 eraserThickness = 100 ######################## folderPath = "Header" myList = os.listdir(folderPath) print(myList) overlayList = [] for imPath in myList: image = cv2.i...
30.792793
86
0.522235
1c8bcbba2e8dbe66dcca76c6c83e1735b8afa044
1,856
py
Python
sympy/strategies/tests/test_rl.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
1
2022-01-17T12:38:24.000Z
2022-01-17T12:38:24.000Z
sympy/strategies/tests/test_rl.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
null
null
null
sympy/strategies/tests/test_rl.py
gum3ng/sympy
e9414fafa976b26aa0b701a0217ab0f3b561989f
[ "BSD-3-Clause" ]
null
null
null
from sympy.core.singleton import S from sympy.strategies.rl import (rm_id, glom, flatten, unpack, sort, distribute, subs, rebuild) from sympy.core.basic import Basic def test_rm_id(): rmzeros = rm_id(lambda x: x == 0) assert rmzeros(Basic(0, 1)) == Basic(1) assert rmzeros(Basic(0, 0)) == Basic(0) ...
29.460317
80
0.606681
4f25c2b59a9426c79388b3325030f9c286f0a6d9
2,042
py
Python
supervised/algorithms/registry.py
eladmw/mljar-supervised
df0257c449a726b8303e7c8a2babe97a02db5003
[ "MIT" ]
null
null
null
supervised/algorithms/registry.py
eladmw/mljar-supervised
df0257c449a726b8303e7c8a2babe97a02db5003
[ "MIT" ]
null
null
null
supervised/algorithms/registry.py
eladmw/mljar-supervised
df0257c449a726b8303e7c8a2babe97a02db5003
[ "MIT" ]
null
null
null
# tasks that can be handled by the package BINARY_CLASSIFICATION = "binary_classification" MULTICLASS_CLASSIFICATION = "multiclass_classification" REGRESSION = "regression" class AlgorithmsRegistry: registry = { BINARY_CLASSIFICATION: {}, MULTICLASS_CLASSIFICATION: {}, REGRESSION: {}, ...
28.760563
82
0.696866
3e1b4af16a0f26e3b3c4b23558c638e351b587dc
633
py
Python
ef/config/data_class.py
JacobMSD/ef_python
13d785c10dd293c60ab90065c518e5afb14e5a02
[ "MIT" ]
null
null
null
ef/config/data_class.py
JacobMSD/ef_python
13d785c10dd293c60ab90065c518e5afb14e5a02
[ "MIT" ]
null
null
null
ef/config/data_class.py
JacobMSD/ef_python
13d785c10dd293c60ab90065c518e5afb14e5a02
[ "MIT" ]
null
null
null
# https://codereview.stackexchange.com/questions/131761/lombokython-automatic-eq-hash-repr # https://github.com/alexprengere/reprmixin class DataClass: repr_arg_separator = ', ' def __eq__(self, other): if isinstance(self, other.__class__): return repr(self) == repr(other) return No...
35.166667
111
0.652449
02cc062fce31b97580b0e852ee0853ae040cd5b7
885
py
Python
yewdoc/__init__.py
paul-wolf/yewdoc-client
590c78cd13001b105526f801ea52ee348ea14906
[ "BSD-3-Clause" ]
8
2017-01-31T12:50:06.000Z
2019-08-04T10:44:44.000Z
yewdoc/__init__.py
paul-wolf/yewdoc-client
590c78cd13001b105526f801ea52ee348ea14906
[ "BSD-3-Clause" ]
5
2017-01-31T17:26:11.000Z
2017-02-06T09:22:23.000Z
yewdoc/__init__.py
paul-wolf/yewdoc-client
590c78cd13001b105526f801ea52ee348ea14906
[ "BSD-3-Clause" ]
3
2017-01-31T17:13:25.000Z
2017-02-14T03:05:33.000Z
# -*- coding: utf-8 -*- """ Yewdocs ~~~~~~~ Yewdocs is a personal document manager that makes creating and editing text documents from the command line easier than using an editor and filesystem commands. :copyright: (c) 2017 by Paul Wolf. :license: BSD, see LICENSE for more details. """ __versio...
14.508197
66
0.574011
b888ccbce0ed336869eea1adde3f1d52767662a1
23,686
py
Python
invenio_records/api.py
max-moser/invenio-records
bb4448a2c2abf448c3ba647590729cd6bc8478df
[ "MIT" ]
null
null
null
invenio_records/api.py
max-moser/invenio-records
bb4448a2c2abf448c3ba647590729cd6bc8478df
[ "MIT" ]
null
null
null
invenio_records/api.py
max-moser/invenio-records
bb4448a2c2abf448c3ba647590729cd6bc8478df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2020 CERN. # Copyright (C) 2021 RERO. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Record API.""" import inspect import warnings from co...
35.142433
79
0.598919
ad8c281250d63a7ebe168051862299a2e048ba2d
267
py
Python
wotpy/codecs/enums.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
24
2019-02-15T09:00:27.000Z
2021-12-23T05:45:03.000Z
wotpy/codecs/enums.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
20
2020-03-17T09:41:51.000Z
2021-07-14T12:29:02.000Z
wotpy/codecs/enums.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
5
2019-10-10T13:38:20.000Z
2021-12-22T14:22:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Enumeration classes related to codecs. """ from wotpy.utils.enums import EnumListMixin class MediaTypes(EnumListMixin): """Enumeration of media types.""" JSON = "application/json" TEXT = "text/plain"
16.6875
43
0.670412
e1fe4819fde6c1d3f977360ff181a50b8c7edf95
1,196
py
Python
src/wrappers/injector.py
ScottDay/DFN-Maintenance-GUI-Backend
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
2
2017-03-31T00:57:35.000Z
2017-08-04T10:38:28.000Z
src/wrappers/injector.py
CPedersen3245/Desert-Fireball-Maintainence-GUI
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
10
2017-03-29T04:13:14.000Z
2017-08-14T06:14:52.000Z
src/wrappers/injector.py
ScottDay/DFN-Maintenance-GUI-Backend
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
4
2017-12-23T03:16:00.000Z
2018-06-20T07:15:50.000Z
from flask import current_app from functools import wraps from inspect import getargspec def injector(function): ''' Injects objects from current_app into the decorated method. Must have the injected objects as params in the decorated method after the methods normal parameters. Can also inject an array of key / ...
27.181818
137
0.737458
4b9ba2f2b6287c2d2acf28938f7a3ee9ce90bf20
5,693
py
Python
inputFiles/ourIA/packagev2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
1
2015-10-07T19:18:55.000Z
2015-10-07T19:18:55.000Z
inputFiles/ourIA/packagev2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
1
2015-10-07T19:28:25.000Z
2015-10-08T19:01:47.000Z
inputFiles/ourIA/packagev2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import lib.utils as u import lib.algorithms as algo import lib.interface as api import math #import statistics as stats IAName = "packagev2" (mazeWidth, mazeHeight, mazeMap, preparationTime, turnTime, playerLocation, opponentLocation, coins, gameIsOver) = api.initGame(I...
37.20915
135
0.596346
8ea4a0ded94a23fa5ffaec0c701833186c345fca
1,991
py
Python
CSCI3230/Assignment 2/CSCI3230_kmeans Clustering.py
Arie123777/cuhkCourseWork
355f1e560ef513f3ba9bec2e9eb35caa1f6f7107
[ "FSFAP" ]
null
null
null
CSCI3230/Assignment 2/CSCI3230_kmeans Clustering.py
Arie123777/cuhkCourseWork
355f1e560ef513f3ba9bec2e9eb35caa1f6f7107
[ "FSFAP" ]
null
null
null
CSCI3230/Assignment 2/CSCI3230_kmeans Clustering.py
Arie123777/cuhkCourseWork
355f1e560ef513f3ba9bec2e9eb35caa1f6f7107
[ "FSFAP" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import math color=['g', 'r', 'b'] tit = ["mm", "Assign Point Clusters", "Update Cluster Centroid"] file = open("CSCI3230_ClusteringData.csv") title = np.loadtxt(file, delimiter=",", dtype = str, max_rows=1) pointData = np.loadtxt(file, delimiter=",") addCol = n...
35.553571
130
0.573581
15a67314918168e0ee60889c1d7aabbea33d5e73
39,368
py
Python
python/tests/sklearn/preprocessing/data_test.py
rodrigo196/mleap
abe8ebc1cf8bfdd7ee732912ef124bb2463b5466
[ "Apache-2.0" ]
1
2020-02-18T22:12:38.000Z
2020-02-18T22:12:38.000Z
python/tests/sklearn/preprocessing/data_test.py
rodrigo196/mleap
abe8ebc1cf8bfdd7ee732912ef124bb2463b5466
[ "Apache-2.0" ]
1
2020-01-30T21:12:13.000Z
2020-01-30T21:12:13.000Z
python/tests/sklearn/preprocessing/data_test.py
juhoautio/mleap
54bc171265e02936d09238ecd0a25fa34efc9c65
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not u...
40.585567
159
0.599675
6b657400b5b437b48b21809bd6801e2ef293e7c5
1,466
py
Python
experiments/examples/example_s2_create_net_bench.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
experiments/examples/example_s2_create_net_bench.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
experiments/examples/example_s2_create_net_bench.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
from uninas.main import Main """ create a bench from a s1 net run example_run_bench_s1.py first most arguments are taken from the s1's run_config, e.g. network design, metrics, trainer, ... beware that s1 may be using fake data """ args = { "cls_task": "CreateSearchNetBenchTask", # "{cls_task}.s1_path": "{p...
30.541667
93
0.683492
d19e67d9bca1408b80fb252808ea3c2fde0245e6
2,142
py
Python
testproject/testproject/app/tests/test_databasewrapper.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
testproject/testproject/app/tests/test_databasewrapper.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
testproject/testproject/app/tests/test_databasewrapper.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from django.core.management.sql import sql_flush from mock import Mock from django_cassandra_engine.test import TestCase from django_cassandra_engine.connection import CassandraConnection from django_cassandra_engine.utils import ( get_cql_models, get_installed_apps, get_cass...
32.454545
78
0.712885
6ef44b81bf58bdc70549197e37f61af852f05994
637
py
Python
dencam/networking.py
icr-ctl/dencam
96618d275f88a5ead7e16475dba41e980fddca21
[ "MIT" ]
2
2021-11-15T16:40:51.000Z
2021-12-02T05:58:25.000Z
dencam/networking.py
icr-ctl/dencam
96618d275f88a5ead7e16475dba41e980fddca21
[ "MIT" ]
37
2020-01-31T02:43:54.000Z
2022-02-11T20:40:37.000Z
dencam/networking.py
icr-ctl/dencam
96618d275f88a5ead7e16475dba41e980fddca21
[ "MIT" ]
3
2021-11-24T21:35:00.000Z
2022-02-10T13:44:32.000Z
import socket import subprocess import netifaces as ni def get_network_info(): interfaces = ni.interfaces() text = (socket.gethostname() + '\n') for interface in interfaces: try: ip = ni.ifaddresses(interface)[ni.AF_INET][0]['addr'] except KeyError: # This try bloc...
26.541667
65
0.569859
eebd988ba99658643b83e7a28b083c7de4d4679b
9,775
py
Python
bin/ADFRsuite/lib/python2.7/site-packages/saga/messages/endpoint.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/saga/messages/endpoint.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/saga/messages/endpoint.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
__author__ = "Andre Merzky" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" import radical.utils.signatures as rus import saga.adaptors.base as sab import saga.attributes as sa import saga.session as ss import saga.task as st import saga.url...
40.226337
104
0.479488
738a4d967fcf397869c7da35cffd6c6a1060e3d6
1,135
py
Python
runtests.py
gonzaloamadio/django-safedelete
3c12f3df926d39339d125e0fdfeeaf55d2ffa7d3
[ "BSD-3-Clause" ]
null
null
null
runtests.py
gonzaloamadio/django-safedelete
3c12f3df926d39339d125e0fdfeeaf55d2ffa7d3
[ "BSD-3-Clause" ]
null
null
null
runtests.py
gonzaloamadio/django-safedelete
3c12f3df926d39339d125e0fdfeeaf55d2ffa7d3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys import django from django.conf import settings from django.test.utils import get_runner if __name__ == '__main__': print("\n#######################################") print(" RUN TESTS WITHOUT BOOLEAN FIELD ") print("#######################################\n") ...
32.428571
88
0.586784
a90ba1493de83d087f51a1cbbd8d4f8978868ccd
4,735
py
Python
src/cmds/create_plots.py
cryptonoob42/chia-blockchain
b6506a67d5b5e2e54c844074872e936dbde5a834
[ "Apache-2.0" ]
null
null
null
src/cmds/create_plots.py
cryptonoob42/chia-blockchain
b6506a67d5b5e2e54c844074872e936dbde5a834
[ "Apache-2.0" ]
null
null
null
src/cmds/create_plots.py
cryptonoob42/chia-blockchain
b6506a67d5b5e2e54c844074872e936dbde5a834
[ "Apache-2.0" ]
null
null
null
import argparse from copy import deepcopy from pathlib import Path from blspy import PrivateKey, PublicKey from chiapos import DiskPlotter from src.types.proof_of_space import ProofOfSpace from src.types.sized_bytes import bytes32 from src.util.config import config_path_for_filename, load_config, save_config from src...
36.423077
104
0.639282
f75a77cf9d9c0d160d5e67a71c082139499d6512
8,242
py
Python
examples/twisted_service.py
bwind/pika
c00648bf40635c8e8032814f30d2488df44961ec
[ "BSD-3-Clause" ]
1
2019-08-28T10:10:56.000Z
2019-08-28T10:10:56.000Z
examples/twisted_service.py
deslum/pika
d8af8a573b3535e02540c2e5a14c7b34e276adc0
[ "BSD-3-Clause" ]
null
null
null
examples/twisted_service.py
deslum/pika
d8af8a573b3535e02540c2e5a14c7b34e276adc0
[ "BSD-3-Clause" ]
null
null
null
""" # -*- coding:utf-8 -*- # based on: # - txamqp-helpers by Dan Siemon <dan@coverfire.com> (March 2010) # http://git.coverfire.com/?p=txamqp-twistd.git;a=tree # - Post by Brian Chandler # https://groups.google.com/forum/#!topic/pika-python/o_deVmGondk # - Pika Documentation # https://pika.readthedocs.io/en...
37.634703
132
0.683329
cea04949bfa5a0fcad51edcae7223b68ae847183
2,619
py
Python
dist/pyecharts/charts/basic_charts/radar.py
dummerchen/epidemic
7b4522f7b2f36739a69ebbf71c91b36db29b8d6c
[ "MIT" ]
1
2020-05-12T13:30:03.000Z
2020-05-12T13:30:03.000Z
dist/pyecharts/charts/basic_charts/radar.py
dummerchen/epidemic
7b4522f7b2f36739a69ebbf71c91b36db29b8d6c
[ "MIT" ]
null
null
null
dist/pyecharts/charts/basic_charts/radar.py
dummerchen/epidemic
7b4522f7b2f36739a69ebbf71c91b36db29b8d6c
[ "MIT" ]
null
null
null
from ... import options as opts from ... import types from ...charts.chart import Chart from ...globals import ChartType class Radar(Chart): """ <<< Radar >>> Radar maps are mainly used to represent multivariable data. """ def add_schema( self, schema: types.Sequence[types.Union[...
32.333333
82
0.556701
ca0d2209d959d1bdd85ae2d1743737a585a73dd2
5,910
py
Python
script.module.fantastic/lib/resources/lib/sources/en/123netflix.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
script.module.fantastic/lib/resources/lib/sources/en/123netflix.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.fantastic/lib/resources/lib/sources/en/123netflix.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
# -*- coding: utf-8 -*- ''' fantastic Add-on 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 pro...
40.758621
135
0.488663
027693db73def88fdc7af12ff3dd5cbdf252c3ba
264
py
Python
ineedtiles.py
Marinkovich77/pands---problems
be732f4e9e3195c3d04947428d179144768a0236
[ "MIT" ]
null
null
null
ineedtiles.py
Marinkovich77/pands---problems
be732f4e9e3195c3d04947428d179144768a0236
[ "MIT" ]
null
null
null
ineedtiles.py
Marinkovich77/pands---problems
be732f4e9e3195c3d04947428d179144768a0236
[ "MIT" ]
null
null
null
#This program calculates how many tiles you #need when tiling a floor (in m2) length = float(input("Enter room length:")) width = float(input("Enter room width:")) area = length * width needed = area * 1.05 print("You need", needed, "tiles in squared metres")
24
52
0.704545
ec2044da94ad30371adc41b552c4ff1c514d9aad
4,634
py
Python
LSDGDALBatchProcessing.py
simon-m-mudd/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
34
2017-01-31T17:03:26.000Z
2021-09-15T17:23:21.000Z
LSDGDALBatchProcessing.py
simon-m-mudd/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
14
2017-01-11T19:45:08.000Z
2020-11-03T16:36:38.000Z
LSDGDALBatchProcessing.py
LSDtopotools/LSDMappingTools
d9137710ea18e54f3dc5b6782c5696cafdd2999f
[ "MIT" ]
21
2015-11-26T10:24:19.000Z
2021-09-15T17:23:22.000Z
# -*- coding: utf-8 -*- """ Created on Wed Sep 09 16:52:27 2015 @author: smudd """ import numpy as np from glob import glob import LSDOSystemTools as LSDost import os import shutil import subprocess # This function looks for all the files of a certain format in a directory and # then translates them into a new forma...
34.842105
98
0.646741
d4de43f82d90871041d37da0cb495053b274f467
22,345
py
Python
swagger_django_generator/generator.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
swagger_django_generator/generator.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
swagger_django_generator/generator.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
import copy import json import os import re import sys import parser import click import jinja2 from swagger_parser import SwaggerParser DEFAULT_OUTPUT_DIR = "./generated" DEFAULT_MODULE = "generated" # Defaults used when the path is "/". ROOT_CLASS_NAME = u"Root" ROOT_OPERATION = u"root" # Known extensions in l...
39.548673
107
0.54567
00ab51945850eed752d1d940ec4d28ae8a5faea7
23,423
py
Python
Lib/site-packages/greenlet/tests/test_greenlet.py
KarmaScripter/PiggyPy
25ba1d0c8933a0cb655f09db6c228f74f4d52894
[ "MIT" ]
null
null
null
Lib/site-packages/greenlet/tests/test_greenlet.py
KarmaScripter/PiggyPy
25ba1d0c8933a0cb655f09db6c228f74f4d52894
[ "MIT" ]
null
null
null
Lib/site-packages/greenlet/tests/test_greenlet.py
KarmaScripter/PiggyPy
25ba1d0c8933a0cb655f09db6c228f74f4d52894
[ "MIT" ]
null
null
null
import gc import sys import time import threading import unittest from abc import ABCMeta, abstractmethod from greenlet import greenlet # We manually manage locks in many tests # pylint:disable=consider-using-with class SomeError(Exception): pass def fmain(seen): try: greenlet.getcurrent().parent.s...
32.130316
92
0.55945
05ef8cb3d6e2cbdd744b9692d7dce6c5717a4789
2,809
py
Python
python_developer_tools/files/xml_utils.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/files/xml_utils.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/files/xml_utils.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:4/29/2021 4:22 PM # @File:xml_utils from xml.dom.minidom import parse from lxml.etree import Element, SubElement, tostring def read_predict_xml(label_path): # 读取xml中的内容 gt_lists = [] # 获取所有xml中object对象 small_dom_tree = parse...
35.1125
85
0.635457
b82a55cad3c44fd3b3b5289b4d34f0e4093fde44
3,528
py
Python
src/eval_classification.py
HuyVu0508/sentence2vector
d3704469d8f256789ce342b81ae1c2e05cf0e97a
[ "MIT" ]
3
2019-02-10T16:35:22.000Z
2020-12-02T15:27:03.000Z
src/eval_classification.py
HuyVu0508/sentence2vector
d3704469d8f256789ce342b81ae1c2e05cf0e97a
[ "MIT" ]
null
null
null
src/eval_classification.py
HuyVu0508/sentence2vector
d3704469d8f256789ce342b81ae1c2e05cf0e97a
[ "MIT" ]
null
null
null
# Experiment scripts for binary classification benchmarks (e.g. MR, CR, MPQA, SUBJ) import numpy as np import sys import nbsvm import dataset_handler from scipy.sparse import hstack from sklearn.linear_model import LogisticRegression from sklearn.cross_validation import KFold def eval_nested_kfold(encoder, name, l...
30.947368
95
0.585034
caebcffd0e966af1dd55eec9fb4b900673c8e66d
6,552
py
Python
python/paddle/fluid/tests/unittests/mkldnn/test_slice_mkldnn_op.py
DesmonDay/Paddle
a082b8d7f11e4d366d814b0dfc22b7b42edaba8f
[ "Apache-2.0" ]
1
2021-09-06T15:52:29.000Z
2021-09-06T15:52:29.000Z
python/paddle/fluid/tests/unittests/mkldnn/test_slice_mkldnn_op.py
XYZ916829/Paddle
1833a2311a9528b09ccba6ed8ebfa104db5147ff
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/mkldnn/test_slice_mkldnn_op.py
XYZ916829/Paddle
1833a2311a9528b09ccba6ed8ebfa104db5147ff
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 app...
32.76
92
0.607601
a343c23484eb1b9cf7679d226a6f56c2c141186e
248
py
Python
airbyte-integrations/connectors/source-harvest/main.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
airbyte-integrations/connectors/source-harvest/main.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
airbyte-integrations/connectors/source-harvest/main.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
1
2020-09-15T06:10:01.000Z
2020-09-15T06:10:01.000Z
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import sys from airbyte_cdk.entrypoint import launch from source_harvest import SourceHarvest if __name__ == "__main__": source = SourceHarvest() launch(source, sys.argv[1:])
17.714286
56
0.729839
daea384c2220ea044a0e7b537ba656e4cb043997
2,998
py
Python
allennlp/data/dataset_readers/__init__.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/__init__.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/__init__.py
entslscheia/allennlp
eeba62e34c8e211ed5963f830528c957f178607b
[ "Apache-2.0" ]
1
2021-09-21T12:03:27.000Z
2021-09-21T12:03:27.000Z
""" A :class:`~allennlp.data.dataset_readers.dataset_reader.DatasetReader` reads a file and converts it to a collection of :class:`~allennlp.data.instance.Instance` s. The various subclasses know how to read specific filetypes and produce datasets in the formats required by specific models. """ from allennlp.data.dat...
51.689655
99
0.878586