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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2eba870cf64953dbca714f2107848bfa15ca97d2 | 2,360 | py | Python | tests/test_transforms.py | sri-sensors/atmosense-abcgan | 6a0d88ce49b7de03e557eca362ab7d3399d44cfb | [
"MIT"
] | null | null | null | tests/test_transforms.py | sri-sensors/atmosense-abcgan | 6a0d88ce49b7de03e557eca362ab7d3399d44cfb | [
"MIT"
] | null | null | null | tests/test_transforms.py | sri-sensors/atmosense-abcgan | 6a0d88ce49b7de03e557eca362ab7d3399d44cfb | [
"MIT"
] | null | null | null | import unittest
import abcgan.constants as const
from abcgan import transforms as trans
import numpy as np
if __name__ == "__main__":
unittest.main(argv=['first-arg-is-ignored'], exit=False)
| 34.202899 | 78 | 0.658051 |
2ebce4a5e3f3f33fb24cf40e4d6d09afffd1fa71 | 4,937 | py | Python | bone-age/src/bsmu/bone_age/plugins/journal_exporter.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | 2 | 2019-10-15T11:34:17.000Z | 2021-02-03T10:46:07.000Z | bone-age/src/bsmu/bone_age/plugins/journal_exporter.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | null | null | null | bone-age/src/bsmu/bone_age/plugins/journal_exporter.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
import csv
from typing import TYPE_CHECKING
from PySide2.QtCore import QObject
from PySide2.QtWidgets import QFileDialog, QMessageBox
from bsmu.bone_age.plugins.main_window import TableMenu
from bsmu.vision.core.plugins.base import Plugin
if TYPE_CHECKING:
from bsmu.bone_age.p... | 46.140187 | 115 | 0.667004 |
2ebd1a88d72451941988cd64b63eaae21ba2e050 | 21,234 | py | Python | pyximc.py | EmmaKindstrom/Indentation_Discrimination | bdb68c82a36aae7f00acbf071fdd8e68bc309874 | [
"MIT"
] | null | null | null | pyximc.py | EmmaKindstrom/Indentation_Discrimination | bdb68c82a36aae7f00acbf071fdd8e68bc309874 | [
"MIT"
] | null | null | null | pyximc.py | EmmaKindstrom/Indentation_Discrimination | bdb68c82a36aae7f00acbf071fdd8e68bc309874 | [
"MIT"
] | 1 | 2022-02-14T10:52:31.000Z | 2022-02-14T10:52:31.000Z | from ctypes import *
import os
import platform
import sys
# Load library
# use cdecl on unix and stdcall on windows
lib = ximc_shared_lib()
# Common declarations
# Clarify function types
lib.enumerate_devices.restype = POINTER(device_enumeration_t)
lib.get_device_name.restype = c_char_p
# -------------------... | 23.462983 | 65 | 0.646605 |
2ebd8e420a76964bfe5a3a13462a439277b542dc | 4,787 | py | Python | cgi-bin/report.py | alexander1389/IMS.WebAPI | cfc8c6c899655c337973f9a32a620e9cd6af34b9 | [
"MIT"
] | null | null | null | cgi-bin/report.py | alexander1389/IMS.WebAPI | cfc8c6c899655c337973f9a32a620e9cd6af34b9 | [
"MIT"
] | null | null | null | cgi-bin/report.py | alexander1389/IMS.WebAPI | cfc8c6c899655c337973f9a32a620e9cd6af34b9 | [
"MIT"
] | null | null | null | import sys
import os
import time
from datetime import datetime
from os.path import isfile, join, splitext, getsize, basename
from shutil import copyfileobj
from zipfile import ZipFile
from bad_request import bad_request
from utils import validate_dt
DEFAULT_DAT = 'last'
DEFAULT_EXT = 'xml'
def report(**kwargs):
... | 27.354286 | 79 | 0.62628 |
2ec079ba38dcec7f18ce2e34d38c3161e2e10e94 | 16,428 | py | Python | websaver/parsed_data/views.py | aiirohituzi/myWebCrawler | 67060f724de1142b7d7d6f6fb981d3c1e925d9b0 | [
"MIT"
] | 2 | 2017-08-21T14:38:22.000Z | 2017-08-22T01:35:36.000Z | websaver/parsed_data/views.py | aiirohituzi/myWebCrawler | 67060f724de1142b7d7d6f6fb981d3c1e925d9b0 | [
"MIT"
] | 2 | 2017-09-05T09:54:26.000Z | 2017-12-03T13:06:02.000Z | websaver/parsed_data/views.py | aiirohituzi/myWebCrawler | 67060f724de1142b7d7d6f6fb981d3c1e925d9b0 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from parsed_data.models import RatingData
import json
import datetime
import config
import operator
# Create your views here.
# def getSoloRanking(request):
# data = []
# season = request.GET.get('season', config.CURRENT_SEASON)
... | 32.023392 | 97 | 0.499696 |
2ec18eb4c9d609c45f211bbba5ede5409418c196 | 173 | py | Python | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2020-06-19T09:45:20.000Z | 2020-06-19T09:45:20.000Z | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2019-12-27T18:41:21.000Z | 2019-12-27T18:41:21.000Z | crawl_cvs/handlers/my_func.py | MacHu-GWU/crawl_cvs-project | 1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918 | [
"MIT"
] | 1 | 2018-08-22T01:27:32.000Z | 2018-08-22T01:27:32.000Z | # -*- coding: utf-8 -*-
| 21.625 | 52 | 0.549133 |
2ec221502b1e647f94c1e89ca9e353cdcc04428f | 507 | py | Python | Python/CeV/Exercicios/ex99.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex99.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex99.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null |
maior(2, 9, 4, 5, 7, 1)
maior(4, 7, 0)
maior(1, 2)
maior(6)
maior()
| 23.045455 | 66 | 0.512821 |
2ec2995f108d272af9ac037584f7345c85dce882 | 1,516 | py | Python | vpn_server/accounts_server/accounts/views.py | kekeho/vpn4friends | c469a632b15b2f8ec93fd6bb3839b7686841b83a | [
"MIT"
] | 10 | 2019-04-14T12:31:42.000Z | 2019-04-15T06:33:05.000Z | vpn_server/accounts_server/accounts/views.py | kekeho/vpn4friends | c469a632b15b2f8ec93fd6bb3839b7686841b83a | [
"MIT"
] | 9 | 2019-12-04T22:39:41.000Z | 2022-02-10T09:55:02.000Z | vpn_server/accounts_server/accounts/views.py | kekeho/vpn4friends | c469a632b15b2f8ec93fd6bb3839b7686841b83a | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.shortcuts import HttpResponse
from django.core.mail import EmailMessage
import subprocess
import os
PROFILES_DIR = '/code/profiles'
| 31.583333 | 114 | 0.672164 |
2ec2c19a187f653438f9e1dd5d0899ca5f849f6b | 2,922 | py | Python | pretraining/preprocessing.py | Artia-Inspirenet/module-2 | 7cf1d74f13d23a11ce202436d88b283d7ef1e109 | [
"Apache-2.0"
] | null | null | null | pretraining/preprocessing.py | Artia-Inspirenet/module-2 | 7cf1d74f13d23a11ce202436d88b283d7ef1e109 | [
"Apache-2.0"
] | null | null | null | pretraining/preprocessing.py | Artia-Inspirenet/module-2 | 7cf1d74f13d23a11ce202436d88b283d7ef1e109 | [
"Apache-2.0"
] | null | null | null | import sys
import os
import cv2
import numpy as np
from matplotlib import pyplot as plt
import hed
curdir = os.path.abspath(os.path.curdir)
sys.path.append(os.path.join(os.path.dirname(curdir), 'tf_pose'))
from pycocotools.coco import COCO
dataset_path = '/home/artia/prj/datasets/coco'
coco = COCO(os.path.join(dataset... | 36.525 | 110 | 0.718686 |
2ec499bb950023d24ccdaccc92a4dd5817fc95b5 | 174 | py | Python | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 29 | 2019-03-25T09:35:12.000Z | 2022-01-08T22:09:03.000Z | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | null | null | null | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 4 | 2020-05-19T21:18:12.000Z | 2021-05-18T12:49:21.000Z | dict1 = {"a": 1, "b": 2}
dict2 = {"b": 3, "c": 4, 3: 9}
dict3 = {"a": 2}
dict4 = {"d": 8, "e": 1}
print("Result of merging dict 1-4:", {**dict1, **dict2, **dict3, **dict4})
| 24.857143 | 74 | 0.471264 |
2ec532c0146facd913a1b49703627fa105784fd7 | 1,742 | py | Python | Badger/private/output/MergeFile.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | null | null | null | Badger/private/output/MergeFile.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | 1 | 2021-03-04T08:48:38.000Z | 2021-03-04T08:48:38.000Z | Badger/private/output/MergeFile.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | 2 | 2020-08-26T06:36:51.000Z | 2021-03-04T08:08:34.000Z | import os
import time
import subprocess
from DIRAC import gLogger
| 27.650794 | 115 | 0.644087 |
2ec5bb2ae4b37f160ab9e0941f0b6024ab25a311 | 5,727 | py | Python | dojo/finding_group/views.py | alles-klar/django-DefectDojo | 83630437f7259fdbe633ac21cf5715685ffa7eab | [
"BSD-3-Clause"
] | null | null | null | dojo/finding_group/views.py | alles-klar/django-DefectDojo | 83630437f7259fdbe633ac21cf5715685ffa7eab | [
"BSD-3-Clause"
] | 48 | 2021-04-14T13:02:43.000Z | 2021-07-06T03:08:36.000Z | dojo/finding_group/views.py | Hijerboa/django-DefectDojo | 3aea3bc3406f860c0842b0bf8800efe2c86bf81b | [
"BSD-3-Clause"
] | null | null | null | # # findings
from dojo.utils import Product_Tab
from dojo.forms import DeleteFindingGroupForm
from dojo.notifications.helper import create_notification
from django.contrib import messages
from django.contrib.admin.utils import NestedObjects
from django.db.utils import DEFAULT_DB_ALIAS
from django.http.response import ... | 41.201439 | 165 | 0.640475 |
2ec603a6f9e4717583739386a5137cf37166725f | 899 | py | Python | yt/data_objects/tests/test_time_series.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/data_objects/tests/test_time_series.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/data_objects/tests/test_time_series.py | cevans216/yt | c19c3c615b996c8a6e418362ffea9041a616d673 | [
"BSD-3-Clause-Clear"
] | null | null | null | import os
import tempfile
from pathlib import Path
from yt.data_objects.time_series import get_filenames_from_glob_pattern
from yt.testing import assert_raises
| 32.107143 | 80 | 0.719689 |
2ec66dedba0a3ea331f1648a84344fc949e5d2d8 | 1,561 | py | Python | convolut/model/infer_manager.py | convolut/convolut | e7168ace62f70f9df084a652a2b8fa70a6902e55 | [
"Apache-2.0"
] | 9 | 2020-01-07T06:05:58.000Z | 2020-07-03T12:24:31.000Z | convolut/model/infer_manager.py | convolut/convolut | e7168ace62f70f9df084a652a2b8fa70a6902e55 | [
"Apache-2.0"
] | null | null | null | convolut/model/infer_manager.py | convolut/convolut | e7168ace62f70f9df084a652a2b8fa70a6902e55 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, Any, Callable, Optional
import torch
from decouple import Module
from torch import nn
from .events import (
ModelForwardStartEvent, ModelForwardEndEvent, ModelInitEvent)
from ..loader import LoaderProcessBatchStartEvent
from ..runner import RunnerStartEvent
| 30.607843 | 83 | 0.659193 |
2ec6e351dbc729dce4e6093ba50a29cd08481843 | 1,757 | py | Python | src/mainLogging.py | madsmcmillan/banner | 3af13f9f98f82a76a35fa0710b2d91e8f5700f68 | [
"MIT"
] | 1 | 2018-02-16T00:07:53.000Z | 2018-02-16T00:07:53.000Z | src/mainLogging.py | npeirson/banner | 111fab25186218616154427aa89cb760da27856f | [
"MIT"
] | null | null | null | src/mainLogging.py | npeirson/banner | 111fab25186218616154427aa89cb760da27856f | [
"MIT"
] | 1 | 2018-09-13T03:07:29.000Z | 2018-09-13T03:07:29.000Z | ##############################################################################
## Project Banner: Sensor Data Logging
## Created: 07-11-2016 by Madeline McMillan and Nate Peirson
## Texas A&M University, Department of Aerospace Engineering
## High Altitude Balloon Club
## Sensor data points are taken by this script
... | 45.051282 | 269 | 0.659078 |
2ec8dec92401e9edf634f58ca9898bb731b42c37 | 1,064 | py | Python | send-sms.py | ssb22/wm6-utils | f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110 | [
"Unlicense"
] | null | null | null | send-sms.py | ssb22/wm6-utils | f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110 | [
"Unlicense"
] | null | null | null | send-sms.py | ssb22/wm6-utils | f50a7ab9d8af0ec66d8c0ef0a1940a0f0aa47110 | [
"Unlicense"
] | null | null | null | # Send SMS message on WM6 phone from Python 2
# Silas S. Brown - public domain
import ctypes
import ctypes.wintypes as wintypes
| 39.407407 | 66 | 0.706767 |
2ec8fa8c17f427ed5b596ab0b26621b33bf8f593 | 3,861 | py | Python | temp_model.py | MashaIO/dlmladv | 5b29980fe747c9930d00809e744f7ce7d14361bf | [
"MIT"
] | null | null | null | temp_model.py | MashaIO/dlmladv | 5b29980fe747c9930d00809e744f7ce7d14361bf | [
"MIT"
] | null | null | null | temp_model.py | MashaIO/dlmladv | 5b29980fe747c9930d00809e744f7ce7d14361bf | [
"MIT"
] | null | null | null | #coding=utf-8
from __future__ import print_function
try:
import numpy as np
except:
pass
try:
from hyperopt import Trials, STATUS_OK, tpe
except:
pass
try:
from keras.datasets import mnist
except:
pass
try:
from keras.layers.core import Dense, Dropout, Activation
except:
pass
try:
... | 23.833333 | 83 | 0.668998 |
2ecac107d81b614bc0d2dcd0fc9f423d25ba08b6 | 4,313 | py | Python | hard/tools/bom_html_with_advanced_grouping.py | agustinBassi/juegoSimon | 8ada5b5fcc456dcffcc0cbb1a93fbc4754572007 | [
"BSD-2-Clause"
] | null | null | null | hard/tools/bom_html_with_advanced_grouping.py | agustinBassi/juegoSimon | 8ada5b5fcc456dcffcc0cbb1a93fbc4754572007 | [
"BSD-2-Clause"
] | null | null | null | hard/tools/bom_html_with_advanced_grouping.py | agustinBassi/juegoSimon | 8ada5b5fcc456dcffcc0cbb1a93fbc4754572007 | [
"BSD-2-Clause"
] | null | null | null | #
# Example python script to generate a BOM from a KiCad generic netlist
#
# Example: Sorted and Grouped HTML BOM with advanced grouping
#
"""
@package
Generate a HTML BOM list.
Components are sorted and grouped by value
Fields are (if exist)
Ref, Quantity, Value, Part, Footprint, Description, Vend... | 33.176923 | 79 | 0.646882 |
2ecb0816be05abed47d0b45283c0a0ba32a21fef | 7,908 | py | Python | line_extract/model_v3.py | hoslo/ocr | 4f78ae7013beb2cab8fb9391ba25ba5e6e78967c | [
"Apache-2.0"
] | 4 | 2019-05-27T10:23:55.000Z | 2020-01-19T10:03:14.000Z | line_extract/model_v3.py | dun933/ocr | 4f78ae7013beb2cab8fb9391ba25ba5e6e78967c | [
"Apache-2.0"
] | null | null | null | line_extract/model_v3.py | dun933/ocr | 4f78ae7013beb2cab8fb9391ba25ba5e6e78967c | [
"Apache-2.0"
] | 3 | 2019-08-16T18:24:02.000Z | 2020-05-15T06:35:45.000Z | import os
from keras.models import *
from keras.layers import *
from keras.optimizers import Adam
import tensorflow as tf
import keras
import itertools
import numpy as np
from keras.callbacks import Callback
from sklearn.metrics import confusion_matrix, f1_score, precision_score, recall_score
import tensorflow as tf
fr... | 45.976744 | 113 | 0.68083 |
2ecbc23da4493780a4b43db3b26245823e15d32e | 5,925 | py | Python | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | 3 | 2019-06-12T17:19:12.000Z | 2022-01-07T02:10:06.000Z | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | bsm/paradag/__init__.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | ''' This package comes from https://github.com/xianghuzhao/paradag
It can also be installed by "pip install paradag"
'''
import random
# TODO: report_*, deliver, abort should be optional
# TODO: Use Vertice as core. Processor, Selector and Executor should all surround Vertice
def dag_run(dag, selector=None, ... | 27.430556 | 102 | 0.649451 |
2eccbc156b4505de0db85d95b51443c5f217b8c1 | 33,547 | py | Python | pensa/comparison/statespecific.py | NeilJ-Thomson/pensa | f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb | [
"MIT"
] | 55 | 2020-11-18T07:03:46.000Z | 2022-03-29T02:47:10.000Z | pensa/comparison/statespecific.py | NeilJ-Thomson/pensa | f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb | [
"MIT"
] | 11 | 2020-11-18T16:43:43.000Z | 2022-02-22T20:02:22.000Z | pensa/comparison/statespecific.py | NeilJ-Thomson/pensa | f2cc586ad8c4b60177051fc9a5d2da087ac1b6fb | [
"MIT"
] | 11 | 2020-11-19T04:34:36.000Z | 2022-03-01T23:48:57.000Z | import numpy as np
from tqdm import tqdm
from pensa.features import *
from pensa.statesinfo import *
# -- Functions to calculate SSI statistics across paired ensembles --
def ssi_ensemble_analysis(features_a, features_b, all_data_a, all_data_b, torsions=None, pocket_occupancy=None, pbc=True,
... | 44.551129 | 150 | 0.590455 |
2ecdb4a48fe7a624c03288fdd20c3df4771fcc1e | 16,582 | py | Python | test/python/rest/test_toolkits.py | ddebrunner/streamsx.topology | 5006453e915ae3a7945585f63f2082610a824023 | [
"Apache-2.0"
] | null | null | null | test/python/rest/test_toolkits.py | ddebrunner/streamsx.topology | 5006453e915ae3a7945585f63f2082610a824023 | [
"Apache-2.0"
] | null | null | null | test/python/rest/test_toolkits.py | ddebrunner/streamsx.topology | 5006453e915ae3a7945585f63f2082610a824023 | [
"Apache-2.0"
] | null | null | null | import os
import logging
import time
import unittest
import urllib.parse
import xml.etree.ElementTree as ElementTree
from streamsx.topology.tester import Tester
from streamsx.topology.context import ConfigParams, JobConfig
from streamsx.build import BuildService
from streamsx.rest_primitives import *
logger = loggin... | 40.842365 | 126 | 0.641298 |
2ecf85b27afc09640a82b97f465143a5ec26f976 | 1,730 | py | Python | core/rewrite.py | DCZYewen/NullDCZHFS | 974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be | [
"MIT"
] | 1 | 2020-05-13T15:54:36.000Z | 2020-05-13T15:54:36.000Z | core/rewrite.py | DCZYewen/NullcatServer | 974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be | [
"MIT"
] | null | null | null | core/rewrite.py | DCZYewen/NullcatServer | 974ffd8c688eb45f5a0ee76636bbfd6a86ecd3be | [
"MIT"
] | null | null | null | import asyncio
from .config import conf
from .logger import main_logger
from .web import HTTPRequest, http301, WebHandler
log = main_logger.get_logger()
target_port = conf.get("https", "port")
| 34.6 | 109 | 0.631792 |
2ecfa0d95f020f2b485feb32481f32e2baf2f0f3 | 3,619 | py | Python | writing/scripts/QD-other-metrics.py | johanere/qflow | 5453cd5c3230ad7f082adf9ec1aea63ab0a4312a | [
"MIT"
] | 5 | 2019-07-24T21:46:24.000Z | 2021-06-11T18:18:24.000Z | writing/scripts/QD-other-metrics.py | johanere/qflow | 5453cd5c3230ad7f082adf9ec1aea63ab0a4312a | [
"MIT"
] | 22 | 2019-02-19T10:49:26.000Z | 2019-07-18T09:42:13.000Z | writing/scripts/QD-other-metrics.py | bsamseth/FYS4411 | 72b879e7978364498c48fc855b5df676c205f211 | [
"MIT"
] | 2 | 2020-11-04T15:17:24.000Z | 2021-11-03T16:37:38.000Z | import time
from datetime import timedelta
import numpy as np
from qflow.wavefunctions import (
JastrowPade,
SimpleGaussian,
WavefunctionProduct,
Dnn,
InputSorter,
)
from qflow.wavefunctions.nn.layers import DenseLayer
from qflow.wavefunctions.nn.activations import tanh, exponential
from qflow.hami... | 28.273438 | 84 | 0.727273 |
2ed116d59c2b0c901b520091f0adae6d5dd2c1e7 | 2,721 | py | Python | docs/testcases/test_CON_TC28_ManyArticle.py | iiistvan/conduit | 4ee93a61371747ad5f70f51a52a80ecd57a86979 | [
"MIT"
] | null | null | null | docs/testcases/test_CON_TC28_ManyArticle.py | iiistvan/conduit | 4ee93a61371747ad5f70f51a52a80ecd57a86979 | [
"MIT"
] | null | null | null | docs/testcases/test_CON_TC28_ManyArticle.py | iiistvan/conduit | 4ee93a61371747ad5f70f51a52a80ecd57a86979 | [
"MIT"
] | null | null | null | # CON_TC28_ManyArticle: Ismtelt s sorozatos adatbevitel adatforrsbl
# a szksges csomagok, modulok betltse
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import time
import csv
| 35.337662 | 83 | 0.642411 |
2ed2120ed3b51f8f3b66f633df4e04159fd5c611 | 2,943 | py | Python | flask_discord_interactions/tests/test_subcommand.py | ccall48/flask-discord-interactions | 37bc73fdfea038051eb934590ef3b53660ce0517 | [
"MIT"
] | null | null | null | flask_discord_interactions/tests/test_subcommand.py | ccall48/flask-discord-interactions | 37bc73fdfea038051eb934590ef3b53660ce0517 | [
"MIT"
] | null | null | null | flask_discord_interactions/tests/test_subcommand.py | ccall48/flask-discord-interactions | 37bc73fdfea038051eb934590ef3b53660ce0517 | [
"MIT"
] | null | null | null | from flask_discord_interactions import CommandOptionType, Context, Member
| 29.138614 | 77 | 0.53245 |
2ed237d4467097a51db0627eb2ded835cad1f51c | 783 | py | Python | Chatbot_Model/Time_Convert/setup.py | guci314/Chatbot_CN | 02044eed4a141aa8c61d6064c166f95dbdae894c | [
"Apache-2.0"
] | 8 | 2019-08-12T12:38:35.000Z | 2022-02-21T03:25:04.000Z | Chatbot_Model/Time_Convert/setup.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | null | null | null | Chatbot_Model/Time_Convert/setup.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | 5 | 2020-01-08T15:30:38.000Z | 2022-02-15T02:39:46.000Z | #-*- coding:utf-8 _*-
"""
@author:charlesXu
@file: setup.py
@desc:
@time: 2019/05/23
"""
from setuptools import setup
setup(
name="TimeConverter",
version="1.1.0",
keywords=("time", "nlp"),
description="...",
long_description="...",
license="MIT Licence",
url="http://test.com",
author... | 23.727273 | 52 | 0.556833 |
2ed3ab82046ebfee2aac3079195285f7716ed549 | 4,599 | py | Python | tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 5 | 2022-01-28T20:30:34.000Z | 2022-03-17T09:26:52.000Z | tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 9 | 2022-01-27T03:50:28.000Z | 2022-02-08T18:42:17.000Z | tests/unit_tests/test_verifiers/test_common/test_reductions/test_iopolytope/test_HyperRectangle.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 2 | 2022-02-03T17:32:43.000Z | 2022-03-24T16:38:49.000Z | import numpy as np
import pytest
from dnnv.verifiers.common.reductions.iopolytope import *
from dnnv.verifiers.common.reductions.iopolytope import Variable
| 27.538922 | 87 | 0.607088 |
2ed7a7df06cc4cee499aace6ba6f51568d3566d0 | 615 | py | Python | pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py | EricMendoza412/pawnshop_management | 62d22f6435c3b8737c51923f1d28a0201fa0b9c8 | [
"MIT"
] | null | null | null | pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py | EricMendoza412/pawnshop_management | 62d22f6435c3b8737c51923f1d28a0201fa0b9c8 | [
"MIT"
] | null | null | null | pawnshop_management/pawnshop_management/doctype/pawn_ticket_jewelry/pawn_ticket_jewelry.py | EricMendoza412/pawnshop_management | 62d22f6435c3b8737c51923f1d28a0201fa0b9c8 | [
"MIT"
] | 1 | 2022-03-18T06:50:55.000Z | 2022-03-18T06:50:55.000Z | # Copyright (c) 2022, Rabie Moses Santillan and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
| 32.368421 | 64 | 0.756098 |
2ed7cd4779677abe2c51e5cf328f96abc94a57d9 | 346 | py | Python | assignments/activity_plots.py | olzama/Ling471-Spring2021-UW | ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e | [
"MIT"
] | null | null | null | assignments/activity_plots.py | olzama/Ling471-Spring2021-UW | ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e | [
"MIT"
] | null | null | null | assignments/activity_plots.py | olzama/Ling471-Spring2021-UW | ed05fa17874ce1f267c6e76ddbf9bfac7aadfb5e | [
"MIT"
] | 1 | 2022-03-28T17:26:46.000Z | 2022-03-28T17:26:46.000Z | import matplotlib.pyplot as plt
# Example plot
X = range(-5, 5) # Note the missing +5!
Y = [pow(x, 2) for x in X]
plt.plot(X, Y) plt.show()
plt.xlabel('X', color='fuchsia', fontweight='bold')
plt.ylabel('f(x)')
plt.plot(X, Y, 'o-', label='squared') # other styles: '--', ':'
plt.legend(loc="upper left")
plt.savefig... | 21.625 | 63 | 0.632948 |
2ed935028fe8c43b6cd7752c0576990680836a21 | 1,866 | py | Python | project/bots/analyser/elastic_analyser.py | VendettaTeam/botov-net | 40da19c03793e15653b0cc2b5cde3987b64b202f | [
"MIT"
] | null | null | null | project/bots/analyser/elastic_analyser.py | VendettaTeam/botov-net | 40da19c03793e15653b0cc2b5cde3987b64b202f | [
"MIT"
] | 5 | 2021-03-19T02:24:29.000Z | 2022-02-10T13:19:13.000Z | project/bots/analyser/elastic_analyser.py | VendettaTeam/botov-net | 40da19c03793e15653b0cc2b5cde3987b64b202f | [
"MIT"
] | null | null | null | from .analyser import Analyser
from project.bots.response.response_answer import ResponseAnswer
from project.bots.response.response import BotResponse
from project.bots.response.unknown_response import UnknownResponse
from project.bots.documents import MessagesDocument
from project.bots.models import Messages
| 35.884615 | 87 | 0.65702 |
2ed98896d9e5eef596d50440a0d845385714e30d | 1,258 | py | Python | tasks/supporters/settings.py | breefkase/tasks-cli | fcc785d4ab8710606aac37d52256d250d06af204 | [
"MIT"
] | null | null | null | tasks/supporters/settings.py | breefkase/tasks-cli | fcc785d4ab8710606aac37d52256d250d06af204 | [
"MIT"
] | null | null | null | tasks/supporters/settings.py | breefkase/tasks-cli | fcc785d4ab8710606aac37d52256d250d06af204 | [
"MIT"
] | null | null | null | from pathlib import Path
import json
| 34.944444 | 87 | 0.569952 |
2eda6e2c94adaa4ac4b0c55924f01d3dee45cd41 | 244 | py | Python | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | # _*_ coding:utf-8 _*_
# hungryboy
# @Time: 2021/1/28
# @File: class01.py
print("hungryboypython") | 16.266667 | 32 | 0.631148 |
2edb23164b8db38139af3fd55a1813a6f7890fb5 | 4,751 | py | Python | bcs-ui/backend/iam/permissions/resources/cluster.py | ZhongmingFan/bk-bcs | e4b36b05e837e6a8468994869b0f55c972381a20 | [
"Apache-2.0"
] | null | null | null | bcs-ui/backend/iam/permissions/resources/cluster.py | ZhongmingFan/bk-bcs | e4b36b05e837e6a8468994869b0f55c972381a20 | [
"Apache-2.0"
] | null | null | null | bcs-ui/backend/iam/permissions/resources/cluster.py | ZhongmingFan/bk-bcs | e4b36b05e837e6a8468994869b0f55c972381a20 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 38.942623 | 115 | 0.733109 |
2edbbcc4cbccb7869b9b3a5ffedc9be2301ea298 | 371 | py | Python | test/test_dc_coastal_change.py | M3nin0/data_cube_utilities | badd774c35babc5becc17e1a2b38a0d1782d3540 | [
"Apache-2.0"
] | 14 | 2017-03-20T02:37:18.000Z | 2022-01-23T05:36:39.000Z | test/test_dc_coastal_change.py | M3nin0/data_cube_utilities | badd774c35babc5becc17e1a2b38a0d1782d3540 | [
"Apache-2.0"
] | 7 | 2021-03-31T20:12:05.000Z | 2022-03-12T00:55:06.000Z | test/test_dc_coastal_change.py | M3nin0/data_cube_utilities | badd774c35babc5becc17e1a2b38a0d1782d3540 | [
"Apache-2.0"
] | 21 | 2017-03-06T08:55:24.000Z | 2021-12-17T04:32:39.000Z | import unittest
from data_cube_utilities import dc_coastal_change
| 16.863636 | 51 | 0.703504 |
2edbc9f51c11e70b2a76fe52fbaa4aafdb7938e5 | 502 | py | Python | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | import argparse
from joblib import Parallel, delayed
from scripts.ssc.TopoAE_ext.config_libraries.swissroll import swissroll_run1
from src.models.WitnessComplexAE.train_engine import simulator_TopoAE_ext
if __name__ == "__main__":
Parallel(n_jobs=4)(delayed(simulator_TopoAE_ext)(config) for config in swissrol... | 29.529412 | 90 | 0.788845 |
2edc3f792e182de7dfa82061e009b428d2e09ffd | 41,666 | py | Python | nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 3 | 2020-10-22T13:28:00.000Z | 2022-03-24T19:57:22.000Z | nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | null | null | null | nlplingo/oregon/event_models/uoregon/models/pipeline/_01/modules/argument_model.py | BBN-E/nlplingo | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | [
"Apache-2.0"
] | 1 | 2020-10-22T13:29:51.000Z | 2020-10-22T13:29:51.000Z | # -*- coding: utf-8 -*-
from nlplingo.common.utils import DEPREL_TO_ID # ==>
from nlplingo.oregon.event_models.uoregon.models.pipeline._01.local_constants import *
from fairseq.models.roberta import XLMRModel
from nlplingo.oregon.event_models.uoregon.tools.utils import *
from nlplingo.oregon.event_models.uoregon.layer... | 52.875635 | 167 | 0.47672 |
2edc62a2e3c3d4664ec1267a615b4c63d54b1f65 | 3,203 | py | Python | models/lstm.py | k-jun/sotuken | 7e7c1202653bda8b95ebe6627e5cf12000d5704f | [
"MIT"
] | null | null | null | models/lstm.py | k-jun/sotuken | 7e7c1202653bda8b95ebe6627e5cf12000d5704f | [
"MIT"
] | null | null | null | models/lstm.py | k-jun/sotuken | 7e7c1202653bda8b95ebe6627e5cf12000d5704f | [
"MIT"
] | null | null | null | # ref: https://www.tensorflow.org/guide/keras/rnn
# ref: https://www.tensorflow.org/tutorials/structured_data/time_series
from __future__ import absolute_import, division, print_function, unicode_literals
import collections
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import tensorflow as tf
... | 31.097087 | 107 | 0.674056 |
2ede893a1fd4b8b59efb44450c5f33e55ff0017c | 436 | py | Python | tests/system/test_hello.py | bnwest/FastApiMicroService | 1768f28974fea6dda1cc4312b3beca78401f9dfb | [
"CC0-1.0"
] | 1 | 2021-06-18T16:29:49.000Z | 2021-06-18T16:29:49.000Z | tests/system/test_hello.py | bnwest/FastApiMicroService | 1768f28974fea6dda1cc4312b3beca78401f9dfb | [
"CC0-1.0"
] | null | null | null | tests/system/test_hello.py | bnwest/FastApiMicroService | 1768f28974fea6dda1cc4312b3beca78401f9dfb | [
"CC0-1.0"
] | null | null | null | import os
import requests
# export FASTAPI_ROOT="http://fastapi-micro-service:8000"
FASTAPI_ROOT = os.environ.get("FASTAPI_ROOT")
| 27.25 | 57 | 0.731651 |
2ee26b71fd2072fa05c57d9cb340d3820903a6ac | 221 | py | Python | examples/example_image_clear.py | cloudmesh-community/cm-burn | 536e2762d3c28ff539161dd3eb10c1cd2dedf9b1 | [
"Apache-2.0"
] | null | null | null | examples/example_image_clear.py | cloudmesh-community/cm-burn | 536e2762d3c28ff539161dd3eb10c1cd2dedf9b1 | [
"Apache-2.0"
] | 1 | 2018-11-20T16:17:03.000Z | 2018-11-20T16:17:03.000Z | examples/example_image_clear.py | cloudmesh-community/cm-burn | 536e2762d3c28ff539161dd3eb10c1cd2dedf9b1 | [
"Apache-2.0"
] | 3 | 2018-09-18T00:00:02.000Z | 2018-12-05T17:16:30.000Z | from cloudmesh.burn.image import Image
import os
i = Image()
os.system("touch ~/.cloudmesh/cmburn/images/junk.img")
os.system("touch ~/.cloudmesh/cmburn/images/junk.zip")
r = i.ls()
print (r)
r = i.clear()
print (r)
| 14.733333 | 54 | 0.687783 |
2ee2e6731a1c9e2346795ca28318bd107b7a7619 | 2,963 | py | Python | RafalG/sequence_slice_e.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | RafalG/sequence_slice_e.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | RafalG/sequence_slice_e.py | Khayn/2021-12-elearning-pythonana | a54e407adc8fb8c3a5fd2522735ae09cdef6540a | [
"MIT"
] | null | null | null | """
* Assignment: Sequence Slice Train/Test
* Required: yes
* Complexity: easy
* Lines of code: 4 lines
* Time: 8 min
English:
1. Divide `data` into two lists:
a. `train`: 60% - training data
b. `test`: 40% - testing data
2. Calculate split point:
a. `data` length multiplied by percent
... | 31.860215 | 78 | 0.577118 |
2ee382ef7e4e52fef0695c81d210f8710fbaae22 | 26,869 | py | Python | kiosk/models.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | null | null | null | kiosk/models.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | 14 | 2018-09-12T06:59:55.000Z | 2020-02-26T07:17:48.000Z | kiosk/models.py | AndiBr/ffksk | ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from dateutil import tz
import pytz
from datetime import date
from django.core.validators import MinValueValidator
from django.db import transaction
from profil.models import KioskUser
from django.db import connection
from django.conf import settings
from ... | 37.526536 | 354 | 0.737318 |
2ee40da39bd2d751bdd4296c97d932bca4108462 | 910 | py | Python | ex_15/ex_15_02.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | ex_15/ex_15_02.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | ex_15/ex_15_02.py | rovelee/py4e | 32125f5d62b6c7b6a56c8e1a250c1d81c6d54006 | [
"MIT"
] | null | null | null | import sqlite3
import re
from sys import prefix
conn = sqlite3.connect('orgdb.sqlite')
cur = conn.cursor()
cur.execute('DROP TABLE IF EXISTS Counts')
cur.execute('''
CREATE TABLE Counts (org TEXT, count INTEGER)''')
prefix='../file/'
fname = input('Enter file name: ')
if (len(fname) < 1):
fname = 'mbox-short.tx... | 21.162791 | 69 | 0.627473 |
2ee7c94defef9b021d96821b4fb3f10b7d2d409d | 694 | py | Python | src/groups/models.py | OmarYehia/django-social_network | 83fc6fd288fe23684409c43bf51c7fca01297481 | [
"MIT"
] | null | null | null | src/groups/models.py | OmarYehia/django-social_network | 83fc6fd288fe23684409c43bf51c7fca01297481 | [
"MIT"
] | null | null | null | src/groups/models.py | OmarYehia/django-social_network | 83fc6fd288fe23684409c43bf51c7fca01297481 | [
"MIT"
] | 1 | 2021-05-13T15:08:12.000Z | 2021-05-13T15:08:12.000Z | from django.db import models
from profiles.models import Profile
# Create your models here.
| 34.7 | 85 | 0.724784 |
2ee7fb23d90df230952beef9e9b26c2d9645d6d2 | 7,111 | py | Python | scripts/test_pretrained_model.py | NamJiii/PECNet | b99f54dacc14ff079222b3a339428c10e622cb16 | [
"MIT"
] | null | null | null | scripts/test_pretrained_model.py | NamJiii/PECNet | b99f54dacc14ff079222b3a339428c10e622cb16 | [
"MIT"
] | null | null | null | scripts/test_pretrained_model.py | NamJiii/PECNet | b99f54dacc14ff079222b3a339428c10e622cb16 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import sys
from torch.utils.data import DataLoader
import argparse
import copy
sys.path.append("../utils/")
import matplotlib.pyplot as plt
import numpy as np
from models import *
from social_utils import *
import yaml
parse... | 39.071429 | 487 | 0.696527 |
2ee7fd84d8fa002e0d13f33ba310cdac5cb3d3f4 | 3,386 | py | Python | Count/src/index.py | ApperPh/aws-cloudformation-macros | 74c6b969d9780fd930b76325af5baaf1d15be572 | [
"Apache-2.0"
] | null | null | null | Count/src/index.py | ApperPh/aws-cloudformation-macros | 74c6b969d9780fd930b76325af5baaf1d15be572 | [
"Apache-2.0"
] | null | null | null | Count/src/index.py | ApperPh/aws-cloudformation-macros | 74c6b969d9780fd930b76325af5baaf1d15be572 | [
"Apache-2.0"
] | null | null | null | import copy
import json
| 46.383562 | 138 | 0.674247 |
2ee9442cf0b747887f56ef399cd05098b20a5c95 | 176,065 | py | Python | intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | 1 | 2019-09-06T11:55:29.000Z | 2019-09-06T11:55:29.000Z | intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | null | null | null | intensio/test/python/advanced/output/basicRAT-example/core/TrNyQrwBvIPHpfSTViMBqueBppNSmHsjaYRzCIUnZGssHFZOnGvbeYBzohXKYFkpdJWLMHzjkYZVOwJOJLhASWYmJogCqrdkDFciQiRvNRYsljZPbmBTSKePnbUSviji.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | null | null | null | MWZWSmMhtUsRrINuSTzFrxaxjBTBJqSWKuKnGWRXkqWQJqFZtHcGtyMgFWrExRGweSHLOCtzbXotCELvYZdsUDmsxKLYPEnCGzbpsNkLrKPigaoVayVePBGtbjfjhKyb="""
\x23\x20\x2d\x2a\x2d\x20\x63\x6f\x64\x69\x6e\x67\x3a\x20\x75\x74\x66\x2d\x38\x20\x2d\x2a\x2d\x0a
\x69\x6d\x70\x6f\x72\x74\x20\x64\x61\x74\x65\x74\x69\x6d\x65\x0a
\x53\x4b\x4f\x47\x5a\x7a\... | 912.253886 | 1,172 | 0.749513 |
2ee971f0a382fe6fbd625d25b5631b8db3539cec | 8,745 | py | Python | dali/test/python/test_operator_readers_webdataset_corner.py | barci2/DALI | 21a51891eae9ad6f7fc8b17d7dccc65465783d2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dali/test/python/test_operator_readers_webdataset_corner.py | barci2/DALI | 21a51891eae9ad6f7fc8b17d7dccc65465783d2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dali/test/python/test_operator_readers_webdataset_corner.py | barci2/DALI | 21a51891eae9ad6f7fc8b17d7dccc65465783d2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requi... | 31.010638 | 100 | 0.641624 |
2ee978484eedfa6f0ee35b6d2e588d59022d7378 | 461 | py | Python | lessons/lesson3/t210.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | lessons/lesson3/t210.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | lessons/lesson3/t210.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | # t210.py
from machine import Pin
from simp_py import tft
count=0
btnA= Pin(39,Pin.IN)
a = Pin(5, Pin.IN,Pin.PULL_UP)
b = Pin(2, Pin.IN,Pin.PULL_UP)
a.irq(counting,trigger=Pin.IRQ_RISING| Pin.IRQ_FALLING)
pcount=-1
while 1:
if btnA.value()==0:
count=0
if pcount != count:
pcount=count
tft.tft.text(0,100,... | 20.043478 | 55 | 0.646421 |
2ee9b23e78afb82a590a362f8bb474641574a4b8 | 2,876 | py | Python | server/apps/utils/timezone_utils.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/timezone_utils.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/timezone_utils.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | import datetime
import logging
import pytz
from django.utils import timezone
from django.utils.dateparse import parse_date, parse_datetime
logger = logging.getLogger(__name__)
Y2K = datetime.datetime(2000, 1, 1)
def formated_timedelta(total_seconds):
"""
Format time delta as H:M:S\
:param total_secon... | 27.132075 | 92 | 0.638039 |
2eeba743b811e114065608b85445aefb3e686e15 | 297 | py | Python | pyplumio/structures/__init__.py | denpamusic/PyPlumIO | 16e8049977cbfbb1bd6c830beb751e65ee270295 | [
"MIT"
] | 1 | 2022-03-24T21:44:59.000Z | 2022-03-24T21:44:59.000Z | pyplumio/structures/__init__.py | denpamusic/PyPlumIO | 16e8049977cbfbb1bd6c830beb751e65ee270295 | [
"MIT"
] | null | null | null | pyplumio/structures/__init__.py | denpamusic/PyPlumIO | 16e8049977cbfbb1bd6c830beb751e65ee270295 | [
"MIT"
] | null | null | null | """Contains structure parsers."""
__all__ = [
"alarms",
"device_parameters",
"frame_versions",
"lambda_",
"mixer_parameters",
"mixers",
"modules",
"output_flags",
"outputs",
"statuses",
"temperatures",
"thermostats",
"uid",
"var_string",
]
| 15.631579 | 33 | 0.56229 |
2eecd8b51024630d653e89416e0c7dd612ac554f | 2,805 | py | Python | examples/client/python/cancel_tasks.py | kirillsc/aws-htc-grid | d1dd8068c3aebc3c04904b3daefc142a4b96872b | [
"Apache-2.0"
] | 24 | 2021-04-14T11:57:42.000Z | 2022-03-23T17:09:12.000Z | examples/client/python/cancel_tasks.py | kirillsc/aws-htc-grid | d1dd8068c3aebc3c04904b3daefc142a4b96872b | [
"Apache-2.0"
] | 9 | 2021-04-23T08:44:13.000Z | 2021-09-15T13:37:42.000Z | examples/client/python/cancel_tasks.py | kirillsc/aws-htc-grid | d1dd8068c3aebc3c04904b3daefc142a4b96872b | [
"Apache-2.0"
] | 15 | 2021-04-14T11:53:58.000Z | 2022-02-28T16:45:47.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# Licensed under the Apache License, Version 2.0 https://aws.amazon.com/apache-2-0/
from api.connector import AWSConnector
import os
import json
import time
import argparse
try:
client_config_file = os... | 28.622449 | 99 | 0.671301 |
2eee783f48eb0a497623c6955f7e5e7628fdc3db | 1,745 | py | Python | SATguess.py | gradyap/random_quiz | 68d150731e2d3465e5789b3f5463ef4fc0da5167 | [
"MIT"
] | null | null | null | SATguess.py | gradyap/random_quiz | 68d150731e2d3465e5789b3f5463ef4fc0da5167 | [
"MIT"
] | null | null | null | SATguess.py | gradyap/random_quiz | 68d150731e2d3465e5789b3f5463ef4fc0da5167 | [
"MIT"
] | null | null | null | import random
#setting variables
ranwins = 0
conwins = 0
ties = 0
takes = 1000
for quiz in range (0, takes):
rancorrect=0
ranincorrect=0
concorrect=0
conincorrect=0
revisions=1000
possible = 4
# the consistent variable remains constant through the entire sequence
# and is compared to the same s... | 35.612245 | 118 | 0.65788 |
2eee9d309fd7f5c6301b77cefb4ea94494b674f4 | 901 | py | Python | scheduler.py | kenseitrg/room-monitor | 38f6d7fbee1256bc89b1325a923dbb8a8b929488 | [
"Unlicense"
] | null | null | null | scheduler.py | kenseitrg/room-monitor | 38f6d7fbee1256bc89b1325a923dbb8a8b929488 | [
"Unlicense"
] | 1 | 2021-06-01T23:52:57.000Z | 2021-06-01T23:52:57.000Z | scheduler.py | kenseitrg/room-monitor | 38f6d7fbee1256bc89b1325a923dbb8a8b929488 | [
"Unlicense"
] | null | null | null | import threading
import time
from typing import Callable, List, Dict | 29.064516 | 81 | 0.584906 |
2ef0ae28dcfa3b8a86e8b20eea0bb85319cef17d | 356 | py | Python | polyglotdb/query/discourse/query.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 25 | 2016-01-28T20:47:07.000Z | 2021-11-29T16:13:07.000Z | polyglotdb/query/discourse/query.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 120 | 2016-04-07T17:55:09.000Z | 2022-03-24T18:30:10.000Z | polyglotdb/query/discourse/query.py | PhonologicalCorpusTools/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 10 | 2015-12-03T20:06:58.000Z | 2021-02-11T03:02:48.000Z | from ..base import BaseQuery
from .attributes import DiscourseNode
| 27.384615 | 86 | 0.730337 |
2ef23bdc25e698b08ae27de75aab909449244e12 | 5,166 | py | Python | main.py | dcabezas98/DDSI | 011574ce8c084363090271cbc17510e4b443905c | [
"MIT"
] | null | null | null | main.py | dcabezas98/DDSI | 011574ce8c084363090271cbc17510e4b443905c | [
"MIT"
] | null | null | null | main.py | dcabezas98/DDSI | 011574ce8c084363090271cbc17510e4b443905c | [
"MIT"
] | 1 | 2021-01-09T18:27:23.000Z | 2021-01-09T18:27:23.000Z | import pymysql as mdb
import sys
# Main
if __name__=="__main__":
ip = sys.argv[1]
user = sys.argv[2]
passwd = sys.argv[3]
db = sys.argv[4]
app = App(ip, user, passwd, db)
app.mainloop()
| 30.210526 | 139 | 0.578784 |
2ef25b45df51b2f3ee20981837c4f8427530bc4f | 2,533 | py | Python | pymc3/plots/energyplot.py | rsumner31/pymc3-2 | e824294ddfb45610536cad07394b8c290904c38d | [
"Apache-2.0"
] | 1 | 2019-03-01T06:05:48.000Z | 2019-03-01T06:05:48.000Z | pymc3/plots/energyplot.py | shunanzhang/pymc3 | fde52a4a69be1b0887a2f7861801fb48c941bbe6 | [
"Apache-2.0"
] | null | null | null | pymc3/plots/energyplot.py | shunanzhang/pymc3 | fde52a4a69be1b0887a2f7861801fb48c941bbe6 | [
"Apache-2.0"
] | null | null | null | import warnings
import numpy as np
try:
import matplotlib.pyplot as plt
except ImportError: # mpl is optional
pass
from .kdeplot import kdeplot
def energyplot(trace, kind='kde', figsize=None, ax=None, legend=True, shade=0.35, bw=4.5,
frame=True, kwargs_shade=None, **kwargs):
"""Plot energ... | 28.460674 | 99 | 0.620213 |
2ef3c2563763d28a137338103321c672c4fc64a8 | 6,852 | py | Python | portfolio/forms.py | DriptaSenapati/myPortfolio | 094bf3054dcbff17cd6a8bb6527addcdda780f7d | [
"MIT"
] | null | null | null | portfolio/forms.py | DriptaSenapati/myPortfolio | 094bf3054dcbff17cd6a8bb6527addcdda780f7d | [
"MIT"
] | null | null | null | portfolio/forms.py | DriptaSenapati/myPortfolio | 094bf3054dcbff17cd6a8bb6527addcdda780f7d | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed, FileRequired
from wtforms import StringField, PasswordField, SubmitField, BooleanField, FieldList, TextAreaField, IntegerField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from wtforms.fields.html5... | 42.559006 | 113 | 0.627116 |
2ef74fe559909b6050f7a7dd49867a660fe27a5c | 14,986 | py | Python | src/HumanPose.py | burgessadrien/human-pose | a63f75f83f35f195b5195ce5518c1101f074196b | [
"MIT"
] | null | null | null | src/HumanPose.py | burgessadrien/human-pose | a63f75f83f35f195b5195ce5518c1101f074196b | [
"MIT"
] | null | null | null | src/HumanPose.py | burgessadrien/human-pose | a63f75f83f35f195b5195ce5518c1101f074196b | [
"MIT"
] | null | null | null | from imutils.object_detection import non_max_suppression
from imutils import paths, resize
import numpy as np
import argparse
import imutils
import cv2
from math import cos, sin, atan
import time
# pt2 x > pt1 x
# To remove section specified from image
if __name__ == "__main__":
main()
# Body Part Appro... | 37.465 | 133 | 0.61117 |
2ef86256c31b8117ad52ae4437715bf8e3b2b1af | 2,027 | py | Python | zekeconv/zekeconv.py | StanislavKlenin/zekeconv | a690bd9ece0151c0780dbb1780fdd4b7bcd7546c | [
"Apache-2.0"
] | null | null | null | zekeconv/zekeconv.py | StanislavKlenin/zekeconv | a690bd9ece0151c0780dbb1780fdd4b7bcd7546c | [
"Apache-2.0"
] | null | null | null | zekeconv/zekeconv.py | StanislavKlenin/zekeconv | a690bd9ece0151c0780dbb1780fdd4b7bcd7546c | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
from __future__ import print_function
import argparse
import traceback
import sys
from . import io
from . import utl
if __name__ == '__main__':
sys.exit(main())
| 38.245283 | 112 | 0.587074 |
2ef8ca77af067b0f173acd5d082a652fd6a6e7d5 | 5,470 | py | Python | clin/run.py | herojan/clin | 442d909cfd4e996987801e7aa47746af6d1df049 | [
"MIT"
] | null | null | null | clin/run.py | herojan/clin | 442d909cfd4e996987801e7aa47746af6d1df049 | [
"MIT"
] | null | null | null | clin/run.py | herojan/clin | 442d909cfd4e996987801e7aa47746af6d1df049 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import os
from pathlib import Path
from typing import Optional
import click
from clin.clinfile import calculate_scope
from clin.config import ConfigurationError, load_config
from clin.nakadi import Nakadi, NakadiError
from clin.processor import Processor, ProcessingError
from cli... | 28.195876 | 88 | 0.635466 |
2ef9edaf1fc48d11773cf0a061364a9a10b3eee7 | 13,668 | py | Python | movo_common/movo_ros/src/movo/movo_control_marker.py | zkytony/kinova-movo | 37d7454b2dc589d44133f3913f567b9cc321a66d | [
"BSD-3-Clause"
] | 1 | 2021-06-24T19:20:01.000Z | 2021-06-24T19:20:01.000Z | movo_common/movo_ros/src/movo/movo_control_marker.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | null | null | null | movo_common/movo_ros/src/movo/movo_control_marker.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | 1 | 2020-01-21T11:05:24.000Z | 2020-01-21T11:05:24.000Z | """--------------------------------------------------------------------
Copyright (c) 2017, Kinova Robotics 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 mus... | 44.090323 | 117 | 0.631694 |
2efbe656bc169d6f0a48e304d2e05f7b7b7fd9bb | 412 | py | Python | setup.py | shaunwbell/EcoFOCIpy | 266e8e49b6ee1326aae9d8cf583a98f31d9f271d | [
"MIT"
] | null | null | null | setup.py | shaunwbell/EcoFOCIpy | 266e8e49b6ee1326aae9d8cf583a98f31d9f271d | [
"MIT"
] | 62 | 2021-03-23T18:40:32.000Z | 2022-01-18T22:34:47.000Z | setup.py | shaunwbell/EcoFOCIpy | 266e8e49b6ee1326aae9d8cf583a98f31d9f271d | [
"MIT"
] | null | null | null | # Copyright (c) 2021 EcoFOCIpy
"""Setup script for installing EcoFOCIpy."""
import sys
from setuptools import setup
if sys.version_info[0] < 3:
error = """
EcoFOCIpy requires the Python 3.8 or above, but will install on
all versions of python3.
Python {py} detected.
""".format(py='.'.join([str(v... | 20.6 | 67 | 0.65534 |
2efdf97fa86eb1016906f47bfcb322cf41ba7f62 | 288 | py | Python | opinion_mining/utils/remove_stop_words.py | ricardomilhazes/WellBeingAnalysis | f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea | [
"MIT"
] | 2 | 2021-05-06T11:11:33.000Z | 2021-06-15T19:15:38.000Z | opinion_mining/utils/remove_stop_words.py | ricardomilhazes/WellBeingAnalysis | f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea | [
"MIT"
] | 9 | 2021-04-07T13:47:23.000Z | 2021-06-28T16:08:52.000Z | opinion_mining/utils/remove_stop_words.py | ricardomilhazes/WellBeingAnalysis | f563ad2f059f9ff55e1f67a94e75ff1b5ec5f6ea | [
"MIT"
] | 2 | 2021-11-05T20:35:09.000Z | 2021-12-04T14:38:17.000Z | from nltk.corpus import stopwords
# Remove stop words
stop_words = set(stopwords.words("english"))
| 19.2 | 44 | 0.701389 |
2efdff39a69d773c8b9c3618b0312529b55b1b03 | 3,781 | py | Python | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | 1 | 2022-03-22T14:59:01.000Z | 2022-03-22T14:59:01.000Z | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | null | null | null | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | null | null | null | import os
import torch
import random
import numpy as np
import math
import torch.distributions as pyd
import psutil
import datetime
def soft_update_params(net, target_net, tau):
for param, target_param in zip(net.parameters(), target_net.parameters()):
target_param.data.copy_(tau * param.data +
... | 25.375839 | 137 | 0.633166 |
2c004e45ea18286ed9625f6273b5024c69f28852 | 7,374 | py | Python | ajastin.py | taloprojekti/SP2017 | c5d314169c051e924429f4c3362f3b1be244edb0 | [
"MIT"
] | null | null | null | ajastin.py | taloprojekti/SP2017 | c5d314169c051e924429f4c3362f3b1be244edb0 | [
"MIT"
] | null | null | null | ajastin.py | taloprojekti/SP2017 | c5d314169c051e924429f4c3362f3b1be244edb0 | [
"MIT"
] | 2 | 2017-02-06T15:30:38.000Z | 2019-03-05T15:01:40.000Z |
main()
| 34.138889 | 157 | 0.527122 |
2c0089beb61c511d6d88942a670bc8195c3371e1 | 4,213 | py | Python | executor/tests/transpiler/test_bai_kubernetes_object_builder.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | 6 | 2020-09-29T09:03:04.000Z | 2022-03-14T06:52:25.000Z | executor/tests/transpiler/test_bai_kubernetes_object_builder.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | null | null | null | executor/tests/transpiler/test_bai_kubernetes_object_builder.py | gavinmbell/benchmark-ai-1 | a697e67d68b843fe9350e55871dad867bab5d51d | [
"Apache-2.0"
] | 4 | 2020-10-01T07:49:22.000Z | 2021-06-16T19:44:12.000Z | import base64
import json
import random
from unittest.mock import create_autospec
import pytest
from pytest import fixture
from bai_kafka_utils.executors.descriptor import BenchmarkDescriptor, DescriptorError
from transpiler.bai_knowledge import (
BaiKubernetesObjectBuilder,
SingleRunBenchmarkKubernetesObject... | 31.676692 | 115 | 0.751484 |
2c01ab269b47c91f4b509f0f33edc7280032fd38 | 393 | py | Python | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 3,592 | 2017-03-12T19:44:07.000Z | 2022-03-30T16:03:33.000Z | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,648 | 2017-03-12T23:44:34.000Z | 2022-03-31T15:28:38.000Z | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,736 | 2017-03-13T14:01:28.000Z | 2022-03-31T08:14:24.000Z | from CTFd.constants import RawEnum
| 39.3 | 80 | 0.666667 |
2c02adf446921c10d0ddaf0fd8239df8c3089858 | 1,050 | py | Python | bootstrapvz/plugins/chef/tasks.py | wrigri/bootstrap-vz | 52b5846cb5acd5551fd818b9e84f42683455a3e5 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/chef/tasks.py | wrigri/bootstrap-vz | 52b5846cb5acd5551fd818b9e84f42683455a3e5 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/chef/tasks.py | wrigri/bootstrap-vz | 52b5846cb5acd5551fd818b9e84f42683455a3e5 | [
"Apache-2.0"
] | null | null | null | from bootstrapvz.base import Task
from bootstrapvz.common import phases
import os
| 26.923077 | 89 | 0.746667 |
2c068286183dd2c4b572929f61ede382d5ddfb4a | 295 | py | Python | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-17 20:17
from django.db import migrations
| 17.352941 | 48 | 0.623729 |
2c06caf4f37892f4a59ced3cc2b2789dc5ebd2dd | 370 | py | Python | SUL1/sample/Face_recognition/recog.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 18 | 2017-12-19T07:55:17.000Z | 2020-03-12T11:07:45.000Z | SUL1/sample/Face_recognition/recog.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 1 | 2019-04-18T10:31:41.000Z | 2019-05-23T06:47:24.000Z | SUL1/sample/Face_recognition/recog.py | ddddwee1/SULT | 0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784 | [
"WTFPL"
] | 5 | 2018-06-06T00:51:48.000Z | 2020-03-12T11:07:46.000Z | import resnet3 as net
import numpy as np
import cv2
img = cv2.imread('9_1.jpg')
res1 = net.eval(img.reshape([-1,128,128,3]))
img = cv2.imread('10_1.jpg')
res2 = net.eval(img.reshape([-1,128,128,3]))
res1 = res1/np.linalg.norm(res1)
res2 = res2/np.linalg.norm(res2)
cosres = res1*res2
cosres = cosres.sum()
print(... | 20.555556 | 44 | 0.681081 |
2c07a21caf70e36b4396fdb8399d6c1facb5f0c6 | 2,988 | py | Python | google-cloud-sdk/lib/surface/config/configurations/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/config/configurations/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/config/configurations/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | # 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 ag... | 36.888889 | 79 | 0.710843 |
2c07c0573397722d3a10b277c708abff836c1571 | 1,161 | py | Python | snekomatic/db.py | wgwz/snekomatic | 316f5c096aad7011953433324829e4614c283cd9 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-07T14:36:06.000Z | 2021-07-07T14:36:06.000Z | snekomatic/db.py | wgwz/snekomatic | 316f5c096aad7011953433324829e4614c283cd9 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-06-02T02:37:16.000Z | 2021-06-02T02:37:16.000Z | snekomatic/db.py | webknjaz/snekomatic | 3dbd84155aee5b485c7626ff2e471b949e971616 | [
"Apache-2.0",
"MIT"
] | null | null | null | import os
import psycopg2
| 25.8 | 71 | 0.459087 |
2c08732fa0a75fdc2e73479ce826dbcb4dc29a51 | 71 | py | Python | src/meerkat/exceptions.py | Pawamoy/django-meerkat | 5d754120a32695caa7b24c801b858c8f1e904283 | [
"0BSD"
] | 10 | 2016-06-09T08:23:10.000Z | 2017-07-31T01:26:06.000Z | src/meerkat/exceptions.py | Pawamoy/django-meerkat | 5d754120a32695caa7b24c801b858c8f1e904283 | [
"0BSD"
] | 11 | 2016-06-14T14:07:44.000Z | 2017-05-24T12:49:34.000Z | src/meerkat/exceptions.py | Pawamoy/django-meerkat | 5d754120a32695caa7b24c801b858c8f1e904283 | [
"0BSD"
] | 2 | 2018-03-14T02:14:03.000Z | 2019-06-06T06:54:13.000Z | # -*- coding: utf-8 -*-
| 11.833333 | 35 | 0.633803 |
2c0874ebe77cdf2687aca06582ce38fe6c2c0b1e | 2,193 | py | Python | Silver.py | aWonderWorld/bilibili-live-tools | deaf697e5fe675a4815aa05ec1997c30d6f7c737 | [
"MIT"
] | 192 | 2018-04-18T16:11:41.000Z | 2022-03-29T07:22:20.000Z | Silver.py | aWonderWorld/bilibili-live-tools | deaf697e5fe675a4815aa05ec1997c30d6f7c737 | [
"MIT"
] | 88 | 2018-03-24T17:30:27.000Z | 2019-06-01T00:20:39.000Z | Silver.py | aWonderWorld/bilibili-live-tools | deaf697e5fe675a4815aa05ec1997c30d6f7c737 | [
"MIT"
] | 43 | 2018-04-21T07:38:37.000Z | 2020-06-14T11:01:08.000Z | from online_net import OnlineNet
import utils
import printer
import asyncio
#
| 34.265625 | 85 | 0.564523 |
2c0aca15167ff5ae1f5d402750c284f46ad21e27 | 1,585 | py | Python | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | models/metrics_and_losses.py | marioviti/nn_segmentation | b754b38cd1898c0746e383ecd32d9d4c33c60b33 | [
"MIT"
] | null | null | null | from keras import backend as K
from skimage.transform import resize
import tensorflow as tf
K.set_image_data_format('channels_last')
def dice_coef(y_true, y_pred):
"""
Attention:
y_true can be weighted to modify learning therefore
apply sign to get back to labels
y_pred have to be rounded to nea... | 32.346939 | 86 | 0.68265 |
2c0c97ce7d6fee1a7e7c8b3b3c48cdc6e87f84af | 1,968 | py | Python | rockiot/app/migrations/0010_auto_20210806_2357.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | 2 | 2022-01-23T11:03:37.000Z | 2022-02-26T10:54:10.000Z | rockiot/app/migrations/0010_auto_20210806_2357.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | null | null | null | rockiot/app/migrations/0010_auto_20210806_2357.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-06 23:57
from django.db import migrations, models
import django.db.models.deletion
| 32.8 | 110 | 0.569106 |
2c0ca091ba8017a6ea07dedf32869a44838d16fc | 537 | py | Python | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | 1 | 2020-06-09T09:49:02.000Z | 2020-06-09T09:49:02.000Z | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | null | null | null | basics01/esacpechar.py | DevAnuragGarg/Python-Learning-Basics | 2c58c82ba79bf2c7c3317628222554133dd50713 | [
"Apache-2.0"
] | null | null | null | split_string = "This string has been \nsplit over\nseveral\nlines"
print(split_string)
tabbed_string = "1\t2\t3\t"
print(tabbed_string)
print('Hello what\'s the situation like. He\'s is not responding')
print("Hello what's the situation like. He's is not responding")
print("""Hello what's the situation like. He's is ... | 23.347826 | 68 | 0.713222 |
2c0ca4433555acb470f71744f8f25a30302d9742 | 299 | py | Python | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | tests/app/libs/test_utils.py | pricem14pc/eq-questionnaire-runner | 54cc2947ba181a2673ea1fb7cf6b4acdd609e06b | [
"MIT"
] | null | null | null | from app.helpers.uuid_helper import is_valid_uuid
from app.libs.utils import convert_tx_id
| 29.9 | 73 | 0.782609 |
2c0d77717e0ceda03134bdd343f10e5c508f5d65 | 2,381 | py | Python | csiadmin/urls.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | csiadmin/urls.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | csiadmin/urls.py | samarthanand12/Erp-Based-Event-Management-System | bb494c951db859fc9e89903a37ddd457b248b638 | [
"MIT"
] | null | null | null | """csi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | 49.604167 | 99 | 0.726585 |
2c0dcca26a8379d174630dc910c5bb9b01b371c9 | 1,179 | py | Python | cryptonite/challenge/migrations/0009_cryptographer_user.py | pshrmn/cryptonite | 3f83f34ae6c1733568578c6296e6396872fa5513 | [
"MIT"
] | 1 | 2018-01-15T14:44:36.000Z | 2018-01-15T14:44:36.000Z | cryptonite/challenge/migrations/0009_cryptographer_user.py | pshrmn/cryptonite | 3f83f34ae6c1733568578c6296e6396872fa5513 | [
"MIT"
] | null | null | null | cryptonite/challenge/migrations/0009_cryptographer_user.py | pshrmn/cryptonite | 3f83f34ae6c1733568578c6296e6396872fa5513 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-21 06:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 31.026316 | 115 | 0.614928 |
2c0e286930dd876ebcf8ffacab4cb8d169bb79d5 | 1,219 | py | Python | docker/features/migration_utils.py | krdpk17/twitter-neo4j | bb7e62743651082726db373d118dcc90cce48532 | [
"Apache-2.0"
] | 1 | 2020-04-30T07:09:43.000Z | 2020-04-30T07:09:43.000Z | docker/features/migration_utils.py | krdpk17/twitter-neo4j | bb7e62743651082726db373d118dcc90cce48532 | [
"Apache-2.0"
] | null | null | null | docker/features/migration_utils.py | krdpk17/twitter-neo4j | bb7e62743651082726db373d118dcc90cce48532 | [
"Apache-2.0"
] | 1 | 2020-05-14T22:33:31.000Z | 2020-05-14T22:33:31.000Z | import pdb
import argparse
from config.load_config import load_config
load_config()
def main():
migration = Migration()
migration.read_command()
migration.handle_migration()
if __name__ == "__main__": main() | 32.945946 | 100 | 0.725185 |
2c0f7bcba9525064478def51911f22f43bace868 | 2,055 | py | Python | django_js_reverse/tests/unit_tests.py | hyperair/django-js-reverse | d3e6648778b9eda69acf25616c0bfb9274f5e7b4 | [
"BSD-3-Clause"
] | null | null | null | django_js_reverse/tests/unit_tests.py | hyperair/django-js-reverse | d3e6648778b9eda69acf25616c0bfb9274f5e7b4 | [
"BSD-3-Clause"
] | null | null | null | django_js_reverse/tests/unit_tests.py | hyperair/django-js-reverse | d3e6648778b9eda69acf25616c0bfb9274f5e7b4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.test.client import Client
from django.utils import unittest
from django.test import TestCase
from django.test.utils import override_settings
if __n... | 35.431034 | 121 | 0.686618 |
2c0ffd20ed5cf644e56c8cdc6baf64027cec15dd | 4,034 | py | Python | scripts/test_and_fuse.py | ubiquity6/MVSNet | 7dc026acb019d270e79de7be4a5cfcb33863127f | [
"MIT"
] | 7 | 2019-07-15T08:49:38.000Z | 2019-11-30T01:09:12.000Z | scripts/test_and_fuse.py | ubiquity6/MVSNet | 7dc026acb019d270e79de7be4a5cfcb33863127f | [
"MIT"
] | 10 | 2019-07-17T00:00:29.000Z | 2022-03-11T23:50:36.000Z | scripts/test_and_fuse.py | ubiquity6/MVSNet | 7dc026acb019d270e79de7be4a5cfcb33863127f | [
"MIT"
] | 3 | 2019-08-02T09:06:32.000Z | 2021-07-06T11:49:55.000Z | import os
import subprocess
import argparse
import utils as ut
import time
"""
A simple script for running prediction on a multiple sessions, fusing the resulting point clouds,
and then uploading the results to sketchfab, as well as copying them to a more convenient location
on the file system.
"""
if __name__ ==... | 47.458824 | 141 | 0.658899 |
2c10c32184214d224d14e5d351cf14cf93695fa6 | 349 | py | Python | Mundo 2/ex051.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | 1 | 2021-01-06T22:12:30.000Z | 2021-01-06T22:12:30.000Z | Mundo 2/ex051.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | null | null | null | Mundo 2/ex051.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | null | null | null | print(f'{"CLCULO DE PROGRESSO ARITMTICA":=^60}')
print()
a1 = int(input('Digite o primeiro termo da PA: '))
r = int(input('Digite a razo da PA: '))
an = a1 + 10 * r # Clculo termo geral da PA, para saber qual o ltimo termo da PA, "10" so a quantidade de termos
# da PA
for c in range(a1, an, r):
print(f"{c} -> ",... | 29.083333 | 116 | 0.630372 |
2c11e850d2be5882a095619304bc91ffdaa33b4e | 7,176 | py | Python | pyportall/api/models/geopandas.py | INSPIDE/pyportall | 4dfd0e8908714c15e25e46eff29d6c8eb42a486e | [
"MIT"
] | null | null | null | pyportall/api/models/geopandas.py | INSPIDE/pyportall | 4dfd0e8908714c15e25e46eff29d6c8eb42a486e | [
"MIT"
] | 6 | 2021-02-08T12:34:15.000Z | 2021-07-29T15:24:02.000Z | pyportall/api/models/geopandas.py | INSPIDE/pyportall | 4dfd0e8908714c15e25e46eff29d6c8eb42a486e | [
"MIT"
] | null | null | null | """Portall's GeoDataFrame wrappers."""
from __future__ import annotations
import geopandas as gpd
from typing import Optional
from pydantic.types import UUID4
from pydantic import BaseModel, Field
from pyportall.api.engine.core import APIClient, ENDPOINT_DATAFRAMES
from pyportall.api.models.geojson import FeatureColl... | 49.489655 | 340 | 0.659978 |
2c12cfc4f635d942cbbcdbe4cf123e812f07caf7 | 6,778 | py | Python | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 13 | 2017-08-21T13:52:30.000Z | 2021-11-25T14:38:28.000Z | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 4 | 2017-08-17T11:41:06.000Z | 2021-03-26T09:10:58.000Z | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 7 | 2015-11-25T14:52:12.000Z | 2021-11-25T14:38:29.000Z | import numpy as np
def position( self, label ):
"""
Returns the vector indices where elements are equal to `label`.
Args:
label (int): The label used to select the vector positions.
Returns:
(list): A list of all positions that match `label`.
"""
... | 34.232323 | 165 | 0.614045 |
2c145760ea5951c02b26879a5fcb13eca0255cc1 | 29 | py | Python | tests/__init__.py | PleXone2019/socialreaper | 87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da | [
"MIT"
] | 427 | 2017-02-22T11:59:59.000Z | 2022-03-18T11:46:55.000Z | tests/__init__.py | PleXone2019/socialreaper | 87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da | [
"MIT"
] | 1 | 2018-06-13T02:15:10.000Z | 2019-09-26T23:50:30.000Z | tests/__init__.py | PleXone2019/socialreaper | 87fcc3b74bbed6c4f8e7f49a5f0eb8a616cf38da | [
"MIT"
] | 94 | 2017-03-29T02:59:20.000Z | 2022-03-23T01:09:45.000Z | from . import test_generators | 29 | 29 | 0.862069 |
2c14b2e0a56bed2d4d83e59bf655df2bd19c3e4d | 853 | py | Python | classifier/classify.py | alexander7161/FaceGen | c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368 | [
"MIT"
] | 1 | 2019-12-11T14:21:59.000Z | 2019-12-11T14:21:59.000Z | classifier/classify.py | alexander7161/FaceGen | c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368 | [
"MIT"
] | 31 | 2019-12-11T12:29:46.000Z | 2022-03-12T00:20:52.000Z | classifier/classify.py | alexander7161/FaceGen | c1697a8bfc3c551a3dc2bc45078e8e4e5ae41368 | [
"MIT"
] | null | null | null | from multiclass_model import MulticlassMultiLabelModel
"""
Classify a single image file from the filesystem.
"""
parser = ArgumentParser()
parser.add_argument('--runname', '-n', dest='run_name',
type=str,
help='Name for this run, will otherwise not try to load model.')
parser.a... | 34.12 | 132 | 0.645955 |
2c1614ff444bb3635f1507d1bf14312b36ddae29 | 621 | py | Python | PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py | dhairyashah1/Eklavya20-CatchPracticeBot | 60434bf5e280d7495eab75b21566bd1eb3bbd14e | [
"Unlicense"
] | 6 | 2021-03-29T10:25:39.000Z | 2021-06-03T18:13:57.000Z | PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py | meshtag/Eklavya20-CatchPracticeBot | f0e625768aa49cd43df9fec379c8d7919be784b9 | [
"Unlicense"
] | null | null | null | PycharmProjects/OpenCV/Dhairya_OpenCV/10_TemplateMatching.py | meshtag/Eklavya20-CatchPracticeBot | f0e625768aa49cd43df9fec379c8d7919be784b9 | [
"Unlicense"
] | 1 | 2021-01-27T13:03:06.000Z | 2021-01-27T13:03:06.000Z | import numpy as np
import cv2
img = cv2.imread("opencv-template-matching-python-tutorial[1].jpg")
template = cv2.imread("opencv-template-for-matching[1].jpg",0)
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
w,h = template.shape[::-1]
#w=width h=height
res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED)
... | 34.5 | 67 | 0.731079 |
2c161b21a5968da51d04494428932de95cf1e1b0 | 1,958 | py | Python | Classes/Classes.py | micro164/AdvGame | cf27f86b5773b97de195596c512879f9e8be1a04 | [
"MIT"
] | 3 | 2017-12-31T02:41:34.000Z | 2018-02-18T23:56:44.000Z | Classes/Classes.py | micro164/AdvGame | cf27f86b5773b97de195596c512879f9e8be1a04 | [
"MIT"
] | null | null | null | Classes/Classes.py | micro164/AdvGame | cf27f86b5773b97de195596c512879f9e8be1a04 | [
"MIT"
] | null | null | null | from enum import IntEnum
from enum import Enum
| 18.826923 | 102 | 0.542901 |
2c16360d424581c214b60779daa9baad492484f7 | 2,311 | py | Python | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/bokeh/models/test_filters.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 37.885246 | 78 | 0.320208 |
2c169222381a9f7e35114a43d60f96fa4293bf26 | 1,481 | py | Python | src/alexapi/device_platforms/desktop.py | mnoble19/AlexaPi | 59c37c9f9970b12c2775358b6c59e046cdb0f475 | [
"MIT"
] | null | null | null | src/alexapi/device_platforms/desktop.py | mnoble19/AlexaPi | 59c37c9f9970b12c2775358b6c59e046cdb0f475 | [
"MIT"
] | null | null | null | src/alexapi/device_platforms/desktop.py | mnoble19/AlexaPi | 59c37c9f9970b12c2775358b6c59e046cdb0f475 | [
"MIT"
] | null | null | null | import sys
import time
import threading
from baseplatform import BasePlatform
| 21.779412 | 77 | 0.741391 |
2c16ce8056608e7cc7b6acf8f32232a293b97088 | 425 | py | Python | examples/do_report.py | adamczarnecki/tradedoubler_api_client | d209428c18276ea4c488b0106926ae9de7abb235 | [
"MIT"
] | null | null | null | examples/do_report.py | adamczarnecki/tradedoubler_api_client | d209428c18276ea4c488b0106926ae9de7abb235 | [
"MIT"
] | null | null | null | examples/do_report.py | adamczarnecki/tradedoubler_api_client | d209428c18276ea4c488b0106926ae9de7abb235 | [
"MIT"
] | null | null | null | from tradedoubler_api_client import Tradedoubler
import pprint
if __name__ == '__main__':
pp = pprint.PrettyPrinter(indent=4, compact=True, sort_dicts=False)
td = Tradedoubler('credentials.json')
report = td.reporting().get_transactions(fromDate='20210601', toDate='20210610')
report.filter_sales()
... | 28.333333 | 84 | 0.729412 |
2c16d47b41feddc992dbdd6379a059841d159bb5 | 4,107 | py | Python | welib/vortilib/elements/examples/InviscidVortexPatch.py | moonieann/welib | 0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52 | [
"MIT"
] | 24 | 2019-07-24T23:37:10.000Z | 2022-03-30T20:40:40.000Z | welib/vortilib/elements/examples/InviscidVortexPatch.py | moonieann/welib | 0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52 | [
"MIT"
] | null | null | null | welib/vortilib/elements/examples/InviscidVortexPatch.py | moonieann/welib | 0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52 | [
"MIT"
] | 11 | 2019-03-14T13:47:04.000Z | 2022-03-31T15:47:27.000Z | """
Vorticity and tangential velocity for a 2D inviscid vortex patch
See:
[1] Chapter 33, p.402, Branlard - Wind turbine aerodynamics and vorticity based methods, Springer 2017
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from vortilib.tools.colors import fColrs
from vortilib.tool... | 32.338583 | 106 | 0.685415 |
2c17cc77f2646b8be82a171526ec121e5aa52c9c | 7,771 | py | Python | compss/programming_model/bindings/python/src/pycompss/api/multinode.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | null | null | null | compss/programming_model/bindings/python/src/pycompss/api/multinode.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | null | null | null | compss/programming_model/bindings/python/src/pycompss/api/multinode.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... | 33.49569 | 81 | 0.641745 |
2c17df50a8d83000fd4e766f46fb4bd0e6305963 | 755 | py | Python | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | null | null | null | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | 3 | 2021-08-02T13:25:46.000Z | 2022-03-27T11:17:59.000Z | tests/test_mhk_models_no_db.py | time-link/timelink-py | 60d51bfedb64688aa7603f074d7bbc7432b5e841 | [
"MIT"
] | null | null | null | """
Test models with requiring a db connection
"""
import pytest
from timelink.mhk.models import base # noqa
from timelink.mhk.models.entity import Entity # noqa
from timelink.mhk.models.pom_som_mapper import PomSomMapper
from timelink.mhk.models.base_class import Base
from timelink.mhk.models.db import TimelinkDB... | 25.166667 | 65 | 0.711258 |
2c1890bcbe415de6b707f1f914bd82dec46e3744 | 218 | py | Python | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | twitter_problems/problem_5.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Twitter.
Given a list of numbers, create an algorithm that arranges them in order to form the largest possible integer.
For example, given [10, 7, 76, 415], you should return 77641510.""" | 54.5 | 111 | 0.752294 |
2c1930976901fb8aedd4548bfb8d6c15eb67bbc4 | 533 | py | Python | catkin_ws/build/catkin_generated/order_packages.py | engboustani/3d-printer-arm | 49173f30a19dcc5adb0e27d85b8b37fc5282e571 | [
"Apache-2.0"
] | null | null | null | catkin_ws/build/catkin_generated/order_packages.py | engboustani/3d-printer-arm | 49173f30a19dcc5adb0e27d85b8b37fc5282e571 | [
"Apache-2.0"
] | null | null | null | catkin_ws/build/catkin_generated/order_packages.py | engboustani/3d-printer-arm | 49173f30a19dcc5adb0e27d85b8b37fc5282e571 | [
"Apache-2.0"
] | null | null | null | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/engboustani/Documents/3d-printer-arm/catkin_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/engboustani/Documents/3d-printer... | 88.833333 | 273 | 0.742964 |
2c1997660877b65834f3fc00d39a51db4387c509 | 11,188 | py | Python | tools/interface/LAMMPS.py | wichoi77/alamode | f0b3f4cc9903a807006b8f2d183de77dd461f61c | [
"MIT"
] | 1 | 2021-01-27T19:05:03.000Z | 2021-01-27T19:05:03.000Z | tools/interface/LAMMPS.py | wichoi77/alamode | f0b3f4cc9903a807006b8f2d183de77dd461f61c | [
"MIT"
] | null | null | null | tools/interface/LAMMPS.py | wichoi77/alamode | f0b3f4cc9903a807006b8f2d183de77dd461f61c | [
"MIT"
] | 1 | 2021-04-26T14:01:15.000Z | 2021-04-26T14:01:15.000Z | #
# LAMMPS.py
#
# Interface to LAMMPS (http://lammps.sandia.gov)
#
# Copyright (c) 2017 Terumasa Tadano
#
# This file is distributed under the terms of the MIT license.
# Please see the file 'LICENCE.txt' in the root directory
# or http://opensource.org/licenses/mit-license.php for information.
#
import numpy as np
... | 30.568306 | 87 | 0.517876 |