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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2eeb62862c41ce4f6916bdfc40e2594722e7ae9 | 13,176 | py | Python | track.py | ahrnbom/guts | 9134e7f6568a24b435841e5934a640bdbe329a68 | [
"MIT"
] | null | null | null | track.py | ahrnbom/guts | 9134e7f6568a24b435841e5934a640bdbe329a68 | [
"MIT"
] | null | null | null | track.py | ahrnbom/guts | 9134e7f6568a24b435841e5934a640bdbe329a68 | [
"MIT"
] | null | null | null | """
Copyright (C) 2022 Martin Ahrnbom
Released under MIT License. See the file LICENSE for details.
This module describes 2D/3D tracks. GUTS's output is a list of instances
of these classes.
"""
import numpy as np
from filter import filter2D, filter3D
from options import Options, Filter2DParams, Fi... | 36.39779 | 80 | 0.539921 |
e2f024dc0a72d06171bf91a03cad26deda82fb0a | 753 | py | Python | corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from datetime import datetime, timedelta
from dimagi.utils import parsing as dateparse
from casexml.apps.stock.consumption import (
ConsumptionConfiguration,
compute_daily_consumption_from_transactions,
)
to_ts = dateparse.json_format_datetime
now = datetime.utcnow()
# note that you must add inferred cons... | 25.965517 | 77 | 0.746348 |
e2f1711a65821686f4006c1b21450b10f12a25e1 | 1,007 | py | Python | multi-cluster-rescheduler/mcr.py | moule3053/mck8s | 9555b87c6cfb47c22a3c5f51ebb786587dddd233 | [
"Apache-2.0"
] | 57 | 2021-07-05T07:27:56.000Z | 2022-02-23T10:56:35.000Z | multi-cluster-rescheduler/mcr.py | 00ahui/mck8s | d7742e11a19b34c21095e5a6b10b3e4d07f8a5e7 | [
"Apache-2.0"
] | 4 | 2021-08-19T08:22:04.000Z | 2021-08-19T09:03:29.000Z | multi-cluster-rescheduler/mcr.py | 00ahui/mck8s | d7742e11a19b34c21095e5a6b10b3e4d07f8a5e7 | [
"Apache-2.0"
] | 6 | 2021-07-22T11:31:17.000Z | 2021-12-03T21:17:26.000Z | import kopf
import time
from utils import get_all_federation_clusters, rescheduleApp
# Create app rescheduler
| 38.730769 | 116 | 0.655412 |
e2f1d37bd8721b99e8bd17fdefb5d3f548a12c16 | 538 | py | Python | retuo.py | Azi-Dahaka/- | 8d47d8e18a4b4fcfee4d2649c8efa819d4cd357e | [
"MIT"
] | 1 | 2021-11-25T03:28:30.000Z | 2021-11-25T03:28:30.000Z | retuo.py | Azi-Dahaka/- | 8d47d8e18a4b4fcfee4d2649c8efa819d4cd357e | [
"MIT"
] | null | null | null | retuo.py | Azi-Dahaka/- | 8d47d8e18a4b4fcfee4d2649c8efa819d4cd357e | [
"MIT"
] | 2 | 2021-09-06T07:41:48.000Z | 2021-11-25T09:28:07.000Z | # -*- coding:utf-8 -*-
# 1.
from flask import Flask
from flask_restful import Api
import config
from app.api.view.auth import wx_login
from app.api.view.talk import Reply
# 2.flask__name__
app = Flask(__name__)
app.config.from_object(config.DevelopmentConfig)
api = Api(app)
# 3.
# 4.
# restful api
app.add_url_rule('/... | 20.692308 | 72 | 0.749071 |
e2f1f8c5a89469b4bf2471953837accc59dc980e | 6,904 | py | Python | PSO.py | cece95/F21BC-Coursework | dd3586891b6eda03b208e25b00392db042a4ec5b | [
"Apache-2.0"
] | 1 | 2021-04-30T12:24:58.000Z | 2021-04-30T12:24:58.000Z | PSO.py | aahginoux/F21BC-Coursework | dd3586891b6eda03b208e25b00392db042a4ec5b | [
"Apache-2.0"
] | null | null | null | PSO.py | aahginoux/F21BC-Coursework | dd3586891b6eda03b208e25b00392db042a4ec5b | [
"Apache-2.0"
] | 1 | 2021-04-30T12:23:16.000Z | 2021-04-30T12:23:16.000Z | import numpy.random as rand
import numpy as np
import pandas as pd
import random
import math
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.animation import FuncAnimation
from Particle import Particle
#Initialization of the plots
fig = plt.figure(figsize=(20,10))
axes = [None... | 39.678161 | 198 | 0.60617 |
e2f2a441790ca7a9000ae20c712a0f4467b4c1c4 | 1,334 | py | Python | Modulos/ProvasPassadas/aux_scraping.py | gabrielfava/asap | be6211190d4acfca7aacef45d7dc467e2237496d | [
"Apache-2.0"
] | 2 | 2018-03-16T19:24:35.000Z | 2018-03-20T01:15:21.000Z | Modulos/ProvasPassadas/aux_scraping.py | jvalv/asaPY | 97cdc9359d8afeb9747f4372b253b179131d2be4 | [
"Apache-2.0"
] | 1 | 2018-02-24T23:43:15.000Z | 2018-02-24T23:43:15.000Z | Modulos/ProvasPassadas/aux_scraping.py | gabrielfava/asapy | be6211190d4acfca7aacef45d7dc467e2237496d | [
"Apache-2.0"
] | 1 | 2018-02-28T14:45:52.000Z | 2018-02-28T14:45:52.000Z | #ASAPY
import requests
__URL_GLOBAL = "https://www.urionlinejudge.com.br";
#TODO - TRATAR EQUIVALENCIA DE SINTAXE !
printme("2166")
#print("titulo => URI Online Judge - Problema 2166 - Raiz Quadrada de 2")
#print("autor => M.C. Pinto, UNILA")
#print("probm => ma das formas de calcular a r... | 27.22449 | 90 | 0.586957 |
e2f2ab45cb99205459023f3975ca984038c2b9fd | 876 | py | Python | picking_numbers/picking_numbers.py | pvital/4lg0rithm5 | 9e3a458b28065e2156aef6df92fe40b35cd9881c | [
"MIT"
] | null | null | null | picking_numbers/picking_numbers.py | pvital/4lg0rithm5 | 9e3a458b28065e2156aef6df92fe40b35cd9881c | [
"MIT"
] | null | null | null | picking_numbers/picking_numbers.py | pvital/4lg0rithm5 | 9e3a458b28065e2156aef6df92fe40b35cd9881c | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Generator method to buld a list containing only the elements with diff <= 1
#
#
# Complete the 'pickingNumbers' function below.
#
# The function is expected to return an INTEGER.
# The function accepts INTEGER_ARRAY a as parameter.
#
def pic... | 19.043478 | 77 | 0.608447 |
e2f315499e462d747fce1af2b55052eeb6910f0b | 2,911 | py | Python | toontown/safezone/DistributedButterflyAI.py | TrueBlueDogemon/Toontown | ebed7fc3f2ef06a529cf02eda7ab46361aceef9d | [
"MIT"
] | 1 | 2021-02-25T06:22:49.000Z | 2021-02-25T06:22:49.000Z | toontown/safezone/DistributedButterflyAI.py | TrueBlueDogemon/Toontown | ebed7fc3f2ef06a529cf02eda7ab46361aceef9d | [
"MIT"
] | null | null | null | toontown/safezone/DistributedButterflyAI.py | TrueBlueDogemon/Toontown | ebed7fc3f2ef06a529cf02eda7ab46361aceef9d | [
"MIT"
] | 2 | 2020-11-08T03:38:35.000Z | 2021-09-02T07:03:47.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
from direct.distributed.ClockDelta import *
import ButterflyGlobals
import random
| 41 | 159 | 0.684988 |
e2f4dd0ee18ce021318531b4d9a81e9c00ac0a21 | 1,637 | py | Python | proj01_ifelse/proj01.py | CalvinsHyper/Vanderbilt-2018 | fa67c1f08f5d29bac4bd7747ec4a9110e5b3de00 | [
"MIT"
] | null | null | null | proj01_ifelse/proj01.py | CalvinsHyper/Vanderbilt-2018 | fa67c1f08f5d29bac4bd7747ec4a9110e5b3de00 | [
"MIT"
] | null | null | null | proj01_ifelse/proj01.py | CalvinsHyper/Vanderbilt-2018 | fa67c1f08f5d29bac4bd7747ec4a9110e5b3de00 | [
"MIT"
] | null | null | null | # Name:
# Date:
# proj01: A Simple Program
# Part I:
# This program asks the user for his/her name and grade.
#Then, it prints out a sentence that says the number of years until they graduate.
print "Hello"
Your_Name = raw_input("What's your name?")
print "Your name is "+ Your_Name
Your_Grade = raw_input("What Grade ... | 29.232143 | 89 | 0.718998 |
e2f8cc5f79c191afa6de68ed0f7f734ad2297be2 | 1,113 | py | Python | app-django/departamentos/models.py | ilanaraujo/sistema-gerenciamento-empresarial | d9be1d0b1a7541205099bb99311611d193d3ec7d | [
"MIT"
] | null | null | null | app-django/departamentos/models.py | ilanaraujo/sistema-gerenciamento-empresarial | d9be1d0b1a7541205099bb99311611d193d3ec7d | [
"MIT"
] | null | null | null | app-django/departamentos/models.py | ilanaraujo/sistema-gerenciamento-empresarial | d9be1d0b1a7541205099bb99311611d193d3ec7d | [
"MIT"
] | null | null | null | from io import IncrementalNewlineDecoder
from django.db import models
# Classe de departamento
| 32.735294 | 101 | 0.707996 |
e2f8e237bea623fc9982392a84d67cc07da6f9f5 | 422 | py | Python | leetcode/wc_count_even_dig_sum.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | leetcode/wc_count_even_dig_sum.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | leetcode/wc_count_even_dig_sum.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | """
https://leetcode.com/contest/weekly-contest-281/problems/count-integers-with-even-digit-sum/
Tags: Weekly-Contest_281; Brute-Force; Easy
"""
| 20.095238 | 96 | 0.504739 |
e2f9e48c836975b60f61a40a6083287d7f5083ca | 9,054 | py | Python | tools/train_dist.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | tools/train_dist.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | tools/train_dist.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import torch
import matplotlib.pyplot as plt
from torch.utils.data.distributed import DistributedSampler
from torch import distributed as dist
from torch import optim
from tqdm import tqdm
from torch_ema import ExponentialMovingAverage
from cifr.core.config import Config
from cifr.models.bui... | 34.295455 | 104 | 0.623481 |
e2fa28ba790d57d8d11a1525236c74ab08efcf00 | 14,930 | py | Python | Lib/site-packages/hackedit/app/forms/main_window_ui.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | Lib/site-packages/hackedit/app/forms/main_window_ui.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/hackedit/app/forms/main_window_ui.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/Colin/Documents/hackedit/data/forms/main_window.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from pyqode.core.widgets import Spli... | 61.950207 | 1,233 | 0.709779 |
e2fd92287732d912730a455c577004d7bf52e164 | 1,314 | py | Python | order/models.py | divyesh1099/badboystyle | f4fec0858b43e14f0e1f173261f363d4262c28ea | [
"MIT"
] | null | null | null | order/models.py | divyesh1099/badboystyle | f4fec0858b43e14f0e1f173261f363d4262c28ea | [
"MIT"
] | null | null | null | order/models.py | divyesh1099/badboystyle | f4fec0858b43e14f0e1f173261f363d4262c28ea | [
"MIT"
] | null | null | null | from django.db import models
import uuid
from product.models import Product
from django.contrib.auth.models import User
# Create your models here.
| 32.85 | 91 | 0.739726 |
e2fd9b72303648dae3dfdfa2c4d0a2b7b6a25ffe | 164 | py | Python | src/ctc/protocols/uniswap_v2_utils/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/uniswap_v2_utils/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/uniswap_v2_utils/__init__.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from .uniswap_v2_deltas import *
from .uniswap_v2_events import *
from .uniswap_v2_metadata import *
from .uniswap_v2_spec import *
from .uniswap_v2_state import *
| 27.333333 | 34 | 0.817073 |
e2fdb731838b2d76921b4855eabdb911ea477912 | 558 | py | Python | MAX40080/src/torque_test_stand/src/torque_tester.py | MilosRasic98/Orbweaver-Rover | caa2ac0a73211b2af304f09fdc0d6be632e71ddd | [
"MIT"
] | 1 | 2022-01-25T16:38:02.000Z | 2022-01-25T16:38:02.000Z | MAX40080/src/torque_test_stand/src/torque_tester.py | MilosRasic98/Orbweaver-Rover | caa2ac0a73211b2af304f09fdc0d6be632e71ddd | [
"MIT"
] | null | null | null | MAX40080/src/torque_test_stand/src/torque_tester.py | MilosRasic98/Orbweaver-Rover | caa2ac0a73211b2af304f09fdc0d6be632e71ddd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import rospy
import serial
from std_msgs.msg import Float32
tt_arduino = serial.Serial("/dev/ttyUSB0", 9600)
rospy.init_node('torque_test_stand', anonymous = False)
pub = rospy.Publisher('/test_equipment/measured_torque', Float32, queue_size=10)
r = rospy.Rate(10)
print('Torque Test Stand Nod... | 27.9 | 80 | 0.731183 |
e2fe567efc33b25a0d91b4d7fa626e435caa6ed8 | 3,862 | py | Python | tenant_schemas_celery/tests.py | bufke/tenant-schemas-celery | 1475e3dc8112c1eb4f6df917863fb841421fa6f0 | [
"MIT"
] | null | null | null | tenant_schemas_celery/tests.py | bufke/tenant-schemas-celery | 1475e3dc8112c1eb4f6df917863fb841421fa6f0 | [
"MIT"
] | null | null | null | tenant_schemas_celery/tests.py | bufke/tenant-schemas-celery | 1475e3dc8112c1eb4f6df917863fb841421fa6f0 | [
"MIT"
] | null | null | null | from django.db import connection
from django.utils.unittest import skipIf
from tenant_schemas.tests.models import Tenant, DummyModel
from tenant_schemas.tests.testcases import BaseTestCase
from tenant_schemas.utils import get_public_schema_name
try:
from .app import CeleryApp
except ImportError:
app = None
e... | 35.431193 | 78 | 0.677369 |
e2ff0cc3f2dad2d0415df8d97008ea00f1d1ac14 | 1,273 | py | Python | flake8_pie/tests/test_pie804_no_unnecessary_dict_kwargs.py | sbdchd/flake8-pie | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 23 | 2019-01-25T14:58:20.000Z | 2022-03-27T02:20:01.000Z | flake8_pie/tests/test_pie804_no_unnecessary_dict_kwargs.py | sbdchd/flake8-assign-and-return | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 50 | 2019-04-17T02:37:01.000Z | 2022-03-27T02:19:53.000Z | flake8_pie/tests/test_pie804_no_unnecessary_dict_kwargs.py | sbdchd/flake8-assign-and-return | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 5 | 2019-02-21T07:29:12.000Z | 2021-11-06T21:01:26.000Z | from __future__ import annotations
import ast
import pytest
from flake8_pie import Flake8PieCheck
from flake8_pie.pie804_no_unnecessary_dict_kwargs import PIE804
from flake8_pie.tests.utils import Error, ex, to_errors
EXAMPLES = [
ex(
code="""
foo(**{"bar": True})
""",
errors=[PIE804(lineno=2, c... | 20.532258 | 77 | 0.571877 |
e2ff3ce76141b539b88b724b3e32501df66e17ca | 6,161 | py | Python | campfire/components/models/publications/Post.py | Camper-CoolDie/campfire.py | bc90f004a6f086c18d4f46e9a7679ead96feca1f | [
"MIT"
] | null | null | null | campfire/components/models/publications/Post.py | Camper-CoolDie/campfire.py | bc90f004a6f086c18d4f46e9a7679ead96feca1f | [
"MIT"
] | null | null | null | campfire/components/models/publications/Post.py | Camper-CoolDie/campfire.py | bc90f004a6f086c18d4f46e9a7679ead96feca1f | [
"MIT"
] | null | null | null | from ...reqs import publications
from .. import main
def to_drafts(self):
"""
.
"""
return publications.post_to_drafts(self.id)
def close(self):
"""
.
"""
return publications.post_close(self.id)
def no_close... | 27.382222 | 115 | 0.558513 |
3900f3e6b7b3e7b34138de564d3504d79dc0b9a5 | 4,393 | py | Python | thyme/parsers/lammps.py | nw13slx/thyme | b2a16aa1e6b0701adcfd2bd146f85b5c46b35254 | [
"MIT"
] | null | null | null | thyme/parsers/lammps.py | nw13slx/thyme | b2a16aa1e6b0701adcfd2bd146f85b5c46b35254 | [
"MIT"
] | null | null | null | thyme/parsers/lammps.py | nw13slx/thyme | b2a16aa1e6b0701adcfd2bd146f85b5c46b35254 | [
"MIT"
] | null | null | null | import logging
import numpy as np
from glob import glob
from os.path import getmtime, isfile
from os import remove
from thyme import Trajectory
from thyme.parsers.monty import read_pattern, read_table_pattern
from thyme.routines.folders import find_folders, find_folders_matching
from thyme._key import *
from thyme.pa... | 27.45625 | 84 | 0.515365 |
3900f50cc35a91f1b2e65d295de22b272d80a5f7 | 802 | py | Python | quizzes/mixins.py | NeedsSoySauce/testme | dfc11737779809c1df475e9224e753ca7117c981 | [
"MIT"
] | 1 | 2020-11-22T22:38:02.000Z | 2020-11-22T22:38:02.000Z | quizzes/mixins.py | NeedsSoySauce/testme | dfc11737779809c1df475e9224e753ca7117c981 | [
"MIT"
] | 3 | 2021-06-04T23:59:02.000Z | 2021-09-22T19:39:14.000Z | quizzes/mixins.py | NeedsSoySauce/testme | dfc11737779809c1df475e9224e753ca7117c981 | [
"MIT"
] | null | null | null | from rest_framework.mixins import CreateModelMixin
from rest_framework.viewsets import GenericViewSet
| 34.869565 | 118 | 0.714464 |
3902e3c1d9f27314dcc2c50f2e8d39999e51a918 | 308 | py | Python | python-algorithm/leetcode/problem_191.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 5 | 2017-06-11T09:19:34.000Z | 2019-01-16T16:58:31.000Z | python-algorithm/leetcode/problem_191.py | isudox/leetcode-solution | 60085e64deaf396a171367affc94b18114565c43 | [
"MIT"
] | 5 | 2020-03-22T13:53:54.000Z | 2020-03-23T08:49:35.000Z | python-algorithm/leetcode/problem_191.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 1 | 2019-03-02T15:50:43.000Z | 2019-03-02T15:50:43.000Z | """191. Number of 1 Bits
https://leetcode.com/problems/number-of-1-bits/
"""
| 19.25 | 47 | 0.49026 |
39040095ba97fb25c2f48d71d61af9009cf80bac | 1,249 | py | Python | tests/test_base/test_components.py | jlichter/pyClarion | 326a9b7ac03baaaf8eba49a42954f88542c191e9 | [
"MIT"
] | 25 | 2018-09-21T17:51:09.000Z | 2022-03-08T12:24:35.000Z | tests/test_base/test_components.py | jlichter/pyClarion | 326a9b7ac03baaaf8eba49a42954f88542c191e9 | [
"MIT"
] | 9 | 2018-07-01T00:44:02.000Z | 2022-02-10T10:56:30.000Z | tests/test_base/test_components.py | jlichter/pyClarion | 326a9b7ac03baaaf8eba49a42954f88542c191e9 | [
"MIT"
] | 10 | 2018-09-21T17:51:13.000Z | 2022-03-03T07:58:37.000Z | import pyClarion.base as clb
import pyClarion.numdicts as nd
import unittest
import unittest.mock as mock
| 29.738095 | 72 | 0.629303 |
3904ee13823977d061bad199f6b94392dd9030ae | 10,499 | py | Python | service_capacity_modeling/models/org/netflix/stateless_java.py | jolynch/service-capacity-modeling | 4fa8c600fa2cf12dc75735539d3b115a9cefe93d | [
"Apache-2.0"
] | 6 | 2021-06-24T21:32:35.000Z | 2021-12-20T21:03:46.000Z | service_capacity_modeling/models/org/netflix/stateless_java.py | jolynch/service-capacity-modeling | 4fa8c600fa2cf12dc75735539d3b115a9cefe93d | [
"Apache-2.0"
] | 6 | 2021-06-30T23:05:04.000Z | 2022-03-09T16:29:29.000Z | service_capacity_modeling/models/org/netflix/stateless_java.py | jolynch/service-capacity-modeling | 4fa8c600fa2cf12dc75735539d3b115a9cefe93d | [
"Apache-2.0"
] | 4 | 2021-06-26T19:27:16.000Z | 2021-09-23T09:39:40.000Z | import math
from decimal import Decimal
from typing import Any
from typing import Dict
from typing import Optional
from typing import Sequence
from typing import Tuple
from service_capacity_modeling.interface import AccessConsistency
from service_capacity_modeling.interface import AccessPattern
from service_capacity_m... | 39.02974 | 88 | 0.613011 |
390607443fe47de4159aa9c452011b3665fffa1f | 36 | py | Python | kmmi/exposure/__init__.py | Decitizen/kMMI | 921ef6e45fbec484251444886e246741d7f0120a | [
"MIT"
] | null | null | null | kmmi/exposure/__init__.py | Decitizen/kMMI | 921ef6e45fbec484251444886e246741d7f0120a | [
"MIT"
] | null | null | null | kmmi/exposure/__init__.py | Decitizen/kMMI | 921ef6e45fbec484251444886e246741d7f0120a | [
"MIT"
] | null | null | null | from kmmi.exposure.exposure import * | 36 | 36 | 0.833333 |
3906c3d350796714fe403c2d9747c8b915ea90fb | 1,251 | py | Python | proxies_list.py | Konstantinos-Papanagnou/LFITester | f08e2eb0fa52d8abcbe787d17468da6ae297c925 | [
"MIT"
] | null | null | null | proxies_list.py | Konstantinos-Papanagnou/LFITester | f08e2eb0fa52d8abcbe787d17468da6ae297c925 | [
"MIT"
] | null | null | null | proxies_list.py | Konstantinos-Papanagnou/LFITester | f08e2eb0fa52d8abcbe787d17468da6ae297c925 | [
"MIT"
] | null | null | null | import random
import requests
| 32.076923 | 146 | 0.676259 |
3907cb2efd59d6150c96b3e7f63e5c918327e278 | 2,263 | py | Python | chromoSpirals.py | zubrik13/coding_intrv_prer | 853a7c8357ad43601313daadcc1c494d403a9aa0 | [
"MIT"
] | null | null | null | chromoSpirals.py | zubrik13/coding_intrv_prer | 853a7c8357ad43601313daadcc1c494d403a9aa0 | [
"MIT"
] | null | null | null | chromoSpirals.py | zubrik13/coding_intrv_prer | 853a7c8357ad43601313daadcc1c494d403a9aa0 | [
"MIT"
] | null | null | null | # chromoSpirals.py
# ----------------
# Code written by Peter Derlien, University of Sheffield, March 2013
# Draws spiralling patterns of circles using the Golden Angle.
# ----------------
# Import from the numpy and matplotlib packages.
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from matplot... | 31.430556 | 78 | 0.660186 |
3908362f779c22268c5829af9edecb71d16463fa | 1,045 | py | Python | TODO_LIST/TODO_APP/views.py | Amit89499/TODO-APP-DJANGO | 082a4ffb803778378c6a8077ca47cf868bc55ef8 | [
"Apache-2.0"
] | 4 | 2020-06-29T16:00:39.000Z | 2021-05-22T03:40:38.000Z | TODO_LIST/TODO_APP/views.py | Amit89499/TODO-APP-DJANGO | 082a4ffb803778378c6a8077ca47cf868bc55ef8 | [
"Apache-2.0"
] | null | null | null | TODO_LIST/TODO_APP/views.py | Amit89499/TODO-APP-DJANGO | 082a4ffb803778378c6a8077ca47cf868bc55ef8 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render,redirect
from django.http import HttpResponse
from .models import *
from .forms import *
# Create your views here.
| 23.222222 | 52 | 0.627751 |
3909cb5cbf3d27aacd9d499216668e13a1241a5e | 3,779 | py | Python | serial/splitter.py | tf-czu/gyrorad | eb1c30a9715857a50631de170cecb443457c2752 | [
"MIT"
] | null | null | null | serial/splitter.py | tf-czu/gyrorad | eb1c30a9715857a50631de170cecb443457c2752 | [
"MIT"
] | null | null | null | serial/splitter.py | tf-czu/gyrorad | eb1c30a9715857a50631de170cecb443457c2752 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Split logged data into separate "channels"
usage:
./splitter.py <log file> <GPS|0..3|all>
"""
import sys
FIRST_LINE = "id,timeMs,accX,accY,accZ,temp,gyroX,gyroY,gyroZ\n"
GPS_SEPARATOR_BEGIN = chr(0x2)
GPS_SEPARATOR_END = chr(0x3)
if __name__ == "__main__":
if len(sys.argv)... | 32.299145 | 106 | 0.493781 |
3909f60bd9bc4dcad09d01754d26fbed50773848 | 11,267 | py | Python | main.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | 1 | 2019-10-11T14:43:53.000Z | 2019-10-11T14:43:53.000Z | main.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | null | null | null | main.py | opengovt/openroads-geostore | 336bdc352252ae34a66746e632ae0b8df66c04c0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import jinja2
import webapp2
import logging
import threading
from mandrill_email import *
from webapp2_extras import routes
from cookie import *
from settings import *
from decorators import *
from functions import *
from google.appengine.api import taskqueue
from google.ap... | 50.075556 | 84 | 0.730097 |
3909f9fc72229c5e4f7632df5919c798d9731eae | 36,253 | py | Python | railrl/planner/forward_planner/planner.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | railrl/planner/forward_planner/planner.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | railrl/planner/forward_planner/planner.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | from railrl.data_management.simple_replay_pool import SimpleReplayPool
from railrl.predictors.dynamics_model import FullyConnectedEncoder, InverseModel, ForwardModel
import tensorflow as tf
import time
import numpy as np
from sandbox.rocky.tf.optimizers.penalty_lbfgs_optimizer import PenaltyLbfgsOptimizer
from railrl.m... | 42.500586 | 172 | 0.715582 |
390b330abd091d1c3e50678abd28d0cfcb440fe8 | 620 | py | Python | RobinhoodTrader/config.py | jaxbulsara/RobinhoodTrader | a22b4056b8786c1405e3cb06519f17e9ef685dac | [
"MIT"
] | 1 | 2021-04-17T16:24:11.000Z | 2021-04-17T16:24:11.000Z | RobinhoodTrader/config.py | jaxbulsara/RobinhoodTrader | a22b4056b8786c1405e3cb06519f17e9ef685dac | [
"MIT"
] | null | null | null | RobinhoodTrader/config.py | jaxbulsara/RobinhoodTrader | a22b4056b8786c1405e3cb06519f17e9ef685dac | [
"MIT"
] | 1 | 2021-04-17T16:24:16.000Z | 2021-04-17T16:24:16.000Z | from configparser import ConfigParser
import re
| 20.666667 | 60 | 0.659677 |
390cc4f320ef176a0561110f2931fe7231063d55 | 1,969 | py | Python | tb_api_client/test/test_auth_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | 5 | 2017-11-27T15:48:16.000Z | 2020-09-21T04:18:47.000Z | tb_api_client/test/test_auth_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | null | null | null | tb_api_client/test/test_auth_controller_api.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 9b289dd7fdbb6e932ca338ad497a7bb1fc84d010 | [
"Apache-2.0"
] | 6 | 2018-01-14T17:23:46.000Z | 2019-06-24T13:38:54.000Z | # coding: utf-8
"""
Thingsboard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>.
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-api/swagger-co... | 21.172043 | 149 | 0.661249 |
390e452dfc5d623666ee9a6aa2a605d724a0f630 | 585 | py | Python | pylib/mps/util/push_util.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | null | null | null | pylib/mps/util/push_util.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | null | null | null | pylib/mps/util/push_util.py | xkmato/py77 | 9c44d8f8924f47a7331c29fd0287a4bb9416d316 | [
"MIT"
] | 2 | 2018-07-16T19:14:11.000Z | 2020-10-15T08:48:32.000Z | #!/usr/bin/env python
"""
A variety of push utility functions
"""
from pylib.util.git_util import GitUtil
__author__ = 'edelman@room77.com (Nicholas Edelman)'
__copyright__ = 'Copyright 2013 Room77, Inc.'
| 24.375 | 65 | 0.716239 |
390ea59316bebdcf2ee6aecf82c4ccdade1f6444 | 1,899 | py | Python | shardingpy/parsing/lexer/dialect/mysql.py | hongfuli/sharding-py | a26a64aa9d9196c830e7e2fa4095a58bef608a40 | [
"Apache-2.0"
] | 1 | 2021-01-29T13:29:29.000Z | 2021-01-29T13:29:29.000Z | shardingpy/parsing/lexer/dialect/mysql.py | hongfuli/sharding-py | a26a64aa9d9196c830e7e2fa4095a58bef608a40 | [
"Apache-2.0"
] | null | null | null | shardingpy/parsing/lexer/dialect/mysql.py | hongfuli/sharding-py | a26a64aa9d9196c830e7e2fa4095a58bef608a40 | [
"Apache-2.0"
] | null | null | null | import enum
from shardingpy.parsing.lexer import lexer
from shardingpy.parsing.lexer import token
| 20.868132 | 118 | 0.61664 |
390eef8ac9197704b04a6094a11431c7d2503cdc | 1,937 | py | Python | Day6/6.py | thatguyandy27/AdventOfCode2021 | 90c4c27a7a9ec91844c8bf7d17d62586d3ec1913 | [
"Apache-2.0"
] | null | null | null | Day6/6.py | thatguyandy27/AdventOfCode2021 | 90c4c27a7a9ec91844c8bf7d17d62586d3ec1913 | [
"Apache-2.0"
] | null | null | null | Day6/6.py | thatguyandy27/AdventOfCode2021 | 90c4c27a7a9ec91844c8bf7d17d62586d3ec1913 | [
"Apache-2.0"
] | null | null | null | input = [1, 1, 1, 1, 1, 1, 1, 4, 1, 2, 1, 1, 4, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 3, 1, 1, 2, 1, 2, 1, 3, 3, 4, 1, 4, 1, 1, 3, 1, 1, 5, 1, 1, 1, 1, 4, 1, 1, 5, 1, 1, 1, 4, 1, 5, 1, 1, 1, 3, 1, 1, 5, 3, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 1, 4, 1, 2, 2, 1, 1, 1, 3, 1, 2, 5, 1, 4,... | 33.396552 | 461 | 0.453278 |
3910105eb3747b233c26c9482e9ecf9e10eab188 | 6,067 | py | Python | xgds_core/util.py | xgds/xgds_core | 7c2f8d56ca56321f6a9331cda38b40b503fade04 | [
"Apache-2.0"
] | 1 | 2019-02-13T21:02:18.000Z | 2019-02-13T21:02:18.000Z | xgds_core/util.py | xgds/xgds_core | 7c2f8d56ca56321f6a9331cda38b40b503fade04 | [
"Apache-2.0"
] | 2 | 2020-07-16T02:51:17.000Z | 2021-05-06T23:34:15.000Z | xgds_core/util.py | xgds/xgds_core | 7c2f8d56ca56321f6a9331cda38b40b503fade04 | [
"Apache-2.0"
] | 1 | 2017-10-04T18:15:16.000Z | 2017-10-04T18:15:16.000Z | # __BEGIN_LICENSE__
# Copyright (c) 2015, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The xGDS platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance... | 31.273196 | 118 | 0.670513 |
391022300e688e6c5ab4b77b3a3105685361a314 | 732 | py | Python | src/pycrunchbase/__init__.py | ngzhian/pycrunchbase | 4dbe65d6fc07ce89334b7bf142342b90f29df64b | [
"MIT"
] | 67 | 2015-02-15T03:02:00.000Z | 2021-07-04T02:12:29.000Z | src/pycrunchbase/__init__.py | ngzhian/pycrunchbase | 4dbe65d6fc07ce89334b7bf142342b90f29df64b | [
"MIT"
] | 29 | 2015-02-16T02:04:50.000Z | 2020-12-02T18:06:17.000Z | src/pycrunchbase/__init__.py | ngzhian/pycrunchbase | 4dbe65d6fc07ce89334b7bf142342b90f29df64b | [
"MIT"
] | 44 | 2015-02-26T05:43:10.000Z | 2020-12-02T02:11:39.000Z | from .pycrunchbase import (
CrunchBase,
)
from .resource import (
Acquisition,
Address,
Category,
Degree,
FundingRound,
Fund,
Image,
Investment,
IPO,
Job,
Location,
News,
Organization,
Page,
PageItem,
Person,
Product,
Relationship,
StockExc... | 13.309091 | 27 | 0.534153 |
39108aaa5f16646a3ed5c0e0afaec3e5dff388ad | 107 | py | Python | dropconnect_tensorflow/__init__.py | AryaAftab/dropconnect-tensorflow | 648db31e8d60b4de4bf6e37e5a18e2b220ac1616 | [
"MIT"
] | 2 | 2021-08-31T15:51:55.000Z | 2021-10-18T07:19:19.000Z | dropconnect_tensorflow/__init__.py | AryaAftab/dropconnect-tensorflow | 648db31e8d60b4de4bf6e37e5a18e2b220ac1616 | [
"MIT"
] | null | null | null | dropconnect_tensorflow/__init__.py | AryaAftab/dropconnect-tensorflow | 648db31e8d60b4de4bf6e37e5a18e2b220ac1616 | [
"MIT"
] | null | null | null | from dropconnect_tensorflow.dropconnect_tensorflow import DropConnectDense, DropConnectConv2D, DropConnect
| 53.5 | 106 | 0.915888 |
3915f2af8263e59a99c7a8c508220c1dd51ea0ed | 995 | py | Python | hstrat/test/test_helpers/test_is_nonincreasing.py | mmore500/hstrat | 7fedcf3a7203e1e6c99ac16f4ec43ad160da3e6c | [
"MIT"
] | null | null | null | hstrat/test/test_helpers/test_is_nonincreasing.py | mmore500/hstrat | 7fedcf3a7203e1e6c99ac16f4ec43ad160da3e6c | [
"MIT"
] | 3 | 2022-02-28T17:33:57.000Z | 2022-02-28T21:41:33.000Z | hstrat/test/test_helpers/test_is_nonincreasing.py | mmore500/hstrat | 7fedcf3a7203e1e6c99ac16f4ec43ad160da3e6c | [
"MIT"
] | null | null | null | import unittest
from hstrat.helpers import is_nonincreasing
if __name__ == '__main__':
unittest.main()
| 22.111111 | 46 | 0.548744 |
391607816e23b937bc5c359e015ede93c028afbe | 8,984 | py | Python | HW1/HW1.py | hsuan81/2020spring_NTNU_IR | 72203bffd4595a6f435934bd80224d6726721223 | [
"MIT"
] | null | null | null | HW1/HW1.py | hsuan81/2020spring_NTNU_IR | 72203bffd4595a6f435934bd80224d6726721223 | [
"MIT"
] | null | null | null | HW1/HW1.py | hsuan81/2020spring_NTNU_IR | 72203bffd4595a6f435934bd80224d6726721223 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from docx import Document
from docx.shared import Cm
import math
def split_file(file):
"""split the file by different queries into seperate list element and return one list as a whole. """
answer = [[]]
j = 0
for i in file:
if i == "\n":
... | 31.412587 | 107 | 0.628896 |
3916b6e22cde8396683b52bfab98fb85a404ecf8 | 2,745 | py | Python | flowder/utils.py | amir-khakshour/flowder | d4560b2faea300bb2a4815f13815085215ef7019 | [
"MIT"
] | 3 | 2016-06-20T18:33:18.000Z | 2019-11-10T11:52:27.000Z | flowder/utils.py | amir-khakshour/flowder | d4560b2faea300bb2a4815f13815085215ef7019 | [
"MIT"
] | null | null | null | flowder/utils.py | amir-khakshour/flowder | d4560b2faea300bb2a4815f13815085215ef7019 | [
"MIT"
] | null | null | null | import csv
import re
import netifaces as ni
from twisted.internet import defer
from twisted.names import client
from pygear.logging import log
from pygear.core.six.moves.urllib.parse import urlparse, urljoin
from .interfaces import ITaskStorage
csv.register_dialect('pipes', delimiter='|')
client_callback_schemes = ... | 29.202128 | 110 | 0.651002 |
3916c5cd7ecc9f09a6d7a100bb034bad85ff33d8 | 6,437 | py | Python | neuralparticles/scripts/hyper_search.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/hyper_search.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/hyper_search.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | import os
import json
import math
from neuralparticles.tensorflow.tools.hyper_parameter import HyperParameter, ValueType, SearchType
from neuralparticles.tensorflow.tools.hyper_search import HyperSearch
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import keras
from neuralparticles.tensor... | 38.088757 | 277 | 0.71291 |
3919d5f72e3810fe88a92ba0a040bb6448088b25 | 413 | py | Python | app.py | ranjankoirala1998/sms-with-twilio-api | c3fd8b002b47eafc4e6092078a74e294941e87e8 | [
"MIT"
] | null | null | null | app.py | ranjankoirala1998/sms-with-twilio-api | c3fd8b002b47eafc4e6092078a74e294941e87e8 | [
"MIT"
] | null | null | null | app.py | ranjankoirala1998/sms-with-twilio-api | c3fd8b002b47eafc4e6092078a74e294941e87e8 | [
"MIT"
] | null | null | null | from twilio.rest import Client
from scrapper import get_body
from os import environ
account_sid = environ['ACCOUNT_SID']
auth_token = environ['AUTH_TOKEN']
phone_num = '+9779862074364' | 18.772727 | 44 | 0.677966 |
391a5ba570f3e424763ecfe5d6242c832be51961 | 575 | py | Python | app/jwt.py | smolveau/Simple-Flask-Web-App-CI-CD | 99d0459cbcbbc8726968d7d191226fbdab46445e | [
"MIT"
] | null | null | null | app/jwt.py | smolveau/Simple-Flask-Web-App-CI-CD | 99d0459cbcbbc8726968d7d191226fbdab46445e | [
"MIT"
] | null | null | null | app/jwt.py | smolveau/Simple-Flask-Web-App-CI-CD | 99d0459cbcbbc8726968d7d191226fbdab46445e | [
"MIT"
] | null | null | null | # app/jwt.py
from os import environ as env
from itsdangerous import (
TimedJSONWebSignatureSerializer as Serializer,
BadSignature,
SignatureExpired,
)
| 23 | 64 | 0.692174 |
391b5631270f881e44d8df135add12b1dee89004 | 1,918 | py | Python | src/mblib/httpclient.py | odra/mbctl | 39f40842c9e62bc59162a14ea13e17b212967067 | [
"MIT"
] | null | null | null | src/mblib/httpclient.py | odra/mbctl | 39f40842c9e62bc59162a14ea13e17b212967067 | [
"MIT"
] | null | null | null | src/mblib/httpclient.py | odra/mbctl | 39f40842c9e62bc59162a14ea13e17b212967067 | [
"MIT"
] | null | null | null | """
HTTP client module.
"""
import requests
from requests.auth import HTTPBasicAuth
from requests_kerberos import HTTPKerberosAuth
from . import errors
| 21.795455 | 92 | 0.679353 |
391b9e2db43316337b1ceff240764f306d2bb877 | 532 | py | Python | students/K33422/Izmaylova_Anna/web_lab2/tours2/tours_app/view_create_user.py | Anna0102/ITMO_ICT_WebDevelopment_2021-2022 | 1a361329eabccefa5bd9f3d22e1b5dbdb950c85e | [
"MIT"
] | null | null | null | students/K33422/Izmaylova_Anna/web_lab2/tours2/tours_app/view_create_user.py | Anna0102/ITMO_ICT_WebDevelopment_2021-2022 | 1a361329eabccefa5bd9f3d22e1b5dbdb950c85e | [
"MIT"
] | null | null | null | students/K33422/Izmaylova_Anna/web_lab2/tours2/tours_app/view_create_user.py | Anna0102/ITMO_ICT_WebDevelopment_2021-2022 | 1a361329eabccefa5bd9f3d22e1b5dbdb950c85e | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.edit import CreateView
from .models import Users
from .forms import UserForm
from django.contrib.auth.views import LoginView
#
# | 33.25 | 88 | 0.802632 |
391d44965c14b96eb455acf08b6102f375e6e9ba | 5,105 | py | Python | mtp_api/apps/prison/tests/test_utils.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 5 | 2016-01-05T12:21:35.000Z | 2020-10-28T17:06:02.000Z | mtp_api/apps/prison/tests/test_utils.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 209 | 2015-06-12T09:39:41.000Z | 2022-03-21T16:01:19.000Z | mtp_api/apps/prison/tests/test_utils.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 1 | 2021-04-11T06:19:23.000Z | 2021-04-11T06:19:23.000Z | from collections import defaultdict
from copy import copy
import re
import json
from django.conf import settings
from django.test import override_settings, TestCase
import responses
from prison.models import PrisonerLocation
from prison.tests.utils import (
load_prisoner_locations_from_dev_prison_api,
random_... | 35.950704 | 98 | 0.632713 |
391e24e69f46da70a4ab835a6e27d5809e258db2 | 7,885 | py | Python | metrics/__init__.py | MauTrib/gnn-en-folie | 3ca639919a2b285a41641717f4131107c015b510 | [
"Apache-2.0"
] | null | null | null | metrics/__init__.py | MauTrib/gnn-en-folie | 3ca639919a2b285a41641717f4131107c015b510 | [
"Apache-2.0"
] | null | null | null | metrics/__init__.py | MauTrib/gnn-en-folie | 3ca639919a2b285a41641717f4131107c015b510 | [
"Apache-2.0"
] | null | null | null | from metrics.preprocess import edgefeat_converter, fulledge_converter, node_converter
from metrics.common import fulledge_compute_f1, edgefeat_compute_f1, node_compute_f1, node_total
from metrics.mcp import fulledge_total as mcp_fulledge_total, edgefeat_total as mcp_edgefeat_total
from metrics.tsp import tsp_edgefeat_c... | 44.548023 | 163 | 0.701966 |
391e4057449370d286751ffea0205e08d3058736 | 1,538 | py | Python | route_builder/graph.py | vadimkholodilo/routes-generator | 0bf19bce55ecfc2974020fbb8bc51d55bb73fd1a | [
"MIT"
] | null | null | null | route_builder/graph.py | vadimkholodilo/routes-generator | 0bf19bce55ecfc2974020fbb8bc51d55bb73fd1a | [
"MIT"
] | null | null | null | route_builder/graph.py | vadimkholodilo/routes-generator | 0bf19bce55ecfc2974020fbb8bc51d55bb73fd1a | [
"MIT"
] | null | null | null | """
Copyright 2020 Vadim Kholodilo <vadimkholodilo@gmail.com>, Iulia Durova <yulianna199820@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limit... | 102.533333 | 461 | 0.786736 |
391f566a4819260dcb8114df4800170f63917127 | 128 | py | Python | grpc/clients/python/vegaapiclient/generated/wallet/v1/__init__.py | legg/api | a818834f8a935b802af3b01b4237e64ed41ab3f2 | [
"MIT"
] | 6 | 2021-05-20T15:30:46.000Z | 2022-02-22T12:06:39.000Z | grpc/clients/python/vegaapiclient/generated/wallet/v1/__init__.py | legg/api | a818834f8a935b802af3b01b4237e64ed41ab3f2 | [
"MIT"
] | 29 | 2021-03-16T11:58:05.000Z | 2021-10-05T14:04:45.000Z | vegaapiclient/generated/vega/wallet/v1/__init__.py | vegaprotocol/sdk-python | 2491f62704afd806a47cb8467a7edf0dd65bbf1b | [
"MIT"
] | 6 | 2021-05-07T06:43:02.000Z | 2022-03-29T07:18:01.000Z | from . import wallet_pb2_grpc as wallet_grpc
from . import wallet_pb2 as wallet
__all__ = [
"wallet_grpc",
"wallet",
]
| 16 | 44 | 0.703125 |
391fd257874f9d7d38c999096e0d1db1bb5907fe | 678 | py | Python | noisysystem_temp/CutoffPhi.py | Tom271/InteractingParticleSystems | 1cfc8b228077c2465e71d82cc288d713d3755392 | [
"MIT"
] | 1 | 2019-10-22T19:48:22.000Z | 2019-10-22T19:48:22.000Z | noisysystem_temp/CutoffPhi.py | Tom271/InteractingParticleSystems | 1cfc8b228077c2465e71d82cc288d713d3755392 | [
"MIT"
] | 1 | 2019-10-22T21:32:19.000Z | 2019-10-22T21:32:19.000Z | noisysystem_temp/CutoffPhi.py | Tom271/InteractingParticleSystems | 1cfc8b228077c2465e71d82cc288d713d3755392 | [
"MIT"
] | 1 | 2019-10-22T19:49:38.000Z | 2019-10-22T19:49:38.000Z | import particle.processing as processing
particles = 480
test_params = {
"particle_count": 2 * [particles], # (3 * np.arange(8, 150, 16)).tolist(),
"gamma": [0.05],
"G": ["Smooth"],
"scaling": ["Local"],
"D": [1.0],
"phi": ["Gamma"],
"initial_dist_x": [
"one_cluster",
"t... | 22.6 | 79 | 0.597345 |
3922a73eca65de4ee19b6e71f0f70623869553df | 238 | py | Python | examples/client-context/client.py | barberj/bridge-python | 1c33df5fa1d92ac6c54bbb6d868c71e1f883e8fe | [
"MIT"
] | null | null | null | examples/client-context/client.py | barberj/bridge-python | 1c33df5fa1d92ac6c54bbb6d868c71e1f883e8fe | [
"MIT"
] | null | null | null | examples/client-context/client.py | barberj/bridge-python | 1c33df5fa1d92ac6c54bbb6d868c71e1f883e8fe | [
"MIT"
] | null | null | null | from BridgePython import Bridge
bridge = Bridge(api_key='myapikey')
bridge.store_service("pong", PongHandler())
bridge.get_service("ping").ping()
bridge.connect()
| 18.307692 | 43 | 0.710084 |
3922c5e1b8bbf49e5010cddfa330544ec3762fa2 | 239 | py | Python | lidi/home/views.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | null | null | null | lidi/home/views.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | 21 | 2017-06-03T14:16:14.000Z | 2018-05-29T07:28:27.000Z | lidi/home/views.py | campovski/lidi | 9699e62e70e679970816e29ca7618c9ed0146c7e | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
| 26.555556 | 84 | 0.656904 |
3922d1c4bdc9f843e699052bf6a3c54eb1d262ef | 1,918 | py | Python | src/models/fcnet.py | ArlindKadra/DeepLearning | 4e9ffe39bbb8722ca658522e6b6d26c6f2291ef6 | [
"Apache-2.0"
] | 4 | 2018-09-07T13:30:16.000Z | 2021-05-04T18:01:53.000Z | src/models/fcnet.py | ArlindKadra/DeepLearning | 4e9ffe39bbb8722ca658522e6b6d26c6f2291ef6 | [
"Apache-2.0"
] | null | null | null | src/models/fcnet.py | ArlindKadra/DeepLearning | 4e9ffe39bbb8722ca658522e6b6d26c6f2291ef6 | [
"Apache-2.0"
] | 1 | 2018-09-06T15:30:36.000Z | 2018-09-06T15:30:36.000Z | import torch.nn as nn
| 32.508475 | 106 | 0.620438 |
392319a9342f295f87a01e4b65c39850a3a7bba7 | 24 | py | Python | lib/galaxy/version.py | natefoo/galaxy-beta2 | 3af3bf5742fbf0f7d301a2a8c548a3e153544448 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/version.py | natefoo/galaxy-beta2 | 3af3bf5742fbf0f7d301a2a8c548a3e153544448 | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | lib/galaxy/version.py | natefoo/galaxy-beta2 | 3af3bf5742fbf0f7d301a2a8c548a3e153544448 | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | VERSION_MAJOR = "15.03"
| 12 | 23 | 0.708333 |
3923dfa242a117dd52d99cfb05d8706c69aadef0 | 16,438 | py | Python | vspreview/toolbars/comp/toolbar.py | wwww-wwww/vs-preview | 3aaad4f2242ca1d490dccb895efe27e823162d2a | [
"Apache-2.0"
] | null | null | null | vspreview/toolbars/comp/toolbar.py | wwww-wwww/vs-preview | 3aaad4f2242ca1d490dccb895efe27e823162d2a | [
"Apache-2.0"
] | null | null | null | vspreview/toolbars/comp/toolbar.py | wwww-wwww/vs-preview | 3aaad4f2242ca1d490dccb895efe27e823162d2a | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import os
import string
import random
import logging
import vapoursynth as vs
from pathlib import Path
from requests import Session
from functools import partial
from requests_toolbelt import MultipartEncoder, MultipartEncoderMonitor
from typing import Any, Mapping, Callable, Dict, F... | 38.227907 | 117 | 0.625989 |
39241952bc6bc92767ff1742cea6d0733b20db90 | 3,737 | py | Python | tweets.py | s-broda/capstoneproject | 816fe144db6dc7eb430e5e1cc14937c63a8fc4b0 | [
"MIT"
] | null | null | null | tweets.py | s-broda/capstoneproject | 816fe144db6dc7eb430e5e1cc14937c63a8fc4b0 | [
"MIT"
] | 7 | 2020-03-24T18:13:33.000Z | 2022-02-10T01:12:31.000Z | tweets.py | s-broda/capstoneproject | 816fe144db6dc7eb430e5e1cc14937c63a8fc4b0 | [
"MIT"
] | null | null | null | # see https://www.spinningbytes.com/resources/germansentiment/ and https://github.com/aritter/twitter_download for obtaining the data.
import os
from pathlib import Path
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from conversion import convert_examples_to_features, conv... | 38.525773 | 134 | 0.644902 |
39291dcb4bbcc2d0f6388acdff47bf0a4970b898 | 1,642 | py | Python | guiHandling/webHandler.py | Mstpyt/Faceit-Overlay | e76165817bc121fbc570edd874a2c117817e7a12 | [
"MIT"
] | 6 | 2021-04-10T13:36:46.000Z | 2021-08-08T17:35:38.000Z | guiHandling/webHandler.py | kvanja19/Faceit-Overlay | e76165817bc121fbc570edd874a2c117817e7a12 | [
"MIT"
] | 1 | 2021-05-16T17:23:38.000Z | 2021-05-17T19:49:56.000Z | guiHandling/webHandler.py | kvanja19/Faceit-Overlay | e76165817bc121fbc570edd874a2c117817e7a12 | [
"MIT"
] | 2 | 2021-05-13T06:59:20.000Z | 2021-11-02T10:25:50.000Z | """ -------------------------------------------------------------------------------------------------------------------
WEB HANDLING
---------------------------------------------------------------------------------------------------------------------"""
import logging
f... | 37.318182 | 121 | 0.433009 |
392a607723b67c251d4511eda973648c6b07d74b | 3,959 | py | Python | examples/tensorflow/image_recognition/slim/main.py | daisyden/lpot | d8709bb73ce13cfc0fd760845e0be40af22f5a45 | [
"Apache-2.0"
] | null | null | null | examples/tensorflow/image_recognition/slim/main.py | daisyden/lpot | d8709bb73ce13cfc0fd760845e0be40af22f5a45 | [
"Apache-2.0"
] | null | null | null | examples/tensorflow/image_recognition/slim/main.py | daisyden/lpot | d8709bb73ce13cfc0fd760845e0be40af22f5a45 | [
"Apache-2.0"
] | null | null | null | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 37.349057 | 101 | 0.678202 |
392cf46d90da25ce8a11ce807453e2474844bf87 | 867 | py | Python | visitors/models.py | maxhamz/prieds_test_hospital_queue_be | 44529f65dcd167caa48c84926e118d86a7d38b92 | [
"MIT"
] | null | null | null | visitors/models.py | maxhamz/prieds_test_hospital_queue_be | 44529f65dcd167caa48c84926e118d86a7d38b92 | [
"MIT"
] | null | null | null | visitors/models.py | maxhamz/prieds_test_hospital_queue_be | 44529f65dcd167caa48c84926e118d86a7d38b92 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 32.111111 | 70 | 0.573241 |
392daab33fb8dcb9b0b5a07380a98a73e1208a33 | 1,751 | py | Python | muchbettermoments.py | mirca/muchbettermoments | 8cc2bf18ff52abf86151a12358434691bea0857d | [
"MIT"
] | 1 | 2019-07-01T18:25:35.000Z | 2019-07-01T18:25:35.000Z | muchbettermoments.py | mirca/muchbettermoments | 8cc2bf18ff52abf86151a12358434691bea0857d | [
"MIT"
] | null | null | null | muchbettermoments.py | mirca/muchbettermoments | 8cc2bf18ff52abf86151a12358434691bea0857d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["quadratic_2d"]
import numpy as np
def quadratic_2d(data):
"""
Compute the quadratic estimate of the centroid in a 2d-array.
Args:
data (2darray): two dimensional data array
Returns
center (tuple): c... | 37.255319 | 82 | 0.503141 |
392ddea8f0c6de5f8409bf9bfb268b8f61a56946 | 416 | py | Python | script/run_WOA.py | cyy111/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 104 | 2020-09-07T01:24:19.000Z | 2022-03-30T13:11:21.000Z | script/run_WOA.py | luanedge/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 3 | 2020-05-12T03:54:16.000Z | 2020-06-06T01:12:31.000Z | script/run_WOA.py | luanedge/metaheuristics | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | [
"Apache-2.0"
] | 40 | 2020-08-30T14:29:37.000Z | 2022-03-30T17:33:26.000Z | from models.multiple_solution.swarm_based.WOA import BaseWOA, BaoWOA
from utils.FunctionUtil import square_function
## Setting parameters
root_paras = {
"problem_size": 30,
"domain_range": [-1, 1],
"print_train": True,
"objective_func": square_function
}
woa_paras = {
"epoch": 100,
"pop_size": ... | 20.8 | 68 | 0.716346 |
392e0fa49127c7455cbbc085060a98c4b07b4219 | 600 | py | Python | mmdetection_pipeline/tests/mmdet_test.py | KonstantinSviridov/mmdetection_pipeline | 7e17c4bb48af28713d018e087907f7295ef68d7e | [
"MIT"
] | null | null | null | mmdetection_pipeline/tests/mmdet_test.py | KonstantinSviridov/mmdetection_pipeline | 7e17c4bb48af28713d018e087907f7295ef68d7e | [
"MIT"
] | 2 | 2019-12-13T04:40:34.000Z | 2019-12-13T04:41:19.000Z | mmdetection_pipeline/tests/mmdet_test.py | musket-ml/instance_segmentation_pipeline | 7e17c4bb48af28713d018e087907f7295ef68d7e | [
"MIT"
] | null | null | null | import unittest
from musket_core import projects
from musket_core import parralel
import os
fl=__file__
fl=os.path.dirname(fl) | 28.571429 | 75 | 0.663333 |
392e7ae4d68761df65c87509c9deacee55a05db5 | 470 | py | Python | setup.py | CentryPlan/dataclassframe | 2135c35f7a6495e8b482055fd74a2a4ba8c8a90b | [
"MIT"
] | 321 | 2020-11-02T18:02:07.000Z | 2022-03-19T21:40:15.000Z | setup.py | CentryPlan/dataclassframe | 2135c35f7a6495e8b482055fd74a2a4ba8c8a90b | [
"MIT"
] | 3 | 2020-11-04T03:43:10.000Z | 2020-12-30T03:01:24.000Z | setup.py | CentryPlan/dataclassframe | 2135c35f7a6495e8b482055fd74a2a4ba8c8a90b | [
"MIT"
] | 5 | 2020-11-03T08:50:33.000Z | 2020-12-24T21:05:41.000Z | #!/usr/bin/env python3
"""
Based on template: https://github.com/FedericoStra/cython-package-example
"""
from setuptools import setup
with open("requirements.txt") as fp:
install_requires = fp.read().strip().split("\n")
with open("requirements_dev.txt") as fp:
dev_requires = fp.read().strip().split("\n")
s... | 21.363636 | 73 | 0.66383 |
392e81963b0ccd94345db1a8d6229e0ef20fd753 | 3,038 | py | Python | Paleo_DB_Rip.py | matt-oak/DinoFinder | 8a66c6da77dae01b6083155d724479e02abb8440 | [
"MIT"
] | null | null | null | Paleo_DB_Rip.py | matt-oak/DinoFinder | 8a66c6da77dae01b6083155d724479e02abb8440 | [
"MIT"
] | null | null | null | Paleo_DB_Rip.py | matt-oak/DinoFinder | 8a66c6da77dae01b6083155d724479e02abb8440 | [
"MIT"
] | null | null | null | #Paleo_DB_Rip.py
#Python script to programmatically web-scrape from paleobiodb.org
#Author: Matt Oakley
#Date: 08/15/2016
# Imports #
from bs4 import BeautifulSoup
from time import sleep
from geopy.geocoders import Nominatim
import urllib2
import pycountry
import wget
import sys
import os.path
import codecs
# Globals... | 28.392523 | 93 | 0.737986 |
392fd4d7d4ab0ef07297911fa104492a550448f4 | 10,015 | py | Python | body/body_textEditor.py | XiantaoCheng/Structure | 5a12452dbe03fd37baf3059578cd1dd10f25e161 | [
"MIT"
] | 1 | 2020-01-15T02:02:59.000Z | 2020-01-15T02:02:59.000Z | body/body_textEditor.py | XiantaoCheng/Structure | 5a12452dbe03fd37baf3059578cd1dd10f25e161 | [
"MIT"
] | null | null | null | body/body_textEditor.py | XiantaoCheng/Structure | 5a12452dbe03fd37baf3059578cd1dd10f25e161 | [
"MIT"
] | null | null | null | import sys, re
if __name__=='__main__':
sys.path.append(sys.path[0]+'\\..')
from body.bone import NetP
from body.soul import Karma
from body.body_motor import Motor
from body.body_pool import Pool
from body.body_brain import Brain
from body.body_debugger import Debugger
from tools import tools_sl, tools_ba... | 33.383333 | 93 | 0.582227 |
3930fe21eb5cd0ba519b6ebaa5b9946853840b7a | 246 | py | Python | test/test_add_group.py | eugene1smith/homeworks | 47edd36feddf4965b6a9c3d665406ebdf928af85 | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | eugene1smith/homeworks | 47edd36feddf4965b6a9c3d665406ebdf928af85 | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | eugene1smith/homeworks | 47edd36feddf4965b6a9c3d665406ebdf928af85 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.group import group
| 22.363636 | 72 | 0.670732 |
3932406768d964a4c7968afb2b7511f4c0d4b671 | 2,569 | py | Python | apps/events/views.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 145 | 2016-04-11T06:53:13.000Z | 2022-03-22T05:15:49.000Z | apps/events/views.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 78 | 2017-09-24T10:59:49.000Z | 2022-02-12T07:36:27.000Z | apps/events/views.py | seanlefevre/openduty | 34ab21117f114ccc808d8b0aa2cb801c819bdb86 | [
"MIT"
] | 30 | 2016-04-11T06:53:16.000Z | 2021-12-29T11:39:26.000Z | from django.views.generic import DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from schedule.models import Calendar
from schedule.views i... | 36.183099 | 99 | 0.695601 |
39374b6e345f46dad950a9f9736af1abd9167fd0 | 2,055 | py | Python | examples/experiments_code/amazon_reviews/sentiment_subsampling.py | fossabot/textlytics | d172211316d688604bcd18d3581c3aac26dcc404 | [
"MIT"
] | 26 | 2016-12-05T19:37:27.000Z | 2021-01-03T21:48:23.000Z | examples/experiments_code/amazon_reviews/sentiment_subsampling.py | fossabot/textlytics | d172211316d688604bcd18d3581c3aac26dcc404 | [
"MIT"
] | 3 | 2017-07-15T13:33:18.000Z | 2020-09-21T11:39:37.000Z | examples/experiments_code/amazon_reviews/sentiment_subsampling.py | fossabot/textlytics | d172211316d688604bcd18d3581c3aac26dcc404 | [
"MIT"
] | 14 | 2017-05-29T22:19:35.000Z | 2021-01-03T21:48:24.000Z | import dill
import glob
import csv
import os
from os.path import basename, join
from joblib import Parallel, delayed
domain_path = '/datasets/amazon-data/new-julian/domains'
domain_subdirectory = 'only-overall-lemma-and-label-sampling-1-3-5'
domain_files = glob.glob(join(domain_path,
'o... | 33.688525 | 83 | 0.547932 |
393790c6c74505311873a4d3f3d4433885613ee4 | 289 | py | Python | image_augmentation/preprocessing/__init__.py | tanzhenyu/image_augmentation | d1f8cc35cf25438556e7934e8e6c78827819ea9d | [
"Apache-2.0"
] | 6 | 2020-08-26T18:54:42.000Z | 2020-11-22T02:45:37.000Z | image_augmentation/preprocessing/__init__.py | tanzhenyu/image_augmentation | d1f8cc35cf25438556e7934e8e6c78827819ea9d | [
"Apache-2.0"
] | 3 | 2020-07-13T13:44:09.000Z | 2022-02-10T02:12:46.000Z | image_augmentation/preprocessing/__init__.py | tanzhenyu/image_augmentation | d1f8cc35cf25438556e7934e8e6c78827819ea9d | [
"Apache-2.0"
] | 1 | 2021-03-24T09:51:22.000Z | 2021-03-24T09:51:22.000Z | from image_augmentation.preprocessing.preprocess import cifar_baseline_augmentation, cifar_standardization
from image_augmentation.preprocessing.preprocess import imagenet_baseline_augmentation, imagenet_standardization
from image_augmentation.preprocessing import efficientnet_preprocess
| 72.25 | 112 | 0.927336 |
3938f66ebcb4941fe419b94358a44fc04fa3be72 | 10,406 | py | Python | __init__.py | mechanicalnull/sourcery_pane | dd133ebf553d6e05383acfd53f3ef5a1e5ae3a72 | [
"MIT"
] | 3 | 2019-07-15T13:30:43.000Z | 2020-02-02T16:45:41.000Z | __init__.py | mechanicalnull/sourcery_pane | dd133ebf553d6e05383acfd53f3ef5a1e5ae3a72 | [
"MIT"
] | null | null | null | __init__.py | mechanicalnull/sourcery_pane | dd133ebf553d6e05383acfd53f3ef5a1e5ae3a72 | [
"MIT"
] | 4 | 2020-02-02T16:45:48.000Z | 2021-11-01T19:02:28.000Z | from binaryninjaui import DockHandler, DockContextHandler, UIActionHandler, getMonospaceFont
from PySide2 import QtCore
from PySide2.QtCore import Qt
from PySide2.QtWidgets import (QApplication, QHBoxLayout, QVBoxLayout, QLabel, QWidget,
QPlainTextEdit, QSizePolicy, QFormLayout, QPushButton, QLineEdit)
... | 41.624 | 109 | 0.635307 |
393910313cbbed71c6e0e72f44096de0f1b773f4 | 291 | py | Python | goodrich/python_primer/c119.py | saurabhkhattry/data-structure-algorithm-design | b56e5a049a1ef326b9214b6cc39d115001351176 | [
"Apache-2.0"
] | null | null | null | goodrich/python_primer/c119.py | saurabhkhattry/data-structure-algorithm-design | b56e5a049a1ef326b9214b6cc39d115001351176 | [
"Apache-2.0"
] | null | null | null | goodrich/python_primer/c119.py | saurabhkhattry/data-structure-algorithm-design | b56e5a049a1ef326b9214b6cc39d115001351176 | [
"Apache-2.0"
] | null | null | null | """
C 1.19
---------------------------------
Problem Statement : Demonstrate how to use Pythons list comprehension syntax to produce
the list [ a , b , c , ..., z ], but without having to type all 26 such
characters literally.
Author : Saurabh
"""
print([chr(x + 97) for x in range(26)])
| 24.25 | 88 | 0.604811 |
3939aa1d856a574c19f27e62b940f244af52e4da | 596 | py | Python | Lib/compiler/readonly/util.py | isabella232/cinder-1 | 428669a9a925287f192ab361226e5a8ca3fb74d9 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/compiler/readonly/util.py | isabella232/cinder-1 | 428669a9a925287f192ab361226e5a8ca3fb74d9 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/compiler/readonly/util.py | isabella232/cinder-1 | 428669a9a925287f192ab361226e5a8ca3fb74d9 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | from __future__ import annotations
from ast import AST, Subscript, Name, Call
READONLY_ANNOTATION: str = "Readonly"
READONLY_CALL: str = "readonly"
READONLY_FUNC: str = "readonly_func"
| 24.833333 | 62 | 0.714765 |
393a060942d745ceccf01b98ea1e8e8466b9fafc | 11,360 | py | Python | test/Velvet_server_test.py | kbaseapps/Velvet | 00afa308d7b0f1b87b53446b9b3a96dfddaca7ac | [
"MIT"
] | 1 | 2020-01-13T18:53:30.000Z | 2020-01-13T18:53:30.000Z | test/Velvet_server_test.py | kbaseapps/Velvet | 00afa308d7b0f1b87b53446b9b3a96dfddaca7ac | [
"MIT"
] | 3 | 2017-08-08T23:36:26.000Z | 2019-12-06T22:40:09.000Z | test/Velvet_server_test.py | kbaseapps/Velvet | 00afa308d7b0f1b87b53446b9b3a96dfddaca7ac | [
"MIT"
] | 4 | 2017-08-08T20:39:39.000Z | 2019-02-18T14:45:13.000Z | # -*- coding: utf-8 -*-
import os # noqa: F401
import os.path
import shutil
import time
import unittest
from configparser import ConfigParser
from os import environ
from pprint import pformat
from pprint import pprint # noqa: F401
from Velvet.VelvetImpl import Velvet
from Velvet.VelvetServer import MethodContext
fro... | 40 | 108 | 0.56118 |
393bca90bdc4ef1bbf86856f262735858fce5471 | 681 | py | Python | scale/product/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/product/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/product/apps.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | """Defines the application configuration for the product application"""
from __future__ import unicode_literals
from django.apps import AppConfig
| 32.428571 | 80 | 0.743025 |
393bd4af7328cb9c5923034c08fd8225175f6552 | 1,248 | py | Python | lattly_tests/converter_tests.py | yfarrugia/lattly | 9c8d02ece253d9f61b09d66bc87b097a15970619 | [
"BSD-2-Clause"
] | null | null | null | lattly_tests/converter_tests.py | yfarrugia/lattly | 9c8d02ece253d9f61b09d66bc87b097a15970619 | [
"BSD-2-Clause"
] | null | null | null | lattly_tests/converter_tests.py | yfarrugia/lattly | 9c8d02ece253d9f61b09d66bc87b097a15970619 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'yanikafarrugia'
import unittest
import lattly_service.converter
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(ConverterTests)
unittest.TextTestRunner(verbosity = 2).run(suite)
| 32 | 87 | 0.776442 |
393cbe1ff632625ba7a044d6e1e2447604c538f6 | 527 | py | Python | setup.py | halfstrik/vindinium-client | 41d4a25e0c72f80eb08335d29dfd38c7dc9f17b8 | [
"BSD-2-Clause"
] | null | null | null | setup.py | halfstrik/vindinium-client | 41d4a25e0c72f80eb08335d29dfd38c7dc9f17b8 | [
"BSD-2-Clause"
] | null | null | null | setup.py | halfstrik/vindinium-client | 41d4a25e0c72f80eb08335d29dfd38c7dc9f17b8 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='vindinium-client',
version='0.1.0',
description='Client for Vindinium.org',
long_description=readme,
author='Serg... | 21.958333 | 56 | 0.662239 |
393d67b0059464a2e4620d4516cb5c2070a663d8 | 2,012 | py | Python | forte/processors/tests/machine_translation_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | forte/processors/tests/machine_translation_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | forte/processors/tests/machine_translation_processor_test.py | tcl326/forte | d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8 | [
"Apache-2.0"
] | null | null | null | """This module tests Machine Translation processor."""
import unittest
import os
import tempfile
import shutil
from ddt import ddt, data, unpack
from texar.torch import HParams
from forte.pipeline import Pipeline
from forte.data.readers import MultiPackSentenceReader
from forte.processors import MicrosoftBingTranslat... | 37.259259 | 80 | 0.628728 |
393e4214a661900f13fdc9d5d96fe6733a98f9a7 | 1,715 | py | Python | autodriver/src/autodriver/image_capture.py | rel1c/robocar | 6e83391b84873781c839cfc57a9fc1a49f641dbb | [
"MIT"
] | null | null | null | autodriver/src/autodriver/image_capture.py | rel1c/robocar | 6e83391b84873781c839cfc57a9fc1a49f641dbb | [
"MIT"
] | null | null | null | autodriver/src/autodriver/image_capture.py | rel1c/robocar | 6e83391b84873781c839cfc57a9fc1a49f641dbb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import cv2
from picamera.array import PiRGBArray
from picamera import PiCamera
import rospy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from models.ros_publisher import ROSPublisher
if __name__ == '__main__':
camera = ImageCapture('image_capture', 'image_... | 35 | 107 | 0.64898 |
39406eb207149313aba4ec89a02427f69ca6fbfe | 612 | py | Python | lesson6/solution_simple_functions.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | 1 | 2016-10-11T19:27:08.000Z | 2016-10-11T19:27:08.000Z | lesson6/solution_simple_functions.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | null | null | null | lesson6/solution_simple_functions.py | vinaymayar/python-game-workshop | e990f51815c2080a0d702c9d90dac8e8c2a35d45 | [
"MIT"
] | null | null | null | """lesson6/solution_simple_functions.py
Contains solutions for simple functions.
"""
# Exercise 1: Write a function that prints your name and try calling it.
# Work in this file and not in the Python shell. Defining functions in
# a Python shell is difficult. Remember to name your function something
# that indicat... | 24.48 | 72 | 0.751634 |
39407878cc72837d87538645a4bdabbbbb973ff4 | 21,829 | py | Python | pydl/tests/test_rnn.py | nash911/PyDL | b0b6f599184c0046f503b9ee1703dc3dfe9a89f2 | [
"MIT"
] | null | null | null | pydl/tests/test_rnn.py | nash911/PyDL | b0b6f599184c0046f503b9ee1703dc3dfe9a89f2 | [
"MIT"
] | null | null | null | pydl/tests/test_rnn.py | nash911/PyDL | b0b6f599184c0046f503b9ee1703dc3dfe9a89f2 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------
# MIT License
#
# Copyright (c) [2021] [Avinash Ranganath]
#
# This code is part of the library PyDL <https://github.com/nash911/PyDL>
# This code is licensed under MIT license (see LICENSE.txt for details)
# ------------------------------------... | 46.247881 | 100 | 0.492922 |
3940c721245b515751e5bd8b6c8ca3c7c862fc8d | 416 | py | Python | hcloud/helpers/descriptors.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | 1 | 2019-10-23T01:00:08.000Z | 2019-10-23T01:00:08.000Z | hcloud/helpers/descriptors.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | null | null | null | hcloud/helpers/descriptors.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | 1 | 2019-06-19T17:53:10.000Z | 2019-06-19T17:53:10.000Z | # -*- coding: utf-8 -*-
from dateutil.parser import isoparse
| 23.111111 | 44 | 0.59375 |
3941703025fe2beb80c23167be7d3cc82ac99a96 | 3,317 | py | Python | src/classification_report.py | cognibit/Text-Normalization-Demo | 36355f4a2c5187948fe786b7318259151f9a9db6 | [
"Apache-2.0"
] | 66 | 2018-06-04T05:19:49.000Z | 2022-01-08T23:15:13.000Z | src/classification_report.py | cognibit/Text-Normalization-Demo | 36355f4a2c5187948fe786b7318259151f9a9db6 | [
"Apache-2.0"
] | 1 | 2019-07-02T14:44:44.000Z | 2019-07-03T14:54:24.000Z | src/classification_report.py | cognibit/Text-Normalization-Demo | 36355f4a2c5187948fe786b7318259151f9a9db6 | [
"Apache-2.0"
] | 7 | 2018-06-12T14:22:00.000Z | 2022-02-22T01:18:12.000Z | # Copyright 2018 Cognibit Solutions LLP.
#
# 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 ... | 38.126437 | 106 | 0.680434 |
3945dcb9dd48db259f43d38679d34c16f4543743 | 913 | py | Python | Joints/Pelvis.py | lcremer/Maya_Rigging | 8fe07e5f8d021a6828608bca4bf74e04f023b1cd | [
"Unlicense"
] | null | null | null | Joints/Pelvis.py | lcremer/Maya_Rigging | 8fe07e5f8d021a6828608bca4bf74e04f023b1cd | [
"Unlicense"
] | null | null | null | Joints/Pelvis.py | lcremer/Maya_Rigging | 8fe07e5f8d021a6828608bca4bf74e04f023b1cd | [
"Unlicense"
] | null | null | null | """
Creates Pelvis
"""
import maya.cmds as mc
from ..Utils import String as String | 27.666667 | 101 | 0.521358 |
3946a4dc9131883ea55e7662c3cdeaaec6befe76 | 2,311 | py | Python | src/get_weather.py | Sphinxxx1984/Welcome_system | 7e5e4d0232ef9d57afc952414fa0a4c63cd7583f | [
"MIT"
] | null | null | null | src/get_weather.py | Sphinxxx1984/Welcome_system | 7e5e4d0232ef9d57afc952414fa0a4c63cd7583f | [
"MIT"
] | 6 | 2020-01-28T22:14:36.000Z | 2022-02-09T23:33:25.000Z | src/get_weather.py | Sphinxxx1984/Welcome_system | 7e5e4d0232ef9d57afc952414fa0a4c63cd7583f | [
"MIT"
] | 2 | 2019-09-06T00:57:57.000Z | 2019-09-06T05:05:23.000Z |
from multiprocessing import Pipe
import requests
import json
import time
cur_file = "../data/cur_weather.json"
today_file = "../data/today_weather.json"
# class Weather(object):
# def __init__(self, time, week, weath, temper, now_weather):
# self.time = time
# self.week = week
# self.w... | 21.801887 | 99 | 0.568152 |
39472851d8582ebdbbe1dc8fbca3e5ec7f61d4f4 | 14,640 | py | Python | spts/gui/options.py | FilipeMaia/spts | de4eb2920b675537da611c7301d4d5a9565a1ab1 | [
"BSD-2-Clause"
] | null | null | null | spts/gui/options.py | FilipeMaia/spts | de4eb2920b675537da611c7301d4d5a9565a1ab1 | [
"BSD-2-Clause"
] | 5 | 2021-03-26T11:37:40.000Z | 2021-03-31T09:20:40.000Z | spts/gui/options.py | FilipeMaia/spts | de4eb2920b675537da611c7301d4d5a9565a1ab1 | [
"BSD-2-Clause"
] | 1 | 2021-03-24T11:07:41.000Z | 2021-03-24T11:07:41.000Z | import os.path
import logging
logger = logging.getLogger("MSI_GUI")
from PyQt5 import QtCore, QtGui
names_data_types = ["1_raw", "2_process", "3_denoise", "4_threshold", "5_detect", "6_analyse"]
denoise_methods = ["gauss", "gauss2"]#, "hist"]
peak_centering_methods = ["center_to_max", "center_of... | 38.730159 | 131 | 0.676571 |
3947cf0eb2a75dba28fc123b089a7c041e8b5a2d | 5,800 | py | Python | narx_double_descent.py | antonior92/narx-double-descent | a3aaed7b974a43bd37af64e7db7cd81fc59087d3 | [
"MIT"
] | 6 | 2021-06-20T01:58:26.000Z | 2022-02-16T10:13:57.000Z | narx_double_descent.py | antonior92/narx-double-descent | a3aaed7b974a43bd37af64e7db7cd81fc59087d3 | [
"MIT"
] | null | null | null | narx_double_descent.py | antonior92/narx-double-descent | a3aaed7b974a43bd37af64e7db7cd81fc59087d3 | [
"MIT"
] | null | null | null | import numpy as np
from models import *
from datasets import *
from util import parse_funct_arguments
import pickle
import itertools
# ---- Main script ----
if __name__ == "__main__":
from tqdm import tqdm
import pandas as pd
import argparse
import os
parser = argparse.ArgumentParser(descripti... | 42.335766 | 114 | 0.643793 |
394975f50a2ee885d791abad087804c62ac53785 | 6,000 | py | Python | tests/artifactcache/push.py | samkenxstream/buildstream | 2164ac3ad2854eea30f85af6af2bc8a0b8754f3f | [
"Apache-2.0"
] | null | null | null | tests/artifactcache/push.py | samkenxstream/buildstream | 2164ac3ad2854eea30f85af6af2bc8a0b8754f3f | [
"Apache-2.0"
] | null | null | null | tests/artifactcache/push.py | samkenxstream/buildstream | 2164ac3ad2854eea30f85af6af2bc8a0b8754f3f | [
"Apache-2.0"
] | null | null | null | # Pylint doesn't play well with fixtures and dependency injection from pytest
# pylint: disable=redefined-outer-name
import os
import pytest
from buildstream import _yaml
from buildstream._project import Project
from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2
from buildstream._te... | 38.461538 | 114 | 0.6695 |
394c9655ba556f0a547343acb0be6e59aaec3220 | 3,006 | py | Python | app/app.py | HAKSOAT/Basafa | f110ec3b175deb3486525e17795e832de5baa108 | [
"Apache-2.0"
] | 22 | 2020-01-12T18:48:51.000Z | 2021-03-31T22:20:50.000Z | app/app.py | HAKSOAT/Basafa | f110ec3b175deb3486525e17795e832de5baa108 | [
"Apache-2.0"
] | 1 | 2020-12-08T16:44:30.000Z | 2020-12-08T16:44:30.000Z | app/app.py | HAKSOAT/Basafa | f110ec3b175deb3486525e17795e832de5baa108 | [
"Apache-2.0"
] | 1 | 2020-04-08T20:57:52.000Z | 2020-04-08T20:57:52.000Z | import logging
from app.config import oapi, app_api, redis, LAST_MENTION_ID
from app.fetcher import fetch
from app.utils import compile_tweet_link, process_tweet_text, get_most_similar_tweets, send_tweet, \
get_action, ActionType, send_no_reference_tweet
import tweepy
logging.basicConfig(filename='app.log', for... | 35.785714 | 102 | 0.641051 |
394e239ac65530d286a58a397f1543181a576923 | 3,649 | py | Python | attachments/models.py | javango/django-attachments | f50152229056728778a0a1db1de34646f66efa24 | [
"BSD-3-Clause"
] | null | null | null | attachments/models.py | javango/django-attachments | f50152229056728778a0a1db1de34646f66efa24 | [
"BSD-3-Clause"
] | null | null | null | attachments/models.py | javango/django-attachments | f50152229056728778a0a1db1de34646f66efa24 | [
"BSD-3-Clause"
] | null | null | null | import os
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.core.files.storage import DefaultStorage
from django.utils.translati... | 34.102804 | 100 | 0.648945 |
394eab59f9ddad5f0a7d648d203df7753ee2aeca | 1,769 | py | Python | src/models/dive.py | Skorp7/backend | 0fe06cbe6146f4c863983d7059387b05d9df5894 | [
"MIT"
] | null | null | null | src/models/dive.py | Skorp7/backend | 0fe06cbe6146f4c863983d7059387b05d9df5894 | [
"MIT"
] | null | null | null | src/models/dive.py | Skorp7/backend | 0fe06cbe6146f4c863983d7059387b05d9df5894 | [
"MIT"
] | null | null | null | from pymodm import MongoModel, fields
from models.target import Target
from models.user import User
| 29.483333 | 70 | 0.616167 |
394feb4118d6e9b0b87ec29bc0be9b581f2100ed | 3,193 | py | Python | evaluate.py | uw-biomedical-ml/oct-irf-train | ebf8631f96883ec5ed91574201b05818f95c0f7d | [
"BSD-3-Clause"
] | 1 | 2021-07-24T06:44:06.000Z | 2021-07-24T06:44:06.000Z | evaluate.py | uw-biomedical-ml/oct-irf-train | ebf8631f96883ec5ed91574201b05818f95c0f7d | [
"BSD-3-Clause"
] | 5 | 2020-09-25T22:35:32.000Z | 2022-02-09T23:37:02.000Z | evaluate.py | uw-biomedical-ml/oct-irf-train | ebf8631f96883ec5ed91574201b05818f95c0f7d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from PIL import Image
import sys, glob, tqdm, os
import numpy as np
from colour import Color
if len(sys.argv) != 4:
usage()
import deeplearning.unet
(_, indir, outdir, mode) = sys.argv
if not os.path.isdir(indir):
print("ERROR: %s is not a directory" % indir)
sys.exit(-1)
if not os... | 29.293578 | 86 | 0.61259 |
3950e84c703f64f3f48f3a37d0f1cd0486c9f552 | 29,604 | py | Python | interfaz.py | ifigueroa065/Voluntariado | 375eab96adc7a95f8204244f942840bdce47c8b5 | [
"MIT"
] | null | null | null | interfaz.py | ifigueroa065/Voluntariado | 375eab96adc7a95f8204244f942840bdce47c8b5 | [
"MIT"
] | null | null | null | interfaz.py | ifigueroa065/Voluntariado | 375eab96adc7a95f8204244f942840bdce47c8b5 | [
"MIT"
] | null | null | null | from tkinter import *
import os
from datetime import datetime
import webbrowser
from tkinter import messagebox
from tkinter import ttk
import tkinter.filedialog
import tkinter as tk
import openpyxl
from REPORTE import *
datos = [] #reporte
precios = [] #precios
preciosmq=[] #precios mq
subtotales = []
C... | 41.520337 | 141 | 0.420011 |
3954ca2aed7ee1c085bbfe2f96be79e42677eab1 | 16,156 | py | Python | deep_hipsc_tracking/plotting/compartment_plot.py | JackToppen/deep-hipsc-tracking | 9d7e07814f26e3f76603bba1a945ae05e88733db | [
"BSD-3-Clause"
] | 2 | 2021-05-19T02:10:04.000Z | 2021-05-27T01:26:54.000Z | deep_hipsc_tracking/plotting/compartment_plot.py | JackToppen/deep-hipsc-tracking | 9d7e07814f26e3f76603bba1a945ae05e88733db | [
"BSD-3-Clause"
] | 1 | 2021-05-17T23:17:32.000Z | 2021-05-19T15:17:21.000Z | deep_hipsc_tracking/plotting/compartment_plot.py | JackToppen/deep-hipsc-tracking | 9d7e07814f26e3f76603bba1a945ae05e88733db | [
"BSD-3-Clause"
] | 1 | 2021-05-17T22:51:17.000Z | 2021-05-17T22:51:17.000Z | """ Plot data split by compartments
Classes:
* :py:class:`CompartmentPlot`: compartment plotting tool
"""
# Standard lib
from typing import Tuple, Optional, Dict
# 3rd party imports
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
# Our own imports
from .styling impo... | 40.189055 | 114 | 0.573533 |
1a2ec0438436e70f3f58ef493bca2cccbd7f42d3 | 10,874 | py | Python | utils/perm_utils.py | IBM/NeuronAlignment | 5b82b60666db1fac72e53db07529a3328ee549c4 | [
"Apache-2.0"
] | 3 | 2020-09-09T01:23:34.000Z | 2021-12-23T16:56:00.000Z | utils/perm_utils.py | IBM/NeuronAlignment | 5b82b60666db1fac72e53db07529a3328ee549c4 | [
"Apache-2.0"
] | null | null | null | utils/perm_utils.py | IBM/NeuronAlignment | 5b82b60666db1fac72e53db07529a3328ee549c4 | [
"Apache-2.0"
] | null | null | null | import torch
import numpy as np
| 42.311284 | 117 | 0.492551 |
1a30a95b720fecbddf3339b56bb201d9cdb0ad1d | 374 | py | Python | src/test_main.py | kkworden/python-pipenv-bootstrap | 64f846f44240a093a2a707a8c3252b913799e177 | [
"MIT"
] | null | null | null | src/test_main.py | kkworden/python-pipenv-bootstrap | 64f846f44240a093a2a707a8c3252b913799e177 | [
"MIT"
] | null | null | null | src/test_main.py | kkworden/python-pipenv-bootstrap | 64f846f44240a093a2a707a8c3252b913799e177 | [
"MIT"
] | null | null | null | from unittest import mock
import unittest
import pytest
from .main import some_func
| 20.777778 | 52 | 0.705882 |
1a31249dd4025a966d8f9e01d3235e3a9810453b | 566 | py | Python | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/densenet/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | 1 | 2021-05-24T10:08:51.000Z | 2021-05-24T10:08:51.000Z | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/densenet/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/keras/api/_v2/keras/applications/densenet/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.keras.applications.densenet namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from keras.applications.densenet import DenseNe... | 33.294118 | 82 | 0.844523 |
1a3232723908fc855045a3607bc9137c6b489fe5 | 875 | py | Python | ndtt/mp/mpmanager.py | HMEIatJHU/neural-datalog-through-time | 725e02f4edf970e63d1c4b82d71b3720fd7938ca | [
"MIT"
] | 18 | 2020-07-01T06:25:03.000Z | 2021-10-05T23:25:21.000Z | ndtt/mp/mpmanager.py | matthewhammer/neural-datalog-through-time | 2e8abd33dfabe65869df5fddc44094e64aca6ca7 | [
"MIT"
] | 1 | 2021-05-21T08:53:25.000Z | 2021-05-21T08:53:25.000Z | ndtt/mp/mpmanager.py | matthewhammer/neural-datalog-through-time | 2e8abd33dfabe65869df5fddc44094e64aca6ca7 | [
"MIT"
] | 4 | 2020-07-15T14:06:43.000Z | 2021-01-03T13:54:44.000Z | import torch
from torch import nn
import torch.optim as optim
import torch.multiprocessing as mp
import numpy as np
import time
| 28.225806 | 64 | 0.657143 |
1a337ebf3d2a86cd14f219f3c9b89af5616c8f7e | 1,766 | py | Python | link.py | EthanC2/broken-link-finder | 1a699c6c1f56e0575781abfdfff767bf94345dca | [
"BSD-3-Clause"
] | null | null | null | link.py | EthanC2/broken-link-finder | 1a699c6c1f56e0575781abfdfff767bf94345dca | [
"BSD-3-Clause"
] | null | null | null | link.py | EthanC2/broken-link-finder | 1a699c6c1f56e0575781abfdfff767bf94345dca | [
"BSD-3-Clause"
] | null | null | null | # Link class
# End of Link class
| 32.703704 | 132 | 0.596263 |