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
e6cd1947b04550b8b66e0e8bebd04311cc615380
257
py
Python
lit_management/lit_management/doctype/ct_docs_photographs/ct_docs_photographs.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
1
2019-11-07T05:40:43.000Z
2019-11-07T05:40:43.000Z
lit_management/lit_management/doctype/ct_docs_photographs/ct_docs_photographs.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
null
null
null
lit_management/lit_management/doctype/ct_docs_photographs/ct_docs_photographs.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, KEA and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class CTDOCSPHOTOGRAPHS(Document): pass
23.363636
49
0.782101
4c0aa5d5d4e3f13df56b16a59ab74793f8451d93
7,864
py
Python
are_you_the_one.py
Panda4817/Mastermind-solver
eb994f436664f1103c8ace99aec6cda1ccfca45f
[ "MIT" ]
1
2021-02-25T17:55:20.000Z
2021-02-25T17:55:20.000Z
are_you_the_one.py
Panda4817/Mastermind-solver
eb994f436664f1103c8ace99aec6cda1ccfca45f
[ "MIT" ]
null
null
null
are_you_the_one.py
Panda4817/Mastermind-solver
eb994f436664f1103c8ace99aec6cda1ccfca45f
[ "MIT" ]
null
null
null
from itertools import combinations from copy import deepcopy # Number of pairs num_of_pairs = 10 # Retrive name data from txt file f = open("/home/kanta/are_you_the_one/are_you_the_one.txt", "r") data = f.read() lst = data.split("\n\n") male = {} female = {} for l in lst[0].split("\n"): sub_lst = l.split() ma...
36.407407
126
0.492879
ae4a84d86df6bab4709444b02432a1206a74df3e
2,839
py
Python
IIC/archs/cluster/residual.py
jizongFox/IIC
572076d5c0c26516ff3e807f2bad4e3498ab12c1
[ "MIT" ]
1
2021-05-25T20:45:53.000Z
2021-05-25T20:45:53.000Z
src/archs/cluster/residual.py
MihaiAnton/tudelft-iic-reproduction
342247c444aa1f8b09ea18e3ff9135258d599373
[ "MIT" ]
1
2022-02-02T23:32:37.000Z
2022-02-02T23:32:37.000Z
src/archs/cluster/residual.py
MihaiAnton/tudelft-iic-reproduction
342247c444aa1f8b09ea18e3ff9135258d599373
[ "MIT" ]
null
null
null
import torch.nn as nn def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) class BasicBlock(nn.Module): expansion = 1 def __init__(self, inplanes, planes, st...
31.898876
87
0.58577
87f1bcba5ce83c40becf335229214af0b043b0c9
983
py
Python
skunkbooth/filters/grid.py
josflesan/SkunkBooth
29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4
[ "MIT" ]
null
null
null
skunkbooth/filters/grid.py
josflesan/SkunkBooth
29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4
[ "MIT" ]
null
null
null
skunkbooth/filters/grid.py
josflesan/SkunkBooth
29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4
[ "MIT" ]
null
null
null
from random import randint from typing import List, Tuple class filter: """Sample filter for ASCII operations""" def __init__(self): """ Init required values. textOp True = operation on ASCII art, False = operation on PIL image name will be the name of the filter to be used f...
29.787879
87
0.592065
8397bfdc0a7dc1c461ea25b908034c0479d2b71a
5,626
py
Python
google/cloud/aiplatform_v1beta1/types/tensorboard_data.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
google/cloud/aiplatform_v1beta1/types/tensorboard_data.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/types/tensorboard_data.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.304878
110
0.675791
4c1d33b772bfa2fece32185a27f5d0fc53750915
5,304
py
Python
test/test_sinks.py
sixty-north/python-transducers
575357e3a17ff3b4c757967afd396bf0ea042c08
[ "MIT" ]
54
2015-10-02T02:45:36.000Z
2021-06-22T04:40:33.000Z
test/test_sinks.py
sixty-north/python-transducers
575357e3a17ff3b4c757967afd396bf0ea042c08
[ "MIT" ]
3
2017-06-11T13:39:18.000Z
2017-06-12T06:07:24.000Z
test/test_sinks.py
sixty-north/python-transducers
575357e3a17ff3b4c757967afd396bf0ea042c08
[ "MIT" ]
9
2015-10-28T23:36:50.000Z
2019-01-11T13:47:05.000Z
import unittest from io import StringIO from transducer.sinks import rprint, null_sink, CollectingSink, SingularSink class TestNullSink(unittest.TestCase): def test_sent_items_are_sunk(self): sink = null_sink() for i in range(100): sink.send(100) sink.close() def test_cl...
29.631285
76
0.613499
a5c142e3049cb83c9b47246d1e01f250fe8c61dc
6,390
py
Python
full_process_test.py
Dootmaan/Point-Unet
f5f9732702f991d277c1b006ca8164f76d295b22
[ "MIT" ]
5
2021-11-19T13:01:15.000Z
2022-02-27T13:18:03.000Z
full_process_test.py
Dootmaan/Point-Unet
f5f9732702f991d277c1b006ca8164f76d295b22
[ "MIT" ]
null
null
null
full_process_test.py
Dootmaan/Point-Unet
f5f9732702f991d277c1b006ca8164f76d295b22
[ "MIT" ]
null
null
null
import numpy as np import random import torch as pt from config import config from dataset.BraTSDataset3D import BraTSDataset3D from dataset.MVILiverDataset3D import MVILiverDataset3D from model.SaliencyAttentionNet import SaliencyAttentionNet from model.PointUnet import PointUnet from config import config import time ...
39.202454
119
0.620814
05230dfea4a1861ee60d5f6498aad7a053b4f087
9,086
py
Python
bluezero/adapter.py
MarkusPiotrowski/python-bluezero
82b79039e9f0cd041f10e655d3c0810a58b5cd85
[ "MIT" ]
null
null
null
bluezero/adapter.py
MarkusPiotrowski/python-bluezero
82b79039e9f0cd041f10e655d3c0810a58b5cd85
[ "MIT" ]
null
null
null
bluezero/adapter.py
MarkusPiotrowski/python-bluezero
82b79039e9f0cd041f10e655d3c0810a58b5cd85
[ "MIT" ]
null
null
null
"""Class and methods that represent a Bluetooth Adapter.""" from __future__ import absolute_import, print_function, unicode_literals # D-Bus imports import dbus # python-bluezero imports from bluezero import constants from bluezero import dbus_tools from bluezero import async_tools from bluezero import device impor...
31.880702
77
0.621175
f3c45868f1a650b84fc14670d3ae7a2bb3085388
4,368
py
Python
code/training.py
parinitaedke/CNN-Binary-Classification
7bdf59910417e7b295cbd6b4f065ad4ebf5ac03f
[ "MIT" ]
4
2021-04-13T06:55:20.000Z
2022-01-01T02:11:06.000Z
code/training.py
parinitaedke/CNN-Binary-Classification
7bdf59910417e7b295cbd6b4f065ad4ebf5ac03f
[ "MIT" ]
4
2021-06-08T22:40:36.000Z
2022-03-12T00:50:47.000Z
code/training.py
parinitaedke/CNN-Binary-Classification
7bdf59910417e7b295cbd6b4f065ad4ebf5ac03f
[ "MIT" ]
1
2021-11-19T09:00:17.000Z
2021-11-19T09:00:17.000Z
""" Author: Mauro Mendez. Date: 02/11/2020. File to implement the training and validation cycles. """ import torch from barbar import Bar from metrics import Metrics def train(model, dataloader, optimizer, criterion, device): """ train Runs one epoch of training. @param model Model...
29.714286
88
0.614927
53ca7f959c582f5b6fe63abc8de475863f026174
16,663
py
Python
src/cct.py
Babars7/SDPS-Net
ea96c6933485c5a50e4151179b6d2fea898b1898
[ "MIT" ]
null
null
null
src/cct.py
Babars7/SDPS-Net
ea96c6933485c5a50e4151179b6d2fea898b1898
[ "MIT" ]
null
null
null
src/cct.py
Babars7/SDPS-Net
ea96c6933485c5a50e4151179b6d2fea898b1898
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .transformers import TransformerEncoderLayer __all__ = ['cct_2', 'cct_4', 'cct_6', 'cct_7', 'cct_8', 'cct_10', 'cct_12', 'cct_24', 'cct_32', 'cvt_2', 'cvt_4', 'cvt_6', 'cvt_7', 'cvt_8', 'cvt_10', 'cvt_12', 'cvt_24...
36.541667
109
0.541919
6051efe76158a31874e9d80e0577af7e190f23c9
1,117
py
Python
graphbrain/meaning/concepts.py
danielvasic/CroatianGraphBrain
01177c1441129792c8fbde3f75092bab6856af6f
[ "MIT" ]
1
2021-04-24T04:52:31.000Z
2021-04-24T04:52:31.000Z
graphbrain/meaning/concepts.py
danielvasic/CroatianGraphBrain
01177c1441129792c8fbde3f75092bab6856af6f
[ "MIT" ]
null
null
null
graphbrain/meaning/concepts.py
danielvasic/CroatianGraphBrain
01177c1441129792c8fbde3f75092bab6856af6f
[ "MIT" ]
null
null
null
def strip_concept(edge): """Strip away nesting edges with connectors such as triggers and subpredicates, to expose the outmost and leftmost concept that can be found. May be the edge itself. For example: (against/t (the/m (of/b treaty/c paris/c))) becomes (the/m (of/b treaty/c paris/c)) ...
25.976744
75
0.607878
0c8e67e6046d248bf2b634c70b31e6be4939d969
141
py
Python
start.py
ErikLetson/Lottobot2
87e81bb653c70c94e4d3fd5b368d07f63b575651
[ "MIT" ]
null
null
null
start.py
ErikLetson/Lottobot2
87e81bb653c70c94e4d3fd5b368d07f63b575651
[ "MIT" ]
null
null
null
start.py
ErikLetson/Lottobot2
87e81bb653c70c94e4d3fd5b368d07f63b575651
[ "MIT" ]
null
null
null
from lib import lottobot def Main(): l = lottobot.Lottobot(None, 'lottobot') l.mainloop() if __name__ == '__main__': Main()
11.75
43
0.624113
4a214ca13dc21d98f0d35535dcd7ebe6890a226a
24,668
py
Python
Exp 4 4 with USRCAT/evolution_functions.py
Mattarian/GAD-USRCAT
306a21e8afbeff3d8b56ae4641ac1195a12f2036
[ "Apache-2.0" ]
null
null
null
Exp 4 4 with USRCAT/evolution_functions.py
Mattarian/GAD-USRCAT
306a21e8afbeff3d8b56ae4641ac1195a12f2036
[ "Apache-2.0" ]
null
null
null
Exp 4 4 with USRCAT/evolution_functions.py
Mattarian/GAD-USRCAT
306a21e8afbeff3d8b56ae4641ac1195a12f2036
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import rdkit import shutil import multiprocessing from rdkit import Chem from rdkit.Chem import Draw from rdkit.Chem import MolFromSmiles as smi2mol from rdkit.Chem import MolToSmiles as mol2smi from rdkit.Chem import Descriptors from rdkit.Chem import rdMolDescriptors fr...
36.383481
269
0.602927
3d335de55598aded12fe220c72b6688cdc4f7ad8
12,237
py
Python
tensorflow/python/saved_model/nested_structure_coder.py
guptarohit/tensorflow
e1ab41387a255fe4a98b76589cd36dc8206c7f77
[ "Apache-2.0" ]
2
2019-02-12T01:37:54.000Z
2019-09-17T18:20:54.000Z
tensorflow/python/saved_model/nested_structure_coder.py
illaMcbender/tensorflow
a0b0a503287d019a28ef4f670b157eb3605a12f3
[ "Apache-2.0" ]
1
2019-02-22T00:50:13.000Z
2019-02-22T00:50:13.000Z
tensorflow/python/saved_model/nested_structure_coder.py
illaMcbender/tensorflow
a0b0a503287d019a28ef4f670b157eb3605a12f3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
28.002288
80
0.731552
c74333bc0ad919005e9015e8f0f9fee46eb4af85
2,917
py
Python
systems/MNIST/ConvLin/quantize/all_ana.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
systems/MNIST/ConvLin/quantize/all_ana.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
systems/MNIST/ConvLin/quantize/all_ana.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
# # ana.py # # Author(s): # Matteo Spallanzani <spmatteo@iis.ee.ethz.ch> # # Copyright (c) 2020-2021 ETH Zurich. # # 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...
37.397436
175
0.73363
d162d2d8285f53d09af4f3285a97228c6115f801
15,420
py
Python
saleor/payment/gateways/stripe/tests/test_stripe_api.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/payment/gateways/stripe/tests/test_stripe_api.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/payment/gateways/stripe/tests/test_stripe_api.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from decimal import Decimal from unittest.mock import patch from stripe.error import AuthenticationError, StripeError from stripe.stripe_object import StripeObject from saleor.payment.interface import PaymentMethodInfo from saleor.payment.utils import price_to_minor_unit from ..consts import ( AUTOMATIC_CAPTURE_...
28.190128
86
0.728405
3471896b9001b7beb3772b744f6d9e8e7f1c1404
38,081
py
Python
vpcnn/main.py
OSU-slatelab/vp-cnn
a75748b7bfbfdef8b69f7bfbd33097deccfbc600
[ "Apache-2.0" ]
null
null
null
vpcnn/main.py
OSU-slatelab/vp-cnn
a75748b7bfbfdef8b69f7bfbd33097deccfbc600
[ "Apache-2.0" ]
1
2021-09-11T23:44:00.000Z
2021-09-12T12:21:41.000Z
vpcnn/main.py
OSU-slatelab/vp-cnn
a75748b7bfbfdef8b69f7bfbd33097deccfbc600
[ "Apache-2.0" ]
3
2019-05-15T01:50:23.000Z
2019-09-23T20:44:02.000Z
#! /usr/bin/env python import os import argparse import datetime import torch import torchtext.data as data import torchtext.datasets as datasets import model import train import mydatasets import pdb import vpdataset import numpy as np from chatscript_file_generator import * parser = argparse.ArgumentParser(descripti...
59.22395
229
0.582285
3bbed73390848681b812f36b27590c8e4274c11d
2,920
py
Python
docs/source/conf.py
galipremsagar/cuxfilter
17de7c0851ce4f7ce53a2ead428fedf6545268b9
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
galipremsagar/cuxfilter
17de7c0851ce4f7ce53a2ead428fedf6545268b9
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
galipremsagar/cuxfilter
17de7c0851ce4f7ce53a2ead428fedf6545268b9
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
31.73913
79
0.684247
e06717cf2cbe13f0d5ad516fc3fc825943ab9cd5
117
py
Python
src/comments.py
joseluisbn/PythonLearningProject
87f21d3971eb44f288bc18ebdbbf5a74e1aeabaf
[ "MIT" ]
null
null
null
src/comments.py
joseluisbn/PythonLearningProject
87f21d3971eb44f288bc18ebdbbf5a74e1aeabaf
[ "MIT" ]
null
null
null
src/comments.py
joseluisbn/PythonLearningProject
87f21d3971eb44f288bc18ebdbbf5a74e1aeabaf
[ "MIT" ]
null
null
null
# This is a single line comment. """ This is a multiline comment """ print("Comments are ignored by the compiler")
11.7
45
0.709402
253536c2c9934ec6cb4d859133b5407fef41c9de
895
py
Python
traiders/backend/api/views/__init__.py
rdilruba/bounswe2019group2
b373908a4a8e92481f359297aba07245f0a23c1c
[ "Apache-2.0" ]
11
2019-02-15T12:08:32.000Z
2019-11-14T19:25:09.000Z
traiders/backend/api/views/__init__.py
bounswe/bounswe2019group2
05d41cf7b6bc1b3f994e82495d2a885a6eaa7cf3
[ "Apache-2.0" ]
279
2019-02-13T14:57:39.000Z
2022-03-12T00:02:30.000Z
traiders/backend/api/views/__init__.py
rdilruba/bounswe2019group2
b373908a4a8e92481f359297aba07245f0a23c1c
[ "Apache-2.0" ]
13
2019-03-20T08:30:55.000Z
2021-01-31T16:49:14.000Z
from .users import UserViewSet, UserSuccessViewSet from .token import TokenViewSet from .article import ArticleViewSet from .equipment import EquipmentViewSet from .parity import ParityViewSet, ParityLatestViewSet from .comment import ArticleCommentViewSet, EquipmentCommentViewSet from .mobile_app import latest_mobile_...
44.75
105
0.875978
d9a8d06d1ba4429f7f0955b10d24eda7fb24ec91
5,635
py
Python
reid/datasets/ilids.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
reid/datasets/ilids.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
reid/datasets/ilids.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import copy import glob import random import os.path as osp from collections import defaultdict from ..utils.tools import read_json, write_json from ..utils.data import BaseImageDataset class iLIDS(BaseImageDataset): """QMUL-iLIDS. Reference:...
37.317881
115
0.583851
64464bb6ee987d529e1b49496a45698d917bc3d5
25,573
py
Python
tests/test_circuit.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
36
2020-05-22T10:51:13.000Z
2022-03-07T05:41:08.000Z
tests/test_circuit.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
73
2020-07-14T07:26:48.000Z
2022-03-25T08:00:43.000Z
tests/test_circuit.py
AGaliciaMartinez/qutip-qip
73411ae884d117f05ff0ecb920ca055940fc76dd
[ "BSD-3-Clause" ]
24
2020-06-18T22:59:20.000Z
2022-03-12T05:11:59.000Z
import pytest import numpy as np from pathlib import Path from qutip_qip.circuit import ( QubitCircuit, CircuitSimulator, Measurement) from qutip import (tensor, Qobj, ptrace, rand_ket, fock_dm, basis, rand_dm, bell_state, ket2dm, identity, sigmax) from qutip_qip.qasm import read_qasm from quti...
37.885926
93
0.569859
5cfd413ab88fae00a3f94a1bc7b3026ae541cb60
1,001
py
Python
NPC.py
bhuvan21/TBGC
7cb26d64b61fa0347199ff4ca15830516395bd2f
[ "MIT" ]
null
null
null
NPC.py
bhuvan21/TBGC
7cb26d64b61fa0347199ff4ca15830516395bd2f
[ "MIT" ]
null
null
null
NPC.py
bhuvan21/TBGC
7cb26d64b61fa0347199ff4ca15830516395bd2f
[ "MIT" ]
null
null
null
from utils import numbered_choice import Location from Conversation import Conversation # Location class, instantiated for every location in the game class NPC: def __init__(self, obj): attribs = obj.attrib # set requried attributes self.name = attribs["name"] self.intro = ...
32.290323
87
0.621379
647b010e1ddad0e13fff033d06c3ac4f14b895cf
23,613
py
Python
service/generated_flatbuffers/tflite/Operator.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/generated_flatbuffers/tflite/Operator.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/generated_flatbuffers/tflite/Operator.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
50.027542
4,779
0.749291
a30dcdbe128f284b336e14c56761f0b68915085d
6,719
py
Python
ML/detection/ssd_layers.py
PepSalehi/algorithms
1c20f57185e6324aa840ccff98e69764b4213131
[ "MIT" ]
13
2018-08-14T08:56:59.000Z
2021-05-04T12:42:49.000Z
ML/detection/ssd_layers.py
PepSalehi/algorithms
1c20f57185e6324aa840ccff98e69764b4213131
[ "MIT" ]
17
2019-02-22T14:43:58.000Z
2020-04-06T14:22:49.000Z
ML/detection/ssd_layers.py
PepSalehi/algorithms
1c20f57185e6324aa840ccff98e69764b4213131
[ "MIT" ]
6
2019-02-19T02:29:39.000Z
2021-05-04T12:51:13.000Z
"""Some special pupropse layers for SSD.""" import keras.backend as K from keras.engine.topology import InputSpec from keras.engine.topology import Layer import numpy as np import tensorflow as tf class Normalize(Layer): """Normalization layer as described in ParseNet paper. # Arguments scale: Defau...
36.917582
78
0.591011
35073b9bb12ad83fe3d3742e5d6ac66ba65ebdcc
13,366
py
Python
src/onelogin/saml2/logout_request.py
amrfayad/python3-saml
8be65c7b5c5f53ed8e64bb2c1ccf3a447fcc7f95
[ "MIT" ]
null
null
null
src/onelogin/saml2/logout_request.py
amrfayad/python3-saml
8be65c7b5c5f53ed8e64bb2c1ccf3a447fcc7f95
[ "MIT" ]
null
null
null
src/onelogin/saml2/logout_request.py
amrfayad/python3-saml
8be65c7b5c5f53ed8e64bb2c1ccf3a447fcc7f95
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ OneLogin_Saml2_Logout_Request class Copyright (c) 2010-2018 OneLogin, Inc. MIT License Logout Request class of OneLogin's Python Toolkit. """ from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.utils import OneLogin_Saml2_U...
37.544944
127
0.590453
2edc498e5b11bee7a9c18d1fdec86d201e5dcfa3
363
py
Python
items.py
MihaiLai/spider
4a3727a722feee1c38e98dc0dab65b92fe971a7f
[ "MIT" ]
null
null
null
items.py
MihaiLai/spider
4a3727a722feee1c38e98dc0dab65b92fe971a7f
[ "MIT" ]
null
null
null
items.py
MihaiLai/spider
4a3727a722feee1c38e98dc0dab65b92fe971a7f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class CarItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() brand = scrapy.Field() car_title = scra...
22.6875
51
0.677686
3902fd6e360491e321eecdea8a92e7b88c680769
788
py
Python
setup.py
HDKidd/hdk-pkg-cri
a0370aad531ad47b36f0a0fd91c543b9d499bacd
[ "MIT" ]
null
null
null
setup.py
HDKidd/hdk-pkg-cri
a0370aad531ad47b36f0a0fd91c543b9d499bacd
[ "MIT" ]
null
null
null
setup.py
HDKidd/hdk-pkg-cri
a0370aad531ad47b36f0a0fd91c543b9d499bacd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: He Dekun """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name = "hdk-pkg-cri", # Replace with your own username version = "0.0.8", author = "He Dekun", author_email = "hede0001@e.ntu.edu.sg", descript...
28.142857
62
0.637056
7c4c824f9577d4be4885c4a74836f1f40eb527c5
3,271
py
Python
config/settings.py
iqbalcrat/django-location-based-homepage
eabcc736931e1be7d2eb20aa2cc1c13ef88be78c
[ "MIT" ]
null
null
null
config/settings.py
iqbalcrat/django-location-based-homepage
eabcc736931e1be7d2eb20aa2cc1c13ef88be78c
[ "MIT" ]
null
null
null
config/settings.py
iqbalcrat/django-location-based-homepage
eabcc736931e1be7d2eb20aa2cc1c13ef88be78c
[ "MIT" ]
null
null
null
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
25.755906
91
0.702537
390c5a41d61e91aec335278fa9dade79519d794c
113
py
Python
user/admin.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
null
null
null
user/admin.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
null
null
null
user/admin.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
1
2021-06-26T21:16:56.000Z
2021-06-26T21:16:56.000Z
from django.contrib import admin from .models import User # Register your models here. admin.site.register(User)
22.6
32
0.80531
bc30878909df9dc33f9d019ade4a4a180bf67c62
3,981
py
Python
fawkes/align_face.py
baajur/fawkes
2b08b3ec8ec98e9f0f13aa9c345f48f24ad40deb
[ "BSD-3-Clause" ]
4
2021-01-26T09:21:12.000Z
2021-02-15T15:59:38.000Z
fawkes/align_face.py
tweetz0r/fawkes
a0708ca9c8fa4ac3acca6ae5e8ff6219da33d5c6
[ "BSD-3-Clause" ]
null
null
null
fawkes/align_face.py
tweetz0r/fawkes
a0708ca9c8fa4ac3acca6ae5e8ff6219da33d5c6
[ "BSD-3-Clause" ]
1
2020-08-04T19:25:53.000Z
2020-08-04T19:25:53.000Z
"""Performs face alignment and stores face thumbnails in the output directory.""" # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without...
40.212121
118
0.622205
4ab5d5e33606a9d30097e947f57497f50566b802
414
py
Python
{{cookiecutter.project_slug}}/backend/app/db/tipo_acordo/schemas.py
souzjfe/conectar
0603e955394765f3fc1a01bbd902be695bc44cba
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/backend/app/db/tipo_acordo/schemas.py
souzjfe/conectar
0603e955394765f3fc1a01bbd902be695bc44cba
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/backend/app/db/tipo_acordo/schemas.py
souzjfe/conectar
0603e955394765f3fc1a01bbd902be695bc44cba
[ "MIT" ]
null
null
null
from pydantic import BaseModel import typing as t class TipoAcordoBase(BaseModel): descricao: str class TipoAcordoOut(TipoAcordoBase): pass class TipoAcordoCreate(TipoAcordoBase): pass class TipoAcordoEdit(TipoAcordoBase): descricao: t.Optional[str] = None class Config: orm_mode = Tr...
14.785714
39
0.71256
07c70758bd09e7aec410833fec6782f32bd6f902
13,970
py
Python
crystal4D/layers/convQuad.py
AI-ML-4DSTEM/crystal4D
03eed92c16d8e96625f1be71d4f81397ae474b66
[ "MIT" ]
null
null
null
crystal4D/layers/convQuad.py
AI-ML-4DSTEM/crystal4D
03eed92c16d8e96625f1be71d4f81397ae474b66
[ "MIT" ]
null
null
null
crystal4D/layers/convQuad.py
AI-ML-4DSTEM/crystal4D
03eed92c16d8e96625f1be71d4f81397ae474b66
[ "MIT" ]
null
null
null
import functools import six from tensorflow import reshape from tensorflow import einsum from tensorflow import convert_to_tensor from tensorflow.math import reduce_sum from tensorflow.python.eager import context from tensorflow.python.framework import tensor_shape from tensorflow.python.keras import activations fro...
40.492754
113
0.589549
94274f5554c762abe4309070d37cd14fb47e8b46
4,127
py
Python
scripts/update_dreqs/update_dreqs_0270.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
null
null
null
scripts/update_dreqs/update_dreqs_0270.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
49
2018-11-14T17:00:03.000Z
2021-12-20T11:04:22.000Z
scripts/update_dreqs/update_dreqs_0270.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
2
2018-07-04T10:58:43.000Z
2018-09-29T14:55:08.000Z
#!/usr/bin/env python """ update_dreqs_0270.py From the Cylc db identify jobs that failed due to running out of time. For these, delete the data from disk and create a retrieval request to restore it. """ from __future__ import (unicode_literals, division, absolute_import, print_function) impor...
30.798507
82
0.578386
d3d87b11d43903546c263b237a849f0727cf1098
4,601
py
Python
truecase/Trainer.py
Brucewuzhang/truecase
dd377de45764321072e4b7789d67a14ecf037742
[ "Apache-2.0" ]
null
null
null
truecase/Trainer.py
Brucewuzhang/truecase
dd377de45764321072e4b7789d67a14ecf037742
[ "Apache-2.0" ]
null
null
null
truecase/Trainer.py
Brucewuzhang/truecase
dd377de45764321072e4b7789d67a14ecf037742
[ "Apache-2.0" ]
null
null
null
import pickle import nltk class Trainer: def __init__(self): self.uni_dist = nltk.FreqDist() self.backward_bi_dist = nltk.FreqDist() self.forward_bi_dist = nltk.FreqDist() self.trigram_dist = nltk.FreqDist() self.word_casing_lookup = {} def __function_one(self, senten...
34.856061
98
0.575962
c7340c9b05dc42b36c69f5e6dbe799a01745cad3
8,873
py
Python
fastmri/pl_modules/mri_module.py
kapoor1992/fastMRI
6b0af94663faa55a2dd901a6a5cbb7d7b5f4cf6d
[ "MIT" ]
null
null
null
fastmri/pl_modules/mri_module.py
kapoor1992/fastMRI
6b0af94663faa55a2dd901a6a5cbb7d7b5f4cf6d
[ "MIT" ]
null
null
null
fastmri/pl_modules/mri_module.py
kapoor1992/fastMRI
6b0af94663faa55a2dd901a6a5cbb7d7b5f4cf6d
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import pathlib from argparse import ArgumentParser from collections import defaultdict import fastmri import numpy as np import pytorch_ligh...
36.817427
87
0.588414
2e66464683eb0b4c91165a4b34f5924f90e384d6
5,398
py
Python
bddrest/tests/test_call.py
pyfather/bddrest
dc8df8c52aaed1fd56a7d5c3a2bc3450432c7395
[ "MIT" ]
null
null
null
bddrest/tests/test_call.py
pyfather/bddrest
dc8df8c52aaed1fd56a7d5c3a2bc3450432c7395
[ "MIT" ]
null
null
null
bddrest/tests/test_call.py
pyfather/bddrest
dc8df8c52aaed1fd56a7d5c3a2bc3450432c7395
[ "MIT" ]
null
null
null
import cgi import functools import json import unittest import pytest from bddrest import CallVerifyError, FirstCall, AlteredCall def wsgi_application(environ, start_response): form = cgi.FieldStorage( fp=environ['wsgi.input'], environ=environ, strict_parsing=False, keep_blank_val...
27.401015
74
0.618933
0d2df0ea8f8741d5e45a833fde75593273e8f313
2,196
py
Python
users/migrations/0001_squashed.py
Kadantte/MangAdventure
0646617cb6376eaeb3142cbd1f266267518a149f
[ "MIT" ]
58
2019-03-04T09:22:42.000Z
2022-02-18T09:11:57.000Z
users/migrations/0001_squashed.py
Kadantte/MangAdventure
0646617cb6376eaeb3142cbd1f266267518a149f
[ "MIT" ]
21
2019-03-07T19:34:53.000Z
2021-12-19T12:46:40.000Z
users/migrations/0001_squashed.py
Kadantte/MangAdventure
0646617cb6376eaeb3142cbd1f266267518a149f
[ "MIT" ]
14
2019-06-06T09:53:13.000Z
2021-12-17T14:34:13.000Z
from django.conf import settings from django.db import migrations, models from MangAdventure import storage, validators from users.models import _avatar_uploader class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
34.3125
73
0.508197
94580662fda6dca6ce54922905a086f1469b404d
2,148
py
Python
tools/generate_conf.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
tools/generate_conf.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
tools/generate_conf.py
jichenjc/python-zvm-sdk
c081805c6079107b4823af898babdf92cf5577ee
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
24.409091
78
0.586592
59ecb1c98523f61433c38b51f73074a7f3d8a305
1,237
py
Python
backlog/models/star.py
ryo8000/backlog-api4py
a58106bb559d0d6d39dfeb54bd2cbd2a16fb490a
[ "Apache-2.0" ]
null
null
null
backlog/models/star.py
ryo8000/backlog-api4py
a58106bb559d0d6d39dfeb54bd2cbd2a16fb490a
[ "Apache-2.0" ]
null
null
null
backlog/models/star.py
ryo8000/backlog-api4py
a58106bb559d0d6d39dfeb54bd2cbd2a16fb490a
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Ryo H # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
26.891304
77
0.675829
2dc2f365160a03844bef7d786da04636f54c4c42
10,704
py
Python
webpath/test/test_runner.py
simplefin/webpath
2958a36a16aaa0647d51e8b1be39d65826a9592c
[ "Apache-2.0" ]
null
null
null
webpath/test/test_runner.py
simplefin/webpath
2958a36a16aaa0647d51e8b1be39d65826a9592c
[ "Apache-2.0" ]
null
null
null
webpath/test/test_runner.py
simplefin/webpath
2958a36a16aaa0647d51e8b1be39d65826a9592c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) The SimpleFIN Team # See LICENSE for details. from twisted.trial.unittest import TestCase from twisted.internet import defer from webpath.runner import Runner, Context, basicRunner, interpolate class RunnerTest(TestCase): @defer.inlineCallbacks def test_registerHandler(self): """...
30.495726
89
0.540452
96c49d83ef49cdf7ecb3d0021f41bbf665e50ba5
140
py
Python
HelloScrapy/HelloScrapy/items/__init__.py
callmejacob/spider
a3b8127d96547a8abc9ee7530de9586c98a09874
[ "BSD-2-Clause" ]
null
null
null
HelloScrapy/HelloScrapy/items/__init__.py
callmejacob/spider
a3b8127d96547a8abc9ee7530de9586c98a09874
[ "BSD-2-Clause" ]
null
null
null
HelloScrapy/HelloScrapy/items/__init__.py
callmejacob/spider
a3b8127d96547a8abc9ee7530de9586c98a09874
[ "BSD-2-Clause" ]
null
null
null
# -- coding: utf-8 -- from item_author import AuthorItem from item_article import ArticleItem from item_article_desc import ArticleDescItem
28
45
0.828571
11e5b619a91b2bc8bcb796d1acc6a44677cc10e0
1,825
py
Python
TurtleDemo/Main.py
Alexiuce/ServerStudy
e004a2af4d9e3c96a07b7df6c4cb91e195efc352
[ "MIT" ]
1
2019-01-09T07:58:32.000Z
2019-01-09T07:58:32.000Z
TurtleDemo/Main.py
Alexiuce/PythonRepo
e004a2af4d9e3c96a07b7df6c4cb91e195efc352
[ "MIT" ]
null
null
null
TurtleDemo/Main.py
Alexiuce/PythonRepo
e004a2af4d9e3c96a07b7df6c4cb91e195efc352
[ "MIT" ]
null
null
null
#/usr/bin/env python # -*- coding: UTF-8 -*- import turtle import time def draw(): window = turtle.Screen() badge = turtle.Turtle() badge.color('green','black') badge.left(90) badge.forward(100) badge.right(90) badge.color('black','black') badge.begin_fill() badge.circle(10) ...
18.069307
107
0.629041
8bc544c583a2508bb477131e1021108d794b22a4
863
py
Python
coding_interviews/elements_of_programming_interview/base_conversion.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
coding_interviews/elements_of_programming_interview/base_conversion.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
coding_interviews/elements_of_programming_interview/base_conversion.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
''' "615" "5" --> 5 --> 5 * (7 ** 0) "1" --> 1 --> 1 * (7 ** 1) "6" --> 6 --> 6 * (7 ** 2) => 306 306 % 13 = 7 306 / 13 = 23 23 % 13 = 10 23 / 13 = 1 1 % 13 = 1 ''' num_representation = { 10: 'A', 11: 'B', 12: 'C', 13: 'D', 14: 'E', 15: 'F', } def to_num_representation(num): if num < 10: ...
16.283019
52
0.542294
3f9a64e618c10b58e94b2089fd6483522790200b
12,269
bzl
Python
bazel/ray_deps_setup.bzl
Phirefly9/ray
bbfb86c5130a1a6a11ba3cd6f928a7c4078788e1
[ "Apache-2.0" ]
null
null
null
bazel/ray_deps_setup.bzl
Phirefly9/ray
bbfb86c5130a1a6a11ba3cd6f928a7c4078788e1
[ "Apache-2.0" ]
26
2021-09-18T07:09:04.000Z
2022-03-26T07:07:35.000Z
bazel/ray_deps_setup.bzl
Phirefly9/ray
bbfb86c5130a1a6a11ba3cd6f928a7c4078788e1
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") def urlsplit(url): """ Splits a URL like "https://example.com/a/b?c=d&e#f" into a tuple: ("https", ["example", "com"], ["a", "b"], ["...
43.661922
146
0.669492
9f3b258c5e59b58097c72e040ef24de85c824a5d
135
py
Python
ckOLDab/python_CGI_tests/cgi_error_handling_using_cgitb_module_crude_approach.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
ckOLDab/python_CGI_tests/cgi_error_handling_using_cgitb_module_crude_approach.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
ckOLDab/python_CGI_tests/cgi_error_handling_using_cgitb_module_crude_approach.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python print "Content-Type: text/plain" print import sys sys.stderr = sys.stdout f = open('non-existent-file.txt', 'r')
19.285714
38
0.711111
0bacb76f19ceabdb1ad3dc497ff8fd6341b8e625
3,792
py
Python
Rationale_Analysis/models/classifiers/base_model.py
CMSC35100-JET/FRESH
ea2b23386f8411da7127ec84ff6dd6e684b1dced
[ "MIT" ]
30
2020-05-15T02:24:54.000Z
2022-03-14T21:52:48.000Z
Rationale_Analysis/models/classifiers/base_model.py
CMSC35100-JET/FRESH
ea2b23386f8411da7127ec84ff6dd6e684b1dced
[ "MIT" ]
5
2020-05-04T13:43:14.000Z
2022-02-14T19:37:01.000Z
Rationale_Analysis/models/classifiers/base_model.py
CMSC35100-JET/FRESH
ea2b23386f8411da7127ec84ff6dd6e684b1dced
[ "MIT" ]
6
2020-10-12T21:09:57.000Z
2022-01-12T00:48:42.000Z
from typing import Optional, Dict from allennlp.data.vocabulary import Vocabulary from allennlp.models.model import Model from allennlp.nn import InitializerApplicator, RegularizerApplicator from allennlp.training.metrics import FBetaMeasure, CategoricalAccuracy class RationaleBaseModel(Model): def __init__( ...
37.92
96
0.66693
f5545e8372c1d41bef3640a96cc4eb34d8914df2
4,205
py
Python
src/robot/htmldata/jsonwriter.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-10T11:10:20.000Z
2018-03-10T11:10:20.000Z
src/robot/htmldata/jsonwriter.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/htmldata/jsonwriter.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
28.80137
75
0.600238
8ad35576e11e1348586a5044303d64a7a7a6b936
942
py
Python
character.py
jonh1036/AbusiveLangDic
c005beba3dfc7a3bf94d66a96a8cb20753ce9faf
[ "MIT" ]
1
2020-10-18T20:39:05.000Z
2020-10-18T20:39:05.000Z
character.py
jonh1036/AbusiveLangDic
c005beba3dfc7a3bf94d66a96a8cb20753ce9faf
[ "MIT" ]
null
null
null
character.py
jonh1036/AbusiveLangDic
c005beba3dfc7a3bf94d66a96a8cb20753ce9faf
[ "MIT" ]
null
null
null
#def n_grams(self, twittes, n_grams): teste = ["cbie informática educação tecnologia teste mais novo"] n = 2 def ngrams(n,texto): '''n -> número texto -> String''' if(type(texto)==str): teste = [texto] textoN_Grams = [] for index in range(len(teste)): textoTemp = ...
23.55
79
0.550955
394f1aa71d59227360e297b9ac53e8aef5ba45cb
225,273
py
Python
dependency/pefile.py
marche147/pepatch
9e06402008ea5d847ce0adb130137381e4477a4a
[ "MIT" ]
29
2018-01-01T04:59:44.000Z
2021-09-15T21:03:12.000Z
dependency/pefile.py
marche147/pepatch
9e06402008ea5d847ce0adb130137381e4477a4a
[ "MIT" ]
null
null
null
dependency/pefile.py
marche147/pepatch
9e06402008ea5d847ce0adb130137381e4477a4a
[ "MIT" ]
3
2018-01-02T09:31:42.000Z
2018-07-08T18:20:23.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """pefile, Portable Executable reader module All the PE file basic structures are available with their default names as attributes of the instance returned. Processed elements such as the import table are made available with lowercase names, to differentiate them from the upp...
39.800883
151
0.575191
09cac988991b03d36be04c0f3b41b47b9ee21c08
9,366
py
Python
libs/core/operators.py
SFXiang/Fast_Seg
c662ac584e3440b993e4fd7fbbb3b72da4d5bbed
[ "Apache-2.0" ]
1
2019-11-29T14:37:25.000Z
2019-11-29T14:37:25.000Z
libs/core/operators.py
SFXiang/Fast_Seg
c662ac584e3440b993e4fd7fbbb3b72da4d5bbed
[ "Apache-2.0" ]
null
null
null
libs/core/operators.py
SFXiang/Fast_Seg
c662ac584e3440b993e4fd7fbbb3b72da4d5bbed
[ "Apache-2.0" ]
null
null
null
# Common Segmentation Operator implemented by Pytorch # XiangtaiLi(lxtpku@pku.edu.cn) import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import BatchNorm2d class GlobalAvgPool2d(nn.Module): def __init__(self): """Global average pooling over the input's spatial dimensions""" ...
36.874016
134
0.572283
ed547925438ebf2ff6b06c88a9656172367fe9a5
3,517
py
Python
doajtest/unit/test_index_searchbox.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
doajtest/unit/test_index_searchbox.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
doajtest/unit/test_index_searchbox.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
from doajtest.helpers import DoajTestCase from flask import url_for class TestSearchBox(DoajTestCase): def setUp(self): super(TestSearchBox, self).setUp() def tearDown(self): super(TestSearchBox, self).tearDown() def test_01_with_referrer(self): """ Utilise the search endpoint u...
54.953125
164
0.589138
8bdb68b7f3a1a82fa011556e1e1f08ce808c55da
969
py
Python
pass2.py
Vidhu-Chaudhary/Assembler
f8227790102904e8aa63eded6107ea1e8b173af0
[ "MIT" ]
null
null
null
pass2.py
Vidhu-Chaudhary/Assembler
f8227790102904e8aa63eded6107ea1e8b173af0
[ "MIT" ]
null
null
null
pass2.py
Vidhu-Chaudhary/Assembler
f8227790102904e8aa63eded6107ea1e8b173af0
[ "MIT" ]
null
null
null
from Opcode import * from pass1 import * wr = open("output.txt","w") def pass2(): locptr = 0 #print(labels) with open("input.txt","r") as f1: for x1 in f1: x1 = x1.strip("\n") arr = x1.split(' ') wr.write(str(f'{locptr:08b}')+" ") if len(arr) == 1: wr.write(str(getOpcode(arr[0]))+" 00000000"+"\n...
25.5
90
0.567595
cf4db6049fb080078c84f0d448eb82605ac64e5e
6,526
py
Python
model_helper.py
smtnkc/pytorch-animals
2077322423b26398e221197d701d8bd123195d1a
[ "MIT" ]
1
2020-10-14T15:18:20.000Z
2020-10-14T15:18:20.000Z
model_helper.py
smtnkc/pytorch-animals
2077322423b26398e221197d701d8bd123195d1a
[ "MIT" ]
null
null
null
model_helper.py
smtnkc/pytorch-animals
2077322423b26398e221197d701d8bd123195d1a
[ "MIT" ]
1
2021-05-20T08:25:39.000Z
2021-05-20T08:25:39.000Z
import os import time import copy import torch import pandas as pd from torchvision import models import cfg from utils import fprint, calculate_metrics, get_sub_dump_dir def initialize_model(is_pretrained): model = models.alexnet(pretrained=is_pretrained) # initially disable all parameter updates if i...
33.639175
105
0.610788
b3ccefeda975bdfbf41f6d69cfb2d5fc73f82c0c
1,289
py
Python
src/plugins/setu/utils.py
Lycreal/qbot
e0cb5af8295efb1d58780ac4a420551e1183ba8b
[ "MIT" ]
7
2019-10-09T07:09:37.000Z
2020-07-15T01:30:25.000Z
src/plugins/setu/utils.py
Lycreal/cqbot
b189a17283a63e982bf7f99e529486af8d2bfb76
[ "MIT" ]
59
2021-05-20T07:21:50.000Z
2022-03-25T21:17:07.000Z
src/plugins/setu/utils.py
Lycreal/qbot
e0cb5af8295efb1d58780ac4a420551e1183ba8b
[ "MIT" ]
2
2020-04-02T09:21:44.000Z
2020-06-25T13:40:13.000Z
import typing as T from datetime import datetime, timedelta from random import randint import cv2 import numpy as np from pydantic import BaseModel def shuzi2number(shuzi: T.Optional[str]) -> int: s = {'一': 1, '两': 2, '二': 2, '三': 3, '四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9, '十': 10} ...
25.78
110
0.588053
ec02349796a48dfff1c73ba56dc4eacac04320ab
800
py
Python
test/functional/rpc_uptime.py
bitcorub/bitrub
28711e4e8ebdee144a1437ece07afcf792a7cf60
[ "MIT" ]
1
2019-12-09T18:33:47.000Z
2019-12-09T18:33:47.000Z
test/functional/rpc_uptime.py
bitcorub/bitrub
28711e4e8ebdee144a1437ece07afcf792a7cf60
[ "MIT" ]
null
null
null
test/functional/rpc_uptime.py
bitcorub/bitrub
28711e4e8ebdee144a1437ece07afcf792a7cf60
[ "MIT" ]
1
2019-12-12T20:05:36.000Z
2019-12-12T20:05:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The BitRub Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RPC call related to the uptime command. Test corresponds to code in rpc/server.cpp. """ impor...
25.806452
69
0.70875
db2bed47f51615764fb6802ddda6a0a2bfa45c31
4,811
py
Python
homeassistant/components/toon/climate.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2021-03-20T12:25:26.000Z
2021-03-20T12:25:26.000Z
homeassistant/components/toon/climate.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
homeassistant/components/toon/climate.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Support for Toon thermostat.""" from __future__ import annotations from typing import Any from toonapi import ( ACTIVE_STATE_AWAY, ACTIVE_STATE_COMFORT, ACTIVE_STATE_HOME, ACTIVE_STATE_SLEEP, ) from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const i...
33.17931
85
0.686967
cf4fbba2f50a450b03a996e63d896758d613abc5
108
py
Python
Workspace for Python/studying file/module/path test/moduletest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
Workspace for Python/studying file/module/path test/moduletest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
3
2020-06-17T16:01:27.000Z
2022-01-13T02:52:53.000Z
Workspace for Python/studying file/module/path test/moduletest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
print("The output of module") name = "moduletest" def mtpr(): print("the function in the module")
18
40
0.648148
78b58eeddcfd433445560f6dd4b97ddc756b571c
675
py
Python
tests/test_use_cases/test_task/test_task_fetcher.py
marioidival/todclean
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
[ "MIT" ]
null
null
null
tests/test_use_cases/test_task/test_task_fetcher.py
marioidival/todclean
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
[ "MIT" ]
null
null
null
tests/test_use_cases/test_task/test_task_fetcher.py
marioidival/todclean
75be8ccdaaa443ebdeb6a7ef270cd92eb693afe4
[ "MIT" ]
null
null
null
import unittest from todclean.use_cases.task.fetcher import TaskFetch class TestTaskFetch(unittest.TestCase): def setUp(self): from todclean.repositories.in_memory import InMemory from todclean import repo_manager as manager self.repo = InMemory() manager.save_repo('task', self.re...
28.125
61
0.674074
faca6369f6be5f8f1507250ba0ff546f9071eecd
5,529
py
Python
code/feedback_control.py
WallabyLester/Mobile_Manipulation
68321d406d44ad1dc66ef01dd77f246f8e6c25d3
[ "MIT" ]
null
null
null
code/feedback_control.py
WallabyLester/Mobile_Manipulation
68321d406d44ad1dc66ef01dd77f246f8e6c25d3
[ "MIT" ]
null
null
null
code/feedback_control.py
WallabyLester/Mobile_Manipulation
68321d406d44ad1dc66ef01dd77f246f8e6c25d3
[ "MIT" ]
null
null
null
import numpy as np import modern_robotics as mr from modern_robotics.core import Adjoint, FKinBody, JacobianBody, MatrixLog6, se3ToVec, TransInv """ Code to calculate the feedforward control for the youBot """ def FeedbackControl(X, Xd, Xd_next, Kp, Ki, dt, curr_config, Xerr_integral): """ Calculates the kinemat...
36.137255
97
0.515283
542640e9f2a3bfa06d2acc2a6ea59897d47e6fcb
19,271
py
Python
core/completion_test.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
1
2019-01-25T01:15:51.000Z
2019-01-25T01:15:51.000Z
core/completion_test.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
null
null
null
core/completion_test.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ completion_test.py: Te...
28.848802
83
0.607908
436347cb2850b6ac4f0c344355ed4f12f76cb185
20,429
py
Python
pyscf/fci/test/test_addons.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
pyscf/fci/test/test_addons.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
pyscf/fci/test/test_addons.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
49.345411
105
0.453375
b124735ccffddf85fded8d9e629fa8b4cd8f024a
792
py
Python
tests/test_core_middlewares.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_core_middlewares.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_core_middlewares.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
import pytest from datar.core.middlewares import * from datar.all import * # def test_inverted_repr(): # iv = Inverted('a') # assert repr(iv) == f"Inverted(['a'])" # def test_inverted_evaluate_series(): # df = tibble(x=1) # out = Inverted(df.x).evaluate(['x']) # assert out == [] # out = Inver...
26.4
54
0.607323
8fc058bff8b025ba75d797b894c3131e385eb270
15,085
py
Python
cloudkitty/storage/v2/influx.py
elastx/cloudkitty
9654373f12daad606bfabac70a48b68279d522bd
[ "Apache-2.0" ]
97
2015-10-18T02:53:17.000Z
2022-03-07T05:15:39.000Z
cloudkitty/storage/v2/influx.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
1
2017-11-29T15:39:27.000Z
2017-11-29T15:39:27.000Z
cloudkitty/storage/v2/influx.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
54
2015-10-27T10:55:02.000Z
2022-02-18T08:23:19.000Z
# Copyright 2018 Objectif Libre # # 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 agr...
36.262019
79
0.590255
a22eeccc759c78131ff8403061e08b4526577288
5,704
py
Python
examples/sector-coupling/biomass-synthetic-fuels-carbon-management.py
hertelm/PyPSA
7c0561ebaa104a264ca6229c72c82370cbab66f5
[ "MIT" ]
594
2017-10-20T19:02:15.000Z
2022-03-31T10:16:23.000Z
examples/sector-coupling/biomass-synthetic-fuels-carbon-management.py
hertelm/PyPSA
7c0561ebaa104a264ca6229c72c82370cbab66f5
[ "MIT" ]
271
2017-10-23T15:12:03.000Z
2022-03-29T10:20:36.000Z
examples/sector-coupling/biomass-synthetic-fuels-carbon-management.py
hertelm/PyPSA
7c0561ebaa104a264ca6229c72c82370cbab66f5
[ "MIT" ]
286
2017-10-23T09:45:15.000Z
2022-03-28T15:23:40.000Z
## Biomass, synthetic fuels and carbon management # #In this example we show how to manage different biomass stocks with different potentials and costs, carbon dioxide hydrogenation from biogas, direct air capture (DAC) and carbon capture and usage/sequestration/cycling (CCU/S/C). # #Demand for electricity and diesel t...
28.098522
245
0.653401
0605cffb2e645e794b613ef54a83047cc45b39a7
2,077
py
Python
handler.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
handler.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
handler.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys, os, uuid import json, time import tornado.web import tornado_mysql.pools import redis import logging reload(sys) sys.setdefaultencoding('utf8') import common import config logger = logging.getLogger('web') class RequestHandler(tornado.web.RequestHandler): def write(self, trunk): i...
22.576087
65
0.681271
75b07c9242d4c686bb99844ca4e7c5abee0e9ee2
1,624
py
Python
jebpy/__init__.py
JebBarbas/jebpy
547386bf09153efee1dabd315df865cffb00aa45
[ "MIT" ]
1
2021-01-06T21:11:01.000Z
2021-01-06T21:11:01.000Z
jebpy/__init__.py
JebBarbas/jebpy
547386bf09153efee1dabd315df865cffb00aa45
[ "MIT" ]
null
null
null
jebpy/__init__.py
JebBarbas/jebpy
547386bf09153efee1dabd315df865cffb00aa45
[ "MIT" ]
null
null
null
""" jebpy This module contains more modules that help you doing difficult task instalation pip install jebpy input_types Different types of input() to capture in the console, capture the type of data that you want without write convertions nor try/except blocks to prevent the user to write a different type of data t...
31.230769
109
0.698892
1be10a15aa6adbaff4d0f0144bb4b2d9989c37d5
2,475
py
Python
server.py
Towerthousand/tvhack
080363e90be7c5ab9308481437d6b8c64bd8030a
[ "MIT" ]
null
null
null
server.py
Towerthousand/tvhack
080363e90be7c5ab9308481437d6b8c64bd8030a
[ "MIT" ]
1
2015-09-12T22:38:32.000Z
2015-09-21T23:23:31.000Z
server.py
Towerthousand/tvhack
080363e90be7c5ab9308481437d6b8c64bd8030a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask from flask import jsonify from flask import render_template from flask.ext.cors import CORS from firebase import firebase app = Flask(__name__) CORS(app) firebase = firebase.FirebaseApplication('https://tvhack.firebaseio.com', None) _calling = False @app.route('/') ...
22.916667
78
0.646061
8cbc7fe662a97ce0721d35cdec61ec314b529c77
5,479
py
Python
stencil_benchmarks/benchmarks_collection/stream/cuda_hip.py
MeteoSwiss-APN/stencil_benchmarks
055e1d82fd0d95ffb9633b350fe167f1f1241325
[ "BSD-3-Clause" ]
5
2020-05-21T23:20:43.000Z
2021-01-12T11:52:05.000Z
stencil_benchmarks/benchmarks_collection/stream/cuda_hip.py
MeteoSwiss-APN/stencil_benchmarks
055e1d82fd0d95ffb9633b350fe167f1f1241325
[ "BSD-3-Clause" ]
null
null
null
stencil_benchmarks/benchmarks_collection/stream/cuda_hip.py
MeteoSwiss-APN/stencil_benchmarks
055e1d82fd0d95ffb9633b350fe167f1f1241325
[ "BSD-3-Clause" ]
7
2017-08-22T07:11:02.000Z
2021-06-30T11:31:20.000Z
# Stencil Benchmarks # # Copyright (c) 2017-2021, ETH Zurich and MeteoSwiss # 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 no...
43.484127
79
0.638073
6cf613bc89e61907940ff91c398160bb64330f63
4,552
py
Python
tests/parsers/test_header.py
torressa/grblogtools
6a7783ed6514b3a60cc4cc041ee922e538571701
[ "Apache-2.0" ]
null
null
null
tests/parsers/test_header.py
torressa/grblogtools
6a7783ed6514b3a60cc4cc041ee922e538571701
[ "Apache-2.0" ]
39
2021-12-14T05:01:39.000Z
2022-03-01T23:05:46.000Z
tests/parsers/test_header.py
torressa/grblogtools
6a7783ed6514b3a60cc4cc041ee922e538571701
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase, main from grblogtools.parsers.header import HeaderParser from grblogtools.parsers.util import parse_lines example_log_0 = """ Gurobi Optimizer version 9.5.0 build v9.5.0rc5 (mac64[arm]) Copyright (c) 2021, Gurobi Optimization, LLC Read MPS format model from file /Library/gurobi950/maco...
32.514286
92
0.664982
12d4df3102d2ac84fb72a7e2f01037b2d4262a63
6,993
py
Python
sdk/python/pulumi_okta/deprecated/oauth_app_redirect_uri.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
5
2019-10-29T21:59:22.000Z
2021-11-08T12:00:24.000Z
sdk/python/pulumi_okta/deprecated/oauth_app_redirect_uri.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
109
2020-01-06T10:28:09.000Z
2022-03-25T19:52:40.000Z
sdk/python/pulumi_okta/deprecated/oauth_app_redirect_uri.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-11T16:31:04.000Z
2020-11-24T12:23:17.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
38.423077
134
0.630345
c91eb0c3ab3c63d9d3720ffa55ee708947cbacbe
4,333
py
Python
cogs/roles.py
Drowrin/Weeabot
c919e9cd928bbb22f79a130bb3e8279c20b9a577
[ "MIT" ]
5
2017-02-05T06:28:03.000Z
2021-04-23T13:19:54.000Z
cogs/roles.py
Drowrin/Weeabot
c919e9cd928bbb22f79a130bb3e8279c20b9a577
[ "MIT" ]
7
2016-08-11T15:19:22.000Z
2018-09-17T14:36:01.000Z
cogs/roles.py
Drowrin/Weeabot
c919e9cd928bbb22f79a130bb3e8279c20b9a577
[ "MIT" ]
1
2016-06-06T00:05:07.000Z
2016-06-06T00:05:07.000Z
from collections import defaultdict import discord from discord.ext import commands import checks from cogs.requestsystem import request from Weeabot import Weeabot class Roles: def __init__(self, bot: Weeabot): self.bot = bot async def check_config(self, ctx): if ctx.message.server.id not...
42.067961
117
0.658897
807e838365301f5a822d25a7b1057091162ace1f
11,583
py
Python
train.py
KevinLL218/Mydatabase
6bf48aed67a1b7cd3b847c9e54caf0406e1cea40
[ "MIT" ]
2
2021-07-15T06:59:14.000Z
2021-07-19T01:34:47.000Z
train.py
KevinLL218/Mydatabase
6bf48aed67a1b7cd3b847c9e54caf0406e1cea40
[ "MIT" ]
2
2021-06-10T08:09:44.000Z
2021-07-19T02:01:46.000Z
train.py
KevinLL218/Underwater-Image-Segmentation
6bf48aed67a1b7cd3b847c9e54caf0406e1cea40
[ "MIT" ]
null
null
null
"""Training script for the DeepLab-ResNet network on the PASCAL VOC dataset for semantic image segmentation. This script trains the model using augmented PASCAL VOC, which contains approximately 10000 images for training and 1500 images for validation. """ from __future__ import print_function import argparse fro...
45.602362
162
0.670206
371a90920f867f7d0ac2903e48835d2529dd1339
529
py
Python
tree/apps.py
d42/django-tree
687c01c02d91cada9ca1912e34e482da9e73e27a
[ "BSD-3-Clause" ]
null
null
null
tree/apps.py
d42/django-tree
687c01c02d91cada9ca1912e34e482da9e73e27a
[ "BSD-3-Clause" ]
null
null
null
tree/apps.py
d42/django-tree
687c01c02d91cada9ca1912e34e482da9e73e27a
[ "BSD-3-Clause" ]
1
2018-09-26T17:51:37.000Z
2018-09-26T17:51:37.000Z
from django.apps import AppConfig from .fields import PathField from .lookups import DescendantOf, AncestorOf, Match, MatchAny, Search from .transforms import Level class TreeAppConfig(AppConfig): name = 'tree' verbose_name = 'Tree' def ready(self): PathField.register_lookup(DescendantOf) ...
26.45
70
0.73724
5a960b1823166658b6fd65e78aed0e9c2181f86d
8,579
py
Python
pytorch_lightning/loggers/test_tube.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
4
2021-12-10T01:30:35.000Z
2022-02-12T17:25:36.000Z
pytorch_lightning/loggers/test_tube.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
4
2021-11-07T02:22:34.000Z
2021-11-15T12:58:43.000Z
pytorch_lightning/loggers/test_tube.py
Code-Cornelius/pytorch-lightning
ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057
[ "Apache-2.0" ]
2
2021-12-08T22:29:39.000Z
2022-03-26T04:46:09.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.043651
116
0.645064
16dfc5bba77aa0744e9e171e6d6ee27cc026a1c5
133
py
Python
geekshop/authapp/admin.py
tortilla1310/Django_shop
b61bea6a7f09eeb445321d4d3f508b1e8b88d18d
[ "MIT" ]
null
null
null
geekshop/authapp/admin.py
tortilla1310/Django_shop
b61bea6a7f09eeb445321d4d3f508b1e8b88d18d
[ "MIT" ]
null
null
null
geekshop/authapp/admin.py
tortilla1310/Django_shop
b61bea6a7f09eeb445321d4d3f508b1e8b88d18d
[ "MIT" ]
null
null
null
import imp from django.contrib import admin from .models import ShopUser # Register your models here. admin.site.register(ShopUser)
19
32
0.81203
03f5d28d29e61dbb2ba1329ed2c53e9e35395401
35,319
py
Python
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
from __future__ import division import json import pickle import os import matplotlib.pyplot as plt from matplotlib import rcParams import numpy as np from ..core.result import Result as CoreResult from ..core.utils import ( infft, logger, check_directory_exists_and_if_not_mkdir, latex_plot_format, safe_save...
40.044218
105
0.549081
1491a1a60c94fd425b23434fc020d3623b6c265d
450
py
Python
src/test/utils/oob/test_dial.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
src/test/utils/oob/test_dial.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
src/test/utils/oob/test_dial.py
narnikgamarnikus/program-y
777b9a8a75ec787c037de9f11a8527875ff450b1
[ "MIT" ]
null
null
null
import unittest import xml.etree.ElementTree as ET from programy.utils.oob.dial import DialOutOfBoundsProcessor class DefaultOutOfBoundsProcessorTests(unittest.TestCase): def test_processor(self): oob_processor = DialOutOfBoundsProcessor() self.assertIsNotNone(oob_processor) oob_content =...
37.5
95
0.766667
108e5ee48b8e327de1ceeab97de6866989ae0db6
1,467
py
Python
apps/emoter/models.py
iapain/smartwebapps
19dcd2440cab5675708ddc0c3e1dad037e9f90cb
[ "MIT" ]
1
2018-10-31T03:12:30.000Z
2018-10-31T03:12:30.000Z
apps/emoter/models.py
iapain/smartwebapps
19dcd2440cab5675708ddc0c3e1dad037e9f90cb
[ "MIT" ]
null
null
null
apps/emoter/models.py
iapain/smartwebapps
19dcd2440cab5675708ddc0c3e1dad037e9f90cb
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.db.models.signals import post_save from django.dispatch import receiver from apps.ai.bayes import BayesianClassifier from contrib.feedparser import feedparser STATUS_DEFAULT = 'N' STATUS_POSITIVE = 'H' STATUS_NEGATIVE = '...
29.34
108
0.689162
422d6a5ffe6533e05489ac92f7738d2493453490
1,782
py
Python
cases/0011/0011.py
marcusrosenblatt/petab_test_suite
5b69c0dccf38867d47331303c01f5e935952f502
[ "BSD-3-Clause" ]
null
null
null
cases/0011/0011.py
marcusrosenblatt/petab_test_suite
5b69c0dccf38867d47331303c01f5e935952f502
[ "BSD-3-Clause" ]
null
null
null
cases/0011/0011.py
marcusrosenblatt/petab_test_suite
5b69c0dccf38867d47331303c01f5e935952f502
[ "BSD-3-Clause" ]
null
null
null
from petabtests import * from petab.C import * import petab import pandas as pd test_id = 11 # problem -------------------------------------------------------------------- model = DEFAULT_MODEL_FILE condition_df = pd.DataFrame(data={ CONDITION_ID: ['c0'], 'B': [2] }).set_index([CONDITION_ID]) measurement...
25.457143
78
0.59596
91dde65e6f45b713ef63d2f77806ca0d80d7f86d
209
py
Python
Parte 02/Projeto 27.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
Parte 02/Projeto 27.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
Parte 02/Projeto 27.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
#Vários números com flag c = s = 0 while True: n = int(input("Digite um número: ")) if n == 999: break c += 1 s += n print(f"Você digitou {c} números e a some entre eles é igual a {s}")
23.222222
68
0.564593
c7bae8c8b8699dfb4248b7763cb41c8fe2e3efa3
7,236
py
Python
model_zoo/official/gnn/gat/src/utils.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
model_zoo/official/gnn/gat/src/utils.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
model_zoo/official/gnn/gat/src/utils.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
39.977901
109
0.657546
2e53c201d20277f6cde46f396117735ff128d431
520
py
Python
services/web/src/extensions.py
dmenezesgabriel/flask-notes
6a18f23e841b7d8ff641c0840f4cb9814dbcccb7
[ "MIT" ]
null
null
null
services/web/src/extensions.py
dmenezesgabriel/flask-notes
6a18f23e841b7d8ff641c0840f4cb9814dbcccb7
[ "MIT" ]
null
null
null
services/web/src/extensions.py
dmenezesgabriel/flask-notes
6a18f23e841b7d8ff641c0840f4cb9814dbcccb7
[ "MIT" ]
null
null
null
from flask_moment import Moment from flask_babel import Babel from flask_babel import lazy_gettext as _l from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail babel = Babel() db = SQLAlchemy() mail = Mail() migrate = Migrate() moment...
27.368421
70
0.809615
9029a57e3da710216edd616020bf0c3743de98b8
1,640
py
Python
printing.py
zimolzak/wav-in-python
dcbfa0a126299f29a223b9078f4f8a9ccfd6456f
[ "MIT" ]
null
null
null
printing.py
zimolzak/wav-in-python
dcbfa0a126299f29a223b9078f4f8a9ccfd6456f
[ "MIT" ]
null
null
null
printing.py
zimolzak/wav-in-python
dcbfa0a126299f29a223b9078f4f8a9ccfd6456f
[ "MIT" ]
null
null
null
from typing import Generator def pretty_hex_string(hs: str, bytes_space: int = 2, bytes_newline: int = 16) -> Generator[str, None, None]: """Prepare hexadecimal text for easier reading. "abcdefgh" -> ['a', 'b', 'c', 'd ', 'e', 'f', 'g', 'h '] Note the spaces. Often you do ''.join(list()) to get this: ...
39.047619
116
0.62622
a3bc61f0a8e8557bb2af4d102059f75449017aa0
22,703
py
Python
cxs/config/lib_ini_files.py
ajvazquez/CXS338
fca77807073f75670f2e7a99011dc198cc7c9829
[ "MIT" ]
1
2021-11-05T02:38:45.000Z
2021-11-05T02:38:45.000Z
cxs/config/lib_ini_files.py
ajvazquez/CXS338
fca77807073f75670f2e7a99011dc198cc7c9829
[ "MIT" ]
null
null
null
cxs/config/lib_ini_files.py
ajvazquez/CXS338
fca77807073f75670f2e7a99011dc198cc7c9829
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> #!/usr/bin/env python # #The MIT CorrelX Correlator # #https://github.com/MITHaystack/CorrelX #Contact: correlX@haystack.mit.edu #Project leads: Victor Pankratius, Pedro Elosegui Project developer: A.J. Vazquez Alvarez # #Copyright 2017 MIT Haystack Obse...
31.619777
461
0.634277
d28c60a24870f65453ba47f4bbe3fe82a71acdb9
1,222
py
Python
allauth/account/urls.py
sssbox/django-allauth
421ca0b6767ed9368775a722762ac5f9bebb9689
[ "MIT" ]
null
null
null
allauth/account/urls.py
sssbox/django-allauth
421ca0b6767ed9368775a722762ac5f9bebb9689
[ "MIT" ]
null
null
null
allauth/account/urls.py
sssbox/django-allauth
421ca0b6767ed9368775a722762ac5f9bebb9689
[ "MIT" ]
null
null
null
from django.conf.urls.defaults import patterns, url import views urlpatterns = patterns("", url(r"^email/$", views.email, name="account_email"), url(r"^signup/$", views.signup, name="account_signup"), url(r"^login/$", views.login, name="account_login"), url(r"^password/change/$", views.password_change...
48.88
142
0.697218
2b6f4765b3b6bfff847a5a79bdccc013522a23f7
390
py
Python
observable.py
NonExistentUsername/explosive-kittens-bot
d96fd068bb1b11b0f2409f85c59c20fa68593c69
[ "Apache-2.0" ]
null
null
null
observable.py
NonExistentUsername/explosive-kittens-bot
d96fd068bb1b11b0f2409f85c59c20fa68593c69
[ "Apache-2.0" ]
null
null
null
observable.py
NonExistentUsername/explosive-kittens-bot
d96fd068bb1b11b0f2409f85c59c20fa68593c69
[ "Apache-2.0" ]
null
null
null
class Observable: def _notify(self, notification, **data): for observer in self.__observers: observer.notify(notification, **data) def __init__(self): self.__observers = [] def add_observer(self, observer): self.__observers.append(observer) def remov...
26
50
0.635897
ec20869b129f14e0f193cf8979542fad7ba99dfc
2,935
py
Python
forte/data/readers/ms_marco_passage_reader.py
jrxk/forte
bb88412a23efa8b4b22f636c1e8073c18fab8c18
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
forte/data/readers/ms_marco_passage_reader.py
ha-lins/forte
4594f65f41a8dbfc822573d12fb9af58c37a83a4
[ "Apache-2.0" ]
null
null
null
forte/data/readers/ms_marco_passage_reader.py
ha-lins/forte
4594f65f41a8dbfc822573d12fb9af58c37a83a4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Forte 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 ...
33.735632
83
0.700852
553e58e46cdb19db9ec03f1a59f388c7521a02cb
8,942
py
Python
app.py
danrneal/restaurant-menu-app
16f0d1e89a137df5cf2342a3c5ddda8250c695a9
[ "MIT" ]
null
null
null
app.py
danrneal/restaurant-menu-app
16f0d1e89a137df5cf2342a3c5ddda8250c695a9
[ "MIT" ]
null
null
null
app.py
danrneal/restaurant-menu-app
16f0d1e89a137df5cf2342a3c5ddda8250c695a9
[ "MIT" ]
null
null
null
"""A web app displaying various restaurants and their menus. Usage: flask run """ from flask import ( Flask, flash, jsonify, redirect, render_template, request, url_for, ) from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from models import Base, MenuItem, Resta...
29.222222
79
0.681279
1bf1084afc48f5eec6732f56eb0583b435359ef6
23,785
py
Python
cogs/pokemon.py
s0hv/Not-a-bot
41a1172ebb8e66dbc9effb1f14e7b91212f572ea
[ "MIT" ]
6
2019-11-15T00:57:15.000Z
2022-01-08T08:11:08.000Z
cogs/pokemon.py
s0hv/Not-a-bot
41a1172ebb8e66dbc9effb1f14e7b91212f572ea
[ "MIT" ]
null
null
null
cogs/pokemon.py
s0hv/Not-a-bot
41a1172ebb8e66dbc9effb1f14e7b91212f572ea
[ "MIT" ]
3
2018-12-25T14:42:08.000Z
2021-07-22T15:56:43.000Z
import csv import json import logging import math import os import re from functools import partial import discord from discord import utils, Embed from discord.ext.commands import BucketType, guild_only from discord.ext.commands.errors import BotMissingPermissions from bot.bot import command, cooldown, has_permissio...
35.5
160
0.560017
4318ae19649650c19a5f78e3c5a71e680728cf13
5,220
py
Python
pipenv/patched/notpip/_vendor/requests/__init__.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
23
2017-01-20T01:18:31.000Z
2017-01-20T17:25:11.000Z
pipenv/patched/notpip/_vendor/requests/__init__.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
1
2017-01-20T05:13:58.000Z
2017-01-20T05:13:58.000Z
pipenv/patched/notpip/_vendor/requests/__init__.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ Requests HTTP Library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> ...
33.677419
102
0.695785
571db55026c51e0be11dec07ffd437ee9db9c8da
23,199
py
Python
metalibm_core/code_generation/gappa_code_generator.py
kalray/metalibm
e331ee4a1b3df9ebdf581453852ac019d7c1b6da
[ "MIT" ]
27
2018-03-12T16:49:36.000Z
2021-12-15T06:53:55.000Z
metalibm_core/code_generation/gappa_code_generator.py
kalray/metalibm
e331ee4a1b3df9ebdf581453852ac019d7c1b6da
[ "MIT" ]
57
2018-03-12T16:49:56.000Z
2021-03-04T15:25:39.000Z
metalibm_core/code_generation/gappa_code_generator.py
kalray/metalibm
e331ee4a1b3df9ebdf581453852ac019d7c1b6da
[ "MIT" ]
4
2018-03-12T15:40:22.000Z
2018-11-28T14:34:54.000Z
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
46.305389
198
0.648821
5df03d66411e95709b0b422d747acbefa1a1e34b
443
py
Python
bandwidth/voice/models/conference_event_method_enum.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
5
2020-11-04T14:29:37.000Z
2022-02-23T20:33:07.000Z
bandwidth/voice/models/conference_event_method_enum.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
3
2021-07-23T18:48:48.000Z
2022-03-15T14:59:07.000Z
bandwidth/voice/models/conference_event_method_enum.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
8
2020-04-14T09:22:53.000Z
2022-03-11T10:46:06.000Z
# -*- coding: utf-8 -*- """ bandwidth This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ class ConferenceEventMethodEnum(object): """Implementation of the 'ConferenceEventMethod' enum. TODO: type enum description here. Attributes: POST: T...
17.038462
59
0.602709
19cd4b9218162bb2df70de9917f6dbc7d09ba5f7
9,748
py
Python
endesive/xades/bes.py
zengoma/endesive
ad3aa54e67aa80af3d01261168cb64796818c9c9
[ "MIT" ]
null
null
null
endesive/xades/bes.py
zengoma/endesive
ad3aa54e67aa80af3d01261168cb64796818c9c9
[ "MIT" ]
null
null
null
endesive/xades/bes.py
zengoma/endesive
ad3aa54e67aa80af3d01261168cb64796818c9c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import datetime import hashlib import io import uuid from lxml import etree, builder DS = builder.ElementMaker( namespace="http://www.w3.org/2000/09/xmldsig#", nsmap={ "ds": "http://www.w3.org/2000/09/xmldsig#", }, ) CanonicalizationMethod = DS.Canonicalizatio...
34.690391
108
0.508822
0b243117704319ab97aed0ce7d4699d04bea7bd2
4,832
py
Python
aether/sdk/multitenancy/views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
1
2020-05-04T21:05:11.000Z
2020-05-04T21:05:11.000Z
aether/sdk/multitenancy/views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
3
2019-09-30T15:45:43.000Z
2020-04-29T08:12:37.000Z
aether/sdk/multitenancy/views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
32.870748
92
0.692881
e7d20f9747b1361a28a323d37966a67af0c60335
1,955
py
Python
setup.py
navenduagarwal/pypi-testing
a2ef50bbbdca8f390397a125a8184b639393fee4
[ "MIT" ]
null
null
null
setup.py
navenduagarwal/pypi-testing
a2ef50bbbdca8f390397a125a8184b639393fee4
[ "MIT" ]
null
null
null
setup.py
navenduagarwal/pypi-testing
a2ef50bbbdca8f390397a125a8184b639393fee4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: setup.py Description: Setup script to build and distribute sparshik-kyc module. """ import re import os.path from io import open from setuptools import find_packages, setup # Change the PACKAGE_NAME only to change folder and different name PACKAGE_NAME = "sparshi...
31.532258
70
0.706394
eb46bfc12d2e296f085655ea1e43e4b9b993d63e
2,878
py
Python
coconut/convenience.py
CS121Fresh/compiler
e50e2fd8b167bf6f00ab237b91009d785c72f0cd
[ "MIT" ]
null
null
null
coconut/convenience.py
CS121Fresh/compiler
e50e2fd8b167bf6f00ab237b91009d785c72f0cd
[ "MIT" ]
null
null
null
coconut/convenience.py
CS121Fresh/compiler
e50e2fd8b167bf6f00ab237b91009d785c72f0cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #----------------------------------------------------------------------------------------------------------------------- # INFO: #----------------------------------------------------------------------------------------------------------------------- """ Author: Ev...
31.977778
121
0.404448
01254614526268857d3c9092bf56842ea107c281
192
py
Python
tests/Unit/Evolution/Systems/ScalarAdvection/TestFunctions.py
erfz/spectre
dc772598a8197a4f2c4a729ee30dd4398f4cd591
[ "MIT" ]
1
2018-10-01T06:07:16.000Z
2018-10-01T06:07:16.000Z
tests/Unit/Evolution/Systems/ScalarAdvection/TestFunctions.py
erfz/spectre
dc772598a8197a4f2c4a729ee30dd4398f4cd591
[ "MIT" ]
4
2018-06-04T20:26:40.000Z
2018-07-27T14:54:55.000Z
tests/Unit/Evolution/Systems/ScalarAdvection/TestFunctions.py
erfz/spectre
dc772598a8197a4f2c4a729ee30dd4398f4cd591
[ "MIT" ]
null
null
null
# Distributed under the MIT License. # See LICENSE.txt for details. import numpy as np # Test function for computing flux def compute_flux(u, velocity_field): return u * velocity_field
19.2
36
0.760417
f969a9ce5f4f50c629b6953672119c8ab5936bf3
11,787
py
Python
aionetworking/actions/file_storage.py
primal100/aionetworking
a29cbb022cbae1a4ad1c3d44327e9d0b0c930227
[ "MIT" ]
null
null
null
aionetworking/actions/file_storage.py
primal100/aionetworking
a29cbb022cbae1a4ad1c3d44327e9d0b0c930227
[ "MIT" ]
1
2018-12-23T00:50:33.000Z
2018-12-23T00:50:33.000Z
aionetworking/actions/file_storage.py
primal100/aionetworking
a29cbb022cbae1a4ad1c3d44327e9d0b0c930227
[ "MIT" ]
null
null
null
from abc import abstractmethod import asyncio from dataclasses import dataclass, field import logging from pathlib import Path from .base import BaseAction from aionetworking.logging.loggers import get_logger_receiver from aionetworking import settings from aionetworking.compatibility import create_task, set_task_name...
38.269481
115
0.580809
38d872f3188aa48d880de710b0c6e5dd553d4574
979
py
Python
blueapps/opentelemetry/instrument_app/celery.py
qqqqqie/bk-sops
f2e734c2cdac76f89d2e4f0fd7de36168e452141
[ "Apache-2.0" ]
881
2019-03-25T02:45:42.000Z
2022-03-30T09:10:49.000Z
blueapps/opentelemetry/instrument_app/celery.py
Tencent/bk-sops
f2938f6162a39908eac0bde3e5230a3c62ac09f6
[ "Apache-2.0" ]
3,303
2019-03-25T04:18:03.000Z
2022-03-31T11:52:03.000Z
blueapps/opentelemetry/instrument_app/celery.py
qqqqqie/bk-sops
f2e734c2cdac76f89d2e4f0fd7de36168e452141
[ "Apache-2.0" ]
395
2019-03-25T02:53:36.000Z
2022-03-31T08:37:28.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
44.5
115
0.800817