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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b679e07e4853c1ac8702e21a433f7100a58636c7 | 1,553 | py | Python | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | 1 | 2019-11-06T11:29:31.000Z | 2019-11-06T11:29:31.000Z | import citationsCommon
# df is the dataframe read from json before we've filtered out rows where
# references is NULL
# partitionCount says how many partitions to coalesce the intermediate
# data to.
| 41.972973 | 86 | 0.666452 |
b67a5113b21316f83812bfead9269a89744903e8 | 8,727 | py | Python | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 17 | 2015-05-23T11:09:46.000Z | 2021-12-10T14:28:01.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 3 | 2015-03-23T04:35:25.000Z | 2017-09-15T07:12:15.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 2 | 2016-01-07T00:38:13.000Z | 2020-12-02T08:27:28.000Z | # Copyright (c) 2009, Tomohiro Kusumi
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | 31.619565 | 81 | 0.569153 |
b67b288e83765b98929b985fef59c826ad896b2c | 1,532 | py | Python | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | ststuck/usaspending-api | b13bd5bcba0369ff8512f61a34745626c3969391 | [
"CC0-1.0"
] | 217 | 2016-11-03T17:09:53.000Z | 2022-03-10T04:17:54.000Z | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | Hk92a/usaspending-api | 25daa9dbc30835b8f4b4c797c592ba9ecc78ca00 | [
"CC0-1.0"
] | 622 | 2016-09-02T19:18:23.000Z | 2022-03-29T17:11:01.000Z | usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py | Hk92a/usaspending-api | 25daa9dbc30835b8f4b4c797c592ba9ecc78ca00 | [
"CC0-1.0"
] | 93 | 2016-09-07T20:28:57.000Z | 2022-02-25T00:25:27.000Z | # Generated by Django 2.2.19 on 2021-03-11 18:27
from django.db import migrations, models
import django.db.models.deletion
| 34.044444 | 109 | 0.553525 |
b67bd574fe892b817e3e205848dedd222bd9824b | 1,493 | py | Python | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch_scatter import scatter_mean
from torch.nn import Linear, ReLU
from torch_geometric.nn import GraphConv
| 28.169811 | 100 | 0.636303 |
b67d5f4f80272dd118a8a67e39a34490d5c2cb23 | 392 | py | Python | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20171228_1322.py | MirzaBaig715/learn-online | 1f2e5a48e383d632933b1eca98f7a2a88a92b2db | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2017-12-28 13:22
from django.db import migrations, models
| 20.631579 | 73 | 0.591837 |
b67e4db8f00b585b7a13ade5c1abf4013518f113 | 7,437 | py | Python | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | import json
import httpx
import requests
import urllib
import ssl
from urllib3 import poolmanager
from bs4 import BeautifulSoup
from unilogin import Unilogin | 67.609091 | 450 | 0.671238 |
b67e8c2b0c5ddd808117b7d17c7cf6d08076154f | 1,433 | py | Python | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | 1 | 2021-11-28T00:45:25.000Z | 2021-11-28T00:45:25.000Z | from valor import Valor
from discord.ext.commands import Context
from util import ErrorEmbed, LongTextEmbed, LongFieldEmbed, guild_name_from_tag
import random
from datetime import datetime
import requests
from sql import ValorSQL
from commands.common import get_uuid, from_uuid
| 37.710526 | 227 | 0.667132 |
b67fafcf42495a4fa6560d767936e8f9b6d7796e | 1,057 | py | Python | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 10 | 2019-08-21T01:42:44.000Z | 2021-12-24T02:18:04.000Z | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | null | null | null | tests/test_simhash.py | Marcnuth/deduplication | c407cb11e5dd7f13360639dbd55efb4ffc2bd80c | [
"Apache-2.0"
] | 4 | 2020-02-10T08:58:20.000Z | 2021-07-08T14:08:32.000Z | from deduplication import simhash, lsimhash
from pathlib import Path
from scipy.spatial.distance import hamming
import numpy as np
import textwrap
| 48.045455 | 369 | 0.756859 |
b67fc419ca923c33d18cdee4e07420f2516e020f | 164 | py | Python | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | metric.py | Nozdi/kaggle-bike-share-demand | 715b61ff3560c65f1581bda7cc5baec9cf5e76dd | [
"MIT"
] | null | null | null | import numpy as np
| 23.428571 | 77 | 0.676829 |
b6803575349013e6f95b7ac55200cff1e47ba73f | 11,581 | py | Python | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | 1 | 2020-04-23T12:38:07.000Z | 2020-04-23T12:38:07.000Z | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | generator.py | nilankamanoj/spring-rsc-generator | 8e6c303751571e84ca029f2576d3f2cc92ea7ed7 | [
"Apache-2.0"
] | null | null | null | from os import listdir, makedirs
from os.path import isfile, join, exists
from __main__ import *
print '\033[32m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\033[0m\n'
print '\033[94m'+'||===== '+'\033[92m' + ' ====== '+'\033[93m'+' ====='
print '\033[94m'+'|| \\\\ '+... | 52.881279 | 1,231 | 0.571194 |
b680c50a7b7c89ff2e3642335168615352eb2ef1 | 1,132 | py | Python | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | twitter_clone/users/models/profile.py | ag94e/Twitter_clone | 037ab41b79e7c236a85bb0e9c0e892dfa3ba407a | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.core.validators import RegexValidator | 33.294118 | 102 | 0.678445 |
b6810fce8cb140c6eacc9841d12f9fa404ed0bac | 3,388 | py | Python | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | 2 | 2020-04-26T16:57:37.000Z | 2020-04-26T16:57:40.000Z | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | from game.sequence import Sequence
max_value = 999888777666555
| 30.8 | 88 | 0.563164 |
b68116a66a4de7ee10965623e6d1922379799cea | 4,620 | py | Python | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
from flask import Flask, render_template, request,jsonify
import random
# from flask.ext.sqlalchemy import SQLAlchemy
import logging
from logging impor... | 32.083333 | 88 | 0.5671 |
b6833905716414b7fc7d6f77dff5aa4d0c6d4d14 | 9,836 | py | Python | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | 1 | 2020-09-01T08:49:24.000Z | 2020-09-01T08:49:24.000Z | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Written by Antonio Galea - 2010/11/18
# Distributed under Gnu LGPL 3.0
# see http://www.gnu.org/licenses/lgpl-3.0.txt
import binascii
import os
import struct
import sys
import zlib
from optparse import OptionParser
try:
from intelhex import IntelHex
except ImportError:
IntelHex = Non... | 35.25448 | 122 | 0.51281 |
b6854c3fe8824d72793c01c59fac84170b474e24 | 636 | py | Python | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | setup.py | bmsimang/Analyse_Function_Predict_Group2 | 2f4ee80860ff781493e78cff693d18dd049fdd35 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='predict_functions_package',
version='0.1',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='A list of python Data Analysis Functions',
long_description=open('README.md').read(),
install_requires=['numpy', 'panda... | 45.428571 | 144 | 0.745283 |
b6857c3a9f8eac380eda21da26fac71984173300 | 12,313 | py | Python | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | import numpy as np
import os
import os.path as op
import matplotlib.pyplot as plt
import pickle
from tqdm import tqdm
from Board import Board
from func import opposite_color, loc2int, int2color, is_last_rank
LETTERS = [chr(i) for i in range(65, 65+26)]
BOARD_DIM = 8
N_PIECES = 6
MAX_MOVES = 100
def load_network... | 34.013812 | 103 | 0.70925 |
b686d0afc43a520dbac2ae42822b469d33f9f3d0 | 4,901 | py | Python | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2018 Intel Corporation
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 writin... | 34.758865 | 106 | 0.598653 |
b6871d09585056a5b2254aec8a95efcb0fbeee1d | 1,843 | py | Python | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | null | null | null | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 43 | 2021-03-02T04:10:01.000Z | 2022-03-16T20:26:55.000Z | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 2 | 2021-03-02T12:27:00.000Z | 2021-12-16T03:22:20.000Z | #!/usr/bin/env python3
import logging
import re
import shlex
import subprocess as sp
import sys
import time
from typing import Optional
logger = logging.getLogger("__name__")
logger.setLevel(40)
MAX_STATUS_ATTEMPTS = 20
STATUS_CODES = {
"BOOT_FAIL": "failed",
"CANCELLED": "failed",
"COMPLETED": "success"... | 24.573333 | 98 | 0.62344 |
b6871d4c00e4a99100a8cb85bdaed1478a3f212b | 1,058 | py | Python | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | minecraft/networking/packets/serverbound/play/held_item_change_packet.py | LoipesMas/pyCraft | 244fbb803ca7a2752cb4ed2b88b4791241379378 | [
"Apache-2.0"
] | null | null | null | from minecraft.networking.packets import Packet
from minecraft.networking.types import (
Short, BitFieldEnum
)
| 35.266667 | 61 | 0.638941 |
b687fc10ba01cb9f0419af4e607ce6c85279c90f | 49,769 | py | Python | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | 2 | 2022-03-20T03:13:24.000Z | 2022-03-20T03:14:11.000Z | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from Qt.QtGui import *
from Qt.QtCore import *
from Qt.QtWidgets import *
import re
def findBracketSpans(text, pos, brackets="([{"):
if not text:
return ("", 0, 0)
textLen = len(text)
# when no spaces at the current line then do nothing
start = po... | 34.489951 | 169 | 0.578553 |
b68866458224b910c1e4822374a14bdc98c7fe27 | 5,523 | py | Python | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | 4 | 2021-04-09T02:05:42.000Z | 2021-07-04T07:42:15.000Z | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
import importlib
import os
import inspect
from importlib import util as importlib_util
from .logb import getLogger
# from .pdf2text import simple_fact as pdf_sfact
from .html2text import simple_fact as html_sfact
from .plain2text import simple_fact as pln_sfact
##########################... | 43.833333 | 162 | 0.570704 |
b68b69b099d27f3f50d04d0c00314efb72f42971 | 21,664 | py | Python | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 9 | 2021-11-15T10:13:05.000Z | 2022-03-03T13:41:46.000Z | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | null | null | null | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 1 | 2021-11-25T05:33:11.000Z | 2021-11-25T05:33:11.000Z | import os
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import torch
from tqdm import tqdm
from collections import defaultdict
# import fire
timestamp = lambda dt: (dt - datetime(2019, 1, 1)).total_seconds()
## ridgecrest
def plot_true_positive(... | 34.332805 | 175 | 0.565962 |
b68be82acadc9943f2cd593b3e2f054401e95af1 | 2,013 | py | Python | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | joystick.py | sergio-py2/meteor | 4146259c19ed58931fc3514174a0147770500793 | [
"MIT"
] | null | null | null | #!python -u
import sys
import pyglet
import pyglet.gl as gl
import pyglet.window.mouse as mouse
import pyglet.window.key as key
import pyglet.input
#import pyglet.media
import random
import math
#print pyglet.version
show = ""
# Set up window
full = False
if full:
window = pyglet.window.Window(fullscreen=Tru... | 18.135135 | 64 | 0.597119 |
b68c139c4d416b8f2d10a173958a63102486e538 | 133 | py | Python | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | null | null | null | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | 9 | 2020-06-05T19:01:16.000Z | 2022-03-11T23:29:05.000Z | coupons/urls.py | ihfazhillah/myshop-django | ccfc079da073f2872a3aac0f632f581025bb4c2c | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import coupon_apply
urlpatterns = [
url('^apply/$', coupon_apply, name='apply')
]
| 16.625 | 47 | 0.706767 |
b68c42c88331b8f4284ebd3949497dbb9ed4959f | 869 | py | Python | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | import os
from datetime import datetime
TIMESTAMP_SUFFIX = datetime.now().strftime("%Y%m%d-%H%M%S")
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
GCS_BASE_STR = "gs://"
HTTP_URL_BASE_STR = "http://"
HTTPS_URL_BASE_STR = "https://"
LOCAL_FILE_BASE_STR = "file://"
NULL_STRING = "None"
DEFAULT_DATA_ROOT = ... | 27.15625 | 59 | 0.734177 |
b68c8ddc9fcd55d3cc2b24d17d5af2efe3ae5c5d | 559 | py | Python | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | decaylanguage/__init__.py | ch2ohch2oh/decaylanguage | 7cb01e787ea9d193b87ae0978f2dfb4e469a1276 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2018-2019, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/decaylanguage for details.
# Convenient access to the version number
from ._version import __version__
# Direct access to decay file parsi... | 31.055556 | 75 | 0.805009 |
b68d1dbf0c5ca4f1cf1c2b340f13d2c57fe8602c | 7,829 | py | Python | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 2 | 2019-07-17T22:04:25.000Z | 2021-03-03T17:41:07.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 19 | 2019-12-26T17:23:33.000Z | 2022-03-21T22:19:06.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | null | null | null | # IMPORTANT: Change these file paths to be in the same repository as the webs server running Peeps.
# You can find the Peeps web server repository here: https://github.com/danielemoro/peeps/tree/peeps_finder
input_file = "D:/Google Drive/BSU/BSU 2018 Fall/CS401/website/peeps_finder_in.txt"
output_file = "D:/Google Driv... | 36.584112 | 120 | 0.609401 |
b68d3ffb40a4006bf5b8a5543641f9a3020929bc | 6,497 | py | Python | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 18 | 2021-11-02T09:32:11.000Z | 2022-03-29T17:04:32.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 4 | 2021-11-02T05:19:11.000Z | 2022-03-28T08:53:27.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 2 | 2022-02-25T14:28:45.000Z | 2022-03-05T14:14:55.000Z | """
Record data for later playback
Requirements:
ffmpeg must be installed.
On Linux you can install it with package manager
of your choise. For example with
ap-get: sudo apt-get install ffmpeg
yuM: sudo yum install ffmpeg
On Windows, you must download and install it from https://w... | 36.094444 | 126 | 0.687548 |
b68d55a4f44625a425237c2968f33e5ce96a8a38 | 345 | py | Python | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | ex033.py | Jordemar-D-Bousquet/Exercicios_Python | 705d4c83720db033841f01aa843e4dbab08f1423 | [
"MIT"
] | null | null | null | # Faa um programa que leia trs nmeros e mostre qual o maior e qual o menor.
n1 = int(input('Digite o primeiro valor: '))
n2 = int(input('Digite o segundo valor: '))
n3 = int(input('Digite o terceiro valor: '))
nt= [n1,n2,n3]
print('O maior nmero digitado foi {}'.format(max(nt)))
print('O menor nmero digitado foi {}... | 38.333333 | 82 | 0.686957 |
b68e1a9a9505bdaff392741746a2cc8527c4f6b6 | 311 | py | Python | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | import os
if __name__ == '__main__':
fileTest() | 20.733333 | 62 | 0.633441 |
b6908e28349ce2d7d9f38b20eac30f1523c0d324 | 501 | py | Python | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 7 | 2019-12-03T10:05:31.000Z | 2021-01-21T19:05:55.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 8 | 2020-01-08T08:03:21.000Z | 2020-09-04T18:25:56.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 11 | 2021-06-16T15:48:33.000Z | 2022-02-13T13:05:52.000Z | import json
import os.path
import time
# Third-party libraries
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://localhost:5555")
socket.send(b"hello")
message = socket.recv()
print(message)
while True:
# Wait for next request from client
jsonStr = '{"measures":{"R"... | 20.875 | 59 | 0.666667 |
b692e177fac102ebbcfa5f07692d3af8e28cb595 | 2,172 | py | Python | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | from source.couple import couple
import numpy as np
import requests
import json
import source.config as c
import googlemaps
from geopy.distance import geodesic
import itertools
gd = {"H":1,"V":0, "N":2}
gd_inv = {1:"H",0:"V", 2:"N"}
# CONVERT TIMES TO POSIX TIME
from datetime import timezone, datetime, timedelta
dinne... | 34.47619 | 160 | 0.587017 |
b69435cd91d1a650c1244efbc456a6f87305ba23 | 8,616 | py | Python | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | """Functions to parse Olive XML data."""
import codecs
import copy
import re
from typing import List, Optional
from bs4 import BeautifulSoup
from impresso_commons.path.path_fs import canonical_path, IssueDir
from text_importer.importers.olive.helpers import (normalize_language,
... | 31.217391 | 102 | 0.515901 |
b694c70150e53ff40a0cf24561577bb8a2d5de91 | 1,720 | py | Python | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | 2 | 2019-05-16T03:11:44.000Z | 2019-10-25T03:20:05.000Z | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null | addBinary.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
solution = Solution()
print(solution.addBinary("100", "110010"))
| 29.152542 | 61 | 0.348256 |
b69613a7512da774d1b23dd4f974de878107a0bc | 550 | py | Python | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T10:47:52.000Z | 2021-07-29T10:47:52.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T11:04:47.000Z | 2021-07-29T11:04:47.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 2 | 2021-05-06T18:33:01.000Z | 2021-08-01T10:21:46.000Z | import pickle
databox = "/nfs/projects/paqs/qadatasetAstudy"
source = pickle.load(open(databox + "/val.pkl","rb"))
questions = databox + "/output/ques.val"
answers = databox + "/output/ans.val"
fqes = open(questions, 'w')
fans = open(answers, 'w')
for fid, value in source.items():
for sid, sentence in value.ite... | 25 | 73 | 0.587273 |
b69653e1f2c2a35c5240a6afe449e5f0e3532b91 | 1,598 | py | Python | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | scripts/download_external.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | #!/usr/bin/python
import urllib2
import sys
import os
import os.path
import tarfile
#-------------------------------------------------------------------------------
# OS specific setupls
if sys.platform == 'win32':
print "Windows detected..."
dest = "dataprocessing_external_win32.tar.gz"
elif sys.platform == '... | 28.035088 | 87 | 0.518773 |
b697b0465a2f226e6e6c630a304d08f2c89fe273 | 194 | py | Python | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | apps/verifications/urls.py | Jiafauser/News_blog | a3fec19c5e58c50c40268144e2f52820b24cc5d6 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
app_name = 'verifications'
urlpatterns = [
path('image_codes/<uuid:image_code_id>/', views.ImageCode.as_view(), name='image_codes'),
] | 27.714286 | 94 | 0.716495 |
b697d352270f4d5af09a28c0d438435fc0bb409c | 15,849 | py | Python | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | 2 | 2020-04-04T08:53:25.000Z | 2020-06-14T09:13:39.000Z | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | import keras
from PIL import Image
from flask import Flask, request, jsonify
from flask_cors import CORS
from itsdangerous import Serializer
from concurrent.futures import ThreadPoolExecutor
from flask_apscheduler import APScheduler
import token_authorization
import AesCipher
import mysql
import functools
from yolo ... | 34.37961 | 109 | 0.546659 |
b6980fb0608d22d689e43b123d9af449a3000f0b | 1,350 | py | Python | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
golden_section_algorithm.py
Returns the reduced uncertainty interval containing the minimizer of the function
func - anonimous function
interval0 - initial uncertainty interval
N_iter - number of iterations
"""
import math
import numpy as np
| 27 | 100 | 0.56963 |
b699c359961ff4c5fe1e7486390fb0c95dd99241 | 1,132 | py | Python | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 3 | 2021-09-30T18:07:54.000Z | 2021-10-03T01:48:17.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 1 | 2021-09-20T21:08:51.000Z | 2021-09-20T21:08:51.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | null | null | null | import ipaddress
# =============================================== DEFAULT CONFIGURATION ================================================
# Default port to bind the translator's unicast server socket to.
DEFAULT_UNICAST_SRV_PORT = 9001
# Default address space to pick multicast destination addresses (groups) from for t... | 62.888889 | 120 | 0.659011 |
b69ae3c3a05b82d7c34897a18e9776d203764a57 | 1,710 | py | Python | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | null | null | null | Intelectual systems [8th semester] /lab1/bot.py | mstrechen/labs | e86b390bf68dc708df72c7fae6a46d9ad70a4225 | [
"MIT"
] | 2 | 2019-10-23T11:54:37.000Z | 2022-02-05T15:51:34.000Z | import typing as t
import logging
from telegram import Update
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
)
logger = logging.getLogger(__name__)
... | 32.264151 | 97 | 0.711111 |
b69b9ca24f2fb2208c924db77c7c45f56668f4d1 | 19,059 | py | Python | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 15 | 2019-12-14T07:54:18.000Z | 2021-03-14T14:53:28.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 30 | 2019-12-03T20:58:56.000Z | 2020-04-21T23:34:39.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | microsoft/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 13 | 2020-01-23T00:18:47.000Z | 2021-10-04T17:46:45.000Z | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License
# ----------------------------------------------------------------------
"""Contains the VectorTypeInfo object"""
import os
import re
import text... | 38.659229 | 153 | 0.4389 |
b69ef294d653b88033a59117fedccaa5a2a0264b | 73 | py | Python | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | ai/algorithms/reinforcement_learning/monte_carlo/__init__.py | rbak/ai-implementations | 5b773c23a5582b05b8aef55ea70e800cf4ffa376 | [
"MIT"
] | null | null | null | from .monte_carlo_prediction import *
from .monte_carlo_control import *
| 24.333333 | 37 | 0.835616 |
b69f3824da0ab5aa5a2c7170f38eadf490e1df95 | 1,935 | py | Python | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 28 | 2018-02-13T12:45:00.000Z | 2022-03-16T04:27:07.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 1 | 2018-02-16T09:56:50.000Z | 2018-02-16T09:56:50.000Z | rediserver/test/server.py | r2evans/rediserver | 329c24f3f57c99b00c25e89387790038c328ed1b | [
"MIT"
] | 2 | 2018-08-12T12:50:23.000Z | 2019-05-10T16:16:49.000Z | import os
import inspect
from copy import deepcopy
from tempfile import TemporaryDirectory
from functools import wraps
from ..server import run_threaded
| 23.888889 | 89 | 0.553488 |
b6a1c2ab8cd5b17863bf873dabf0a5085e350658 | 2,492 | py | Python | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | import time
import requests
import urllib3
from lxml import etree
from requests.models import Response
from requests.packages.urllib3.exceptions import InsecureRequestWarning
urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
fro... | 28 | 97 | 0.532905 |
b6a456d569704179a69c2734a46c283edcb8c45d | 1,306 | py | Python | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | 1 | 2019-11-08T08:02:21.000Z | 2019-11-08T08:02:21.000Z | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | import os
import shutil
import click
from flask import current_app
from flask.cli import AppGroup
### CLI for management of additional resources
res_cli = AppGroup('resources', short_help='Manage additional resources used by SpellvarDetection.')
def init_app(app):
app.cli.add_command(res_cli)
| 27.787234 | 102 | 0.683767 |
b6a965062e5afc5623bfcef05658f50d3355f266 | 6,919 | py | Python | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | 1 | 2020-11-12T06:32:26.000Z | 2020-11-12T06:32:26.000Z | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | null | null | null | src/summarizeRankings.py | dentearl/assemblAnalysis | c8524456dff720d37356c55d7640687415bc1df6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
summarizeRankings.py
dent earl, dearl (a) soe ucsc edu
27 April 2011
Python script to take a set of rankings files and aggregate their results.
"""
##############################
# Copyright (C) 2009-2011 by
# Dent Earl (dearl@soe.ucsc.edu, dent.earl@gmail.com)
# Benedict Paten (benedict@so... | 34.944444 | 96 | 0.581298 |
b6a970b2171f56ad789b97a6380209b5c0b4639a | 34,014 | py | Python | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 3 | 2019-10-24T10:39:38.000Z | 2021-07-13T11:46:18.000Z | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 20 | 2020-01-22T11:16:24.000Z | 2022-02-02T10:38:54.000Z | dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-10-21 09:41
from django.db import migrations
import logging
trade_data = [
{
"Country code": "CO",
"GOVUK FTA URL": "https://www.gov.uk/government/collections/uk-andean-countries-trade-agreement",
"Mendel agreement label": "ANDEAN-COUNTRIES",
"... | 32.210227 | 147 | 0.539278 |
b6abc4c54da088d5c140905ed4814491c96271ee | 719 | py | Python | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | 1 | 2021-09-16T08:02:35.000Z | 2021-09-16T08:02:35.000Z | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | 1 | 2021-06-14T16:45:56.000Z | 2021-06-14T16:56:05.000Z | integrationTests/get_standup_threads_test.py | Teaminator/standup-and-prosper-sdk.py | ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import unittest
import nose
import time
from standup_and_prosper_sdk import ApiClient, StandupsApi
if __name__ == '__main__':
unittest.main() | 19.972222 | 65 | 0.720445 |
b6abe6095de15d3b6a74511316430a41cae18b7f | 343 | py | Python | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | app.py | bameda/pharmap-api | 71f5353c19951a4350c3ace2855063093924f061 | [
"MIT"
] | null | null | null | from apistar import App
from apistar.commands import create_tables
from pharmap.commands import sample_data
from pharmap.storage.models import * # noqa
from pharmap.routes import routes
from pharmap.settings import settings
commands = [
create_tables,
sample_data,
]
app = App(routes=routes, settings=settin... | 20.176471 | 62 | 0.793003 |
b6ac8fa3607de31632714669b2afbc009736258a | 771 | py | Python | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 4 | 2018-01-04T22:31:08.000Z | 2021-07-15T17:39:16.000Z | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 38 | 2019-03-22T14:11:51.000Z | 2022-03-30T23:56:09.000Z | src/encoded/tests/test_upgrade_star_qc.py | KCL-ORG/encoded | 5a1904e948bfd652e8a8d52c6717d7fc0b56b681 | [
"MIT"
] | 10 | 2017-09-14T00:57:07.000Z | 2021-07-27T23:41:14.000Z | import pytest
| 33.521739 | 72 | 0.603113 |
b6acc8f967fad42f11b205b325094dc3299810f3 | 1,759 | py | Python | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
import cv2
import scipy.signal
def find_line(image: np.ndarray, window_size: int = 30) -> np.ndarray:
"""Extracts a single line from the image"""
image_inverted = cv2.bitwise_not(image)
image_as_column = np.sum(image_inverted, axis=1)
window_values = [np.su... | 36.645833 | 83 | 0.699261 |
b6ae1b0f0d22088c98982c121eae8e4affeac754 | 4,406 | py | Python | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | package = 'org.bonadza.openrtb'
model = {
'bidResponse' : {
'id' : 'str',
'seatbid': [{
'bid' : [{
'id' : 'str',
'impid' : 'str',
'price' : 'float',
'adid' : 'str',
'nurl' : 'str',
'adm' : 'str',
'adomain' : 'str[]',
'bundle' : 'str',
'iurl' : 'str',
'cid' : 'str',
'c... | 19.073593 | 31 | 0.385611 |
b6ae292cc8493ab3e2e2c6eb93e74e867f7a5a45 | 109 | py | Python | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | Tupleusinghash.py | bjoffficial/Python | 73e6fdc19a1bec18488405c4a60c30ba68581ce5 | [
"Apache-2.0"
] | null | null | null | if __name__ == '__main__':
n = int(input())
qus=tuple(map(int,input().split()))
print(hash(qus))
| 21.8 | 39 | 0.577982 |
b6ae3b9a42fc929cb17efa0d2f10f351f17fc531 | 1,814 | py | Python | Task/Align-columns/Python/align-columns-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Align-columns/Python/align-columns-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Align-columns/Python/align-columns-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | from StringIO import StringIO
textinfile = '''Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$are$separated$by$at$least$one$space.
Further,$allow$for$each$word$in$a$colum... | 39.434783 | 101 | 0.708379 |
b6b0d58640e8ab5ad641a791c0e3af73049572b4 | 760 | py | Python | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 365 | 2015-01-28T12:07:22.000Z | 2022-03-27T14:17:10.000Z | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 699 | 2015-01-05T21:22:40.000Z | 2022-03-30T15:58:55.000Z | scripts/preprocess_glsl.py | manthey/geojs | 9f36165133f07c8fb08102e0b3459369a052f6a3 | [
"Apache-2.0"
] | 74 | 2015-02-23T14:08:13.000Z | 2022-03-17T23:37:05.000Z | #!/usr/bin/env python3
import argparse
import os
import re
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Preprocess glsl files to handle includes in the same way '
'as shader-loader. The output of this can sent to glslangValidator.')
parser.add_argumen... | 29.230769 | 95 | 0.651316 |
b6b0f5fa7387a72c8d23e89c64d1524c5f61c96b | 286 | py | Python | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 2 | 2018-06-15T08:06:09.000Z | 2018-06-24T12:28:07.000Z | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | null | null | null | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 1 | 2018-06-15T14:41:23.000Z | 2018-06-15T14:41:23.000Z | import os
import json
_location = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
with open(os.path.join(_location, 'small.json')) as f:
fixtures = json.load(f)
with open(os.path.join(_location, '1000.json')) as f:
fixtures['1000'] = json.load(f)
| 23.833333 | 57 | 0.681818 |
b6b2392dc515104106ac7e7d4892cd8bdc2834dc | 4,102 | py | Python | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | 2 | 2015-11-24T08:51:46.000Z | 2016-05-08T10:24:42.000Z | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | """
Views.py
Author: Will Larson
Contact: lethain@gmail.com
Contains one custom view for displaying articles.
Mostly necessary to presort the articles in order
of descending size.
"""
import datetime, time, random, cgi, md5
from django.template import RequestContext
from django.shortcuts import render_to_response
f... | 32.555556 | 114 | 0.638957 |
b6b24cefc57188b709e820b0bf006c36f34376a7 | 20,566 | py | Python | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | 1 | 2021-06-09T23:37:03.000Z | 2021-06-09T23:37:03.000Z | from PIL import ImageTk, Image
from tkinter import filedialog, messagebox
import tkinter as tk
import pandas as pd
import numpy as np
import platform
import math
import os
import traceback
if __name__ == "__main__":
root = tk.Tk()
menu = Menu(root)
root.mainloop()
| 51.159204 | 132 | 0.596616 |
b6b2bc0d26323630fc0b85b1c23c05a20eeee527 | 176 | py | Python | web/04_user/sample.py | testdrivenio/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 43 | 2018-06-14T19:33:19.000Z | 2022-03-15T16:13:03.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 1 | 2020-06-02T02:44:47.000Z | 2020-06-02T02:44:47.000Z | web/04_user/sample.py | Scaleframe/docker-python-devs | e3aba3f07f1386aea041a494b9729e9135e0f01c | [
"MIT"
] | 10 | 2018-06-16T22:13:27.000Z | 2021-08-23T01:03:29.000Z | from flask import Flask, jsonify
app = Flask(__name__)
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 12.571429 | 32 | 0.630682 |
b6b326441a9a486ddfcf807ab05bc6fc1032ac9c | 761 | py | Python | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | 8 | 2019-12-04T21:58:35.000Z | 2021-12-15T02:29:49.000Z | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | from django.db import migrations
| 24.548387 | 71 | 0.660972 |
b6b345764f47a7302a2c81d9799fa2f3bd3b99c4 | 1,931 | py | Python | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/users/migrations/0003_auto_20220226_0851.py | crowdbotics-apps/myclub-33848 | 3f02f80851419194beb68f6b0caf7630ff10593f | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | # Generated by Django 2.2.26 on 2022-02-26 08:51
from django.db import migrations, models
| 30.171875 | 75 | 0.548421 |
b6b4835ba5f75adf5f813973c0f5683e69a19a3d | 409 | py | Python | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 6 | 2020-06-24T23:08:09.000Z | 2021-12-25T00:53:10.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 2 | 2021-07-06T20:31:55.000Z | 2022-03-17T13:01:13.000Z | conventional/util/io.py | multimac/Conventional | c74aed7458cbba795dde373385cae0c654835cbc | [
"MIT"
] | 1 | 2021-01-22T16:50:59.000Z | 2021-01-22T16:50:59.000Z | import datetime
from typing import Any
import dateutil.tz
def json_defaults(obj: Any) -> str:
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, datetime.datetime):
return obj.astimezone(dateutil.tz.UTC).isoformat()
elif isinstance(obj, datetime.date):
... | 25.5625 | 75 | 0.709046 |
b6b792498459995b89df7fac86e7a4c838ae82e7 | 6,200 | py | Python | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 58 | 2019-10-07T12:10:27.000Z | 2022-03-01T08:08:47.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 31 | 2019-09-10T15:33:20.000Z | 2022-03-30T08:52:08.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 14 | 2019-10-01T08:23:37.000Z | 2021-12-16T15:55:38.000Z | from setuptools import setup, find_packages, Extension
import os
from setuptools import setup, find_packages, Extension
import os,sys
import os
import shlex
import shutil
import setuptools.command.build_ext
import setuptools.command.build_py
import setuptools.command.install
import setuptools.command.sdist
import setu... | 36.904762 | 146 | 0.67629 |
fcab1ef55255f164328a1ed4e5f9679cb1a3f825 | 8,198 | py | Python | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | """Pytorch neural network to predict zernike coefficients from donut images.
My implementation of the network presented in David Thomas's PhD Thesis
at Stanford.
"""
import numpy as np
import torch
from torch import nn
| 30.475836 | 78 | 0.580385 |
fcac8a7fd254974b0cbabed36e8c59502bf09f6e | 2,229 | py | Python | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 2 | 2018-11-08T03:30:55.000Z | 2021-09-19T01:40:14.000Z | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | null | null | null | utils.py | MattFerraro/radon | 795b74fd7d12e7c4a191646e6bdf9e0386c8e95e | [
"Apache-2.0"
] | 1 | 2018-12-30T04:07:17.000Z | 2018-12-30T04:07:17.000Z | # Description: A library of common utilities
# Author: Matt Ferraro
import numpy as np
import cv2
from scipy.signal import convolve2d
import matplotlib.pyplot as plt
def imagify(fft):
'''
2D ffts usually have real and imaginary components, and they also usually
have way too much dynamic range to be sensib... | 33.772727 | 79 | 0.696276 |
fcacbde3bba335a6b61bda2101f46d6c3839fe23 | 26,845 | py | Python | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | 12 | 2020-11-08T16:51:28.000Z | 2020-11-15T16:31:57.000Z | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | import torch
import open3d
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import itertools
import imageio
from torch.autograd import Variable
from src.utils import point_cloud_utils as pcu
from sklearn.metrics import confusion_matrix
| 47.597518 | 119 | 0.620898 |
fcaccf9b0138aa7d34d6785bbb98eec7ec092b2d | 811 | py | Python | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | import os
import json
from conf.settings import CONFIG_PATH, HOME_DIR
config = Config() | 25.34375 | 69 | 0.557337 |
fcace69d7de7f766d27633336fe279118aaefec0 | 1,090 | py | Python | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | handlers/shorties.py | pythononwheels/twittercomments | b35feb0efdd40b191a7b20c6c86fe2eb9233697f | [
"MIT"
] | null | null | null | import tornado.ioloop
import tornado.web
from twittercomments.handlers.powhandler import PowHandler
from twittercomments.application import app
from twittercomments.as_dash import dispatcher
from twittercomments.models.tinydb.tweet import Tweet
#
# you can use regex in the routes as well:
# (r"/([^/]+)/(.+)", ObjectHa... | 35.16129 | 96 | 0.705505 |
fcad268505923f6abed1ba916aa0220d82115bca | 9,807 | py | Python | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-15T00:18:55.000Z | 2020-11-15T00:18:55.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-21T19:08:07.000Z | 2020-11-21T19:14:37.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | null | null | null | ''''
execution module for Nexus 3 security privileges
:version: v0.2.1
:configuration: In order to connect to Nexus 3, certain configuration is required
in /etc/salt/minion on the relevant minions.
Example:
nexus3:
hostname: '127.0.0.1:8081'
username: 'admin'
password: 'admin123... | 25.807895 | 238 | 0.595187 |
fcaeccdb0846e01e452459cb3c95056d0b54137e | 19,169 | py | Python | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | app.py | vadim566/LARAextantion | 6551429d977702e17a9e0e7ef16b373f353192b2 | [
"MIT"
] | null | null | null | #from GoogleImageScrapper import *
import random
from GoogleImageScrapper import GoogleImageScraper
from patch import *
import os
from os import listdir
from os.path import join, isdir, isfile
from flask import Flask, render_template, send_from_directory, redirect, Response, url_for
import SVN.trunk.Code.Python.lara_u... | 32.108878 | 243 | 0.699828 |
fcaf861bcc515b67dfa9fe42cad17a8ff98ba4be | 1,708 | py | Python | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[2]:
# In[ ]:
| 23.39726 | 100 | 0.379977 |
fcb0aac9f660d4912d9fc1b07d9b54eabce822d8 | 290 | py | Python | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import time
from djitellopy import Tello
tello = Tello()
tello.connect()
tello.streamon()
frame_read = tello.get_frame_read()
#tello.takeoff()
time.sleep(1)
cv2.imwrite("picture.png", frame_read.frame)
#tello.land()
tello.end() | 15.263158 | 44 | 0.717241 |
fcb1cc84b208a5f7c8a0147b44b6a2cf9aac9163 | 1,654 | py | Python | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | k2/python/k2/ragged/ops.py | pzelasko/k2 | 2dbb3e09b152fcf98354c946baa271e5b57c8321 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
#
# See ../../../../LICENSE for clarification regarding multiple authors
from typing import Tuple, Optional
from typing import Union
import torch
import _k2
def index(src: Union[_k2.RaggedArc, _k2.RaggedInt],
indexes: torch.Tensor,
... | 35.956522 | 76 | 0.613059 |
fcb287f343755fad071871dc930601e1e2bb056f | 3,849 | py | Python | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | padempdi.py | efurlanm/378 | d5c2ab0e80f2930867057c6c7ce9791e711c1391 | [
"MIT"
] | null | null | null | # CAP-378 Trabalho: PAD em PDI
# Uso: mpiexec -n <NTASKS> python3 padempdi.py
import numpy as np
from mpi4py import MPI
wt = MPI.Wtime() # "wall time" para clculo do tempo decorrido
comm = MPI.COMM_WORLD # comunicador global (pode servir para definir grupos)
cpu = comm.Get_size() # total de ranks que o mpi... | 46.939024 | 92 | 0.649519 |
fcb2a18761108cac8ef931cd2742ce63d5c4b447 | 1,167 | py | Python | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | null | null | null | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 9 | 2019-11-16T01:17:41.000Z | 2021-11-22T15:47:19.000Z | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 2 | 2019-11-18T15:13:46.000Z | 2021-07-30T18:01:40.000Z | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.710526 | 76 | 0.672665 |
fcb2d5a562e178bc80b4b5511da52dbc782c577a | 635 | py | Python | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/HLTEvF/python/hltMonBTag_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/HLTEvF/python/hltMonBTag_cff.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
import DQM.HLTEvF.hltMonBTagIPSource_cfi
import DQM.HLTEvF.hltMonBTagMuSource_cfi
# definition of the Sources for 8E29
#hltMonBTagIP_Jet50U_Source = DQM.HLTEvF.hltMonBTagIPSource_cfi.hltMonBTagIPSource.clone()
#hltMonBTagMu_Jet10U_Source = DQM.HLTEvF.hltMonBTagMuSource_cfi.hlt... | 37.352941 | 90 | 0.848819 |
fcb31fbe47519c56c2575ea13372b07701ee10b4 | 510 | py | Python | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # 4. Text Filter
# Write a program that takes a text and a string of banned words.
# All words included in the ban list should be replaced with asterisks "*", equal to the word's length. ' \
# 'The entries in the ban list will be separated by a comma and space ", ".
# The ban list should be entered on the first... | 34 | 107 | 0.692157 |
fcb3567798e88484d6775c6425b603d48c728543 | 18,009 | py | Python | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | import config.funcoes as cfunc
import config.saveload as csave
import config.janela as cjane
import config.gatos_ascii as cga
import objs.gatinho as ogato
import objs.geladeira as ogela
import objs.bau as obau
from random import randint, choice
from time import sleep
humores = ['feliz', 'triste', 'quieto', 'brincalho... | 35.105263 | 133 | 0.470931 |
fcb3f35344db31559c493891a3016def67e71ee1 | 3,837 | py | Python | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 826 | 2017-12-12T15:38:16.000Z | 2022-03-28T07:12:40.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 531 | 2017-12-03T17:21:06.000Z | 2022-03-20T19:22:11.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 133 | 2017-12-13T18:46:10.000Z | 2022-03-27T16:21:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# Copyright 1998-2018 by authors (see AUTHORS.txt)
#
# This file is part of LuxCoreRender.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except i... | 28.849624 | 99 | 0.691426 |
fcb43a9aaebf1ad8cae7c5ffcb6ef4a11fa19aa8 | 389 | py | Python | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | from flask import render_template
from .src.app import create_app
db_uri = (
"mongodb+srv://dbAdmin:Ve08ByJJOk5RNhWK@clusterlms.k10xd.mongodb.net/lms"
)
app = create_app(db_uri)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)
| 21.611111 | 77 | 0.691517 |
fcb44301153a2a318071b686264e0d081c08940a | 2,189 | py | Python | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | import json
import torch
import sys
from common_utils import transform_audio
from engine.data import load_wav, log_mel_spectrogram, plot_mel, plot_attn
from engine.models import load_pretrained_wav2vec
from vocoder.env import AttrDict
sys.path.append("./vocoder")
from vocoder.models import Generator
device = torch.... | 29.581081 | 80 | 0.740978 |
fcb486efe8ea339f4620466cdeeeb1c8db201f10 | 452 | py | Python | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | 1 | 2022-03-23T17:56:15.000Z | 2022-03-23T17:56:15.000Z | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | null | null | null | redirector/main.py | dyakovri/redirector-api | cd576d9b27b4de5777dd2112e9e355e8585dc44e | [
"BSD-2-Clause"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi_sqlalchemy import DBSessionMiddleware
from .router import router
from .settings import get_settings
app = FastAPI()
app.add_middleware(DBSessionMiddleware, db_url=get_settings().DB_DSN)
app.add_middleware(
CORSMiddleware,
... | 25.111111 | 69 | 0.778761 |
fcb56437c8a13d8cdb0778f357f19d4d66ab7b36 | 9,761 | py | Python | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | openmdao.gui/src/openmdao/gui/omg.py | swryan/OpenMDAO-Framework | f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec | [
"Apache-2.0"
] | null | null | null | """ OpenMDAO GUI
This graphical user interface for OpenMDAO is implemented as a web application.
Running this file will start a tornado web server on a local port and open a
browser on that port. An up-to-date version of Chrome or Firefox with support
for WebSockets is required.
"""
import os
import signal
import s... | 36.151852 | 110 | 0.588259 |
fcb77d0da70d5d72ccf79ec2127cc2c4373c050d | 5,412 | py | Python | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import binascii
import csv
import datetime
import os
import struct
import sys
import nfc
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/nfcpy')
num_blocks = 20
service_code = 0x090f
if __name__ == "__main__":
suica = Suica()
for d in suic... | 29.736264 | 91 | 0.55765 |
fcb7d3280cecce6265b2df4ab52529db9861f61d | 1,760 | py | Python | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | from datetime import datetime
import marshmallow as ma
import sqlalchemy as sa
from marshmallow import fields as f
from sqlalchemy import MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
metadata = MetaData()
Session = scoped_session(sessionmaker... | 28.387097 | 84 | 0.694318 |
fcbb97830b78a5ce1b4a5754ca7c5afd3e05b7f0 | 3,963 | py | Python | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
import sys, json, os, stripe
from datetime import timedelta, datetime
from flask import Flask, render_template, redirect, request, escape, jsonify, flash, current_app
from flask_login import LoginManager, UserMixin, login_required, login_user, logout_user, current_user
from flask_wtf import CSRFPro... | 36.027273 | 102 | 0.726218 |
fcbc22574e8ecb6bb9fb93418299a40102fc9634 | 483 | py | Python | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2020-08-08T13:37:32.000Z | 2021-12-01T03:22:32.000Z | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | null | null | null | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2019-12-22T08:49:01.000Z | 2021-12-01T03:22:44.000Z | """Create a sphere."""
import pathlib
import sys
import petibmpy
rootdir = pathlib.Path(__file__).absolute().parents[5]
sys.path.insert(0, str(rootdir / 'misc'))
import icosphere
R = 0.5
sphere = icosphere.create_icosphere(25)
sphere.vertices *= R
sphere.print_info()
x, y, z = sphere.vertices.T
# Center the sphe... | 18.576923 | 54 | 0.706004 |
fcbc3d99f59af651cbfa762d00ff42cd63d6d739 | 1,129 | py | Python | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | import context as HP
import os
OT = '2018_1101_B'
if (os.name == 'nt'):
pathData = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termoparell',
OT)
pathPlot = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termopar... | 22.137255 | 74 | 0.622675 |
fcbd2a883473757a97803fed690a067d5c7f7016 | 7,526 | py | Python | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | import os
from nose import with_setup
from nose.tools import assert_true
import numpy as np
import nibabel
from nilearn.datasets.tests import test_utils as tst
from nilearn._utils.testing import assert_raises_regex
from nilearn._utils.niimg_conversions import _check_same_fov
from sammba import testing_data
from sammba.... | 44.797619 | 78 | 0.662769 |
fcbe57aa0aba088b6e7c1f10ce1907df3fa001fe | 8,939 | py | Python | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 5 | 2021-08-11T18:24:53.000Z | 2021-11-16T13:01:41.000Z | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | null | null | null | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 2 | 2021-08-10T05:42:14.000Z | 2021-08-12T14:00:24.000Z | from multiprocessing import Process
import botapi
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.handlers import MessageHandler
import json
import database
from pyrogram.errors import (PeerIdInvalid, UserIsBlocked, MessageTooLong)
from pyrogram.t... | 33.859848 | 119 | 0.571205 |
fcc018897dfa0d7cbd2e1c6b70a4ad965a9993a5 | 4,566 | py | Python | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | from typing import Dict
from dbnd import Config, parameter
| 36.528 | 91 | 0.683968 |
fcc07acfd0ff24e49be1cb1b14f2f8ee025b2537 | 4,301 | py | Python | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 5 | 2021-12-25T17:08:39.000Z | 2022-03-18T16:22:57.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 1 | 2021-12-28T05:45:34.000Z | 2021-12-28T21:31:50.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | null | null | null | # Heap Tree Implementation
from __future__ import annotations
import warnings
from typing import Optional, Any
from datastax.errors import DeletionFromEmptyTreeWarning
from datastax.trees.private_trees.binary_tree import BinaryTree, TreeNode
# Private function to convert a subtree to heap
def _heapify(self... | 34.408 | 73 | 0.589863 |
fcc09e2543fdf968d7d7db4fd1316f5b3e4dc932 | 7,443 | py | Python | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 2 | 2018-07-10T15:55:47.000Z | 2020-11-28T20:42:53.000Z | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | null | null | null | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 1 | 2021-05-27T15:20:18.000Z | 2021-05-27T15:20:18.000Z | import json
import logging
import urllib.parse
import phonenumbers
import math
from pympesa import Pympesa
from django import forms
from django.contrib import messages
from django.core import signing
from django.template.loader import get_template
from django.utils.translation import ugettext as __, ugettext_lazy as _... | 42.775862 | 142 | 0.616015 |
fcc1530ac8b10a17bd4fe4a2a933eb918ae322db | 1,050 | py | Python | tests/test_self_relation.py | 5thsymphony/sqlalchemy-to-ormar | 9b732739355c39e2d5237af7cb4c1aa15e7f356f | [
"MIT"
] | 5 | 2021-04-10T13:01:11.000Z | 2021-08-02T21:28:37.000Z | tests/test_self_relation.py | 5thsymphony/sqlalchemy-to-ormar | 9b732739355c39e2d5237af7cb4c1aa15e7f356f | [
"MIT"
] | 1 | 2021-04-29T17:22:10.000Z | 2021-05-03T16:40:40.000Z | tests/test_self_relation.py | 5thsymphony/sqlalchemy-to-ormar | 9b732739355c39e2d5237af7cb4c1aa15e7f356f | [
"MIT"
] | 1 | 2022-02-02T20:27:24.000Z | 2022-02-02T20:27:24.000Z | from databases import Database
from sqlalchemy import (
Column,
ForeignKey,
Integer,
MetaData,
String,
create_engine,
)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy_to_ormar import sqlalchemy_to_ormar
Base = declarative_base()
... | 27.631579 | 79 | 0.733333 |
fcc1840932d14855ac81775c732f4766b613aa60 | 1,927 | py | Python | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | """Tests the `/api/bot/snake_` endpoints."""
from tests import SiteTest, app
| 29.646154 | 63 | 0.613908 |
fcc1d38991ad927da7c9cb2f94c47879d3c7c94d | 341 | py | Python | setup.py | medecau/yamly | 6d10f5e58ced6490489f8c7dff856cb1553fd7d7 | [
"MIT"
] | 1 | 2018-01-26T04:01:58.000Z | 2018-01-26T04:01:58.000Z | setup.py | medecau/yamly | 6d10f5e58ced6490489f8c7dff856cb1553fd7d7 | [
"MIT"
] | null | null | null | setup.py | medecau/yamly | 6d10f5e58ced6490489f8c7dff856cb1553fd7d7 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name = 'yamly',
version = '0.1',
py_modules = ['yamly',],
description = "pyyaml wrapper",
author = "Pedro Rodrigues",
author_email = "medecau@gmail.com",
license = 'MIT',
url = "http://medecau.github.com/pyyaml/",
install_requires =... | 26.230769 | 48 | 0.580645 |
fcc1e4d659fe51f2efed9d496e3e3017872843f1 | 6,225 | py | Python | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | 1 | 2021-03-24T03:37:22.000Z | 2021-03-24T03:37:22.000Z | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | null | null | null | final/filters.py | jgardezi/BATrader | 6f032305db4e699b7fcf2d5300102381ad2bde8b | [
"Apache-2.0"
] | 1 | 2022-02-18T21:38:56.000Z | 2022-02-18T21:38:56.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 29 09:35:35 2018
@author: Branson
"""
import BATrader as ba
from BATrader.market.MarketReader import convert
import pandas as pd
from functools import partial
if __name__ == '__main__':
flt = Filters()
| 31.439394 | 119 | 0.571245 |
fcc4668a5e3fb2d85a205fdd37ec707eb380eabd | 142 | py | Python | server/core/schema/__init__.py | orbit7ch/creativeday | 67f3e91f3c2c9396c17131ad03e93a1707d26e2b | [
"MIT"
] | 1 | 2020-12-25T03:41:59.000Z | 2020-12-25T03:41:59.000Z | server/core/schema/__init__.py | orbit7ch/creativeday | 67f3e91f3c2c9396c17131ad03e93a1707d26e2b | [
"MIT"
] | 7 | 2020-07-21T12:57:18.000Z | 2022-02-26T19:16:06.000Z | server/core/schema/__init__.py | orbit7ch/creativeday | 67f3e91f3c2c9396c17131ad03e93a1707d26e2b | [
"MIT"
] | null | null | null | import graphene
from core.schema.mutations import StoreEvent
| 17.75 | 44 | 0.802817 |
fcc4774ee8452eb0e3126e268e6e7baa1e7d7e43 | 205 | py | Python | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 6 | 2020-04-18T04:42:54.000Z | 2021-12-19T11:46:01.000Z | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 1 | 2019-10-24T03:07:29.000Z | 2019-10-24T03:07:29.000Z | customer_service/app.py | hadihammurabi/microservice-python | be37127cc489adf87093749f9d64567f5b37cbb4 | [
"MIT"
] | 4 | 2019-10-19T07:53:38.000Z | 2021-11-30T05:11:42.000Z | from flask import Flask, jsonify
app = Flask('customer-service')
if __name__ == '__main__':
app.run(port=8002)
| 15.769231 | 35 | 0.64878 |