hexsha stringlengths 40 40 | size int64 4 1.02M | ext stringclasses 8
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 209 | max_stars_repo_name stringlengths 5 121 | max_stars_repo_head_hexsha stringlengths 40 40 | 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 4 209 | max_issues_repo_name stringlengths 5 121 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 4 209 | max_forks_repo_name stringlengths 5 121 | max_forks_repo_head_hexsha stringlengths 40 40 | 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 4 1.02M | avg_line_length float64 1.07 66.1k | max_line_length int64 4 266k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
724041ed2ca944f72754f92b8120fdc76e576849 | 758 | py | Python | hook_project/urls.py | tgs/webhook-project-site | 19c409d74c50b8c293dd9152c04cc7d435b5d960 | [
"MIT"
] | null | null | null | hook_project/urls.py | tgs/webhook-project-site | 19c409d74c50b8c293dd9152c04cc7d435b5d960 | [
"MIT"
] | 1 | 2022-03-18T18:50:20.000Z | 2022-03-18T18:50:20.000Z | hook_project/urls.py | tgs/webhook-project-site | 19c409d74c50b8c293dd9152c04cc7d435b5d960 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.views.generic import TemplateView
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib import admin
urlpatterns = patterns("",
url(r"... | 36.095238 | 91 | 0.75066 |
921cfbaa9c847b21a032647d5112c9f78f0bceb1 | 6,481 | py | Python | couchdb/design.py | kocolosk/couchdb-python | e90e541365688063c341e58939c3ba58ceb2d69c | [
"BSD-3-Clause"
] | 1 | 2016-05-08T20:13:47.000Z | 2016-05-08T20:13:47.000Z | couchdb/design.py | kocolosk/couchdb-python | e90e541365688063c341e58939c3ba58ceb2d69c | [
"BSD-3-Clause"
] | null | null | null | couchdb/design.py | kocolosk/couchdb-python | e90e541365688063c341e58939c3ba58ceb2d69c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Christopher Lenz
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
"""Utility code for managing design documents."""
from copy import deepcopy
from itertools import groupb... | 37.034286 | 79 | 0.585095 |
ab9ee1e1daf659253d904ed06d6f9f3d6d665f6a | 1,128 | py | Python | pympris/MediaPlayer.py | TingPing/pympris | 26048251ca82dfb1437b7488a6e54f1aae19c212 | [
"MIT"
] | 1 | 2019-10-07T11:47:18.000Z | 2019-10-07T11:47:18.000Z | pympris/MediaPlayer.py | TingPing/pympris | 26048251ca82dfb1437b7488a6e54f1aae19c212 | [
"MIT"
] | null | null | null | pympris/MediaPlayer.py | TingPing/pympris | 26048251ca82dfb1437b7488a6e54f1aae19c212 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Copyright (c) Mikhail Mamrouski.
# See LICENSE for details.
"""
This module provides a `MediaPlayer` class
wich contains instances of all implementations of MPRIS2 interfaces.
Usage::
mp = MediaPlayer('org.mpris.MediaPlayer2.rhythmbox')
print mp.root.Identity
if mp... | 24.521739 | 68 | 0.689716 |
2c4f98eddb8c7d6cbbb90b9df620b497ad183cd1 | 1,272 | py | Python | test/test_ezsigntemplatedocument_get_words_positions_v1_response_m_payload.py | ezmaxinc/eZmax-SDK-python | 6794b8001abfb7d9ae18a3b87aba164839b925a0 | [
"MIT"
] | null | null | null | test/test_ezsigntemplatedocument_get_words_positions_v1_response_m_payload.py | ezmaxinc/eZmax-SDK-python | 6794b8001abfb7d9ae18a3b87aba164839b925a0 | [
"MIT"
] | null | null | null | test/test_ezsigntemplatedocument_get_words_positions_v1_response_m_payload.py | ezmaxinc/eZmax-SDK-python | 6794b8001abfb7d9ae18a3b87aba164839b925a0 | [
"MIT"
] | null | null | null | """
eZmax API Definition (Full)
This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501
The version of the OpenAPI document: 1.1.7
Contact: support-api@ezmax.ca
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import eZmaxApi
from... | 32.615385 | 149 | 0.790094 |
3999c2a0fef9fcb8224b405a1fd8bbbe4928eaa5 | 633 | py | Python | backend/education/urls.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 2 | 2021-01-28T08:23:15.000Z | 2021-03-09T06:06:58.000Z | backend/education/urls.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 9 | 2020-01-02T15:31:04.000Z | 2021-12-09T01:59:26.000Z | backend/education/urls.py | draihal/main-pr | 81814c5370b592963e91ad0683caa560b0ea9579 | [
"MIT"
] | 1 | 2021-03-09T06:11:16.000Z | 2021-03-09T06:11:16.000Z | from django.urls import path, include
from rest_framework import routers
from education import views
app_name = 'education'
router = routers.DefaultRouter()
router.register('education/grades', views.GradeViewSet, 'grades')
router.register('education/homework', views.HomeworkViewSet, 'homework')
router.register('e... | 28.772727 | 72 | 0.777251 |
827ba94e70ab75a727a5601ebc7a78c244db8e3e | 2,725 | py | Python | aircopy/autogen.py | st3107/aircopy | 426c321c247f74b0e556f7ed78808d440734d284 | [
"BSD-3-Clause"
] | null | null | null | aircopy/autogen.py | st3107/aircopy | 426c321c247f74b0e556f7ed78808d440734d284 | [
"BSD-3-Clause"
] | 4 | 2020-05-21T17:01:33.000Z | 2020-05-29T19:46:18.000Z | aircopy/autogen.py | st3107/aircopy | 426c321c247f74b0e556f7ed78808d440734d284 | [
"BSD-3-Clause"
] | null | null | null | import copy
from datetime import datetime, timedelta
from typing import List, Union
MILESTONES_TEMPLATE = [
{
'audience': ['pi', 'lead', 'group members', 'collaborators'],
'due_date': timedelta(days=7),
'name': 'Kick off meeting',
'objective': 'roll out of project to team',
... | 34.935897 | 86 | 0.635596 |
5875142c34d64f8414929bd43ccf37971bc97df8 | 430 | py | Python | configs/_base_/models/res2net50-w14-s8.py | YuxinZou/mmclassification | 2037260ea6c98a3b115e97727e1151a1c2c32f7a | [
"Apache-2.0"
] | 1,190 | 2020-07-10T01:16:01.000Z | 2022-03-31T09:48:38.000Z | configs/_base_/models/res2net50-w14-s8.py | YuxinZou/mmclassification | 2037260ea6c98a3b115e97727e1151a1c2c32f7a | [
"Apache-2.0"
] | 702 | 2020-07-13T13:31:33.000Z | 2022-03-31T06:48:04.000Z | configs/_base_/models/res2net50-w14-s8.py | YuxinZou/mmclassification | 2037260ea6c98a3b115e97727e1151a1c2c32f7a | [
"Apache-2.0"
] | 502 | 2020-07-10T02:40:55.000Z | 2022-03-31T02:07:09.000Z | model = dict(
type='ImageClassifier',
backbone=dict(
type='Res2Net',
depth=50,
scales=8,
base_width=14,
deep_stem=False,
avg_down=False,
),
neck=dict(type='GlobalAveragePooling'),
head=dict(
type='LinearClsHead',
num_classes=1000,
... | 22.631579 | 60 | 0.553488 |
f517f3e57ce0e7e455c5a3b9299e4b0c8b4f47fc | 1,528 | py | Python | gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/force_index.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/force_index.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | gQuant/plugins/gquant_plugin/notebooks/cuIndicator/viz/force_index.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | import ipywidgets as widgets
from bqplot.colorschemes import CATEGORY20
from bqplot import Axis, Figure, LinearScale, Lines
import os
from greenflow.dataframe_flow.config_nodes_modules import load_modules
load_modules(os.getenv('MODULEPATH')+'/rapids_modules/')
from rapids_modules.cuindicator import force_index as indi... | 34.727273 | 81 | 0.706806 |
bad0a1fdbfcf9aa0b3a454d5e7df65c5f375e75a | 809 | py | Python | sa/migrations/0053_managedobjectprofile_ipam_sync.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/migrations/0053_managedobjectprofile_ipam_sync.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/migrations/0053_managedobjectprofile_ipam_sync.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# managedobjectprofile ipam sync
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
... | 32.36 | 100 | 0.489493 |
0eb516a57e92bac183130af085a84f9089d97b0b | 4,208 | py | Python | src/cosalib/aliyun.py | nikita-dubrovskii/coreos-assembler | 378fb9d7670a32b1c16835739e82c15bb0e8f6aa | [
"Apache-2.0"
] | null | null | null | src/cosalib/aliyun.py | nikita-dubrovskii/coreos-assembler | 378fb9d7670a32b1c16835739e82c15bb0e8f6aa | [
"Apache-2.0"
] | null | null | null | src/cosalib/aliyun.py | nikita-dubrovskii/coreos-assembler | 378fb9d7670a32b1c16835739e82c15bb0e8f6aa | [
"Apache-2.0"
] | null | null | null | import subprocess
import logging as log
import json
import sys
from cosalib.cmdlib import run_verbose
from tenacity import (
retry,
stop_after_attempt
)
def remove_aliyun_image(aliyun_id, region):
print(f"aliyun: removing image {aliyun_id} in {region}")
try:
run_verbose([
'ore',
... | 30.941176 | 79 | 0.615494 |
16a84a3e2b43028f050d392aa3b252a383fd0912 | 2,902 | py | Python | tests/model_fields/test_durationfield.py | allanice001/django | aac75fa30af22965f993c6dd8da8cd9882ba2f21 | [
"BSD-3-Clause"
] | null | null | null | tests/model_fields/test_durationfield.py | allanice001/django | aac75fa30af22965f993c6dd8da8cd9882ba2f21 | [
"BSD-3-Clause"
] | 1 | 2021-03-24T12:21:05.000Z | 2021-03-24T12:31:52.000Z | tests/model_fields/test_durationfield.py | allanice001/django | aac75fa30af22965f993c6dd8da8cd9882ba2f21 | [
"BSD-3-Clause"
] | 2 | 2021-03-24T12:11:48.000Z | 2021-06-10T19:56:03.000Z | import datetime
import json
from django import forms
from django.core import exceptions, serializers
from django.db import models
from django.test import TestCase
from .models import DurationModel, NullDurationModel
class TestSaveLoad(TestCase):
def test_simple_roundtrip(self):
duration = datetime.time... | 32.977273 | 106 | 0.673673 |
3805ea3c5e331bf86160596f16c6f5e1e1334b48 | 707 | py | Python | docker-healthcheck.py | jan-di/smb1-proxy | 97bb4ec606e82b15642a710553e8a957acfde3a0 | [
"MIT"
] | 2 | 2021-12-06T12:03:26.000Z | 2022-02-08T08:45:06.000Z | docker-healthcheck.py | Andreetje/smb1-proxy | 4ba33452e20fe5d45b554a95b52ea494bac42a73 | [
"MIT"
] | 1 | 2020-05-12T14:03:48.000Z | 2020-05-12T14:03:48.000Z | docker-healthcheck.py | Andreetje/smb1-proxy | 4ba33452e20fe5d45b554a95b52ea494bac42a73 | [
"MIT"
] | 4 | 2020-05-12T13:11:49.000Z | 2022-03-17T13:18:20.000Z | #!/usr/bin/env python3
import os, subprocess
fail = False
i = 0
while True:
i = i + 1
shareEnable = os.getenv('PROXY{}_ENABLE'.format(i))
if shareEnable == None:
break
elif not shareEnable == "1":
continue
remoteMount = '/remote{}'.format(i)
checkFile = remoteMount + "/healthcheck.txt"
try:
... | 18.605263 | 74 | 0.64215 |
746d76cf5be2386a7de5999af74aea7dff08457d | 1,377 | py | Python | tests/test_config.py | zhengxiaowai/quart | ae1664b1d603956fbe6fd49eeae5aee8877f5d8a | [
"MIT"
] | null | null | null | tests/test_config.py | zhengxiaowai/quart | ae1664b1d603956fbe6fd49eeae5aee8877f5d8a | [
"MIT"
] | null | null | null | tests/test_config.py | zhengxiaowai/quart | ae1664b1d603956fbe6fd49eeae5aee8877f5d8a | [
"MIT"
] | null | null | null | import os
from quart.config import Config, ConfigAttribute
TEST_KEY = 'test_value'
class ConfigInstance:
value = ConfigAttribute('VALUE')
config: dict = {}
def test_config_attribute() -> None:
instance = ConfigInstance()
instance.value = 'test'
assert instance.config['VALUE'] == 'test'
def t... | 25.036364 | 67 | 0.684822 |
fe4dcf2749673ecf621d992fc403fac15c8a65e9 | 49,466 | py | Python | src/abaqus/Section/SectionModel.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Section/SectionModel.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Section/SectionModel.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | import typing
from abaqusConstants import *
from .AcousticInfiniteSection import AcousticInfiniteSection
from .AcousticInterfaceSection import AcousticInterfaceSection
from .BeamSection import BeamSection
from .CohesiveSection import CohesiveSection
from .CompositeShellSection import CompositeShellSection
from .Compos... | 49.2199 | 158 | 0.62083 |
94aaed640738f8db6e312a440af63926dec40bcb | 1,391 | py | Python | cengal/time_management/load_best_timer/versions/v_0/load_best_timer.py | FI-Mihej/Cengal | 516b9780da6ccc9168f8f89d7ba13dc29e24bc0b | [
"Apache-2.0"
] | 3 | 2018-07-23T18:48:58.000Z | 2021-07-18T14:17:20.000Z | cengal/time_management/load_best_timer/versions/v_0/load_best_timer.py | FI-Mihej/Cengal | 516b9780da6ccc9168f8f89d7ba13dc29e24bc0b | [
"Apache-2.0"
] | null | null | null | cengal/time_management/load_best_timer/versions/v_0/load_best_timer.py | FI-Mihej/Cengal | 516b9780da6ccc9168f8f89d7ba13dc29e24bc0b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Copyright © 2017 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
#
# 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... | 30.23913 | 100 | 0.74982 |
99e7f0fcd3acb9395c834faae1c6969af1bb7b1a | 39,791 | py | Python | src/python/grpcio/grpc/aio/_interceptor.py | bostikforever/grpc | aae25e24432f733ed4c5f90287845af0113775ee | [
"Apache-2.0"
] | 3 | 2017-04-09T06:20:03.000Z | 2021-06-07T15:13:43.000Z | src/python/grpcio/grpc/aio/_interceptor.py | bostikforever/grpc | aae25e24432f733ed4c5f90287845af0113775ee | [
"Apache-2.0"
] | 18 | 2016-11-22T16:35:23.000Z | 2021-10-15T10:24:14.000Z | src/python/grpcio/grpc/aio/_interceptor.py | bostikforever/grpc | aae25e24432f733ed4c5f90287845af0113775ee | [
"Apache-2.0"
] | 2 | 2017-10-11T05:01:29.000Z | 2019-10-10T17:14:54.000Z | # Copyright 2019 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 39.830831 | 98 | 0.658591 |
a1e337669acc0380df9fa58693d107125a892d1a | 2,210 | py | Python | medium/shadows-of-the-knight-episode-1.py | jraximus/codingame-solutions | 2e4931cc8fe21e3be71dbe0d61722af416757d6b | [
"MIT"
] | null | null | null | medium/shadows-of-the-knight-episode-1.py | jraximus/codingame-solutions | 2e4931cc8fe21e3be71dbe0d61722af416757d6b | [
"MIT"
] | null | null | null | medium/shadows-of-the-knight-episode-1.py | jraximus/codingame-solutions | 2e4931cc8fe21e3be71dbe0d61722af416757d6b | [
"MIT"
] | null | null | null | #https://www.codingame.com/training/medium/shadows-of-the-knight-episode-1
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
debug = False
# w: width of the building.
# h: height of the building.
w, h = [int(i) for i in raw_input().... | 26 | 118 | 0.533032 |
902131b0ca121204667099fe0aa173a5c8774875 | 2,538 | py | Python | tests/conftest.py | chrishas35/fava | 8a273fa4b92ab6df875209ad8ea83c30984ce0f4 | [
"MIT"
] | null | null | null | tests/conftest.py | chrishas35/fava | 8a273fa4b92ab6df875209ad8ea83c30984ce0f4 | [
"MIT"
] | null | null | null | tests/conftest.py | chrishas35/fava | 8a273fa4b92ab6df875209ad8ea83c30984ce0f4 | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring
import os
from pathlib import Path
from pprint import pformat
import pytest
from beancount.loader import load_string
from fava.core import FavaLedger
from fava.application import _load_file, app as fava_app
from fava.core.budgets import parse_budgets
def create_app(bfile):
k... | 23.072727 | 79 | 0.706462 |
3b6e2509420e0ebab88e0090c75786d644a74c39 | 2,978 | py | Python | research/cv/DBPN/src/trainonestep/trainonestepgen.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/DBPN/src/trainonestep/trainonestepgen.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/DBPN/src/trainonestep/trainonestepgen.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... | 41.943662 | 95 | 0.688381 |
0c1ef7e8f3b1e387511c9834042df32bbe5295ff | 427 | py | Python | Modified Task-1/FileExtension.py | Indranil1211/Task-1 | 267f617a026d3032417634c83d9c60c22ecffd5f | [
"MIT"
] | null | null | null | Modified Task-1/FileExtension.py | Indranil1211/Task-1 | 267f617a026d3032417634c83d9c60c22ecffd5f | [
"MIT"
] | null | null | null | Modified Task-1/FileExtension.py | Indranil1211/Task-1 | 267f617a026d3032417634c83d9c60c22ecffd5f | [
"MIT"
] | null | null | null | a=str(input("Input the filename: "))
if a[-5:]==".java":
print("The extension of the file is: 'Java' ")
elif a[-2:]==".c":
print("The extension of the file is: 'C' ")
elif a[-3:]==".cc" or a[-4:]==".cpp" or a[-4:]==".cxx" :
print("The extension of the file is: 'C++' ")
elif a[-3:]==".py":
print(... | 35.583333 | 57 | 0.552693 |
1e84aeb441ccc4313efd1343ed57676a475c30d5 | 613 | py | Python | supplies/routers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | supplies/routers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | supplies/routers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | from rest_framework import routers
from django.urls import path, include
from .viewsets import CategoryViewSet, BrandViewSet, SupplyViewSet, UnitViewSet, SupplyItemViewSet, PackagingViewSet, \
ProductViewSet
router = routers.DefaultRouter()
router.register('categories', CategoryViewSet)
router.register('brands', ... | 32.263158 | 119 | 0.800979 |
7730b58a909cd33bac81b588312fe729ed5a00ea | 761 | py | Python | src/stabilize_proc.py | msdev87/Cilialyzer | 12da0936da6def42f074031a8c7a8260e91d26bd | [
"MIT"
] | 1 | 2021-12-11T10:26:22.000Z | 2021-12-11T10:26:22.000Z | src/stabilize_proc.py | msdev87/Cilialyzer | 12da0936da6def42f074031a8c7a8260e91d26bd | [
"MIT"
] | null | null | null | src/stabilize_proc.py | msdev87/Cilialyzer | 12da0936da6def42f074031a8c7a8260e91d26bd | [
"MIT"
] | 1 | 2022-01-05T07:05:37.000Z | 2022-01-05T07:05:37.000Z | import numpy
from pystackreg import StackReg
def subproc(args):
# this function defines processes, which are ran in parallel
meanimg = args[0]
array = args[1]
nimgs = array.shape[0]
#print('nimgs: ',nimgs)
array_stabilized = numpy.copy(array)
sr = StackReg(StackReg.RIGID_BODY)
# l... | 25.366667 | 73 | 0.607096 |
4f160065441d0c811c962e3984f9caaa977f94de | 38,250 | py | Python | Python/Product/Analyzer/PythonScraper.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Product/Analyzer/PythonScraper.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | Python/Product/Analyzer/PythonScraper.py | nanshuiyu/pytools | 9f9271fe8cf564b4f94e9456d400f4306ea77c23 | [
"Apache-2.0"
] | null | null | null | # ############################################################################
#
# Copyright (c) Microsoft Corporation.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of this distribution.... | 38.09761 | 239 | 0.538614 |
03e7a7949d6709d84c61c7cd26f41770efd26756 | 517 | py | Python | plotly/validators/histogram2dcontour/contours/_size.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 2 | 2020-03-24T11:41:14.000Z | 2021-01-14T07:59:43.000Z | plotly/validators/histogram2dcontour/contours/_size.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | null | null | null | plotly/validators/histogram2dcontour/contours/_size.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 4 | 2019-06-03T14:49:12.000Z | 2022-01-06T01:05:12.000Z | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='size',
parent_name='histogram2dcontour.contours',
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly_nam... | 24.619048 | 66 | 0.582205 |
ceb0ccb6b7b0b0bde1c93ac1c1aa35e70713781d | 8,547 | py | Python | deeplabv3-water/train.py | juranccc/CVerrr | 37788d8bbd4f361474289f1d00e595e4f29b751e | [
"MIT"
] | null | null | null | deeplabv3-water/train.py | juranccc/CVerrr | 37788d8bbd4f361474289f1d00e595e4f29b751e | [
"MIT"
] | null | null | null | deeplabv3-water/train.py | juranccc/CVerrr | 37788d8bbd4f361474289f1d00e595e4f29b751e | [
"MIT"
] | null | null | null | import os
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.optim as optim
from torch.utils.data import DataLoader
from nets.deeplabv3_plus import DeepLab
from nets.deeplabv3_training import weights_init
from utils.callbacks import LossHistory
from utils.dataloader import DeeplabDatase... | 41.289855 | 137 | 0.509068 |
705e4dfd2c7dc1927662f14af668bde836621e03 | 70,906 | py | Python | silicoin/full_node/weight_proof.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | silicoin/full_node/weight_proof.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | silicoin/full_node/weight_proof.py | zcomputerwiz/silicoin-light-wallet | 1cdc3784effec229cc841a04655078b1d9913d33 | [
"Apache-2.0"
] | null | null | null | import asyncio
import dataclasses
import logging
import math
import pathlib
import random
from concurrent.futures.process import ProcessPoolExecutor
from typing import Dict, List, Optional, Tuple
from silicoin.consensus.block_header_validation import validate_finished_header_block
from silicoin.consensus.block_record ... | 42.407895 | 120 | 0.673935 |
8345a944ee976ab90089406f246bb3ea238a3e3b | 1,587 | py | Python | src/Plugin/HtmlWrapper.py | eblade/pyroman | a544eb2e13b45a20e4f11b28c7b349e27594452e | [
"MIT"
] | null | null | null | src/Plugin/HtmlWrapper.py | eblade/pyroman | a544eb2e13b45a20e4f11b28c7b349e27594452e | [
"MIT"
] | null | null | null | src/Plugin/HtmlWrapper.py | eblade/pyroman | a544eb2e13b45a20e4f11b28c7b349e27594452e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import G
from Utils import getkey
from Generic import Generic
class HtmlWrapper(Generic):
def __init__(self):
super(HtmlWrapper, self).__init__()
self.init()
def post_upgrade(self):
# Register me as wrapper
G.info("Registering wrapper")
self.glob... | 36.906977 | 101 | 0.58034 |
051bc3eaf18cff089ebf2f67bc8784a7ed688138 | 75 | py | Python | django-html5-boilerplate/__init__.py | damianmoore/django-html5-boilerplate | 7e99f60c5bb73c8a45b1dc3dbbe2caf8c120ee47 | [
"BSD-2-Clause"
] | 3 | 2019-08-16T13:38:33.000Z | 2021-12-15T04:00:04.000Z | django-html5-boilerplate/__init__.py | damianmoore/django-html5-boilerplate | 7e99f60c5bb73c8a45b1dc3dbbe2caf8c120ee47 | [
"BSD-2-Clause"
] | null | null | null | django-html5-boilerplate/__init__.py | damianmoore/django-html5-boilerplate | 7e99f60c5bb73c8a45b1dc3dbbe2caf8c120ee47 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2011, Damian Moore
# see LICENSE file for license details
| 18.75 | 38 | 0.746667 |
a04ed21c9e79c29a571b79835ada26a1632944f9 | 5,305 | py | Python | get_metadata_from_oracle.py | Neil-Symington/borehole_gfx_utils | bfcf37fa07621a3234bb57be264f15540ce95ec5 | [
"Apache-2.0"
] | null | null | null | get_metadata_from_oracle.py | Neil-Symington/borehole_gfx_utils | bfcf37fa07621a3234bb57be264f15540ce95ec5 | [
"Apache-2.0"
] | null | null | null | get_metadata_from_oracle.py | Neil-Symington/borehole_gfx_utils | bfcf37fa07621a3234bb57be264f15540ce95ec5 | [
"Apache-2.0"
] | null | null | null | # Script that populates columns and rows in the master spreadsheet using data within another spreadsheet extracted
# from the oracle rock properties database. This script assumes that the master spreadsheet already contains the borehole
# enos (or UWI), which is required for the oracle query.
# NOte that as data in or... | 38.442029 | 137 | 0.719698 |
dfd076ae5ee5d5044837048b340d5926ad85a054 | 1,340 | py | Python | fdm-devito-notebooks/01_vib/exer-vib/vib_memsave0.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 7 | 2020-07-17T13:19:15.000Z | 2021-03-27T05:21:09.000Z | fdm-jupyter-book/notebooks/01_vib/exer-vib/vib_memsave0.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 73 | 2020-07-14T15:38:52.000Z | 2020-09-25T11:54:59.000Z | fdm-jupyter-book/notebooks/01_vib/exer-vib/vib_memsave0.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 1 | 2021-03-27T05:21:14.000Z | 2021-03-27T05:21:14.000Z | import sys, os
sys.path.insert(0, os.path.join(os.pardir, 'src-vib'))
import numpy as np
import matplotlib.pyplot as plt
def solver_memsave(I, w, dt, T, filename='tmp.dat'):
"""
As vib_undamped.solver, but store only the last three
u values in the implementation. The solution is written to
file `tmp_m... | 29.130435 | 62 | 0.584328 |
94d723b5a4ea12882027cd8aee23b67ed1a3d6dd | 21 | py | Python | python/testData/quickFixes/PyAddSpecifierToFormatQuickFixTest/missingValues_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickFixes/PyAddSpecifierToFormatQuickFixTest/missingValues_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickFixes/PyAddSpecifierToFormatQuickFixTest/missingValues_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | a = "%s test %" % "x" | 21 | 21 | 0.333333 |
7ee356281dfdddd7301080229b7825d43ecb404b | 43,519 | py | Python | Configs/CI_Configs_with_datasets_before_scoretables.py | yochaiedlitz/T2DM_UKB_predictions | 1e6b22e3d51d515eb065d7d5f46408f86f33d0b8 | [
"MIT"
] | 1 | 2022-01-17T13:13:02.000Z | 2022-01-17T13:13:02.000Z | Configs/CI_Configs_with_datasets_before_scoretables.py | yochaiedlitz/T2DM_UKB_predictions | 1e6b22e3d51d515eb065d7d5f46408f86f33d0b8 | [
"MIT"
] | null | null | null | Configs/CI_Configs_with_datasets_before_scoretables.py | yochaiedlitz/T2DM_UKB_predictions | 1e6b22e3d51d515eb065d7d5f46408f86f33d0b8 | [
"MIT"
] | null | null | null | import pandas as pd
import pickle
import os
import numpy as np
import sys
import UKBB_Functions as UKBBFF
from sklearn.metrics import roc_auc_score, make_scorer,brier_score_loss,log_loss
from sklearn.metrics import fbeta_score
class runs:
def __init__(self,run_name,only_check_model=False):
self.run_name=run... | 58.258367 | 155 | 0.609412 |
5f9a3baf53c116c9f7efd46e0960fb72f637a434 | 636 | py | Python | EventFilter/CSCRawToDigi/python/cscSQLiteCablingPack_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | EventFilter/CSCRawToDigi/python/cscSQLiteCablingPack_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | EventFilter/CSCRawToDigi/python/cscSQLiteCablingPack_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
# different es_sources are used for different purposes - packing and unpacking
# this one is for packing
cscPackingCabling = cms.ESSource("PoolDBESSource",
DBParameters = cms.PSet(
authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
auth... | 33.473684 | 90 | 0.707547 |
fe141af70c30876b071d0982117206cc03d63d6e | 4,000 | py | Python | src/bluetooth/bluetooth_streamer.py | mikaponics/mikapod-soil-rpi | 5090a2cf7d252b7e53fe25680048732c0c9cecb9 | [
"BSD-3-Clause"
] | null | null | null | src/bluetooth/bluetooth_streamer.py | mikaponics/mikapod-soil-rpi | 5090a2cf7d252b7e53fe25680048732c0c9cecb9 | [
"BSD-3-Clause"
] | null | null | null | src/bluetooth/bluetooth_streamer.py | mikaponics/mikapod-soil-rpi | 5090a2cf7d252b7e53fe25680048732c0c9cecb9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
import signal
import time
import json
from serial import Serial
import Pyro4
import pytz
from foundation import *
"""
THE PURPOSE OF THIS CODE IS TO PROVIDE A STREAM OF DATA FROM THE SERIAL TERMINALS
TO THE PROGRAMMERS CONSOLE TO SEE WHAT THE ARDUINO DEVICE ... | 35.714286 | 169 | 0.60925 |
ac347cb64087688cbca4c6597259862b2fb029db | 421 | py | Python | Mac/Lib/test/tsnd.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 3 | 2022-01-30T20:08:24.000Z | 2022-02-12T08:51:12.000Z | Mac/Lib/test/tsnd.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Mac/Lib/test/tsnd.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | # Show off SndPlay (and some resource manager functions).
# Get a list of all 'snd ' resources in the system and play them all.
from Res import *
from Snd import *
ch = SndNewChannel(0, 0, None)
print "Channel:", ch
type = 'snd '
for i in range(CountResources(type)):
r = GetIndResource(type, i+1)
print r.GetResIn... | 22.157895 | 69 | 0.691211 |
f4bbb190ec710faea32a2184c66815e0f4ba9a06 | 2,074 | py | Python | test/sagemaker_tests/tensorflow/tensorflow2_training/integration/sagemaker/test_horovod.py | arjkesh/deep-learning-containers-1 | 9bf65197dee8a6f59b3d4ee240dcc11824240854 | [
"Apache-2.0"
] | 1 | 2021-12-17T15:50:48.000Z | 2021-12-17T15:50:48.000Z | test/sagemaker_tests/tensorflow/tensorflow2_training/integration/sagemaker/test_horovod.py | arjkesh/deep-learning-containers-1 | 9bf65197dee8a6f59b3d4ee240dcc11824240854 | [
"Apache-2.0"
] | null | null | null | test/sagemaker_tests/tensorflow/tensorflow2_training/integration/sagemaker/test_horovod.py | arjkesh/deep-learning-containers-1 | 9bf65197dee8a6f59b3d4ee240dcc11824240854 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-2020 Amazon.com, Inc. or its 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 39.132075 | 91 | 0.677917 |
6a433c4979f41ba2eb37ceda0c23eab40e0647db | 2,647 | py | Python | travy/travy.py | ribal-aladeeb/Simple-Camera | a4d664b0878e8e86e126c45fb0df9f5aa62ce5b3 | [
"Apache-2.0"
] | null | null | null | travy/travy.py | ribal-aladeeb/Simple-Camera | a4d664b0878e8e86e126c45fb0df9f5aa62ce5b3 | [
"Apache-2.0"
] | 2 | 2019-01-11T17:06:29.000Z | 2019-01-19T04:05:56.000Z | travy/travy.py | YannCedric/Simple-Camera | a4d664b0878e8e86e126c45fb0df9f5aa62ce5b3 | [
"Apache-2.0"
] | 2 | 2020-01-16T07:21:51.000Z | 2020-03-19T20:41:48.000Z | import requests
import pprint
import json
import flask
from config import token
import re
# pretty prints json to terminal
dump = pprint.PrettyPrinter(indent=4).pprint
# dump obj to data.json
def file_dump(obj):
with open('data.json', 'w') as outfile:
json.dump(obj, outfile)
# make a get re... | 34.376623 | 90 | 0.542501 |
07d26c80accf3bb9c903dd7c933451531d150963 | 1,310 | py | Python | setup.py | PaintingInAir/Optimal | 00b8572c82bc1a586d399ca7ba3f2131d14d426b | [
"MIT"
] | 36 | 2017-09-08T14:47:27.000Z | 2022-03-31T02:12:31.000Z | setup.py | JustinLovinger/Optimal | 00b8572c82bc1a586d399ca7ba3f2131d14d426b | [
"MIT"
] | 1 | 2020-03-03T04:29:57.000Z | 2020-07-06T03:42:56.000Z | setup.py | JustinLovinger/optimal | 00b8572c82bc1a586d399ca7ba3f2131d14d426b | [
"MIT"
] | 14 | 2017-10-03T12:45:20.000Z | 2021-12-16T01:48:00.000Z | from distutils.core import setup
# Convert README.md to long description
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
long_description = long_description.replace("\r", "") # YOU NEED THIS LINE
except (ImportError, OSError, IOError):
print("Pandoc not found. Long_descrip... | 34.473684 | 143 | 0.676336 |
537a75f1c0418fecdd9238c0b81727bf8a691fae | 279 | py | Python | ippon/point/serializers.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | null | null | null | ippon/point/serializers.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 13 | 2018-12-22T15:30:56.000Z | 2022-03-12T00:22:31.000Z | ippon/point/serializers.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 2 | 2019-06-01T11:28:23.000Z | 2020-03-27T15:19:11.000Z | from rest_framework import serializers
import ippon.point
class PointSerializer(serializers.ModelSerializer):
class Meta:
model = ippon.models.point.Point
fields = (
'id',
'type',
'player',
'fight'
)
| 18.6 | 51 | 0.555556 |
f7f8ed932b7446f3626d5114e48e64208afa23ee | 28,897 | py | Python | src/bdbd/src/bdbd/analysis/motion/NewRaph10.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | src/bdbd/src/bdbd/analysis/motion/NewRaph10.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | src/bdbd/src/bdbd/analysis/motion/NewRaph10.py | rkent/BDBD | c5d391da84faf5607c443078781f8b4e1c017dd5 | [
"MIT"
] | null | null | null | # newton-raphson iteration of motion equations
import numpy as np
import rospy
import math
import time
from bdbd_common.utils import fstr, gstr
from bdbd_common.msg import LeftRights
from bdbd_common.geometry import lr_est, default_lr_model, D_TO_R
def estr(a):
return fstr(a, fmat='10.7g', n_per_line=10)
class N... | 33.996471 | 129 | 0.462193 |
29f6e512205b95c1a71f5520b9b75a375be8a6d4 | 3,980 | py | Python | metadata-ingestion/src/datahub/ingestion/source/aws/aws_common.py | magska/datahub | f2e2a4d5b7041400ab14dfd0109707518b9a02d3 | [
"Apache-2.0"
] | 1 | 2021-10-21T07:34:13.000Z | 2021-10-21T07:34:13.000Z | metadata-ingestion/src/datahub/ingestion/source/aws/aws_common.py | iamduyu/datahub | 4c33124e8f5582749877e30ac2b0c0c1bfa06f42 | [
"Apache-2.0"
] | 29 | 2021-10-05T12:12:02.000Z | 2022-03-31T22:12:39.000Z | metadata-ingestion/src/datahub/ingestion/source/aws/aws_common.py | iamduyu/datahub | 4c33124e8f5582749877e30ac2b0c0c1bfa06f42 | [
"Apache-2.0"
] | 2 | 2021-09-15T09:40:34.000Z | 2022-03-04T16:24:52.000Z | from functools import reduce
from typing import TYPE_CHECKING, List, Optional, Union
import boto3
from boto3.session import Session
from datahub.configuration import ConfigModel
from datahub.configuration.common import AllowDenyPattern
from datahub.emitter.mce_builder import DEFAULT_ENV
if TYPE_CHECKING:
from m... | 32.892562 | 82 | 0.646482 |
6363699ccb23cbc7837daf41f8d4f7bd75e56607 | 3,608 | py | Python | poptimizer/data/adapters/gateways/conomy.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | null | null | null | poptimizer/data/adapters/gateways/conomy.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | null | null | null | poptimizer/data/adapters/gateways/conomy.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | 1 | 2021-12-02T13:32:44.000Z | 2021-12-02T13:32:44.000Z | """Загрузка данных с https://www.conomy.ru/."""
import asyncio
from typing import Final, Optional, cast
import pandas as pd
from pyppeteer import errors
from pyppeteer.page import Page
from poptimizer.data.adapters.gateways import gateways
from poptimizer.data.adapters.html import cell_parser, chromium, description, ... | 34.037736 | 102 | 0.690133 |
e8c2564f86014ba6dd3b007ca5ae6728ddb26abb | 1,567 | py | Python | wagtail_icon_picker/edit_handlers.py | xeroticikot/wagtail-icon-picker | 7b76071ad5ff844e9f05dac02135af4b817d7480 | [
"MIT"
] | 1 | 2021-11-07T15:52:58.000Z | 2021-11-07T15:52:58.000Z | wagtail_icon_picker/edit_handlers.py | xeroticikot/wagtail-icon-picker | 7b76071ad5ff844e9f05dac02135af4b817d7480 | [
"MIT"
] | null | null | null | wagtail_icon_picker/edit_handlers.py | xeroticikot/wagtail-icon-picker | 7b76071ad5ff844e9f05dac02135af4b817d7480 | [
"MIT"
] | null | null | null | from wagtail.admin.edit_handlers import FieldPanel
from wagtail_icon_picker.widgets import BoxIconPickerWidget, BootstrapIconPickerWidget, IcofontPickerWidget, \
FontAwesomeIconPickerWidget, BoxIconsInputWidget, BootstrapIconsInputWidget, IcofontInputWidget, \
FontAwesomeIconsInputWidget
class BootstrapIconP... | 25.274194 | 110 | 0.689853 |
bedfb1f04188e0bb4e4c98ea21d872dabd15a257 | 193 | py | Python | ProfissionalEnc/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | 1 | 2022-03-08T11:29:09.000Z | 2022-03-08T11:29:09.000Z | ProfissionalEnc/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | null | null | null | ProfissionalEnc/forms.py | robertoalcaras/ProjetoIntegrador | 796fb5d78ed9ad7b842bc76259dfb5f71b25dc48 | [
"MIT"
] | null | null | null | from django import forms
from ProfissionalEnc.models import ProfissionalEnc
class ProfissionalEncForm(forms.ModelForm):
class Meta:
model = ProfissionalEnc
fields = '__all__' | 27.571429 | 50 | 0.761658 |
50b8fa21b128f472c5dbbadf978f91f2183b96a2 | 1,193 | py | Python | Modules/gr-tutorial/python/__init__.py | mfkiwl/Post-Shannon-SDR | 19a40910f0fd3d78a65f1aedc17747f6bb770f62 | [
"MIT"
] | 4 | 2021-08-17T08:39:10.000Z | 2022-03-25T17:03:53.000Z | Modules/gr-tutorial/python/__init__.py | jracevedob/Post-Shannon-SDR | 19a40910f0fd3d78a65f1aedc17747f6bb770f62 | [
"MIT"
] | null | null | null | Modules/gr-tutorial/python/__init__.py | jracevedob/Post-Shannon-SDR | 19a40910f0fd3d78a65f1aedc17747f6bb770f62 | [
"MIT"
] | null | null | null | #
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This application is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This application is di... | 33.138889 | 74 | 0.766136 |
574be00a5c4617cf51d49d77a306d51d689ee044 | 4,129 | py | Python | bin/L8_TOA_refl.py | jmichellehu/rs_tools | 7fbf8bed198dd4d7b7ee065fbc853a37ce9ac700 | [
"MIT"
] | null | null | null | bin/L8_TOA_refl.py | jmichellehu/rs_tools | 7fbf8bed198dd4d7b7ee065fbc853a37ce9ac700 | [
"MIT"
] | null | null | null | bin/L8_TOA_refl.py | jmichellehu/rs_tools | 7fbf8bed198dd4d7b7ee065fbc853a37ce9ac700 | [
"MIT"
] | 1 | 2020-07-01T15:26:14.000Z | 2020-07-01T15:26:14.000Z | #!/usr/bin/env python
# This script calculates TOA reflectance for Landsat 8 Level 1 imagery
# import libraries
# requires gdal and geoio from https://github.com/DigitalGlobe/geoio
# uses functions created by dshean's dgtools github repo
import math
import geoio
from gdalconst import *
import argparse
import re
# H... | 35.904348 | 227 | 0.719545 |
7769b00137f89929fa7f2b33b3be9b749285aaf1 | 1,637 | py | Python | src/dependencys/comtypes/comtypes/logutil.py | Advik-B/Virus | 51bc71b9e0ce4953053d43fc88477ab29957b2c3 | [
"MIT"
] | 1 | 2021-11-24T07:32:20.000Z | 2021-11-24T07:32:20.000Z | src/dependencys/comtypes/comtypes/logutil.py | Advik-B/Virus | 51bc71b9e0ce4953053d43fc88477ab29957b2c3 | [
"MIT"
] | null | null | null | src/dependencys/comtypes/comtypes/logutil.py | Advik-B/Virus | 51bc71b9e0ce4953053d43fc88477ab29957b2c3 | [
"MIT"
] | null | null | null | # logutil.py
import logging, ctypes
class NTDebugHandler(logging.Handler):
def emit(
self,
record,
writeA=ctypes.windll.kernel32.OutputDebugStringA,
writeW=ctypes.windll.kernel32.OutputDebugStringW,
):
text = self.format(record)
if isinstance(text, str):
... | 26.836066 | 73 | 0.637141 |
8c1b56b603a6ffc9e850cc451633bb6b6ca1566c | 5,514 | py | Python | api_site/src/api_x/zyt/biz/__init__.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | 1 | 2019-10-14T11:51:49.000Z | 2019-10-14T11:51:49.000Z | api_site/src/api_x/zyt/biz/__init__.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | api_site/src/api_x/zyt/biz/__init__.py | webee/pay | b48c6892686bf3f9014bb67ed119506e41050d45 | [
"W3C"
] | null | null | null | # coding=utf-8
from api_x.constant import TransactionType
from api_x.zyt.biz.payment import handle_payment_result
from .pay import handle_payment_notify
from .prepaid import handle_prepaid_notify
from .refund import handle_refund_notify
from .withdraw import handle_withdraw_notify
from .query_notify import register_que... | 44.112 | 113 | 0.820638 |
e0d11782bf5ef80d02828843ae33a77f7b5c4017 | 2,440 | py | Python | modules/selfserve/files/selfserve/lib/selfserve/keys.py | mshuler/infrastructure-puppet | bb054d08e89f9bf4b804a7a453f02ae722519d0a | [
"Apache-2.0"
] | 1 | 2019-06-09T10:25:04.000Z | 2019-06-09T10:25:04.000Z | modules/selfserve/files/selfserve/lib/selfserve/keys.py | mshuler/infrastructure-puppet | bb054d08e89f9bf4b804a7a453f02ae722519d0a | [
"Apache-2.0"
] | 1 | 2020-05-08T07:07:43.000Z | 2020-05-08T07:07:43.000Z | modules/selfserve/files/selfserve/lib/selfserve/keys.py | mshuler/infrastructure-puppet | bb054d08e89f9bf4b804a7a453f02ae722519d0a | [
"Apache-2.0"
] | 1 | 2019-12-31T07:28:19.000Z | 2019-12-31T07:28:19.000Z | #!/usr/bin/python
#
# Library logic for selfserve ss2: interfacing with PGP.
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for addi... | 34.857143 | 97 | 0.693852 |
fc0f6cfc3a19477d5ce38f677f26e9b61400ca72 | 2,162 | py | Python | CIM16/IEC61970/Informative/InfWork/NonStandardItem.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM16/IEC61970/Informative/InfWork/NonStandardItem.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM16/IEC61970/Informative/InfWork/NonStandardItem.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 1 | 2021-04-02T18:04:49.000Z | 2021-04-02T18:04:49.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 45.041667 | 329 | 0.717391 |
416531d1cff99f2cccdc63cfee8d8b871aeea29a | 817 | py | Python | packages/qapi/qapi/middleware.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:52:01.000Z | 2021-04-28T15:06:43.000Z | packages/qapi/qapi/middleware.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 5 | 2020-02-06T08:07:58.000Z | 2020-06-02T13:03:45.000Z | packages/qapi/qapi/middleware.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 11 | 2020-02-03T13:07:46.000Z | 2020-11-29T01:44:06.000Z | """
@author: 郭奕佳
@email: gyj@gzqichang.com
前端添加 Header 头:
X_HTTP_METHOD_OVERRIDE: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'HEAD', 'OPTION']
"""
from django.utils.deprecation import MiddlewareMixin
METHOD_OVERRIDE_HEADER = 'HTTP_X_HTTP_METHOD_OVERRIDE'
METHODS = ['GET', 'POST', 'PATCH', 'DELETE', 'P... | 30.259259 | 87 | 0.685435 |
cf78aa73523168423471b5e7d5b5cdc7163c5c0c | 8,376 | py | Python | exporters/committime/collector_bitbucket.py | caiomedeirospinto/pelorus | 2cd21f11cb36b1d1cd34add6c7d23c13079d803c | [
"Apache-2.0"
] | 71 | 2019-11-27T19:36:42.000Z | 2021-02-09T22:22:58.000Z | exporters/committime/collector_bitbucket.py | caiomedeirospinto/pelorus | 2cd21f11cb36b1d1cd34add6c7d23c13079d803c | [
"Apache-2.0"
] | 176 | 2019-11-27T18:46:20.000Z | 2021-02-15T14:39:21.000Z | exporters/committime/collector_bitbucket.py | caiomedeirospinto/pelorus | 2cd21f11cb36b1d1cd34add6c7d23c13079d803c | [
"Apache-2.0"
] | 43 | 2019-12-11T20:43:58.000Z | 2021-02-14T18:50:00.000Z | import json
import logging
import requests
from collector_base import AbstractCommitCollector
import pelorus
# import urllib3
# urllib3.disable_warnings()
class BitbucketCommitCollector(AbstractCommitCollector):
# globals for Bitbucket v1 API
V1_API_ROOT = "rest/api"
V1_API_TEST = "1.0/projects"
V... | 39.885714 | 111 | 0.560053 |
bd273dad89357d8d9880522aa0d9a55249c2bb28 | 1,367 | py | Python | machine/qemu/sources/u-boot/test/py/tests/test_spl.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/test/py/tests/test_spl.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/test/py/tests/test_spl.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: GPL-2.0
# Copyright 2020 Google LLC
# Written by Simon Glass <sjg@chromium.org>
import os.path
import pytest
def test_spl(u_boot_console, ut_spl_subtest):
"""Execute a "ut" subtest.
The subtests are collected in function generate_ut_subtest() from linker
generated lists by appl... | 39.057143 | 80 | 0.695684 |
bcde82d6f5a899f4d2b02d5920590cc7e770936a | 4,789 | py | Python | rally/plugins/openstack/context/quotas/quotas.py | boris-42/rally | 8da58ac92d36de736138240cc825a0423e11ff83 | [
"Apache-2.0"
] | 1 | 2018-01-01T00:43:41.000Z | 2018-01-01T00:43:41.000Z | rally/plugins/openstack/context/quotas/quotas.py | boris-42/rally | 8da58ac92d36de736138240cc825a0423e11ff83 | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/context/quotas/quotas.py | boris-42/rally | 8da58ac92d36de736138240cc825a0423e11ff83 | [
"Apache-2.0"
] | 1 | 2020-06-05T10:06:37.000Z | 2020-06-05T10:06:37.000Z | # Copyright 2014: Dassault Systemes
# 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 requir... | 42.380531 | 79 | 0.608687 |
b323ddad18ecc1bc9757998892dc53a086d3f627 | 16,005 | py | Python | training/network_training/nnUNetTrainerCascadeFullRes.py | rylezhou/sunet-pytorch | 46473f4ba6ce442335f318b45aee50a357af92bf | [
"Apache-2.0"
] | null | null | null | training/network_training/nnUNetTrainerCascadeFullRes.py | rylezhou/sunet-pytorch | 46473f4ba6ce442335f318b45aee50a357af92bf | [
"Apache-2.0"
] | null | null | null | training/network_training/nnUNetTrainerCascadeFullRes.py | rylezhou/sunet-pytorch | 46473f4ba6ce442335f318b45aee50a357af92bf | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | 55.189655 | 132 | 0.609684 |
b9323db58ef679811e899af1e093fc6572ee9d45 | 31,031 | py | Python | arteryfe/artery_network.py | akdiem/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 12 | 2018-11-01T17:10:13.000Z | 2022-03-18T06:04:25.000Z | arteryfe/artery_network.py | akdiem/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 4 | 2018-12-12T13:47:14.000Z | 2021-04-08T16:01:34.000Z | arteryfe/artery_network.py | syverda/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 11 | 2019-07-25T08:20:53.000Z | 2021-12-30T00:03:04.000Z | import sys
import numpy as np
import numpy.linalg as npl
import configparser
from dolfin import *
from arteryfe.artery import Artery
from arteryfe.utils import *
comm = mpi_comm_world().tompi4py()
class ArteryNetwork(object):
"""
Builds an artery network from the given parameters. Arteries in the network
... | 32.767687 | 124 | 0.494957 |
20e5311e8cc4b231933ba611d6e1e3896b5f9682 | 1,376 | py | Python | tests/test_models.py | seung-lab/MaterializationEngine | b0dbda304db3f90c3e619edace6328dcf1b33f94 | [
"MIT"
] | null | null | null | tests/test_models.py | seung-lab/MaterializationEngine | b0dbda304db3f90c3e619edace6328dcf1b33f94 | [
"MIT"
] | 14 | 2021-05-28T00:05:37.000Z | 2022-03-22T18:37:27.000Z | tests/test_models.py | seung-lab/MaterializationEngine | b0dbda304db3f90c3e619edace6328dcf1b33f94 | [
"MIT"
] | null | null | null | from materializationengine.models import AnalysisTable, AnalysisVersion
def test_analysis_version(mat_metadata):
analysisversion = AnalysisVersion(
datastack=mat_metadata["datastack"],
time_stamp=mat_metadata["timestamp"],
version=mat_metadata["version"],
valid=False,
expir... | 41.69697 | 77 | 0.742733 |
c78b6954506278840b89405ab14199195f3ac1f0 | 899 | py | Python | .modules/.sqlmap/lib/utils/versioncheck.py | termux-one/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 1,103 | 2018-04-20T14:08:11.000Z | 2022-03-29T06:22:43.000Z | .modules/.sqlmap/lib/utils/versioncheck.py | sshourya948/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 29 | 2019-04-03T14:52:38.000Z | 2022-03-24T12:33:05.000Z | .modules/.sqlmap/lib/utils/versioncheck.py | sshourya948/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 161 | 2018-04-20T15:57:12.000Z | 2022-03-15T19:16:16.000Z | #!/usr/bin/env python
"""
Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import sys
import time
PYVERSION = sys.version.split()[0]
if PYVERSION >= "3" or PYVERSION < "2.6":
exit("[%s] [CRITICAL] incompatible Python version detected ('%s'). To suc... | 31 | 220 | 0.655172 |
c045bffa95b29e069831b548701b76d1b8e76c0d | 1,296 | py | Python | official/modeling/activations/gelu.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 153 | 2020-10-25T13:58:04.000Z | 2022-03-07T06:01:54.000Z | official/modeling/activations/gelu.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 21 | 2021-08-31T08:34:50.000Z | 2022-03-17T11:42:10.000Z | official/modeling/activations/gelu.py | 873040/Abhishek | 2ddd716e66bc5cc6e6f0787508dd07da0e02e75a | [
"Apache-2.0"
] | 39 | 2021-07-02T00:46:14.000Z | 2022-03-13T16:59:55.000Z | # Copyright 2019 The TensorFlow Authors. 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 applica... | 31.609756 | 80 | 0.686728 |
384e0e43bf1233c9f1606bd55419da3a5c214d9f | 10,139 | py | Python | Software/Python/grove_barometer_sensors/barometric_sensor_bmp180/grove_i2c_barometic_sensor_BMP180.py | joemarshall/GrovePi | d128ab734f216f5b2d82c1b629cfca3f31af4993 | [
"MIT"
] | 7 | 2015-03-23T20:30:58.000Z | 2018-04-25T07:48:46.000Z | Software/Python/grove_barometer_sensors/barometric_sensor_bmp180/grove_i2c_barometic_sensor_BMP180.py | joemarshall/GrovePi | d128ab734f216f5b2d82c1b629cfca3f31af4993 | [
"MIT"
] | 4 | 2015-02-07T17:37:58.000Z | 2017-07-30T10:14:29.000Z | Software/Python/grove_barometer_sensors/barometric_sensor_bmp180/grove_i2c_barometic_sensor_BMP180.py | joemarshall/GrovePi | d128ab734f216f5b2d82c1b629cfca3f31af4993 | [
"MIT"
] | 7 | 2015-08-29T13:52:42.000Z | 2021-12-29T15:10:19.000Z | #!/usr/bin/python
# Copyright 2014 Johan Vandewalle. All rights reserved.
#
# Redistributian and use in source and binary forms, with or without
# modification, are permitted provide that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list... | 35.083045 | 126 | 0.606569 |
17bcb4be46c269900cac772c45adcfd0b047ac5c | 8,459 | py | Python | docs/sphinx_extensions/codeinclude/codeinclude.py | siggisim/tecl | 2a6c58ebf0ee7f9cb28e5e8f8b7970502a35c00d | [
"Apache-2.0"
] | null | null | null | docs/sphinx_extensions/codeinclude/codeinclude.py | siggisim/tecl | 2a6c58ebf0ee7f9cb28e5e8f8b7970502a35c00d | [
"Apache-2.0"
] | null | null | null | docs/sphinx_extensions/codeinclude/codeinclude.py | siggisim/tecl | 2a6c58ebf0ee7f9cb28e5e8f8b7970502a35c00d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Tulip Solutions B.V.
#
# 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... | 39.713615 | 120 | 0.623596 |
fb1f7741745e6654952bcd2035facb84d4b60723 | 971 | py | Python | 3rdparty/openmm/wrappers/python/tests/TestBytes.py | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | 5 | 2020-07-31T17:33:03.000Z | 2022-01-01T19:24:37.000Z | 3rdparty/openmm/wrappers/python/tests/TestBytes.py | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | 11 | 2020-06-16T05:05:42.000Z | 2022-03-30T09:59:14.000Z | 3rdparty/openmm/wrappers/python/tests/TestBytes.py | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | 9 | 2020-01-24T12:02:37.000Z | 2020-10-16T06:23:56.000Z | import unittest
import simtk.openmm as mm
class TestBytes(unittest.TestCase):
def test_createCheckpoint(self):
system = mm.System()
system.addParticle(1.0)
refPositions = [(0,0,0)]
platform = mm.Platform.getPlatformByName('Reference')
context = mm.Context(system, mm.Verlet... | 31.322581 | 88 | 0.680742 |
4bc9f733a39b200aefba18d8af7226b2b7db0d0d | 7,769 | py | Python | myGUI.py | developedby/PyAPT | 633ea6c6b4a84c6df18256b89801f3d6cb47a92b | [
"MIT"
] | null | null | null | myGUI.py | developedby/PyAPT | 633ea6c6b4a84c6df18256b89801f3d6cb47a92b | [
"MIT"
] | null | null | null | myGUI.py | developedby/PyAPT | 633ea6c6b4a84c6df18256b89801f3d6cb47a92b | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
APT Motor Controller GUI for Thorlabs
V1.0
20150417 V1.0 First working version
Michael Leung
mcleung@stanford.edu
"""
#Title: OpenFFOCT
version='1.0'
#Date: April 17, 2015
#Python Version 2.7.9
import os
import platform
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
... | 30.70751 | 86 | 0.61179 |
e6cfe9f1ea851c53d79102bc9b2ff8d235fe1c16 | 6,474 | py | Python | ansible/lib/ansible/modules/extras/source_control/bzr.py | kiv-box/redis | 966a0c3f0a51282cd173b42a6e249d23f4e89dec | [
"Apache-2.0"
] | null | null | null | ansible/lib/ansible/modules/extras/source_control/bzr.py | kiv-box/redis | 966a0c3f0a51282cd173b42a6e249d23f4e89dec | [
"Apache-2.0"
] | null | null | null | ansible/lib/ansible/modules/extras/source_control/bzr.py | kiv-box/redis | 966a0c3f0a51282cd173b42a6e249d23f4e89dec | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, André Paramés <git@andreparames.com>
# Based on the Git module by Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | 32.37 | 96 | 0.60658 |
56724c80558b68b72234465a7dc0989dde8e0ecb | 725 | py | Python | space_3d.py | rokkian/adam_implementation | 37cef22a15d7b25def9d451cf951b30bb76333c6 | [
"Apache-2.0"
] | null | null | null | space_3d.py | rokkian/adam_implementation | 37cef22a15d7b25def9d451cf951b30bb76333c6 | [
"Apache-2.0"
] | null | null | null | space_3d.py | rokkian/adam_implementation | 37cef22a15d7b25def9d451cf951b30bb76333c6 | [
"Apache-2.0"
] | null | null | null | from numpy import arange, meshgrid
from matplotlib import pyplot
#funzione obiettivo
def objective(x, y):
'''funzione obiettivo z = x**2 + y**2 '''
return x ** 2.0 + y ** 2.0
if __name__ == '__main__':
#range dell'input
r_min, r_max = -1.0, 1.0
#campiono il range in modo uniforme
xaxis = aran... | 25.892857 | 59 | 0.633103 |
4584bf058179a3ce84640696a9865ce191c0f25a | 13,698 | py | Python | mmd_scripting/scripts_for_gui/check_model_compatibility.py | Nuthouse01/PMX-VMD-Scripting-Tools | 21a397db92c5f8034494dfcc41c7814096d3dd50 | [
"MIT"
] | 54 | 2020-07-15T02:51:47.000Z | 2022-03-22T01:33:54.000Z | mmd_scripting/scripts_for_gui/check_model_compatibility.py | Nuthouse01/VMD-to-text-Conversion-Tool | 0d9334bd5735accdd8bb6e1b69889fbe054a7481 | [
"MIT"
] | 5 | 2020-09-05T23:22:40.000Z | 2021-11-26T22:32:09.000Z | mmd_scripting/scripts_for_gui/check_model_compatibility.py | Nuthouse01/VMD-to-text-Conversion-Tool | 0d9334bd5735accdd8bb6e1b69889fbe054a7481 | [
"MIT"
] | 13 | 2020-09-05T19:06:27.000Z | 2022-02-14T16:01:09.000Z | import mmd_scripting.core.nuthouse01_core as core
import mmd_scripting.core.nuthouse01_packer as pack
import mmd_scripting.core.nuthouse01_pmx_parser as pmxlib
import mmd_scripting.core.nuthouse01_vmd_parser as vmdlib
import mmd_scripting.core.nuthouse01_vmd_utils as vmdutil
import mmd_scripting.core.nuthouse01_vpd_par... | 49.992701 | 364 | 0.709812 |
0b396b5066540ef95a3cd6c1716a030e2a7b69ec | 15,425 | py | Python | discovery-provider/src/tasks/user_replica_set.py | Tenderize/audius-protocol | aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51 | [
"Apache-2.0"
] | null | null | null | discovery-provider/src/tasks/user_replica_set.py | Tenderize/audius-protocol | aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51 | [
"Apache-2.0"
] | null | null | null | discovery-provider/src/tasks/user_replica_set.py | Tenderize/audius-protocol | aa15844e3f12812fe8aaa81e2cb6e5c5fa89ff51 | [
"Apache-2.0"
] | null | null | null | import logging
from datetime import datetime
from sqlalchemy.orm.session import make_transient
from src.app import get_contract_addresses, get_eth_abi_values
from src.models import URSMContentNode
from src.tasks.users import invalidate_old_user, lookup_user_record
from src.utils.eth_contracts_helpers import (
cont... | 41.023936 | 115 | 0.617504 |
0c9374c83152020a2369d34922c89a81a70c3839 | 4,102 | py | Python | scripts/main_endtoend.py | kumachan-mis/py-pdf-term | 282505826ce8c626003e753068d15738d772ce46 | [
"MIT"
] | null | null | null | scripts/main_endtoend.py | kumachan-mis/py-pdf-term | 282505826ce8c626003e753068d15738d772ce46 | [
"MIT"
] | 1 | 2021-08-02T13:02:12.000Z | 2021-08-02T13:02:12.000Z | scripts/main_endtoend.py | kumachan-mis/py-pdf-term | 282505826ce8c626003e753068d15738d772ce46 | [
"MIT"
] | null | null | null | import json
import os
from argparse import ArgumentParser
from py_pdf_term import PyPDFTermExtractor
from py_pdf_term.configs import MethodLayerConfig
from scripts.utils import (
generate_domain_pdfs,
get_domains,
pdf_to_techterm_path,
relpath_from_basedir,
)
script_name = os.path.basename(__file__)
... | 37.633028 | 84 | 0.643101 |
1ae3cb855bb8f4ce5edd1e6dcbf816f3a20c763a | 1,000 | py | Python | test/test_managed_member_create_request.py | mxenabled/mx-platform-python | 060dae7ddb02fdcf41fa7f7aebfa4b8a0273afac | [
"MIT"
] | null | null | null | test/test_managed_member_create_request.py | mxenabled/mx-platform-python | 060dae7ddb02fdcf41fa7f7aebfa4b8a0273afac | [
"MIT"
] | 14 | 2021-11-30T21:56:19.000Z | 2022-02-07T18:47:10.000Z | test/test_managed_member_create_request.py | mxenabled/mx-platform-python | 060dae7ddb02fdcf41fa7f7aebfa4b8a0273afac | [
"MIT"
] | 1 | 2022-01-12T14:59:39.000Z | 2022-01-12T14:59:39.000Z | """
MX Platform API
The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. # noqa: E501
The version of the OpenAPI document: 0.1.0
... | 27.777778 | 242 | 0.736 |
2d5b7c94037424714b5bae20694dd2734b6bcddb | 8,512 | pyw | Python | cryptonotes.pyw | domreichl/cryptonotes | 15ce7706d87288a0cf52149d107179a8e3f2eb84 | [
"Apache-2.0"
] | null | null | null | cryptonotes.pyw | domreichl/cryptonotes | 15ce7706d87288a0cf52149d107179a8e3f2eb84 | [
"Apache-2.0"
] | null | null | null | cryptonotes.pyw | domreichl/cryptonotes | 15ce7706d87288a0cf52149d107179a8e3f2eb84 | [
"Apache-2.0"
] | null | null | null | #! python3
# cryptonotes.pyw by Dom Reichl
import string
from random import shuffle
from tkinter import *
from tkinter import filedialog, messagebox
class Cryptonotes(Frame):
''' Builds a simple notepad application with encryption function (substitution cipher). '''
def __init__(self, master=N... | 43.651282 | 154 | 0.607495 |
6b7281885d83984209333f5d1d2227fd9f803e82 | 26,729 | py | Python | src/pyscripts/sqlalchemy/orm/dependency.py | paddybu/xsbs | 3810eab4cd91d9a927ac724a4892763a5ff562a5 | [
"BSD-3-Clause"
] | 2 | 2020-07-02T21:50:43.000Z | 2021-01-12T09:26:25.000Z | src/pyscripts/sqlalchemy/orm/dependency.py | greghaynes/xsbs | a14bd4c96733a8cf01a8a01200d22868b3335c4f | [
"BSD-3-Clause"
] | null | null | null | src/pyscripts/sqlalchemy/orm/dependency.py | greghaynes/xsbs | a14bd4c96733a8cf01a8a01200d22868b3335c4f | [
"BSD-3-Clause"
] | null | null | null | # orm/dependency.py
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Relationship dependencies.
Bridges the ``PropertyLoader`` (i.e. a ``relation()``)... | 47.901434 | 133 | 0.609488 |
0be515dfe3435e32ffb84549a42bb07458ad044e | 281 | py | Python | QTensorAI/setup.py | sss441803/QFewShot | eec4769f8fedb8dc52a784b662dd2975b219203b | [
"MIT"
] | 1 | 2022-03-18T12:24:41.000Z | 2022-03-18T12:24:41.000Z | QTensorAI/setup.py | sss441803/QFewShot | eec4769f8fedb8dc52a784b662dd2975b219203b | [
"MIT"
] | null | null | null | QTensorAI/setup.py | sss441803/QFewShot | eec4769f8fedb8dc52a784b662dd2975b219203b | [
"MIT"
] | 1 | 2022-02-03T20:08:32.000Z | 2022-02-03T20:08:32.000Z | from setuptools import setup, find_packages
setup(name='qtensor-ai',
version='0.1',
author='Henry Liu',
author_email='mliu6@uchicago.edu',
license='MIT',
packages=find_packages(),
install_requires=[
'numpy',
'tqdm'
])
| 21.615385 | 43 | 0.580071 |
67f5d1f33ef805a2c1fbb35bb5b2b7b8040319e2 | 866 | py | Python | test/integrationtests/voight_kampff/__init__.py | Ark-Smart-Homes/mycroft-core | c039aebc273fb87f32d287d11b6b5622ad3d7ed4 | [
"Apache-2.0"
] | 1 | 2021-08-19T21:31:43.000Z | 2021-08-19T21:31:43.000Z | test/integrationtests/voight_kampff/__init__.py | Ark-Smart-Homes/mycroft-core | c039aebc273fb87f32d287d11b6b5622ad3d7ed4 | [
"Apache-2.0"
] | null | null | null | test/integrationtests/voight_kampff/__init__.py | Ark-Smart-Homes/mycroft-core | c039aebc273fb87f32d287d11b6b5622ad3d7ed4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Mycroft AI 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 writin... | 32.074074 | 74 | 0.752887 |
8c83bb59d00e3a55a7051f36c8e0156af5906e16 | 3,369 | py | Python | Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
import sys, optparse
copyargs = sys.argv[:]
for i in range(len(copyargs)):
if copyargs[i] == "": copyargs[i] = "\"\""
if copyargs[i].find(" ") != -1: copyargs[i] = "\"%s\"" % copyargs[i]
commandline = " ".join(copyargs)
print commandline
prog = sys.argv[0]
usage = """Usage:... | 33.356436 | 132 | 0.589196 |
f013b24b7430200b53ea90869f8ce521d77f4bdd | 3,789 | py | Python | rest-service/manager_rest/test/endpoints/test_events_v3.py | yeshess/cloudify-manager | 04dd199ce7df54355b87e9594f9db9fb1582924b | [
"Apache-2.0"
] | null | null | null | rest-service/manager_rest/test/endpoints/test_events_v3.py | yeshess/cloudify-manager | 04dd199ce7df54355b87e9594f9db9fb1582924b | [
"Apache-2.0"
] | 1 | 2021-03-26T00:32:30.000Z | 2021-03-26T00:32:30.000Z | rest-service/manager_rest/test/endpoints/test_events_v3.py | yeshess/cloudify-manager | 04dd199ce7df54355b87e9594f9db9fb1582924b | [
"Apache-2.0"
] | 1 | 2019-11-24T12:07:18.000Z | 2019-11-24T12:07:18.000Z | # Copyright (c) 2017 GigaSpaces Technologies Ltd. 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 ... | 37.147059 | 79 | 0.602006 |
a0f1c90fb66ffda8afe48e22468c83e4790a4292 | 1,325 | py | Python | main.py | smrsassa/pizza | 2e2f46f011dbad0f6865d503362bcf906a255845 | [
"MIT"
] | null | null | null | main.py | smrsassa/pizza | 2e2f46f011dbad0f6865d503362bcf906a255845 | [
"MIT"
] | null | null | null | main.py | smrsassa/pizza | 2e2f46f011dbad0f6865d503362bcf906a255845 | [
"MIT"
] | null | null | null | """
Data.......: 17/05/2020
Projeto....: pizza
Arquivo....: main.py
Autor......: Samuel Mayer Rufino
Descrição..: Esse arquivo tem o objetivo de unir todas as funcionalidades da aplicação
a partir de funções
"""
import include as inc
from time import sleep
inc.msg.cabecalho()
sleep(3)
while True:
# menu princip... | 19.485294 | 86 | 0.541132 |
9c4b24602a4b08368d99cb096d623c1e0de3159f | 6,728 | py | Python | test/util/bitcoin-util-test.py | akathedev/AFMC | 8d03c73c0deae946312baed3131a61cfec328df0 | [
"MIT"
] | null | null | null | test/util/bitcoin-util-test.py | akathedev/AFMC | 8d03c73c0deae946312baed3131a61cfec328df0 | [
"MIT"
] | null | null | null | test/util/bitcoin-util-test.py | akathedev/AFMC | 8d03c73c0deae946312baed3131a61cfec328df0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2014 BitPay Inc.
# Copyright 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test framework for nodepay utils.
Runs automatically during `make check`.
Ca... | 37.171271 | 125 | 0.637188 |
c3c2507b69c9c28a6e78edc2fe54b73b499cd470 | 8,121 | py | Python | neurokit2/complexity/fractal_dfa.py | nx10/NeuroKit | 5d37f2c22348552635dbfb8b33a40e2354ad2f02 | [
"MIT"
] | 1 | 2021-06-10T03:27:15.000Z | 2021-06-10T03:27:15.000Z | neurokit2_mouni/complexity/fractal_dfa.py | m00ni19/NeuroKit | d3b13a8923e07e74b64bfd9ed2c848855ede4cf5 | [
"MIT"
] | null | null | null | neurokit2_mouni/complexity/fractal_dfa.py | m00ni19/NeuroKit | d3b13a8923e07e74b64bfd9ed2c848855ede4cf5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from ..misc import expspace
def fractal_dfa(signal, windows="default", overlap=True, integrate=True, order=1, multifractal=False, q=2, show=False):
"""(Multifractal) Detrended Fluctuation Analysis (DFA or MFDFA)
Python implementation... | 36.581081 | 119 | 0.630464 |
7de1364bc16b57914fb893f6b426a799418901af | 13,438 | py | Python | tests/testing/vcr/integration/test_vcr.py | westover/tchannel-python | d9c16291f49b3b9dd1353c01179d4f4c3168c53a | [
"MIT"
] | null | null | null | tests/testing/vcr/integration/test_vcr.py | westover/tchannel-python | d9c16291f49b3b9dd1353c01179d4f4c3168c53a | [
"MIT"
] | null | null | null | tests/testing/vcr/integration/test_vcr.py | westover/tchannel-python | d9c16291f49b3b9dd1353c01179d4f4c3168c53a | [
"MIT"
] | null | null | null | # Copyright (c) 2016 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | 30.130045 | 79 | 0.653594 |
ce82bc33d8c775f54790e1b787cd45d3504be6c0 | 26,532 | py | Python | test/docker-test/oms_docker_tests.py | antomatody/OMS-Agent-for-Linux | 3d034cc337d91871bb4caaba04758103166ffb28 | [
"Apache-2.0"
] | 252 | 2015-12-11T18:38:42.000Z | 2019-04-22T20:57:45.000Z | test/docker-test/oms_docker_tests.py | antomatody/OMS-Agent-for-Linux | 3d034cc337d91871bb4caaba04758103166ffb28 | [
"Apache-2.0"
] | 627 | 2016-01-09T01:17:40.000Z | 2019-05-06T13:48:25.000Z | test/docker-test/oms_docker_tests.py | antomatody/OMS-Agent-for-Linux | 3d034cc337d91871bb4caaba04758103166ffb28 | [
"Apache-2.0"
] | 203 | 2019-05-20T02:51:32.000Z | 2022-03-28T09:07:41.000Z | """
Test the OMS Agent on all or a subset of images.
Setup: read parameters and setup HTML report
Test:
1. Create container and install agent
2. Wait for data to propagate to backend and check for data
?. Repeat steps 1 and 2 with newer agent
4. De-onboard and re-onboard agent
5. Remove agent
6. Reinstall agent
?. Opt... | 44.893401 | 237 | 0.648613 |
f8058d140f7efdea4c6af5ae400f41a9b51361af | 307 | py | Python | outils/unix_pre-commit.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | 14 | 2015-08-21T19:15:21.000Z | 2017-11-26T13:59:17.000Z | outils/unix_pre-commit.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | 20 | 2015-09-29T20:50:45.000Z | 2018-06-21T12:58:30.000Z | outils/unix_pre-commit.py | stormi/tsunami | bdc853229834b52b2ee8ed54a3161a1a3133d926 | [
"BSD-3-Clause"
] | 3 | 2015-05-02T19:42:03.000Z | 2018-09-06T10:55:00.000Z | #!/usr/local/bin/python3.4
"""Hook de pre-commit Git pour Unix.
Pour utiliser, placez-le dans le dossier .git/hooks en le renommant
en 'pre-commit' sans extension.
"""
import os
import sys
# On exécute les tests unitaires
os.chdir("src")
code = os.system(sys.executable + " runtest.py")
sys.exit(code)
| 18.058824 | 67 | 0.71987 |
be055762a531dae1eeffd3373834edb6b8591540 | 4,246 | py | Python | test/integration/014_hook_tests/test_model_hooks_bq.py | tjengel/dbt | f985902a002fba36f6f709c6aacf9ae20778e58c | [
"Apache-2.0"
] | 1 | 2019-10-18T01:16:33.000Z | 2019-10-18T01:16:33.000Z | test/integration/014_hook_tests/test_model_hooks_bq.py | tjengel/dbt | f985902a002fba36f6f709c6aacf9ae20778e58c | [
"Apache-2.0"
] | null | null | null | test/integration/014_hook_tests/test_model_hooks_bq.py | tjengel/dbt | f985902a002fba36f6f709c6aacf9ae20778e58c | [
"Apache-2.0"
] | null | null | null | from test.integration.base import DBTIntegrationTest, use_profile
MODEL_PRE_HOOK = """
insert into {{this.schema}}.on_model_hook (
state,
target_name,
target_schema,
target_type,
target_threads,
run_started_at,
invocation_id
) VALUES (
'start',
'{{ ... | 28.496644 | 163 | 0.565473 |
b512651a9b2a6e2811e715ff8dcf7fcf6e5113fd | 11,454 | py | Python | tests/test_retokenize.py | YianZhang/jiant-v1-legacy-online-code | b6b1066de7cdbe1b95ca1ae3de6989d07b2e9629 | [
"MIT"
] | 74 | 2020-06-11T11:37:57.000Z | 2022-03-07T09:44:05.000Z | tests/test_retokenize.py | YianZhang/jiant-v1-legacy-online-code | b6b1066de7cdbe1b95ca1ae3de6989d07b2e9629 | [
"MIT"
] | 3 | 2020-10-08T18:09:58.000Z | 2021-07-22T22:24:02.000Z | tests/test_retokenize.py | YianZhang/jiant-v1-legacy-online-code | b6b1066de7cdbe1b95ca1ae3de6989d07b2e9629 | [
"MIT"
] | 13 | 2020-06-18T11:53:19.000Z | 2022-03-23T17:15:44.000Z | import unittest
import jiant.utils.retokenize as retokenize
class TestRetokenize(unittest.TestCase):
def setUp(self):
self.text = [
"Members of the House clapped their hands",
"I look at Sarah's dog. It was cute.!",
"Mr. Immelt chose to focus on the incomprehensibility ... | 32.725714 | 97 | 0.370438 |
c7922c563c878a7b1856333335541f37d10996ca | 357 | py | Python | file_server/FileServer.py | CUrW-SL/cfcwm-cms | 3888e724800395c478f1b63dab9f77d0afa3b2c4 | [
"Apache-2.0"
] | null | null | null | file_server/FileServer.py | CUrW-SL/cfcwm-cms | 3888e724800395c478f1b63dab9f77d0afa3b2c4 | [
"Apache-2.0"
] | null | null | null | file_server/FileServer.py | CUrW-SL/cfcwm-cms | 3888e724800395c478f1b63dab9f77d0afa3b2c4 | [
"Apache-2.0"
] | null | null | null | import http.server
import socketserver
import os
PORT = 8080
web_dir = os.path.join(os.path.dirname(__file__), 'data')
os.chdir(web_dir)
Handler = http.server.SimpleHTTPRequestHandler
# httpd = socketserver.TCPServer(("104.198.0.87", PORT), Handler)
httpd = socketserver.TCPServer(("", PORT), Handler)
print("serving ... | 25.5 | 65 | 0.756303 |
b44e8700dbc9101704d4ecc84484d312ea165aaa | 11,214 | py | Python | deploy/python/tracker/jde_tracker.py | qili93/PaddleDetection | 47fc188b65ef8950ac7eb9ab383a2ac7c1cb5c39 | [
"Apache-2.0"
] | 7,782 | 2019-10-25T09:39:37.000Z | 2022-03-31T13:44:14.000Z | deploy/python/tracker/jde_tracker.py | qili93/PaddleDetection | 47fc188b65ef8950ac7eb9ab383a2ac7c1cb5c39 | [
"Apache-2.0"
] | 3,499 | 2019-10-29T12:37:40.000Z | 2022-03-31T14:51:56.000Z | deploy/python/tracker/jde_tracker.py | qili93/PaddleDetection | 47fc188b65ef8950ac7eb9ab383a2ac7c1cb5c39 | [
"Apache-2.0"
] | 1,874 | 2019-10-28T04:21:58.000Z | 2022-03-31T05:41:21.000Z | # Copyright (c) 2021 PaddlePaddle Authors. 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 ... | 46.53112 | 123 | 0.626984 |
975d2ca1cc0edde6ed956e770972e211890149d5 | 3,971 | py | Python | testbed/test_common_request_handler/test_gevent.py | isaaczinda/opentracing-python | 16cf899bf65be62f258084930bc1b0107c445c67 | [
"Apache-2.0"
] | 795 | 2016-01-18T16:48:22.000Z | 2022-02-22T13:36:57.000Z | testbed/test_common_request_handler/test_gevent.py | isaaczinda/opentracing-python | 16cf899bf65be62f258084930bc1b0107c445c67 | [
"Apache-2.0"
] | 121 | 2016-01-07T01:53:30.000Z | 2022-03-24T11:07:04.000Z | testbed/test_common_request_handler/test_gevent.py | isaaczinda/opentracing-python | 16cf899bf65be62f258084930bc1b0107c445c67 | [
"Apache-2.0"
] | 124 | 2016-01-07T01:49:37.000Z | 2021-12-30T01:11:54.000Z | from __future__ import print_function
import gevent
from opentracing.ext import tags
from opentracing.mocktracer import MockTracer
from opentracing.scope_managers.gevent import GeventScopeManager
from ..testcase import OpenTracingTestCase
from ..utils import get_logger, get_one_by_operation_name
from .request_handler... | 34.530435 | 76 | 0.694535 |
f2cdd8d69ef1b3539737ecbd0171171626aa896c | 4,732 | py | Python | sofascore/__init__.py | shimst3r/pysofa | 67265a1966126817b722300aabd8ce1ef8a14284 | [
"Apache-2.0"
] | null | null | null | sofascore/__init__.py | shimst3r/pysofa | 67265a1966126817b722300aabd8ce1ef8a14284 | [
"Apache-2.0"
] | 1 | 2021-07-02T09:39:21.000Z | 2021-07-02T09:49:53.000Z | sofascore/__init__.py | shimst3r/pysofa | 67265a1966126817b722300aabd8ce1ef8a14284 | [
"Apache-2.0"
] | 1 | 2021-07-02T09:40:56.000Z | 2021-07-02T09:40:56.000Z | # -*- coding: utf-8 -*-
"""
Copyright 2021 shimst3r
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... | 30.727273 | 87 | 0.698225 |
9d99b967807d6d4f3efcff047392492074c7d6e3 | 1,537 | py | Python | tests/test_class_oelint_vars_fileextrapaths.py | Rahix/oelint-adv | b9dc381b181a8bdc7300bb5070f80bf90950efbd | [
"BSD-2-Clause"
] | null | null | null | tests/test_class_oelint_vars_fileextrapaths.py | Rahix/oelint-adv | b9dc381b181a8bdc7300bb5070f80bf90950efbd | [
"BSD-2-Clause"
] | null | null | null | tests/test_class_oelint_vars_fileextrapaths.py | Rahix/oelint-adv | b9dc381b181a8bdc7300bb5070f80bf90950efbd | [
"BSD-2-Clause"
] | null | null | null | import os
import sys
import pytest
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from base import TestBaseClass
class TestClassOelintVarsFilextrapaths(TestBaseClass):
@pytest.mark.parametrize('id', ['oelint.vars.fileextrapaths'])
@pytest.mark.parametrize('occurance', [1])
@pytest.mark.... | 26.5 | 66 | 0.506181 |
dc5305729d377c93f00785fff930682a2e9b8a67 | 23,202 | py | Python | src/users/migrations/0002_profile_tz.py | Onnryo/bug-tracker | 0f60ca28b2395e9141e4a7ba5e2f9ee0dfbf12cd | [
"MIT"
] | 1 | 2021-06-18T14:56:08.000Z | 2021-06-18T14:56:08.000Z | src/users/migrations/0002_profile_tz.py | Onnryo/bug-tracker | 0f60ca28b2395e9141e4a7ba5e2f9ee0dfbf12cd | [
"MIT"
] | 20 | 2021-06-17T08:40:22.000Z | 2021-07-07T03:58:24.000Z | src/users/migrations/0002_profile_tz.py | Onnryo/bug-tracker | 0f60ca28b2395e9141e4a7ba5e2f9ee0dfbf12cd | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-07-03 06:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='profile',
name='tz',
field=mo... | 1,221.157895 | 22,884 | 0.684036 |
69b989649b13fe82ebd0dcdde6be60792736ada9 | 4,296 | py | Python | connect_and_launch.py | 404CoderNotFound/Aternos-On-Discord-Replit | b9df013260ae0f38500dc008985a8735658ad9d4 | [
"MIT"
] | null | null | null | connect_and_launch.py | 404CoderNotFound/Aternos-On-Discord-Replit | b9df013260ae0f38500dc008985a8735658ad9d4 | [
"MIT"
] | null | null | null | connect_and_launch.py | 404CoderNotFound/Aternos-On-Discord-Replit | b9df013260ae0f38500dc008985a8735658ad9d4 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import ElementNotInteractableException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.by import By
from ... | 38.702703 | 182 | 0.704842 |
659bd563467f2030fdfc3d73b341c4e78418d501 | 28,245 | py | Python | tests/test_sailor/test__base/test_fetch.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | null | null | null | tests/test_sailor/test__base/test_fetch.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | 1 | 2022-02-27T18:58:37.000Z | 2022-02-27T21:14:29.000Z | tests/test_sailor/test__base/test_fetch.py | isabella232/project-sailor | bd09fb8cbeaa6c95cc011f93bd830bc863b1c768 | [
"Apache-2.0"
] | null | null | null | from typing import Iterable
import pytest
from sailor import _base
from sailor._base.fetch import (
fetch_data, apply_filters_post_request, parse_filter_parameters, _unify_filters, _compose_queries,
_strip_quote_marks)
@pytest.mark.filterwarnings('ignore:Following parameters are not in our terminology')
cla... | 54.421965 | 120 | 0.630589 |
2a1380e61678d626032b724f9257f0935d28c652 | 19,453 | py | Python | src/multi_agent/behaviour/memory.py | xenakal/Simulation_Interactions | 4e428bb70445ba7fd2d102facdd18c5def4542b7 | [
"MIT"
] | 2 | 2021-03-24T07:26:40.000Z | 2022-02-05T23:07:27.000Z | src/multi_agent/behaviour/memory.py | xenakal/Simulation_Interactions | 4e428bb70445ba7fd2d102facdd18c5def4542b7 | [
"MIT"
] | null | null | null | src/multi_agent/behaviour/memory.py | xenakal/Simulation_Interactions | 4e428bb70445ba7fd2d102facdd18c5def4542b7 | [
"MIT"
] | null | null | null | import copy
from src.multi_agent.elements.target import TargetRepresentation
from src.multi_agent.tools.estimation import MultipleOwnerMemories, SingleOwnerMemories, is_in_list_TargetEstimator, \
ItemEstimation
from src.multi_agent.prediction.kalmanPrediction import KalmanPrediction
from src.my_utils.my_IO.IO_data... | 51.736702 | 184 | 0.637125 |
5d42d32e77a7f5062105f83dd08ba2fbc9f08daf | 3,020 | py | Python | igibson/robots/jr2_kinova_robot.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 360 | 2020-04-02T11:12:09.000Z | 2022-03-24T21:46:58.000Z | igibson/robots/jr2_kinova_robot.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 169 | 2020-04-07T21:01:05.000Z | 2022-03-31T10:07:39.000Z | igibson/robots/jr2_kinova_robot.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | 94 | 2020-04-09T23:22:17.000Z | 2022-03-17T21:49:03.000Z | import gym
import numpy as np
import pybullet as p
from igibson.external.pybullet_tools.utils import joints_from_names
from igibson.robots.robot_locomotor import LocomotorRobot
class JR2_Kinova(LocomotorRobot):
"""
JR2 Kinova robot
Reference: https://cvgl.stanford.edu/projects/jackrabbot/
Uses joint ... | 35.116279 | 120 | 0.631788 |
e3d527bd01bc9f4bd1545a978d582bb40247ed8d | 2,743 | py | Python | integration/apps/hpl_mkl/hpl_mkl.py | dannosliwcd/geopm | 3ec0d223e700350ff37f6d10adde7b9bfbdba286 | [
"BSD-3-Clause"
] | 77 | 2015-10-16T22:20:51.000Z | 2022-03-30T22:51:12.000Z | integration/apps/hpl_mkl/hpl_mkl.py | dannosliwcd/geopm | 3ec0d223e700350ff37f6d10adde7b9bfbdba286 | [
"BSD-3-Clause"
] | 1,627 | 2016-05-17T18:25:53.000Z | 2022-03-31T22:49:45.000Z | integration/apps/hpl_mkl/hpl_mkl.py | dannosliwcd/geopm | 3ec0d223e700350ff37f6d10adde7b9bfbdba286 | [
"BSD-3-Clause"
] | 44 | 2015-10-28T15:59:44.000Z | 2022-03-25T20:28:18.000Z | # Copyright (c) 2015 - 2021, Intel Corporation
#
# 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... | 39.753623 | 97 | 0.712359 |
5f1ffa81eab17b720f9f02a9d55a8720d64aa27d | 40,222 | py | Python | python/paddle/framework/io.py | silentstorm0531/Paddle | 3c49f08ea3a0e45fed2538aa1e58c133572f1883 | [
"Apache-2.0"
] | 1 | 2021-06-10T04:35:57.000Z | 2021-06-10T04:35:57.000Z | python/paddle/framework/io.py | chenyanlei1/Paddle | f249a5f05f0f5832279244d88c8cb4eaaad1fbd4 | [
"Apache-2.0"
] | null | null | null | python/paddle/framework/io.py | chenyanlei1/Paddle | f249a5f05f0f5832279244d88c8cb4eaaad1fbd4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 PaddlePaddle Authors. 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 appli... | 39.126459 | 148 | 0.616106 |
aeb70a9855b53138d996fc668c94a90bddcfce66 | 2,460 | py | Python | test/test_endpoints.py | sgnn7/conjur-api-python3 | 7b3adced83061eb34dcb41505c986c612b4a26ef | [
"Apache-2.0"
] | null | null | null | test/test_endpoints.py | sgnn7/conjur-api-python3 | 7b3adced83061eb34dcb41505c986c612b4a26ef | [
"Apache-2.0"
] | null | null | null | test/test_endpoints.py | sgnn7/conjur-api-python3 | 7b3adced83061eb34dcb41505c986c612b4a26ef | [
"Apache-2.0"
] | null | null | null | import unittest
from conjur.endpoints import ConjurEndpoint
class EndpointsTest(unittest.TestCase):
def test_endpoint_has_correct_authenticate_template_string(self):
auth_endpoint = ConjurEndpoint.AUTHENTICATE.value.format(url='http://host',
... | 55.909091 | 88 | 0.569106 |
8db87bec2b1926c08a0d6b793051bc12eb80641f | 15,872 | py | Python | docs/tutorials/01_KalmanFilterTutorial.py | mgomesborges/Stone-Soup | 39c7f02ce11e10c9b3c612ad359f6d8bca495266 | [
"MIT"
] | 1 | 2019-12-26T14:55:03.000Z | 2019-12-26T14:55:03.000Z | docs/tutorials/01_KalmanFilterTutorial.py | mgomesborges/Stone-Soup | 39c7f02ce11e10c9b3c612ad359f6d8bca495266 | [
"MIT"
] | null | null | null | docs/tutorials/01_KalmanFilterTutorial.py | mgomesborges/Stone-Soup | 39c7f02ce11e10c9b3c612ad359f6d8bca495266 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
"""
==========================================================
1 - An introduction to Stone Soup: using the Kalman filter
==========================================================
"""
# %%
# This notebook is designed to introduce some of the basic features of Stone Soup using a ... | 43.01355 | 148 | 0.657321 |
fc4e060006e0c6ee949d7a9384136631e6624592 | 2,891 | py | Python | tools/data/textrecog/seg_synthtext_converter.py | jeffreykuang/mmocr-1 | b17304edeb493b0a4d7224c23d23b952350d0db5 | [
"Apache-2.0"
] | 4 | 2021-07-18T22:31:57.000Z | 2021-07-18T22:36:45.000Z | tools/data/textrecog/seg_synthtext_converter.py | jeffreykuang/mmocr-1 | b17304edeb493b0a4d7224c23d23b952350d0db5 | [
"Apache-2.0"
] | null | null | null | tools/data/textrecog/seg_synthtext_converter.py | jeffreykuang/mmocr-1 | b17304edeb493b0a4d7224c23d23b952350d0db5 | [
"Apache-2.0"
] | 1 | 2021-05-16T03:58:52.000Z | 2021-05-16T03:58:52.000Z | import argparse
import json
import os.path as osp
import cv2
def parse_old_label(data_root, in_path, img_size=False):
imgid2imgname = {}
imgid2anno = {}
idx = 0
with open(in_path, 'r') as fr:
for line in fr:
line = line.strip().split()
img_full_path = osp.join(data_roo... | 31.769231 | 79 | 0.526116 |
f2da5e597e0d91690381bb14609d1d02c0a70566 | 1,998 | py | Python | etl/parser/hmdb.py | topomancy/gazetteer | 726fdb258c30c95cf309d07ecad1c159bdfd57a9 | [
"CC-BY-3.0",
"Apache-2.0"
] | 13 | 2015-01-07T14:37:01.000Z | 2019-01-17T04:46:35.000Z | etl/parser/hmdb.py | topomancy/gazetteer | 726fdb258c30c95cf309d07ecad1c159bdfd57a9 | [
"CC-BY-3.0",
"Apache-2.0"
] | 1 | 2015-03-04T20:03:25.000Z | 2015-03-04T20:03:25.000Z | etl/parser/hmdb.py | LibraryOfCongress/gazetteer | 34c7f368c5ae51a167d698dbd3a092644eee4c0c | [
"MIT"
] | 6 | 2016-12-17T22:29:55.000Z | 2018-03-01T19:50:19.000Z | import sys, json, os, datetime
from shapely.geometry import asShape, mapping
from fiona import collection
from core import Dump
import core
import codecs
#name, cmt, desc, link1_href
def extract_shapefile(shapefile, uri_name, simplify_tolerance=None):
for feature in collection(shapefile, "r"):
... | 25.291139 | 89 | 0.568068 |
1c4237c8308eb73fae7beab7359bba15be44693b | 306 | py | Python | setup.py | ipkn/somebox | 1fedaa07236402269b8ad10dc9563f3d90aaead1 | [
"MIT"
] | 4 | 2017-12-25T10:36:15.000Z | 2018-01-01T10:42:34.000Z | setup.py | ipkn/somebox | 1fedaa07236402269b8ad10dc9563f3d90aaead1 | [
"MIT"
] | null | null | null | setup.py | ipkn/somebox | 1fedaa07236402269b8ad10dc9563f3d90aaead1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='somebox',
version='0.0.1',
description='Dropbox-like file sharing service',
author='Jaeseung Ha',
author_email='ipknhama@gmail.com',
url='https://github.com/ipkn/somebox',
packages=['somebox'],
)
| 23.538462 | 54 | 0.640523 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.