hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 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 251 | max_forks_repo_name stringlengths 4 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 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f33e5b8c215544f5bd67330d63bc69f98ee16b3 | 1,182 | py | Python | catatom2osm/csvtools.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 8 | 2018-01-30T18:26:29.000Z | 2022-02-03T19:16:54.000Z | catatom2osm/csvtools.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 99 | 2018-01-22T08:37:53.000Z | 2022-03-28T13:50:06.000Z | catatom2osm/csvtools.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 9 | 2018-01-21T15:51:41.000Z | 2022-01-04T18:35:19.000Z | # -*- coding: utf-8 -*-
"""
CSV related help functions
"""
from __future__ import unicode_literals
oldstr = str
from builtins import str
import csv
import io
import six
from catatom2osm.config import eol, encoding, delimiter
def dict2csv(csv_path, a_dict, sort=None):
"""
Writes a dictionary to a csv file, op... | 30.307692 | 80 | 0.609137 |
0f3599212f84331de9e9f8ea42c3d1bb4ebb50e9 | 1,881 | py | Python | mpesaviz/apps/transactions/models.py | savioabuga/mpesaviz | 2567ab5646f8f684c32b0644f5b06d3cc58c62bc | [
"BSD-3-Clause"
] | 2 | 2015-07-07T09:30:27.000Z | 2017-01-31T20:26:45.000Z | mpesaviz/apps/transactions/models.py | savioabuga/mpesaviz | 2567ab5646f8f684c32b0644f5b06d3cc58c62bc | [
"BSD-3-Clause"
] | null | null | null | mpesaviz/apps/transactions/models.py | savioabuga/mpesaviz | 2567ab5646f8f684c32b0644f5b06d3cc58c62bc | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from model_utils import Choices
from model_utils.models import TimeStampedModel
from phonenumber_field.modelfields import PhoneNumberField
from django_pandas.io import read_frame
| 47.025 | 141 | 0.714514 |
0f38c2d9ebe98c43fd9dab61490261ca69679e03 | 4,268 | py | Python | ros_bt_py/test/rostest/test_topic_publish_leaf.py | fzi-forschungszentrum-informatik/ros_bt_py | ed65e2b2f0a03411101f455c0ab38401ba50bada | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2022-03-11T14:30:43.000Z | 2022-03-31T07:21:35.000Z | ros_bt_py/test/rostest/test_topic_publish_leaf.py | fzi-forschungszentrum-informatik/ros_bt_py | ed65e2b2f0a03411101f455c0ab38401ba50bada | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | ros_bt_py/test/rostest/test_topic_publish_leaf.py | fzi-forschungszentrum-informatik/ros_bt_py | ed65e2b2f0a03411101f455c0ab38401ba50bada | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -------- BEGIN LICENSE BLOCK --------
# Copyright 2022 FZI Forschungszentrum Informatik
#
# 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 ab... | 38.45045 | 85 | 0.702905 |
0f39a392c46b7861f4edc27f2f6de39934c00cb4 | 1,236 | py | Python | workbench/awt/migrations/0012_auto_20201012_1433.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 15 | 2020-09-02T22:17:34.000Z | 2022-02-01T20:09:10.000Z | workbench/awt/migrations/0012_auto_20201012_1433.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 18 | 2020-01-08T15:28:26.000Z | 2022-02-28T02:46:41.000Z | workbench/awt/migrations/0012_auto_20201012_1433.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 8 | 2020-09-29T08:00:24.000Z | 2022-01-16T11:58:19.000Z | # Generated by Django 3.1.2 on 2020-10-12 12:33
from django.db import migrations, models
| 26.869565 | 84 | 0.514563 |
0f3b23a2fcba20e9abd0c4b58ad9673908703395 | 7,665 | py | Python | tfsnippet/examples/auto_encoders/vae.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | null | null | null | tfsnippet/examples/auto_encoders/vae.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | null | null | null | tfsnippet/examples/auto_encoders/vae.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
import click
import tensorflow as tf
from tensorflow.contrib.framework import arg_scope, add_arg_scope
from tfsnippet.bayes import BayesianNet
from tfsnippet.distributions import Normal, Bernoulli
from tfsnippet.examples.datasets import load_mnist, bernoulli_flow
from tfsnippe... | 36.5 | 80 | 0.616438 |
0f3b396237e70d3630a363876379a8df6d433857 | 7,582 | py | Python | HW2/Q3/Q3.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | HW2/Q3/Q3.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | HW2/Q3/Q3.py | markblitz/RU_573_HW | b6b9799b1af2f1d5e65362e7fb841cd30bbc951f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
import time
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
import copy
# In[22]:
# helps from: https://www.geeksforgeeks.org/merge-sort/
# iterative merge sort
# helps: https://www.geeksforgeeks.org/iterative-merg... | 30.087302 | 198 | 0.643366 |
0f3b73e98465b8b1b4c9ad2d85ba8b9865ebbc38 | 653 | py | Python | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null | pybwap/__init__.py | NQysit/pybwap | f95af52ed756f0a18eb32cd2b3917f7f66848a9d | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
from flask import Flask, render_template, send_from_directory
app = Flask(__name__)
app.config.from_object('config.DevelopmentConfig')
from .main import main_blueprint
app.register_blueprint(main_blueprint)
from .ch_0x00 import ch_0x00_blueprint
app.register_blueprint(ch_0x00_bl... | 23.321429 | 86 | 0.767228 |
0f3c60ee8b70b4ccd75b5a518e5ea43030d24c12 | 2,757 | py | Python | Main.py | zy-zhou/MLCS | 478c95efb63d6c285a22c469fa7773e8f801052a | [
"Apache-2.0"
] | null | null | null | Main.py | zy-zhou/MLCS | 478c95efb63d6c285a22c469fa7773e8f801052a | [
"Apache-2.0"
] | null | null | null | Main.py | zy-zhou/MLCS | 478c95efb63d6c285a22c469fa7773e8f801052a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 8 19:47:52 2019
@author: Zhou
"""
import torch
from Utils import load
from Data import load_data
from Modules import BasicDecoder, RNNEncoder
from Models import Model, MetaTranslator
from Train import MetaTrainer
import warnings
warnings.filterwarnings("igno... | 42.415385 | 110 | 0.590497 |
0f3c685bf3c706b184f1be524f6612e1e97c2875 | 1,704 | py | Python | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | designate/backend/impl_infoblox/record_factory.py | infobloxopen/designate | 531a28b8453cfe5641284a16e0342db8d709ab36 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Infoblox
#
# 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, so... | 39.627907 | 75 | 0.7277 |
0f3cbdf274389ec4a32274a5efe6d186c978a7c6 | 4,403 | py | Python | infer.py | AnnLIU15/SegCovid | e8a1ccadfbe56ddc7f1adf33225f77836436fa85 | [
"MIT"
] | null | null | null | infer.py | AnnLIU15/SegCovid | e8a1ccadfbe56ddc7f1adf33225f77836436fa85 | [
"MIT"
] | null | null | null | infer.py | AnnLIU15/SegCovid | e8a1ccadfbe56ddc7f1adf33225f77836436fa85 | [
"MIT"
] | null | null | null | import os
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from tqdm import tqdm
from datasets.inferDataSet import infer_DataSet
from models.model import U2NET
from segConfig import getConfig
if __name__ == '__main__':
''... | 38.286957 | 105 | 0.578015 |
0f3d7d67b5dc23a19bea382775a9d2a046dac5d0 | 11,458 | py | Python | spgateway/helpers.py | cjltsod/django-spgateway | ba7a85394473254942417889f0a9f9fad0d43e3f | [
"MIT"
] | 2 | 2018-03-13T06:50:25.000Z | 2021-12-21T11:33:11.000Z | spgateway/helpers.py | cjltsod/django-spgateway | ba7a85394473254942417889f0a9f9fad0d43e3f | [
"MIT"
] | 4 | 2018-03-13T08:38:45.000Z | 2018-08-11T19:54:45.000Z | spgateway/helpers.py | cjltsod/django-spgateway | ba7a85394473254942417889f0a9f9fad0d43e3f | [
"MIT"
] | 1 | 2020-01-07T23:21:52.000Z | 2020-01-07T23:21:52.000Z | import logging
| 37.322476 | 126 | 0.566242 |
0f42949be84c6e30aca5f319502468abb01b7512 | 849 | py | Python | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/s3/bucket/transition.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Model
from crescent.functions import AnyFn
from .constants import AllowedValues, ModelRequiredProperties
from typing import Union
| 38.590909 | 85 | 0.759717 |
0f42eaeb31887e9ae1caee055573b220ada36e35 | 1,347 | py | Python | shop/migrations/0002_add_example_data.py | Chaiok/-django_ne_copipast_shop_master2 | 67abde1191f15bbf366b8666f0a1c17f7c4e0c9f | [
"MIT"
] | 1 | 2022-02-05T17:28:54.000Z | 2022-02-05T17:28:54.000Z | shop/migrations/0002_add_example_data.py | Chaiok/-django_ne_copipast_shop_master2 | 67abde1191f15bbf366b8666f0a1c17f7c4e0c9f | [
"MIT"
] | null | null | null | shop/migrations/0002_add_example_data.py | Chaiok/-django_ne_copipast_shop_master2 | 67abde1191f15bbf366b8666f0a1c17f7c4e0c9f | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-13 17:54
from django.db import migrations
_CAR_GOODS = ''
_APPLIANCES = ' '
def _create_categories(apps, schema_editor) -> None:
""" """
# noinspection PyPep8Naming
Category = apps.get_model('shop', 'Category')
Category.objects.get_or_create(name=_CAR_GOODS)
... | 24.944444 | 56 | 0.6585 |
0f431252562898282c2c89c51ee2ef686e116a5d | 17,992 | py | Python | modules/account.py | keyvantaj/Quantitative | 77c7c414c47ed3fe22873b87ed15e92dc62226da | [
"MIT"
] | 9 | 2020-10-11T21:09:41.000Z | 2022-02-17T01:52:04.000Z | modules/account.py | ajmal017/Quantitative | 7af681677031987c64f402d8cb06b358cedd184a | [
"MIT"
] | null | null | null | modules/account.py | ajmal017/Quantitative | 7af681677031987c64f402d8cb06b358cedd184a | [
"MIT"
] | 3 | 2020-07-18T02:19:08.000Z | 2022-01-30T15:37:02.000Z | from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import Contract
from ibapi.order import Order
from ibapi.scanner import ScannerSubscription
from ibapi.ticktype import TickTypeEnum
from ibapi.common import *
from ibapi.tag_value import TagValue
from ibapi.execution import Executio... | 35.769384 | 116 | 0.508337 |
0f4337c77c2dd91a0006d123d0ff0ba1d1d0ff4b | 3,767 | py | Python | senior/StavleLLVE/train.py | LeiGitHub1024/lowlight | 86649ae4275b8908d39561792a8068d391318f8d | [
"MIT"
] | 79 | 2021-03-27T04:22:12.000Z | 2022-03-30T03:15:04.000Z | senior/StavleLLVE/train.py | LeiGitHub1024/lowlight | 86649ae4275b8908d39561792a8068d391318f8d | [
"MIT"
] | 3 | 2021-03-30T09:31:32.000Z | 2021-09-02T02:02:33.000Z | senior/StavleLLVE/train.py | LeiGitHub1024/lowlight | 86649ae4275b8908d39561792a8068d391318f8d | [
"MIT"
] | 16 | 2021-04-09T05:38:32.000Z | 2022-03-23T13:33:50.000Z | import argparse
import os, socket
from datetime import datetime
import shutil
import numpy as np
import torch
import torch.nn as nn
from torch import optim
from model import UNet
from warp import WarpingLayerBWFlow
from torch.utils.tensorboard import SummaryWriter
from dataloader import llenDataset
from torch.utils.... | 33.633929 | 130 | 0.674542 |
0f4590671b6b3912fdd3111d3e454e140576dfa5 | 190 | py | Python | dask_image/__init__.py | akhalighi/dask-image | 8ff0f16dba8a874c7d8d3adf4e5e8bac5f4ee1bf | [
"BSD-3-Clause"
] | 2 | 2020-06-05T07:17:57.000Z | 2020-06-05T09:10:16.000Z | dask_image/__init__.py | akhalighi/dask-image | 8ff0f16dba8a874c7d8d3adf4e5e8bac5f4ee1bf | [
"BSD-3-Clause"
] | 15 | 2016-11-01T12:54:03.000Z | 2019-02-28T18:16:48.000Z | mplview/__init__.py | jakirkham/mplview | 0847e4ccf3c4247cb72f35600b7f5f553b429c2d | [
"BSD-3-Clause"
] | 1 | 2016-11-17T06:09:16.000Z | 2016-11-17T06:09:16.000Z | # -*- coding: utf-8 -*-
__author__ = """John Kirkham"""
__email__ = "kirkhamj@janelia.hhmi.org"
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 21.111111 | 39 | 0.721053 |
0f46ab87cf6a22e3811c59d7f17625bcf1eea00d | 10,999 | py | Python | OPTICS2.py | k-kapp/Clustering-Algos | 0e8925b854f70eabc926de331cbd3478de6cf90c | [
"Apache-2.0"
] | null | null | null | OPTICS2.py | k-kapp/Clustering-Algos | 0e8925b854f70eabc926de331cbd3478de6cf90c | [
"Apache-2.0"
] | null | null | null | OPTICS2.py | k-kapp/Clustering-Algos | 0e8925b854f70eabc926de331cbd3478de6cf90c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 30 21:25:24 2015
@author: Konrad
"""
import copy
import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sc_p
dat = gen_clusters([[1, 1], [6, 7], [10, 15], [15, 15]], 200);
data = make_pts(dat);
optics = OPTICS(... | 35.028662 | 103 | 0.489408 |
0f4747bfbaa5296131febb1ca35e289b15c1fa5d | 921 | py | Python | pandayoda/test/test_interaction.py | PalNilsson/panda-yoda | cf3c3786ca8937c9a61730b6201edd5bfaeda022 | [
"Apache-2.0"
] | null | null | null | pandayoda/test/test_interaction.py | PalNilsson/panda-yoda | cf3c3786ca8937c9a61730b6201edd5bfaeda022 | [
"Apache-2.0"
] | 22 | 2018-07-26T15:54:36.000Z | 2019-05-27T09:28:48.000Z | pandayoda/test/test_interaction.py | PalNilsson/panda-yoda | cf3c3786ca8937c9a61730b6201edd5bfaeda022 | [
"Apache-2.0"
] | 3 | 2018-05-21T13:12:10.000Z | 2019-04-02T08:41:57.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
#
# Authors:
# - Taylor Childers (john.taylor.childers@cern.ch)
# - Paul Nilsson (paul.nilsson@cern.... | 30.7 | 66 | 0.67861 |
0f47798905b7c3b31ed013305b5da89834823c20 | 3,452 | py | Python | tools/instrumentation_helpers/instrumentor.py | mikezucc/xchammer | 15659a678c24208e80e11713559b0380cc01f8fd | [
"Apache-2.0"
] | null | null | null | tools/instrumentation_helpers/instrumentor.py | mikezucc/xchammer | 15659a678c24208e80e11713559b0380cc01f8fd | [
"Apache-2.0"
] | null | null | null | tools/instrumentation_helpers/instrumentor.py | mikezucc/xchammer | 15659a678c24208e80e11713559b0380cc01f8fd | [
"Apache-2.0"
] | null | null | null | import os
import time
import re
import socket
import json
import platform
import multiprocessing
import getpass
# Set this to the value of the statsd backend
# Consider:
# - allowing the user to specify this as a config
# - adding the ability to load hooks as an external repo.
TSD_HOST = ""
TSD_PORT = 80
TSD_TIMEOUT_S... | 28.065041 | 85 | 0.64774 |
0f47f785479aecc6801edc61672d6949600791f3 | 5,271 | py | Python | peer/lifecycle/db_pb2.py | jeffgarratt/fabric-prototype | 46cfc67a1d74d1f38f498d3409327692fb733fd0 | [
"CC-BY-4.0"
] | 6 | 2017-10-16T13:46:46.000Z | 2020-02-28T07:48:51.000Z | peer/lifecycle/db_pb2.py | jeffgarratt/fabric-prototype | 46cfc67a1d74d1f38f498d3409327692fb733fd0 | [
"CC-BY-4.0"
] | 18 | 2017-10-02T16:31:51.000Z | 2020-02-24T21:39:20.000Z | peer/lifecycle/db_pb2.py | jeffgarratt/fabric-prototype | 46cfc67a1d74d1f38f498d3409327692fb733fd0 | [
"CC-BY-4.0"
] | 4 | 2019-02-01T14:46:21.000Z | 2021-06-01T05:49:11.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: peer/lifecycle/db.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection... | 36.604167 | 447 | 0.751281 |
0f4928cee3b81be294472e379d117e0b188de64b | 2,025 | py | Python | minepdf/cidsystem.py | jonix6/minepdf | 6c57427fb16622a1b9960f6e7d514487d9bcd877 | [
"MIT"
] | 2 | 2021-01-29T07:59:17.000Z | 2021-04-01T06:08:30.000Z | minepdf/cidsystem.py | jonix6/minepdf | 6c57427fb16622a1b9960f6e7d514487d9bcd877 | [
"MIT"
] | null | null | null | minepdf/cidsystem.py | jonix6/minepdf | 6c57427fb16622a1b9960f6e7d514487d9bcd877 | [
"MIT"
] | 1 | 2021-03-05T11:14:14.000Z | 2021-03-05T11:14:14.000Z |
import re
from collections import OrderedDict
import struct
import os
import decoder748
REG_EXP = re.compile(r'^\s*<([0-9a-f]+)>\s+<([0-9a-f]+)>\s+(\d+)$', re.M)
def getCMap(cmapType, cmap={}):
if cmapType.startswith('Founder-') and cmapType.endswith('748'):
decoder = decoder748.encoding(cmapType)
... | 23.275862 | 73 | 0.571358 |
0f498fca97c908ff5fcb81796dcc212092f249b8 | 6,570 | py | Python | src/libtakiyasha/qmc/ciphers/modern.py | nukemiko/takiyasha | d0e2ebab2a476646313a1fd412f55b9d1300ea87 | [
"MIT"
] | 15 | 2022-01-16T16:13:20.000Z | 2022-03-27T15:30:51.000Z | src/libtakiyasha/qmc/ciphers/modern.py | nukemiko/takiyasha | d0e2ebab2a476646313a1fd412f55b9d1300ea87 | [
"MIT"
] | null | null | null | src/libtakiyasha/qmc/ciphers/modern.py | nukemiko/takiyasha | d0e2ebab2a476646313a1fd412f55b9d1300ea87 | [
"MIT"
] | 2 | 2022-01-20T18:59:07.000Z | 2022-01-26T08:09:15.000Z | from __future__ import annotations
import os
from typing import Generator
from ...common import Cipher, KeylessCipher
from ...utils import bytesxor
QMCv1_KEYSTREAM_1ST_SEGMENT = b''
QMCv1_KEYSTREAM_REMAINING_SEGMENT = b''
__all__ = ['DynamicMap', 'ModifiedRC4', 'StaticMap']
def get_seg_skip(self, v: int) -... | 32.85 | 114 | 0.586149 |
0f49b746e381f08fdc32de7957fed297c294cb90 | 1,797 | py | Python | src/process_user_input.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | 1 | 2021-01-15T11:23:20.000Z | 2021-01-15T11:23:20.000Z | src/process_user_input.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | null | null | null | src/process_user_input.py | AndreasVikke/ComputerScience-Final | 52d09a5876bfde661a00736712db6e3d19be877d | [
"MIT"
] | null | null | null | """
Processes user input from slack
:license: MIT
"""
import json
from typing import Dict
from src.modules.user_input_global import UserInputGlobal
from src.modules.user_input_handle_block_action import UserInputHandleBlockAction
from src.modules.user_input_handle_view_submission import UserInputHandleViewSubm... | 30.982759 | 88 | 0.694491 |
0f4a2c92b201d6a14dd11e24d76deccb2e16f0c1 | 15,082 | py | Python | cflearn/api/ml/interface.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 400 | 2020-07-05T18:55:49.000Z | 2022-02-21T02:33:08.000Z | cflearn/api/ml/interface.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 82 | 2020-08-01T13:29:38.000Z | 2021-10-09T07:13:44.000Z | cflearn/api/ml/interface.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 34 | 2020-07-05T21:15:34.000Z | 2021-12-20T08:45:17.000Z | import os
import json
import shutil
import numpy as np
from typing import Any
from typing import Dict
from typing import List
from typing import Type
from typing import Tuple
from typing import Union
from typing import Callable
from typing import Optional
from typing import NamedTuple
from tqdm.autonotebook import tq... | 34.045147 | 87 | 0.630553 |
0f4a41bba9d795071136091d1dc496c27479a9f9 | 1,163 | py | Python | netta/a.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | null | null | null | netta/a.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | 1 | 2020-03-30T09:26:59.000Z | 2020-03-30T09:26:59.000Z | netta/a.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | null | null | null | # -*- encoding:utf8 -*-
# author: Shulei
# e-mail: 1191543592@qq.com
# time: 2019/4/2 10:00
import time
# getsetdelete__get__(), __set__(),__delete__()
# , Dadej
# Descriptors are class attributes (like properties or methods) with any of the following special methods:
# __get__ (non-data descriptor method, for examp... | 24.229167 | 106 | 0.687876 |
0f4a88ad12911b2f8374918ec047ffaa3dd9469e | 21,511 | py | Python | ensembler/visualisation/plotConveyorBelt.py | philthiel/Ensembler | 943efac3c673eb40165927e81336386788e3a19f | [
"MIT"
] | 39 | 2020-05-19T08:45:27.000Z | 2022-03-17T16:58:34.000Z | ensembler/visualisation/plotConveyorBelt.py | SchroederB/Ensembler | 943efac3c673eb40165927e81336386788e3a19f | [
"MIT"
] | 38 | 2020-06-18T13:02:18.000Z | 2022-02-25T14:29:17.000Z | ensembler/visualisation/plotConveyorBelt.py | SchroederB/Ensembler | 943efac3c673eb40165927e81336386788e3a19f | [
"MIT"
] | 13 | 2020-05-19T08:45:57.000Z | 2022-03-10T16:18:20.000Z | import matplotlib.patches as patches
import matplotlib.patheffects as path_effects
import matplotlib.pyplot as plt
import numpy as np
| 48.448198 | 165 | 0.5182 |
0f4aea28cd9c70e23bcd7e3a57f7b80215d70f0c | 476 | py | Python | data_structures/binary_tree/__init__.py | Mhassanbughio/Python-1 | 704c0f93425c53fcadcdbb3dbdf337b0598079fd | [
"MIT"
] | 2 | 2022-01-13T04:56:29.000Z | 2022-01-26T05:09:34.000Z | data_structures/binary_tree/__init__.py | Mhassanbughio/Python-1 | 704c0f93425c53fcadcdbb3dbdf337b0598079fd | [
"MIT"
] | null | null | null | data_structures/binary_tree/__init__.py | Mhassanbughio/Python-1 | 704c0f93425c53fcadcdbb3dbdf337b0598079fd | [
"MIT"
] | null | null | null | # breadth = 120 units, length = 160 units, 1 sq unit cost = Rs 2000
r = Rectangle(160, 120, 2000)
print("Area of Rectangle: %s sq units" % (r.get_area()))
| 34 | 67 | 0.657563 |
0f4afaff8b78fa0f03f69df31da420a7dd7792c9 | 20,637 | py | Python | mll/discrete_agent_play.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | 2 | 2021-07-09T16:32:00.000Z | 2022-03-21T17:32:39.000Z | mll/discrete_agent_play.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | null | null | null | mll/discrete_agent_play.py | asappresearch/compositional-inductive-bias | 2c67713306ec6591f397ca252f915c3edc5a794f | [
"MIT"
] | 1 | 2021-07-09T16:32:02.000Z | 2021-07-09T16:32:02.000Z | """
one agent chooses an action, says it. other agent does it. both get a point if right
this file was forked from mll/discrete_bottleneck_discrete_input.py
"""
import torch
import torch.nn.functional as F
from torch import nn, optim
# from envs.world3c import World
from ulfs import alive_sieve, rl_common
from ulfs.s... | 36.91771 | 120 | 0.621941 |
0f4bf459dfea724ef4363f595d32c0bc5922dd5e | 17,993 | py | Python | maggy/searchspace.py | amacati/maggy | 4d4fef5e3dbb60e2aa935d6236cc0cd53477277a | [
"Apache-2.0"
] | 81 | 2019-02-18T15:16:45.000Z | 2022-02-17T06:13:17.000Z | maggy/searchspace.py | ssheikholeslami/maggy | 0d9a4cbbf6120d7453b75515b082feae3c3530c2 | [
"Apache-2.0"
] | 40 | 2019-04-29T15:03:28.000Z | 2022-03-09T09:29:28.000Z | maggy/searchspace.py | ssheikholeslami/maggy | 0d9a4cbbf6120d7453b75515b082feae3c3530c2 | [
"Apache-2.0"
] | 16 | 2019-02-19T14:25:35.000Z | 2021-02-25T11:41:04.000Z | #
# Copyright 2020 Logical Clocks AB
#
# 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 ag... | 37.485417 | 121 | 0.562997 |
0f4d1234aeefbd86b891c4d016b9bc7565fad846 | 440 | py | Python | examples/fiducials.py | alisterburt/yet-another-imod-wrapper | c99eb751ccca59d83400f734dd8af621954ecd5c | [
"BSD-3-Clause"
] | null | null | null | examples/fiducials.py | alisterburt/yet-another-imod-wrapper | c99eb751ccca59d83400f734dd8af621954ecd5c | [
"BSD-3-Clause"
] | null | null | null | examples/fiducials.py | alisterburt/yet-another-imod-wrapper | c99eb751ccca59d83400f734dd8af621954ecd5c | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
import numpy as np
from yet_another_imod_wrapper.fiducials import run_fiducial_based_alignment
TEST_DATA_DIR = Path(__file__).parent.parent / 'tilt_series'
run_fiducial_based_alignment(
tilt_series_file=TEST_DATA_DIR / 'my_prefix_TS_01.mrc',
tilt_angles=np.arange(-60, 63, 3),
pi... | 25.882353 | 75 | 0.786364 |
0f4db0e6bc89de8ac27da4ed1b34ec1251d19ce7 | 6,107 | py | Python | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | 1 | 2020-06-23T10:41:33.000Z | 2020-06-23T10:41:33.000Z | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | Testing/daemon_Fake_Dev.py | nandor1992/FogOfThings | c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import couchdb
import pika
import ast
import time
import threading
import ctypes
import datetime
import sys
from daemon import Daemon
import ConfigParser
import logging
t=time
t.clock()
PIDFILE="/home/pi/FogOfThings/Device/pid/fake_dev.pid"
Config=ConfigParser.ConfigParser()
Config.read("/home/pi/... | 33.190217 | 132 | 0.594727 |
0f4dea2186bb00ab02de2842112fe6cfb2d318d8 | 3,663 | py | Python | src/mavelp/kernel_methods.py | nanoMFG/VELP | 08225e863a9e9811fcd9e09cd32abc97719fbb7b | [
"MIT"
] | null | null | null | src/mavelp/kernel_methods.py | nanoMFG/VELP | 08225e863a9e9811fcd9e09cd32abc97719fbb7b | [
"MIT"
] | 1 | 2020-12-11T19:18:17.000Z | 2020-12-15T02:59:14.000Z | src/mavelp/kernel_methods.py | nanoMFG/VELP | 08225e863a9e9811fcd9e09cd32abc97719fbb7b | [
"MIT"
] | 1 | 2021-03-16T02:04:12.000Z | 2021-03-16T02:04:12.000Z | import numpy as np
from sklearn.kernel_ridge import KernelRidge
from sklearn.model_selection import GridSearchCV
from sklearn.gaussian_process import GaussianProcessRegressor
import sklearn.gaussian_process.kernels as Kernels
from scipy.optimize import minimize
from numpy.linalg import norm
import tensorflow as tf
fr... | 34.885714 | 123 | 0.514606 |
0f4e902dad9f3ec645661170ae5c6747b0ba3683 | 307 | py | Python | menpo/io/input/landmark_image.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | null | null | null | menpo/io/input/landmark_image.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2019-03-09T16:01:46.000Z | 2019-03-09T16:01:46.000Z | menpo/io/input/landmark_image.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2020-05-01T09:55:57.000Z | 2020-05-01T09:55:57.000Z | from functools import partial
from .landmark import asf_importer, pts_importer
asf_image_importer = partial(asf_importer, image_origin=True)
asf_image_importer.__doc__ = asf_importer.__doc__
pts_image_importer = partial(pts_importer, image_origin=True)
pts_image_importer.__doc__ = pts_importer.__doc__
| 27.909091 | 61 | 0.85342 |
0f502bd0a6d75cd12fc714caaff3cdee0cd284dd | 2,603 | py | Python | corpus2alpino/targets/filesystem.py | UUDigitalHumanitieslab/folia2alpino | 4181955ccecadd02e311a548d67b17c09bfd81d4 | [
"MIT"
] | 2 | 2018-09-13T15:47:11.000Z | 2021-06-02T16:06:11.000Z | corpus2alpino/targets/filesystem.py | UUDigitalHumanitieslab/folia2alpino | 4181955ccecadd02e311a548d67b17c09bfd81d4 | [
"MIT"
] | 8 | 2018-07-24T15:34:35.000Z | 2021-05-03T10:29:28.000Z | corpus2alpino/targets/filesystem.py | UUDigitalHumanitieslab/folia2alpino | 4181955ccecadd02e311a548d67b17c09bfd81d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from corpus2alpino.abstracts import Target
from corpus2alpino.models import Document
from os import path, makedirs
from pathlib import Path
from typing import cast, Any
| 32.135802 | 88 | 0.558202 |
0f508fc8a3488c8b14e0ec286b215e156a8f0aea | 1,633 | py | Python | Substring with Concatenation of All Words.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Substring with Concatenation of All Words.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Substring with Concatenation of All Words.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | '''
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters.
Example 1:
Input:
s = "barfoothefoobarman",
words = ["foo","bar"]
Output: [0... | 27.677966 | 233 | 0.471525 |
0f50e2935cc8d40993b0200cc3b73be06a60af61 | 372 | py | Python | renomearArquivo.py | MarianaFRocha/Manipulacao-de-Arquivos | ee1c23e98579cb987d5df159536c6f366657efb0 | [
"MIT"
] | null | null | null | renomearArquivo.py | MarianaFRocha/Manipulacao-de-Arquivos | ee1c23e98579cb987d5df159536c6f366657efb0 | [
"MIT"
] | null | null | null | renomearArquivo.py | MarianaFRocha/Manipulacao-de-Arquivos | ee1c23e98579cb987d5df159536c6f366657efb0 | [
"MIT"
] | null | null | null | import os
# exemplo alterado de EX_10.5.py para 10_5.py
for nome in os.listdir('./Minicurso/Minicurso API'):
# alterar conforme sua necessidade de gerao de nomes e layout de arquivos
os.rename("./Minicurso/Minicurso API/"+nome, "./Minicurso/Minicurso API/"+nome+"_Minicurso_API.png")
print("arquivo " ... | 46.5 | 104 | 0.712366 |
0f510ccb2bf6d059b49802e8ca3cb256a8c92416 | 1,939 | py | Python | setup.py | JoffreyN/HTMLReport | 5216eeed4b30219dcef7d162f8ad6575d0e8b553 | [
"MIT"
] | 4 | 2018-08-17T03:58:41.000Z | 2022-01-19T06:52:21.000Z | setup.py | JoffreyN/HTMLReport | 5216eeed4b30219dcef7d162f8ad6575d0e8b553 | [
"MIT"
] | null | null | null | setup.py | JoffreyN/HTMLReport | 5216eeed4b30219dcef7d162f8ad6575d0e8b553 | [
"MIT"
] | 3 | 2018-11-09T03:47:31.000Z | 2022-01-19T07:23:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info < (3, 5):
raise RuntimeError("The minimum support Python 3.5")
from setuptools import find_packages
from setuptools import setup
from HTMLReport import __version__, __author__
try:
from pypandoc import convert
r... | 34.625 | 83 | 0.635379 |
0f51ec37186fd8a1db6bbc54e44a5583d0b59c2f | 426 | py | Python | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | batch.py | SergioLaRosa/downloaderdude | 7f3fea4d5019d199b1ae2f5a62c66a4550321e67 | [
"MIT"
] | null | null | null | # URLs processed simultaneously
| 21.3 | 57 | 0.570423 |
0f524b0eb768223ca18a95403ff45b448471be06 | 2,712 | py | Python | workflow/scripts/download_flyxcdb_data.py | tomasMasson/wiring-molecules | 71a77de122a558a56fd7b9a735c1fc00e4a32c90 | [
"MIT"
] | null | null | null | workflow/scripts/download_flyxcdb_data.py | tomasMasson/wiring-molecules | 71a77de122a558a56fd7b9a735c1fc00e4a32c90 | [
"MIT"
] | null | null | null | workflow/scripts/download_flyxcdb_data.py | tomasMasson/wiring-molecules | 71a77de122a558a56fd7b9a735c1fc00e4a32c90 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"Download Drosophila melanogaster extracellular domain batabase (FlyXCDB) table, published in the Journal of Molecular Biology"
import click
import requests
import pandas as pd
from bs4 import BeautifulSoup
def scrape_url(url):
"""
Scrap the content from the input URL using Beautiful S... | 29.802198 | 127 | 0.669985 |
0f559b826d34c24f7992bcda817728b961f99017 | 17,662 | py | Python | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null | common/updatefiles.py | cheersalam/webrtc | 29e9cad470e6f8a95e2fc32bc111c8550c2ef0ca | [
"BSD-3-Clause"
] | null | null | null |
playerFilesWin = {
"lib/avcodec-56.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/avformat-56.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/avutil-54.dll" : { "flag_deps" : True, "should_be_removed" : True },
"lib/swscale-3.dll" : { "flag_deps" : True, "shou... | 60.486301 | 154 | 0.630563 |
0f58ae9c56e868959385146e7aab8ad6eb80f5da | 2,344 | py | Python | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 75 | 2020-07-20T01:33:15.000Z | 2022-03-26T11:55:20.000Z | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 12 | 2020-07-20T12:16:11.000Z | 2022-01-13T19:31:04.000Z | models/base_model.py | siyuhuang/PoseStylizer | d1d832781ddfd3efde24bf32b36a4074fafebcc1 | [
"BSD-3-Clause"
] | 16 | 2020-07-20T01:19:16.000Z | 2022-03-26T09:34:35.000Z | import os
import torch
import torch.nn as nn
import numpy as np
import pickle
| 30.441558 | 93 | 0.636092 |
0f5971ebdf54a0b419e55ff08d2e2bce549802f0 | 983 | py | Python | backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py | bitbyt3r/2ber | db1689010072c877cc83bd5b5922922456616094 | [
"MIT"
] | 6 | 2019-12-06T07:32:22.000Z | 2021-12-05T19:14:03.000Z | backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py | bitbyt3r/2ber | db1689010072c877cc83bd5b5922922456616094 | [
"MIT"
] | 99 | 2019-10-03T05:21:16.000Z | 2022-01-21T02:35:25.000Z | backend/tuber/migrations/versions/4ae40638e863_adding_hotel_block_to_requests.py | bitbyt3r/2ber | db1689010072c877cc83bd5b5922922456616094 | [
"MIT"
] | 6 | 2019-09-30T22:01:55.000Z | 2021-11-03T20:53:00.000Z | """Adding hotel block to requests
Revision ID: 4ae40638e863
Revises: 1708acb6e515
Create Date: 2021-11-15 20:42:51.723559
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4ae40638e863'
down_revision = '1708acb6e515'
branch_labels = None
depends_on = None
| 28.085714 | 86 | 0.709054 |
0f5990fc41a4d76565a7455e7e0dbf6f8cf899b9 | 8,660 | py | Python | xoinvader/collision.py | pankshok/xoinvader | f25e30431d4898f20626056c12853595857b4f02 | [
"MIT"
] | 13 | 2016-06-26T10:30:14.000Z | 2021-09-04T19:39:14.000Z | xoinvader/collision.py | pkulev/xoinvader | f25e30431d4898f20626056c12853595857b4f02 | [
"MIT"
] | 70 | 2016-10-10T18:27:17.000Z | 2020-05-18T11:27:59.000Z | xoinvader/collision.py | pankshok/xoinvader | f25e30431d4898f20626056c12853595857b4f02 | [
"MIT"
] | null | null | null | """Collision detection system and component module."""
import functools
import logging
import re
import weakref
from xoinvader import app
from xoinvader.utils import Point
LOG = logging.getLogger(__name__)
COLLISIONS = {}
"""Global mapping TypePair <=> [callable]."""
def __hash__(self):
return hash... | 29.657534 | 80 | 0.60254 |
0f5b07565ad9c9887805e72a860f709924e9bf7f | 1,816 | py | Python | test/testing/test_pandas_assert.py | S-aiueo32/gokart | 00475f36513da3fba65b44a10ae97246e0690b54 | [
"MIT"
] | 255 | 2019-01-02T01:31:37.000Z | 2022-03-29T13:35:18.000Z | test/testing/test_pandas_assert.py | S-aiueo32/gokart | 00475f36513da3fba65b44a10ae97246e0690b54 | [
"MIT"
] | 208 | 2018-12-25T04:32:24.000Z | 2022-03-28T07:28:59.000Z | test/testing/test_pandas_assert.py | S-aiueo32/gokart | 00475f36513da3fba65b44a10ae97246e0690b54 | [
"MIT"
] | 48 | 2019-01-11T06:22:05.000Z | 2022-02-11T07:38:42.000Z | import unittest
import pandas as pd
import gokart
| 47.789474 | 122 | 0.630507 |
0f5bc614d9041794b1473f521f648a2ae8fe38a7 | 1,523 | py | Python | binsdpy/similarity/group_b.py | mikulatomas/binsdpy | d54d452e5e7cf310747e94c5c94c4875add869ca | [
"MIT"
] | null | null | null | binsdpy/similarity/group_b.py | mikulatomas/binsdpy | d54d452e5e7cf310747e94c5c94c4875add869ca | [
"MIT"
] | 2 | 2022-02-08T19:45:51.000Z | 2022-02-23T15:21:01.000Z | binsdpy/similarity/group_b.py | mikulatomas/binsdpy | d54d452e5e7cf310747e94c5c94c4875add869ca | [
"MIT"
] | null | null | null | import math
from binsdpy.utils import operational_taxonomic_units, BinaryFeatureVector
def russell_rao(
x: BinaryFeatureVector, y: BinaryFeatureVector, mask: BinaryFeatureVector = None
) -> float:
"""Russel-Rao similarity
Russell, P. F., & Rao, T. R. (1940).
On habitat and association of species of ... | 30.46 | 88 | 0.683519 |
0f5d2a27cb70dddd601735fe0a2a3f6e251cb949 | 16,810 | py | Python | design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py | chisuhua/gem5 | 74694255d90e0892d5f5c4d13f6077cdb9b9cb95 | [
"BSD-3-Clause"
] | null | null | null | design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py | chisuhua/gem5 | 74694255d90e0892d5f5c4d13f6077cdb9b9cb95 | [
"BSD-3-Clause"
] | null | null | null | design/gpgpu/configs/gpu_protocol/VI_hammer_fusion.py | chisuhua/gem5 | 74694255d90e0892d5f5c4d13f6077cdb9b9cb95 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# Copyright (c) 2009 Advanced Micro Devices, Inc.
# 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 co... | 46.565097 | 88 | 0.612731 |
0f602012992f3815e49879e39ae8eeb897b0b859 | 11,102 | py | Python | testing/test_awswrangler/test_athena.py | stijndehaes/aws-data-wrangler | 4c95e87d2850ce028c00525c73567c77f83001c5 | [
"Apache-2.0"
] | null | null | null | testing/test_awswrangler/test_athena.py | stijndehaes/aws-data-wrangler | 4c95e87d2850ce028c00525c73567c77f83001c5 | [
"Apache-2.0"
] | null | null | null | testing/test_awswrangler/test_athena.py | stijndehaes/aws-data-wrangler | 4c95e87d2850ce028c00525c73567c77f83001c5 | [
"Apache-2.0"
] | 1 | 2019-09-19T13:09:42.000Z | 2019-09-19T13:09:42.000Z | import logging
import pytest
import boto3
from awswrangler import Session
from awswrangler.exceptions import QueryCancelled, QueryFailed
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s][%(levelname)s][%(name)s][%(funcName)s] %(message)s")
logging.getLogger("awswrangler").setLevel(logging.DEBUG)... | 72.562092 | 95 | 0.532246 |
0f634577290308b8a34cd2796dad52f018337f67 | 112 | py | Python | hello_world.py | hmallen/mrhawaii | 4b973c185e9acf030342435204480467d189f013 | [
"MIT"
] | null | null | null | hello_world.py | hmallen/mrhawaii | 4b973c185e9acf030342435204480467d189f013 | [
"MIT"
] | 1 | 2020-07-30T01:46:09.000Z | 2020-07-30T01:46:09.000Z | hello_world.py | hmallen/mrhawaii | 4b973c185e9acf030342435204480467d189f013 | [
"MIT"
] | null | null | null | # Hello world program to demonstrate running PYthon files
print('Hello, world!')
print('I live on a volcano!')
| 22.4 | 57 | 0.741071 |
0f63dcf544f98cf5aa08276887974023d5184846 | 161 | py | Python | lib/JumpScale/lib/ms1/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | null | null | null | lib/JumpScale/lib/ms1/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 4 | 2016-08-25T12:08:39.000Z | 2018-04-12T12:36:01.000Z | lib/JumpScale/lib/ms1/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 3 | 2016-03-08T07:49:34.000Z | 2018-10-19T13:56:43.000Z | from JumpScale import j
j.base.loader.makeAvailable(j, 'tools')
j.tools._register('ms1', cb)
| 17.888889 | 39 | 0.708075 |
0f641b2b38f0d89181b82feb7d73b51398cf8e53 | 1,052 | py | Python | erpnext/utilities/__init__.py | nagendrarawat/erpnext_custom | 1b94ecc3e66eae402347c302cd1663b690fb1ade | [
"MIT"
] | 2 | 2019-10-01T13:07:39.000Z | 2019-10-03T03:52:19.000Z | erpnext/utilities/__init__.py | nagendrarawat/erpnext_custom | 1b94ecc3e66eae402347c302cd1663b690fb1ade | [
"MIT"
] | null | null | null | erpnext/utilities/__init__.py | nagendrarawat/erpnext_custom | 1b94ecc3e66eae402347c302cd1663b690fb1ade | [
"MIT"
] | 3 | 2019-09-30T19:17:44.000Z | 2019-10-23T18:59:12.000Z | ## temp utility
from __future__ import print_function
import frappe
from erpnext.utilities.activation import get_level
from frappe.utils import cstr
| 28.432432 | 81 | 0.713878 |
0f6569a4372117c916cf30a866126442a8d5e66b | 6,742 | py | Python | test/workers/test_websocket_worker.py | theoptips/PySyft | 4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc | [
"Apache-2.0"
] | 1 | 2019-07-23T20:36:18.000Z | 2019-07-23T20:36:18.000Z | test/workers/test_websocket_worker.py | theoptips/PySyft | 4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc | [
"Apache-2.0"
] | null | null | null | test/workers/test_websocket_worker.py | theoptips/PySyft | 4b68c3c6fbe0c18cdf87dfe6ddc3c2071a71f1cc | [
"Apache-2.0"
] | 1 | 2021-02-12T12:11:44.000Z | 2021-02-12T12:11:44.000Z | import io
from os.path import exists, join
import time
from socket import gethostname
from OpenSSL import crypto, SSL
import pytest
import torch
from syft.workers import WebsocketClientWorker
from syft.workers import WebsocketServerWorker
def test_websocket_workers_search(hook, start_proc):
"""Evaluates that a ... | 29.313043 | 94 | 0.673391 |
0f657e59d927029cc829b093d74f43fd3c3ab0fd | 13,195 | py | Python | PiCN/Simulations/BalancedForwardingStrategySimulation.py | DimaMansour/PiCN | 90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b | [
"BSD-3-Clause"
] | null | null | null | PiCN/Simulations/BalancedForwardingStrategySimulation.py | DimaMansour/PiCN | 90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b | [
"BSD-3-Clause"
] | null | null | null | PiCN/Simulations/BalancedForwardingStrategySimulation.py | DimaMansour/PiCN | 90ced1cde2a8fd457e873e8bbad1fd7c21bbe56b | [
"BSD-3-Clause"
] | null | null | null | """Simulate a Map Reduce Scenario where timeout prevention is required.
In this simulation we are using an Optimizer created for map reduce scenarios.
This improves the distribution of the computation no matter how the interest is formated.
Scenario consists of two NFN nodes and a Client. Goal of the simulation is to ... | 42.022293 | 182 | 0.593103 |
0f6811584c35d57112dde4d376d40b9b051263d0 | 48 | py | Python | Tools/MagicPanels/panelMoveXp.py | dprojects/Woodworking | 24420b248e3343a387ae1328fc6dcbf97e433242 | [
"MIT"
] | 6 | 2022-02-25T19:11:40.000Z | 2022-03-24T22:03:47.000Z | Tools/MagicPanels/panelMoveXp.py | dprojects/Woodworking | 24420b248e3343a387ae1328fc6dcbf97e433242 | [
"MIT"
] | 1 | 2022-03-13T09:35:22.000Z | 2022-03-13T13:30:36.000Z | Tools/MagicPanels/panelMoveXp.py | dprojects/Woodworking | 24420b248e3343a387ae1328fc6dcbf97e433242 | [
"MIT"
] | 3 | 2022-02-26T15:01:08.000Z | 2022-03-20T21:30:04.000Z | import MagicPanels
MagicPanels.panelMove("Xp")
| 12 | 27 | 0.8125 |
0f686508655f6cb5a008cef527be098e9ada85a3 | 1,399 | py | Python | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | 1 | 2019-01-19T13:10:02.000Z | 2019-01-19T13:10:02.000Z | app/api/v2/models/user_model.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | from ....db_conn import initialize_db
from psycopg2.extras import RealDictCursor
from werkzeug.security import generate_password_hash,check_password_hash
con = initialize_db()
cur = con.cursor(cursor_factory=RealDictCursor)
| 25.436364 | 186 | 0.609721 |
0f68bd486acd6f559b6e55931f138347c5551170 | 2,654 | py | Python | Python/17.letter-combinations-of-a-phone-number.py | Dxyk/LeetCode | e64b405f40b4e3c0f14c617897b775699dd46872 | [
"MIT"
] | null | null | null | Python/17.letter-combinations-of-a-phone-number.py | Dxyk/LeetCode | e64b405f40b4e3c0f14c617897b775699dd46872 | [
"MIT"
] | null | null | null | Python/17.letter-combinations-of-a-phone-number.py | Dxyk/LeetCode | e64b405f40b4e3c0f14c617897b775699dd46872 | [
"MIT"
] | null | null | null | from typing import Dict, List
if __name__ == "__main__":
main()
| 29.488889 | 134 | 0.520723 |
0f69cabd8fe171f0dca1ced002ed424271bae43e | 696 | py | Python | django-backend/mission/settings_dev_dummy.py | isystematics/SoarCast | 6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0 | [
"Apache-2.0"
] | 2 | 2021-06-08T16:35:30.000Z | 2022-03-18T16:04:48.000Z | django-backend/mission/settings_dev_dummy.py | isystematics/SoarCast | 6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0 | [
"Apache-2.0"
] | 4 | 2022-02-22T18:43:07.000Z | 2022-02-22T18:45:25.000Z | django-backend/mission/settings_dev_dummy.py | isystematics/SoarCast | 6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0 | [
"Apache-2.0"
] | null | null | null | from .settings import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'mission',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
DEBUG = True
VAULT_HOST = 'http://127.0.0.1:8200'
VAULT_ROOT_PATH = 'mis... | 26.769231 | 76 | 0.653736 |
0f69d3eab2dbb5cfe8989db4cb4da5f04dcd2474 | 1,653 | py | Python | src/moodlews/service.py | pystardust/Welearn-bot | 87a8c388201629c7ce94e6f9730a4ac7442b36f6 | [
"MIT"
] | null | null | null | src/moodlews/service.py | pystardust/Welearn-bot | 87a8c388201629c7ce94e6f9730a4ac7442b36f6 | [
"MIT"
] | null | null | null | src/moodlews/service.py | pystardust/Welearn-bot | 87a8c388201629c7ce94e6f9730a4ac7442b36f6 | [
"MIT"
] | null | null | null | from requests import Session
import urllib.parse
import json
| 30.611111 | 85 | 0.643678 |
0f69e78024609f6fbaf1f9eeb13bf6a51e75d7da | 6,319 | py | Python | agents/wann_agent.py | Miffyli/policy-supervectors | 358284805e5bc96b95cae15e9741571e46d84bc9 | [
"MIT"
] | 17 | 2020-12-02T15:27:03.000Z | 2022-01-14T06:42:14.000Z | agents/wann_agent.py | Miffyli/policy-supervectors | 358284805e5bc96b95cae15e9741571e46d84bc9 | [
"MIT"
] | null | null | null | agents/wann_agent.py | Miffyli/policy-supervectors | 358284805e5bc96b95cae15e9741571e46d84bc9 | [
"MIT"
] | null | null | null | import numpy as np
from gym import spaces
from agents import SimpleAgentClass
# Create agents for the CMA-ES, NEAT and WANN agents
# defined in the weight-agnostic paper repo:
# https://github.com/google/brain-tokyo-workshop/tree/master/WANNRelease/
# ---------------------------------------------------------------... | 29.666667 | 119 | 0.592182 |
0f6ab9f6902561656b7e6574e6d06dd8dae26076 | 483 | py | Python | imagr_users/admin.py | sazlin/cfpydev-imagr | e34ac025e357694f40034ab1c02ed3be5294c2d8 | [
"MIT"
] | null | null | null | imagr_users/admin.py | sazlin/cfpydev-imagr | e34ac025e357694f40034ab1c02ed3be5294c2d8 | [
"MIT"
] | null | null | null | imagr_users/admin.py | sazlin/cfpydev-imagr | e34ac025e357694f40034ab1c02ed3be5294c2d8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from models import ImagrUser, Relationship
# Register your models here.
admin.site.register(ImagrUser, ImagrUserAdmin)
admin.site.register(Relationship)
| 23 | 46 | 0.565217 |
0f6b058045d24130832a31ba7ff907e1cd47ac61 | 4,115 | py | Python | src/scripts/ia.py | BureauTech/BTAlert-AI | 945f6dfc10cdfa1ca99ff929136b40cadb40bc21 | [
"MIT"
] | 1 | 2022-03-17T20:27:27.000Z | 2022-03-17T20:27:27.000Z | src/scripts/ia.py | BureauTech/BTAlert-IA | e2d250bbaf363eb7f32dfee7e1a112326053bb57 | [
"MIT"
] | null | null | null | src/scripts/ia.py | BureauTech/BTAlert-IA | e2d250bbaf363eb7f32dfee7e1a112326053bb57 | [
"MIT"
] | null | null | null | import os
import warnings
from datetime import datetime, timedelta
from typing import Tuple
import matplotlib.pyplot as plt
import pandas as pd
from dotenv import load_dotenv
from prometheus_api_client import MetricSnapshotDataFrame, PrometheusConnect
from prometheus_api_client.utils import parse_datetime
from skforec... | 37.072072 | 104 | 0.684569 |
0f6b864680738e0f6318834ca0ebb3c3d6afb4ba | 3,306 | py | Python | data_loaders/anime_loader.py | dchenam/AnimeGAN | 15707a99dde000a6d7f283f4f82d5176b8313e0a | [
"MIT"
] | 1 | 2020-01-19T15:04:42.000Z | 2020-01-19T15:04:42.000Z | data_loaders/anime_loader.py | dchenam/AnimeGAN | 15707a99dde000a6d7f283f4f82d5176b8313e0a | [
"MIT"
] | null | null | null | data_loaders/anime_loader.py | dchenam/AnimeGAN | 15707a99dde000a6d7f283f4f82d5176b8313e0a | [
"MIT"
] | null | null | null | import os
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
from PIL import Image
| 40.317073 | 117 | 0.588929 |
0f6d1c33773b442b8a76170619e0410a30ccb153 | 4,650 | py | Python | bitwarden_pyro/controller/cache.py | apetresc/bitwarden-pyro | 2312452b7c56b1c534c4f3874f162b9dc0df92c3 | [
"MIT"
] | 7 | 2019-12-10T12:51:48.000Z | 2021-11-26T23:27:37.000Z | bitwarden_pyro/controller/cache.py | apetresc/bitwarden-pyro | 2312452b7c56b1c534c4f3874f162b9dc0df92c3 | [
"MIT"
] | 13 | 2019-12-06T11:53:31.000Z | 2022-01-01T16:45:33.000Z | bitwarden_pyro/controller/cache.py | apetresc/bitwarden-pyro | 2312452b7c56b1c534c4f3874f162b9dc0df92c3 | [
"MIT"
] | 3 | 2020-09-25T05:59:30.000Z | 2022-01-08T03:09:29.000Z | import os
import json
import stat
import time
from bitwarden_pyro.util.logger import ProjectLogger
from bitwarden_pyro.settings import NAME
| 31.208054 | 79 | 0.576774 |
0f6dc02e799dc65a7634ed67eacfd39cd76ca1b9 | 210 | py | Python | library/render_partial.py | pythononwheels/diary | 87ffd08d0dffe979799d9f441014bd5d71f00fc6 | [
"MIT"
] | null | null | null | library/render_partial.py | pythononwheels/diary | 87ffd08d0dffe979799d9f441014bd5d71f00fc6 | [
"MIT"
] | null | null | null | library/render_partial.py | pythononwheels/diary | 87ffd08d0dffe979799d9f441014bd5d71f00fc6 | [
"MIT"
] | null | null | null | #
# One Tornado UIModule to render them all ;)
#
import tornado.web | 26.25 | 60 | 0.695238 |
0f70e53221634c25ef5b9365ad4e3d8d00516b0d | 1,605 | py | Python | doc/source/isphx/objpull.py | flying-sheep/sphobjinv | 0aa56e3982f99bf811cef4126e452ddd65cae088 | [
"MIT"
] | 55 | 2016-10-30T05:03:16.000Z | 2022-03-13T18:00:44.000Z | doc/source/isphx/objpull.py | flying-sheep/sphobjinv | 0aa56e3982f99bf811cef4126e452ddd65cae088 | [
"MIT"
] | 202 | 2016-05-16T13:25:50.000Z | 2022-03-22T20:05:45.000Z | doc/source/isphx/objpull.py | bskinn/sphinx-objectsinv | 505c7afc656f20b9e105f4ead9c6eb570eef971a | [
"MIT"
] | 4 | 2020-03-29T01:47:50.000Z | 2021-04-07T13:37:05.000Z | # Quickie script for refreshing the local objects.inv cache
# OVERWRITES EXISTING FILES, WITH PRE-DELETION
if __name__ == '__main__':
pullobjs()
| 25.887097 | 80 | 0.54704 |
0f716674c3dc2ac73901984ceb01683e57a08e32 | 4,487 | py | Python | python-client/cloudera/director/v8/models/__init__.py | daanknoope/director-sdk | a099fedd5afe365aedbb50daa75de048ef6f7ab4 | [
"Apache-2.0"
] | 24 | 2015-03-04T01:39:36.000Z | 2020-06-30T13:34:27.000Z | python-client/cloudera/director/v8/models/__init__.py | daanknoope/director-sdk | a099fedd5afe365aedbb50daa75de048ef6f7ab4 | [
"Apache-2.0"
] | 5 | 2015-11-04T08:18:47.000Z | 2019-01-05T11:12:19.000Z | python-client/cloudera/director/v8/models/__init__.py | daanknoope/director-sdk | a099fedd5afe365aedbb50daa75de048ef6f7ab4 | [
"Apache-2.0"
] | 26 | 2015-02-24T21:13:53.000Z | 2020-12-15T06:01:46.000Z | # coding: utf-8
# flake8: noqa
"""
Licensed to Cloudera, Inc. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Cloudera, Inc. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you ... | 59.826667 | 104 | 0.872075 |
0f7258c30ea450c0d6df7038fbaab0f28f88f98e | 1,844 | py | Python | wagtailshowsimilar/views.py | ongchi/wagtail-showsimilaritems | d358d8bb48b759e96bf7519bfe9925a6364cc7fc | [
"Apache-2.0"
] | null | null | null | wagtailshowsimilar/views.py | ongchi/wagtail-showsimilaritems | d358d8bb48b759e96bf7519bfe9925a6364cc7fc | [
"Apache-2.0"
] | null | null | null | wagtailshowsimilar/views.py | ongchi/wagtail-showsimilaritems | d358d8bb48b759e96bf7519bfe9925a6364cc7fc | [
"Apache-2.0"
] | null | null | null | from django.apps import apps
from django.views.decorators.http import require_GET
from django.http import JsonResponse
from django.urls import reverse
from wagtail.search.backends import get_search_backend
from wagtail.core.models import Page
backend = get_search_backend()
| 34.792453 | 87 | 0.60141 |
0f73367ba6109ee049aa54a44a28f5bd872d3d4e | 5,149 | py | Python | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | views.py | zhoubogao/hhlyDevops | 832684bb7fa4e67a23b2e6171ed0433fe0748de5 | [
"Unlicense"
] | null | null | null | #-*-coding:utf-8-*-
from flask import url_for, redirect, request, current_app
from flask_admin.contrib.sqla import ModelView
from flask_admin import AdminIndexView, helpers, expose
from werkzeug.security import generate_password_hash
from flask_login import current_user, login_user, logout_user
from models import User,... | 33.435065 | 85 | 0.619344 |
0f7394ec885b966aaf92685817a31c344da144b3 | 577 | py | Python | unittests/validators.py | lspestrip/stdb2 | 80703385f6e681962140d82a4991878a995c90fd | [
"MIT"
] | 1 | 2018-03-07T10:13:12.000Z | 2018-03-07T10:13:12.000Z | unittests/validators.py | lspestrip/stdb2 | 80703385f6e681962140d82a4991878a995c90fd | [
"MIT"
] | 31 | 2017-10-28T07:17:38.000Z | 2018-05-11T11:28:02.000Z | unittests/validators.py | lspestrip/stdb2 | 80703385f6e681962140d82a4991878a995c90fd | [
"MIT"
] | 1 | 2017-11-28T21:50:27.000Z | 2017-11-28T21:50:27.000Z | # -*- encoding: utf-8 -*-
VALID_REPORT_EXTENSIONS = [
'.pdf',
'.doc',
'.docx',
'.html',
'.htm',
'.xsl',
'.xslx',
'.md',
'.rst',
'.zip',
]
| 23.08 | 104 | 0.561525 |
0f7407e7b2ba5174648101b672fee04fc30da7a2 | 2,531 | py | Python | python/demo_confidence_map.py | doublechenching/UltrasondConfienceMap | e345b3fbf658817e3b4af57e32d5ecb4b7073595 | [
"Apache-2.0"
] | 13 | 2019-03-12T08:47:29.000Z | 2022-03-01T18:07:30.000Z | python/demo_confidence_map.py | doublechenching/UltrasondConfienceMap | e345b3fbf658817e3b4af57e32d5ecb4b7073595 | [
"Apache-2.0"
] | 1 | 2020-06-16T14:29:30.000Z | 2020-06-16T14:29:30.000Z | python/demo_confidence_map.py | doublechenching/UltrasondConfienceMap | e345b3fbf658817e3b4af57e32d5ecb4b7073595 | [
"Apache-2.0"
] | 2 | 2020-04-25T03:06:47.000Z | 2020-06-02T02:59:55.000Z | #encoding: utf-8
from __future__ import print_function
from skimage import io
from confidence_map import confidence_map3d, confidence_map2d
import numpy as np
import pydicom
from skimage.external.tifffile import imshow
import time
from matplotlib import pyplot as plt
from skimage.exposure import rescale_intensity
from ... | 33.302632 | 100 | 0.671276 |
0f75773a133923f483bf0f32ed5fc3578f9eaa52 | 1,566 | py | Python | src/ui/pgUI.py | yuj09161/MoneyManager | 32d57ca05d0c182ace68ea960a7bf7dfaad0fc79 | [
"MIT"
] | null | null | null | src/ui/pgUI.py | yuj09161/MoneyManager | 32d57ca05d0c182ace68ea960a7bf7dfaad0fc79 | [
"MIT"
] | null | null | null | src/ui/pgUI.py | yuj09161/MoneyManager | 32d57ca05d0c182ace68ea960a7bf7dfaad0fc79 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'pg.ui'
##
## Created by: Qt User Interface Compiler version 6.0.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
########################... | 31.959184 | 89 | 0.598978 |
0f796c47a793c714f545f83a640dc9c73918faf1 | 2,116 | py | Python | pyqt_tag_manager/qt_market/animations.py | Nevolutionize/pyqt_tag_manager | 917d209924271c464d6a99ba1c768445e2436032 | [
"MIT"
] | null | null | null | pyqt_tag_manager/qt_market/animations.py | Nevolutionize/pyqt_tag_manager | 917d209924271c464d6a99ba1c768445e2436032 | [
"MIT"
] | null | null | null | pyqt_tag_manager/qt_market/animations.py | Nevolutionize/pyqt_tag_manager | 917d209924271c464d6a99ba1c768445e2436032 | [
"MIT"
] | null | null | null | # Import external modules.
from pyqt_tag_manager import QtCore
from pyqt_tag_manager import QtGui
from pyqt_tag_manager import QtWidgets
| 33.0625 | 75 | 0.645085 |
0f7a4cb016b7e5ab674e68efb9b6f228d4fe3595 | 1,252 | py | Python | img.py | NavneetSurana/Animal-Classification-Using-ResNet | 763608adb448cfa3ef6106825f4a1e8e6568035e | [
"MIT"
] | 2 | 2018-10-08T03:31:59.000Z | 2018-10-27T18:53:27.000Z | img.py | NavneetSurana/Animal-Classification-Using-ResNet | 763608adb448cfa3ef6106825f4a1e8e6568035e | [
"MIT"
] | null | null | null | img.py | NavneetSurana/Animal-Classification-Using-ResNet | 763608adb448cfa3ef6106825f4a1e8e6568035e | [
"MIT"
] | 1 | 2021-07-05T05:04:55.000Z | 2021-07-05T05:04:55.000Z | import os,sys
import shutil
import pandas as pd
data=pd.read_csv('D:/MachineLearning/AnimalClassification/train.csv')
Im_id=data['Image_id']
Animal=data['Animal']
dic_data=dict()
for i in range(0,len(Im_id)):
dic_data[Im_id[i].strip()]=Animal[i].strip()
source_dir='D:/MachineLearning/AnimalClassification/Images/trai... | 26.083333 | 70 | 0.733227 |
0f7cba4a8767d9b6e3513c79b2ee5313540ef278 | 3,498 | py | Python | tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py | scopatz/openmc | 689d7b31677bc945aa21fa710801ac85562f1e87 | [
"MIT"
] | null | null | null | tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py | scopatz/openmc | 689d7b31677bc945aa21fa710801ac85562f1e87 | [
"MIT"
] | null | null | null | tests/test_mgxs_library_ce_to_mg/test_mgxs_library_ce_to_mg.py | scopatz/openmc | 689d7b31677bc945aa21fa710801ac85562f1e87 | [
"MIT"
] | 1 | 2020-12-18T08:22:51.000Z | 2020-12-18T08:22:51.000Z | #!/usr/bin/env python
import os
import sys
import glob
import hashlib
sys.path.insert(0, os.pardir)
from testing_harness import PyAPITestHarness
from input_set import PinCellInputSet
import openmc
import openmc.mgxs
if __name__ == '__main__':
harness = MGXSTestHarness('statepoint.10.*', False)
harness.main(... | 36.821053 | 79 | 0.620926 |
0f7d75f8317a602b1be813bd3c36c2bb2d625290 | 1,287 | py | Python | setup.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | 1 | 2021-03-24T20:32:06.000Z | 2021-03-24T20:32:06.000Z | setup.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | null | null | null | setup.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | 2 | 2020-04-30T12:56:00.000Z | 2020-05-18T09:57:06.000Z | import os
from setuptools import setup, find_packages
from cloudwatch_metrics.version import VERSION
with open(os.path.join(os.path.dirname(__file__),
'README.md')) as readme:
README = readme.read()
setup(
name='cloudwatch_metrics',
version=VERSION,
description='The Cloudwatch... | 28.6 | 98 | 0.647242 |
0f7e825a057f5ebc72d9fb6d24195fedaea8c685 | 216 | py | Python | app/ref/test-ttyP.py | lucid281/pyEfi | c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18 | [
"Apache-2.0"
] | 7 | 2017-07-30T20:23:58.000Z | 2021-12-10T19:38:04.000Z | app/ref/test-ttyP.py | lucid281/pyEfi | c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18 | [
"Apache-2.0"
] | 2 | 2017-07-31T23:03:39.000Z | 2021-03-26T21:06:02.000Z | app/ref/test-ttyP.py | lucid281/pyEfi | c8a5b69820a3c1e7c4c652f7e4194cd8ce8a6e18 | [
"Apache-2.0"
] | null | null | null | from .. app.pyefi.ttyp import ttyP
ttyP(0, "0 - ttyP test")
ttyP(1, "1 - header")
ttyP(2, "2 - bold")
ttyP(3, "3 - okblue")
ttyP(4, "4 - okgreen")
ttyP(5, "5 - underline")
ttyP(6, "6 - warning")
ttyP(7, "7 - fail")
| 19.636364 | 34 | 0.578704 |
0f80a9e3135560f0591099bad1bb7a5ddbb51087 | 3,826 | py | Python | src/dirbs/dimensions/duplicate_threshold.py | bryang-qti-qualcomm/DIRBS-Core | 6b48457715338cce4eb6b3948940297ebd789189 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/dirbs/dimensions/duplicate_threshold.py | bryang-qti-qualcomm/DIRBS-Core | 6b48457715338cce4eb6b3948940297ebd789189 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/dirbs/dimensions/duplicate_threshold.py | bryang-qti-qualcomm/DIRBS-Core | 6b48457715338cce4eb6b3948940297ebd789189 | [
"BSD-3-Clause-Clear"
] | null | null | null | """
DIRBS dimension function for duplicate threshold within a time period.
Copyright (c) 2018 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the
limitations in the disclaimer below) provided that the fol... | 50.342105 | 118 | 0.715369 |
0f80f105f05bcfcfbae2166d1100ff00893f4f18 | 2,112 | py | Python | scripts/common/__init__.py | Innixma/kaggle2017 | e92a2c1c2bf071343247722187a1c1088de88e37 | [
"MIT"
] | null | null | null | scripts/common/__init__.py | Innixma/kaggle2017 | e92a2c1c2bf071343247722187a1c1088de88e37 | [
"MIT"
] | null | null | null | scripts/common/__init__.py | Innixma/kaggle2017 | e92a2c1c2bf071343247722187a1c1088de88e37 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from skimage import measure, morphology
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import numpy as np
import pandas as pd
def shuffle_weights(model, weights=None):
"""Randomly permute the weights in `model`, or the given `weights`.
This is a fast approximation ... | 30.608696 | 112 | 0.693655 |
0f81775989722fac86c0501dba1ff10529d51ca2 | 1,313 | py | Python | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2016-02-14T13:39:46.000Z | 2021-09-03T16:02:18.000Z | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-03-28T01:08:25.000Z | 2018-03-28T01:08:25.000Z | # Import the Evernote client
from evernote.api.client import EvernoteClient
# Define access token either:
# Developer Tokens (https://dev.evernote.com/doc/articles/dev_tokens.php)
# or OAuth (https://dev.evernote.com/doc/articles/authentication.php)
access_token = "insert dev or oauth token here"
# Setup the client
c... | 37.514286 | 126 | 0.763899 |
0f817ae1f45415f9be3a1a93f0558743b747ab70 | 1,431 | py | Python | setup.py | davidcarboni/cryptolite-python | e40ce2f9584fdd9015caad9bf443a50201df743a | [
"MIT"
] | null | null | null | setup.py | davidcarboni/cryptolite-python | e40ce2f9584fdd9015caad9bf443a50201df743a | [
"MIT"
] | null | null | null | setup.py | davidcarboni/cryptolite-python | e40ce2f9584fdd9015caad9bf443a50201df743a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import os
import unittest
def readme():
"""
Utility function to read the README file.
Used for the long_description. It's nice, because now 1) we have a top level
README file and 2) it's easier to type in the README file than to put a raw
string in bel... | 31.8 | 103 | 0.645702 |
0f8389ee228b8ef136ad33164ea0700cfe706102 | 842 | py | Python | final_project/machinetranslation/tests.py | cabrera-carlos/xzceb-flask_eng_fr | 6f3b643102f2d9fa70231a663b43a1348c0f7cc1 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests.py | cabrera-carlos/xzceb-flask_eng_fr | 6f3b643102f2d9fa70231a663b43a1348c0f7cc1 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests.py | cabrera-carlos/xzceb-flask_eng_fr | 6f3b643102f2d9fa70231a663b43a1348c0f7cc1 | [
"Apache-2.0"
] | null | null | null | import unittest
from translator import french_to_english, english_to_french
unittest.main()
| 42.1 | 131 | 0.672209 |
0f8689ae827d935b48b38f4d0615ffaedb18fca7 | 49,355 | py | Python | dataset.py | DerryHub/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | 4 | 2020-08-15T14:49:37.000Z | 2022-01-16T08:34:07.000Z | dataset.py | weilin-droid/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | null | null | null | dataset.py | weilin-droid/the-TaobaoLive-Commodity-Identify-Competition | 7e5e5c4fbddd9949fe01810d58bd7994889c007c | [
"MIT"
] | 2 | 2021-05-26T05:16:09.000Z | 2021-06-09T09:07:49.000Z | import os
import torch
import numpy as np
from tqdm import tqdm
import json
from torch.utils.data import Dataset, DataLoader
from arcface.resnet import ResNet
from arcface.googlenet import GoogLeNet
from arcface.inception_v4 import InceptionV4
from arcface.inceptionresnet_v2 import InceptionResNetV2
from arcface.densen... | 36.025547 | 141 | 0.532975 |
0f86f6bca80816832afd66dee019b511e4eb11bc | 2,325 | py | Python | WebMirror/util/StatusUpdater/Updater.py | awesome-archive/ReadableWebProxy | 360104694a21bc14c7756f29205c95823387e30b | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | WebMirror/util/StatusUpdater/Updater.py | awesome-archive/ReadableWebProxy | 360104694a21bc14c7756f29205c95823387e30b | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | WebMirror/util/StatusUpdater/Updater.py | awesome-archive/ReadableWebProxy | 360104694a21bc14c7756f29205c95823387e30b | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z |
if __name__ == "__main__":
import logSetup
logSetup.initLogging()
import pickle
from common import database
import config
import common.LogBase
import WebMirror.rules
from WebMirror.OutputFilters.util.MessageConstructors import pack_message
import WebMirror.TimedTriggers.TriggerBase
import common.get_rpyc
# impo... | 22.142857 | 92 | 0.712688 |
0f87054df9c74ee2c34ad2435d0071591357f748 | 93 | py | Python | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 4 | 2017-05-14T23:45:42.000Z | 2020-12-21T06:33:15.000Z | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 2 | 2017-05-14T22:47:40.000Z | 2018-04-19T11:01:29.000Z | dynamic_databases/__init__.py | sligodave/dynamic_databases | 8bb85d59ef5ad6b0176b192a82ec457fb00601c5 | [
"MIT"
] | 3 | 2017-05-26T22:42:25.000Z | 2021-10-21T01:14:23.000Z |
__version__ = '0.1.7'
default_app_config = 'dynamic_databases.apps.DynamicDatabasesConfig'
| 18.6 | 68 | 0.806452 |
0f884a672a35bf47e7942c640cb7243b3a973258 | 2,886 | py | Python | Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py | Prashant-JT/PartitionProblem | 3922bba85dac40e3780cf90cf0b687d07458a910 | [
"MIT"
] | null | null | null | Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py | Prashant-JT/PartitionProblem | 3922bba85dac40e3780cf90cf0b687d07458a910 | [
"MIT"
] | null | null | null | Practica3PR3/PYTHON/PartitionProblemBruteForceRecursive.py | Prashant-JT/PartitionProblem | 3922bba85dac40e3780cf90cf0b687d07458a910 | [
"MIT"
] | null | null | null | import time
import argparse
import sys
if __name__ == '__main__':
# Command line library implementation
parser = argparse.ArgumentParser(description = "Partition problem is to determine whether a given set can be partitioned into two subsets such that the sum of elements in both subsets is same. For further inform... | 29.44898 | 242 | 0.671518 |
0f89c68a648bbf2920a3ee4f9f43df0ba5e7f56b | 800 | py | Python | sasquatch/error/exec.py | tmacro/s4 | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | 6 | 2018-12-04T01:13:10.000Z | 2019-06-18T23:25:59.000Z | sasquatch/error/exec.py | tmacro/s4 | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | 15 | 2018-12-01T00:13:41.000Z | 2021-06-01T23:05:08.000Z | sasquatch/error/exec.py | tmacro/sasquatch | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | null | null | null | from .base import SQError, BaseErrorHelper
from .context import ContextAwareError
| 34.782609 | 75 | 0.76125 |
0f89d4ca8644c99769b346ed9af4e2842f02189a | 19,484 | py | Python | Pr_LandMarkDetection_pix2pixArc+HeatMap.py | mohaEs/Train-Predict-Landmarks-by-Autoencoder | 5bc1bc4b0679ae465335f6ca76595b0accba57af | [
"MIT"
] | null | null | null | Pr_LandMarkDetection_pix2pixArc+HeatMap.py | mohaEs/Train-Predict-Landmarks-by-Autoencoder | 5bc1bc4b0679ae465335f6ca76595b0accba57af | [
"MIT"
] | null | null | null | Pr_LandMarkDetection_pix2pixArc+HeatMap.py | mohaEs/Train-Predict-Landmarks-by-Autoencoder | 5bc1bc4b0679ae465335f6ca76595b0accba57af | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 30 13:44:34 2018
@author: Moha-Thinkpad
"""
from tensorflow.keras import optimizers
from tensorflow.keras.models import Model
import datetime
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import tensorflow.keras
import argpa... | 37.83301 | 158 | 0.615325 |
0f8a5d70a416813aa7903ebf63db4aff07a7359b | 5,479 | py | Python | pydsge/tests/export_getting_started_to_pkl.py | florabudianto/pydsge | 51ea4c206e481866f92398cb573852e48fea7335 | [
"MIT"
] | 2 | 2022-02-15T10:39:24.000Z | 2022-02-15T10:40:26.000Z | pydsge/tests/export_getting_started_to_pkl.py | florabudianto/pydsge | 51ea4c206e481866f92398cb573852e48fea7335 | [
"MIT"
] | 4 | 2021-12-31T16:27:48.000Z | 2022-01-27T17:16:19.000Z | pydsge/tests/export_getting_started_to_pkl.py | pcschreiber1/pydsge_OSE_Project_Fork | 4222dbe187e47958d2f5b732615c9ba97547f67a | [
"MIT"
] | 1 | 2022-02-15T10:40:32.000Z | 2022-02-15T10:40:32.000Z | """This file contains functions for converting and storing jupyter notebooks."""
import nbformat
import pickle
import numpy as np
import os
from nbconvert import PythonExporter
from pathlib import Path # for windows-Unix compatibility
def nbconvert_python(path):
"""Use nbconvert to convert jupyter notebook to py... | 26.726829 | 88 | 0.627669 |
0f8b3458e256dcb554d3948811ed8426a35f7e37 | 2,067 | py | Python | tests/test_entrez.py | ckrusemd/meta-analysis-tool | 31685973f767c198952df4b87813a9c8345554b6 | [
"BSD-3-Clause"
] | null | null | null | tests/test_entrez.py | ckrusemd/meta-analysis-tool | 31685973f767c198952df4b87813a9c8345554b6 | [
"BSD-3-Clause"
] | null | null | null | tests/test_entrez.py | ckrusemd/meta-analysis-tool | 31685973f767c198952df4b87813a9c8345554b6 | [
"BSD-3-Clause"
] | null | null | null |
import requests
from loguru import logger | 39.75 | 86 | 0.669086 |
0f8bf192c00ccdfe2c080948f76d42451737fa89 | 9,816 | py | Python | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | #!/usr/bin/python
# EST clustering
# Currently clustering are done using the wcd clustering algorithm. Other algorithms will later be supported.
# The wcd program does not use qual score for clustering. If seq qual scores are specified the
# wcd clustered information will be used to create cluster qual scores. This... | 47.650485 | 188 | 0.667787 |
0f8dcf564e74ca0b9bc7fa9771086a7026224d90 | 12,676 | py | Python | source/sent_classif.py | blazejdolicki/LASER | 6a4d4677ecf8756a020300983a2147f012a8e850 | [
"BSD-3-Clause"
] | null | null | null | source/sent_classif.py | blazejdolicki/LASER | 6a4d4677ecf8756a020300983a2147f012a8e850 | [
"BSD-3-Clause"
] | null | null | null | source/sent_classif.py | blazejdolicki/LASER | 6a4d4677ecf8756a020300983a2147f012a8e850 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
# LASER Language-Agnostic SEntence Representations
# is a toolkit to calculate multilingual s... | 36.956268 | 144 | 0.568713 |
0f8ddc53734f66db428cdaafd04e0f9951eeb50d | 2,852 | py | Python | pandas/tests/scalar/timestamp/test_arithmetic.py | BenRussert/pandas | 9179e633b1e54ac31c5ea42ec0ec24e9a1709aae | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2018-11-11T22:18:13.000Z | 2018-11-11T22:18:13.000Z | pandas/tests/scalar/timestamp/test_arithmetic.py | BenRussert/pandas | 9179e633b1e54ac31c5ea42ec0ec24e9a1709aae | [
"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/scalar/timestamp/test_arithmetic.py | BenRussert/pandas | 9179e633b1e54ac31c5ea42ec0ec24e9a1709aae | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import pytest
import numpy as np
import pandas.util.testing as tm
from pandas.compat import long
from pandas.tseries import offsets
from pandas import Timestamp, Timedelta
| 34.361446 | 79 | 0.631837 |
0f8e473c098b6e6372a376f56a8b418162a63f4d | 1,224 | py | Python | utlts/uniprot_api.py | proteins247/proteomevis_scripts | 33d864f02787659a5d75103baad556fb48b3bd1e | [
"MIT"
] | 1 | 2020-11-11T06:14:10.000Z | 2020-11-11T06:14:10.000Z | utlts/uniprot_api.py | proteins247/proteomevis_scripts | 33d864f02787659a5d75103baad556fb48b3bd1e | [
"MIT"
] | null | null | null | utlts/uniprot_api.py | proteins247/proteomevis_scripts | 33d864f02787659a5d75103baad556fb48b3bd1e | [
"MIT"
] | 1 | 2019-05-28T19:13:24.000Z | 2019-05-28T19:13:24.000Z | import urllib, urllib2
from parse_data import taxid
#UniProt column names are found at
#https://www.uniprot.org/help/uniprotkb_column_names
| 33.081081 | 202 | 0.710784 |
0f90448ac74fa457d3c66dd70e9a31f1a0170da1 | 59 | py | Python | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | ditto/flickr/__init__.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | default_app_config = "ditto.flickr.apps.DittoFlickrConfig"
| 29.5 | 58 | 0.847458 |
0f9355816927a8701eaeb991e776ae193c108d11 | 561 | py | Python | cartes/dataviz/markers/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | 20 | 2021-01-04T21:23:48.000Z | 2021-12-14T15:28:15.000Z | cartes/dataviz/markers/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | null | null | null | cartes/dataviz/markers/__init__.py | xoolive/cartes | a9e8144e8e40eec66e2a21e96c46d09ad4f63853 | [
"MIT"
] | null | null | null | import json
from pathlib import Path
import numpy as np
from matplotlib import path
current_dir = Path(__file__).parent
__all__ = list(p.stem for p in current_dir.glob("*.json"))
| 25.5 | 78 | 0.654189 |
0f935d49aac5857a6ea03a3d954a89f57e8ce440 | 3,169 | py | Python | flash/text/seq2seq/core/input.py | dudeperf3ct/lightning-flash | a855cd14cf1cd0301b4a2f82c0c95e4d8d986650 | [
"Apache-2.0"
] | 1 | 2022-03-09T22:40:05.000Z | 2022-03-09T22:40:05.000Z | flash/text/seq2seq/core/input.py | dudeperf3ct/lightning-flash | a855cd14cf1cd0301b4a2f82c0c95e4d8d986650 | [
"Apache-2.0"
] | null | null | null | flash/text/seq2seq/core/input.py | dudeperf3ct/lightning-flash | a855cd14cf1cd0301b4a2f82c0c95e4d8d986650 | [
"Apache-2.0"
] | null | null | null | # 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... | 31.376238 | 97 | 0.652887 |
7e13e1f7cd0f8dfc86c33515f8eed65171e22242 | 612 | py | Python | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | pymitblod/gender.py | slimcdk/pymitblod | 8bae9401abec73e53a0687a5429b215722076b39 | [
"Apache-2.0"
] | null | null | null | '''
All model classes for pymitblod
'''
from __future__ import annotations
from typing import Callable
| 20.4 | 74 | 0.616013 |
7e1465fa84580938e15bf43f26376b15ecb19b23 | 1,408 | py | Python | tools/merge-inputs.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 2 | 2018-04-03T20:45:26.000Z | 2022-02-07T19:53:42.000Z | tools/merge-inputs.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 3 | 2016-11-15T10:41:43.000Z | 2020-03-16T07:49:03.000Z | tools/merge-inputs.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 2 | 2018-07-04T11:37:12.000Z | 2022-02-07T19:53:43.000Z | #!/usr/bin/env python
import sys
import json
import argparse
if __name__ == "__main__":
parser = ArgParser(description="Update and extend contents of JSON")
parser.add_argument("newinputs", help="JSON file containing new values",
type=argparse.FileType("r"))
parser.add_argument... | 26.566038 | 81 | 0.649858 |
7e14ccb15609f75e18eb6393772f3e6bcda7ab38 | 947 | py | Python | carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py | toros-astro/carpyncho3 | 27b00e7539e081c563f1a09c70fb255ac5e71583 | [
"BSD-3-Clause"
] | 1 | 2016-02-16T11:10:52.000Z | 2016-02-16T11:10:52.000Z | carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py | toros-astro/carpyncho3 | 27b00e7539e081c563f1a09c70fb255ac5e71583 | [
"BSD-3-Clause"
] | null | null | null | carpyncho/migrations/versions/a169bf8b211d_lightcurve_to_npy.py | toros-astro/carpyncho3 | 27b00e7539e081c563f1a09c70fb255ac5e71583 | [
"BSD-3-Clause"
] | null | null | null | """lightcurve_to_npy
Revision ID: a169bf8b211d
Revises: 423507fdb18e
Create Date: 2017-09-09 22:32:17.558901
"""
# revision identifiers, used by Alembic.
revision = 'a169bf8b211d'
down_revision = '423507fdb18e'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
| 28.69697 | 90 | 0.713833 |
7e16eb8d9b19794eaeee0cf0580050bfbc0a9996 | 3,328 | py | Python | core/window_manager.py | kennethnym/Subliminal | ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe | [
"MIT"
] | null | null | null | core/window_manager.py | kennethnym/Subliminal | ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe | [
"MIT"
] | null | null | null | core/window_manager.py | kennethnym/Subliminal | ffa49eba5bcaf1a7cc566d77e15db28fc33cdafe | [
"MIT"
] | null | null | null | import asyncio
import os
import subprocess
from threading import Thread
from typing import Dict, Set
from .plugin_settings import PluginSettings
from .rpc.api.daemon import DaemonConnectedEvent
from .project import CurrentProject
from .rpc import FlutterRpcProcess, FlutterRpcClient
from .env import Env
import sublime... | 25.79845 | 156 | 0.684796 |
7e18044f5ac21085211914b4557e38ac75f7285e | 278 | py | Python | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | 2 | 2021-09-12T23:07:54.000Z | 2021-11-20T02:57:30.000Z | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | null | null | null | tests/context.py | eyal0/lcovparse | 3c29ef50870339d692ec116b68521904692a926a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
"""Context for all tests."""
from __future__ import absolute_import
import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)) + "../lcovparse"))
import lcovparse # pylint: disable=wrong-import-position,unused-import
| 25.272727 | 91 | 0.76259 |