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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
209013f0c2f9bc0d8238ed1fa7a13fadafec827e | 2,948 | py | Python | item_engine/textbase/generate_tests.py | GabrielAmare/ItemEngine | 10277626c3724ad9ae7b934f53e11e305dc34da5 | [
"MIT"
] | null | null | null | item_engine/textbase/generate_tests.py | GabrielAmare/ItemEngine | 10277626c3724ad9ae7b934f53e11e305dc34da5 | [
"MIT"
] | null | null | null | item_engine/textbase/generate_tests.py | GabrielAmare/ItemEngine | 10277626c3724ad9ae7b934f53e11e305dc34da5 | [
"MIT"
] | null | null | null | import os
from typing import List, Iterator
from item_engine.textbase import make_characters
__all__ = ["generate_tests"]
| 29.777778 | 108 | 0.620421 |
2090b0abc90c285fddee287aeae0b35da855bdc6 | 6,546 | py | Python | sonnet/python/modules/block_matrix_test.py | imraviagrawal/sonnet | 3a305e16af9e274b89db2834e3b7cea9cea6806f | [
"Apache-2.0"
] | 1 | 2020-03-10T15:06:41.000Z | 2020-03-10T15:06:41.000Z | sonnet/python/modules/block_matrix_test.py | schaul/sonnet | 3a305e16af9e274b89db2834e3b7cea9cea6806f | [
"Apache-2.0"
] | null | null | null | sonnet/python/modules/block_matrix_test.py | schaul/sonnet | 3a305e16af9e274b89db2834e3b7cea9cea6806f | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 35.193548 | 79 | 0.571494 |
20922cbe834b72450e8a7e093ed7edfd4743f387 | 1,330 | py | Python | Real_Time_Scripts/config_push_file.py | channa006/Basic_Python_Scripts | 4b1b5073ec3eb91dbca8f1541e32a55e466eeb59 | [
"MIT"
] | null | null | null | Real_Time_Scripts/config_push_file.py | channa006/Basic_Python_Scripts | 4b1b5073ec3eb91dbca8f1541e32a55e466eeb59 | [
"MIT"
] | null | null | null | Real_Time_Scripts/config_push_file.py | channa006/Basic_Python_Scripts | 4b1b5073ec3eb91dbca8f1541e32a55e466eeb59 | [
"MIT"
] | null | null | null | from netmiko import ConnectHandler
import os
template = """logging host 192.168.20.5 transport tcp port 514
logging trap 6
interface loopback 30
description "{rtr} loopback interface\""""
username = 'test'
password = "test"
# step 1
# fetch the hostname of the router for the template
for n in range(1, 5):
ip = "... | 30.930233 | 91 | 0.681955 |
20932d1a311b51df866595b775c0cc75fec00dfe | 3,101 | py | Python | runs.py | petch/elsticity2019 | 9e8079896fdd1011ca769f9e8f5af06d788415e2 | [
"Apache-2.0"
] | 1 | 2020-03-30T15:13:31.000Z | 2020-03-30T15:13:31.000Z | runs.py | petch/elasticity2019 | 9e8079896fdd1011ca769f9e8f5af06d788415e2 | [
"Apache-2.0"
] | null | null | null | runs.py | petch/elasticity2019 | 9e8079896fdd1011ca769f9e8f5af06d788415e2 | [
"Apache-2.0"
] | null | null | null | from ahm import *
from dfm import *
set_log_level(LogLevel.WARNING)
# for ls in ['bicgstab', 'cg', 'gmres', 'minres', 'tfqmr']:
# for pc in ['amg', 'hypre_amg', 'hypre_euclid', 'hypre_parasails']:
# timer = Timer()
# try:
# eal2, eali, edl2, edli = run(256, 1, 2, 2, 1, ls, pc, False)
... | 38.283951 | 92 | 0.534989 |
20937e50985275246decc2c29f01d1f6d8867c7d | 10,781 | py | Python | src/p21_CoorAnalyse.py | leekwunfung817/ComputerVision-technique-ObjectRegister | 5bc5f65b3b7b0c246e8d29764e094f2f35b5b50d | [
"MIT"
] | 1 | 2021-01-23T16:26:15.000Z | 2021-01-23T16:26:15.000Z | src/p21_CoorAnalyse.py | leekwunfung817/ComputerVision-technique-ObjectRegister | 5bc5f65b3b7b0c246e8d29764e094f2f35b5b50d | [
"MIT"
] | null | null | null | src/p21_CoorAnalyse.py | leekwunfung817/ComputerVision-technique-ObjectRegister | 5bc5f65b3b7b0c246e8d29764e094f2f35b5b50d | [
"MIT"
] | null | null | null | import cv2
import math
import func_any
import func_apis
import sys
py_name = sys.argv[0]
app_name = py_name.replace('.pyc','').replace('.py','')
exec('import '+app_name)
exec('config = '+app_name+'.config')
import func_colorArea
import json
# history var['movingCoor'] {
# ID { lostTime('lt'):0 , records('r'):[{ ce... | 26.231144 | 145 | 0.663853 |
20967a01a86741b766bf6246f14aa2afa9bcccd8 | 3,397 | py | Python | src/day11/__init__.py | CreatingNull/AoC-2021 | ee0aec7aa2f4d7cb2d62838d39f8c74edae8cc96 | [
"MIT"
] | null | null | null | src/day11/__init__.py | CreatingNull/AoC-2021 | ee0aec7aa2f4d7cb2d62838d39f8c74edae8cc96 | [
"MIT"
] | null | null | null | src/day11/__init__.py | CreatingNull/AoC-2021 | ee0aec7aa2f4d7cb2d62838d39f8c74edae8cc96 | [
"MIT"
] | null | null | null | """--- Day 11: Dumbo Octopus ---"""
from pathlib import Path
from numpy import all as all_
from numpy import array
from numpy import byte
from numpy import where
from aoc import open_utf8
def __execute_step(data: array, bounds: [[]]) -> int:
"""Recursive function to simulate a single step in time for the input
... | 39.045977 | 84 | 0.541066 |
209687c99cd37798d8ff94e233db49d920a9fa57 | 14,653 | py | Python | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | tests/test_record_parsing.py | jodal/python-netsgiro | b180ad3e6c8e4788c2dc539bdcd35b64b2bf6247 | [
"Apache-2.0"
] | null | null | null | from datetime import date
import pytest
import netsgiro
import netsgiro.records
| 34.076744 | 80 | 0.743943 |
2098c33dfd3aab904ba4db79b07d869e376e18df | 3,630 | py | Python | day_1/day1.py | secworks/advent_of_code_2017 | 20ea821710c388429809ca69102a164542d5d798 | [
"BSD-2-Clause"
] | null | null | null | day_1/day1.py | secworks/advent_of_code_2017 | 20ea821710c388429809ca69102a164542d5d798 | [
"BSD-2-Clause"
] | null | null | null | day_1/day1.py | secworks/advent_of_code_2017 | 20ea821710c388429809ca69102a164542d5d798 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#=======================================================================
#
# day_1.py
# --------
# Solution for Advent of code 2017, day 1.
# http://adventofcode.com/2017/day/1
#
# Status: Done.
#
# Joachim Strmbergson 2017
#
#==============================================... | 26.691176 | 75 | 0.316253 |
209aa10a77a0004b2e31e157cd6fb51de7960d31 | 2,718 | py | Python | floodsystem/station.py | knived/ia-flood-risk-project | de911f9a1b90d8a18af664be5af773f6dd0fc0bf | [
"MIT"
] | null | null | null | floodsystem/station.py | knived/ia-flood-risk-project | de911f9a1b90d8a18af664be5af773f6dd0fc0bf | [
"MIT"
] | null | null | null | floodsystem/station.py | knived/ia-flood-risk-project | de911f9a1b90d8a18af664be5af773f6dd0fc0bf | [
"MIT"
] | null | null | null | # Copyright (C) 2018 Garth N. Wells
#
# SPDX-License-Identifier: MIT
"""This module provides a model for a monitoring station, and tools
for manipulating/modifying station data
"""
def inconsistent_typical_range_stations(stations):
"""Returns a list of stations that have inconsistent data. The input
is sta... | 35.298701 | 96 | 0.619941 |
209bc0cc626bc5c803a48b3126392e386031528c | 285 | py | Python | sokoapp/contests/admin.py | Mercy-Nekesa/sokoapp | 6c7bc4c1278b7223226124a49fc33c5b8b6b617a | [
"MIT"
] | 1 | 2019-04-01T05:52:37.000Z | 2019-04-01T05:52:37.000Z | sokoapp/contests/admin.py | Mercy-Nekesa/sokoapp | 6c7bc4c1278b7223226124a49fc33c5b8b6b617a | [
"MIT"
] | 1 | 2015-03-11T16:18:12.000Z | 2015-03-11T16:18:12.000Z | sokoapp/contests/admin.py | Mercy-Nekesa/sokoapp | 6c7bc4c1278b7223226124a49fc33c5b8b6b617a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import TimePeriod
admin.site.register(TimePeriod, TimePeriodAdmin)
| 19 | 61 | 0.778947 |
209c085753176d3ce331b595b6bd600bfc4c7cbd | 4,101 | py | Python | dataset/dataset_seq2seq.py | tianyilt/PQ-NET | fa5a160d78492ecb89ba09889fa9186ba6757921 | [
"MIT"
] | 95 | 2020-03-11T11:59:00.000Z | 2022-03-21T03:51:43.000Z | dataset/dataset_seq2seq.py | tianyilt/PQ-NET | fa5a160d78492ecb89ba09889fa9186ba6757921 | [
"MIT"
] | 23 | 2020-03-29T09:57:47.000Z | 2022-03-12T00:19:17.000Z | dataset/dataset_seq2seq.py | tianyilt/PQ-NET | fa5a160d78492ecb89ba09889fa9186ba6757921 | [
"MIT"
] | 17 | 2020-03-28T06:52:21.000Z | 2022-02-22T05:10:55.000Z | from torch.utils.data import Dataset
import torch
import os
import json
from dataset.data_utils import collect_data_id, load_from_hdf5_seq
# Seq2Seq dataset
######################################################
def pad_tensor(vec, pad, dim):
"""
args:
vec - tensor to pad
pad - the size to ... | 38.688679 | 119 | 0.652524 |
209c796dea1b1a1905e45a4e4298e27aa24479a7 | 16,885 | py | Python | codes/qtm/base.py | vutuanhai237/QuantumTomographyProject | 78058e3faece2209e46c9f9e16a1c38cdb33e7e2 | [
"MIT"
] | null | null | null | codes/qtm/base.py | vutuanhai237/QuantumTomographyProject | 78058e3faece2209e46c9f9e16a1c38cdb33e7e2 | [
"MIT"
] | null | null | null | codes/qtm/base.py | vutuanhai237/QuantumTomographyProject | 78058e3faece2209e46c9f9e16a1c38cdb33e7e2 | [
"MIT"
] | null | null | null | import qiskit
import qtm.progress_bar
import qtm.constant
import qtm.qfim
import qtm.noise
import qtm.optimizer
import qtm.fubini_study
import numpy as np
import types, typing
def measure(qc: qiskit.QuantumCircuit, qubits, cbits=[]):
"""Measuring the quantu circuit which fully measurement gates
Args:
... | 38.816092 | 127 | 0.574178 |
209d4037144ecf01ba71e2b23993e11ab3d64b44 | 1,922 | py | Python | marqeta/response_models/kyc_response.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 21 | 2019-04-12T09:02:17.000Z | 2022-02-18T11:39:06.000Z | marqeta/response_models/kyc_response.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 1 | 2020-07-22T21:27:40.000Z | 2020-07-23T17:38:43.000Z | marqeta/response_models/kyc_response.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 10 | 2019-05-08T14:20:37.000Z | 2021-09-20T18:09:26.000Z | from datetime import datetime, date
from marqeta.response_models.result import Result
from marqeta.response_models.kyc_question import KycQuestion
from marqeta.response_models import datetime_object
import json
import re
| 25.972973 | 85 | 0.686264 |
209da4aca789fa213327efbbc4af529de39c5ec3 | 507 | py | Python | pyexlatex/presentation/beamer/templates/control/tocsection.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/presentation/beamer/templates/control/tocsection.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/presentation/beamer/templates/control/tocsection.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from pyexlatex.models.template import Template
from pyexlatex.presentation import Frame
from pyexlatex.presentation.beamer.control.atbeginsection import AtBeginSection
from pyexlatex.models.toc import TableOfContents
| 33.8 | 79 | 0.751479 |
209ed5edbe99a92a1f9f44f9e785aa2ea5450e94 | 6,725 | py | Python | pbc/df/ft_ao.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | pbc/df/ft_ao.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | pbc/df/ft_ao.py | gmwang18/pyscf | fcd6877751661c8a9743c1c872a4a2b65f6dd7ac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Analytic Fourier transformation AO-pair value for PBC
'''
import ctypes
import numpy
import scipy.linalg
from pyscf import lib
from pyscf import gto
from pyscf.gto.ft_ao import ft_ao as mol_ft_ao
libpbc = lib.load_library('libpbc')
#
# \int m... | 36.950549 | 81 | 0.585576 |
20a1526fd423826377772b56d4d80939f2cee7f2 | 7,639 | py | Python | asyncpushbullet/websocket_server.py | rharder/pushbullet.py | 837fff784eaa4f2c2a1be07662d9b7dceb40c99a | [
"MIT"
] | 12 | 2017-02-21T14:53:37.000Z | 2021-04-23T03:05:48.000Z | asyncpushbullet/websocket_server.py | rharder/pushbullet.py | 837fff784eaa4f2c2a1be07662d9b7dceb40c99a | [
"MIT"
] | null | null | null | asyncpushbullet/websocket_server.py | rharder/pushbullet.py | 837fff784eaa4f2c2a1be07662d9b7dceb40c99a | [
"MIT"
] | 2 | 2021-04-11T05:23:33.000Z | 2021-04-12T01:03:38.000Z | #!/usr/bin/env python3
"""
Easy to use Websocket Server.
Source: https://github.com/rharder/handy
June 2018 - Updated for aiohttp v3.3
August 2018 - Updated for Python 3.7, made WebServer support multiple routes on one port
"""
import asyncio
import logging
import weakref
from functools import partial
from typing imp... | 33.951111 | 109 | 0.641445 |
20a2f7fe77dd649f772e82e21cbc152c7eace4a3 | 5,475 | py | Python | update/checkplay.py | dalton-lee/AutoUpdate | 5c0d03820bfa86a1b3829d9f6a211fcd00d70fed | [
"MIT"
] | 1 | 2016-09-26T15:48:06.000Z | 2016-09-26T15:48:06.000Z | update/checkplay.py | dalton-lee/AutoUpdate | 5c0d03820bfa86a1b3829d9f6a211fcd00d70fed | [
"MIT"
] | null | null | null | update/checkplay.py | dalton-lee/AutoUpdate | 5c0d03820bfa86a1b3829d9f6a211fcd00d70fed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
import os
import sys
import json
import time
import urllib2
import platform
import ConfigParser
UPDATE_CONFIG = 0
if __name__ == '__main__':
if(platform.system() == 'Linux'):
cmd = "ps aux|grep %s|awk '{print $2}'" % __file__
pid = os.getpid()
for ... | 32.017544 | 88 | 0.547397 |
20a31ef74c9a035d85a87d60cf973255e1f7ccbd | 349 | py | Python | backend/app/app/models/__init__.py | benlau6/fastapi-fullstack | 68a46d576310a1c846315228c1251f36ea23f056 | [
"MIT"
] | 1 | 2022-01-29T07:53:35.000Z | 2022-01-29T07:53:35.000Z | backend/app/app/models/__init__.py | benlau6/fastapi-fullstack | 68a46d576310a1c846315228c1251f36ea23f056 | [
"MIT"
] | null | null | null | backend/app/app/models/__init__.py | benlau6/fastapi-fullstack | 68a46d576310a1c846315228c1251f36ea23f056 | [
"MIT"
] | null | null | null | from .team import Team, TeamRead, TeamCreate, TeamUpdate # , TeamReadWithHeroes
from .hero import Hero, HeroRead, HeroCreate, HeroUpdate # , HeroReadWithTeam
from typing import List, Optional
| 26.846154 | 81 | 0.733524 |
20a44fcf51e45dd5f7265e5493d7dc9c9faccbd3 | 48 | py | Python | mltools/train/__init__.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | mltools/train/__init__.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | mltools/train/__init__.py | msc5/ml-tools | 75ca504bdc0495e8a929ad73501b7de692b3089a | [
"Apache-2.0"
] | null | null | null | from .train import *
from .logger import Logger
| 16 | 26 | 0.770833 |
20a454e64794fb3ad382db3340f6045cd10b054e | 6,655 | py | Python | HCI/Gesture Recognizer/Python/DTW.py | k-sae/HCI-Lab | ec40136907eaa9ea983efa7b4761e2bb1f5918a5 | [
"Apache-2.0"
] | 3 | 2017-07-03T12:57:36.000Z | 2017-12-11T19:49:14.000Z | HCI/Gesture Recognizer/Python/DTW.py | kareem2048/HCI-Lab | ec40136907eaa9ea983efa7b4761e2bb1f5918a5 | [
"Apache-2.0"
] | null | null | null | HCI/Gesture Recognizer/Python/DTW.py | kareem2048/HCI-Lab | ec40136907eaa9ea983efa7b4761e2bb1f5918a5 | [
"Apache-2.0"
] | 1 | 2018-07-27T11:00:08.000Z | 2018-07-27T11:00:08.000Z | from math import sin, cos, atan2, sqrt
import json
NumPoints = 64
SquareSize = 250.0
AngleRange = 45.0
AnglePrecision = 2.0
Phi = 0.5 * (-1.0 + sqrt(5.0))
def average(xs): return sum(xs) / len(xs)
| 37.8125 | 1,355 | 0.528475 |
20a715a70344718e9a5265f1a46c33cf8a852d19 | 549 | py | Python | course_contents/exercice_templates/npplt.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | null | null | null | course_contents/exercice_templates/npplt.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | null | null | null | course_contents/exercice_templates/npplt.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | 1 | 2021-12-07T07:15:19.000Z | 2021-12-07T07:15:19.000Z |
import numpy as np
import matplotlib.pyplot as plt
import random
if __name__ == '__main__':
ones = np.ones(30, dtype=np.uint8)
print(ones)
doubled = [x * 2 for x in ones]
doubled = ones * 2
print(doubled)
negatives = ones - doubled
print(negatives)
y = np.random.rand(30)
y *=... | 16.636364 | 42 | 0.599271 |
20a7c1efa318407820ebb42f64ba8d670b3812f6 | 1,800 | py | Python | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | order/models.py | akashbindal91/django_ecommerce_practice | 28b882efe384f8f5312e98cd06263f095756b3a9 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 30 | 73 | 0.675556 |
20a95777691d44ffde183bf2cdc61a1f00e86245 | 2,178 | py | Python | tests/test_RecordsDB.py | SamWolski/LabWeaver-analysis | 43e019987b521946ebdcd6c8385e8a1f31e81d8f | [
"MIT"
] | null | null | null | tests/test_RecordsDB.py | SamWolski/LabWeaver-analysis | 43e019987b521946ebdcd6c8385e8a1f31e81d8f | [
"MIT"
] | null | null | null | tests/test_RecordsDB.py | SamWolski/LabWeaver-analysis | 43e019987b521946ebdcd6c8385e8a1f31e81d8f | [
"MIT"
] | null | null | null | import pytest
import os
import LabWeaver_analysis as lw_ana
DB_DIR = os.path.abspath("tests/assets/db")
def test_create_assign_fetch(new_single_record_db):
## Fetch the record by uids and compare
fetched_record = new_single_record_db.filter_records(
("experiment = 'X2021-03-17'",
"meas_id ... | 28.657895 | 60 | 0.665289 |
20aa02e451e1768804d337782ea383cc0aaebba5 | 7,999 | py | Python | src/hooks.py | nsaphra/layer-tagger | 542f5652256d7d3a3ba50b21b034a700c4e5a5cc | [
"MIT"
] | null | null | null | src/hooks.py | nsaphra/layer-tagger | 542f5652256d7d3a3ba50b21b034a700c4e5a5cc | [
"MIT"
] | null | null | null | src/hooks.py | nsaphra/layer-tagger | 542f5652256d7d3a3ba50b21b034a700c4e5a5cc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from os.path import join, isfile
import data
| 34.038298 | 122 | 0.620578 |
20aa2b45072a77da6b8b4f3ae6b02d4f7ca10fa0 | 61 | py | Python | django_libretto/__init__.py | ze-phyr-us/django-libretto | b19d8aa21b9579ee91e81967a44d1c40f5588b17 | [
"MIT"
] | null | null | null | django_libretto/__init__.py | ze-phyr-us/django-libretto | b19d8aa21b9579ee91e81967a44d1c40f5588b17 | [
"MIT"
] | null | null | null | django_libretto/__init__.py | ze-phyr-us/django-libretto | b19d8aa21b9579ee91e81967a44d1c40f5588b17 | [
"MIT"
] | null | null | null | from . import decorators, forms, http, models, template, url
| 30.5 | 60 | 0.754098 |
20aa667a3ce1f1ef065e0ad54f6366095acc219b | 149 | py | Python | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 12 | 2022-02-19T14:03:41.000Z | 2022-03-16T12:52:47.000Z | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 1 | 2022-03-02T14:55:37.000Z | 2022-03-02T14:55:37.000Z | program-4/4a)Extracting substring.py | sumukhmg/PYTHON-LAB-SET-PROGRAMS | 685d11ae8dd6e4352f83288fff1e3922e84bf022 | [
"MIT"
] | 2 | 2022-03-02T14:36:14.000Z | 2022-03-12T08:37:25.000Z | a = input("Enter the string:")
b = a.find("@")
c = a.find("#")
print("The original string is:",a)
print("The substring between @ and # is:",a[b+1:c]) | 29.8 | 51 | 0.604027 |
20aac86b0cfe5ca3694d0752f807ee2ec5a74264 | 275 | py | Python | tests/test_ui_systemtray.py | scottwernervt/clipmanager | 34e9f45f7d9a3cef423d9d54df5d220aed5fd821 | [
"BSD-4-Clause"
] | 12 | 2016-02-11T04:14:35.000Z | 2021-12-16T08:13:05.000Z | tests/test_ui_systemtray.py | scottwernervt/clipmanager | 34e9f45f7d9a3cef423d9d54df5d220aed5fd821 | [
"BSD-4-Clause"
] | 11 | 2018-02-01T21:20:08.000Z | 2018-07-20T16:02:01.000Z | tests/test_ui_systemtray.py | scottwernervt/clipmanager | 34e9f45f7d9a3cef423d9d54df5d220aed5fd821 | [
"BSD-4-Clause"
] | null | null | null | import pytest
from clipmanager.ui.systemtray import SystemTrayIcon
| 17.1875 | 52 | 0.730909 |
20ab73fd70a43c284e00592caac6b6a270c82873 | 5,413 | py | Python | OverlapSep/lda_classify.py | PingjunChen/ChromosomeSeg | 4b5e576696e9998558478fd4ec6b74809ceea49c | [
"MIT"
] | null | null | null | OverlapSep/lda_classify.py | PingjunChen/ChromosomeSeg | 4b5e576696e9998558478fd4ec6b74809ceea49c | [
"MIT"
] | null | null | null | OverlapSep/lda_classify.py | PingjunChen/ChromosomeSeg | 4b5e576696e9998558478fd4ec6b74809ceea49c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os, sys
import json
import numpy as np
import pickle
from sklearn.metrics import accuracy_score
from sklearn.preprocessing import normalize
from sklearn import svm
from sklearn.metrics import confusion_matrix
import matplotlib.pyplot as plt
if __name__ == "__main__":
train_fe... | 27.902062 | 130 | 0.706632 |
20ab84e3551b4b2def018eef997c7f3a722947b1 | 169 | py | Python | 01_getting_started_with_python/src/_solutions/fahrenheit_to_celsius.py | hello-world-academy/beiersdorf_05-06-2019 | 79b244ae21fa2815bf429653ccf6b51ddc468901 | [
"MIT"
] | 1 | 2020-01-17T14:51:40.000Z | 2020-01-17T14:51:40.000Z | 01_getting_started_with_python/src/_solutions/fahrenheit_to_celsius.py | hello-world-academy/beiersdorf_05-06-2019 | 79b244ae21fa2815bf429653ccf6b51ddc468901 | [
"MIT"
] | null | null | null | 01_getting_started_with_python/src/_solutions/fahrenheit_to_celsius.py | hello-world-academy/beiersdorf_05-06-2019 | 79b244ae21fa2815bf429653ccf6b51ddc468901 | [
"MIT"
] | 1 | 2020-12-04T15:37:28.000Z | 2020-12-04T15:37:28.000Z |
def fahrenheit_to_celsius(F):
'''
Function to compute Celsius from Fahrenheit
'''
K = fahrenheit_to_kelvin(F)
C = kelvin_to_celsius(K)
return C
| 18.777778 | 47 | 0.656805 |
20ade6e8b171d7ee233a3173d6a3f1af222b52e9 | 16,846 | py | Python | treegen.py | murawaki/dialect-latgeo | 24ecb8bee5e489f41afb4432bf0bf17246b5c631 | [
"MIT"
] | 3 | 2020-10-30T15:28:24.000Z | 2021-03-22T19:38:47.000Z | treegen.py | murawaki/dialect-latgeo | 24ecb8bee5e489f41afb4432bf0bf17246b5c631 | [
"MIT"
] | null | null | null | treegen.py | murawaki/dialect-latgeo | 24ecb8bee5e489f41afb4432bf0bf17246b5c631 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import random
import sys
from collections import Counter
import json
from argparse import ArgumentParser
from rand_utils import rand_partition
def build_tree(num_leaves = 10, rootdate = 1000):
"""
Starting from a three-node tree, split a randomly chosen branch to in... | 37.941441 | 189 | 0.540841 |
20aee2c9b1337bdead59c82461021fc28b8c393c | 1,234 | py | Python | tools/generator/__init__.py | Dev00355/fundamental-tools-copy-from-sap | 1857db103789dde84e9eb40105ecaf029a4cf360 | [
"Apache-2.0"
] | null | null | null | tools/generator/__init__.py | Dev00355/fundamental-tools-copy-from-sap | 1857db103789dde84e9eb40105ecaf029a4cf360 | [
"Apache-2.0"
] | null | null | null | tools/generator/__init__.py | Dev00355/fundamental-tools-copy-from-sap | 1857db103789dde84e9eb40105ecaf029a4cf360 | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com>
#
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
from .business_objects import catalog, rfm_sets
VERSION = "0.2"
# T002, T002C
all_languages = {
# iso2
"ar": "AR - ",
"bg": "BG - ",
"ca": "CA - Catal",
... | 23.283019 | 79 | 0.468395 |
20b0e2f533dc8fad0f368de7588fa6959bfc4ef4 | 5,038 | py | Python | src/fft_from_image/Sequences.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 2 | 2016-09-13T06:19:40.000Z | 2017-02-24T21:41:07.000Z | src/fft_from_image/Sequences.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 3 | 2015-11-19T06:28:30.000Z | 2016-06-26T19:46:53.000Z | src/fft_from_image/Sequences.py | szymag/ZFN | d617057ee202e5ac026eb31b8a9598c95b385ba0 | [
"MIT"
] | 2 | 2015-11-17T14:46:58.000Z | 2017-10-31T21:35:15.000Z | from src.fft_from_image.ChainGeneration import ChainGeneration
import numpy as np
if __name__ == "__main__":
pass
| 30.907975 | 101 | 0.577015 |
20b1f95c01cfbfd10bb97b6e92d962f1bcbd59c0 | 3,992 | py | Python | etf_data_loader.py | xSakix/etf_data | b622064fd4c8e1c2e1d477a2731f51ff1cb08e4d | [
"Apache-2.0"
] | null | null | null | etf_data_loader.py | xSakix/etf_data | b622064fd4c8e1c2e1d477a2731f51ff1cb08e4d | [
"Apache-2.0"
] | null | null | null | etf_data_loader.py | xSakix/etf_data | b622064fd4c8e1c2e1d477a2731f51ff1cb08e4d | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import os
import sys
| 29.57037 | 94 | 0.600952 |
20b2e3e32b7c66d0208f3258b3c38daa89dc0d38 | 297 | py | Python | test/sysinfo_test.py | peitur/docker-util | 6579c59b809a3dab80c440baa5fabc669cf88b9b | [
"Apache-2.0"
] | 1 | 2016-05-19T13:43:21.000Z | 2016-05-19T13:43:21.000Z | test/sysinfo_test.py | peitur/docker-util | 6579c59b809a3dab80c440baa5fabc669cf88b9b | [
"Apache-2.0"
] | 1 | 2020-11-23T10:21:16.000Z | 2020-11-23T10:25:16.000Z | test/sysinfo_test.py | peitur/docker-util | 6579c59b809a3dab80c440baa5fabc669cf88b9b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import sys,os,re
sys.path.append( "../lib" )
sys.path.append( "./lib" )
import Controller
import unittest
from pprint import pprint
| 13.5 | 39 | 0.666667 |
20b71d6d70dd441502d84c754b3b91d238f7e7cf | 398 | py | Python | gmmp/management/commands/write_weights_to_dict.py | digideskio/gmmp | d82a4be0787c3a3a9e27dc590d7974f9f884fbb6 | [
"Apache-2.0"
] | 4 | 2020-01-05T09:14:19.000Z | 2022-02-17T03:22:09.000Z | gmmp/management/commands/write_weights_to_dict.py | digideskio/gmmp | d82a4be0787c3a3a9e27dc590d7974f9f884fbb6 | [
"Apache-2.0"
] | 68 | 2019-12-23T02:19:55.000Z | 2021-04-23T06:13:36.000Z | gmmp/management/commands/write_weights_to_dict.py | OpenUpSA/gmmp | d82a4be0787c3a3a9e27dc590d7974f9f884fbb6 | [
"Apache-2.0"
] | 2 | 2019-07-25T11:53:10.000Z | 2020-06-22T02:07:40.000Z | import csv
from pprint import pprint
from django.core.management.base import BaseCommand
| 26.533333 | 51 | 0.582915 |
20b73422519f1d4a4cb8a1cfea73259c2ab1d3d5 | 18,613 | py | Python | src/trends.py | didier-devel/confinement | c1915c259ceb12e7163b5d7b8548e458fdcdd53f | [
"X11"
] | 1 | 2020-05-19T11:25:55.000Z | 2020-05-19T11:25:55.000Z | src/trends.py | didier-devel/confinement | c1915c259ceb12e7163b5d7b8548e458fdcdd53f | [
"X11"
] | null | null | null | src/trends.py | didier-devel/confinement | c1915c259ceb12e7163b5d7b8548e458fdcdd53f | [
"X11"
] | null | null | null | import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
import os
from datetime import datetime, date, timedelta
from sklearn.linear_model import LinearRegression
import scipy
import math
import sys
import locator
file_path = os.path.dirname(os.path.realpath(__file__))
proj_path = os.path.abspath(... | 41.733184 | 178 | 0.669908 |
20b8115dffa3217a7ae85b3889aa549226d9b0c6 | 5,064 | py | Python | tests/test_sorted_feed.py | andyet/thoonk.py | 4535ad05975a6410fe3448ace28d591ba1452f02 | [
"MIT"
] | 63 | 2015-01-13T09:08:19.000Z | 2021-10-05T16:52:52.000Z | tests/test_sorted_feed.py | andyet/thoonk.py | 4535ad05975a6410fe3448ace28d591ba1452f02 | [
"MIT"
] | 2 | 2015-03-19T22:32:01.000Z | 2015-03-23T19:21:24.000Z | tests/test_sorted_feed.py | andyet/thoonk.py | 4535ad05975a6410fe3448ace28d591ba1452f02 | [
"MIT"
] | 12 | 2015-03-16T16:40:38.000Z | 2022-03-28T10:56:24.000Z | import thoonk
from thoonk.feeds import SortedFeed
import unittest
from ConfigParser import ConfigParser
suite = unittest.TestLoader().loadTestsFromTestCase(TestLeaf)
| 34.924138 | 103 | 0.529226 |
20b8217b44b0392c058a55680a9fa936fd77410c | 5,061 | py | Python | dolo/tests/test_solvers.py | christophe-gouel/dolo | d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d | [
"BSD-2-Clause"
] | null | null | null | dolo/tests/test_solvers.py | christophe-gouel/dolo | d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d | [
"BSD-2-Clause"
] | null | null | null | dolo/tests/test_solvers.py | christophe-gouel/dolo | d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d | [
"BSD-2-Clause"
] | null | null | null | import unittest
import numpy as np
from dolo.numeric.ncpsolve import ncpsolve, smooth
if __name__ == '__main__':
unittest.main() | 29.424419 | 150 | 0.563723 |
20b83216ca8a26bd5fed432403994272646d87b3 | 4,627 | py | Python | Solution_6.py | LukeFarrell/Google_Foo_Bar | 22538a8bc75a4eedfcadcc1491b27a710b74f39b | [
"Apache-2.0"
] | null | null | null | Solution_6.py | LukeFarrell/Google_Foo_Bar | 22538a8bc75a4eedfcadcc1491b27a710b74f39b | [
"Apache-2.0"
] | null | null | null | Solution_6.py | LukeFarrell/Google_Foo_Bar | 22538a8bc75a4eedfcadcc1491b27a710b74f39b | [
"Apache-2.0"
] | null | null | null | #Absorbing Markov Matrix Problem
from fractions import Fraction
#Use for brute force calculation of small matricies
| 31.053691 | 112 | 0.519559 |
20b8da61c88575ff4c0f907cbeb1e439d12dd556 | 1,476 | py | Python | banditpylib/learners/mnl_bandit_learner/ts_test.py | Alanthink/banditpylib | ba6dc84d87ae9e9aec48cd622ec9988dccdd18c6 | [
"MIT"
] | 20 | 2020-02-05T23:53:18.000Z | 2021-07-16T21:06:16.000Z | banditpylib/learners/mnl_bandit_learner/ts_test.py | sheelfshah/banditpylib | d455424ed74be1850ee3969b7b31f08d49339005 | [
"MIT"
] | 18 | 2020-02-06T00:23:26.000Z | 2021-07-06T16:37:10.000Z | banditpylib/learners/mnl_bandit_learner/ts_test.py | sheelfshah/banditpylib | d455424ed74be1850ee3969b7b31f08d49339005 | [
"MIT"
] | 8 | 2020-02-06T00:05:10.000Z | 2021-09-18T17:24:29.000Z | from unittest.mock import MagicMock
import google.protobuf.text_format as text_format
import numpy as np
from banditpylib.bandits import CvarReward
from banditpylib.data_pb2 import Actions, Context
from .ts import ThompsonSampling
| 25.894737 | 79 | 0.589431 |
20ba10bd5764ce5847e7ccb1378ad048d2c87711 | 556 | py | Python | maru/lemmatizer/pymorphy.py | chomechome/maru | dae41e250a64a8b6f6ab9647fd60221d5ede8ab6 | [
"MIT"
] | 47 | 2018-09-25T05:17:13.000Z | 2022-03-31T09:27:15.000Z | maru/lemmatizer/pymorphy.py | ojomio/maru | 7a44be7f974c0962f3023f5d064a391d2b4f20b1 | [
"MIT"
] | 2 | 2019-11-26T08:48:54.000Z | 2020-09-10T10:00:39.000Z | maru/lemmatizer/pymorphy.py | ojomio/maru | 7a44be7f974c0962f3023f5d064a391d2b4f20b1 | [
"MIT"
] | 5 | 2019-01-05T17:36:23.000Z | 2021-06-29T08:55:24.000Z | from maru import pymorphy
from maru.lemmatizer.abstract import ILemmatizer
from maru.tag import Tag
from maru.types import Word
| 30.888889 | 62 | 0.633094 |
20bc2480212b49d6e810222a91c0c84532ff3e85 | 230 | py | Python | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | scripts/read_value.py | jayantpatil/brownie-simple-storage | f501e94e88576a9a267ea451c046cedcb7100871 | [
"MIT"
] | null | null | null | from brownie import accounts, config, SimpleStorage
| 19.166667 | 51 | 0.721739 |
20bd0ca933a883e637a3a9cfd0a0a77678655e62 | 586 | py | Python | freetile/helper/xcb.py | rbn42/freetile | 16a5c95650d1887b372f373c2126f96d991f3366 | [
"MIT"
] | 10 | 2017-09-09T23:24:13.000Z | 2020-04-08T17:07:59.000Z | freetile/helper/xcb.py | rbn42/kd_tree_tile | 16a5c95650d1887b372f373c2126f96d991f3366 | [
"MIT"
] | 1 | 2017-08-26T08:09:03.000Z | 2017-08-26T08:09:34.000Z | freetile/helper/xcb.py | rbn42/freetile | 16a5c95650d1887b372f373c2126f96d991f3366 | [
"MIT"
] | null | null | null | import os
import xcffib
from xcffib.testing import XvfbTest
from xcffib.xproto import Atom, ConfigWindow, EventMask, GetPropertyType
conn = xcffib.connect(os.environ['DISPLAY'])
xproto = xcffib.xproto.xprotoExtension(conn)
| 27.904762 | 118 | 0.732082 |
20bd53028e6f1a61201ddc99f23a3270cceb491c | 1,975 | py | Python | MusicApp/forms.py | krishnasagar14/Project | d3e5595e8572fd5d701f0a4aa051377b13967179 | [
"MIT"
] | null | null | null | MusicApp/forms.py | krishnasagar14/Project | d3e5595e8572fd5d701f0a4aa051377b13967179 | [
"MIT"
] | null | null | null | MusicApp/forms.py | krishnasagar14/Project | d3e5595e8572fd5d701f0a4aa051377b13967179 | [
"MIT"
] | null | null | null | __author__ = 'krishnasagar'
from django import forms
# Refer for forms.MultipleChoiceField always, its helpful -
# http://www.programcreek.com/python/example/58199/django.forms.MultipleChoiceField
| 50.641026 | 116 | 0.577722 |
20bf7567661d1841f7671da7c9253c4e59abf9f8 | 48 | py | Python | gen_util/__init__.py | CUrW-SL/DSS-Framework | 43a39b322ffb0eb92dd116e77cf9a8479357a121 | [
"MIT"
] | null | null | null | gen_util/__init__.py | CUrW-SL/DSS-Framework | 43a39b322ffb0eb92dd116e77cf9a8479357a121 | [
"MIT"
] | null | null | null | gen_util/__init__.py | CUrW-SL/DSS-Framework | 43a39b322ffb0eb92dd116e77cf9a8479357a121 | [
"MIT"
] | null | null | null | from .controller_util import get_triggering_dags | 48 | 48 | 0.916667 |
20c039fba739ed74ea6b3b472a04879916cf0b13 | 1,412 | py | Python | yb66/run_xoppy_crystal_YB66.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null | yb66/run_xoppy_crystal_YB66.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null | yb66/run_xoppy_crystal_YB66.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null | import numpy
from xoppy_dabax_util import bragg_calc2
from run_diff_pat import run_diff_pat
from srxraylib.plot.gol import plot
if __name__ == "__main__":
descriptor = 'YB66'
SCANFROM = 0 # in microradiants
SCANTO = 100 # in microradiants
MILLER_INDEX_H = 4
MILLER_INDEX_K = 0
MILLER_INDEX_L = ... | 24.77193 | 102 | 0.53187 |
20c08cb1cb00cfdd681c8e68fa79bcb41a100fd8 | 108 | py | Python | code/arc012_1_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/arc012_1_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/arc012_1_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | d=({"Saturday":0,"Sunday":0,"Monday":5,"Tuesday":4,"Wednesday":3,"Thursday":2,"Friday":1})
print(d[input()]) | 54 | 90 | 0.638889 |
20c0aad0bed3003fbe182d2df998439bf4e1d30a | 9,568 | py | Python | ooi_harvester/utils/parser.py | ooi-data/ooi_harvester | 7ddcad7b05b7ca5d2012ffd2517e1489a4ce489c | [
"MIT"
] | 4 | 2021-01-08T20:01:38.000Z | 2022-03-11T19:03:58.000Z | ooi_harvester/utils/parser.py | ooi-data/ooi_harvester | 7ddcad7b05b7ca5d2012ffd2517e1489a4ce489c | [
"MIT"
] | 7 | 2021-01-08T16:51:50.000Z | 2021-11-02T21:54:22.000Z | ooi_harvester/utils/parser.py | ooi-data/ooi_harvester | 7ddcad7b05b7ca5d2012ffd2517e1489a4ce489c | [
"MIT"
] | null | null | null | import os
import datetime
import math
import traceback
from typing import List
import requests
from loguru import logger
from lxml import etree
from siphon.catalog import TDSCatalog
from dask.utils import memory_repr
import numpy as np
from dateutil import parser
from ooi_harvester.settings import harvest_settings
... | 29.259939 | 102 | 0.595004 |
20c0cfeb06b96a4465675ae0f8ac3dafd13c7aa2 | 537 | py | Python | oro_plugins/migrations/0002_galleryitem_gallery.py | mikeh74/orocus_djangocms | 81946daf17770e27bbe5c56b4caa0529bf3170bc | [
"MIT"
] | null | null | null | oro_plugins/migrations/0002_galleryitem_gallery.py | mikeh74/orocus_djangocms | 81946daf17770e27bbe5c56b4caa0529bf3170bc | [
"MIT"
] | null | null | null | oro_plugins/migrations/0002_galleryitem_gallery.py | mikeh74/orocus_djangocms | 81946daf17770e27bbe5c56b4caa0529bf3170bc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-05 20:15
from django.db import migrations, models
import django.db.models.deletion
| 25.571429 | 135 | 0.640596 |
20c103d7c3032a926b35b8724929fb67863b89e6 | 7,178 | py | Python | src/mcedit2/widgets/propertylist.py | elcarrion06/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 673 | 2015-01-02T02:08:13.000Z | 2022-03-24T19:38:14.000Z | src/mcedit2/widgets/propertylist.py | ozzhates/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 526 | 2015-01-01T02:10:53.000Z | 2022-02-06T16:24:21.000Z | src/mcedit2/widgets/propertylist.py | ozzhates/mcedit2 | 4bb98da521447b6cf43d923cea9f00acf2f427e9 | [
"BSD-3-Clause"
] | 231 | 2015-01-01T16:47:30.000Z | 2022-03-31T21:51:55.000Z | """
propertylist
"""
from __future__ import absolute_import, division, print_function
from collections import namedtuple
import logging
from PySide.QtCore import Qt
from mceditlib import nbt
from PySide import QtGui, QtCore
from mcedit2.util.load_ui import registerCustomWidget
log = logging.getLogger(__name__)
... | 33.542056 | 103 | 0.59766 |
20c1081ab780d304c17bb8b2c18e84dfea0280a2 | 2,810 | py | Python | src/architectures/nmp/adjacency/simple/physics.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 9 | 2017-10-09T17:01:52.000Z | 2018-06-12T18:06:05.000Z | src/architectures/nmp/adjacency/simple/physics.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 31 | 2017-11-01T14:39:02.000Z | 2018-04-18T15:34:24.000Z | src/architectures/nmp/adjacency/simple/physics.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 10 | 2017-10-17T19:23:14.000Z | 2020-07-05T04:44:45.000Z | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from ._adjacency import _Adjacency
class FixedPhysicsAdjacency(_PhysicsAdjacency):
PHYSICS_ADJACENCIES = dict(
tphy=TrainablePhysicsAdjacency,
phy=FixedPhysicsAdjacency
)
| 26.261682 | 83 | 0.607117 |
20c10ea10de758aaf068262804a73e854e7eae25 | 1,527 | py | Python | code/ui.py | Navi-d/Survive | ed8bae508c057a753f5cbb3e33499024bbaaab29 | [
"Apache-2.0"
] | null | null | null | code/ui.py | Navi-d/Survive | ed8bae508c057a753f5cbb3e33499024bbaaab29 | [
"Apache-2.0"
] | null | null | null | code/ui.py | Navi-d/Survive | ed8bae508c057a753f5cbb3e33499024bbaaab29 | [
"Apache-2.0"
] | null | null | null | import pygame
| 39.153846 | 78 | 0.644401 |
20c121357230b7a557b1c97b8dff117f08572b36 | 464 | py | Python | Buy/migrations/0003_singlecardpurchase_initial_sell_price.py | eliilek/TCGProject | ca1f4e89a8b93ec1073526953d1ca3fab21902b0 | [
"MIT"
] | null | null | null | Buy/migrations/0003_singlecardpurchase_initial_sell_price.py | eliilek/TCGProject | ca1f4e89a8b93ec1073526953d1ca3fab21902b0 | [
"MIT"
] | 3 | 2020-02-11T21:16:54.000Z | 2021-06-10T17:30:26.000Z | Buy/migrations/0003_singlecardpurchase_initial_sell_price.py | eliilek/TCGProject | ca1f4e89a8b93ec1073526953d1ca3fab21902b0 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-04-18 19:49
from django.db import migrations, models
| 23.2 | 81 | 0.62069 |
20c4dac7c3aa2eaf1c0b401897ed8058cc13195c | 763 | py | Python | ksp_login/__init__.py | trojsten/ksp_login | 681288d5fc355e0e1a04f41c47ff045e96a143ef | [
"BSD-3-Clause"
] | 2 | 2016-06-27T12:45:35.000Z | 2018-06-19T17:21:44.000Z | ksp_login/__init__.py | koniiiik/ksp_login | 681288d5fc355e0e1a04f41c47ff045e96a143ef | [
"BSD-3-Clause"
] | 7 | 2015-12-10T15:32:57.000Z | 2019-05-12T12:28:59.000Z | ksp_login/__init__.py | trojsten/ksp_login | 681288d5fc355e0e1a04f41c47ff045e96a143ef | [
"BSD-3-Clause"
] | 2 | 2016-04-07T08:44:08.000Z | 2019-02-10T12:52:13.000Z | __version__ = '0.6.2'
__version_info__ = tuple(map(int, __version__.split('.')))
from django.utils.translation import ugettext_lazy as _
__activate_social_auth_monkeypatch()
| 33.173913 | 77 | 0.806029 |
20c7757584285b39043a17c5228fbc30607e0f7e | 1,709 | py | Python | agents/rule_based/keywords.py | didi/MEEP | eb668fe598e40d244f204363d360babbe1fe0dc2 | [
"Apache-2.0"
] | 17 | 2020-09-09T02:32:14.000Z | 2021-10-01T09:46:40.000Z | agents/rule_based/keywords.py | didi/MEEP | eb668fe598e40d244f204363d360babbe1fe0dc2 | [
"Apache-2.0"
] | 2 | 2020-12-02T09:10:03.000Z | 2020-12-02T20:31:05.000Z | agents/rule_based/keywords.py | didi/MEEP | eb668fe598e40d244f204363d360babbe1fe0dc2 | [
"Apache-2.0"
] | 3 | 2020-10-10T09:14:43.000Z | 2022-01-18T02:36:31.000Z | from enum import Enum
INDICATORS = {
IndicatorType.CLEAR_CONTEXT:
set(['hm', 'hmm', 'hrm', 'oops', 'sorry', 'actually']),
IndicatorType.YES: {
'yes': [[]], 'sure': [[]], 'alright': [[]], 'definitely': [[]],
'ok': [[]], 'okay': [[]], 'yep': [[]], 'yeah': [[]], 'yah': [[]],
'per... | 23.736111 | 73 | 0.392627 |
20c77eabbc6690e3c5bb68e42dc26beb132dc547 | 1,549 | py | Python | tensordata/utils/conda/_conda.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 13 | 2019-01-08T10:22:39.000Z | 2020-06-17T10:02:47.000Z | tensordata/utils/conda/_conda.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | null | null | null | tensordata/utils/conda/_conda.py | Hourout/tensordata | cbef6742ee0d3bfc4b886358fc01618bb5b63603 | [
"Apache-2.0"
] | 1 | 2020-06-17T10:02:49.000Z | 2020-06-17T10:02:49.000Z | import subprocess
__all__ = ['view_env', 'create_env', 'remove_env']
def view_env():
"""Get virtual environment info."""
cmd = f"conda info -e"
s = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0]
s = s.decode('utf-8').strip().split('\n')[2:]
s = [i.split(' ') for i in s]... | 30.98 | 82 | 0.631375 |
20ca2e167b593c60175aa9358fd246b00b8a7d20 | 382 | py | Python | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 5 | 2020-12-20T16:12:18.000Z | 2022-03-29T09:56:34.000Z | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 9 | 2020-09-25T08:27:41.000Z | 2022-01-03T08:41:48.000Z | ebrains_drive/__init__.py | apdavison/ebrains-drive | 8ff11fc60e77c1b605485f550efc350c1a5f443a | [
"Apache-2.0"
] | 2 | 2020-09-18T17:32:38.000Z | 2020-10-13T13:34:38.000Z | """
A Python package for working with the Human Brain Project Model Validation Framework.
Andrew Davison and Shailesh Appukuttan, CNRS, 2017-2020
License: BSD 3-clause, see LICENSE.txt
"""
from ebrains_drive.client import DriveApiClient | 27.285714 | 85 | 0.767016 |
20cc6c6f266cf22a4841a420e28fb03f3c12ecb1 | 1,290 | py | Python | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | test/mock/mock_lens.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | from test.mock.mock_inversion import MockMapper
from test.mock.mock_galaxy import MockHyperGalaxy | 28.043478 | 116 | 0.713178 |
20cf19c220c9e244648b1599487f047cd24ebb59 | 4,623 | py | Python | blog/models.py | florimondmanca/personal-api | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | [
"MIT"
] | 4 | 2018-08-17T08:06:06.000Z | 2020-02-20T15:15:56.000Z | blog/models.py | florimondmanca/personal-api | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | [
"MIT"
] | 2 | 2018-10-08T15:59:58.000Z | 2018-10-20T16:50:13.000Z | blog/models.py | florimondmanca/personal-api | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | [
"MIT"
] | 1 | 2019-09-14T23:15:10.000Z | 2019-09-14T23:15:10.000Z | """Blog models."""
from typing import Union
from django.contrib.postgres.fields import ArrayField
from django.db import models
from django.utils import timezone
from django.utils.text import Truncator, slugify
from markdownx.models import MarkdownxField
from .dbfunctions import Unnest
from .signals import post_publ... | 33.021429 | 79 | 0.653472 |
20cf365aa273b16e874ac91e02b64fabdf860834 | 148 | py | Python | backend/app/db/base.py | jnana-cetana/XMeme | cb7d5e31c455dc3c7e751dff9e7c8e067090936b | [
"MIT"
] | 19 | 2021-02-15T19:55:25.000Z | 2022-02-01T09:05:07.000Z | backend/app/db/base.py | jnana-cetana/XMeme | cb7d5e31c455dc3c7e751dff9e7c8e067090936b | [
"MIT"
] | null | null | null | backend/app/db/base.py | jnana-cetana/XMeme | cb7d5e31c455dc3c7e751dff9e7c8e067090936b | [
"MIT"
] | null | null | null | # Import all the models, so that Base has them before being imported by Alembic
from app.db.base_class import Base
from app.models.meme import Meme
| 37 | 79 | 0.804054 |
20cf807d2352e8fd6b3d5ef73df7e12b1b93cfcd | 6,506 | py | Python | viseron/watchdog/thread_watchdog.py | magicmonkey/viseron | 01733e6185b3467d6336c4d3f93f367bfebf13e8 | [
"MIT"
] | null | null | null | viseron/watchdog/thread_watchdog.py | magicmonkey/viseron | 01733e6185b3467d6336c4d3f93f367bfebf13e8 | [
"MIT"
] | null | null | null | viseron/watchdog/thread_watchdog.py | magicmonkey/viseron | 01733e6185b3467d6336c4d3f93f367bfebf13e8 | [
"MIT"
] | null | null | null | """Watchdog for long-running threads."""
import datetime
import logging
import threading
from typing import Callable, Dict, List, Optional
from viseron.watchdog import WatchDog
LOGGER = logging.getLogger(__name__)
def clone(self):
"""Return a clone of the thread to restart it."""
if self._base_c... | 35.747253 | 88 | 0.628497 |
20cfdc7ab6f4e1e82e2f218fc1e668d19a86e472 | 1,441 | py | Python | day3/main.py | jaydom28/Advent-Of-Code-2021 | 9f846a6b95786c2bc8f6031120495f3985cbe4bf | [
"MIT"
] | null | null | null | day3/main.py | jaydom28/Advent-Of-Code-2021 | 9f846a6b95786c2bc8f6031120495f3985cbe4bf | [
"MIT"
] | null | null | null | day3/main.py | jaydom28/Advent-Of-Code-2021 | 9f846a6b95786c2bc8f6031120495f3985cbe4bf | [
"MIT"
] | null | null | null |
lines = read_lines('test.txt')
counts = count_bits(lines)
total_lines = len(lines)
gamma = [int(c > total_lines/2) for c in counts]
epsilon = [int(not bit) for bit in gamma]
gamma = int(''.join(str(bit) for bit in gamma), 2)
epsilon = int(''.join(str(bit) for bit in epsilon), 2)
print(f'Part 1:\n {gamma * epsilon... | 27.711538 | 84 | 0.659264 |
20d03fc5918a1b799cd098fc0deb127b9278e5cc | 8,679 | py | Python | tests/torch_api/test_multi_models.py | mmathys/bagua | e17978690452318b65b317b283259f09c24d59bb | [
"MIT"
] | 635 | 2021-06-11T03:03:11.000Z | 2022-03-31T14:52:57.000Z | tests/torch_api/test_multi_models.py | mmathys/bagua | e17978690452318b65b317b283259f09c24d59bb | [
"MIT"
] | 181 | 2021-06-10T12:27:19.000Z | 2022-03-31T04:08:19.000Z | tests/torch_api/test_multi_models.py | shjwudp/bagua | 7e1b438e27e3119b23e472f5b9217a9862932bef | [
"MIT"
] | 71 | 2021-06-10T13:16:53.000Z | 2022-03-22T09:26:22.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from tests.internal.common_utils import find_free_port
import unittest
import multiprocessing
import os
from bagua.torch_api.utils import flatten
import bagua.torch_api as bagua
from tests import skip_if_cuda_not_available
N_EPOCHS = 10
def _init_b... | 28.833887 | 84 | 0.577486 |
20d0d67fe1712516c0256a25ca26beffb42631c7 | 187 | py | Python | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | 1 | 2019-02-06T01:49:18.000Z | 2019-02-06T01:49:18.000Z | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | 2-6 motto2.py | Holaplace/path_to_python | 8fae2aca8d6da04c39a67514948fdf50e883750a | [
"MIT"
] | null | null | null | famous_name = "albert einstein"
motto = "A person who never made a mistake never tried anything new."
message = famous_name.title() + "once said, " + '"' + motto + '"'
print(message) | 37.4 | 70 | 0.673797 |
20d1c04ac4717063c357eb5f6d023fd7588ec86e | 279 | py | Python | dataset/classification_datasets/__init__.py | JetBrains-Research/contrastive-learning-framework | f213ba2928677e46f7c3938afc96cbbdc64ed77c | [
"MIT"
] | 4 | 2020-12-25T10:00:01.000Z | 2022-03-17T21:09:37.000Z | dataset/classification_datasets/__init__.py | JetBrains-Research/contrastive-learning-framework | f213ba2928677e46f7c3938afc96cbbdc64ed77c | [
"MIT"
] | 4 | 2021-03-12T09:50:20.000Z | 2021-05-07T17:59:20.000Z | dataset/classification_datasets/__init__.py | JetBrains-Research/contrastive-learning-framework | f213ba2928677e46f7c3938afc96cbbdc64ed77c | [
"MIT"
] | 1 | 2022-03-17T21:09:41.000Z | 2022-03-17T21:09:41.000Z | from .code_transformer_dataset import CodeTransformerDataset
from .graph_dataset import GraphDataset
from .path_dataset import PathDataset
from .text_dataset import TextDataset
__all__ = [
"TextDataset",
"PathDataset",
"GraphDataset",
"CodeTransformerDataset"
]
| 23.25 | 60 | 0.78853 |
20d1ef885fc67554016c8b52e8e905e73ffbdc1a | 2,826 | py | Python | sovtokenfees/sovtokenfees/test/conftest.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/test/conftest.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/test/conftest.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | from sovtoken.constants import XFER_PUBLIC, RESULT
from sovtoken.main import integrate_plugin_in_node as enable_token
from sovtokenfees.main import integrate_plugin_in_node as enable_fees
from plenum.common.util import randomString
from plenum.common.constants import TARGET_NYM, TRUSTEE_STRING, VERKEY
# fixtures, do ... | 26.166667 | 83 | 0.734607 |
20d20589a9943742a40657aa7ecca6a92ff061ab | 10,688 | py | Python | peregrinearb/utils/single_exchange.py | kecheon/peregrine | 3d308ff3134bc00900421b248f9f93d7ad31ddb6 | [
"MIT"
] | 954 | 2018-02-19T23:20:08.000Z | 2022-03-28T16:37:43.000Z | peregrinearb/utils/single_exchange.py | edouardkombo/peregrine | a3346e937d417acd91468884ee1fc14586cf317d | [
"MIT"
] | 55 | 2018-02-17T00:12:03.000Z | 2021-11-09T03:57:34.000Z | peregrinearb/utils/single_exchange.py | edouardkombo/peregrine | a3346e937d417acd91468884ee1fc14586cf317d | [
"MIT"
] | 307 | 2018-02-24T06:00:13.000Z | 2022-03-30T01:28:32.000Z | import asyncio
import math
import networkx as nx
import ccxt.async_support as ccxt
import datetime
import logging
from .logging_utils import FormatForLogAdapter
__all__ = [
'FeesNotAvailable',
'create_exchange_graph',
'load_exchange_graph',
]
adapter = FormatForLogAdapter(logging.getLogger('peregrinearb.u... | 47.292035 | 120 | 0.644835 |
20d3448de95befb1c3e21efe82264d8a693a5b30 | 1,223 | py | Python | week3/utilities/foo_synonyms.py | fredriko/search_with_machine_learning_course | 85670d7adf337fede418fa5665b3c5ee80e42b2b | [
"Apache-2.0"
] | null | null | null | week3/utilities/foo_synonyms.py | fredriko/search_with_machine_learning_course | 85670d7adf337fede418fa5665b3c5ee80e42b2b | [
"Apache-2.0"
] | null | null | null | week3/utilities/foo_synonyms.py | fredriko/search_with_machine_learning_course | 85670d7adf337fede418fa5665b3c5ee80e42b2b | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
import fasttext
if __name__ == "__main__":
targets = [
"red", "black", "orange", "white", "gray/black", # colors
"sony", "apple", "canon", "nikon", "dell", # brands
"32", "an", "the", "4", "to", # numbers and stopwords
"inch", "cm", "oz", "gb", "mb", # ... | 33.054054 | 103 | 0.54211 |
20d57e1a8a831c6f94414a23cecef0df0294572f | 269 | py | Python | tests/conftest.py | BookOps-CAT/cat-maintenance | 264d43bf8a87b80ad2fa439ae4c5bd8f719f02da | [
"MIT"
] | null | null | null | tests/conftest.py | BookOps-CAT/cat-maintenance | 264d43bf8a87b80ad2fa439ae4c5bd8f719f02da | [
"MIT"
] | null | null | null | tests/conftest.py | BookOps-CAT/cat-maintenance | 264d43bf8a87b80ad2fa439ae4c5bd8f719f02da | [
"MIT"
] | null | null | null | import json
import pytest
| 16.8125 | 55 | 0.669145 |
20d64d6fa5008c4a2703a9b2d7e8670ca7b957a0 | 3,474 | py | Python | PROJECTS/CHALLENGE_BAXTER_PY/denavit_hartenberg.py | san99tiago/MY_ROBOTICS | 871ddbedd0b3fb4292facfa7a0cdf190a6df7f88 | [
"MIT"
] | 1 | 2021-03-26T16:39:15.000Z | 2021-03-26T16:39:15.000Z | PROJECTS/CHALLENGE_BAXTER_PY/denavit_hartenberg.py | san99tiago/MY_ROBOTICS | 871ddbedd0b3fb4292facfa7a0cdf190a6df7f88 | [
"MIT"
] | 1 | 2021-03-21T22:32:12.000Z | 2021-03-21T22:32:12.000Z | PROJECTS/CHALLENGE_BAXTER_PY/denavit_hartenberg.py | san99tiago/MY_ROBOTICS | 871ddbedd0b3fb4292facfa7a0cdf190a6df7f88 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# DENAVIT HARTENBERG FOR NUMERICAL INPUTS
# SANTIAGO GARCIA AND ELKIN GUERRA
import numpy as np
import math
import transformation as transf
def denavit_hartenberg(dh_table, show_info):
"""
Get transformation matrix from Denavit Hartenberg input table
:param dh_matrix: main denavit h... | 32.166667 | 73 | 0.560161 |
20d6ff4cc9bc454128516dd3b71191a6e4996eac | 6,089 | py | Python | reid.py | vyzboy92/Accelerated-Face-Reidentification-and-Emotion-Recognition | f653f6fbcc82f39667c3c8fa2025a8c26825c92a | [
"MIT"
] | 2 | 2019-05-01T23:17:46.000Z | 2019-12-15T18:20:45.000Z | reid.py | vyzboy92/Accelerated-Face-Reidentification-and-Emotion-Recognition | f653f6fbcc82f39667c3c8fa2025a8c26825c92a | [
"MIT"
] | null | null | null | reid.py | vyzboy92/Accelerated-Face-Reidentification-and-Emotion-Recognition | f653f6fbcc82f39667c3c8fa2025a8c26825c92a | [
"MIT"
] | 2 | 2019-04-17T08:02:20.000Z | 2019-04-24T03:08:46.000Z | from __future__ import print_function
import face_recognition
import cv2
import numpy as np
import pymongo
import sys
import time
import logging as log
from imutils.video import WebcamVideoStream
from openvino.inference_engine import IENetwork, IEPlugin
em_client = pymongo.MongoClient("mongodb://localhost:27017/")
dbl... | 40.865772 | 117 | 0.628018 |
20d70585f5c3c218441a7284e243ac4d8d8a6342 | 1,158 | py | Python | ch02/q2-1.py | iamnicoj/ctci | f71f995cb3d3257d3d58f1f167fcab8eaf84d457 | [
"MIT"
] | null | null | null | ch02/q2-1.py | iamnicoj/ctci | f71f995cb3d3257d3d58f1f167fcab8eaf84d457 | [
"MIT"
] | 3 | 2021-03-19T14:35:27.000Z | 2021-03-20T16:12:34.000Z | ch02/q2-1.py | iamnicoj/ctci | f71f995cb3d3257d3d58f1f167fcab8eaf84d457 | [
"MIT"
] | null | null | null | from linked_list import linked_list
#O(N^2)
####################################
myll = linked_list()
remove_dups(myll)
myll.print_list()
#####
myll = linked_list()
myll.add(2)
remove_dups(myll)
myll.print_list()
#####
myll = linked_list()
myll.add(2)
myll.add(2) #
remove_dups(myll)
myll.print_list... | 17.029412 | 70 | 0.625216 |
20d7a4da173d2411bdd31ec724e75ad823385ca2 | 1,600 | py | Python | lib/test_collect_args.py | agnes-yang/firecam | 9282d1b5b83be3abf6a137f7a72c090a9eca05f6 | [
"Apache-2.0"
] | 10 | 2019-12-19T02:37:33.000Z | 2021-12-07T04:47:08.000Z | lib/test_collect_args.py | agnes-yang/firecam | 9282d1b5b83be3abf6a137f7a72c090a9eca05f6 | [
"Apache-2.0"
] | 5 | 2019-10-27T23:22:52.000Z | 2020-02-13T23:08:15.000Z | lib/test_collect_args.py | agnes-yang/firecam | 9282d1b5b83be3abf6a137f7a72c090a9eca05f6 | [
"Apache-2.0"
] | 13 | 2019-09-24T18:53:24.000Z | 2021-07-16T05:57:18.000Z | # Copyright 2018 The Fuego Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 29.090909 | 84 | 0.626875 |
20d874cf234ddb191d66611c5aac626a8862662e | 668 | py | Python | python/test/grammar_translator/testCallEnd.py | ROCmSoftwarePlatform/gpufort | b3d392cf28200cd9b3b2f77689d5a81176b3ec42 | [
"MIT"
] | 57 | 2021-10-04T19:52:55.000Z | 2022-03-29T17:41:36.000Z | python/test/grammar_translator/testCallEnd.py | mjklemm/gpufort | b3d392cf28200cd9b3b2f77689d5a81176b3ec42 | [
"MIT"
] | 12 | 2021-09-29T11:32:59.000Z | 2021-12-09T11:39:54.000Z | python/test/grammar_translator/testCallEnd.py | ROCmSoftwarePlatform/gpufort | b3d392cf28200cd9b3b2f77689d5a81176b3ec42 | [
"MIT"
] | 5 | 2021-10-05T06:16:28.000Z | 2022-02-24T14:32:24.000Z | #!/usr/bin/env python3
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
import addtoplevelpath
import sys
import test
import translator.translator
import grammar as translator
testdata = """
1 )
a_d )
psi_d )
2 * lda, ps_d, 1, 1.D0, psi_d, 1 )
spsi_d )
a_d )
1, spsi... | 21.548387 | 70 | 0.636228 |
20d9b17508efc8213294cb535823ea481dd4acf0 | 7,020 | py | Python | nnef/fold_os.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | 2 | 2021-04-30T06:07:49.000Z | 2021-06-30T06:47:00.000Z | nnef/fold_os.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | null | null | null | nnef/fold_os.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import torch
from physics.protein_os import Protein
import options
from utils import write_pdb, write_pdb_sample, transform_profile, load_protein
from physics.anneal import AnnealCoords, AnnealFrag
# from physics.move import SampleICNext
from physics.grad_minimizer import *
from p... | 43.602484 | 115 | 0.674359 |
20d9e7bea557d0ce53ddbee800b0871a1793d79b | 1,002 | py | Python | Bookshelf/MotorTest2.py | anju777/Baby-BB8 | 5914ea5e5b9daf7fc95b32fcfdb4cf216cf35d02 | [
"MIT"
] | 1 | 2021-03-31T20:40:05.000Z | 2021-03-31T20:40:05.000Z | Bookshelf/MotorTest2.py | anju777/Baby-BB8 | 5914ea5e5b9daf7fc95b32fcfdb4cf216cf35d02 | [
"MIT"
] | null | null | null | Bookshelf/MotorTest2.py | anju777/Baby-BB8 | 5914ea5e5b9daf7fc95b32fcfdb4cf216cf35d02 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
# for GPIO numbering, choose BCM
#GPIO.setmode(GPIO.BCM)
# or, for pin numbering, choose BOARD
GPIO.setmode(GPIO.BOARD)
# battery1 = 2
# battery2 = 4
AEnable = 13 #27
AIN1 = 22 #25
AIN2 = 18 #24
# BIN1 = 23 # 16
# BIN2 = 18 # 12
GPIO.setup(AEnable, GPIO.OUT)
GPIO.set... | 19.647059 | 39 | 0.660679 |
20db30683d6b543731d432357e62120eaca639e6 | 6,272 | py | Python | routes/customer.py | trqanees94/braintree_fast | 8897aa51821ac4b868076a27fe65a74692d33647 | [
"MIT"
] | null | null | null | routes/customer.py | trqanees94/braintree_fast | 8897aa51821ac4b868076a27fe65a74692d33647 | [
"MIT"
] | null | null | null | routes/customer.py | trqanees94/braintree_fast | 8897aa51821ac4b868076a27fe65a74692d33647 | [
"MIT"
] | null | null | null | #bson
from bson import ObjectId
# clients
from clients.mongodb import MongoDB
# braintree/ stripes gateway
from gateway import generate_client_token, transact, find_transaction, find_customer, customer, update_customer ,find_all_customers, \
stripe_customer, update_stripe_customer
# flask
from fl... | 38.243902 | 134 | 0.629464 |
20dd4926d6dbb2603389704c797b5810776b1bfd | 596 | py | Python | src/python/web/handler/status.py | AlekLT/seedsync | d370a94253384e1e6e5caa5fcd44692f1d1f1ce3 | [
"Apache-2.0"
] | 255 | 2017-12-25T00:53:40.000Z | 2022-03-27T10:29:21.000Z | src/python/web/handler/status.py | AlekLT/seedsync | d370a94253384e1e6e5caa5fcd44692f1d1f1ce3 | [
"Apache-2.0"
] | 111 | 2018-01-04T10:35:49.000Z | 2022-03-29T15:12:52.000Z | src/python/web/handler/status.py | AlekLT/seedsync | d370a94253384e1e6e5caa5fcd44692f1d1f1ce3 | [
"Apache-2.0"
] | 53 | 2017-12-25T09:34:19.000Z | 2022-03-15T17:53:27.000Z | # Copyright 2017, Inderpreet Singh, All rights reserved.
from bottle import HTTPResponse
from common import Status, overrides
from ..web_app import IHandler, WebApp
from ..serialize import SerializeStatusJson
| 28.380952 | 71 | 0.746644 |
20dde221df3a2c58bbcc72c289e0409920f45220 | 3,504 | py | Python | scraper/scraper.py | JimmyAustin/Dota2TeamBuilder | 2d8edddafcf4e5e82a7f3ab14bd9a364164c2829 | [
"WTFPL"
] | null | null | null | scraper/scraper.py | JimmyAustin/Dota2TeamBuilder | 2d8edddafcf4e5e82a7f3ab14bd9a364164c2829 | [
"WTFPL"
] | null | null | null | scraper/scraper.py | JimmyAustin/Dota2TeamBuilder | 2d8edddafcf4e5e82a7f3ab14bd9a364164c2829 | [
"WTFPL"
] | null | null | null | import dota2api
from ratelimit import limits, sleep_and_retry
import os
import json
from time import sleep
import random
directory = 'scrape_results'
all_files = [os.path.join(directory, x) for x in os.listdir(directory)]
seen_players = set()
unseen_player_list = []
seen_match_ids = set()
duplicate_matches_count = ... | 32.146789 | 129 | 0.652112 |
20de348221b3567b6adee4a2431833e7187c5364 | 9,728 | py | Python | datasets/ett/ett.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 3,395 | 2020-05-13T21:16:50.000Z | 2020-09-10T14:36:50.000Z | datasets/ett/ett.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 370 | 2020-05-13T21:28:57.000Z | 2020-09-10T11:03:38.000Z | datasets/ett/ett.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 258 | 2020-05-15T01:17:09.000Z | 2020-09-10T12:41:43.000Z | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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.... | 40.032922 | 117 | 0.557257 |
20df17921cd623c6203bd44e441ee7f224b6468c | 2,273 | py | Python | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 04_Data Manipulation with pandas/02_Aggregating Data/09_Multiple grouped summaries.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
09 - Multiple grouped summaries
Earlier in this chapter, you saw that the .agg() method is useful to
compute multiple statistics on multiple variables. It also works with
grouped data. NumPy, which is imported as np, has many different summary
statistics functions, including: np.min, np.max, np.mean, and np.median... | 45.46 | 124 | 0.571051 |
20e09e04ed38a70521575f37bf12b56637794b22 | 2,739 | py | Python | TestGenerator.py | HIAOAIH/MeRGAN | 1191111d53440f0c361162a721e9a0b701243dd4 | [
"MIT"
] | null | null | null | TestGenerator.py | HIAOAIH/MeRGAN | 1191111d53440f0c361162a721e9a0b701243dd4 | [
"MIT"
] | null | null | null | TestGenerator.py | HIAOAIH/MeRGAN | 1191111d53440f0c361162a721e9a0b701243dd4 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torchvision import datasets, transforms
from ACGAN import Generator
| 40.880597 | 155 | 0.593282 |
20e1940d3d4620392074c473e2d9cc09298def3a | 4,915 | py | Python | tests/test_rpReaction.py | brsynth/rplibs | 37608cce6335783863455fb5696dbee032d46ad5 | [
"MIT"
] | null | null | null | tests/test_rpReaction.py | brsynth/rplibs | 37608cce6335783863455fb5696dbee032d46ad5 | [
"MIT"
] | null | null | null | tests/test_rpReaction.py | brsynth/rplibs | 37608cce6335783863455fb5696dbee032d46ad5 | [
"MIT"
] | null | null | null | """
Created on May 28 2021
@author: Joan Hrisson
"""
from unittest import TestCase
from copy import deepcopy
from rplibs import rpReaction
| 27.305556 | 77 | 0.521872 |
20e33764352d730024b8287c9a46b924f5639e3d | 342 | py | Python | MatrixSqrt.py | aminya/smop | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | null | null | null | MatrixSqrt.py | aminya/smop | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | 1 | 2019-10-16T03:45:08.000Z | 2019-10-16T03:45:08.000Z | MatrixSqrt.py | aminya/smop-for-Julia-Matlab-Python-Benchmark | d1ef857dbae08ed071b54685c106d4b5b40747c3 | [
"MIT"
] | null | null | null | # Generated with SMOP 0.41
from libsmop import *
# MatrixSqrt.m
if __name__ == '__main__':
pass
| 18 | 63 | 0.660819 |
20e3e3987464531bc5bd471dbee340a002da3c03 | 45 | py | Python | networks/std/__init__.py | Chappie733/MLPack | 223b142ff22dc35b9122183435afdc473a2c0b47 | [
"MIT"
] | null | null | null | networks/std/__init__.py | Chappie733/MLPack | 223b142ff22dc35b9122183435afdc473a2c0b47 | [
"MIT"
] | null | null | null | networks/std/__init__.py | Chappie733/MLPack | 223b142ff22dc35b9122183435afdc473a2c0b47 | [
"MIT"
] | null | null | null | from .layers import *
from .network import *
| 15 | 22 | 0.733333 |
20e3f8bfa43cbc790e7b99c0ea59b40a7436d373 | 4,214 | py | Python | VGG19.py | Ralph-Finn/Deep-Image-Analogy-MXNet | 600b1f724fb58b11a260a80c089283226006bf37 | [
"MIT"
] | 2 | 2018-04-27T16:34:14.000Z | 2021-08-22T14:47:51.000Z | VGG19.py | Ralph-Finn/Deep-Image-Analogy-MXNet | 600b1f724fb58b11a260a80c089283226006bf37 | [
"MIT"
] | null | null | null | VGG19.py | Ralph-Finn/Deep-Image-Analogy-MXNet | 600b1f724fb58b11a260a80c089283226006bf37 | [
"MIT"
] | null | null | null | """
This code is modified from harveyslash's work (https://github.com/harveyslash/Deep-Image-Analogy-PyTorch)
"""
import mxnet as mx
from mxnet.gluon.model_zoo import vision as models
from mxnet.gluon import nn
from mxnet import nd
from mxnet import autograd
from time import time
from mxnet import optimizer
import sys... | 36.964912 | 114 | 0.561224 |
20e4d477f0b097ab0df3742373535cd12e0f32f8 | 3,964 | py | Python | backend/indexing/test_fragment_doc.py | rsimmons/massif | d97ee63f618e0d05308722158992f804e2c54fa5 | [
"MIT"
] | 24 | 2021-06-20T16:54:14.000Z | 2022-03-31T03:46:13.000Z | backend/indexing/test_fragment_doc.py | rsimmons/massif | d97ee63f618e0d05308722158992f804e2c54fa5 | [
"MIT"
] | 6 | 2021-07-04T14:49:38.000Z | 2022-03-27T09:19:58.000Z | backend/indexing/test_fragment_doc.py | rsimmons/massif | d97ee63f618e0d05308722158992f804e2c54fa5 | [
"MIT"
] | 1 | 2021-08-25T14:31:22.000Z | 2021-08-25T14:31:22.000Z | import json
from .fragment_doc import fragment_srt, fragment_syosetu, has_unbalanced_quotes, extract_kana_kanji
EXTRACT_KANA_KANJI_CASES = [
['asdf.!', ''],
['', ''],
['asdfd', ''],
['foo', ''],
]
for [text, target] in EXTRACT_KANA_KANJI_CASES:
if extract_kana_kanji(text) != target:
print(... | 23.046512 | 109 | 0.461403 |
20e716c140ceb51fcabaef36632da4cd0336339d | 1,399 | py | Python | tetrapod/session.py | uwekamper/tetrapod | 1782a2e8a0c4cd93ff1499fdb2fead45a2d5cbd2 | [
"MIT"
] | null | null | null | tetrapod/session.py | uwekamper/tetrapod | 1782a2e8a0c4cd93ff1499fdb2fead45a2d5cbd2 | [
"MIT"
] | null | null | null | tetrapod/session.py | uwekamper/tetrapod | 1782a2e8a0c4cd93ff1499fdb2fead45a2d5cbd2 | [
"MIT"
] | null | null | null | import os
import math
import time
import datetime
import logging
from . import podio_auth
log = logging.getLogger(__file__)
def try_environment_token():
"""
Try to get the token from the environment variables TETRAPOD_CLIENT_ID and TETRAPOD_ACCESS_TOKEN.
:return:
"""
try:
client_id = os.... | 31.795455 | 101 | 0.716226 |
20e755a64ee836a08b5fdee412b040a3939be9af | 652 | py | Python | src/minerva_db/sql/models/group.py | labsyspharm/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | null | null | null | src/minerva_db/sql/models/group.py | labsyspharm/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | 2 | 2018-06-06T13:29:23.000Z | 2018-07-25T00:36:38.000Z | src/minerva_db/sql/models/group.py | sorgerlab/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | 1 | 2020-03-06T23:53:42.000Z | 2020-03-06T23:53:42.000Z | from sqlalchemy import Column, ForeignKey, String
from sqlalchemy.orm import relationship
# from sqlalchemy.ext.associationproxy import association_proxy
from .subject import Subject
| 29.636364 | 73 | 0.714724 |
20e77eb0b4c59c0312f4fc50878035a552c60784 | 364 | py | Python | web-ui/AIOT-635/instance/config.py | kenhutaiwan/learning-practice | 6597a691fd090de718937087f3610971696f4894 | [
"MIT"
] | null | null | null | web-ui/AIOT-635/instance/config.py | kenhutaiwan/learning-practice | 6597a691fd090de718937087f3610971696f4894 | [
"MIT"
] | 10 | 2021-04-16T01:00:49.000Z | 2021-12-09T13:41:20.000Z | web-ui/AIOT-635/instance/config.py | kenhutaiwan/learning-practice | 6597a691fd090de718937087f3610971696f4894 | [
"MIT"
] | null | null | null | JIRA_DOMAIN = {'RD2': ['innodiv-hwacom.atlassian.net','innodiv-hwacom.atlassian.net'],
'RD5': ['srddiv5-hwacom.atlassian.net']}
API_PREFIX = 'rest/agile/1.0'
# project_id : column_name
STORY_POINT_COL_NAME = {'10005': 'customfield_10027',
'10006': 'customfield_10027',
... | 40.444444 | 86 | 0.604396 |
20e8d9128c41d94efd5a36d1c06da32a9be81f31 | 2,922 | py | Python | script/hardware/create_hardware_settings.py | bohanjason/website | 6df863c6a4c8b1c3d263700187d1c5d777b29a3c | [
"Apache-2.0"
] | null | null | null | script/hardware/create_hardware_settings.py | bohanjason/website | 6df863c6a4c8b1c3d263700187d1c5d777b29a3c | [
"Apache-2.0"
] | null | null | null | script/hardware/create_hardware_settings.py | bohanjason/website | 6df863c6a4c8b1c3d263700187d1c5d777b29a3c | [
"Apache-2.0"
] | null | null | null | import sys
import csv
import json
import shutil
from collections import OrderedDict
HW = OrderedDict()
with open('ec2_instance_types.csv', 'r') as f:
reader = csv.reader(f)
for i,row in enumerate(reader):
if i == 0:
header = row
else:
entry = {}
entry['type'... | 34.785714 | 109 | 0.519849 |
20e93041941fdeb70e6476bed35d7399ad209e43 | 4,341 | py | Python | export_onnx.py | ak9250/BackgroundMattingV2 | 4e1b2fa429260e50342ef54f53de71962f7babe8 | [
"MIT"
] | 1 | 2020-12-24T01:19:39.000Z | 2020-12-24T01:19:39.000Z | export_onnx.py | dangchaojin/BackgroundMattingV2 | 97e2df124d0fa96eb7f101961a2eb806cdd25049 | [
"MIT"
] | null | null | null | export_onnx.py | dangchaojin/BackgroundMattingV2 | 97e2df124d0fa96eb7f101961a2eb806cdd25049 | [
"MIT"
] | 1 | 2021-11-23T13:57:17.000Z | 2021-11-23T13:57:17.000Z | """
Export MattingRefine as ONNX format
Example:
python export_onnx.py \
--model-type mattingrefine \
--model-checkpoint "PATH_TO_MODEL_CHECKPOINT" \
--model-backbone resnet50 \
--model-backbone-scale 0.25 \
--model-refine-mode sampling \
--model-refine-sample-pixel... | 33.392308 | 118 | 0.668279 |
20e9cc261d322667f8ff8f2e1f32fe37565bcb4c | 21,486 | py | Python | htm_rl/htm_rl/modules/empowerment.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | 1 | 2021-12-09T22:09:24.000Z | 2021-12-09T22:09:24.000Z | htm_rl/htm_rl/modules/empowerment.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | null | null | null | htm_rl/htm_rl/modules/empowerment.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | 1 | 2021-11-18T08:54:20.000Z | 2021-11-18T08:54:20.000Z | import numpy as np
import matplotlib.pyplot as plt
from tqdm import trange
from htm.bindings.sdr import SDR
from htm.bindings.algorithms import TemporalMemory
from htm.bindings.algorithms import SpatialPooler
from itertools import product
from copy import deepcopy
import json
EPS = 1e-12
def draw_tm(tm, grid_step)... | 39.423853 | 126 | 0.601043 |
20ea9a3199f5ede3e9ec9371bbc365bff86fc2fb | 2,550 | py | Python | integration/python/instantiate_docker.py | DomainDrivenArchitecture/dda-smeagol-crate | d2f4a76dde2df416f905a691d2e7b0b80fd282b9 | [
"Apache-2.0"
] | 2 | 2019-01-02T08:59:47.000Z | 2021-08-05T09:13:46.000Z | integration/python/instantiate_docker.py | DomainDrivenArchitecture/dda-smeagol-crate | d2f4a76dde2df416f905a691d2e7b0b80fd282b9 | [
"Apache-2.0"
] | null | null | null | integration/python/instantiate_docker.py | DomainDrivenArchitecture/dda-smeagol-crate | d2f4a76dde2df416f905a691d2e7b0b80fd282b9 | [
"Apache-2.0"
] | 1 | 2018-11-27T11:17:03.000Z | 2018-11-27T11:17:03.000Z | import docker
import sys
import os
import argparse
# Please perform the following steps in order to use this script
# 1) Install pyton 3 and pip3: sudo apt install python3-pip python3
# 2) Install the docker sdk with pip: pip3 install docker
parser = argparse.ArgumentParser()
parser.add_argument("jar", help="relative... | 37.5 | 218 | 0.688627 |
20eb14ed9ef59d282c828a88ed96fcb8fa827785 | 2,452 | py | Python | Classdef.py | gregoryng/subradar | fae4b33325732cf08daf1a265d092d9aa8c5aeca | [
"MIT"
] | null | null | null | Classdef.py | gregoryng/subradar | fae4b33325732cf08daf1a265d092d9aa8c5aeca | [
"MIT"
] | null | null | null | Classdef.py | gregoryng/subradar | fae4b33325732cf08daf1a265d092d9aa8c5aeca | [
"MIT"
] | null | null | null | """Various Python classes"""
__author__ = 'Cyril Grima'
from . import roughness, utils
from numpy import inf
nan = float('nan')
| 38.3125 | 83 | 0.569331 |
20eb6f5d85628505190d93e8509c7390562e9bac | 528 | py | Python | tests/test_setup.py | TheCheapestPixels/panda3d-simplepbr | e439dcbab48b1b61cf7e477e51ef7c7507b97f29 | [
"BSD-3-Clause"
] | null | null | null | tests/test_setup.py | TheCheapestPixels/panda3d-simplepbr | e439dcbab48b1b61cf7e477e51ef7c7507b97f29 | [
"BSD-3-Clause"
] | null | null | null | tests/test_setup.py | TheCheapestPixels/panda3d-simplepbr | e439dcbab48b1b61cf7e477e51ef7c7507b97f29 | [
"BSD-3-Clause"
] | null | null | null | import panda3d.core as p3d
import pytest #pylint:disable=wrong-import-order
import simplepbr
#pylint:disable=redefined-outer-name
| 20.307692 | 49 | 0.6875 |
20ebb89e959fc0a3416f450671154a21d95c196a | 820 | py | Python | hivedata.py | PENGsBIT/DifferentialAnalysis | 0c0262bb22553d98fea209ffa8124346b9335993 | [
"Apache-2.0"
] | 1 | 2019-07-02T07:30:30.000Z | 2019-07-02T07:30:30.000Z | hivedata.py | PENGsBIT/DifferentialAnalysis | 0c0262bb22553d98fea209ffa8124346b9335993 | [
"Apache-2.0"
] | null | null | null | hivedata.py | PENGsBIT/DifferentialAnalysis | 0c0262bb22553d98fea209ffa8124346b9335993 | [
"Apache-2.0"
] | null | null | null | from impala.dbapi import connect
import numpy as np
from different import *
args = ["10.141.212.155", 10010, "", "", "bigbench_100g", "websales_home_myshop"]
# conn = hive.Connection(host="10.141.212.155", port=10010, database='bigbench_100g')
conn = connect(host="10.141.212.155", port=10010, database='bigbench_100g',... | 28.275862 | 99 | 0.671951 |
20ec501020c2772aa4720af36c66feb8ad8012c1 | 817 | py | Python | blin/config.py | cyber-chuvash/blinBlinskiyNoviyGod | b4dab1c254194579636aa7db18dd49203e60e381 | [
"MIT"
] | null | null | null | blin/config.py | cyber-chuvash/blinBlinskiyNoviyGod | b4dab1c254194579636aa7db18dd49203e60e381 | [
"MIT"
] | null | null | null | blin/config.py | cyber-chuvash/blinBlinskiyNoviyGod | b4dab1c254194579636aa7db18dd49203e60e381 | [
"MIT"
] | null | null | null | import json
import logging
import os
try:
Config = _JsonConfig()
except FileNotFoundError:
Config = _EnvConfig()
| 20.425 | 116 | 0.640147 |
20ece0378df7625ec1d27cc3e2aacc6037e534e4 | 18,374 | py | Python | gryphon/core/common_operations.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | gryphon/core/common_operations.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | gryphon/core/common_operations.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | """
File containing operations that are common to the commands.
"""
import os
import sys
import json
import glob
import logging
import platform
import shutil
from datetime import datetime
from pathlib import Path
import git
from .registry.template import Template
from .core_text import Text
from ..constants import (
... | 32.928315 | 115 | 0.636606 |
20ed6b7104d66706dd28783944068d6c82b7b1c2 | 2,599 | py | Python | src/cho_util/math/transform.py | yycho0108/cho-util | 331efc7aac8cddfb4258620b80cb7fc5f0688d1f | [
"MIT"
] | null | null | null | src/cho_util/math/transform.py | yycho0108/cho-util | 331efc7aac8cddfb4258620b80cb7fc5f0688d1f | [
"MIT"
] | null | null | null | src/cho_util/math/transform.py | yycho0108/cho-util | 331efc7aac8cddfb4258620b80cb7fc5f0688d1f | [
"MIT"
] | null | null | null | import numpy as np
from .common import *
from . import rotation
| 22.405172 | 61 | 0.464025 |