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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17f88b1dc4e1fbbf2f002412f515f2e67a8d0b31 | 494 | py | Python | back_end/dosage_dao.py | claire-sivan/pharmaceticual_web_based_app | 42c79aa6f95e220d296fb3e97b58edd08a90010e | [
"Apache-2.0"
] | null | null | null | back_end/dosage_dao.py | claire-sivan/pharmaceticual_web_based_app | 42c79aa6f95e220d296fb3e97b58edd08a90010e | [
"Apache-2.0"
] | null | null | null | back_end/dosage_dao.py | claire-sivan/pharmaceticual_web_based_app | 42c79aa6f95e220d296fb3e97b58edd08a90010e | [
"Apache-2.0"
] | null | null | null |
if __name__ == '__main__':
from sql_connection import get_sql_connection
connection = get_sql_connection()
print(get_dosages(connection))
| 23.52381 | 50 | 0.619433 |
17f8d13aa79ddcb1c6a85761d81131671d95cb65 | 4,681 | py | Python | mmseg/models/losses/tversky_loss.py | yunchu/mmsegmentation | 404f3e0e8859991931b6a39a583de412348e98f0 | [
"Apache-2.0"
] | 3 | 2021-12-21T07:25:13.000Z | 2022-02-07T01:59:19.000Z | mmseg/models/losses/tversky_loss.py | yunchu/mmsegmentation | 404f3e0e8859991931b6a39a583de412348e98f0 | [
"Apache-2.0"
] | 13 | 2021-12-10T15:08:56.000Z | 2022-03-23T08:58:03.000Z | mmseg/models/losses/tversky_loss.py | yunchu/mmsegmentation | 404f3e0e8859991931b6a39a583de412348e98f0 | [
"Apache-2.0"
] | 3 | 2021-11-11T23:16:51.000Z | 2021-12-08T23:49:29.000Z | # Copyright (C) 2018-2021 kornia
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
"""Modified from https://kornia.readthedocs.io/en/v0.1.2/_modules/torchgeometry/losses/tversky.html"""
import torch
import torch.nn as nn
import torch.nn.functional a... | 29.074534 | 102 | 0.574877 |
17fa046b5f198637f7b0c78962349041958e3fcc | 689 | py | Python | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | null | null | null | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | 1 | 2015-12-03T06:16:53.000Z | 2015-12-03T06:16:53.000Z | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | null | null | null | import socket
import config
if __name__ == '__main__':
main()
| 22.966667 | 60 | 0.625544 |
17fa9c27681a820d868dd4675d7bac62973724aa | 424 | py | Python | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | 1 | 2016-09-14T16:33:03.000Z | 2016-09-14T16:33:03.000Z | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | null | null | null | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | null | null | null | import jtweeter
access_token = "TWITTER_APP_ACCESS_TOKEN"
access_token_secret = "TWITTER_APP_ACCESS_TOKEN_SECRET"
consumer_key = "TWITTER_APP_CONSUMER_KEY"
consumer_secret = "TWITTER_APP_CONSUMER_SECRET"
user_id = 000000000 #user id of twitter user to simulate.
if __name__ == '__main__':
main() | 32.615385 | 94 | 0.778302 |
17fb4e69ff797bf18a8170242cc925a7284334e8 | 4,899 | wsgi | Python | backend/api/user/join.wsgi | pstrinkle/popflip-image-stream | 6cf1fe649ac53a91d913d1cf47cd9ec2f22765db | [
"Apache-2.0"
] | null | null | null | backend/api/user/join.wsgi | pstrinkle/popflip-image-stream | 6cf1fe649ac53a91d913d1cf47cd9ec2f22765db | [
"Apache-2.0"
] | null | null | null | backend/api/user/join.wsgi | pstrinkle/popflip-image-stream | 6cf1fe649ac53a91d913d1cf47cd9ec2f22765db | [
"Apache-2.0"
] | null | null | null | """Join API Handler."""
from pymongo import Connection
from pymongo.errors import InvalidId
from bson.objectid import ObjectId
from cgi import escape
from urlparse import parse_qs
from json import dumps
from urllib import unquote
POST_REQUIRED_PARAMS = ("user", "community",)
MAX_COMMUNITIES = 25
# XXX: Move into nea... | 28.649123 | 85 | 0.62176 |
17ff2992920f5d3aa7bc1487f1b72ff34fcce309 | 1,040 | py | Python | nobeldb/cli.py | ionrock/nobeldb | d8d59c8b8f9c2a2acd4a046f642f2f2021255a40 | [
"BSD-3-Clause"
] | null | null | null | nobeldb/cli.py | ionrock/nobeldb | d8d59c8b8f9c2a2acd4a046f642f2f2021255a40 | [
"BSD-3-Clause"
] | null | null | null | nobeldb/cli.py | ionrock/nobeldb | d8d59c8b8f9c2a2acd4a046f642f2f2021255a40 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
import pkg_resources
import textwrap
import click
from tabulate import tabulate
default_data = pkg_resources.resource_filename('nobeldb', 'data/nobel.csv')
if __name__ == '__main__':
main()
| 24.186047 | 75 | 0.590385 |
aa002b09eecbf2efa6db3d5394d8eb8190eee611 | 2,359 | py | Python | gnome/global_eigenvector/script.py | imlegend19/MDSN-DevRank | bb1b71f72d2fb97044a62e8e0152dadb88de6411 | [
"MIT"
] | null | null | null | gnome/global_eigenvector/script.py | imlegend19/MDSN-DevRank | bb1b71f72d2fb97044a62e8e0152dadb88de6411 | [
"MIT"
] | null | null | null | gnome/global_eigenvector/script.py | imlegend19/MDSN-DevRank | bb1b71f72d2fb97044a62e8e0152dadb88de6411 | [
"MIT"
] | null | null | null | import pickle
import numpy as np
print("Fetching files...")
A1 = np.array(
fetch_file(
"/home/imlegend19/PycharmProjects/Research - Data Mining/gnome/adjacency_matrix_normal/definition_2/A1_fc.txt"))
A2 = np.array(
fetch_file(
"/home/imlegend19/PycharmProjects/Research - Data Mining/gnome/ad... | 23.59 | 120 | 0.666808 |
aa027855d06ebca0a52e37c857218b627bb34991 | 2,066 | py | Python | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | 1 | 2018-07-14T01:00:56.000Z | 2018-07-14T01:00:56.000Z | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | null | null | null | brute.py | mirfansulaiman/python-bruteforce-script | bc1d7d92de37fa927c2fc4ddc1d1ef08ad361a26 | [
"Apache-2.0"
] | 1 | 2021-01-31T06:53:55.000Z | 2021-01-31T06:53:55.000Z | #!/usr/bin/env python
# Name : Simple Bruteforce v.0.1
# Author: mirfansulaiman
# Indonesian Backtrack Team | Kurawa In Disorder
# http://indonesianbacktrack.or.id
# http://mirfansulaiman.com/
# http://ctfs.me/
#
# have a bug? report to doctorgombal@gmail.com or PM at http://indonesianbacktrack.or.id/forum/user-10440.... | 31.784615 | 114 | 0.549371 |
aa02c1541983ffc2ca4760a8ccd065899eae8b79 | 2,826 | py | Python | flask_strapi/__init__.py | ToraNova/flask-strapi | d777604326785c278137d1f4306978cf4192bf2f | [
"MIT"
] | 1 | 2022-01-08T23:48:17.000Z | 2022-01-08T23:48:17.000Z | flask_strapi/__init__.py | ToraNova/flask-strapi | d777604326785c278137d1f4306978cf4192bf2f | [
"MIT"
] | null | null | null | flask_strapi/__init__.py | ToraNova/flask-strapi | d777604326785c278137d1f4306978cf4192bf2f | [
"MIT"
] | null | null | null | import requests
import sys, traceback
from flask import session, abort
from werkzeug.local import LocalProxy
from functools import wraps
strapi_session = LocalProxy(lambda: _get_strapi_session())
null_session = LocalProxy(lambda: _get_null_session())
| 31.752809 | 111 | 0.635527 |
aa02cc1bd489b4bbbc4791b094845a1485411324 | 20,228 | py | Python | code_generation.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | 1 | 2021-04-25T22:53:36.000Z | 2021-04-25T22:53:36.000Z | code_generation.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | null | null | null | code_generation.py | irinaid/MAlice | 02740d661020866c3927b9ee7ee4523aaaafcb7e | [
"MIT"
] | null | null | null | from sys import stdout
from evaluate_expression import *
from operations_and_expressions import *
from write import *
regs = ["r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"]
relational_ops = [ ">", ">=", "<", "<=", "!=", "=="]
allocationTable = {}
globalTable = {}
stack = []
BYTE_SIZE = 8
IF_NUMBER = 0
WHILE_NU... | 28.897143 | 79 | 0.57109 |
aa03628128470066c6fb4c6581837b4e0400afec | 990 | py | Python | desafios/desafio059.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | desafios/desafio059.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | desafios/desafio059.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | from time import sleep
n1 = int(input('Primeiro valor: '))
n2 = int(input('Segundo valor: '))
op = 0
while op != 5:
print(''' [ 1 ] somar
[ 2 ] multiplicar
[ 3 ] maior
[ 4 ] novos nmeros
[ 5 ] sair do programa''')
op = int(input('>>>>> Qual a sua opo? '))
if op == 1:
s = n1 + n2
... | 28.285714 | 71 | 0.491919 |
aa04307124ba223bc978e954f54e343c9efb1a6f | 569 | py | Python | curso em video/python/mundo 1/ex033.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | curso em video/python/mundo 1/ex033.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | curso em video/python/mundo 1/ex033.py | KenzoDezotti/cursoemvideo | 6eba03e67192f7384092192ed2cc1a8e59efd9b9 | [
"MIT"
] | null | null | null | c = int(input('digite o primeiro numero: '))
b = int(input('digite o segundo numero: '))
a = int(input('digite o terceiro numero: '))
cores= {'vermelho': '\033[0;31m',
'azul' : '\033[1;34m',
'zero': '\033[m' }
# qual o maior
maior = a
if b > c and b > a:
maior = b
if c > b and c > a:
maior = c
p... | 25.863636 | 79 | 0.56239 |
aa045e92b1da01e687147246d74bf80b0eabb154 | 1,547 | py | Python | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if '__main__' == __name__:
item = ''
while True:
print '(1) Write to file'
print '(2) Read from file'
print '(x) Exit'
item = raw_input('> ')
if item == '1':
write_text_file()
elif item == '2':
... | 22.1 | 60 | 0.517776 |
aa057ded2140561374c7da858671054b70b4655e | 12,212 | py | Python | configs/__init__.py | fswzb/autotrade | e3240dc6d5d81504b3df3be7f0f85000ce5b634d | [
"MIT"
] | 1 | 2020-06-22T06:18:07.000Z | 2020-06-22T06:18:07.000Z | configs/__init__.py | fswzb/autotrade | e3240dc6d5d81504b3df3be7f0f85000ce5b634d | [
"MIT"
] | null | null | null | configs/__init__.py | fswzb/autotrade | e3240dc6d5d81504b3df3be7f0f85000ce5b634d | [
"MIT"
] | 1 | 2019-11-24T18:09:47.000Z | 2019-11-24T18:09:47.000Z | # coding=utf-8
common_mysql_config = {
'user': 'root',
'passwd': '',
'host': '127.0.0.1',
'db': 'autotrade',
'connect_timeout': 3600,
'charset': 'utf8'
}
yongjinbao_config = {"account": "", "password": ""}
guangfa_config = {"username": "", "password": ""}
yinghe_config = {"inputaccount": "",... | 28.869976 | 104 | 0.546921 |
aa05a5f5d054582877f87be6fff364e1313a693c | 8,894 | py | Python | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | 1 | 2016-09-08T02:32:00.000Z | 2016-09-08T02:32:00.000Z | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | null | null | null | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
'''
PyTicTacToe - Tic Tac Toe in Python
http://ruel.me
Copyright (c) 2010, Ruel Pagayon - ruel@ruel.me
All rights reserved.
Redistribution and use in source and binary forms, with or without
* Redistributions of source code must retain the above copyright
notice, this list of conditions ... | 22.688776 | 92 | 0.616483 |
aa062c465b8cb43f800d6ab5306626908026dc9e | 22,484 | py | Python | plot/comparison.py | yketa/UBC---Spring-2018---code | b065544639a483dda48cda89bcbb11c1772232aa | [
"MIT"
] | 1 | 2021-12-15T13:38:13.000Z | 2021-12-15T13:38:13.000Z | plot/comparison.py | yketa/UBC---Spring-2018---code | b065544639a483dda48cda89bcbb11c1772232aa | [
"MIT"
] | 1 | 2019-05-25T20:00:17.000Z | 2019-05-25T20:00:17.000Z | plot/comparison.py | yketa/UBC---Spring-2018---code | b065544639a483dda48cda89bcbb11c1772232aa | [
"MIT"
] | 1 | 2020-01-22T17:05:18.000Z | 2020-01-22T17:05:18.000Z | """
Module comparison superimposes most probable local density, maximum
cooperativity, time of maximum cooperativity and ratio of transversal and
longitudinal correlations at time of maximum cooperativity, as functions of
the Pclet number, for different trajectories in the phase diagram (either
varying persistence time... | 44.172888 | 156 | 0.677059 |
aa063c8fe24a2414d08f79391cfa01c347db328a | 655 | py | Python | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 2 | 2020-12-05T05:34:56.000Z | 2020-12-09T10:27:43.000Z | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 3 | 2021-06-28T16:47:23.000Z | 2021-06-28T16:48:51.000Z | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 9 | 2021-01-29T17:06:30.000Z | 2021-08-21T18:23:26.000Z | # Generated by Django 2.2.15 on 2021-01-29 22:55
from django.db import migrations, models
import django.db.models.deletion
| 27.291667 | 159 | 0.638168 |
aa071d641c21c8126205d398a23afa6631e2eb94 | 1,144 | py | Python | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 2 | 2022-03-10T03:17:48.000Z | 2022-03-10T03:17:58.000Z | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 19 | 2022-01-31T20:43:43.000Z | 2022-03-30T18:26:37.000Z | tests/micropython/heapalloc_exc_compressed.py | andihoff98/micropython | b0ef4364db9a75f761adf07c0f300cb0704fdf19 | [
"MIT"
] | 1 | 2022-03-30T18:38:08.000Z | 2022-03-30T18:38:08.000Z | import micropython
# Tests both code paths for built-in exception raising.
# mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format)
# mp_obj_new_exception_msg (decompression can be deferred)
# NameError uses mp_obj_new_exception_msg_varg for NameError("name '%q' isn't defined")
# `ra... | 24.340426 | 106 | 0.740385 |
aa07eb294a968be138419270910fe3769b70aebc | 2,464 | py | Python | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | 7 | 2020-06-15T01:04:10.000Z | 2021-12-15T03:49:05.000Z | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | null | null | null | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | 4 | 2020-06-15T16:02:12.000Z | 2021-10-12T07:18:47.000Z | import h5py
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas
import os
from parse import parse
import argparse
parser = argparse.ArgumentParser(description='Plot tracking evaluation results')
parser.add_argument('results_path', help='tracking results file or working directory')
ar... | 44 | 243 | 0.590909 |
aa081249580e88b0253e91416aa676f87663a26d | 4,166 | py | Python | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | # -*-coding:Utf-8 -*
#--------------------------------------------------------------------------------
# jtlib: test_client.py
#
# jtlib module client test code.
#--------------------------------------------------------------------------------
# BSD 2-Clause License
#
# Copyright (c) 2018, Brian Minard
# All rights r... | 37.196429 | 97 | 0.694911 |
aa081c36750a5e0ea22144ff5ba5a1f43d5725af | 3,785 | py | Python | corsair/ibm/qradar/__init__.py | forkd/corsair | c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f | [
"MIT"
] | 7 | 2019-05-01T00:04:02.000Z | 2019-10-04T18:22:59.000Z | corsair/ibm/qradar/__init__.py | lopes/corsair | c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f | [
"MIT"
] | null | null | null | corsair/ibm/qradar/__init__.py | lopes/corsair | c854aed4b8b7f5d4b29610fc2b65881db6a0fb8f | [
"MIT"
] | 3 | 2019-05-04T04:05:15.000Z | 2020-01-20T17:29:30.000Z | import urllib.request
from urllib.parse import urlencode
from json import loads
from socket import timeout
from ssl import _create_unverified_context
from corsair import *
| 40.265957 | 86 | 0.632497 |
aa0908d204cc1bd792f22cb281757498ea7ff6d8 | 129 | py | Python | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | 1 | 2017-01-16T10:51:15.000Z | 2017-01-16T10:51:15.000Z | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | null | null | null | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | null | null | null |
from guide.models import Area
| 11.727273 | 30 | 0.565891 |
aa0bad3348ebb20b51fc55cdea73057560ae7c2d | 1,009 | py | Python | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 4 | 2021-09-24T09:18:36.000Z | 2022-03-15T16:47:09.000Z | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 1 | 2017-10-28T14:35:08.000Z | 2017-10-28T14:35:08.000Z | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 3 | 2018-10-17T09:29:29.000Z | 2019-03-12T09:18:42.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.ascendex import ascendex
| 37.37037 | 126 | 0.557978 |
aa0beaaea8f9d9ab2689ecc5856703bdd0686fc3 | 1,625 | py | Python | path_to_root.py | Wsoukkachang/Python | 931b89d5ce5d4e07654403c3baa63ef0f2dae8b4 | [
"MIT"
] | null | null | null | path_to_root.py | Wsoukkachang/Python | 931b89d5ce5d4e07654403c3baa63ef0f2dae8b4 | [
"MIT"
] | null | null | null | path_to_root.py | Wsoukkachang/Python | 931b89d5ce5d4e07654403c3baa63ef0f2dae8b4 | [
"MIT"
] | null | null | null | from queue import Queue
def convert_arr_to_binary_tree(arr):
"""
Takes arr representing level-order traversal of Binary Tree
"""
index = 0
length = len(arr)
if length <= 0 or arr[0] == -1:
return None
root = BinaryTreeNode(arr[index])
index += 1
queue = Queue()
qu... | 25.793651 | 69 | 0.617231 |
aa0d8ce33a090f902ad8f14cf64f48b5d4df3194 | 7,232 | py | Python | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2014 NTHUOJ team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 39.304348 | 86 | 0.648921 |
aa0ef04e32539da4111738a97b4fb91b9adbfeb7 | 296 | py | Python | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | arena/objects/line.py | syreal17/ARENA-py | 84f73d09ca5bcfec5973b366784ec8385d5e156d | [
"BSD-3-Clause"
] | null | null | null | from .arena_object import Object
from ..attributes import Position
| 26.909091 | 80 | 0.665541 |
aa110cd2edc58ec667902045505d003d64be93a9 | 1,067 | py | Python | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
A website requires the users to input username and password to register. Write a program to check the validity of password input by users.
"""
"""Question 18
Level 3
Question:
A website requires the users to input username and password to register. Write a program to check the validity of password input by users.
... | 42.68 | 199 | 0.776007 |
aa11a5a6d1a64b23db22e2fa37320c9cd8481f08 | 14,561 | py | Python | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 294 | 2019-11-14T13:14:55.000Z | 2022-03-22T08:28:56.000Z | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 17 | 2019-12-23T09:32:00.000Z | 2022-03-17T20:00:13.000Z | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 50 | 2019-11-25T02:27:04.000Z | 2021-12-10T04:46:26.000Z | """
Though karonte relies on angr's sim procedures, sometimes these add in the current state some constraints to make the
used analysis faster. For example, if a malloc has an unconstrained size, angr add the constraint
size == angr-defined.MAX_SIZE. Though this makes the analysis faster, it makes impossible to reason ... | 34.100703 | 117 | 0.665614 |
aa11fb94d31ccf6c37536234d11058561f0102ae | 2,510 | py | Python | djangodash2013/settings.py | nnrcschmdt/djangodash2013 | 26e7a7ce62fdea976569144fed96d04cf631e32f | [
"BSD-3-Clause"
] | null | null | null | djangodash2013/settings.py | nnrcschmdt/djangodash2013 | 26e7a7ce62fdea976569144fed96d04cf631e32f | [
"BSD-3-Clause"
] | null | null | null | djangodash2013/settings.py | nnrcschmdt/djangodash2013 | 26e7a7ce62fdea976569144fed96d04cf631e32f | [
"BSD-3-Clause"
] | null | null | null | import os
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Ernesto Rico-Schmidt', 'e.rico.schmidt@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'data.sqlite'
}
}
ALLOW... | 22.212389 | 73 | 0.664143 |
aa1329750f3a0be83521b3103dee6f387d00d620 | 15,773 | py | Python | Commongen_code/TED/transformers_local/examples/run_generation.py | nlgandnlu/TED-code | 7c00fc39c4412d57e378a5b205bcec1737e51e2e | [
"MIT"
] | 1 | 2022-01-14T08:00:57.000Z | 2022-01-14T08:00:57.000Z | Commongen_code/TED/transformers_local/examples/run_generation.py | nlgandnlu/TED | c0b04ddbeaa6061cd1c888bf1bcf70ef717f6bee | [
"MIT"
] | null | null | null | Commongen_code/TED/transformers_local/examples/run_generation.py | nlgandnlu/TED | c0b04ddbeaa6061cd1c888bf1bcf70ef717f6bee | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | 39.4325 | 122 | 0.669499 |
aa135a9d2168bdcf4644fb75e14d15294cb6bf0d | 4,988 | py | Python | kenlm_training/tests/test_minify.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 435 | 2019-11-04T22:35:50.000Z | 2022-03-29T20:15:07.000Z | kenlm_training/tests/test_minify.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 331 | 2021-11-02T00:30:56.000Z | 2022-03-08T16:48:13.000Z | kenlm_training/tests/test_minify.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 66 | 2019-11-06T01:28:12.000Z | 2022-03-01T09:18:32.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import json
from pathlib import Path
import pytest
import cc_net
import cc_net.minify as minify
from cc_net import jsonql, process_wet_fil... | 32.38961 | 121 | 0.632518 |
aa164872ebae4c5cbc063c4c63a1e4a0016f243f | 9,353 | py | Python | beast/observationmodel/observations.py | cmurray-astro/beast | cbbf6a663126367632c065ae63b341bea325e2ea | [
"BSD-3-Clause"
] | null | null | null | beast/observationmodel/observations.py | cmurray-astro/beast | cbbf6a663126367632c065ae63b341bea325e2ea | [
"BSD-3-Clause"
] | 1 | 2020-06-25T16:26:02.000Z | 2020-06-25T16:26:02.000Z | beast/observationmodel/observations.py | cmurray-astro/beast | cbbf6a663126367632c065ae63b341bea325e2ea | [
"BSD-3-Clause"
] | null | null | null | """
Defines a generic interface to observation catalog
"""
import numpy as np
from astropy.table import Table, Column
from beast.observationmodel.vega import Vega
__all__ = ["Observations", "gen_SimObs_from_sedgrid"]
def gen_SimObs_from_sedgrid(
sedgrid,
sedgrid_noisemodel,
nsim=100,
compl_filter=... | 29.977564 | 90 | 0.610713 |
aa177fa6cb0e8f56b34cd0aa79227c8c06214fe1 | 85 | py | Python | src/lib/__init__.py | nekoffski/bachelor-thesis | 23f350e2c5e0a184620bf66f851be6e94df7cdbb | [
"MIT"
] | 2 | 2021-08-09T09:00:34.000Z | 2021-08-20T09:31:00.000Z | src/lib/__init__.py | nekoffski/bachelor-thesis | 23f350e2c5e0a184620bf66f851be6e94df7cdbb | [
"MIT"
] | null | null | null | src/lib/__init__.py | nekoffski/bachelor-thesis | 23f350e2c5e0a184620bf66f851be6e94df7cdbb | [
"MIT"
] | null | null | null | from .cvision import *
from .models import *
from .net import *
from .util import *
| 14.166667 | 22 | 0.705882 |
aa1b3aaba80e142eb448dc289c39eaf7a010960f | 60 | py | Python | workflow/scripts/helpers/__init__.py | IMS-Bio2Core-Facility/single_snake_sequencing | dddf8fc8960da8938484f98a4ea94f74a4fd5b18 | [
"MIT"
] | null | null | null | workflow/scripts/helpers/__init__.py | IMS-Bio2Core-Facility/single_snake_sequencing | dddf8fc8960da8938484f98a4ea94f74a4fd5b18 | [
"MIT"
] | null | null | null | workflow/scripts/helpers/__init__.py | IMS-Bio2Core-Facility/single_snake_sequencing | dddf8fc8960da8938484f98a4ea94f74a4fd5b18 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""BIC083-Eunyoung-Lee analysis."""
| 20 | 35 | 0.583333 |
aa1b53928b03ab8946043bdbe847b07bb95b6c93 | 2,355 | py | Python | testsuite/driver/src/case/case_executor/clean.py | openmaple/MapleCompiler | 1648e63144766563f1ec44a25e0b618415648627 | [
"MulanPSL-1.0"
] | 5 | 2019-09-02T04:44:52.000Z | 2021-11-08T12:23:51.000Z | testsuite/driver/src/case/case_executor/clean.py | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 2 | 2020-07-21T01:22:01.000Z | 2021-12-06T08:07:16.000Z | testsuite/driver/src/case/case_executor/clean.py | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 4 | 2019-09-02T04:46:52.000Z | 2020-09-10T11:30:03.000Z | #
# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved.
#
# OpenArkCompiler is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WA... | 41.315789 | 115 | 0.6569 |
aa1ba1822280fb470d703129aa4c411447b4d5e2 | 5,749 | py | Python | teraserver/python/modules/FlaskModule/API/user/UserLogin.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | 10 | 2020-03-16T14:46:06.000Z | 2022-02-11T16:07:38.000Z | teraserver/python/modules/FlaskModule/API/user/UserLogin.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | 114 | 2019-09-16T13:02:50.000Z | 2022-03-22T19:17:36.000Z | teraserver/python/modules/FlaskModule/API/user/UserLogin.py | introlab/opentera | bfc4de672c9de40b7c9a659be2138731e7ee4e94 | [
"Apache-2.0"
] | null | null | null | from flask import session, request
from flask_restx import Resource, reqparse
from flask_babel import gettext
from modules.LoginModule.LoginModule import user_http_auth
from modules.FlaskModule.FlaskModule import user_api_ns as api
from opentera.redis.RedisRPCClient import RedisRPCClient
from opentera.modules.BaseModul... | 48.310924 | 115 | 0.578361 |
aa1c025ad6114c52c33a5057e8bad9a15f3be813 | 10,790 | py | Python | yemek.py | raydingoz/cerrahapp | 81a242dcf20d525f44a54f025414e9e8775caa37 | [
"MIT"
] | 2 | 2017-12-14T10:30:45.000Z | 2022-01-11T19:19:33.000Z | yemek.py | raydingoz/cerrahapp | 81a242dcf20d525f44a54f025414e9e8775caa37 | [
"MIT"
] | null | null | null | yemek.py | raydingoz/cerrahapp | 81a242dcf20d525f44a54f025414e9e8775caa37 | [
"MIT"
] | null | null | null | ##bu python kodu, selenium ve chromedriver ile almakta, siteyi normal kullanc gibi ziyaret edip, gerekli verileri parse ediyor
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
from bs4 import BeautifulSoup
import time, datetime
import json
import requests
import sys
impor... | 29.80663 | 149 | 0.510843 |
aa1c0ae5f77bc0f8eac0e19d1462d0bcf251eb0b | 6,542 | py | Python | our_env.py | Venatoral/Slight | 0156ffa39011b035ff1523da4967b4b1c75108d4 | [
"Apache-2.0"
] | null | null | null | our_env.py | Venatoral/Slight | 0156ffa39011b035ff1523da4967b4b1c75108d4 | [
"Apache-2.0"
] | null | null | null | our_env.py | Venatoral/Slight | 0156ffa39011b035ff1523da4967b4b1c75108d4 | [
"Apache-2.0"
] | null | null | null | from typing import List, overload
from flow.envs.multiagent.traffic_light_grid import MultiTrafficLightGridPOEnv
from flow.envs.traffic_light_grid import TrafficLightGridPOEnv
from gym.spaces import Box, Discrete
import numpy as np
ID_IDX = 1
| 42.480519 | 79 | 0.597371 |
aa1c1132f05dc4d99bcca0197b212ef7e7e8de3b | 1,449 | py | Python | example/nodelabeled-unweighted.py | yhtang/GraphDot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 9 | 2020-02-14T18:07:39.000Z | 2021-12-15T12:07:31.000Z | example/nodelabeled-unweighted.py | yhtang/graphdot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-03-19T19:07:26.000Z | 2021-02-24T06:08:51.000Z | example/nodelabeled-unweighted.py | yhtang/graphdot | 3d5ed4fbb2f6912052baa42780b436da76979691 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-17T06:11:18.000Z | 2021-05-07T11:56:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''An example of similarity comparison between node-labeled but unweighted
graphs using the marginalized graph kernel.'''
import numpy as np
import networkx as nx
from graphdot import Graph
from graphdot.kernel.marginalized import MarginalizedGraphKernel
from graphdot.micro... | 25.421053 | 74 | 0.675638 |
aa1c3ea5d289362a0fc7eea0894a32edac8f196e | 9,735 | py | Python | sparse_causal_model_learner_rl/annealer/threshold.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 2 | 2020-12-11T05:26:24.000Z | 2021-04-21T06:12:58.000Z | sparse_causal_model_learner_rl/annealer/threshold.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 9 | 2020-04-30T16:29:50.000Z | 2021-03-26T07:32:18.000Z | sparse_causal_model_learner_rl/annealer/threshold.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | null | null | null | import gin
import torch
import logging
from sparse_causal_model_learner_rl.metrics import find_value, find_key
| 41.781116 | 133 | 0.576271 |
aa1d2d976b2cf58daaaccaed749a8600fff9d87f | 3,164 | py | Python | Episode01-Move_Player/Pygame/Shmup tutorial-01.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | 1 | 2022-02-01T04:05:04.000Z | 2022-02-01T04:05:04.000Z | Episode01-Move_Player/Pygame/Shmup tutorial-01.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | Episode01-Move_Player/Pygame/Shmup tutorial-01.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | # https://www.youtube.com/watch?v=nGufy7weyGY
'''
Only 1 player so use code module (static class) for player
and a separate shared code module for global variables
'''
# import libraries
import pygame, os
import shared, player
def process_events() -> (object, object, bool):
''' get keyboard input and check ... | 38.585366 | 105 | 0.677623 |
aa1ed9f3c5b53362f9ffc3df9a734baef6b42e38 | 3,119 | py | Python | vvrest/vault.py | GRM-VisualVault/vvPyRest | 59c15d3377b9955f575cfdb1362facc48f253442 | [
"MIT"
] | 1 | 2019-01-31T10:41:35.000Z | 2019-01-31T10:41:35.000Z | vvrest/vault.py | GRM-VisualVault/vvPyRest | 59c15d3377b9955f575cfdb1362facc48f253442 | [
"MIT"
] | 5 | 2018-12-30T03:15:20.000Z | 2021-06-30T21:49:41.000Z | vvrest/vault.py | GRM-VisualVault/vvPyRest | 59c15d3377b9955f575cfdb1362facc48f253442 | [
"MIT"
] | null | null | null | from .token import Token
from .utilities import get_token_expiration
from .services.auth_service import AuthService
| 38.506173 | 117 | 0.643796 |
aa2023ac99077f9cb543158669d698802bc7ef7d | 2,000 | py | Python | setup.py | saimn/stsci.tools | b926e11b4f1afa09fe7cf6b7893ebf2a54182c94 | [
"BSD-3-Clause"
] | null | null | null | setup.py | saimn/stsci.tools | b926e11b4f1afa09fe7cf6b7893ebf2a54182c94 | [
"BSD-3-Clause"
] | null | null | null | setup.py | saimn/stsci.tools | b926e11b4f1afa09fe7cf6b7893ebf2a54182c94 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import pkgutil
import sys
from setuptools import setup, find_packages
from subprocess import check_call, CalledProcessError
if not pkgutil.find_loader('relic'):
relic_local = os.path.exists('relic')
relic_submodule = (relic_local and
os.path.exists('.gitm... | 28.169014 | 87 | 0.593 |
aa2088862a2b3c7cee42f6b2595d03cd35464ec2 | 5,362 | py | Python | settings.py | Nayigiziki/apartment-finder | 0d95c67d1bbabe5ba99a8fee92b219b94726c19c | [
"MIT"
] | null | null | null | settings.py | Nayigiziki/apartment-finder | 0d95c67d1bbabe5ba99a8fee92b219b94726c19c | [
"MIT"
] | null | null | null | settings.py | Nayigiziki/apartment-finder | 0d95c67d1bbabe5ba99a8fee92b219b94726c19c | [
"MIT"
] | null | null | null | import os
# filters
FILTERS = {
'min_bathrooms': 1,
'min_bedrooms': 3
}
## Location preferences
# The Craigslist site you want to search on.
# For instance, https://sfbay.craigslist.org is SF and the Bay Area.
# You only need the beginning of the URL.
CRAIGSLIST_SITE = 'sfbay'
# What Craigslist subdirectorie... | 40.931298 | 396 | 0.684073 |
aa23e634e8fb312ea7c22cb42c2ae28b5cc0039c | 2,569 | py | Python | randomPanFlute.py | aleixcm/tensorflow-wavenet | e38d4b71fe905042ed02cceffd6d4a8c8c356302 | [
"MIT"
] | null | null | null | randomPanFlute.py | aleixcm/tensorflow-wavenet | e38d4b71fe905042ed02cceffd6d4a8c8c356302 | [
"MIT"
] | null | null | null | randomPanFlute.py | aleixcm/tensorflow-wavenet | e38d4b71fe905042ed02cceffd6d4a8c8c356302 | [
"MIT"
] | 1 | 2018-09-22T09:56:03.000Z | 2018-09-22T09:56:03.000Z | import os
import scipy.io.wavfile
import matplotlib.pyplot as plt
import numpy as np
import os
import random
'''
Create a random dataset with three different frequencies that are always in fase.
Frequencies will be octave [440, 880, 1320].
'''
fs = 16000
x1 = scipy.io.wavfile.read('corpus/Analysis/a440.wav')[1]
x2 ... | 26.484536 | 106 | 0.626703 |
aa24ad1cd629e57a49d0bc27903187170354eee3 | 3,162 | py | Python | py/scripts/ci_imstats.py | dstndstn/gfa_reduce | 410729fd3c652d96739299be4b196455a2490d33 | [
"BSD-3-Clause"
] | null | null | null | py/scripts/ci_imstats.py | dstndstn/gfa_reduce | 410729fd3c652d96739299be4b196455a2490d33 | [
"BSD-3-Clause"
] | 13 | 2019-02-08T02:11:01.000Z | 2019-09-10T02:11:28.000Z | py/scripts/ci_imstats.py | dstndstn/gfa_reduce | 410729fd3c652d96739299be4b196455a2490d33 | [
"BSD-3-Clause"
] | 2 | 2019-12-23T15:25:32.000Z | 2020-12-22T13:43:52.000Z | #!/usr/bin/env python
import argparse
import os
import gfa_reduce.io as io
import glob
import time
import numpy as np
import copy
import gfa_reduce.common as common
import astropy.io.fits as fits
import gfa_reduce.dark_current as dark_current
from gfa_reduce.analysis.sky import adu_to_surface_brightness
if __name__=... | 35.133333 | 165 | 0.686591 |
aa25080d95db6003a47cb7e9144e0411c4a11460 | 88 | py | Python | onnxmltools/convert/common/utils.py | xjarvik/onnxmltools | e4fbdc09814ceedc7655d85b6c4203ca21d8433a | [
"Apache-2.0"
] | 1 | 2022-01-28T04:59:37.000Z | 2022-01-28T04:59:37.000Z | onnxmltools/convert/common/utils.py | xjarvik/onnxmltools | e4fbdc09814ceedc7655d85b6c4203ca21d8433a | [
"Apache-2.0"
] | null | null | null | onnxmltools/convert/common/utils.py | xjarvik/onnxmltools | e4fbdc09814ceedc7655d85b6c4203ca21d8433a | [
"Apache-2.0"
] | 1 | 2021-07-05T23:51:56.000Z | 2021-07-05T23:51:56.000Z | # SPDX-License-Identifier: Apache-2.0
from onnxconverter_common.utils import * # noqa
| 22 | 48 | 0.772727 |
aa25c2e709cfea704e04eb7eb4828a1320e8fafc | 5,280 | py | Python | navegador5/time_utils.py | ihgazni2/navegador5 | 8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab | [
"MIT"
] | null | null | null | navegador5/time_utils.py | ihgazni2/navegador5 | 8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab | [
"MIT"
] | null | null | null | navegador5/time_utils.py | ihgazni2/navegador5 | 8d7bcf39f6adf27f6c3ebd1a803383cd3d9555ab | [
"MIT"
] | null | null | null | import re
import time
import datetime
import html
def which_time_format(date_value):
'''
####################HTTP-date###############
# HTTP-date = rfc1123-date | rfc850-date | asctime-date
# rfc1123-date = wkday "," SP date1 SP time SP "GMT"
... | 31.058824 | 131 | 0.485985 |
aa2716777e5784947bfab68b664551c0c517f631 | 4,540 | py | Python | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 287 | 2016-05-13T17:45:48.000Z | 2022-01-23T00:26:20.000Z | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 33 | 2016-05-13T11:40:21.000Z | 2020-11-16T17:57:17.000Z | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 64 | 2016-05-26T06:35:39.000Z | 2021-09-27T12:02:44.000Z | from base import job_desc_pb2
from base import task_desc_pb2
from base import reference_desc_pb2
from google.protobuf import text_format
import httplib, urllib, re, sys, random
import binascii
import time
import shlex
if len(sys.argv) < 4:
print "usage: memcached_submit.py <coordinator hostname> <web UI port> " \
... | 36.910569 | 99 | 0.745154 |
aa276bd863f21ed290ee913192b1706b7cc21ea2 | 16,059 | py | Python | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | 1 | 2021-10-14T03:36:15.000Z | 2021-10-14T03:36:15.000Z | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | null | null | null | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | null | null | null | # Solving the series of linear equations for true action
# and generating function Fourier components
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from matplotlib.ticker import MaxNLocator
import matplotlib.cm as cm
import time
# in units kpc, km/s and 10^11 M_solar
Grav = 430... | 37.964539 | 229 | 0.600598 |
aa27ad417a5f5847632ae2f34039763f50ca24d4 | 748 | py | Python | scripts/find-attorneys.py | kendallcorner/oscn | 6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c | [
"MIT"
] | null | null | null | scripts/find-attorneys.py | kendallcorner/oscn | 6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c | [
"MIT"
] | null | null | null | scripts/find-attorneys.py | kendallcorner/oscn | 6ba2d939b27d0d54af236e14f8a6b3f5f2aa995c | [
"MIT"
] | null | null | null | import sys
import time
import csv
import oscn
counties = ['tulsa', 'cimarron', 'adair', 'delaware']
years = ['2010']
for county in counties:
csv_file = open(f'data/{county}-attorneys.csv', "w")
# if this breaks, you may need to mkdir data
writer = csv.writer(csv_file, delimiter=',')
for year in yea... | 26.714286 | 76 | 0.617647 |
aa282f1ac7388b3707ced3a023f5c1233c6cf501 | 156 | py | Python | tests/middlewares/__init__.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 16 | 2015-04-18T02:51:09.000Z | 2020-12-15T18:05:16.000Z | tests/middlewares/__init__.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 8 | 2015-11-24T23:06:03.000Z | 2016-07-21T17:57:59.000Z | tests/middlewares/__init__.py | caputomarcos/mongorest | 57d6b28d75e18afed5cef7160522958153b5be15 | [
"BSD-3-Clause"
] | 2 | 2015-12-04T13:45:32.000Z | 2016-06-11T13:44:53.000Z | # -*- encoding: UTF-8 -*-
from __future__ import absolute_import, unicode_literals
from .authentication_middleware import *
from .cors_middleware import *
| 26 | 56 | 0.788462 |
aa2c05b3df99db71aa37cd2cc5fcd8d03b928ba5 | 628 | py | Python | katena_chain_sdk_py/serializer/bytes_field.py | katena-chain/sdk-py | 9e1344c6cf2b73680a39c533be58d668b172304f | [
"Apache-2.0"
] | null | null | null | katena_chain_sdk_py/serializer/bytes_field.py | katena-chain/sdk-py | 9e1344c6cf2b73680a39c533be58d668b172304f | [
"Apache-2.0"
] | null | null | null | katena_chain_sdk_py/serializer/bytes_field.py | katena-chain/sdk-py | 9e1344c6cf2b73680a39c533be58d668b172304f | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2019, TransChain.
This source code is licensed under the Apache 2.0 license found in the
LICENSE file in the root directory of this source tree.
"""
from marshmallow import fields
from base64 import b64encode, b64decode
| 28.545455 | 70 | 0.691083 |
aa2fbcd8fca4fea0b2a9735c1802f1a2bfebbf80 | 717 | py | Python | requests_api/adapter.py | degagne/requests-api | e2d65503d7152293efb8105bb7f48bf46399cd44 | [
"MIT"
] | 1 | 2021-12-09T05:41:47.000Z | 2021-12-09T05:41:47.000Z | requests_api/adapter.py | degagne/requests-api | e2d65503d7152293efb8105bb7f48bf46399cd44 | [
"MIT"
] | null | null | null | requests_api/adapter.py | degagne/requests-api | e2d65503d7152293efb8105bb7f48bf46399cd44 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from typing import List, Dict, NoReturn, Any
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from requests_api.constants import (
BACKOFF_FACTOR,
STATUS_FORCELIST,
ALLOWED_METHODS
)
| 29.875 | 79 | 0.693166 |
aa2fcb5d798f5d19c8f670fc3a91f498e60643c5 | 225 | py | Python | tests/engine/dice_test.py | slalom/slaloms-and-dragons | 3ae6a6ec3feb188d767983ab9277668baab18533 | [
"MIT"
] | 7 | 2019-03-28T15:56:21.000Z | 2021-11-08T09:02:05.000Z | tests/engine/dice_test.py | slalom/slaloms-and-dragons | 3ae6a6ec3feb188d767983ab9277668baab18533 | [
"MIT"
] | 2 | 2019-05-16T02:00:22.000Z | 2021-06-08T19:49:46.000Z | tests/engine/dice_test.py | slalom/slaloms-and-dragons | 3ae6a6ec3feb188d767983ab9277668baab18533 | [
"MIT"
] | 4 | 2019-04-02T17:49:30.000Z | 2019-04-04T00:38:54.000Z | import unittest
import game.engine.dice as dice
| 22.5 | 40 | 0.697778 |
aa33835c67781bbb57fb61d41ada81b8f333456f | 7,209 | py | Python | pepenc/data/peptide_encoder_training_dataset.py | bmmalone/peptide-encoder | c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900 | [
"MIT"
] | null | null | null | pepenc/data/peptide_encoder_training_dataset.py | bmmalone/peptide-encoder | c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900 | [
"MIT"
] | null | null | null | pepenc/data/peptide_encoder_training_dataset.py | bmmalone/peptide-encoder | c4b4d5a0dc68bd2442ab5046713ff15dc3cd4900 | [
"MIT"
] | null | null | null | """ This module contains a pytorch dataset for learning peptide embeddings.
In particular, each "instance" of the dataset comprises two peptide sequences,
as well as the sNebula similarity between them. The sNebula distance reflects
the BLOSSUM similarity transformed from 0 to 1.
"""
import logging
logger = logging.ge... | 36.593909 | 102 | 0.674019 |
aa338df0bf1425d20b2eaf00cec44ce15acc8852 | 3,961 | py | Python | src/chime_dash/app/components/__init__.py | nickcanz/chime | cb03218ee5cc71b92704c8be379924ac459259d7 | [
"MIT"
] | 2 | 2020-04-02T15:57:41.000Z | 2020-06-27T18:06:47.000Z | src/chime_dash/app/components/__init__.py | nickcanz/chime | cb03218ee5cc71b92704c8be379924ac459259d7 | [
"MIT"
] | 1 | 2020-04-05T17:23:45.000Z | 2020-04-05T17:23:45.000Z | src/chime_dash/app/components/__init__.py | nickcanz/chime | cb03218ee5cc71b92704c8be379924ac459259d7 | [
"MIT"
] | null | null | null | """Combines all components
The `sidebar` component combines all the inputs while other components potentially
have callbacks.
To add or remove components, adjust the `setup`.
If callbacks are present, also adjust `CALLBACK_INPUTS`, `CALLBACK_OUTPUTS` and
`callback_body`.
"""
from collections import OrderedDict
from ... | 36.009091 | 82 | 0.58874 |
aa35c651bcb63b7652b7a85574cf82938974798d | 206 | py | Python | src/page/page_parser.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | 1 | 2016-02-08T10:53:48.000Z | 2016-02-08T10:53:48.000Z | src/page/page_parser.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | null | null | null | src/page/page_parser.py | baallezx/collect | 7156f239d133660e03bba334d716025b96d6b230 | [
"MIT"
] | null | null | null | # TODO: implement a page_parser that uses nlp and stats to get a good read of a file.
| 25.75 | 85 | 0.728155 |
aa35ead0147cdaa5e16792a1159c28c73e8158c5 | 110 | py | Python | crawl_and_scrap/__main__.py | byung-u/GranXiSearch | 80a4a2cd19e39424013b7838aafbbbffd2a3574b | [
"MIT"
] | 1 | 2017-06-21T10:44:27.000Z | 2017-06-21T10:44:27.000Z | crawl_and_scrap/__main__.py | byung-u/GranXiSearch | 80a4a2cd19e39424013b7838aafbbbffd2a3574b | [
"MIT"
] | 5 | 2017-02-05T15:20:32.000Z | 2017-03-11T14:09:49.000Z | crawl_and_scrap/__main__.py | byung-u/FindTheTreasure | 80a4a2cd19e39424013b7838aafbbbffd2a3574b | [
"MIT"
] | null | null | null | """crwal_and_scrap trying to gathering news with web scrawl"""
from crwal_and_scrap.main import main
main()
| 18.333333 | 62 | 0.781818 |
aa38f5ac2a7fc58b2bcf11437fbfffc67543b98c | 1,525 | py | Python | output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
__NAMESPACE__ = "a"
| 23.828125 | 40 | 0.260984 |
aa3a75a5b6e67e64763fd2f9004162b6d0e34789 | 1,505 | py | Python | grape_data.py | Dechorgnat/wine_app | e037bb71c92cbfa770f3a167b93eea898fbd7948 | [
"MIT"
] | null | null | null | grape_data.py | Dechorgnat/wine_app | e037bb71c92cbfa770f3a167b93eea898fbd7948 | [
"MIT"
] | 1 | 2019-05-02T06:57:54.000Z | 2019-05-02T11:59:23.000Z | grape_data.py | Dechorgnat/wine_app | e037bb71c92cbfa770f3a167b93eea898fbd7948 | [
"MIT"
] | 1 | 2019-04-30T21:19:34.000Z | 2019-04-30T21:19:34.000Z | import pprint
from app.models import Cepage
data = []
counter = 0
with open('static_data.tsv', 'r') as file:
for line in file:
if counter == 0:
headers = line.split('\t')
print(len(headers))
else:
print(len(line.split('\t')))
data.append(dict(zip(head... | 29.509804 | 94 | 0.530897 |
aa3b0940d3759c524f76718360bd7b3fac996f6c | 431 | py | Python | docs/build/docutils/test/functional/tests/math_output_html.py | mjtamlyn/django-braces | 8adc9bc4f5139e3d032d4e38657bf86413388b78 | [
"BSD-3-Clause"
] | 1 | 2015-03-22T16:49:07.000Z | 2015-03-22T16:49:07.000Z | docs/build/docutils/test/functional/tests/math_output_html.py | mjtamlyn/django-braces | 8adc9bc4f5139e3d032d4e38657bf86413388b78 | [
"BSD-3-Clause"
] | null | null | null | docs/build/docutils/test/functional/tests/math_output_html.py | mjtamlyn/django-braces | 8adc9bc4f5139e3d032d4e38657bf86413388b78 | [
"BSD-3-Clause"
] | null | null | null | # Source and destination file names.
test_source = "data/math.txt"
test_destination = "math_output_html.html"
# Keyword parameters passed to publish_file.
reader_name = "standalone"
parser_name = "rst"
writer_name = "html"
# Extra setting
settings_overrides['math_output'] = 'HTML'
settings_overrides['stylesheet_path... | 25.352941 | 51 | 0.740139 |
aa3c53fd6d46ee624b7f8501fe8550742fc44be3 | 1,083 | py | Python | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2019-11-25T21:19:03.000Z | 2019-11-25T21:19:03.000Z | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2018-03-14T04:26:54.000Z | 2018-03-14T04:26:54.000Z | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2021-09-10T21:24:43.000Z | 2021-09-10T21:24:43.000Z |
'''
Panel object contains
up to one image in the background,
and any number of catalogs plotted.
'''
import astroquery.skyview
# define the images that accessible to skyview
twomass = ['2MASS-J', '2MASS-H', '2MASS-K']
ukidss = ['UKIDSS-Y', 'UKIDSS-J', 'UKIDSS-H', 'UKIDSS-K']
wise = ['WISE 3.4', 'WISE 4.6', 'WISE 12... | 22.102041 | 71 | 0.581717 |
aa3eab439fa860bc36dd604b78e20a3475abf660 | 2,437 | py | Python | lib/wqmc_to_newick_converter.py | pythonLoader/QT-GILD | 9134ca410d14c554543cc444d4d18f9515e44423 | [
"Apache-2.0"
] | null | null | null | lib/wqmc_to_newick_converter.py | pythonLoader/QT-GILD | 9134ca410d14c554543cc444d4d18f9515e44423 | [
"Apache-2.0"
] | 1 | 2021-12-09T09:22:09.000Z | 2021-12-09T09:22:09.000Z | lib/wqmc_to_newick_converter.py | pythonLoader/QT-GILD | 9134ca410d14c554543cc444d4d18f9515e44423 | [
"Apache-2.0"
] | null | null | null |
import os,sys
import time
if(len(sys.argv) < 3):
print("Format -> handle.py <input_file> <base_directory>")
exit()
input_file_name = sys.argv[1]
base_direc = sys.argv[2]
# with open(input_file_name, "r") as input_file:
# data = input_file.read()
input_ = open(input_file_name, "r")
newick_format=""
# lines=data.s... | 26.48913 | 93 | 0.601559 |
aa3f27f9eadc8df2dacbc14d927b6d3675997de3 | 2,849 | py | Python | plugin/rasa.py | mayflower/err-rasa | a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e | [
"Apache-2.0"
] | 1 | 2018-08-04T17:32:49.000Z | 2018-08-04T17:32:49.000Z | plugin/rasa.py | mayflower/err-rasa | a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e | [
"Apache-2.0"
] | 4 | 2019-12-26T16:41:50.000Z | 2020-03-24T15:43:45.000Z | plugin/rasa.py | mayflower/err-rasa | a3fa9c02c9434dd716caa72bd7a91f36ce0d8a2e | [
"Apache-2.0"
] | 2 | 2019-05-17T20:15:01.000Z | 2019-08-08T03:08:25.000Z | from rasa_core.interpreter import RasaNLUInterpreter
from rasa_core.agent import Agent
from rasa_core.interpreter import RegexInterpreter
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.policies.memoization import MemoizationPolicy
import json
import config
from errbot import BotPlugin, botcm... | 41.289855 | 83 | 0.636715 |
aa400985ee38a6b0cabe3da8dcfdcdcd42b9662d | 2,943 | py | Python | pyboretum/tree/list_tree.py | picwell/pyboretum | dd2af812ea2156ddec57aa252c79333f3bd81b0d | [
"MIT"
] | 1 | 2019-04-05T01:57:12.000Z | 2019-04-05T01:57:12.000Z | pyboretum/tree/list_tree.py | picwell/pyboretum | dd2af812ea2156ddec57aa252c79333f3bd81b0d | [
"MIT"
] | null | null | null | pyboretum/tree/list_tree.py | picwell/pyboretum | dd2af812ea2156ddec57aa252c79333f3bd81b0d | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import math
from .base import (
Tree,
TreeIterator,
)
def _get_depth(node_index):
"""
The indices in depth d is
(# of nodes up to depths d - 1) <= indices <= (# of nodes up to depth d) - 1
where
(# of nodes up to depth d) = 2^(d + 1) - 1
... | 28.298077 | 92 | 0.650357 |
aa423bbb57ccb85157fec0324522a113dca2abda | 501 | py | Python | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | null | null | null | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | 1 | 2017-01-12T18:31:00.000Z | 2017-01-12T18:31:00.000Z | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | null | null | null | import csv
import json
from collections import defaultdict
f = open('DOOSTROOM_new.csv', 'rU')
h = defaultdict(lambda: defaultdict(lambda: defaultdict(int)))
for line in f:
line_list = line.split(";")
h[line_list[7]]["oorsprong"][line_list[3]] += int(line_list[12])
h[line_list[7]]["profiel"][line_list[6]] +=... | 22.772727 | 65 | 0.670659 |
aa45f0ddc8356bc41cfa28538ab685525dfeff79 | 2,138 | py | Python | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | 2 | 2020-12-07T05:18:56.000Z | 2021-04-03T08:13:58.000Z | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | null | null | null | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | null | null | null | import boto3
from botocore.vendored import requests
import json
from uuid import uuid4
| 34.483871 | 112 | 0.673994 |
aa46d1dd10569615cec8459fd895776c5d59f9d9 | 6,459 | py | Python | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | """Main module."""
import os
import sys
import time
from datetime import datetime
import pandas as pd
import ipapi
import sqlalchemy as sqla
try:
DATA_DATE = os.environ['DATA_DATE']
print('Using data from {}'.format(DATA_DATE))
except:
print('Envvar DATA_DATE not set.')
sys.exit(1)
try:
POSTGR... | 29.226244 | 94 | 0.62471 |
aa471620e45f82f8795929b2bd7008f06f5d5d0e | 653 | py | Python | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-03 13:23
from django.db import migrations, models
| 27.208333 | 93 | 0.614089 |
aa479376b304ad8b20c1dba4d6101b903b9d8d20 | 9,436 | py | Python | load_data.py | rlatjcj/Naver-AI-Vision | 059e60218cef1f7c37b4d546b02e6024789e9716 | [
"Unlicense"
] | null | null | null | load_data.py | rlatjcj/Naver-AI-Vision | 059e60218cef1f7c37b4d546b02e6024789e9716 | [
"Unlicense"
] | null | null | null | load_data.py | rlatjcj/Naver-AI-Vision | 059e60218cef1f7c37b4d546b02e6024789e9716 | [
"Unlicense"
] | null | null | null | # -*- coding: utf_8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import cv2
import pickle
import random
import numpy as np
# nsml test_data_loader
if __name__ == '__main__':
from get_regions import rmac_regions, get_size_vgg_feat_... | 41.568282 | 161 | 0.627914 |
aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8 | 639 | py | Python | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/aa479b29bfe32b3b0d5ad18d34ca8b1c4f74dff8api.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from tastypie.api import Api
from encuestas.api.user import UserResource
from encuestas.api.encuesta import EncuestaResource
from encuestas.api.grupo import GrupoResource
from encuestas.api.pregunta import PreguntaResource
from encuestas.api.opcion import OpcionResource
from encuestas.api.link import LinkResource
from ... | 33.631579 | 53 | 0.843505 |
aa47d21c6ff69f1572502674f4acbedbda768571 | 2,371 | py | Python | ex1/gerador.py | renzon/oo-inpe | 1b33939974f998badbeebd7bfe182070e77ef98f | [
"MIT"
] | null | null | null | ex1/gerador.py | renzon/oo-inpe | 1b33939974f998badbeebd7bfe182070e77ef98f | [
"MIT"
] | null | null | null | ex1/gerador.py | renzon/oo-inpe | 1b33939974f998badbeebd7bfe182070e77ef98f | [
"MIT"
] | null | null | null | from random import randint
from ex1.evento import Evento
| 27.569767 | 95 | 0.660059 |
aa4862c705ed37c155085f64db48e3e7e6b55b7d | 4,221 | py | Python | tests/api/v1/test_bucketlist_endpoint.py | Elbertbiggs360/buckelist-api | 1fd6a857c45aafa55b39d3c215b1e69e0b23c33b | [
"MIT"
] | null | null | null | tests/api/v1/test_bucketlist_endpoint.py | Elbertbiggs360/buckelist-api | 1fd6a857c45aafa55b39d3c215b1e69e0b23c33b | [
"MIT"
] | 18 | 2017-08-22T11:44:19.000Z | 2021-02-02T07:16:59.000Z | tests/api/v1/test_bucketlist_endpoint.py | Elbertbiggs360/buckelist-api | 1fd6a857c45aafa55b39d3c215b1e69e0b23c33b | [
"MIT"
] | null | null | null | import json
from tests.base_test import BaseCase
from app.models.bucketlist import Bucketlist
| 48.517241 | 110 | 0.615731 |
a4aaff7e2edd9e94de8ad787fca6f95714a7b0d5 | 6,256 | py | Python | lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | lib/SetAPI/readsalignment/ReadsAlignmentSetInterfaceV1.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | """
An interface for handling sets of ReadsAlignments.
"""
from pprint import pprint
from SetAPI.generic.SetInterfaceV1 import SetInterfaceV1
from SetAPI import util
| 42.849315 | 101 | 0.597666 |
a4acbea04ae0ec385db1ca11483d127f5bbc49c8 | 3,193 | py | Python | datacatalog/linkedstores/process/store.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | null | null | null | datacatalog/linkedstores/process/store.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 2 | 2019-07-25T15:39:04.000Z | 2019-10-21T15:31:46.000Z | datacatalog/linkedstores/process/store.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 1 | 2019-10-15T14:33:44.000Z | 2019-10-15T14:33:44.000Z | import collections
import inspect
import json
import jsonschema
import os
import sys
from pprint import pprint
from slugify import slugify
from ...dicthelpers import data_merge
from ..basestore import LinkedStore, linkages
from ..basestore import HeritableDocumentSchema, JSONSchemaCollection, formatChecker
from ..base... | 36.701149 | 103 | 0.665832 |
a4af9051ce0c393008d96458e2c2f3dce09ae68a | 3,514 | py | Python | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
import pytest
from snuba.clickhouse.columns import (
UUID,
AggregateFunction,
Array,
ColumnType,
Date,
DateTime,
Enum,
FixedString,
Float,
IPv4,
IPv6,
Nested,
ReadOnly,
)
from snuba.clickhouse.columns import SchemaModifiers as Modifier
from ... | 28.803279 | 87 | 0.584804 |
a4b1c460b6c065a467161df65796be109740e64e | 5,851 | py | Python | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:31:50.000Z | 2022-03-09T05:31:50.000Z | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | null | null | null | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | null | null | null | """Base Abstract Template class"""
from __future__ import annotations
import json
from abc import ABC
from collections import OrderedDict
from typing import Any, Dict, List
import numpy as np
import paddle
from paddle import nn
from paddlenlp.transformers.tokenizer_utils import PretrainedTokenizer
from paddle_prompt... | 33.626437 | 114 | 0.635105 |
a4b236a4945b4b773f1daf37ffb005ccfb83b552 | 2,538 | py | Python | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | 4 | 2018-09-03T03:09:21.000Z | 2022-03-15T12:57:07.000Z | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | null | null | null | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | 3 | 2017-04-24T07:29:23.000Z | 2020-08-13T07:13:06.000Z | #!/usr/bin/env python
"""
Test eulerian functions including the random walk
Author : Jingyu Guo
"""
import unittest
from de_novo_assembly.de_bruijn_graph import DeBruijnGraph
from Bio.SeqRecord import SeqRecord
from de_novo_assembly.eulerian import has_euler_path, has_euler_circuit, \
make_contig_from_path, eule... | 35.25 | 77 | 0.559102 |
a4b259e11338f6d5c17641cccb402a501cd51358 | 25,351 | py | Python | gameevents/tests/test_gameevents.py | danilovbarbosa/sg-gameevents | 839de019fb6026c5a9d3178d3109cb2948f19f09 | [
"Apache-2.0"
] | null | null | null | gameevents/tests/test_gameevents.py | danilovbarbosa/sg-gameevents | 839de019fb6026c5a9d3178d3109cb2948f19f09 | [
"Apache-2.0"
] | null | null | null | gameevents/tests/test_gameevents.py | danilovbarbosa/sg-gameevents | 839de019fb6026c5a9d3178d3109cb2948f19f09 | [
"Apache-2.0"
] | 1 | 2018-09-28T00:03:29.000Z | 2018-09-28T00:03:29.000Z |
import unittest
import time
import datetime
import json
import sys
#import base64
#from werkzeug.wrappers import Response
sys.path.append("..")
#from flask import current_app
#from werkzeug.datastructures import Headers
from gameevents_app import create_app
#Extensions
from gameevents_app.extensions import db, LO... | 42.535235 | 122 | 0.549051 |
a4b2c4045c07be3b84327e571cdbd1e25cc17fb5 | 7,810 | py | Python | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 46 | 2015-05-26T20:59:24.000Z | 2022-03-31T04:57:50.000Z | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 338 | 2015-05-15T20:33:35.000Z | 2022-03-31T21:43:43.000Z | regions/core/regions.py | dhomeier/regions | 5055128abda57c3b463f51ede0a6ac0ef5a0c698 | [
"BSD-3-Clause"
] | 49 | 2016-03-21T22:12:31.000Z | 2022-03-29T21:50:25.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module provides a Regions class.
"""
from .core import Region
from .registry import RegionsRegistry
__all__ = ['Regions']
__doctest_skip__ = ['Regions.read', 'Regions.write', 'Regions.parse',
'Regions.serialize']
def se... | 29.360902 | 71 | 0.554802 |
a4b494c20c5b44b90d242f37feb5161e7c33c729 | 9,254 | py | Python | main.py | rhaksar/control-percolation | d44d7e820eb49c9234cd3dc91383f63938ff67a8 | [
"MIT"
] | 1 | 2020-11-04T17:38:08.000Z | 2020-11-04T17:38:08.000Z | main.py | rhaksar/control-percolation | d44d7e820eb49c9234cd3dc91383f63938ff67a8 | [
"MIT"
] | null | null | null | main.py | rhaksar/control-percolation | d44d7e820eb49c9234cd3dc91383f63938ff67a8 | [
"MIT"
] | null | null | null | from collections import defaultdict
import itertools
import numpy as np
import pickle
import time
import warnings
from Analysis import binomial_pgf, BranchModel, StaticModel
from simulators.fires.UrbanForest import UrbanForest
from Policies import NCTfires, UBTfires, DWTfires, RHTfires, USTfires
from Utilities import ... | 41.3125 | 123 | 0.600173 |
a4b54184c984255e498a3de14e79351b3cf349d8 | 20,265 | py | Python | tests/functional/test_create.py | AgeOfLearning/uget-cli | ecaa54db9c9a6bd22f3ce2099b28828ea42cb853 | [
"MIT"
] | 1 | 2019-03-03T21:19:51.000Z | 2019-03-03T21:19:51.000Z | tests/functional/test_create.py | AgeOfLearning/uget-cli | ecaa54db9c9a6bd22f3ce2099b28828ea42cb853 | [
"MIT"
] | 3 | 2018-12-31T20:11:03.000Z | 2021-11-15T17:47:57.000Z | tests/functional/test_create.py | AgeOfLearning/uget-cli | ecaa54db9c9a6bd22f3ce2099b28828ea42cb853 | [
"MIT"
] | 2 | 2019-02-14T01:08:57.000Z | 2019-03-03T21:19:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Functional tests for `ugetcli` package - `create` command.
Tests functionality of the cli create command with various options.
"""
import os
import unittest
import json
from click.testing import CliRunner
from mock import MagicMock, patch
from ugetcli import cli
from... | 45.952381 | 105 | 0.68527 |
a4b57a11801845ae45bfa0a0f8490e4b89315ce3 | 1,647 | py | Python | hackerrank/calc_missing.py | capac/python-exercises | 0fa58401d160a702a8cfba3f406275f857e7a203 | [
"MIT"
] | null | null | null | hackerrank/calc_missing.py | capac/python-exercises | 0fa58401d160a702a8cfba3f406275f857e7a203 | [
"MIT"
] | null | null | null | hackerrank/calc_missing.py | capac/python-exercises | 0fa58401d160a702a8cfba3f406275f857e7a203 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import re
import pandas as pd
from numpy import interp
import os
from pathlib import Path
home = os.environ['HOME']
home_dir = Path(home)
work_dir = home_dir / 'Programming/Python/python-exercises/hackerrank'
# 12/14/2012 16:00:00 Missing_19
pattern = re.compile(r'(\d{1,2}/\d{1,2}/2012)\s+(16:... | 28.396552 | 94 | 0.64238 |
a4ba8f00534df85c91df0dc9eef6fe48f92deb79 | 3,777 | py | Python | qcloudsdkvod/ApplyUploadRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkvod/ApplyUploadRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkvod/ApplyUploadRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
| 29.053846 | 70 | 0.681758 |
a4bc05d694bb4b337955eefcda743bc5c3c76501 | 981 | py | Python | Merge Sorted Array.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Merge Sorted Array.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Merge Sorted Array.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | '''
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
The number of elements initialized in nums1 and nums2 are m and n respectively.
You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2.
Ex... | 25.153846 | 127 | 0.522936 |
a4bd94902475f23a476e7f0700e3dc819593d4d1 | 275 | py | Python | test.py | stepan20000/MITx-6-00-1 | 850981013ab00cf476b01fa93130a38aaaea5aea | [
"MIT"
] | null | null | null | test.py | stepan20000/MITx-6-00-1 | 850981013ab00cf476b01fa93130a38aaaea5aea | [
"MIT"
] | null | null | null | test.py | stepan20000/MITx-6-00-1 | 850981013ab00cf476b01fa93130a38aaaea5aea | [
"MIT"
] | null | null | null | import string
print(foo(1))
| 25 | 57 | 0.603636 |
a4be3796f527611e790afc6213becfff4d63182b | 1,936 | py | Python | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
| 35.2 | 70 | 0.571798 |
a4bf181a35293cbead4d6b8183631e557900dd73 | 1,271 | py | Python | sa/profiles/Generic/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Generic/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Generic/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Generic.get_inventory
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modul... | 31 | 71 | 0.487018 |
a4c11ca7582fc66a6f41cd73075b425763f4d114 | 2,514 | py | Python | pirates/uberdog/DistributedAvatarManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/uberdog/DistributedAvatarManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/uberdog/DistributedAvatarManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.uberdog.DistributedAvatarManager
from otp.uberdog.OtpAvatarManager import OtpAvatarManager
from otp.otpbase import OTPGlobals | 43.344828 | 228 | 0.648767 |
a4c132843d17f9507a14b314301300f42b750e05 | 240 | py | Python | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/roads/admin.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
django_admin.site.register(models.Road, RoadAdmin)
| 17.142857 | 57 | 0.720833 |
a4c29d9eb840f43da6d451a47b01364e9c6ce46c | 5,040 | py | Python | nicos_mlz/spodi/setups/special/monitor-html.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/spodi/setups/special/monitor-html.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/spodi/setups/special/monitor-html.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'setup for the status monitor'
group = 'special'
_expcolumn = Column(
Block('Experiment', [
BlockRow(
# Field(name='Proposal', key='exp/proposal', width=7),
# Field(name='Title', key='exp/title', width=20,
# istext=True, maxlen=20),
Field(name... | 23.551402 | 73 | 0.435317 |
a4c36212e0c38956baeca1b3cd655252498a5ef0 | 4,400 | bzl | Python | tools/tsec.bzl | brkgyln/angular | 18dc2a9be021909f58ee21754a6ee09cec1ac1f0 | [
"MIT"
] | null | null | null | tools/tsec.bzl | brkgyln/angular | 18dc2a9be021909f58ee21754a6ee09cec1ac1f0 | [
"MIT"
] | null | null | null | tools/tsec.bzl | brkgyln/angular | 18dc2a9be021909f58ee21754a6ee09cec1ac1f0 | [
"MIT"
] | null | null | null | """Bazel rules and macros for running tsec over a ng_module or ts_library."""
load("@npm//@bazel/typescript/internal:ts_config.bzl", "TsConfigInfo")
load("@build_bazel_rules_nodejs//:providers.bzl", "DeclarationInfo")
load("@npm//tsec:index.bzl", _tsec_test = "tsec_test")
TsecTsconfigInfo = provider(fields = ["src", ... | 32.835821 | 100 | 0.635455 |
a4c37699bb55af86cd094b707c4800bfc7f95014 | 805 | py | Python | simulation_scripts/Q2.py | szwieback/BayesianTripleCollocation | a288b2a9ac547fdae389714dbdae1e34789f197b | [
"ECL-2.0"
] | null | null | null | simulation_scripts/Q2.py | szwieback/BayesianTripleCollocation | a288b2a9ac547fdae389714dbdae1e34789f197b | [
"ECL-2.0"
] | null | null | null | simulation_scripts/Q2.py | szwieback/BayesianTripleCollocation | a288b2a9ac547fdae389714dbdae1e34789f197b | [
"ECL-2.0"
] | 2 | 2018-09-11T18:14:32.000Z | 2021-09-12T07:45:53.000Z | '''
Created on Jun 8, 2017
@author: zwieback
'''
import numpy as np
import os
from simulation_internal import simulation_internal
from simulation_paths import path
if __name__=='__main__':
Q2_simulation() | 27.758621 | 119 | 0.613665 |
a4c5208b29478e543aa3e2775cb3f49127a4fde6 | 1,088 | py | Python | app.py | giao-cloude/card | 8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6 | [
"MIT"
] | null | null | null | app.py | giao-cloude/card | 8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6 | [
"MIT"
] | null | null | null | app.py | giao-cloude/card | 8ddc7b0cacd412a1cc15cb1c3d020463c79a33b6 | [
"MIT"
] | null | null | null | #coding:utf-8
import tensorflow as tf
import backward
import forward
import PreProcess as PP
| 26.536585 | 86 | 0.726103 |
a4c5246b1bb457ccf2adc163a51a115f0a845803 | 56 | py | Python | utils/test_fm.py | dilum1995/DAugmentor | 6cc86dccf826415a88b8226265e16ae96b5cc05b | [
"MIT"
] | 1 | 2020-08-02T13:06:03.000Z | 2020-08-02T13:06:03.000Z | utils/test_fm.py | dilum1995/DAugmentor | 6cc86dccf826415a88b8226265e16ae96b5cc05b | [
"MIT"
] | null | null | null | utils/test_fm.py | dilum1995/DAugmentor | 6cc86dccf826415a88b8226265e16ae96b5cc05b | [
"MIT"
] | null | null | null | from utils import constants as const
print(const.PATH)
| 14 | 36 | 0.803571 |
a4c65724407b507d3c3575879bb612a5d9d25dea | 20,619 | py | Python | jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py | VT-ASIM-LAB/autoware.ai | 211dff3bee2d2782cb10444272c5d98d1f30d33a | [
"Apache-2.0"
] | null | null | null | jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py | VT-ASIM-LAB/autoware.ai | 211dff3bee2d2782cb10444272c5d98d1f30d33a | [
"Apache-2.0"
] | null | null | null | jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py | VT-ASIM-LAB/autoware.ai | 211dff3bee2d2782cb10444272c5d98d1f30d33a | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import itertools, pkg_resources, sys
from distutils.version import LooseVersion
if LooseVersion(pkg_resources.get_distribution("chainer").version) >= LooseVersion('7.0.0') and \
sys.version_info.major == 2:
print('''Please install chainer <= 7.0.0:
sudo pip in... | 49.564904 | 132 | 0.611135 |
a4c977d5b3a6032234335d5aeffe8536769352e7 | 4,073 | py | Python | wxtbx/phil_controls/text_base.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-03-18T12:31:57.000Z | 2022-03-14T06:27:06.000Z | wxtbx/phil_controls/text_base.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | wxtbx/phil_controls/text_base.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-02-04T15:39:06.000Z | 2020-02-04T15:39:06.000Z |
from __future__ import absolute_import, division, print_function
from wxtbx import phil_controls
import wxtbx
from libtbx.utils import Abort, to_unicode, to_str
from libtbx import Auto
import wx
import sys
| 29.729927 | 77 | 0.667076 |
a4c983cf47d6c5bcf243e3a9a793a1b99475e9b4 | 20,235 | py | Python | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 34 | 2021-10-30T16:48:28.000Z | 2022-03-25T03:22:12.000Z | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 9 | 2021-11-19T04:25:29.000Z | 2022-03-09T22:35:46.000Z | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 20 | 2021-11-05T21:14:59.000Z | 2022-03-30T21:15:40.000Z | import base64
import datetime
import io
import json
import traceback
import aiohttp
import discord
import pytimeparse
from data.services.guild_service import guild_service
from discord.commands import Option, slash_command, message_command, user_command
from discord.ext import commands
from discord.utils import forma... | 42.510504 | 247 | 0.629009 |
a4c9be815d012e1c1acce15131efcf8844daf07b | 14,699 | py | Python | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | """This module provides various functions used to read/write and generate the data structures used for Path Learn"""
import networkx as nx
import random as rnd
import numpy as np
import pandas as pd
import os
def find_single_paths(G, node, lim, paths_lim=float('inf')):
"""
:param G: A NetworkX graph.
:pa... | 32.023965 | 165 | 0.572148 |