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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13422bb3478f929cfdd7d39790b4b35df0ba961e | 7,034 | py | Python | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | import json
import os
import re
import numpy as np
import pandas as pd
from src.infer.ExtractDeformableTTA import MAPPINGS_PATH, test_image_set, METADATA_PATH, RCNN0_DETS_DIR
WDIR = os.path.dirname(os.path.abspath(__file__))
def flip_box(box):
"""
box (list, length 4): [x1, y1, w, h]
"""
# Get top... | 44.238994 | 115 | 0.598806 |
1342626b945cae1f2c60f3de7811ba70848e89f4 | 1,896 | py | Python | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 4 | 2020-09-11T12:31:37.000Z | 2020-12-14T04:42:05.000Z | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 1 | 2020-10-07T11:03:07.000Z | 2020-10-07T11:03:07.000Z | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 9 | 2020-09-25T17:54:50.000Z | 2021-06-05T05:36:14.000Z | from web3 import Web3, HTTPProvider
import json
w3url = "https://mainnet.infura.io/v3/998f64f3627548bbaf2630599c1eefca"
w3 = Web3(HTTPProvider(w3url))
WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
YFII = "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83"
DAI = "0x6B175474E89094C44Da98b954EedeAC495271d0F"
iUSDT = "0x... | 29.169231 | 86 | 0.730485 |
13427c6b2da4367eae23b3d65430a2f826b58232 | 106,827 | py | Python | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 123 | 2017-06-19T05:34:58.000Z | 2022-03-23T12:48:19.000Z | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 67 | 2017-06-20T11:31:08.000Z | 2022-03-25T20:30:41.000Z | obswebsocket/requests.py | PanBartosz/obs-websocket-py | e92960a475d3f1096a4ea41763cbc776b23f0a37 | [
"MIT"
] | 51 | 2017-10-09T19:03:12.000Z | 2022-03-28T19:25:02.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT #
# (Generated on 2020-12-20 18:26:33.661372) #
from .base_classes import Baserequests
... | 29.682412 | 417 | 0.601075 |
134494ea81ba3a532d6b1f91e17ecbbfebb61032 | 157 | py | Python | simple_history/tests/custom_user/admin.py | rdurica/django-simple-history | 84d17f40be68e9ac7744b773451be83720c4c13a | [
"BSD-3-Clause"
] | 911 | 2015-01-05T13:21:17.000Z | 2020-06-07T07:11:53.000Z | simple_history/tests/custom_user/admin.py | rdurica/django-simple-history | 84d17f40be68e9ac7744b773451be83720c4c13a | [
"BSD-3-Clause"
] | 492 | 2015-01-01T18:20:20.000Z | 2020-06-06T17:34:01.000Z | simple_history/tests/custom_user/admin.py | rdurica/django-simple-history | 84d17f40be68e9ac7744b773451be83720c4c13a | [
"BSD-3-Clause"
] | 307 | 2015-02-01T00:45:51.000Z | 2020-06-06T15:39:29.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import CustomUser
admin.site.register(CustomUser, UserAdmin)
| 22.428571 | 47 | 0.834395 |
1345874b0ae4768978973e82f88c986754ca58f9 | 7,109 | py | Python | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | 1 | 2019-05-31T14:01:42.000Z | 2019-05-31T14:01:42.000Z | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | null | null | null | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2018-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 39.494444 | 120 | 0.623435 |
134646519d68e17184a83f90eaeb23182da3950c | 8,849 | py | Python | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | from Cb_constants import DocLoading
from basetestcase import ClusterSetup
from couchbase_helper.documentgenerator import DocumentGenerator, doc_generator
from couchbase_helper.tuq_generators import JsonGenerator
from remote.remote_util import RemoteMachineShellConnection
from sdk_client3 import SDKClient
from com.couc... | 42.138095 | 79 | 0.600181 |
1346bfc37ba0726e8df79447049dc235a411088d | 509 | py | Python | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | 1 | 2021-02-08T08:48:44.000Z | 2021-02-08T08:48:44.000Z | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
#Author:
'''
2.xlen()list 3.x
def spin_words(sentence):
# Your code goes here
return " ".join([x[::-1] if len(x) >= 5 else x for x in sentence.split(" ")])
str[::-1] ok
'''
| 19.576923 | 81 | 0.569745 |
1346de71efda2a56a9fe39787dfce52620463eb1 | 3,461 | py | Python | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | """
Created on 30 May 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
A network socket abstraction, implementing ProcessComms
"""
import socket
import time
from scs_core.sys.process_comms import ProcessComms
# ----------------------------------------------------------------------------------------... | 27.251969 | 118 | 0.428489 |
13470b2018f5f54dbcfea9b085e57cd30b1be672 | 15,182 | py | Python | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | 2 | 2019-03-12T10:50:15.000Z | 2021-07-07T14:38:58.000Z | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | null | null | null | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | 1 | 2018-03-07T13:25:16.000Z | 2018-03-07T13:25:16.000Z | # -*- coding: utf-8 -*-
import calendar
import collections
from datetime import datetime, timedelta
from warnings import warn
import six
import regex as re
from dateutil.relativedelta import relativedelta
from dateparser.date_parser import date_parser
from dateparser.freshness_date_parser import freshness_date_parser... | 38.338384 | 114 | 0.640364 |
1347a75f9a9bad0cfccf1c5a976700bd26f857d2 | 8,817 | py | Python | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | import chainer
import chainer.functions
from chainer.utils import type_check
from chainer import cuda
from chainer import function
import numpy as np
#from chainer import function_node
from utils import clip_grad
#class MixtureDensityNetworkFunction(function_node.FunctionNode):
def mixture_density_network(x, eos, ... | 40.260274 | 142 | 0.576613 |
134809d310a2c2bc00124d8b1a5104d5d2cb92b6 | 939 | py | Python | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/twbs/bootstrap
# SOURCE: https://github.com/gitbrent/bootstrap4-toggle
# SOURCE: https://gitbrent.github.io/bootstrap4-toggle/
from flask import Flask, render_template
app = Flask(__name__)
import logging
logging.b... | 22.357143 | 87 | 0.631523 |
134951456249066bc57415ee60860d0f10fe18d8 | 160 | py | Python | dev/phonts/visualization/phonts.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | dev/phonts/visualization/phonts.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | dev/phonts/visualization/phonts.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | import pypospack.io.phonts as phonts
# <---- additional classes and functions in which to add top
# <---- pypospack.io.phonts
if __name__ == "__main__":
| 20 | 60 | 0.6875 |
13495c72390c53605e37531f81078eacc3f25cd2 | 30,078 | py | Python | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 1,091 | 2018-09-06T17:27:12.000Z | 2022-03-31T13:47:45.000Z | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 624 | 2019-06-11T20:53:19.000Z | 2022-03-30T20:44:25.000Z | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 71 | 2019-06-14T05:32:45.000Z | 2022-03-27T19:52:35.000Z | import copy
import os
import re
import string
import sys
import warnings
from contextlib import contextmanager
from enum import Enum
from textwrap import dedent
from typing import (
Any,
Dict,
Iterator,
List,
Optional,
Tuple,
Type,
Union,
get_type_hints,
)
import yaml
from .errors ... | 30.849231 | 109 | 0.619423 |
134ae941abed7aefa64cace4d2b745626ee1b2ee | 28,935 | py | Python | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | null | null | null | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | 47 | 2019-08-27T08:07:06.000Z | 2022-03-04T10:10:40.000Z | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | 1 | 2020-11-24T09:27:56.000Z | 2020-11-24T09:27:56.000Z | #!/usr/bin/env python3
#
# AMBER Clustering
import os
from time import sleep
import yaml
import ast
import threading
import multiprocessing as mp
import numpy as np
from astropy.time import Time, TimeDelta
import astropy.units as u
from astropy.coordinates import SkyCoord
from darc import DARCBase, VOEventQueueServe... | 44.930124 | 118 | 0.55718 |
134b9c14653c7fb4e1904d66229452a0dbe85152 | 9,811 | py | Python | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import os
import subprocess
import base64
from pathlib import Path
import shutil
import pandas as pd
import signal
import requests
from baselayer.app.env import load_env
from baselayer.app.model_util import status, create_tables, drop_tables
from social_tornado.models import TornadoStorage
from skyport... | 37.446565 | 88 | 0.428804 |
134f9288b26ce3d17a1dc1a42f04cbaea4914dea | 1,537 | py | Python | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | 1 | 2019-01-25T21:32:42.000Z | 2019-01-25T21:32:42.000Z | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | null | null | null | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | 1 | 2021-06-23T04:44:25.000Z | 2021-06-23T04:44:25.000Z |
# Copyright 2013 University of Maryland. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE.TXT file.
import sys
import os
import time
from selenium.common.exceptions import NoAlertPresentException
import framework
| 29 | 134 | 0.582954 |
134fbec769aed9e0795c724b3dcc54286150a284 | 10,720 | py | Python | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 4 | 2020-11-28T08:50:07.000Z | 2020-12-13T03:44:05.000Z | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 4 | 2020-10-11T15:40:17.000Z | 2020-10-22T09:06:58.000Z | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 2 | 2020-01-16T12:21:02.000Z | 2021-12-16T01:30:11.000Z | from .. import types
from ... import utils
| 40.916031 | 79 | 0.638619 |
134fdc98faac6c7e555a1d8a47d4c15e48a09ce5 | 1,575 | py | Python | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 7 20:14:22 2020
Simple script to join json files
@author: SERGI
"""
import json
import sys
import os
if __name__ == "__main__":
print("hello from python", flush=True)
jsonPath = str(sys.argv[1])
# =========================================... | 28.125 | 82 | 0.533333 |
1351156463c6a25e82b73e57ee20368b3d832d46 | 2,017 | py | Python | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-23 11:02
import re
import django.contrib.postgres.fields.citext
import django.core.validators
from django.db import migrations
import grandchallenge.challenges.models
| 36.017857 | 103 | 0.543877 |
13513f9e059c5209134cdb28c07c7e40eb9e7c97 | 8,756 | py | Python | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | 2 | 2018-01-18T06:25:21.000Z | 2018-12-11T07:43:09.000Z | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | 1 | 2016-03-29T07:55:18.000Z | 2016-03-29T07:55:18.000Z | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | null | null | null | import numpy as np
import scipy.sparse as sp
from HPOlibConfigSpace.configuration_space import ConfigurationSpace
from HPOlibConfigSpace.conditions import EqualsCondition, InCondition
from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \
UniformIntegerHyperparameter, CategoricalHyperparameter... | 44.222222 | 102 | 0.489721 |
13526b6d17cc702b79611d77af35c9e1a3a2bf4e | 278 | py | Python | python_work/Chapter5/exe3_alien_color.py | Elektra-2/python_crash_course_2nd | 1c8beaddfe037faa3a36e7c384a6ea2f9d560060 | [
"MIT"
] | 1 | 2020-08-25T18:42:30.000Z | 2020-08-25T18:42:30.000Z | python_work/Chapter5/exe3_alien_color.py | Elektra-2/python_crash_course_2nd | 1c8beaddfe037faa3a36e7c384a6ea2f9d560060 | [
"MIT"
] | null | null | null | python_work/Chapter5/exe3_alien_color.py | Elektra-2/python_crash_course_2nd | 1c8beaddfe037faa3a36e7c384a6ea2f9d560060 | [
"MIT"
] | null | null | null | # Creating a elif chain
alien_color = 'red'
if alien_color == 'green':
print('Congratulations! You won 5 points!')
elif alien_color == 'yellow':
print('Congratulations! You won 10 points!')
elif alien_color == 'red':
print('Congratulations! You won 15 points!')
| 25.272727 | 48 | 0.683453 |
13532d8edfc3e8c0a315f5cb2ba2e9ad01f479b5 | 2,427 | py | Python | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | 7 | 2019-06-22T21:03:50.000Z | 2021-11-21T19:46:55.000Z | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | null | null | null | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | 3 | 2019-09-15T01:50:39.000Z | 2021-12-22T02:36:36.000Z | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.model_selection import learning_curve
# Plot learning curve
# Plot validation curve
| 42.578947 | 115 | 0.674083 |
13539ceb0c44529e049d271d3d684efaaf1e9dee | 121 | py | Python | oomi/__init__.py | sremes/oomi | 312317aa2ef68f1481b2447652a7d47c5f2e3f56 | [
"MIT"
] | null | null | null | oomi/__init__.py | sremes/oomi | 312317aa2ef68f1481b2447652a7d47c5f2e3f56 | [
"MIT"
] | null | null | null | oomi/__init__.py | sremes/oomi | 312317aa2ef68f1481b2447652a7d47c5f2e3f56 | [
"MIT"
] | null | null | null | """Utilities for downloading comsumption data from Oomi."""
from oomi.oomi_downloader import OomiDownloader, OomiConfig
| 30.25 | 59 | 0.818182 |
1354ab456ba9280a4363560bf56997305ed54a5f | 3,692 | py | Python | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | KaoTuz/edk2-stable202108 | 49d9306e7bf64b2f07d8473be1f2faea49d0a012 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 9 | 2021-07-26T17:02:51.000Z | 2021-12-30T10:49:46.000Z | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | ## @file
# This file is used to define class objects of INF file miscellaneous.
# Include BootMode/HOB/Event and others. It will consumed by InfParser.
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
'''
InfMisc
'''
import Logger.Log as Logge... | 25.818182 | 77 | 0.628115 |
13570cde1e5c8c95a0a1cd4eb53d4d9f0d94d653 | 297 | py | Python | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | # https://www.codechef.com/START8C/problems/PENALTY
for T in range(int(input())):
n=list(map(int,input().split()))
a=b=0
for i in range(len(n)):
if(n[i]==1):
if(i%2==0): a+=1
else: b+=1
if(a>b): print(1)
elif(b>a): print(2)
else: print(0) | 24.75 | 51 | 0.501684 |
13583e5f15c53f390db50be7afda1b1e9f5ec33e | 859 | py | Python | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 7 | 2021-11-26T01:15:23.000Z | 2022-03-15T10:51:47.000Z | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 4 | 2022-01-15T09:46:00.000Z | 2022-02-05T07:10:18.000Z | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 1 | 2021-09-18T16:50:14.000Z | 2021-09-18T16:50:14.000Z | import matplotlib.pyplot as plt
from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix
| 35.791667 | 74 | 0.690338 |
135906a75c8644d17899cd5046a70589324b71a2 | 3,595 | py | Python | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | import torch
import torchvision
import torchvision.transforms as transforms
import os.path
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
transform = transforms.Compose(
[transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
root = os.path.join(BASE_DIR, '../data/')
trainset ... | 28.307087 | 75 | 0.585535 |
135933f07f224fa858e30bebe4b7db897823355d | 995 | py | Python | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | null | null | null | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | 1 | 2021-03-19T14:06:50.000Z | 2021-03-19T14:06:50.000Z | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | null | null | null |
from ... import neodys
| 41.458333 | 79 | 0.711558 |
1359a8c4afe9581f59876f936fb68313f28865c1 | 1,028 | py | Python | corehq/apps/accounting/migrations/0026_auto_20180508_1956.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/apps/accounting/migrations/0026_auto_20180508_1956.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/apps/accounting/migrations/0026_auto_20180508_1956.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-08 19:56
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations
| 27.783784 | 80 | 0.689689 |
1359c0fa6a8b2dda6889c4d23c5bb6bc6ad1f0c0 | 9,806 | py | Python | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | 1 | 2019-12-11T14:43:49.000Z | 2019-12-11T14:43:49.000Z | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | null | null | null | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Tensor2Tensor 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... | 35.528986 | 112 | 0.730879 |
135a363584e253a0fd487ab5902e769a0e03931f | 1,236 | py | Python | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/part_2_automation/test_test1.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | 1 | 2022-03-16T10:39:03.000Z | 2022-03-16T10:39:03.000Z | # Generated by Selenium IDE
import pytest
import time
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWa... | 38.625 | 89 | 0.768608 |
135abe65fc98dab6544eb64993951b1e91db47a2 | 732 | py | Python | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from grandchallenge.components.models import (
ComponentInterface,
ComponentInterfaceValue,
)
admin.site.register(ComponentInterface, ComponentInterfaceAdmin)
admin.site.register(ComponentInterfaceValue, ComponentInterfaceValueAdmin)
| 23.612903 | 74 | 0.67623 |
135ad256377f1febc7ff1ea7598a8c696743a758 | 165 | py | Python | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 28 15:28:24 2016
@author: Parag Guruji, paragguruji@gmail.com
"""
from .helpers import setup_env
done = setup_env() | 16.5 | 44 | 0.678788 |
135d785a425446491b59ae18c63cdcf06bf42dd8 | 278 | py | Python | netdisco/discoverables/nanoleaf_aurora.py | jjlawren/netdisco | ffc3cd092bff359b1c1fc1ed51940624b3c8076b | [
"Apache-2.0"
] | 1 | 2020-01-05T21:36:10.000Z | 2020-01-05T21:36:10.000Z | env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py | seanmitch/UPnP | f3cb1ef62657f166971c1c470ce5dfd58bdeeac9 | [
"Unlicense"
] | null | null | null | env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py | seanmitch/UPnP | f3cb1ef62657f166971c1c470ce5dfd58bdeeac9 | [
"Unlicense"
] | null | null | null | """Discover Nanoleaf Aurora devices."""
from . import MDNSDiscoverable
| 27.8 | 74 | 0.726619 |
135f17354c6a575112f9dd1ee2ae823d8e499637 | 2,299 | py | Python | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | 1 | 2020-12-18T06:10:16.000Z | 2020-12-18T06:10:16.000Z | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | null | null | null | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | 2 | 2021-03-01T01:36:38.000Z | 2021-03-01T13:44:02.000Z | import os.path as op
import numpy as np
import pandas as pd
from sklearn.pipeline import make_pipeline
from sklearn.linear_model import RidgeCV
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import KFold, cross_val_score
import mne
from pyriemann.tangentspace import TangentSpace
import ... | 31.930556 | 77 | 0.651588 |
135f22f80a61bf2986149f078e69c6a03f73a3a5 | 1,161 | py | Python | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | 1 | 2017-08-30T01:01:50.000Z | 2017-08-30T01:01:50.000Z | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | null | null | null | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017~ mengalong <alongmeng@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 33.171429 | 77 | 0.709733 |
135f9b393c2da1b1ae7cb6b4ea51c6e47c87c3b3 | 2,976 | py | Python | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | web3/_utils/module_testing/math_contract.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null |
MATH_BYTECODE = (
"606060405261022e806100126000396000f360606040523615610074576000357c01000000000000"
"000000000000000000000000000000000000000000009004806316216f391461007657806361bc22"
"1a146100995780637cf5dab0146100bc578063a5f3c23b146100e8578063d09de08a1461011d5780"
"63dcf537b11461014057610074565b... | 32.347826 | 87 | 0.576949 |
135f9d0a7a2f751997f717a3c72579433fa4791e | 4,269 | py | Python | dnsdb/config.py | nuby/open_dnsdb | 7fec703d8458083f0e6826393656055556e9f0b2 | [
"Apache-2.0"
] | 1 | 2019-09-27T01:06:55.000Z | 2019-09-27T01:06:55.000Z | dnsdb/config.py | cclauss/open_dnsdb | 28c2055685be1c173d77eaa2a05d8e156ccbbbf2 | [
"Apache-2.0"
] | null | null | null | dnsdb/config.py | cclauss/open_dnsdb | 28c2055685be1c173d77eaa2a05d8e156ccbbbf2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
from datetime import timedelta
from oslo.config import cfg
CONF = cfg.CONF
CONF.register_opts([
cfg.StrOpt('log-dir'),
cfg.StrOpt('log-file'),
cfg.StrOpt('debug'),
cfg.StrOpt('verbose'),
], 'log')
CONF.register_opts([
cfg.StrOpt('connection'),
cf... | 31.160584 | 92 | 0.594284 |
136018fcec6b4476406646ec76b683c9bf3950c1 | 1,148 | py | Python | rover/rover.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | rover/rover.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | rover/rover.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import time
from rover import Robot
from connections import Connections
| 19.457627 | 110 | 0.674216 |
136335a62a6f24cad26390348c87d9d3bbbba896 | 14,534 | py | Python | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | 1 | 2020-09-25T05:40:38.000Z | 2020-09-28T05:41:27.000Z | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | #
# File: $Id: parser.py 1865 2008-10-28 00:47:27Z scanner $
#
"""
This is where the logic and definition of our wiki markup parser lives.
We use the Python Creoleparser (which requires Genshi)
We make a custom dialect so that the parser can know the URL base for
all of the topics (pages) in the wiki and some additio... | 37.848958 | 96 | 0.597083 |
1365f047bda189ac06139ef3c589483027732b74 | 13,825 | py | Python | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | null | null | null | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | null | null | null | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | 4 | 2015-07-30T11:03:54.000Z | 2017-11-13T15:30:48.000Z | import base64
import binascii
from datetime import timedelta
from django.contrib.auth import authenticate
from django.utils import timezone
from oauthlib.oauth2 import RequestValidator
from oauth_api.models import get_application_model, AccessToken, AuthorizationCode, RefreshToken, AbstractApplication
from oauth_api... | 37.364865 | 124 | 0.636166 |
13662d9d6240c63c9a734dfc856cbc7f4107d5e2 | 160 | py | Python | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | objects/fun_return.py | padmacho/pythontutorial | 80c58d2d6efc0c3598f92b627338c6cd9fda1759 | [
"Apache-2.0"
] | null | null | null | x = [1, 2, 3]
y = modify(x)
print("x == y", x == y)
print("x == y", x is y) | 26.666667 | 65 | 0.55625 |
1366f50a70db89f7b6f66ff4d8a7cc0516afcf2f | 6,471 | py | Python | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | import sys, os
import tarfile
import shutil
from edx_gen import _edx_consts
from edx_gen import _read_metadata
from edx_gen import _write_structure
from edx_gen import _write_comps
from edx_gen import _write_comp_html
from edx_gen import _write_comp_checkboxes
from edx_gen import _write_comp_video
from edx_gen i... | 38.064706 | 117 | 0.641323 |
1367201e3118f25640a5bbd95836976d130709a4 | 2,403 | py | Python | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | # 1. Create students score dictionary.
students_score = {}
# 2. Input student's name and check if input is correct. (Alphabet, period, and blank only.)
# 2.1 Creat a function that evaluate the validity of name.
while True:
# 2.2 Input student's name.
name = input("Please input student's name. \n")
c... | 36.969231 | 100 | 0.646275 |
136832386a64df8b748feecd13c99a4dc30fc9d5 | 735 | py | Python | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | test/test_utils.py | by46/recipe | 203abd2141a536b66b4e57d073169a49395be1f0 | [
"MIT"
] | null | null | null | import unittest
from recipe import utils
| 33.409091 | 77 | 0.719728 |
1368b69e2269d6b7303299c5097db81eca903217 | 6,708 | py | Python | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | 1 | 2022-02-07T06:12:26.000Z | 2022-02-07T06:12:26.000Z | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | null | null | null | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import os.path as osp
import json
from human_body_prior.tools.model_loader import load_vposer
import torch
vposer_ckpt = '/Vol1/dbstore/datasets/a.vakhitov/projects/pykinect_fresh/smplify-x/smplify-x-data/vposer_v1_0/'
def batch_rodrigues(rot_vecs, epsilon=1e-8, dtype=torch.float32)... | 35.120419 | 118 | 0.570662 |
1368b793b823b3bd0b461ed385d6e6b6434e1e68 | 3,455 | py | Python | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 1 | 2021-03-24T17:54:51.000Z | 2021-03-24T17:54:51.000Z | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 18 | 2021-03-08T13:38:37.000Z | 2022-02-14T15:06:28.000Z | scripts/dev/dockerutil.py | axelbarjon/mongodb-kubernetes-operator | 13eb844c55774ce8a6de51edde1a66b4371f3ef6 | [
"RSA-MD"
] | 1 | 2021-03-25T13:37:02.000Z | 2021-03-25T13:37:02.000Z | import docker
from dockerfile_generator import render
import os
import json
from tqdm import tqdm
from typing import Union, Any, Optional
def build_image(repo_url: str, tag: str, path: str) -> None:
"""
build_image builds the image with the given tag
"""
client = docker.from_env()
print(f"Buildin... | 32.28972 | 108 | 0.636758 |
136925370fda5dbcb2e2d6d5e61c676370502bb7 | 904 | py | Python | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 3 | 2018-04-20T15:04:34.000Z | 2022-03-30T06:36:02.000Z | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 7 | 2019-06-06T09:22:20.000Z | 2021-11-23T17:41:52.000Z | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 5 | 2017-11-02T11:17:35.000Z | 2021-12-11T19:34:09.000Z | from VcfFilter import VcfFilter
import argparse
import os
#get command line arguments
parser = argparse.ArgumentParser(description='Script to select a certain variant type from a VCF file')
#parameters
parser.add_argument('--bcftools_folder', type=str, required=True, help='Folder containing the Bcftools binary' )
p... | 39.304348 | 275 | 0.766593 |
13695de67e652f576d889f205ef664189b73d45b | 14,680 | py | Python | site/tests/unittests/test/test_base64.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | site/tests/unittests/test/test_base64.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | check-python33-manual/samples/standard_library_337/Lib/test/test_base64.py | DaveKaretnyk/parsing-utils2 | 40085bbd399fa605f2f2a4708d385a64ffc907de | [
"MIT"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import unittest
from test import support
import base64
import binascii
import os
import sys
import subprocess
def test_main():
support.run_unittest(__name__)
if __name__ == '__main__':
test_main()
| 41.586402 | 83 | 0.570981 |
1369857b721c52701d49ebb99393f03d4c246712 | 569 | py | Python | appliance_catalog/migrations/0015_appliance_icon_py3.py | ChameleonCloud/portal | 92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee | [
"Apache-2.0"
] | 3 | 2015-08-04T20:53:41.000Z | 2020-02-14T22:58:20.000Z | appliance_catalog/migrations/0015_appliance_icon_py3.py | ChameleonCloud/portal | 92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee | [
"Apache-2.0"
] | 103 | 2015-01-15T14:21:00.000Z | 2022-03-31T19:14:20.000Z | appliance_catalog/migrations/0015_appliance_icon_py3.py | ChameleonCloud/portal | 92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee | [
"Apache-2.0"
] | 4 | 2016-02-22T16:48:20.000Z | 2021-01-08T17:13:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-02-25 20:32
from __future__ import unicode_literals
from django.db import migrations, models
| 24.73913 | 86 | 0.644991 |
136a5b3d51a58e910193de0d1a2f38a488d4801a | 1,435 | py | Python | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | 1 | 2021-09-23T22:04:09.000Z | 2021-09-23T22:04:09.000Z | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | null | null | null | twitoff/twitter.py | ChristopherKchilton/twitoff-ChristopherKchilton | fbac9899feff256ededab009b28e2f6ebd67f476 | [
"MIT"
] | null | null | null | """Retrieve and request tweets from the DS API"""
import requests
import spacy
from .models import DB, Tweet, User
nlp = spacy.load("my_model")
# Add and updates tweets
def add_or_update_user(username):
"""Adds and updates the user with twiter handle 'username'
to our database
"""
#TODO: Figure out ... | 25.175439 | 78 | 0.608362 |
136a6f790e3bad7ef05103763b29d85ab9987e87 | 595 | py | Python | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | 1 | 2021-12-26T21:28:47.000Z | 2021-12-26T21:28:47.000Z | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | null | null | null | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | null | null | null | import io
grid = {}
y = 0
x = 0
for l in io.open("day22.in").read().splitlines():
for x in range(len(l)):
grid[(y,x)] = l[x]
y += 1
y = y // 2
x = x // 2
dx = 0
dy = -1
r = 0
for iter in range(10000000):
if (y,x) not in grid or grid[(y,x)] == '.':
(dy, dx) = (-dx, dy)
grid[(y,x)] = ... | 19.833333 | 49 | 0.381513 |
136b2299eb41b7ded97c6048734842406f59258d | 3,437 | py | Python | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 11 | 2021-01-31T15:50:02.000Z | 2021-10-01T23:15:38.000Z | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 46 | 2021-01-14T05:00:50.000Z | 2021-10-06T18:30:37.000Z | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 3 | 2021-06-30T07:18:30.000Z | 2021-09-15T08:43:11.000Z | from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous
from functools import wraps
_COMPLEX_PLOTTING_ERROR_MSG = """
Complex fields cannot be plotted. Use operators to get the amplitude
or the result at a defined sweeping phase before plotting.
"""
_FIELD_CONTAINER_PLOTTING_MSG = """"
This fields_conta... | 28.882353 | 78 | 0.672971 |
136b533fe267643a58604244ebaf15ea2c8117bd | 11 | py | Python | ls10.py | yu961549745/pynote | 5976aeeca6368c0956baddf6a9ccb93ae8e0612a | [
"MIT"
] | null | null | null | ls10.py | yu961549745/pynote | 5976aeeca6368c0956baddf6a9ccb93ae8e0612a | [
"MIT"
] | null | null | null | ls10.py | yu961549745/pynote | 5976aeeca6368c0956baddf6a9ccb93ae8e0612a | [
"MIT"
] | null | null | null | '''
IO
'''
| 2.75 | 3 | 0.181818 |
136b5475110947f42e139d24c848b375d4d0e140 | 2,144 | py | Python | deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | from mumodo.mumodoIO import open_intervalframe_from_textgrid
import numpy
from deep_disfluency.utils.accuracy import wer
final_file = open('wer_test.text', "w")
ranges1 = [line.strip() for line in open(
"/media/data/jh/simple_rnn_disf/rnn_disf_detection/data/disfluency_detection/swda_divisions_disfluency_detectio... | 36.965517 | 158 | 0.619403 |
136b8fe5a8aa80e827bc10eb9537bdf94b4fdc81 | 1,541 | py | Python | newsweec/utils/_dataclasses.py | Adwaith-Rajesh/newsweec | f3b66fb6f74cb68be4e716269032db340abe8320 | [
"MIT"
] | 13 | 2020-08-30T10:52:29.000Z | 2021-08-18T12:20:39.000Z | newsweec/utils/_dataclasses.py | Adwaith-Rajesh/newsweec | f3b66fb6f74cb68be4e716269032db340abe8320 | [
"MIT"
] | null | null | null | newsweec/utils/_dataclasses.py | Adwaith-Rajesh/newsweec | f3b66fb6f74cb68be4e716269032db340abe8320 | [
"MIT"
] | 1 | 2021-06-07T04:01:37.000Z | 2021-06-07T04:01:37.000Z | from dataclasses import dataclass
from dataclasses import field
from time import time
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple
| 22.661765 | 81 | 0.668397 |
136bbda00809274a9f8b16997fd9b06b349771f8 | 3,754 | py | Python | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | 5 | 2015-09-23T10:05:29.000Z | 2016-04-07T17:08:38.000Z | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | null | null | null | vivo2notld/definitions/person_definition.py | gwu-libraries/vivo2notld | 3f579f8aad28c60119864757e1fe66c2d64a0149 | [
"MIT"
] | null | null | null | from .document_summary import definition as document_summary_definition
from .organization_summary import definition as organization_summmary_definition
definition = {
"where": "?subj a foaf:Person .",
"fields": {
"name": {
"where": "?subj rdfs:label ?obj ."
},
#Contact info... | 33.221239 | 80 | 0.34017 |
136d5996f3e902f896a0d95201a3a98051d0cce2 | 1,553 | py | Python | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | 1 | 2021-06-07T02:14:13.000Z | 2021-06-07T02:14:13.000Z | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | 9 | 2021-08-14T07:53:47.000Z | 2022-03-18T19:07:22.000Z | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | null | null | null | from django.db.models import Q
from hier.search import SearchResult
from .models import app_name, Apart, Meter, Bill, Service, Price
| 45.676471 | 146 | 0.696072 |
136df33d64bf85a2b5e33607c10d78558114c0b0 | 5,884 | py | Python | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | import os
import shutil
import numpy as np
from pyrevolve.custom_logging.logger import logger
import sys
| 41.730496 | 181 | 0.653977 |
136e61a21e482a156b8b710f63c002d29a6f7812 | 2,136 | py | Python | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 9 | 2015-04-01T08:59:49.000Z | 2022-01-27T01:27:45.000Z | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 3 | 2020-05-14T04:22:22.000Z | 2021-08-06T11:19:03.000Z | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 11 | 2016-04-14T10:59:36.000Z | 2020-08-19T13:26:05.000Z | #$Id$
| 25.428571 | 67 | 0.627341 |
136f314f36b3d7d707a24bb2dc1a76fc985f86a7 | 1,079 | py | Python | DPR/setup.py | sophiaalthammer/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 18 | 2022-01-06T13:03:40.000Z | 2022-03-29T14:24:23.000Z | DPR/setup.py | k-for-code/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 1 | 2022-01-20T08:45:19.000Z | 2022-01-24T05:18:40.000Z | DPR/setup.py | k-for-code/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 4 | 2021-05-27T08:33:18.000Z | 2022-02-20T17:45:40.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from setuptools import setup
with open("README.md") as f:
readme = f.read()
setup(
name="dpr",
version="... | 25.690476 | 69 | 0.594995 |
136f33f06908f09a707c44642cdf5eac1e23e341 | 2,817 | py | Python | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:
@software: PyCharm
@time: 2019/9/12 20:37
"""
from pprint import pprint as pp
from operator import itemgetter
import time
from collections import OrderedDict
from hard.smallest_range.srcs.... | 31.651685 | 311 | 0.547746 |
136ff9b25221822f1896aad526fbb94d03b405cd | 4,887 | py | Python | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | from pcf.core.gcp_resource import GCPResource
from pcf.core import State
import logging
from google.cloud import storage
from google.cloud import exceptions
logger = logging.getLogger(__name__)
| 28.91716 | 104 | 0.602415 |
13700654033637b55b5386791b563e0e83f1b925 | 498 | py | Python | cimcb/utils/smooth.py | CIMCB/cimcb | 5d30f80423ed94e1068871b30e465b38d451581a | [
"MIT"
] | 5 | 2020-05-26T23:45:40.000Z | 2022-01-13T00:40:14.000Z | cimcb/utils/smooth.py | CIMCB/cimcb | 5d30f80423ed94e1068871b30e465b38d451581a | [
"MIT"
] | 3 | 2020-10-20T09:03:18.000Z | 2021-11-01T14:22:05.000Z | cimcb/utils/smooth.py | KevinMMendez/cimcb | fe831253b122ed0ff9e33cbd160ef721abee1e38 | [
"MIT"
] | 4 | 2020-10-12T07:17:43.000Z | 2022-03-28T06:28:44.000Z | import numpy as np
| 33.2 | 65 | 0.588353 |
13710731fb3b914385bee296e01c654e62f3641b | 11,810 | py | Python | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 19 | 2019-06-12T03:14:59.000Z | 2021-05-31T16:02:53.000Z | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 29 | 2019-06-27T10:15:38.000Z | 2022-03-11T23:46:36.000Z | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 10 | 2019-05-14T17:45:44.000Z | 2020-08-26T13:25:04.000Z | from __future__ import absolute_import
import abc
import os
import json
import glob
import shutil
from tensorflow.python.estimator import gc
from tensorflow.python.estimator import util
from tensorflow.python.estimator.canned import metric_keys
from tensorflow.python.framework import errors_impl
from tensorflow.pytho... | 44.398496 | 98 | 0.637934 |
13716a3c1d81e757e4d87853e2f35128b1e83ff1 | 5,329 | py | Python | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | src/pkgcore/restrictions/restriction.py | mgorny/pkgcore | ab4a718aa1626f4edeb385383f5595a1e262b0dc | [
"BSD-3-Clause"
] | null | null | null | # Copyright: 2005-2012 Brian Harring <ferringb@gmail.com
# Copyright: 2006 Marien Zwart <marienz@gentoo.org>
# License: BSD/GPL2
"""
base restriction class
"""
from functools import partial
from snakeoil import caching, klass
from snakeoil.currying import pretty_docs
def curry_node_type(cls, node_type, extrad... | 27.611399 | 78 | 0.627698 |
1372983b8db0190678e8ab88123c2241d2b934f3 | 797 | py | Python | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 18 | 2016-10-19T13:57:32.000Z | 2019-01-12T21:35:43.000Z | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 72 | 2019-01-24T10:12:59.000Z | 2019-04-17T11:07:16.000Z | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 10 | 2017-03-27T20:58:08.000Z | 2018-07-30T12:59:27.000Z | """extend_ip_field
Revision ID: 8da20383f6e1
Revises: eeb702f77d7d
Create Date: 2021-01-14 10:50:56.275257
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "8da20383f6e1"
down_revision = "eeb702f77d7d"
branch_labels = None
depends_on = None
| 18.534884 | 105 | 0.72522 |
1372bb8d33de36c039935d2eac285248cdacdfb7 | 301 | py | Python | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | import ply.lex as lex
tokens =["NUM","OPERADORES"]
t_NUM = '\d+'
t_OPERADORES = '[+|*|-]'
t_ignore='\n\t '
lexer = lex.lex()
# 1+2 1-2 1*2
# ola mundo
import sys
for line in sys.stdin:
lexer.input(line)
for tok in lexer:
print(tok) | 13.086957 | 28 | 0.584718 |
1373c11e16cd5b0b44349e8fb881270741a3ce25 | 1,657 | py | Python | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2018-07-31T00:58:30.000Z | 2018-07-31T00:58:30.000Z | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 264 | 2017-10-24T23:54:52.000Z | 2021-10-16T15:40:47.000Z | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2019-07-16T06:37:45.000Z | 2019-07-16T06:37:45.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-07-10 20:40
from __future__ import unicode_literals
from django.db import migrations, models
| 32.490196 | 72 | 0.620398 |
137402a725b61eaf0c95cb37df89ef2b691ce663 | 2,015 | py | Python | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import typing
from ctc import spec
from . import timestamp_crud
from . import metric_crud
from . import analytics_spec
# def update_payload(
# timescale: analytics_spec.Timescale,
# old_payload: analytics_spec.AnalyticsPayload,
# ) -> analytics_spec.AnalyticsPayload:
# ... | 27.22973 | 69 | 0.658065 |
1374addc1e8f402af9273db13845fe70ea5229f1 | 18,118 | py | Python | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | 1 | 2021-10-05T13:34:44.000Z | 2021-10-05T13:34:44.000Z | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | null | null | null | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | 1 | 2020-11-14T04:15:00.000Z | 2020-11-14T04:15:00.000Z | # Copyright 2016 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 applicab... | 37.903766 | 95 | 0.669886 |
137575ac656962b0f9d67245530a471421c965ac | 1,657 | bzl | Python | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 1 | 2020-10-22T06:44:10.000Z | 2020-10-22T06:44:10.000Z | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 5 | 2020-06-01T22:33:59.000Z | 2020-11-01T17:03:06.000Z | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 1 | 2020-08-17T07:42:21.000Z | 2020-08-17T07:42:21.000Z | load("@rules_jvm_external//:defs.bzl", "artifact")
# For more information see
# - https://github.com/bmuschko/bazel-examples/blob/master/java/junit5-test/BUILD
# - https://github.com/salesforce/bazel-maven-proxy/tree/master/tools/junit5
# - https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starte... | 35.255319 | 98 | 0.616174 |
1376113ee039ab051c772dba764cfe52a310f45d | 625 | py | Python | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | # This module provides mocked versions of classes and functions provided
# by Carla in our runtime environment.
| 20.833333 | 72 | 0.5776 |
1377e6c9502e17891e25610fab3c369d6bcdf674 | 404 | py | Python | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
ee = '\033[1m'
green = '\033[32m'
yellow = '\033[33m'
cyan = '\033[36m'
line = cyan+'-' * 0x2D
print(ee+line)
R,G,B = [float(X) / 0xFF for X in input(f'{yellow}RGB: {green}').split()]
K = 1-max(R,G,B)
C,M,Y = [round(float((1-X-K)/(1-K) * 0x64),1) for X in [R,G,B]]
K = r... | 21.263158 | 73 | 0.542079 |
1377f0cfac03b437ee48b39fc8008df7e5dd358b | 4,720 | py | Python | docs/updatedoc.py | JukeboxPipeline/jukedj | d4159961c819c26792a278981ee68106ee15f3f3 | [
"BSD-3-Clause"
] | 2 | 2015-01-22T17:39:05.000Z | 2015-02-09T16:47:15.000Z | docs/updatedoc.py | JukeboxPipeline/jukedj | d4159961c819c26792a278981ee68106ee15f3f3 | [
"BSD-3-Clause"
] | 3 | 2020-02-12T00:24:58.000Z | 2021-06-10T20:05:03.000Z | docs/updatedoc.py | JukeboxPipeline/jukeboxmaya | c8d6318d53cdb5493453c4a6b65ef75bdb2d5f2c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""Builds the documentaion. First it runs gendoc to create rst files for the source code. Then it runs sphinx make.
.. Warning:: This will delete the content of the output directory first! So you might loose data.
You can use updatedoc.py -nod.
Usage, just call::
updatedoc.py -h
"... | 35.488722 | 115 | 0.613559 |
13783bd8e2a248d44492c03b9013e0d6c16cfd22 | 478 | py | Python | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null |
# 1 + (n-1)*[3 + X] = 1 + 3*(n-1) + X*(n-1) = 1 + 3*(n-1) + (n^2 + n - 2)/2
# = (1 - 3 - 1) + (3n + n/2) + (n^2/2)
# The complexity is O(n^2) | 36.769231 | 86 | 0.464435 |
1379138cdd6c153ab5075c9fd6e443c52181da72 | 4,618 | py | Python | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | 1 | 2022-01-20T16:30:04.000Z | 2022-01-20T16:30:04.000Z | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | 13 | 2022-01-07T14:07:15.000Z | 2022-01-29T19:42:48.000Z | BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py | manuel1618/bridgeOptimizer | 273bbf27b2c6273e4aaca55debbd9a10bebf7042 | [
"MIT"
] | null | null | null | import os
from typing import List, Tuple
from BridgeOptimizer.datastructure.hypermesh.LoadCollector import LoadCollector
from BridgeOptimizer.datastructure.hypermesh.LoadStep import LoadStep
from BridgeOptimizer.datastructure.hypermesh.Force import Force
from BridgeOptimizer.datastructure.hypermesh.SPC import SPC
| 47.122449 | 159 | 0.622347 |
137960c813f4163613ba4247cf3f11614175c045 | 320 | py | Python | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | Lekcija08/script01.py | islamspahic/python-uup | ea7c9c655ad8e678bca5ee52138836732266799f | [
"Apache-2.0"
] | null | null | null | tajniBroj = 51
broj = 2
while tajniBroj != broj:
broj = int(input("Pogodite tajni broj: "))
if tajniBroj == broj:
print("Pogodak!")
elif tajniBroj < broj:
print("Tajni broj je manji od tog broja.")
else:
print("Tajni broj je veci od tog broja.")
print("Kraj programa")
| 21.333333 | 50 | 0.590625 |
1379b64de3a90f72d35d03219b56d72544b5e73a | 2,806 | py | Python | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 801 | 2015-09-23T09:24:47.000Z | 2022-03-29T19:19:03.000Z | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 277 | 2015-09-22T19:48:50.000Z | 2022-03-11T23:25:32.000Z | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 194 | 2015-09-23T15:03:57.000Z | 2022-03-31T13:54:46.000Z | import numpy as np
from sklearn import metrics
from neupy import algorithms
from base import BaseTestCase
| 30.172043 | 73 | 0.599786 |
137a3688b49f0ea26253687c4f9e076efa9114c9 | 3,075 | py | Python | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | null | null | null | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 12 | 2015-01-08T14:50:19.000Z | 2017-11-29T19:37:53.000Z | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 1 | 2015-01-08T13:25:09.000Z | 2015-01-08T13:25:09.000Z | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: dan@reciprocitylabs.com
# Maintained By: dan@reciprocitylabs.com
from sqlalchemy.ext.associationproxy import association_proxy
from ggrc import db... | 29.285714 | 78 | 0.690407 |
137bf77da0a4c318b41b184deddd1c0849f9d010 | 11,196 | py | Python | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | verification/tb_template.py | ahmednofal/DFFRAM | 7d7ebc28befe12ec3f232c0d2f5b8ea786227d45 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-2021 The American University in Cairo and the Cloud V Project.
#
# This file is part of the DFFRAM Memory Compiler.
# See https://github.com/Cloud-V/DFFRAM for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lic... | 27.108959 | 91 | 0.530368 |
137dda311b44a103b066cfeaf00c02a9bb814cbf | 19,777 | py | Python | xclim/indices/_anuclim.py | bzah/xclim | 18ceee3f1db2d39355913c1c60ec32ddca6baccc | [
"Apache-2.0"
] | 1 | 2022-02-03T13:46:58.000Z | 2022-02-03T13:46:58.000Z | xclim/indices/_anuclim.py | raquel-ucl/xclim | 6102e542e6e08072a60879d6200f9340207cd50e | [
"Apache-2.0"
] | 2 | 2021-06-23T09:26:54.000Z | 2021-07-26T19:28:41.000Z | xclim/indices/_anuclim.py | raquel-ucl/xclim | 6102e542e6e08072a60879d6200f9340207cd50e | [
"Apache-2.0"
] | 1 | 2021-03-02T20:12:28.000Z | 2021-03-02T20:12:28.000Z | # noqa: D100
from typing import Optional
import numpy as np
import xarray
from xclim.core.units import (
convert_units_to,
declare_units,
pint_multiply,
rate2amount,
units,
units2pint,
)
from xclim.core.utils import ensure_chunk_size
from ._multivariate import (
daily_temperature_range,
... | 35.190391 | 128 | 0.674369 |
137eb4fb88a280d57e223383a1252ee199ec52e5 | 14,714 | py | Python | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | 1 | 2021-08-19T11:16:47.000Z | 2021-08-19T11:16:47.000Z | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | null | null | null | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | 4 | 2018-03-21T05:57:54.000Z | 2020-11-26T00:37:29.000Z | # Copyright (c) 2013, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, msgprint
from frappe.utils import (cint, cstr, date_diff, flt, getdate, money_in_words,
nowdate, rounded, today)
from datet... | 41.68272 | 130 | 0.436387 |
137f6361d1e175bc555153af22f77e79ad507096 | 369 | py | Python | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | dataset/dataset.py | TeamOfProfGuo/few_shot_baseline | f9ac87b9d309fc417589350d3ce61d3612e2be91 | [
"MIT"
] | null | null | null | import os
DEFAULT_ROOT = './materials'
datasets_dt = {}
| 17.571429 | 62 | 0.642276 |
137fdb8af310be2f7cdaeb72968e537c0108415a | 888 | py | Python | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | from .comment import CommentParser
from .protobuf import Protobuf
from .proto_structures import Syntax
| 29.6 | 77 | 0.657658 |
138136650386e60020d1b6906281d81dfdc20779 | 443 | py | Python | IPL/app/core/views.py | mgp-git/Flask | f56be0192a3aac550a1dae46394352a68bd53d3d | [
"Apache-2.0"
] | null | null | null | IPL/app/core/views.py | mgp-git/Flask | f56be0192a3aac550a1dae46394352a68bd53d3d | [
"Apache-2.0"
] | null | null | null | IPL/app/core/views.py | mgp-git/Flask | f56be0192a3aac550a1dae46394352a68bd53d3d | [
"Apache-2.0"
] | null | null | null | from flask import render_template, request, Blueprint
core = Blueprint('core', __name__)
| 22.15 | 64 | 0.693002 |
13829c0823e4f1af5270d26df1460fb75ccc8a6b | 47,884 | py | Python | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 1 | 2021-11-16T00:58:43.000Z | 2021-11-16T00:58:43.000Z | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 16 | 2021-05-17T19:24:47.000Z | 2021-12-15T13:57:34.000Z | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 1 | 2021-05-12T19:11:52.000Z | 2021-05-12T19:11:52.000Z | # encoding: utf-8
import functools
import os
from urllib.parse import urlsplit
import boto3
import botocore
import pytest
from botocore.exceptions import BotoCoreError, ClientError
from mock import MagicMock
from parameterized import parameterized
from ..mirror import MirrorUploader
from ..model import (
DataSour... | 35.105572 | 145 | 0.56497 |
1382e742de1eb49e756dcd17000e8fccc4bc6d6c | 1,114 | py | Python | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | """Set the build version to be 'qa', 'rc', 'release'"""
import sys
import os
import re
import logging
log = logging.getLogger()
log.addHandler(logging.StreamHandler())
log.setLevel(logging.DEBUG)
if __name__ == '__main__':
sys.exit(main())
| 30.108108 | 82 | 0.658887 |
13836c2a14bcd63d7cbfba39a7fecc1ae843d691 | 7,087 | py | Python | backend/jenkins/pipelines/ansible/utils/testplan_gen.py | gbl1124/hfrd | 327d7c1e18704d2e31a2649b40ae1d90353ebe24 | [
"Apache-2.0"
] | 5 | 2019-08-02T20:53:57.000Z | 2021-06-25T05:16:46.000Z | backend/jenkins/pipelines/ansible/utils/testplan_gen.py | anandbanik/hfrd | 7bc1f13bfc9c7d902aec0363d27b089ef68c7eec | [
"Apache-2.0"
] | null | null | null | backend/jenkins/pipelines/ansible/utils/testplan_gen.py | anandbanik/hfrd | 7bc1f13bfc9c7d902aec0363d27b089ef68c7eec | [
"Apache-2.0"
] | 14 | 2019-07-01T01:40:50.000Z | 2020-03-24T06:14:32.000Z |
#!/usr/bin/python
import yaml
import os
import ast
import sys
from collections import OrderedDict
curr_dir = os.getcwd()
work_dir = sys.argv[1]
network_type = sys.argv[2]
testplan_dict = {}
testplan_dict["name"] = "System performance test"
testplan_dict["description"] = "This test is to create as much chaincode com... | 39.372222 | 102 | 0.719769 |
1383ec6b114d686bf9cab5e588bcd0ec41143a37 | 1,033 | py | Python | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | null | null | null | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | 1 | 2019-02-25T09:52:31.000Z | 2019-02-25T09:52:31.000Z | dblib/test_lib.py | cyber-fighters/dblib | 9743122a55bc265f7551dd9283f381678b2703e4 | [
"MIT"
] | null | null | null | """Collection of tests."""
import pytest
import dblib.lib
f0 = dblib.lib.Finding('CD spook', 'my_PC', 'The CD drive is missing.')
f1 = dblib.lib.Finding('Unplugged', 'my_PC', 'The power cord is unplugged.')
f2 = dblib.lib.Finding('Monitor switched off', 'my_PC', 'The monitor is switched off.')
def test_add_remove(... | 23.477273 | 87 | 0.629235 |
1383ee1f9bdf4c8acf135f0e8788f23793efa056 | 1,627 | py | Python | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 3,287 | 2016-07-26T17:34:33.000Z | 2022-03-31T09:52:13.000Z | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 19,206 | 2016-07-26T07:04:42.000Z | 2022-03-31T23:57:09.000Z | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 2,575 | 2016-07-26T06:44:40.000Z | 2022-03-31T22:56:06.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 45.194444 | 112 | 0.696374 |
13842b8b9629fa8e84e1baad24f225b91291bacf | 6,553 | py | Python | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 187 | 2016-12-12T10:58:11.000Z | 2022-03-27T08:14:19.000Z | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 62 | 2016-12-10T00:12:47.000Z | 2022-03-16T09:23:05.000Z | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 47 | 2016-12-12T11:07:31.000Z | 2022-03-15T20:30:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-25 22:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_smalluuid.models
| 40.202454 | 100 | 0.327789 |
13844a293f37e75b2bbbb1208093a4013b133018 | 646 | py | Python | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
TOKEN = "Token for you bot"
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
if __name__ == '__main__':
executor.start_polling(dp) | 32.3 | 79 | 0.704334 |
13847a22eab74e6541bf593e5d68249f802e533f | 1,398 | py | Python | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | null | null | null | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | null | null | null | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | 2 | 2021-01-27T21:51:38.000Z | 2021-03-10T22:31:19.000Z | from django.core.exceptions import ImproperlyConfigured
from importlib import import_module
try:
from django.utils.encoding import force_text
except ImportError:
from django.utils.encoding import force_unicode as force_text
from django.utils.functional import Promise
import json
| 24.964286 | 71 | 0.670243 |
1385311ad77efabb909223d3edfa32108eab2458 | 4,984 | py | Python | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | 1 | 2020-04-20T04:45:47.000Z | 2020-04-20T04:45:47.000Z | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | null | null | null | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | 1 | 2020-04-20T04:45:51.000Z | 2020-04-20T04:45:51.000Z | # timedpid.py
# Source: https://github.com/DrGFreeman/PyTools
#
# MIT License
#
# Copyright (c) 2017 Julien de la Bruere-Terreault <drgfreeman@tuta.io>
#
# 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 th... | 36.647059 | 80 | 0.664125 |
13863d63148372da4df5a7856bdd98b8b8e90e54 | 3,051 | py | Python | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | 1 | 2020-06-01T19:20:09.000Z | 2020-06-01T19:20:09.000Z | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | null | null | null | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8-*-
# receives messages via zmq and executes some simple
# operations.
#
# (c) ISC Clemenz & Weinbrecht GmbH 2018
#
import json
import requests
import zmq
import pmon
| 29.336538 | 86 | 0.561455 |
138645ddd1d47197cec66a63b6f187e4f2176f57 | 423 | py | Python | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | 1 | 2022-03-01T05:05:04.000Z | 2022-03-01T05:05:04.000Z | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | null | null | null | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | null | null | null | from padmini import operations as op
"""
def test_ti():
assert S.ti("ta", "e") == "te"
assert S.ti("AtAm", "e") == "Ate"
def test_antya():
assert S.antya("ti", "u") == "tu"
assert S.antya("te", "Am") == "tAm"
"""
| 19.227273 | 53 | 0.51773 |
1388c9a700adcd34c480eb91c770af0acaf65dde | 2,186 | py | Python | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | null | null | null | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | 3 | 2018-06-15T10:12:39.000Z | 2022-03-23T23:43:27.000Z | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | 5 | 2018-03-27T12:53:55.000Z | 2019-07-17T15:54:09.000Z | # coding: utf-8
#just prints the emails of members of a group to stdout,
#both primary and secondary members
# run as
# $python extractemails_nogui.py "Tidal Disruption Events"
from __future__ import print_function
'__author__' == 'Federica Bianco, NYU - GitHub: fedhere'
import sys
import pandas as pd
from argparse im... | 35.836066 | 162 | 0.627173 |
1388cb066414d3af45386f8ba3a988639cd4786c | 20,373 | py | Python | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | null | null | null | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | 1 | 2021-11-09T14:30:49.000Z | 2021-11-09T14:31:19.000Z | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | null | null | null | from discord.ext import commands, menus
import utils
import random , discord, os, importlib, mystbin, typing, aioimgur, functools, tweepy
import traceback, textwrap
from discord.ext.menus.views import ViewMenuPages
class SusUsersEmbed(menus.ListPageSource):
class TestersEmbed(menus.ListPageSource):
def tweep... | 38.223265 | 333 | 0.676827 |
138922f3a893ab484911754fbdc916b94b521606 | 1,341 | py | Python | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:05:56.000Z | 2016-07-09T00:05:56.000Z | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 4 | 2022-03-10T09:13:31.000Z | 2022-03-30T16:15:01.000Z | tests/input_files/full_sm_UFO/function_library.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:06:15.000Z | 2016-07-09T00:06:15.000Z | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
from __future__ import absol... | 23.946429 | 57 | 0.57047 |