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
8d4fdfe20025b0e5daa5a835dc6c99f6fc1fb9bb
1,069
py
Python
vlp/loader_utils.py
ChenYutongTHU/VLP
0a52c7d5444c880bb56d89a409aca229bde8a96f
[ "Apache-2.0" ]
null
null
null
vlp/loader_utils.py
ChenYutongTHU/VLP
0a52c7d5444c880bb56d89a409aca229bde8a96f
[ "Apache-2.0" ]
null
null
null
vlp/loader_utils.py
ChenYutongTHU/VLP
0a52c7d5444c880bb56d89a409aca229bde8a96f
[ "Apache-2.0" ]
null
null
null
from random import randint, shuffle from random import random as rand import pickle import json from collections import namedtuple import torch import torch.nn as nn import unicodedata from multiprocessing import Lock def get_random_word(vocab_words): i = randint(0, len(vocab_words)-1) return voc...
26.725
73
0.647334
d634afdc1f105bb4fcc8082ae0d0d27e255d718f
1,957
py
Python
tests/test_02_app/test_simple_app.py
sondrelg/uvicorn-gunicorn-docker
ddd38797d6a9ca820bd8b3134a0398ef3df8877a
[ "MIT" ]
null
null
null
tests/test_02_app/test_simple_app.py
sondrelg/uvicorn-gunicorn-docker
ddd38797d6a9ca820bd8b3134a0398ef3df8877a
[ "MIT" ]
null
null
null
tests/test_02_app/test_simple_app.py
sondrelg/uvicorn-gunicorn-docker
ddd38797d6a9ca820bd8b3134a0398ef3df8877a
[ "MIT" ]
null
null
null
import os import time from pathlib import Path import docker import requests from docker.client import DockerClient from ..utils import ( CONTAINER_NAME, IMAGE_NAME, generate_dockerfile_content, get_config, get_logs, get_response_text2, remove_previous_container, ) client = docker.from_en...
32.616667
105
0.718447
4b6648131ce2ac67964a548bf5a76cd5ee797ac9
1,905
py
Python
caffe/zz_experimental/mnist-gpu/model/test_predict.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
44
2017-11-17T06:19:05.000Z
2021-11-03T06:00:56.000Z
caffe/zz_experimental/mnist-cpu/model/test_predict.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
3
2018-08-09T14:28:17.000Z
2018-09-10T03:32:42.000Z
caffe/zz_experimental/mnist-cpu/model/test_predict.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
21
2017-11-18T15:12:12.000Z
2020-08-15T07:08:33.000Z
import pipeline_invoke json_bytes = b'{"image": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
317.5
1,837
0.576378
d010d3bc1854d58cc950439ce52ce40a45e7a39d
6,229
py
Python
demo/demo_app/admin.py
patpro28/semantic-admin
1c56dc03f33837661065f5bf226bf2e6a500aff8
[ "MIT" ]
null
null
null
demo/demo_app/admin.py
patpro28/semantic-admin
1c56dc03f33837661065f5bf226bf2e6a500aff8
[ "MIT" ]
null
null
null
demo/demo_app/admin.py
patpro28/semantic-admin
1c56dc03f33837661065f5bf226bf2e6a500aff8
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from django.contrib.admin import ModelAdmin as DefaultModelAdmin from django.contrib.admin import StackedInline as DefaultStackedInline from django.contrib.admin import TabularInline as DefaultTabularInline from django.contrib.auth.models import Group, U...
31.780612
85
0.668968
fc7f278969273dff1b5adcd4acbdfd9d88351e79
7,831
py
Python
finrl/commands/list_commands.py
solazu/FinRL-Library
6cfe00933c16fc8a74efc9fb3d9cfa1b3bf296ea
[ "MIT" ]
1
2021-07-18T13:31:55.000Z
2021-07-18T13:31:55.000Z
finrl/commands/list_commands.py
solazu/FinRL-Library
6cfe00933c16fc8a74efc9fb3d9cfa1b3bf296ea
[ "MIT" ]
null
null
null
finrl/commands/list_commands.py
solazu/FinRL-Library
6cfe00933c16fc8a74efc9fb3d9cfa1b3bf296ea
[ "MIT" ]
null
null
null
import csv import logging import sys from collections import OrderedDict from pathlib import Path from typing import Any, Dict, List import rapidjson from colorama import Fore, Style from colorama import init as colorama_init from tabulate import tabulate from finrl.config import setup_utils_configuration from finrl....
38.014563
97
0.607585
e4b2b587c9b3d29673d783aeb832e4b6ce1e1d55
6,191
py
Python
pytorch/benchmark.py
mingfeima/convnet-benchmarks
e07c4814cc9ca1fdcbda1ff3ea4fcb386ed7691a
[ "MIT" ]
4
2018-10-30T08:15:00.000Z
2021-03-08T03:44:20.000Z
pytorch/benchmark.py
mingfeima/convnet-benchmarks
e07c4814cc9ca1fdcbda1ff3ea4fcb386ed7691a
[ "MIT" ]
null
null
null
pytorch/benchmark.py
mingfeima/convnet-benchmarks
e07c4814cc9ca1fdcbda1ff3ea4fcb386ed7691a
[ "MIT" ]
5
2018-04-04T23:30:10.000Z
2020-12-08T06:34:03.000Z
import argparse import torch from torch.autograd import Variable import torch.nn as nn import torchvision.models as models import torch.optim as optim import time import subprocess from collections import OrderedDict from mobilenet import MobileNetV2 models.__dict__['mobilenet_v2'] = MobileNetV2 from shu...
38.216049
125
0.563237
5e63443df00e14c24301191da60e0407fe86bdde
10,928
py
Python
detectron2/modeling/meta_arch/rcnn.py
katport/detectron2_fork
bcb21146ae4360543681d1fa3b60820f3a142703
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/meta_arch/rcnn.py
katport/detectron2_fork
bcb21146ae4360543681d1fa3b60820f3a142703
[ "Apache-2.0" ]
3
2021-06-08T22:00:44.000Z
2022-01-13T03:01:49.000Z
detectron2/modeling/meta_arch/rcnn.py
katport/detectron2_fork
bcb21146ae4360543681d1fa3b60820f3a142703
[ "Apache-2.0" ]
1
2020-08-18T16:44:41.000Z
2020-08-18T16:44:41.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import numpy as np import torch from torch import nn from detectron2.structures import ImageList # from detectron2.utils.events import get_event_storage from detectron2.utils.logger import log_first_n from ..backbone import build_ba...
41.869732
98
0.632778
9826fef4c76b1083a2283bda6dd7ee5adf3518ec
792
py
Python
mathgenerator/funcs/algebra/compound_interest.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
40
2020-10-14T17:29:51.000Z
2020-11-01T04:41:03.000Z
mathgenerator/funcs/algebra/compound_interest.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
209
2020-10-14T15:32:08.000Z
2020-11-03T19:08:19.000Z
mathgenerator/funcs/algebra/compound_interest.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
179
2020-10-14T15:36:55.000Z
2020-10-29T19:26:16.000Z
from .__init__ import * def gen_func(maxPrinciple=10000, maxRate=10, maxTime=10, format='string'): p = random.randint(1000, maxPrinciple) r = random.randint(1, maxRate) n = random.randint(1, maxTime) a = round(p * (1 + r / 100)**n, 2) if format == 'string': ...
28.285714
68
0.549242
d1435ef66cce84ce01356b167a74a3108f29751f
1,181
py
Python
packages/pyright-internal/src/tests/samples/loops1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/loops1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/loops1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
# This sample tests the type checker's ability to handle type # inferences within loop constructs. def bar(a: list): pass def func1(): data = None for x in [2, 3]: if not data: data = [1, 2] else: # This should not generate an error because the ...
25.673913
62
0.547841
54dca9c5e51da97d36c90831dec0705403c2655e
2,907
py
Python
row_opt_manual.py
VietHTran/math-checker
872bf3c172c2aee81c875bf37c55bf618135c3cb
[ "MIT" ]
null
null
null
row_opt_manual.py
VietHTran/math-checker
872bf3c172c2aee81c875bf37c55bf618135c3cb
[ "MIT" ]
null
null
null
row_opt_manual.py
VietHTran/math-checker
872bf3c172c2aee81c875bf37c55bf618135c3cb
[ "MIT" ]
null
null
null
from fractions import Fraction def printMatrix(m): for i in range(len(m)): for j in range(len(m[0])): print(m[i][j], end="\t") print() def getFraction(message): while True: rawInp = input(message) try: if "/" in rawInp: # Fraction inp = ...
27.951923
69
0.519436
9864e11ded76f7ff8ed81b9e4adf9fcdd0d1a480
120,842
py
Python
python_etl/CMS_SynPuf_ETL_CDM_v5.py
CPHI-TVHS/ETL-CMS
51044ceea7ddd14d02275e2796f62f454016e238
[ "Apache-2.0" ]
null
null
null
python_etl/CMS_SynPuf_ETL_CDM_v5.py
CPHI-TVHS/ETL-CMS
51044ceea7ddd14d02275e2796f62f454016e238
[ "Apache-2.0" ]
null
null
null
python_etl/CMS_SynPuf_ETL_CDM_v5.py
CPHI-TVHS/ETL-CMS
51044ceea7ddd14d02275e2796f62f454016e238
[ "Apache-2.0" ]
null
null
null
import csv,os,os.path,sys from time import strftime from collections import OrderedDict import argparse import dotenv import math from constants import OMOP_CONSTANTS, OMOP_MAPPING_RECORD, BENEFICIARY_SUMMARY_RECORD, OMOP_CONCEPT_RECORD, OMOP_CONCEPT_RELATIONSHIP_RECORD from utility_classes import Table_ID_Values from ...
57.298246
212
0.573882
733fc63b5b68e86f5afad72da038cb88dff6e91e
2,244
py
Python
aria_plugin/executor.py
cloudify-cosmo/-cloudify-aria-plugin
5b51019f0981ecec31f684983db71cf4dbb76b9a
[ "Apache-2.0" ]
1
2018-02-21T22:40:01.000Z
2018-02-21T22:40:01.000Z
aria_plugin/executor.py
cloudify-cosmo/-cloudify-aria-plugin
5b51019f0981ecec31f684983db71cf4dbb76b9a
[ "Apache-2.0" ]
null
null
null
aria_plugin/executor.py
cloudify-cosmo/-cloudify-aria-plugin
5b51019f0981ecec31f684983db71cf4dbb76b9a
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2017 GigaSpaces Technologies Ltd. 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...
36.193548
79
0.707219
1b821c0a87f883a884e75b6bd5fdd4121c509db8
248
py
Python
bettercache/urls.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
2
2015-07-03T09:11:12.000Z
2019-10-20T18:37:46.000Z
bettercache/urls.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
4
2016-02-04T04:17:44.000Z
2021-06-10T20:22:46.000Z
bettercache/urls.py
ironfroggy/django-better-cache
5350e8c646cef1c1ca74eab176f856ddd9eaf5c3
[ "MIT" ]
null
null
null
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'', 'bettercache.views.cache_view'), )
24.8
60
0.741935
f9e8e60714f7c20219239cfa03972299cfd3d9cd
4,094
py
Python
test/integration/test_types.py
motey/py2neo
2e46bbf4d622f53282e796ffc521fc4bc6d0b60d
[ "Apache-2.0" ]
545
2017-01-06T07:27:01.000Z
2021-06-10T01:08:23.000Z
test/integration/test_types.py
motey/py2neo
2e46bbf4d622f53282e796ffc521fc4bc6d0b60d
[ "Apache-2.0" ]
370
2016-12-25T15:47:37.000Z
2021-06-17T06:09:43.000Z
test/integration/test_types.py
motey/py2neo
2e46bbf4d622f53282e796ffc521fc4bc6d0b60d
[ "Apache-2.0" ]
133
2016-12-21T19:39:28.000Z
2021-05-26T14:26:02.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2021, Nigel Small # # 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 # # Unle...
25.748428
103
0.646556
5272ee425faaa0b0d3c7d69bd0a15cfdbf91612a
3,420
py
Python
b3j0f/conf/parser/resolver/lang/py.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
3
2016-02-18T18:58:24.000Z
2017-03-14T08:40:01.000Z
b3j0f/conf/parser/resolver/lang/py.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
1
2016-02-18T15:27:35.000Z
2016-04-02T10:36:43.000Z
b3j0f/conf/parser/resolver/lang/py.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2015 Jonathan Labéjof <jonathan.labejof@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fi...
28.264463
79
0.633918
d273bb8e5920b5c3eb8fbb5b56d51f816f31ba7a
120
py
Python
bids/grabbids/__init__.py
raamana/pybids
431cc5db1720cb911b8b64dab59db7f9ada23469
[ "MIT" ]
null
null
null
bids/grabbids/__init__.py
raamana/pybids
431cc5db1720cb911b8b64dab59db7f9ada23469
[ "MIT" ]
1
2019-07-10T11:51:56.000Z
2019-07-10T11:51:56.000Z
bids/grabbids/__init__.py
raamana/pybids
431cc5db1720cb911b8b64dab59db7f9ada23469
[ "MIT" ]
null
null
null
from .bids_layout import BIDSLayout from .bids_validator import BIDSValidator __all__ = ["BIDSLayout", "BIDSValidator"]
30
41
0.816667
0f62d9c8dfd4c92ddd934e4047c5fecb9bd22793
2,977
py
Python
dataset/generate_synthetic.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
39
2020-10-05T13:31:01.000Z
2022-03-13T09:25:21.000Z
dataset/generate_synthetic.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
1
2021-07-23T15:04:09.000Z
2021-07-23T15:04:09.000Z
dataset/generate_synthetic.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
6
2020-11-23T03:32:47.000Z
2021-12-26T06:28:51.000Z
import os, collections import networkx as nx import numpy as np import torch, dgl import random, pickle class synthetic_graph_cls: # generate several graphs with different paterns and union them # labels is whether the union graph contains speicific pattern def __init__(self, args): self.args = ar...
35.86747
93
0.586161
0e6a7e3681627f95f521a45e505d7f11c7d8fc90
1,995
py
Python
bigip-decode.py
yuboliu/f5-bigip-decode
deb945309c1f5e8c1705ed7de1cf1fee6de9b1c1
[ "MIT" ]
2
2021-04-10T18:17:29.000Z
2022-01-31T16:32:47.000Z
bigip-decode.py
yuboliu/f5-bigip-decode
deb945309c1f5e8c1705ed7de1cf1fee6de9b1c1
[ "MIT" ]
null
null
null
bigip-decode.py
yuboliu/f5-bigip-decode
deb945309c1f5e8c1705ed7de1cf1fee6de9b1c1
[ "MIT" ]
1
2021-09-29T00:41:32.000Z
2021-09-29T00:41:32.000Z
#!/usr/bin/env python3 from optparse import OptionParser from sys import exit # Decodes F5 BigIP cookies # Based on instructions at https://support.f5.com/csp/article/K6917 # Usage: bigip-decode.py -c 0000000000.00000.000 # Where -c is the F5 BigIP cookie # October 2020, Ken Mininger, kmininger@us.ibm.com ...
33.25
92
0.637594
3e35c9440dedf6c4b781474469b5a60024d8da05
26,553
py
Python
wandb/wandb_run.py
guysmoilov/client
28b818c5302e935ba269b9d4480e97903c28b8b2
[ "MIT" ]
null
null
null
wandb/wandb_run.py
guysmoilov/client
28b818c5302e935ba269b9d4480e97903c28b8b2
[ "MIT" ]
null
null
null
wandb/wandb_run.py
guysmoilov/client
28b818c5302e935ba269b9d4480e97903c28b8b2
[ "MIT" ]
null
null
null
import datetime import logging import os import socket import json import yaml import fnmatch import tempfile import shutil import glob from sentry_sdk import configure_scope from . import env import wandb from wandb import history from wandb import jsonlfile from wandb import summary from wandb import meta from wand...
38.371387
149
0.605732
081416cdd9ec6e602a5004e331d88def2e2e4b0d
4,467
py
Python
rsvp/__init__.py
sundeep-co-in/rsvp
28f7a31607609264cf76892d0902daabee88274f
[ "Apache-2.0" ]
1
2018-10-13T14:51:10.000Z
2018-10-13T14:51:10.000Z
rsvp/__init__.py
sundeep-co-in/rsvp
28f7a31607609264cf76892d0902daabee88274f
[ "Apache-2.0" ]
1
2018-08-24T10:27:29.000Z
2018-08-24T10:27:29.000Z
rsvp/__init__.py
sundeep-co-in/rsvp
28f7a31607609264cf76892d0902daabee88274f
[ "Apache-2.0" ]
null
null
null
# RSVP Main File from uuid import uuid4 from rsvp.helpers import RSVP_Helpers from rsvp.constants import MEMBER_KEYS from rsvp.exceptions import EXCEPTION_MESSAGES MEMBERS_KEY = 'event_members' helpers = RSVP_Helpers() store_file_name = '' def _locate_file(event_id): all_files = helpers.get_all_store_files() ...
33.840909
94
0.687486
731db9861765d20f2d87a6d4d9497180e037c365
7,733
py
Python
vspk/v5_0/nupolicyobjectgroup.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
19
2016-03-07T12:34:22.000Z
2020-06-11T11:09:02.000Z
vspk/v5_0/nupolicyobjectgroup.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
40
2016-06-13T15:36:54.000Z
2020-11-10T18:14:43.000Z
vspk/v5_0/nupolicyobjectgroup.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
15
2016-06-10T22:06:01.000Z
2020-12-15T18:37:42.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
29.515267
175
0.617742
01cb2e482ec4faaa186deff4faaad63504f2727e
1,804
py
Python
src/awkward/_v2/types/unknowntype.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
2
2019-09-12T03:07:23.000Z
2019-09-27T05:32:07.000Z
src/awkward/_v2/types/unknowntype.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
1
2019-09-26T17:57:45.000Z
2019-09-26T17:57:45.000Z
src/awkward/_v2/types/unknowntype.py
douglasdavis/awkward-1.0
f00775803a5568efb0a8e2dae3b1a4f23228fa40
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE import awkward as ak from awkward._v2.types.type import Type from awkward._v2.forms.form import _parameters_equal class UnknownType(Type): def __init__(self, parameters=None, typestr=None): if parameters is not None a...
34.037736
87
0.545455
f5661a30fef62119aa23529ecd7be6f30cf45f55
9,230
py
Python
lib/streamlit/elements/write.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
1
2022-03-14T07:55:33.000Z
2022-03-14T07:55:33.000Z
lib/streamlit/elements/write.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
1
2022-03-15T04:05:17.000Z
2022-03-15T04:05:17.000Z
lib/streamlit/elements/write.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2022 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
38.458333
111
0.576598
6bb69f25b25676e66ff170792737f4acbc9e5093
7,356
py
Python
herders/api_filters.py
marknach/swarfarm
326dcf8290ea4ef4a1832d574db5fc3eeefe39dd
[ "Apache-2.0" ]
null
null
null
herders/api_filters.py
marknach/swarfarm
326dcf8290ea4ef4a1832d574db5fc3eeefe39dd
[ "Apache-2.0" ]
8
2021-06-04T23:58:22.000Z
2022-03-12T00:47:56.000Z
herders/api_filters.py
hixio-mh/swarfarm
f30f1526566d305e11c216d1730f2af99d53b91d
[ "Apache-2.0" ]
null
null
null
import django_filters from django.contrib.auth.models import User from django.db.models import Q from bestiary.models import Monster, Skill, SkillEffect, LeaderSkill, ScalingStat from .models import MonsterInstance, MonsterTag, RuneInstance, Team class SummonerFilter(django_filters.FilterSet): class Meta: ...
43.785714
167
0.664628
75f2f30c452a8f8013f5d70b90ae1fe65e7a8db5
2,224
py
Python
addons14/account_financial_report/report/vat_report_xlsx.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/account_financial_report/report/vat_report_xlsx.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/account_financial_report/report/vat_report_xlsx.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright 2018 Forest and Biomass Romania # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import _, models class VATReportXslx(models.AbstractModel): _name = "report.a_f_r.report_vat_report_xlsx" _description = "Vat Report XLSX Report" _inherit = "report.account_financia...
36.459016
83
0.584532
08db1eb58faeb587ebdd0ebd550110abb1010be3
2,825
py
Python
tdda/constraints/db/detect.py
Daniel-Mietchen/tdda
98718ec3b4b253bba3b575d4b10a14a6d70576b8
[ "MIT" ]
232
2016-09-17T11:56:52.000Z
2022-03-18T23:13:41.000Z
tdda/constraints/db/detect.py
Daniel-Mietchen/tdda
98718ec3b4b253bba3b575d4b10a14a6d70576b8
[ "MIT" ]
28
2016-11-14T04:04:22.000Z
2022-03-08T22:16:30.000Z
tdda/constraints/db/detect.py
Daniel-Mietchen/tdda
98718ec3b4b253bba3b575d4b10a14a6d70576b8
[ "MIT" ]
30
2016-09-17T11:57:32.000Z
2022-03-29T10:57:16.000Z
# -*- coding: utf-8 -*- """ Support for database constraint detection from the command-line tool """ from __future__ import division from __future__ import print_function USAGE = ''' Parameters: * table is one of: - a database table name - a schema-qualified table name of the form schema.table - ...
30.376344
79
0.633628
59639b603fcb1ed3fd5adad9404bbda4f99dc191
8,593
py
Python
src/power_forecast/functions.py
fserrey/eolo-project
f1c157b8c0675343534424ee8df82a2e1f2e6a2b
[ "MIT" ]
1
2021-12-14T22:57:23.000Z
2021-12-14T22:57:23.000Z
src/power_forecast/functions.py
fserrey/eolo-project
f1c157b8c0675343534424ee8df82a2e1f2e6a2b
[ "MIT" ]
null
null
null
src/power_forecast/functions.py
fserrey/eolo-project
f1c157b8c0675343534424ee8df82a2e1f2e6a2b
[ "MIT" ]
null
null
null
import os from os import listdir import numpy as np import pandas as pd from datetime import datetime, timedelta import json import xgboost as xgb import matplotlib as plt import folium from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor #from power_forecast.pickle_...
35.655602
107
0.641918
b30a258bd6425fa19eea2221956891d085c9fe1b
413
py
Python
2020/test/test_day9.py
terezaif/adventofcode
67601f79a3b01d71434ef0236387ffd5ab7dca0f
[ "MIT" ]
4
2020-12-06T13:11:59.000Z
2021-12-15T11:34:34.000Z
2020/test/test_day9.py
terezaif/adventofcode
67601f79a3b01d71434ef0236387ffd5ab7dca0f
[ "MIT" ]
null
null
null
2020/test/test_day9.py
terezaif/adventofcode
67601f79a3b01d71434ef0236387ffd5ab7dca0f
[ "MIT" ]
1
2021-12-02T16:32:50.000Z
2021-12-02T16:32:50.000Z
from days.day9 import get_first_number from days.day9 import get_list_ends from utils.reading_data import get_int_input_array input = get_int_input_array(path="2020/test/data/day9.txt") def test_get_count(): expected = 127 actual = get_first_number(5, input) assert expected == actual def test_get_count...
22.944444
59
0.750605
612b9155d03f3c7f61e8d863730ebe89f6a6a3a5
1,013
py
Python
video/models.py
JisunParkRea/djangotube_tutorial
c173f624da4aee7252c99f0852789f06b4bff4c7
[ "MIT" ]
2
2020-12-07T04:49:32.000Z
2021-04-12T04:46:09.000Z
video/models.py
JisunParkRea/djangotube_tutorial
c173f624da4aee7252c99f0852789f06b4bff4c7
[ "MIT" ]
4
2020-04-28T07:54:02.000Z
2021-09-22T18:52:46.000Z
video/models.py
JisunParkRea/djangotube_tutorial
c173f624da4aee7252c99f0852789f06b4bff4c7
[ "MIT" ]
1
2020-04-28T07:42:27.000Z
2020-04-28T07:42:27.000Z
from django.conf import settings from django.db import models class Video(models.Model): class Category(models.TextChoices): Music = 'music' Movie = 'movie' Drama = 'drama' Comedy = 'comedy' Information = 'info' Daily = 'daily' Beauty = 'beauty' Art ...
29.794118
104
0.655479
aa2da3d00fb9e037b4bb23b49c7b7ac2054d9b03
4,106
py
Python
test/functional/feature_minchainwork.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/feature_minchainwork.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/feature_minchainwork.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Vadercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for setting nMinimumChainWork on command line. Nodes don't consider themselves out of "in...
45.120879
108
0.698003
5a27514d3ca08d3797946bc9e86882294446f79d
13,040
py
Python
views/web/dustWeb/WebPage.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
4
2016-09-07T05:46:20.000Z
2020-05-31T21:34:27.000Z
views/web/dustWeb/WebPage.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
null
null
null
views/web/dustWeb/WebPage.py
twatteynelinear/dustlink_sierra
9dac02d4fdfdee240a8a9da2e6abc2d7fda3443b
[ "BSD-3-Clause" ]
6
2015-01-22T10:14:24.000Z
2020-05-31T21:34:30.000Z
import logging class NullHandler(logging.Handler): def emit(self, record): pass log = logging.getLogger('WebPage') log.setLevel(logging.ERROR) log.addHandler(NullHandler()) import os import urllib import web from viz import Viz, \ VizBanner TEMPLATE_PATH = os.path.join('temp...
38.017493
108
0.486887
3c6ee1de0fc4651c5a4a56fab3106ac42dd99391
7,467
py
Python
core/utils.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
5
2016-09-12T12:52:45.000Z
2020-03-24T14:43:13.000Z
core/utils.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
435
2016-10-18T12:51:39.000Z
2021-06-09T17:22:08.000Z
core/utils.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
2
2016-12-06T10:37:21.000Z
2017-02-22T17:27:43.000Z
from functools import lru_cache import boto3 import itertools from collections import defaultdict from operator import itemgetter from typing import List, MutableMapping from django.conf import settings from rest_framework.fields import ( BooleanField, CharField, ChoiceField, DateField, DecimalField, EmailField, ...
32.04721
93
0.673229
93c263901e353879fbc21b83c93ffe91df26ff55
1,071
py
Python
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
templates/database/redis/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def install(job): service = job.service prefab = service.executor.prefab prefab.db.redis.install() prefab.db.redis.start( name=service.name, ip=service.model.data.host if service.model.data.host != '' else None, port=service.model.data.port, unixsocket=service.model.data...
32.454545
98
0.678805
8849d08969a60fff74a267de881e4271829b479b
975
py
Python
magpie/polar/radial.py
knaidoo29/magpie
efab3c2666aab2c928ca12a631758bc1b43c149c
[ "MIT" ]
null
null
null
magpie/polar/radial.py
knaidoo29/magpie
efab3c2666aab2c928ca12a631758bc1b43c149c
[ "MIT" ]
null
null
null
magpie/polar/radial.py
knaidoo29/magpie
efab3c2666aab2c928ca12a631758bc1b43c149c
[ "MIT" ]
null
null
null
import numpy as np def cumulative_radial(redges, f, sigma=None): """Returns the cumulative radial profile and errors if errors are given. Parameters ---------- redges : array Edges of the radial bins. f : array Radial profile. sigma : array, optional Radial errors. ...
27.083333
76
0.620513
022b58fcc72ada5befe8cf9f8514fa8c52ca86af
198
py
Python
__main__.py
macph/easement-curve
e1657682db3bc5b8d59a1fb06816732b784d8314
[ "MIT" ]
1
2019-05-31T03:24:40.000Z
2019-05-31T03:24:40.000Z
__main__.py
macph/easement-curve
e1657682db3bc5b8d59a1fb06816732b784d8314
[ "MIT" ]
null
null
null
__main__.py
macph/easement-curve
e1657682db3bc5b8d59a1fb06816732b784d8314
[ "MIT" ]
null
null
null
# MIT License, copyright Ewan Macpherson, 2016; see LICENCE in root directory # Main script for package. import ec.tk def main(argv=None): ec.tk.main() if __name__ == '__main__': main()
16.5
77
0.691919
fe5286ba813dafe65c9a1327c40063bf91d92c1d
4,331
py
Python
homeassistant/components/lock/__init__.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/lock/__init__.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/lock/__init__.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Component to interface with locks that can be controlled remotely.""" from datetime import timedelta import functools as ft import logging import voluptuous as vol from homeassistant.loader import bind_hass from homeassistant.helpers.entity_component import EntityComponent from homeassistant.helpers.entity import ...
27.762821
78
0.684369
1b76632e6550e2dcf9f235692734d3c37f41ec4b
820
py
Python
backend/blog/model/base.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/model/base.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/model/base.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
#!/usr/bin/evn python3 # coding=utf-8 from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.orm.query import Query from util.config import Config __CONF = Config() def all_data(self): """ # 猴子补丁,增加Query对象all_data ...
21.025641
64
0.721951
ba7807ed700a19a55fc0d6e6c1306790912363b1
2,324
py
Python
setup.py
vgiralt/djangosaml2
6571a03a139d6806da7d65201902499eeddffde9
[ "Apache-2.0" ]
null
null
null
setup.py
vgiralt/djangosaml2
6571a03a139d6806da7d65201902499eeddffde9
[ "Apache-2.0" ]
null
null
null
setup.py
vgiralt/djangosaml2
6571a03a139d6806da7d65201902499eeddffde9
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011-2012 Yaco Sistemas <lgs@yaco.es> # # 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 applicab...
34.686567
97
0.652754
c96ef2a72953f0a9467a023231b0382d4332c67b
263
py
Python
tests/base.py
satchkat/warm-transfer-flask
0fee723f11f17cd816417c4e51e4aec08d1263cb
[ "MIT" ]
3
2016-04-28T21:54:22.000Z
2019-02-04T05:02:47.000Z
tests/base.py
satchkat/warm-transfer-flask
0fee723f11f17cd816417c4e51e4aec08d1263cb
[ "MIT" ]
202
2016-05-03T18:20:07.000Z
2022-03-31T06:28:13.000Z
tests/base.py
satchkat/warm-transfer-flask
0fee723f11f17cd816417c4e51e4aec08d1263cb
[ "MIT" ]
6
2016-04-28T21:54:27.000Z
2022-03-11T20:12:11.000Z
from unittest import TestCase from warm_transfer_flask import app, db class BaseTestCase(TestCase): def setUp(self): self.client = app.test_client() db.create_all() def tearDown(self): db.session.remove() db.drop_all()
18.785714
39
0.657795
806e762a7f4feef020f2cbcda59168b42de7382d
997
py
Python
defs.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
defs.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
defs.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
# coding=utf-8 __author__ = "Dmitry Zhiltsov" __copyright__ = "Copyright 2015, Dmitry Zhiltsov" from enum import Enum, unique from strictdict import StrictDict from strictdict import fields as f from strictdict.api import optlist, opt supported_commands = {'JOIN': '_join_room', 'LEFT': '_leave_room', 'LOGIN': '_logi...
22.659091
102
0.72317
71bd85b2ec7b7b5f34af914c2668e942334dd3db
5,432
py
Python
test/functional/rpc_mn_basic.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
test/functional/rpc_mn_basic.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
test/functional/rpc_mn_basic.py
aentan/ain
1d6db33159de1c8c7930d29a0ab0902f42b728c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Copyright (c) DeFi Foundation # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the masternodes RPC. - verify basic MN creation and resign """ f...
35.736842
142
0.621686
56fbd6858779ec7a95e2649a991ee5e03a8337e6
34,797
py
Python
broadlink/__init__.py
jfacevedo80/python-broadlink
2bed9fbdcbee19229ed5bec20851ac21713c1691
[ "MIT" ]
1
2018-06-06T00:34:08.000Z
2018-06-06T00:34:08.000Z
broadlink/__init__.py
jfacevedo80/python-broadlink
2bed9fbdcbee19229ed5bec20851ac21713c1691
[ "MIT" ]
null
null
null
broadlink/__init__.py
jfacevedo80/python-broadlink
2bed9fbdcbee19229ed5bec20851ac21713c1691
[ "MIT" ]
null
null
null
#!/usr/bin/python from datetime import datetime try: from Crypto.Cipher import AES except ImportError as e: import pyaes import time import random import socket import sys import threading import codecs def gendevice(devtype, host, mac): devices = { sp1: [0], sp2: [ 0x2711, ...
35.113017
162
0.548179
ad51165eb42d56b612bf7bfb91631d9e3f410837
70,275
py
Python
clarifai_grpc/grpc/api/status/status_code_pb2.py
olga-clarifai/clarifai-python-grpc
c1d45ea965f781de5ccf682b142049c7628d0480
[ "Apache-2.0" ]
null
null
null
clarifai_grpc/grpc/api/status/status_code_pb2.py
olga-clarifai/clarifai-python-grpc
c1d45ea965f781de5ccf682b142049c7628d0480
[ "Apache-2.0" ]
null
null
null
clarifai_grpc/grpc/api/status/status_code_pb2.py
olga-clarifai/clarifai-python-grpc
c1d45ea965f781de5ccf682b142049c7628d0480
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/clarifai/api/status/status_code.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
46.508934
16,348
0.761395
56aba217a3bafda6c785589e697410e21f1d8096
35,395
py
Python
electrum/util.py
exofoundation/EXOS-Electrum
89e00bc4a1c5f5cb48f9aa5ef77dd1a9bcad9da5
[ "MIT" ]
5
2019-05-15T16:11:21.000Z
2021-02-20T14:12:20.000Z
electrum/util.py
exofoundation/EXOS-Electrum
89e00bc4a1c5f5cb48f9aa5ef77dd1a9bcad9da5
[ "MIT" ]
38
2019-04-29T21:15:22.000Z
2021-12-04T18:36:28.000Z
electrum/util.py
exofoundation/EXOS-Electrum
89e00bc4a1c5f5cb48f9aa5ef77dd1a9bcad9da5
[ "MIT" ]
5
2019-04-25T17:35:49.000Z
2021-08-12T19:50:41.000Z
# Electrum - lightweight Bitcoin client # Copyright (C) 2011 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
31.130167
116
0.627942
2ebbd40b43347112ed0f71e67a530f2e3667aaaa
5,375
py
Python
meet_connect.py
kanishk-mahor/meetConnect
952d6cc1ab4478a7afa8b4c6e4383b2608d6f918
[ "MIT" ]
null
null
null
meet_connect.py
kanishk-mahor/meetConnect
952d6cc1ab4478a7afa8b4c6e4383b2608d6f918
[ "MIT" ]
null
null
null
meet_connect.py
kanishk-mahor/meetConnect
952d6cc1ab4478a7afa8b4c6e4383b2608d6f918
[ "MIT" ]
null
null
null
# ====================================================================================================================== # Copyright (C) 2021 Kanishk Mahor - All rights reserved # ======================================================================================== # Notice: All Rights Reserved. # R...
35.361842
120
0.546233
dee5d07e33ad1532159bba22f133ba65e292ade6
46,052
py
Python
3DLSCPTR/db/apollosim.py
liuruijin17/3DLSCPTR
271ec46187f1674049c88457dbdd38fc299c723a
[ "BSD-3-Clause" ]
13
2021-04-12T11:13:18.000Z
2022-03-30T01:53:08.000Z
3DLSCPTR/db/apollosim.py
liuruijin17/3DLSCP
271ec46187f1674049c88457dbdd38fc299c723a
[ "BSD-3-Clause" ]
1
2021-12-10T08:49:49.000Z
2021-12-11T09:04:37.000Z
3DLSCPTR/db/apollosim.py
liuruijin17/3DLSCP
271ec46187f1674049c88457dbdd38fc299c723a
[ "BSD-3-Clause" ]
4
2021-04-14T14:31:47.000Z
2022-02-16T05:30:09.000Z
import sys import json import os import numpy as np import pickle import cv2 from PIL import Image, ImageOps import matplotlib.pyplot as plt import matplotlib matplotlib.use('TkAgg') from mpl_toolkits.mplot3d import Axes3D from tabulate import tabulate from torchvision.transforms import ToTensor import torchvision.tran...
44.797665
154
0.554742
a563a1bf3254f5d17e2f7617707b1760e76b6a5c
2,426
py
Python
tests/h/models/token_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
1
2018-03-09T02:15:16.000Z
2018-03-09T02:15:16.000Z
tests/h/models/token_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
16
2018-03-14T21:23:46.000Z
2019-04-29T18:55:28.000Z
tests/h/models/token_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
1
2021-03-12T09:45:04.000Z
2021-03-12T09:45:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import pytest from h.models import Token @pytest.mark.usefixtures('security') class TestToken(object): def test_ttl_is_none_if_token_has_no_expires(self): assert Token().ttl is None def test_ttl_when_token_does_expire...
30.708861
88
0.691261
d207b34e5fd1def9ef38630375e1d3d31a433c2e
3,809
py
Python
aperturedb/VideoLoader.py
aperture-data/aperturedb-python
186ae09a474df8e2d90ecdc7ba81e81879cef3ea
[ "Apache-2.0" ]
1
2022-01-12T17:46:20.000Z
2022-01-12T17:46:20.000Z
aperturedb/VideoLoader.py
aperture-data/aperturedb-python
186ae09a474df8e2d90ecdc7ba81e81879cef3ea
[ "Apache-2.0" ]
11
2021-07-14T16:54:05.000Z
2022-03-30T14:34:34.000Z
aperturedb/VideoLoader.py
aperture-data/aperturedb-python
186ae09a474df8e2d90ecdc7ba81e81879cef3ea
[ "Apache-2.0" ]
null
null
null
import math import time from threading import Thread import numpy as np import cv2 from aperturedb import Status from aperturedb import ParallelLoader from aperturedb import CSVParser HEADER_PATH = "filename" PROPERTIES = "properties" CONSTRAINTS = "constraints" class VideoGeneratorCSV(CSVParser.CSVParser): '...
27.014184
109
0.568916
3241cd1971c92649e5ef2bd7a1b441ce7ca81947
81
py
Python
day01/t01/apps.py
lin8979/newrep01
d0d7e157d522c2e83d1976a35d6a815c9e7e4257
[ "Apache-2.0" ]
null
null
null
day01/t01/apps.py
lin8979/newrep01
d0d7e157d522c2e83d1976a35d6a815c9e7e4257
[ "Apache-2.0" ]
null
null
null
day01/t01/apps.py
lin8979/newrep01
d0d7e157d522c2e83d1976a35d6a815c9e7e4257
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class T01Config(AppConfig): name = 't01'
13.5
33
0.728395
88ab855574de3a169c332b1b42f6309b0e31bacd
16,680
py
Python
ZConfig/tests/test_loader.py
derFreitag/ZConfig
276cae67e983f7c92ccfaf337327b950061b223e
[ "ZPL-2.1" ]
7
2016-06-20T20:23:14.000Z
2021-04-09T03:28:48.000Z
ZConfig/tests/test_loader.py
derFreitag/ZConfig
276cae67e983f7c92ccfaf337327b950061b223e
[ "ZPL-2.1" ]
64
2015-07-15T23:03:18.000Z
2021-09-09T07:54:16.000Z
ZConfig/tests/test_loader.py
derFreitag/ZConfig
276cae67e983f7c92ccfaf337327b950061b223e
[ "ZPL-2.1" ]
8
2015-04-03T06:42:24.000Z
2021-09-15T04:40:25.000Z
############################################################################## # # Copyright (c) 2002, 2003, 2018 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution...
39.15493
79
0.553477
2ebe9d67c0136daffe640a54236cbb8804a1cace
123
py
Python
pdb_use.py
edgells/python-commons
38c0aa0ec10304a4147ea231c92c9e34da462052
[ "MIT" ]
null
null
null
pdb_use.py
edgells/python-commons
38c0aa0ec10304a4147ea231c92c9e34da462052
[ "MIT" ]
null
null
null
pdb_use.py
edgells/python-commons
38c0aa0ec10304a4147ea231c92c9e34da462052
[ "MIT" ]
null
null
null
import pdb def make_pdb(): pdb.set_trace() print("I Don`t have time") if __name__ == '__main__': make_pdb()
12.3
30
0.617886
1f8073ceccf44ae06d2db0db92e48a6175987bd5
3,247
py
Python
siuba/tests/test_sql_verbs.py
tmastny/siuba
7a234bc6d03b7ad3ba6054c8899fd27ccb7f05aa
[ "MIT" ]
831
2019-07-25T12:41:18.000Z
2022-03-31T14:47:27.000Z
siuba/tests/test_sql_verbs.py
tmastny/siuba
7a234bc6d03b7ad3ba6054c8899fd27ccb7f05aa
[ "MIT" ]
295
2019-04-23T17:32:16.000Z
2022-03-29T23:19:44.000Z
siuba/tests/test_sql_verbs.py
tmastny/siuba
7a234bc6d03b7ad3ba6054c8899fd27ccb7f05aa
[ "MIT" ]
42
2019-04-23T17:17:42.000Z
2022-03-31T14:36:07.000Z
from siuba.sql import group_by, mutate, LazyTbl, collect from siuba.siu import _ from siuba.sql.translate import funcs from sqlalchemy import sql from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey from sqlalchemy import create_engine from pandas.testing import assert_frame_equal import pytes...
28.991071
80
0.603326
b85c501f39565191047830c073cff51e4f12c68c
2,405
py
Python
cohesity_management_sdk/models/one_drive_info.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/one_drive_info.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/one_drive_info.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.one_drive_item class OneDriveInfo(object): """Implementation of the 'OneDriveInfo' model. Specifies OneDrive details with the items which need to be restored. Attributes: drive_id (string): Specifies th...
32.945205
125
0.642827
c29c12c49ea95e3601cdf3c72fe91ceba0bf13a1
10,896
py
Python
loss/CurricularNCE_loss.py
Feezhen/Contrastive-learning
9f7fc760c24ede2ffc485009ed787652551d0266
[ "MIT" ]
1
2021-12-27T08:39:05.000Z
2021-12-27T08:39:05.000Z
loss/CurricularNCE_loss.py
Feezhen/Contrastive-learning
9f7fc760c24ede2ffc485009ed787652551d0266
[ "MIT" ]
null
null
null
loss/CurricularNCE_loss.py
Feezhen/Contrastive-learning
9f7fc760c24ede2ffc485009ed787652551d0266
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np import os import math import sys sys.path.append('../') import params class CurricularNCE_loss(nn.Module): ''' NCE Loss with Curricular ''' def __init__(self, gamma, keep_weight, T=0.07, m = 0.5, mlp=False): """ ...
41.272727
153
0.596366
95dfdbd40ffee46635f691e95e8d83c02de23b8e
14,225
py
Python
ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_user.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
4
2017-06-03T20:46:07.000Z
2017-12-19T02:15:00.000Z
ansible-container/k8s-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_user.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
1
2017-06-03T20:32:37.000Z
2017-06-03T20:32:37.000Z
ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/openshift_v1_user.py
LeHack/Docker-network-research
62a57a6d723d8701a6d045a07a5abd2bd844a409
[ "Beerware" ]
null
null
null
#!/usr/bin/env python from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException DOCUMENTATION = ''' module: openshift_v1_user short_description: OpenShift User description: - Manage the lifecycle of a user object. Supports check mode, and attempts to to be idempotent. versi...
42.462687
100
0.665308
542a8ccfc0ccbf8bcb884f32af2a58046a62f54e
2,510
py
Python
ThunkLibs/Generators/libXfixes.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
ThunkLibs/Generators/libXfixes.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
ThunkLibs/Generators/libXfixes.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from ThunkHelpers import * lib("libXfixes") fn("const char* XFixesGetCursorName(Display*, Cursor, Atom*)") fn("int XFixesQueryExtension(Display*, int*, int*)") fn("int XFixesQueryVersion(Display*, int*, int*)") fn("int XFixesVersion()") fn("PointerBarrier XFixesCreatePointerBarrier(Display*, Window...
58.372093
125
0.786056
a82781a981feb2ab404af24debbc2711b15a0355
7,713
py
Python
gui/stdio.py
stashpayio/electrum-stash
a04e1fde408196e547cf80f8ce9d9391133bd865
[ "MIT" ]
null
null
null
gui/stdio.py
stashpayio/electrum-stash
a04e1fde408196e547cf80f8ce9d9391133bd865
[ "MIT" ]
null
null
null
gui/stdio.py
stashpayio/electrum-stash
a04e1fde408196e547cf80f8ce9d9391133bd865
[ "MIT" ]
null
null
null
from decimal import Decimal _ = lambda x:x #from i18n import _ from electrum_dash import WalletStorage, Wallet from electrum_dash.util import format_satoshis, set_verbosity from electrum_dash.bitcoin import is_valid, COIN, TYPE_ADDRESS from electrum_dash.network import filter_protocol import sys, getpass, datetime # m...
33.103004
147
0.543757
d41dc2e596e6c6de44b2706bf4178151afc1d314
3,356
py
Python
stevedore/tests/test_named.py
jaraco/stevedore
8846a3f24a65df82f48d724b3b49b8ac8f135dcd
[ "Apache-2.0" ]
133
2015-01-29T20:10:51.000Z
2022-03-11T18:29:01.000Z
stevedore/tests/test_named.py
jaraco/stevedore
8846a3f24a65df82f48d724b3b49b8ac8f135dcd
[ "Apache-2.0" ]
4
2016-01-05T20:56:25.000Z
2021-08-30T06:16:31.000Z
virtual/lib/python3.6/site-packages/stevedore/tests/test_named.py
Mercy-Njoroge/blog
404336fb0fc8d172ddde8b744042cb3f37d89c65
[ "MIT" ]
39
2015-04-29T11:05:00.000Z
2021-12-02T16:55:51.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed u...
35.702128
76
0.585221
63b789dc7a8daa83faf04efd18070a3d7726e98a
2,209
py
Python
unitypack/environment.py
garysheffield19/123
f7aff28ec5cc75383a9ffc20390a6f3afa6197f8
[ "MIT" ]
null
null
null
unitypack/environment.py
garysheffield19/123
f7aff28ec5cc75383a9ffc20390a6f3afa6197f8
[ "MIT" ]
null
null
null
unitypack/environment.py
garysheffield19/123
f7aff28ec5cc75383a9ffc20390a6f3afa6197f8
[ "MIT" ]
1
2019-09-04T06:32:02.000Z
2019-09-04T06:32:02.000Z
import os from urllib.parse import urlparse from .asset import Asset from .assetbundle import AssetBundle class UnityEnvironment: def __init__(self, base_path=""): self.bundles = {} self.assets = {} self.base_path = base_path def __repr__(self): return "%s(base_path=%r)" % (self.__class__.__name__, self.ba...
27.962025
79
0.67904
b351a96e183c27d48268200ac0b0edf131a3d8ff
3,094
py
Python
Finder/gitfinder.py
cyal1/GitTools
13b6f917cb9dec73019a04d6f866507018760de3
[ "MIT" ]
null
null
null
Finder/gitfinder.py
cyal1/GitTools
13b6f917cb9dec73019a04d6f866507018760de3
[ "MIT" ]
null
null
null
Finder/gitfinder.py
cyal1/GitTools
13b6f917cb9dec73019a04d6f866507018760de3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Finder is part of https://github.com/internetwache/GitTools Developed and maintained by @gehaxelt from @internetwache Use at your own risk. Usage might be illegal in certain circumstances. Only for educational purposes! ''' import argparse from functools import partial from multiprocessin...
29.466667
217
0.670976
88efc69abdd4fe2ac5a529ebb1706d46ff6aab7d
803
py
Python
zdemo/manage.py
chenkaifeng-Li/test2
9c246ac746f65c7aad0c365e7e3f157ee566cc4b
[ "MIT" ]
null
null
null
zdemo/manage.py
chenkaifeng-Li/test2
9c246ac746f65c7aad0c365e7e3f157ee566cc4b
[ "MIT" ]
null
null
null
zdemo/manage.py
chenkaifeng-Li/test2
9c246ac746f65c7aad0c365e7e3f157ee566cc4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zdemo.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.913043
77
0.641345
d1cba41f2744297c73cafc3f78fd7cc2ebb34aeb
1,280
py
Python
ssha512/__init__.py
michzimny/django-ssha512-hasher
7229f1643175cca60895f97780ecda472cb4c278
[ "MIT" ]
null
null
null
ssha512/__init__.py
michzimny/django-ssha512-hasher
7229f1643175cca60895f97780ecda472cb4c278
[ "MIT" ]
null
null
null
ssha512/__init__.py
michzimny/django-ssha512-hasher
7229f1643175cca60895f97780ecda472cb4c278
[ "MIT" ]
null
null
null
from django.utils.crypto import get_random_string from django.utils.translation import ugettext_noop as _ from django.contrib.auth.hashers import BasePasswordHasher import base64 import hashlib class SSHA512PasswordHasher(BasePasswordHasher): algorithm = "ssha512" def salt(self): return get_random_st...
33.684211
111
0.667969
41864424141f04b4657ea19325de2ebe78dcb330
2,401
py
Python
conf.py
NishithP2004/pslab-documentation
a1fff773b0f78fe59c3b5be6a6391d87c3a3ccda
[ "Apache-2.0" ]
null
null
null
conf.py
NishithP2004/pslab-documentation
a1fff773b0f78fe59c3b5be6a6391d87c3a3ccda
[ "Apache-2.0" ]
null
null
null
conf.py
NishithP2004/pslab-documentation
a1fff773b0f78fe59c3b5be6a6391d87c3a3ccda
[ "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...
32.445946
79
0.67222
cbff01f34c97b2895d5f23d11763955da14e813e
828
py
Python
Python/ques3.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
Python/ques3.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
Python/ques3.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
import math class Complex(object): def __init__(self, real, imag=0.0): self.real = real self.imag = imag def add(self, other): return Complex(self.real + other.real, self.imag + other.imag) def sub(self, other): return Complex(self.real - other.real, self.imag - other.imag) def mul(self, other): retur...
22.378378
106
0.676329
30f67b613988a53e4c7ffbb01d4d1658489a621c
3,040
py
Python
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/tests/test_get_supported_functions.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/tests/test_get_supported_functions.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/tests/test_get_supported_functions.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import json impor...
35.348837
77
0.543421
431687560731b473c575d44918197b4549723f83
16,012
py
Python
log_casp_act/model_796.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/model_796.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/model_796.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C...
84.273684
614
0.812266
2f1de9089e99ecc9383d05e98c8b1809316655ce
155
py
Python
cefiro_customizations/cefiro_customizations/doctype/bundle_transfer/test_bundle_transfer.py
saeedkola/cefiro_customizations
e7fcf92afaae37fb7d8abd49cdbd6328d18b9abb
[ "MIT" ]
null
null
null
cefiro_customizations/cefiro_customizations/doctype/bundle_transfer/test_bundle_transfer.py
saeedkola/cefiro_customizations
e7fcf92afaae37fb7d8abd49cdbd6328d18b9abb
[ "MIT" ]
null
null
null
cefiro_customizations/cefiro_customizations/doctype/bundle_transfer/test_bundle_transfer.py
saeedkola/cefiro_customizations
e7fcf92afaae37fb7d8abd49cdbd6328d18b9abb
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Element Labs and Contributors # See license.txt # import frappe import unittest class TestBundleTransfer(unittest.TestCase): pass
17.222222
51
0.787097
7ff8000e77b5f0de86830657f810d8b4c71e15f6
581
py
Python
pyleecan/Methods/Mesh/MeshMat/get_node.py
tobsen2code/pyleecan
5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Mesh/MeshMat/get_node.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Mesh/MeshMat/get_node.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- def get_node(self, indices=None): """Return a matrix of nodes coordinates. Parameters ---------- self : Mesh an Mesh object indices : list Indices of the targeted nodes. If None, return all. is_indice: bool Option to return the nodes indices (us...
20.75
63
0.597246
f1c6b2d97621ee5bb2c1041801e6c73bb58d6289
17,002
py
Python
Lib/test/test_zipapp.py
dignissimus/cpython
17357108732c731d6ed4f2bd123ee6ba1ff6891b
[ "0BSD" ]
null
null
null
Lib/test/test_zipapp.py
dignissimus/cpython
17357108732c731d6ed4f2bd123ee6ba1ff6891b
[ "0BSD" ]
2
2021-12-01T15:01:15.000Z
2022-02-24T06:16:48.000Z
Lib/test/test_zipapp.py
sthagen/python-cpython
dfd438dfb2a0e299cd6ab166f203dfe9740868ae
[ "0BSD" ]
null
null
null
"""Test harness for the zipapp module.""" import io import pathlib import stat import sys import tempfile import unittest import zipapp import zipfile from test.support import requires_zlib from test.support import os_helper from unittest.mock import patch class ZipAppTest(unittest.TestCase): """Test zipapp mod...
40.2891
100
0.617574
bd25f6f4b4b916dc3222f74041417db0b4ef15ea
754
py
Python
test_tokens.py
yeoedward/Robost-Fill
f8bbf7546732bc7e8412b53f0267e7c8b82e135e
[ "MIT" ]
16
2018-12-18T05:01:23.000Z
2022-02-23T17:14:55.000Z
test_tokens.py
yeoedward/Robost-Fill
f8bbf7546732bc7e8412b53f0267e7c8b82e135e
[ "MIT" ]
null
null
null
test_tokens.py
yeoedward/Robost-Fill
f8bbf7546732bc7e8412b53f0267e7c8b82e135e
[ "MIT" ]
6
2019-09-19T19:49:44.000Z
2021-07-06T13:01:04.000Z
from unittest import TestCase from sample import sample_program, sample_string from tokens import build_token_tables class TestTokens(TestCase): def test_total_num_tokens(self): token_tables = build_token_tables() expected_num_tokens = 1118 self.assertEqual(expected_num_tokens, len(token...
32.782609
79
0.732095
d37113b9dd37eaeca35d3cb367ea9c3f91a78a17
1,384
py
Python
extraPackages/matplotlib-3.0.3/examples/userdemo/colormap_normalizations_bounds.py
dolboBobo/python3_ios
877f8c2c5890f26292ddd14909bea62a04fe2889
[ "BSD-3-Clause" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
extraPackages/matplotlib-3.0.2/examples/userdemo/colormap_normalizations_bounds.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
9
2018-12-14T07:31:42.000Z
2020-12-09T20:29:28.000Z
extraPackages/matplotlib-3.0.2/examples/userdemo/colormap_normalizations_bounds.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
""" ============================== Colormap Normalizations Bounds ============================== Demonstration of using norm to map colormaps onto data in non-linear ways. """ import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors N = 100 X, Y = np.mgrid[-3:3:complex(0, N), -2:2:comple...
30.755556
74
0.634393
60320c83a4bbf7da4064d8d1005ba43c1020228f
2,324
py
Python
25_vendor_terms.py
dionisiotorres/import_scripts
14e12c6874e1277b4ad4cdbe46f6b454b43c2aec
[ "Unlicense" ]
null
null
null
25_vendor_terms.py
dionisiotorres/import_scripts
14e12c6874e1277b4ad4cdbe46f6b454b43c2aec
[ "Unlicense" ]
null
null
null
25_vendor_terms.py
dionisiotorres/import_scripts
14e12c6874e1277b4ad4cdbe46f6b454b43c2aec
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import csv from xmlrpc import client as xmlrpclib import multiprocessing as mp from scriptconfig import URL, DB, UID, PSW, WORKERS def update_vendor_terms(pid, data_pool, write_ids, error_ids): sock = xmlrpclib.ServerProxy(URL, allow_none=True) while data_pool: ...
29.417722
112
0.547762
ed387b57bc6b4918dab295fa4c8f4c2d1a021253
5,197
py
Python
src/config/ocio/Python/rv_ocio_setup.py
umediayvr/rvtools
7fbb986746e70cbec34d83b5a3b08659c3a462bb
[ "MIT" ]
2
2018-05-28T20:59:29.000Z
2020-06-26T19:16:45.000Z
src/config/ocio/Python/rv_ocio_setup.py
umediayvr/rvtools
7fbb986746e70cbec34d83b5a3b08659c3a462bb
[ "MIT" ]
null
null
null
src/config/ocio/Python/rv_ocio_setup.py
umediayvr/rvtools
7fbb986746e70cbec34d83b5a3b08659c3a462bb
[ "MIT" ]
2
2018-07-10T15:03:26.000Z
2020-12-09T08:59:04.000Z
import rv import os import PyOpenColorIO as OCIO from ingestor.ExpressionEvaluator import ExpressionEvaluator # Convenience functions to set the values in the specific nodes def setInt(node, prop, value): """Set an int property.""" propertyName = '{node}.{prop}'.format(node=node, prop=prop) rv.commands.set...
33.529032
110
0.622859
d230585d56e6bbb18e8b4c6a3a46a356a5fe720e
802
py
Python
polymorphism_and_abstraction/exercise/04_wild_farm/project/animals/birds.py
Galchov/python-oop
1bf7c51ac2c605bae11b08df7edd4341e20a1b39
[ "MIT" ]
null
null
null
polymorphism_and_abstraction/exercise/04_wild_farm/project/animals/birds.py
Galchov/python-oop
1bf7c51ac2c605bae11b08df7edd4341e20a1b39
[ "MIT" ]
null
null
null
polymorphism_and_abstraction/exercise/04_wild_farm/project/animals/birds.py
Galchov/python-oop
1bf7c51ac2c605bae11b08df7edd4341e20a1b39
[ "MIT" ]
null
null
null
from project.animals.animal import Bird class Owl(Bird): def __init__(self, name, weight, wing_size): super().__init__(name, weight, wing_size) def make_sound(self): return "Hoot Hoot" def feed(self, food): food_type = type(food).__name__ animal_type = type(self).__name__...
25.870968
61
0.609726
fcf5815868eb3669d4753c83febb5073ad144e43
3,640
py
Python
bitbox/script.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
bitbox/script.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
bitbox/script.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
class Script: def opcodes(): codes = { "OP_FALSE": 0, "OP_0": 0, "OP_PUSHDATA1": 76, "OP_PUSHDATA2": 77, "OP_PUSHDATA4": 78, "OP_1NEGATE": 79, "OP_RESERVED": 80, "OP_TRUE": 81, "OP_1": 81, ...
28.888889
42
0.392308
9ee97c332de00ad5c63db196075481889e5b4702
9,291
py
Python
python/surf/protocols/clink/_ClinkTop.py
lsst-camera-daq/surf
e43b926507c1670fd511bc23f6c61d261100fcb4
[ "BSD-3-Clause-LBNL" ]
134
2017-02-22T18:07:00.000Z
2022-03-21T16:12:23.000Z
python/surf/protocols/clink/_ClinkTop.py
lsst-camera-daq/surf
e43b926507c1670fd511bc23f6c61d261100fcb4
[ "BSD-3-Clause-LBNL" ]
251
2017-04-26T23:42:42.000Z
2022-03-03T18:48:43.000Z
python/surf/protocols/clink/_ClinkTop.py
lsst-camera-daq/surf
e43b926507c1670fd511bc23f6c61d261100fcb4
[ "BSD-3-Clause-LBNL" ]
38
2017-02-21T21:15:03.000Z
2022-02-06T00:22:37.000Z
#----------------------------------------------------------------------------- # Title : PyRogue CameraLink module #----------------------------------------------------------------------------- # Description: # PyRogue CameraLink module #-----------------------------------------------------------------------------...
31.818493
79
0.409644
e64724bb1a31695df56c164b73319ac234e1323a
2,121
py
Python
tigrillo/analysis/optim_analysis.py
gabs48/tigrillo
663f7407808bb8101edebec02fb0cd81c59ad2f1
[ "MIT" ]
5
2018-10-22T21:28:44.000Z
2020-09-03T07:01:36.000Z
tigrillo/analysis/optim_analysis.py
gabs48/tigrillo
663f7407808bb8101edebec02fb0cd81c59ad2f1
[ "MIT" ]
null
null
null
tigrillo/analysis/optim_analysis.py
gabs48/tigrillo
663f7407808bb8101edebec02fb0cd81c59ad2f1
[ "MIT" ]
1
2020-02-01T15:12:38.000Z
2020-02-01T15:12:38.000Z
#!/usr/bin/python3 """ This script opens a windows to analyze various properties of the optimization results """ import configparser from tigrillo.core.control import * from tigrillo.core.optim import * __author__ = "Gabriel Urbain" __copyright__ = "Copyright 2017, Human Brain Projet, SP10" __license__ = "MIT" ...
24.662791
85
0.60396
fbca7fd6418f9dac16902cffed18d2a7d336f351
211
py
Python
JPS_SHIP_CRAWLER/ship/spiders/config.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
21
2021-03-08T01:58:25.000Z
2022-03-09T15:46:16.000Z
JPS_SHIP_CRAWLER/ship/spiders/config.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
63
2021-05-04T15:05:30.000Z
2022-03-23T14:32:29.000Z
JPS_SHIP_CRAWLER/ship/spiders/config.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
15
2021-03-08T07:52:03.000Z
2022-03-29T04:46:20.000Z
station_list_url = 'http://www.aishub.net/stations?Station%5BSID%5D=&Station%5Bstatus%5D=0&Station%5Buptime%5D=&Station%5BCOUNTRY%5D=singapore&Station%5BLOCATION%5D=&Station%5BCOUNT%5D=&Station%5BDISTINCT%5D=';
105.5
210
0.805687
ab3039af86afe5670ccf9d95fbe57c39314c6616
10,698
py
Python
sdks/python/apache_beam/runners/dataflow/native_io/iobase.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/dataflow/native_io/iobase.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/dataflow/native_io/iobase.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
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 us...
32.320242
79
0.724434
a5bfbd61d94ed6526fbbe50a1f7b0dc9943c0c4a
2,452
py
Python
.history/Missions_to_Mars/scrape_mars_20200809054709.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200809054709.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200809054709.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
2
2020-11-02T08:12:16.000Z
2021-05-17T21:45:42.000Z
# Dependencies import numpy as np import pandas as pd from bs4 import BeautifulSoup as bs import requests from splinter import Browser import re # Initialize browser def init_browser(): executable_path = {"executable_path": "/usr/local/bin/chromedriver"} #executable_path = {'executable_path': 'chromedriver.e...
31.844156
96
0.64845
6ea1e9bc1dae59265c3bb727c6a5d8fbd4626270
1,075
py
Python
packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
3
2020-02-04T21:39:20.000Z
2020-11-17T19:07:07.000Z
packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
17
2019-11-21T14:11:29.000Z
2019-11-21T15:26:23.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="pointcloud.marker.border", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name...
31.617647
87
0.622326
1cb83d8492d49f024338a77abed5c29547304b8d
5,264
py
Python
playbooks/files/rax-maas/plugins/swift-dispersion.py
JCallicoat/rpc-maas
879bab6623339c99c288acf9191b445fe1ea1fa2
[ "Apache-2.0" ]
31
2015-01-03T10:30:56.000Z
2019-06-23T22:21:24.000Z
playbooks/files/rax-maas/plugins/swift-dispersion.py
JCallicoat/rpc-maas
879bab6623339c99c288acf9191b445fe1ea1fa2
[ "Apache-2.0" ]
457
2015-01-01T15:58:47.000Z
2021-06-10T12:04:11.000Z
playbooks/files/rax-maas/plugins/swift-dispersion.py
JCallicoat/rpc-maas
879bab6623339c99c288acf9191b445fe1ea1fa2
[ "Apache-2.0" ]
65
2015-03-02T02:39:59.000Z
2021-12-22T21:57:01.000Z
#!/usr/bin/env python3 # Copyright 2014, Rackspace US, 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 applicab...
37.333333
78
0.673822
e6929e7fdc2939d38fdb11c94e9a2998565e9a63
6,838
py
Python
mneext/resample.py
maosenGao/openmiir-rl-2016
d2e5744b1fa503a896994d8a70b3ca45d521db14
[ "BSD-3-Clause" ]
null
null
null
mneext/resample.py
maosenGao/openmiir-rl-2016
d2e5744b1fa503a896994d8a70b3ca45d521db14
[ "BSD-3-Clause" ]
null
null
null
mneext/resample.py
maosenGao/openmiir-rl-2016
d2e5744b1fa503a896994d8a70b3ca45d521db14
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'sstober' import logging log = logging.getLogger(__name__) from mne import pick_types import numpy as np import librosa import mne ## old interface from mne/filter.py: # def resample(self, sfreq, npad=100, window='boxcar', # stim_picks=None, n_jobs=1, verbose=None): def fast_resample_mne(ra...
39.988304
220
0.615531
2c88d567b72761a63c9f89ef87dca0c527f736f4
6,708
py
Python
tests/python/contrib/test_ethosn/infrastructure.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
2
2020-04-17T02:25:16.000Z
2020-11-25T11:39:43.000Z
tests/python/contrib/test_ethosn/infrastructure.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
tests/python/contrib/test_ethosn/infrastructure.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
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 u...
37.266667
99
0.654293
8c2d7028355b301571cf41d7edf76f95d5f01c48
3,728
py
Python
examples/scripts/create-model.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/create-model.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/create-model.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
# This script is intended to be a stripped back version of the # 'examples/notebooks/create-model.ipnb' so for more details please see # that notebook import pybamm import numpy as np import matplotlib.pyplot as plt # 1. Initialise model ------------------------------------------------------------------ model = pybam...
29.824
88
0.615075
086aecb9c81314f3f17fd7c0d05638929f70b88e
2,421
py
Python
hierarchy_pos.py
fvalle1/tree_plotter
b3a2f7ce89d5ab928d8a8e6627c5eb158559cf85
[ "WTFPL" ]
null
null
null
hierarchy_pos.py
fvalle1/tree_plotter
b3a2f7ce89d5ab928d8a8e6627c5eb158559cf85
[ "WTFPL" ]
null
null
null
hierarchy_pos.py
fvalle1/tree_plotter
b3a2f7ce89d5ab928d8a8e6627c5eb158559cf85
[ "WTFPL" ]
null
null
null
import networkx as nx import random def hierarchy_pos(G, root=None, width=1., vert_gap = 0.2, vert_loc = 0, xcenter = 0.5): ''' From Joel's answer at https://stackoverflow.com/a/29597209/2966723. Licensed under Creative Commons Attribution-Share Alike If the graph is a tree this will return the p...
35.602941
114
0.618753
0bc7dd4a3e6e6dc772dc5e9a3a8d2a78848bc70a
4,295
py
Python
quarty/src/quarty/server/__main__.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
3
2017-11-07T21:49:39.000Z
2019-08-08T20:59:02.000Z
quarty/src/quarty/server/__main__.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
1
2021-06-05T08:00:37.000Z
2021-06-05T08:00:37.000Z
quarty/src/quarty/server/__main__.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
2
2018-01-09T10:49:48.000Z
2019-11-27T09:18:17.000Z
import tempfile import logging import json from concurrent.futures import CancelledError import aiohttp import aiohttp.web from quarty.common import initialise_repo, install_requirements, evaluate_pipeline, execute_pipeline from quarty.utils import QuartyException, PipelineException logging.basicConfig(level=logging.I...
35.495868
108
0.623283
c645eabc6c887771d4c4e7c2ecfb05cf89f7da6a
6,113
py
Python
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from datetime import datetime from django.db.models import Q from django.utils.translation import ugettext as _ from rest_framework.exceptions import PermissionDenied from rest_framework.response import Response from rest_framework import status from rest_framework import viewset...
39.954248
121
0.640602
e14521d271f1a06b4f2f89e2656b097180745512
19,736
py
Python
frappe/translate.py
vCentre/vB062506-frappe
fa095e260b7993ad924ca771d23ba707a782c25b
[ "MIT" ]
null
null
null
frappe/translate.py
vCentre/vB062506-frappe
fa095e260b7993ad924ca771d23ba707a782c25b
[ "MIT" ]
null
null
null
frappe/translate.py
vCentre/vB062506-frappe
fa095e260b7993ad924ca771d23ba707a782c25b
[ "MIT" ]
1
2018-03-22T02:28:59.000Z
2018-03-22T02:28:59.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ frappe.translate ~~~~~~~~~~~~~~~~ Translation tools for frappe """ import frappe, os, re, codecs, json from frappe.utils.jinja import render_include from frappe.utils im...
33.337838
139
0.717825
d0ca2f215e9a7b41c18af1455ca67199fcb8bedf
1,777
py
Python
seleniumwire/thirdparty/mitmproxy/net/http/user_agents.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
24,939
2015-01-01T17:13:21.000Z
2022-03-31T17:50:04.000Z
seleniumwire/thirdparty/mitmproxy/net/http/user_agents.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
3,655
2015-01-02T12:31:43.000Z
2022-03-31T20:24:57.000Z
seleniumwire/thirdparty/mitmproxy/net/http/user_agents.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
3,712
2015-01-06T06:47:06.000Z
2022-03-31T10:33:27.000Z
""" A small collection of useful user-agent header strings. These should be kept reasonably current to reflect common usage. """ # pylint: line-too-long # A collection of (name, shortcut, string) tuples. UASTRINGS = [ ("android", "a", "Mozilla/5.0 (Linux; U; Android 4.1.1; en-gb; Nexus 7 Build/...
34.843137
158
0.597074
32c77b8124e1fdd117e3a8f678cc84f4a39cddf2
4,251
py
Python
dace/libraries/mpi/nodes/wait.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
dace/libraries/mpi/nodes/wait.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
dace/libraries/mpi/nodes/wait.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace.library import dace.properties import dace.sdfg.nodes from dace.transformation.transformation import ExpandTransformation from .. import environments from dace import dtypes @dace.library.expansion class ExpandWaitMPI(ExpandTrans...
29.317241
80
0.554928
316c8109fa8ed4190b84c8d097dc33afbbe6f22f
9,230
py
Python
python/model/vae.py
VAlex22/ND_VAE
38fecb46e51bbbe7a365e9a70eaa8dad629c7ef5
[ "BSD-3-Clause" ]
7
2018-07-16T03:52:38.000Z
2021-09-06T09:32:14.000Z
python/model/vae.py
VAlex22/ND_VAE
38fecb46e51bbbe7a365e9a70eaa8dad629c7ef5
[ "BSD-3-Clause" ]
null
null
null
python/model/vae.py
VAlex22/ND_VAE
38fecb46e51bbbe7a365e9a70eaa8dad629c7ef5
[ "BSD-3-Clause" ]
2
2020-06-03T12:56:15.000Z
2021-03-09T18:17:21.000Z
# ############### Variational Autoencoder #################### # This is an adapted implementation of vae for novelty detection from # https://github.com/Lasagne/Recipes/blob/master/examples/variational_autoencoder/variational_autoencoder.py import time import lasagne as nn import numpy as np import theano import the...
42.534562
113
0.59805
1682dde2d515a11c601f955324225a74e69edced
317
py
Python
individual_1.py
Alexander-fix/lab7-python3
ea448d7d04d4bc63c94bf89e684933663a3d6e3a
[ "MIT" ]
null
null
null
individual_1.py
Alexander-fix/lab7-python3
ea448d7d04d4bc63c94bf89e684933663a3d6e3a
[ "MIT" ]
null
null
null
individual_1.py
Alexander-fix/lab7-python3
ea448d7d04d4bc63c94bf89e684933663a3d6e3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': with open('text.txt', 'r') as f: text = f.read() # Разбить текст на слова. words = text.split(" ") for i in range(1, len(words), 2): words[i], words[i - 1] = words[i - 1], words[i] print(' '.join(words))
22.642857
55
0.523659
149001c7af5e0b37eeff1cd4f70143b9dffd9397
5,437
py
Python
meiduo_mall/meiduo_mall/apps/orders/serializers.py
dienoe/django_demo
bd8201fcc663533123efba9b1b4eee823a288bab
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/serializers.py
dienoe/django_demo
bd8201fcc663533123efba9b1b4eee823a288bab
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/serializers.py
dienoe/django_demo
bd8201fcc663533123efba9b1b4eee823a288bab
[ "MIT" ]
null
null
null
from django.db import transaction from django_redis import get_redis_connection from rest_framework import serializers from goods.models import SKU from orders.models import OrderInfo, OrderGoods from django.utils import timezone from decimal import Decimal import logging logger=logging.getLogger('django') class CartS...
33.561728
121
0.506529
742f9020fa3fe1c925479cbc30e19635e5098b17
2,689
py
Python
bindings/python/ensmallen/datasets/kgobo/mco.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/kgobo/mco.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/kgobo/mco.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph MCO. The graph is automatically retrieved from the KGOBO repository. References --------------------- Please cite the following if you use the data: ```bib @misc{kgobo, title = "KG-OBO", year = "2021", author = "{Reese,...
27.721649
73
0.628115
afb2ef78e71d424e0e021ea27b52afe6bbdec690
7,707
py
Python
venv/lib/python3.7/site-packages/datalad/plugin/export_archive.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/datalad/plugin/export_archive.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/datalad/plugin/export_archive.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
42.816667
90
0.571429
12461a20c49e49a72b37ce8985e3c44e15760a49
1,104
py
Python
data.py
Qlanowski/rangle
53299209e5e1fb9ce1c9eed4cf44ac34684dba02
[ "MIT" ]
null
null
null
data.py
Qlanowski/rangle
53299209e5e1fb9ce1c9eed4cf44ac34684dba02
[ "MIT" ]
null
null
null
data.py
Qlanowski/rangle
53299209e5e1fb9ce1c9eed4cf44ac34684dba02
[ "MIT" ]
null
null
null
# %% # Drawing points on images import json import cv2 # ann_path = "ann/val_image.json" # img_dir ="val_img" ann_path = "ann/train_image.json" img_dir ="train_img" #%% with open(ann_path) as json_val_ann: images = json.load(json_val_ann) def id_to_image(id): return str(id).zfill(12) + ".jpg" for filename in ...
30.666667
92
0.556159
93e98194a420a0d86df51defec5d637580d7d983
9,940
py
Python
django/conf/locale/__init__.py
kix/django
5262a288df07daa050a0e17669c3f103f47a8640
[ "BSD-3-Clause" ]
3
2015-10-14T09:13:48.000Z
2021-01-01T06:31:25.000Z
django/conf/locale/__init__.py
kix/django
5262a288df07daa050a0e17669c3f103f47a8640
[ "BSD-3-Clause" ]
1
2016-02-19T00:22:18.000Z
2016-02-19T00:22:18.000Z
django/conf/locale/__init__.py
kix/django
5262a288df07daa050a0e17669c3f103f47a8640
[ "BSD-3-Clause" ]
1
2015-10-14T09:13:48.000Z
2015-10-14T09:13:48.000Z
from __future__ import unicode_literals LANG_INFO = { 'ar': { 'bidi': True, 'code': 'ar', 'name': 'Arabic', 'name_local': '\u0627\u0644\u0639\u0631\u0628\u064a\u0651\u0629', }, 'az': { 'bidi': True, 'code': 'az', 'name': 'Azerbaijani', 'name_l...
22.745995
85
0.407143
028d10a7e14884573ed681964defc25a2dcdf1d3
8,028
py
Python
maskrcnn_benchmark/config/paths_catalog.py
lzrobots/dgmn
515476b5c6a07dcc3b7a4d2243c541377624bb33
[ "MIT" ]
54
2020-06-14T15:45:01.000Z
2022-03-26T07:25:46.000Z
maskrcnn_benchmark/config/paths_catalog.py
lzrobots/dgmn
515476b5c6a07dcc3b7a4d2243c541377624bb33
[ "MIT" ]
3
2020-06-16T09:13:13.000Z
2021-05-10T03:26:30.000Z
maskrcnn_benchmark/config/paths_catalog.py
lzrobots/dgmn
515476b5c6a07dcc3b7a4d2243c541377624bb33
[ "MIT" ]
10
2020-07-02T14:22:23.000Z
2022-03-23T02:13:41.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """Centralized catalog of paths.""" import os class DatasetCatalog(object): DATA_DIR = "datasets" DATASETS = { "coco_2017_train": { "img_dir": "coco/train2017", "ann_file": "coco/annotations/instances_trai...
40.341709
121
0.603886
2e8dca3fecc706ec031acbddef451f0e7ff24c87
505
py
Python
RegEx/re-search.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
3
2022-03-28T09:10:08.000Z
2022-03-29T10:47:56.000Z
RegEx/re-search.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
1
2022-03-27T11:52:58.000Z
2022-03-27T11:52:58.000Z
RegEx/re-search.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
null
null
null
# re.search() = It looks throughout the entire string and returns the first match import re text = "This is for python3 and there are two mahor vers python2 and python3 in future python4" my_pat = r'\bpython\d?\b' match_ob = re.search(my_pat , text) if match_ob : print(f"Match from your pattern : {match_ob.group()...
31.5625
95
0.70297