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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62b094d0827cf6c404c0fb38a86d155811976aaa | 5,577 | py | Python | jvd/ida/ida.py | L1NNA/JARV1S-Disassembler | 6bc9d9459bd5142406fdda0ed88ba636934c94c6 | [
"Apache-2.0"
] | 7 | 2020-12-19T18:56:23.000Z | 2021-11-21T20:29:58.000Z | jvd/ida/ida.py | L1NNA/JARV1S-Disassembler | 6bc9d9459bd5142406fdda0ed88ba636934c94c6 | [
"Apache-2.0"
] | 1 | 2020-12-20T07:57:37.000Z | 2020-12-28T18:10:11.000Z | jvd/ida/ida.py | L1NNA/JARV1S-Ghidra | 84b551b2a1266b6bcb9454aaa01b97b21d7d4d4f | [
"Apache-2.0"
] | 2 | 2020-12-20T11:32:20.000Z | 2021-03-17T15:36:16.000Z | import sys
import os
import json
import hashlib
import logging
import base64
import shutil
from concurrent.futures import ProcessPoolExecutor
from subprocess import Popen, PIPE, STDOUT
from jvd.disassembler import DisassemblerAbstract
import logging as log
import traceback
from jvd.utils import read_gz_js, write_gz_js,... | 32.614035 | 87 | 0.556392 |
62b0c55a01828adb8ecff345e701a1575e8cd8c1 | 3,203 | py | Python | scanapi/variable_parser.py | barbosa/scanapi | 82def9d7c9ef19a2b658d9aa6c973790e2c16ddc | [
"MIT"
] | null | null | null | scanapi/variable_parser.py | barbosa/scanapi | 82def9d7c9ef19a2b658d9aa6c973790e2c16ddc | [
"MIT"
] | null | null | null | scanapi/variable_parser.py | barbosa/scanapi | 82def9d7c9ef19a2b658d9aa6c973790e2c16ddc | [
"MIT"
] | null | null | null | from enum import Enum
import logging
import os
import re
import sys
import yaml
from scanapi.errors import BadConfigurationError, InvalidPythonCodeError
# Available imports to be used dinamically in the api spec
import datetime
import math
import random
import time
import uuid
logger = logging.getLogger(__name__)
va... | 23.043165 | 82 | 0.664689 |
62b2d24bf74949e44c4ce714693661230de5e646 | 18,720 | py | Python | python/londiste/setup.py | priitkustala/skytools-dev | 14bb378f95d2e5b82d01acf068377a660315b716 | [
"0BSD"
] | 1 | 2016-05-09T13:35:53.000Z | 2016-05-09T13:35:53.000Z | python/londiste/setup.py | priitkustala/skytools-dev | 14bb378f95d2e5b82d01acf068377a660315b716 | [
"0BSD"
] | null | null | null | python/londiste/setup.py | priitkustala/skytools-dev | 14bb378f95d2e5b82d01acf068377a660315b716 | [
"0BSD"
] | null | null | null | #! /usr/bin/env python
"""Londiste setup and sanity checker.
"""
import sys, os, skytools
from pgq.cascade.admin import CascadeAdmin
__all__ = ['LondisteSetup']
#
# Old commands
#
#class LondisteSetup_tmp(LondisteSetup):
#
# def find_missing_provider_tables(self, pattern='*'):
# src_db = self.get_databa... | 38.439425 | 113 | 0.554594 |
62b30ce5a1ecf3197e59646a2a71b9143771e4fd | 4,929 | py | Python | tests/tests.py | SherineAwad/ribofilio | 4dea38692e7715f07df3ee074e2adc5380f4d6e9 | [
"MIT"
] | null | null | null | tests/tests.py | SherineAwad/ribofilio | 4dea38692e7715f07df3ee074e2adc5380f4d6e9 | [
"MIT"
] | null | null | null | tests/tests.py | SherineAwad/ribofilio | 4dea38692e7715f07df3ee074e2adc5380f4d6e9 | [
"MIT"
] | null | null | null | import pytest
import screed
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import cv2
import skimage.measure as measure
path = os.getcwd()
path = os.path.join(path,"src")
sys.path.append(path)
print(path)
import ribofilio as rb
| 34.957447 | 139 | 0.656523 |
62b452aca3bac882d562e1e0dd344def55e8b870 | 6,208 | py | Python | envoy.code.check/envoy/code/check/abstract/flake8.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null | envoy.code.check/envoy/code/check/abstract/flake8.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null | envoy.code.check/envoy/code/check/abstract/flake8.py | Nordix/pytooling | b48e70e9098c283d0f17db8016d2f32a2b103a57 | [
"Apache-2.0"
] | null | null | null |
import io
import logging
import os
import pathlib
from functools import cached_property, lru_cache
from typing import List, Set, Tuple
from flake8.main.application import Application # type:ignore
from flake8 import ( # type:ignore
utils as flake8_utils,
checker as flake8_checker)
import abstracts
from ai... | 29.846154 | 73 | 0.602932 |
62b63fa1744965ed736f83868f1e02cf4c32335f | 16,566 | py | Python | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | 3 | 2021-07-20T14:10:22.000Z | 2022-03-21T10:28:15.000Z | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | null | null | null | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | null | null | null | import typing
from ..tools.log import Logger
from .db import DBI
from .model_base import ModelBase
from ..config import Config
| 41.72796 | 189 | 0.651093 |
62b641168ce9b71ea5015d7584d8b7ff3788ad8f | 1,271 | py | Python | setup.py | may-ank/hocr-tools | 3ad9748e85360a327161ab562445ec5171e3366a | [
"Apache-2.0"
] | 200 | 2015-01-09T03:34:39.000Z | 2020-07-28T17:12:40.000Z | setup.py | may-ank/hocr-tools | 3ad9748e85360a327161ab562445ec5171e3366a | [
"Apache-2.0"
] | 141 | 2015-01-09T03:49:21.000Z | 2020-06-12T19:14:39.000Z | setup.py | may-ank/hocr-tools | 3ad9748e85360a327161ab562445ec5171e3366a | [
"Apache-2.0"
] | 55 | 2015-03-03T18:59:49.000Z | 2020-07-02T08:18:04.000Z | #!/usr/bin/env python
__version__ = '1.3.0'
import glob
from setuptools import setup
setup(
name="hocr-tools",
version=__version__,
description='Advanced tools for hOCR integration',
author='Thomas Breuel',
maintainer='Konstantin Baierer',
maintainer_email='konstantin.baierer@gmail.com',
... | 31.775 | 65 | 0.608969 |
62b64285802deea7a9e5bd1076a5f0e456274316 | 2,237 | py | Python | src/reporter.py | serhankk/Device-Reporter | bcf98fbbe38d6c116853556f185e3709269f1a81 | [
"MIT"
] | null | null | null | src/reporter.py | serhankk/Device-Reporter | bcf98fbbe38d6c116853556f185e3709269f1a81 | [
"MIT"
] | null | null | null | src/reporter.py | serhankk/Device-Reporter | bcf98fbbe38d6c116853556f185e3709269f1a81 | [
"MIT"
] | null | null | null | # Imports
import socket
import subprocess
import os
import requests
# from prettytable import PrettyTable
import getpass
import CONFIG
username = get_username()
hostname = get_hostname()
local_ip = get_local_ip()
wifi = get_connected_network()
interface = get_using_interface()
device_uptime = get_device_uptime()
ram ... | 26.630952 | 101 | 0.682164 |
62b72fe4dc07715ae87e1325abafd6e9ec329431 | 2,985 | py | Python | pyflarum/extensions.py | CWKevo/pyFlarum | 2c4e17a16b00367f140c3436f7a9148072ddd2d3 | [
"MIT"
] | 1 | 2022-02-07T10:40:46.000Z | 2022-02-07T10:40:46.000Z | pyflarum/extensions.py | CWKevo/pyFlarum | 2c4e17a16b00367f140c3436f7a9148072ddd2d3 | [
"MIT"
] | 1 | 2022-02-07T10:49:09.000Z | 2022-02-07T12:25:25.000Z | pyflarum/extensions.py | CWKevo/pyFlarum | 2c4e17a16b00367f140c3436f7a9148072ddd2d3 | [
"MIT"
] | null | null | null | import typing as t
import warnings
from .error_handler import MissingExtensionError, MissingExtensionWarning
| 33.166667 | 163 | 0.603015 |
62b95299da78a40aaf85180de76adaf63b33b8e6 | 3,695 | py | Python | ComRISB/pyglib/pyglib/dft/eos.py | comscope/comsuite | d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c | [
"BSD-3-Clause"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | ComRISB/pyglib/pyglib/dft/eos.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | null | null | null | ComRISB/pyglib/pyglib/dft/eos.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | import numpy as np
import h5py
import pyglib.basic.units as units
import pyglib.basic.splot as splot
'''
Equation of state.
'''
def Murnaghan(parameters, vol):
'''
Given a vector of parameters and volumes, return a vector of energies.
equation From PRB 28,5480 (1983)
'''
E0 = parameters[0]
B0... | 30.791667 | 78 | 0.586198 |
62b99b8da2aecb88766819c7135ff9c55eef6434 | 1,808 | py | Python | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | import users.user as user
import grades.actions as grade | 28.25 | 85 | 0.499447 |
62b9b66788e4870e77759cfd4f12b782254dda87 | 102 | py | Python | python/src/pdef/version.py | pdef/pdef-python | 09c6e6424ad141b40310eeea53c1f8b6e79be560 | [
"Apache-2.0"
] | 2 | 2020-03-15T03:22:59.000Z | 2020-03-15T04:37:23.000Z | python/src/pdef/version.py | pdef/pdef-python | 09c6e6424ad141b40310eeea53c1f8b6e79be560 | [
"Apache-2.0"
] | null | null | null | python/src/pdef/version.py | pdef/pdef-python | 09c6e6424ad141b40310eeea53c1f8b6e79be560 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''Pdef version in a separate module to simplify setup.py.'''
__version__ = '1.2.0'
| 25.5 | 61 | 0.696078 |
62bac4b95d046b26eb393d4a8ce42aab15524930 | 438 | py | Python | hardhat/recipes/python/curtsies.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/curtsies.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/curtsies.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | from .base import PipBaseRecipe
| 31.285714 | 61 | 0.630137 |
62bafbcb01ba35806246e96f56398067276ef692 | 688 | py | Python | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | 28 | 2020-11-08T21:04:00.000Z | 2021-09-29T06:56:11.000Z | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | null | null | null | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | 9 | 2020-11-11T13:47:32.000Z | 2021-08-24T11:31:53.000Z | # Generated by Django 3.1.3 on 2020-11-08 19:52
from django.db import migrations, models
| 28.666667 | 114 | 0.59157 |
62bb8acaace74c492d28ddb4b4b9013124472c19 | 3,821 | py | Python | utils.py | ChaosForge/shoot_tracer_test | e731ad2093b7d413430a03b37186e0787ccdda45 | [
"MIT"
] | null | null | null | utils.py | ChaosForge/shoot_tracer_test | e731ad2093b7d413430a03b37186e0787ccdda45 | [
"MIT"
] | null | null | null | utils.py | ChaosForge/shoot_tracer_test | e731ad2093b7d413430a03b37186e0787ccdda45 | [
"MIT"
] | null | null | null | import png
import numpy
import pprint
import math
import re
TRUE_RE = re.compile(".*True.*")
| 28.94697 | 107 | 0.526302 |
62bcad1c3d9d1d715a3613bffe731d335e4c1324 | 2,019 | py | Python | draft/pendulum/cosine_prod/cosine_prod.py | krystophny/profit | c6316c9df7cfaa7b30332fdbbf85ad27175eaf92 | [
"MIT"
] | 14 | 2019-12-03T14:11:28.000Z | 2022-03-15T13:44:06.000Z | draft/pendulum/cosine_prod/cosine_prod.py | krystophny/profit | c6316c9df7cfaa7b30332fdbbf85ad27175eaf92 | [
"MIT"
] | 118 | 2019-11-16T19:51:26.000Z | 2022-03-26T13:52:00.000Z | draft/pendulum/cosine_prod/cosine_prod.py | krystophny/profit | c6316c9df7cfaa7b30332fdbbf85ad27175eaf92 | [
"MIT"
] | 9 | 2020-06-08T07:22:56.000Z | 2021-03-21T14:12:21.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 27 23:58:37 2020
@author: manal
"""
import numpy as np
import GPy
from GPy.kern.src.stationary import Stationary
| 27.283784 | 114 | 0.510649 |
62bd6807be95587bd7a23aaac66d6f7511aacb65 | 156 | py | Python | tensorflowonspark/__init__.py | DerekRen/TensorFlowOnSpark | 52dda7b006f2dd0d98f0cc5d362de555263623fd | [
"Apache-2.0"
] | 1 | 2020-11-06T08:30:30.000Z | 2020-11-06T08:30:30.000Z | tensorflowonspark/__init__.py | DerekRen/TensorFlowOnSpark | 52dda7b006f2dd0d98f0cc5d362de555263623fd | [
"Apache-2.0"
] | null | null | null | tensorflowonspark/__init__.py | DerekRen/TensorFlowOnSpark | 52dda7b006f2dd0d98f0cc5d362de555263623fd | [
"Apache-2.0"
] | null | null | null | import logging
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s (%(threadName)s-%(process)d) %(message)s")
__version__ = "2.2.0"
| 26 | 116 | 0.717949 |
62be0b337ff4bd9e1d305e934c2a552b0ef05ec1 | 791 | py | Python | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | 2 | 2021-12-05T14:29:06.000Z | 2022-01-01T05:46:13.000Z | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right | 34.391304 | 60 | 0.558786 |
62bec360e9af625facdc5e2db7ded8db58128d8c | 4,904 | py | Python | Contents/Code/__init__.py | RussianPlex/plex-tvkultura | 4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc | [
"MIT"
] | null | null | null | Contents/Code/__init__.py | RussianPlex/plex-tvkultura | 4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc | [
"MIT"
] | null | null | null | Contents/Code/__init__.py | RussianPlex/plex-tvkultura | 4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc | [
"MIT"
] | null | null | null | PREFIX = "/video/tvkultura"
NAME = "TVKultura.Ru"
ICON = "tvkultura.png"
ART = "tvkultura.jpg"
BASE_URL = "https://tvkultura.ru/"
BRAND_URL = BASE_URL+"brand/"
# Channel initialization
# Main menu
def MetadataRecordForItem(video):
if video.has_children:
return DirectoryObject(
key=Call... | 34.055556 | 126 | 0.668638 |
62bf318fcce84f085eb558f2ffb4dc78820b46cc | 3,399 | py | Python | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 27 | 2015-06-24T20:29:20.000Z | 2021-04-18T15:38:15.000Z | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 1 | 2015-10-04T14:34:26.000Z | 2015-10-04T14:34:26.000Z | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 3 | 2015-11-10T21:36:10.000Z | 2020-06-22T01:51:39.000Z | # -*- coding: utf-8 -*-
"""
This module is a scratchpad for general development, testing & debugging
Well, even more so than pcmd.py. You best ignore p2cmd.py.
"""
import uuid
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
import ... | 30.621622 | 109 | 0.611356 |
62c2495191e9820c3997816cec2ee39d380c6cb2 | 13,997 | py | Python | njunmt/utils/misc.py | whr94621/NJUNMT-tf | 29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118 | [
"Apache-2.0"
] | 1 | 2018-10-27T12:04:03.000Z | 2018-10-27T12:04:03.000Z | njunmt/utils/misc.py | whr94621/NJUNMT-tf | 29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118 | [
"Apache-2.0"
] | null | null | null | njunmt/utils/misc.py | whr94621/NJUNMT-tf | 29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Natural Language Processing Group, Nanjing University, zhaocq.nlp@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... | 34.139024 | 115 | 0.650139 |
62c315af896205c5035b0984b4c54070e53199e5 | 4,381 | py | Python | src/manager.py | advancedbioimagingcenter/opticalaberrations | 80e642925bdc907d135717499e15d3217b5c6a0a | [
"BSD-2-Clause"
] | null | null | null | src/manager.py | advancedbioimagingcenter/opticalaberrations | 80e642925bdc907d135717499e15d3217b5c6a0a | [
"BSD-2-Clause"
] | 3 | 2021-11-12T17:13:45.000Z | 2021-11-23T14:07:50.000Z | src/manager.py | advancedbioimagingcenter/opticalaberrations | 80e642925bdc907d135717499e15d3217b5c6a0a | [
"BSD-2-Clause"
] | null | null | null | import logging
import time
from pathlib import Path
from subprocess import call
import cli
if __name__ == "__main__":
main()
| 27.904459 | 134 | 0.577494 |
62c3b75f8adcffa947ee4bcc6c76cec4ce476e9e | 1,127 | py | Python | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 18 | 2019-12-08T23:38:21.000Z | 2021-04-14T17:40:34.000Z | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 134 | 2019-07-30T04:51:44.000Z | 2021-05-24T07:07:02.000Z | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 7 | 2019-09-26T10:14:58.000Z | 2021-01-01T06:09:11.000Z | from dataclasses import dataclass, field
from typing import Any, Dict, List
from aiographql.client.error import GraphQLError
from aiographql.client.request import GraphQLRequestContainer
| 31.305556 | 86 | 0.697427 |
62c3efcf40a53a46324b9e3f1578e57e7300a9cb | 21 | py | Python | lib/utils/__init__.py | jwyang/C3Net.pytorch | 70026fc80c5427484268c428a9dcd4cde2e8197f | [
"MIT"
] | 43 | 2019-12-13T06:13:40.000Z | 2021-07-25T06:29:17.000Z | lib/utils/__init__.py | jwyang/C3Net.pytorch | 70026fc80c5427484268c428a9dcd4cde2e8197f | [
"MIT"
] | 2 | 2020-12-05T14:24:17.000Z | 2020-12-24T09:47:10.000Z | lib/utils/__init__.py | jwyang/C3Net.pytorch | 70026fc80c5427484268c428a9dcd4cde2e8197f | [
"MIT"
] | 4 | 2019-12-16T20:25:20.000Z | 2020-06-23T08:45:17.000Z | from .verbo import *
| 10.5 | 20 | 0.714286 |
62c4af423f4d437ce0fc13458b7ee5066a241ce5 | 2,602 | py | Python | federatedml/feature/feature_selection/variance_coe_filter.py | yzjba/FATE | 9a6d252da637b2583a0f8a51f6cb4c615850bab9 | [
"Apache-2.0"
] | 32 | 2020-06-12T08:39:58.000Z | 2022-03-20T06:57:08.000Z | federatedml/feature/feature_selection/variance_coe_filter.py | ErikSun2020/FATE | bdda535c7d8a974fc2c43102837964b7da199730 | [
"Apache-2.0"
] | 10 | 2020-11-13T18:55:48.000Z | 2022-02-10T02:00:12.000Z | federatedml/feature/feature_selection/variance_coe_filter.py | ErikSun2020/FATE | bdda535c7d8a974fc2c43102837964b7da199730 | [
"Apache-2.0"
] | 16 | 2020-06-12T06:51:46.000Z | 2022-03-29T10:23:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE 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/lic... | 38.264706 | 108 | 0.734051 |
62c4f0e22569d1378b2c2f18e1303c8af52e1edb | 269 | py | Python | hausa_text_corpus/tool.py | tunde99/AMMI-2020-SPEECH-COURSE | d1f6614804169a59a324c75c0b398c63af013d8c | [
"MIT"
] | 1 | 2020-08-24T21:00:01.000Z | 2020-08-24T21:00:01.000Z | hausa_text_corpus/tool.py | tunde99/AMMI-2020-SPEECH-COURSE | d1f6614804169a59a324c75c0b398c63af013d8c | [
"MIT"
] | null | null | null | hausa_text_corpus/tool.py | tunde99/AMMI-2020-SPEECH-COURSE | d1f6614804169a59a324c75c0b398c63af013d8c | [
"MIT"
] | null | null | null | from collections import defaultdict
word_counts = defaultdict(int)
for w in open('runbun_ilimi/runbin_ilimi.txt', encoding="utf-8").read().split():
word_counts[w.lower()] += 1
totalCount = 0;
for w, c in word_counts.items():
totalCount += 1
print(totalCount) | 24.454545 | 80 | 0.717472 |
62c6209c1d4244f1912d66e155942262d1b47bff | 3,839 | py | Python | S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | # Fichier main de gestion des ressources du robot
from micropython import const
from machine import *
from DRV8833 import *
from BME280 import *
import pycom
import time
import os
# Variables globales pour moteurs et pont en H
DRV8833_Sleep_pin = "P20" # Pin SLEEP
DRV8833_AIN1 = "P22" # Entre PWM moteur... | 29.530769 | 102 | 0.62386 |
62c68df32015d9517a46bfdec493cc8175c53e34 | 4,146 | py | Python | evaluators/weighted_cross_entropy.py | adgilbert/med-seg | 825ea068c6cf5328e437e3ba85b894aeae58cf25 | [
"BSD-3-Clause"
] | null | null | null | evaluators/weighted_cross_entropy.py | adgilbert/med-seg | 825ea068c6cf5328e437e3ba85b894aeae58cf25 | [
"BSD-3-Clause"
] | null | null | null | evaluators/weighted_cross_entropy.py | adgilbert/med-seg | 825ea068c6cf5328e437e3ba85b894aeae58cf25 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn.functional as F
from torch import nn as nn
from torch.autograd import Variable
# from https://github.com/wolny/pytorch-3dunet/blob/master/pytorch3dunet/unet3d/losses.py
def flatten(tensor):
"""Flattens a given tensor such that the channel axis is first.
The shapes are transforme... | 36.690265 | 112 | 0.660637 |
62c70fbd4dd1990a1151426895ed667c88dc7b19 | 1,020 | py | Python | AlgorithmsPractice/python/20_simple_Valid Parenthese.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 58 | 2019-03-03T04:42:23.000Z | 2022-01-13T04:36:31.000Z | AlgorithmsPractice/python/20_simple_Valid Parenthese.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | null | null | null | AlgorithmsPractice/python/20_simple_Valid Parenthese.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 28 | 2019-08-11T01:25:00.000Z | 2021-08-22T06:46:06.000Z | '''
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Note that an empty string is also considered valid.
Exa... | 18.888889 | 118 | 0.540196 |
62c980b1f8ae0f43cf9504c637fc1f567b5d9a10 | 3,440 | py | Python | tests/test_verify_json_response.py | ambertide/flask-verify | 4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf | [
"MIT"
] | null | null | null | tests/test_verify_json_response.py | ambertide/flask-verify | 4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf | [
"MIT"
] | null | null | null | tests/test_verify_json_response.py | ambertide/flask-verify | 4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf | [
"MIT"
] | null | null | null | from json import dumps
from typing import Callable
from flask.json import jsonify
from flask.wrappers import Response
from flask_verify.verify_json import verify_json_response
from pytest import raises
def test_already_response() -> None:
"""
Test if a view function that already returns a Response obje... | 30.714286 | 87 | 0.68314 |
62c9b5e931b6417fe4d81185cc271efbd05d9b8d | 1,266 | py | Python | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | 1 | 2017-10-20T06:47:22.000Z | 2017-10-20T06:47:22.000Z | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | null | null | null | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | null | null | null | import numpy as np
import sys
import cv2
sys.path.append("../")
from utils.config import config
| 23.886792 | 58 | 0.562401 |
62ca4cc5761e9a0a5eb64bd672778ab82de9c1ca | 1,676 | py | Python | wmata/rail/station.py | emma-k-alexandra/pywmata | b11e851f864defc0bda84f012dbe2a2c31c202d1 | [
"MIT"
] | 5 | 2019-12-28T20:18:22.000Z | 2021-09-12T17:28:00.000Z | wmata/rail/station.py | emma-k-alexandra/pywmata | b11e851f864defc0bda84f012dbe2a2c31c202d1 | [
"MIT"
] | null | null | null | wmata/rail/station.py | emma-k-alexandra/pywmata | b11e851f864defc0bda84f012dbe2a2c31c202d1 | [
"MIT"
] | 1 | 2021-06-28T16:08:08.000Z | 2021-06-28T16:08:08.000Z | """MetroRail Station related structures
"""
from enum import Enum
from typing import Any, Optional
| 16.115385 | 39 | 0.406325 |
62cd069a9b7cd2af7aa7c84f21bfa318e3d2f590 | 27,398 | py | Python | tests/unit/core/test_models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 10 | 2020-04-30T12:04:35.000Z | 2021-07-21T12:48:55.000Z | tests/unit/core/test_models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 1,461 | 2020-01-23T18:20:26.000Z | 2022-03-31T08:05:56.000Z | tests/unit/core/test_models.py | uktrade/great-cms | f13fa335ddcb925bc33a5fa096fe73ef7bdd351a | [
"MIT"
] | 3 | 2020-04-07T20:11:36.000Z | 2020-10-16T16:22:59.000Z | import time
from unittest import mock
import pytest
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import ValidationError
from django.db import IntegrityError
from django.http import Http404
from django.test import RequestFactory, TestCase
from django.urls import reverse
from wagtail.... | 37.377899 | 120 | 0.682495 |
62ce269193d7705f35038bcd87a972dc46af569a | 4,141 | py | Python | polyadcirc/run_framework/no_ibrun.py | tmiesse/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2016-03-04T19:42:32.000Z | 2022-01-20T15:39:25.000Z | polyadcirc/run_framework/no_ibrun.py | tmiesse/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2015-04-28T05:14:28.000Z | 2017-01-19T12:54:59.000Z | polyadcirc/run_framework/no_ibrun.py | UT-CHG/PolyADCIRC | a4a31dda2c2dac4cd696c0f3827dbbcea7feab33 | [
"BSD-3-Clause"
] | 5 | 2016-01-20T00:34:47.000Z | 2022-01-02T11:00:56.000Z | # Copyright (C) 2013 Lindley Graham
"""
This file provides a mpirun work-around for clusters that do not have the ibrun
command.
"""
import os, stat
| 46.52809 | 79 | 0.530065 |
62cfcef9c0c1bac2152ebbbdc822957a7ae21154 | 3,185 | py | Python | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import datetime as dt
import sys
import getpass
import re
if __name__ == '__main__':
main()
| 38.841463 | 149 | 0.546311 |
62d071b99f54f8dbc2410a08457bd117463691a6 | 575 | py | Python | 3/redis.py | dyygtfx/python-in-action | 86e4fe71d801a0133e488b7eb914bd9766736959 | [
"MIT"
] | null | null | null | 3/redis.py | dyygtfx/python-in-action | 86e4fe71d801a0133e488b7eb914bd9766736959 | [
"MIT"
] | null | null | null | 3/redis.py | dyygtfx/python-in-action | 86e4fe71d801a0133e488b7eb914bd9766736959 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
#coding=utf-8
# 0003 0001 200 Redis
import uuid
import redis
save_to_redis(create_code(200,20)) | 23 | 56 | 0.617391 |
62d30bbb6f283ca534cedc754312f5c27d2a329b | 141 | py | Python | Tuples.py | PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code | c164492a757cb825b73af1014f95aef884ac49af | [
"Unlicense"
] | 2 | 2021-08-11T15:53:16.000Z | 2021-09-13T13:43:59.000Z | Tuples.py | PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code | c164492a757cb825b73af1014f95aef884ac49af | [
"Unlicense"
] | null | null | null | Tuples.py | PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code | c164492a757cb825b73af1014f95aef884ac49af | [
"Unlicense"
] | null | null | null | # Tuples
coordinates = (4, 5) # Cant be changed or modified
print(coordinates[1])
# coordinates[1] = 10
# print(coordinates[1])
| 14.1 | 51 | 0.638298 |
62d38abd8cc901db862694dad66e79677fe1126b | 620 | py | Python | drift/tests/test_soakit.py | dgnorth/drift | d4f52726dad1e8a1aa25d9295dd898c5514f729f | [
"MIT"
] | 6 | 2016-09-24T13:40:12.000Z | 2020-04-15T18:53:47.000Z | drift/tests/test_soakit.py | dgnorth/drift | d4f52726dad1e8a1aa25d9295dd898c5514f729f | [
"MIT"
] | 4 | 2016-11-15T10:40:04.000Z | 2020-11-26T09:48:37.000Z | drift/tests/test_soakit.py | dgnorth/drift | d4f52726dad1e8a1aa25d9295dd898c5514f729f | [
"MIT"
] | 3 | 2016-10-31T09:48:02.000Z | 2021-05-25T09:22:07.000Z | import unittest
import logging
from flask import Flask
if __name__ == "__main__":
unittest.main()
| 18.787879 | 49 | 0.624194 |
62d4d2b9bbdb7c26c851c4cf1142dbfca5ebcb07 | 4,603 | py | Python | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | #!/usr/bin/python
# vim: set sw=4 sts=4 ts=8 et ft=python fenc=utf8 ff=unix tw=74 :
#
# SYNOPSIS
# ========
# This script analyses an INI file created by dir-stats.py and displays
# directories containing a certain amount of data.
#
# ARGUMENTS
# =========
# Call the script without any parameters to see an unsage mess... | 28.067073 | 74 | 0.473604 |
62d4d43b9a1fc71daaf8cfbde1c3396de23d1c7b | 602 | py | Python | command_preprocessor.py | Polyhistorian/Pyt-wh-orstBot | 3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec | [
"MIT"
] | null | null | null | command_preprocessor.py | Polyhistorian/Pyt-wh-orstBot | 3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec | [
"MIT"
] | null | null | null | command_preprocessor.py | Polyhistorian/Pyt-wh-orstBot | 3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec | [
"MIT"
] | null | null | null | import command_processor as command
import discord
| 33.444444 | 103 | 0.652824 |
62d525e622ba5d66f4d11a820ba42088e87bc06b | 13,294 | py | Python | pybnn/svgd_.py | hssandriss/pybnn | e878553a24ce9ebdde9088f285c7f292e4ee8885 | [
"BSD-3-Clause"
] | null | null | null | pybnn/svgd_.py | hssandriss/pybnn | e878553a24ce9ebdde9088f285c7f292e4ee8885 | [
"BSD-3-Clause"
] | null | null | null | pybnn/svgd_.py | hssandriss/pybnn | e878553a24ce9ebdde9088f285c7f292e4ee8885 | [
"BSD-3-Clause"
] | null | null | null | import random
import time
import numpy as np
import theano
import theano.tensor as T
from scipy.spatial.distance import pdist, squareform
from tqdm import tqdm
'''
Sample code to reproduce our results for the Bayesian neural network example.
Our settings are almost the same as Hernandez-Lobato and Adams (ICML... | 40.407295 | 168 | 0.578682 |
62d7219219d48ca548a710f2a1aee166cd73d83e | 3,172 | py | Python | poi_mining/api/server.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | 1 | 2019-09-29T13:36:29.000Z | 2019-09-29T13:36:29.000Z | poi_mining/api/server.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | null | null | null | poi_mining/api/server.py | yummydeli/machine_learning | 54471182ac21ef0eee26557a7bd6f3a3dc3a09bd | [
"MIT"
] | null | null | null | #coding:utf-8
################################################################################
#
### Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
#
##################################################################################
"""
This module provide configure file management service in i18n environment.
... | 28.836364 | 99 | 0.584489 |
62d7ffd0472b4eb45907da6224fc3b2b392b8416 | 238 | py | Python | python/7kyu/even_numbers_in_an_array.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | 3 | 2021-06-08T01:57:13.000Z | 2021-06-26T10:52:47.000Z | python/7kyu/even_numbers_in_an_array.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | null | null | null | python/7kyu/even_numbers_in_an_array.py | Sigmanificient/codewars | b34df4bf55460d312b7ddf121b46a707b549387a | [
"MIT"
] | 2 | 2021-06-10T21:20:13.000Z | 2021-06-30T10:13:26.000Z | """Kata url: https://www.codewars.com/kata/5a431c0de1ce0ec33a00000c."""
from typing import List
| 26.444444 | 71 | 0.655462 |
62d8f79aae34a225a888d00382e4743afa82bca2 | 10,997 | py | Python | backend/lambda_functions/arcgis_loader/arcgis_loader.py | GispoCoding/tarmo | 064eead90991fb2836173b647282e044dfa06c5a | [
"MIT"
] | null | null | null | backend/lambda_functions/arcgis_loader/arcgis_loader.py | GispoCoding/tarmo | 064eead90991fb2836173b647282e044dfa06c5a | [
"MIT"
] | 92 | 2022-01-27T08:05:09.000Z | 2022-03-31T06:54:46.000Z | backend/lambda_functions/arcgis_loader/arcgis_loader.py | GispoCoding/tarmo | 064eead90991fb2836173b647282e044dfa06c5a | [
"MIT"
] | null | null | null | import datetime
import json
from typing import Any, Dict, Optional
import requests
from shapely.geometry import (
LineString,
MultiLineString,
MultiPoint,
MultiPolygon,
Point,
Polygon,
shape,
)
from sqlalchemy.types import BOOLEAN, DATE
from .base_loader import (
LOGGER,
BaseLoader... | 40.430147 | 122 | 0.557516 |
62da8796a3106e941b0e8eec2b3eb3b47d77106e | 4,123 | py | Python | excel_handler.py | Jason2031/EMailResponder | af9be4bd9dbd38f2ba4ea934a40627774766c8ae | [
"MIT"
] | null | null | null | excel_handler.py | Jason2031/EMailResponder | af9be4bd9dbd38f2ba4ea934a40627774766c8ae | [
"MIT"
] | null | null | null | excel_handler.py | Jason2031/EMailResponder | af9be4bd9dbd38f2ba4ea934a40627774766c8ae | [
"MIT"
] | null | null | null | import os
import yaml
import xlrd
from openpyxl import load_workbook
from util_func import securely_check_dir
if __name__ == '__main__':
config_file = 'config/top.yml'
if not os.path.exists(config_file):
print('No top.yml file found!')
exit(-1)
with open(config_file, encoding='utf-8') a... | 48.505882 | 112 | 0.494785 |
62dbe883ecb8afdfe748f21860863b240087b5b4 | 564 | py | Python | setup.py | gregory-halverson/crs | 3fc7b68b347fec29e977e150e15841b16ec38647 | [
"MIT"
] | null | null | null | setup.py | gregory-halverson/crs | 3fc7b68b347fec29e977e150e15841b16ec38647 | [
"MIT"
] | null | null | null | setup.py | gregory-halverson/crs | 3fc7b68b347fec29e977e150e15841b16ec38647 | [
"MIT"
] | null | null | null | from os.path import join
from os.path import abspath
from os.path import dirname
from distutils.core import setup
__author__ = 'Gregory Halverson'
NAME = 'crs'
EMAIL = 'gregory.halverson@gmail.com'
URL = 'http://github.com/gregory-halverson/crs'
with open(join(abspath(dirname(__file__)), NAME, 'version.txt')) as f:
... | 24.521739 | 86 | 0.728723 |
62dc5a004b7115829f44a8eadc00ed4081475f1f | 161 | py | Python | src/libs/django/utils/request.py | antiline/jun2 | 00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c | [
"MIT"
] | null | null | null | src/libs/django/utils/request.py | antiline/jun2 | 00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c | [
"MIT"
] | 17 | 2019-06-24T14:11:49.000Z | 2021-06-04T22:19:59.000Z | src/libs/django/utils/request.py | tabetaku/roots | 8a9f91b8b0e0b64a85db2898a537b12be65de753 | [
"MIT"
] | null | null | null | from ipware.ip import get_ip
from ipware.utils import is_private_ip
| 23 | 48 | 0.807453 |
62dcdfc108fcc269a77defa004067921ebd5f696 | 1,067 | py | Python | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | import os
from nose import with_setup
from nose.tools import assert_true
import nibabel
from nilearn.datasets.tests import test_utils as tst
from nilearn.image import index_img
from sammba.registration import base
from sammba import testing_data
from nilearn._utils.niimg_conversions import _check_same_fov
| 38.107143 | 75 | 0.709466 |
62dd03d0d913944957c2612082f29f5c840f0d43 | 555 | py | Python | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | null | null | null | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | null | null | null | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | 1 | 2020-11-11T05:02:37.000Z | 2020-11-11T05:02:37.000Z | import urllib.request
from bs4 import BeautifulSoup
import matplotlib.pyplot as plt
from PIL import Image
import os
| 23.125 | 72 | 0.673874 |
62dd4a508db411e5b7ff314613aafdeaeb5656d2 | 376 | py | Python | muon/__init__.py | WeilerP/muon | 8e0988f07ae23be4fa913bb297ef059e5ab702a0 | [
"BSD-3-Clause"
] | null | null | null | muon/__init__.py | WeilerP/muon | 8e0988f07ae23be4fa913bb297ef059e5ab702a0 | [
"BSD-3-Clause"
] | null | null | null | muon/__init__.py | WeilerP/muon | 8e0988f07ae23be4fa913bb297ef059e5ab702a0 | [
"BSD-3-Clause"
] | null | null | null | """Multimodal omics analysis framework"""
from ._core.mudata import MuData
from ._core import preproc as pp
from ._core import tools as tl
from ._core import plot as pl
from ._core import utils
from ._core.io import *
from ._core.config import set_options
from . import atac
from . import prot
__version__ = "0.1.0"
_... | 22.117647 | 41 | 0.755319 |
62de606ad5a0ee4725f392cc0be4a4d2ca1933b9 | 2,756 | py | Python | recipes/recipes/goma_hello_world.py | xinghun61/infra | b5d4783f99461438ca9e6a477535617fadab6ba3 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | recipes/recipes/goma_hello_world.py | asdfghjjklllllaaa/infra | 8f63af54e46194cd29291813f2790ff6e986804d | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | recipes/recipes/goma_hello_world.py | xinghun61/infra | b5d4783f99461438ca9e6a477535617fadab6ba3 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Compiles trivial C++ program using Goma.
Intended to be used as a very simple litmus test of Goma health on LUCI staging
environment. Linux and OSX only.... | 25.757009 | 79 | 0.644049 |
62de74cf7251561058f563593dbf807c8c8593c6 | 16,049 | py | Python | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | 2 | 2022-03-20T02:03:53.000Z | 2022-03-21T19:44:54.000Z | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | null | null | null | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Nowruz at SemEval 2022: Tackling Cloze Tests with Transformers and Ordinal Regression
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1RXkjBpzNJtc0WhhrKMjU-50rd5uSviX3
"""
import torch
import torch.nn as nn
from torch.functio... | 32.686354 | 210 | 0.663406 |
62defe5f6a2a05a1164bd7391f942132d33f8a26 | 1,703 | py | Python | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | 2 | 2018-04-05T14:07:16.000Z | 2020-11-03T06:08:09.000Z | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | null | null | null | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | 1 | 2018-04-05T14:17:44.000Z | 2018-04-05T14:17:44.000Z | import re
import json
from time import time
from random import random
USER_AGENTS = [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/601.1.10 (KHTML, like Gecko) Version/8.0.... | 36.234043 | 139 | 0.656489 |
62e05da86f265d8babd95a4bb39d8c5d2cf0aa4a | 964 | py | Python | rfhub/blueprints/api/libraries.py | Accruent/robotframework-hub | 46f72d2d720e6ad1848c162e9dfd21740797a054 | [
"Apache-2.0"
] | null | null | null | rfhub/blueprints/api/libraries.py | Accruent/robotframework-hub | 46f72d2d720e6ad1848c162e9dfd21740797a054 | [
"Apache-2.0"
] | 90 | 2019-09-04T17:52:10.000Z | 2021-07-01T14:01:08.000Z | rfhub/blueprints/api/libraries.py | Accruent/robotframework-hub | 46f72d2d720e6ad1848c162e9dfd21740797a054 | [
"Apache-2.0"
] | null | null | null | '''
This provides the view functions for the /api/libraries endpoints
'''
import flask
from flask import current_app
| 32.133333 | 94 | 0.695021 |
62e085ec76ed466edc7957012e2209ee7eb9a47a | 131 | py | Python | pair-ranking-cnn/utils.py | shinoyuki222/torch-light | 4799805d9bcae82a9f12a574dcf9fdd838c92ee9 | [
"MIT"
] | 310 | 2018-11-02T10:12:33.000Z | 2022-03-30T02:59:51.000Z | pair-ranking-cnn/utils.py | shinoyuki222/torch-light | 4799805d9bcae82a9f12a574dcf9fdd838c92ee9 | [
"MIT"
] | 14 | 2018-11-08T10:09:46.000Z | 2021-07-30T08:54:33.000Z | pair-ranking-cnn/utils.py | shinoyuki222/torch-light | 4799805d9bcae82a9f12a574dcf9fdd838c92ee9 | [
"MIT"
] | 152 | 2018-11-02T13:00:49.000Z | 2022-03-28T12:45:08.000Z | import const
| 21.833333 | 82 | 0.709924 |
62e0a00977882b69ee47910edb8fb49b209ff9a7 | 1,251 | py | Python | applications/admin/models/menu.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | 6 | 2018-01-25T01:07:55.000Z | 2019-04-26T23:58:29.000Z | applications/admin/models/menu.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | null | null | null | applications/admin/models/menu.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | 2 | 2018-02-03T02:55:56.000Z | 2018-02-06T19:55:10.000Z | # ###########################################################
# ## generate menu
# ###########################################################
_a = request.application
_c = request.controller
_f = request.function
response.title = '%s %s' % (_f, '/'.join(request.args))
response.subtitle = 'admin'
response.menu = [(T('... | 37.909091 | 75 | 0.490807 |
62e0c8f94beaf1979e0b0e3755a3173a04c8a516 | 1,159 | py | Python | lenstronomy/LightModel/Profiles/moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | null | null | null | lenstronomy/LightModel/Profiles/moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | null | null | null | lenstronomy/LightModel/Profiles/moffat.py | heather999/lenstronomy | 8102fe026c1f3ba6e81d8a1f59cceb90e68430b4 | [
"MIT"
] | null | null | null | __author__ = 'sibirrer'
# this file contains a class to make a Moffat profile
__all__ = ['Moffat']
| 28.268293 | 106 | 0.569456 |
62e0e93747dae752fc1a23adaf41a5a5edb9094b | 1,912 | py | Python | pypy/module/oracle/test/test_objectvar.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | pypy/module/oracle/test/test_objectvar.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | pypy/module/oracle/test/test_objectvar.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | from pypy.module.oracle.test.test_connect import OracleTestBase
| 37.490196 | 70 | 0.579498 |
62e1d5665a19ec6ff0058abaac2fe46b0195ec1d | 250 | py | Python | lecture70_practice.py | adwabh/python_practice | 878aa06841ec606648eab97fe5e801f073ce0aa7 | [
"Apache-2.0"
] | null | null | null | lecture70_practice.py | adwabh/python_practice | 878aa06841ec606648eab97fe5e801f073ce0aa7 | [
"Apache-2.0"
] | null | null | null | lecture70_practice.py | adwabh/python_practice | 878aa06841ec606648eab97fe5e801f073ce0aa7 | [
"Apache-2.0"
] | null | null | null | tempratures = [10,-20, -289, 100]
for temp in tempratures:
writeToFile(str(c_to_f(temp)))
| 19.230769 | 40 | 0.628 |
62e200f1509ce70b40b4ad9b1ff9f7adeffa7fcc | 6,574 | py | Python | causal_da/components/ica_torch/GCL_nonlinear_ica_train.py | sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer | 05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd | [
"Apache-2.0"
] | null | null | null | causal_da/components/ica_torch/GCL_nonlinear_ica_train.py | sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer | 05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd | [
"Apache-2.0"
] | null | null | null | causal_da/components/ica_torch/GCL_nonlinear_ica_train.py | sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer | 05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd | [
"Apache-2.0"
] | null | null | null | import numpy as np
from ignite.engine import Engine, Events
import torch
from .gcl_model import GeneralizedContrastiveICAModel
from .trainer_util import random_pick_wrong_target, binary_logistic_loss
from .logging_util import DummyRunLogger
# Type hinting
from typing import Callable
from torch import FloatTensor, Long... | 43.826667 | 159 | 0.609066 |
62e27fc7ce47704f27bdd2c667d663a58a6d3981 | 485 | py | Python | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from requests import Session
import os
from json import dumps
from core.celery import app
| 25.526316 | 83 | 0.694845 |
62e353f71bc5f0d9e24cfab6d427c04ff9186124 | 316 | py | Python | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | 6 | 2019-04-19T18:56:27.000Z | 2022-03-07T13:08:28.000Z | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | null | null | null | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# Example 03 for
from sys import argv # argv
for name in argv: # name
print('Hello,', name + '!') # nameHello
# forargvargv[1:]argv[1]name
| 28.727273 | 67 | 0.623418 |
62e409fd164236f3061594e924d59c0872ce51fc | 5,929 | py | Python | linekey.py | alex-west-met-office/IMBS_MO | 76aff7d53da02aafb13a94d4afceeb0cc771b5cb | [
"BSD-3-Clause"
] | 1 | 2021-03-05T18:53:01.000Z | 2021-03-05T18:53:01.000Z | linekey.py | alex-west-met-office/IMBS_MO | 76aff7d53da02aafb13a94d4afceeb0cc771b5cb | [
"BSD-3-Clause"
] | null | null | null | linekey.py | alex-west-met-office/IMBS_MO | 76aff7d53da02aafb13a94d4afceeb0cc771b5cb | [
"BSD-3-Clause"
] | 1 | 2021-03-05T18:53:07.000Z | 2021-03-05T18:53:07.000Z | ''' A module for defining and producing the linekey object, which is used
to determine and store information about data format in a CRREL
ice mass balance buoy.'''
| 32.938889 | 87 | 0.49182 |
62e5121cc3d103f5d833e64dac522900d5c6c105 | 468 | py | Python | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 492 | 2019-06-25T12:54:31.000Z | 2022-03-30T12:38:28.000Z | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 23 | 2019-10-01T01:36:08.000Z | 2022-02-10T12:46:16.000Z | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 1,734 | 2019-06-03T06:25:13.000Z | 2022-03-31T23:57:53.000Z | from flask import Flask, render_template, session, redirect, url_for
app = Flask(__name__)
app.config['SECRET_KEY'] = 'prettyprinted'
| 26 | 69 | 0.675214 |
62e7dc7223d5307c35918c3ce6453c318e70e573 | 6,034 | py | Python | python/y2019/d19/day18a.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | 1 | 2021-01-12T20:04:01.000Z | 2021-01-12T20:04:01.000Z | python/y2019/d19/day18a.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | null | null | null | python/y2019/d19/day18a.py | luke-dixon/aoc | 94851a5866a1ef29e3ba10098160cba883882683 | [
"MIT"
] | null | null | null | import random
from collections import deque
import networkx as nx
from lib import puzzle
| 28.597156 | 195 | 0.465529 |
62e8443425595d1830f01ee66eb245eac34208d4 | 6,741 | py | Python | train.py | TahjidEshan/PIXOR-1 | 741b3f913d32b84e550b69d6ff9b89946a524192 | [
"Apache-2.0"
] | null | null | null | train.py | TahjidEshan/PIXOR-1 | 741b3f913d32b84e550b69d6ff9b89946a524192 | [
"Apache-2.0"
] | null | null | null | train.py | TahjidEshan/PIXOR-1 | 741b3f913d32b84e550b69d6ff9b89946a524192 | [
"Apache-2.0"
] | null | null | null | import torch
import time
from loss import CustomLoss
from datagen import get_data_loader
from model import PIXOR
from utils import get_model_name, load_config, plot_bev, plot_label_map
from postprocess import non_max_suppression
if __name__ == "__main__":
device = torch.device('cpu')
if... | 37.870787 | 143 | 0.637739 |
62e88e0e53e902fc19cd512c4d2ebfa27cd4aa98 | 1,595 | py | Python | Data-Wrangling-With-Pandas/code.py | fakhruddin950/ga-learner-dsmp-repo | 388b13867667167514ef8a6cb314daa06e862850 | [
"MIT"
] | null | null | null | Data-Wrangling-With-Pandas/code.py | fakhruddin950/ga-learner-dsmp-repo | 388b13867667167514ef8a6cb314daa06e862850 | [
"MIT"
] | null | null | null | Data-Wrangling-With-Pandas/code.py | fakhruddin950/ga-learner-dsmp-repo | 388b13867667167514ef8a6cb314daa06e862850 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
# code starts here
bank=pd.read_csv(path)
categorical_var=bank.select_dtypes(include='object')
print(categorical_var)
numerical_var=bank.select_dtypes(include='number')
print(numerical_var)
# code ends here... | 18.333333 | 80 | 0.711599 |
62e9bb75214838eb014900bb542cf54ee4677ca5 | 3,039 | py | Python | pygfunction/examples/custom_borehole.py | icupeiro/pygfunction | 3688ecc45515e161cfe882fdf4a3687c49013174 | [
"BSD-3-Clause"
] | null | null | null | pygfunction/examples/custom_borehole.py | icupeiro/pygfunction | 3688ecc45515e161cfe882fdf4a3687c49013174 | [
"BSD-3-Clause"
] | null | null | null | pygfunction/examples/custom_borehole.py | icupeiro/pygfunction | 3688ecc45515e161cfe882fdf4a3687c49013174 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" Example definition of a borehole. A top-view plot of the borehole is
created and the borehole resistance is computed.
"""
from __future__ import absolute_import, division, print_function
import pygfunction as gt
from numpy import pi
if __name__ == '__main__':
main()
| 37.518519 | 78 | 0.535373 |
62ea3738cc160ba63213f6e51f4925dc71a6ad64 | 2,409 | py | Python | project/models.py | nikodrum/evaluationua | 8c68330da1629a9d3a08fa7ed43b10f71148fd01 | [
"MIT"
] | null | null | null | project/models.py | nikodrum/evaluationua | 8c68330da1629a9d3a08fa7ed43b10f71148fd01 | [
"MIT"
] | null | null | null | project/models.py | nikodrum/evaluationua | 8c68330da1629a9d3a08fa7ed43b10f71148fd01 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from random import randint
import math
from project import matplt,database
from geopy.geocoders import Nominatim
from geopy import exc
import os, shutil
categ_coef = 17960
geolocator = Nominatim()
| 29.378049 | 243 | 0.630552 |
62ed041f991b95827e52f2d6f991c749ace2aa73 | 1,914 | py | Python | python/titlecase.py | edewillians10/ewsc | bedd3fec854ac1633eefc028281b97ca6e2686df | [
"Apache-2.0"
] | null | null | null | python/titlecase.py | edewillians10/ewsc | bedd3fec854ac1633eefc028281b97ca6e2686df | [
"Apache-2.0"
] | null | null | null | python/titlecase.py | edewillians10/ewsc | bedd3fec854ac1633eefc028281b97ca6e2686df | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import re
import argparse
re_junk = re.compile(r'[._-]')
re_spaces = re.compile(r'\s\s+')
def get_new_path(old_path):
""" Get the new path, titlecased and (a little bit) sanitized.
- Only operate on the basename:
+ don't touch parent directories
... | 26.957746 | 111 | 0.646813 |
62edfa74cc80bf68fdca4db96ce6ae0f223f2112 | 1,007 | py | Python | broti/modules/stalking.py | pcworld/broti | 4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1 | [
"BSD-2-Clause"
] | null | null | null | broti/modules/stalking.py | pcworld/broti | 4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1 | [
"BSD-2-Clause"
] | null | null | null | broti/modules/stalking.py | pcworld/broti | 4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1 | [
"BSD-2-Clause"
] | 1 | 2021-03-28T18:52:26.000Z | 2021-03-28T18:52:26.000Z | import time
requires = ['db']
| 28.771429 | 75 | 0.594836 |
62eecf5be6b8f29ec4406432dc27f44102230b56 | 7,968 | py | Python | lib/streamlit/uploaded_file_manager.py | Sax-dot/sax-test-streamlit | 05dfef0c26bbdf3467c6236921a01afafa90f435 | [
"Apache-2.0"
] | null | null | null | lib/streamlit/uploaded_file_manager.py | Sax-dot/sax-test-streamlit | 05dfef0c26bbdf3467c6236921a01afafa90f435 | [
"Apache-2.0"
] | null | null | null | lib/streamlit/uploaded_file_manager.py | Sax-dot/sax-test-streamlit | 05dfef0c26bbdf3467c6236921a01afafa90f435 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2020 Streamlit 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 wr... | 34.79476 | 83 | 0.626004 |
62ef13900c5a6f18d29ae7b0c78da18966ff6af7 | 4,047 | py | Python | data/transforms/build.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | data/transforms/build.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | data/transforms/build.py | zyxwvu321/Classifer_SSL_Longtail | e6c09414c49e695b0f4221a3c6245ae3929a1788 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
build transform
"""
#import torchvision.transforms as T
#from PIL import Image
#from .transforms import RandomErasing,RandomErasingCorner
from .data_preprocessing import TrainAugmentation_albu,TestAugmentation_albu,TrainAugmentation_bone,TestAugmentation_bone
import torchvision.transforms as ... | 40.069307 | 178 | 0.617742 |
62ef92a0927f04b3c8692fbdb4474ca4db193b08 | 2,039 | py | Python | compiler_oj/testcase.py | XunGong99/compiler-offline-judge | 89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5 | [
"MIT"
] | 19 | 2018-05-01T09:15:18.000Z | 2021-12-22T08:27:52.000Z | compiler_oj/testcase.py | XunGong99/compiler-offline-judge | 89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5 | [
"MIT"
] | 1 | 2018-05-01T13:59:58.000Z | 2018-05-01T14:49:37.000Z | compiler_oj/testcase.py | XunGong99/compiler-offline-judge | 89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5 | [
"MIT"
] | 10 | 2018-05-28T02:31:29.000Z | 2020-01-30T06:11:22.000Z | import os
| 31.369231 | 75 | 0.545365 |
62efb5daea165045f78966066a5dddd62fe07ac8 | 10,137 | py | Python | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#############################################
# WARNING #
#############################################
#
# This file is au... | 24.96798 | 114 | 0.625037 |
62f07f01c417635fb15b3f7c35ca5a2a958e3a07 | 2,426 | py | Python | tests/ethereumetl/job/test_extract_geth_traces_job.py | XWorldGames/bsc-etl | c4a1ba72381340994ec376e6de860cde6637becc | [
"MIT"
] | null | null | null | tests/ethereumetl/job/test_extract_geth_traces_job.py | XWorldGames/bsc-etl | c4a1ba72381340994ec376e6de860cde6637becc | [
"MIT"
] | null | null | null | tests/ethereumetl/job/test_extract_geth_traces_job.py | XWorldGames/bsc-etl | c4a1ba72381340994ec376e6de860cde6637becc | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018 Evgeniy Filatov, evgeniyfilatov@gmail.com
#
# 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
#... | 37.90625 | 85 | 0.766694 |
62f07ff59fb064975f519a1d53028c1dfda5c299 | 4,582 | py | Python | typed_python/compiler/type_wrappers/ref_to_wrapper.py | APrioriInvestments/typed_python | a3191e5d30333eba156c2a910abc78f7813dcaa3 | [
"Apache-2.0"
] | 105 | 2019-12-02T01:44:46.000Z | 2022-03-28T20:27:38.000Z | typed_python/compiler/type_wrappers/ref_to_wrapper.py | APrioriInvestments/typed_python | a3191e5d30333eba156c2a910abc78f7813dcaa3 | [
"Apache-2.0"
] | 173 | 2019-10-08T19:37:06.000Z | 2022-01-24T18:43:42.000Z | typed_python/compiler/type_wrappers/ref_to_wrapper.py | APrioriInvestments/typed_python | a3191e5d30333eba156c2a910abc78f7813dcaa3 | [
"Apache-2.0"
] | 1 | 2020-01-23T00:06:42.000Z | 2020-01-23T00:06:42.000Z | # Copyright 2017-2019 typed_python 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... | 34.451128 | 114 | 0.712134 |
62f131f2fd644c186231aef33c85b6720ddcf3fc | 587 | py | Python | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | """Module to add Employee fields to the User admin interface."""
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from .models import Employee
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
| 23.48 | 68 | 0.758092 |
62f447bcd9eda650bb251abec9e284d7ebf171db | 1,865 | py | Python | tests/test_mpauth.py | chuter/wechat-requests | 23591f8e04e795a1727e6a8029602cfb2dde90f1 | [
"MIT"
] | 3 | 2019-06-17T10:54:03.000Z | 2021-01-29T08:25:01.000Z | tests/test_mpauth.py | chuter/wechat-requests | 23591f8e04e795a1727e6a8029602cfb2dde90f1 | [
"MIT"
] | 2 | 2020-03-24T15:46:37.000Z | 2020-03-30T20:26:19.000Z | tests/test_mpauth.py | chuter/wechat-requests | 23591f8e04e795a1727e6a8029602cfb2dde90f1 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8
import pytest
from wechat.result import build_from_response
from wechat.auth import MpOuthApi, get_mp_access_token
| 29.603175 | 69 | 0.604826 |
62f5cef50adba84125aceb4b7bcd641b085ef856 | 76,410 | py | Python | python/pb/pomerium/pb/users_pb2.py | adriangb/enterprise-client | 5d50b457425b0c6d08415b0d986fa9151b792151 | [
"Apache-2.0"
] | null | null | null | python/pb/pomerium/pb/users_pb2.py | adriangb/enterprise-client | 5d50b457425b0c6d08415b0d986fa9151b792151 | [
"Apache-2.0"
] | null | null | null | python/pb/pomerium/pb/users_pb2.py | adriangb/enterprise-client | 5d50b457425b0c6d08415b0d986fa9151b792151 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: users.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf ... | 42.975253 | 6,495 | 0.778471 |
62f736f5442b0883d19887a8204d15682986aa90 | 6,974 | py | Python | src/python/pants/backend/codegen/thrift/apache/rules.py | betaboon/pants | 05ec375c8bfcaa0396c673847bb139326883cc08 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/codegen/thrift/apache/rules.py | betaboon/pants | 05ec375c8bfcaa0396c673847bb139326883cc08 | [
"Apache-2.0"
] | 1 | 2022-02-22T18:15:03.000Z | 2022-02-22T18:15:03.000Z | src/python/pants/backend/codegen/thrift/apache/rules.py | ryanking/pants | e45b00d2eb467b599966bca262405a5d74d27bdd | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import logging
from dataclasses import dataclass
from pants.backend.codegen.thrift.apache.subsystem import ApacheThriftSubsystem
from pants.backend.code... | 35.045226 | 110 | 0.671638 |
62faa58bb2c555bc41f725bdab4a4f8e48cef3ac | 1,794 | py | Python | site_asylum/apps/delirium/migrations/0001_initial.py | uruz/asylum.su | 7d7a46006fb14160b3360751b6cce1a5f960f9d0 | [
"MIT"
] | null | null | null | site_asylum/apps/delirium/migrations/0001_initial.py | uruz/asylum.su | 7d7a46006fb14160b3360751b6cce1a5f960f9d0 | [
"MIT"
] | null | null | null | site_asylum/apps/delirium/migrations/0001_initial.py | uruz/asylum.su | 7d7a46006fb14160b3360751b6cce1a5f960f9d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 40.772727 | 118 | 0.567447 |
62fd1da94147ad45face770be507f1eb73d0d1b2 | 404 | py | Python | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | # good structure for an pytest test
from app import shopping_cart
def check_if_checkout_give_the_right_value():
'''
'''
arrange_array = [15,7, 10] # arrange
shopping_cart_array = shopping_cart.checkout(arrange_array) # act
assert shopping_cart_array == (31.99, 2.8, 34.79), "this check if the functi... | 36.727273 | 120 | 0.747525 |
62fd39c0aafef0a38c14c50d32b531ce3872cae4 | 17,658 | py | Python | tests/unit/utils/test_win_system.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | tests/unit/utils/test_win_system.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | tests/unit/utils/test_win_system.py | markgras/salt | d66cd3c935533c63870b83228b978ce43e0ef70d | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | import os
import salt.utils.platform
from tests.support.mock import patch
from tests.support.unit import TestCase, skipIf
try:
import salt.utils.win_system as win_system
except Exception as exc: # pylint: disable=broad-except
win_system = exc
| 41.942993 | 87 | 0.64979 |
62fddb54eb15614ae62c4ea42765a975a997094e | 2,738 | py | Python | modules/pgu/gui/list.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | modules/pgu/gui/list.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-11-21T04:50:57.000Z | 2018-11-21T04:50:57.000Z | modules/pgu/gui/list.py | bullseyestudio/guns-game | 3104c44e43ea7f000f6b9e756d622f98110d0a21 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | """
"""
from .const import *
from . import container, widget
# def paint(self,s):
# container.Container.paint(self,s)
# r = pygame.Rect(0,offset,self.rect.w,self.rect.h)
#
# cs = 2 #NOTE: should be in a style
#
# w,h = self.font.size(item)
# x = w-self.vpos
# if x < 0: self.vpos -= -x
# if x+cs > s.get_wi... | 25.588785 | 94 | 0.657049 |
62fddef8dc0414788a7119927b0e02d28c5a35e7 | 359 | py | Python | prog_1.py | swatakit/python-dash-quick-starter | 6009cef072579fc5f1755c6bc047aeae5a6d9c75 | [
"MIT"
] | 1 | 2020-10-21T21:05:50.000Z | 2020-10-21T21:05:50.000Z | prog_1.py | swatakit/python-dash-quick-starter | 6009cef072579fc5f1755c6bc047aeae5a6d9c75 | [
"MIT"
] | null | null | null | prog_1.py | swatakit/python-dash-quick-starter | 6009cef072579fc5f1755c6bc047aeae5a6d9c75 | [
"MIT"
] | null | null | null | #########################################
# The Simplest form of dash application
#
# ref: https://dash.plotly.com/introduction
import dash
import dash_html_components as html
app = dash.Dash(__name__)
# Layout compose
app.layout = html.Div([
html.H1('Hello, this is a Dash Application'),
])
if __name__ == "__ma... | 19.944444 | 49 | 0.637883 |
62ff5663f9b64ba48b98538457a5c9793b4cf0c7 | 1,409 | py | Python | ros/src/twist_controller/pid.py | redherring2141/CarND-Capstone | df230f902836923dbbc55065c3d4f12531c05cda | [
"MIT"
] | null | null | null | ros/src/twist_controller/pid.py | redherring2141/CarND-Capstone | df230f902836923dbbc55065c3d4f12531c05cda | [
"MIT"
] | null | null | null | ros/src/twist_controller/pid.py | redherring2141/CarND-Capstone | df230f902836923dbbc55065c3d4f12531c05cda | [
"MIT"
] | null | null | null | import rospy
MIN_NUM = float('-inf')
MAX_NUM = float('inf')
| 27.096154 | 109 | 0.570617 |
1a018ecb1b4832d82200c28fb3048b3345de111f | 33 | py | Python | gmocoin/__init__.py | makotookamura/GmoCoin | 025d3e68364bf52418dbc3445987ff21528db732 | [
"Apache-2.0"
] | null | null | null | gmocoin/__init__.py | makotookamura/GmoCoin | 025d3e68364bf52418dbc3445987ff21528db732 | [
"Apache-2.0"
] | null | null | null | gmocoin/__init__.py | makotookamura/GmoCoin | 025d3e68364bf52418dbc3445987ff21528db732 | [
"Apache-2.0"
] | 1 | 2021-07-17T16:56:03.000Z | 2021-07-17T16:56:03.000Z | #!python3
__version__ = '0.0.12'
| 11 | 22 | 0.666667 |
1a01eca2e35dff0208fce46a45cc7fc79230edce | 4,017 | py | Python | climbing_ratings/tests/test_bradley_terry.py | scottwedge/climbing_ratings | 5a36df62681487de5d5d041e379853be21611dcb | [
"Apache-2.0"
] | null | null | null | climbing_ratings/tests/test_bradley_terry.py | scottwedge/climbing_ratings | 5a36df62681487de5d5d041e379853be21611dcb | [
"Apache-2.0"
] | null | null | null | climbing_ratings/tests/test_bradley_terry.py | scottwedge/climbing_ratings | 5a36df62681487de5d5d041e379853be21611dcb | [
"Apache-2.0"
] | null | null | null | """Tests for the bradley_terry module"""
# Copyright 2019 Dean Scarff
#
# 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 b... | 38.625 | 75 | 0.608663 |
1a021e021146cbc33766d3c7997455d63709bb09 | 167 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z |
a = A()
print(a.foo) | 23.857143 | 90 | 0.580838 |
1a02584666d045aa7be3465e13485d41b2de443c | 1,967 | py | Python | log_analysis_tool.py | buildthatapp/udacity_fsnd_log_analysis_tool | fc340b697fa255ac67a969f06a4d192dc7e8b3ae | [
"MIT"
] | null | null | null | log_analysis_tool.py | buildthatapp/udacity_fsnd_log_analysis_tool | fc340b697fa255ac67a969f06a4d192dc7e8b3ae | [
"MIT"
] | null | null | null | log_analysis_tool.py | buildthatapp/udacity_fsnd_log_analysis_tool | fc340b697fa255ac67a969f06a4d192dc7e8b3ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Log Analysis Project for Full Stack Nanodegree by Udacity"""
import psycopg2
DBNAME = "news"
def three_most_popular_articles():
"""Queries and displays the top three most viewed articles."""
conn = psycopg2.connect(database=DBNAME)
cur = conn.cursor()
query = 'VIEW_top_thr... | 19.67 | 66 | 0.589731 |
1a03179c783f6a71443f0dfefb1dcdf8bf7a653b | 40 | py | Python | samplePythonfiles/cc.py | fazilsha/python-automation | 80ce94642a94276d3b970ae390a5d1464ad2f2b8 | [
"MIT"
] | null | null | null | samplePythonfiles/cc.py | fazilsha/python-automation | 80ce94642a94276d3b970ae390a5d1464ad2f2b8 | [
"MIT"
] | null | null | null | samplePythonfiles/cc.py | fazilsha/python-automation | 80ce94642a94276d3b970ae390a5d1464ad2f2b8 | [
"MIT"
] | null | null | null | print("File dd.py sucessfully executed") | 40 | 40 | 0.8 |
1a04f2dc5f9e5f9be7e2402e0878155eb33a689e | 5,868 | py | Python | src/models.py | thowilh/geomars | 18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1 | [
"MIT"
] | 2 | 2022-02-20T18:23:25.000Z | 2022-02-26T19:15:33.000Z | src/models.py | thowilh/geomars | 18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1 | [
"MIT"
] | null | null | null | src/models.py | thowilh/geomars | 18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import pytorch_lightning as pl
from torchvision.models import (
alexnet,
vgg16_bn,
resnet18,
resnet34,
resnet50,
densenet121,
densenet161,
)
from torch.nn import functional as F
from pytorch_lightning.metrics.functional import accuracy, precision_recall
| 35.349398 | 86 | 0.581118 |
1a05c837044c86fc7d751b18c934f19ce77168a2 | 12,132 | py | Python | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 19 | 2018-02-26T00:19:17.000Z | 2019-12-18T04:26:45.000Z | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 11 | 2018-05-07T15:11:30.000Z | 2018-11-13T16:40:41.000Z | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 1 | 2018-08-28T15:50:09.000Z | 2018-08-28T15:50:09.000Z | import logging
import os
import re
import time
import urllib
from threading import Thread
import xmlrpclib
from Queue import Queue
from flask import current_app as app, render_template, request, redirect, abort, jsonify, json as json_mod, url_for, session, Blueprint
from itsdangerous import TimedSerializer, BadTimeSi... | 45.609023 | 170 | 0.548714 |
1a083cf15885b049f7b7a3ad09fa1e14dd77a3b3 | 8,470 | py | Python | discord-status.py | byemc/discord-rhythmbox-plugin | 46e855bd27b2bfe9d7a202135bcf228aff402fa8 | [
"MIT"
] | 1 | 2021-11-23T05:37:25.000Z | 2021-11-23T05:37:25.000Z | discord-status.py | byemc/discord-rhythmbox-plugin | 46e855bd27b2bfe9d7a202135bcf228aff402fa8 | [
"MIT"
] | null | null | null | discord-status.py | byemc/discord-rhythmbox-plugin | 46e855bd27b2bfe9d7a202135bcf228aff402fa8 | [
"MIT"
] | null | null | null | import gi
import time
import os
import json
gi.require_version('Notify', '0.7')
gi.require_version('Gtk', '3.0')
from gi.repository import Notify, Gtk
from gi.repository import Gio, GLib, GObject, Peas
from gi.repository import RB
from pypresence import Presence
from status_prefs import discord_status_prefs
| 34.430894 | 166 | 0.641086 |
1a08401fb30f5417d31f50f1d14aadf818b0ffd5 | 1,056 | py | Python | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 6 | 2018-02-09T11:40:29.000Z | 2021-06-14T06:08:50.000Z | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | null | null | null | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 7 | 2018-02-09T11:41:11.000Z | 2021-06-14T06:08:52.000Z | import logging
import subprocess
logging.basicConfig(level=logging.INFO,
format='%(levelname)s: %(name)s: %(message)s (%(asctime)s; %(filename)s:%(lineno)d)',
datefmt="%Y-%m-%d %H:%M:%S", )
logger = logging.getLogger(__name__)
| 29.333333 | 105 | 0.535038 |
1a097db7feea5ecc6f10469e09b8bc2bd7a26dae | 1,292 | py | Python | 4.logRegression/plot2D.py | zhaolongkzz/Machine-Learning | 8ec62a4d469db125fd45534dc0217af4cbbf603d | [
"MIT"
] | null | null | null | 4.logRegression/plot2D.py | zhaolongkzz/Machine-Learning | 8ec62a4d469db125fd45534dc0217af4cbbf603d | [
"MIT"
] | null | null | null | 4.logRegression/plot2D.py | zhaolongkzz/Machine-Learning | 8ec62a4d469db125fd45534dc0217af4cbbf603d | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# !/usr/bin/python3.6
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
import logRegress, regIteration
dataMat,labelMat=logRegress.loadDataSet()
dataArr = array(dataMat)
weights = regIteration.stocGradAscent0(dataArr,label... | 30.761905 | 107 | 0.643189 |
1a0a2f514672571fd2b6146c24727b30c87165eb | 2,596 | py | Python | talos/distribute/distribute_run.py | abhijithneilabraham/talos | 4f60dbbbedede240a086a7a6cd1e7a2b17db87dd | [
"MIT"
] | null | null | null | talos/distribute/distribute_run.py | abhijithneilabraham/talos | 4f60dbbbedede240a086a7a6cd1e7a2b17db87dd | [
"MIT"
] | null | null | null | talos/distribute/distribute_run.py | abhijithneilabraham/talos | 4f60dbbbedede240a086a7a6cd1e7a2b17db87dd | [
"MIT"
] | null | null | null | import json
import threading
from .distribute_params import run_scan_with_split_params
from .distribute_utils import return_current_machine_id, ssh_connect, ssh_file_transfer, ssh_run
from .distribute_database import update_db
def run_central_machine(self, n_splits, run_central_node):
'''
Parameters
----... | 24.961538 | 96 | 0.582049 |
1a0b60342365dfb5d7137cd8463e182aeaeff08e | 8,063 | py | Python | src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-09-10T22:09:45.000Z | 2021-12-24T17:00:07.000Z | src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.676991 | 245 | 0.693538 |
1a0bb86d8ca4b904367d6aab9aa4d773f2edd6c4 | 2,220 | py | Python | main.py | Araime/wine | 3ab07d38b4321475ec6daf50e5d52c474fcd14cc | [
"MIT"
] | null | null | null | main.py | Araime/wine | 3ab07d38b4321475ec6daf50e5d52c474fcd14cc | [
"MIT"
] | null | null | null | main.py | Araime/wine | 3ab07d38b4321475ec6daf50e5d52c474fcd14cc | [
"MIT"
] | null | null | null | import datetime
import pandas
import collections
import argparse
from collections import OrderedDict
from jinja2 import Environment, FileSystemLoader, select_autoescape
from http.server import HTTPServer, SimpleHTTPRequestHandler
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=' xls... | 29.6 | 95 | 0.660811 |