hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5ae46279229bdbf69399dfaee5f04aa9953dc3fc
675
py
Python
tests/test_download.py
t-gibson/stock
d47fc1f1c4c72024dae186971f5a6eee7633cccc
[ "Apache-2.0" ]
null
null
null
tests/test_download.py
t-gibson/stock
d47fc1f1c4c72024dae186971f5a6eee7633cccc
[ "Apache-2.0" ]
null
null
null
tests/test_download.py
t-gibson/stock
d47fc1f1c4c72024dae186971f5a6eee7633cccc
[ "Apache-2.0" ]
null
null
null
import hypothesis.strategies as st from hypothesis import given from hypothesis.provisional import urls from stock import download @st.composite def photo(draw): photographer = draw(st.text()) main_url = draw(urls()) image_url = draw(urls()) return { "photographer": photographer, "u...
22.5
93
0.725926
f093aadf99429cf2d0f2fdb6cafbf69fe570b544
989
py
Python
tests/test-runners/subject/package/tests/test_something.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/test-runners/subject/package/tests/test_something.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/test-runners/subject/package/tests/test_something.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # indicated. # # L...
39.56
78
0.717897
75d9edd88d184220d3916ef1ef6bc897b27cdf70
6,142
py
Python
configs/cascade_rcnn_r50_fpn_1x.py
droseger/mmdetection
355da53ea7c4b061c62c5a8430adce7641bc2894
[ "Apache-2.0" ]
632
2019-04-10T02:05:03.000Z
2022-03-29T01:58:55.000Z
configs/cascade_rcnn_r50_fpn_1x.py
singhbhupender1/MaskTrackRCNN
10e5d7ded62e0b7c5bf79075d9ee0cc37dc15321
[ "Apache-2.0" ]
56
2019-06-02T21:38:31.000Z
2022-03-22T10:28:01.000Z
configs/cascade_rcnn_r50_fpn_1x.py
singhbhupender1/MaskTrackRCNN
10e5d7ded62e0b7c5bf79075d9ee0cc37dc15321
[ "Apache-2.0" ]
112
2019-04-10T12:01:44.000Z
2022-03-29T01:58:49.000Z
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='modelzoo://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', ...
29.109005
77
0.534028
0d7dd5004ee78d7bcd7788dde94d89cc8b17a709
3,055
py
Python
citrix_hypervisor/datadog_checks/citrix_hypervisor/metrics.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
citrix_hypervisor/datadog_checks/citrix_hypervisor/metrics.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
citrix_hypervisor/datadog_checks/citrix_hypervisor/metrics.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import re from typing import Any, List, Optional, Tuple SIMPLE_METRICS = { 'memory': '.memory', 'memory_reclaimed_max': '.memory.reclaimed_max', 'memory_reclaimed': '.memory.reclaimed', 'm...
38.670886
108
0.616694
5543de7f57f79c014d07e4a44bdc27444ae2c12d
824
py
Python
tests/test_sentry.py
apikay/celery-director
3575e9f89690f6f2518c9939be6169fb4383cbed
[ "BSD-3-Clause" ]
351
2020-01-30T14:37:48.000Z
2022-03-29T11:34:14.000Z
tests/test_sentry.py
apikay/celery-director
3575e9f89690f6f2518c9939be6169fb4383cbed
[ "BSD-3-Clause" ]
53
2020-02-14T17:06:48.000Z
2022-03-22T14:37:36.000Z
tests/test_sentry.py
LiniusAustPty/celery-director
5308c49e1f8502e244765025eb75b45bbe3c2d45
[ "BSD-3-Clause" ]
33
2020-01-31T14:27:21.000Z
2022-03-10T19:50:06.000Z
from director.extensions import DirectorSentry, cel def test_sentry_enrich_data(app, create_builder): _, wf = create_builder("example", "WORKFLOW", {}) sentry = DirectorSentry() sentry.init_app(app) tags = sentry.enrich_tags( {"foo": "bar"}, wf.workflow_id, cel.tasks.get("TASK_EXAMPLE") )...
29.428571
75
0.583738
d92e2c9a6ea88ad03ec8b4bd8fe40fba921d2e48
4,762
py
Python
gym_recommendation/utils.py
sadighian/recommendation-gym
96aaa27d17ae65b02eb0bcdadfcdbb12ea7f8c33
[ "Apache-2.0" ]
29
2019-10-28T08:44:02.000Z
2021-11-19T19:15:30.000Z
gym_recommendation/utils.py
RedBanies3ofThem/recommendation-gym
96aaa27d17ae65b02eb0bcdadfcdbb12ea7f8c33
[ "Apache-2.0" ]
1
2020-12-06T12:28:51.000Z
2021-08-01T09:01:08.000Z
gym_recommendation/utils.py
RedBanies3ofThem/recommendation-gym
96aaa27d17ae65b02eb0bcdadfcdbb12ea7f8c33
[ "Apache-2.0" ]
6
2020-05-31T20:01:22.000Z
2022-01-05T10:59:06.000Z
import os import zipfile from datetime import datetime as dt from typing import Dict, List, Tuple import pandas as pd import requests from stable_baselines.common.base_class import ActorCriticRLModel from . import RecoEnv DATA_HEADER = "user id | item id | rating | timestamp" ITEM_HEADER = "movie id | movie title | ...
33.77305
91
0.615708
d1f3dfa3774f8ae4f368d07048cfac65b43c2a4d
227
py
Python
task/w1/practic/11-100A.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
1
2019-09-29T14:19:54.000Z
2019-09-29T14:19:54.000Z
task/w1/practic/11-100A.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
task/w1/practic/11-100A.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
# Запишіть букву 'A' (латинську, заголовну) 100 разів поспіль. Здайте на перевірку програму, яка виводить цей рядок (тільки літери, без лапок або пробілів). ## Формат виведення # Виведіть відповідь до задачі. print("A"*100)
28.375
156
0.753304
c6ab46112a29bb3ac8804a28775fd6702c0c85e5
1,661
py
Python
setup.py
catalystneuro/ndx-bipolar-scheme
33850abe0c1fe232af24a306db19906f6ab111a6
[ "BSD-3-Clause" ]
1
2019-11-19T20:13:21.000Z
2019-11-19T20:13:21.000Z
setup.py
catalystneuro/ndx-bipolar-scheme
33850abe0c1fe232af24a306db19906f6ab111a6
[ "BSD-3-Clause" ]
11
2020-04-13T18:45:50.000Z
2021-07-19T17:07:21.000Z
setup.py
ben-dichter-consulting/ndx-bipolar-scheme
06ddcfcf05bde5db61a5e2db0b56dc4d6041f34b
[ "BSD-3-Clause" ]
2
2020-05-06T18:25:45.000Z
2020-05-27T15:53:13.000Z
# -*- coding: utf-8 -*- import os from os import path from setuptools import setup, find_packages from shutil import copy2 here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup_args = { 'name': 'ndx-bipolar-scheme', ...
29.660714
86
0.661048
cc94922eb8b576bb0eb1e12003a969c9851f527f
4,976
py
Python
src/oci/healthchecks/models/tcp_connection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/healthchecks/models/tcp_connection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/healthchecks/models/tcp_connection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.975904
245
0.643891
e1acaeef6a0ff37c959d6a1cd4a7c80b30c5a1f3
68
py
Python
main.py
mlasch/esp32-lora-wifi
c2ab6843c6e517ecdf8d461bca67d8954f02592a
[ "MIT" ]
1
2020-10-07T12:39:15.000Z
2020-10-07T12:39:15.000Z
main.py
mlasch/esp32-lora-wifi
c2ab6843c6e517ecdf8d461bca67d8954f02592a
[ "MIT" ]
1
2019-07-08T21:39:38.000Z
2019-07-08T21:39:38.000Z
main.py
mlasch/esp32-lora-wifi
c2ab6843c6e517ecdf8d461bca67d8954f02592a
[ "MIT" ]
null
null
null
import counter if __name__ == "__main__": counter.main_loop()
11.333333
26
0.691176
796cd67351ecc533ef606386e09b5e4fcad424a1
18,295
py
Python
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\WebUI\WebUI.pyo import sys, os import time import random import urllib import urlparse import cgi import binascii import copy from cStringIO import StringIO from traceback import print_exc, print_stack from threading import RLock, Condition from base64 import encodestring try: import ...
39.685466
125
0.495545
28dd930fdeac75c98d0f8456422aa9c359e6686a
3,432
py
Python
django_work_excel/settings.py
E1mir/django-excel-handler
10c640b323332703d1446eba41fb2bcf160cbef7
[ "MIT" ]
null
null
null
django_work_excel/settings.py
E1mir/django-excel-handler
10c640b323332703d1446eba41fb2bcf160cbef7
[ "MIT" ]
null
null
null
django_work_excel/settings.py
E1mir/django-excel-handler
10c640b323332703d1446eba41fb2bcf160cbef7
[ "MIT" ]
null
null
null
""" Django settings for django_work_excel project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ im...
26.8125
91
0.699592
bb0c2b720b601d70b46aed9bc2523825b3c315ec
11,903
bzl
Python
tools/build_defs/pkg/pkg.bzl
erenon/bazel
9bf885afeb01c766d84acf86ca847a7b5e7bd0d8
[ "Apache-2.0" ]
2
2020-01-30T14:09:52.000Z
2021-08-21T22:00:59.000Z
tools/build_defs/pkg/pkg.bzl
erenon/bazel
9bf885afeb01c766d84acf86ca847a7b5e7bd0d8
[ "Apache-2.0" ]
null
null
null
tools/build_defs/pkg/pkg.bzl
erenon/bazel
9bf885afeb01c766d84acf86ca847a7b5e7bd0d8
[ "Apache-2.0" ]
1
2018-04-19T15:01:33.000Z
2018-04-19T15:01:33.000Z
# Copyright 2015 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
39.413907
105
0.599933
09738fe0662bf08e0fbc7a336fd7aee7b05c65ad
4,882
py
Python
huey/contrib/djhuey/management/commands/run_huey.py
winkidney/huey
cda66da19e8a92d98453b53e106c3a74c20f640b
[ "MIT" ]
null
null
null
huey/contrib/djhuey/management/commands/run_huey.py
winkidney/huey
cda66da19e8a92d98453b53e106c3a74c20f640b
[ "MIT" ]
null
null
null
huey/contrib/djhuey/management/commands/run_huey.py
winkidney/huey
cda66da19e8a92d98453b53e106c3a74c20f640b
[ "MIT" ]
1
2019-10-22T13:04:23.000Z
2019-10-22T13:04:23.000Z
import imp import sys from importlib import import_module from optparse import make_option import django from django.conf import settings from django.core.management.base import BaseCommand try: from django.apps import apps as django_apps HAS_DJANGO_APPS = True except ImportError: # Django 1.6 HAS_DJA...
33.210884
86
0.601803
05f6685e5b307624aa8f6a1c47e5d5db16b893c3
3,509
py
Python
payment_handler/payment_handler/settings.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
null
null
null
payment_handler/payment_handler/settings.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
null
null
null
payment_handler/payment_handler/settings.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
null
null
null
""" Django settings for payment_handler project. Generated by 'django-admin startproject' using Django 4.0.3. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ impor...
26.992308
91
0.706184
937f50d33e0cd9c4458756f303b58f94cac7b033
701
py
Python
app/schemas/form_element_list_value.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
app/schemas/form_element_list_value.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
app/schemas/form_element_list_value.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel # Shared properties class FormElementListValueBase(BaseModel): name: str form_element_field_id: str # Properties to receive via API on creation class FormElementListValueCreate(FormElementListValueBase): pass class FormElementListValueCreateFor...
20.617647
61
0.794579
5d59d0381323360d4c9a0d1d003ec666aa826285
16,024
py
Python
detectron2_ofa/engine/hooks.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/engine/hooks.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/engine/hooks.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import logging import os import tempfile import time from collections import Counter from gpuinfo import GPUInfo import torch from fvcore.common.checkpoint import PeriodicCheckpointer as _PeriodicCheckpointer...
34.9869
100
0.616201
f11e21bba694182e04d46eb66544183181b5822a
981
py
Python
utils/rgbycc.py
li012589/NeuralWavelet
6e593ded5cb4ae80579cbf56eb9c346d808669cb
[ "Apache-2.0" ]
28
2021-01-27T00:41:40.000Z
2022-02-14T10:11:51.000Z
utils/rgbycc.py
li012589/NeuralWavelet
6e593ded5cb4ae80579cbf56eb9c346d808669cb
[ "Apache-2.0" ]
null
null
null
utils/rgbycc.py
li012589/NeuralWavelet
6e593ded5cb4ae80579cbf56eb9c346d808669cb
[ "Apache-2.0" ]
6
2021-02-03T01:42:08.000Z
2021-12-03T17:47:19.000Z
import torch def rgb2ycc(samples, round=False, batch=False): if not batch: samples = samples.reshape(1, *samples.shape) k = torch.tensor([[0.299, 0.587, 0.114], [-0.1687, -0.3313, 0.5], [0.5, -0.4187, -0.0813]]) b = torch.tensor([0, 128, 128]) samples = (torch.matmul(samples.permute(0, 2, 3, 1...
35.035714
95
0.59633
5b88f0bac404ab4e9276a2ba15d026e07123d2a8
5,700
py
Python
modules/VTK/wrapping/tests/statismoTests/TestDataManager.py
tom-albrecht/statismo
e7825afadb1accc4902d911d5f00a8c4bd383a31
[ "BSD-3-Clause" ]
null
null
null
modules/VTK/wrapping/tests/statismoTests/TestDataManager.py
tom-albrecht/statismo
e7825afadb1accc4902d911d5f00a8c4bd383a31
[ "BSD-3-Clause" ]
null
null
null
modules/VTK/wrapping/tests/statismoTests/TestDataManager.py
tom-albrecht/statismo
e7825afadb1accc4902d911d5f00a8c4bd383a31
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of the statismo library. # # Author: Marcel Luethi (marcel.luethi@unibas.ch) # # Copyright (c) 2011 University of Basel # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # ...
40.714286
175
0.697368
bfa0c85425f0bdeceb330e8145ffd634ab44aa96
665
py
Python
migrate_dashboard.py
chetanmeh/Miscellany
4b203fb27bfad11d337e6491eddc00d66a93fa35
[ "BSD-3-Clause" ]
null
null
null
migrate_dashboard.py
chetanmeh/Miscellany
4b203fb27bfad11d337e6491eddc00d66a93fa35
[ "BSD-3-Clause" ]
null
null
null
migrate_dashboard.py
chetanmeh/Miscellany
4b203fb27bfad11d337e6491eddc00d66a93fa35
[ "BSD-3-Clause" ]
null
null
null
# currently only for screenboards # TODO: add timeboards from datadog import initialize, api old_api = "*****" old_app = "*****" screenboard_id = **** options = { 'api_key': old_api, 'app_key': old_app } initialize(**options) screenboard = api.Screenboard.get(screenboard_id) print(screenboard) new_api = ...
15.465116
54
0.690226
9ff955dc84377f8341d344f3c668917df67c78c9
2,542
py
Python
pontoon/base/urls.py
Br3nda/pontoon
f8749dcb25c75954761e67344a21d19f70900e70
[ "BSD-3-Clause" ]
null
null
null
pontoon/base/urls.py
Br3nda/pontoon
f8749dcb25c75954761e67344a21d19f70900e70
[ "BSD-3-Clause" ]
795
2017-11-02T12:26:10.000Z
2020-06-01T13:34:22.000Z
pontoon/base/urls.py
Br3nda/pontoon
f8749dcb25c75954761e67344a21d19f70900e70
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.views.generic import RedirectView, TemplateView import views urlpatterns = [ # Home url(r'^$', views.home, name='pontoon.home'), # Terms url(r'^terms/$', TemplateView.as_view(template_name='terms.html'), name='pontoon.terms'), # TRANSL...
35.802817
98
0.608969
82034c4b6cdb21e1376173bbe0349269565ba713
276
py
Python
py3_oop/observer.py
KT12/Training
ac4de382a1387ccfe51404eb3302cc518762a781
[ "MIT" ]
1
2017-08-17T04:44:53.000Z
2017-08-17T04:44:53.000Z
py3_oop/observer.py
KT12/training
ac4de382a1387ccfe51404eb3302cc518762a781
[ "MIT" ]
null
null
null
py3_oop/observer.py
KT12/training
ac4de382a1387ccfe51404eb3302cc518762a781
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 8 15:52:58 2017 @author: kt12 """ from abc import ABCMeta, abstractmethod class Observer(object): __metaclass__ = ABCMeta @abstractmethod def update(self, *args, **kwargs): pass
17.25
39
0.637681
1fa28fb2d4b87105899957df771454035fd795d7
355
py
Python
services/fuse/tests/test_crunchstat.py
tomclegg/arvados
138eedbea2658ef397c7a58ce48d6f06077ba140
[ "Apache-2.0" ]
null
null
null
services/fuse/tests/test_crunchstat.py
tomclegg/arvados
138eedbea2658ef397c7a58ce48d6f06077ba140
[ "Apache-2.0" ]
null
null
null
services/fuse/tests/test_crunchstat.py
tomclegg/arvados
138eedbea2658ef397c7a58ce48d6f06077ba140
[ "Apache-2.0" ]
null
null
null
import subprocess from integration_test import IntegrationTest class CrunchstatTest(IntegrationTest): def test_crunchstat(self): output = subprocess.check_output( ['./bin/arv-mount', '--crunchstat-interval', '1', self.mnt, '--exec', 'echo', 'ok']) ...
25.357143
44
0.597183
a98c32c3e2071f37a7ca165b42ed872cd96e60df
1,385
py
Python
tests/test_cli.py
0jdxt/scrmbl
9935bcd7a6010b04364c81c163d89bb394300161
[ "MIT" ]
95
2018-10-05T19:52:53.000Z
2021-10-04T14:59:55.000Z
tests/test_cli.py
0jdxt/scrmbl
9935bcd7a6010b04364c81c163d89bb394300161
[ "MIT" ]
7
2018-10-05T16:36:43.000Z
2018-10-07T13:41:52.000Z
tests/test_cli.py
0jdxt/scrmbl
9935bcd7a6010b04364c81c163d89bb394300161
[ "MIT" ]
5
2018-10-06T06:50:06.000Z
2018-10-11T16:29:49.000Z
import re from click.testing import CliRunner from scrmbl.cli import cli def test_hello_world(): runner = CliRunner() result = runner.invoke(cli, ['Hello, world!']) assert result.exit_code == 0 assert result.output.split('\r')[-1] == 'Hello, world!\n' def test_input_stream(): with open('tests/...
25.181818
66
0.59639
8260da1ad97e96ab709f0ba3e810244ffe9ff7d6
5,972
py
Python
threeML/minimizer/ROOT_minimizer.py
fkunzweiler/threeML
29779394ac7e50ddb5e28411fe1a5125431e612f
[ "BSD-3-Clause" ]
null
null
null
threeML/minimizer/ROOT_minimizer.py
fkunzweiler/threeML
29779394ac7e50ddb5e28411fe1a5125431e612f
[ "BSD-3-Clause" ]
null
null
null
threeML/minimizer/ROOT_minimizer.py
fkunzweiler/threeML
29779394ac7e50ddb5e28411fe1a5125431e612f
[ "BSD-3-Clause" ]
null
null
null
import ROOT import numpy as np from threeML.minimizer.minimization import LocalMinimizer, FitFailed, CannotComputeCovariance from threeML.io.dict_with_pretty_print import DictWithPrettyPrint # These are the status returned by Minuit # status = 1 : Covariance was made pos defined # status = 2 : Hesse is ...
31.267016
116
0.621902
6d0f078f5369e0d248a64f2f5b6746c83d5bd9ef
2,457
py
Python
src/engine/SCons/Tool/nasm.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
3
2017-01-06T09:26:23.000Z
2017-03-04T04:13:20.000Z
src/engine/SCons/Tool/nasm.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
2
2015-10-27T20:17:24.000Z
2016-08-04T21:49:56.000Z
src/engine/SCons/Tool/nasm.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
4
2015-03-31T16:09:15.000Z
2021-08-04T12:41:47.000Z
"""SCons.Tool.nasm Tool-specific initialization for nasm, the famous Netwide Assembler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to ...
36.671642
100
0.73545
30a5d41745652fec361dbffddeecc9ee5cd9c4d2
10,120
py
Python
gan_train.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
gan_train.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
gan_train.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
##! usr/bin/python3 # %% import config from src.model.stldisc_model import define_style_descriminator, StyleNet from src.model.gan_model import define_cnt_descriminator, define_gan, define_generator from src.support.loss_functions import pairWiseRankingLoss #from src.model.wavelet_gan_model import define_cnt_descrimin...
42.521008
234
0.695652
a91973f7e98aa014d7b9ccbdb6b7d79641a9ccfd
803
py
Python
venv/bin/rst2odt.py
sbassam/nub-summarizer
4798d13d5a959b41b769c1a0ef2ccc994eed6737
[ "Apache-2.0" ]
null
null
null
venv/bin/rst2odt.py
sbassam/nub-summarizer
4798d13d5a959b41b769c1a0ef2ccc994eed6737
[ "Apache-2.0" ]
5
2021-04-30T21:25:13.000Z
2022-03-12T00:43:14.000Z
venv/bin/rst2odt.py
sbassam/nub-summarizer
4798d13d5a959b41b769c1a0ef2ccc994eed6737
[ "Apache-2.0" ]
null
null
null
#!/Users/soroush/Documents/nub-summarizer/venv/bin/python # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys try: ...
25.903226
78
0.755915
47a28c3e7cc809c8bb10acdf3cdd7ece6ee409a6
2,826
py
Python
client/verta/verta/data_types/_float_histogram.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
null
null
null
client/verta/verta/data_types/_float_histogram.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
null
null
null
client/verta/verta/data_types/_float_histogram.py
stefan-petrov-toptal/modeldb
a8a9b9da6ed964c91351230b2f0d2703c75794de
[ "Apache-2.0" ]
1
2021-05-04T13:52:09.000Z
2021-05-04T13:52:09.000Z
# -*- coding: utf-8 -*- from __future__ import division import collections from ..external import six from .._internal_utils import arg_handler from .._internal_utils.importer import maybe_dependency from . import _VertaDataType class FloatHistogram(_VertaDataType): """ Representation of a float histogra...
29.4375
83
0.600495
d0068682d47e95e696ab3d58cd250984aff77789
64
py
Python
src/states/game_level_data/__init__.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
null
null
null
src/states/game_level_data/__init__.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
2
2019-05-22T09:06:16.000Z
2019-05-28T21:38:04.000Z
src/states/game_level_data/__init__.py
wiktorowski211/Fruit-Viking
d45c35a56425c4d42a2ee59586bd559037cf07db
[ "MIT" ]
1
2019-03-21T13:02:29.000Z
2019-03-21T13:02:29.000Z
from .remains import Remains from .background import Background
21.333333
34
0.84375
b197f75abe5b56b65ff2b087bc7aa1ee242267fa
52,871
py
Python
astropy/wcs/tests/test_wcs.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
astropy/wcs/tests/test_wcs.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
astropy/wcs/tests/test_wcs.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import io import os from contextlib import nullcontext from datetime import datetime from packaging.version import Version import pytest import numpy as np from numpy.testing import ( assert_allclose, assert_array_almost_equal, assert_array_almost_eq...
34.556209
109
0.611583
a16ff8963370672c5012f98f105587cb0a6cd943
153
py
Python
chainer_dense_fusion/__init__.py
knorth55/chainer-dense-fusion
8ff53173d7071fc2cfcd05b1e0b2c544aeed090b
[ "MIT" ]
22
2019-01-31T23:50:30.000Z
2021-09-13T09:41:00.000Z
chainer_dense_fusion/__init__.py
knorth55/chainer-dense-fusion
8ff53173d7071fc2cfcd05b1e0b2c544aeed090b
[ "MIT" ]
4
2019-07-31T14:40:06.000Z
2022-03-16T13:32:45.000Z
chainer_dense_fusion/__init__.py
knorth55/chainer-dense-fusion
8ff53173d7071fc2cfcd05b1e0b2c544aeed090b
[ "MIT" ]
3
2019-08-30T09:18:45.000Z
2020-03-03T16:07:51.000Z
from chainer_dense_fusion import datasets # NOQA from chainer_dense_fusion import links # NOQA from chainer_dense_fusion import visualizations # NOQA
38.25
55
0.843137
d6f97a3835549c1b0ec876b2f0c8b1f086360b7e
1,455
py
Python
bsp/gd32/tools/sdk_dist.py
BreederBai/rt-thread
53ed0314982556dfa9c5db75d4f3e02485d16ab5
[ "Apache-2.0" ]
4
2018-01-17T03:12:59.000Z
2020-04-13T06:55:07.000Z
bsp/gd32/tools/sdk_dist.py
BreederBai/rt-thread
53ed0314982556dfa9c5db75d4f3e02485d16ab5
[ "Apache-2.0" ]
1
2018-12-20T00:02:50.000Z
2018-12-20T00:02:50.000Z
bsp/gd32/tools/sdk_dist.py
BreederBai/rt-thread
53ed0314982556dfa9c5db75d4f3e02485d16ab5
[ "Apache-2.0" ]
1
2022-01-12T07:33:32.000Z
2022-01-12T07:33:32.000Z
import os import sys import shutil cwd_path = os.getcwd() sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools')) def bsp_update_board_kconfig(dist_dir): # change board/kconfig path if not os.path.isfile(os.path.join(dist_dir, 'board/Kconfig')): return with open(os.path.joi...
38.289474
105
0.671478
59c3011f4da19f5c3839838d44d289adecbc8ef0
647
py
Python
tests/test_utils.py
hongningsg/Machine-Learning-and-Deep-Learning
84233a77ac8e736ad4fb26fb8c82995c4de64047
[ "MIT" ]
null
null
null
tests/test_utils.py
hongningsg/Machine-Learning-and-Deep-Learning
84233a77ac8e736ad4fb26fb8c82995c4de64047
[ "MIT" ]
null
null
null
tests/test_utils.py
hongningsg/Machine-Learning-and-Deep-Learning
84233a77ac8e736ad4fb26fb8c82995c4de64047
[ "MIT" ]
null
null
null
from utils import normalize import unittest import numpy as np class TestUtils(unittest.TestCase): def test_normalize(self): X = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) normalized_X = normalize(X) np.testing.assert_array_almost_equal(normali...
32.35
110
0.474498
2f14e73edafe8f9ef6bb13093faa8707270d34c4
1,647
py
Python
examples/plot_time_series.py
prakashabhale/fluidfoam
69b156b42b80169ff4c757554cba4f2784a79f82
[ "CECILL-B" ]
64
2018-03-08T21:52:48.000Z
2022-03-31T08:11:17.000Z
examples/plot_time_series.py
CyrilleBonamy/fluidfoam
2befa35722aa7aa13ac7d48884461614d608262b
[ "CECILL-B" ]
14
2019-12-12T10:56:10.000Z
2022-03-31T15:32:47.000Z
examples/plot_time_series.py
CyrilleBonamy/fluidfoam
2befa35722aa7aa13ac7d48884461614d608262b
[ "CECILL-B" ]
21
2019-09-25T21:34:43.000Z
2022-03-31T14:49:12.000Z
""" Read and Plot a time series of OpenFoam scalar field ==================================================== This example reads and plots a time series of an OpenFoam scalar field """ ############################################################################### # Gets the time directories # -----------------------...
24.954545
79
0.53309
1c05712c28478b2d8dcb98b92beaaa738c31bbe8
26,819
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/estimator/python/estimator/rnn.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/estimator/python/estimator/rnn.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/contrib/estimator/python/estimator/rnn.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
42.502377
113
0.688243
58ae4141137cdc44a4c1fcec27bf6c7e77887331
5,275
py
Python
project_spring_2020_morgankindel_pkg/main.py
morgankindel/project_spring_2020
868c7d7c9d4cf405c2ec1d25c4eb07d4a625e063
[ "Apache-2.0" ]
null
null
null
project_spring_2020_morgankindel_pkg/main.py
morgankindel/project_spring_2020
868c7d7c9d4cf405c2ec1d25c4eb07d4a625e063
[ "Apache-2.0" ]
null
null
null
project_spring_2020_morgankindel_pkg/main.py
morgankindel/project_spring_2020
868c7d7c9d4cf405c2ec1d25c4eb07d4a625e063
[ "Apache-2.0" ]
null
null
null
#import required packages import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import cv2 from PIL import Image from os import path #load input image from Sample images file folder or set new path for new input image #--create a counter that upticks when a sequentially named image is f...
37.678571
133
0.730047
fa141cb72fa209cced62b1277ef56dca8dff6358
2,703
py
Python
mapping/models.py
joshua-taylor/dataIntegrator
dc0cdc6bb0177b6499d49ca2e39b42291656235e
[ "MIT" ]
null
null
null
mapping/models.py
joshua-taylor/dataIntegrator
dc0cdc6bb0177b6499d49ca2e39b42291656235e
[ "MIT" ]
null
null
null
mapping/models.py
joshua-taylor/dataIntegrator
dc0cdc6bb0177b6499d49ca2e39b42291656235e
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.db import models import datetime class Requests(models.Model): creator = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, ) name = models.CharField(max_length=40, blank=True) desc...
40.343284
155
0.73067
ef4619646f2c43dd99232c6c123605adfcbf3e4b
3,008
py
Python
federatedml/protobuf/generated/pipeline_pb2.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
3
2021-11-01T01:22:58.000Z
2021-12-29T07:54:51.000Z
federatedml/protobuf/generated/pipeline_pb2.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
9
2020-01-28T23:05:25.000Z
2022-02-10T00:31:01.000Z
federatedml/protobuf/generated/pipeline_pb2.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
1
2022-01-04T07:05:52.000Z
2022-01-04T07:05:52.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pipeline.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refl...
34.976744
272
0.753657
c89331b135ea9fe3dc55b9eaa80c7f946b18aefc
535
py
Python
ML-Course-NTU-Lee/hw3/demo/plot.py
kaka-lin/ML-Courses
d7111fe64db3efae9acafa4532824c9554dbcaf1
[ "MIT" ]
null
null
null
ML-Course-NTU-Lee/hw3/demo/plot.py
kaka-lin/ML-Courses
d7111fe64db3efae9acafa4532824c9554dbcaf1
[ "MIT" ]
null
null
null
ML-Course-NTU-Lee/hw3/demo/plot.py
kaka-lin/ML-Courses
d7111fe64db3efae9acafa4532824c9554dbcaf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -- coding: utf-8 -- import argparse from keras.utils.vis_utils import plot_model from keras.models import load_model def main(): parser = argparse.ArgumentParser(prog='plot_model.py', description='Plot the model.') parser.add_argument('--model',type=str,default='model/model...
26.75
70
0.71028
38ea999161bc23fb4e4f8b636ebab0f5c1f53ec4
181,400
py
Python
python/src/chirpstack_api/as_pb/external/api/application_pb2.py
mattocchi/chirpstack-api
1db59dd135b4c2dff4a6a6df1884615288d6bd65
[ "MIT" ]
null
null
null
python/src/chirpstack_api/as_pb/external/api/application_pb2.py
mattocchi/chirpstack-api
1db59dd135b4c2dff4a6a6df1884615288d6bd65
[ "MIT" ]
null
null
null
python/src/chirpstack_api/as_pb/external/api/application_pb2.py
mattocchi/chirpstack-api
1db59dd135b4c2dff4a6a6df1884615288d6bd65
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: chirpstack-api/as_pb/external/api/application.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import ...
45.520703
21,023
0.787211
e7284e573b8cf4ac4dba6d3798d726c9029cc293
18,660
py
Python
src/streamlink/session.py
kronoc/streamlink
3fc9da85f287d344c5ebe1d3881b4b481f0c39a6
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/session.py
kronoc/streamlink
3fc9da85f287d344c5ebe1d3881b4b481f0c39a6
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/session.py
kronoc/streamlink
3fc9da85f287d344c5ebe1d3881b4b481f0c39a6
[ "BSD-2-Clause" ]
null
null
null
import logging import pkgutil from collections import OrderedDict from functools import lru_cache from socket import AF_INET, AF_INET6 from typing import Dict, Optional, Type import requests import requests.packages.urllib3.util.connection as urllib3_connection from requests.packages.urllib3.util.connection import all...
40.215517
125
0.542551
9337bcfaa487cb162c25b2c3deb8c77e364b5755
395
py
Python
setup.py
tpatten/pointnet.pytorch
7952502cf349a9d0d1c9751a9ae9231c09e4f37a
[ "MIT" ]
null
null
null
setup.py
tpatten/pointnet.pytorch
7952502cf349a9d0d1c9751a9ae9231c09e4f37a
[ "MIT" ]
null
null
null
setup.py
tpatten/pointnet.pytorch
7952502cf349a9d0d1c9751a9ae9231c09e4f37a
[ "MIT" ]
null
null
null
# install using 'pip install -e .' from setuptools import setup #setup(name='pointnet', # packages=['pointnet'], # package_dir={'pointnet': 'pointnet'}, # install_requires=['torch', # 'tqdm', # 'plyfile'], # version='0.0.1') setup(name='pointnet', ...
23.235294
44
0.531646
01d9ccd4603ad5ff43240eb5b2e1e63297a8544f
4,385
py
Python
scripts/onnx_generator/OperatorTypeResolver.py
mdhimes/cONNXr
986e9658ac9fafa38fb7939e2142dd213f95acce
[ "MIT" ]
null
null
null
scripts/onnx_generator/OperatorTypeResolver.py
mdhimes/cONNXr
986e9658ac9fafa38fb7939e2142dd213f95acce
[ "MIT" ]
null
null
null
scripts/onnx_generator/OperatorTypeResolver.py
mdhimes/cONNXr
986e9658ac9fafa38fb7939e2142dd213f95acce
[ "MIT" ]
null
null
null
from .Template import Template class CaseSkip(Template): _template = ''' /* skip non tensor constraint '{constraint}' ('{original}') */ ''' def __init__(self, constraint, original): self.constraint = constraint self.original = original class CaseSwitch(Template): _template = ''' case {case...
32.007299
169
0.594983
2aca687da047fc03f2d8cd24576d17d97b10bb50
794
py
Python
LeetCode/HouseRobberIII.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/HouseRobberIII.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
LeetCode/HouseRobberIII.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: dp = {} def rob(self, root: TreeNode, can_pick_root: bool = True) -> int: if root == None: ...
39.7
111
0.609572
ea4b5cfb61de8aebfdf8a87097ec11c0ab5c524f
2,508
py
Python
test/functional/mempool_limit.py
Nomadic-Official/nomadic-nomd-coin
e9f758e5d43b9024c1ef876c2888934be08d4edd
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
Nomadic-Official/nomadic-nomd-coin
e9f758e5d43b9024c1ef876c2888934be08d4edd
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
Nomadic-Official/nomadic-nomd-coin
e9f758e5d43b9024c1ef876c2888934be08d4edd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool limiting together/eviction with the wallet.""" from test_framework.test_framework import ...
45.6
118
0.672249
ad22cefc68168db6de09463aab8253d08d627567
21,662
py
Python
qa/rpc-tests/test_framework/util.py
pw512/scribe
3dbe0da8d5a71a4867d0274e67c5b2a56431efd4
[ "MIT" ]
4
2020-01-04T08:49:56.000Z
2021-11-01T20:59:47.000Z
qa/rpc-tests/test_framework/util.py
pw512/scribe
3dbe0da8d5a71a4867d0274e67c5b2a56431efd4
[ "MIT" ]
1
2020-08-13T07:56:11.000Z
2020-08-13T10:35:11.000Z
qa/rpc-tests/test_framework/util.py
pw512/scribe
3dbe0da8d5a71a4867d0274e67c5b2a56431efd4
[ "MIT" ]
5
2019-11-12T10:23:39.000Z
2021-08-08T01:27:47.000Z
# Copyright (c) 2014-2015 The Bitcoin Core developers # Copyright (c) 2014-2017 The Dash Core developers # Copyright (c) 2018 The Scribe Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for...
35.337684
153
0.652387
8c3f4b1cc0afc0039d2be621a35254996da71ae4
6,337
py
Python
stdplugins/archive.py
IshwaranRudhara/PepeBot
5c0bd4c19e076bee73cf62a4dc804681045754d3
[ "Apache-2.0" ]
6
2020-04-21T04:52:42.000Z
2020-06-19T09:33:02.000Z
stdplugins/archive.py
faquario/PepeBorg
be9be790b4e2b5456536162786dbd1ead71be024
[ "Apache-2.0" ]
1
2021-02-08T20:49:02.000Z
2021-02-08T20:49:02.000Z
stdplugins/archive.py
prono69/LazyAF-Pepe
b78d4b9f174a65b77b6b5f4969386aa6dd3359ce
[ "Apache-2.0" ]
3
2020-04-21T05:45:54.000Z
2020-05-01T15:03:40.000Z
""" usage: reply with file : .rar , .7z create archived file unzip usage: reply with zipped file .unzipper Coded by @furki """ import asyncio import os import subprocess import time from sample_config import Config from uniborg.util import admin_cmd, progress import subprocess import patoolib extracted = Config.TMP_D...
39.60625
120
0.579296
88e3dd48e5c771f15f0cb36d6769620033a2df28
4,998
py
Python
tests/unit/states/test_pyenv.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
tests/unit/states/test_pyenv.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
tests/unit/states/test_pyenv.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase from tests.support.mock import ( ...
37.863636
78
0.529812
7cbd79dbac8eb7099c255221b15fa38363cd2878
207
py
Python
src/games/domino/module/players/utils.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
1
2021-09-16T12:58:24.000Z
2021-09-16T12:58:24.000Z
src/games/domino/module/players/utils.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
3
2021-09-08T23:20:20.000Z
2022-01-30T22:45:44.000Z
src/games/domino/module/players/utils.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
null
null
null
def count_min(player, piece): cant = [0, 0] for item in player.pieces: cant[0] += (piece[0] in item) cant[1] += (piece[1] in item) val = min(cant) return val, cant.index(val)
25.875
37
0.555556
82237e917a49cd5d076e702037cb3389798c25ed
6,953
py
Python
terraform-modules/lambda/code/cname-google/cname-google.py
Mellis3489/domain-protect
26a64a741541abb4d17b18cd53b94fc6de387b8f
[ "Apache-2.0" ]
null
null
null
terraform-modules/lambda/code/cname-google/cname-google.py
Mellis3489/domain-protect
26a64a741541abb4d17b18cd53b94fc6de387b8f
[ "Apache-2.0" ]
null
null
null
terraform-modules/lambda/code/cname-google/cname-google.py
Mellis3489/domain-protect
26a64a741541abb4d17b18cd53b94fc6de387b8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, boto3 import logging import json import requests import time from botocore.exceptions import ClientError from datetime import datetime def json_serial(obj): """JSON serializer for objects not serializable by default json code""" if isinstance(obj, datetime): serial = ...
45.149351
180
0.554149
767deb90f60d22504fc89b06dd4dd15d06b71506
1,129
py
Python
bumblebee_status/modules/contrib/layout-xkbswitch.py
rosalogia/bumblebee-status
19c3975301d8700743df745ecd5ca2c05ecf5cf0
[ "MIT" ]
null
null
null
bumblebee_status/modules/contrib/layout-xkbswitch.py
rosalogia/bumblebee-status
19c3975301d8700743df745ecd5ca2c05ecf5cf0
[ "MIT" ]
null
null
null
bumblebee_status/modules/contrib/layout-xkbswitch.py
rosalogia/bumblebee-status
19c3975301d8700743df745ecd5ca2c05ecf5cf0
[ "MIT" ]
null
null
null
"""Displays and changes the current keyboard layout Requires the following executable: * xkb-switch contributed by `somospocos <https://github.com/somospocos>`_ - many thanks! """ import core.module import core.widget import core.decorators import core.input import util.cli class Module(core.module.Module): ...
26.255814
87
0.690877
dcc7806a073603e909c953b204e0a2c1c3d6ed8f
8,382
py
Python
ykman/util.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
ykman/util.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
ykman/util.py
nevun/yubikey-manager
01ba3dac6237bb05456820176ebadd6350991c2b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
30.043011
88
0.655333
27b0d51f432ab9eecac66cf0ccef698bb1568b41
1,031
py
Python
integration-test/helper.py
montaro/really
46888bf138c554ca844e1d9dcf7de14efc12bb86
[ "Apache-2.0" ]
null
null
null
integration-test/helper.py
montaro/really
46888bf138c554ca844e1d9dcf7de14efc12bb86
[ "Apache-2.0" ]
null
null
null
integration-test/helper.py
montaro/really
46888bf138c554ca844e1d9dcf7de14efc12bb86
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import websocket import unittest import jwt import datetime import time import json import requests class Helper(object): really_server = 'ws://127.0.0.1:9000/v0.1/socket' really_auth = 'http://127.0.0.1:8080/anonymous/login/' @staticmethod def get_token_outside...
31.242424
107
0.651794
245a93aaf2fac775166e5604d885409fa5cbe009
5,701
py
Python
gym_MiniCheetahEnv/envs/src/world.py
dhanajaya78/Mini-Cheetah---PyBullet
5c113c004018ff6f247f5bbddc5d1ac52601d718
[ "MIT" ]
1
2021-12-04T15:57:52.000Z
2021-12-04T15:57:52.000Z
gym_MiniCheetahEnv/envs/src/world.py
dhanajaya78/Mini-Cheetah---PyBullet
5c113c004018ff6f247f5bbddc5d1ac52601d718
[ "MIT" ]
null
null
null
gym_MiniCheetahEnv/envs/src/world.py
dhanajaya78/Mini-Cheetah---PyBullet
5c113c004018ff6f247f5bbddc5d1ac52601d718
[ "MIT" ]
null
null
null
import numpy as np import gym from gym import spaces import math import cv2 import random import time import pybullet import pybullet_data from src.mini_cheetah_class import Mini_Cheetah from src.dynamics_randomization import DynamicsRandomizer class Terrain(): def __init__(self,render = True,on_rack = Fals...
37.506579
287
0.619891
4a0adf403b61ec03a0e0ec17a87ef3b59a0d5fed
187
py
Python
contact_us/apps.py
ohahlev/ahlev-django-contact-us
a1e8e22bba16ca79ee355ac12a4627df29f76ce8
[ "BSD-3-Clause" ]
null
null
null
contact_us/apps.py
ohahlev/ahlev-django-contact-us
a1e8e22bba16ca79ee355ac12a4627df29f76ce8
[ "BSD-3-Clause" ]
null
null
null
contact_us/apps.py
ohahlev/ahlev-django-contact-us
a1e8e22bba16ca79ee355ac12a4627df29f76ce8
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from . import __version__ as VERSION class ContactUsConfig(AppConfig): name = "contact_us" verbose_name = "Contact Us Management %s" % VERSION
23.375
55
0.754011
cd289353e446ddbb6307bfde167fcf5a3b506ea9
2,130
py
Python
eval.py
SeoSangwoo/gcn-over-pruned-trees
d82cf374457a8da84719d89d414330ae4849d5ba
[ "Apache-2.0" ]
380
2018-09-27T19:02:49.000Z
2022-03-10T12:19:32.000Z
eval.py
RexYing/gcn-over-pruned-trees
e574f4d0336bf807791dde1e97f406c0001e3397
[ "Apache-2.0" ]
24
2018-10-03T15:03:01.000Z
2021-06-10T11:55:15.000Z
eval.py
RexYing/gcn-over-pruned-trees
e574f4d0336bf807791dde1e97f406c0001e3397
[ "Apache-2.0" ]
75
2018-10-10T07:06:13.000Z
2022-03-20T14:01:37.000Z
""" Run evaluation with saved models. """ import random import argparse from tqdm import tqdm import torch from data.loader import DataLoader from model.trainer import GCNTrainer from utils import torch_utils, scorer, constant, helper from utils.vocab import Vocab parser = argparse.ArgumentParser() parser.add_argumen...
31.791045
97
0.730986
bfeeaa3d5b2123742619d80d2b6aa1ad057d1348
1,898
py
Python
scripts/spack/packages/py-polyclipper/package.py
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
scripts/spack/packages/py-polyclipper/package.py
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
17
2020-01-05T08:41:46.000Z
2020-09-18T00:08:32.000Z
scripts/spack/packages/py-polyclipper/package.py
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.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 PyPolyclipper(CMakePackage, PythonPackage): """Polyclipper""" homepage = "https://pyp...
38.734694
114
0.675448
766d8dc8631798a874530df8264e1bcc3604d8ec
13,956
py
Python
tasks/_iblrig_tasks_ephysChoiceWorld/session_params.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
null
null
null
tasks/_iblrig_tasks_ephysChoiceWorld/session_params.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
4
2019-04-03T06:11:48.000Z
2019-06-14T00:12:19.000Z
tasks/_iblrig_tasks_ephysChoiceWorld/session_params.py
alejandropan/iblrig
d8e746ccc52c2ad325404077ad2403e165e94d0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Niccolò Bonacchi # @Date: 2018-02-02 17:19:09 import os import sys from sys import platform from pathlib import Path import logging from pythonosc import udp_client from ibllib.graphic import numinput, multi_input sys.path.append(str(Path(__file_...
44.874598
127
0.517054
81b186512ed8f925bdbbee126bb3df7e8aad0161
3,793
py
Python
IMLearn/learners/classifiers/gaussian_naive_bayes.py
TomShimshi/IML.HUJI
68dc17396519f0de4b7f6da8f9fd37f49d8ee3ff
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
TomShimshi/IML.HUJI
68dc17396519f0de4b7f6da8f9fd37f49d8ee3ff
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
TomShimshi/IML.HUJI
68dc17396519f0de4b7f6da8f9fd37f49d8ee3ff
[ "MIT" ]
null
null
null
from typing import NoReturn from ...base import BaseEstimator import numpy as np class GaussianNaiveBayes(BaseEstimator): """ Gaussian Naive-Bayes classifier """ def __init__(self): """ Instantiate a Gaussian Naive Bayes classifier Attributes ---------- self.cla...
33.866071
99
0.584498
d50ac7cf560aba1c525868d897567c11fc74d49e
76
py
Python
bulq/plugins/bulq_decoder_gzip/__init__.py
koji-m/bulq
78f97d2e57d6bcb0ec3fa2b0c7539db3ebaa104a
[ "Apache-2.0" ]
null
null
null
bulq/plugins/bulq_decoder_gzip/__init__.py
koji-m/bulq
78f97d2e57d6bcb0ec3fa2b0c7539db3ebaa104a
[ "Apache-2.0" ]
null
null
null
bulq/plugins/bulq_decoder_gzip/__init__.py
koji-m/bulq
78f97d2e57d6bcb0ec3fa2b0c7539db3ebaa104a
[ "Apache-2.0" ]
null
null
null
from . import bulq_decoder_gzip plugin = bulq_decoder_gzip.BulqDecoderGzip
19
42
0.855263
f51846240604d696334916648d7e1bcad1a1dd99
5,904
py
Python
debiai/debiai_selection.py
DebiAI/py-debiai
fd784fd1ca7a59c38714275b6fad53ba9f09eaa7
[ "Apache-2.0" ]
1
2022-03-01T13:17:16.000Z
2022-03-01T13:17:16.000Z
debiai/debiai_selection.py
debiai/py-debiai
fd784fd1ca7a59c38714275b6fad53ba9f09eaa7
[ "Apache-2.0" ]
null
null
null
debiai/debiai_selection.py
debiai/py-debiai
fd784fd1ca7a59c38714275b6fad53ba9f09eaa7
[ "Apache-2.0" ]
null
null
null
from typing import List import numpy as np import pandas as pd import hashlib import utils as utils import debiai_utils as debiai_utils DEBIAI_TYPES = ["contexts", "inputs", "groundTruth", "others"] class Debiai_selection: """ A Debiai data selection : a list of sample id It can belongs to a request ...
35.353293
103
0.553523
10ef60d0db61e4169244f36332b8b8a0bf4535f3
9,248
py
Python
tensorflow/contrib/solvers/python/ops/lanczos.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
1
2019-02-16T10:41:53.000Z
2019-02-16T10:41:53.000Z
tensorflow/contrib/solvers/python/ops/lanczos.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/solvers/python/ops/lanczos.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.862069
80
0.645978
39668ef2c9bf86f7ca263d20545e4676ec8ebb84
4,843
py
Python
arrays_strings/one_edit_away.py
KeirSimmons/cracking-the-coding-interview
66248cec9eab71184d691f1f5652d97f5d964c9e
[ "MIT" ]
null
null
null
arrays_strings/one_edit_away.py
KeirSimmons/cracking-the-coding-interview
66248cec9eab71184d691f1f5652d97f5d964c9e
[ "MIT" ]
null
null
null
arrays_strings/one_edit_away.py
KeirSimmons/cracking-the-coding-interview
66248cec9eab71184d691f1f5652d97f5d964c9e
[ "MIT" ]
null
null
null
class OneEditAway: """Checks whether or not two strings are at most one edit away (default). This maximum number of allowed edits can actually be changed in the init function (to 0, or 2, for example). Keyword arguments: strA -- [str] the first string to check strB -- [str] the second string to che...
48.43
99
0.616353
f0883b39b8c1a0abc03a3f390d27e586d5bc980c
6,124
py
Python
king_phisher/server/graphql/types/misc.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
1,143
2015-01-12T15:05:16.000Z
2020-04-12T16:10:19.000Z
king_phisher/server/graphql/types/misc.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
399
2015-01-22T15:20:03.000Z
2020-04-08T23:01:46.000Z
king_phisher/server/graphql/types/misc.py
chachabooboo/king-phisher
8a91b9043de0f12b5cad9a5f1d64ebd0179a6c4d
[ "BSD-3-Clause" ]
351
2015-02-02T21:39:38.000Z
2020-03-21T11:45:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/server/graphql/types/misc.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # ...
31.244898
97
0.762084
79689257fd4e0ec51095bba4fa3533cc3e310f6e
1,452
py
Python
python-sdk/tutorials/automl-with-azureml/continuous-retraining/check_data.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
331
2020-08-26T15:54:23.000Z
2022-03-31T17:10:58.000Z
python-sdk/tutorials/automl-with-azureml/continuous-retraining/check_data.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
262
2020-08-25T23:17:17.000Z
2022-03-31T00:25:32.000Z
python-sdk/tutorials/automl-with-azureml/continuous-retraining/check_data.py
0mza987/azureml-examples
2abb872f1278d4b4e65587e033f38a058512b2e3
[ "MIT" ]
307
2020-09-04T01:02:11.000Z
2022-03-31T16:46:48.000Z
import argparse import os import azureml.core from datetime import datetime import pandas as pd import pytz from azureml.core import Dataset, Model from azureml.core.run import Run, _OfflineRun from azureml.core import Workspace run = Run.get_context() ws = None if type(run) == _OfflineRun: ws = Works...
30.893617
89
0.726584
59afac174df91a7d526f39179a6992cf9e231411
57,163
py
Python
parsedmarc/__init__.py
Wouter0100/parsedmarc
0ae15ed90cb83b810325ff60c9c4ff595a4ec57d
[ "Apache-2.0" ]
null
null
null
parsedmarc/__init__.py
Wouter0100/parsedmarc
0ae15ed90cb83b810325ff60c9c4ff595a4ec57d
[ "Apache-2.0" ]
null
null
null
parsedmarc/__init__.py
Wouter0100/parsedmarc
0ae15ed90cb83b810325ff60c9c4ff595a4ec57d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """A Python package for parsing DMARC reports""" import logging import os import shutil import xml.parsers.expat as expat import json from datetime import datetime from collections import OrderedDict from io import BytesIO, StringIO from gzip import GzipFile import zipfile from csv import Dict...
41.21341
79
0.58293
1ba378633179d561b40c43b80fc2da841795de5c
2,486
py
Python
Cycle GAN/create_cyclegan_dataset.py
he71dulu/SEMAAMIP
501b912b3bace5475eed103d1c223b6cf574ae32
[ "MIT" ]
null
null
null
Cycle GAN/create_cyclegan_dataset.py
he71dulu/SEMAAMIP
501b912b3bace5475eed103d1c223b6cf574ae32
[ "MIT" ]
null
null
null
Cycle GAN/create_cyclegan_dataset.py
he71dulu/SEMAAMIP
501b912b3bace5475eed103d1c223b6cf574ae32
[ "MIT" ]
null
null
null
"""Create datasets for training and testing.""" import csv import os import random import click from . import cyclegan_datasets def create_list(foldername, fulldir=True, suffix=".jpg"): """ :param foldername: The full path of the folder. :param fulldir: Whether to return the full path or not. :para...
32.285714
78
0.637973
6f9f28f426a8b0df1ba11fded7ba6b0b9e0f2265
7,373
py
Python
applications/hw2/models/menu.py
chipsandtea/CMPS183
56073fb13035886b68dae125175497af213d24c8
[ "BSD-3-Clause" ]
null
null
null
applications/hw2/models/menu.py
chipsandtea/CMPS183
56073fb13035886b68dae125175497af213d24c8
[ "BSD-3-Clause" ]
null
null
null
applications/hw2/models/menu.py
chipsandtea/CMPS183
56073fb13035886b68dae125175497af213d24c8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ---------------------------------------------------------------------------------------------------------------------- # Customize your APP title, subtitle and menus here # ----------------------------------------...
48.189542
120
0.403906
a10abac17391de8fda18dd7fe5aefe9fce3a54e0
9,859
py
Python
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" RL MODULE WITH RANDOM SEARCH CALL BY: <random_search.py> RETURN: Parameter Matrices for the inverted Pendulum Problem Stores Data of best Parameters in '<date>_rs_reward_<reward>.p' INFO: - """ # Some dependencies import numpy as np # Maths and stuff import gym.spaces # Simulating the E...
39.278884
171
0.507151
c847f47e77f1929c00eec039f448e4652aa6f19a
4,292
py
Python
theforce/deprecated/util/arrays.py
changwmyung/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
19
2019-10-21T06:56:22.000Z
2022-03-14T06:43:42.000Z
theforce/deprecated/util/arrays.py
17DongGeonKim/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
8
2019-10-23T07:48:49.000Z
2022-03-23T03:47:44.000Z
theforce/deprecated/util/arrays.py
17DongGeonKim/AutoForce
c8a429b05685841e1f17e8655b981753e1d086be
[ "MIT" ]
4
2021-09-25T11:28:44.000Z
2022-02-25T06:50:48.000Z
import numpy as np import warnings def cat(arrays, axis=0): lengths = [array.shape[axis] for array in arrays] cat = np.concatenate(arrays, axis=axis) spec = lengths + [axis] return cat, spec def split(array, spec): return np.split(array, np.cumsum(spec[:-2]), spec[-1]) class SparseArray: ...
28.236842
83
0.50466
7e49ab3ba4eecdbd23b0b124a9cdfe2b64e9ac54
13,957
py
Python
solvers.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
solvers.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
solvers.py
cmpute/EECS558-Project
d964059901c62773b475c5d4b40f018ee28a0c73
[ "Unlicense" ]
null
null
null
import time import numpy as np import scipy.spatial as sps from scipy.sparse import csc_matrix from shapely.geometry import Point, MultiPoint, LineString, mapping from shapely.ops import unary_union, nearest_points from tqdm import trange from easydict import EasyDict as edict from matplotlib import patches as patches ...
41.292899
143
0.592678
57e0e622d472ecf3933e315ff3f55c6874058ad9
2,277
py
Python
examples/poses_and_cameras.py
martiege/pylie
f44c464d166b4e7b695b489153dfaf11c14fe1bb
[ "BSD-3-Clause" ]
null
null
null
examples/poses_and_cameras.py
martiege/pylie
f44c464d166b4e7b695b489153dfaf11c14fe1bb
[ "BSD-3-Clause" ]
null
null
null
examples/poses_and_cameras.py
martiege/pylie
f44c464d166b4e7b695b489153dfaf11c14fe1bb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import visgeom as vg import matplotlib import matplotlib.pyplot as plt from pylie import SO3, SE3 # Use Qt 5 backend in visualisation. matplotlib.use('qt5agg') # Create figure and axis. fig = plt.figure() ax = plt.axes(projection='3d') ax.set_xlabel('x') ax.set_ylabel('y') ax.set_zlabel('z') # Plo...
30.77027
87
0.656126
5eaea3c9f67656a09c5bfa20eff71c63f39eb8eb
5,690
py
Python
test_scripts/kalman/MPC_observer.py
forgi86/pyMPC
291db149554767a035fcb01df3fed7a6b3fe60e4
[ "MIT" ]
84
2019-05-28T09:27:37.000Z
2022-03-31T08:38:23.000Z
test_scripts/kalman/MPC_observer.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
2
2020-04-17T00:03:27.000Z
2021-01-30T11:35:58.000Z
test_scripts/kalman/MPC_observer.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
20
2019-10-13T13:50:16.000Z
2022-03-31T08:38:25.000Z
import numpy as np import scipy.sparse as sparse import time import matplotlib.pyplot as plt from pyMPC.mpc import MPCController from kalman import kalman_filter if __name__ == '__main__': # Constants # M = 0.5 m = 0.2 b = 0.1 ftheta = 0.1 l = 0.3 g = 9.81 Ts = 25e-3 Ac =np.array...
31.092896
157
0.529174
c99ecd4ce04ed47d8858572802013431ca03b168
880
py
Python
setup.py
nagareproject/editor
975d0362e98527ed5ceb41a8310a897e08987581
[ "BSD-3-Clause" ]
null
null
null
setup.py
nagareproject/editor
975d0362e98527ed5ceb41a8310a897e08987581
[ "BSD-3-Clause" ]
null
null
null
setup.py
nagareproject/editor
975d0362e98527ed5ceb41a8310a897e08987581
[ "BSD-3-Clause" ]
null
null
null
# Encoding: utf-8 # -- # Copyright (c) 2008-2021 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- import os from setuptools import find_packages, setup with open(os.path.join...
26.666667
80
0.715909
38359e141e6c6be9dd088208acf7d9a66135b8d2
14,487
py
Python
projx/nxprojx.py
CrystallineCat/projx
a50fb4fa8f24a6267ac57b08dd477422a8549f70
[ "MIT" ]
null
null
null
projx/nxprojx.py
CrystallineCat/projx
a50fb4fa8f24a6267ac57b08dd477422a8549f70
[ "MIT" ]
null
null
null
projx/nxprojx.py
CrystallineCat/projx
a50fb4fa8f24a6267ac57b08dd477422a8549f70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ These are the core functions/classes for interacting with NetworkX. """ from itertools import chain import networkx as nx def reset_index(graph): """ This clobbers your nodes, best protect them. :param graph: networx.Graph :returns: networkx.Graph """ mapping = dic...
36.127182
78
0.591703
44f4dae62127b432b4e01c4272efbc76caa77413
1,483
py
Python
rev/MatrixMaster/sol/disass.py
NotCl0ne/foobarctf-22
c947501c982c266c3546269640b920a650077510
[ "MIT" ]
null
null
null
rev/MatrixMaster/sol/disass.py
NotCl0ne/foobarctf-22
c947501c982c266c3546269640b920a650077510
[ "MIT" ]
null
null
null
rev/MatrixMaster/sol/disass.py
NotCl0ne/foobarctf-22
c947501c982c266c3546269640b920a650077510
[ "MIT" ]
null
null
null
import struct base = 0x3018 d = bytearray(open("matrix","rb").read()[base:base+0x90]) pc = 0 # print(d) # print(d[2]) while pc < len(d)-2: print("%.2x : " % pc,end=' ') if(d[pc] == 0): print("XOR r%i, r%i\n" % (d[pc+1],d[pc+2])) pc+=3 continue if(d[pc] == 1): print("AND r%...
25.135593
86
0.426837
39cf65d4b7a031da29d2028b52118acafee2d02a
789
py
Python
profiles_api/migrations/0002_userprofilesfeed.py
glen-s-abraham/profile-rest-api
0cbcd545b4394905b7b4ab58a0b7ab4f1e508412
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_userprofilesfeed.py
glen-s-abraham/profile-rest-api
0cbcd545b4394905b7b4ab58a0b7ab4f1e508412
[ "MIT" ]
2
2021-06-10T20:00:16.000Z
2021-09-22T19:31:57.000Z
profiles_api/migrations/0002_userprofilesfeed.py
glen-s-abraham/profile-rest-api
0cbcd545b4394905b7b4ab58a0b7ab4f1e508412
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-07 13:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.56
126
0.632446
bb7a330524d65a7926700dbb1a230e2e44bb5e38
820
py
Python
isi_sdk_8_1_1/test/test_empty.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/test/test_empty.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/test/test_empty.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from i...
20
79
0.67561
2be2f5af96209a89ff0a00144c986d90b8ccbc6d
1,049
py
Python
model/medical_test_critearea.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/medical_test_critearea.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/medical_test_critearea.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Part of BrowseInfo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ # classes under cofigration menu of laboratry class medical_test_critearea(models.Model): _name = 'medical_test.critearea' test_id = fields.Many2one('medical.test...
38.851852
80
0.709247
87b8240dc1aefa056f28ea059a0c2fb960f7051d
1,135
py
Python
extensions/widgets/interactive/TarFileReadInput/TarFileReadInput.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
3
2015-01-10T23:45:23.000Z
2015-02-17T10:46:08.000Z
extensions/widgets/interactive/TarFileReadInput/TarFileReadInput.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
null
null
null
extensions/widgets/interactive/TarFileReadInput/TarFileReadInput.py
aldeka/oppia
aead304c95a282c9ca8035bc25c4794864d07578
[ "Apache-2.0" ]
null
null
null
from core.domain import widget_domain class TarFileReadInput(widget_domain.BaseWidget): """Definition of a widget. Do NOT make any changes to this widget definition while the Oppia app is running, otherwise things will break. This class represents a widget, whose id is the name of the class. It is ...
31.527778
79
0.69163
02c03a4541933018926eb5aed0a215364b5c850c
3,564
py
Python
user/models.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
user/models.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
user/models.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
import os from django.db import models from django.conf import settings from django.utils.text import slugify from django.urls import reverse from django.contrib.auth.models import BaseUserManager, AbstractBaseUser, PermissionsMixin from django.core.validators import RegexValidator class UserManager(BaseUserManager):...
38.73913
140
0.699214
2712f541b015421b6a52802fa488845e16f528b7
41,647
py
Python
seqpos/lib/python2.7/site-packages/hgext/bugzilla.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/hgext/bugzilla.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/hgext/bugzilla.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
# bugzilla.py - bugzilla integration for mercurial # # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> # Copyright 2011-4 Jim Hague <jim.hague@acm.org> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. '''hooks for integrating ...
36.855752
80
0.608159
4330f9467f7c110c1a4825b89431b4731cd35026
13,904
py
Python
benchmarks/generate_benchmark_params.py
YannCabanes/geomstats
ce3f4bab6cd59c2f071371a46e336086771d0493
[ "MIT" ]
null
null
null
benchmarks/generate_benchmark_params.py
YannCabanes/geomstats
ce3f4bab6cd59c2f071371a46e336086771d0493
[ "MIT" ]
null
null
null
benchmarks/generate_benchmark_params.py
YannCabanes/geomstats
ce3f4bab6cd59c2f071371a46e336086771d0493
[ "MIT" ]
null
null
null
"""Benchmarking parameters generation file.""" import argparse from itertools import chain, product import pandas as pd parser = argparse.ArgumentParser( description="Generate parameters for which benchmark is run" ) parser.add_argument( "-m", "--manifold", type=str, default="all", help="Man...
26.636015
85
0.617161
ad1afd439e26fd72c45d39b44ff836428275dbd6
380
py
Python
django_fixtures/unittests.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
django_fixtures/unittests.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
django_fixtures/unittests.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
from django.test import TestCase from .fixtures import RequiredFixturesMixin, FixturesData class FixturesTestCase(TestCase, RequiredFixturesMixin): @classmethod def setUpClass(cls): initial_fixtures, cls.fixtures = FixturesData(cls.fixtures or []), [] super().setUpClass() cls.fixtur...
25.333333
77
0.726316
3ebb7738c5109cb46e77bedfa17fa8fc1d8ad1bc
414
py
Python
testprograms/MainLarge_slave.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
2
2020-07-14T01:31:14.000Z
2021-02-22T19:14:12.000Z
testprograms/MainLarge_slave.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
19
2020-02-16T08:11:23.000Z
2020-12-10T10:06:36.000Z
testprograms/MainLarge_slave.py
jchmrt/ev3dev2simulator
3a8968162d1658a82860a613caf9986c5428b124
[ "MIT" ]
10
2020-03-02T08:37:29.000Z
2022-03-06T03:49:07.000Z
#!/usr/bin/env python3 from ev3dev2._platform.ev3 import INPUT_1, INPUT_4, INPUT_2, INPUT_3, OUTPUT_B from ev3dev2.led import Leds from ev3dev2.sensor.lego import TouchSensor from testprograms.BluetoothHelper import BluetoothHelper bth = BluetoothHelper() bth.connect_as_client() leds = Leds() leds.animate_rainbow() ...
23
78
0.797101
d536aa27b78509b6f1783f2d586aae9370b665fc
7,866
py
Python
code/glow_pytorch/hparams_tuning.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
11
2020-10-21T09:58:53.000Z
2022-01-22T08:31:57.000Z
code/glow_pytorch/hparams_tuning.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
3
2021-05-05T07:15:45.000Z
2021-12-14T14:43:42.000Z
code/glow_pytorch/hparams_tuning.py
jonepatr/lets_face_it
fefba5e82d236f89703449bd517cfa5867fda09f
[ "MIT" ]
4
2020-10-21T09:46:22.000Z
2021-12-16T11:41:03.000Z
import json import multiprocessing import os import shutil import socket from argparse import ArgumentParser, Namespace from pprint import pprint from glow_pytorch.glow.utils import calc_jerk, get_longest_history import numpy as np import optuna import pytorch_lightning as pl import torch import yaml from jsmin import...
31.97561
86
0.663361
651706a4de46693005f32788864d0b406e2a9c27
5,917
py
Python
test/functional/bsv-pbv-processingorder.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
test/functional/bsv-pbv-processingorder.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
null
null
null
test/functional/bsv-pbv-processingorder.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 Bitcoin Association # Distributed under the Open BSV software license, see the accompanying file LICENSE. """ Testing that we correctly accept blocks even if due to race condition child block arrives to best chain activation stage before parent. We have the following case: 1...
38.174194
101
0.709481
cb5658ac19ef730efc2352b985a7c4ce7665483c
2,607
py
Python
ietf/community/migrations/0002_auto_20180220_1052.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/community/migrations/0002_auto_20180220_1052.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/community/migrations/0002_auto_20180220_1052.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2018-2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-20 10:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import ietf.utils.models class Migration(migrations.Migration): initial ...
36.71831
144
0.61987
06d97dad460660d257491a1bff579ba6e970000b
769
py
Python
project/admin.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
project/admin.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
project/admin.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
from django.contrib import admin from project.models import Reservation, User, Menu from django.contrib.auth.admin import UserAdmin # Register your models here. class ReservationAdmin(admin.ModelAdmin): list_display = ['first_name', 'last_name', 'email', 'people', 'time', 'phone', ...
29.576923
65
0.664499
11660db8b9a2b8826662289b3fc414ba1eefb3d9
84
py
Python
timi_robot/__init__.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
1
2019-12-16T18:20:42.000Z
2019-12-16T18:20:42.000Z
timi_robot/__init__.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
null
null
null
timi_robot/__init__.py
lxl0928/wechat_work_logger_robot
a8e3e968e31c94a5ae8dee573a1bc4f7dccd7d95
[ "Apache-2.0" ]
1
2021-04-11T04:36:50.000Z
2021-04-11T04:36:50.000Z
# coding: utf-8 from timi_robot.logger import SensoroLogger as SensoroLoggerClient
21
66
0.833333
4b9873d632dd92a7ab446f10f8bee4dc53b10b68
38,017
py
Python
services/core/BACnetProxy/bacnet_proxy/agent.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
1
2020-06-08T16:54:28.000Z
2020-06-08T16:54:28.000Z
services/core/BACnetProxy/bacnet_proxy/agent.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
8
2016-10-07T22:49:28.000Z
2022-02-23T00:57:58.000Z
services/core/BACnetProxy/bacnet_proxy/agent.py
craig8/volttron
2a954311d323effa3b79c2a53f6e8c3bb9664e1c
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
43.299544
120
0.619354
726c09fe9f424eb77d139d9a7c49c5458a3b702a
5,441
py
Python
astar.py
DanielaMorariu1990/Supermarket_MCMC_simulation
c94365ea93864cebd5d356670f4639ce21815e4c
[ "MIT" ]
2
2020-11-16T14:09:55.000Z
2021-03-05T15:00:29.000Z
astar.py
DanielaMorariu1990/Supermarket_MCMC_simulation
c94365ea93864cebd5d356670f4639ce21815e4c
[ "MIT" ]
null
null
null
astar.py
DanielaMorariu1990/Supermarket_MCMC_simulation
c94365ea93864cebd5d356670f4639ce21815e4c
[ "MIT" ]
2
2020-11-16T10:24:37.000Z
2020-11-22T10:32:46.000Z
""" A* algorithm """ import operator import numpy as np import pandas as pd from animation_template import MARKET def heuristic(current, target): """calculating the estimated distance between the current node and the targeted node -> Manhattan Distance""" result = (abs(target[0] - current[0]) + abs(ta...
34.00625
88
0.502481
06eaaec4c1061083b9538762edd78057a921578b
2,273
py
Python
models/pdq_search.py
rishabhiitbhu/btech_project
dda8694325ab12e88ec06e4242a57524b29076c8
[ "MIT" ]
298
2018-05-03T09:59:32.000Z
2022-03-30T02:51:46.000Z
models/pdq_search.py
binguidata/load_forecasting
dda8694325ab12e88ec06e4242a57524b29076c8
[ "MIT" ]
15
2019-07-16T12:28:50.000Z
2022-02-10T00:01:11.000Z
models/pdq_search.py
binguidata/load_forecasting
dda8694325ab12e88ec06e4242a57524b29076c8
[ "MIT" ]
120
2018-09-21T09:06:47.000Z
2022-03-27T02:26:15.000Z
# from pyramid.arima import auto_arima import pandas as pd import logging import itertools import numpy as np import statsmodels.api as sm import warnings warnings.filterwarnings("ignore") # specify to ignore warning messages # to store the log in a file called 'arima_log.txt' logging.basicConfig( filename='pdq_...
30.716216
154
0.641443
6e3cc8c24b28610e7afe7ef0c9d01601e5941d46
842
py
Python
test/many-actions/gyptest-many-actions-unsorted.py
luguocfw/GYP-Tools
41414159d032530acbf5e426954e1020ea1aa740
[ "BSD-3-Clause" ]
34
2015-01-14T03:21:08.000Z
2020-04-26T10:06:56.000Z
core/deps/gyp/test/many-actions/gyptest-many-actions-unsorted.py
K-Constantine/Amaraki
e8736e4754af62a8510c3a5db8a72df48f7681a7
[ "MIT" ]
1
2019-02-03T09:45:13.000Z
2019-02-03T09:45:13.000Z
core/deps/gyp/test/many-actions/gyptest-many-actions-unsorted.py
K-Constantine/Amaraki
e8736e4754af62a8510c3a5db8a72df48f7681a7
[ "MIT" ]
29
2015-02-13T00:18:53.000Z
2021-02-10T23:38:58.000Z
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure lots of actions in the same target don't cause exceeding command line length. """ import TestGyp test = TestGyp.TestGyp() t...
23.388889
77
0.739905
110e96c2716e8ef7923ec3772888b9ef5b010df5
14,694
py
Python
mssql/introspection.py
martinzellner/mssql-django
c809d623326117ed9e822ba61170cfa24b29d2b0
[ "BSD-3-Clause" ]
null
null
null
mssql/introspection.py
martinzellner/mssql-django
c809d623326117ed9e822ba61170cfa24b29d2b0
[ "BSD-3-Clause" ]
null
null
null
mssql/introspection.py
martinzellner/mssql-django
c809d623326117ed9e822ba61170cfa24b29d2b0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import pyodbc as Database from django import VERSION from django.db.backends.base.introspection import ( BaseDatabaseIntrospection, FieldInfo, TableInfo, ) from django.db.models.indexes import Index SQL_AUTOFIELD = -777555 SQL_BIGAUTOFIELD ...
45.212308
120
0.594801
4fd5c5f0a0e3b16500305860ea5e2034bb85e729
11,876
py
Python
app/gui.py
ITA-ftuyama/TG
9619f3a243ecdc4c9274ef91c4bc6a8d21029d57
[ "MIT" ]
null
null
null
app/gui.py
ITA-ftuyama/TG
9619f3a243ecdc4c9274ef91c4bc6a8d21029d57
[ "MIT" ]
null
null
null
app/gui.py
ITA-ftuyama/TG
9619f3a243ecdc4c9274ef91c4bc6a8d21029d57
[ "MIT" ]
1
2019-11-20T03:17:17.000Z
2019-11-20T03:17:17.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): ...
57.371981
171
0.710677
39770c7f7436fa0d5c7ac1b078393e7cef9d1ddf
590
py
Python
puppy_store/puppies/models.py
berkayersever/django-puppy-store
7e7ea5d2befd7bc1bcd02226a60150dd42907aeb
[ "MIT" ]
null
null
null
puppy_store/puppies/models.py
berkayersever/django-puppy-store
7e7ea5d2befd7bc1bcd02226a60150dd42907aeb
[ "MIT" ]
null
null
null
puppy_store/puppies/models.py
berkayersever/django-puppy-store
7e7ea5d2befd7bc1bcd02226a60150dd42907aeb
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Puppy(models.Model): """ Puppy Model Defines the attributes of a puppy """ name = models.CharField(max_length=255) age = models.IntegerField() breed = models.CharField(max_length=255) color = models.CharField(max_length=255...
25.652174
66
0.672881
c85b82bf7bc080892f69baa663fb649db1686fee
936
py
Python
isi_sdk_8_2_1/test/test_hdfs_inotify_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_1/test/test_hdfs_inotify_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_1/test/test_hdfs_inotify_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 8 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_1 from i...
22.829268
96
0.715812
e537a1422c9ef0945b2031f075e440637756b40c
1,686
py
Python
tests/test_add_remove_cgpm.py
probcomp/cgpm2
280ab5bf3dd0d7c61196deaff7cb590692fc412a
[ "Apache-2.0" ]
3
2019-01-20T08:55:06.000Z
2019-12-02T05:59:26.000Z
tests/test_add_remove_cgpm.py
probcomp/cgpm2
280ab5bf3dd0d7c61196deaff7cb590692fc412a
[ "Apache-2.0" ]
null
null
null
tests/test_add_remove_cgpm.py
probcomp/cgpm2
280ab5bf3dd0d7c61196deaff7cb590692fc412a
[ "Apache-2.0" ]
3
2019-08-06T07:27:34.000Z
2019-09-28T23:26:57.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018 MIT Probabilistic Computing Project. # Released under Apache 2.0; refer to LICENSE.txt. import pytest from cgpm.utils.general import get_prng from cgpm2.crp import CRP from cgpm2.normal import Normal from cgpm2.product import Product from cgpm2.flexible_rowmix import Fl...
30.107143
63
0.639976