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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a79b3e5980fa9ccf32a0d7267aad362eafb93af | 39,389 | py | Python | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | 1 | 2018-11-15T16:02:17.000Z | 2018-11-15T16:02:17.000Z | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | null | null | null | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8
from sqlalchemy.testing import eq_, is_
from sqlalchemy import schema
from sqlalchemy.sql import table, column, quoted_name
from sqlalchemy.dialects import mssql
from sqlalchemy.dialects.mssql import mxodbc
from sqlalchemy.testing import fixtures, AssertsCompiledSQL
from sqlalchemy import sql
from... | 39.193035 | 79 | 0.514991 |
0a7c17bb65b9c51d7ea399323ecb512289bae204 | 8,155 | py | Python | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 277 | 2018-06-18T14:57:09.000Z | 2022-03-29T04:05:06.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 1,447 | 2018-06-20T00:58:34.000Z | 2022-03-31T21:28:43.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 95 | 2018-06-30T03:30:05.000Z | 2022-03-29T04:05:09.000Z | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ... import me... | 46.073446 | 335 | 0.682649 |
0a7c48d84a538009f1d4846a3bf1ffec3626caf1 | 1,005 | py | Python | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | 1 | 2021-09-04T18:41:30.000Z | 2021-09-04T18:41:30.000Z | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Align All Components
# -*- coding: utf-8 -*-
__doc__="""
Fakes auto-alignment in glyphs that cannot be auto-aligned.
"""
import GlyphsApp
thisFont = Glyphs.font # frontmost font
thisFontMaster = thisFont.selectedFontMaster # active master
thisFontMasterID = thisFont.selectedFontMaster.id # active master
l... | 32.419355 | 81 | 0.78607 |
0a7c6f49614d6822678c761e9a25fddc34bcb0a8 | 818 | py | Python | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Stanford CS106AP
TK Drawing Lecture Exercises
Courtesy of Nick Parlante
"""
import tkinter as tk
# provided function, this code is complete
def make_canvas(width, height):
"""
Creates and returns a drawing canvas
of the given int size, ready for drawing.
"""
top = tk.T... | 21.526316 | 69 | 0.656479 |
0a7cd64e2508df91e539f1a6f804bc5eb4b0ea83 | 12,372 | py | Python | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null |
# Only PCM 16 bit wav 44100 Hz - Use audacity or sox to convert audio files.
# WAV generation
# Synth
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bip.wav synth 0.25 sine 800
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bop.wav synth 0.25 sine 400
# Voices
# pico2wave -l ... | 30.93 | 116 | 0.516246 |
0a7ce8d41f3884cc3735bd20c347dfb81bcc70b3 | 2,714 | py | Python | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | from .video_utils import VideoClips
from .utils import list_dir
from .folder import make_dataset
from .vision import VisionDataset
| 39.333333 | 97 | 0.669123 |
0a7e85c92ceca48b141eaf4f09d1496be103b6aa | 10,795 | py | Python | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | 1 | 2016-08-24T01:08:34.000Z | 2016-08-24T01:08:34.000Z | # -*- coding: utf-8 -*-
"""
sphinx.builders.qthelp
~~~~~~~~~~~~~~~~~~~~~~
Build input files for the Qt collection generator.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
import re
import codecs
import posixpath
from os impo... | 36.103679 | 80 | 0.568133 |
0a7edac2ed561ec67cb5f3e276d02750502435c8 | 7,252 | py | Python | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 4 | 2020-03-04T21:08:11.000Z | 2020-10-28T11:28:00.000Z | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | null | null | null | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 6 | 2019-04-15T16:51:16.000Z | 2019-11-13T02:45:53.000Z | """
This code is used to scrape ScienceDirect of publication urls and write them to
a text file in the current directory for later use.
"""
import selenium
from selenium import webdriver
import numpy as np
import pandas as pd
import bs4
from bs4 import BeautifulSoup
import time
from sklearn.utils import shuffle
def s... | 33.730233 | 125 | 0.628792 |
0a7ef598ad33e1712e909b5218a858b7b8de970f | 1,903 | py | Python | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 7 | 2020-07-31T04:50:01.000Z | 2021-12-08T07:56:42.000Z | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 77 | 2020-02-02T07:54:13.000Z | 2022-03-23T18:22:04.000Z | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 6 | 2020-03-25T01:02:29.000Z | 2021-05-12T17:11:19.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.645833 | 84 | 0.755123 |
0a7f17dbb71fa4b55ccb4daea833fc07286f055d | 2,042 | py | Python | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 476 | 2020-04-21T11:38:55.000Z | 2022-03-29T02:59:34.000Z | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 440 | 2020-04-15T19:15:01.000Z | 2022-03-31T21:17:33.000Z | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 124 | 2020-04-23T19:23:25.000Z | 2022-03-30T19:12:36.000Z | #!/usr/bin/env python3
import json
import platform
if __name__ == "__main__":
data = make_sys_report()
with open("log_system_information.json", "w") as f:
json.dump(data, f, indent=4)
print(json.dumps(data, indent=4))
print("System info gathered successfully - saved as \"log_system_informat... | 34.610169 | 89 | 0.589128 |
0a7f1dd168a64e7f7f19d3324731c892ec275922 | 1,845 | py | Python | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 5 | 2018-02-02T06:36:56.000Z | 2020-12-21T20:17:20.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 8 | 2017-10-10T17:50:47.000Z | 2021-06-02T00:02:58.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 2 | 2017-10-10T20:15:24.000Z | 2021-12-17T04:50:16.000Z | """
Utils for creating xdelta patches.
"""
import logging
from subprocess import check_output, CalledProcessError
from shutil import copyfile
from os import remove, path
| 27.132353 | 78 | 0.564228 |
0a7fa4ecf8696f5df75632b66c0092d937a89bf0 | 2,346 | py | Python | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | 1 | 2018-10-29T10:46:10.000Z | 2018-10-29T10:46:10.000Z | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | null | null | null | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | 1 | 2021-09-05T16:18:25.000Z | 2021-09-05T16:18:25.000Z | from rotor import Rotor
import sys
import getopt
if __name__ == '__main__':
main(sys.argv[1:])
| 29.696203 | 110 | 0.498721 |
0a8049edeef1e3bee26e482ae16b802069251b6f | 6,780 | py | Python | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | import time
import numpy as np
from scipy import sparse
from numba import njit
from numpy.linalg import norm
from scipy.sparse.linalg import svds
from andersoncd.lasso import dual_lasso
def solver_group(
X, y, alpha, grp_size, max_iter=10000, tol=1e-4, f_gap=10, K=5,
use_acc=False, algo='bcd', ... | 31.100917 | 79 | 0.488791 |
0a804f8203f3e605d7c6651f77fee25137c52bc6 | 6,259 | py | Python | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | """
Greedy Word Swap with Word Importance Ranking
===================================================
When WIR method is set to ``unk``, this is a reimplementation of the search
method from the paper: Is BERT Really Robust?
A Strong Baseline for Natural Language Attack on Text Classification and
Entailment by Jin et... | 41.450331 | 87 | 0.615594 |
0a81693f8777fdc22a6d886900c28851626fa805 | 377 | py | Python | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 1,656 | 2015-09-20T03:12:28.000Z | 2022-03-29T18:00:54.000Z | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 3,017 | 2015-09-18T23:15:24.000Z | 2022-03-30T22:40:02.000Z | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 401 | 2015-09-18T23:02:18.000Z | 2022-02-20T16:13:14.000Z | from lemur import database
def rotate_certificate(endpoint, new_cert):
"""
Rotates a certificate on a given endpoint.
:param endpoint:
:param new_cert:
:return:
"""
# ensure that certificate is available for rotation
endpoint.source.plugin.update_endpoint(endpoint, new_cert)
endpo... | 23.5625 | 62 | 0.71618 |
0a819052de1a3c3f8fa2090ece2179f25885147a | 767 | py | Python | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 1 | 2016-06-28T13:13:27.000Z | 2016-06-28T13:13:27.000Z | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 12 | 2016-06-28T11:19:46.000Z | 2017-05-05T14:24:14.000Z | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright Luna Technology 2015
# Matthieu Riviere <mriviere@luna-technology.com>
from __future__ import absolute_import
import os
from celery import Celery
# Set the default Django settings module for the 'celery' program
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pype.settings')
from djan... | 23.96875 | 65 | 0.783572 |
0a82635dab6776cd0ffd24a37efd7bf2386d6303 | 1,827 | py | Python | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | import os, sys
import json
# anchorroot
this_file_path = os.path.split(os.path.realpath(__file__))[0]
this_path = this_file_path
root_path = this_file_path
while this_path:
if os.path.exists(os.path.join(this_path, 'sosweety_root_anchor.py')):
root_path = this_path
break
par_path = ... | 29.467742 | 85 | 0.667761 |
0a82a3ff8df3d7d05c880b80e09b0d2ae4679de0 | 16,834 | py | Python | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 18 | 2019-09-19T09:50:52.000Z | 2022-03-20T13:59:20.000Z | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 3 | 2020-10-31T05:15:32.000Z | 2022-02-10T00:34:05.000Z | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 7 | 2020-12-06T20:55:50.000Z | 2021-12-11T18:14:51.000Z | from gtrain import Model
import numpy as np
import tensorflow as tf
#________________________________________EXAMPLES_OF_NetForHypinv_CLASS_____________________________________________
| 45.010695 | 159 | 0.594214 |
0a8392531b265c3630ab7efd862cf9bb543e8116 | 126 | py | Python | py_tdlib/constructors/get_chat_member.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/get_chat_member.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/get_chat_member.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Method
| 18 | 32 | 0.690476 |
0a83eff7c2dc361748d280106f49c290cfe4b19f | 6,474 | py | Python | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | null | null | null | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | 6 | 2020-01-28T23:09:44.000Z | 2022-02-10T01:16:59.000Z | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | null | null | null | import numpy
from keras.preprocessing import sequence
from keras.preprocessing.text import Tokenizer
from src.support import support
| 40.21118 | 143 | 0.61384 |
0a842caaf70906bbc1cf4b3a4ba3ba9841f2aa9c | 1,172 | py | Python | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | from setuptools import setup
version = "1.0.0"
long_description = """
PayPalHttp is a generic http client designed to be used with code-generated projects.
"""
setup(
name="paypalhttp",
long_description=long_description,
version=version,
author="PayPal",
packages=["paypalhttp", "paypalhttp/testu... | 34.470588 | 86 | 0.620307 |
0a8510d776fffba4b52eff1b8a24d1b7d723d4dd | 1,836 | py | Python | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 57.375 | 130 | 0.827887 |
0a854fbf5fe92dd3c9a7f42e69f796c6cc578917 | 333 | py | Python | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-27 15:35
from __future__ import unicode_literals
from django.db import migrations
| 19.588235 | 47 | 0.657658 |
0a85751a815d71753d3e2aaa3ccbd06b815ba219 | 5,200 | py | Python | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 59 | 2018-03-05T08:58:59.000Z | 2022-03-19T17:33:14.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 11 | 2018-03-16T21:46:51.000Z | 2021-12-14T16:07:55.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 24 | 2018-03-15T14:48:08.000Z | 2022-01-09T01:12:51.000Z | import numpy as np
from sklearn.metrics import roc_curve, auc
def prec_recall_1d(nms_pos_o, nms_prob_o, gt_pos_o, durations, detection_overlap, win_size, remove_eof=True):
"""
nms_pos, nms_prob, and gt_pos are lists of numpy arrays specifying detection
position, detection probability and GT position.
... | 38.80597 | 109 | 0.649038 |
0a86094f8b6e8a0e12d48278a3971b48591f4ec2 | 27,399 | py | Python | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------------... | 33.454212 | 115 | 0.567904 |
0a862e609f431ba255f2003bb9d5372890839f22 | 1,680 | py | Python | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | import gym
import gym.spaces as spaces
import sys
import socket
from _thread import *
import os
import numpy as np
import pandas as pd
import math as m
import time
import random
if __name__ == '__main__':
# Construct MAIN SERVER object
env = NetEnv()
#WALK
for i in range(100000):
env.step()
print('Done')
... | 20 | 60 | 0.691667 |
0a86cf6fa8f86673090e299d74c945f26f918502 | 909 | py | Python | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 7 | 2021-01-06T15:44:58.000Z | 2022-02-12T05:07:10.000Z | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | null | null | null | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 2 | 2022-03-09T23:20:06.000Z | 2022-03-11T02:48:08.000Z | # -*- coding: utf-8 -*-
# @File : session.py
# @Author : zhkuo
# @Time : 2021/1/3 9:12
# @Desc :
from sqlalchemy import create_engine
# from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from app.core.config import settings
"""
:
https://www.osgeo.cn/sqlalchemy/orm/session_basi... | 28.40625 | 99 | 0.766777 |
0a8741dde6ef103d06812289a7da5d5ee4748c1d | 2,427 | py | Python | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | from pathlib import Path
import pickle
import tkinter as tk
import tkinter.filedialog
def open_dialog(**opt):
"""Parameters
----------
Options will be passed to `tkinter.filedialog.askopenfilename`.
See also tkinter's document.
Followings are example of frequently used options.
- filetypes=[(l... | 25.547368 | 79 | 0.622167 |
0a880ef41f3bfd67c8ea6c85667d8aef79348500 | 1,744 | py | Python | cinder/tests/unit/fake_group_snapshot.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 571 | 2015-01-01T17:47:26.000Z | 2022-03-23T07:46:36.000Z | cinder/tests/unit/fake_group_snapshot.py | vexata/cinder | 7b84c0842b685de7ee012acec40fb4064edde5e9 | [
"Apache-2.0"
] | 37 | 2015-01-22T23:27:04.000Z | 2021-02-05T16:38:48.000Z | cinder/tests/unit/fake_group_snapshot.py | vexata/cinder | 7b84c0842b685de7ee012acec40fb4064edde5e9 | [
"Apache-2.0"
] | 841 | 2015-01-04T17:17:11.000Z | 2022-03-31T12:06:51.000Z | # Copyright 2016 EMC 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... | 33.538462 | 78 | 0.679472 |
0a88b532a2c292c3b22e23456f113d6c77d67696 | 1,258 | py | Python | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import networkx as nx
from networkx.drawing.nx_agraph import graphviz_layout
| 33.105263 | 120 | 0.702703 |
0a89d9e3455e77e62d24b044c32fc90cbc464fc1 | 368 | py | Python | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 7 | 2019-08-04T20:37:55.000Z | 2020-03-05T08:36:10.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 1 | 2019-10-21T05:43:28.000Z | 2019-10-21T05:43:28.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name = 'sili-canvas',
version = '0.0.1',
license = 'MIT',
url = 'https://github.com/SilicalNZ/canvas',
description = 'A series of easy to use classes to perform complex 2D array transformations',
long_description = '',
author = 'SilicalNZ',
packages ... | 26.285714 | 96 | 0.649457 |
0a8a41bb9d474871c5ea7be817390ae9d2fe8454 | 49,397 | py | Python | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | 2 | 2020-06-29T20:02:34.000Z | 2020-06-29T20:02:35.000Z | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | null | null | null | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 38.381507 | 88 | 0.494099 |
0a8a7f44a0585244eb2c07e0db4cb782cb9fe0fb | 1,840 | py | Python | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 8 | 2022-01-12T00:46:25.000Z | 2022-03-30T12:00:52.000Z | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | null | null | null | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 1 | 2022-01-12T06:22:31.000Z | 2022-01-12T06:22:31.000Z | # coding:utf-8
from typing import Dict, List, Optional, cast, TYPE_CHECKING
from .chord_util import ChordUtil, InternalControlFlowException, NodeIsDownedExceptiopn
if TYPE_CHECKING:
from .chord_node import ChordNode
| 41.818182 | 134 | 0.613587 |
0a8b4fc2b42148f674fa2146ee9800ea9e96f927 | 2,614 | py | Python | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pandas as pd
from pathlib import Path
from torch.utils.data import DataLoader
| 33.512821 | 100 | 0.729533 |
0a8d1e23712a4b58170f56ad1d0354b9b57142a5 | 45 | py | Python | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 11 | 2021-02-04T11:35:37.000Z | 2022-03-26T10:32:00.000Z | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 4 | 2021-03-22T09:36:54.000Z | 2021-03-26T09:10:51.000Z | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 6 | 2021-02-24T09:03:35.000Z | 2021-11-16T02:00:53.000Z | from AudioLib.AudioEffect import AudioEffect
| 22.5 | 44 | 0.888889 |
0a8f1638c1d0ec4d963f02a274edb9bb4662cfb2 | 679 | py | Python | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | 1 | 2018-02-28T06:26:56.000Z | 2018-02-28T06:26:56.000Z | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | 1 | 2018-12-10T15:54:22.000Z | 2018-12-10T19:30:37.000Z | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import logging
import os
| 27.16 | 78 | 0.624448 |
0a8fdb2b5cc10e441111eda628478417245011ef | 5,283 | py | Python | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 40.638462 | 100 | 0.570509 |
0a90c84a059304b0e838dbe80594658dfad7edd3 | 2,119 | py | Python | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 6 | 2019-09-28T16:48:34.000Z | 2022-03-25T17:05:46.000Z | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 6 | 2019-09-09T16:42:02.000Z | 2021-06-25T15:25:50.000Z | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 4 | 2017-05-09T16:15:07.000Z | 2019-02-15T14:15:30.000Z | import numpy as np
from blmath.numerics import vx
def apex(points, axis):
'''
Find the most extreme point in the direction of the axis provided.
axis: A vector, which is an 3x1 np.array.
'''
coords_on_axis = points.dot(axis)
return points[np.argmax(coords_on_axis)]
def inflection_points(poin... | 36.534483 | 129 | 0.738084 |
0a9150e1ffc2d578382971b5ac300e3f70157319 | 637 | py | Python | examples/client/main.py | TheFarGG/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 3 | 2021-11-06T11:07:18.000Z | 2022-03-18T09:04:42.000Z | examples/client/main.py | UnrealFar/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 3 | 2021-11-06T11:22:05.000Z | 2022-03-12T16:36:52.000Z | examples/client/main.py | UnrealFar/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 4 | 2021-11-06T11:08:26.000Z | 2022-03-12T14:25:57.000Z | import os
import discode
TOKEN = os.environ.get("TOKEN")
# The token from the developer portal.
client = discode.Client(token=TOKEN, intents=discode.Intents.default())
# The ready listener gets fired when the bot/client is completely ready for use.
# The message_create listener is fired whenever a message is s... | 23.592593 | 108 | 0.726845 |
0a91aa29e60075c1d841a9fa42cfbeabf426976a | 2,225 | py | Python | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | from .activations import *
from .adaptive_avgmax_pool import \
adaptive_avgmax_pool2d, select_adaptive_pool2d, AdaptiveAvgMaxPool2d, SelectAdaptivePool2d
from .blur_pool import BlurPool2d
from .classifier import ClassifierHead, create_classifier
from .cond_conv2d import CondConv2d, get_condconv_initializer
from .co... | 54.268293 | 105 | 0.865169 |
0a93d3f57e61e9da5895ceeab547d073a015db76 | 468 | py | Python | riccipy/metrics/bondi_2.py | cjayross/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | 4 | 2019-08-17T04:28:06.000Z | 2021-01-02T15:19:18.000Z | riccipy/metrics/bondi_2.py | grdbii/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | 3 | 2019-08-02T04:07:43.000Z | 2020-06-18T07:49:38.000Z | riccipy/metrics/bondi_2.py | grdbii/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | null | null | null | """
Name: Bondi
References: Bondi, Proc. Roy. Soc. Lond. A, v282, p303, (1964)
Coordinates: Spherical
Symmetry: Spherical
Notes: Outgoing Coordinates
"""
from sympy import Function, diag, sin, symbols
coords = symbols("r v theta phi", real=True)
variables = ()
functions = symbols("C M", cls=Function)
r, v, th, ph = co... | 27.529412 | 86 | 0.621795 |
0a94bf94b86f2d0bf5c868fffdac3fa72c685955 | 19,040 | py | Python | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | null | null | null | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | 1 | 2016-09-14T21:11:19.000Z | 2016-09-14T21:11:19.000Z | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | null | null | null | from __future__ import unicode_literals
import json
from django.apps import apps
from django.core.urlresolvers import NoReverseMatch, reverse
from django.http import Http404, HttpRequest, QueryDict
from django.test import TestCase, override_settings
from django.utils import timezone
from wagtail.wagtailcore.models i... | 37.628458 | 76 | 0.624475 |
0a950c28a9d44906d9a72986af5603b4ab55c885 | 1,583 | py | Python | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | 1 | 2021-10-04T05:48:51.000Z | 2021-10-04T05:48:51.000Z | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | null | null | null | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | 1 | 2022-02-26T14:12:13.000Z | 2022-02-26T14:12:13.000Z | import os
from setuptools import setup
VERSION = "0.2"
setup(
name="instapaper-to-sqlite",
description="Save data from Instapaper to a SQLite database",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Benjamin Congdon",
author_email="me@bcon.g... | 29.867925 | 87 | 0.632975 |
0a95cfa206f2acf8636e2a3399ef4362d43aa15a | 3,092 | py | Python | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 12 | 2021-10-10T20:00:07.000Z | 2022-02-09T11:29:07.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 20 | 2021-10-13T09:37:20.000Z | 2022-03-07T15:14:00.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 1 | 2022-02-09T10:09:41.000Z | 2022-02-09T10:09:41.000Z | from typing import List
from pybm import PybmConfig
from pybm.command import CLICommand
from pybm.config import get_reporter_class
from pybm.exceptions import PybmError
from pybm.reporters import BaseReporter
from pybm.status_codes import ERROR, SUCCESS
from pybm.util.path import get_subdirs
| 32.893617 | 86 | 0.597025 |
0a9605df608e45d997ef3a777c5490c843c12343 | 1,728 | py | Python | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | 85 | 2021-09-20T12:08:53.000Z | 2022-03-30T12:48:06.000Z | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | """
For a given detector get a WIMPrate for a given detector (not taking into
account any detector effects
"""
import numericalunits as nu
import wimprates as wr
import dddm
export, __all__ = dddm.exporter()
| 33.882353 | 97 | 0.618634 |
0a964781b5354d9a284fd5961c977de9c81e555d | 17,664 | py | Python | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | 10 | 2020-11-24T17:26:01.000Z | 2021-09-26T18:41:44.000Z | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | null | null | null | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | 3 | 2021-05-26T12:45:37.000Z | 2021-11-22T04:51:40.000Z | #!/usr/bin/env python3
import torch
from torch import optim
import torch.nn.functional as F
import argparse
from sklearn.metrics import mean_squared_error
import numpy as np
import json
from . import utils
from .model_utils import get_pi_exact_vec, rnn_vae_forward_one_stage, rnn_vae_forward_two_stage
| 52.260355 | 194 | 0.614753 |
0a96a8a9570ed3b24a4bfee94944da9262d1bde3 | 449 | py | Python | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | 1 | 2020-09-09T02:34:28.000Z | 2020-09-09T02:34:28.000Z | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | #! -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bert4keras',
version='0.8.4',
description='an elegant bert4keras',
long_description='bert4keras: https://github.com/bojone/bert4keras',
license='Apache License 2.0',
url='https://github.com/bojone/bert4keras',
... | 26.411765 | 72 | 0.674833 |
0a96c59de05ef2cf939a78138027073d3aeef532 | 489 | py | Python | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | 12 | 2017-11-30T08:45:48.000Z | 2018-04-26T14:15:45.000Z | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | null | null | null | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | 9 | 2017-10-16T09:42:59.000Z | 2018-01-27T19:48:45.000Z | # import cProfile
# import pstats
# import io
from picture import *
# pr = cProfile.Profile()
# pr.enable()
if __name__ == '__main__':
p = Picture()
p.genPerms()
p.detuctAll()
p.backtrackLoop()
p.saveOtput()
# pr.disable()
# s = io.StringIO()
# sortby = 'cumulative'
# ps = pstats... | 18.111111 | 56 | 0.586912 |
0a96d8eb608d332f737e6f0d0e18267bfd899873 | 1,512 | py | Python | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | 1 | 2021-06-23T05:10:36.000Z | 2021-06-23T05:10:36.000Z | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | # imports
import os
import json
import subprocess
abs_join = lambda p1, p2 : os.path.abspath(os.path.join(p1, p2))
# constants
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
SEED_RELPATH = "./strprose/example_files/_seeds.json"
SEED_FULLPATH = abs_join(SCRIPT_DIR, SEED_RELPATH)
SEED_INFO = None
with open(SEE... | 32.170213 | 89 | 0.683862 |
0a96db7bc8255b1b1b651c9085fc3a06e4243461 | 1,753 | py | Python | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from mmtbx.tls import tools
import math
import time
pdb_str_1 = """
CRYST1 10.000 10.000 10.000 90.00 90.00 90.00 P1
ATOM 1 CA THR A 6 0.000 0.000 0.000 1.00 0.00 C
ATOM 1 CA THR B 6 3.000 0.000 0.000 1.00 0.00 C
"""... | 34.372549 | 79 | 0.498003 |
0a96e21fb56076c17506b44887fb9f2f8344e7b0 | 558 | py | Python | elliesite/context_processors.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | 1 | 2021-06-26T22:18:31.000Z | 2021-06-26T22:18:31.000Z | ellie/context_processors.py | open-apprentice/ellieplatform-website | 3018feb05a2a44b916afba3e8e2eb71c18147117 | [
"MIT"
] | 12 | 2021-06-26T22:38:45.000Z | 2021-07-07T15:49:43.000Z | elliesite/context_processors.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | 1 | 2021-07-07T15:33:43.000Z | 2021-07-07T15:33:43.000Z | import sys
from django.urls import resolve
| 39.857143 | 107 | 0.693548 |
0a96e48e2da874873ab9a54b25f7428bb39c7d94 | 18,180 | py | Python | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | """ Training script for steps_with_decay policy"""
import argparse
import os
import sys
import pickle
import resource
import traceback
import logging
from collections import defaultdict
import numpy as np
import yaml
import torch
from torch.autograd import Variable
import torch.nn as nn
import cv2
cv2.setNumThreads(0... | 38.435518 | 107 | 0.642079 |
0a9772419f2ef3e57950559b990b8ce8968146c1 | 4,402 | py | Python | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 4 | 2021-10-20T12:39:09.000Z | 2022-02-26T15:02:08.000Z | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 12 | 2020-07-05T14:30:46.000Z | 2020-08-06T21:06:00.000Z | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 1 | 2021-10-20T13:47:10.000Z | 2021-10-20T13:47:10.000Z | # Copyright (c) 2019-2020 hippo91 <guillaume.peillex@gmail.com>
# Copyright (c) 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
# Licensed under the LGPL: https://www.gnu.org/licens... | 43.584158 | 133 | 0.647887 |
0a9876a51a89bf0aa93f351a61986d7fa1facb0f | 211 | py | Python | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
2 18 3 0 3 19 20 21
1 1 1 0 18
2 23 3 0 3 19 24 25
1 1 2 1 21 23
3 5 21 19 20 24 25 0 0
6 0 5 5 21 19 20 24 25 1 1 1 1 1
0
21 a
19 b
20 c
24 d
25 e
28 f
0
B+
0
B-
1
0
1
"""
output = """
COST 1@1
"""
| 8.115385 | 32 | 0.540284 |
0a98cfd9f20dfc0c1b38e64c743a29230c7a8c4f | 195 | py | Python | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | import random
names_string = input(" . (,) .\n")
names = names_string.split(",")
print(names)
n = random.randint(0, len(names))
print(f" {names[n]} !")
| 19.5 | 64 | 0.676923 |
0a98e4f650bd93b816382fc9c8f7255712fc94e9 | 1,044 | py | Python | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
import typing
import numpy as np
main()
| 23.2 | 65 | 0.425287 |
0a99a93e656914b21bfd27861c1447d786a91bee | 2,929 | py | Python | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 838 | 2017-07-14T10:08:13.000Z | 2022-03-22T22:09:14.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 395 | 2017-08-18T15:56:17.000Z | 2022-03-20T11:28:23.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 349 | 2017-09-02T18:00:23.000Z | 2022-03-31T23:26:22.000Z | import network
mqtt = network.mqtt("loboris", "mqtt://loboris.eu", user="wifimcu", password="wifimculobo", cleansession=True, connected_cb=conncb, disconnected_cb=disconncb, subscribed_cb=subscb, published_cb=pubcb, data_cb=datacb)
# secure connection requires more memory and may not work
# mqtts = network.mqtt("ecli... | 33.284091 | 216 | 0.712188 |
0a9a47e3f3a1f529a8e26eeea21042cb90395afd | 585 | py | Python | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-14 19:07
from django.db import migrations, models
| 30.789474 | 253 | 0.589744 |
0a9a9f93de2f3ba2e7d9c2affc936358894ee511 | 36,217 | py | Python | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | 1 | 2022-02-28T01:35:27.000Z | 2022-02-28T01:35:27.000Z | backend/main/chapters/c06_lists.py | suchoudh/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | # flake8: NOQA E501
import ast
import random
from textwrap import dedent
from typing import List
from main.exercises import generate_list, generate_string
from main.text import ExerciseStep, MessageStep, Page, Step, VerbatimStep, search_ast
from main.utils import returns_stdout
| 34.038534 | 415 | 0.608333 |
0a9abefb5c7f43f4b3586ebf44ef35bd05d5118a | 1,223 | py | Python | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | import time
import redis
import json
import argparse
""" Follows the StackExchange best practice for creating a work queue.
Basically push a task and publish a message that a task is there."""
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-q", "--queue", help="The q... | 34.942857 | 95 | 0.614881 |
0a9ca97f3e91b994b2c90fedaf1ef527a056c57a | 891 | py | Python | app/celery.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 7 | 2021-03-04T18:49:12.000Z | 2021-03-08T18:25:51.000Z | app/celery.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 251 | 2021-03-04T19:19:14.000Z | 2022-03-31T14:47:53.000Z | app/celery.py | tihlde/Lepton | 5cab3522c421b76373a5c25f49267cfaef7b826a | [
"MIT"
] | 3 | 2021-10-05T19:03:04.000Z | 2022-02-25T13:32:09.000Z | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
app = Celery("app")
# Using a string here means the worker doesn't have to serialize
# the ... | 27 | 66 | 0.751964 |
0a9d2e6c0217618be0d23544b03fc29100edce45 | 161 | py | Python | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | 1 | 2019-07-31T06:53:38.000Z | 2019-07-31T06:53:38.000Z | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | null | null | null | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | 1 | 2020-02-05T00:34:07.000Z | 2020-02-05T00:34:07.000Z | from garage.core.serializable import Serializable
from garage.core.parameterized import Parameterized # noqa: I100
__all__ = ['Serializable', 'Parameterized']
| 32.2 | 65 | 0.807453 |
0a9de0f402594abfa8300f717bad17c1f1a23420 | 856 | py | Python | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | from django.forms import forms
| 23.777778 | 76 | 0.671729 |
0a9deb518dd12c6a3961ce613b76fcc3db2acd68 | 602 | py | Python | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
task = TaskB()
task.run() | 21.5 | 54 | 0.413621 |
0a9e0852ce066b6a61ac5cfb9625f8879b66f594 | 536 | py | Python | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket,sys,os
TCP_IP = '127.0.0.1'
TCP_PORT = 6262
BUFFER_SIZE = 1024
s= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((TCP_IP,TCP_PORT))
s.listen(5)
conn, addr = s.accept()
print('Connection entrante :', addr)
data = conn.recv(BUFFER_SIZE)
if data == "m" :
os.popen("chmod... | 14.486486 | 51 | 0.641791 |
0a9ea2c54f2546f23ad0eceb20e12ee8b19cd36b | 888 | py | Python | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | 1 | 2018-05-06T00:31:35.000Z | 2018-05-06T00:31:35.000Z | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | from rest_framework_jwt.utils import jwt_decode_handler
from users.models import User
from users.serializers import UserSerializer
| 24 | 71 | 0.684685 |
0a9ed4d324eb619f1707025aa2d1ca6c25ef2609 | 17,230 | py | Python | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020 Xilinx, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the f... | 38.9819 | 88 | 0.673593 |
0a9f22dd58e0b2b2c094a6f1cf7277e84b5b669b | 9,455 | py | Python | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from tkcalendar import Calendar
from datetime import datetime
from datetime import date
import tkinter as tk
from tkinter import ttk
from tkinter.messagebox import askyesno
import re
import sqlite3
import tkinter.messagebox
import pandas as pd
import pandas as pd
import datetime
... | 31.20462 | 230 | 0.564886 |
0a9f437ec901227c3a525ef2b2000464e450f945 | 3,399 | py | Python | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 6 | 2021-08-05T21:31:15.000Z | 2021-11-15T20:54:25.000Z | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 49 | 2021-08-05T19:33:08.000Z | 2022-03-30T19:33:38.000Z | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T17:08:32.000Z | 2022-01-09T17:08:32.000Z | import os
import tempfile
import unittest
from datetime import datetime
from google.protobuf.json_format import ParseDict
from ...monitoring.MonitoringDatabase import MonitoringDatabase
from ...protobuf.generated.computer_info_pb2 import ADD, UpdateEvent
from ...protobuf.generated.monitoring_service_pb2 import DataUp... | 35.40625 | 74 | 0.527214 |
0a9f5b949039e60cbeefb54542ccaa4f60417abd | 990 | py | Python | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 158 | 2020-08-19T18:13:28.000Z | 2022-03-30T13:55:32.000Z | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 28 | 2020-05-30T04:02:33.000Z | 2022-03-30T15:46:38.000Z | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 18 | 2020-08-19T19:52:38.000Z | 2022-02-06T11:42:26.000Z | # Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk
import os, open3d, numpy as np
File_ = open('ModelNet_flist_short.txt', 'w')
if __name__ == "__main__":
root_dir = "../data/ModelNet_subset/"
for root, dirs, files in os.walk(root_dir, topdown=False):
for file in files:
if '.ply' in fi... | 41.25 | 96 | 0.586869 |
0aa08817091e8a101312819073f37fbcd1819291 | 20,634 | py | Python | pymatgen/apps/battery/insertion_battery.py | adozier/pymatgen | f1cc4d8db24ec11063be2fd84b4ea911f006eeb7 | [
"MIT"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | null | null | null | ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module is used for analysis of materials with potential application as
intercalation batteries.
"""
__author__ = "Anubhav Jain, Shyue Ping Ong"
__co... | 38.932075 | 97 | 0.630804 |
0aa0ecacfe2573f92054f8caab4ad37415452b90 | 7,202 | py | Python | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 561 | 2016-10-18T04:30:48.000Z | 2022-03-30T06:52:04.000Z | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 1,828 | 2016-10-14T19:01:46.000Z | 2022-03-30T16:07:19.000Z | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 120 | 2016-10-18T15:19:13.000Z | 2021-12-20T16:28:23.000Z | ##########################################################################
#
# Copyright (c) 2013, John Haddon. All rights reserved.
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | 34.625 | 142 | 0.71494 |
0aa3e139fa08c65698af3c065bdbf7e9c6759f7b | 1,946 | py | Python | NewsPaperD7(final)/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-05-29T21:17:56.000Z | 2021-05-29T21:17:56.000Z | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | null | null | null | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-06-30T12:43:39.000Z | 2021-06-30T12:43:39.000Z | # Generated by Django 3.2 on 2021-04-15 18:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 42.304348 | 153 | 0.611511 |
0aa3ebc9e71e06ddfc092d3a9a924b404661453e | 2,019 | py | Python | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | 1 | 2019-01-25T01:15:51.000Z | 2019-01-25T01:15:51.000Z | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | null | null | null | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 Andy Chu. 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
"""
cmd_exec_test.py: Test... | 26.92 | 80 | 0.722635 |
0aa43893204c6ba098361aa19c39257195d9d726 | 425 | py | Python | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 3 | 2019-10-22T00:16:49.000Z | 2021-07-15T07:44:43.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 1,183 | 2018-04-19T18:40:30.000Z | 2022-03-31T21:05:05.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 12 | 2018-04-17T19:16:42.000Z | 2022-01-27T00:19:59.000Z | # Generated by Django 2.0.8 on 2019-05-29 16:00
from django.db import migrations, models
| 22.368421 | 83 | 0.607059 |
0aa458014e027a9ad777515ef9c0b45d42da4384 | 93 | py | Python | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | 6 | 2021-11-09T11:00:56.000Z | 2022-01-14T03:44:52.000Z | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | 4 | 2022-03-28T23:39:23.000Z | 2022-03-28T23:39:24.000Z | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from .api import capture
__version__ = "0.0.7"
__all__ = ("capture",)
| 15.5 | 24 | 0.677419 |
0aa50be39d8821cc01c657b693bc988aa6fe4578 | 5,265 | py | Python | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | null | null | null | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | null | null | null | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | 1 | 2021-11-23T12:30:37.000Z | 2021-11-23T12:30:37.000Z | import numpy as np
import torch
import torch.nn.functional as F
from codes.d_agents.a0_base_agent import float32_preprocessor
from codes.d_agents.on_policy.on_policy_agent import OnPolicyAgent
from codes.e_utils import rl_utils, replay_buffer
from codes.d_agents.actions import ProbabilityActionSelector
from codes.e_ut... | 41.785714 | 128 | 0.688319 |
0aa514fa3ff45ce4defbd248dad8a995955378b1 | 188 | py | Python | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | from discord.ext.commands import Bot, Cog | 15.666667 | 41 | 0.696809 |
0aa6e5ef18ddd1cd84d84ba40a68b3ca12d3ecf7 | 789 | py | Python | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | from django import forms
from django.core.mail import send_mail
from django.conf import settings
| 32.875 | 75 | 0.595691 |
0aa6ee42edcf06446ba2b86d62dbe6a27542ef2e | 5,475 | py | Python | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2018-11-15T22:55:01.000Z | 2020-01-01T21:21:07.000Z | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-11-10T20:31:29.000Z | 2021-07-31T18:24:47.000Z | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-11-15T22:55:17.000Z | 2018-11-15T22:55:17.000Z | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gio, Gtk, Gdk
| 35.784314 | 107 | 0.667032 |
0aa7a0ee45227c9db1cfad5be465b9e3f1596fbf | 533 | py | Python | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | import random
if __name__ == '__main__':
game()
| 17.766667 | 51 | 0.463415 |
0aa7b0d58d58a3a7d6eb18bd016c9b5d7166087a | 681 | py | Python | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | from enum import Enum
| 25.222222 | 102 | 0.654919 |
0aa7bee18a6d9f952d21c773ce61328493a8b54b | 7,503 | py | Python | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 1,131 | 2015-01-08T18:59:06.000Z | 2022-03-29T11:31:10.000Z | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 5,908 | 2015-01-13T15:28:37.000Z | 2022-03-31T20:31:07.000Z | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 1,083 | 2015-01-05T01:16:52.000Z | 2022-03-31T12:14:10.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 35.060748 | 144 | 0.620552 |
0aa818d9912fa4e7124c341cc827cf2ddf2f640c | 11,501 | py | Python | tests/components/ozw/test_websocket_api.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/ozw/test_websocket_api.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/ozw/test_websocket_api.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Test OpenZWave Websocket API."""
from unittest.mock import patch
from openzwavemqtt.const import (
ATTR_CODE_SLOT,
ATTR_LABEL,
ATTR_OPTIONS,
ATTR_POSITION,
ATTR_VALUE,
ValueType,
)
from openpeerpower.components.ozw.const import ATTR_CONFIG_PARAMETER
from openpeerpower.components.ozw.lock im... | 29.795337 | 87 | 0.629858 |
0aaa20d8b1879b4c1bc74cd5f86f6df85b43a7e8 | 30,173 | py | Python | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | import pytest
from flask import Markup
from notifications_utils.formatters import (
unlink_govuk_escaped,
notify_email_markdown,
notify_letter_preview_markdown,
notify_plain_text_email_markdown,
sms_encode,
formatted_list,
strip_dvla_markup,
strip_pipes,
escape_html,
remove_whit... | 28.094041 | 190 | 0.545388 |
0aaa92e8b56443a2b167621484f9881042d7391b | 983 | py | Python | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null |
banner_text("*")
banner_text("Always look on the bright side of life...")
banner_text("If life seems jolly rotten,")
banner_text("There's something you've forgotten!")
banner_text("And that's to laugh and smile and dance and sing,")
banner_text(" ")
banner_text("When you're feeling in the dumps,")
banner_text("Don't ... | 30.71875 | 67 | 0.66531 |
0aab53b2cca857c20d172807e1c32d755b133366 | 153 | py | Python | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 415 | 2015-08-19T00:07:10.000Z | 2022-03-14T13:35:45.000Z | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 51 | 2015-09-30T14:42:01.000Z | 2020-11-02T21:12:26.000Z | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 174 | 2015-10-06T07:16:51.000Z | 2022-03-14T13:35:50.000Z | from .provider import Provider
from .adapter import Adapter
from .device import Device
from .gatt import GattService, GattCharacteristic, GattDescriptor
| 30.6 | 65 | 0.843137 |
0aab7620f824873c7b572e13e03aa334f91e254d | 143 | py | Python | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | from axju.generic.basic import BasicWorker
from axju.generic.execution import ExecutionWorker
from axju.generic.template import TemplateWorker
| 35.75 | 50 | 0.874126 |
0aab9dbbc4006ac10614eb6e13f1101929dde5bc | 5,242 | py | Python | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 13 | 2015-02-19T17:17:10.000Z | 2021-12-22T06:48:02.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 85 | 2015-01-06T15:01:51.000Z | 2018-11-29T09:03:35.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 22 | 2015-06-09T12:08:29.000Z | 2018-11-20T10:07:01.000Z | #!/usr/bin/env python
# Copyright European Organization for Nuclear Research (CERN)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
... | 44.803419 | 256 | 0.702404 |
0aac44d185f9607658c52f2deb96d4cdd7259f28 | 5,384 | py | Python | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | 1 | 2022-03-17T13:55:33.000Z | 2022-03-17T13:55:33.000Z | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | null | null | null | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | 1 | 2020-12-12T21:56:06.000Z | 2020-12-12T21:56:06.000Z | # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Esse arquivo possui algumas modificaes em relao ao arquivo apresentado no vdeo do YouTube
# No deixe de assistir o vdeo e estudar pela documentao ofical Dash
# +++... | 32.630303 | 202 | 0.610513 |
0aacd880ac180e15a9b5e161088e8e7de26eb77d | 26,616 | py | Python | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | import re
import datetime
from javaccflab.lexer import parse
from javaccflab.java_token import TokenType, Token, update_token_value
| 42.449761 | 184 | 0.527916 |
0aad63892e2757c199be78dfebc46a66c8e7becf | 3,783 | py | Python | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 63 | 2020-04-20T16:31:16.000Z | 2022-03-29T01:05:35.000Z | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 5 | 2020-04-21T11:31:39.000Z | 2022-03-24T13:42:56.000Z | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 8 | 2020-04-21T09:16:42.000Z | 2022-02-23T16:28:43.000Z | """
.. module:: CAttackEvasionPGDExp
:synopsis: Evasion attack using Projected Gradient Descent.
.. moduleauthor:: Battista Biggio <battista.biggio@unica.it>
"""
from secml.adv.attacks.evasion import CAttackEvasionPGDLS
| 36.375 | 88 | 0.649749 |
0aaf87f9c4ecb098ef160db1b17bb991d9edaacc | 3,172 | py | Python | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | import sqlite3
| 38.216867 | 80 | 0.596154 |
0ab07fb42baef7b3a437132ef3d9c03a2ec1e478 | 561 | py | Python | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 47 | 2021-07-04T14:51:38.000Z | 2022-03-17T07:02:06.000Z | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 9 | 2021-04-10T08:32:08.000Z | 2022-02-21T03:14:40.000Z | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2021-07-02T08:11:55.000Z | 2022-01-12T18:06:40.000Z | import math
| 33 | 83 | 0.68984 |
0ab1197213ef76c98f29e3e63d45d1418b5c01ea | 583 | py | Python | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | ######################################################## FLASK SETTINGS ##############################################################
#Variable used to securly sign cookies
##THIS IS SET IN DEV ENVIRONMENT FOR CONVENIENCE BUT SHOULD BE SET AS AN ENVIRONMENT VARIABLE IN PROD
SECRET_KEY = "dev"
########################... | 58.3 | 134 | 0.476844 |
0ab246f495c8f138c1a41820ece75a23cb6ba83c | 37,122 | py | Python | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | import numpy as np
from typing import Tuple, Union, Optional
from autoarray.structures.arrays.two_d import array_2d_util
from autoarray.geometry import geometry_util
from autoarray import numba_util
from autoarray.mask import mask_2d_util
def grid_2d_via_mask_from(
mask_2d: np.ndarray,
pixel_s... | 39.787781 | 130 | 0.645574 |
0ab2e129e7612f7fdafee8257f8411edf7808187 | 2,689 | py | Python | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | 2 | 2018-08-28T06:34:16.000Z | 2018-12-05T01:33:33.000Z | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | null | null | null | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | 3 | 2017-11-23T03:16:49.000Z | 2019-05-05T05:23:57.000Z | # coding: utf-8
import requests, math
import gevent
from gevent.queue import Queue
from gevent import monkey; monkey.patch_all()
from pyquery import PyQuery
if __name__ == '__main__':
p = Proxies()
p.get_proxies(20, 1)
result = p.get_result()
print(result)
| 32.39759 | 150 | 0.531424 |
0ab39451258fbf9b0748574dd450aedbe38e6382 | 21,092 | py | Python | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 454 | 2021-07-18T02:51:23.000Z | 2022-03-31T04:00:53.000Z | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 16 | 2021-07-18T10:47:21.000Z | 2022-03-22T18:49:57.000Z | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 33 | 2021-07-18T04:48:28.000Z | 2022-03-14T22:16:36.000Z | # Copyright 2021 TUNiB inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 30.836257 | 88 | 0.585815 |
0ab472bf8d8e22693d678c504a9b881ed31f9478 | 3,042 | py | Python | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Name: upper_air_humidity.py
Make upper level weather chart.
Usage: python3 upper_air_humidity.py --file <ncfile>
Author: Ryosuke Tomita
Date: 2022/01/07
"""
import argparse
from ncmagics import fetchtime, japanmap, meteotool
def parse_args() -> dict:
"""parse_args.
set file path.
A... | 31.040816 | 82 | 0.575608 |
0ab496b4beb92ca3fe52c60cfcbb81b2b17b5de3 | 22,976 | py | Python | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 2 | 2021-04-24T08:07:45.000Z | 2021-04-24T08:07:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 14 | 2020-12-26T22:01:38.000Z | 2022-02-09T22:41:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 7 | 2021-08-16T07:49:24.000Z | 2022-03-17T09:04:34.000Z | #
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 43.680608 | 430 | 0.550531 |