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
c7567d0240960680c6649e4c7e58dd953f81f1c2
1,654
py
Python
user_feedback/migrations/0001_initial.py
SALTISES4/UserFeedback
0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57
[ "BSD-3-Clause" ]
null
null
null
user_feedback/migrations/0001_initial.py
SALTISES4/UserFeedback
0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57
[ "BSD-3-Clause" ]
null
null
null
user_feedback/migrations/0001_initial.py
SALTISES4/UserFeedback
0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.16 on 2020-09-12 22:38 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)] operations = [ ...
31.807692
84
0.426239
0267efbb652e6eff961e2ccab034b36c9c924978
1,462
py
Python
djangoBlog/apps/blog/migrations/0002_auto_20200510_1735.py
blackmonkey121/blog
938f104d3360c5f7562a2fd5a7d2f2e77c4695c0
[ "BSD-3-Clause" ]
4
2019-07-20T02:04:11.000Z
2020-05-02T06:15:22.000Z
djangoBlog/apps/blog/migrations/0002_auto_20200510_1735.py
blackmonkey121/blog
938f104d3360c5f7562a2fd5a7d2f2e77c4695c0
[ "BSD-3-Clause" ]
8
2020-05-03T09:01:14.000Z
2022-01-13T02:13:14.000Z
djangoBlog/apps/blog/migrations/0002_auto_20200510_1735.py
blackmonkey121/blog
938f104d3360c5f7562a2fd5a7d2f2e77c4695c0
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.8 on 2020-05-10 09:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('blog', '0001_initial'), migrations.swappable_dependency(setting...
33.227273
132
0.623803
e3506b9ac65c6a95b27405e647361d8b995f046c
450
py
Python
pytest_reana/version.py
Sinclert/pytest-reana
d35101266ccb9fb0a31ebbd3e96bdb0acadea4a7
[ "MIT" ]
null
null
null
pytest_reana/version.py
Sinclert/pytest-reana
d35101266ccb9fb0a31ebbd3e96bdb0acadea4a7
[ "MIT" ]
null
null
null
pytest_reana/version.py
Sinclert/pytest-reana
d35101266ccb9fb0a31ebbd3e96bdb0acadea4a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2018, 2019, 2020, 2021 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for pytest-REANA. This file is imported by ``pytest_...
25
72
0.72
2a707b1c7db33291506ee7b26fc466fef54d5be9
9,082
py
Python
salt/modules/extfs.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/extfs.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
salt/modules/extfs.py
aletourneau/salt
d7013a2f64eb4b79592220d76274bc5dde609e08
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for managing ext2/3/4 file systems ''' from __future__ import absolute_import # Import python libs import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) def __virtual__(): ''' Only work on POSIX-like systems ''' if salt.utils.is_win...
32.435714
85
0.519049
0079f011f7336f285c0e3f52ad84b3e0d7b29037
1,967
py
Python
lesson-8/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-8/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-8/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
# Deploying Clustering #### Boilerplate ################################################################# import pickle import numpy import matplotlib.pyplot as plt import sys sys.path.append("../tools/") from feature_format import featureFormat, targetFeatureSplit def Draw(pred, features, poi, mark_poi=False, name=...
33.338983
112
0.629385
b9dbf826fa3663cc7391963c03cce61b71b6ff22
26,479
py
Python
env/lib/python3.8/site-packages/celery/utils/collections.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
null
null
null
env/lib/python3.8/site-packages/celery/utils/collections.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
null
null
null
env/lib/python3.8/site-packages/celery/utils/collections.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
null
null
null
"""Custom maps, sets, sequences, and other data structures.""" import sys import time from collections import OrderedDict as _OrderedDict from collections import deque from collections.abc import (Callable, Mapping, MutableMapping, MutableSet, Sequence) from heapq import heapify, heappop, h...
29.355876
78
0.543034
9f2697a9f9635a94f72711b059fb047fbd0e31e5
13,965
py
Python
pytorch_lightning/callbacks/finetuning.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-08-05T01:45:26.000Z
2021-08-05T01:45:26.000Z
pytorch_lightning/callbacks/finetuning.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-03-01T17:32:12.000Z
2021-03-01T17:32:12.000Z
pytorch_lightning/callbacks/finetuning.py
prajakta0111/pytorch-lightning
3df02b880a6d145ff0aca24ea429c12c0d8f1181
[ "Apache-2.0" ]
1
2021-02-16T00:47:46.000Z
2021-02-16T00:47:46.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...
38.155738
119
0.64676
2dfe315c5d82723ce4996170ee547b761909f737
342
py
Python
LIVRO_FLASK/model/Category.py
marceloprni/FLASK_A_Z
bc85819167c1e7f3d1f4f41d0e50d8cbf5c1b4af
[ "MIT" ]
null
null
null
LIVRO_FLASK/model/Category.py
marceloprni/FLASK_A_Z
bc85819167c1e7f3d1f4f41d0e50d8cbf5c1b4af
[ "MIT" ]
null
null
null
LIVRO_FLASK/model/Category.py
marceloprni/FLASK_A_Z
bc85819167c1e7f3d1f4f41d0e50d8cbf5c1b4af
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from config import app_config, app_active config = app_config[app_active] db = SQLAlchemy(config.APP) class Category(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True, nullable=False) description = db.Column(db.Tex...
26.307692
64
0.748538
73ed1c00261ef469147298dfc8130b56df8ae2c4
1,090
py
Python
experiment_process.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
experiment_process.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
experiment_process.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
""" experiment_process.py contains some post-processing functionality. Not used anymore. """ import csv import os import numpy as np import configs as cfg if not os.path.exists(cfg.reporting_dir): os.makedirs(cfg.reporting_dir) # Collisions results = [0 for i in range(cfg.seconds)] for filename in os.listdir(cf...
32.058824
83
0.641284
eaebc4ce4aef34cb3be9fcf38d4c692a46788494
8,786
py
Python
src/briefcase/platforms/linux/appimage.py
chuckyQ/briefcase
06e84e7b1c3af016c828a5a640d277809de6644b
[ "BSD-3-Clause" ]
3
2020-10-20T00:59:22.000Z
2021-02-22T09:22:00.000Z
src/briefcase/platforms/linux/appimage.py
CuPidev/briefcase
35619cbe4b512c8521ad3733341e6bc3422efb58
[ "BSD-3-Clause" ]
null
null
null
src/briefcase/platforms/linux/appimage.py
CuPidev/briefcase
35619cbe4b512c8521ad3733341e6bc3422efb58
[ "BSD-3-Clause" ]
1
2021-03-26T11:52:02.000Z
2021-03-26T11:52:02.000Z
import subprocess from contextlib import contextmanager from briefcase.commands import ( BuildCommand, CreateCommand, PackageCommand, PublishCommand, RunCommand, UpdateCommand ) from briefcase.config import BaseConfig from briefcase.exceptions import BriefcaseCommandError from briefcase.integra...
32.420664
99
0.590371
dde44a70dd9732c7e3eb3597b1425126ff9aff3a
428
py
Python
examples/movements/goal.py
norefle/rl-vista
033979e588f5b3b87a319dcd3789b40c69687a1c
[ "MIT" ]
1
2021-04-06T07:44:47.000Z
2021-04-06T07:44:47.000Z
examples/movements/goal.py
norefle/rl-vista
033979e588f5b3b87a319dcd3789b40c69687a1c
[ "MIT" ]
null
null
null
examples/movements/goal.py
norefle/rl-vista
033979e588f5b3b87a319dcd3789b40c69687a1c
[ "MIT" ]
null
null
null
from rlv.core.engine import Engine from rlv.core.entity import Entity from rlv.core.image import Image from config import config as cf class Goal(Entity): def __init__(self, name, x, y, style): scale = cf["tile-size"] super().__init__(name, (x * scale, y * scale, cf["z-order"]["target"])) ...
28.533333
79
0.654206
b8c813d77542de9ea0a623d8d4637868d6447cfb
10,767
py
Python
tonks/vision/models/multi_task_resnet.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tonks/vision/models/multi_task_resnet.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
tonks/vision/models/multi_task_resnet.py
vanderveld/tonks
e87afbd9614b276b443b4a7527fd1fda01a8be4c
[ "BSD-3-Clause" ]
null
null
null
import copy from pathlib import Path import torch import torch.nn as nn from torchvision import models as torch_models from tonks.vision.helpers import _dense_block, _Identity class ResnetForMultiTaskClassification(nn.Module): """ PyTorch image attribute model. This model allows you to load in some pret...
36.252525
100
0.617349
72e24e48125b5eb1605f3edaacea9fbaefd4ca57
2,140
py
Python
setup.py
NSLS-II/bad-seeds
f6499fd1933baabf7cb6321388d95dd69b4fc27b
[ "BSD-3-Clause" ]
null
null
null
setup.py
NSLS-II/bad-seeds
f6499fd1933baabf7cb6321388d95dd69b4fc27b
[ "BSD-3-Clause" ]
1
2021-02-05T23:56:56.000Z
2021-02-08T18:03:30.000Z
setup.py
NSLS-II/bad-seeds
f6499fd1933baabf7cb6321388d95dd69b4fc27b
[ "BSD-3-Clause" ]
null
null
null
from os import path from setuptools import setup, find_packages import sys import versioneer # NOTE: This file must remain Python 2 compatible for the foreseeable future, # to ensure that we error out properly for people with outdated setuptools # and/or pip. min_version = (3, 7) if sys.version_info < min_version: ...
31.470588
77
0.664953
0d03ac499b99f97313508263450cc568daeeb6ba
3,028
py
Python
pygazebo/msg/subscribe_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/subscribe_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/subscribe_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: subscribe.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports)...
35.209302
270
0.730185
0c85c9721be4921f511a1e23a0e0de4c508b1d29
3,441
py
Python
src/olympia/translations/forms.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
2
2021-07-19T03:26:43.000Z
2021-07-24T03:12:52.000Z
src/olympia/translations/forms.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
760
2021-05-17T07:59:30.000Z
2022-03-31T11:14:15.000Z
src/olympia/translations/forms.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
1
2021-07-19T03:26:52.000Z
2021-07-19T03:26:52.000Z
from django.conf import settings from django.db import models from django.forms import ValidationError from django.forms.utils import ErrorList from django.utils.encoding import force_str from django.utils.html import conditional_escape, format_html, format_html_join from django.utils.safestring import mark_safe from d...
35.112245
82
0.635571
552ed29f65bba7b199e7fee7521d0ad0de577701
75,900
py
Python
tensorflow/python/eager/function.py
zengjia110/tensorflow
6dd278831a62be829ce6f15039e5b6b368b3727c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/eager/function.py
zengjia110/tensorflow
6dd278831a62be829ce6f15039e5b6b368b3727c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/eager/function.py
zengjia110/tensorflow
6dd278831a62be829ce6f15039e5b6b368b3727c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.049216
115
0.707022
fd8701b5d283e4527f54d8ee90af0da8965bf57f
592
py
Python
setup.py
kenlowrie/ev
919441276d385d2f5580bf2652bd4929e804d931
[ "Apache-2.0" ]
null
null
null
setup.py
kenlowrie/ev
919441276d385d2f5580bf2652bd4929e804d931
[ "Apache-2.0" ]
null
null
null
setup.py
kenlowrie/ev
919441276d385d2f5580bf2652bd4929e804d931
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from sys import version_info setup(name='ev', version='0.8.8', description='Encrypted Vault Management Console for image stores on macOS', url='https://github.com/kenlowrie/ev', author='Ken Lowrie', author_email='ken@kenlowrie.com', license='Apache', ...
31.157895
81
0.584459
fcc8488481eacbfb32be70a567fb80331fbaa8b3
4,260
py
Python
aliyun-python-sdk-dyplsapi/aliyunsdkdyplsapi/request/v20170525/BindAxbRequest.py
liuzheng/aliyun-openapi-python-sdk
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-dyplsapi/aliyunsdkdyplsapi/request/v20170525/BindAxbRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dyplsapi/aliyunsdkdyplsapi/request/v20170525/BindAxbRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "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...
31.791045
74
0.76385
67de7da24cf6b9ca7f8e4a0cb992038e8250b070
6,556
py
Python
test/programytest/parser/template/node_tests/test_thatstar.py
cen-ai/program-y
a753667638147544c54dbebd9f1c8f9ae7f2159e
[ "MIT" ]
5
2018-08-21T00:13:45.000Z
2018-09-01T20:00:55.000Z
test/programytest/parser/template/node_tests/test_thatstar.py
cen-ai/program-y
a753667638147544c54dbebd9f1c8f9ae7f2159e
[ "MIT" ]
1
2018-09-12T18:30:17.000Z
2018-09-12T18:30:17.000Z
test/programytest/parser/template/node_tests/test_thatstar.py
cen-ai/program-y
a753667638147544c54dbebd9f1c8f9ae7f2159e
[ "MIT" ]
5
2018-08-21T00:08:36.000Z
2018-09-23T06:11:04.000Z
import xml.etree.ElementTree as ET from programy.parser.template.nodes.base import TemplateNode from programy.parser.template.nodes.thatstar import TemplateThatStarNode from programy.dialog.dialog import Conversation, Question from programy.parser.pattern.matcher import MatchContext, Match from programy.parser.pattern...
39.493976
125
0.704393
7a7d4c3b51590d519b63f1b733f5a25e65497b9f
12,380
py
Python
utils/classify_WHAM_vcf.py
gkno/wham
2a1f349e73292f01792460664fc06edec2e7874a
[ "MIT" ]
66
2015-11-10T23:33:06.000Z
2022-02-23T14:08:24.000Z
utils/classify_WHAM_vcf.py
gkno/wham
2a1f349e73292f01792460664fc06edec2e7874a
[ "MIT" ]
39
2015-11-04T23:14:59.000Z
2021-09-07T17:55:14.000Z
utils/classify_WHAM_vcf.py
gkno/wham
2a1f349e73292f01792460664fc06edec2e7874a
[ "MIT" ]
21
2015-12-31T10:04:47.000Z
2022-01-25T11:32:19.000Z
#!/usr/bin/python import argparse, csv, os, sys, re #std python imports import numpy as np from sklearn.ensemble import RandomForestClassifier #RF classifier from SKlearn from sklearn.cross_validation import cross_val_score #validation stats from SKlearn import itertools import multiprocessing as mp #allows for paralle...
36.093294
256
0.703554
4c554db691be8827be31e9d997757b4001d39fa3
670
py
Python
poetry/console/commands/check.py
maggyero/poetry
3c7592c2f3d481f5e655a68fc1fa15c5bc024cda
[ "MIT" ]
2
2019-06-19T15:07:58.000Z
2019-11-24T14:08:55.000Z
poetry/console/commands/check.py
djetelina/poetry
1aa1ab2962bb8b6aed33c2308cf8352809d91685
[ "MIT" ]
1
2021-02-15T17:05:58.000Z
2021-02-15T17:05:58.000Z
poetry/console/commands/check.py
djetelina/poetry
1aa1ab2962bb8b6aed33c2308cf8352809d91685
[ "MIT" ]
1
2019-06-19T15:08:05.000Z
2019-06-19T15:08:05.000Z
from .command import Command class CheckCommand(Command): """ Checks the validity of the <comment>pyproject.toml</comment> file. check """ def handle(self): # Load poetry and display errors, if any check_result = self.poetry.check(self.poetry.local_config, strict=True) if...
25.769231
79
0.610448
d0b5a855313b4d47754ee4e3daad7573cd9107e4
427
py
Python
feedback_bot/config.py
Ribonney/feedback-bot
d46e7b56911d626a0b12d44c30e32c98bb46af32
[ "MIT" ]
null
null
null
feedback_bot/config.py
Ribonney/feedback-bot
d46e7b56911d626a0b12d44c30e32c98bb46af32
[ "MIT" ]
null
null
null
feedback_bot/config.py
Ribonney/feedback-bot
d46e7b56911d626a0b12d44c30e32c98bb46af32
[ "MIT" ]
null
null
null
import os from pathlib import Path from feedback_bot.command_replies import Replies TG_TOKEN = os.environ["1327572686:AAFsgdpyubYSw6ZUiw0xQX6sbJ4rfra0o8I"] PROXY = os.environ.get("RT_HTTPS_PROXY") CHAT_ID = int(os.environ["-470600717"]) REPLIES: Replies = Replies.load_from_dir(Path(os.environ["COMMAND_REPLIES_PATH"])...
35.583333
82
0.791569
d2e6c61351830524a79bac3e31a09541627faa65
355
py
Python
friendly_computing_machine/math.py
Yigitcan-MSU/friendly-computing-machine
ccfae25c4e331694572b75b1c95b36595c7067a9
[ "BSD-3-Clause" ]
null
null
null
friendly_computing_machine/math.py
Yigitcan-MSU/friendly-computing-machine
ccfae25c4e331694572b75b1c95b36595c7067a9
[ "BSD-3-Clause" ]
null
null
null
friendly_computing_machine/math.py
Yigitcan-MSU/friendly-computing-machine
ccfae25c4e331694572b75b1c95b36595c7067a9
[ "BSD-3-Clause" ]
null
null
null
""" A small set of functions for doing math operations """ def add(arg1, arg2): """ Function for adding two variables """ return arg1 + arg2 def mult(arg1, arg2): """ Function for multiplying two variables """ return arg1 * arg2 def sub(arg1,arg2): """ Function for substracting arg1 fr...
14.791667
50
0.633803
49b82492f00dcbe167a6abd3d51ffac6e5a5b8ff
5,208
py
Python
src/RIOT/dist/tools/mcuboot/imgtool/image.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
2
2020-04-30T08:17:45.000Z
2020-05-23T08:46:54.000Z
src/RIOT/dist/tools/mcuboot/imgtool/image.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
null
null
null
src/RIOT/dist/tools/mcuboot/imgtool/image.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
1
2020-02-21T09:21:45.000Z
2020-02-21T09:21:45.000Z
""" Image signing and management. """ from . import version as versmod import hashlib import struct IMAGE_MAGIC = 0x96f3b83c IMAGE_HEADER_SIZE = 32 # Image header flags. IMAGE_F = { 'PIC': 0x0000001, 'SHA256': 0x0000002, 'PKCS15_RSA2048_SHA256': 0x0000004, ...
30.104046
96
0.532834
02d5cfe8ec28aa1cbffcac11ff1c8386049d3797
69,480
py
Python
tensorflow/python/eager/context.py
SayyedAdnan/tensorflow
68062543231ccbeb7e572eb97dffe8690915c9a0
[ "Apache-2.0" ]
1
2019-12-25T09:44:14.000Z
2019-12-25T09:44:14.000Z
tensorflow/python/eager/context.py
mauryaganesh/tensorflow
9e484cdbf47f20802b14f9e3aca07393e5b89547
[ "Apache-2.0" ]
2
2021-08-25T16:14:24.000Z
2022-02-10T02:58:17.000Z
tensorflow/python/eager/context.py
mauryaganesh/tensorflow
9e484cdbf47f20802b14f9e3aca07393e5b89547
[ "Apache-2.0" ]
1
2020-04-22T01:47:46.000Z
2020-04-22T01:47:46.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.054234
89
0.720078
1aeafcb308af7baaf4d71709f85254fea9e11e72
4,195
py
Python
tacker/vnfm/mgmt_drivers/openwrt/openwrt.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/vnfm/mgmt_drivers/openwrt/openwrt.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/vnfm/mgmt_drivers/openwrt/openwrt.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright 2015 Intel Corporation. # 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 requ...
36.798246
78
0.607151
7b90b8624cb3dd676dd8c160b0291b7fab121376
12,597
py
Python
src/smbpo.py
gwthomas/Safe-MBPO
416dd13b6d4eceec7ac89ece161627e166ea54d8
[ "MIT" ]
6
2021-12-08T04:18:10.000Z
2022-02-16T07:54:02.000Z
src/smbpo.py
gwthomas/Safe-MBPO
416dd13b6d4eceec7ac89ece161627e166ea54d8
[ "MIT" ]
1
2022-02-25T12:53:50.000Z
2022-03-03T08:55:27.000Z
src/smbpo.py
gwthomas/Safe-MBPO
416dd13b6d4eceec7ac89ece161627e166ea54d8
[ "MIT" ]
null
null
null
import numpy as np import torch from tqdm import trange from .config import BaseConfig, Configurable from .dynamics import BatchedGaussianEnsemble from .env.batch import ProductEnv from .env.util import env_dims, get_max_episode_steps from .log import default_log as log, TabularLog from .policy import UniformPolicy fr...
43.588235
110
0.635231
3ea2d602bcb98f5670f508a5276f930aa6369e3b
1,485
py
Python
mindspore/python/mindspore/ops/_op_impl/tbe/diag.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
mindspore/python/mindspore/ops/_op_impl/tbe/diag.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
mindspore/python/mindspore/ops/_op_impl/tbe/diag.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2021 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...
38.076923
85
0.682155
68e251e08fe48f5e2617443ef88b4cb14e01ff89
6,864
py
Python
hdf_compass/compass_viewer/array/plot.py
giumas/hdf-compass
945d9acd6d4d676db8bf81e0af694b6eefb7dc25
[ "IJG" ]
1
2015-10-17T17:45:20.000Z
2015-10-17T17:45:20.000Z
hdf_compass/compass_viewer/array/plot.py
giumas/hdf-compass
945d9acd6d4d676db8bf81e0af694b6eefb7dc25
[ "IJG" ]
null
null
null
hdf_compass/compass_viewer/array/plot.py
giumas/hdf-compass
945d9acd6d4d676db8bf81e0af694b6eefb7dc25
[ "IJG" ]
null
null
null
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # Th...
36.705882
90
0.624709
fff2bc7ce424a661c2c8c52812e29be93acf549a
9,664
py
Python
pydocstringformatter/formatting/formatter.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
4
2022-01-02T22:50:59.000Z
2022-02-09T09:04:37.000Z
pydocstringformatter/formatting/formatter.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
80
2022-01-02T09:02:50.000Z
2022-03-30T13:34:10.000Z
pydocstringformatter/formatting/formatter.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
2
2022-01-02T11:58:29.000Z
2022-01-04T18:53:29.000Z
from __future__ import annotations import re import textwrap import tokenize from typing import Literal from pydocstringformatter.formatting import _utils from pydocstringformatter.formatting.base import ( StringAndQuotesFormatter, StringFormatter, SummaryFormatter, ) class BeginningQuotesFormatter(Stri...
33.672474
88
0.563845
9b9900722a965d234b4cc69c3e98e15a965b38a3
33,161
py
Python
apps/agentcontroller/controller.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
null
null
null
apps/agentcontroller/controller.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
apps/agentcontroller/controller.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
#this must be in the beginning so things are patched before ever imported by other libraries from gevent import monkey import gevent monkey.patch_socket() monkey.patch_thread() monkey.patch_time() from JumpScale import j from JumpScale.baselib.cmdutils import argparse import importlib import copy import crontab try: ...
41.245025
252
0.585839
455521d7bacad78291df359a13b582f5c4391dc6
1,490
py
Python
vendor/paypal/standard/ipn/models.py
aragilar/NewsBlur
64ecd83bf4cea175f1bdeeb6e475fd5cadb679c9
[ "MIT" ]
2
2015-09-05T10:40:30.000Z
2017-03-05T12:31:21.000Z
vendor/paypal/standard/ipn/models.py
aragilar/NewsBlur
64ecd83bf4cea175f1bdeeb6e475fd5cadb679c9
[ "MIT" ]
null
null
null
vendor/paypal/standard/ipn/models.py
aragilar/NewsBlur
64ecd83bf4cea175f1bdeeb6e475fd5cadb679c9
[ "MIT" ]
1
2021-09-27T06:02:59.000Z
2021-09-27T06:02:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 from vendor.paypal.standard.models import PayPalStandardBase from vendor.paypal.standard.ipn.signals import * class PayPalIPN(PayPalStandardBase): """Logs PayPal IPN interactions.""" format = u"<IPN: %s %s>" class Meta: db_table = "payp...
36.341463
98
0.616107
4396902ad44b06a79fcc62f78ff44f9454a1a285
11,294
py
Python
ibis/expr/rules.py
ivergara/ibis
212dc656c0121b01f1762afd9313aab5dfb19764
[ "Apache-2.0" ]
null
null
null
ibis/expr/rules.py
ivergara/ibis
212dc656c0121b01f1762afd9313aab5dfb19764
[ "Apache-2.0" ]
1
2021-03-25T14:07:29.000Z
2021-03-25T14:07:29.000Z
ibis/expr/rules.py
ivergara/ibis
212dc656c0121b01f1762afd9313aab5dfb19764
[ "Apache-2.0" ]
null
null
null
import collections import enum import functools from contextlib import suppress from itertools import product, starmap import ibis.common.exceptions as com import ibis.expr.datatypes as dt import ibis.expr.schema as sch import ibis.expr.types as ir import ibis.util as util try: from cytoolz import compose, curry,...
27.280193
79
0.646715
afe14325479b72edb129b06c60c5f2b899471a3d
1,166
py
Python
mmdet/models/detectors/__init__.py
QUAPNH/NucDetSeg
ad4040a359e52c611780b409f84b601bfa9c94e2
[ "Apache-2.0" ]
1
2022-02-21T11:05:09.000Z
2022-02-21T11:05:09.000Z
mmdet/models/detectors/__init__.py
lh0515/cas-dc-template
5b0400ca5dc98d09beca36d46cc55bfabb9ce4e0
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/__init__.py
lh0515/cas-dc-template
5b0400ca5dc98d09beca36d46cc55bfabb9ce4e0
[ "Apache-2.0" ]
1
2022-02-21T11:05:01.000Z
2022-02-21T11:05:01.000Z
from .atss import ATSS from .base import BaseDetector from .bbox_scoring_rcnn import BBoxScoringRCNN from .cascade_rcnn import CascadeRCNN from .cornernet import CornerNet from .fast_rcnn import FastRCNN from .faster_rcnn import FasterRCNN from .fcos import FCOS from .fovea import FOVEA from .fsaf import FSAF from .gfl...
34.294118
96
0.783877
8b0f6bef9aa2166c6153ca52820ed5995c92c98f
1,066
py
Python
rqalpha/mod/rqalpha_mod_sys_benchmark/__init__.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-11-10T05:44:39.000Z
2020-11-10T05:44:39.000Z
rqalpha/mod/rqalpha_mod_sys_benchmark/__init__.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
null
null
null
rqalpha/mod/rqalpha_mod_sys_benchmark/__init__.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-03-05T05:06:45.000Z
2020-03-05T05:06:45.000Z
# -*- coding: utf-8 -*- # 版权所有 2019 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”),您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时需保持当前许可“原样”...
28.810811
144
0.703565
0014a17e42118306b9ac1c94b907d5f9dbc2bed1
3,298
py
Python
student_management_system/settings.py
jatinvats636/SMS
eeefe16c95a9b42cef5861584693090cb5efe1da
[ "MIT" ]
1
2021-04-08T06:21:08.000Z
2021-04-08T06:21:08.000Z
student_management_system/settings.py
jatinvats636/SMS_Django
eeefe16c95a9b42cef5861584693090cb5efe1da
[ "MIT" ]
null
null
null
student_management_system/settings.py
jatinvats636/SMS_Django
eeefe16c95a9b42cef5861584693090cb5efe1da
[ "MIT" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ # SECURITY WARNING: keep th...
25.765625
91
0.704973
ae365d310ea5a252e0e9cd373199da3bb0eee5b5
1,003
py
Python
time_zone.py
dave-2/chatterbox
5e8456f1f80858ac0e1a91e2e4f3322b7f33220c
[ "Apache-2.0" ]
null
null
null
time_zone.py
dave-2/chatterbox
5e8456f1f80858ac0e1a91e2e4f3322b7f33220c
[ "Apache-2.0" ]
null
null
null
time_zone.py
dave-2/chatterbox
5e8456f1f80858ac0e1a91e2e4f3322b7f33220c
[ "Apache-2.0" ]
1
2016-08-10T05:04:34.000Z
2016-08-10T05:04:34.000Z
import datetime class PacificTimeZone(datetime.tzinfo): """Implementation of the Pacific timezone.""" def utcoffset(self, dt: datetime.datetime) -> datetime.timedelta: return datetime.timedelta(hours=-8) + self.dst(dt) def dst(self, dt: datetime.datetime) -> datetime.timedelta: # 2 am on...
34.586207
70
0.655035
6e1476d749583a2fd863b425277ff74c5fd339d4
591
py
Python
setup.py
TheAmmiR/bdtheme
3dd92e55bb9f73649dda5d9e7fa889dc152f3977
[ "MIT" ]
2
2022-01-10T17:44:33.000Z
2022-01-11T11:51:22.000Z
setup.py
TheAmmiR/bdtheme
3dd92e55bb9f73649dda5d9e7fa889dc152f3977
[ "MIT" ]
null
null
null
setup.py
TheAmmiR/bdtheme
3dd92e55bb9f73649dda5d9e7fa889dc152f3977
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import sys requirements = ["bs4", "requests", "lxml", "beaudis"] if sys.platform == "win32": requirements.append("windows-curses") setup( name="bdtheme", author="TheAmmiR", license="MIT", description="Console BeautifulDiscord theme manage...
23.64
57
0.622673
bff76b5d5ec84e449e8c67f7fc9a3e990901f8a5
2,789
py
Python
hc/front/templatetags/hc_extras.py
aksalj/healthchecks
f588959dc1a1bc16d631aa034a37ec22a7189fc8
[ "BSD-3-Clause" ]
1
2021-09-08T17:21:25.000Z
2021-09-08T17:21:25.000Z
hc/front/templatetags/hc_extras.py
aksalj/healthchecks
f588959dc1a1bc16d631aa034a37ec22a7189fc8
[ "BSD-3-Clause" ]
null
null
null
hc/front/templatetags/hc_extras.py
aksalj/healthchecks
f588959dc1a1bc16d631aa034a37ec22a7189fc8
[ "BSD-3-Clause" ]
null
null
null
import re from django import template from django.conf import settings from django.utils.html import escape from django.utils.safestring import mark_safe from hc.lib.date import format_duration, format_hms register = template.Library() @register.filter def hc_duration(td): return format_duration(td) @registe...
21.290076
78
0.659018
3fabebc3e44d3361b276d05dfeb1a51d6825b544
28,840
py
Python
xray/test/test_backends.py
akleeman/xray
48ce8c23c31b9a5d092f29974715aa1888b95044
[ "Apache-2.0" ]
1
2017-09-18T02:08:09.000Z
2017-09-18T02:08:09.000Z
xray/test/test_backends.py
akleeman/xray
48ce8c23c31b9a5d092f29974715aa1888b95044
[ "Apache-2.0" ]
null
null
null
xray/test/test_backends.py
akleeman/xray
48ce8c23c31b9a5d092f29974715aa1888b95044
[ "Apache-2.0" ]
null
null
null
from io import BytesIO import contextlib import os.path import pickle import tempfile import unittest import sys import numpy as np import pandas as pd import xray from xray import Dataset, open_dataset, backends from xray.core.pycompat import iteritems, PY3 from . import (TestCase, requires_scipy, requires_netCDF4,...
42.163743
92
0.585922
6aec69e359b4826ec03a6e9f0acc04b3b03f96a2
1,766
py
Python
examples/series/str/series_str_istitle.py
densmirn/sdc
30e53955a88506a5134d75d843205dbd5d576051
[ "BSD-2-Clause" ]
540
2017-06-19T16:29:24.000Z
2019-05-21T09:30:07.000Z
examples/series/str/series_str_istitle.py
densmirn/sdc
30e53955a88506a5134d75d843205dbd5d576051
[ "BSD-2-Clause" ]
389
2019-10-30T18:56:46.000Z
2022-03-09T08:21:36.000Z
examples/series/str/series_str_istitle.py
densmirn/sdc
30e53955a88506a5134d75d843205dbd5d576051
[ "BSD-2-Clause" ]
36
2017-06-19T16:29:15.000Z
2019-04-26T09:22:39.000Z
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation 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 sou...
44.15
79
0.698188
810132f460bfdba38455d42164c74ce4c2a9fa9c
237
py
Python
pytorch_toolbelt/modules/encoders/timm/__init__.py
azkalot1/pytorch-toolbelt
9d7544fa32a6c6588f9f8c4525ba702700ac01cc
[ "MIT" ]
1,281
2019-03-17T18:32:39.000Z
2022-03-31T03:47:22.000Z
pytorch_toolbelt/modules/encoders/timm/__init__.py
azkalot1/pytorch-toolbelt
9d7544fa32a6c6588f9f8c4525ba702700ac01cc
[ "MIT" ]
28
2019-04-05T10:49:25.000Z
2022-03-11T10:40:28.000Z
pytorch_toolbelt/modules/encoders/timm/__init__.py
azkalot1/pytorch-toolbelt
9d7544fa32a6c6588f9f8c4525ba702700ac01cc
[ "MIT" ]
99
2019-03-18T08:40:18.000Z
2022-03-26T10:52:57.000Z
from .common import * from .dpn import * from .efficient_net import * from .efficient_net_v2 import * from .hrnet import * from .nf_regnet import * from .nfnet import * from .nfnet_s import * from .res2net import * from .resnet import *
21.545455
31
0.746835
4f8b992accdbc736c50bfa0bcc8f3445ee9d94b9
825
py
Python
gallery/urls.py
MutuaFranklin/Photofolio
80e8326663c7cd1288d8db2e5fd1542855aad7fd
[ "MIT" ]
null
null
null
gallery/urls.py
MutuaFranklin/Photofolio
80e8326663c7cd1288d8db2e5fd1542855aad7fd
[ "MIT" ]
null
null
null
gallery/urls.py
MutuaFranklin/Photofolio
80e8326663c7cd1288d8db2e5fd1542855aad7fd
[ "MIT" ]
null
null
null
from django.urls import re_path, path from . import views from django.conf import settings from django.conf.urls.static import static from .views import galleryView, imageDetailsView, image_location urlpatterns=[ path('gallery', galleryView.as_view(), name = 'gallery'), # path('gallerydetails/<int:pk>', imageD...
34.375
88
0.717576
36f9708cb919f8ec3dc241e198aff77bd42ea8c7
473
py
Python
sandbox/catalogue/migrations/0023_auto_20210527_2042.py
IhateTrains/django-oscar
072fb7ef19b2bc72894be4c8add746cb79f87e93
[ "BSD-3-Clause" ]
null
null
null
sandbox/catalogue/migrations/0023_auto_20210527_2042.py
IhateTrains/django-oscar
072fb7ef19b2bc72894be4c8add746cb79f87e93
[ "BSD-3-Clause" ]
null
null
null
sandbox/catalogue/migrations/0023_auto_20210527_2042.py
IhateTrains/django-oscar
072fb7ef19b2bc72894be4c8add746cb79f87e93
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.11 on 2021-05-27 18:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogue', '0022_auto_20210527_1937'), ] operations = [ migrations.AlterField( model_name='productimage', name='or...
24.894737
126
0.646934
e913ecbf1b663e6f7a5f1415a29773bf9a7a2e39
2,937
py
Python
publichealth/home/migrations/0022_auto_20180525_1520.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
publichealth/home/migrations/0022_auto_20180525_1520.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
publichealth/home/migrations/0022_auto_20180525_1520.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-25 13:20 from __future__ import unicode_literals from django.db import migrations, models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('home', '...
45.890625
652
0.632278
9190b4509e7fd57e1b1967803ddf45a3ddd3cbe7
1,241
py
Python
src/bot/handler/groupsHandler.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
13
2021-09-20T17:04:28.000Z
2022-03-15T09:27:25.000Z
src/bot/handler/groupsHandler.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
src/bot/handler/groupsHandler.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
from telegram.ext.callbackcontext import CallbackContext from telegram.ext.commandhandler import CommandHandler from telegram.update import Update from bot.handler.abstractHandler import AbstractHandler from bot.message.replier import Replier from config.contents import no_groups from exception.invalidActionException ...
35.457143
75
0.759065
8ea80f33f5b68ffb168d4f7c71708fd888c90466
368
py
Python
djautotask/migrations/0095_auto_20210726_1251.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
4
2019-04-18T17:12:07.000Z
2021-12-30T21:42:10.000Z
djautotask/migrations/0095_auto_20210726_1251.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
32
2018-05-30T20:31:22.000Z
2022-02-17T21:36:50.000Z
djautotask/migrations/0095_auto_20210726_1251.py
KerkhoffTechnologies/django-autotask
458ff0bf65e3ca85fb954f907f05c4c614904afc
[ "MIT" ]
5
2018-05-25T23:33:45.000Z
2022-01-04T22:01:46.000Z
# Generated by Django 3.1.7 on 2021-07-26 12:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djautotask', '0094_auto_20210723_1018'), ] operations = [ migrations.AlterModelOptions( name='contact', options={'ordering':...
20.444444
62
0.603261
d15f874185a0a0e5e2113fe36e14a9cbfccc1913
7,344
py
Python
test/config_test.py
jasmine/jasmine-py
cd2e5dc1f165bfda05efb7fbdaac66b97cc084e6
[ "MIT" ]
87
2015-02-10T00:27:48.000Z
2022-01-07T02:11:39.000Z
test/config_test.py
jasmine/jasmine-py
cd2e5dc1f165bfda05efb7fbdaac66b97cc084e6
[ "MIT" ]
34
2015-01-19T10:10:45.000Z
2022-01-01T19:28:11.000Z
test/config_test.py
jasmine/jasmine-py
cd2e5dc1f165bfda05efb7fbdaac66b97cc084e6
[ "MIT" ]
28
2015-02-05T16:08:39.000Z
2022-02-26T14:06:38.000Z
import os import tempfile import pkg_resources from contextlib import contextmanager from jasmine.config import Config default_jasmine_yml = """ src_files: - src/player.js - src/**/*.js - http://cdn.jquery.com/jquery.js - vendor/test.js - vendor/**/*.{js,coffee} """ def create_f...
27.402985
89
0.570125
76573242a2506a3bdfc9b890cdebd4347cabfdbc
13,107
py
Python
pandas/tests/extension/test_numpy.py
dequadras/pandas
8a7fbbeb8e3a88f8e355093eb1b68f361e65b6aa
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/extension/test_numpy.py
dequadras/pandas
8a7fbbeb8e3a88f8e355093eb1b68f361e65b6aa
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/extension/test_numpy.py
dequadras/pandas
8a7fbbeb8e3a88f8e355093eb1b68f361e65b6aa
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from pandas.compat.numpy import _np_version_under1p16 import pandas as pd import pandas._testing as tm from pandas.core.arrays.numpy_ import PandasArray, PandasDtype from . import base @pytest.fixture(params=["float", "object"]) def dtype(request): return PandasDtype(np.dtype(r...
31.890511
81
0.703288
a29821566644c79c9f404d4977643cad6519b478
2,452
py
Python
aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/QueryTenantUserByUserIdRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/QueryTenantUserByUserIdRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/QueryTenantUserByUserIdRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.135135
79
0.762235
1c32b63182e3843d4781fc4ffb7434839531e4cc
1,011
py
Python
openproblems/tasks/_batch_integration/batch_integration_graph/metrics/ari.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
openproblems/tasks/_batch_integration/batch_integration_graph/metrics/ari.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
openproblems/tasks/_batch_integration/batch_integration_graph/metrics/ari.py
scottgigante-immunai/openproblems
d093c1a2f21715d98e07ec760eff2c8f50c68373
[ "MIT" ]
null
null
null
from .....tools.decorators import metric """ The Rand index compares the overlap of two clusterings; it considers both correct clustering overlaps while also counting correct disagreements between two clusterings. Similar to NMI, we compared the cell-type labels with the NMI-optimized Louvain clustering computed on th...
30.636364
81
0.726014
d1476b1ab21d40934db6eb0cc0d2174d41b1df72
6,327
py
Python
hooks/charmhelpers/contrib/openstack/ip.py
ryan-beisner/charm-nova-compute-ppc64el
c5448acb58f143bd0e018dd361d98003d23396e0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/charmhelpers/contrib/openstack/ip.py
ryan-beisner/charm-nova-compute-ppc64el
c5448acb58f143bd0e018dd361d98003d23396e0
[ "ECL-2.0", "Apache-2.0" ]
3
2017-06-15T22:41:35.000Z
2018-04-12T20:12:28.000Z
hooks/charmhelpers/contrib/openstack/ip.py
ryan-beisner/charm-nova-compute-ppc64el
c5448acb58f143bd0e018dd361d98003d23396e0
[ "ECL-2.0", "Apache-2.0" ]
2
2019-08-05T19:37:03.000Z
2019-08-05T20:06:01.000Z
# Copyright 2014-2015 Canonical Limited. # # 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 ...
33.834225
79
0.644223
da01cacf0490d101d3ba7fcf8061b65803d5eede
123
py
Python
lang/Python/sum-of-squares-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2021-05-05T13:42:20.000Z
2021-05-05T13:42:20.000Z
lang/Python/sum-of-squares-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/sum-of-squares-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
sum(x * x for x in [1, 2, 3, 4, 5]) # or sum(x ** 2 for x in [1, 2, 3, 4, 5]) # or sum(pow(x, 2) for x in [1, 2, 3, 4, 5])
20.5
39
0.447154
9e59e7d4389c7b3f8f9577f953d09de99dbe5b80
1,125
py
Python
portal/migrations/versions/ed70c144ae46_.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/migrations/versions/ed70c144ae46_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/migrations/versions/ed70c144ae46_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""Eliminate internal identifiers Revision ID: ed70c144ae46 Revises: 3da0caa42c62 Create Date: 2018-05-02 17:39:24.558043 """ from alembic import op from sqlalchemy import text from portal.models.user import internal_identifier_systems # revision identifiers, used by Alembic. revision = 'ed70c144ae46' down_revision...
28.846154
75
0.709333
308270a836f618e08e5132a27ad9a24a74586062
7,536
py
Python
src/parsetab.py
videoutpl/Videout
94ac2643a655fb7d53b2bc1af500c1f81b9e728d
[ "MIT" ]
2
2019-02-27T02:08:31.000Z
2019-05-10T01:32:10.000Z
src/parsetab.py
videoutpl/Videout
94ac2643a655fb7d53b2bc1af500c1f81b9e728d
[ "MIT" ]
3
2019-04-03T18:04:19.000Z
2019-04-22T22:38:23.000Z
src/parsetab.py
videoutpl/Videout
94ac2643a655fb7d53b2bc1af500c1f81b9e728d
[ "MIT" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'ADD_AUDIO ADD_TEXT AND ASPECT_RATIO ASSIGN BETWEEN BOOL BY COMMA CONCATENATE_CLIP CROP EXTRACT_AUDIO FLOAT FROM IDENTIFIER INT LASTING LPAREN PATH PHOTO POSITIO...
109.217391
1,827
0.635748
3bbac16236e61631387703fef505552fc168bc2d
3,057
py
Python
lifelong_rl/trainers/lstm_memory/state_predictor.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
null
null
null
lifelong_rl/trainers/lstm_memory/state_predictor.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
null
null
null
lifelong_rl/trainers/lstm_memory/state_predictor.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
null
null
null
import numpy as np import torch import lifelong_rl.torch.pytorch_util as ptu # q(s | o, m) class StatePredictor(torch.nn.Module): def __init__( self, observation_size, latent_size, hidden_state_size, normalize_observations=True, fc_layer_pa...
33.228261
93
0.622833
5681976f5cdf4105c0ab33f9b45c8a0bf7218ba9
3,052
py
Python
2022/Python-FreeCodeCamp/Scientific_computing_with_python/test_module.py
millennialseb/EDU_python
806bb21f873170c29d45d5279af5bd83c8b27dc9
[ "MIT" ]
1
2021-09-10T23:39:55.000Z
2021-09-10T23:39:55.000Z
2022/Python-FreeCodeCamp/Scientific_computing_with_python/test_module.py
millennialseb/EDU_python
806bb21f873170c29d45d5279af5bd83c8b27dc9
[ "MIT" ]
null
null
null
2022/Python-FreeCodeCamp/Scientific_computing_with_python/test_module.py
millennialseb/EDU_python
806bb21f873170c29d45d5279af5bd83c8b27dc9
[ "MIT" ]
null
null
null
""" Rules The function will return the correct conversion if the supplied problems are properly formatted, otherwise, it will return a string that describes an error that is meaningful to the user. Situations that will return an error: If there are too many problems supplied to the function. The limit is five, anythin...
49.225806
273
0.74574
97e474c8d38d4d0e5eb656dca517f26fe5ad00ef
3,604
py
Python
tests/gold_tests/pluginTest/sslheaders/sslheaders.test.py
zds05/trafficserver
258c69b7628f5a4b90488e147c244a582222b5c8
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/pluginTest/sslheaders/sslheaders.test.py
zds05/trafficserver
258c69b7628f5a4b90488e147c244a582222b5c8
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/pluginTest/sslheaders/sslheaders.test.py
zds05/trafficserver
258c69b7628f5a4b90488e147c244a582222b5c8
[ "Apache-2.0" ]
null
null
null
''' Test the sslheaders plugin. ''' # 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, Ver...
42.4
333
0.720866
bbed173dd6fcf655e09cdecba3a84bd4863db2f1
4,386
py
Python
user.py
taindp98/deep_reinforcement_learning
2f5c734280fbc242267a8fea72cf59c9fff54966
[ "MIT" ]
null
null
null
user.py
taindp98/deep_reinforcement_learning
2f5c734280fbc242267a8fea72cf59c9fff54966
[ "MIT" ]
null
null
null
user.py
taindp98/deep_reinforcement_learning
2f5c734280fbc242267a8fea72cf59c9fff54966
[ "MIT" ]
null
null
null
from dialogue_config import FAIL, SUCCESS, usersim_intents, all_slots from utils import reward_function class User: """Connects a real user to the conversation through the console.""" def __init__(self, constants): """ The constructor for User. Parameters: constants (dict...
31.328571
100
0.53648
5aa568a0d1337e9b047fc93f33e40cc25c7c624b
2,507
py
Python
run_continuation.py
RasmooL/dqn-tf
d928d5c83a5587dac2ebe1af715038e9ba0fddb2
[ "MIT" ]
1
2016-08-19T21:38:56.000Z
2016-08-19T21:38:56.000Z
run_continuation.py
RasmooL/dqn-tf
d928d5c83a5587dac2ebe1af715038e9ba0fddb2
[ "MIT" ]
null
null
null
run_continuation.py
RasmooL/dqn-tf
d928d5c83a5587dac2ebe1af715038e9ba0fddb2
[ "MIT" ]
null
null
null
""" Copyright 2016 Rasmus Larsen This software may be modified and distributed under the terms of the MIT license. See the LICENSE.txt file for details. """ import sys import time from sacred import Experiment from core.ALEEmulator import ALEEmulator from continuation.OriginalNet import OriginalNet from core.ScreenB...
23.212963
115
0.640207
87e830a13dddc4cc79a804fad5c7d2918ad0f54a
18,797
py
Python
training/src/tests/tests/python/PaddingLayer.py
steelONIONknight/bolt
9bd3d08f2abb14435ca3ad0179889e48fa7e9b47
[ "MIT" ]
null
null
null
training/src/tests/tests/python/PaddingLayer.py
steelONIONknight/bolt
9bd3d08f2abb14435ca3ad0179889e48fa7e9b47
[ "MIT" ]
null
null
null
training/src/tests/tests/python/PaddingLayer.py
steelONIONknight/bolt
9bd3d08f2abb14435ca3ad0179889e48fa7e9b47
[ "MIT" ]
null
null
null
# Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the rights to use, co...
38.361224
148
0.490663
1c9131a21fc4206921e43f315b97033dd6893577
2,277
py
Python
firmware/controller.py
pedrohov/rpi-localization-mapping
82abadc90d49b79e3fb95c36db1ec31c8a0e74ad
[ "MIT" ]
5
2019-05-19T22:36:13.000Z
2019-09-15T01:43:50.000Z
firmware/controller.py
pedrohov/rpi-localization-mapping
82abadc90d49b79e3fb95c36db1ec31c8a0e74ad
[ "MIT" ]
null
null
null
firmware/controller.py
pedrohov/rpi-localization-mapping
82abadc90d49b79e3fb95c36db1ec31c8a0e74ad
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO; from motor import *; import time; class Controller(): """ Class that controls each motor of the vehicle. It can execute a movement for a specified period of time, or execute a movement until it receives another command. """ def __init__(self, ...
28.822785
62
0.541941
2f18e9cc54a7442b893360cddfa8948ac184c039
471
py
Python
homework/models.py
ymlihaa/Rscool
d8f509f9430dec48413bfb1273a1244baca8db19
[ "MIT" ]
null
null
null
homework/models.py
ymlihaa/Rscool
d8f509f9430dec48413bfb1273a1244baca8db19
[ "MIT" ]
null
null
null
homework/models.py
ymlihaa/Rscool
d8f509f9430dec48413bfb1273a1244baca8db19
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class HomeWork(models.Model): title = models.CharField(verbose_name='Title', max_length=200) content = models.CharField(max_length=200) upload = models.FileField( verbose_name='Ödev Dosyası', upload_to='homework') created_date = mode...
21.409091
66
0.715499
4d5a4b64c275dad3759cd82834e5d16102193a69
13,344
py
Python
vis_gui.py
Rootie/LEDCoCa
094e6314adc576bc8633c8ab2d9eb2aaa711a483
[ "MIT" ]
null
null
null
vis_gui.py
Rootie/LEDCoCa
094e6314adc576bc8633c8ab2d9eb2aaa711a483
[ "MIT" ]
null
null
null
vis_gui.py
Rootie/LEDCoCa
094e6314adc576bc8633c8ab2d9eb2aaa711a483
[ "MIT" ]
null
null
null
import glob import numpy as np import open3d as o3d import open3d.visualization.gui as gui import open3d.visualization.rendering as rendering import os import platform import sys import math isMacOS = (platform.system() == "Darwin") class Settings: UNLIT = "defaultUnlit" def __init__(self): self.mou...
38.678261
105
0.628447
8e568de070354c267048fdac6c7a9323a98e4b43
2,796
py
Python
Chapter16/dcn.py
PacktPublishing/Machine-Learning-Algorithms-Second-Edition
2ddacea1c9f81b4ef9a0a51c4230687350afba6c
[ "MIT" ]
50
2018-08-13T13:11:04.000Z
2022-02-17T23:00:20.000Z
Chapter16/dcn.py
srikanthlakkoju/Machine-Learning-Algorithms-Second-Edition
b25d3607e9d5cc388bcf5f1a029bae39bb2b837b
[ "MIT" ]
null
null
null
Chapter16/dcn.py
srikanthlakkoju/Machine-Learning-Algorithms-Second-Edition
b25d3607e9d5cc388bcf5f1a029bae39bb2b837b
[ "MIT" ]
29
2018-06-08T10:56:40.000Z
2022-02-19T06:26:23.000Z
from __future__ import print_function import matplotlib.pyplot as plt import numpy as np from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Activation, Dropout, Conv2D, AveragePooling2D, Flatten from keras.optimizers import Adam from keras.utils import to_categorical ...
30.725275
94
0.651645
343b1dafadf170756afb4deeb50cf9cea09ee780
9,505
py
Python
gbpservice/contrib/tests/unit/nfp/configurator/advanced_controller/test_controller.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/tests/unit/nfp/configurator/advanced_controller/test_controller.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/tests/unit/nfp/configurator/advanced_controller/test_controller.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
null
null
null
# 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 # d...
34.314079
79
0.634824
aa0de8112b5a4c447b4d6f8ba2c457031112a195
859
py
Python
ports/esp32/modules/neopixel.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
ports/esp32/modules/neopixel.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
ports/esp32/modules/neopixel.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
# NeoPixel driver for MicroPython on ESP32 # MIT license; Copyright (c) 2016 Damien P. George from esp import neopixel_write class NeoPixel: ORDER = (1, 0, 2, 3) def __init__(self, pin, n, bpp=3, timing=1): self.pin = pin self.n = n self.bpp = bpp self.buf = bytearray(n * bpp...
26.030303
79
0.586729
c108c72d978d3769eee9ea8864587467b6c27aa6
1,393
py
Python
tests/test_resource_tracker/test_api/test_resource_pool_api_views/test_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
112
2021-04-21T08:52:55.000Z
2022-03-01T15:09:19.000Z
tests/test_resource_tracker/test_api/test_resource_pool_api_views/test_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
216
2021-04-21T09:06:47.000Z
2022-03-30T14:21:28.000Z
tests/test_resource_tracker/test_api/test_resource_pool_api_views/test_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
21
2021-04-20T13:53:54.000Z
2022-03-30T21:43:04.000Z
from rest_framework import status from rest_framework.reverse import reverse from resource_tracker.models import ResourcePool from tests.test_resource_tracker.test_api.base_test_api import BaseTestAPI class TestResourcePoolDelete(BaseTestAPI): def setUp(self): super(TestResourcePoolDelete, self).setUp()...
44.935484
93
0.727207
cd423963a968077d069c86d0b904dd059772319c
11,764
py
Python
tools/processing_tool_datasets_merger/lib_data_io_nc.py
c-hydro/hmc
66470234e126e4a727e1faf2fe64bd58547220ed
[ "MIT" ]
null
null
null
tools/processing_tool_datasets_merger/lib_data_io_nc.py
c-hydro/hmc
66470234e126e4a727e1faf2fe64bd58547220ed
[ "MIT" ]
2
2021-07-08T13:10:33.000Z
2021-07-08T13:11:33.000Z
tools/processing_tool_datasets_merger/lib_data_io_nc.py
c-hydro/hmc
66470234e126e4a727e1faf2fe64bd58547220ed
[ "MIT" ]
null
null
null
""" Class Features Name: lib_data_io_nc Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org) Date: '20210408' Version: '1.0.0' """ ####################################################################################### # Libraries import logging import os import time import numpy as ...
42.778182
120
0.554148
605012f8fc51998d3b60fc20189b2326d082cd28
10,278
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/builders/htmlhelp.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/builders/htmlhelp.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/builders/htmlhelp.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
9
2015-08-26T19:59:06.000Z
2022-03-07T17:10:06.000Z
# -*- coding: utf-8 -*- """ sphinx.builders.htmlhelp ~~~~~~~~~~~~~~~~~~~~~~~~ Build HTML help support files. Parts adapted from Python's Doc/tools/prechm.py. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import codecs fr...
34.26
78
0.540572
c316b0b4e8af34e56566333f8720e0fec62956dd
7,173
py
Python
test/expected/python.asyncio/service_extension_same_file/f_Pinger.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
test/expected/python.asyncio/service_extension_same_file/f_Pinger.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
test/expected/python.asyncio/service_extension_same_file/f_Pinger.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.7) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # import asyncio from datetime import timedelta import inspect from frugal.aio.processor import FBaseProcessor from frugal.aio.processor import FProcessorFunction from frugal.exceptions import TApplicat...
31.599119
147
0.626516
88cd909f8de720574cf631ffd3152f5a188a4efe
8,952
py
Python
mrcnn/config.py
xericho/mask-rcnn
8779381d4cb07155449c7b020bc1465e17669aca
[ "MIT" ]
null
null
null
mrcnn/config.py
xericho/mask-rcnn
8779381d4cb07155449c7b020bc1465e17669aca
[ "MIT" ]
null
null
null
mrcnn/config.py
xericho/mask-rcnn
8779381d4cb07155449c7b020bc1465e17669aca
[ "MIT" ]
null
null
null
""" Mask R-CNN Base Configurations class. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import numpy as np # Base Configuration Class # Don't use this class directly. Instead, sub-class it and override # the configurations you need to chan...
39.263158
84
0.689678
51164864002332400aa33bbb5439f74bd0463bc1
7,040
py
Python
src/app/auth/auth_policy.py
Thiqah-Lab/aws-serverless-skeleton
d34adddb6613f2eb40e92ed483bdfbfe72332257
[ "MIT" ]
46
2019-04-08T19:09:51.000Z
2021-12-09T23:54:35.000Z
src/app/auth/auth_policy.py
Thiqah-Lab/aws-serverless-skeleton
d34adddb6613f2eb40e92ed483bdfbfe72332257
[ "MIT" ]
5
2019-04-08T17:14:37.000Z
2019-04-08T17:15:27.000Z
src/app/auth/auth_policy.py
Thiqah-Lab/aws-serverless-skeleton
d34adddb6613f2eb40e92ed483bdfbfe72332257
[ "MIT" ]
1
2021-07-26T08:19:12.000Z
2021-07-26T08:19:12.000Z
import re class HttpVerb: GET = "GET" POST = "POST" PUT = "PUT" PATCH = "PATCH" HEAD = "HEAD" DELETE = "DELETE" OPTIONS = "OPTIONS" ALL = "*" class AuthPolicy(object): aws_account_id = "" """ The AWS account id the policy will be generated for. This is used to create ...
40
98
0.605256
5b6332c3a9d53a62845106f6eabc6f4616e9446e
2,915
py
Python
django_logging/logger.py
paredesivan/django-logging
05f2e83887f26eab635dbe87c8cbe1fa3a96476b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
django_logging/logger.py
paredesivan/django-logging
05f2e83887f26eab635dbe87c8cbe1fa3a96476b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
django_logging/logger.py
paredesivan/django-logging
05f2e83887f26eab635dbe87c8cbe1fa3a96476b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import logging.config import os import sys from . import settings LOG_LEVEL = settings.LOG_LEVEL.upper() LOG_HANDLERS = ['default'] if settings.CONSOLE_LOG: LOG_HANDLERS.append('console') if settings.DEBUG: LOG_HANDLERS.append('debug') if settings.SQL_LOG: LOG_HANDLERS.append('sql') if n...
30.051546
119
0.552316
9793dbcafa3631121102c414d62b5478f981fa0a
1,490
py
Python
tsp_2opt/solver.py
mehdibnc/TSP2opt
94607ebd86396d3d53e1533480d3626c82ed94fc
[ "MIT" ]
null
null
null
tsp_2opt/solver.py
mehdibnc/TSP2opt
94607ebd86396d3d53e1533480d3626c82ed94fc
[ "MIT" ]
null
null
null
tsp_2opt/solver.py
mehdibnc/TSP2opt
94607ebd86396d3d53e1533480d3626c82ed94fc
[ "MIT" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor from .tsp_2opt import solver_2opt_parr from tsp_2opt.utils import get_best_from_batch, get_init_route, is_symmetric, check_type import numpy as np def tsp_solver(distances: np.ndarray, workers: int = 5, r: int = 10): """ TSP Solver using 2-opt local search. ...
33.863636
88
0.650336
cbe2f96bf19dcccb8efc1762831a1cc7e5b72817
2,129
py
Python
bokeh/sampledata/daylight.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
1
2021-04-09T02:57:29.000Z
2021-04-09T02:57:29.000Z
bokeh/sampledata/daylight.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
5
2021-05-07T10:31:27.000Z
2021-05-07T10:33:37.000Z
bokeh/sampledata/daylight.py
goncaloperes/bokeh
b857d2d17d7c19779bb0a7be2601d8238fb1d5e9
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
34.901639
103
0.276656
d97abcb1235f987f9d5f92fb719a00dc25e2b0a4
14,545
py
Python
salt/pillar/azureblob.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
1
2020-07-22T18:41:34.000Z
2020-07-22T18:41:34.000Z
salt/pillar/azureblob.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
salt/pillar/azureblob.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
1
2015-08-26T09:46:04.000Z
2015-08-26T09:46:04.000Z
# -*- coding: utf-8 -*- """ Use Azure Blob as a Pillar source. .. versionadded:: Sodium :maintainer: <devops@eitr.tech> :maturity: new :depends: * `azure-storage-blob <https://pypi.org/project/azure-storage-blob/>`_ >= 12.0.0 The Azure Blob ext_pillar can be configured with the following parameters: .. code-blo...
30.556723
118
0.67439
724b6a197c587827933c541aeb875f07736ae170
66,626
py
Python
weis/optimization_drivers/tests/test_nlopt_driver.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
null
null
null
weis/optimization_drivers/tests/test_nlopt_driver.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
null
null
null
weis/optimization_drivers/tests/test_nlopt_driver.py
ebranlard/WEIS
59851a0c3b2e801bd413ca4887ab4b78e58f928a
[ "Apache-2.0" ]
null
null
null
""" Unit tests for the NLOpt Driver.""" import copy import sys import unittest import numpy as np import openmdao.api as om from openmdao.test_suite.components.expl_comp_array import TestExplCompArrayDense from openmdao.test_suite.components.paraboloid import Paraboloid from openmdao.test_suite.components...
34.290273
100
0.571233
afb17380f319988fe249070100131f7c3d707171
193
py
Python
wristband/apps/models.py
hmrc/wristband
35648a15b91dea4a927e486bfe0ace5e00b44dcc
[ "Apache-2.0" ]
1
2015-07-14T14:32:17.000Z
2015-07-14T14:32:17.000Z
wristband/apps/models.py
hmrc/wristband
35648a15b91dea4a927e486bfe0ace5e00b44dcc
[ "Apache-2.0" ]
4
2015-08-03T11:17:37.000Z
2015-09-24T10:06:02.000Z
wristband/apps/models.py
hmrc/wristband
35648a15b91dea4a927e486bfe0ace5e00b44dcc
[ "Apache-2.0" ]
2
2020-05-05T13:56:47.000Z
2021-04-10T23:51:52.000Z
from mongoengine import Document, StringField class App(Document): name = StringField(max_length=50) stage = StringField(max_length=50) security_zone = StringField(max_length=50)
24.125
46
0.761658
81bcbab9c005698196127f53380e0f4f09d6c8e2
11,200
py
Python
alembic/versions/e9b7657f6be1_skymaps.py
bparazin/skyportal
c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56
[ "BSD-3-Clause" ]
52
2018-11-02T00:53:21.000Z
2022-03-08T16:03:52.000Z
alembic/versions/e9b7657f6be1_skymaps.py
bparazin/skyportal
c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56
[ "BSD-3-Clause" ]
1,944
2017-04-27T18:51:20.000Z
2022-03-31T20:17:44.000Z
alembic/versions/e9b7657f6be1_skymaps.py
bparazin/skyportal
c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56
[ "BSD-3-Clause" ]
63
2017-05-13T01:40:47.000Z
2022-03-12T11:32:11.000Z
"""skymaps Revision ID: e9b7657f6be1 Revises: fb0304aeca6c Create Date: 2021-06-21 17:56:01.193974 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'e9b7657f6be1' down_revision = 'fb0304aeca6c' branch_labels = None depen...
38.225256
88
0.546429
b25a2192ce263ff321253c248c80d7567b93bc12
3,837
py
Python
backend/swagger_server/models/document_info_field_entry_rect.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
6
2019-01-29T05:58:37.000Z
2021-11-02T22:47:02.000Z
backend/swagger_server/models/document_info_field_entry_rect.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
9
2020-09-09T04:53:01.000Z
2022-03-08T22:52:18.000Z
backend/swagger_server/models/document_info_field_entry_rect.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
4
2019-01-29T07:38:55.000Z
2021-10-16T21:06:42.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from .base_model_ import Model from .. import util class DocumentInfoFieldEntryRect(Model): """NOTE: This class is auto generated by the swagger code generator pr...
25.410596
98
0.569716
35a812b2fe47f6147311308b7bf39ad575aa5f48
15,928
py
Python
detect_secrets/core/usage.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
null
null
null
detect_secrets/core/usage.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
1
2020-08-12T21:57:16.000Z
2020-08-12T21:57:16.000Z
detect_secrets/core/usage.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
null
null
null
import argparse import os from collections import namedtuple from functools import lru_cache from detect_secrets import VERSION from detect_secrets.plugins.common.util import import_plugins def add_exclude_lines_argument(parser): parser.add_argument( '--exclude-lines', type=str, help='Pas...
29.496296
96
0.581617
4dab6fa48871471f8c78467c6c19c2f4796c648d
492
py
Python
bin/fastaSlice.py
PapenfussLab/Mungo
02c5b0e48ecd28596cb9481b282753859f47fed6
[ "Artistic-2.0" ]
1
2015-09-16T07:53:18.000Z
2015-09-16T07:53:18.000Z
bin/fastaSlice.py
PapenfussLab/Mungo
02c5b0e48ecd28596cb9481b282753859f47fed6
[ "Artistic-2.0" ]
null
null
null
bin/fastaSlice.py
PapenfussLab/Mungo
02c5b0e48ecd28596cb9481b282753859f47fed6
[ "Artistic-2.0" ]
3
2016-01-02T16:34:59.000Z
2021-07-21T04:21:55.000Z
#!/usr/bin/env python """ fastaSlice.py <fasta file> <first entry> <number> Author: Tony Papenfuss Date: Wed Apr 23 14:49:40 EST 2008 """ import os, sys from mungo.fasta import FastaFile if len(sys.argv)==1 or '-h' in sys.argv: sys.exit(__doc__) iFilename = sys.argv[1] start = int(sys.argv[2]) n = int(sys.ar...
15.870968
49
0.652439
de1de3ec768c895ea00cea8e734dc6f321c3ddd0
3,245
py
Python
IPython/zmq/session.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
1
2022-03-13T23:26:37.000Z
2022-03-13T23:26:37.000Z
IPython/zmq/session.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/zmq/session.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import uuid import pprint import zmq class Message(object): """A simple message object that maps dict keys to attributes. A Message can be created from a dict and a dict from a Message instance simply by calling dict(msg_obj).""" def __init__(self, msg_dict): dct = self.__dict_...
26.382114
81
0.566102
02b08fe6e21ba9e7f16c241b533afc1d17992978
3,103
py
Python
nlpfit/explanation/visualisation/vec_to_tflowvis.py
MFajcik/NLP-FIT
446ee99d5e8237da62bae3548f5de31e2f332d35
[ "MIT" ]
null
null
null
nlpfit/explanation/visualisation/vec_to_tflowvis.py
MFajcik/NLP-FIT
446ee99d5e8237da62bae3548f5de31e2f332d35
[ "MIT" ]
null
null
null
nlpfit/explanation/visualisation/vec_to_tflowvis.py
MFajcik/NLP-FIT
446ee99d5e8237da62bae3548f5de31e2f332d35
[ "MIT" ]
null
null
null
import argparse import os import re import sys import pandas as pd from gensim.models import KeyedVectors from nlpfit.other.logging_config import init_logging, logger_stub from nlpfit.preprocessing import lemmatize_list def get_words(input): cnwa = pd.read_csv(input, delimiter="\t", header=None) words = set...
43.704225
119
0.593619
431bd4661fd643b63fb4ddbfe9b8ecbc1da9c3b2
1,791
py
Python
SimVascular-master/Python/site-packages/sv_ml/factories/preprocessor_factory.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Python/site-packages/sv_ml/factories/preprocessor_factory.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Python/site-packages/sv_ml/factories/preprocessor_factory.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Stanford University, The Regents of the University of # California, and others. # # All Rights Reserved. # # See Copyright-SimVascular.txt for additional details. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentatio...
45.923077
74
0.771636
1e6bc469f7194e8f6eaffc018fcb1caaac7e2131
628
py
Python
topic/migrations/0003_auto_20190306_1228.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
6
2020-05-02T11:08:39.000Z
2021-07-20T02:55:47.000Z
topic/migrations/0003_auto_20190306_1228.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
8
2020-06-06T01:45:02.000Z
2022-03-12T00:24:54.000Z
topic/migrations/0003_auto_20190306_1228.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
3
2020-05-04T00:36:46.000Z
2021-02-15T09:49:44.000Z
# Generated by Django 2.1.4 on 2019-03-06 12:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('topic', '0002_auto_20190213_1229'), ] operations = [ migrations.AddField( model_name='create_topic_model', name='zhi...
26.166667
98
0.60828
6324798a4bb3d8a89e1635017d4869adb5d001d3
2,040
py
Python
third_party/tvcm/tvcm/style_sheet_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
2
2015-02-07T05:19:08.000Z
2016-12-12T21:17:50.000Z
third_party/tvcm/tvcm/style_sheet_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
null
null
null
third_party/tvcm/tvcm/style_sheet_unittest.py
Acidburn0zzz/trace-viewer
c4d7cee712b0306afc564787085cff76fd5bb5d9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import unittest from tvcm import style_sheet from tvcm import project as project_module from tvcm import resource_loader from tvcm import fake_...
29.565217
72
0.639706
f482f0d491562fd44756da047d0505afe07e0c86
3,346
py
Python
tests/acceptance/features/glancesync/steps/conflicts.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
tests/acceptance/features/glancesync/steps/conflicts.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
tests/acceptance/features/glancesync/steps/conflicts.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
# -*- coding: utf-8 -*- # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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: # # htt...
35.221053
116
0.737298
0ce85902719c9de2850a5df41757eb30ef0d52c6
242
py
Python
mwxml/iteration/util.py
framawiki/python-mwxml
6a8c18be99cd0bcee9c496e607f08bf4dfe5b510
[ "MIT" ]
23
2015-09-13T04:42:24.000Z
2021-05-28T23:28:57.000Z
mwxml/iteration/util.py
framawiki/python-mwxml
6a8c18be99cd0bcee9c496e607f08bf4dfe5b510
[ "MIT" ]
23
2015-01-14T04:48:59.000Z
2015-08-25T19:25:43.000Z
mwxml/iteration/util.py
framawiki/python-mwxml
6a8c18be99cd0bcee9c496e607f08bf4dfe5b510
[ "MIT" ]
14
2015-09-15T16:04:50.000Z
2022-01-09T19:18:39.000Z
def consume_tags(tag_map, element): value_map = {} for sub_element in element: tag_name = sub_element.tag if tag_name in tag_map: value_map[tag_name] = tag_map[tag_name](sub_element) return value_map
24.2
64
0.661157
b11dde9f963e126a69f253509fba773b960b9faf
2,133
py
Python
vulnerabilities/migrations/0008_ruby_importer.py
edoardolanzini/vulnerablecode
d33bd5215a94ea4301763baaf29f3cf22d86a9b4
[ "Apache-2.0" ]
null
null
null
vulnerabilities/migrations/0008_ruby_importer.py
edoardolanzini/vulnerablecode
d33bd5215a94ea4301763baaf29f3cf22d86a9b4
[ "Apache-2.0" ]
null
null
null
vulnerabilities/migrations/0008_ruby_importer.py
edoardolanzini/vulnerablecode
d33bd5215a94ea4301763baaf29f3cf22d86a9b4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in compli...
38.089286
93
0.732771
619e20a12326be7e7f4215aadd2281770a6cb2ab
63,451
py
Python
livius/video/processing/speakerTracking.py
papar22/livius
a28929ef27f9737a598bbae36360ebe7b55a3f41
[ "Unlicense" ]
1
2018-05-08T20:04:08.000Z
2018-05-08T20:04:08.000Z
livius/video/processing/speakerTracking.py
raffienficiaud/livius
a28929ef27f9737a598bbae36360ebe7b55a3f41
[ "Unlicense" ]
null
null
null
livius/video/processing/speakerTracking.py
raffienficiaud/livius
a28929ef27f9737a598bbae36360ebe7b55a3f41
[ "Unlicense" ]
null
null
null
""" This module implements various algorithms based on CMT for speaker tracking. The implementations are based on http://www.gnebehay.com/cmt/ and for more details, the readers will be reffered to the following paper. http://www.gnebehay.com/publications/wacv_2014/wacv_2014.pdf This algorithm has been combined with ...
37.65638
180
0.58371
5d474eb937aff799b65cbb2292034575c5d5bafe
26,294
py
Python
bulbs/element.py
rpedigoni/bulbs
0c0f4e5883ba796dff1afae5413b0388491eb55d
[ "BSD-3-Clause" ]
1
2017-06-14T13:57:23.000Z
2017-06-14T13:57:23.000Z
bulbs/element.py
rpedigoni/bulbs
0c0f4e5883ba796dff1afae5413b0388491eb55d
[ "BSD-3-Clause" ]
null
null
null
bulbs/element.py
rpedigoni/bulbs
0c0f4e5883ba796dff1afae5413b0388491eb55d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2012 James Thornton (http://jamesthornton.com) # BSD License (see LICENSE for details) # """ Vertex and Edge container classes and associated proxy classes. """ from .utils import u # Python 3 unicode from .utils import initialize_element, initialize_elements, coerce_id, get_logg...
25.930966
83
0.578345
64037c3f41a95e6e644632da51e808c5b3d1897e
1,704
py
Python
server.py
qfuggett/people-manager-flask
97511e14c26a90df5b3dc2117c504c7572532761
[ "Unlicense" ]
null
null
null
server.py
qfuggett/people-manager-flask
97511e14c26a90df5b3dc2117c504c7572532761
[ "Unlicense" ]
null
null
null
server.py
qfuggett/people-manager-flask
97511e14c26a90df5b3dc2117c504c7572532761
[ "Unlicense" ]
null
null
null
from flask import (Flask, render_template, request, redirect) from jinja2 import StrictUndefined from model import connect_to_db import crud app = Flask(__name__) app.jinja_env.undefined = StrictUndefined app.jinja_env.add_extension('jinja2.ext.loopcontrols') @app.route('/', methods=["GET", "POST"]) def homepage(): ...
27.047619
79
0.606808
d424c1c5ec98f58dcc1191c755acacf0c68d1cd3
923
py
Python
modules/exploitation/exploit-db.py
decidedlygray/ptf
f17f50606fac5ef30f42c0b5e0fa57b58f696b99
[ "FTL" ]
4,391
2015-05-12T19:30:45.000Z
2022-03-30T13:39:27.000Z
modules/exploitation/exploit-db.py
decidedlygray/ptf
f17f50606fac5ef30f42c0b5e0fa57b58f696b99
[ "FTL" ]
340
2015-05-14T13:50:44.000Z
2022-01-13T14:40:14.000Z
modules/exploitation/exploit-db.py
decidedlygray/ptf
f17f50606fac5ef30f42c0b5e0fa57b58f696b99
[ "FTL" ]
1,290
2015-05-13T00:24:58.000Z
2022-03-30T08:20:22.000Z
#!/usr/bin/env python ##################################### # Installation module for exploit-db ##################################### # AUTHOR OF MODULE NAME AUTHOR="Mauro Risonho de Paula Assumpcao (firebits)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update exploit-db - official exploit rep...
27.969697
147
0.699892
cf99b6eb624a659eb08fe61ff8373271785b8e21
1,441
py
Python
cheritest/trunk/tests/cp2/test_cp2_ldl_unalign.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
36
2015-05-29T16:47:19.000Z
2022-02-08T21:16:26.000Z
cheritest/trunk/tests/cp2/test_cp2_ldl_unalign.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
1
2015-10-14T13:05:21.000Z
2015-10-19T20:34:03.000Z
cheritest/trunk/tests/cp2/test_cp2_ldl_unalign.py
tupipa/beri
cef1b41d52592cfa7454ddf59f9f2994e447cd66
[ "Apache-2.0" ]
15
2015-06-11T07:10:58.000Z
2021-06-18T05:14:54.000Z
#- # Copyright (c) 2016 Michael Roe # All rights reserved. # # This software was developed by the University of Cambridge Computer # Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS) # project, funded by EPSRC grant EP/K008528/1. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BERI Open System...
40.027778
128
0.775156
c78e642828e459f5d8adcb6ca3bdece4b26217b4
123
py
Python
Exercicios/ex021.py
LuccasAls/Python-Exercicos
6f51eec061cd1d6d5bc827a46670d2377162afee
[ "MIT" ]
null
null
null
Exercicios/ex021.py
LuccasAls/Python-Exercicos
6f51eec061cd1d6d5bc827a46670d2377162afee
[ "MIT" ]
null
null
null
Exercicios/ex021.py
LuccasAls/Python-Exercicos
6f51eec061cd1d6d5bc827a46670d2377162afee
[ "MIT" ]
null
null
null
from pygame import mixer mixer.init() mixer.music.load('arquivo da musica') mixer.music.play() input('Agora você escuta?')
20.5
37
0.756098
d763fec1741acdf79cac1abc802e4ddb0818d788
126
py
Python
formbuilder/widgets.py
frueringborgerforening/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
1
2018-05-14T20:19:42.000Z
2018-05-14T20:19:42.000Z
formbuilder/widgets.py
andreasbrakhagecarstensen/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
78
2018-03-18T09:36:26.000Z
2019-12-16T21:06:09.000Z
formbuilder/widgets.py
andreasbrakhagecarstensen/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
null
null
null
from django.forms import RadioSelect class FrueringRadio(RadioSelect): template_name = 'formbuilder/widgets/radio.html'
21
52
0.801587
396770164381ec5dadc58b51d16894d9b242cb20
96
py
Python
app/src/domain/entity/__init__.py
hagifoo/gae-pomodoro
6babdfc8d4ac8483b59b4da1d2c9b13fddcc4383
[ "MIT" ]
null
null
null
app/src/domain/entity/__init__.py
hagifoo/gae-pomodoro
6babdfc8d4ac8483b59b4da1d2c9b13fddcc4383
[ "MIT" ]
null
null
null
app/src/domain/entity/__init__.py
hagifoo/gae-pomodoro
6babdfc8d4ac8483b59b4da1d2c9b13fddcc4383
[ "MIT" ]
null
null
null
from .user import User from .timer import Timer from .slack import Slack from .team import Team
19.2
24
0.791667
7f5e94f9f52510ba3a9e930331c761552234bd10
48,756
py
Python
eth_tester/utils/backend_testing.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
null
null
null
eth_tester/utils/backend_testing.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
null
null
null
eth_tester/utils/backend_testing.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import pytest from cytoolz.dicttoolz import ( merge, assoc, dissoc, ) import rlp from eth_utils import ( is_address, is_integer, is_same_address, is_dict, is_hex, denoms, ) from eth_keys import ( keys, ) from eth_tester.constants impo...
38.120407
2,437
0.676307