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
fdfd37283d7f866b32b90513f2b90bfba42aac56
4,765
py
Python
4_Code/BasicScripts/MainCode/GAN_VAE_MainScript.py
ninadkgaikwad/GAN_VAE_Project
eb1970a44517c086e77df2fdf8bf6366fb6108ef
[ "MIT" ]
null
null
null
4_Code/BasicScripts/MainCode/GAN_VAE_MainScript.py
ninadkgaikwad/GAN_VAE_Project
eb1970a44517c086e77df2fdf8bf6366fb6108ef
[ "MIT" ]
null
null
null
4_Code/BasicScripts/MainCode/GAN_VAE_MainScript.py
ninadkgaikwad/GAN_VAE_Project
eb1970a44517c086e77df2fdf8bf6366fb6108ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: ninad k gaikwad GAN and VAE on MNIST Data - Main File """ ############################ Initial SET UP ################################## ## Importing Modules import datapreprocessing import ganbuilder import vaebuilder import trainingplotter import time import tensorflow as t...
26.325967
232
0.577964
022e0e06f270298e22c410bf7262e0d8e2f14f34
13,525
py
Python
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2020-01-29T10:19:40.000Z
2020-01-29T10:19:40.000Z
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
2
2021-01-15T09:24:07.000Z
2021-01-15T09:30:10.000Z
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2020-11-12T01:49:27.000Z
2020-11-12T01:49:27.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.498688
118
0.725545
4fc56b72dce0919f8d842c98ff284a1feb46fa53
461
py
Python
botoy/decorators/_from_botself.py
yuban10703/botoy
892a170caea08362c22f1d909545a8c7a962ba3b
[ "MIT" ]
32
2020-10-11T15:18:59.000Z
2021-04-11T10:39:07.000Z
botoy/decorators/_from_botself.py
BrandTime/botoy
8b4b1172dfdcac00ff9f17157538cf7e5732aae6
[ "MIT" ]
17
2020-10-12T15:56:19.000Z
2021-04-03T01:53:05.000Z
botoy/decorators/_from_botself.py
BrandTime/botoy
8b4b1172dfdcac00ff9f17157538cf7e5732aae6
[ "MIT" ]
7
2020-10-12T23:55:57.000Z
2021-04-15T16:14:46.000Z
from ..model import FriendMsg, GroupMsg def from_botself(func=None): """只处理机器人自身的消息 GroupMsg, FriendMsg""" if func is None: return from_botself def inner(ctx): assert isinstance(ctx, (GroupMsg, FriendMsg)) if isinstance(ctx, GroupMsg): userid = ctx.FromUserId e...
23.05
53
0.598698
c2dbffee0eeb9647598a5376bee3834f0c9ccff5
4,420
py
Python
sjb/actions/clonerefs.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
45
2017-05-09T15:49:06.000Z
2021-11-07T19:48:35.000Z
sjb/actions/clonerefs.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
1,313
2017-01-19T13:40:43.000Z
2022-03-30T14:25:44.000Z
sjb/actions/clonerefs.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
165
2017-01-17T22:19:04.000Z
2022-03-02T12:15:13.000Z
from __future__ import absolute_import, print_function, unicode_literals from jinja2 import Template from .forward_parameter import ForwardParametersAction from .interface import Action from .named_shell_task import render_task from .script import ScriptAction _PARAMETER_TEMPLATE = Template(""" <hudson.model....
47.021277
308
0.664932
a60a54823f2fca971925e2f361f01f1672fe6ea9
2,136
py
Python
cloudshell/networking/arista/command_actions/enable_disable_snmp_actions.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
null
null
null
cloudshell/networking/arista/command_actions/enable_disable_snmp_actions.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
9
2018-04-03T12:02:29.000Z
2021-07-08T09:07:29.000Z
cloudshell/networking/arista/command_actions/enable_disable_snmp_actions.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
2
2017-02-08T23:52:21.000Z
2018-07-04T15:33:36.000Z
import re from cloudshell.cli.command_template.command_template_executor import ( CommandTemplateExecutor, ) from cloudshell.networking.arista.command_templates.arista_configuration_templates import ( # noqa: E501 DISABLE_SNMP, ENABLE_SNMP, ENABLE_VRF_FOR_SNMP, SHOW_SNMP, SHOW_SNMP_COMMUNITY,...
29.666667
105
0.656367
b259061e9170fd864d512941537113e4373cfd02
2,375
py
Python
tools/distrib/python/grpcio_tools/_parallel_compile_patch.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
tools/distrib/python/grpcio_tools/_parallel_compile_patch.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
tools/distrib/python/grpcio_tools/_parallel_compile_patch.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2018 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
36.538462
117
0.693474
d58021a089f6a8908be8c186e662e5cef86fae80
9,091
py
Python
TransMagic/patch-TransMagic103b.exe-English.py
beardedfoo/wonderwitch-english-translation
0bd6f067767644a596e88c2bcfa24ba7f8c02a32
[ "Apache-2.0" ]
3
2020-03-31T02:29:49.000Z
2021-02-22T12:04:50.000Z
TransMagic/patch-TransMagic103b.exe-English.py
beardedfoo/wonderwitch-english-translation
0bd6f067767644a596e88c2bcfa24ba7f8c02a32
[ "Apache-2.0" ]
null
null
null
TransMagic/patch-TransMagic103b.exe-English.py
beardedfoo/wonderwitch-english-translation
0bd6f067767644a596e88c2bcfa24ba7f8c02a32
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 : import sys from io import BytesIO DEFAULT_ENCODING_IN='shiftjis' DEFAULT_ENCODING_OUT='utf-8' def patch(s, location, original, replacement, encoding_in=DEFAULT_ENCODING_IN, encoding_out=DEFAULT_ENCODING_OUT, pad=None): ...
30.712838
130
0.609724
43cb0ccb3615bd7b82d7e287a24483b8a68bdcf0
1,010
py
Python
apps/delete_memo.py
dgu-dna/dna-bot
81777a894e92cdee0acc20f9abae5fe30ee03b45
[ "MIT" ]
null
null
null
apps/delete_memo.py
dgu-dna/dna-bot
81777a894e92cdee0acc20f9abae5fe30ee03b45
[ "MIT" ]
null
null
null
apps/delete_memo.py
dgu-dna/dna-bot
81777a894e92cdee0acc20f9abae5fe30ee03b45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from apps.decorators import on_command from apps.slackutils import isNumber from time import localtime, strftime import json CACHE_DEFAULT_URL = './apps/memo_cache/memo_cache.json' @on_command(['!메모삭제', '!ㅁㅁㅅㅈ', '!aatw']) def run(robot, channel, tokens, ...
31.5625
60
0.635644
363188b5004ec25039959c0c84743eb8a924487b
4,650
py
Python
personal_context_builder/wenet_analysis_models.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
personal_context_builder/wenet_analysis_models.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
personal_context_builder/wenet_analysis_models.py
InternetOfUs/personal-context-builder
89e7388d622bc0efbf708542566fdcdca667a4e5
[ "Apache-2.0" ]
null
null
null
""" models (ML sense) used for create user profile Copyright (c) 2021 Idiap Research Institute, https://www.idiap.ch/ Written by William Droz <william.droz@idiap.ch>, """ import pickle from functools import partial from os.path import join from typing import Callable, List, Optional import numpy as np from gensim.co...
31.208054
85
0.634194
edfb2c801d5e42a16a9df5b2f07e0039e408d080
7,512
py
Python
tempest/tests/lib/cmd/test_check_uuid.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
254
2015-01-05T19:22:52.000Z
2022-03-29T08:14:54.000Z
tempest/tests/lib/cmd/test_check_uuid.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
13
2015-03-02T15:53:04.000Z
2022-02-16T02:28:14.000Z
tempest/tests/lib/cmd/test_check_uuid.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
367
2015-01-07T15:05:39.000Z
2022-03-04T09:50:35.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.523077
78
0.637913
1408769738e5678ea7c6af23aa307efaa00d59e8
17,252
py
Python
apps/deepstream-ssd-parser/deepstream_ssd_parser.py
gbakke1/deepstream_python_apps
1a7e7bc104e216f8bc3c21b3787ac96ebc623058
[ "MIT" ]
4
2021-02-19T06:39:16.000Z
2021-11-20T22:06:33.000Z
apps/deepstream-ssd-parser/deepstream_ssd_parser.py
gbakke1/deepstream_python_apps
1a7e7bc104e216f8bc3c21b3787ac96ebc623058
[ "MIT" ]
1
2020-07-02T17:22:40.000Z
2020-07-24T11:56:07.000Z
apps/deepstream-ssd-parser/deepstream_ssd_parser.py
gbakke1/deepstream_python_apps
1a7e7bc104e216f8bc3c21b3787ac96ebc623058
[ "MIT" ]
1
2021-02-25T15:17:12.000Z
2021-02-25T15:17:12.000Z
#!/usr/bin/env python3 ################################################################################ # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"),...
37.586057
114
0.675052
863aa7a92842cc734b76b4031dfee42409f5956e
7,105
py
Python
std/captum/16.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/captum/16.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/captum/16.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import numpy as np from os import path import matplotlib.pyplot as plt import sklearn from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error import torch import torch.nn as nn import torch.optim as optim from captum.attr import Laye...
33.356808
108
0.727516
927fdc2e950e89d336dbf4a88642a6e2065e7893
6,295
py
Python
test/test_graph_http.py
cclauss/rdflib
1729243621d5679ad4c8c156332e91f4b078dda5
[ "BSD-3-Clause" ]
1,424
2015-01-04T13:10:22.000Z
2022-03-29T15:12:38.000Z
test/test_graph_http.py
cclauss/rdflib
1729243621d5679ad4c8c156332e91f4b078dda5
[ "BSD-3-Clause" ]
1,148
2015-01-01T18:26:18.000Z
2022-03-31T21:51:53.000Z
test/test_graph_http.py
cclauss/rdflib
1729243621d5679ad4c8c156332e91f4b078dda5
[ "BSD-3-Clause" ]
459
2015-01-03T14:41:34.000Z
2022-03-14T22:06:47.000Z
from rdflib import Graph, Namespace from http.server import BaseHTTPRequestHandler from urllib.error import HTTPError from .testutils import SimpleHTTPMock, MockHTTPResponse, ctx_http_server, GraphHelper import unittest """ Test that correct content negoation headers are passed by graph.parse """ xmltestdoc = """<...
32.786458
88
0.504051
3992889bf04f68baa698ac949ec43712ab3834eb
273
py
Python
shoppinglyx/urls.py
ruh-iziki-orz/Book-Store
025576bb2c23ec385c76a5df4ce4f92b4243538b
[ "MIT" ]
null
null
null
shoppinglyx/urls.py
ruh-iziki-orz/Book-Store
025576bb2c23ec385c76a5df4ce4f92b4243538b
[ "MIT" ]
null
null
null
shoppinglyx/urls.py
ruh-iziki-orz/Book-Store
025576bb2c23ec385c76a5df4ce4f92b4243538b
[ "MIT" ]
2
2021-07-02T15:49:42.000Z
2021-11-23T06:30:45.000Z
from django.contrib import admin from django.urls import path,include urlpatterns = [ path('admin/', admin.site.urls), path('',include('app.urls')), path('', include('django.contrib.auth.urls')), # path('accounts/', include('django.contrib.auth.urls')), ]
27.3
61
0.666667
a0fae1b4ea81df9e41f62d3c91cfd64c60d286b3
3,386
py
Python
domino/routes.py
imarchenko/python-domino
930e8a5f485d47a0017ceb7cac6cf720da986a48
[ "Apache-2.0" ]
null
null
null
domino/routes.py
imarchenko/python-domino
930e8a5f485d47a0017ceb7cac6cf720da986a48
[ "Apache-2.0" ]
null
null
null
domino/routes.py
imarchenko/python-domino
930e8a5f485d47a0017ceb7cac6cf720da986a48
[ "Apache-2.0" ]
null
null
null
class _Routes: def __init__(self, host, owner_username, project_name): self.host = host self._owner_username = owner_username self._project_name = project_name # URL builders def _build_project_url(self): return self.host + '/v1/projects/' + \ self._owner_usernam...
31.351852
80
0.652688
547d49dbab4685c1e514cd6e3f8f9bdc8209caf3
2,112
py
Python
CaRM_HD189733/scripts/probfun_GPs_slope.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/probfun_GPs_slope.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/probfun_GPs_slope.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
from .priors import* from .aromefit import* import numpy as np # from .constants import parguess#,cpar,prior_type,prior_int from copy import deepcopy as dpcy import matplotlib.pyplot as plt import time import sys import scripts.globalvar as gb import os import time #import george #from george import kernels import ce...
25.756098
122
0.629261
e7898102518d066921d7ad9026528d25425d1202
2,635
py
Python
tests/test_haproxy.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
tests/test_haproxy.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
tests/test_haproxy.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
# Copyright 2019 Splunk, Inc. # # Use of this source code is governed by a BSD-2-clause-style # license that can be found in the LICENSE-BSD2 file or at # https://opensource.org/licenses/BSD-2-Clause import datetime import random import pytz import pytest from jinja2 import Environment, environment from .sendmessage ...
29.277778
95
0.680835
8100573682df6731edc77c6d7ddcf47c170926dc
383
py
Python
237-delete-node-in-a-linked-list/237-delete-node-in-a-linked-list.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
237-delete-node-in-a-linked-list/237-delete-node-in-a-linked-list.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
237-delete-node-in-a-linked-list/237-delete-node-in-a-linked-list.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def deleteNode(self, node): """ :type node: ListNode :rtype: void Do not return anything, modify node in-place instead. """ ...
27.357143
74
0.569191
b319dcc1d74a11363fc4350b8b00ee98234dec6a
8,652
py
Python
yolo3/utils.py
NewYinbao/keras_yolov3
e84449faa467b9e540d4e53af6b9ac8f0c031ebb
[ "MIT" ]
4
2020-01-10T09:35:09.000Z
2020-04-25T00:52:16.000Z
yolo3/utils.py
NewYinbao/keras_yolov3
e84449faa467b9e540d4e53af6b9ac8f0c031ebb
[ "MIT" ]
null
null
null
yolo3/utils.py
NewYinbao/keras_yolov3
e84449faa467b9e540d4e53af6b9ac8f0c031ebb
[ "MIT" ]
2
2019-11-30T13:11:23.000Z
2020-04-25T00:52:20.000Z
"""Miscellaneous utility functions.""" from functools import reduce import cv2 from PIL import Image import numpy as np from matplotlib.colors import rgb_to_hsv, hsv_to_rgb # from yolo3.model import preprocess_true_boxes # from model import preprocess_true_boxes def compose(*funcs): """Compose arbitrarily many fu...
34.887097
129
0.580097
f932e6fe7b48ddcff1bf6887ae1ff8bdf53e5bb4
38,535
py
Python
tests/test_api.py
satyavijay/flask-restful
f815437784273e5e16f43d1253d59e585cf411f6
[ "BSD-3-Clause" ]
1
2018-05-05T12:16:09.000Z
2018-05-05T12:16:09.000Z
tests/test_api.py
satyavijay/flask-restful
f815437784273e5e16f43d1253d59e585cf411f6
[ "BSD-3-Clause" ]
null
null
null
tests/test_api.py
satyavijay/flask-restful
f815437784273e5e16f43d1253d59e585cf411f6
[ "BSD-3-Clause" ]
null
null
null
import unittest import json from flask import Flask, Blueprint, redirect, views, abort as flask_abort from flask.signals import got_request_exception, signals_available try: from mock import Mock except: # python3 from unittest.mock import Mock import flask import werkzeug from werkzeug.exceptions import HT...
35.614603
113
0.588167
abde3500ace9b33e3a95096a9d472b2efa05e007
30
py
Python
dmc/__init__.py
surbhijain1502/dmc-python
075b4b5d5ee8422963da153ce96349f1a937f884
[ "Apache-2.0" ]
null
null
null
dmc/__init__.py
surbhijain1502/dmc-python
075b4b5d5ee8422963da153ce96349f1a937f884
[ "Apache-2.0" ]
null
null
null
dmc/__init__.py
surbhijain1502/dmc-python
075b4b5d5ee8422963da153ce96349f1a937f884
[ "Apache-2.0" ]
3
2020-09-04T12:15:11.000Z
2021-09-07T17:55:50.000Z
from dmc.lrpc2 import gettoken
30
30
0.866667
1a210373b16ffd29e2d26baaf237ba83dfef4817
998
py
Python
algorithms_in_python/_4_recursion/examples/ruler.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_4_recursion/examples/ruler.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_4_recursion/examples/ruler.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
1
2018-10-15T06:28:45.000Z
2018-10-15T06:28:45.000Z
__author__ = 'Junior Teudjio' def draw_ruler(number_of_inches, major_tick_length): def draw_inch_containt(tick_length): if tick_length > 0: draw_inch_containt(tick_length - 1) print '-'*tick_length draw_inch_containt(tick_length - 1) def draw_ruler_helper(current_...
24.95
57
0.673347
5c3d4c244955ce4757c5329c6b95c20f8a23d26c
3,650
py
Python
tests/preprocessing/test_image.py
BioroboticsLab/diktyo
1a81dc36005c4b44021fa69285f25fc0229115b8
[ "Apache-2.0" ]
3
2016-03-19T15:59:30.000Z
2016-05-25T12:11:25.000Z
tests/preprocessing/test_image.py
BioroboticsLab/diktyo
1a81dc36005c4b44021fa69285f25fc0229115b8
[ "Apache-2.0" ]
2
2015-12-17T12:58:22.000Z
2016-05-25T16:38:53.000Z
tests/preprocessing/test_image.py
BioroboticsLab/diktyo
1a81dc36005c4b44021fa69285f25fc0229115b8
[ "Apache-2.0" ]
1
2016-05-25T12:10:33.000Z
2016-05-25T12:10:33.000Z
import numpy as np import pytest from diktya.preprocessing.image import chain_augmentations, WarpAugmentation, \ NoiseAugmentation, random_std, ChannelScaleShiftAugmentation, CropAugmentation, \ LambdaAugmentation @pytest.fixture def batchsize(): return 16 @pytest.fixture def shape2d(): return (32,...
25
85
0.643288
cc8209e6fd0889805281d6b4cefcd5863aabcb53
225
py
Python
tests/tests_CBEObject.py
terrorizer1980/coinbase-exchange-python
a7307876745d513b36516f3ad2b59ab27495e265
[ "MIT", "Unlicense" ]
20
2015-02-28T19:02:49.000Z
2018-02-05T14:00:55.000Z
tests/tests_CBEObject.py
terrorizer1980/coinbase-exchange-python
a7307876745d513b36516f3ad2b59ab27495e265
[ "MIT", "Unlicense" ]
null
null
null
tests/tests_CBEObject.py
terrorizer1980/coinbase-exchange-python
a7307876745d513b36516f3ad2b59ab27495e265
[ "MIT", "Unlicense" ]
9
2015-05-08T16:39:57.000Z
2020-11-17T22:41:32.000Z
import unittest from cbe import CoinbaseExchange class TestCBEObject(unittest.TestCase): def setUp(self): self.cbe = CoinbaseExchange() def test_CBEExists(self): self.assertEqual( type(self.cbe), CoinbaseExchange )
22.5
54
0.777778
fdf3cc11a9cde823a6975e89590709e97cda8583
804
py
Python
magulbot/rawpages/migrations/0001_initial.py
magul/magulbot
8a1c78d0ec8dfd8f7730ffd0647b9f139c2c806e
[ "MIT" ]
null
null
null
magulbot/rawpages/migrations/0001_initial.py
magul/magulbot
8a1c78d0ec8dfd8f7730ffd0647b9f139c2c806e
[ "MIT" ]
null
null
null
magulbot/rawpages/migrations/0001_initial.py
magul/magulbot
8a1c78d0ec8dfd8f7730ffd0647b9f139c2c806e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-07 22:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RawPag...
28.714286
114
0.580846
74ad2f2c652818ab724948aecd5e4b715f3fd043
2,534
py
Python
sa/profiles/Orion/NOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Orion/NOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Orion/NOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
# --------------------------------------------------------------------- # Vendor: Orion (Orion Networks) # OS: NOS # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # -----------------------------------------------------------...
35.194444
106
0.506314
8d20ac5b29531460659a3ab51c4e5c011df91108
953
py
Python
example/05.Distance_sensor/distance_sensor.get_distance_inches.py
rundhall/PC-LEGO-SPIKE-Simulator
5b2fae19293875b2f60d599940d77237700798d3
[ "MIT" ]
null
null
null
example/05.Distance_sensor/distance_sensor.get_distance_inches.py
rundhall/PC-LEGO-SPIKE-Simulator
5b2fae19293875b2f60d599940d77237700798d3
[ "MIT" ]
null
null
null
example/05.Distance_sensor/distance_sensor.get_distance_inches.py
rundhall/PC-LEGO-SPIKE-Simulator
5b2fae19293875b2f60d599940d77237700798d3
[ "MIT" ]
null
null
null
'''get_distance_inches(short_range=False) Gets the measured distance in inches. Parameters short_range Whether or not to use short range mode. Short range mode increases accuracy, but it can only detect nearby objects. Type:boolean Values:True or False Default:False Returns The measured distance or "none" if the distan...
28.029412
115
0.789087
33a4c556fb72c1954a9dc738c8b1e436fa087b70
3,783
py
Python
segmentation_models_pytorch/base/modules.py
yuqinghuang01/segmentation_models.pytorch
7e338ec0ca4ac512ba3fc5fe113f4ad1a915c828
[ "MIT" ]
null
null
null
segmentation_models_pytorch/base/modules.py
yuqinghuang01/segmentation_models.pytorch
7e338ec0ca4ac512ba3fc5fe113f4ad1a915c828
[ "MIT" ]
null
null
null
segmentation_models_pytorch/base/modules.py
yuqinghuang01/segmentation_models.pytorch
7e338ec0ca4ac512ba3fc5fe113f4ad1a915c828
[ "MIT" ]
null
null
null
import torch import torch.nn as nn try: from inplace_abn import InPlaceABN except ImportError: InPlaceABN = None class Conv2dReLU(nn.Sequential): def __init__( self, in_channels, out_channels, kernel_size, padding=0, stride=1, ...
28.231343
119
0.562781
c315a691f0eb3552f960142ce0912a21510acf54
722
py
Python
project_euler003.py
dcassells/Project-Euler
e9d1d6990fc50d8f6013a40e9666b2d0bf173d78
[ "MIT" ]
null
null
null
project_euler003.py
dcassells/Project-Euler
e9d1d6990fc50d8f6013a40e9666b2d0bf173d78
[ "MIT" ]
null
null
null
project_euler003.py
dcassells/Project-Euler
e9d1d6990fc50d8f6013a40e9666b2d0bf173d78
[ "MIT" ]
null
null
null
""" The prime factors of 13195 are 5, 7, 13, and 29. What is the largest prime factor of the number 600851475143? """ def prime(i,primes): for prime in primes: if not (i%prime): return False primes.add(i) return i def prime_factors(x): # set of primes primes = set() # initiate iterator i = 2 # prime fac...
16.409091
60
0.620499
893919d81ce29c356948aceb7cb239aeb96e299f
7,439
py
Python
aodh/tests/unit/test_evaluator.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
null
null
null
aodh/tests/unit/test_evaluator.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
null
null
null
aodh/tests/unit/test_evaluator.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Red Hat, 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 writi...
38.744792
78
0.663261
0c4940830194ff7ea62a34286800ffa84ec996e8
1,031
py
Python
examples/Cliner/CliNER/code/feature_extraction/func_cache.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/CliNER/code/feature_extraction/func_cache.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
examples/Cliner/CliNER/code/feature_extraction/func_cache.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
from repoze.lru import lru_cache class func_cache(lru_cache): def __init__(self, verbose=False): super(func_cache, self).__init__(500) self.verbose = verbose def ShowInfo(self): # This function is only implicitly called if verbose flag is set. print("Cache results for:", self...
24.547619
73
0.601358
a4831bbd7f7eff0bb36ad8173219eef452106fae
1,668
py
Python
ckan/cli/server.py
delyajoseph/ckan-dc
cebce8693ec6576ee179cd1eca85a6bdf3878692
[ "Apache-2.0" ]
1
2020-08-13T11:49:56.000Z
2020-08-13T11:49:56.000Z
ckan/cli/server.py
delyajoseph/ckan-dc
cebce8693ec6576ee179cd1eca85a6bdf3878692
[ "Apache-2.0" ]
4
2019-11-25T10:52:34.000Z
2020-12-07T15:28:43.000Z
ckan/cli/server.py
delyajoseph/ckan-dc
cebce8693ec6576ee179cd1eca85a6bdf3878692
[ "Apache-2.0" ]
1
2020-09-10T11:51:09.000Z
2020-09-10T11:51:09.000Z
# encoding: utf-8 import logging import click from werkzeug.serving import run_simple from ckan.common import config import ckan.plugins.toolkit as tk log = logging.getLogger(__name__) @click.command(u"run", short_help=u"Start development server") @click.option(u"-H", u"--host", default=u"localhost", help=u"Set h...
29.263158
79
0.673261
9bea9c83a39265dc72f603772ad7c9f1b6591974
1,190
py
Python
tests/test_demo.py
sveneberth/unittests-workshop-demo
d23ca4e74aa59e9c825a7bcc6430d02763517d9b
[ "MIT" ]
null
null
null
tests/test_demo.py
sveneberth/unittests-workshop-demo
d23ca4e74aa59e9c825a7bcc6430d02763517d9b
[ "MIT" ]
null
null
null
tests/test_demo.py
sveneberth/unittests-workshop-demo
d23ca4e74aa59e9c825a7bcc6430d02763517d9b
[ "MIT" ]
1
2022-03-31T09:36:51.000Z
2022-03-31T09:36:51.000Z
#!/usr/bin/env python3 import unittest class TestDemo(unittest.TestCase): def test_str(self): from code.demo import duplicate_value self.assertEqual("abab", duplicate_value("ab")) self.assertEqual(b"abab", duplicate_value(b"ab")) self.assertEqual(2, duplicate_value(1)) ...
26.444444
59
0.668067
ae80a8bd7e0ad53de3c4f9425d55a02578f9c2a7
1,301
py
Python
python/pyarrow/flight.py
findmyway/arrow
78105f90d4bd5c1e7b1d85a75e4fcd5e978201ef
[ "Apache-2.0" ]
null
null
null
python/pyarrow/flight.py
findmyway/arrow
78105f90d4bd5c1e7b1d85a75e4fcd5e978201ef
[ "Apache-2.0" ]
1
2019-02-11T17:01:44.000Z
2019-02-23T04:11:14.000Z
python/pyarrow/flight.py
findmyway/arrow
78105f90d4bd5c1e7b1d85a75e4fcd5e978201ef
[ "Apache-2.0" ]
1
2020-11-26T07:50:58.000Z
2020-11-26T07:50:58.000Z
# 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...
43.366667
62
0.591852
fb4e0105037e225321ae2c59ff2fc1431f5624c6
2,306
py
Python
dplace2/adapters.py
clld/dplace
834e7f64045ca01c0b719d87ae4c57710f6a5740
[ "Apache-2.0" ]
3
2018-11-17T15:55:32.000Z
2020-11-17T08:49:37.000Z
dplace2/adapters.py
D-PLACE/dplace2
834e7f64045ca01c0b719d87ae4c57710f6a5740
[ "Apache-2.0" ]
12
2018-01-31T17:55:31.000Z
2020-07-24T05:33:15.000Z
dplace2/adapters.py
D-PLACE/dplace2
834e7f64045ca01c0b719d87ae4c57710f6a5740
[ "Apache-2.0" ]
null
null
null
from itertools import chain from sqlalchemy.orm import joinedload from clld.db.meta import DBSession from clld.db.models import common from clld.interfaces import IParameter from clld.web.adapters.geojson import GeoJson, GeoJsonParameter from clld.web.adapters.csv import CsvAdapter from clld.interfaces import IIndex f...
34.41791
147
0.653513
3086a412f722b7dff6a922865a3311bef9f5c522
3,657
py
Python
yolo_utils.py
milanbhadja7932/Seating-Arrangement
5c89dd3e66e1e5539a2fea7e4dd52b398051fcd6
[ "MIT" ]
null
null
null
yolo_utils.py
milanbhadja7932/Seating-Arrangement
5c89dd3e66e1e5539a2fea7e4dd52b398051fcd6
[ "MIT" ]
null
null
null
yolo_utils.py
milanbhadja7932/Seating-Arrangement
5c89dd3e66e1e5539a2fea7e4dd52b398051fcd6
[ "MIT" ]
null
null
null
import numpy as np import argparse import cv2 as cv import subprocess import time import os def show_image(img): cv.imshow("Image", img) cv.waitKey(0) def draw_labels_and_boxes(img, boxes, confidences, classids, idxs, colors, labels): # If there are any detections if len(idxs) > 0: for i in id...
34.828571
113
0.587367
5bc0c4bf99802f80eeedc5e344296a5ec2c99ea8
11,509
py
Python
streamm/structures/particle.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
4
2017-01-04T02:20:52.000Z
2022-01-23T21:14:32.000Z
streamm/structures/particle.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
null
null
null
streamm/structures/particle.py
NREL/streamm-tools
663ceff5e9a1145b74ee8c1857988dc94d6535a2
[ "Apache-2.0" ]
4
2017-04-25T06:23:08.000Z
2021-04-14T07:10:24.000Z
# coding: utf-8 # Copyright (c) Alliance for Sustainable Energy, LLC # Distributed under the terms of the Apache License, Version 2.0 """ This module defines the classes relating to general particles """ __author__ = "Travis W. Kemper, Ph.D." __copyright__ = "Copyright 2015, Alliance for Sustainable Energy, LLC" __v...
33.652047
172
0.579025
bdcbd151b59f14556f3cad36b7bc41bb15d70ea7
3,509
py
Python
neo-node/p2p_ws/node.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
neo-node/p2p_ws/node.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
neo-node/p2p_ws/node.py
i25959341/Happynodes
ef6825d17b181c451476d4ef722f2bcfa52e0161
[ "MIT" ]
null
null
null
import threading from time import sleep from logzero import logger from twisted.internet import reactor, task from neo.Network.NodeLeader import NodeLeader from neo.Core.Blockchain import Blockchain from neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain import LevelDBBlockchain from neo.Settings import settin...
34.067961
179
0.662867
213cd57c9d7cbe284e0ed44c925449b33c08dcad
17,487
py
Python
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
import io import json import logging import os from json import JSONDecodeError import yaml from djcelery.models import PeriodicTask from ApiManager.models import ModuleInfo, TestCaseInfo from ApiManager.utils.operation import add_project_data, add_module_data, add_case_data, add_config_data, \ add_register_data ...
33.245247
120
0.552468
4bae8e9aca0f2b52b6b8fa3d4f89b108dbfe7a75
871
py
Python
helper_functions/split_date.py
Joseph-Maulin/lambdata-Joseph-Maulin
a2c616d61778e81a764429bda39fe3414d76bdea
[ "MIT" ]
null
null
null
helper_functions/split_date.py
Joseph-Maulin/lambdata-Joseph-Maulin
a2c616d61778e81a764429bda39fe3414d76bdea
[ "MIT" ]
null
null
null
helper_functions/split_date.py
Joseph-Maulin/lambdata-Joseph-Maulin
a2c616d61778e81a764429bda39fe3414d76bdea
[ "MIT" ]
null
null
null
import pandas as pd def split_date(df, date_column): """ Function ________ Expands pandas dataframe date column into 'Year', 'Month', 'Day' Params __________ args: df(pd.DataFrame) : df to modify date_column(String) : column name of the date column to expan...
24.885714
87
0.613088
e1a147a70a2c50f7761e51473579a8d30ff4b591
2,617
py
Python
.ycm_extra_conf.py
aslResearch/aslRover
eec6a772b90d18a38ac036773651c5b95eb4f22e
[ "BSD-3-Clause" ]
9
2017-09-22T06:31:47.000Z
2021-09-09T23:06:56.000Z
.ycm_extra_conf.py
aslResearch/aslRover
eec6a772b90d18a38ac036773651c5b95eb4f22e
[ "BSD-3-Clause" ]
null
null
null
.ycm_extra_conf.py
aslResearch/aslRover
eec6a772b90d18a38ac036773651c5b95eb4f22e
[ "BSD-3-Clause" ]
7
2018-09-12T10:36:05.000Z
2021-09-22T08:11:58.000Z
#!/usr/bin/env python import os import ycm_core flags = [ '-Wall', '-Wextra', '-Werror', '-fexceptions', '-DNDEBUG', '-std=c++11', '-x', 'c++', '-isystem', '/usr/include', '-isystem', '/usr/local/include', '-isystem', '/opt/ros/' + os.getenv('ROS_DISTRO') + '/include', '-isystem', '/home/vnv/asl_gremlin1/src/devel/in...
24.92381
72
0.682461
0c4407c2cfe33d028a6f7da7673a30251d19697d
3,447
py
Python
core/jobs_registry.py
klenathstar/oppia
6cfe84e772f767dffef8f4e451c78cf70ef3c428
[ "Apache-2.0" ]
null
null
null
core/jobs_registry.py
klenathstar/oppia
6cfe84e772f767dffef8f4e451c78cf70ef3c428
[ "Apache-2.0" ]
null
null
null
core/jobs_registry.py
klenathstar/oppia
6cfe84e772f767dffef8f4e451c78cf70ef3c428
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
41.035714
80
0.793153
00a524015e886996b2c4716e23ef0c97fd1b053e
2,701
py
Python
aldryn_faq/search_indexes.py
mcldev/aldryn-faq
f0b05c5e7a90ce201e1dfe866092a69bd2960873
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/search_indexes.py
mcldev/aldryn-faq
f0b05c5e7a90ce201e1dfe866092a69bd2960873
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/search_indexes.py
mcldev/aldryn-faq
f0b05c5e7a90ce201e1dfe866092a69bd2960873
[ "BSD-3-Clause" ]
2
2019-05-14T07:59:02.000Z
2020-11-01T14:58:34.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.template import RequestContext from aldryn_search.utils import get_index_base, strip_tags from parler.utils.context import switch_language from .models import Question, Category class QuestionIndex(get_inde...
31.045977
94
0.661977
f2c963cdc1032aea362d114b6a7b54b2624adc3b
305
py
Python
data/multilingual/Hans.NAN/Serif_12/pdf_to_json_test_Hans.NAN_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Hans.NAN/Serif_12/pdf_to_json_test_Hans.NAN_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Hans.NAN/Serif_12/pdf_to_json_test_Hans.NAN_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Hans.NAN/Serif_12/udhr_Hans.NAN_Serif_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.5
75
0.813115
3001f2fa97dcd9803b23e4d5b7865c9d14a032e2
1,499
py
Python
oldcode/lib_angle/generate_winrt_projects.py
xriss/gamecake
015e6d324761f46235ee61a61a71dbd9a49f6192
[ "MIT" ]
28
2017-04-20T06:21:26.000Z
2021-12-10T15:22:51.000Z
oldcode/lib_angle/generate_winrt_projects.py
sahwar/gamecake
9abcb937c0edc22dee2940cb06ec9a84597e989c
[ "MIT" ]
3
2017-04-05T00:41:45.000Z
2020-04-04T00:44:24.000Z
oldcode/lib_angle/generate_winrt_projects.py
sahwar/gamecake
9abcb937c0edc22dee2940cb06ec9a84597e989c
[ "MIT" ]
5
2016-11-26T14:44:55.000Z
2021-07-29T04:25:53.000Z
# Copyright (c) 2013-2014 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script generates visual studio projects that can be used on WinRT import os import sys script_dir = os.path.join(os.path.dirname(__fil...
37.475
77
0.685791
a17c4b1f9ae2f369c7a4ed032379151363a705fb
3,598
py
Python
examples/webui_server.py
glowatsk/txtorcon
db8de75a4568561b118be11299bda61f3fb84719
[ "MIT" ]
180
2015-01-12T23:57:06.000Z
2022-03-17T00:24:35.000Z
examples/webui_server.py
glowatsk/txtorcon
db8de75a4568561b118be11299bda61f3fb84719
[ "MIT" ]
262
2015-01-16T21:14:50.000Z
2022-02-25T01:33:42.000Z
examples/webui_server.py
glowatsk/txtorcon
db8de75a4568561b118be11299bda61f3fb84719
[ "MIT" ]
61
2015-01-05T01:10:57.000Z
2022-01-04T08:13:39.000Z
#!/usr/bin/env python from __future__ import print_function from twisted.internet import reactor from nevow.appserver import NevowSite from nevow import loaders, tags, livepage import txtorcon def setup_failed(fail): print("It went sideways!", fail) return fail class TorPage(livepage.LivePage): # over...
36.714286
165
0.66537
f7babf1339c53b82df96b389da39fa84808108db
464
py
Python
tests/gsfpy3_08/test_version.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
7
2020-07-01T07:12:19.000Z
2022-01-20T20:39:57.000Z
tests/gsfpy3_08/test_version.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
36
2020-06-23T09:10:15.000Z
2022-03-22T10:27:58.000Z
tests/gsfpy3_08/test_version.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
2
2021-02-07T13:21:52.000Z
2021-06-24T19:16:16.000Z
from pathlib import Path from unittest import TestCase import toml from assertpy import assert_that from gsfpy3_08 import __version__ as module_version class TestVersion(TestCase): def test_version(self): pyproject_file = Path(__file__).parents[2] / "pyproject.toml" pyproject = toml.load(pyproje...
27.294118
69
0.752155
5c33209dd5991969cd07496c6ff80bb38bbda01a
85
py
Python
backend/tests/pathmagic.py
teruto725/kanji-visualization
7a980546d32846ad0eb4883215b727936cdcb51f
[ "MIT" ]
4
2022-01-07T06:00:36.000Z
2022-01-07T07:58:04.000Z
backend/tests/pathmagic.py
teruto725/kanji-visualization
7a980546d32846ad0eb4883215b727936cdcb51f
[ "MIT" ]
66
2022-01-07T06:15:44.000Z
2022-02-22T06:04:17.000Z
backend/tests/pathmagic.py
teruto725/kanji-visualization
7a980546d32846ad0eb4883215b727936cdcb51f
[ "MIT" ]
1
2022-01-24T12:49:09.000Z
2022-01-24T12:49:09.000Z
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
17
62
0.717647
a3b69cb118936ff56cda93a657d34ea50c036f20
2,069
py
Python
Jupyter notebooks/Circuitos Eletricos I - Semana 7.1.py
Jefferson-Lopes/ElectricCircuits
bf2075dc0731cacece75f7b0b378c180630bdf85
[ "MIT" ]
9
2021-05-19T18:36:53.000Z
2022-01-18T16:30:17.000Z
Jupyter notebooks/Circuitos Eletricos I - Semana 7.1.py
Jefferson-Lopes/ElectricCircuits
bf2075dc0731cacece75f7b0b378c180630bdf85
[ "MIT" ]
null
null
null
Jupyter notebooks/Circuitos Eletricos I - Semana 7.1.py
Jefferson-Lopes/ElectricCircuits
bf2075dc0731cacece75f7b0b378c180630bdf85
[ "MIT" ]
10
2021-06-25T12:52:40.000Z
2022-03-11T14:25:48.000Z
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- ...
37.618182
187
0.580957
97a3fd225e211fb4a22a0c8c600afc2d881cbf8b
122,034
py
Python
emsdk.py
lewing/emsdk
db872c7baedcaf94c6cbcc0270eaf663dee747df
[ "MIT" ]
null
null
null
emsdk.py
lewing/emsdk
db872c7baedcaf94c6cbcc0270eaf663dee747df
[ "MIT" ]
null
null
null
emsdk.py
lewing/emsdk
db872c7baedcaf94c6cbcc0270eaf663dee747df
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. from __future__ import print_function import c...
38.387543
333
0.672313
2c1d5e1623f8202e51d43582f39efc5c891f9f20
1,892
py
Python
ucscsdk/mometa/storage/StorageLunDisk.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/storage/StorageLunDisk.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/storage/StorageLunDisk.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for StorageLunDisk ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class StorageLunDiskConsts(): pass class StorageLunDisk(ManagedObject): """This is Sto...
43
249
0.64852
55db5378eab1d380d6828fa038dc1245b38ee43e
4,662
py
Python
etc/dbus-serialbattery/ant.py
Carstijn/dbus-serialbattery
23afec33c2fd87fd4d4c53516f0a25f290643c82
[ "MIT" ]
null
null
null
etc/dbus-serialbattery/ant.py
Carstijn/dbus-serialbattery
23afec33c2fd87fd4d4c53516f0a25f290643c82
[ "MIT" ]
null
null
null
etc/dbus-serialbattery/ant.py
Carstijn/dbus-serialbattery
23afec33c2fd87fd4d4c53516f0a25f290643c82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from battery import Protection, Battery, Cell from utils import * from struct import * class Ant(Battery): def __init__(self, port, baud): super(Ant, self).__init__(port, baud) self.type = s...
42.381818
152
0.66302
1b4c407e31abc8018e4e492dd70dd5c01ec1740b
1,118
py
Python
spark/twitter_api.py
epu-ntua/PSYMBIOSYS-Influencial
25b23ca22ff54f97410ad007df2faad1fe2b89ff
[ "MIT" ]
null
null
null
spark/twitter_api.py
epu-ntua/PSYMBIOSYS-Influencial
25b23ca22ff54f97410ad007df2faad1fe2b89ff
[ "MIT" ]
null
null
null
spark/twitter_api.py
epu-ntua/PSYMBIOSYS-Influencial
25b23ca22ff54f97410ad007df2faad1fe2b89ff
[ "MIT" ]
null
null
null
import twitter import time api = twitter.Api(consumer_key='GDWyb1WBb0yJwYBwQ9g3m2nFx', consumer_secret='BK78W93LakpOwPL84otIl2dVZQ0gNjAYPiFWQbCfdFO6UiF0lF', access_token_key='95257276-aptBPzbJCDqJWKKZ65RwgtJehNiOTEgoyASzaIPqQ', access_token_secret='0qHt...
26.619048
92
0.666369
2f127fb794c3b4155b7c2f01a6542e28121c774d
3,295
py
Python
app/api.py
romanpeters/url-shortener
6f15f4a6a8b488bfc2ff72771cfe6f342ee7a640
[ "MIT" ]
null
null
null
app/api.py
romanpeters/url-shortener
6f15f4a6a8b488bfc2ff72771cfe6f342ee7a640
[ "MIT" ]
null
null
null
app/api.py
romanpeters/url-shortener
6f15f4a6a8b488bfc2ff72771cfe6f342ee7a640
[ "MIT" ]
null
null
null
from urllib.parse import urlparse import validators from flask import request, jsonify, abort from app import database as db from app.url import fix_url, fix_url_id, add_url from app import app @app.route("/api/", methods=['GET']) def endpoints(): """Overview of the API endpoints.""" return jsonify({'endpoin...
32.95
109
0.540819
2779889771d2890ce0a4309eb12b0a1dbedf3ee6
986
py
Python
pages/migrations/0001_initial.py
mikehagquist/fitapps5
556f7a90670f1fb517fe4761e9a5ca7a31c41f50
[ "MIT" ]
null
null
null
pages/migrations/0001_initial.py
mikehagquist/fitapps5
556f7a90670f1fb517fe4761e9a5ca7a31c41f50
[ "MIT" ]
3
2020-02-11T23:58:46.000Z
2021-06-10T21:21:07.000Z
pages/migrations/0001_initial.py
mikehagquist/fitapps5
556f7a90670f1fb517fe4761e9a5ca7a31c41f50
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2019-03-20 11:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
32.866667
120
0.634888
43bff918ddf0bb50ab280d9c9c11a39b2c5b9cdb
750
py
Python
nicos_mlz/pgaa/setups/pgai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/pgaa/setups/pgai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/pgaa/setups/pgai.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'PGAA setup with Huber sample table' group = 'basic' sysconfig = dict( datasinks = ['mcasink', 'chnsink', 'csvsink', 'livesink'] ) includes = [ 'system', 'reactor', 'nl4b', 'pressure', 'sampletable', 'pilz', 'detector', 'collimation', ] devices = dict( mcasink =...
19.736842
61
0.582667
ae492b1f49dcf0532148f874b14c25fcd630113c
4,532
py
Python
data/process.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
14
2021-03-04T08:31:08.000Z
2022-03-30T02:44:18.000Z
data/process.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
null
null
null
data/process.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
3
2021-03-08T15:35:52.000Z
2022-03-06T22:21:04.000Z
#!/usr/bin/env python3 # based on the file 'process_all.py' from https://github.com/anibali/h36m-fetch import argparse from os import path, makedirs, listdir from shutil import move import traceback import cdflib import numpy as np from subprocess import call from tempfile import TemporaryDirectory from tqdm import tq...
33.323529
112
0.642321
ac57d9ae6cac404570e214b27ec71a6bf89b925a
22,061
py
Python
Lib/test/libregrtest/main.py
alvinlindstam/RustPython
c07e9323bcc91d14a7ee70da5fa4d7e1d2bc2084
[ "MIT" ]
null
null
null
Lib/test/libregrtest/main.py
alvinlindstam/RustPython
c07e9323bcc91d14a7ee70da5fa4d7e1d2bc2084
[ "MIT" ]
null
null
null
Lib/test/libregrtest/main.py
alvinlindstam/RustPython
c07e9323bcc91d14a7ee70da5fa4d7e1d2bc2084
[ "MIT" ]
null
null
null
import datetime import faulthandler import json import locale import os import platform import random import re import sys import sysconfig import tempfile import time import unittest from test.libregrtest.cmdline import _parse_args from test.libregrtest.runtest import ( findtests, runtest, get_abs_module, STDT...
34.256211
88
0.575133
1744489ec942e0328c82951bc48a387130126b05
2,043
py
Python
script/python/lib/utils/substitute_utils.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
2
2016-09-14T00:23:53.000Z
2018-01-14T12:51:18.000Z
script/python/lib/utils/substitute_utils.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
script/python/lib/utils/substitute_utils.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: iso-8859-15 -*- ############################################################################## # Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II # Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI # # Distributed under the Boost ...
30.492537
85
0.53304
3d3174a32777eaee727692cd6751bc9adbaada9e
702
py
Python
ex044.py
mateusloped/curso-python
1b5b3927141e985911c9b2344b3d4d663a90c29c
[ "MIT" ]
null
null
null
ex044.py
mateusloped/curso-python
1b5b3927141e985911c9b2344b3d4d663a90c29c
[ "MIT" ]
null
null
null
ex044.py
mateusloped/curso-python
1b5b3927141e985911c9b2344b3d4d663a90c29c
[ "MIT" ]
null
null
null
#PROGRAMA DE PAGAMENTO: DINHEIRO/CHEQUE 10% DE DESC.; A VISTA NO CARTÃO 5%; 2 VEZES PREÇO NORMAL; MAIS 3 OU MAIS 20% JUROS; pag = float(input('Valor a ser pago:')) print('''[1]DINHEIRO ou CHEQUE [2]A VISTA [3]PARCELADO EM 2 VEZES [4] PARCELADO EM 3X OU MAIS''') forma = int(input('Qual a forma de pagamento? ')) if ...
36.947368
123
0.61396
169436beb675550fe60da14401e988e3fe015124
28
py
Python
scripts/daphnet/__init__.py
gait-analyzer/.github
f468d3d6a93d069dec07b0580c9c18d6d8dbd773
[ "MIT" ]
1
2021-08-05T13:43:45.000Z
2021-08-05T13:43:45.000Z
scripts/daphnet/__init__.py
gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients
2064375ddc36bf38f3ff65f09e776328b8b4612a
[ "MIT" ]
null
null
null
scripts/daphnet/__init__.py
gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients
2064375ddc36bf38f3ff65f09e776328b8b4612a
[ "MIT" ]
null
null
null
from .subject import Subject
28
28
0.857143
a6f2b27e4016aac456521c4bfb25a4cfdc89fefc
2,199
py
Python
docs/source/conf.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.338235
82
0.674397
1fbb1ce1fd2b278aa5ed222a61b3fa340f088329
226
py
Python
pagine/urls/locations.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
pagine/urls/locations.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
pagine/urls/locations.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
from django.urls import path from pagine.views import ListLocation, DetailLocation urlpatterns = [ path('', ListLocation.as_view(), name='locations'), path('<slug>/', DetailLocation.as_view(), name='location'), ]
28.25
63
0.70354
c432884ec617c6029ec173a2a24146b93caf0fed
2,924
py
Python
utility.py
leonqli/mssql-cli
fd926d35e4cb589224d4c3c166dbed8f67492ebf
[ "BSD-3-Clause" ]
1,237
2017-12-12T17:42:22.000Z
2022-03-30T10:16:10.000Z
utility.py
leonqli/mssql-cli
fd926d35e4cb589224d4c3c166dbed8f67492ebf
[ "BSD-3-Clause" ]
352
2017-12-12T19:55:04.000Z
2022-03-30T10:23:10.000Z
utility.py
leonqli/mssql-cli
fd926d35e4cb589224d4c3c166dbed8f67492ebf
[ "BSD-3-Clause" ]
183
2017-12-12T21:29:25.000Z
2022-03-13T15:41:25.000Z
from __future__ import print_function from subprocess import check_call, CalledProcessError import os import platform import shlex import shutil import sys import string import random ROOT_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) MSSQLCLI_DIST_DIRECTORY = os.path.abspath( os.path.join(...
28.666667
96
0.672025
0b7dfd4e1729a4723183a8d16908cbe56cd55f8a
3,007
py
Python
time_trial_gui/gui/plotter_tab.py
dmayer/time_trial
c9f896f8788bb4ae3b8bd526a325542c610d0573
[ "MIT" ]
56
2015-01-23T13:06:14.000Z
2022-01-07T17:06:37.000Z
time_trial_gui/gui/plotter_tab.py
channgo2203/time_trial
c9f896f8788bb4ae3b8bd526a325542c610d0573
[ "MIT" ]
2
2015-10-30T18:04:38.000Z
2016-05-01T16:11:56.000Z
time_trial_gui/gui/plotter_tab.py
channgo2203/time_trial
c9f896f8788bb4ae3b8bd526a325542c610d0573
[ "MIT" ]
13
2015-06-28T17:29:30.000Z
2021-11-17T18:48:22.000Z
__author__ = 'daniel' import logging from PyQt4 import QtGui from gui.data_source_model import DataSourceModel from gui.plotter_widget import PlotterWidget from lib.timing_data import TimingData from lib.plot import Plot class PlotterTab(QtGui.QWidget): def __init__(self, parent = None): super(Plotte...
34.170455
93
0.711673
58fcc09842d1de315f3e38bfe8848e5190ce5bdf
363
py
Python
scenarios/sleep.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
3
2021-11-15T20:28:25.000Z
2022-01-27T18:33:15.000Z
scenarios/sleep.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
25
2021-11-08T15:50:38.000Z
2022-03-29T12:16:17.000Z
scenarios/sleep.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
1
2021-11-15T20:28:28.000Z
2021-11-15T20:28:28.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2021 Datadog, Inc. import time def test_sleep(): """Sleep forever to allow you to perform some m...
33
120
0.752066
f521d3f1e733d02e53bd77f403c5e45701d9160b
1,491
py
Python
blogproject/blog/views.py
yeluoguigen/blog
24d16ce417970acf2c828c0d37b54f17b29e96a2
[ "MIT" ]
null
null
null
blogproject/blog/views.py
yeluoguigen/blog
24d16ce417970acf2c828c0d37b54f17b29e96a2
[ "MIT" ]
null
null
null
blogproject/blog/views.py
yeluoguigen/blog
24d16ce417970acf2c828c0d37b54f17b29e96a2
[ "MIT" ]
null
null
null
import markdown from django.db.models import Q from django.shortcuts import render,get_object_or_404 from django.http import HttpResponse, request from comments.forms import CommentForm from blog.models import Post,Category #首页 def index(request): post_list = Post.objects.all() return render(request,'blog/inde...
33.133333
94
0.634474
77e0b288fcc09c71d7aa1605bb5b0977fed2a619
14,838
py
Python
salt/modules/jboss7_cli.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/modules/jboss7_cli.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/modules/jboss7_cli.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' Module for low-level interaction with JbossAS7 through CLI. This module exposes two ways of interaction with the CLI, either through commands or operations. .. note:: Following JBoss documentation (https://developer.jboss.org/wiki/CommandLineInterface): "Operations are considered a low...
39.673797
229
0.663162
6b25366084aea585243ad82f985190cf6d2af444
566
py
Python
registration/migrations/0002_auto_20161110_2316.py
tanql/RecommendApi
80dc9ea4c531c06e66b7c0b12b7089ed0a445874
[ "MIT" ]
1
2017-10-02T18:12:28.000Z
2017-10-02T18:12:28.000Z
registration/migrations/0002_auto_20161110_2316.py
tanql/RecommendApi
80dc9ea4c531c06e66b7c0b12b7089ed0a445874
[ "MIT" ]
null
null
null
registration/migrations/0002_auto_20161110_2316.py
tanql/RecommendApi
80dc9ea4c531c06e66b7c0b12b7089ed0a445874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('registration', '0001_initial'), ] operations = [ migrations.AddField( model_name='myuser', name='age...
22.64
61
0.575972
e8d25ca99f75f2b33b7344fcf0efacac248e1b58
26,387
py
Python
sdk/python/pulumi_gcp/iap/web_iam_binding.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/iap/web_iam_binding.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/iap/web_iam_binding.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
45.338488
454
0.644711
684f652d11c52a94d9cacff41cc95e75637b83df
13,165
py
Python
models/mtcnn_models.py
darren-phang/MTCNN-TF2
879313af0e1b8699482eabe3a04da18525922ec8
[ "Apache-2.0" ]
2
2020-09-03T09:13:33.000Z
2020-11-16T07:40:13.000Z
models/mtcnn_models.py
darren-phang/MTCNN-TF2
879313af0e1b8699482eabe3a04da18525922ec8
[ "Apache-2.0" ]
null
null
null
models/mtcnn_models.py
darren-phang/MTCNN-TF2
879313af0e1b8699482eabe3a04da18525922ec8
[ "Apache-2.0" ]
null
null
null
import tensorflow.keras.layers as layers from utils import * import time import cv2 def xy2yx(bbox): x1, y1, x2, y2 = tf.unstack(bbox, 4, axis=-1) bbox = tf.stack([y1, x1, y2, x2], axis=-1) return bbox class PNet(tf.keras.Model): def __init__(self, *args, **kwargs): super().__init__(*args, *...
49.492481
113
0.533004
7c36a664000ccf523c87cde898d88a3d1cb31a9b
2,153
py
Python
mInit.py
lamecksf/nix
5562b6882dff5ba17bb732d8047815b9dc446d1e
[ "MIT" ]
null
null
null
mInit.py
lamecksf/nix
5562b6882dff5ba17bb732d8047815b9dc446d1e
[ "MIT" ]
null
null
null
mInit.py
lamecksf/nix
5562b6882dff5ba17bb732d8047815b9dc446d1e
[ "MIT" ]
null
null
null
# NIx GeoIP Tool # nv 1.4 # Modulo Inicial import mRouter version = 'nv1.4' def header(): hd = '\n'+'%44s'%'.__ __. __ ___ ___\n' hd += '%44s'%'| \ | | | | \ \ / /\n' hd += '%44s'%'| \| | | | \ V / \n' hd += '%44s'%'| . ` | | | > < \n' hd += '%44s'%'| |\ | | | / . \ \n' hd += '...
35.295082
69
0.450534
da13d0af94deedca6d0af852595621bbce3b6e5d
4,084
py
Python
src/dataflow/multiwoz/create_belief_state_tracker_data.py
aizwei/task_oriented_dialogue_as_dataflow_synthesis
abdfa723e04e393777c0144e60dd967f5842a1ef
[ "MIT" ]
257
2020-09-18T23:12:13.000Z
2022-03-24T03:24:24.000Z
src/dataflow/multiwoz/create_belief_state_tracker_data.py
aizwei/task_oriented_dialogue_as_dataflow_synthesis
abdfa723e04e393777c0144e60dd967f5842a1ef
[ "MIT" ]
24
2020-09-26T15:08:06.000Z
2022-03-11T07:46:30.000Z
src/dataflow/multiwoz/create_belief_state_tracker_data.py
aizwei/task_oriented_dialogue_as_dataflow_synthesis
abdfa723e04e393777c0144e60dd967f5842a1ef
[ "MIT" ]
59
2020-09-22T05:47:13.000Z
2022-03-30T19:03:08.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Semantic Machines\N{TRADE MARK SIGN} software. Creates BeliefStateTrackerDatum from different sources TRADE processed dialogues. """ import argparse import json from typing import Any, Dict, Iterator, List from dataflow.core.io_utils impo...
35.824561
88
0.71474
8e0051cd340edee18a15e2cba44ace462e6ca812
1,864
py
Python
problems/EE/auto/problem106_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
5
2020-10-15T14:40:03.000Z
2021-08-20T17:45:41.000Z
problems/EE/auto/problem106_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
null
null
null
problems/EE/auto/problem106_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
2
2020-10-15T07:06:14.000Z
2020-10-15T17:33:01.000Z
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
30.064516
235
0.482296
54ffb752f86f07693154b01973a358bc36da12ad
1,259
py
Python
test/test_site.py
Ayase-252/ayase-blog
0123f4f9691e6c79f016544bd7c1479895486646
[ "FSFAP" ]
null
null
null
test/test_site.py
Ayase-252/ayase-blog
0123f4f9691e6c79f016544bd7c1479895486646
[ "FSFAP" ]
null
null
null
test/test_site.py
Ayase-252/ayase-blog
0123f4f9691e6c79f016544bd7c1479895486646
[ "FSFAP" ]
null
null
null
""" Test cases for site model """ from django.test import TestCase from ..models.site import Site class SiteMethodTests(TestCase): """ Test class for site model Exempted method: """ def test_get_site_info_normal_cond(self): """ Test get_site_info method in normal operating condi...
30.707317
64
0.55838
5688c853d6d8256b45be8be3dde2113b78d82a36
1,343
py
Python
tests/many_to_many/models.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
tests/many_to_many/models.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-03-24T12:21:05.000Z
2021-03-24T12:31:52.000Z
tests/many_to_many/models.py
dwightgunning/django
9e399e15fbf03507fa54e4bb20ed6f1b0d817b83
[ "PSF-2.0", "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
""" Many-to-many relationships To define a many-to-many relationship, use ``ManyToManyField()``. In this example, an ``Article`` can be published in multiple ``Publication`` objects, and a ``Publication`` has multiple ``Article`` objects. """ from __future__ import unicode_literals from django.db import models from ...
24.418182
93
0.726731
79c87069a7de3a0031b84ece57ba9c912f146abd
2,351
py
Python
dynamic_json/json_wrappers.py
childsish/dynamic-json
3a37caba373a4da8c4eb40c5ac11c88e09875451
[ "MIT" ]
1
2021-02-08T16:41:55.000Z
2021-02-08T16:41:55.000Z
dynamic_json/json_wrappers.py
childsish/dynamic-json
3a37caba373a4da8c4eb40c5ac11c88e09875451
[ "MIT" ]
null
null
null
dynamic_json/json_wrappers.py
childsish/dynamic-json
3a37caba373a4da8c4eb40c5ac11c88e09875451
[ "MIT" ]
null
null
null
from collections.abc import Mapping, Sequence class JsonDict(dict): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) super().__setattr__('_root', self) def __getattr__(self, key): if key in self: return self[key] return super().__getattribute...
34.072464
84
0.594641
dac5cf53e757b85a1153821cd15558a814db53b5
12,103
py
Python
google_compute_engine/accounts/accounts_utils.py
jrw972/compute-image-packages
f5b2ae581c4bb2d02d4d86918a27baa81dd30861
[ "Apache-2.0" ]
null
null
null
google_compute_engine/accounts/accounts_utils.py
jrw972/compute-image-packages
f5b2ae581c4bb2d02d4d86918a27baa81dd30861
[ "Apache-2.0" ]
null
null
null
google_compute_engine/accounts/accounts_utils.py
jrw972/compute-image-packages
f5b2ae581c4bb2d02d4d86918a27baa81dd30861
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.679083
80
0.677022
36ce6d5b507185884de6d8ae99eeded2e03968aa
2,995
py
Python
Algorithms/resampling.py
OIEIEIO/earthengine-py-notebooks
5d6c5cdec0c73bf02020ee17d42c9e30d633349f
[ "MIT" ]
1,008
2020-01-27T02:03:18.000Z
2022-03-24T10:42:14.000Z
Algorithms/resampling.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
8
2020-02-01T20:18:18.000Z
2021-11-23T01:48:02.000Z
Algorithms/resampling.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
325
2020-01-27T02:03:36.000Z
2022-03-25T20:33:33.000Z
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Algorithms/resampling.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank...
41.027397
457
0.736227
964c8d0f76dbc1c23dc16ba458fb5eb50b262c39
859
py
Python
tests/test_tapioca_amarilis.py
imoveisamarilis/tapioca-amarilis
86b5a34e2a4a47960f25d011b6f0fd6027129efb
[ "MIT" ]
null
null
null
tests/test_tapioca_amarilis.py
imoveisamarilis/tapioca-amarilis
86b5a34e2a4a47960f25d011b6f0fd6027129efb
[ "MIT" ]
null
null
null
tests/test_tapioca_amarilis.py
imoveisamarilis/tapioca-amarilis
86b5a34e2a4a47960f25d011b6f0fd6027129efb
[ "MIT" ]
null
null
null
import os import unittest from tapioca_amarilis import AmarilisV1 class TestTapiocaAmarilisV1(unittest.TestCase): def test_resource_access(self): api_client = AmarilisV1( user=os.getenv('AMARILIS_USER', default=''), password=os.getenv('AMARILIS_PASSWORD', default=''), ) ...
30.678571
85
0.643772
884ffdcab6c7edb89ee137baeacc53ffd848181b
870
py
Python
users/migrations/0003_auto_20201007_1318.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
users/migrations/0003_auto_20201007_1318.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
users/migrations/0003_auto_20201007_1318.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-07 19:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20201007_1301'), ] operations = [ migrations.AlterField( model_name='profile', name='DNI', ...
25.588235
74
0.556322
0ee0ee8c453387729fcc020de13edc691840e6fc
604
py
Python
bandit/plugins/shutil_rmtree.py
lyvd/bandit4mal
b1ca9eb773ebed84d04cfeb589d028af532d1d11
[ "Apache-2.0" ]
null
null
null
bandit/plugins/shutil_rmtree.py
lyvd/bandit4mal
b1ca9eb773ebed84d04cfeb589d028af532d1d11
[ "Apache-2.0" ]
null
null
null
bandit/plugins/shutil_rmtree.py
lyvd/bandit4mal
b1ca9eb773ebed84d04cfeb589d028af532d1d11
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # # Copyright 2015 Hewlett-Packard Development Company, L.P. # # SPDX-License-Identifier: Apache-2.0 import bandit from bandit.core import test_properties as test @test.test_id("B337") @test.checks("Call") def shutil_rmtree(context): if context.is_module_imported_like("shutil"): i...
26.26087
64
0.645695
eb4c55e6a66619a363a04fde72fc72a62ba8d5e6
528
py
Python
web/core/migrations/0165_alter_lottransaction_delivery_status.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-03-22T18:13:12.000Z
2021-01-25T10:33:31.000Z
web/core/migrations/0165_alter_lottransaction_delivery_status.py
MTES-MCT/carbure
2876756b760ab4866fa783bb40e61a046eebb1ab
[ "MIT" ]
20
2020-07-06T14:33:14.000Z
2022-03-15T16:54:17.000Z
web/core/migrations/0165_alter_lottransaction_delivery_status.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-04-03T12:19:12.000Z
2021-06-15T12:20:57.000Z
# Generated by Django 3.2 on 2021-06-18 09:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0164_lotv2_year'), ] operations = [ migrations.AlterField( model_name='lottransaction', name='delivery_status'...
27.789474
188
0.575758
40a4a91178f64360a7381d22e6eedb9e6c9f827f
1,480
py
Python
exercises/code/simplify-conditionals/check_cholesterol_levels.py
matthewwei35/ACS-4931-Testing-and-Architecture
e1810ccf89fb2f136e3ba7ec138fa4140d698c4d
[ "MIT" ]
null
null
null
exercises/code/simplify-conditionals/check_cholesterol_levels.py
matthewwei35/ACS-4931-Testing-and-Architecture
e1810ccf89fb2f136e3ba7ec138fa4140d698c4d
[ "MIT" ]
null
null
null
exercises/code/simplify-conditionals/check_cholesterol_levels.py
matthewwei35/ACS-4931-Testing-and-Architecture
e1810ccf89fb2f136e3ba7ec138fa4140d698c4d
[ "MIT" ]
null
null
null
# By Kami Bigdely # Decompose conditional # Reference: https://www.healthline.com/health/high-cholesterol/levels-by-age # Blood test analysis program from tabnanny import check total_cholostrol = 70 ldl = 30 triglyceride = 120 def check_for_good_cholesterol(total_cholesterol): return total_cholesterol < 200 and...
37
131
0.739865
47be8a95a596bcb1a81f61dcfd0b41989c30c01a
7,728
py
Python
ingestion/src/metadata/ingestion/source/atlas/atlas_lineage.py
chaitrarao4/OpenMetadata
c28f7ac22263fd325a1124e9758f97cc9ac9d5d3
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/atlas/atlas_lineage.py
chaitrarao4/OpenMetadata
c28f7ac22263fd325a1124e9758f97cc9ac9d5d3
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/source/atlas/atlas_lineage.py
chaitrarao4/OpenMetadata
c28f7ac22263fd325a1124e9758f97cc9ac9d5d3
[ "Apache-2.0" ]
null
null
null
import logging import uuid from dataclasses import dataclass, field from typing import Iterable, List from metadata.generated.schema.entity.data.table import Column, Table from metadata.generated.schema.type.entityReference import EntityReference from metadata.ingestion.api.common import WorkflowContext from metadata....
42.696133
96
0.644151
1e312fb832fa72c8c7ba2ec2badfec4e38fd06a9
1,256
py
Python
app/core/tests/test_models.py
pr0xii/recipe-app-api
875de401dc5734860d888615dfcdfa9aa8182ccf
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
pr0xii/recipe-app-api
875de401dc5734860d888615dfcdfa9aa8182ccf
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
pr0xii/recipe-app-api
875de401dc5734860d888615dfcdfa9aa8182ccf
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): #Test creating a new user with an email is successful email = 'test@test.com' password = 'password' user = get_user_model().o...
33.945946
70
0.663217
a4f669d5e8ede9563cabbafbcc7019735dc31f8b
7,030
py
Python
dataprofiler/tests/data_readers/test_avro_data.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
null
null
null
dataprofiler/tests/data_readers/test_avro_data.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
1
2021-11-20T01:08:12.000Z
2021-11-20T01:08:12.000Z
dataprofiler/tests/data_readers/test_avro_data.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function import os import unittest from io import BytesIO from dataprofiler.data_readers.avro_data import AVROData from dataprofiler.data_readers.data import Data test_root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) class TestAVRODataClass(unit...
39.055556
116
0.590754
83893f63cc31238baee1641a8589277eafc232da
1,294
py
Python
tests/_async/test_reverse.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
null
null
null
tests/_async/test_reverse.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
12
2020-10-10T14:28:10.000Z
2020-10-28T05:42:34.000Z
tests/_async/test_reverse.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
null
null
null
import unittest from pstream import AsyncStream from tests._async.utils import Driver, Method class Reverse(Method): def __init__(self, args): super(Reverse, self).__init__(AsyncStream.reverse, args) class TestReverse(unittest.TestCase): @Driver(initial=range(10), method=Reverse(args=[]), want=[9...
29.409091
92
0.619011
2a525de90e08abd39c439ba51b80453c1f7f980e
3,187
py
Python
scripts/monitor_passwd.py
sqall01/LSMS
8f8497f63e3fa896f934b4e4e4491fe0fb339125
[ "MIT" ]
62
2021-12-27T16:23:22.000Z
2022-03-28T10:26:27.000Z
scripts/monitor_passwd.py
sqall01/LSMS
8f8497f63e3fa896f934b4e4e4491fe0fb339125
[ "MIT" ]
null
null
null
scripts/monitor_passwd.py
sqall01/LSMS
8f8497f63e3fa896f934b4e4e4491fe0fb339125
[ "MIT" ]
9
2021-12-28T02:05:17.000Z
2022-01-23T03:14:55.000Z
#!/usr/bin/env python3 # written by sqall # twitter: https://twitter.com/sqall01 # blog: https://h4des.org # github: https://github.com/sqall01 # # Licensed under the MIT License. """ Short summary: Monitor /etc/passwd for changes to detect malicious attempts to hijack/change users. NOTE: The first execution of this...
28.20354
198
0.683715
e5e01c6692030adccbbd78afaac8dee367977d37
721
py
Python
faceai/inpaint.py
DnotCf/faceai-master
2e38ecce629c1d9d2b4ec59fb05f81c5cbb0b91a
[ "MIT" ]
null
null
null
faceai/inpaint.py
DnotCf/faceai-master
2e38ecce629c1d9d2b4ec59fb05f81c5cbb0b91a
[ "MIT" ]
null
null
null
faceai/inpaint.py
DnotCf/faceai-master
2e38ecce629c1d9d2b4ec59fb05f81c5cbb0b91a
[ "MIT" ]
null
null
null
#coding=utf-8 #图片修复 import cv2 import numpy as np path = "img/inpaint.png" img = cv2.imread(path) hight, width, depth = img.shape[0:3] #图片二值化处理,把[240, 240, 240]~[255, 255, 255]以外的颜色变成0 thresh = cv2.inRange(img, np.array([140, 140, 140]), np.array([255, 255, 255])) #创建形状和尺寸的结构元素 kernel = np.ones((3, 3), np.uint8) ...
24.033333
79
0.700416
5f633a5b44bfcfa91ec32073e2975013c6a32065
4,881
py
Python
simple_web_generator/window.py
Slepice1/simple-web-generator
b13248933ef03d71aa6368c1f42636d184142820
[ "MIT" ]
null
null
null
simple_web_generator/window.py
Slepice1/simple-web-generator
b13248933ef03d71aa6368c1f42636d184142820
[ "MIT" ]
null
null
null
simple_web_generator/window.py
Slepice1/simple-web-generator
b13248933ef03d71aa6368c1f42636d184142820
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Window class""" from simple_web_generator.content import Content class Window: """Basic window class""" HORIZONTAL_BORDER = "-"; VERTICAL_BORDER = "|"; CORNER = "+"; def __init__(self, attributes): self.id = attributes.get("id") s...
44.372727
115
0.521614
2b226e0206fd004e9e9aa63c9e2c3b8ada84788e
9,219
py
Python
vaccine_feed_ingest/runners/az/arcgis/normalize.py
toffer/vaccine-feed-ingest
7f91c10df6e47acdc03709c4f04e4837b393188a
[ "MIT" ]
null
null
null
vaccine_feed_ingest/runners/az/arcgis/normalize.py
toffer/vaccine-feed-ingest
7f91c10df6e47acdc03709c4f04e4837b393188a
[ "MIT" ]
null
null
null
vaccine_feed_ingest/runners/az/arcgis/normalize.py
toffer/vaccine-feed-ingest
7f91c10df6e47acdc03709c4f04e4837b393188a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import logging import os import pathlib import re import sys from datetime import datetime from typing import List, Optional # import schema site_dir = pathlib.Path(__file__).parent state_dir = site_dir.parent runner_dir = state_dir.parent root_dir = runner_dir.parent sys.path.append...
31.464164
140
0.606139
8a70c0b67a044ab8ea43c4a4e186324064946eb8
4,724
py
Python
server/common/config/client_config.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
3
2019-11-11T15:41:07.000Z
2020-12-14T08:47:35.000Z
server/common/config/client_config.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
null
null
null
server/common/config/client_config.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
1
2021-05-12T15:15:05.000Z
2021-05-12T15:15:05.000Z
from server import display_version as cellxgene_display_version def get_client_config(app_config, data_adaptor): """ Return the configuration as required by the /config REST route """ server_config = app_config.server_config dataset_config = data_adaptor.dataset_config annotation = dataset_co...
38.406504
89
0.698984
a6f7aa5639b8bbed9039f316ba1d94a0cd159389
1,085
py
Python
netbox/dcim/migrations/0035_device_expand_status_choices.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
6
2017-12-01T05:13:39.000Z
2020-01-23T13:04:43.000Z
netbox/dcim/migrations/0035_device_expand_status_choices.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
25
2019-09-17T19:40:50.000Z
2022-03-11T04:01:55.000Z
netbox/dcim/migrations/0035_device_expand_status_choices.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
3
2017-11-18T01:28:22.000Z
2018-05-17T14:04:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-08 15:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dcim', '0034_rename_module_to_inventoryitem'), ] # We convert the BooleanField to an IntegerField first as PostgreSQL does n...
41.730769
197
0.626728
39191011a4f09fda40e66efffbd44e337d41ae54
191
py
Python
imaginaire/utils/__init__.py
MichaelDoron/imaginaire
5f95b988453d391e972fa528152121d0dd3cb51a
[ "RSA-MD" ]
1
2021-11-17T08:45:58.000Z
2021-11-17T08:45:58.000Z
imaginaire/utils/__init__.py
jrfrantz/imaginaire
7c650977b29ea2dd12557d1fef447df9809db737
[ "RSA-MD" ]
null
null
null
imaginaire/utils/__init__.py
jrfrantz/imaginaire
7c650977b29ea2dd12557d1fef447df9809db737
[ "RSA-MD" ]
1
2021-06-09T01:28:59.000Z
2021-06-09T01:28:59.000Z
# Copyright (C) 2020 NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md
38.2
70
0.759162
a4b4d5883ce6d93b0277ff2ee0f168349c1dca63
285
py
Python
bluetooth_tutorial.py
juandados/gait-wearable
4790a912cdbb5a5d16697559af7dd5b8bd909077
[ "MIT" ]
null
null
null
bluetooth_tutorial.py
juandados/gait-wearable
4790a912cdbb5a5d16697559af7dd5b8bd909077
[ "MIT" ]
null
null
null
bluetooth_tutorial.py
juandados/gait-wearable
4790a912cdbb5a5d16697559af7dd5b8bd909077
[ "MIT" ]
null
null
null
# based on https://github.com/pybluez/pybluez # simple inquiry example import bluetooth nearby_devices = bluetooth.discover_devices(lookup_names=True) print("Found {} devices.".format(len(nearby_devices))) for addr, name in nearby_devices: print(" {} - {}".format(addr, name))
25.909091
62
0.740351
573a2dd9eb34f45b32eca592ff0a86cdabae57a6
889
py
Python
model-optimizer/extensions/front/mxnet/maximum_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
2
2021-04-19T06:08:35.000Z
2021-08-25T02:43:43.000Z
model-optimizer/extensions/front/mxnet/maximum_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
model-optimizer/extensions/front/mxnet/maximum_ext.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
""" Copyright (c) 2018 Intel 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...
30.655172
73
0.750281
bcb31dae25e74d3581fbe72f1c53e3f17a30edb8
284
py
Python
elliptic_meshql/MeshQL.py
padmec-reservoir/elliptic_meshql
cf56d6273aa915bfdecd9c031259e12182b181de
[ "MIT" ]
null
null
null
elliptic_meshql/MeshQL.py
padmec-reservoir/elliptic_meshql
cf56d6273aa915bfdecd9c031259e12182b181de
[ "MIT" ]
null
null
null
elliptic_meshql/MeshQL.py
padmec-reservoir/elliptic_meshql
cf56d6273aa915bfdecd9c031259e12182b181de
[ "MIT" ]
null
null
null
from .Computer import ComputerContract, ComputerImplementationBase from .Manager import ManagerContract, ManagerImplementationBase from .Selector import SelectorContract, SelectorImplementationBase class MeshQLContract(ComputerContract, ManagerContract, SelectorContract): pass
35.5
74
0.869718
887bbf069b610385b3e327333042a229ef429be6
147
py
Python
api_gate/apps.py
dmitriyVasilievich1986/sudoku-server
767059998ccc2493424a7da39dfb9ac4284ae8a4
[ "MIT" ]
null
null
null
api_gate/apps.py
dmitriyVasilievich1986/sudoku-server
767059998ccc2493424a7da39dfb9ac4284ae8a4
[ "MIT" ]
null
null
null
api_gate/apps.py
dmitriyVasilievich1986/sudoku-server
767059998ccc2493424a7da39dfb9ac4284ae8a4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ApiGateConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'api_gate'
21
56
0.761905
94eb25b5480c48edd143909a58eae5c02ffc2c47
5,068
py
Python
Tests/test_reaction.py
mkratz/BioCRNPyler
27c14e6660fd3a14cde62718eee4cba4d16d94a8
[ "BSD-3-Clause" ]
null
null
null
Tests/test_reaction.py
mkratz/BioCRNPyler
27c14e6660fd3a14cde62718eee4cba4d16d94a8
[ "BSD-3-Clause" ]
null
null
null
Tests/test_reaction.py
mkratz/BioCRNPyler
27c14e6660fd3a14cde62718eee4cba4d16d94a8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Build-A-Cell. All rights reserved. # See LICENSE file in the project root directory for details. from unittest import TestCase from biocrnpyler import Reaction, Species class TestReaction(TestCase): def test_reaction_initialization(self): # warns if both input and output species...
47.811321
116
0.647395