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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b202431420e6ee7ee27a4ade6e7bbf3a50a0b94 | 7,741 | py | Python | commander/thirdparty/covertutils/shells/multi/shell.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | 1 | 2020-07-26T01:08:30.000Z | 2020-07-26T01:08:30.000Z | commander/thirdparty/covertutils/shells/multi/shell.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | null | null | null | commander/thirdparty/covertutils/shells/multi/shell.py | how2how/ToyHome | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | [
"Apache-2.0"
] | null | null | null | import cmd
import sys
import argparse
import threading
from covertutils.handlers.multi import MultiHandler
#
# The idea is to pass a list of handlers to start with, and create a MultiHandler object from this list.
#
# The initial arguments for this should be a list of Shells. From shells, the handlers will be retrieve... | 34.101322 | 172 | 0.677949 |
2b219b5d2c6acf165fc3fb183df871cbdfc2a9e9 | 3,068 | py | Python | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | Aprior.py | zhangmingming-chb/Aprior | 69bea22f34d20bdc9984faf1fa021fac6e60ef38 | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
from typing import List
from itertools import chain
tran = [
['1','2','3'],
['1','2','4'],
['1','3','4'],
['1','2','3','5'],
['1','3','5'],
['2','4','5'],
['1','2','3','4']
]
# tran = [
# ['apple','banana','orange'],
# ['apple','banana','peer'],
# ['apple','... | 29.5 | 81 | 0.496415 |
2b23c62c9bf29b77cf256e932af29e6d9da15c7b | 686 | py | Python | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/models/base_v2.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | import tensorflow as tf
from dlex import Params
from dlex.datasets.tf import Dataset
| 25.407407 | 58 | 0.603499 |
2b240ebab74f79c8c466f67dcad71acc3ab5e267 | 67 | py | Python | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 504 | 2020-08-07T05:02:57.000Z | 2022-03-31T14:32:46.000Z | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 560 | 2020-08-07T01:16:06.000Z | 2022-03-30T00:40:56.000Z | slack_bolt/context/respond/__init__.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 150 | 2020-08-07T09:41:14.000Z | 2022-03-30T04:54:51.000Z | # Don't add async module imports here
from .respond import Respond
| 22.333333 | 37 | 0.791045 |
2b2476addfb055d48f5d5ac598a8041fdc9fee29 | 1,259 | py | Python | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | 2 | 2017-12-15T20:50:58.000Z | 2020-10-21T15:48:48.000Z | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | 1 | 2017-10-26T09:28:30.000Z | 2017-10-26T10:33:41.000Z | pi/commands/token/reset.py | pan-net-security/pi-bundle | 1819caede77357331465216e0355eb2499d09cb4 | [
"MIT"
] | null | null | null | from pi.commands.token.base import TokenBase
import json
import re
| 26.787234 | 85 | 0.599682 |
2b25709c41a264855b79fbdf3a37d395af6fdc3b | 4,500 | py | Python | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | canaries/canaries.py | wyatt-howe/canaries | 0bd0783e388dcee21fd3addd09a9299940627536 | [
"MIT"
] | null | null | null | """Library for loading dynamic library files.
Python library for choosing and loading dynamic library
files compatible with the operating environment.
"""
import doctest
import sys
import os.path
import platform
from ctypes import cdll, create_string_buffer
from multiprocessing import Pool
def _canary(self, syst... | 29.220779 | 79 | 0.543778 |
2b25b21c76b9e5d09cd75db1cb54b32efea42278 | 906 | py | Python | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 815 | 2015-01-04T03:02:03.000Z | 2022-03-18T21:48:48.000Z | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 213 | 2015-01-06T14:15:32.000Z | 2022-01-28T17:35:45.000Z | examples/wsgi.py | eliziario/django-websocket-redis | e36449a622230dfc7af090471e0ae59b51526767 | [
"MIT"
] | 253 | 2015-01-02T16:38:15.000Z | 2022-03-30T20:43:58.000Z | # Django with Websocket for Redis under a single uWSGI server
# (for sites with low traffic)
#
# uwsgi --virtualenv /path/to/virtualenv --http :9090 --gevent 100 --http-websockets --module wsgi
#
# See: http://django-websocket-redis.readthedocs.io/en/latest/running.html#django-with-websockets-for-redis-as-a-stand-alo... | 36.24 | 137 | 0.788079 |
2b25d82fa6f0f77480a8c0271786df4755236b12 | 136 | py | Python | src/py/twitter_credentials.py | franciscomoura/social-media-analysis | e277ad7b81952ec5d01c0801133e226f430daa6e | [
"Apache-2.0"
] | null | null | null | src/py/twitter_credentials.py | franciscomoura/social-media-analysis | e277ad7b81952ec5d01c0801133e226f430daa6e | [
"Apache-2.0"
] | null | null | null | src/py/twitter_credentials.py | franciscomoura/social-media-analysis | e277ad7b81952ec5d01c0801133e226f430daa6e | [
"Apache-2.0"
] | null | null | null | consumer_key = '<your key>'
consumer_secret = '<your secret>'
access_token = '<your token>'
access_token_secret = '<your token secret>'
| 27.2 | 43 | 0.727941 |
2b275e20cb5d8a0781ea95c53cddfe783077cf6e | 1,820 | py | Python | pmaf/pipe/agents/miners/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T06:24:17.000Z | 2021-07-02T06:24:17.000Z | pmaf/pipe/agents/miners/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T12:02:46.000Z | 2021-06-28T12:02:46.000Z | pmaf/pipe/agents/miners/_metakit.py | mmtechslv/PhyloMAF | bab43dd4a4d2812951b1fdf4f1abb83edb79ea88 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
| 14.108527 | 62 | 0.392308 |
2b27627202fcf16a1bd8bdf2adc4734f515109a8 | 45 | py | Python | 01_hello/hello02_comment.py | rebeckaflynn/tiny_python_projects | 692f24dd00769438e7aaa1c45223b701b20a1192 | [
"MIT"
] | null | null | null | 01_hello/hello02_comment.py | rebeckaflynn/tiny_python_projects | 692f24dd00769438e7aaa1c45223b701b20a1192 | [
"MIT"
] | null | null | null | 01_hello/hello02_comment.py | rebeckaflynn/tiny_python_projects | 692f24dd00769438e7aaa1c45223b701b20a1192 | [
"MIT"
] | null | null | null | # Purpose: Say hello
print('Hello, World!')
| 11.25 | 22 | 0.666667 |
2b28b58e2579cbe5e2ab26c5528edcabd5571c91 | 1,074 | py | Python | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 3 | 2020-12-02T09:44:41.000Z | 2021-04-17T13:05:30.000Z | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 14 | 2020-01-27T09:49:33.000Z | 2021-06-14T08:04:10.000Z | docs/end-to-end/library/GeocontribOnCoordinatesLibrary.py | hcharp/geocontrib | 87ee241c737aae23eff358d2550bddba714f9c7b | [
"Apache-2.0"
] | 9 | 2020-01-16T12:37:39.000Z | 2021-04-22T09:57:59.000Z | # Copyright (c) 2017-2021 Neogeo-Technologies.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 42.96 | 113 | 0.76257 |
2b2938cdd0a73902522794999f575e5ff3fb8b89 | 3,341 | py | Python | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 1 | 2021-06-17T13:02:45.000Z | 2021-06-17T13:02:45.000Z | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 1 | 2022-01-18T12:17:29.000Z | 2022-01-18T12:17:29.000Z | torch/quantization/fx/qconfig_utils.py | deltabravozulu/pytorch | c6eef589971e45bbedacc7f65533d1b8f80a6895 | [
"Intel"
] | 2 | 2021-07-02T10:18:21.000Z | 2021-08-18T10:10:28.000Z | import torch
from collections import OrderedDict
from typing import Union, Callable, Any, Dict
import re
from .utils import _parent_name
QConfigAny = Union[torch.quantization.QConfig,
torch.quantization.QConfigDynamic, None]
def get_flattened_qconfig_dict(qconfig_dict):
""" flatten the global,... | 33.41 | 81 | 0.701287 |
2b2a9c9a4b580fa5f2d5bbe38b2d93f37f8e19c1 | 3,062 | py | Python | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | researchmap/wrapper.py | RTa-technology/researchmap.py | 6aa427e1564644b20ba2001dfecf63457ef40463 | [
"MIT"
] | null | null | null | from typing import List
import urllib.parse
from .adapter import Adapter
__all__ = ['Wrapper']
| 26.17094 | 95 | 0.612998 |
2b2dc91a67e56678c390a41ec58ff7af3ed3237a | 2,888 | py | Python | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | demo/MagicMind/python/calibrator_custom_data.py | huismiling/YOLOX | d9d1c1e8c6362c71703d34e25765a2dfe8618e4a | [
"Apache-2.0"
] | null | null | null | from typing import List
import cv2
import numpy
import magicmind.python.runtime as mm
from magicmind.python.common.types import get_numpy_dtype_by_datatype
import os
import sys
| 35.219512 | 132 | 0.655125 |
2b2eb592acc995c4132c3288aeaefe49afa5e490 | 66,478 | py | Python | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | probreg/main.py | albertvisser/probreg | 5f685616221e3261afe0d8ae8506cad9a719fa82 | [
"MIT"
] | null | null | null | #! usr/bin/env python
"""Actie (was: problemen) Registratie, GUI toolkit onafhankelijke code
"""
import os
# import sys
import pathlib
import functools
import probreg.gui as gui
import probreg.shared as shared # import DataError, et_projnames
import probreg.dml_django as dmls
import probreg.dml_xml as dmlx
LIN = True... | 45.346521 | 101 | 0.55295 |
2b2fdb3f5840708a53911e04a2280ed67c225b83 | 6,055 | py | Python | back-end/python-scripts/add_vm.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | back-end/python-scripts/add_vm.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | back-end/python-scripts/add_vm.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
import sys, os
import virtualbox
from os.path import expanduser
from pprint import pprint
from subprocess import call
#create virtual machine from the repository
# arg1 = vmType
# arg2 = vmName
# return 1|0 success or failure
# list of all VMs
gateway = '155.42.97.220'
#gateway = ... | 34.798851 | 193 | 0.605945 |
2b30462f4e15d1e7277002cce72ced8525343755 | 982 | py | Python | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 25 | 2020-05-01T16:34:11.000Z | 2022-02-19T09:39:20.000Z | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 24 | 2020-12-07T21:07:11.000Z | 2022-03-15T18:18:00.000Z | dailyblink/media.py | ptrstn/dailyblink | 16fe482552b101d83412bfbb662b8754682ba7d2 | [
"MIT"
] | 6 | 2021-03-05T09:19:37.000Z | 2022-01-01T08:25:14.000Z | import pathlib
from mutagen.mp4 import MP4
| 20.458333 | 64 | 0.647658 |
2b307d66d8ef01ec6b560b96a1fec0c928cc9a2d | 22,878 | py | Python | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | src/server/server.py | HanseMerkur/cassh | 947023ad7971a0922d56aaaee5afcdf9294334e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Sign a user's SSH public key.
"""
from argparse import ArgumentParser
from json import dumps
from os import remove
from re import compile as re_compile, IGNORECASE
from tempfile import NamedTemporaryFile
from urllib.parse import unquote_plus
# Third party library imports
from configparser im... | 33.447368 | 110 | 0.563992 |
2b31dd8ff5a66ac8bf0442f51e45b1fcb61fee3b | 23,469 | py | Python | src/test/test_data.py | opploans/cbc-syslog | 72a203b1dbe6ddd97f02dc87f36631d758564022 | [
"MIT"
] | 14 | 2020-04-28T12:52:50.000Z | 2021-08-25T00:36:51.000Z | src/test/test_data.py | opploans/cbc-syslog | 72a203b1dbe6ddd97f02dc87f36631d758564022 | [
"MIT"
] | 21 | 2016-10-24T20:16:39.000Z | 2020-02-11T21:30:50.000Z | src/test/test_data.py | opploans/cbc-syslog | 72a203b1dbe6ddd97f02dc87f36631d758564022 | [
"MIT"
] | 15 | 2016-12-19T20:39:24.000Z | 2020-01-02T16:26:34.000Z | # -*- coding: utf-8 -*-
null = ""
true = "true"
false = "false"
raw_notifications = {
"notifications": [{
"threatInfo": {
"incidentId": "Z7NG6",
"score": 7,
"summary": "A known virus (Sality: Keylogger, Password or Data stealer, Backdoor) was detected running.",
... | 116.761194 | 6,890 | 0.711023 |
2b32885657370cb4b8b7d916d4f131943c631e50 | 421 | py | Python | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/fexr.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | import requests
import json
| 21.05 | 48 | 0.638955 |
2b32a48c0617127fad513107b6b55bc15c45960a | 15,313 | py | Python | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | .ipynb_checkpoints/scrape_mars-checkpoint.py | re-ga-na/webscrapingchallenge | 04ade4080e1f317768ce6fff4dfadd5c7e23e387 | [
"ADSL"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import requests\n",
"\n",
"from splinter import Browser\n",
"from selenium import webdriver\n",
"from bs4 import BeautifulSoup"
]
},
{
"cel... | 26.724258 | 606 | 0.46614 |
2b349e7b7c259815a84ae590fa15ba7d1700f32b | 2,339 | py | Python | app/api/inventory_routes.py | jon-wehner/MyPantry | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 9 | 2021-03-02T16:52:40.000Z | 2021-03-03T16:51:46.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | 50 | 2021-03-12T16:04:49.000Z | 2022-03-17T20:47:00.000Z | app/api/inventory_routes.py | jon-wehner/PantryStock | 01f833b99d4318b4676abd542272dce61d0b8c61 | [
"MIT"
] | null | null | null | from flask import Blueprint, request
from app.models import UserItem, User, db
from app.forms import InventoryItemForm
from flask_login import login_required
from app.utils import validation_errors_to_error_messages
inventory_routes = Blueprint('inventory', __name__)
# Get all of a user's Items
# Add an item to a ... | 33.898551 | 75 | 0.655408 |
2b359813930ee57144554a0a7d67900329a97efb | 1,208 | py | Python | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 2 | 2018-02-28T19:03:28.000Z | 2021-09-30T13:40:23.000Z | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 6 | 2020-02-11T21:53:58.000Z | 2022-02-10T07:57:58.000Z | faeAuditor/audits/urls.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:05:20.000Z | 2019-12-05T06:05:20.000Z | """
Copyright 2014-2018 University of Illinois
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 writ... | 32.648649 | 94 | 0.701159 |
2b37b39bc7440eb3efd9fb78397787d52e20da21 | 760 | py | Python | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T00:32:44.000Z | 2022-01-09T00:32:44.000Z | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | src/doremi/__init__.py | jpivarski/doremi | 0f8fb1fc8e9664b2e4b61fffc5382e41d8d624d6 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/jpivarski/doremi/blob/main/LICENSE
from ._version import version as __version__
from typing import Optional
import doremi.parsing
import doremi.abstract
import doremi.concrete
__all__ = ("__version__", "compose")
| 26.206897 | 81 | 0.743421 |
2b39d94acac82237469a41ceac176d9288d8268a | 522 | py | Python | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null | app/api/utility.py | yeniky/B_back | 2b45b4dc77bc191cb250a9868eb9347d9072b905 | [
"Apache-2.0"
] | null | null | null |
import flask_excel as excel
from app.api import bp
from flask import request
from app.utils.user_auth import token_auth
from app.models import Alert, InactivityAlert
from sqlalchemy.orm import with_polymorphic
from dateutil import parser
| 23.727273 | 51 | 0.758621 |
2b3b7c8eae4ae649f3b1f6cafa46b3e7c9a4ac45 | 20,937 | py | Python | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 28 | 2016-02-26T00:54:16.000Z | 2022-02-24T12:21:15.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T21:49:09.000Z | 2016-07-12T22:11:39.000Z | lophi-net-services/lophinet/proxydhcpd/dhcpd.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 9 | 2016-06-08T14:42:28.000Z | 2021-11-11T03:51:34.000Z | """
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
bu... | 47.910755 | 169 | 0.580742 |
2b3e16bac852a65f995976462d16cdfaa6ccae29 | 36,434 | py | Python | networks_utils.py | jviquerat/U-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | null | null | null | networks_utils.py | jviquerat/U-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | 1 | 2021-11-18T09:29:19.000Z | 2021-12-14T08:33:44.000Z | networks_utils.py | jviquerat/u-net_laminar_flow | 6a6029f8bd4d036f8675df8dd74e2d13476aa069 | [
"MIT"
] | 1 | 2021-07-20T08:23:27.000Z | 2021-07-20T08:23:27.000Z | # Import stuff
import sys
import math
import keras
# Additional imports from keras
from keras import regularizers
from keras import optimizers
from keras.models import Model
from keras.layers import Input
from keras.layers import conca... | 41.261608 | 124 | 0.625542 |
2b3e41b019fe6b2d3864d763d679862e197cea39 | 7,447 | py | Python | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | Lib/glyphsLib/interpolation.py | anthrotype/glyphsLib | ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.293839 | 79 | 0.674903 |
2b3fd90b08b658e73198cb9b547400cb33e29f70 | 10,934 | py | Python | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 2 | 2019-09-05T13:26:55.000Z | 2019-11-27T17:23:13.000Z | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | null | null | null | code/analysis/plot_group_statistics.py | INM-6/reproducing-polychronization | fbce7040450a92996ef64bb081558ea02f6a72da | [
"MIT"
] | 3 | 2018-09-20T13:03:05.000Z | 2021-12-09T09:31:07.000Z | import argparse
import numpy as np
import os
import sys
import matplotlib
matplotlib.use('Agg')
import json
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import mpl_toolkits.axes_grid.inset_locator
import helper as hf
import plot_helper as phf
import seaborn as sns
import scipy.stats as stat
fr... | 36.691275 | 247 | 0.587525 |
2b3fdcb67a067b54f957d1bd2d0f7f8ff8e0d97e | 4,306 | py | Python | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | 1 | 2020-08-11T15:40:02.000Z | 2020-08-11T15:40:02.000Z | api-back/extract_resume.py | Bitseat/demo | e5a12d975ef8162e89eaa3e67aaa0967e4c24d75 | [
"MIT"
] | null | null | null | # importing all required libraries
import os
import traceback
# importing libraries for computer vision
import numpy as np
import cv2
import imutils
from imutils import contours
from imutils.perspective import four_point_transform
from skimage.filters import threshold_local
# importing libraries to read text from im... | 30.323944 | 114 | 0.594055 |
2b421ace835f65630586818249ab3197ef13ff58 | 1,991 | py | Python | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | week12_telegram_bots/Peter Sergeev Homework/mysubstratedb.py | pserg1/msai-python | 57908933d0af0614a9c7f5c6dcdcc1b46abb2184 | [
"MIT"
] | null | null | null | import sqlalchemy
import pyodbc
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, DateTime, Float
from sqlalchemy.sql import func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_utils import database_exists, create_database
from sqlalchemy.orm import sessionmak... | 28.855072 | 115 | 0.705173 |
2b42e860d0ae1b98081e8bfa9a5444fe0146b12b | 943 | py | Python | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman/hangman_art.py | EdwinZurawik/hangman | 6b865e40bab2a35b71731b3f9bee254ac1d992be | [
"MIT"
] | null | null | null | hangman_title = r"""
____ ____ ____ ____ ____ ____ ____
||H ||||a ||||n ||||g ||||m ||||a ||||n ||
||__||||__||||__||||__||||__||||__||||__||
|/__\||/__\||/__\||/__\||/__\||/__\||/__\| """
hangman_stages = [r"""
____
|/ |
|
|
|
|
==... | 16.839286 | 52 | 0.139979 |
2b43532c39ab8e6417a57dfd057de5791661d19d | 7,572 | py | Python | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | lldb_commands/generate_new_script.py | lanza/ds-lldb | fdab1addb05c571460ad31b3256688a223a5022a | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 Derek Selander
# 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,... | 35.716981 | 155 | 0.644216 |
2b446474ab736a03796add587552ea1e155e2ffd | 888 | py | Python | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | 1 | 2017-01-19T02:02:15.000Z | 2017-01-19T02:38:58.000Z | app/forms.py | sjsafranek/pomegranate | 8965a7cc2fe8b6981f3961fa8cd6e8b1bdff8ccf | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
from django import forms
from django.contrib.auth import authenticate
#from django.contrib.auth import login
class LoginForm(forms.Form):
username = forms.CharField(max_length=255, required=True)
password = forms.CharField(widget=forms.PasswordInput, required=True)
def clean(self):
... | 32.888889 | 91 | 0.699324 |
2b452016fd5d89254447c86f05dc5c9a851e0645 | 7,251 | py | Python | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | figuras/Pycharm_Papoulis_Probability_Report/buffon_needle_long.py | bor9/estudiando_el_papoulis | ef40ac18d7aece3415cd9ce72d1f9684c762d6df | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import math
from matplotlib import patches
from matplotlib import transforms
import matplotlib.colors as colors
from matplotlib import cm
from matplotlib import rc
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=False)
rc('mathtext', fontset='cm... | 35.028986 | 119 | 0.655358 |
2b46780622ca167e59a3a3ad6cc2146cc6ba62f4 | 4,309 | py | Python | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | 3 | 2020-11-29T06:36:23.000Z | 2021-11-28T13:10:46.000Z | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | app.py | chrisvoncsefalvay/dash-sir-interactive-model | 97d854774fb5395452127b5627efab39bddcdbdf | [
"BSD-3-Clause"
] | null | null | null | import os
import flask
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objects as go
import dash_defer_js_import as dji
import numpy as np
from components import solve
external_sty... | 33.403101 | 159 | 0.609654 |
2b489fbcfce2c4d5dd4a28fb019c7e2eb148afb0 | 18,525 | py | Python | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-03-12T00:40:13.000Z | 2021-03-12T00:40:13.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | 1 | 2021-04-02T04:40:38.000Z | 2021-04-02T04:42:20.000Z | autoesk_main/anual_defis.py | SilasPDJ/autoesk_project_v2 | 249730307ad350a1aaacfd5abe08b0781253854e | [
"MIT"
] | null | null | null | from imports import WDShorcuts
from imports import press_key_b4, activate_window, tk_msg
from imports import TimeoutException, ElementClickInterceptedException, NoSuchElementException, NoAlertPresentException
from imports import ActionChains
from imports import Keys, By, WebDriverWait, expected_conditions
from imports ... | 40.097403 | 134 | 0.577436 |
2b4920cd2300bafcb005d22098eb6361aa94da89 | 15,125 | py | Python | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | 2 | 2021-04-09T20:38:57.000Z | 2022-01-03T09:19:27.000Z | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | src/Python/Bezier.py | rparak/Bezier_Curve_Simple | 06531e17601a52c65aef36c38d61673fee676751 | [
"MIT"
] | null | null | null | """
## =========================================================================== ##
MIT License
Copyright (c) 2021 Roman Parak
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... | 42.130919 | 204 | 0.579967 |
2b4a35412c05702e2d3412785226759c63a9cac5 | 1,175 | py | Python | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 10 | 2017-01-05T17:30:48.000Z | 2021-09-18T15:04:20.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 2 | 2019-07-21T10:48:42.000Z | 2022-02-16T20:36:45.000Z | dist/weewx-4.5.1/examples/basic/install.py | v0rts/docker-weewx | 70b2f252051dfead4fcb74e74662b297831e6342 | [
"Apache-2.0"
] | 12 | 2017-01-05T18:50:30.000Z | 2021-10-05T07:35:45.000Z | # installer for the 'basic' skin
# Copyright 2014 Matthew Wall
from weecfg.extension import ExtensionInstaller
| 32.638889 | 74 | 0.469787 |
2b4a876ac0b876943151201b66e9e6e75e65f68a | 4,953 | py | Python | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | 1 | 2021-12-02T15:13:47.000Z | 2021-12-02T15:13:47.000Z | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | null | null | null | tests/features/test_decryption.py | ratschlab/tools-project-archives | a42ef1d3d60b24ff39ce5aa73a8fb332b4f25056 | [
"MIT"
] | null | null | null | import os
import shutil
import re
import pytest
from archiver.extract import decrypt_existing_archive
from archiver.helpers import get_absolute_path_string
from .archiving_helpers import assert_successful_archive_creation, assert_successful_action_to_destination, add_prefix_to_list_elements, compare_listing_files, val... | 43.447368 | 236 | 0.816475 |
2b4b5ab3945168fc3e2cef39dd3c30ec01ea875a | 116 | py | Python | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Neighbor/TreeNeighborInst.cc.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | text = """
#include "TreeNeighbor.cc"
namespace Spheral {
template class TreeNeighbor< Dim< %(ndim)s > >;
}
"""
| 12.888889 | 49 | 0.637931 |
2b4bd98e0c177ca5b3a4dad706f295999dd8004f | 10,469 | py | Python | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | sms_bomber.py | mrdictawt0r/sms-bomber-iran | 89b43059d7f9e80ec8bb625107376625dbecc3ae | [
"Unlicense"
] | null | null | null | #dictawtor
#t.me/dictawt0r
import os
import time
import requests
from threading import Thread
proxy = {"https": "127.0.0.1:8000"}
if __name__ == "__main__":
main()
| 73.20979 | 1,080 | 0.650014 |
2b4bf872bc2a27fddc6346a99b6908fbc9a52903 | 515 | py | Python | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | null | null | null | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | null | null | null | tets.py | Parzival129/XML-use-webcam-detection | 2bde84882317b6abfe25cb1e52d8aed5c0896e20 | [
"MIT"
] | 1 | 2021-08-10T14:33:24.000Z | 2021-08-10T14:33:24.000Z | from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
import random
import time
app = Ursina()
from ursina.shaders import lit_with_shadows_shader # you have to apply this shader to enties for them to recieve shadows.
EditorCamera()
Entity(model='plane', scale=10, color=color.g... | 30.294118 | 121 | 0.8 |
2b4cafa0713ccff87fbd45632542831ae46ce20c | 3,331 | py | Python | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 1 | 2020-02-08T08:45:47.000Z | 2020-02-08T08:45:47.000Z | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 2 | 2020-03-09T11:31:19.000Z | 2020-03-11T08:00:51.000Z | cdap-authentication-clients/python/cdap_auth_client/basic_authentication_client.py | ThalesGroup/cdap-clients | 46c31377d3f3652bb0af1b461905aca4bae792ce | [
"Apache-2.0"
] | 5 | 2019-05-17T10:44:49.000Z | 2022-03-21T18:54:58.000Z | # -*- coding: utf-8 -*-
# Copyright 2014 Cask Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 36.206522 | 113 | 0.667067 |
2b4fc66f8378ab47766265034b510874f15cbe9d | 1,784 | py | Python | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | 2 | 2016-07-01T21:44:21.000Z | 2016-07-04T01:40:46.000Z | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | null | null | null | historian.py | callahad/historian | 710f7bcacaa65bde666b120dd9a77fb1dd5cde52 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Historian discovers what you did last quarter."""
from datetime import datetime, timezone
from os import mkdir
from shutil import rmtree
from sys import exit
from configobj import ConfigObj
import sources
def main():
"""Generate reports of online activity."""
try:
config ... | 30.237288 | 78 | 0.598094 |
2b522e42fdec51401cf2c96d9e000b4b82299579 | 4,445 | py | Python | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | null | null | null | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | null | null | null | analysis/model_selection/stage1/amb_forecast/ensemble.py | TomMonks/swast-benchmarking | 96964fb705a8b3cebbce8adcf03e42d4fc3dd05a | [
"MIT"
] | 1 | 2021-11-16T14:38:22.000Z | 2021-11-16T14:38:22.000Z | import numpy as np
import pandas as pd
from abc import ABC, abstractmethod
| 28.312102 | 78 | 0.564004 |
2b5509332abe32e34973d35ac1a06d05d2a1a9d0 | 1,581 | py | Python | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | Code/ReceiverZX.py | eastOffice/MsgBrokerTest | 5139fff386c73bf05afdfa63c827b6ba36405cdb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pika
import random
import time
import sys
import datetime
import QoECurve
'''
MsgBroker Configuration
'''
max_priority = 250
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
c_properties = dict()
c_properties['x-max-priority'] = ... | 29.277778 | 96 | 0.68754 |
2b5653d2af00c13103b575ebb27d1a523e5c40b6 | 1,723 | py | Python | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | 1 | 2019-05-29T23:54:24.000Z | 2019-05-29T23:54:24.000Z | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | problem12.py | rentes/Euler | e28b536a15f2e795f886a5df261d38bb0181be07 | [
"MIT"
] | null | null | null | """Project Euler - Problem 12 - http://projecteuler.net/problem=12"""
import sys
import time
import tools.timeutils as timeutils
def number_of_factors(n):
"""
Returns the number of factors of number n
Using a list to keep the factors found of number n
"""
max_limit = 0
nr_factors = 2 # 1 and... | 29.706897 | 77 | 0.612304 |
2b56b38a493baecfbe24f9c81a16e03dcfd892d0 | 5,203 | py | Python | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | external_code/Correlations_pipeline/MultivariateXWASCorr.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | from scipy import stats
import pandas as pd
import numpy as np
path_mutlivariate_feat_imps = '/n/groups/patel/samuel/EWAS/feature_importances_paper/'
Environmental = ['Clusters_Alcohol', 'Clusters_Diet', 'Clusters_Education', 'Clusters_ElectronicDevices',
'Clusters_Employment', 'Clusters_FamilyHistory'... | 74.328571 | 573 | 0.645397 |
2b57ab90dea74a7557a373ef4b1e5309bd66e57b | 2,255 | py | Python | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/protocol/protocol.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
import functools
from typing import Optional, Type, Any, Callable
from types import TracebackType
import tensorflow as tf
from ..tensor.factory import AbstractTensor
__PROTOCOL__ = None
global_cache_updators = list()
nodes = dict()
def set_protocol(prot: Optional[Protocol]) ->... | 27.168675 | 145 | 0.68071 |
2b581a0af9feed5e1273d75efc1dc50c412e4639 | 42 | py | Python | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 129 | 2015-10-08T18:49:38.000Z | 2022-02-19T23:16:24.000Z | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 941 | 2015-08-31T17:57:54.000Z | 2022-03-16T22:02:34.000Z | sfm/ui/__init__.py | Tanych/gh-sfm-ui | bba2319018fb55bb1b4031377879e5611d7a9036 | [
"MIT"
] | 31 | 2016-03-06T09:25:02.000Z | 2021-02-03T11:53:29.000Z | default_app_config = 'ui.config.UIConfig'
| 21 | 41 | 0.809524 |
2b58ade6112166878322d31fab707c7a8ad56963 | 820 | py | Python | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | Python/CountingSort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z | #setup
#main
a = [1, 5, 2, 7, 3, 4, 4, 1, 5]
for i in range(len(a)):
print(a[i], end = " ")
countingSort(a)
print()
for i in range(len(a)):
print(a[i], end = " ")
| 20.5 | 55 | 0.452439 |
2b58d366bf3ed1f98d609fd61a964c71dab67651 | 8,544 | py | Python | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | 3 | 2022-01-17T14:29:26.000Z | 2022-03-31T13:06:55.000Z | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | dataset2/Channel-PFLocalization-DataSet2.py | herolab-uga/pf-doa-localization | f6d4f3b5bafdde7a9afa905b96378fdc113f70f6 | [
"MIT"
] | null | null | null | import math
import numpy as np
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as pb
import random
from datetime import datetime
import time
import sys
import csv
areaSize=(10, 10)
node_pos=[(0,0),(10,0),(10,10),(0,10)]
centroid = (sum([node... | 42.934673 | 193 | 0.622659 |
2b5ab16f7eac57edcf489858361268d92f9398a8 | 538 | py | Python | devito/devito/foreign/__init__.py | LukasMosser/stochastic_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 20 | 2019-08-01T19:08:10.000Z | 2022-03-20T05:04:06.000Z | devito/devito/foreign/__init__.py | esgomi/gan_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 1 | 2019-12-05T13:00:14.000Z | 2019-12-05T13:00:14.000Z | devito/devito/foreign/__init__.py | esgomi/gan_seismic_waveform_inversion | 4976c3b9a39b8d246d3d220056f235df6fc7dbb3 | [
"MIT"
] | 12 | 2019-10-03T14:47:48.000Z | 2021-09-22T14:06:47.000Z | """
The ``foreign`` Devito backend is meant to be used by codes that don't
run Python natively. This backend is only capable of generating and compiling
kernels; however, kernels must be executed explicitly from outside Devito.
Further, with the ``foreign`` backed, Devito doesn't allocate any data.
"""
# The following... | 44.833333 | 84 | 0.789963 |
2b5d21bc7f3bf38099a6104d053f835c59544b6b | 2,764 | py | Python | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/tests/google/bt/native/BtNativeTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | 1 | 2018-02-24T19:13:01.000Z | 2018-02-24T19:13:01.000Z | #/usr/bin/env python3.4
#
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 35.435897 | 79 | 0.678365 |
2b5f8027129b5d5b1861d24a6459864da8da66d7 | 293 | py | Python | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | null | null | null | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | null | null | null | src/app/callbacks/init.py | PhilippVerpoort/blue-green-H2 | a9b9bd27d2459df0f14e719a466af5ed6318d7e0 | [
"MIT"
] | 1 | 2022-03-19T16:11:53.000Z | 2022-03-19T16:11:53.000Z | from src.config_load import input_data, steel_data, plots_cfg
from src.data.data import getFullData
from src.plotting.plot_all import plotAllFigs
outputData = getFullData(input_data.copy(), steel_data)
figsDefault = plotAllFigs(outputData, input_data.copy(), plots_cfg, global_cfg='webapp')
| 36.625 | 88 | 0.822526 |
2b5f838d508a37329b5f07cb4bf0d798c35b1875 | 125 | py | Python | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 55 | 2020-09-02T20:10:30.000Z | 2022-03-16T01:25:15.000Z | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 1 | 2021-01-24T12:21:27.000Z | 2021-12-07T02:10:14.000Z | colornamer/__init__.py | stitchfix/colornamer | 1bbaf061feee42322f2428fbf7d9e9a20be255aa | [
"Apache-2.0"
] | 5 | 2020-09-13T13:48:28.000Z | 2021-11-18T09:45:02.000Z | from .colornamer import get_color_from_rgb
from .colornamer import get_color_from_lab
from .colornamer import get_color_json
| 31.25 | 42 | 0.88 |
2b60e2628d815b25ace1f2175354070d83869ce9 | 242 | py | Python | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | 2 | 2020-12-25T20:13:04.000Z | 2021-02-04T19:09:11.000Z | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | sam-application/lambda_restapi/api/endpoints/root/__init__.py | gbourniq/lambda-restapi | 11d59bb7182fb8d2a0508399607724b9ac3c1601 | [
"MIT"
] | null | null | null | """This module defines the main router among all ROOT endpoints"""
from fastapi import APIRouter
from .healthcheck import router as healthcheck_router
router = APIRouter()
router.include_router(healthcheck_router, include_in_schema=False)
| 26.888889 | 66 | 0.822314 |
2b61d7390ab2819c257c38fbffc3a703a9852f12 | 5,176 | py | Python | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-03-30T11:18:37.000Z | 2022-03-30T11:18:37.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | 1 | 2022-02-23T10:26:38.000Z | 2022-02-23T10:26:38.000Z | PEPit/examples/unconstrained_convex_minimization/accelerated_gradient_convex.py | PerformanceEstimation/PEPit | 7005bc9a9da11dea448966437365c897734ec341 | [
"MIT"
] | null | null | null | from PEPit import PEP
from PEPit.functions import SmoothStronglyConvexFunction
def wc_accelerated_gradient_convex(mu, L, n, verbose=1):
"""
Consider the convex minimization problem
.. math:: f_\\star \\triangleq \\min_x f(x),
where :math:`f` is :math:`L`-smooth and :math:`\\mu`-strongly convex (:mat... | 41.079365 | 118 | 0.624614 |
2b61ffc6917a5f272ca7c83fd65079c3be07964c | 3,797 | py | Python | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/python_modelling_framework/UnitTests/pfTestModels.py | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import pcraster
import pcraster.framework.dynamicPCRasterBase as dynamicPCRasterBase
import pcraster.framework.mcPCRasterBase as mcPCRasterBase
import pcraster.framework.pfPCRasterBase as pfPCRasterBase
import pcraster.framework.staticPCRasterBase as staticPCR... | 27.316547 | 121 | 0.738214 |
2b62bceba3f71a5c3bc433ee4f5eefd5ac1873e5 | 4,052 | py | Python | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 5 | 2020-07-30T02:35:20.000Z | 2020-12-24T01:26:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 6 | 2021-03-04T10:30:11.000Z | 2022-03-16T16:47:47.000Z | 2_import/rna_seq/01_import_merged_tsv.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 2 | 2020-12-08T10:05:02.000Z | 2022-03-10T09:41:19.000Z | #!/usr/bin/env python
# SPDX-License-Identifier: MIT
# Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
from __future__ import print_function
import os
import sys
import json
import psycopg2
import argparse
import gzip
sys.path.append(os.path.join(os.path.dirname(__file__), '../../comm... | 32.15873 | 107 | 0.67152 |
2b663e447ff6dde531cade9c45704d5b63408a17 | 4,618 | py | Python | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | code/src/helpers/sequencer.py | mcd01/arvalus-experiments | 1c075853885d0d81284eee55988ba8747d33584e | [
"MIT"
] | null | null | null | import torch
from src.transforms import MultiNodeData
import collections
import dill
import os
from src.utils import create_dirs
def annotate(self, data: MultiNodeData):
"The calling function iterates over a dataset and sequentially inputs elements."
# extract properties from object
... | 40.867257 | 153 | 0.60654 |
2b676d4042d46bee66b146595fc707221e3e2e2a | 2,184 | py | Python | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | pymix/lattice_classes.py | vpbereznev/Pymix | 74f87a099169f8d215399f5d52eed80a574c8b3b | [
"MIT"
] | null | null | null | from math import sqrt, sin, cos, pi, ceil
| 33.6 | 104 | 0.42674 |
2b682e0dcc50ac9dca2be35fefa089b6c34ff322 | 798 | py | Python | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | 3 | 2016-01-19T19:41:19.000Z | 2016-11-23T13:42:06.000Z | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | null | null | null | src/services/utils/rsa_key_to_jwk.py | its-dirg/oidc-fed | 7be273957a89ec9cec281870cbc35acb659c5b20 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
from argparse import ArgumentParser
from jwkest.jwk import RSAKey, import_rsa_key_from_file
from oic import rndstr
from oidc_fed.util import write_private_key_to_jwk, write_key_to_jwk
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("hostname")
parser.add_... | 38 | 112 | 0.729323 |
2b696f156bbe3a81a3af6dc7e753998acc610ace | 7,144 | py | Python | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 3 | 2019-04-21T13:13:02.000Z | 2020-10-15T12:44:23.000Z | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | null | null | null | LIM_scripts/stationTimings/examples/run_plotBlocks.py | Bhare8972/LOFAR-LIM | 89f25be8c02cb8980c2e237da3eaac279d40a06a | [
"MIT"
] | 2 | 2018-11-06T18:34:33.000Z | 2019-04-04T14:16:57.000Z | #!/usr/bin/env python3
from LoLIM.stationTimings.plot_multiple_data_all_stations import plot_blocks
## these lines are anachronistic and should be fixed at some point
from LoLIM import utilities
utilities.default_raw_data_loc = "/exp_app2/appexp1/public/raw_data"
utilities.default_processed_data_loc = "/home/brian/p... | 62.666667 | 962 | 0.656355 |
2b6ab14e30c87422b9c8105893ef622c024762db | 121 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 1 | 2020-06-25T02:17:26.000Z | 2020-06-25T02:17:26.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unusedUnresolvedModuleImported.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | <warning descr="Unused import statement 'import spam'">import <error descr="No module named spam">spam</error></warning>
| 60.5 | 120 | 0.760331 |
2b6c7237fa9a38e57467338c82e8ab717aefaf34 | 2,383 | py | Python | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | 1 | 2018-12-24T09:07:43.000Z | 2018-12-24T09:07:43.000Z | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | null | null | null | tests/units/modules/test_kubevirt_vm_status.py | masayag/ansible-kubevirt-modules | c6dde1bd20bee9136fc9be0107c79f3e5a5f4ada | [
"Apache-2.0"
] | null | null | null | import json
import sys
import pytest
from ansible.compat.tests.mock import patch
from ansible.module_utils import basic
from ansible.module_utils._text import to_bytes
# FIXME: paths/imports should be fixed before submitting a PR to Ansible
sys.path.append('lib/ansible/modules/cloud/kubevirt')
import kubevirt_vm_sta... | 35.044118 | 79 | 0.718003 |
2b6e420a92dfca372820374b206351ebdc97a95a | 1,105 | py | Python | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 6 | 2021-07-29T03:26:20.000Z | 2022-01-28T15:11:45.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 2 | 2021-09-30T09:47:23.000Z | 2022-01-31T03:08:24.000Z | Leetcode/medium/binary-tree-from-postorder-and-inorder.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 5 | 2021-08-10T06:41:11.000Z | 2022-01-29T17:50:20.000Z | """
# CREATE BINARY TREE FROM POSTORDER AND INORDER
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
For example, given
inorder = [9,3,15,20,7]
postorder = [9,15,7,20,3]
Return the following binary tree:
3
- -
9 20... | 24.021739 | 75 | 0.58733 |
2b700bb220db47ad3294d7a1cf69cd6666d04ddf | 460 | py | Python | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | tests/gof/test_utils.py | michaelosthege/aesara | 55c88832ba71f87c9612d573ede74a4c042ef570 | [
"BSD-3-Clause"
] | null | null | null | import theano
| 27.058824 | 45 | 0.606522 |
2b707d6571d63f6cfb0ac8817d11200f9196de51 | 1,208 | py | Python | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | 1 | 2022-02-22T12:22:48.000Z | 2022-02-22T12:22:48.000Z | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | torchdiffeq/covar/fixed_grid.py | gaozhihan/torchdiffeq | 414781617d595ba01cc3f23382e25ab890f4ca66 | [
"MIT"
] | null | null | null | import torch
from torchdiffeq.covar.solvers import FixedGridODESolver_Covar
from torchdiffeq._impl.rk_common import rk4_alt_step_func
| 30.974359 | 77 | 0.664735 |
2b70cc37176d4ff82b56496b3bb0b59777850b06 | 1,317 | py | Python | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | p2/core/migrations/0022_auto_20190604_1725.py | BeryJu/p2 | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-04 17:25
from django.db import migrations, models
import p2.core.validators
| 42.483871 | 369 | 0.686409 |
2b710f90f0702741396a2856184f7a5db291acfa | 303 | py | Python | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/trace_control.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
__all__ = ['TraceControl', 'TraceControlInterface']
| 21.642857 | 58 | 0.805281 |
2b73520f6d9b5c53da710ad7256889ffc791f69c | 2,627 | py | Python | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | tests/test_logit.py | wbbradley/logit | 97dcff8b1e730d4df31b496d69b350999a2e05d3 | [
"CC0-1.0"
] | null | null | null | import cStringIO
import tempfile
import mock
from attrdict import AttrDict
from logit.main import get_arg_parser, main
from logit.crypt import get_secret_key, encrypt_json, decrypt_json
def test_get_arg_parser():
"""Test get arg parser."""
get_arg_parser()
def test_get_secret_key():
"""Test get secre... | 30.195402 | 118 | 0.644081 |
2b76612269c85e9f247752fe2f6a4d09415e6758 | 2,644 | py | Python | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null | hyper_param/utils.py | EnisBerk/hyperopt-keras-sample | dc6892f023b83ee3b5b92f2a258676ad6bbc0a94 | [
"MIT"
] | null | null | null |
"""Json utils to print, save and load training results."""
import os
import json
from bson import json_util
import tensorflow as tf
from tensorflow.python.saved_model import builder as saved_model_builder, tag_constants
from tensorflow.python.client import device_lib
import keras.backend as K
from gradient_sdk impor... | 28.430108 | 87 | 0.655446 |
2b774945cd3adbd39f821d0dd8b129b94b59f146 | 2,941 | py | Python | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 3 | 2021-12-30T19:45:24.000Z | 2022-03-07T19:14:26.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 29 | 2022-01-07T20:07:48.000Z | 2022-03-30T01:10:16.000Z | cog_modules/taunts/cog.py | michael-byrd/HammerBot | f9ad90179b486949f76a2e69a1e8b26414e2b21a | [
"MIT"
] | 4 | 2022-01-07T20:17:56.000Z | 2022-03-24T00:20:50.000Z | import os
import disnake
from disnake.ext import commands, tasks
from dotenv import load_dotenv
| 29.118812 | 80 | 0.555593 |
2b77f7eedc8e7e3dc9ed83b6fd8ae34f45c97d94 | 2,475 | py | Python | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | sources/models/DeepCNN2.py | cwi-dis/affect-gan | aea0f7dd7dc412f7e3fc44bc2db3526b09aaf131 | [
"MIT"
] | null | null | null | import config
import tensorflow as tf
import tensorflow.keras.layers as layers
from models.Blocks import *
| 35.869565 | 93 | 0.623434 |
2b78cd2e8c328cd6e908ab353389cea7a0e9d949 | 4,517 | py | Python | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | z3/finding_celebrities.py | Wikunia/hakank | 030bc928d2efe8dcbc5118bda3f8ae9575d0fd13 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Finding celebrities problem in Z3
#
# From Uwe Hoffmann
# "Finding celebrities at a party"
# http://www.codemanic.com/papers/celebs/celebs.pdf
# """
# Problem: Given a list of people at a party and for each person the list of
# people they know at the party, we want t... | 26.570588 | 109 | 0.590658 |
2b79194f124eff83fdb228ce81236856c628bf5e | 3,495 | py | Python | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 35 | 2020-06-23T05:33:50.000Z | 2021-11-22T08:22:42.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 15 | 2020-12-28T05:31:06.000Z | 2021-01-22T06:49:28.000Z | features/count_encoding_present_domains.py | wantedly/recsys2020-challenge | d9967860cc4767380d28d2ed7af00d467cc6941a | [
"Apache-2.0"
] | 2 | 2020-06-30T10:02:05.000Z | 2021-05-22T09:57:19.000Z | import os
import pandas as pd
from base import BaseFeature
from encoding_func import target_encoding
from google.cloud import storage, bigquery
from google.cloud import bigquery_storage_v1beta1
if __name__ == "__main__":
CountEncodingPresentDomains.main()
| 35.663265 | 109 | 0.578827 |
2b7933c47db153c1ec83f5874cfd167e2b409ed3 | 1,214 | py | Python | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | IntroDataScience/ejercicios/06/mean.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def prior(mu):
"""
Densidad de probabilidad de mu
"""
p = np.ones(len(mu))/(mu.max()-mu.min())
return p
def like(x, sigma, mu):
"""
Likelihod de tener un dato x e incertidumbre sigma
"""
L = np.ones(len(mu))
for x_i,sigma_i in ... | 22.072727 | 86 | 0.581549 |
2b795e47993f764317453f8d08fc171b991375f7 | 582 | py | Python | quickSorting.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | quickSorting.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z |
arr = [10,9,8,7,2,3,5,2]
print("array is ",arr)
numberLength = len(arr)
quickSorting(arr, 0, numberLength - 1)
print("sorted array is ",arr) | 25.304348 | 49 | 0.536082 |
990bb4f11a86c646dac3a761a312f8d1164528ff | 10,032 | py | Python | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | import bpy
import math
from . import data
# create a flat lens surface
# create a spherical lens surface
# create camera and objective housing as a rotational surface using the outer vertices of the lenses
# create aperture by using the difference modifier on a plane | 53.935484 | 324 | 0.718501 |
990d44c23c9a98487c5847b19f0dbb7393d43a48 | 326 | py | Python | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | 7 | 2020-02-11T23:32:22.000Z | 2022-03-11T23:37:06.000Z | api/account/REST_API/views.py | HVLLO/FaceMash | 014354a593dc6f6a4313490535682a6902c28129 | [
"MIT"
] | null | null | null | from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.generics import (CreateAPIView, UpdateAPIView,)
from api.account.REST_API.serializers import UserProfileSerializer
| 29.636364 | 67 | 0.840491 |
990efde977aade2108c67c75a84ae6c564a508e6 | 3,321 | py | Python | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null |
from python_anticaptcha import AnticaptchaClient, NoCaptchaTaskProxylessTask
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
import config
api_key ... | 41.5125 | 227 | 0.776272 |
99140dc5ada574c50a6593e547dcee3d99a877a7 | 360 | py | Python | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/procedures/java_lang/math.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import claripy
import logging
from ..java import JavaSimProcedure
log = logging.getLogger(name=__name__)
| 21.176471 | 72 | 0.691667 |
99149757f665b2f4b37b4dcf179960c645b6306b | 2,437 | py | Python | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 10 | 2021-07-25T12:44:34.000Z | 2022-03-23T04:07:12.000Z | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | null | null | null | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 5 | 2021-07-25T12:44:35.000Z | 2022-03-26T16:51:44.000Z | import os
import sys
import h5py
import _pickle as cPickle
import numpy as np
import requests
import torch
from torch.utils.data import Dataset
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from utils.dataset import Dictionary
MAX_QUES_SEQ_LEN = 26
NO_OBJECTS = 36
URL_FEATURE_SERVER =... | 30.08642 | 76 | 0.591301 |
9915026ad17aa054b3b1dcf4b6564ca6416fe1c6 | 1,963 | py | Python | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# from __future__ import unicode_literals
__author__ = "d01 <Florian Jung>"
__email__ = "jungflor@gmail.com"
__copyright__ = "Copyright (C) 2015-16, Florian JUNG"
_... | 27.263889 | 72 | 0.665818 |
99175e305e91f74cfd9b97e4031f7f7524add878 | 6,639 | py | Python | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
demo_nonlinear_data_fitting.py
Fit a model A * sin(W * t + phi) to the data f(X, ti) = yi to find A, W, and phi
m = number of data points
Solve a system of non-linear equations f(X, ti) - yi = 0:
x1 * sin(x2 * t + x3) - y = 0, where X = [x1 = A, x2 = W, x3 = phi].T, t = [t1, t2, ..., tm].T and y = [y1, y2, ..... | 45.163265 | 166 | 0.613044 |
99192fe19d128cae27dbb4d9d6db56cd2b6e1efe | 2,885 | py | Python | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | 1 | 2018-09-22T23:58:55.000Z | 2018-09-22T23:58:55.000Z | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) 2018-2019 Nekoka.tt
#
# 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 li... | 28.564356 | 89 | 0.693934 |
991a025602e05e7286a371a273b532009c3af8bd | 3,379 | py | Python | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.127451 | 100 | 0.643682 |
991a268e1607c44fc5fec2b754da258201620b92 | 4,247 | py | Python | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 256 | 2020-09-09T03:27:57.000Z | 2022-03-30T10:06:06.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 604 | 2020-09-08T12:29:49.000Z | 2022-03-31T21:51:08.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 160 | 2020-09-09T14:06:07.000Z | 2022-03-30T14:50:48.000Z | """
Copyright (c) 2019 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 wri... | 36.612069 | 98 | 0.607252 |
991b66a79e8a75a7529bdc08213b2d0422fc5350 | 6,598 | py | Python | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 2 | 2020-04-09T16:41:25.000Z | 2020-08-25T21:07:53.000Z | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 15 | 2020-02-12T14:57:30.000Z | 2020-11-27T23:34:15.000Z | pycherwell/models/section_field.py | greenpau/pycherwell | 2a25446d5cf86d69e6158067faf27ce250aba966 | [
"Apache-2.0"
] | 2 | 2020-02-12T14:57:38.000Z | 2021-07-30T11:32:28.000Z | # coding: utf-8
"""
Cherwell REST API
Unofficial Python Cherwell REST API library. # noqa: E501
The version of the OpenAPI document: 9.3.2
Contact: See AUTHORS.
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pycherwell.configuration imp... | 26.18254 | 157 | 0.573052 |
991d664b4a7ff9ae7464e55cf36f369519e4ab24 | 2,319 | py | Python | release/scripts/addons/oscurart_tools/object/distribute.py | noorbeast/BlenderSource | 65ebecc5108388965678b04b43463b85f6c69c1d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2019-09-16T10:29:19.000Z | 2022-02-11T14:43:18.000Z | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 32.661972 | 76 | 0.645106 |
991f03bbfaaa813ef12bac646842c1f1126bf936 | 15,782 | py | Python | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | 4 | 2022-01-15T19:50:36.000Z | 2022-01-15T20:16:10.000Z | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
import functools
import multiprocessing
import random
import unittest
import numpy as np
import scipy.special
import helper.basis
import helper.grid
import tests.misc
if __name__ == "__main__":
unittest.main()
| 34.234273 | 79 | 0.528577 |
9920d5f5a9ac7040e34a0fe7f0d9cf42084fcf0a | 776 | py | Python | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | '''
For a flawless upload of many files to all the desired items the following
variables have to be set:
upload_list which is a list of 2-element lists
e2 the 2-element list containing 1. the item id and 2. the folder
from which all files will be upload to the item on TUdatalib
Replace <dir... | 31.04 | 76 | 0.675258 |
99210064002fc688a9b877de13f6df78c1529245 | 462 | py | Python | unify/tool/create-application.py | unify/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 8 | 2015-03-14T12:23:27.000Z | 2021-01-09T18:00:53.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 1 | 2016-09-29T08:00:57.000Z | 2016-09-29T08:00:57.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 4 | 2015-02-09T05:42:32.000Z | 2018-03-29T07:56:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess, os, sys, optparse
fullpath = os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))
capath = os.path.abspath(
os.path.join(fullpath, "..", "..", "qooxdoo", "qooxdoo", "tool", "bin", "create-application.py")
)
skeletonpath = os.path.abspath(
os.... | 30.8 | 100 | 0.634199 |
9922c34386986c8e072fc243b53715d54edecc95 | 92 | py | Python | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 3 | 2020-04-01T15:28:25.000Z | 2020-06-06T18:30:34.000Z | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | null | null | null | src/datacatalog_fileset_enricher/__init__.py | mesmacosta/datacatalog-fileset-enricher | 0792632fc181b13696f89ef3335da4e2ce1dca4a | [
"MIT"
] | 1 | 2020-07-09T06:05:24.000Z | 2020-07-09T06:05:24.000Z | __author__ = """Marcelo Miranda"""
__email__ = 'mesmacosta@gmail.com'
__version__ = '1.1.1'
| 23 | 34 | 0.706522 |
9922ce4cce1ba80f386b53ad7c8ac19416945962 | 3,957 | py | Python | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 2 | 2019-04-08T03:42:59.000Z | 2019-10-28T13:42:59.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | """create_slinket_cases.py
Code to create Slinket unit test cases. Runs by taking all SLINKs from a
Timebank parse and put them in files, one for each SLINK relType, as potential
test cases. Files are named slink-cases-RELTYPE.txt, where RELTYPE stands for
one of the relation types.
The output files have lines like
... | 36.638889 | 95 | 0.678039 |
992435ff8981f52e289f680e8ef2931bd9e513ff | 7,259 | py | Python | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Microsoft 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 wri... | 36.114428 | 98 | 0.688111 |
99246f4bb7500baea9d62654feeafcb83b335876 | 1,269 | py | Python | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | year_2020/day15/test_day15.py | mjalkio/advent-of-code | 54dbfcba3850e72d7b736ef1e7d2a3cb91e65d42 | [
"MIT"
] | null | null | null | import pytest
from year_2020.day15.rambunctious_recitation import get_number_spoken
| 34.297297 | 73 | 0.538219 |
9925c9a2bda0f481aaea1d23f4f43156ce4186d1 | 3,345 | py | Python | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 142 | 2018-06-07T07:43:10.000Z | 2021-10-30T21:06:32.000Z | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 282 | 2018-06-07T08:35:03.000Z | 2021-03-31T03:14:32.000Z | tests/clpy_tests/opencl_tests/test_concatenate.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 19 | 2018-06-19T11:07:53.000Z | 2021-05-13T20:57:04.000Z | import unittest
import clpy
import numpy
if __name__ == '__main__':
unittest.main()
| 30.409091 | 76 | 0.616442 |