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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e0ee7490d2f9d87de60db0d3047b19a4411a85c | 1,267 | py | Python | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/tests/m_create_from_pre_in_test.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | from binary_tree.m_create_from_pre_in import BinaryTree
| 29.465116 | 81 | 0.573796 |
5e0f2b1bb17bd2fdf8410f34a353e67db6f461bb | 1,111 | py | Python | 3/part_1.py | szabolcs-dekany/advent-of-code-2021 | ff8d5fb864ce81c2d18eeb5e50446729df64b3b4 | [
"MIT"
] | null | null | null | 3/part_1.py | szabolcs-dekany/advent-of-code-2021 | ff8d5fb864ce81c2d18eeb5e50446729df64b3b4 | [
"MIT"
] | null | null | null | 3/part_1.py | szabolcs-dekany/advent-of-code-2021 | ff8d5fb864ce81c2d18eeb5e50446729df64b3b4 | [
"MIT"
] | null | null | null | from collections import Counter
from utils import read_bits
| 35.83871 | 106 | 0.648065 |
5e10d79ee00b825b54754541f414e0440dc5038c | 4,015 | py | Python | zhaquirks/xiaomi/aqara/plug.py | danielbrunt57/zha-device-handlers | e760d7261f4eff507109ad66b1185f365679a29a | [
"Apache-2.0"
] | null | null | null | zhaquirks/xiaomi/aqara/plug.py | danielbrunt57/zha-device-handlers | e760d7261f4eff507109ad66b1185f365679a29a | [
"Apache-2.0"
] | null | null | null | zhaquirks/xiaomi/aqara/plug.py | danielbrunt57/zha-device-handlers | e760d7261f4eff507109ad66b1185f365679a29a | [
"Apache-2.0"
] | 1 | 2020-11-18T13:14:35.000Z | 2020-11-18T13:14:35.000Z | """Xiaomi lumi.plug plug."""
import logging
from zigpy.profiles import zha
from zigpy.zcl.clusters.general import (
AnalogInput,
Basic,
BinaryOutput,
DeviceTemperature,
Groups,
Identify,
OnOff,
Ota,
PowerConfiguration,
Scenes,
Time,
)
from zhaquirks.xiaomi import (
LUMI... | 31.124031 | 77 | 0.534994 |
5e12c134d94ad9be780e1e0c73e68d0648224d24 | 5,193 | py | Python | learners/fully_observed_learner.py | Aaron-Jin-Xu/probabilistic-semantic-image-inpainting | 8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d | [
"MIT"
] | 1 | 2020-04-19T22:48:25.000Z | 2020-04-19T22:48:25.000Z | learners/fully_observed_learner.py | Aaron-Jin-Xu/probabilistic-semantic-image-inpainting | 8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d | [
"MIT"
] | null | null | null | learners/fully_observed_learner.py | Aaron-Jin-Xu/probabilistic-semantic-image-inpainting | 8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d | [
"MIT"
] | null | null | null | import os
import sys
import json
import time
import numpy as np
import tensorflow as tf
from blocks.helpers import Monitor
from blocks.helpers import visualize_samples, get_nonlinearity, int_shape, get_trainable_variables, broadcast_masks_np
from blocks.optimizers import adam_updates
import data.load_data as load_data
... | 48.53271 | 118 | 0.613133 |
5e13ce9974225da3573940cfb2a5a693b633e821 | 993 | py | Python | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_source/test_sourcebase.py | rbogdanoff/reactiveaws | 3a4107dd4ade26792f79fecbb4d1e783e4e2580f | [
"Apache-2.0"
] | null | null | null | from nose.tools import *
from unittest.mock import patch, Mock
from rxaws.source.sourcebase import SourceBase
from botocore.client import BaseClient
| 35.464286 | 95 | 0.712991 |
5e15026007a09207c6424778c0b96d54f0620c12 | 1,725 | py | Python | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/events/events_client_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | import pytest
from checkout_sdk.events.events import RetrieveEventsRequest
from checkout_sdk.events.events_client import EventsClient
| 46.621622 | 94 | 0.762899 |
5e15898d023ea4288e326bb8421789a0314d64e1 | 9,261 | py | Python | vectornet/trainer.py | chickenfingerwu/pytorch-CycleGAN-and-pix2pix | 367033f7d265fc7307ed0c917a4f8d19b298e6b7 | [
"BSD-3-Clause"
] | null | null | null | vectornet/trainer.py | chickenfingerwu/pytorch-CycleGAN-and-pix2pix | 367033f7d265fc7307ed0c917a4f8d19b298e6b7 | [
"BSD-3-Clause"
] | null | null | null | vectornet/trainer.py | chickenfingerwu/pytorch-CycleGAN-and-pix2pix | 367033f7d265fc7307ed0c917a4f8d19b298e6b7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import os
import numpy as np
from tqdm import trange
from models import *
from utils import save_image | 39.241525 | 118 | 0.563546 |
5e15921eff92f5c9d6be850512491ee049db1643 | 188 | py | Python | Exercicios/010.py | sleepinhoo/Python | d8ac7f3297f3a99b27b07d7341a16503a64124b0 | [
"MIT"
] | null | null | null | Exercicios/010.py | sleepinhoo/Python | d8ac7f3297f3a99b27b07d7341a16503a64124b0 | [
"MIT"
] | null | null | null | Exercicios/010.py | sleepinhoo/Python | d8ac7f3297f3a99b27b07d7341a16503a64124b0 | [
"MIT"
] | null | null | null | grana = float(input("Informe a quantidade de dinherio: R$"))
dolar = 5.4
print(f" D pra comprar USS${grana / dolar} com o valor atual na sua carteira")
print(f"Cotao usada: {dolar}")
| 26.857143 | 79 | 0.702128 |
5e16653f23f402e0f2a6b24312399977f5a75d4f | 210 | py | Python | src/11/zero_copy_sending_and_receiving_of_large_arrays/server.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/11/zero_copy_sending_and_receiving_of_large_arrays/server.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/11/zero_copy_sending_and_receiving_of_large_arrays/server.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | from zerocopy import send_from
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.bind(('', 25000))
s.listen(1)
c,a = s.accept()
import numpy
a = numpy.arange(0.0, 50000000.0)
send_from(a, c)
c.close()
| 15 | 33 | 0.695238 |
5e16ad16c7c3a0ea076e3bd752e1db8ba4d1da1c | 22,168 | py | Python | YNet/stage2/Model.py | cancertech/-cancer_diagnosis | caa371e64e52be71a85f9a73baa6b518b28cc166 | [
"MIT"
] | 126 | 2018-06-06T01:33:28.000Z | 2022-03-18T01:48:56.000Z | YNet/stage2/Model.py | cancertech/-cancer_diagnosis | caa371e64e52be71a85f9a73baa6b518b28cc166 | [
"MIT"
] | 13 | 2018-07-26T13:49:56.000Z | 2021-04-20T07:44:47.000Z | YNet/stage2/Model.py | cancertech/-cancer_diagnosis | caa371e64e52be71a85f9a73baa6b518b28cc166 | [
"MIT"
] | 32 | 2018-06-06T01:20:03.000Z | 2022-03-18T02:52:53.000Z | #
# author: Sachin Mehta
# Project Description: This repository contains source code for semantically segmenting WSIs; however, it could be easily
# adapted for other domains such as natural image segmentation
# File Description: This file contains the CNN models
# ====================================... | 35.412141 | 121 | 0.591664 |
5e16f149874edd109b6f8b910bb8ac81d76a5978 | 239 | py | Python | src/ast/socps/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-02-06T02:59:17.000Z | 2021-11-15T18:13:27.000Z | src/ast/socps/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-06-14T04:43:43.000Z | 2019-10-27T11:03:30.000Z | src/ast/socps/__init__.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-03-14T07:40:56.000Z | 2019-12-30T23:11:36.000Z | """ Technically, a every problem is a program; but not every program is a
problem.
This distinction only really matters if we introduce nodes for For loops
and whatnot.
Then the problem has 'program-like' constructs.
"""
| 26.555556 | 76 | 0.715481 |
5e18d5ae2551f5b9932d20a83fb9244f3bfde336 | 1,526 | py | Python | touchdown/goals/snapshot.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 14 | 2015-01-05T18:18:04.000Z | 2022-02-07T19:35:12.000Z | touchdown/goals/snapshot.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 106 | 2015-01-06T00:17:13.000Z | 2019-09-07T00:35:32.000Z | touchdown/goals/snapshot.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 5 | 2015-01-30T10:18:24.000Z | 2022-02-07T19:35:13.000Z | # Copyright 2015 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 31.791667 | 81 | 0.692005 |
5e18e6288b6b07a784cee38e7f2cbe8ce2280ae9 | 548 | py | Python | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 4 | 2018-12-16T15:06:20.000Z | 2022-03-09T11:18:11.000Z | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 1 | 2018-10-12T07:32:13.000Z | 2018-10-12T07:32:13.000Z | crawler_main.py | yangwenke2010/template_crawler | b95e626184cda21d2abe01fd1f2b399e4946e782 | [
"Apache-2.0"
] | 2 | 2018-10-12T06:58:08.000Z | 2020-03-19T10:44:34.000Z | #!/bin/bash
# -*- coding: utf-8 -*-
# Crawler Main
#
# Author : Tau Woo
# Date : 2018-07-19
from do.crawler import Do
from sys import argv
if __name__ == "__main__":
'''Crawler Main
Start crawl websites with appointed config.
'''
# You will get appointed crawler name from command.
crawl... | 22.833333 | 71 | 0.645985 |
5e19d0ee97555a2535e07c68aeeb0e5f3e4eecae | 1,660 | py | Python | gui_showcase/main.py | maliozer/rodnet | 423a718f9ab5f2cc132f0f8a79dc1423704dbd3b | [
"MIT"
] | 1 | 2020-09-06T20:54:06.000Z | 2020-09-06T20:54:06.000Z | gui_showcase/main.py | maliozer/rodnet | 423a718f9ab5f2cc132f0f8a79dc1423704dbd3b | [
"MIT"
] | null | null | null | gui_showcase/main.py | maliozer/rodnet | 423a718f9ab5f2cc132f0f8a79dc1423704dbd3b | [
"MIT"
] | null | null | null | from tkinter import *
from PIL import ImageTk, Image
from tkinter import filedialog
gui = Tk()
gui.title('RODNET | Inzva AI Project Showcase v0.1')
#logo var en son ekleriz yorumda kalabilir
logo_image_path = Image.open('./images/inzva_logo.png')
inzva_logo = ImageTk.PhotoImage(logo_image_path)
inzva_logo_label = La... | 29.122807 | 141 | 0.678313 |
5e1bf0067d53075a4199123df0352e8002b66c4e | 7,233 | py | Python | heap_md.py | sorrento/sdopt-tearing | f726e9abbb2d47f93aac32e54949051d3968664b | [
"BSD-3-Clause"
] | null | null | null | heap_md.py | sorrento/sdopt-tearing | f726e9abbb2d47f93aac32e54949051d3968664b | [
"BSD-3-Clause"
] | null | null | null | heap_md.py | sorrento/sdopt-tearing | f726e9abbb2d47f93aac32e54949051d3968664b | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2014, 2015 University of Vienna
# All rights reserved.
# BSD license.
# Author: Ali Baharev <ali.baharev@gmail.com>
# Heap-based minimum-degree ordering with NO lookahead.
#
# See also min_degree.py which uses lookahead, and simple_md.py which is a
# hacked version of min_degree.py that still uses re... | 37.671875 | 85 | 0.632103 |
5e1c13b5fde8efced653749af34695c0b5d9ba5a | 498 | py | Python | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 1 | 2020-11-25T12:01:31.000Z | 2020-11-25T12:01:31.000Z | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 6 | 2020-08-31T12:12:53.000Z | 2020-10-01T13:00:44.000Z | philia-service/wit-service/wit_service.py | BuildForSDGCohort2/masta-backend | 08c20fe910f8ab953714ac72f34cdead7a307bd3 | [
"MIT"
] | 1 | 2020-08-31T15:31:37.000Z | 2020-08-31T15:31:37.000Z | import json
from wit import Wit
access_token = "2PLFUWBVVTYQCSEL6VDJ3AFQLUCTV7ZH"
client = Wit(access_token=access_token)
| 19.153846 | 49 | 0.63253 |
5e1c80a3d2808f3e17cc61a45407995b0eca85e2 | 1,674 | py | Python | py/server/tests/test_plot/test_color.py | mattrunyon/deephaven-core | 80e3567e4647ab76a81e483d0a8ab542f9aadace | [
"MIT"
] | null | null | null | py/server/tests/test_plot/test_color.py | mattrunyon/deephaven-core | 80e3567e4647ab76a81e483d0a8ab542f9aadace | [
"MIT"
] | null | null | null | py/server/tests/test_plot/test_color.py | mattrunyon/deephaven-core | 80e3567e4647ab76a81e483d0a8ab542f9aadace | [
"MIT"
] | null | null | null | #
# Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
#
import unittest
from deephaven import read_csv, DHError
from deephaven.plot import Color, Colors
from deephaven.plot import Figure
from deephaven.plot import LineEndStyle, LineStyle
from tests.testbase import BaseTestCase
if __name__ == '__main_... | 33.48 | 103 | 0.651732 |
5e1d9ee77b00022f4700b24ef8893c1143b97d6b | 6,199 | py | Python | Tools/unicode/genmap_support.py | shawwn/cpython | 0ff8a3b374286d2218fc18f47556a5ace202dad3 | [
"0BSD"
] | 52,316 | 2015-01-01T15:56:25.000Z | 2022-03-31T23:19:01.000Z | Tools/unicode/genmap_support.py | shawwn/cpython | 0ff8a3b374286d2218fc18f47556a5ace202dad3 | [
"0BSD"
] | 25,286 | 2015-03-03T23:18:02.000Z | 2022-03-31T23:17:27.000Z | Tools/unicode/genmap_support.py | shawwn/cpython | 0ff8a3b374286d2218fc18f47556a5ace202dad3 | [
"0BSD"
] | 31,623 | 2015-01-01T13:29:37.000Z | 2022-03-31T19:55:06.000Z | #
# genmap_support.py: Multibyte Codec Map Generator
#
# Original Author: Hye-Shik Chang <perky@FreeBSD.org>
# Modified Author: Dong-hee Na <donghee.na92@gmail.com>
#
def open_mapping_file(path, source):
try:
f = open(path)
except IOError:
raise SystemExit(f'{source} is needed')
retur... | 31.150754 | 104 | 0.515728 |
5e1f0f8430d2f116abcaa857baa9397fb525b5b9 | 3,487 | py | Python | tests/qlayers_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | 388 | 2019-08-06T22:16:48.000Z | 2022-03-30T17:17:47.000Z | tests/qlayers_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | 76 | 2019-08-21T19:25:58.000Z | 2022-03-31T09:07:07.000Z | tests/qlayers_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | 79 | 2019-08-15T03:00:02.000Z | 2022-03-31T09:05:11.000Z | # Copyright 2019 Google LLC
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 35.581633 | 80 | 0.62776 |
5e1f5b28440e3916c2f562221a0e73e7f0243f14 | 1,031 | py | Python | 253/meetingroomII.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | 253/meetingroomII.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | 253/meetingroomII.py | cccccccccccccc/Myleetcode | fb3fa6df7c77feb2d252feea7f3507569e057c70 | [
"Apache-2.0"
] | null | null | null | """
timecompliexty = O(nlog(n))
separate start and end time into two list
sort each of them
use s,e represent start and end index from 0
iterate start time list by while loop
compare start[s] end[e]
if start >= end means after cur meeting finish another one can use the meeting room ,no need to add a new room
else mea... | 31.242424 | 110 | 0.602328 |
5e1f786401704260570a0a2ec7e2d5a110efb0fc | 3,528 | py | Python | uiza/api_resources/entity/entity.py | uizaio/api-wrapper-python | e67c162e711857341f7ef5752178219e94f604d3 | [
"MIT"
] | 2 | 2019-04-22T11:39:36.000Z | 2020-05-26T04:01:43.000Z | uiza/api_resources/entity/entity.py | uizaio/api-wrapper-python | e67c162e711857341f7ef5752178219e94f604d3 | [
"MIT"
] | null | null | null | uiza/api_resources/entity/entity.py | uizaio/api-wrapper-python | e67c162e711857341f7ef5752178219e94f604d3 | [
"MIT"
] | 2 | 2019-02-11T09:34:03.000Z | 2019-02-12T10:31:41.000Z | import uiza
from uiza import Connection
from uiza.api_resources.base.base import UizaBase
from uiza.settings.config import settings
from uiza.utility.utility import set_url
| 32.971963 | 112 | 0.628685 |
5e207031666baef9fa1beb161fc9d7be24e369d1 | 15,851 | py | Python | text_models/vocabulary.py | INGEOTEC/text_models | f5a44585d21828e4309b2435d6f91f822a5debb5 | [
"Apache-2.0"
] | 12 | 2020-05-04T18:01:48.000Z | 2022-03-23T22:38:31.000Z | text_models/vocabulary.py | INGEOTEC/text_models | f5a44585d21828e4309b2435d6f91f822a5debb5 | [
"Apache-2.0"
] | 18 | 2020-07-14T15:08:59.000Z | 2022-03-17T09:28:19.000Z | text_models/vocabulary.py | INGEOTEC/text_models | f5a44585d21828e4309b2435d6f91f822a5debb5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Mario Graff Guerrero
# 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... | 31.388119 | 98 | 0.527159 |
5e213db3d7c8731ee9cd5b190ac0d877c08a9943 | 23,700 | py | Python | mi/dataset/parser/test/test_nutnrb.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_nutnrb.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | mi/dataset/parser/test/test_nutnrb.py | rhan1498/marine-integrations | ad94c865e0e4cc7c8fd337870410c74b57d5c826 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_nutnrb
@file marine-integrations/mi/dataset/parser/test/test_nutnrb.py
@author Roger Unwin
@brief Test code for a Nutnrb data parser
"""
import unittest
import gevent
from StringIO import StringIO
from nose.plugins.attrib import attr
from mi.core.log imp... | 52.087912 | 135 | 0.713966 |
5e21a247589e39c95147d3bf4195c32dff706fc9 | 1,252 | py | Python | wp/tests/data/test_benchmark.py | ExLeonem/master-thesis-code | 559ad55f15c99772358384146bd30dd517b1dfe8 | [
"MIT"
] | null | null | null | wp/tests/data/test_benchmark.py | ExLeonem/master-thesis-code | 559ad55f15c99772358384146bd30dd517b1dfe8 | [
"MIT"
] | null | null | null | wp/tests/data/test_benchmark.py | ExLeonem/master-thesis-code | 559ad55f15c99772358384146bd30dd517b1dfe8 | [
"MIT"
] | null | null | null |
import numpy as np
import pytest
import os
from modules.data import BenchmarkData, DataSetType
DIR_PATH = os.path.dirname(os.path.realpath(__file__))
BASE_PATH = os.path.join(DIR_PATH, "..", "..")
MNIST_PATH = os.path.join(BASE_PATH, "datasets", "mnist") | 30.536585 | 86 | 0.685304 |
5e2225346054d6facdf73eafd32caba7ecf7dd78 | 342 | py | Python | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | 2 | 2015-11-08T12:45:38.000Z | 2017-06-03T09:16:16.000Z | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | src/taskmaster/example.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | """
taskmaster.example
~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
| 17.1 | 59 | 0.602339 |
5e23a07b704af65d2c0b32c7f204c45be14b5405 | 12,567 | py | Python | orchestration/hca_manage/verify_release_manifest.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 5 | 2020-05-07T14:18:53.000Z | 2021-03-31T21:30:37.000Z | orchestration/hca_manage/verify_release_manifest.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 232 | 2020-05-28T16:47:22.000Z | 2022-03-08T21:08:42.000Z | orchestration/hca_manage/verify_release_manifest.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 1 | 2020-08-19T16:33:54.000Z | 2020-08-19T16:33:54.000Z | """
Given a file containing a list of constituent staging dirs for a DCP release (aka a manifest),
verify that data has been loaded from each of them to the target DCP dataset and the count of loaded files
matches the # in the staging area.
Files are determined to be loaded if they exist at the desired target path and... | 38.787037 | 133 | 0.675181 |
5e2476302965d3f750b92ecaf21e5583f8afcf03 | 7,780 | py | Python | camd3/infrastructure/component/tests/test_component.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_component.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_component.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Name: test_component
# Purpose: Test driver for module component
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2014 Michael Amrhein
# ------------------------------------------... | 31.12 | 78 | 0.626735 |
5e24791c84d380b2bbc7c1f3fc43d01d827c03a9 | 1,112 | py | Python | docs/source/examples/data_exploration.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | 2 | 2020-09-30T04:59:06.000Z | 2021-03-30T20:42:44.000Z | docs/source/examples/data_exploration.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | null | null | null | docs/source/examples/data_exploration.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | 1 | 2018-05-25T07:15:16.000Z | 2018-05-25T07:15:16.000Z | #
# Copyright (C) 2018 Neal Digre.
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
"""Data exploration.
If this file is changed, please also change the ``:lines:`` option in
the following files where this code is referenced with the
``literalin... | 34.75 | 124 | 0.755396 |
5e24ac8f67e463350fcf36a595dd6de2bd0934f3 | 284 | py | Python | backend/czi_hosted/auth/__init__.py | danmedani/cellxgene | 26de334274dad9fdf5d162bdff810055cf176633 | [
"MIT"
] | 1 | 2021-05-13T13:27:43.000Z | 2021-05-13T13:27:43.000Z | backend/czi_hosted/auth/__init__.py | danmedani/cellxgene | 26de334274dad9fdf5d162bdff810055cf176633 | [
"MIT"
] | 7 | 2021-01-07T19:20:57.000Z | 2021-06-15T18:17:55.000Z | backend/czi_hosted/auth/__init__.py | danmedani/cellxgene | 26de334274dad9fdf5d162bdff810055cf176633 | [
"MIT"
] | 1 | 2021-11-05T02:04:22.000Z | 2021-11-05T02:04:22.000Z | # import the built in auth types so they can be registered
import backend.czi_hosted.auth.auth_test # noqa: F401
import backend.czi_hosted.auth.auth_session # noqa: F401
import backend.czi_hosted.auth.auth_oauth # noqa: F401
import backend.czi_hosted.auth.auth_none # noqa: F401
| 40.571429 | 58 | 0.795775 |
5e258998c36f2750ad77c20394970f9287298117 | 1,534 | py | Python | core/net_loader.py | nikon-petr/perceptron | 40509070e1d5c2407e5778af9bccde1eda284efb | [
"MIT"
] | null | null | null | core/net_loader.py | nikon-petr/perceptron | 40509070e1d5c2407e5778af9bccde1eda284efb | [
"MIT"
] | null | null | null | core/net_loader.py | nikon-petr/perceptron | 40509070e1d5c2407e5778af9bccde1eda284efb | [
"MIT"
] | null | null | null | import os
from json import JSONDecodeError
from json import dump
from json import load
import numpy as np
from core.net_errors import JsonFileStructureIncorrect, JsonFileNotFound
| 30.68 | 85 | 0.595828 |
5e25ad68634e5c0fbd0c26e49c6c7143c51f61a8 | 5,292 | py | Python | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | analytics/settings.py | Kratos-Freyja/analytics | 9de41b990e78e7a7ae912ebecd93fab50cb47320 | [
"MIT"
] | null | null | null | """
Django settings for analytics project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | 24.164384 | 92 | 0.655518 |
5e261f4a29f9c6da5e5d39b2f670faea1fe9471d | 4,396 | py | Python | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | production/tests/O365_SE_Email.py | GoVanguard/SeleniumBase | 29241d58ccba23bb94ebf4c4a51fad578c4aceb8 | [
"MIT"
] | null | null | null | """
The Office 365 Social Engineering Email draft producer uses a customized
library of methods in this master class to maintain continuous delivery.
This repository is controlled by a single boolean that is set to false by
default. Please ensure that the emailDraft.py file is correct.
"""
# Built-in Imports
import os... | 39.25 | 78 | 0.64354 |
5e26733308ed8f42d4be84bd5ccccd072a511eca | 1,357 | py | Python | test.py | FirstDraftGIS/is-a-place-counter | 2af139da34c575101bbd4545e889298682fc3487 | [
"MIT"
] | 1 | 2019-02-15T15:17:41.000Z | 2019-02-15T15:17:41.000Z | test.py | FirstDraftGIS/is-a-place-counter | 2af139da34c575101bbd4545e889298682fc3487 | [
"MIT"
] | null | null | null | test.py | FirstDraftGIS/is-a-place-counter | 2af139da34c575101bbd4545e889298682fc3487 | [
"MIT"
] | null | null | null | from datetime import datetime
from csv import DictReader
from numpy import mean
from numpy import median
import pickle
import unittest
from config import path_to_pickled_counter
from config import path_to_tsv
if __name__ == '__main__':
unittest.main()
| 35.710526 | 132 | 0.659543 |
5e29ce6a0e41b1a83ed81d1c6dec37481ec7d6e5 | 2,950 | py | Python | scalpel/utils/sensor.py | straizys/elliptical-excision-force-model | c30619ea3879de38b5643c0c31946e2db57dafbc | [
"MIT"
] | null | null | null | scalpel/utils/sensor.py | straizys/elliptical-excision-force-model | c30619ea3879de38b5643c0c31946e2db57dafbc | [
"MIT"
] | null | null | null | scalpel/utils/sensor.py | straizys/elliptical-excision-force-model | c30619ea3879de38b5643c0c31946e2db57dafbc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys, serial
import numpy as np
from collections import deque
import itertools
import csv
from datetime import datetime
import time
import rospy
from std_msgs.msg import Int32MultiArray
if __name__ == '__main__':
main()
| 25.431034 | 80 | 0.553559 |
5e29eba4a3cf0f4a96a10f81ab236f70af7ead6e | 2,847 | py | Python | tests/test_play_turn.py | Avashist1998/tictactoe-abhay | e2a023234b4c903879d2d819997a579eb9e649d0 | [
"MIT"
] | null | null | null | tests/test_play_turn.py | Avashist1998/tictactoe-abhay | e2a023234b4c903879d2d819997a579eb9e649d0 | [
"MIT"
] | null | null | null | tests/test_play_turn.py | Avashist1998/tictactoe-abhay | e2a023234b4c903879d2d819997a579eb9e649d0 | [
"MIT"
] | null | null | null | import unittest
from tic_tac_toe.TicTacToe import TicTacToe
if __name__ == "__main__":
unittest.main() | 40.671429 | 63 | 0.545838 |
5e2a1a3b81768dc01ada5c03b830c68d66cb3bb2 | 863 | py | Python | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | p3_collab-compet/envs.py | albimc/deep-reinforcement-learning | e11a6c9d4c8991cf229e686b645ae22ec4cff4f5 | [
"MIT"
] | null | null | null | from env_wrapper import SubprocVecEnv, DummyVecEnv
import numpy as np
import multiagent.scenarios as scenarios
from multiagent.environment import MultiAgentEnv
| 30.821429 | 91 | 0.695249 |
5e2b2f0e5c9cdd14dd3e3052e5392fdfa1eb0061 | 1,115 | py | Python | talipp/indicators/CHOP.py | solocarrie/talipp | a35bbc33444c56683d4e26439f4878e92b937d7f | [
"MIT"
] | 54 | 2020-11-19T02:27:04.000Z | 2022-02-22T06:31:05.000Z | talipp/indicators/CHOP.py | justin-pierce/talipp | f5296381e3f4270b7743694e2ab5a0da301bdaf3 | [
"MIT"
] | 24 | 2020-11-01T17:56:28.000Z | 2021-09-15T18:40:04.000Z | talipp/indicators/CHOP.py | justin-pierce/talipp | f5296381e3f4270b7743694e2ab5a0da301bdaf3 | [
"MIT"
] | 14 | 2020-12-10T22:43:37.000Z | 2022-01-15T22:23:42.000Z | from math import log10
from typing import List, Any
from talipp.indicators.Indicator import Indicator
from talipp.indicators.ATR import ATR
from talipp.ohlcv import OHLCV
| 28.589744 | 107 | 0.622422 |
5e2b522b922e568a38309ed95a9002c2eb99209a | 2,177 | py | Python | unleash_client/clients.py | rarruda/unleash-client-python | 2f64bb2eab92eb9b99b4bef54c206d7672c6380c | [
"Apache-2.0"
] | 2 | 2018-10-23T10:07:50.000Z | 2018-10-30T02:37:30.000Z | unleash_client/clients.py | rarruda/unleash-client-python | 2f64bb2eab92eb9b99b4bef54c206d7672c6380c | [
"Apache-2.0"
] | 1 | 2018-09-25T17:29:40.000Z | 2018-09-25T17:29:40.000Z | unleash_client/clients.py | rarruda/unleash-client-python | 2f64bb2eab92eb9b99b4bef54c206d7672c6380c | [
"Apache-2.0"
] | null | null | null | import time
import logging
from urllib.parse import urljoin
from .strategy import DEFAULT_STRATEGIES
from .io import UrlFetcher, Reporter
from .features import Feature
log = logging.getLogger(__name__)
| 27.556962 | 91 | 0.57051 |
5e2c05aeee32a3c0a0b12b655a2e82559e46b7c9 | 269,482 | py | Python | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:00:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using... | 130.12168 | 14,121 | 0.801753 |
5e2c57a108833725810c97a24dfaf30c42381529 | 2,074 | py | Python | bot/cogs/utils/logging.py | Kobu/MasarykBOT | 9a6b6a026b4f39afaca5ab509c90f6da09e169a0 | [
"MIT"
] | 13 | 2019-09-14T16:51:35.000Z | 2021-03-03T22:20:44.000Z | bot/cogs/utils/logging.py | Kobu/MasarykBOT | 9a6b6a026b4f39afaca5ab509c90f6da09e169a0 | [
"MIT"
] | 15 | 2019-09-29T19:25:31.000Z | 2022-02-13T16:40:45.000Z | bot/cogs/utils/logging.py | Kobu/MasarykBOT | 9a6b6a026b4f39afaca5ab509c90f6da09e169a0 | [
"MIT"
] | 15 | 2019-09-18T10:50:59.000Z | 2022-02-11T20:55:19.000Z | import logging
import os
from logging import FileHandler, Formatter
from logging.handlers import TimedRotatingFileHandler
from pathlib import Path
from rich.logging import RichHandler
def setup_logging():
"""
sets up custom logging into self.log variable
set format to
[2019-09-29 18:51:04] [INFO ]... | 35.758621 | 109 | 0.72324 |
5e2e4d1334a3040d22f87965b228ed511a22030b | 3,018 | py | Python | amdtemp/amdtemp.py | micaelbergeron/amdtemp | 8bea1ae19f0837b105f83d7c9e107491f82ea094 | [
"MIT"
] | null | null | null | amdtemp/amdtemp.py | micaelbergeron/amdtemp | 8bea1ae19f0837b105f83d7c9e107491f82ea094 | [
"MIT"
] | null | null | null | amdtemp/amdtemp.py | micaelbergeron/amdtemp | 8bea1ae19f0837b105f83d7c9e107491f82ea094 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import anyconfig
import re
import time
import importlib
import pdb
from select import poll, POLLIN
from statsd import StatsClient
sample_cfg = """
verbose=false
[statsd]
host="127.0.0.1"
port=8127
prefix="amdtemp.gpu"
[metrics.card0.temp]
path="/sys/class/drm/card0/device/... | 25.576271 | 97 | 0.643804 |
5e2e945dd5aa5dbaa28763805003a91fd6eda97e | 5,523 | py | Python | keccak256hash_pcie.py | shahbaazlokh/Picoevb_Keccak256hash_Pcie_ipi | e813ae8f706b9e1f1a44edef5c0fe18677a39820 | [
"MIT"
] | 1 | 2019-12-26T17:30:35.000Z | 2019-12-26T17:30:35.000Z | keccak256hash_pcie.py | shahbaazlokh/Picoevb_Keccak256hash_Pcie_ipi | e813ae8f706b9e1f1a44edef5c0fe18677a39820 | [
"MIT"
] | null | null | null | keccak256hash_pcie.py | shahbaazlokh/Picoevb_Keccak256hash_Pcie_ipi | e813ae8f706b9e1f1a44edef5c0fe18677a39820 | [
"MIT"
] | 1 | 2021-03-27T22:02:50.000Z | 2021-03-27T22:02:50.000Z |
#!/usr/bin/env python3
import os
import time
import binascii
import codecs
expected_genesis_hash = "00000009c4e61bee0e8d6236f847bb1dd23f4c61ca5240b74852184c9bf98c30"
blockheader1 = "020000005bf0e2f283edac06ea087a9324dc9bd865c79b175658849bd83900000000000085246da7e6e530d276d5f8e0d4222cb8938f7af0e9d6678ec08ff133812f4b72... | 40.313869 | 177 | 0.60927 |
5e3240efc103a1b22b47cef9a9d5b727a615ddff | 3,311 | py | Python | tests/test_policy.py | forkedOrg/RocAlphaGo | a727763ea0b73ac984d13f81329d99c9a8a620c0 | [
"MIT"
] | null | null | null | tests/test_policy.py | forkedOrg/RocAlphaGo | a727763ea0b73ac984d13f81329d99c9a8a620c0 | [
"MIT"
] | null | null | null | tests/test_policy.py | forkedOrg/RocAlphaGo | a727763ea0b73ac984d13f81329d99c9a8a620c0 | [
"MIT"
] | null | null | null | from AlphaGo.models.policy import CNNPolicy
from AlphaGo import go
from AlphaGo.go import GameState
from AlphaGo.ai import GreedyPolicyPlayer, ProbabilisticPolicyPlayer
import numpy as np
import unittest
import os
if __name__ == '__main__':
unittest.main()
| 30.943925 | 88 | 0.725461 |
5e3257003e9364f1ddaf4c5be9cb5b8665d4201c | 1,840 | py | Python | conference/factories.py | mattaustin/django-conference | 9606724aaf2351e78269fabc8c81c0898e727635 | [
"Apache-2.0"
] | 1 | 2017-06-30T07:32:07.000Z | 2017-06-30T07:32:07.000Z | conference/factories.py | mattaustin/django-conference | 9606724aaf2351e78269fabc8c81c0898e727635 | [
"Apache-2.0"
] | null | null | null | conference/factories.py | mattaustin/django-conference | 9606724aaf2351e78269fabc8c81c0898e727635 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2016 Matt Austin
#
# 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... | 29.677419 | 78 | 0.721196 |
5e354afb63b174f5f617ab1a12d24daceb3e23d7 | 1,879 | py | Python | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/db/db_users.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | import time
from anchore_engine import db
from anchore_engine.db import User
| 23.4875 | 103 | 0.610963 |
5e359e3a1d5de976c3e6e2ada1244b9cf4a25c97 | 10,116 | py | Python | tiledb/segy/convert.py | TileDB-Inc/tilesegy | d7a7703eea62dd27bcc1444d932bd4efaa50293c | [
"MIT"
] | null | null | null | tiledb/segy/convert.py | TileDB-Inc/tilesegy | d7a7703eea62dd27bcc1444d932bd4efaa50293c | [
"MIT"
] | 3 | 2020-12-21T15:52:03.000Z | 2021-01-15T11:48:21.000Z | tiledb/segy/convert.py | TileDB-Inc/tilesegy | d7a7703eea62dd27bcc1444d932bd4efaa50293c | [
"MIT"
] | null | null | null | import copy
from abc import ABC, abstractmethod
from collections import namedtuple
from contextlib import contextmanager
from pathlib import PurePath
from typing import Any, Iterable, Iterator, Optional, Union, cast
import numpy as np
import segyio
import segyio.tools
from cached_property import cached_property
from u... | 37.054945 | 87 | 0.59223 |
5e36244123ee5c6940be37309dff373ccc4d49dc | 40 | py | Python | src/maggma/api/__init__.py | materialsproject/maggflow | 9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d | [
"BSD-3-Clause-LBNL"
] | 15 | 2017-06-15T16:35:23.000Z | 2022-03-05T09:57:02.000Z | src/maggma/api/__init__.py | materialsproject/maggflow | 9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d | [
"BSD-3-Clause-LBNL"
] | 573 | 2017-06-14T15:54:27.000Z | 2022-03-31T23:20:55.000Z | src/maggma/api/__init__.py | rkingsbury/maggma | 53def068df1cb410bfe91e7045903997813e173a | [
"BSD-3-Clause-LBNL"
] | 28 | 2017-06-14T20:50:26.000Z | 2022-03-04T16:56:40.000Z | """ Simple API Interface for Maggma """
| 20 | 39 | 0.675 |
5e38493f0fa872e04c4bfac3ddb969b05f7e7104 | 522 | py | Python | dos/gen_palette.py | dbrotz/fire-effect | 68c8954b6ffb4729bfcaa0df5b377d8793bbc914 | [
"MIT"
] | null | null | null | dos/gen_palette.py | dbrotz/fire-effect | 68c8954b6ffb4729bfcaa0df5b377d8793bbc914 | [
"MIT"
] | null | null | null | dos/gen_palette.py | dbrotz/fire-effect | 68c8954b6ffb4729bfcaa0df5b377d8793bbc914 | [
"MIT"
] | null | null | null | import colorsys
palette_size = 80
palette = []
for i in range(palette_size):
t = i / (palette_size - 1)
h = t * (60 / 360)
l = t
s = 1.0
color = colorsys.hls_to_rgb(h, l, s)
color = tuple(map(lambda x: round(x * 63), color))
palette.append(color)
with open('palette.asm', 'w', newline='\n'... | 22.695652 | 58 | 0.547893 |
5e3a9ab4118c0f0c1c0188378ff8afd2c67ece34 | 350 | py | Python | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 30 | 2017-09-05T14:29:30.000Z | 2022-03-20T01:51:29.000Z | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | null | null | null | HITCON-Training/LAB/lab7/crack.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 7 | 2018-03-15T10:07:43.000Z | 2020-12-14T09:36:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
host = "training.pwnable.tw"
port = 11007
r = remote(host,port)
password_addr = 0x804a048
r.recvuntil("?")
r.sendline(p32(password_addr) + "#" + "%10$s" + "#" )
r.recvuntil("#")
p = r.recvuntil("#")
password = u32(p[:4])
r.recvuntil(":")
r.sendline(s... | 15.909091 | 53 | 0.625714 |
5e3b823d0f87912b114dc8c0fa28049792efe0c4 | 675 | py | Python | tests/test_records.py | tomfallen/python-fitparse | ea5532a976cf123fc6a787a0e94708511e0e11a7 | [
"MIT"
] | 548 | 2015-01-04T23:10:59.000Z | 2022-03-31T07:34:28.000Z | tests/test_records.py | tomfallen/python-fitparse | ea5532a976cf123fc6a787a0e94708511e0e11a7 | [
"MIT"
] | 108 | 2015-01-05T13:27:29.000Z | 2022-03-01T09:21:24.000Z | tests/test_records.py | tomfallen/python-fitparse | ea5532a976cf123fc6a787a0e94708511e0e11a7 | [
"MIT"
] | 170 | 2015-01-12T19:14:51.000Z | 2022-02-27T17:44:30.000Z | #!/usr/bin/env python
import sys
from fitparse.records import Crc
if sys.version_info >= (2, 7):
import unittest
else:
import unittest2 as unittest
if __name__ == '__main__':
unittest.main()
| 22.5 | 56 | 0.645926 |
eaa369f6384c7d274e6bec1f3e2e2cfe6baf997b | 1,420 | bzl | Python | bazel/deps.bzl | quantapix/semtools | dce8840adc86e6a9672447aace969d37e236f922 | [
"MIT"
] | null | null | null | bazel/deps.bzl | quantapix/semtools | dce8840adc86e6a9672447aace969d37e236f922 | [
"MIT"
] | null | null | null | bazel/deps.bzl | quantapix/semtools | dce8840adc86e6a9672447aace969d37e236f922 | [
"MIT"
] | null | null | null | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
BAZEL_INSTALLER = struct(
revision = "4.0.0",
sha256 = "bd7a3a583a18640f58308c26e654239d412adaa833b6b6a7b57a216ab62fabc2",
)
DEBS_TARBALL = struct(
revision = "1608132805",
sha256 = "7ed2d4869f19c11d8c39345bd75f908a51410bf4e512e9fc368ad... | 38.378378 | 170 | 0.64507 |
eaa3714aff832e686ae4830447a5096de12ce12d | 143 | py | Python | Python/Sets/Set.add().py | pavstar619/HackerRank | 697ee46b6e621ad884a064047461d7707b1413cd | [
"MIT"
] | 61 | 2017-04-27T13:45:12.000Z | 2022-01-27T11:40:15.000Z | Python/Sets/Set.add().py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 1 | 2017-06-24T14:16:06.000Z | 2017-06-24T14:16:28.000Z | Python/Sets/Set.add().py | fahad0193/HackerRank | eb6c95e16688c02921c1df6b6ea613667a251457 | [
"MIT"
] | 78 | 2017-07-05T11:48:20.000Z | 2022-02-08T08:04:22.000Z | if __name__ == '__main__':
n = int(input())
s = set()
for i in range (n):
s.add(input())
print((len(s)))
| 15.888889 | 26 | 0.426573 |
eaa454aeb2637a676c1e50bb9a3b6f2eb3e45e6f | 87 | py | Python | main.py | spdir/sakf | 9a07c5f90765201a42d524dc6d4554f4ccd3c750 | [
"Apache-2.0"
] | null | null | null | main.py | spdir/sakf | 9a07c5f90765201a42d524dc6d4554f4ccd3c750 | [
"Apache-2.0"
] | null | null | null | main.py | spdir/sakf | 9a07c5f90765201a42d524dc6d4554f4ccd3c750 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from sakf.sakf import main
if __name__ == '__main__':
main() | 17.4 | 26 | 0.62069 |
eaa5e7d7d957b71c8f9536bbb10b0314303c12f5 | 2,741 | py | Python | compiler.py | ayung8/CodeBoard | 13423ec3eaa1c96e95afb53784dbe24a0a1162c1 | [
"Apache-2.0"
] | 2 | 2019-10-26T03:49:51.000Z | 2019-10-27T06:48:07.000Z | compiler.py | ayung8/CodeBoard | 13423ec3eaa1c96e95afb53784dbe24a0a1162c1 | [
"Apache-2.0"
] | null | null | null | compiler.py | ayung8/CodeBoard | 13423ec3eaa1c96e95afb53784dbe24a0a1162c1 | [
"Apache-2.0"
] | 2 | 2021-07-18T09:17:50.000Z | 2022-03-08T05:03:31.000Z | from sphere_engine import CompilersClientV4
from sphere_engine.exceptions import SphereEngineException
import time
# define access parameters
accessToken = '77501c36922866a03b1822b4508a50c6'
endpoint = 'dd57039c.compilers.sphere-engine.com'
# initialization
client = CompilersClientV4(accessToken, endpoint)
# API us... | 33.426829 | 122 | 0.690259 |
eaa6140f555dcb9999992526db8818c254ad7559 | 84 | py | Python | main.py | bzsam/password_generator | 4690e2ed361d3eee4f06cc404f737f904cc3294c | [
"MIT"
] | null | null | null | main.py | bzsam/password_generator | 4690e2ed361d3eee4f06cc404f737f904cc3294c | [
"MIT"
] | null | null | null | main.py | bzsam/password_generator | 4690e2ed361d3eee4f06cc404f737f904cc3294c | [
"MIT"
] | null | null | null | import tkinter as tk
import gui
wd = tk.Tk()
gui = gui.GUI(wd)
wd.mainloop() | 12 | 21 | 0.630952 |
eaa6e1abc664210c2d20b6da218369d841465733 | 3,306 | py | Python | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 490 | 2019-01-16T12:57:22.000Z | 2022-03-26T14:13:26.000Z | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 147 | 2019-01-23T13:22:42.000Z | 2022-03-30T11:14:08.000Z | backend/lost/api/user/login_manager.py | JonasGoebel/lost | 802be42fb6cd7d046db61a34d77c0b5d233eca46 | [
"MIT"
] | 91 | 2019-03-11T10:37:50.000Z | 2022-03-28T16:41:32.000Z | import datetime
from flask_ldap3_login import LDAP3LoginManager, AuthenticationResponseStatus
from lost.settings import LOST_CONFIG, FLASK_DEBUG
from flask_jwt_extended import create_access_token, create_refresh_token
from lost.db.model import User as DBUser, Group
from lost.db import roles | 42.384615 | 98 | 0.667272 |
eaa6e6b11cc89e6f7aeab32dc3e25a5307983316 | 1,198 | py | Python | betterthanbackprop/feedbackLearners/learningViz/OptimTrajViz.py | conradliste/SmarterThanBackProp | ed615492af052d452f23458ef10ff1264a85b980 | [
"MIT"
] | null | null | null | betterthanbackprop/feedbackLearners/learningViz/OptimTrajViz.py | conradliste/SmarterThanBackProp | ed615492af052d452f23458ef10ff1264a85b980 | [
"MIT"
] | null | null | null | betterthanbackprop/feedbackLearners/learningViz/OptimTrajViz.py | conradliste/SmarterThanBackProp | ed615492af052d452f23458ef10ff1264a85b980 | [
"MIT"
] | null | null | null | import os
import torch
import numpy as np
import torch.nn as nn
import matplotlib.pyplot as plt
def get_param_matrix(model_prefix, model_dir):
"""
Grabs the parameters of a saved model and returns them as a matrix
"""
# Load and combine the parameters
param_matrix = []
for file in os.listdir(... | 31.526316 | 79 | 0.658598 |
eaabcde0a0bdb029d9b18b138be58cc64d90cc9c | 1,103 | py | Python | docs/cornell CS class/lesson 9. Conditionals/demos/angl.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | docs/cornell CS class/lesson 9. Conditionals/demos/angl.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | docs/cornell CS class/lesson 9. Conditionals/demos/angl.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | """
Functions to anglicize integers in the range 1..19
This is a simple example for now. We will see a more complex
version of this later.
Author: Walker M. White
Date: March 30, 2019
"""
def anglicize(n):
"""
Returns: English equiv of n.
Parameter: the integer to anglicize
Precondition: n in 1.... | 19.017241 | 61 | 0.507706 |
eaac2ee80b3fe871703042e08987e0174fc49d74 | 919 | py | Python | hackerearth/Algorithms/Matt's Graph Book/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Matt's Graph Book/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Matt's Graph Book/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
import sys
from collections import defaultd... | 22.975 | 94 | 0.634385 |
eaaca7839f6bb2b2e2924a78a429e6572176117e | 361 | py | Python | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/863.all-nodes-distance-k-in-binary-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 21.235294 | 41 | 0.509695 |
eaad23f2b13bd298772ecacc2f6ab37c85b8ea24 | 64 | py | Python | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | 1 | 2020-12-18T21:16:05.000Z | 2020-12-18T21:16:05.000Z | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | null | null | null | downloader_cli/__version__.py | srevinsaju/downloader-cli | f03b2b38467a07134c2d06f5e81f744a8ba45d21 | [
"MIT"
] | null | null | null | """Contiain the version of the package"""
__version__ = "0.2.0"
| 21.333333 | 41 | 0.6875 |
eaae0faf13f42080f43de9f7c7d0bd4f497fa5d8 | 13,343 | py | Python | apps/ffmpeg/ffmpeg_GUI.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2021-12-12T13:26:06.000Z | 2022-03-03T16:14:53.000Z | apps/ffmpeg/ffmpeg_GUI.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 5 | 2019-03-01T07:08:46.000Z | 2019-04-28T07:32:42.000Z | apps/ffmpeg/ffmpeg_GUI.py | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2017-12-13T13:13:52.000Z | 2019-03-13T20:08:15.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2019 Romain Boman
#
# 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
#
#... | 36.859116 | 104 | 0.561643 |
eaae12f421ef051bdaca1bac1d8f9528a09f72e1 | 4,036 | py | Python | tests/nn/softmax_test.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tests/nn/softmax_test.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tests/nn/softmax_test.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | import numpy as np
import tor4
import tor4.nn as nn
| 28.422535 | 88 | 0.529485 |
eaae13d630098d1fed2c11aa237be653fb511af0 | 8,316 | py | Python | ForestTool(Python2)/Main.py | paltis5212/ForestTool | d49026c257c88e994c8b568906ae57500d71778b | [
"MIT"
] | 9 | 2019-05-11T04:42:22.000Z | 2022-03-05T03:54:19.000Z | ForestTool(Python2)/Main.py | paltis5212/ForestTool | d49026c257c88e994c8b568906ae57500d71778b | [
"MIT"
] | 4 | 2019-06-03T12:15:47.000Z | 2022-02-27T15:11:16.000Z | ForestTool(Python2)/Main.py | SmileZXLee/ForestTool | 9becb37298b86409b8ef7196969391078e39b902 | [
"MIT"
] | 8 | 2019-11-26T09:52:13.000Z | 2022-02-27T14:38:54.000Z | #coding=utf-8
__author__ = 'zxlee'
__github__ = 'https://github.com/SmileZXLee/forestTool'
import json
import time
import HttpReq
from User import User
from datetime import datetime,timedelta
import sched
import sys
import os
import platform
from dateutil.parser import parse
#Windows
os_is_windows = platform.system() ... | 34.65 | 298 | 0.69252 |
eaae876c415d71773fc2a99edab6f478ae373366 | 1,207 | py | Python | samples/sendRps.py | vsgobbi/Nfse-python | 5b2334e9e28e07186e8d38cda2ff7fe6ce62885d | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | samples/sendRps.py | vsgobbi/Nfse-python | 5b2334e9e28e07186e8d38cda2ff7fe6ce62885d | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2021-12-13T20:09:32.000Z | 2021-12-13T20:09:32.000Z | samples/sendRps.py | vsgobbi/Nfse-python | 5b2334e9e28e07186e8d38cda2ff7fe6ce62885d | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | # -*- coding: utf-8 -*-
from services.Services import Services
# NFSe Provider
taxId = "87654321000198"
providerSubscription = "12345678" # Provider city subscription
# NFSe Taker
companyName = "SOME COMPANY LTDA"
takerTaxId = "12345678000198"
objServ = Services(
certificateContent=open("../certfiles/converted... | 25.145833 | 93 | 0.672742 |
eaaee56b527744c35b0a2e71b0cf37879102767a | 208 | py | Python | python/course/leetcode/leetcode.py | TimVan1596/ACM-ICPC | 07f7d728db1ecd09c5a3d0f05521930b14eb9883 | [
"Apache-2.0"
] | 1 | 2019-05-22T07:12:34.000Z | 2019-05-22T07:12:34.000Z | python/course/leetcode/leetcode.py | TimVan1596/ACM-ICPC | 07f7d728db1ecd09c5a3d0f05521930b14eb9883 | [
"Apache-2.0"
] | 3 | 2021-12-10T01:13:54.000Z | 2021-12-14T21:18:42.000Z | python/course/leetcode/leetcode.py | TimVan1596/ACM-ICPC | 07f7d728db1ecd09c5a3d0f05521930b14eb9883 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# @Time:2020/6/15 11:38
# @Author:TimVan
# @File:leetcode.py
# @Software:PyCharm
# Definition for singly-linked list.
# for j in range(10, 5, -1):
# print(j)
print('a'.find(' '))
| 17.333333 | 36 | 0.605769 |
eaaefc430961e4bbb80f4767f28ce779a21dba1e | 1,337 | py | Python | inlp/text_preprocessing/KerasBow.py | Jie-Yuan/iNLP | 04fe919b9c1e613b1075c8eb1102556c188d48d6 | [
"MIT"
] | 9 | 2018-06-07T13:26:52.000Z | 2021-08-28T07:01:00.000Z | inlp/text_preprocessing/KerasBow.py | Jie-Yuan/iNLP | 04fe919b9c1e613b1075c8eb1102556c188d48d6 | [
"MIT"
] | null | null | null | inlp/text_preprocessing/KerasBow.py | Jie-Yuan/iNLP | 04fe919b9c1e613b1075c8eb1102556c188d48d6 | [
"MIT"
] | 2 | 2019-07-05T08:29:59.000Z | 2020-04-08T09:54:03.000Z | from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing.text import Tokenizer
| 31.833333 | 82 | 0.644727 |
eaaf85302a7e40e5b38b9e1a9f53748e0813d733 | 1,300 | py | Python | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 5 | 2018-04-22T22:44:02.000Z | 2021-04-26T20:44:44.000Z | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 250 | 2018-04-24T12:04:11.000Z | 2022-03-09T06:56:47.000Z | trojsten/people/migrations/0011_auto_20170218_1724.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 8 | 2019-04-28T11:33:03.000Z | 2022-02-26T13:30:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-02-18 16:24
from django.db import migrations
countries = {
"Ma\u010farsko": "HU",
"Czech Republic": "CZ",
"\u010cesk\xe1 republika": "CZ",
"United Kingdom": "GB",
"Austria": "AT",
"Madarsko": "HU",
"Australia": "AU",
"Srbsko":... | 28.888889 | 73 | 0.614615 |
eab048820d03b22884f75124f36991ec3018d628 | 249 | py | Python | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 18 | 2015-01-07T19:05:29.000Z | 2022-01-09T02:33:23.000Z | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 30 | 2015-02-19T16:04:04.000Z | 2021-03-30T00:09:58.000Z | test/test_commands/test_tail.py | Rudedog9d/pypsi | 38dda442b21b8deb569d61076ab0a19c0e78edc8 | [
"0BSD"
] | 7 | 2016-01-02T17:55:48.000Z | 2020-11-22T14:52:32.000Z | from pypsi.shell import Shell
from pypsi.commands.tail import TailCommand
| 16.6 | 43 | 0.678715 |
eab1a5938cae0856924b0791262652f15b84a805 | 20,322 | py | Python | linuxOperation/app/domain/constants.py | zhouli121018/core | f9700204349ecb22d45e700e9e27e79412829199 | [
"MIT"
] | null | null | null | linuxOperation/app/domain/constants.py | zhouli121018/core | f9700204349ecb22d45e700e9e27e79412829199 | [
"MIT"
] | 1 | 2021-06-10T20:45:55.000Z | 2021-06-10T20:45:55.000Z | linuxOperation/app/domain/constants.py | zhouli121018/core | f9700204349ecb22d45e700e9e27e79412829199 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
'''
import base64
from django.utils.translation import ugettext_lazy as _
DOMAIN_BASIC_PARAMS = (
(u"cf_limit_mailbox_cnt", _(u"")),
#(u"cf_limit_alias_cnt", u""), #
(u"cf_limit_mailbox_size", _(u"")),
(u"cf_limit_netdisk_size", _(u"")),
(u"cf_limit_email_size"... | 28.107884 | 566 | 0.602057 |
eab2e9ef32b15fbfe01bae24b376302a8a7522ba | 3,924 | py | Python | splunk_add_on_ucc_framework/modular_alert_builder/build_core/alert_actions_merge.py | livehybrid/addonfactory-ucc-generator | 421c4f9cfb279f02fa8927cc7cf21f4ce48e7af5 | [
"Apache-2.0"
] | null | null | null | splunk_add_on_ucc_framework/modular_alert_builder/build_core/alert_actions_merge.py | livehybrid/addonfactory-ucc-generator | 421c4f9cfb279f02fa8927cc7cf21f4ce48e7af5 | [
"Apache-2.0"
] | null | null | null | splunk_add_on_ucc_framework/modular_alert_builder/build_core/alert_actions_merge.py | livehybrid/addonfactory-ucc-generator | 421c4f9cfb279f02fa8927cc7cf21f4ce48e7af5 | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2020 2020
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
import os
import os.path as op
from os.path import dirname as dn
from os.path import basename as bn
from shutil import copy
from . import alert_actions_exceptions as aae
from . import arf_consts as ac
fr... | 32.429752 | 117 | 0.605759 |
eab304e0038f9d90c7298134d0344c832dc999c1 | 226 | py | Python | authapp/models.py | MSFC-NASA/NasaPD | 5851b63f57d2820f48f579bf71ffa040c23b755e | [
"MIT"
] | null | null | null | authapp/models.py | MSFC-NASA/NasaPD | 5851b63f57d2820f48f579bf71ffa040c23b755e | [
"MIT"
] | null | null | null | authapp/models.py | MSFC-NASA/NasaPD | 5851b63f57d2820f48f579bf71ffa040c23b755e | [
"MIT"
] | 2 | 2021-03-19T16:40:52.000Z | 2021-03-20T13:01:41.000Z | from django.db import models
from django.conf import settings
# Create your models here.
| 28.25 | 59 | 0.783186 |
eab3229dfe3d73f0452d4072e97aba518169d2d1 | 2,499 | py | Python | src/commercetools/predicates.py | mikedingjan/commercetools-python-sdk | 95caec9e72017114c4536e63e19f5283754a3871 | [
"MIT"
] | null | null | null | src/commercetools/predicates.py | mikedingjan/commercetools-python-sdk | 95caec9e72017114c4536e63e19f5283754a3871 | [
"MIT"
] | null | null | null | src/commercetools/predicates.py | mikedingjan/commercetools-python-sdk | 95caec9e72017114c4536e63e19f5283754a3871 | [
"MIT"
] | null | null | null | import json
import typing
from collections.abc import Collection
from decimal import Decimal
from functools import reduce
| 30.108434 | 77 | 0.545818 |
eab4407d8abd439bb29cb8a4260e5cef11df39d1 | 385 | py | Python | accounts/views.py | DipeshYogi/PetsProj | 74ad9cdb1ee959ac81088ced405de52f7d1bc458 | [
"MIT"
] | null | null | null | accounts/views.py | DipeshYogi/PetsProj | 74ad9cdb1ee959ac81088ced405de52f7d1bc458 | [
"MIT"
] | 2 | 2020-06-06T01:28:29.000Z | 2021-06-10T22:39:27.000Z | accounts/views.py | DipeshYogi/PetsProj | 74ad9cdb1ee959ac81088ced405de52f7d1bc458 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from .forms import UserRegisterForm
| 27.5 | 65 | 0.649351 |
eab5148279ba7dcb7d46e93c0bb4d1ab9fdcb0d8 | 3,155 | py | Python | thunderpush/handler.py | welingtonsampaio/thunderpush | 9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1 | [
"BSD-3-Clause"
] | null | null | null | thunderpush/handler.py | welingtonsampaio/thunderpush | 9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1 | [
"BSD-3-Clause"
] | null | null | null | thunderpush/handler.py | welingtonsampaio/thunderpush | 9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1 | [
"BSD-3-Clause"
] | null | null | null | import logging
from sockjs.tornado import SockJSConnection
from thunderpush.sortingstation import SortingStation
try:
import simplejson as json
except ImportError:
import json
logger = logging.getLogger()
| 28.681818 | 77 | 0.620285 |
eab618833368798afc11263d3fd91477fc371614 | 679 | py | Python | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 2 | 2021-06-02T11:27:54.000Z | 2021-08-25T10:29:04.000Z | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 86 | 2021-01-29T12:31:34.000Z | 2022-03-28T11:41:04.000Z | archiv/migrations/0015_auto_20210505_1145.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-05 11:45
from django.db import migrations, models
| 28.291667 | 125 | 0.606775 |
eab67e58469eeb940c1776731bcb51f3cbae8706 | 494 | py | Python | 65-Spam-filter/main.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | 65-Spam-filter/main.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | 65-Spam-filter/main.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | # Spam filter
# Take a list of dishes from a menu and add spam to them. See https://en.wikipedia.org/wiki/Spam_(Monty_Python).
if __name__ == '__main__':
main() | 27.444444 | 114 | 0.651822 |
eab815b0041d2f5d41622dd307fbbd7d3b47885d | 6,816 | py | Python | app/cli.py | Jiyvn/pyautotest | a33281d0a6f6edd9c9c60c1e83e2534436818146 | [
"Apache-2.0"
] | null | null | null | app/cli.py | Jiyvn/pyautotest | a33281d0a6f6edd9c9c60c1e83e2534436818146 | [
"Apache-2.0"
] | null | null | null | app/cli.py | Jiyvn/pyautotest | a33281d0a6f6edd9c9c60c1e83e2534436818146 | [
"Apache-2.0"
] | null | null | null | import argparse
| 26.215385 | 80 | 0.534331 |
eab872d17f230c44c3455fbabfcd5cf55ac7a43f | 20,596 | py | Python | config/settings/base.py | ComputationalMechanics/TopoBank | 3e598d4b98cbffa43764e335f026efcbe7580c8a | [
"MIT"
] | 1 | 2020-06-04T23:18:53.000Z | 2020-06-04T23:18:53.000Z | config/settings/base.py | ComputationalMechanics/TopoBank | 3e598d4b98cbffa43764e335f026efcbe7580c8a | [
"MIT"
] | 168 | 2020-06-02T14:46:45.000Z | 2021-03-19T12:11:07.000Z | config/settings/base.py | ComputationalMechanics/TopoBank | 3e598d4b98cbffa43764e335f026efcbe7580c8a | [
"MIT"
] | null | null | null | """
Base settings to build other settings files upon.
"""
import environ
import topobank
ROOT_DIR = environ.Path(__file__) - 3 # (topobank/config/settings/base.py - 3 = topobank/)
APPS_DIR = ROOT_DIR.path('topobank')
env = environ.Env()
READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False)
if REA... | 39.837524 | 119 | 0.686735 |
eaba0c23a6f87059f715260269d709b8ed977523 | 166 | py | Python | teste_app/search.py | rafaelang/teste_app | b4e95c9fd373f21ffb39131face077b0499a723d | [
"Apache-2.0"
] | null | null | null | teste_app/search.py | rafaelang/teste_app | b4e95c9fd373f21ffb39131face077b0499a723d | [
"Apache-2.0"
] | null | null | null | teste_app/search.py | rafaelang/teste_app | b4e95c9fd373f21ffb39131face077b0499a723d | [
"Apache-2.0"
] | null | null | null | import requests
from teste_app import settigns
def google(q: str):
"""Faz uma pesquisa no google"""
return requests.get(settigns.GOOGLE, params={"q": q})
| 16.6 | 57 | 0.692771 |
eaba24664d5648befbdd4f847264b9c983245bec | 1,275 | py | Python | src/data/prepare_train_data.py | ds-praveenkumar/m5-accuracy-prediction | 20255adc95c3e0fe6c6acec9fd16ac88c6e95908 | [
"MIT"
] | null | null | null | src/data/prepare_train_data.py | ds-praveenkumar/m5-accuracy-prediction | 20255adc95c3e0fe6c6acec9fd16ac88c6e95908 | [
"MIT"
] | null | null | null | src/data/prepare_train_data.py | ds-praveenkumar/m5-accuracy-prediction | 20255adc95c3e0fe6c6acec9fd16ac88c6e95908 | [
"MIT"
] | null | null | null | # github link: https://github.com/ds-praveenkumar/kaggle
# Author: ds-praveenkumar
# file: forcasting/prepare_train_data.py/
# Created by ds-praveenkumar at 13-06-2020 15 34
# feature:
import os
import pandas as pd
import numpy as np
import click
from src.utility.timeit import timeit
root = os.path.dirname(os.getcwd(... | 30.357143 | 77 | 0.723137 |
eabbba5703420267113fe4624cc55ee6b004fe83 | 2,338 | py | Python | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | IoTCognito/get_auth_creds.py | devendersatija/IoTCognito | efa4365a45a13dc6dab6307108d7ccfec0838090 | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file acco... | 46.76 | 118 | 0.731394 |
eabbe6584c7141a2b6f0410b24806f7f69f8db70 | 1,041 | py | Python | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | 2 | 2019-02-09T17:45:48.000Z | 2021-11-09T06:14:23.000Z | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | null | null | null | python/db_conn.py | oerpli/MONitERO | 64f1cc613a8c287a860ab98900f8dec19d506222 | [
"MIT"
] | 1 | 2018-12-17T20:08:49.000Z | 2018-12-17T20:08:49.000Z | import psycopg2
import psycopg2.extras
import sys
from sqlalchemy import create_engine
import pandas as pd
engine = create_engine('postgresql://HintereggerA:root@localhost/HintereggerA')
cursor = get_cursor()
# print("DB Cursor is available as cursor")
# print("query with query(str)") | 32.53125 | 91 | 0.775216 |
eabc2d16f749bf7011211b6d1f5405973cd4be21 | 243 | py | Python | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/lurk.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | arguments = ["self", "info", "args"]
helpstring = "lurk"
minlevel = 3
def main(connection, info, args) :
"""Deops and voices the sender"""
connection.rawsend("MODE %s -o+v %s %s\n" % (info["channel"], info["sender"], info["sender"]))
| 30.375 | 98 | 0.617284 |
eabe1302de2ccdf32bfec8af5697d4396c658e09 | 6,982 | py | Python | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | null | null | null | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | 1 | 2018-11-06T09:30:23.000Z | 2018-11-06T09:30:23.000Z | volume_editor_layout.py | singleswitch/ticker | 1e793316f2a3252d80339a69672ad81df550875d | [
"MIT"
] | 1 | 2019-01-23T14:46:11.000Z | 2019-01-23T14:46:11.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'volume_layout.ui'
#
# Created: Tue Mar 26 12:40:36 2013
# by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
| 62.339286 | 154 | 0.728445 |
eabea33f4d0ec179914a2f9d513c08deb93370e0 | 2,780 | py | Python | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 352 | 2020-01-22T13:36:11.000Z | 2022-03-22T19:37:24.000Z | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 72 | 2020-01-24T04:53:52.000Z | 2021-07-14T19:23:29.000Z | pipeline/models/nmap_model.py | ponderng/recon-pipeline | 11d09902c54969af47731b8e235e447806246004 | [
"MIT"
] | 86 | 2020-01-23T09:20:51.000Z | 2022-03-03T08:04:37.000Z | import textwrap
from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, ForeignKey, String, Boolean
from .base_model import Base
from .port_model import Port
from .ip_address_model import IPAddress
from .nse_model import nse_result_association_table
| 35.641026 | 124 | 0.632014 |
eac1009e63e90719aaf42106d1bb45371b8deff9 | 697 | py | Python | examples/isinstance.py | quynhanh-ngx/pytago | de976ad8d85702ae665e97978bc4a75d282c857f | [
"MIT"
] | 206 | 2021-06-24T16:16:13.000Z | 2022-03-31T07:44:17.000Z | examples/isinstance.py | quynhanh-ngx/pytago | de976ad8d85702ae665e97978bc4a75d282c857f | [
"MIT"
] | 13 | 2021-06-24T17:51:36.000Z | 2022-02-23T10:07:17.000Z | examples/isinstance.py | quynhanh-ngx/pytago | de976ad8d85702ae665e97978bc4a75d282c857f | [
"MIT"
] | 14 | 2021-06-26T02:19:45.000Z | 2022-03-30T03:02:49.000Z |
if __name__ == '__main__':
main()
| 26.807692 | 94 | 0.503587 |
eac186c65b17deddeada34c9b520c3aaf6930f53 | 964 | py | Python | sarcsdet/utils/mark_ling_feat.py | castargo/SarcDetectionRusModels | f889879bb29d2a0dc8c2fb8a7ff666de21c241ef | [
"MIT"
] | 1 | 2021-05-07T23:04:59.000Z | 2021-05-07T23:04:59.000Z | sarcsdet/utils/mark_ling_feat.py | castargo/SarcDetectionRusModels | f889879bb29d2a0dc8c2fb8a7ff666de21c241ef | [
"MIT"
] | null | null | null | sarcsdet/utils/mark_ling_feat.py | castargo/SarcDetectionRusModels | f889879bb29d2a0dc8c2fb8a7ff666de21c241ef | [
"MIT"
] | null | null | null | from sarcsdet.configs.ling_feat_config import interjections, funny_marks
| 26.054054 | 83 | 0.598548 |
eac30777aababc6bfca5425e5da95cb001f48c9f | 8,887 | py | Python | fastapy/_fasta.py | proloyd/fastapy | 347ee72d98e4a51bd7c5be9cdbf7667ebb45baab | [
"Apache-2.0"
] | 3 | 2018-05-29T08:45:19.000Z | 2021-06-15T00:08:17.000Z | fastapy/_fasta.py | proloyd/fastapy | 347ee72d98e4a51bd7c5be9cdbf7667ebb45baab | [
"Apache-2.0"
] | null | null | null | fastapy/_fasta.py | proloyd/fastapy | 347ee72d98e4a51bd7c5be9cdbf7667ebb45baab | [
"Apache-2.0"
] | 2 | 2021-01-05T11:48:37.000Z | 2021-06-15T00:08:18.000Z | # Author: Proloy Das <proloy@umd.edu>
"""Module implementing the FASTA algorithm"""
import numpy as np
from math import sqrt
from scipy import linalg
import time
import logging
def _next_stepsize(deltax, deltaF, t=0):
"""A variation of spectral descent step-size selection: 'adaptive' BB method.
Reference:
... | 33.160448 | 120 | 0.590976 |
eac399423be5d4d4f542d0d58d41f6e21f9aff4b | 607 | py | Python | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 45 | 2020-01-18T03:46:07.000Z | 2022-03-26T13:06:36.000Z | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 1 | 2020-08-16T12:42:05.000Z | 2020-08-16T12:42:05.000Z | pycorrector/utils/io_utils.py | zouning68/pycorrector | 4daaf13e566f2cecc724fb5a77db5d89f1f25203 | [
"Apache-2.0"
] | 9 | 2020-01-04T09:09:01.000Z | 2022-01-17T08:56:23.000Z | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import os
import pickle
def load_pkl(pkl_path):
"""
:param pkl_path:
:return:
"""
with open(pkl_path, 'rb') as f:
result = pickle.load(f)
return result
def dump_pkl(vocab, pkl_path, overwrite=True):
"""
... | 19.580645 | 65 | 0.599671 |
eac4092c3274f3888ffd4211164c3fe9025a7e49 | 5,839 | py | Python | chat_service/mecab_service/mecab_ner_app/app/application/service/mecab_parser.py | YoungchanChang/ES_BERT_CHAT | 5dd919d3ba559ca9171ca73bd9e1052734f3060e | [
"Apache-2.0"
] | 1 | 2022-02-13T03:09:23.000Z | 2022-02-13T03:09:23.000Z | chat_service/mecab_service/mecab_ner_app/app/application/service/mecab_parser.py | YoungchanChang/ES_BERT_CHAT | 5dd919d3ba559ca9171ca73bd9e1052734f3060e | [
"Apache-2.0"
] | null | null | null | chat_service/mecab_service/mecab_ner_app/app/application/service/mecab_parser.py | YoungchanChang/ES_BERT_CHAT | 5dd919d3ba559ca9171ca73bd9e1052734f3060e | [
"Apache-2.0"
] | 1 | 2022-02-13T03:09:23.000Z | 2022-02-13T03:09:23.000Z | import copy
import _mecab
from collections import namedtuple
from typing import Generator
from mecab import MeCabError
from domain.mecab_domain import MecabWordFeature
def delete_pattern_from_string(string, pattern, index, nofail=False):
""" * """
# raise an error if index is outside of the string
... | 30.89418 | 135 | 0.651995 |
eac468dad9691c91dffb6abb70d8d6fdcf16423a | 206 | py | Python | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | linux/.local/scripts/update_pip_pkgs.py | rodrigoestevao/configuration-files | b2517da7654005db1884973d7ced2cb1cc72feac | [
"MIT"
] | null | null | null | import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
call(
f"pip install --upgrade --no-cache-dir {' '.join(packages)}", shell=True
)
| 20.6 | 76 | 0.742718 |
eac49b50576a3ac373bc861cf088d4e821e40708 | 385 | py | Python | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/single_individual/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import TypeVar
from yaga_ga.evolutionary_algorithm.operators.base import GeneticOperator
IndividualType = TypeVar("IndividualType")
GeneType = TypeVar("GeneType")
| 27.5 | 74 | 0.794805 |
eac5a5ec7e6cccad032db49002c1fac937db1360 | 7,746 | py | Python | pulsus/services/apns/service.py | pennersr/pulsus | ace014ca40e3928b235e1bcfebe22301c7f3cafe | [
"MIT"
] | 14 | 2015-01-16T07:48:43.000Z | 2019-04-19T23:13:50.000Z | pulsus/services/apns/service.py | pennersr/pulsus | ace014ca40e3928b235e1bcfebe22301c7f3cafe | [
"MIT"
] | null | null | null | pulsus/services/apns/service.py | pennersr/pulsus | ace014ca40e3928b235e1bcfebe22301c7f3cafe | [
"MIT"
] | 2 | 2015-08-06T12:52:56.000Z | 2019-02-07T18:09:23.000Z | import logging
import os
import struct
import binascii
import gevent
from gevent import socket, ssl
from gevent.event import Event
from gevent.queue import Queue
from ..base.service import BaseService
from .notification import APNSNotification
INITIAL_TIMEOUT = 5
MAX_TIMEOUT = 600
logger = logging.getLogger(__nam... | 35.369863 | 78 | 0.587529 |
eac64b9c80cf64eae73e29632228de6d1a1f6dce | 36,295 | py | Python | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | bookworm/variableSet.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import warnings
import json
import os
import decimal
import re
from MySQLdb import escape_string
def splitMySQLcode(string):
"""
MySQL code can only be executed one command at a time, and fails if it has any empty slots
So as a convenience wrapper, I'm just split... | 47.819499 | 2,558 | 0.582477 |
eac66d468a7e07323da015ce90324eb30ccacdcf | 17,976 | py | Python | pysql.py | morfat/PySQL | a887977ec7fc17e34c03027f044c40539d12e046 | [
"MIT"
] | null | null | null | pysql.py | morfat/PySQL | a887977ec7fc17e34c03027f044c40539d12e046 | [
"MIT"
] | null | null | null | pysql.py | morfat/PySQL | a887977ec7fc17e34c03027f044c40539d12e046 | [
"MIT"
] | 1 | 2020-09-14T17:32:59.000Z | 2020-09-14T17:32:59.000Z | import MySQLdb
from urllib import parse
| 28.807692 | 139 | 0.547063 |
eac68a057a3c6cba41ec2dcf68da3a587bccdc99 | 634 | py | Python | src/preprocess.py | Mukulthakur17/Skin-Pigment-Analysis | 5db26fafd38466afa0698333a7b432a8daa8ee06 | [
"MIT"
] | 1 | 2021-04-14T10:08:33.000Z | 2021-04-14T10:08:33.000Z | src/preprocess.py | Mukulthakur17/Skin-Pigment-Analysis | 5db26fafd38466afa0698333a7b432a8daa8ee06 | [
"MIT"
] | null | null | null | src/preprocess.py | Mukulthakur17/Skin-Pigment-Analysis | 5db26fafd38466afa0698333a7b432a8daa8ee06 | [
"MIT"
] | null | null | null | from tensorflow.keras.preprocessing import image
from tensorflow.keras.models import model_from_json
import numpy as np
import tensorflow.keras.models as models
| 39.625 | 68 | 0.753943 |
eac859440d6090d9d16a4764c580ec95eb663ba2 | 310 | py | Python | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null | help.py | Wizard684/YouTube-DL-Mega | be11833353d116dbcd0a6af902a14cb5bca998a4 | [
"MIT"
] | null | null | null |
from pyrogram import Client, Filters
| 34.444444 | 151 | 0.767742 |
eac8dea19ee6c42664fa366fdf0d9ec7672d57ac | 4,865 | py | Python | software/scripts/LoopbackTesting.py | slaclab/pgp-pcie-apps | 12b2caa2774255dc748e42cb8296b4fe3c20444c | [
"BSD-3-Clause-LBNL"
] | 2 | 2019-01-31T01:15:23.000Z | 2021-03-12T11:56:10.000Z | software/scripts/LoopbackTesting.py | Tubbz-alt/pgp-pcie-apps | 14c63d7240d6e776ecbc25d20d208acd90cb194b | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/scripts/LoopbackTesting.py | Tubbz-alt/pgp-pcie-apps | 14c63d7240d6e776ecbc25d20d208acd90cb194b | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-09-17T12:47:38.000Z | 2020-12-12T23:09:06.000Z | #!/usr/bin/env python3
##############################################################################
## This file is part of 'PGP PCIe APP DEV'.
## It is subject to the license terms in the LICENSE.txt file found in the
## top-level directory of this distribution and at:
## https://confluence.slac.stanford.edu/disp... | 30.791139 | 114 | 0.542446 |
eaca5e1d6b6c0b3a0c295ed41759f106328a2408 | 3,446 | py | Python | MachineInterface/mproxy/core/rpc.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | 1 | 2021-10-31T08:41:58.000Z | 2021-10-31T08:41:58.000Z | MachineInterface/mproxy/core/rpc.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | null | null | null | MachineInterface/mproxy/core/rpc.py | KTH-HPC/vestec-system | 8168b90385468ca5e1ed701b5a0090e4423186c7 | [
"BSD-3-Clause"
] | 1 | 2022-02-08T16:57:05.000Z | 2022-02-08T16:57:05.000Z | import inspect
import json
from .serialisation import JsonObjHelper, JsonTypeError
rpcmethod = RpcMethod.from_function
| 34.118812 | 83 | 0.591991 |