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
b592d59715e6a8a565150fd2e350af229c86b8f9
636,289
py
Python
playwright/async_api/_generated.py
elkd/playwright-python
417a5b04628c769446665010f9232ec0bfbc7581
[ "Apache-2.0" ]
2
2022-02-18T02:16:31.000Z
2022-02-26T05:44:25.000Z
playwright/async_api/_generated.py
jiyulongxu/playwright-python
417a5b04628c769446665010f9232ec0bfbc7581
[ "Apache-2.0" ]
null
null
null
playwright/async_api/_generated.py
jiyulongxu/playwright-python
417a5b04628c769446665010f9232ec0bfbc7581
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
40.348066
287
0.608277
21bea60146ac987bed3e96b45d7f3ef1d3283dda
38,998
py
Python
guild/util.py
jukiewiczm/guildai
478cc29cb102a8bd0bed693ce9626fe4949257a2
[ "Apache-2.0" ]
null
null
null
guild/util.py
jukiewiczm/guildai
478cc29cb102a8bd0bed693ce9626fe4949257a2
[ "Apache-2.0" ]
null
null
null
guild/util.py
jukiewiczm/guildai
478cc29cb102a8bd0bed693ce9626fe4949257a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2019 TensorHub, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
28.116799
79
0.605467
bc5982c5b8d892b0cb6de24f3efc01c078e08bf5
1,000
py
Python
Code/Scripts/pyplot_test_hour_March_1.py
vr97/finalyearproject2018-19
4a19fa5f06d6ea37df3aa2cf50ad888278081300
[ "MIT" ]
1
2020-03-11T14:32:28.000Z
2020-03-11T14:32:28.000Z
Code/Scripts/pyplot_test_hour_March_1.py
vr97/finalyearproject2018-19
4a19fa5f06d6ea37df3aa2cf50ad888278081300
[ "MIT" ]
null
null
null
Code/Scripts/pyplot_test_hour_March_1.py
vr97/finalyearproject2018-19
4a19fa5f06d6ea37df3aa2cf50ad888278081300
[ "MIT" ]
null
null
null
# plotly.offline doesn't push your charts to the clouds import plotly.offline as pyo # allows us to create the Data and Figure objects from plotly.graph_objs import * # plotly.plotly pushes your charts to the cloud import plotly.plotly as py import plotly.io as pio # pandas is a data analysis library import pandas as ...
33.333333
130
0.683
8681dc9beb7ce1fcfe008337221dc6feb16aedb5
1,888
py
Python
conan/tools/env/virtualrunenv.py
dscole/conan
ff7b8e6703e8407773968517d68424b9ec59aa30
[ "MIT" ]
null
null
null
conan/tools/env/virtualrunenv.py
dscole/conan
ff7b8e6703e8407773968517d68424b9ec59aa30
[ "MIT" ]
1
2019-06-07T03:02:02.000Z
2019-06-07T03:02:02.000Z
conan/tools/env/virtualrunenv.py
dscole/conan
ff7b8e6703e8407773968517d68424b9ec59aa30
[ "MIT" ]
1
2021-08-20T19:47:51.000Z
2021-08-20T19:47:51.000Z
from conan.tools.env import Environment def runenv_from_cpp_info(conanfile, cpp_info): """ return an Environment deducing the runtime information from a cpp_info """ dyn_runenv = Environment(conanfile) if cpp_info is None: # This happens when the dependency is a private one = BINARY_SKIP retu...
37.76
94
0.697034
e837b70dfe5858ccfaf8848ed5e2a36045d84919
2,976
py
Python
django_evolution/tests/delete_app.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
1
2016-05-09T04:23:18.000Z
2016-05-09T04:23:18.000Z
django_evolution/tests/delete_app.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
null
null
null
django_evolution/tests/delete_app.py
clones/django-evolution
34b1131873da463d22801d8b845a72f35cb367bd
[ "BSD-3-Clause" ]
null
null
null
from django_evolution.tests.utils import test_sql_mapping tests = r""" >>> from datetime import datetime >>> from pprint import PrettyPrinter >>> from django.db import models >>> from django_evolution.mutations import AddField, DeleteField, DeleteApplication >>> from django_evolution.tests.utils import test_proj_sig...
32.703297
112
0.72379
f7617c3cfd4be1e85e7376d2ce6ae6e779351b16
5,746
py
Python
riptide_vision/scripts/riptide_vision/oculus.py
clabough2/riptide_software
3ac70fac9e2fb6a5a7f761939a9b5c401605ad27
[ "BSD-2-Clause" ]
null
null
null
riptide_vision/scripts/riptide_vision/oculus.py
clabough2/riptide_software
3ac70fac9e2fb6a5a7f761939a9b5c401605ad27
[ "BSD-2-Clause" ]
null
null
null
riptide_vision/scripts/riptide_vision/oculus.py
clabough2/riptide_software
3ac70fac9e2fb6a5a7f761939a9b5c401605ad27
[ "BSD-2-Clause" ]
1
2019-08-29T03:39:56.000Z
2019-08-29T03:39:56.000Z
#!/usr/bin/env python # oculus.py # Subscribes to camera output, publishes data about what it sees. # Determines what to look for based on what is being subscribed to. import rospy from cv_bridge import CvBridge from sensor_msgs.msg import Image, CompressedImage from riptide_vision import RiptideVision from gate_proce...
35.251534
104
0.626349
3c134ae24735cd132070e47f5cc33959d1fb05c4
19,708
py
Python
pointnav_vo/utils/rotation_utils.py
rxlqn/PointNav-VO
6f7672482a3f1628a3b11025709518ee166e812b
[ "Apache-2.0" ]
25
2021-08-28T04:06:31.000Z
2022-03-02T23:03:13.000Z
pointnav_vo/utils/rotation_utils.py
rxlqn/PointNav-VO
6f7672482a3f1628a3b11025709518ee166e812b
[ "Apache-2.0" ]
11
2021-10-01T07:03:11.000Z
2022-03-26T02:28:44.000Z
pointnav_vo/utils/rotation_utils.py
rxlqn/PointNav-VO
6f7672482a3f1628a3b11025709518ee166e812b
[ "Apache-2.0" ]
5
2021-09-01T09:05:42.000Z
2022-01-27T10:11:37.000Z
# based on https://github.com/facebookresearch/pytorch3d/blob/7e986cfba8e8e09fbd24ffc1cbfef2914681e02c/pytorch3d/transforms/rotation_conversions.py#L216 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import functools import numpy as np from typing import Optional import torch import torch.nn...
33.178451
152
0.61782
44b0cfe3848ff552fe398a86ccb35dd75072bd64
25,392
py
Python
swagger_client/api/alliance_api.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/api/alliance_api.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/api/alliance_api.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library impo...
44.16
187
0.631301
a0463744e8bf0eaa9e6650f0b00b58e52abf5a62
764
py
Python
denoiser.py
rodrivaldivia/TPP
c9e158d663c34fc9a4fedf116d2930f4d9ea675b
[ "MIT" ]
1
2020-01-11T17:58:45.000Z
2020-01-11T17:58:45.000Z
denoiser.py
rodrivaldivia/TPP
c9e158d663c34fc9a4fedf116d2930f4d9ea675b
[ "MIT" ]
null
null
null
denoiser.py
rodrivaldivia/TPP
c9e158d663c34fc9a4fedf116d2930f4d9ea675b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from PIL import Image, ImageEnhance def load_train_img(fileName): im = Image.open(fileName) im = im.point(lambda i:i*(1./256)).convert('L') return im def load_img(num): fileName = 'Images/canal_1/s_C001T' fileName += '%0*d' % (3, num) fileName += '.tif' ret...
23.151515
54
0.689791
a4954502f262a460938cfd0fc0909d31e453805d
19,664
py
Python
test/test_python_dispatch.py
PaliC/pytorch
d1a5612a3ea501b83a80b9ecfd6b4dd5eb125181
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/test_python_dispatch.py
Jam3/pytorch
33d8769c285b51922c378d11a90a442a28e06762
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/test_python_dispatch.py
Jam3/pytorch
33d8769c285b51922c378d11a90a442a28e06762
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import torch from torch.testing._internal.common_utils import TestCase, run_tests from torch.utils._pytree import tree_map from torch.utils._python_dispatch import enable_python_mode from typing import Iterator, List import logging import contextlib import itertools # TODO: move this into library proper @contextlib.c...
37.38403
115
0.596928
9b7eacbed08c76a22d14a2b1abaf23e1bc3fc951
2,208
py
Python
tests/integration/internal/test_cache.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
1
2019-06-13T20:47:59.000Z
2019-06-13T20:47:59.000Z
tests/integration/internal/test_cache.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
12
2019-06-13T23:32:59.000Z
2019-08-27T01:24:57.000Z
tests/integration/internal/test_cache.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
3
2019-06-13T20:50:01.000Z
2019-08-29T19:34:31.000Z
from spccore.internal.cache import * def test_setup(cache, file_handle_id, file_path): exist_file_paths = cache.get_all_unmodified_cached_file_paths(file_handle_id) file_path = normalize_path(file_path) assert file_path not in exist_file_paths def test_download_default_location_empty_cache(cache, file_...
37.423729
85
0.806159
78d8609ad1eb50a393467ff76ac367831a839562
3,677
py
Python
selfdrive/car/hyundai/hyundaican.py
DYI-Hi/First
a79e53a98f424b54f078c617178493d643af71e0
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/hyundaican.py
DYI-Hi/First
a79e53a98f424b54f078c617178493d643af71e0
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/hyundaican.py
DYI-Hi/First
a79e53a98f424b54f078c617178493d643af71e0
[ "MIT" ]
null
null
null
import crcmod import copy from common.params import Params from selfdrive.car.hyundai.values import CAR, CHECKSUM hyundai_checksum = crcmod.mkCrcFun(0x11D, initCrc=0xFD, rev=False, xorOut=0xdf) def create_lkas11(packer, frame, car_fingerprint, apply_steer, steer_req, lkas11, sys_warning, sys_state,...
34.364486
109
0.699483
6cfdaa48475cdbc9517a8bf0051c53aad5500508
10,118
py
Python
EHR_Only/GBT/Comp_D_SMOTE_GBT_EHR.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
EHR_Only/GBT/Comp_D_SMOTE_GBT_EHR.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
EHR_Only/GBT/Comp_D_SMOTE_GBT_EHR.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd medicare = pd.read_csv("/netapp2/home/se197/data/CMS/Data/medicare.csv") train_set = medicare[medicare.Hospital != 'BWH'] # MGH; n = 204014 validation_set = medicare[medicare.Hospital == 'BWH'] # BWH and Neither; n = 115726 import numpy as np fif...
36.792727
169
0.746788
7049111a66ab9ff1170ef5dfd1392d143a82ddb8
4,035
py
Python
glearn/networks/layers/conv2d.py
glennpow/glearn
e50046cb76173668fec12c20b446be7457482528
[ "MIT" ]
null
null
null
glearn/networks/layers/conv2d.py
glennpow/glearn
e50046cb76173668fec12c20b446be7457482528
[ "MIT" ]
null
null
null
glearn/networks/layers/conv2d.py
glennpow/glearn
e50046cb76173668fec12c20b446be7457482528
[ "MIT" ]
null
null
null
import tensorflow as tf from .layer import NetworkLayer class Conv2dLayer(NetworkLayer): def __init__(self, network, index, filters, input_shape=None, strides=1, padding="SAME", activation=tf.nn.relu, lrn=None, pooling="max", pool_k=2, pool_strides=2, batch_norm=...
41.597938
92
0.537794
1de56fda9da25d322af2c842d4f086e1ba02789f
6,279
py
Python
rcsdk/http/response_test.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
rcsdk/http/response_test.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
rcsdk/http/response_test.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import unittest from ..test import TestCase, Spy from .response import Response class TestSubscription(TestCase): def test_multipart(self): goodMultipartMixedResponse = "Content-Type: multipart/mixed; boundary=Boundary_1245_945802293_1394135045248\n" + \ ...
54.6
131
0.309763
1cd997f4cd1f7a188881677333e404e1f5b3dff5
7,486
py
Python
syspy/spatial/geometries.py
opensystra/systra
442a884ba17dc0a04d0421d0072f7239ef28ab0d
[ "CECILL-B" ]
3
2017-10-02T10:03:30.000Z
2019-02-25T15:35:52.000Z
syspy/spatial/geometries.py
opensystra/systra
442a884ba17dc0a04d0421d0072f7239ef28ab0d
[ "CECILL-B" ]
null
null
null
syspy/spatial/geometries.py
opensystra/systra
442a884ba17dc0a04d0421d0072f7239ef28ab0d
[ "CECILL-B" ]
null
null
null
""" This module provides tools for geometry processing. """ __author__ = 'qchasserieau' from tqdm import tqdm import shapely import json from math import pi import numpy as np import pandas as pd def reversed_polyline(polyline): coords = list(polyline.coords) return shapely.geometry.LineString(reversed(coord...
29.472441
110
0.669249
a5175332fd9c8c7c2e0269b553f925e31594efa9
13,926
py
Python
sdk/python/pulumi_azure_native/apimanagement/v20180601preview/api_operation_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20180601preview/api_operation_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20180601preview/api_operation_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
49.208481
1,593
0.670185
6734dd59a05a8782b0d4e666c59e512550989cf0
104
py
Python
models/experiment_5_no_dropout.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-11-07T07:12:15.000Z
2020-11-07T07:12:15.000Z
models/experiment_5_no_dropout.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-09-25T19:51:13.000Z
2020-09-25T19:51:13.000Z
models/experiment_5_no_dropout.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-11-07T08:57:46.000Z
2020-11-07T08:57:46.000Z
from models import experiment_5 class Model(experiment_5.Model): n_filters = 32 dropout = .0
13
32
0.711538
a58fe5bad04cbad047d60dfa984c348f1f7c380d
6,174
py
Python
tests/integration/test_table.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
1
2022-03-09T18:57:43.000Z
2022-03-09T18:57:43.000Z
tests/integration/test_table.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
23
2022-02-15T09:49:38.000Z
2022-03-21T13:20:18.000Z
tests/integration/test_table.py
firebolt-db/firebolt-cli
6ca12722646d2a7a0f0abb1664d5eb48076354ed
[ "Apache-2.0" ]
1
2022-03-18T08:37:35.000Z
2022-03-18T08:37:35.000Z
import pytest import yaml from click.testing import CliRunner from firebolt_cli.main import main def drop_table(table_name: str, cli_runner: CliRunner): """ Drop table by its name """ sql = f"DROP table {table_name}" result = cli_runner.invoke(main, ["query", "--sql", sql]) assert result.ex...
25.725
86
0.631357
6e851e34e3972da0576f9d3e9be1882ca6b98dca
1,453
py
Python
manage.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
manage.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
manage.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
import os import json import argparse import requests from songfoo_reports.core import db from songfoo_reports.models import Post def create_sample_db_entry(api_endpoint, payload): url = 'http://localhost:5000/' + api_endpoint r = requests.post( url, data=json.dumps(payload), headers={'Conten...
24.216667
73
0.624914
0e994dee750b9342ceb580bab82f7f25e18071fe
1,778
py
Python
shoppingcart/shoppingcart/urls.py
bsurajbh/shopping-cart
04588d5fe7b4afffc831f82209ec2e9949bd4ba0
[ "MIT" ]
null
null
null
shoppingcart/shoppingcart/urls.py
bsurajbh/shopping-cart
04588d5fe7b4afffc831f82209ec2e9949bd4ba0
[ "MIT" ]
null
null
null
shoppingcart/shoppingcart/urls.py
bsurajbh/shopping-cart
04588d5fe7b4afffc831f82209ec2e9949bd4ba0
[ "MIT" ]
null
null
null
"""shoppingcart URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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-...
32.925926
77
0.663105
ef168d2d9217519aa2a2247011b45b1101e39337
290,845
py
Python
python/paddle/fluid/optimizer.py
xingjing1/Paddle
af886995ac38bd26588de33205a19eb1e72fecbf
[ "Apache-2.0" ]
3
2017-05-11T11:10:13.000Z
2017-10-23T09:13:14.000Z
python/paddle/fluid/optimizer.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/optimizer.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
1
2021-08-12T02:27:50.000Z
2021-08-12T02:27:50.000Z
# Copyright (c) 2019 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 appli...
43.325637
234
0.574653
54594900f1ceb25b6798dc6d10a3b867195106de
2,271
py
Python
migrations/versions/ae445547adca_.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
migrations/versions/ae445547adca_.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
migrations/versions/ae445547adca_.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
"""empty message Revision ID: ae445547adca Revises: 746a4f80890c Create Date: 2022-02-14 16:37:48.478006 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ae445547adca' down_revision = '746a4f80890c' branch_labels = None depends_on = None def upgrade(): # ...
37.85
92
0.674593
a07cc7aa610c0a4ed4ccf9df508952d1e6f04364
2,193
py
Python
hbridgeTest.py
Jelby/HatalogicoPython
2cc00fd3ec4d5f3dfcca2608c2cfcbe62dc75520
[ "MIT" ]
null
null
null
hbridgeTest.py
Jelby/HatalogicoPython
2cc00fd3ec4d5f3dfcca2608c2cfcbe62dc75520
[ "MIT" ]
null
null
null
hbridgeTest.py
Jelby/HatalogicoPython
2cc00fd3ec4d5f3dfcca2608c2cfcbe62dc75520
[ "MIT" ]
null
null
null
#!/usr/bin/python # =========================================================================== # Hatalogico Example H-Bridge Motor Driver - powered by Adafruit's Libraries # ------------------------------------------------- # Date: 21/4/2015 # SWritten By: John Lumley # # BIG THANKS TO ADAFRUIT INDUSTRIES FOR MAKING ...
20.305556
77
0.652987
295191dadc479ae027a77ddec1159f387c5c9bce
9,367
py
Python
tests/test_resolver.py
ulb-sachsen-anhalt/core
9567190aaceba7f6d24d169633d698382065533a
[ "Apache-2.0" ]
91
2018-05-23T12:52:11.000Z
2022-03-19T20:43:49.000Z
tests/test_resolver.py
ulb-sachsen-anhalt/core
9567190aaceba7f6d24d169633d698382065533a
[ "Apache-2.0" ]
636
2018-04-23T15:57:31.000Z
2022-03-31T11:46:11.000Z
tests/test_resolver.py
ulb-sachsen-anhalt/core
9567190aaceba7f6d24d169633d698382065533a
[ "Apache-2.0" ]
25
2018-05-22T11:53:09.000Z
2021-07-20T13:07:43.000Z
# -*- coding: utf-8 -*- import os import shutil from pathlib import ( Path ) from unittest import ( mock ) from PIL import ( Image ) from ocrd_models.ocrd_page import OcrdPage import pytest from tests.base import ( assets, main ) from ocrd.resolver import Resolver from ocrd_utils import pushd_...
33.09894
122
0.69873
2659ccf977a89d6aa984c105d9d2c397596298fd
4,269
py
Python
back-end/www/model/pytorch_cnn_tc.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
88
2019-05-29T07:38:45.000Z
2022-03-17T01:50:50.000Z
back-end/www/model/pytorch_cnn_tc.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
6
2019-05-30T08:47:07.000Z
2021-09-01T07:45:54.000Z
back-end/www/model/pytorch_cnn_tc.py
yenchiah/deep-smoke-machine
5f779f723a3c891145db43663c8825f9ab55dc74
[ "BSD-3-Clause" ]
22
2019-06-17T01:15:35.000Z
2021-11-17T10:29:00.000Z
import torch import torch.nn as nn import torchvision import numpy as np from model.pytorch_i3d import Unit3D from model.timeception.nets import timeception_pytorch # 2D CNN + Timeception # Timeception for Complex Action Recognition # https://arxiv.org/abs/1812.01289 class CnnTc(nn.Module): def __init__(self, in...
45.414894
108
0.57859
702e5e22e6840dd3214132bba22046f5e2e80ed2
52
py
Python
ssseg/modules/models/segmentors/__init__.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
41
2021-08-28T01:29:19.000Z
2022-03-30T11:28:37.000Z
ssseg/modules/models/segmentors/__init__.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
6
2021-08-31T08:54:39.000Z
2021-11-02T10:45:47.000Z
ssseg/modules/models/segmentors/__init__.py
zhizhangxian/sssegmentation
90613f6e0abf4cdd729cf382ab2a915e106d8649
[ "MIT" ]
1
2021-09-08T01:41:10.000Z
2021-09-08T01:41:10.000Z
'''initialize''' from .builder import BuildSegmentor
26
35
0.788462
7284377bc0d41aa1ceb1b9232a038e9cad01d1f0
6,909
py
Python
bindings/python/ensmallen_graph/datasets/string/microbacteriumparaoxydansdh1b.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/microbacteriumparaoxydansdh1b.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/microbacteriumparaoxydansdh1b.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Microbacterium paraoxydans DH1b. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datet...
36.172775
223
0.712404
b92861d6ad8e471b26f744fa26062be7f6686dcb
389
py
Python
solved/solved/asgi.py
Keril-png/solved-project
48082adc66f0e738b23e6e11693b4000a4ca39fd
[ "MIT" ]
null
null
null
solved/solved/asgi.py
Keril-png/solved-project
48082adc66f0e738b23e6e11693b4000a4ca39fd
[ "MIT" ]
null
null
null
solved/solved/asgi.py
Keril-png/solved-project
48082adc66f0e738b23e6e11693b4000a4ca39fd
[ "MIT" ]
null
null
null
""" ASGI config for solved project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
18bf14ea5f79026caa63ee777b20ebf73cec5152
1,068
py
Python
rpcgrid/aio/providers/local.py
urands/rpcgrid
352d757828918798053d583596cdd3e174a9ec51
[ "Apache-2.0" ]
2
2021-05-19T14:08:29.000Z
2021-10-06T09:18:51.000Z
rpcgrid/aio/providers/local.py
urands/rpcgrid
352d757828918798053d583596cdd3e174a9ec51
[ "Apache-2.0" ]
null
null
null
rpcgrid/aio/providers/local.py
urands/rpcgrid
352d757828918798053d583596cdd3e174a9ec51
[ "Apache-2.0" ]
null
null
null
import asyncio from rpcgrid.aio.providers.base import AsyncBaseProvider class LocalProvider(AsyncBaseProvider): _protocol = None _queue = None _remote_queue = None _timeout = None def __init__(self, protocol): self._protocol = protocol self._queue = asyncio.Queue() def is_co...
23.217391
72
0.627341
e8e4d43f10fe5e673f9038194c5c83c396faec73
4,093
py
Python
ppocr/data/imaug/make_shrink_map.py
lzmisscc/PaddleOCR
c4620dbdb4757858c3d2986dc9cdebe96e66beca
[ "Apache-2.0" ]
4
2021-03-09T03:31:51.000Z
2021-06-11T04:13:35.000Z
ppocr/data/imaug/make_shrink_map.py
lzmisscc/PaddleOCR
c4620dbdb4757858c3d2986dc9cdebe96e66beca
[ "Apache-2.0" ]
null
null
null
ppocr/data/imaug/make_shrink_map.py
lzmisscc/PaddleOCR
c4620dbdb4757858c3d2986dc9cdebe96e66beca
[ "Apache-2.0" ]
1
2021-04-13T08:08:47.000Z
2021-04-13T08:08:47.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import cv2 from shapely.geometry import Polygon import pyclipper __all__ = ['MakeShrinkMap'] class MakeShrinkMap(object): ...
38.252336
93
0.536281
637fdbeb5f19566016822566fefd39854900a8c3
121
py
Python
my3d/__init__.py
zachbateman/my3d
27ad10bd3025727fedc71ba0a3efda11c1e783dc
[ "MIT" ]
null
null
null
my3d/__init__.py
zachbateman/my3d
27ad10bd3025727fedc71ba0a3efda11c1e783dc
[ "MIT" ]
null
null
null
my3d/__init__.py
zachbateman/my3d
27ad10bd3025727fedc71ba0a3efda11c1e783dc
[ "MIT" ]
null
null
null
from .world import World from . import entities from .entities import Entity, Point, Line, TextPane, Pipe, Sphere, Plane
30.25
72
0.77686
3fe5de342d8cbb6ed28a458cff56e33f0a180054
1,160
py
Python
messengerext/home/migrations/0011_event.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
6
2016-10-07T13:43:17.000Z
2017-10-07T22:34:44.000Z
messengerext/home/migrations/0011_event.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
null
null
null
messengerext/home/migrations/0011_event.py
groupsome/groupsome
4edcf30d66ff458c4df37d3198ef187219a768d7
[ "MIT" ]
1
2020-07-15T04:29:31.000Z
2020-07-15T04:29:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-01 08:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0010_auto_20160530_2015'), ] operations = [...
35.151515
114
0.583621
5d8c3c593f147358a7c14aaec1c1f2bc347ee464
3,175
py
Python
src/win.py
Mattias1/graph-tools
173c3601b91e12ebc8dbb8c27d243a74f6f4613b
[ "MIT" ]
null
null
null
src/win.py
Mattias1/graph-tools
173c3601b91e12ebc8dbb8c27d243a74f6f4613b
[ "MIT" ]
null
null
null
src/win.py
Mattias1/graph-tools
173c3601b91e12ebc8dbb8c27d243a74f6f4613b
[ "MIT" ]
null
null
null
""" Module containing Win class. The Win class is meant to hide some common interaction with the canvas and provide some default or needed functionality for all window objects. """ from tkinter import * from PIL import Image, ImageTk, ImageDraw from .settings import * from .colors import * class Win: """Abstract ...
30.825243
110
0.605039
d4c60b349ed62b3c6dd41c698bfc6a76c56c6fe8
3,611
py
Python
tempest/api/compute/admin/test_simple_tenant_usage.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
2
2015-08-13T00:07:49.000Z
2020-08-07T06:38:44.000Z
tempest/api/compute/admin/test_simple_tenant_usage.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
1
2019-08-08T10:36:44.000Z
2019-08-09T05:58:23.000Z
tempest/api/compute/admin/test_simple_tenant_usage.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
5
2016-06-24T20:03:52.000Z
2020-02-05T10:14:54.000Z
# Copyright 2013 NEC Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
39.25
78
0.683744
457e24632a032a8570bd0202286ce93c186089e2
1,285
py
Python
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
import sys import json from pathlib import Path from unittest.mock import patch import pytest from conftest import FakeFile, config @patch.object(sys, "argv", ["backup_utils", "-v"]) def test_version(capsys): from backup_utils import main, __version__ with pytest.raises(SystemExit): main() cap...
25.7
68
0.650584
5450f219423e469bc6eecfbd4687158cb6c3b9a7
2,420
py
Python
evaluate/Fly-LSH-master/.ipynb_checkpoints/flylsh-checkpoint.py
andrewluetgers/flylsh
7a1210e59a0e16ea7fcf111e94b6dd5e5f51a56f
[ "0BSD" ]
5
2017-11-19T09:06:31.000Z
2021-07-29T21:23:32.000Z
evaluate/Fly-LSH-master/.ipynb_checkpoints/flylsh-checkpoint.py
andrewluetgers/flylsh
7a1210e59a0e16ea7fcf111e94b6dd5e5f51a56f
[ "0BSD" ]
null
null
null
evaluate/Fly-LSH-master/.ipynb_checkpoints/flylsh-checkpoint.py
andrewluetgers/flylsh
7a1210e59a0e16ea7fcf111e94b6dd5e5f51a56f
[ "0BSD" ]
2
2019-10-29T02:32:40.000Z
2021-07-29T16:54:11.000Z
import numpy as np class flylsh(object): def __init__(self,data,hash_length,sampling_ratio,embedding_size): """ data: Nxd matrix hash_length: scalar sampling_ratio: fraction of input dims to sample from when producing a hash embedding_size: dimensionality of projection space...
43.214286
112
0.647521
936977ad51968a090a61b7defaf1447962400b72
1,500
py
Python
scrapers/reddit-scraper/cloudsearch.py
BU-Spark/scraping_resources
09fc426d16977caab2dd85246e0b56cd773103f2
[ "MIT" ]
8
2020-10-14T13:38:14.000Z
2021-10-03T19:14:41.000Z
scrapers/reddit-scraper/cloudsearch.py
BU-Spark/scraping_resources
09fc426d16977caab2dd85246e0b56cd773103f2
[ "MIT" ]
null
null
null
scrapers/reddit-scraper/cloudsearch.py
BU-Spark/scraping_resources
09fc426d16977caab2dd85246e0b56cd773103f2
[ "MIT" ]
4
2020-10-14T13:38:46.000Z
2021-03-02T23:35:28.000Z
import os import sys import praw from datetime import datetime from config import * from image_resolver import * from task_downloader import * if __name__ == '__main__': reddit = praw.Reddit(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, password=PASSWORD, ...
27.777778
106
0.586
3b47bf1604e75bd21e58551829ea7a20fae2097e
5,097
py
Python
pybamm/models/submodels/thermal/pouch_cell/pouch_cell_1D_current_collectors.py
NunoEdgarGFlowHub/PyBaMM
4e4e1ab8c488b0c0a6efdb9934c5ac59e947a190
[ "BSD-3-Clause" ]
1
2021-03-06T15:10:34.000Z
2021-03-06T15:10:34.000Z
pybamm/models/submodels/thermal/pouch_cell/pouch_cell_1D_current_collectors.py
NunoEdgarGFlowHub/PyBaMM
4e4e1ab8c488b0c0a6efdb9934c5ac59e947a190
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/submodels/thermal/pouch_cell/pouch_cell_1D_current_collectors.py
NunoEdgarGFlowHub/PyBaMM
4e4e1ab8c488b0c0a6efdb9934c5ac59e947a190
[ "BSD-3-Clause" ]
null
null
null
# # Class for one-dimensional thermal submodel for use in the "1+1D" pouch cell model # import pybamm from ..base_thermal import BaseThermal class CurrentCollector1D(BaseThermal): """ Class for one-dimensional thermal submodel for use in the "1+1D" pouch cell model. The thermal model is averaged in the x...
35.151724
86
0.623112
b6d9ad9a1bf29c6923ac0de39f72ea76eb967892
3,121
py
Python
fairing/deployers/gcp/gcpserving.py
rbrishabh/fairing
929cfdb455366a9bebc0df676f3461308db32f1b
[ "Apache-2.0" ]
null
null
null
fairing/deployers/gcp/gcpserving.py
rbrishabh/fairing
929cfdb455366a9bebc0df676f3461308db32f1b
[ "Apache-2.0" ]
null
null
null
fairing/deployers/gcp/gcpserving.py
rbrishabh/fairing
929cfdb455366a9bebc0df676f3461308db32f1b
[ "Apache-2.0" ]
null
null
null
from fairing.deployers.deployer import DeployerInterface from fairing.cloud.gcp import guess_project_name from fairing import http_utils from googleapiclient import discovery from googleapiclient import errors # TODO: Implement predict and delete methods. class GCPServingDeployer(DeployerInterface): """Handle dep...
40.532468
108
0.607498
82470e90dac3e8ff0d90a0b59c52cf15f084e038
3,065
py
Python
drafts/overdata/overdata/worker.py
tekhnus/misc
cf4c6e29434c546e3c29f24f7bb16a0ac65005f5
[ "Unlicense" ]
null
null
null
drafts/overdata/overdata/worker.py
tekhnus/misc
cf4c6e29434c546e3c29f24f7bb16a0ac65005f5
[ "Unlicense" ]
null
null
null
drafts/overdata/overdata/worker.py
tekhnus/misc
cf4c6e29434c546e3c29f24f7bb16a0ac65005f5
[ "Unlicense" ]
null
null
null
import json import pathlib class Worker: def process(self, key, row): raise NotImplementedError("process not implemented") def close(self): return iter([]) class Compose(Worker): def __init__(self, left, right): self._left = left self._right = right def process(self...
28.915094
104
0.602284
a8a3596ff22145fe57876339448ce76ab7bb8a47
1,445
py
Python
mlmodels/linearregression.py
BoxFishLab/Pandora.Wiki
d6bb80b740493a52e7e75729b36b487c91d173f6
[ "MIT" ]
2
2018-12-13T08:46:09.000Z
2019-09-23T03:57:40.000Z
mlmodels/linearregression.py
BoxFishLab/Pandora.Wiki
d6bb80b740493a52e7e75729b36b487c91d173f6
[ "MIT" ]
2
2021-09-25T02:52:26.000Z
2021-09-25T02:52:42.000Z
mlmodels/linearregression.py
Charben/Pandora.Wiki
d6bb80b740493a52e7e75729b36b487c91d173f6
[ "MIT" ]
1
2021-06-28T06:13:27.000Z
2021-06-28T06:13:27.000Z
#/usr/bin/env python #-*- coding: utf-8 -*- ''' 线性回归模型 ''' from .basicmodel import BasicModule #基本模型 import torch as t from torch import nn from torch.autograd import Variable as V from torch import optim class LinearRegression(BasicModule): def __init__(self,data,max_item=100000,aphla=0.01): super(LinearRegres...
21.567164
66
0.642907
2b82b446ea3d6a41404d6547d21bf6a5ff86de84
6,770
py
Python
test/functional/feature_nulldummy.py
taler-project/taler
0abb53afc6c8c4593411499f012fa75114313f3e
[ "MIT" ]
16
2017-11-21T10:42:25.000Z
2021-02-26T11:30:53.000Z
test/functional/feature_nulldummy.py
taler-project/taler
0abb53afc6c8c4593411499f012fa75114313f3e
[ "MIT" ]
2
2018-01-07T12:47:43.000Z
2018-12-06T11:42:20.000Z
test/functional/feature_nulldummy.py
taler-project/taler
0abb53afc6c8c4593411499f012fa75114313f3e
[ "MIT" ]
15
2017-11-22T05:46:27.000Z
2021-02-06T18:10:27.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Taler Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test NULLDUMMY softfork. Connect to a single node. Generate 2 blocks (save the coinbases for later). Gen...
50.522388
173
0.701625
55a44853afb41d148d9232da59faeb1541bb0890
1,661
py
Python
goatools/grouper/tasks.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
477
2015-02-10T06:54:42.000Z
2022-03-15T12:36:11.000Z
goatools/grouper/tasks.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
174
2015-02-05T18:11:14.000Z
2022-03-29T10:24:19.000Z
goatools/grouper/tasks.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
202
2015-01-21T12:29:23.000Z
2022-03-01T13:26:05.000Z
"""Tasks for grouping.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" from goatools.grouper.hdrgos import HdrgosSections class SummarySec2dHdrGos(object): """Summary for a sections variable containing sets of header GO IDs.""" def ...
37.75
89
0.637568
9cfb810d45bbb8049f282d0d6e369131f7fb9ae0
10,337
py
Python
budgetportal/tests/test_summaries.py
d3ft0uch/datamanager
60f2f9d5278d20ae553bb063dcedaf206bb3ab29
[ "MIT" ]
3
2019-08-31T03:08:22.000Z
2020-04-03T13:09:20.000Z
budgetportal/tests/test_summaries.py
d3ft0uch/datamanager
60f2f9d5278d20ae553bb063dcedaf206bb3ab29
[ "MIT" ]
97
2019-04-16T07:54:38.000Z
2022-02-10T07:25:48.000Z
budgetportal/tests/test_summaries.py
OpenUpSA/budget-portal
879c5875b1d438b9287c38d6730c86be69051ac5
[ "MIT" ]
14
2019-04-23T09:48:17.000Z
2021-04-13T17:48:40.000Z
""" Tests of budgetportal.summaries """ import json from budgetportal.models import Department, FinancialYear, Government, Sphere from budgetportal.openspending import BabbageFiscalDataset from budgetportal.summaries import ( get_consolidated_expenditure_treemap, get_focus_area_preview, get_preview_page,...
37.31769
95
0.657154
be62e93e415d1f3a3507ac0e577d0bf5feca52c9
542
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/black-sunset-28769
61ebb01b9f40182a0936a8846c8277f754d93938
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/black-sunset-28769
61ebb01b9f40182a0936a8846c8277f754d93938
[ "FTL", "AML", "RSA-MD" ]
17
2021-07-12T18:32:12.000Z
2021-07-12T18:32:14.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/black-sunset-28769
61ebb01b9f40182a0936a8846c8277f754d93938
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "black-sunset-28769.botics.co" site_params = { "name": "Black Sunset", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_o...
20.846154
61
0.656827
9d95b60ec8bc8452c6517b793e89b78acb297efe
354
py
Python
pacman-arch/test/pacman/tests/remove040.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove040.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove040.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Remove a package that requires another package" lp1 = pmpkg("pkg1") lp1.depends = ["imaginary"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imaginary"] self.addpkg2db("local", lp2) self.args = "-R %s" % lp1.name self.addrule("PACMAN_RETCODE=0") self.addrule("!PKG_EXIST=pkg1...
22.125
67
0.70904
c367da53e32b17cfa309050b81548e03bc1ece88
2,014
py
Python
evalml/tests/data_checks_tests/test_ts_splitting_data_check.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/data_checks_tests/test_ts_splitting_data_check.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/data_checks_tests/test_ts_splitting_data_check.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import pytest from evalml.data_checks import ( DataCheckMessageCode, TimeSeriesSplittingDataCheck, ) def test_time_series_splitting_data_check_raises_value_error(): with pytest.raises( ValueError, match="Valid splitting of labels in time series", ): TimeSer...
33.566667
80
0.583913
4ba28075cca782f5f46e9f1d1bee6277f1ca7129
6,007
py
Python
shutterstock_api/models/redownload_image.py
Lumen5/shutterstock-api
d26db2c9cd6688cf828ad15478bf1b4701150a3f
[ "Adobe-Glyph" ]
1
2021-02-23T16:15:16.000Z
2021-02-23T16:15:16.000Z
shutterstock_api/models/redownload_image.py
Lumen5/shutterstock-api
d26db2c9cd6688cf828ad15478bf1b4701150a3f
[ "Adobe-Glyph" ]
17
2019-07-13T01:23:08.000Z
2022-03-21T07:17:35.000Z
shutterstock_api/models/redownload_image.py
Lumen5/shutterstock-api
d26db2c9cd6688cf828ad15478bf1b4701150a3f
[ "Adobe-Glyph" ]
1
2021-03-07T19:16:27.000Z
2021-03-07T19:16:27.000Z
# coding: utf-8 """ Shutterstock API Reference The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media. # noqa: E501 OpenAPI spec version: 1.0.11 Generated by: https://github.com/swagge...
28.879808
184
0.586149
0096bf6eb3a4a5f5cb2b518ce96211d0309e4f72
164
py
Python
job/urls.py
pincoin/thai-online-judge
454c129541783a67b33113851318b808c722de9e
[ "MIT" ]
null
null
null
job/urls.py
pincoin/thai-online-judge
454c129541783a67b33113851318b808c722de9e
[ "MIT" ]
5
2020-06-05T22:01:14.000Z
2021-06-09T18:10:50.000Z
job/urls.py
pincoin/pincoin-online-judge
454c129541783a67b33113851318b808c722de9e
[ "MIT" ]
null
null
null
from django.urls import ( path ) from . import views app_name = 'job' urlpatterns = [ path('', views.JobListView.as_view(), name='job_list'), ]
12.615385
55
0.609756
3cf461f93e8078801c2e0b395e8dae554ad6ef5b
517
py
Python
ex18_zed.py
iXylph/Zedd
2b93bb3293019d6d3c9e2a65f1a91e7702980797
[ "bzip2-1.0.6" ]
null
null
null
ex18_zed.py
iXylph/Zedd
2b93bb3293019d6d3c9e2a65f1a91e7702980797
[ "bzip2-1.0.6" ]
null
null
null
ex18_zed.py
iXylph/Zedd
2b93bb3293019d6d3c9e2a65f1a91e7702980797
[ "bzip2-1.0.6" ]
null
null
null
# this one is like your scripts with argv def print_two(*args): arg1, arg2 = args print "arg1: %r, arg2: %r" % (arg1, arg2) # ok, that *args is actually pointless, we can just do this def print_two_again(arg1, arg2): print "arg1: %r, arg2: %r" % (arg1, arg2) # this just takes one argument def print_one(ar...
23.5
59
0.663443
258e1d9dbcf871e601a5284b9779dee8d44207c8
2,611
py
Python
examples/webgl/line_compare.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-10-30T00:32:00.000Z
2021-10-30T00:32:00.000Z
examples/webgl/line_compare.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
12
2020-08-26T20:19:29.000Z
2020-08-26T20:19:52.000Z
examples/webgl/line_compare.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
2
2021-01-12T18:22:24.000Z
2021-10-30T00:32:02.000Z
""" Compare WebGL, SVG with canvas line. """ import numpy as np from bokeh.layouts import column, row from bokeh.models import CustomJS, Dropdown, Slider from bokeh.plotting import figure, output_file, show p1 = figure(title="Canvas", plot_width=400, plot_height= 400, output_backend="canvas") p2 = figure(title="SVG...
31.457831
93
0.585599
9bf9ebe0e6b0931c2e01e63b59c3ac51f8b5e98b
14,576
py
Python
usersimulator/ConfusionModel.py
hys90/pydial
8bf7e36a8126cc678e5ce518892d12e0335f56c6
[ "Apache-2.0" ]
3
2019-09-27T06:07:12.000Z
2020-01-06T19:00:34.000Z
usersimulator/ConfusionModel.py
hys90/pydial
8bf7e36a8126cc678e5ce518892d12e0335f56c6
[ "Apache-2.0" ]
null
null
null
usersimulator/ConfusionModel.py
hys90/pydial
8bf7e36a8126cc678e5ce518892d12e0335f56c6
[ "Apache-2.0" ]
1
2019-11-27T09:28:10.000Z
2019-11-27T09:28:10.000Z
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2017 # Cambridge University Engineering Department Dialogue Systems Grou...
36.901266
146
0.587953
957fcb3bbb961803a60c0aee3892f74f0caa452f
993
py
Python
hard/python/c0066_329_longest-increasing-path-in-a-matrix/00_leetcode_0066.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
hard/python/c0066_329_longest-increasing-path-in-a-matrix/00_leetcode_0066.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
hard/python/c0066_329_longest-increasing-path-in-a-matrix/00_leetcode_0066.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #329. Longest Increasing Path in a Matrix #Given an integer matrix, find the length of the longest increasing path. #From each cell, you can either move t...
29.205882
176
0.679758
d82f1f0da7c8837570ea12a98c049e115ca4bb9c
9,585
py
Python
mcp/service/sftp.py
fkmclane/MCP
e80c3e12c163e9a67870d83340f434c5ed94e075
[ "MIT" ]
null
null
null
mcp/service/sftp.py
fkmclane/MCP
e80c3e12c163e9a67870d83340f434c5ed94e075
[ "MIT" ]
15
2015-06-13T22:37:25.000Z
2018-07-07T12:56:35.000Z
mcp/service/sftp.py
lilyinstarlight/MCP
e80c3e12c163e9a67870d83340f434c5ed94e075
[ "MIT" ]
null
null
null
import multiprocessing import os import os.path import re import select import socket import paramiko import mcp.config import mcp.error import mcp.model.server import mcp.model.user # inspired by https://github.com/rspivak/sftpserver/blob/master/src/sftpserver/stub_sftp.py class SFTPHandle(paramiko.SFTPHandle): ...
29.859813
137
0.621701
9463ca90cc580772e7ea0e7f804a60617f8e8d46
202
py
Python
crudproject/crudapp/admin.py
KonstantineDM/django-crud-tokenauth
4e432619ae388d38325e9501c2e3d5a693e36ed8
[ "MIT" ]
null
null
null
crudproject/crudapp/admin.py
KonstantineDM/django-crud-tokenauth
4e432619ae388d38325e9501c2e3d5a693e36ed8
[ "MIT" ]
null
null
null
crudproject/crudapp/admin.py
KonstantineDM/django-crud-tokenauth
4e432619ae388d38325e9501c2e3d5a693e36ed8
[ "MIT" ]
null
null
null
from django.contrib import admin from crudapp import models class AccountAdmin(admin.ModelAdmin): list_display = ['id', 'username', 'email', ] admin.site.register(models.Account, AccountAdmin)
18.363636
49
0.752475
7f91c9925c15676fe33b4e3087f89ca94c91f186
568
py
Python
backend.py
YamiAtem/YTDownloader
01839122a8fecdca2a62e621b4edfa606c8745b8
[ "MIT" ]
6
2021-07-05T04:31:39.000Z
2021-12-17T01:48:15.000Z
backend.py
YamiAtem/YTDownloader
01839122a8fecdca2a62e621b4edfa606c8745b8
[ "MIT" ]
1
2021-12-17T03:36:03.000Z
2021-12-17T03:36:03.000Z
backend.py
YamiAtem/YTDownloader
01839122a8fecdca2a62e621b4edfa606c8745b8
[ "MIT" ]
2
2021-12-16T11:12:36.000Z
2022-01-22T04:17:18.000Z
import os import requests from PySide6.QtCore import Slot, QObject from pytube import YouTube, exceptions class BackEnd(QObject): def __init__(self, app): super().__init__() self.app = app self.file_size = 0 @Slot(result=bool) def check_internet(self): url = "https://...
24.695652
73
0.626761
9de24defeeb5ea2c18d40bfc2aa3c6d5b121a9e4
3,796
py
Python
scripts/checking/check_feature.py
yeastgenome/SGDBackend-Nex2
8bd14e45def10361d1c176ce2825a8eff621dea1
[ "MIT" ]
5
2015-11-24T23:09:46.000Z
2019-11-06T17:48:13.000Z
scripts/checking/check_feature.py
yeastgenome/SGDBackend-Nex2
8bd14e45def10361d1c176ce2825a8eff621dea1
[ "MIT" ]
188
2017-08-28T22:39:03.000Z
2022-03-02T14:53:46.000Z
scripts/checking/check_feature.py
yeastgenome/SGDBackend-Nex2
8bd14e45def10361d1c176ce2825a8eff621dea1
[ "MIT" ]
7
2018-05-13T01:58:07.000Z
2021-06-25T19:08:33.000Z
from sqlalchemy import or_ import sys from src.models import Taxonomy, Dbentity, Locusdbentity, So, Sgdid, Dnasequenceannotation from scripts.loading.database_session import get_session import logging __author__ = 'sweng66' logging.basicConfig(format='%(message)s') log = logging.getLogger() log.setLevel(logging.INFO)...
37.584158
192
0.662276
bb558ce5580160c1bf22266a4cfe9c422d18060c
4,026
py
Python
embiggen/embedders/ensmallen_embedders/spine.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/ensmallen_embedders/spine.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/ensmallen_embedders/spine.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Module providing abstract Node2Vec implementation.""" from typing import Optional, Dict, Any, Union from ensmallen import Graph import numpy as np import pandas as pd from ensmallen import models from embiggen.utils.abstract_models import AbstractEmbeddingModel, EmbeddingResult class SPINE(AbstractEmbeddingModel)...
28.153846
92
0.604322
dc7eea5567e4eaa1c9abda4fbe4d6990d013e22d
657
py
Python
20_golang/day01/map/a.py
HanTianPeng/fullstackreview
250523e017e2f87a2792751e64db9515e5395209
[ "MIT" ]
2
2020-11-26T16:06:26.000Z
2020-11-26T16:07:10.000Z
20_golang/day01/map/a.py
HanTianPeng/fullstackreview
250523e017e2f87a2792751e64db9515e5395209
[ "MIT" ]
1
2020-11-25T16:48:26.000Z
2020-11-25T16:48:26.000Z
20_golang/day01/map/a.py
HanTianPeng/fullstackreview
250523e017e2f87a2792751e64db9515e5395209
[ "MIT" ]
null
null
null
def lengthOfLongestSubstring(s): """ :type s: str :rtype: int """ m = {} start = 0 max = 0 for index, v in enumerate(s): mv = m.get(v) if str(mv) and m.get(v) >= start: print('---', m.get(v)) start = ...
25.269231
49
0.412481
1e06ccdbef2234bdecca4b6840b9c6e8c983ea90
4,784
py
Python
blade_runner/controllers/verification_controller.py
univ-of-utah-marriott-library-apple/blade_runner
8581055553ba1f8094f64d96222f4e87c6c981b1
[ "MIT" ]
23
2019-05-22T01:49:14.000Z
2021-09-01T18:02:35.000Z
blade_runner/controllers/verification_controller.py
univ-of-utah-marriott-library-apple/blade_runner
8581055553ba1f8094f64d96222f4e87c6c981b1
[ "MIT" ]
1
2019-05-30T16:12:00.000Z
2019-05-30T16:12:00.000Z
blade_runner/controllers/verification_controller.py
univ-of-utah-marriott-library-apple/blade_runner
8581055553ba1f8094f64d96222f4e87c6c981b1
[ "MIT" ]
3
2019-05-30T04:12:44.000Z
2020-07-10T16:40:14.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # Copyright (c) 2019 University of Utah Student Computing Labs. # All Rights Reserved. # # Author: Thackery Archuletta # Creation Date: Oct 2018 # Last Updated: March 2019 # # Permission to use, c...
38.580645
102
0.519231
9c0cb890a9febc8d6b10eb6b566365aaa84b5a3b
4,133
py
Python
swagger_client/models/get_universe_system_jumps_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_universe_system_jumps_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
swagger_client/models/get_universe_system_jumps_200_ok.py
rseichter/bootini-star
a80258f01a05e4df38748b8cb47dfadabd42c20d
[ "MIT" ]
null
null
null
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetUniverseSystemJumps200Ok(object): """NOTE: This cl...
28.503448
96
0.586257
9085654a6c093166ce117df1ec0e0aad54fb22bb
237
py
Python
PROJECTS/p002/PSEF_SCRIPTS/pa_cfg_correction.py
nihole/PSEFABRIC
366461ab86f99665bf310425c6ce05a216343ec9
[ "Apache-2.0", "MIT" ]
11
2017-06-29T10:12:39.000Z
2020-03-12T07:19:11.000Z
PROJECTS/p002/PSEF_SCRIPTS/pa_cfg_correction.py
nihole/PSEFABRIC
366461ab86f99665bf310425c6ce05a216343ec9
[ "Apache-2.0", "MIT" ]
null
null
null
PROJECTS/p002/PSEF_SCRIPTS/pa_cfg_correction.py
nihole/PSEFABRIC
366461ab86f99665bf310425c6ce05a216343ec9
[ "Apache-2.0", "MIT" ]
3
2019-04-18T06:44:21.000Z
2021-06-26T14:22:55.000Z
def pa_cli_correction(cfg_txt): cmd_list = cfg_txt.splitlines() cmd_list_new = [] for elem in cmd_list: if elem not in cmd_list_new: cmd_list_new.append(elem) return '\n'.join(cmd_list_new)
15.8
37
0.628692
643be27a5e2810563c7d28e56afc4163edbfe3e4
1,716
py
Python
rules/quant/scripts/unitas_mirtable.py
gcfntnu/small-rna
459f946dfb338017e8beb350da215aaac6a37c59
[ "MIT" ]
1
2021-01-20T08:49:12.000Z
2021-01-20T08:49:12.000Z
rules/quant/scripts/unitas_mirtable.py
gcfntnu/small-rna
459f946dfb338017e8beb350da215aaac6a37c59
[ "MIT" ]
4
2021-01-06T12:47:14.000Z
2021-01-19T14:05:45.000Z
rules/quant/scripts/unitas_mirtable.py
gcfntnu/small-rna
459f946dfb338017e8beb350da215aaac6a37c59
[ "MIT" ]
null
null
null
#!/usr/bin env python """ Parse the unitas simplified mirna table. Counts in this table is different from counts of micro-rna in allfeatures table as this table is not doing fractionated counts on sequences with multiple annotations. """ import sys import os import glob import argparse import warnings warnings.filter...
31.777778
166
0.660839
f566f73ef367d317cd0566765d6ae757d8880743
13,330
py
Python
resources/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_memory.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_memory.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_memory.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
1
2020-05-28T23:01:44.000Z
2020-05-28T23:01:44.000Z
""" Test the memory module. """ # Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> # Copyright (c) 2009 Gael Varoquaux # License: BSD Style, 3 clauses. import shutil import os from tempfile import mkdtemp import pickle import warnings import io import sys import nose from ..memory import Memory, Me...
29.041394
79
0.607652
4f36c7a01493d0d5f6aff9be78c03a5961787a71
814
py
Python
try_django/views.py
filwillian/try_django
c9807add932ecf697cf85622fbdbdf6c00b6fd0f
[ "MIT" ]
null
null
null
try_django/views.py
filwillian/try_django
c9807add932ecf697cf85622fbdbdf6c00b6fd0f
[ "MIT" ]
6
2019-12-04T23:51:23.000Z
2021-06-10T18:33:24.000Z
try_django/views.py
filwillian/try_django
c9807add932ecf697cf85622fbdbdf6c00b6fd0f
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from blog.models import BlogPost from django.shortcuts import render from rest_framework import viewsets from .serializers import UserSerializer, PostSerializer def homepage(request): return render(request, 'home.html') def aboutpage(request): return render(request,...
29.071429
58
0.746929
2967b191e23ab9b47cef930546e02b26cbce4b28
47
py
Python
python/fire_rs/__init__.py
arthur-bit-monnot/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
13
2018-11-19T15:51:23.000Z
2022-01-16T11:24:21.000Z
python/fire_rs/__init__.py
fire-rs-laas/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
14
2017-10-12T16:19:19.000Z
2018-03-12T12:07:56.000Z
python/fire_rs/__init__.py
fire-rs-laas/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
4
2018-03-12T12:28:55.000Z
2021-07-07T18:32:17.000Z
__all__ = ['firemodel', 'geodata', 'planning']
23.5
46
0.659574
449aa57efdd42a91edce7f45950a4eaa584c6ee5
3,732
py
Python
robotidy/transformers/ext_AddMissingResources.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_AddMissingResources.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_AddMissingResources.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
from robot.api.parsing import ModelTransformer, get_model, ModelVisitor, Token, ResourceImport import os, sys wholekeywordlist = {} importedkeywordlist = {} used_keywords = [] resourcestoadd = [] class ext_AddMissingResources(ModelTransformer): def __init__(self): self.cont = 0 def visit_File(self, ...
40.565217
135
0.60209
70edc56f6e0704534a1289041d8e292a4d0d53c6
227
py
Python
happy_repo/__init__.py
przemekkot/python_happy_repo
29355a43d6c5d722b2b1eb5820ce56bdda1eccf8
[ "MIT" ]
null
null
null
happy_repo/__init__.py
przemekkot/python_happy_repo
29355a43d6c5d722b2b1eb5820ce56bdda1eccf8
[ "MIT" ]
null
null
null
happy_repo/__init__.py
przemekkot/python_happy_repo
29355a43d6c5d722b2b1eb5820ce56bdda1eccf8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .happy_repo import simple_function """Top-level package for happy_repo.""" __all__ = ['simple_function', ] __author__ = """Oren Kot""" __email__ = 'przemyslaw.kot@gmail.com' __version__ = '0.1.0'
22.7
39
0.687225
e5a053bc5f5239b284402ddc2f75355069f2329f
1,501
py
Python
src/server/introducer_peers.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
src/server/introducer_peers.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
src/server/introducer_peers.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
import random import time from typing import Dict, List, Optional from src.types.blockchain_format.sized_bytes import bytes32 from src.types.peer_info import PeerInfo from src.util.ints import uint64 class IntroducerPeers: """ Has the list of known full node peers that are already connected or may be con...
32.630435
113
0.636909
02ae756ba6a3a70f01f3dac7e2e0a77c25bb4914
3,288
py
Python
utils.py
nicholasneo78/wav2vec2-kenlm
08d473322fe879faf397f5558f4bf6066cbcc9ba
[ "MIT" ]
43
2021-09-15T05:12:44.000Z
2022-03-31T06:49:42.000Z
utils.py
nicholasneo78/wav2vec2-kenlm
08d473322fe879faf397f5558f4bf6066cbcc9ba
[ "MIT" ]
1
2021-09-28T15:53:05.000Z
2021-09-28T15:53:05.000Z
utils.py
nicholasneo78/wav2vec2-kenlm
08d473322fe879faf397f5558f4bf6066cbcc9ba
[ "MIT" ]
7
2021-09-17T18:53:30.000Z
2022-03-28T05:36:00.000Z
""" @author ______ _ _ | ____| (_) /\ | | | |__ __ _ _ __ _ ___ / \ | | __ _ ___ _ __ ___ __ _ _ __ _ _ | __/ _` | '__| / __| / /\ \ | |/ _` / __| '_ ` _ \ / _` | '__| | | | | | | (_| | | | \__ \ / ____ \...
38.682353
120
0.565998
f87197ccac1900c66ba5ec9f6832c6871ffdec18
636
py
Python
src/python/pants/backend/codegen/thrift/java/register.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/codegen/thrift/java/register.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/java/register.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.codegen.thrift.java.apache_thrift_java_gen import ApacheThriftJavaGen from pants.backend.codegen.thrift.java.java_thrift_library import JavaThriftLibrary from pants.buil...
39.75
88
0.825472
9ec247e268dcb511469f43c74abf312dae6ffce9
404
py
Python
episimmer/location.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
16
2021-04-26T14:52:32.000Z
2022-01-22T07:13:06.000Z
episimmer/location.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
34
2021-05-21T12:53:24.000Z
2022-02-09T16:30:40.000Z
episimmer/location.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
4
2021-04-08T07:52:06.000Z
2021-05-29T05:58:15.000Z
class Location(): def __init__(self, info_dict): self.info = info_dict self.index = info_dict['Location Index'] self.events = [] self.lock_down_state = False def new_time_step(self): self.lock_down_state = False self.events = [] def add_event(self, event_inf...
26.933333
48
0.616337
334af6bfbfdf26d382f0228655a20eab40a95654
7,889
py
Python
workflows/management/commands/export_package.py
xflows/clowdflows
697b36ebc976d1ba4ab726bda2fc4593422af080
[ "MIT" ]
38
2015-11-21T08:16:14.000Z
2021-06-22T16:14:12.000Z
workflows/management/commands/export_package.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
21
2015-12-29T16:34:48.000Z
2022-03-11T23:14:48.000Z
workflows/management/commands/export_package.py
chimeng089/clowdflows
e19bf57906e893d8f0be93329168b76eae758384
[ "MIT" ]
26
2016-01-11T17:51:07.000Z
2022-02-24T11:49:40.000Z
from unicodedata import category from django.core.management.base import BaseCommand, CommandError from workflows.models import Category, AbstractWidget, AbstractInput, AbstractOutput, AbstractOption from django.core import serializers from optparse import make_option import uuid import os import sys from djang...
37.746411
158
0.604259
07fbe50e32198ee47703f0ffdc7c9317d07ffab1
2,559
py
Python
videointelligence/synth.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
videointelligence/synth.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
null
null
null
videointelligence/synth.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.541667
79
0.601407
3fe783de5731d486fe7aa1a4987e5218b07150b9
6,500
py
Python
src/evalutate_test.py
juliandarley/neural-punctuator
2b3ff7e052380ec463b90a74c6960e1e90515c05
[ "MIT" ]
31
2021-01-15T11:31:07.000Z
2022-03-31T14:56:25.000Z
src/evalutate_test.py
juliandarley/neural-punctuator
2b3ff7e052380ec463b90a74c6960e1e90515c05
[ "MIT" ]
8
2021-02-05T13:17:17.000Z
2021-09-03T03:01:05.000Z
src/evalutate_test.py
juliandarley/neural-punctuator
2b3ff7e052380ec463b90a74c6960e1e90515c05
[ "MIT" ]
10
2021-01-29T18:18:07.000Z
2022-03-09T23:13:50.000Z
import os from glob import glob from tqdm.notebook import tqdm import matplotlib.pyplot as plt from neural_punctuator.utils.data import get_config_from_yaml from neural_punctuator.models.BertPunctuator import BertPunctuator import torch from torch.utils.data import DataLoader from tqdm import tqdm from neural_punctuat...
31.862745
120
0.660615
8b777a64796d64b6656ae65886b40556e55a0cd8
3,297
py
Python
Views/UserContributedManagementView.py
JHP4911/PyDoc
34cadcd2ebce134171d1522d9c499a720d8f311f
[ "MIT" ]
1
2019-12-02T01:07:59.000Z
2019-12-02T01:07:59.000Z
Views/UserContributedManagementView.py
tdamdouni/PyDoc
34cadcd2ebce134171d1522d9c499a720d8f311f
[ "MIT" ]
null
null
null
Views/UserContributedManagementView.py
tdamdouni/PyDoc
34cadcd2ebce134171d1522d9c499a720d8f311f
[ "MIT" ]
null
null
null
import ui class UserContributedManagementView (object): def __init__(self, download_action, refresh_main_view, delete_action, refresh_usercontributed_action): self.data = [] self.delete_action = delete_action self.download_action = download_action self.refresh_main_view = refresh_main_view self.refresh_user...
31.103774
120
0.737944
ab1b700b8f48773db1a7d03f2c6e041dfe2ece3c
2,940
py
Python
mvpa2/testing/regress.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
227
2015-01-17T20:13:54.000Z
2022-01-26T21:14:30.000Z
mvpa2/testing/regress.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
364
2015-01-05T21:55:09.000Z
2021-09-09T20:37:55.000Z
mvpa2/testing/regress.py
nno/PyMVPA
a125596bf81b8e9848768852f697bd3cff9674c4
[ "MIT" ]
111
2015-01-06T19:26:41.000Z
2022-01-26T21:14:31.000Z
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms....
36.296296
84
0.67483
0d24b71c50b03f5f3df533b944e0299c6f203ec5
5,699
py
Python
panel/pane/vega.py
Jacob-Barhak/panel
04cad38ea703e4e69fb76f063a27f4ffe40688e8
[ "BSD-3-Clause" ]
1
2021-06-21T19:10:01.000Z
2021-06-21T19:10:01.000Z
panel/pane/vega.py
Jacob-Barhak/panel
04cad38ea703e4e69fb76f063a27f4ffe40688e8
[ "BSD-3-Clause" ]
2
2022-01-13T03:54:51.000Z
2022-03-12T01:01:00.000Z
panel/pane/vega.py
Jacob-Barhak/panel
04cad38ea703e4e69fb76f063a27f4ffe40688e8
[ "BSD-3-Clause" ]
null
null
null
import sys import param import numpy as np from bokeh.models import ColumnDataSource from pyviz_comms import JupyterComm from ..viewable import Layoutable from ..util import lazy_load, string_types from .base import PaneBase def ds_as_cds(dataset): """ Converts Vega dataset into Bokeh ColumnDataSource data...
34.539394
102
0.565011
2690a552b7e02105ba110b4fa9324c31f1340e79
5,736
py
Python
gen_images.py
kromond/stylegan3
26593fc289e7ed3ae0219614a16917ffa5fe811f
[ "BSD-Source-Code" ]
47
2021-10-12T07:53:24.000Z
2022-03-26T15:47:34.000Z
gen_images.py
kromond/stylegan3
26593fc289e7ed3ae0219614a16917ffa5fe811f
[ "BSD-Source-Code" ]
null
null
null
gen_images.py
kromond/stylegan3
26593fc289e7ed3ae0219614a16917ffa5fe811f
[ "BSD-Source-Code" ]
14
2021-10-11T22:24:22.000Z
2022-03-31T14:08:39.000Z
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this so...
39.287671
144
0.605997
bd5fe1c76ed2274ffc8f6801bd85e12d6cbede66
2,703
py
Python
tests/mesh/test_grd.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
17
2020-02-02T09:48:20.000Z
2022-02-02T19:28:58.000Z
tests/mesh/test_grd.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
20
2020-03-04T13:40:22.000Z
2022-02-10T15:30:42.000Z
tests/mesh/test_grd.py
pmav99/pyschism
b533d29b881da6cd4f408e91a4749f86451c042a
[ "Apache-2.0" ]
12
2020-03-04T09:54:57.000Z
2022-02-10T00:14:25.000Z
#! /usr/bin/env python import unittest import pathlib import tempfile from pyschism.mesh.grd import reader, writer, euclidean_mesh class GrdTestCase(unittest.TestCase): def setUp(self): self.nodes = { '1': ((0., 0.), -99999.), '2': ((.5, 0.), -99999.), '3': ((1., 0.), ...
30.370787
69
0.443951
76fa95c0c5b806b1c61f6abc88175d717a6af33e
42
py
Python
blotter/__init__.py
matthewgilbert/blotter
067cc55bd4b55252f4d8de160703884ff01b9391
[ "MIT" ]
16
2017-06-06T10:11:02.000Z
2022-03-28T02:24:29.000Z
blotter/__init__.py
altfund/blotter
067cc55bd4b55252f4d8de160703884ff01b9391
[ "MIT" ]
null
null
null
blotter/__init__.py
altfund/blotter
067cc55bd4b55252f4d8de160703884ff01b9391
[ "MIT" ]
7
2017-06-23T15:51:35.000Z
2020-10-18T10:00:46.000Z
from ._version import __version__ # NOQA
21
41
0.785714
996f276f6a87761bb61ad151764cddd7184cecef
9,061
py
Python
sdk/python/pulumi_azure_native/hybridcompute/v20200815preview/get_machine_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/hybridcompute/v20200815preview/get_machine_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/hybridcompute/v20200815preview/get_machine_extension.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.09292
268
0.670456
643c2168fd6ad8701d8daa06bd874ea68bc9e819
944
py
Python
logRegProfiler/predict.py
tv-vicomtech/deviceCharacterisationMethods
1351da43b2fd469ff9c910ef2dcda9c2bd7f559a
[ "Apache-2.0" ]
null
null
null
logRegProfiler/predict.py
tv-vicomtech/deviceCharacterisationMethods
1351da43b2fd469ff9c910ef2dcda9c2bd7f559a
[ "Apache-2.0" ]
null
null
null
logRegProfiler/predict.py
tv-vicomtech/deviceCharacterisationMethods
1351da43b2fd469ff9c910ef2dcda9c2bd7f559a
[ "Apache-2.0" ]
null
null
null
from sklearn.externals import joblib import csv cls = joblib.load('model.h5') fo = open("userAgents5.csv", "r") lines=fo.readlines() vec = joblib.load('vec_count.joblib') with open('results_logRegfinal.csv', mode='w') as results_file: results_writer = csv.writer(results_file, delimiter=',', quotechar='"', quoting=c...
26.222222
99
0.680085
7f4a05ed45d16d76dc0e85bc54bc8197fb1c6e5d
6,267
py
Python
rant/build.py
lrvick/rant
1b2990448269f27d330b8df8d860429cf92b2529
[ "Apache-2.0" ]
5
2016-07-09T13:18:36.000Z
2020-10-29T21:46:32.000Z
rant/build.py
lrvick/rant
1b2990448269f27d330b8df8d860429cf92b2529
[ "Apache-2.0" ]
6
2016-07-11T23:50:10.000Z
2016-10-20T01:46:24.000Z
rant/build.py
lrvick/rant
1b2990448269f27d330b8df8d860429cf92b2529
[ "Apache-2.0" ]
2
2016-07-11T17:05:09.000Z
2016-10-17T19:14:10.000Z
from io import open import os import re import yaml import time import logging from datetime import datetime from fnmatch import fnmatch from jinja2 import Environment, FileSystemLoader from rant.parse import Parser from distutils.dir_util import copy_tree class Builder(object): """Generate web-ready static files...
35.40678
77
0.602042
e2e8bbd0ff6bdd1b14089292bae61896e3c2fef4
470
py
Python
pasta/app/models.py
andreassjoberg/pasta
2214c6c70b97cf5b758bd263eb3b808850fb69f1
[ "MIT" ]
1
2019-02-06T07:48:07.000Z
2019-02-06T07:48:07.000Z
pasta/app/models.py
andreassjoberg/pasta
2214c6c70b97cf5b758bd263eb3b808850fb69f1
[ "MIT" ]
null
null
null
pasta/app/models.py
andreassjoberg/pasta
2214c6c70b97cf5b758bd263eb3b808850fb69f1
[ "MIT" ]
null
null
null
""" Definition of models. """ import datetime from django.db import models class ProgramStat(models.Model): program_name = models.CharField(max_length=64) program_started_datetime = models.DateTimeField() program_ended_datetime = models.DateTimeField() customer_name = models.CharField(max_length=64) ...
31.333333
127
0.729787
75f0465833d55efe92fcd107a423c7d3111d15d7
926
py
Python
weaved.py
hrishikesh195/noburglar
af78d826c16aac0c0199aa74d39ee8b2bfd24049
[ "BSD-2-Clause" ]
null
null
null
weaved.py
hrishikesh195/noburglar
af78d826c16aac0c0199aa74d39ee8b2bfd24049
[ "BSD-2-Clause" ]
null
null
null
weaved.py
hrishikesh195/noburglar
af78d826c16aac0c0199aa74d39ee8b2bfd24049
[ "BSD-2-Clause" ]
null
null
null
"""Wrapper for operations to the Weaved Smart Plug""" import os import logging # Until the IR blaster can be used through a REST API, we just use SSH for everything; # This can then be changed to do REST calls # # Assumes key based authentication is already set up class Plug(object): def __init__(self, ip = '192...
29.870968
86
0.614471
1eda8af5ba775e59f1ad69934de18bfd3aa67053
1,703
py
Python
opt/modems.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
1
2020-08-13T14:44:41.000Z
2020-08-13T14:44:41.000Z
opt/modems.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
null
null
null
opt/modems.py
SEL-Columbia/easygsm
f0185dee7c55aa0330754002202a586756fb4ecf
[ "Apache-2.0" ]
null
null
null
# opt/modems.py import sys, os.path sys.path.append(os.path.abspath('.')) # really, nothing better? from serialmodem.lib.protocol import SerialModemProtocol class Telit(SerialModemProtocol): init_sequence = [ "ATE0", # command echo disabled "AT", "AT+CMEE=2", # verbose debug "AT...
34.755102
67
0.439812
b621d1e6f9838cc1916573c8c0ee8645e223ef90
663
py
Python
ex42.py
SuMonHlaing/python-exercises
367315f76917a053e8854be14559061616b26d73
[ "MIT" ]
null
null
null
ex42.py
SuMonHlaing/python-exercises
367315f76917a053e8854be14559061616b26d73
[ "MIT" ]
null
null
null
ex42.py
SuMonHlaing/python-exercises
367315f76917a053e8854be14559061616b26d73
[ "MIT" ]
null
null
null
class Animal(object): pass class Dog(Animal): def __init__(self,name): self.name = name class Cat(Animal): def __init__(self,name): self.name = name class Person(object): def __init__(self,name): self.name = name self.pet = None class Employee(Person): def __init__(self,name,salary): supe...
10.359375
39
0.665158
e5db3aac8a04235b88d29fcb61375b3b7345ccd0
117,432
py
Python
gui/qt/main_window.py
RdeWilde/ion-electrum-new
7d83d0a2316080ece628448dce879cdbe64a5c6c
[ "MIT" ]
1
2018-02-19T01:23:59.000Z
2018-02-19T01:23:59.000Z
gui/qt/main_window.py
rdewilde-ion/ion-electrum
7d83d0a2316080ece628448dce879cdbe64a5c6c
[ "MIT" ]
null
null
null
gui/qt/main_window.py
rdewilde-ion/ion-electrum
7d83d0a2316080ece628448dce879cdbe64a5c6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
40.354639
448
0.606198
96611fa1e1a87c03f9e0ade56d643793fb4463f5
200
py
Python
python_work/cidade.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
python_work/cidade.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
python_work/cidade.py
lucas-jsvd/python_crash_course_2nd
8404e7769bef7b90b9b0897996c3a3f969bb72bd
[ "Unlicense" ]
null
null
null
def describe_city(city, country="Brasil"): print(f'A cidade {city} fica no país {country}') describe_city("Aracaju") describe_city("New York", "EUA") describe_city(country="China", city="Huan")
25
52
0.715
2740319e04a441d5db844b0c5dde20eab4b273b4
118,205
py
Python
python/machinetalk/protobuf/status_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
python/machinetalk/protobuf/status_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
python/machinetalk/protobuf/status_pb2.py
luminize/machinetalk-protobuf
6ca7c99806401179ece164b07dc87852bfa8df9c
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: machinetalk/protobuf/status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf ...
47.414761
13,484
0.751339
3cf64f3a5efad2ab70e2ef7b515fee5c9fffd510
1,257
py
Python
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/enums/types/ad_serving_optimization_status.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/enums/types/ad_serving_optimization_status.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/enums/types/ad_serving_optimization_status.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.232558
74
0.70008
53f3f04082698e9f1805080ec268f4a4de9614ee
3,727
py
Python
zhym/TestImg_hande_only_table1.py
yanmeizhao/MyMmdetection
ae369f88b1faa87b32688c7ca770ec67f0a5c8d1
[ "Apache-2.0" ]
1
2019-07-30T01:31:30.000Z
2019-07-30T01:31:30.000Z
zhym/TestImg_hande_only_table1.py
yanmeizhao/MyMmdetection
ae369f88b1faa87b32688c7ca770ec67f0a5c8d1
[ "Apache-2.0" ]
null
null
null
zhym/TestImg_hande_only_table1.py
yanmeizhao/MyMmdetection
ae369f88b1faa87b32688c7ca770ec67f0a5c8d1
[ "Apache-2.0" ]
null
null
null
import os import cv2 import mmcv import numpy as np from mmcv.image import imread, imwrite from mmcv import color_val from mmdet.apis import init_detector, inference_detector config_file = 'configs_zhym/faster_rcnn_r50_fpn_1x_voc_handeonlytable.py' checkpoint_file = 'work_dirs/faster_rcnn_r50_fpn_1x_handeonlytable/epo...
39.231579
204
0.696002
45980d5debee01bd1d715b1b7da511c2a2840496
1,258
py
Python
missing_values-101703547-simran_kaur/missing_values.py
simrankaur7575/missing_values-101703547-simran_kaur
5d293a7ea8a6aa73e427f4008cf9dc6fa3d9a1df
[ "MIT" ]
null
null
null
missing_values-101703547-simran_kaur/missing_values.py
simrankaur7575/missing_values-101703547-simran_kaur
5d293a7ea8a6aa73e427f4008cf9dc6fa3d9a1df
[ "MIT" ]
null
null
null
missing_values-101703547-simran_kaur/missing_values.py
simrankaur7575/missing_values-101703547-simran_kaur
5d293a7ea8a6aa73e427f4008cf9dc6fa3d9a1df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on sun Feb 16 14:39:30 2020 @author: simran kaur """ #importing libraries import numpy as np import pandas as pd import sys import datawig def missing(data): if data.shape[0]==0: return print("empty dataset") col_null=data.columns[data.isnull().any(...
26.765957
110
0.643084
dbc77ed57f3331451836084de56d235af740ba59
475
py
Python
maceoutliner/users/urls.py
maceoutliner/maceoutliner
259c8e1d38a454f83e738e8d13e9e7a580f22c9a
[ "BSD-3-Clause-Clear" ]
1
2018-04-23T11:05:45.000Z
2018-04-23T11:05:45.000Z
maceoutliner/users/urls.py
maceoutliner/maceoutliner
259c8e1d38a454f83e738e8d13e9e7a580f22c9a
[ "BSD-3-Clause-Clear" ]
474
2018-03-28T17:37:41.000Z
2021-08-11T03:29:31.000Z
maceoutliner/users/urls.py
maceoutliner/maceoutliner
259c8e1d38a454f83e738e8d13e9e7a580f22c9a
[ "BSD-3-Clause-Clear" ]
null
null
null
from django.conf.urls import url from . import views app_name = "maceoutliner.users" urlpatterns = [ url(regex=r"^$", view=views.UserListView.as_view(), name="list"), url(regex=r"^~redirect/$", view=views.UserRedirectView.as_view(), name="redirect"), url( regex=r"^(?P<username>[\w.@+-]+)/$", ...
27.941176
87
0.627368
78af781534d10fdfd950aabd709542bff6fd1ea4
1,062
py
Python
var/spack/repos/builtin/packages/r-proxy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-proxy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-proxy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RProxy(RPackage): """Distance and Similarity Measures Provides an extensible framewor...
42.48
96
0.739171
acea38caa1924bed5bb0b44eda7575e4c43ee9a0
3,977
py
Python
nemo_nowcast/workers/rotate_logs.py
douglatornell/nemo_nowcast
1b9181c29eee34a83e34869d13a0c0bf607882fa
[ "Apache-2.0" ]
1
2020-02-06T01:10:27.000Z
2020-02-06T01:10:27.000Z
nemo_nowcast/workers/rotate_logs.py
douglatornell/nemo_nowcast
1b9181c29eee34a83e34869d13a0c0bf607882fa
[ "Apache-2.0" ]
3
2021-04-06T18:03:49.000Z
2021-12-13T21:17:34.000Z
nemo_nowcast/workers/rotate_logs.py
43ravens/NEMO_Nowcast
1b9181c29eee34a83e34869d13a0c0bf607882fa
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2021 Doug Latornell, 43ravens # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed t...
35.828829
88
0.657279
a5141ac8de32a76f99d6b6a2c0962d0e9492d1d3
1,220
py
Python
modules/gsl_specfun/doc/gsl_sf_expint_e1.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/gsl_specfun/doc/gsl_sf_expint_e1.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/gsl_specfun/doc/gsl_sf_expint_e1.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '1', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'T', }, 'simd_types' : [], 'special' : ['gsl_specfun'], 'type_defs' : [], 'typ...
27.111111
72
0.340984
d74b03c9addaee28eb32582233bf72a6678e216d
9,766
py
Python
bcbio/variation/validateplot.py
SciLifeLab/bcbio-nextgen
370b3f316c423b41523accc5e212d51a5b7ecaa9
[ "MIT" ]
3
2015-11-18T07:17:54.000Z
2021-04-28T13:58:37.000Z
bcbio/variation/validateplot.py
SciLifeLab/bcbio-nextgen
370b3f316c423b41523accc5e212d51a5b7ecaa9
[ "MIT" ]
null
null
null
bcbio/variation/validateplot.py
SciLifeLab/bcbio-nextgen
370b3f316c423b41523accc5e212d51a5b7ecaa9
[ "MIT" ]
null
null
null
"""Plot validation results from variant calling comparisons. Handles data normalization and plotting, emphasizing comparisons on methodology differences. """ import collections import os import numpy as np import pandas as pd try: import matplotlib as mpl mpl.use('Agg', force=True) import matplotlib.pypl...
38.753968
115
0.608847