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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d86022ebba92fcc28f93038a020bb13a52cd248a | 12,280 | py | Python | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | scalyr_agent/util.py | GitSullied/scalyr-agent-2 | 1982ce2b15fceca87b0a4c5c07cdda0258a032ac | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Scalyr Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 37.901235 | 117 | 0.674267 |
d860768aa401303e4e43e3b81af80668a675fe4e | 400 | py | Python | apps/setup.py | nlantoing/Astrarium | f1899caed01b8946e0e024bca559f5aaafdd69ea | [
"MIT"
] | null | null | null | apps/setup.py | nlantoing/Astrarium | f1899caed01b8946e0e024bca559f5aaafdd69ea | [
"MIT"
] | null | null | null | apps/setup.py | nlantoing/Astrarium | f1899caed01b8946e0e024bca559f5aaafdd69ea | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='Astrarium',
version='0.0.1',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'Flask',
'SQLAlchemy',
'flask_sqlalchemy',
'flask_migrate',
'flask_script',
... | 19.047619 | 43 | 0.5625 |
d862b299142d3eb41f91e81221844f92c71b3de3 | 28 | py | Python | capsules/__init__.py | yuranusduke/DynamicRoutingCapsule | 1a5e7e015673bcc3feaca0ff6e06e1f385769712 | [
"MIT"
] | null | null | null | capsules/__init__.py | yuranusduke/DynamicRoutingCapsule | 1a5e7e015673bcc3feaca0ff6e06e1f385769712 | [
"MIT"
] | null | null | null | capsules/__init__.py | yuranusduke/DynamicRoutingCapsule | 1a5e7e015673bcc3feaca0ff6e06e1f385769712 | [
"MIT"
] | null | null | null | from .CapsNet import CapsNet | 28 | 28 | 0.857143 |
d863e3a9cea3c10ec3f8eafdcf08ec5e6ae87f7a | 2,268 | py | Python | app/views/user.py | Unixeno/PicMe | 376f486c8c7375d6a43eaed4139988090c679e53 | [
"MIT"
] | 1 | 2019-06-23T03:28:04.000Z | 2019-06-23T03:28:04.000Z | app/views/user.py | Unixeno/PicMe | 376f486c8c7375d6a43eaed4139988090c679e53 | [
"MIT"
] | 1 | 2019-06-23T03:29:22.000Z | 2019-06-23T03:29:22.000Z | app/views/user.py | Unixeno/PicMe | 376f486c8c7375d6a43eaed4139988090c679e53 | [
"MIT"
] | 1 | 2019-06-23T03:28:20.000Z | 2019-06-23T03:28:20.000Z | from flask import Blueprint, request, render_template, url_for, session
from flask import redirect, jsonify, current_app, g
from ..util.storage import storage_factory
from ..models import Images, User
from ..util.helper import bytes_to_human
bp = Blueprint('user', __name__, url_prefix='/user')
| 28.708861 | 98 | 0.659171 |
d86539c862caaca9cd868c07d5cc5efc8193cab5 | 8,063 | py | Python | src/twitter_db_updater/skeleton.py | lraulin/twitter-db-updater | c3f2ade1ecf55577070f7859a477e1d0a765fb58 | [
"MIT"
] | null | null | null | src/twitter_db_updater/skeleton.py | lraulin/twitter-db-updater | c3f2ade1ecf55577070f7859a477e1d0a765fb58 | [
"MIT"
] | null | null | null | src/twitter_db_updater/skeleton.py | lraulin/twitter-db-updater | c3f2ade1ecf55577070f7859a477e1d0a765fb58 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=wrong-import-position
# -*- coding: utf-8 -*-
"""
To run this script uncomment the following lines in the
[options.entry_points] section in setup.cfg:
console_scripts =
fibonacci = dbupdater.skeleton:run
Then run `python setup.py install` which will install the com... | 28.291228 | 104 | 0.610319 |
d86601619a2132302fda154f7c72f93274e6926f | 154 | py | Python | rindowApp/vendor/loader.py | rindow/skeleton-mini-webapp2 | 63c4113550e240b5a6bf0bf6d43f6b35dcad0554 | [
"BSD-3-Clause"
] | null | null | null | rindowApp/vendor/loader.py | rindow/skeleton-mini-webapp2 | 63c4113550e240b5a6bf0bf6d43f6b35dcad0554 | [
"BSD-3-Clause"
] | null | null | null | rindowApp/vendor/loader.py | rindow/skeleton-mini-webapp2 | 63c4113550e240b5a6bf0bf6d43f6b35dcad0554 | [
"BSD-3-Clause"
] | null | null | null | import sys,os
for path in [
'rindow/framework/lib',
]:
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), path)))
| 25.666667 | 97 | 0.727273 |
d86622e5f29e72fd16c3023df7ee1ea5797bd717 | 3,876 | py | Python | catpointer/game.py | stsewd/cat-pointer-game | adf389061f2106de4904f10cd2a94cbde7e2966c | [
"MIT"
] | null | null | null | catpointer/game.py | stsewd/cat-pointer-game | adf389061f2106de4904f10cd2a94cbde7e2966c | [
"MIT"
] | 1 | 2019-02-24T02:17:14.000Z | 2019-02-24T02:17:14.000Z | catpointer/game.py | stsewd/cat-pointer-game | adf389061f2106de4904f10cd2a94cbde7e2966c | [
"MIT"
] | null | null | null | import copy
import random
from os import path
import pyxel
from .models import Cat, Point
base_path = path.dirname(__file__)
if __name__ == "__main__":
App()
| 26.189189 | 68 | 0.514448 |
d866b17e22e8c414614d25fc4d1031248ec1aadc | 143 | py | Python | registrobrepp/contact/orgtype.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | registrobrepp/contact/orgtype.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | registrobrepp/contact/orgtype.py | ivcmartello/registrobrepp | dece39a451bcdb964d337df6aa7bd418a60c1a85 | [
"MIT"
] | null | null | null | from enum import Enum
| 15.888889 | 33 | 0.636364 |
d8676de497ac9bb9955ea09500c27f424ac41cbf | 6,647 | py | Python | scripts/download_grid_images.py | edwardoughton/taddle | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 9 | 2020-08-18T04:25:00.000Z | 2022-03-18T16:42:33.000Z | scripts/download_grid_images.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | null | null | null | scripts/download_grid_images.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 4 | 2020-01-27T01:48:30.000Z | 2021-12-01T16:48:17.000Z | """
Generate download locations within a country and download them.
Written by Jatin Mathur.
5/2020
"""
import os
import configparser
import math
import pandas as pd
import numpy as np
import random
import geopandas as gpd
from shapely.geometry import Point
import requests
import matplotlib.pyplot as plt
from PIL impo... | 31.803828 | 99 | 0.641643 |
d8677169c6f3bce9012f362ed040c0b37a1176f8 | 16,043 | py | Python | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/filtering/geo_spatial.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/filtering/geo_spatial.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/filtering/geo_spatial.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | """
Geo spatial filtering backend.
Elasticsearch supports two types of geo data:
- geo_point fields which support lat/lon pairs
- geo_shape fields, which support points, lines, circles, polygons,
multi-polygons etc.
The queries in this group are:
- geo_shape query: Find document with geo-shapes which either inter... | 32.410101 | 79 | 0.501963 |
d8681bd0cf3b8a72eaf239299014e64f3fe891d5 | 307 | py | Python | autokey/data/MacOS/newtab.py | ankur-gupta/keyboard | 5fb6d1e45a3c1956c18d4f2464eacb79397b8aab | [
"MIT"
] | 1 | 2018-03-12T20:52:31.000Z | 2018-03-12T20:52:31.000Z | autokey/data/MacOS/newtab.py | ankur-gupta/keyboard | 5fb6d1e45a3c1956c18d4f2464eacb79397b8aab | [
"MIT"
] | null | null | null | autokey/data/MacOS/newtab.py | ankur-gupta/keyboard | 5fb6d1e45a3c1956c18d4f2464eacb79397b8aab | [
"MIT"
] | null | null | null | # Enter script code
import re
winClass = window.get_active_class()
isTerminalWin1 = re.search("konsole\\.konsole", winClass)
isTerminalWin2 = re.search("x+terminal.*", winClass)
if isTerminalWin1 or isTerminalWin2:
keyboard.send_keys("<ctrl>+<shift>+t")
else:
keyboard.send_keys("<ctrl>+t")
| 30.7 | 57 | 0.71987 |
d8691abf6611adbd1c2c544755cdf8a7515ef5a8 | 2,995 | py | Python | IRIS/neural_network_classifier.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | 4 | 2017-08-17T02:11:45.000Z | 2017-09-25T00:46:13.000Z | IRIS/neural_network_classifier.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | null | null | null | IRIS/neural_network_classifier.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" The Neural Network classifier for IRIS. """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import urllib
import numpy as np
import tensorflow as tf
# Data sets
IRIS_TRAINING = "IRIS_data/iris_training.csv"
IRIS_TRAINI... | 31.526316 | 76 | 0.64374 |
d869ecca8bfeb43b69453b43534e3ee7c3f85941 | 1,124 | py | Python | challenges/consecutive-numbers/solutions/python/function/solution.py | Divlo/programming-challenges | bc1d34f126207098aa0926f05d9abb14d31d233b | [
"MIT"
] | 6 | 2020-07-05T13:53:15.000Z | 2021-11-09T16:03:19.000Z | challenges/consecutive-numbers/solutions/python/function/solution.py | Divlo/programming-challenges | bc1d34f126207098aa0926f05d9abb14d31d233b | [
"MIT"
] | 11 | 2021-06-07T17:32:49.000Z | 2021-12-28T21:14:09.000Z | challenges/consecutive-numbers/solutions/python/function/solution.py | Divlo/programming-challenges | bc1d34f126207098aa0926f05d9abb14d31d233b | [
"MIT"
] | null | null | null | from typing import List
import sys
input_values: List[str] = []
for value in sys.stdin:
input_values.append(value.rstrip('\n'))
numbers: List[int] = []
for value in input_values[1].split(' ; '):
numbers.append(int(value))
result = consecutive_numbers(numbers, int(input_values[0]))
for consecutive in result... | 33.058824 | 83 | 0.658363 |
d869ff5484e16850edfd0ff8bd4c584b368f28cc | 4,749 | py | Python | tests/test_utils.py | photosynthesis-team/photosynthesis.metrics | 4dc9e42057798a4c9c00e121c647a97fe90ea493 | [
"Apache-2.0"
] | 36 | 2019-12-20T11:03:05.000Z | 2020-06-14T19:08:20.000Z | tests/test_utils.py | photosynthesis-team/photosynthesis.metrics | 4dc9e42057798a4c9c00e121c647a97fe90ea493 | [
"Apache-2.0"
] | 94 | 2020-01-02T17:14:01.000Z | 2020-06-18T17:38:31.000Z | tests/test_utils.py | photosynthesis-team/photosynthesis.metrics | 4dc9e42057798a4c9c00e121c647a97fe90ea493 | [
"Apache-2.0"
] | 1 | 2020-05-23T10:17:52.000Z | 2020-05-23T10:17:52.000Z | import torch
import pytest
import numpy as np
from piq.utils import _validate_input, _reduce, _parse_version
# ================== Test function: `_validate_input` ==================
def test_breaks_if_not_supported_data_types_provided() -> None:
inputs_of_wrong_types = [[], (), {}, 42, '42', True, 42., np.a... | 34.165468 | 107 | 0.554854 |
d86a1d3f8be7cc0277c9fbefaafac0fb5dcf11a6 | 1,351 | py | Python | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0219_auto_20190611_1047.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-06-11 02:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 39.735294 | 208 | 0.655811 |
d86a7610b205b3e4cc679d4d420398b2a7ef8963 | 4,872 | py | Python | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | 1 | 2022-01-29T22:24:07.000Z | 2022-01-29T22:24:07.000Z | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | null | null | null | TorPool/tor_method.py | SUN-PEI-YUAN/TorPool | 6e77e3b4c0b1e370e6b9417e94dc358b1d25f365 | [
"MIT"
] | null | null | null | # coding: utf-8
import subprocess
import shutil
import sys
import os | 36.088889 | 142 | 0.594212 |
d86afc263a058c59d69da7fd728795aa66cae0a8 | 11,388 | py | Python | hdcs_manager/source/hsm/hsm/db/sqlalchemy/api.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | null | null | null | hdcs_manager/source/hsm/hsm/db/sqlalchemy/api.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | 1 | 2021-02-23T19:10:26.000Z | 2021-02-23T19:10:26.000Z | hdcs_manager/source/hsm/hsm/db/sqlalchemy/api.py | isabella232/HDCS | 1a5ae046e3ff947cc7a42219b9b1959766687612 | [
"Apache-2.0"
] | null | null | null |
import warnings
from sqlalchemy.orm import joinedload
from sqlalchemy.sql.expression import literal_column
from hsm.db.sqlalchemy import models
from hsm.db.sqlalchemy.session import get_session
from hsm import exception
from hsm import flags
from hsm.openstack.common import log as logging
from hsm.openstack.common i... | 29.426357 | 94 | 0.675272 |
d86b8d2cb1203098a91c8835cb29d38215e19a08 | 22 | py | Python | smartlinks/tests/management/__init__.py | ixc/glamkit-smartlinks | c550f372cecd08bdc81795b18f6b0cec38ac7bd2 | [
"BSD-3-Clause"
] | 3 | 2016-11-28T22:04:40.000Z | 2021-05-23T22:35:37.000Z | smartlinks/tests/management/__init__.py | ixc/glamkit-smartlinks | c550f372cecd08bdc81795b18f6b0cec38ac7bd2 | [
"BSD-3-Clause"
] | null | null | null | smartlinks/tests/management/__init__.py | ixc/glamkit-smartlinks | c550f372cecd08bdc81795b18f6b0cec38ac7bd2 | [
"BSD-3-Clause"
] | 2 | 2017-08-13T06:44:56.000Z | 2017-10-04T00:14:35.000Z | from commands import * | 22 | 22 | 0.818182 |
d86c1309ddd2edd8e2167dbffd1362d3332d251f | 6,245 | py | Python | stage.py | jon2718/ipycool_2.0 | 34cf74ee99f4a725b997c50a7742ba788ac2dacd | [
"MIT"
] | null | null | null | stage.py | jon2718/ipycool_2.0 | 34cf74ee99f4a725b997c50a7742ba788ac2dacd | [
"MIT"
] | null | null | null | stage.py | jon2718/ipycool_2.0 | 34cf74ee99f4a725b997c50a7742ba788ac2dacd | [
"MIT"
] | null | null | null | from drift import *
from hard_edge_transport import *
from hard_edge_sol import *
from accel import *
import sys
| 36.098266 | 169 | 0.485188 |
d86d4c2fd644a752cc17e0f5b088f867e1f0aa65 | 897 | py | Python | tests/test_req_parser.py | sbidoul/pip-deepfreeze | b7798b59454fb2f683f49e9e5827f91aa6e42106 | [
"MIT"
] | 19 | 2020-08-13T16:02:37.000Z | 2021-11-30T04:41:32.000Z | tests/test_req_parser.py | sbidoul/pip-deepfreeze | b7798b59454fb2f683f49e9e5827f91aa6e42106 | [
"MIT"
] | 56 | 2020-07-15T19:47:44.000Z | 2021-11-06T10:29:37.000Z | tests/test_req_parser.py | sbidoul/pip-deepfreeze | b7798b59454fb2f683f49e9e5827f91aa6e42106 | [
"MIT"
] | 1 | 2021-05-17T06:56:50.000Z | 2021-05-17T06:56:50.000Z | import pytest
from pip_deepfreeze.req_parser import get_req_name, get_req_names
| 30.931034 | 77 | 0.598662 |
d86da920f144ca528da52ec798ee6fddda911d3b | 3,310 | py | Python | ai.py | nip403/Boids | 9b642e54edbf7ff7fea163ebfd94217b65a2428c | [
"MIT"
] | null | null | null | ai.py | nip403/Boids | 9b642e54edbf7ff7fea163ebfd94217b65a2428c | [
"MIT"
] | null | null | null | ai.py | nip403/Boids | 9b642e54edbf7ff7fea163ebfd94217b65a2428c | [
"MIT"
] | null | null | null | import numpy as np
import random
# general
MAXSPEED = 20
MINSPEED = 5
EYESIGHT = 75
# separation
SEPARATION_FACTOR = 0.05
MIN_DIST = 20
# alignment
ALIGNMENT_FACTOR = 0.05
# cohesion
COHESION_FACTOR = 0.005
# bounds
MARGIN = 50
TURNFACTOR = 1
| 25.461538 | 70 | 0.448036 |
d86dd9f210c5df5e89d8cb021f9c722ac4523556 | 942 | py | Python | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | import math
| 26.914286 | 69 | 0.543524 |
d86e898eaf189c08d400028fbb8d2971795df000 | 5,107 | py | Python | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | core/management/commands/gendoc.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | import os
import re
import shutil
from ._base import DanubeCloudCommand, CommandOption, CommandError, lcd
| 44.798246 | 118 | 0.577247 |
d8710d2a180c48f1837f1928e378ef10b65eb465 | 8,655 | py | Python | caption_vae/scripts/plot_nonzero_weights_kde.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | 3 | 2021-01-24T00:28:40.000Z | 2021-02-04T12:34:07.000Z | caption_vae/scripts/plot_nonzero_weights_kde.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | null | null | null | caption_vae/scripts/plot_nonzero_weights_kde.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 09 Nov 2020 22:25:38
@author: jiahuei
cd caption_vae
python -m scripts.plot_nonzero_weights_kde --log_dir x --id y
/home/jiahuei/Documents/1_TF_files/prune/mscoco_v3
word_w256_LSTM_r512_h1_ind_xu_REG_1.0e+02_init_5.0_L1_wg_60.0_ann_sps_0.975_dec_prune_cnnFT/run_01_sparse
/home/... | 38.127753 | 109 | 0.623917 |
d8723e31987ced651ec6ee7cac0b7d24f592d4fe | 1,332 | py | Python | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | 1 | 2022-03-10T11:34:14.000Z | 2022-03-10T11:34:14.000Z | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | analytics_management/models.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
| 27.75 | 110 | 0.680931 |
d872cf72f4c679fba1819fdb9267f3e10cba9dd3 | 2,290 | py | Python | src/python/grapl_e2e_tests/tests.py | hxnyk/grapl | 2da7fb110506456175daf9c0061df7d8f6470f5d | [
"Apache-2.0"
] | null | null | null | src/python/grapl_e2e_tests/tests.py | hxnyk/grapl | 2da7fb110506456175daf9c0061df7d8f6470f5d | [
"Apache-2.0"
] | null | null | null | src/python/grapl_e2e_tests/tests.py | hxnyk/grapl | 2da7fb110506456175daf9c0061df7d8f6470f5d | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Any, Dict, List
from unittest import TestCase
import pytest
from grapl_analyzerlib.nodes.lens import LensQuery, LensView
from grapl_tests_common.clients.engagement_edge_client import EngagementEdgeClient
from grapl_tests_common.clients.graphql_endpoint_client import GraphqlEndpointCli... | 32.714286 | 100 | 0.665502 |
d8743971ba681c7d60eda6356538b2e7c98a6660 | 31,964 | py | Python | test/util_test.py | sbienkow/eg | 96142a74f4416b4a7000c85032c070df713b849e | [
"MIT"
] | 1,389 | 2015-03-05T03:59:20.000Z | 2022-03-30T19:42:05.000Z | test/util_test.py | sbienkow/eg | 96142a74f4416b4a7000c85032c070df713b849e | [
"MIT"
] | 78 | 2015-04-23T14:47:25.000Z | 2022-03-21T02:31:05.000Z | test/util_test.py | sbienkow/eg | 96142a74f4416b4a7000c85032c070df713b849e | [
"MIT"
] | 95 | 2015-03-05T02:18:39.000Z | 2022-03-19T07:10:00.000Z | import json
import os
from eg import config
from eg import substitute
from eg import util
from mock import Mock
from mock import patch
PATH_UNSQUEEZED_FILE = os.path.join(
'test',
'assets',
'pwd_unsqueezed.md'
)
PATH_SQUEEZED_FILE = os.path.join(
'test',
'assets',
'pwd_squeezed.md'
)
def _cr... | 28.236749 | 79 | 0.67745 |
d876286c7042485db533df19e342f7d8b51d4bbf | 465 | py | Python | manage/items/CommunicationInfo.py | isKEKE/AC03 | dff76cfc0d9524429eb11f3bca189dd54716c527 | [
"MIT"
] | null | null | null | manage/items/CommunicationInfo.py | isKEKE/AC03 | dff76cfc0d9524429eb11f3bca189dd54716c527 | [
"MIT"
] | null | null | null | manage/items/CommunicationInfo.py | isKEKE/AC03 | dff76cfc0d9524429eb11f3bca189dd54716c527 | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
import multiprocessing | 35.769231 | 69 | 0.690323 |
d87681277804def2e7d52d6c131c5188da5bd7be | 766 | py | Python | card_identifier/cardutils.py | adelq/card_identifier | 1e5947671f3d9f2dce6063a1d6249b8488e1e326 | [
"MIT"
] | 14 | 2019-01-02T14:57:04.000Z | 2021-06-24T05:14:29.000Z | card_identifier/cardutils.py | adelq/card_identifier | 1e5947671f3d9f2dce6063a1d6249b8488e1e326 | [
"MIT"
] | 1 | 2019-09-08T02:59:48.000Z | 2019-09-08T02:59:49.000Z | card_identifier/cardutils.py | adelq/card_identifier | 1e5947671f3d9f2dce6063a1d6249b8488e1e326 | [
"MIT"
] | 3 | 2019-02-01T00:08:04.000Z | 2020-03-31T09:07:33.000Z | def format_card(card_num):
"""
Formats card numbers to remove any spaces, unnecessary characters, etc
Input: Card number, integer or string
Output: Correctly formatted card number, string
"""
import re
card_num = str(card_num)
# Regex to remove any nondigit characters
return re.sub(... | 23.9375 | 74 | 0.608355 |
d8774c858f23bb72263b550e69dd922380441919 | 122 | py | Python | src/sage/symbolic/constant.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/symbolic/constant.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/symbolic/constant.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | from sage.misc.lazy_import import lazy_import
lazy_import('sage.symbolic.expression', 'PynacConstant', deprecation=32386)
| 40.666667 | 75 | 0.836066 |
d877c087af72ca345542775e075546a6694a0d12 | 1,422 | py | Python | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | examples/s2_extensions.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from oop_di import ContainerDefinition, Extension
# #############Mailer bounded context###############
# ############Product bounded context###########
# #################Application
container_definition = ContainerDefinition()
container_definition.add_extension(ProductE... | 22.571429 | 76 | 0.699015 |
d8791e91f3ee327e4337c89763504ef7887ad364 | 361 | py | Python | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 4 | 2021-07-02T02:57:31.000Z | 2022-02-01T17:31:14.000Z | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | null | null | null | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 3 | 2021-07-12T21:54:43.000Z | 2022-02-01T17:31:42.000Z | from astropy.io import fits
import numpy as np
| 20.055556 | 36 | 0.548476 |
d879e3d6b9d970febe5da5daf9d69dc466db3949 | 121 | py | Python | module10-modules.and.packages/deepcloudlabs/utils.py | deepcloudlabs/dcl160-2021-jun-28 | 51ca7b419ea8d1af8e1c6b468cf583b2141a992d | [
"MIT"
] | null | null | null | module10-modules.and.packages/deepcloudlabs/utils.py | deepcloudlabs/dcl160-2021-jun-28 | 51ca7b419ea8d1af8e1c6b468cf583b2141a992d | [
"MIT"
] | null | null | null | module10-modules.and.packages/deepcloudlabs/utils.py | deepcloudlabs/dcl160-2021-jun-28 | 51ca7b419ea8d1af8e1c6b468cf583b2141a992d | [
"MIT"
] | null | null | null |
lost_numbers = (4, 8, 15, 16, 23, 42)
| 12.1 | 37 | 0.570248 |
d87b4c2ba02bca7b637368bc4f4ecdf1d9ac1687 | 4,093 | py | Python | src/rbx2/rbx2_vision/nodes/nearest_cloud_with_pose.py | fujy/ROS-Project | b5e3b43c5eb5d3c1d984648f0f61710eea3a1bb8 | [
"MIT"
] | 9 | 2017-08-22T13:07:13.000Z | 2021-07-13T10:02:29.000Z | src/rbx2/rbx2_vision/nodes/nearest_cloud_with_pose.py | vcdanda/ROS-Turtlebot2 | f24356486f55933d52e25a81715f1571aace0224 | [
"MIT"
] | 1 | 2017-12-14T06:46:58.000Z | 2017-12-14T06:46:58.000Z | src/rbx2/rbx2_vision/nodes/nearest_cloud_with_pose.py | vcdanda/ROS-Turtlebot2 | f24356486f55933d52e25a81715f1571aace0224 | [
"MIT"
] | 5 | 2018-02-07T14:09:28.000Z | 2021-01-08T20:41:52.000Z | #!/usr/bin/env python
"""
nearest_cloud.py - Version 1.0 2013-07-28
Compute the COG of the nearest object in x-y-z space and publish as a PoseStamped message.
Relies on PCL ROS nodelets in the launch file to pre-filter the
cloud on the x, y and z dimensions.
Based on the follower app... | 33.008065 | 94 | 0.618617 |
d87e1d9695216ab00ce20f24fbb9e88f9600b92e | 1,473 | py | Python | datasets/hcp1200.py | NBCLab/niconn | cfcc1896a91f87bfb849b12f1fe4cd77d1f0a99a | [
"MIT"
] | null | null | null | datasets/hcp1200.py | NBCLab/niconn | cfcc1896a91f87bfb849b12f1fe4cd77d1f0a99a | [
"MIT"
] | null | null | null | datasets/hcp1200.py | NBCLab/niconn | cfcc1896a91f87bfb849b12f1fe4cd77d1f0a99a | [
"MIT"
] | null | null | null | import os
import os.path as op
| 34.255814 | 133 | 0.684997 |
d87e944918e29ee65cc11516d0136be74e1403a1 | 986 | py | Python | LeetCode/Algorithms/Math/2. Add Two Numbers.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Algorithms/Math/2. Add Two Numbers.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Algorithms/Math/2. Add Two Numbers.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # You are given two non-empty linked lists representing two non-negative integers.
# The digits are stored in reverse order and each of their nodes contain a single digit.
# Add the two numbers and return it as a linked list.
# You may assume the two numbers do not contain any leading zero, except the number 0 itself... | 29 | 93 | 0.551724 |
d881534818a726ed66374fd1b791859515909369 | 2,122 | py | Python | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_svg/migrations/0001_initial.py | parthenon/cmsplugin-svg | bb89705002cd3557f074f3f063a3ec251ca0a605 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-03 22:33
from django.db import migrations, models
import django.db.models.deletion
import filer.fields.file
| 55.842105 | 192 | 0.633836 |
d881b477a22ed1f78da11df06776a0e9cf84193c | 302 | py | Python | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | 1 | 2022-01-16T00:33:57.000Z | 2022-01-16T00:33:57.000Z | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | null | null | null | 5-gui.py | theseana/pesteh | 1125dc1055e3b8466c3c539c4afc2149d663dd46 | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
root.config(bg='yellow')
l1 = Label(root, text='Hello World!', bg='magenta')
l1.pack(side=LEFT)
b1 = Button(root, text='Click Me Please!', bg='cyan')
b1.pack(side=LEFT)
l2 = Label(root, text='Ta-Da!', bg='green')
l2.pack(side=LEFT)
root.mainloop()
| 18.875 | 54 | 0.629139 |
d88244ea9a924e467b7f42e0af0468cc89297a86 | 148 | py | Python | src/utils/overpass_wrapper/__init__.py | Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19 | c3532a86640631dcafa4e88d6efb32360f0faf0f | [
"Apache-2.0"
] | 1 | 2021-07-21T13:51:18.000Z | 2021-07-21T13:51:18.000Z | src/utils/overpass_wrapper/__init__.py | Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19 | c3532a86640631dcafa4e88d6efb32360f0faf0f | [
"Apache-2.0"
] | null | null | null | src/utils/overpass_wrapper/__init__.py | Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19 | c3532a86640631dcafa4e88d6efb32360f0faf0f | [
"Apache-2.0"
] | null | null | null | from .client_side import OverpassWrapperClientSide
from .server_side import OverpassWrapperServerSide
from .overpass_wrapper import OverpassWrapper
| 37 | 50 | 0.898649 |
d882505a2c97d476d34d048ae6b4d15d1f7b44c1 | 4,623 | py | Python | haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/environment.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | null | null | null | haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/environment.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | null | null | null | haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/environment.py | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | null | null | null | import lvgl as lv
import utime
# RESOURCES_ROOT = "S:/Users/liujuncheng/workspace/iot/esp32/solution/HaaSPython/solutions/smart_panel/"
RESOURCES_ROOT = "S:/data/pyamp/"
environment_alive = False
| 37.282258 | 110 | 0.669046 |
d88269b7dac6033d4c3bb99f3f32b5124118c0b4 | 1,207 | py | Python | anchor/__init__.py | olgabot/modish | f3fafebcbe6b525d9b461eb02494399229402269 | [
"BSD-3-Clause"
] | null | null | null | anchor/__init__.py | olgabot/modish | f3fafebcbe6b525d9b461eb02494399229402269 | [
"BSD-3-Clause"
] | null | null | null | anchor/__init__.py | olgabot/modish | f3fafebcbe6b525d9b461eb02494399229402269 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .model import ModalityModel
from .estimator import BayesianModalities
from .predict import ModalityPredictor
from .simulate import add_noise
from .visualize import MODALITY_TO_COLOR, MODALITY_ORDER, MODALITY_PALETTE,\
MODALITY_TO_CMAP, ModalitiesViz, violinplot, barplot
__author__ = 'O... | 37.71875 | 76 | 0.686827 |
d883b9402b2e431043b91f8f29e4ee4248eaa1ba | 20,375 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 7 | 2021-11-16T04:05:42.000Z | 2022-02-19T21:14:29.000Z | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/google/cloud/plugins/modules/gcp_redis_instance.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2022-03-01T05:43:07.000Z | 2022-03-01T05:43:07.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | 34.533898 | 147 | 0.672442 |
d8842c3d0cfc878e5c92a8fc8ba1dbc585a91688 | 3,452 | py | Python | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | import unittest
| 25.014493 | 81 | 0.612688 |
d884d18fcb8bab9fdae1894792a48243cc8a96d8 | 690 | py | Python | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | tests/test_blogs.py | MichelAtieno/Personal-Blog | 16657391b968e644b99fa0dde5d5a443881698da | [
"Unlicense"
] | null | null | null | import unittest
from app.models import BlogPost
from app import db | 28.75 | 82 | 0.7 |
d885bcf7c2809e705cb09676abf33bf651c041a9 | 603 | py | Python | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | numero_parole.py | mecroby/test_pi_learning | 5e32b768968b523445578f8dc33dd720930c72e7 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 15 20:33:49 2017
@author: roby
"""
#dato un numero n, restituisce le prime n parole pi usate
import sys
from collections import Counter
try:
num_words=int(sys.argv[1])
except:
print "usage: nomefile.py numero_parole"
sys.exit(1)
counter=... | 22.333333 | 94 | 0.630182 |
d885d02bf4294e56ec966993fa3fa32de015d43a | 2,002 | py | Python | scripts/getpopup.py | spyysalo/jensenlab-extract | 7a55323805bb02a28787be49795e4e99388050dc | [
"MIT"
] | null | null | null | scripts/getpopup.py | spyysalo/jensenlab-extract | 7a55323805bb02a28787be49795e4e99388050dc | [
"MIT"
] | null | null | null | scripts/getpopup.py | spyysalo/jensenlab-extract | 7a55323805bb02a28787be49795e4e99388050dc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
import os
import sys
import requests
from logging import error
DEFAULT_URL = 'http://tagger.jensenlab.org/ExtractPopup'
ENTITY_TYPES = [
'0', # Genes/proteins
'-1', # PubChem Compound identifiers
'-2', # NCBI Taxonomy entries
# ... | 27.424658 | 80 | 0.61039 |
d887a7dc3dcc6f8a2ca8fdfd06ef6be195c37c50 | 7,139 | py | Python | src/legacy/graph-study/MatrixP.py | konstantin-ogulchansky/pfe | a6983bc57dc51258d62e2104ca8820b2f2e36704 | [
"MIT"
] | null | null | null | src/legacy/graph-study/MatrixP.py | konstantin-ogulchansky/pfe | a6983bc57dc51258d62e2104ca8820b2f2e36704 | [
"MIT"
] | null | null | null | src/legacy/graph-study/MatrixP.py | konstantin-ogulchansky/pfe | a6983bc57dc51258d62e2104ca8820b2f2e36704 | [
"MIT"
] | null | null | null | import matplotlib.pylab as plt
import numpy as np
import json
import seaborn as sns
import pandas as pd
import os
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.ticker as ticker
from matplotlib.patches import Rectangle
import seaborn as sns
'''' This code was used to calculate the stocha... | 26.939623 | 158 | 0.55498 |
d8883f43a2a07b69890aa1061b4628d6d81c1c76 | 1,684 | py | Python | python/leetcode/easy/ex0205.py | vilisimo/ads | cba2b04db6fd2755e32d0e3f2e4480fd808155f5 | [
"MIT"
] | null | null | null | python/leetcode/easy/ex0205.py | vilisimo/ads | cba2b04db6fd2755e32d0e3f2e4480fd808155f5 | [
"MIT"
] | null | null | null | python/leetcode/easy/ex0205.py | vilisimo/ads | cba2b04db6fd2755e32d0e3f2e4480fd808155f5 | [
"MIT"
] | null | null | null | # Given two strings s and t, determine if they are isomorphic.
# Two strings s and t are isomorphic if the characters in s can be replaced to
# get t.
# All occurrences of a character must be replaced with another character while
# preserving the order of characters. No two characters may map to the same
# character,... | 28.542373 | 78 | 0.562945 |
d888b3b4dddb7b72686e118afab1a93389e16130 | 210 | py | Python | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | from src.tools.exceptions.base import GunicornFlaskBaseException
| 26.25 | 64 | 0.742857 |
d889f1181dc074410b869d6cd0ce89f96f784d93 | 427 | py | Python | a2t/legacy/topic_classification/__init__.py | zhuowenzheng/Ask2Transformers | f22fd980ff97351acc7e6117aaf272e5946581d4 | [
"Apache-2.0"
] | 63 | 2020-07-02T11:03:01.000Z | 2022-03-16T14:38:54.000Z | a2t/topic_classification/__init__.py | barana91/Ask2Transformers | c89307241a2d8be9ac2896c5e66e7fbc947237bb | [
"Apache-2.0"
] | 7 | 2021-03-17T18:29:25.000Z | 2022-02-23T06:19:28.000Z | a2t/topic_classification/__init__.py | barana91/Ask2Transformers | c89307241a2d8be9ac2896c5e66e7fbc947237bb | [
"Apache-2.0"
] | 8 | 2021-09-02T20:21:10.000Z | 2022-03-18T13:35:17.000Z | from .mlm import MLMTopicClassifier
from .mnli import NLITopicClassifierWithMappingHead, NLITopicClassifier
from .nsp import NSPTopicClassifier
from .babeldomains import BabelDomainsClassifier
from .wndomains import WNDomainsClassifier
__all__ = [
"NLITopicClassifierWithMappingHead",
"NLITopicClassifier",
... | 28.466667 | 71 | 0.805621 |
d88a2d7db32e6f798da168a5ca1a0ee451bd035f | 3,973 | py | Python | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | nodes/swagger_server/models/job_simulator_opts.py | rdbox-intec/r2s2_for_rostest | 42b70d3ba72cdae08e9fd5fcdce9ddaeca37297f | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
| 27.783217 | 128 | 0.63403 |
d88b1e0403585fc919505fbfb36497f335ba306a | 902 | py | Python | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test23.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test23.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test23.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | 'doc'
| 18.408163 | 39 | 0.446785 |
d88b2dca04f46637500ddd52a9ae3a5f2b3f87ce | 43,776 | py | Python | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | null | null | null | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | null | null | null | code/CCU004-2-run-models-[4].py | BHFDSC/CCU004_02 | 81c645d9877addfb500374c53689f13be6b56726 | [
"Apache-2.0"
] | 2 | 2022-01-04T17:04:45.000Z | 2022-02-02T10:17:56.000Z | # Databricks notebook source
# MAGIC %md
# MAGIC **Description** This notebook runs the model analysis pipeline for CCU004-2
# MAGIC
# MAGIC **Project(s)** CCU004-2 - A nationwide deep learning pipeline to predict stroke and COVID-19 death in atrial fibrillation
# MAGIC
# MAGIC **Author(s)** Alex Handy
# MAGIC
# ... | 42.295652 | 297 | 0.689053 |
d88cf0d8c690afa863ad03ecc943f302a6eda1e4 | 853 | py | Python | deepy/layers/prelu.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 260 | 2015-05-16T07:58:29.000Z | 2016-01-07T09:10:47.000Z | deepy/layers/prelu.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 20 | 2015-04-21T01:46:46.000Z | 2015-12-20T00:04:23.000Z | deepy/layers/prelu.py | zomux/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 50 | 2016-01-27T03:45:25.000Z | 2020-12-16T07:02:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from . import NeuralLayer
from conv import Convolution | 31.592593 | 66 | 0.614302 |
d88d81a17e4533616a531707dc6d6fbb69980fcd | 4,907 | py | Python | great_expectations/datasource/dbt_source.py | scarrucciu/great_expectations | 1481f7c3f5b411282f5c954c4d4b7c4609e2b69f | [
"Apache-2.0"
] | null | null | null | great_expectations/datasource/dbt_source.py | scarrucciu/great_expectations | 1481f7c3f5b411282f5c954c4d4b7c4609e2b69f | [
"Apache-2.0"
] | null | null | null | great_expectations/datasource/dbt_source.py | scarrucciu/great_expectations | 1481f7c3f5b411282f5c954c4d4b7c4609e2b69f | [
"Apache-2.0"
] | 1 | 2022-02-10T04:20:37.000Z | 2022-02-10T04:20:37.000Z | import os
import time
import logging
import errno
from ruamel.yaml import YAML
from .sqlalchemy_source import SqlAlchemyDatasource
from great_expectations.datasource.generator.batch_generator import BatchGenerator
yaml = YAML(typ='safe')
logger = logging.getLogger(__name__)
try:
import sqlalchemy
from sqlal... | 36.619403 | 171 | 0.609334 |
d88dbbafb09f9e5620ebb0c0a2726af886fe10c5 | 25,165 | py | Python | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | hanibal/crm_gestion_faces/report/cheques_gir_no_cob_reporte.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | # -*- encoding: utf-8 -*-
from openerp.report import report_sxw
import openerp.pooler
report_sxw.report_sxw(
'report.conciliacion.bancaria',
'rt.conciliacion.bancaria',
'addons/rt_verificacionbancaria/report/cheques_gir_no_cob_reporte.rml',
parser=conciliacion_bancaria_c,header=Fals... | 32.85248 | 137 | 0.476972 |
d88fd615e27e9bedcbbc112337a612f942bcf04c | 400 | py | Python | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | null | null | null | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | 9 | 2019-08-06T01:57:09.000Z | 2021-09-16T16:04:04.000Z | images/migrations/0002_auto_20180226_2100.py | andykimchris/Unsplash | dc0395a30ad983ea4620c30889cdb4b0ef6d707e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-02-26 18:00
from __future__ import unicode_literals
from django.db import migrations
| 20 | 48 | 0.6 |
d890caef8f7577958146b29142e4e97443a037bb | 1,996 | py | Python | repository.github/lib/service.py | ponchofcult/Turning-Japanese | d29118817c369a7f9161c72ac0cfb3b0f17f7298 | [
"MIT"
] | 4 | 2020-06-08T18:36:00.000Z | 2021-11-15T06:42:01.000Z | repository.github/lib/service.py | ponchofcult/Turning-Japanese | d29118817c369a7f9161c72ac0cfb3b0f17f7298 | [
"MIT"
] | 1 | 2022-03-07T15:07:26.000Z | 2022-03-08T07:21:14.000Z | repository.github/lib/service.py | ponchofcult/Turning-Japanese | d29118817c369a7f9161c72ac0cfb3b0f17f7298 | [
"MIT"
] | 1 | 2021-07-04T23:12:23.000Z | 2021-07-04T23:12:23.000Z | import logging
import os
import threading
from xml.etree import ElementTree # nosec
import xbmc
from lib import routes # noqa
from lib.httpserver import threaded_http_server
from lib.kodi import ADDON_PATH, get_repository_port, set_logger
def run():
set_logger()
port = get_repository_port()
with HT... | 29.352941 | 102 | 0.663828 |
d890e72c9adda1ff7b30a324a0c93ecf239895c4 | 45 | py | Python | user_login.py | AlainChomik/football | 0e511f002d67c1b337ced73e47163272dd6151c2 | [
"Apache-2.0"
] | null | null | null | user_login.py | AlainChomik/football | 0e511f002d67c1b337ced73e47163272dd6151c2 | [
"Apache-2.0"
] | null | null | null | user_login.py | AlainChomik/football | 0e511f002d67c1b337ced73e47163272dd6151c2 | [
"Apache-2.0"
] | null | null | null | Mein neuer Code...
Neue zeite Codezeile ...
| 15 | 25 | 0.688889 |
d893f3596e959d9834f2543fe29a617204f6ef74 | 9,664 | py | Python | utils.py | sahngmin/IMK_Keyboard | 22375ed5798ec43c9734c8b9d4fe374b8db58f48 | [
"MIT"
] | null | null | null | utils.py | sahngmin/IMK_Keyboard | 22375ed5798ec43c9734c8b9d4fe374b8db58f48 | [
"MIT"
] | null | null | null | utils.py | sahngmin/IMK_Keyboard | 22375ed5798ec43c9734c8b9d4fe374b8db58f48 | [
"MIT"
] | null | null | null | import torch
from data import get_diff
import editdistance
import re
from data import chars
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
import matplotlib.pyplot as plt
from matplotlib import pylab
import numpy as np
char_to_idx = {ch: i for i, ch in enumerate(chars)}
device = torch.device... | 32 | 125 | 0.587231 |
d894c6184e52a7c8ac071f8f156fcf53e4231961 | 6,277 | py | Python | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | pythonLoops.py | SandraCoburn/python-code-challenges | 52ca026c02a45cadc890d01fc095d39d42b36d4c | [
"MIT"
] | null | null | null | '''
We can use two types of loops in Python, a for loop and a while loop. A for loop iterates over a given sequence(iterator expression)
A while loop repeats as long as a boolean context evaluates to True.
the break statement terminates the loop containing it. Control of the program flows to the statement immediately ... | 33.388298 | 492 | 0.70368 |
d8965945ad6985da1a9a4430d54d6216025cbd48 | 110 | py | Python | exercices/003.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | exercices/003.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | exercices/003.py | haxuyennt38/python-learning | c5fcfc0abfd4aebf4ce58e2f23d378703bd48430 | [
"MIT"
] | null | null | null | yearOfbirthday = int(input())
year = 2017
age = year - yearOfbirthday
print (f'In 2017, i am {age} years old') | 27.5 | 40 | 0.7 |
d896b92786c756abe5bfc350a2fe42f3f303203a | 1,322 | py | Python | hashdist/formats/templated_stream.py | krafczyk/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 67 | 2015-01-21T14:16:20.000Z | 2022-03-31T23:21:09.000Z | hashdist/formats/templated_stream.py | dannygriffin000/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 77 | 2015-01-01T00:38:55.000Z | 2020-06-15T22:04:42.000Z | hashdist/formats/templated_stream.py | dannygriffin000/hashdist | a322a66d4bcd4b989a6a163cd2569f3e71995f60 | [
"BSD-3-Clause"
] | 20 | 2015-01-22T16:17:49.000Z | 2021-02-11T21:35:25.000Z | """
A simple stream constructor that constructs a Stream by evaluating
parameter substitutions from a dictionary parameters. Finds tokens of the form
\{\{([a-zA-Z_-][\w-]*)\}\}
and replaces {{var}} with the contents of gettattr(parameters, var) in
the new stream.
"""
import re
from StringIO import StringIO
| 30.045455 | 79 | 0.618003 |
d8970bd2837f2914c9911ea85e36f5b0511e32c3 | 3,154 | py | Python | swd/tools/leave.py | rrgodhorus/swd_django | 96058a72a151299e8ebadb04a82460ccca8864b4 | [
"MIT"
] | null | null | null | swd/tools/leave.py | rrgodhorus/swd_django | 96058a72a151299e8ebadb04a82460ccca8864b4 | [
"MIT"
] | 1 | 2018-04-25T00:10:51.000Z | 2018-04-25T00:10:51.000Z | swd/tools/leave.py | rrgodhorus/swd_django | 96058a72a151299e8ebadb04a82460ccca8864b4 | [
"MIT"
] | null | null | null | from .dev_info import leaves
| 45.710145 | 286 | 0.585289 |
d8971795bb442293f07813ed6fcce1bac8172707 | 701 | py | Python | files/recursion/recursion_examples-master/mergeSort2.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | null | null | null | files/recursion/recursion_examples-master/mergeSort2.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | null | null | null | files/recursion/recursion_examples-master/mergeSort2.py | multitudes/Python_am_Freitag | 189ce6ceee98b344292d14a7c82dfe18b7ede582 | [
"MIT"
] | null | null | null |
print(mergeSort([3,4,5,1,2,8,3,7,6])) | 25.035714 | 49 | 0.504993 |
d8974c153764d4e29a2f4d227db48c1915cc35b4 | 1,122 | py | Python | tests/Forum-app-api/run_client.py | MacHu-GWU/flask-restless-api-client-project | c93ac4a00c7562e6eb50d5dc9a92beeda7798c68 | [
"MIT"
] | null | null | null | tests/Forum-app-api/run_client.py | MacHu-GWU/flask-restless-api-client-project | c93ac4a00c7562e6eb50d5dc9a92beeda7798c68 | [
"MIT"
] | null | null | null | tests/Forum-app-api/run_client.py | MacHu-GWU/flask-restless-api-client-project | c93ac4a00c7562e6eb50d5dc9a92beeda7798c68 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from flaskrestlessapiclient import Resource
from pprint import pprint as ppt
import json
url = "http://127.0.0.1:5000/api/"
user = Resource(url, "user")
post = Resource(url, "post")
tag = Resource(url, "tag")
# test_post_all()
#... | 21.576923 | 52 | 0.605169 |
d899d8df0f282d6997185cd206095a224300208b | 3,483 | py | Python | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 8 | 2018-07-12T11:12:36.000Z | 2021-07-12T13:37:51.000Z | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 3 | 2018-11-13T22:40:12.000Z | 2020-12-11T12:13:46.000Z | rl_agent/scripts/agents/test/gym_ddpg_server.py | alejodosr/drl-landing-iros | d2a221ef06332d36398c2a27008dfc4276d92af8 | [
"MIT"
] | 7 | 2018-07-12T11:12:39.000Z | 2021-03-09T21:52:30.000Z | import filter_env
import rospy
from rl_agent_environment_communication.srv import *
import cv2
from cv_bridge import CvBridge
import gym
import numpy as np
ENV_NAME = 'LunarLanderContinuous-v2'
#ENV_NAME = 'Pendulum-v0'
DEBUG_SERVICES_MODE = False
env = filter_env.makeFilteredEnv(gym.make(ENV_NAME))
#env = gym.wrapp... | 27.210938 | 109 | 0.729543 |
d89b06fcef8d37cf29e8426902af9fd2fae016ee | 807 | py | Python | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | 4 | 2020-05-10T09:20:15.000Z | 2021-03-11T22:59:04.000Z | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | null | null | null | game/characters/enemy.py | FilippoLeone/pypega | 8dd3eee22dcac063d5de430a4c1e3e34a5cc5b85 | [
"MIT"
] | 1 | 2020-09-14T02:39:02.000Z | 2020-09-14T02:39:02.000Z | import pyxel
import constants as c
import random | 29.888889 | 96 | 0.519207 |
d89b0b52be7f8a1e2233814fd3c3e3a34bb8c711 | 1,822 | py | Python | oulukneeloc/proposals.py | kuhlaid/KneeLocalizer | 007dc81c2b9e5b889176ef15c63adcbdee32ce71 | [
"MIT"
] | 4 | 2019-02-18T23:25:28.000Z | 2021-09-28T14:46:24.000Z | oulukneeloc/proposals.py | basharbme/KneeLocalizer | ab1762edc7dbfbc861f56d3ca86d0f034d7beaf7 | [
"MIT"
] | 4 | 2018-11-23T20:46:53.000Z | 2022-02-18T07:36:23.000Z | oulukneeloc/proposals.py | basharbme/KneeLocalizer | ab1762edc7dbfbc861f56d3ca86d0f034d7beaf7 | [
"MIT"
] | 12 | 2018-07-10T08:19:32.000Z | 2021-09-28T14:46:28.000Z | import numpy as np
import pydicom as dicom
def read_dicom(filename):
"""Read DICOM file and convert it to a decent quality uint8 image.
Parameters
----------
filename: str
Existing DICOM file filename.
"""
try:
data = dicom.read_file(filename)
img = np.frombuffer(data.... | 27.606061 | 93 | 0.613063 |
d89c3d1405d9b16f198b69e2e136cfec97f32d86 | 160 | py | Python | Exerc_Python/desafio21a.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | Exerc_Python/desafio21a.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | Exerc_Python/desafio21a.py | BotoniLucas/Curso_Python | 6d6243e65758998d5cdd81b0ad06224784b88cb8 | [
"MIT"
] | null | null | null | # desafio 21
import pygame
pygame.mixer.init()
pygame.mixer.music.load('Deutschland.mp3')
pygame.mixer.music.play()
while (pygame.mixer.music.get_busy()): pass | 22.857143 | 43 | 0.76875 |
d89d029b5423b588b8221fac44da377ad8f364bd | 4,903 | py | Python | tou.py | PhilRW/appdaemon-apps | 96d21f73d0cbb49a29799c1f7bf4c42d98b4be26 | [
"MIT"
] | 5 | 2019-01-30T17:23:30.000Z | 2021-12-27T20:46:13.000Z | tou.py | PhilRW/appdaemon-apps | 96d21f73d0cbb49a29799c1f7bf4c42d98b4be26 | [
"MIT"
] | 1 | 2019-10-02T20:52:45.000Z | 2019-10-02T20:52:45.000Z | tou.py | PhilRW/appdaemon-apps | 96d21f73d0cbb49a29799c1f7bf4c42d98b4be26 | [
"MIT"
] | null | null | null | import datetime
import appdaemon.plugins.hass.hassapi as hass
import calendar
SHOULDER_START_HOUR = 13
PEAK_START_HOUR = 15
PEAK_END_HOUR = 19
# SHOULDER_END_HOUR = 21
SUMMER_MONTHS = [6, 7, 8, 9]
ON_PEAK = 'on-peak'
SHOULDER = 'shoulder'
OFF_PEAK = 'off-peak'
# PCCA = 0.00401
# DSMCA = 0.00159
# TCA = 0.00203
# CA... | 32.470199 | 85 | 0.577606 |
d8a0389ad3453fb1f422ef5157f6966f83562ed0 | 388 | py | Python | main.py | 4dcu-be/WinstonCubeSim | 744f219e60f3a63883ebee272ac562095396abab | [
"MIT"
] | null | null | null | main.py | 4dcu-be/WinstonCubeSim | 744f219e60f3a63883ebee272ac562095396abab | [
"MIT"
] | null | null | null | main.py | 4dcu-be/WinstonCubeSim | 744f219e60f3a63883ebee272ac562095396abab | [
"MIT"
] | null | null | null | from cubedata import RichCubeData as CubeData
import click
if __name__ == "__main__":
run()
| 20.421053 | 48 | 0.688144 |
d8a04a5bb0fbfb255a9d56aeb1bca04c5479f958 | 302 | py | Python | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 21 | 2019-09-02T20:42:30.000Z | 2021-09-14T09:54:04.000Z | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 2 | 2021-06-02T00:20:39.000Z | 2021-12-13T20:14:30.000Z | scripts/load_raw_data_into_db.py | netoferraz/acordaos-tcu | 67088d87d3ace7f85b8628955db7cf3ecdfaac45 | [
"MIT"
] | 2 | 2019-09-03T13:55:34.000Z | 2020-12-08T22:09:49.000Z | from scripts.funcs import initiate_db, load_csv_into_db, load_json_into_db
conn, cur = initiate_db("./db/acordaos-download.db")
#years = list(range(1992, 2000))
filename = "./data/api/raw/2018_2019.json"
load_json_into_db(filename, cursor=cur)
#load_csv_into_db(years, cur)
conn.commit()
conn.close()
| 30.2 | 74 | 0.774834 |
d8a196320c18913764b54a765deebe37c40b5c84 | 269 | py | Python | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | from .tetromino import Tetromino
| 19.214286 | 35 | 0.423792 |
d8a4dd33ffa49b5259ea5cdd7fcde3c8a942c108 | 337 | py | Python | RTplzrunBlog/BruteForce/10819.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | RTplzrunBlog/BruteForce/10819.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | RTplzrunBlog/BruteForce/10819.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | import sys
from itertools import permutations
read = sys.stdin.readline
n = int(read())
arr = list(map(int, read().split()))
# .
cases = list(permutations(arr))
result = 0
for card in cases:
ans = 0
for idx in range(n - 1):
ans += abs(card[idx] - card[idx + 1])
result = max(result, ans)
prin... | 15.318182 | 45 | 0.626113 |
d8a50f9b0c395ed015875f6e717a499b4fd00258 | 13,647 | py | Python | upy/contrib/customadmin/models.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 2 | 2021-05-04T07:52:39.000Z | 2021-07-11T22:19:32.000Z | upy/contrib/customadmin/models.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 1 | 2017-11-03T10:17:23.000Z | 2017-11-03T10:17:23.000Z | upy/contrib/customadmin/models.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | null | null | null | """
It contains customadmin's models. It's used to customize admin's interface
"""
from upy.contrib.tree.models import _
from django.db import models
from upy.contrib.colors.fields import ColorField
from upy.contrib.sortable.models import PositionModel
from django.conf import settings
from imagekit.models import ImageS... | 48.739286 | 142 | 0.54664 |
d8a517012e48b5bb958e754dbf1e564082718cef | 2,759 | py | Python | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 289 | 2015-01-01T15:36:55.000Z | 2022-03-27T00:22:27.000Z | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 26 | 2015-01-21T16:34:41.000Z | 2020-08-26T15:12:54.000Z | tools/hippydebug.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 35 | 2015-01-05T12:09:41.000Z | 2022-03-16T09:30:16.000Z | #!/usr/bin/env python
"""Hippy debugger.
Usage: hippydebug.py [debugger_options] ../hippy-c args...
(There are no debugger_options so far.)
"""
import sys, os, signal
import getopt
import subprocess
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from hippy.debugger import Connection,... | 29.042105 | 79 | 0.573759 |
d8a6eff278d19d023fab908a4d972f60e45c7d8d | 4,096 | py | Python | pygeonet_prepare.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | 2 | 2020-12-23T17:56:48.000Z | 2021-02-01T20:16:05.000Z | pygeonet_prepare.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | null | null | null | pygeonet_prepare.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | 1 | 2020-04-28T21:48:40.000Z | 2020-04-28T21:48:40.000Z | #! /usr/bin/env python
import os
import shutil
import sys
import gdal
import wetland_id_defaults as default
"""
Folder structure for pyGeoNet is as follows
geoNetHomeDir : defines where files will be written
e.g.
geoNetHomeDir = "C:\\Mystuff\\IO_Data\\"
--- \\data (input lidar files will be rea... | 33.032258 | 105 | 0.730225 |
d8a71387fda8430f0022fe54e931176d01f5e1cf | 2,380 | py | Python | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 1 | 2020-04-12T10:08:10.000Z | 2020-04-12T10:08:10.000Z | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:09:45.000Z | 2022-03-08T21:09:57.000Z | brewerslab-orig-master/pitmButtonv2.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import threading
import time
from pitmMcastOperations import pitmMcast
from pitmLogHandler import pitmLogHandler
from gpiotools2 import gpiotools2
from pitmCfg import pitmCfg
if __name__ == '__main__':
buttonController = pitmButton()
broadcastResult = threading.Thread... | 27.674419 | 95 | 0.62521 |
d8a7230534db073c5ffa3f79a291a7bc904c8d11 | 361 | py | Python | yelp/obj/region.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | 8 | 2016-05-13T20:59:39.000Z | 2017-02-01T03:26:57.000Z | yelp/obj/region.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | 1 | 2016-08-08T03:53:21.000Z | 2016-08-08T04:09:07.000Z | yelp/obj/region.py | ruchir594/messenger-bot-yelp-aws | 757d9e3e599432954a1acbf477b2f40e5c2d247c | [
"MIT"
] | 4 | 2016-06-21T00:26:55.000Z | 2019-12-23T15:55:42.000Z | # -*- coding: UTF-8 -*-
from yelp.obj.coordinate import Coordinate
from yelp.obj.response_object import ResponseObject
from yelp.obj.span import Span
| 25.785714 | 51 | 0.711911 |
d8a8be7176c225f7e17fbe31e29722d7b21628c6 | 1,167 | py | Python | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/mappings/event_action_set.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | """
All available event actions.
"""
from __future__ import print_function
from django.conf import settings
from evennia.utils import logger
from muddery.utils.exception import MudderyError
from muddery.utils.utils import classes_in_path
from muddery.events.base_event_action import BaseEventAction
EVENT_ACTION_SET... | 22.882353 | 85 | 0.608398 |
d8a9231416df4329b68705f67027a39e5c572589 | 3,401 | py | Python | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | bcml4pheno/ttbarzp.py | sheride/bcml4pheno | c9629dafcdbee0a4c28ceb7b28c9862de8479a24 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: ttbarzp.ipynb (unless otherwise specified).
__all__ = ['get_elijah_ttbarzp_cs', 'get_manuel_ttbarzp_cs', 'import47Ddata', 'get47Dfeatures']
# Cell
import numpy as np
import tensorflow as tf
# Cell
def get_elijah_ttbarzp_cs():
r"""
Contains cross section information... | 41.987654 | 121 | 0.614525 |
d8a93321e34f3f2ddc18f49907a9271df644f115 | 124 | py | Python | SensorMonitor/__init__.py | Nzbuu/SensorMonitor | 4523e9accc3e57718d752d4f2a22fdb77f80fd82 | [
"MIT"
] | null | null | null | SensorMonitor/__init__.py | Nzbuu/SensorMonitor | 4523e9accc3e57718d752d4f2a22fdb77f80fd82 | [
"MIT"
] | null | null | null | SensorMonitor/__init__.py | Nzbuu/SensorMonitor | 4523e9accc3e57718d752d4f2a22fdb77f80fd82 | [
"MIT"
] | null | null | null | __author__ = 'James Myatt'
__version__ = '0.0.2'
__all__ = [
'monitor', 'sensor', 'utils',
'time', 'w1therm'
]
| 15.5 | 33 | 0.564516 |
d8aa4d674619a35ccf24adbf6c26f5b008a9aa9c | 12,270 | py | Python | manila_tempest_tests/tests/api/admin/test_quotas.py | scality/manila | b4a67d033cdcbc1389ae52f35ad281be7a18c9ae | [
"Apache-2.0"
] | 1 | 2015-05-28T22:28:08.000Z | 2015-05-28T22:28:08.000Z | manila_tempest_tests/tests/api/admin/test_quotas.py | scality/manila | b4a67d033cdcbc1389ae52f35ad281be7a18c9ae | [
"Apache-2.0"
] | 5 | 2015-08-13T15:17:28.000Z | 2016-08-02T02:55:01.000Z | manila_tempest_tests/tests/api/admin/test_quotas.py | scality/manila | b4a67d033cdcbc1389ae52f35ad281be7a18c9ae | [
"Apache-2.0"
] | 2 | 2015-08-29T08:19:58.000Z | 2016-08-02T02:46:10.000Z | # Copyright 2014 Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 37.87037 | 78 | 0.66251 |
d8acbc99a45e1dea4525e0f789d727dac633741d | 4,327 | py | Python | scanners/zap-advanced/scanner/zapclient/__main__.py | watchmen-coder/secureCodeBox | ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d | [
"Apache-2.0"
] | 1 | 2021-05-24T08:17:48.000Z | 2021-05-24T08:17:48.000Z | scanners/zap-advanced/scanner/zapclient/__main__.py | watchmen-coder/secureCodeBox | ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d | [
"Apache-2.0"
] | null | null | null | scanners/zap-advanced/scanner/zapclient/__main__.py | watchmen-coder/secureCodeBox | ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0
import argparse
import logging
import sys
from zapv2 import ZAPv2
from .zap_automation import ZapAutomation
# set up logging to file - see previous section for more details
logging.basicConfig(
level=logging.INFO,
format='%... | 36.361345 | 169 | 0.575688 |
d8ae73d38d5c3ddf758f8b307b86f0cea7f183a9 | 444 | py | Python | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 12 | 2021-10-15T11:48:12.000Z | 2022-03-24T07:31:43.000Z | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 2 | 2021-12-29T16:31:05.000Z | 2021-12-30T00:50:40.000Z | aiohttp_admin2/controllers/types.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | null | null | null | import typing as t
__all__ = ["Cell", "ListObject", ]
| 21.142857 | 53 | 0.650901 |
d8afa7a17e2a7bf5bb8404841d74375ace6100e7 | 4,770 | py | Python | visualizer/visualizer.py | Jueast/VLAE_Pytorch | 8373390008d611909997e4a3de8396f617d53a49 | [
"MIT"
] | null | null | null | visualizer/visualizer.py | Jueast/VLAE_Pytorch | 8373390008d611909997e4a3de8396f617d53a49 | [
"MIT"
] | null | null | null | visualizer/visualizer.py | Jueast/VLAE_Pytorch | 8373390008d611909997e4a3de8396f617d53a49 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import os
import numpy as np
import scipy.misc as misc
from torchvision.utils import save_image
from torch.autograd import Variable
import torch
| 42.589286 | 111 | 0.615304 |
d8b06d4f81da828634ca030cd566b0be57821d3b | 34,364 | py | Python | manpy/simulation/CompoundObject.py | datarevenue-berlin/manpy | 0056eb6e93cba3bf2a1061f9170aa2a1edf248f6 | [
"MIT"
] | 3 | 2020-09-08T07:52:52.000Z | 2021-02-10T07:52:14.000Z | manpy/simulation/CompoundObject.py | datarevenue-berlin/manpy | 0056eb6e93cba3bf2a1061f9170aa2a1edf248f6 | [
"MIT"
] | 1 | 2021-12-13T23:50:40.000Z | 2021-12-14T09:58:42.000Z | manpy/simulation/CompoundObject.py | datarevenue-berlin/manpy | 0056eb6e93cba3bf2a1061f9170aa2a1edf248f6 | [
"MIT"
] | 2 | 2020-10-21T03:08:45.000Z | 2021-09-21T20:21:03.000Z | # ===========================================================================
# Copyright 2013 University of Limerick
#
# This file is part of DREAM.
#
# DREAM is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Founda... | 50.90963 | 147 | 0.51778 |
d8b0ae48aeb732568579f2b38fe2695b601efb75 | 667 | py | Python | ex7/ex7-1.py | ricek/lpthw | e2c1c52e41d3a24121f32ebd79d2d26aa6325486 | [
"CNRI-Python"
] | null | null | null | ex7/ex7-1.py | ricek/lpthw | e2c1c52e41d3a24121f32ebd79d2d26aa6325486 | [
"CNRI-Python"
] | null | null | null | ex7/ex7-1.py | ricek/lpthw | e2c1c52e41d3a24121f32ebd79d2d26aa6325486 | [
"CNRI-Python"
] | null | null | null | # Prints out a string
print("Mary had a little lamb.")
# Prints out a formatted string
print("Its fleece was white as {}.".format('snow'))
# Prints out another string
print("and everywhere that Mary went.")
# Prints a period for ten times
print("." * 10) # what'd that do?
# Assign a letter to string variable
end1 = "... | 23.821429 | 66 | 0.650675 |
d8b1ac767220107dcae2af420dd45336ec49a8d3 | 9,548 | py | Python | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | sppas/sppas/src/ui/phoenix/page_files/refstreectrl.py | mirfan899/MTTS | 3167b65f576abcc27a8767d24c274a04712bd948 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ ... | 36.723077 | 94 | 0.506912 |
d8b419e38f22dcd5aaec2a3413fa20c014e92fd3 | 1,170 | py | Python | examples/run_random.py | xiviu123/rlcard | 2a5273dff6c9dd49a3d4ab84a952fed9a387955b | [
"MIT"
] | null | null | null | examples/run_random.py | xiviu123/rlcard | 2a5273dff6c9dd49a3d4ab84a952fed9a387955b | [
"MIT"
] | null | null | null | examples/run_random.py | xiviu123/rlcard | 2a5273dff6c9dd49a3d4ab84a952fed9a387955b | [
"MIT"
] | null | null | null | ''' An example of playing randomly in RLCard
'''
import argparse
import pprint
import rlcard
from rlcard.agents import RandomAgent
from rlcard.utils import set_seed
if __name__ == '__main__':
parser = argparse.ArgumentParser("Random example in RLCard")
parser.add_argument('--env', type=str, default='leduc-hol... | 29.25 | 147 | 0.688034 |
d8b4e47a454ccd17596e7d034c11a5596f9e3150 | 7,573 | py | Python | code/SVMExample.py | mahehu/SGN-41007 | c8ed169a0a5f70fb87b99448e39a573c0df584b2 | [
"MIT"
] | 61 | 2017-01-09T07:48:08.000Z | 2021-12-15T15:13:49.000Z | code/SVMExample.py | mahehu/SGN-41007 | c8ed169a0a5f70fb87b99448e39a573c0df584b2 | [
"MIT"
] | null | null | null | code/SVMExample.py | mahehu/SGN-41007 | c8ed169a0a5f70fb87b99448e39a573c0df584b2 | [
"MIT"
] | 46 | 2017-01-10T19:32:04.000Z | 2020-11-20T08:29:20.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 4 11:01:16 2015
@author: hehu
"""
import matplotlib.pyplot as plt
import numpy as np
from sklearn.neighbors import KNeighborsClassifier
from sklearn.lda import LDA
from sklearn.svm import SVC, LinearSVC
from sklearn.linear_model import LogisticRegression
from sklearn.na... | 34.112613 | 100 | 0.456226 |
d8b4ef88996d2847dce287ee8237d1d76d1f9da8 | 586 | py | Python | abb_deeplearning_keras/Source_code/models/quiver_server.py | habichta/ETHZDeepReinforcementLearning | e1ae22159753724290f20068214bb3d94fcb7be4 | [
"BSD-3-Clause"
] | 7 | 2018-01-23T05:17:50.000Z | 2020-10-30T02:29:59.000Z | abb_deeplearning_keras/Source_code/models/quiver_server.py | habichta/ETHZDeepReinforcementLearning | e1ae22159753724290f20068214bb3d94fcb7be4 | [
"BSD-3-Clause"
] | null | null | null | abb_deeplearning_keras/Source_code/models/quiver_server.py | habichta/ETHZDeepReinforcementLearning | e1ae22159753724290f20068214bb3d94fcb7be4 | [
"BSD-3-Clause"
] | 2 | 2018-01-23T05:17:58.000Z | 2018-07-02T00:13:34.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 14 12:31:13 2017
@author: maverick
"""
import keras
from keras.applications import vgg16
#model = vgg16.VGG16()
#
#from quiver_engine.server import launch
#launch(model, input_folder='./img', port=7000)
import resnet
model ... | 22.538462 | 96 | 0.715017 |
d8b5a2ce2ff0668db215b00bf9ffcc0dbae0f4aa | 3,119 | py | Python | MusicObjectDetection/preprocessing/dataset_splitter.py | apacha/MusicObjectDetection | 6b3491e3cf093bb389ea13a0ea741f5a497e1819 | [
"MIT"
] | 2 | 2019-03-12T07:02:30.000Z | 2020-03-13T13:53:09.000Z | MusicObjectDetection/preprocessing/dataset_splitter.py | apacha/MusicObjectDetection | 6b3491e3cf093bb389ea13a0ea741f5a497e1819 | [
"MIT"
] | 2 | 2020-06-10T09:14:08.000Z | 2020-09-14T20:08:43.000Z | MusicObjectDetection/preprocessing/dataset_splitter.py | apacha/MusicObjectDetection | 6b3491e3cf093bb389ea13a0ea741f5a497e1819 | [
"MIT"
] | 7 | 2019-03-25T12:43:54.000Z | 2021-06-09T13:08:51.000Z | import argparse
import os
import random
import pandas as pd
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--dataset_directory", type=str, default="../data/normalized/deepscores",
help="The base directory for the normalized dataset")
flags, unp... | 53.775862 | 118 | 0.66688 |
d8b630ba42b454a6cdfeb2ff3c34e6a77e4b160a | 10,296 | py | Python | python/eu_class_user.py | IVFL-BOKU/landsupport | 36c3290c31e54cf717d62347477137ef74f1600e | [
"MIT"
] | null | null | null | python/eu_class_user.py | IVFL-BOKU/landsupport | 36c3290c31e54cf717d62347477137ef74f1600e | [
"MIT"
] | null | null | null | python/eu_class_user.py | IVFL-BOKU/landsupport | 36c3290c31e54cf717d62347477137ef74f1600e | [
"MIT"
] | 1 | 2019-10-08T15:40:01.000Z | 2019-10-08T15:40:01.000Z | import argparse
import datetime
import itertools
import json
import logging
import os
import psycopg2
import re
import requests
import shutil
import subprocess
import sys
import traceback
parser = argparse.ArgumentParser()
parser.add_argument('--dbConf')
parser.add_argument('--rasdamanUrl', default='http://rasdaman:90... | 42.02449 | 284 | 0.648893 |
d8b9aa2f627ed0a618578ec601b0b22134b69e0f | 1,638 | py | Python | test/test_beacon_api.py | NCATS-Tangerine/tkbeacon-python-client | a5a88405b6eb5c998b66f6741b589ba72839fd51 | [
"MIT"
] | null | null | null | test/test_beacon_api.py | NCATS-Tangerine/tkbeacon-python-client | a5a88405b6eb5c998b66f6741b589ba72839fd51 | [
"MIT"
] | null | null | null | test/test_beacon_api.py | NCATS-Tangerine/tkbeacon-python-client | a5a88405b6eb5c998b66f6741b589ba72839fd51 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Translator Knowledge Beacon API
This is the Translator Knowledge Beacon web service application programming interface (API). # noqa: E501
The version of the OpenAPI document: 1.3.0
Contact: richard@starinformatics.com
Generated by: https://openapi-generator.tech
"""
from _... | 19.73494 | 111 | 0.642247 |
d8ba2542b682eb6bc9da356535ac7285b7bf836a | 296 | py | Python | Executor/GraphExecutionType.py | keshenjey/Heft | bf935ab8afd63d9f1b058b3d3707abef4a71e15c | [
"MIT"
] | 3 | 2017-02-15T08:32:17.000Z | 2017-03-23T17:13:24.000Z | Executor/GraphExecutionType.py | Keshann/Heft | bf935ab8afd63d9f1b058b3d3707abef4a71e15c | [
"MIT"
] | 8 | 2016-06-12T04:14:38.000Z | 2016-06-14T03:39:15.000Z | Executor/GraphExecutionType.py | Keshann/Heft | bf935ab8afd63d9f1b058b3d3707abef4a71e15c | [
"MIT"
] | 1 | 2019-01-31T17:49:04.000Z | 2019-01-31T17:49:04.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import Graph
| 19.733333 | 37 | 0.736486 |
d8bbb9f49bffa98388e941a9ea0b4a1339f5b9ca | 4,667 | py | Python | Experiment2/Photoeffect_Plank/Photoeffect_Plank.py | wzk1015/PhysicsExperiment | 8a2692f64059232d29ee05519b41ba3a5875c5ed | [
"MIT"
] | 2 | 2022-01-22T06:04:47.000Z | 2022-01-31T03:26:04.000Z | Experiment2/Photoeffect_Plank/Photoeffect_Plank.py | wzk1015/PhysicsExperiment | 8a2692f64059232d29ee05519b41ba3a5875c5ed | [
"MIT"
] | null | null | null | Experiment2/Photoeffect_Plank/Photoeffect_Plank.py | wzk1015/PhysicsExperiment | 8a2692f64059232d29ee05519b41ba3a5875c5ed | [
"MIT"
] | null | null | null | #
import xlrd
import os, sys, shutil
from numpy import array, asarray, abs
sys.path.append("../..")
from GeneralMethod.PyCalcLib import Method, Fitting
from GeneralMethod.Report import Report
if __name__ == '__main__':
Photoeffect_Plank() | 35.090226 | 87 | 0.544461 |
d8bd9a8ceac50742b31415693499379e4a5d5377 | 8,540 | py | Python | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoBTag/PerformanceDB/python/measure/Btag_btagTtbarWp0612.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
BtagPerformanceESProducer_TTBARWPBTAGCSVL = cms.ESProducer("BtagPerformanceESProducer",
# this is what it makes available
ComponentName = cms.string('TTBARWPBTAGCSVL'),
# this is where it gets the payload from
PayloadName =... | 57.315436 | 89 | 0.709133 |
d8bdd148d097f18ccb47562befd806bff9b21f4c | 216 | py | Python | wntr/scenario/__init__.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | wntr/scenario/__init__.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | wntr/scenario/__init__.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | """
The wntr.scenario package contains methods to define disaster scenarios and
fragility/survival curves.
"""
from wntr.scenario.earthquake import Earthquake
from wntr.scenario.fragility_curve import FragilityCurve | 36 | 76 | 0.837963 |