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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d5e45170b1659e845321f052e99691ec4fa47d1 | 94,637 | py | Python | gameserver/tests.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | null | null | null | gameserver/tests.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | 1 | 2017-02-14T12:00:14.000Z | 2017-02-14T12:00:14.000Z | gameserver/tests.py | hammertoe/didactic-spork | 8d02836f9d3a0d707eea22d480553a8fdc35a0df | [
"Apache-2.0"
] | null | null | null | import unittest
from datetime import datetime, timedelta
import time
import dateutil
import mock
import transaction
import flask_testing
from models import Base, Edge, Node, Player, Goal, Policy, Funding, Budget
from network import Network
from game import Game, get_game
from utils import random
from wallet import Wa... | 35.969973 | 136 | 0.595613 |
1d5ed91a6c42e6d6c4605027a657c48bce3dbbe1 | 10,954 | py | Python | ariadne/point_net/processor.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 6 | 2020-08-28T22:44:07.000Z | 2022-01-24T20:53:00.000Z | ariadne/point_net/processor.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 1 | 2021-02-20T09:38:46.000Z | 2021-02-20T09:38:46.000Z | ariadne/point_net/processor.py | t3hseus/ariadne | b4471a37741000e22281c4d6ff647d65ab9e1914 | [
"MIT"
] | 2 | 2021-10-04T09:25:06.000Z | 2022-02-09T09:09:09.000Z | import logging
import os
from typing import Tuple, Iterable, Optional, List
import gin
import pandas as pd
import numpy as np
from ariadne.point_net.point.points import Points, save_points_new
from ariadne.preprocessing import (
BaseTransformer,
DataProcessor,
DataChunk,
ProcessedDataChunk,
Proces... | 37.006757 | 100 | 0.595855 |
1d630971cba9f6e65624ec37bc4a69988cc209f0 | 2,972 | py | Python | setup.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | setup.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | setup.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | from os.path import abspath, dirname, join
from setuptools import find_packages, setup
# Fetches the content from README.md
# This will be used for the "long_description" field.
with open(join(dirname(abspath(__file__)), "README.md"), encoding='utf-8') as f:
README_MD = f.read()
setup(
# The name of your proje... | 37.15 | 92 | 0.693136 |
1d669e385798d178181fbbd3e80e0e9a94ed8b03 | 10,595 | py | Python | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
TGS API
A production scale tool for BYOND server management # noqa: E501
OpenAPI spec version: 9.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
def to_str(self):
"""Returns the string r... | 29.027397 | 193 | 0.587164 |
1d66cedab3a666243728b609aaec1e14208ec61e | 2,987 | py | Python | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 30 | 2021-02-25T19:25:21.000Z | 2022-03-07T01:43:54.000Z | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 1 | 2021-09-12T21:26:03.000Z | 2021-09-29T14:00:31.000Z | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 10 | 2021-02-25T21:33:15.000Z | 2022-03-06T13:08:30.000Z | import os
import sys
import shutil
import pytest
import subprocess
import xarray as xr
import numpy as np
# Current, parent and file paths
CWD = os.getcwd()
CF = os.path.realpath(__file__)
CFD = os.path.dirname(CF)
# Import library specific modules
sys.path.append(os.path.join(CFD, "../"))
sys.path.append(os.path.j... | 34.732558 | 70 | 0.688316 |
1d6899acaef28c3d3178f6885bc65bff3f550f05 | 26,957 | py | Python | sarcastic_comments.py | nagi1995/sarcastic-news-headlines-classification | 2fbc2c936cec946896161552fcffbe0cb71116c0 | [
"Apache-2.0"
] | null | null | null | sarcastic_comments.py | nagi1995/sarcastic-news-headlines-classification | 2fbc2c936cec946896161552fcffbe0cb71116c0 | [
"Apache-2.0"
] | null | null | null | sarcastic_comments.py | nagi1995/sarcastic-news-headlines-classification | 2fbc2c936cec946896161552fcffbe0cb71116c0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# <a href="https://colab.research.google.com/github/nagi1995/sarcastic-comment-detection/blob/main/Sarcastic_Comments.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
# In[1]:
from google.colab import drive
dr... | 23.198795 | 371 | 0.669659 |
1d699bede1bd0de3d82711a3efc8b955f53e785d | 14,098 | py | Python | motifscan/motif/__init__.py | shao-lab/Motifscan | eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02 | [
"BSD-3-Clause"
] | 14 | 2017-12-27T06:45:56.000Z | 2021-11-05T13:13:34.000Z | motifscan/motif/__init__.py | shao-lab/Motifscan | eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02 | [
"BSD-3-Clause"
] | 3 | 2020-05-22T05:53:35.000Z | 2021-01-22T07:58:27.000Z | motifscan/motif/__init__.py | shao-lab/Motifscan | eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02 | [
"BSD-3-Clause"
] | 1 | 2020-09-09T21:55:59.000Z | 2020-09-09T21:55:59.000Z | """
motifscan.motif
---------------
Module for motif related classes and functions.
"""
import logging
import os
import re
from motifscan.config import Config
from motifscan.exceptions import PfmsFileNotFoundError, \
PwmsFileNotFoundError, PfmsJasparFormatError, PwmsMotifScanFormatError
from motifscan.genome imp... | 35.069652 | 79 | 0.53348 |
1d6a58181fb6c8b3fec6f2ed10b70a2a998af8c6 | 387 | py | Python | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | x="There are %d types of people." % 10
binary="binary"
do_not="don't "
y="Those who know %s and those who %s." % (binary, do_not)
print (x)
print (y)
print ("I said: %r." %x)
print ("I also said: '%s'." %y)
hilarious =False
joke_evaluation="Isn't that joke so funny?! %r"
print (joke_evaluation % hilarious)
w="This is t... | 22.764706 | 58 | 0.651163 |
1d6a78c132cd00cba80ae58b28faea8af5729dee | 821 | py | Python | TestBoaHarness/src/TestResource/Test8/Test8Case.py | stanislawbartkowski/boatester | 40f852c9715d7d6f3e9be583e16d398fa29ec69b | [
"Apache-2.0"
] | 1 | 2018-02-09T01:26:33.000Z | 2018-02-09T01:26:33.000Z | TestBoaHarness/src/TestResource/Test8/Test8Case.py | stanislawbartkowski/boatester | 40f852c9715d7d6f3e9be583e16d398fa29ec69b | [
"Apache-2.0"
] | null | null | null | TestBoaHarness/src/TestResource/Test8/Test8Case.py | stanislawbartkowski/boatester | 40f852c9715d7d6f3e9be583e16d398fa29ec69b | [
"Apache-2.0"
] | null | null | null | import os
import sys
import unittest
import Test8Case
import ODBCHelper
| 24.878788 | 81 | 0.61754 |
1d6b77d7ffda23d35dcf570e0f37a02bba8cb003 | 6,742 | py | Python | tests/custom.py | vsoch/django-river-ml | 67bea67770809e75323a68cac660f528e673f5d2 | [
"Apache-2.0"
] | 6 | 2022-02-24T10:26:06.000Z | 2022-03-07T02:44:37.000Z | tests/custom.py | vsoch/django-river-ml | 67bea67770809e75323a68cac660f528e673f5d2 | [
"Apache-2.0"
] | null | null | null | tests/custom.py | vsoch/django-river-ml | 67bea67770809e75323a68cac660f528e673f5d2 | [
"Apache-2.0"
] | null | null | null | import collections
import functools
import random
from typing import Dict, List
from river import base, utils
def iter_counts(X: List[List[str]]):
"""
Given lists of words, return vocabularies with counts. This is useful
for the VariableVocabKMeans model that expects this input.
Parameters
-----... | 31.504673 | 95 | 0.577573 |
1d6b85556904e23be368445d1a45aa9c9e365db6 | 12,956 | py | Python | doc/examples/multi_taper_spectral_estimation.py | slnovak/nitime | 8182d032caf5ad9ca2f46fc428c87cb8d5dde133 | [
"BSD-3-Clause"
] | 1 | 2017-02-02T23:52:23.000Z | 2017-02-02T23:52:23.000Z | doc/examples/multi_taper_spectral_estimation.py | slnovak/nitime | 8182d032caf5ad9ca2f46fc428c87cb8d5dde133 | [
"BSD-3-Clause"
] | null | null | null | doc/examples/multi_taper_spectral_estimation.py | slnovak/nitime | 8182d032caf5ad9ca2f46fc428c87cb8d5dde133 | [
"BSD-3-Clause"
] | null | null | null | """
.. _multi-taper-psd:
===============================
Multi-taper spectral estimation
===============================
The distribution of power in a signal, as a function of frequency, known as the
power spectrum (or PSD, for power spectral density) can be estimated using
variants of the discrete Fourier transfor... | 31.754902 | 165 | 0.737651 |
1d6ba565cf85ab39807e15a90e796ac2aba9b48f | 16,253 | py | Python | python/fixrgraph/musedev/test/test_api.py | LesleyLai/biggroum | e26de363e4bf4645dd5d90121742d3f3533f5a00 | [
"Apache-2.0"
] | 7 | 2019-02-14T17:28:29.000Z | 2021-01-11T07:12:34.000Z | python/fixrgraph/musedev/test/test_api.py | LesleyLai/biggroum | e26de363e4bf4645dd5d90121742d3f3533f5a00 | [
"Apache-2.0"
] | 23 | 2018-08-19T23:06:54.000Z | 2020-04-14T08:21:05.000Z | python/fixrgraph/musedev/test/test_api.py | LesleyLai/biggroum | e26de363e4bf4645dd5d90121742d3f3533f5a00 | [
"Apache-2.0"
] | 4 | 2018-06-28T18:22:55.000Z | 2019-03-21T06:36:56.000Z | """ Test the creation of the index
"""
import sys
import logging
import os
import json
import copy
import subprocess
import tempfile
import shutil
from flask import Flask, Response
from multiprocessing import Process
from cStringIO import StringIO
try:
import unittest2 as unittest
except ImportError:
import... | 42.883905 | 952 | 0.559035 |
1d6c97ab775b3924a519a3875bbacd8525d4d56d | 4,074 | py | Python | camkes/parser/tests/teststage6.py | aisamanra/camkes-tool | 4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3 | [
"BSD-2-Clause"
] | null | null | null | camkes/parser/tests/teststage6.py | aisamanra/camkes-tool | 4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3 | [
"BSD-2-Clause"
] | null | null | null | camkes/parser/tests/teststage6.py | aisamanra/camkes-tool | 4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017, Data61
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230.
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE... | 26.802632 | 73 | 0.556946 |
1d6cb2fb072b36fb24704252a550de48cd21f375 | 551 | py | Python | buttercup/main.py | GrafeasGroup/buttercup | 77eef4cb7f34723b246b6b2f11af92a8d7c06cae | [
"MIT"
] | 6 | 2020-12-03T20:29:30.000Z | 2022-02-08T06:07:44.000Z | buttercup/main.py | GrafeasGroup/buttercup | 77eef4cb7f34723b246b6b2f11af92a8d7c06cae | [
"MIT"
] | 110 | 2020-07-29T07:58:28.000Z | 2022-02-08T14:54:23.000Z | buttercup/main.py | GrafeasGroup/buttercup | 77eef4cb7f34723b246b6b2f11af92a8d7c06cae | [
"MIT"
] | 2 | 2021-12-07T16:22:19.000Z | 2021-12-07T16:40:33.000Z | import sys
from buttercup import logger
from buttercup.bot import ButtercupBot
EXTENSIONS = [
# The config cog has to be first!
"config",
"admin",
"handlers",
"welcome",
"name_validator",
"find",
"search",
"stats",
"heatmap",
"history",
"ping",
"rules",
"leaderb... | 19.678571 | 86 | 0.649728 |
1d6e1945cc59f4a6cbe5c9f8035ff97b4f932f73 | 6,245 | py | Python | posts_apis/tests/tests.py | islam-kamel/CODERUSH_APIS | ac9b21ab81da65b3e2a84549a9b6ea6665afe047 | [
"MIT"
] | 2 | 2021-12-13T05:11:22.000Z | 2021-12-15T04:39:34.000Z | posts_apis/tests/tests.py | islam-kamel/CODERUSH_APIS | ac9b21ab81da65b3e2a84549a9b6ea6665afe047 | [
"MIT"
] | 1 | 2021-12-15T03:04:11.000Z | 2021-12-16T04:08:57.000Z | posts_apis/tests/tests.py | islam-kamel/CODERUSH_APIS | ac9b21ab81da65b3e2a84549a9b6ea6665afe047 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2021 islam kamel
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | 38.549383 | 80 | 0.63731 |
1d6e5306af7ec10787ad04ff1c709c25e136dd97 | 1,750 | py | Python | bench2csv/bench2csv_sat.py | jansemat/verifire | 5e178cc87d634e6b495ad77d34d05592379f624e | [
"MIT"
] | null | null | null | bench2csv/bench2csv_sat.py | jansemat/verifire | 5e178cc87d634e6b495ad77d34d05592379f624e | [
"MIT"
] | null | null | null | bench2csv/bench2csv_sat.py | jansemat/verifire | 5e178cc87d634e6b495ad77d34d05592379f624e | [
"MIT"
] | null | null | null | import sys
import math
import random
# Function: main()
# --- Arguments: none; takes slice.csv as command line argument
# --- Return: none
# --- Purpose: takes slice.csv discard slice as argument, prints out SAT firewall policy (default-deny format)
#
if __name__ == "__main__":
main() | 29.661017 | 117 | 0.670286 |
1d6ee31d662f0f169c3224b1cd7e60481b985d34 | 765 | py | Python | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 27.321429 | 67 | 0.667974 |
1d70a1af99e208123df9b6b1c5b50f5689c85198 | 1,079 | py | Python | Python/python-tutorials/algo/hailstone.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | Python/python-tutorials/algo/hailstone.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | Python/python-tutorials/algo/hailstone.py | zhongyangynag/code-study | 5410929554107a384a09d899c6fa3d16ed383d2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# inst.eecs.berkeley.edu/~cs61a/sp12/hw/hw1.html
# Q4. Douglas Hofstadters Pulitzer-prize-winning book, Gdel, Escher, Bach, poses the following mathematical puzzle.
#
# Pick a positive number n
# If n is even, divide it by 2.
# If n is odd, multipy it by 3 and add 1.
# Continue this process until... | 34.806452 | 327 | 0.721038 |
1d71d0d9ea9a6a26f4c379575e424de0468d5cd5 | 70 | py | Python | core/outfits/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | core/outfits/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | core/outfits/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from core.outfits import listing
from core.outfits.base import Outfit
| 23.333333 | 36 | 0.842857 |
1d7466097245fe0f589e9cc748e16317321ada97 | 48 | py | Python | tests/conftest.py | jonra1993/rasa-sdk | 2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b | [
"Apache-2.0"
] | 172 | 2019-05-14T19:34:55.000Z | 2022-03-25T04:34:20.000Z | tests/conftest.py | jonra1993/rasa-sdk | 2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b | [
"Apache-2.0"
] | 451 | 2019-05-13T15:29:38.000Z | 2022-03-28T09:00:52.000Z | tests/conftest.py | jonra1993/rasa-sdk | 2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b | [
"Apache-2.0"
] | 160 | 2019-05-16T05:05:48.000Z | 2022-03-25T04:34:24.000Z | from sanic import Sanic
Sanic.test_mode = True
| 12 | 23 | 0.791667 |
1d7699d2066786cd54e3533e9c740d66887674d7 | 5,818 | py | Python | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""Helper module for simplified QISKit usage."""
import logging
from qiskit import transpiler
from qiskit.transpiler._passm... | 39.310811 | 94 | 0.664146 |
1d7c7f7bfd4d9dc9e55cdc2091cf0b436100b69f | 43,323 | py | Python | train.py | xlDownxl/SfmLearner-Pytorch | e04becc8f16725d15cb603f4cf438a6059aa8adf | [
"MIT"
] | null | null | null | train.py | xlDownxl/SfmLearner-Pytorch | e04becc8f16725d15cb603f4cf438a6059aa8adf | [
"MIT"
] | null | null | null | train.py | xlDownxl/SfmLearner-Pytorch | e04becc8f16725d15cb603f4cf438a6059aa8adf | [
"MIT"
] | null | null | null | import argparse
import time
import csv
from collections import OrderedDict
import os
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import custom_transforms
import models
from utils import tensor2array, save_checkpoint, save_path_formatter, log_output_ten... | 48.083241 | 206 | 0.616116 |
1d7c8351f2e5f82917fe01cfc0e7ffa0119aecd0 | 13,038 | py | Python | discrete_opt/optimization.py | claudiofahey/discrete_opt | 0bd794e1f3d8552653e49df748fc90f97e6f2af8 | [
"MIT"
] | null | null | null | discrete_opt/optimization.py | claudiofahey/discrete_opt | 0bd794e1f3d8552653e49df748fc90f97e6f2af8 | [
"MIT"
] | null | null | null | discrete_opt/optimization.py | claudiofahey/discrete_opt | 0bd794e1f3d8552653e49df748fc90f97e6f2af8 | [
"MIT"
] | null | null | null | import logging
import itertools
import numpy as np
from scipy.optimize import OptimizeResult, minimize_scalar
import scipy.constants
from .util import find_vertex_x_of_positive_parabola
def scalar_discrete_gap_filling_minimizer(
fun, bracket, args=(), tol=1.0, maxfev=None, maxiter=100, callback=None, verbos... | 37.465517 | 119 | 0.60224 |
1d7c86c05e29731b9fa25dcc67b50bb76637fb2b | 600 | py | Python | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os,json
print("Content-Type: text/html\r\n\r\n")
print
print("<title>Test CGI</title>")
print("<p>Hello World cmput404 class!</p>")
#Q1
print(os.environ)
json_object = json.dumps(dict(os.environ), indent = 4)
#print(json_object)
#Q2
for param in os.environ.keys():
if (param=="QUERY_... | 24 | 65 | 0.618333 |
1d7cc036eb1f4cee4d2d9c1c57594177d76ea02b | 344 | py | Python | tests/__init__.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | tests/__init__.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | tests/__init__.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys
from glob import glob
tests=glob(os.path.join(os.path.dirname(__file__),"*.py"))
#__all__ = [os.path.basename(file)[:-3] for file in files
# if file!='__init__.py']
for test in tests:
__import__(os.path.basename(test)[:-3], global... | 26.461538 | 73 | 0.607558 |
1d7e74a1b9166e627ccdb832e0e9c0dbaf7e1c61 | 5,240 | py | Python | firm/forms.py | mstgnz/WMS | 64aaa43fdd8fb682dedb792831b13d64046b385f | [
"Apache-2.0"
] | null | null | null | firm/forms.py | mstgnz/WMS | 64aaa43fdd8fb682dedb792831b13d64046b385f | [
"Apache-2.0"
] | null | null | null | firm/forms.py | mstgnz/WMS | 64aaa43fdd8fb682dedb792831b13d64046b385f | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Firm, Worksite, Subcontractor, Contract, Specification, Project
# FRMA FORM
# ANTYE FORM
# TAERON FORM
# SZLEME FORM
# ARTNAME FORM
# PROJE FORM
| 37.971014 | 183 | 0.579389 |
1d7e9a503c69ca7ba81589b022f35d6d7e07580d | 2,566 | py | Python | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 80 | 2021-01-15T21:55:22.000Z | 2022-03-30T07:23:54.000Z | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 51 | 2021-01-04T22:50:58.000Z | 2022-03-13T17:45:25.000Z | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 12 | 2021-01-04T22:28:48.000Z | 2022-03-29T13:20:32.000Z | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
| 40.730159 | 269 | 0.664069 |
1d7fac852950bdea4eeed4896c20818406f39dcc | 2,976 | py | Python | No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 32 | 2020-01-05T13:37:16.000Z | 2022-03-26T07:27:09.000Z | No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | null | null | null | No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 8 | 2020-06-18T16:17:27.000Z | 2022-03-15T23:58:18.000Z | '''
Description:
Say you have an array for which the i-th element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most k transactions.
Note:
You may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again).
E... | 26.810811 | 112 | 0.510753 |
1d80dd5bf8e6424636bc2fdacb0ba1747263cfe9 | 974 | py | Python | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | 14 | 2020-10-15T21:47:18.000Z | 2021-12-01T06:06:51.000Z | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | null | null | null | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | 4 | 2020-06-15T14:40:45.000Z | 2021-06-15T06:22:03.000Z | '''
Problem Description
Given an array of integers A, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such that
a1 >= a2 <= a3 >= a4 <= a5.....
NOTE : If there are multiple answers possible, return the one that's lexicographically smallest.
Input Format
Fir... | 22.136364 | 146 | 0.63039 |
1d819dab8c685dabdccb98751766a90ed31bcfec | 1,004 | py | Python | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 136 | 2016-09-04T06:24:55.000Z | 2021-08-25T07:49:42.000Z | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 2 | 2016-09-08T17:18:24.000Z | 2017-06-23T17:01:44.000Z | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 9 | 2016-09-05T00:46:25.000Z | 2021-04-09T16:52:06.000Z | from flybywire.ui import Application, Component
from flybywire.dom import h
from flybywire.misc import set_interval, clear_interval
app = TimerApp()
app.start()
| 26.421053 | 64 | 0.624502 |
1d81a396174df861ce3d129dfba4a5169ad7c8bc | 3,491 | py | Python | src/screen.py | JushBJJ/crapindow | 0774c7149d3246b713c94f4d1f4252a2b47e9f84 | [
"MIT"
] | null | null | null | src/screen.py | JushBJJ/crapindow | 0774c7149d3246b713c94f4d1f4252a2b47e9f84 | [
"MIT"
] | null | null | null | src/screen.py | JushBJJ/crapindow | 0774c7149d3246b713c94f4d1f4252a2b47e9f84 | [
"MIT"
] | null | null | null | """ Basically the whole terminal screen itself. """
import sys
import os
import colorama
import cursor
foreground_colours = {
"BLACK": "\x1b[30m",
"RED": "\x1b[31m",
"GREEN": "\x1b[32m",
"YELLOW": "\x1b[33m",
"BLUE": "\x1b[34m",
"MAGENTA": "\x1b[35m",
"CYAN": "\x1b[36m",
"WHITE": "\x... | 27.928 | 79 | 0.599542 |
1d8319cb25c16d92efd3edb9186ca3c5ae307547 | 2,763 | py | Python | DeepFilterNet/df/logger.py | cookcodes/DeepFilterNet | d36e70c8f09b0707c6718b74c25c3edaf4dce0e2 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 8 | 2021-12-23T09:57:29.000Z | 2022-01-17T07:01:53.000Z | DeepFilterNet/df/logger.py | Andong-Li-speech/DeepFilterNet | e651b79e48d5d25fd22a55514534c6c1e65f72fa | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | DeepFilterNet/df/logger.py | Andong-Li-speech/DeepFilterNet | e651b79e48d5d25fd22a55514534c6c1e65f72fa | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | import os
import sys
from typing import Dict, Optional
import torch
from loguru import logger
from torch.types import Number
from df.utils import get_branch_name, get_commit_hash, get_device, get_host
_logger_initialized = False
| 31.397727 | 97 | 0.596453 |
1d8415a63afc2d8e1652325187f2c3c67556dad6 | 3,205 | py | Python | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | 2 | 2020-10-11T03:23:37.000Z | 2020-11-13T18:58:58.000Z | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | 2 | 2021-01-30T08:59:09.000Z | 2021-06-26T18:04:57.000Z | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | null | null | null | import re
from .database import emote_database
from .node_types import EmoteNode,TextNode,CheermoteNode
from .providers.badges import Badges
from .providers.cheermotes import Cheermotes
| 29.953271 | 124 | 0.702964 |
1d8530c0d1846c03825ab65f90bae48db4ebfd24 | 8,232 | py | Python | src/svtk/svtk/baf/BAFpysam.py | talkowski-lab/gnomad-sv-v3-qc | db23760af7bc21a776e14f6ca1fbc213ff0ff9a1 | [
"BSD-3-Clause"
] | null | null | null | src/svtk/svtk/baf/BAFpysam.py | talkowski-lab/gnomad-sv-v3-qc | db23760af7bc21a776e14f6ca1fbc213ff0ff9a1 | [
"BSD-3-Clause"
] | null | null | null | src/svtk/svtk/baf/BAFpysam.py | talkowski-lab/gnomad-sv-v3-qc | db23760af7bc21a776e14f6ca1fbc213ff0ff9a1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from scipy import stats
import numpy as np
import os
import os.path
from sklearn import mixture
# return Deltest(self.count[sample]['F'],self.count[sample]['M'],self.count[sample]['E'],self.length)
# with open(self.regionfile,'r') as f:
# for line in f:
# ... | 39.014218 | 145 | 0.539237 |
1d857b7a050e752f38249ab3964c756e0e4c6ecd | 41 | py | Python | accounts/admin.py | sahilr05/sitechecker | 9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039 | [
"MIT"
] | 2 | 2021-02-21T09:24:54.000Z | 2021-05-12T18:42:37.000Z | accounts/admin.py | sahilr05/sitechecker | 9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039 | [
"MIT"
] | null | null | null | accounts/admin.py | sahilr05/sitechecker | 9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039 | [
"MIT"
] | null | null | null | from django.contrib import admin # NOQA
| 20.5 | 40 | 0.780488 |
1d85aab94ef7a4bb481f21a9288199c706287edd | 2,955 | py | Python | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 43 | 2021-12-12T08:53:19.000Z | 2022-03-30T07:07:18.000Z | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 13 | 2021-12-15T08:04:50.000Z | 2022-03-25T03:39:15.000Z | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 20 | 2021-12-10T06:52:31.000Z | 2022-03-28T10:23:53.000Z | # Copyright (c) 2022 PaddlePaddle 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 appli... | 28.142857 | 75 | 0.574619 |
1d86bc38917264012599c7189b3e1f9a968ddcaa | 46 | py | Python | scripts/example.py | fernandascovino/FGV_Criptography | 9fbc9bb5f1bd4099538be112565e4ac3fffc62c1 | [
"MIT"
] | 1 | 2018-10-03T16:17:14.000Z | 2018-10-03T16:17:14.000Z | scripts/example.py | JoaoCarabetta/cities-science | ee430d75bd0abb04485926a6f30fb23992b3f598 | [
"MIT"
] | null | null | null | scripts/example.py | JoaoCarabetta/cities-science | ee430d75bd0abb04485926a6f30fb23992b3f598 | [
"MIT"
] | null | null | null | import scripts.other_module as om
om.get_me() | 15.333333 | 33 | 0.804348 |
1d87394aa03f1901f2b10c5dd1230fa13966fdb3 | 602 | py | Python | collapsible_garden/water_level_sensor.py | katienaha/collapsible_garden | b3f52e9083d1d9584e5da7289c1ce560f793ef18 | [
"MIT"
] | null | null | null | collapsible_garden/water_level_sensor.py | katienaha/collapsible_garden | b3f52e9083d1d9584e5da7289c1ce560f793ef18 | [
"MIT"
] | null | null | null | collapsible_garden/water_level_sensor.py | katienaha/collapsible_garden | b3f52e9083d1d9584e5da7289c1ce560f793ef18 | [
"MIT"
] | null | null | null |
# External module imports
import RPi.GPIO as GPIO
# Sensor that checks whether water levels have gone too low
| 25.083333 | 68 | 0.642857 |
1d882e613aec8852e2007e1e358a346706de1051 | 782 | py | Python | swap/__init__.py | afourmy/SWAPON | 9dfc980ff4b5096f42e9fe5891873b465a98e88d | [
"MIT"
] | 7 | 2018-03-28T10:21:22.000Z | 2018-07-03T18:37:30.000Z | swap/__init__.py | afourmy/SWAPON | 9dfc980ff4b5096f42e9fe5891873b465a98e88d | [
"MIT"
] | 1 | 2018-03-28T13:32:45.000Z | 2018-03-28T13:32:45.000Z | swap/__init__.py | afourmy/SWAPON | 9dfc980ff4b5096f42e9fe5891873b465a98e88d | [
"MIT"
] | 1 | 2018-03-28T13:30:23.000Z | 2018-03-28T13:30:23.000Z | """Application and database initialization."""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
from swap.routes import swap
def configure_database(app):
"""Handle database initialization and shutdown."""
def create_app():
"""Flask app creation and configuration."""
a... | 24.4375 | 67 | 0.712276 |
1d8877106d1619c09d6a3b5167c9ba5af60e927b | 1,917 | py | Python | engines/vecm.py | BBVA/timecop | 0ff5c679ecf62c943e0bb31f561d4f601822a781 | [
"Apache-2.0"
] | 79 | 2018-08-13T08:36:33.000Z | 2022-03-27T05:20:07.000Z | engines/vecm.py | BBVA/timecop | 0ff5c679ecf62c943e0bb31f561d4f601822a781 | [
"Apache-2.0"
] | 14 | 2018-10-11T10:06:55.000Z | 2020-09-02T23:50:49.000Z | engines/vecm.py | BBVA/timecop | 0ff5c679ecf62c943e0bb31f561d4f601822a781 | [
"Apache-2.0"
] | 22 | 2018-08-08T08:17:47.000Z | 2021-08-03T11:47:03.000Z | import numpy as np
from matplotlib import pyplot as plt
import statsmodels.tsa.vector_ar.vecm as vecm
import pandas as pd
from . engine_output_creation import engine_output_creation
| 30.919355 | 93 | 0.715702 |
1d88ff2f19c547b52af367b081354284bd65b5d4 | 1,104 | py | Python | tests/playlist/test_playlist_init.py | fdenivac/python-qobuz | 7a70d12b80d022541af5e210f75d8943c8bd54a1 | [
"MIT"
] | 11 | 2020-04-19T00:47:47.000Z | 2022-02-04T15:39:08.000Z | tests/playlist/test_playlist_init.py | fdenivac/python-qobuz | 7a70d12b80d022541af5e210f75d8943c8bd54a1 | [
"MIT"
] | 1 | 2020-05-02T17:11:32.000Z | 2020-05-02T17:11:32.000Z | tests/playlist/test_playlist_init.py | netsuso/python-qobuz | 13a9bfeca2a23b5819f6bdaaad9edf7309ab9443 | [
"MIT"
] | 4 | 2020-04-20T16:36:21.000Z | 2021-03-20T01:56:48.000Z | import pytest
import qobuz
import responses
from tests.resources.responses import playlist_create_json
from tests.resources.fixtures import playlist
| 25.090909 | 70 | 0.689312 |
1d8d6459cd4f63985e93d0cea74844705e5db732 | 1,684 | py | Python | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | null | null | null | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | 4 | 2020-06-05T17:51:24.000Z | 2021-06-10T19:59:29.000Z | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from questions.models import UserAnswer
User = get_user_model()
users = User.objects.all()
all_user_answers = UserAnswer.objects.all()
yemalin =users[0]
caden =users[1]
b_answers = UserAnswer.objects.filter(user = user_b)
a_total_awarded = 0
a_points_possible = 0
... | 30.071429 | 95 | 0.73753 |
1d8ed043ae4252f0d1547399b9aa09ae4c55b2e4 | 82 | py | Python | meinheld/__init__.py | IPetrik/meinheld | 1253ad7edf2febaa0b644db3953650c70bc6c234 | [
"BSD-3-Clause"
] | null | null | null | meinheld/__init__.py | IPetrik/meinheld | 1253ad7edf2febaa0b644db3953650c70bc6c234 | [
"BSD-3-Clause"
] | null | null | null | meinheld/__init__.py | IPetrik/meinheld | 1253ad7edf2febaa0b644db3953650c70bc6c234 | [
"BSD-3-Clause"
] | null | null | null | from meinheld.server import *
from meinheld import mlogging
__version__ = '1.0.1'
| 20.5 | 29 | 0.780488 |
1d8ed691bc1e2cfc66de444bb1d05af62280c187 | 1,787 | py | Python | src/models/operations/densenet.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | 3 | 2022-02-03T13:25:12.000Z | 2022-02-04T16:12:23.000Z | src/models/operations/densenet.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | null | null | null | src/models/operations/densenet.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | 1 | 2022-02-04T12:28:02.000Z | 2022-02-04T12:28:02.000Z | import collections
from typing import Callable
import torch.nn as nn
from ..modules import DropBlock
| 35.039216 | 73 | 0.521544 |
1d92af4b43cb3e937840bf4564f0bebb96606407 | 1,664 | py | Python | src/de_direct/ipfs_utils.py | tubleronchik/drone_passport_agent | e85bbc8b4777b2c93c3564c22336cb13bb93bf5f | [
"BSD-3-Clause"
] | null | null | null | src/de_direct/ipfs_utils.py | tubleronchik/drone_passport_agent | e85bbc8b4777b2c93c3564c22336cb13bb93bf5f | [
"BSD-3-Clause"
] | null | null | null | src/de_direct/ipfs_utils.py | tubleronchik/drone_passport_agent | e85bbc8b4777b2c93c3564c22336cb13bb93bf5f | [
"BSD-3-Clause"
] | null | null | null | import os
import rospy
from shutil import move
from tempfile import gettempdir, NamedTemporaryFile
from ipfshttpclient import connect
from rosbag import Bag
| 30.254545 | 120 | 0.672476 |
1d934a395a0830ed466a1f51cf7e9b44cbf3358d | 240 | py | Python | 7_adapter&facade/adapter/turkey_adapter.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 7_adapter&facade/adapter/turkey_adapter.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 7_adapter&facade/adapter/turkey_adapter.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | from duck import Duck
| 17.142857 | 31 | 0.583333 |
1d9360fea8ca609279982587a765a834decd39e6 | 475 | py | Python | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 14 | 2018-02-19T07:45:48.000Z | 2021-06-18T12:31:08.000Z | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 39 | 2018-02-05T15:19:37.000Z | 2022-03-24T15:52:40.000Z | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 7 | 2019-06-06T11:45:26.000Z | 2021-09-03T13:42:02.000Z | import rdflib as rl
import pyld as ld
import json
g = rl.ConjunctiveGraph()
g.parse(('https://raw.githubusercontent.com/incf-nidash/nidm-specs/master/nidm/nidm-results'
'/spm/example001/example001_spm_results.ttl'),
format='turtle')
g2 = g.serialize(format='json-ld')
context = { "@context": "https://... | 36.538462 | 106 | 0.730526 |
1d940c228fcfb56c1a9c74a6eb7e2d65108a4597 | 207 | py | Python | __tests__/utils/time.py | celestinosalim/dialog-engine | 17c7d6e06df05aa24cfb611e91ef4790ffc80cb6 | [
"MIT"
] | 4 | 2020-04-17T15:50:33.000Z | 2020-04-17T16:49:00.000Z | __tests__/utils/time.py | celestinosalim/dialog-engine | 17c7d6e06df05aa24cfb611e91ef4790ffc80cb6 | [
"MIT"
] | 6 | 2020-06-18T16:17:27.000Z | 2020-08-24T13:21:56.000Z | __tests__/utils/time.py | esl-works/dialog-engine | f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9 | [
"MIT"
] | 3 | 2020-04-17T16:11:35.000Z | 2020-05-21T11:38:05.000Z | import datetime
| 29.571429 | 70 | 0.772947 |
1d9436580093cf984b1f304dba129117ecc40d0b | 13,571 | py | Python | src/competitions.py | Matin-Ardestani/Type-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 13 | 2021-11-03T18:41:31.000Z | 2022-03-29T05:21:29.000Z | src/competitions.py | Matin-Ardestani/Typing-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 1 | 2021-11-10T17:44:47.000Z | 2021-11-10T17:52:50.000Z | src/competitions.py | Matin-Ardestani/Typing-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 1 | 2021-11-12T16:10:05.000Z | 2021-11-12T16:10:05.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'competition.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, ... | 49.710623 | 109 | 0.681822 |
1d94415ab82731c0dda5e02646e86a001b75c57f | 5,200 | py | Python | AutoBookTKB/AutoBookTKB.py | heyfey/AutoBookseatTKB | 9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75 | [
"MIT"
] | 2 | 2019-07-09T08:32:35.000Z | 2019-09-30T19:02:35.000Z | AutoBookTKB/AutoBookTKB.py | heyfey/AutoBookTKB | 9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75 | [
"MIT"
] | 1 | 2018-08-22T03:52:13.000Z | 2018-08-22T03:52:13.000Z | AutoBookTKB/AutoBookTKB.py | heyfey/AutoBookTKB | 9d0b27a3227e7ca5975a6b1fd3749f5b2ed6aa75 | [
"MIT"
] | null | null | null | # !/usr/bin/python
# -*-coding:utf-8 -*-
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
if __name__ == '__main__':
... | 32.704403 | 94 | 0.600962 |
1d948a5ce7cab52797ed2b3841127205cc07364e | 3,019 | py | Python | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | 3 | 2020-08-05T10:18:59.000Z | 2022-01-19T08:28:16.000Z | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | null | null | null | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | 4 | 2020-08-19T05:06:16.000Z | 2021-02-03T09:53:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import unittest
import numpy as np
from mripy import afni, math
if __name__ == '__main__':
unittest.main()
| 59.196078 | 138 | 0.655846 |
1d957ac7f202a3c53e2756d95e0827c954759d24 | 1,245 | py | Python | scale/storage/migrations/0016_populate_data_type_tags.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/storage/migrations/0016_populate_data_type_tags.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/storage/migrations/0016_populate_data_type_tags.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection, migrations
| 32.763158 | 110 | 0.683534 |
1d962125141716820a534fa0d7a319931e5f5fd8 | 30,750 | py | Python | analyze_epitope_privacy.py | shanavas33/tcr-dist | f9304fa9b7ba05f9f776aa3f60822e2e08023151 | [
"MIT"
] | 1 | 2018-10-26T10:59:46.000Z | 2018-10-26T10:59:46.000Z | analyze_epitope_privacy.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | analyze_epitope_privacy.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | import sys
from basic import *
import tcr_distances
import parse_tsv
import numpy as np
from scipy.cluster import hierarchy
from scipy.spatial import distance
import util
import html_colors
from all_genes import all_genes
with Parser(locals()) as p:
#p.str('args').unspecified_default().multiple().required()
p... | 44.759825 | 537 | 0.570179 |
1d96409b70dfd29939216befd660664abf857a96 | 135 | py | Python | src/fintrist_ds/__init__.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | null | null | null | src/fintrist_ds/__init__.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | null | null | null | src/fintrist_ds/__init__.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | 1 | 2022-01-21T21:10:38.000Z | 2022-01-21T21:10:38.000Z | """
Import all of the processing functions.
"""
from .engine import *
from .manage import *
from .services import *
from .viz import *
| 16.875 | 39 | 0.711111 |
1d96e779fc8d314da75088210a5bba32a3719d6f | 43 | py | Python | tests/tasks/secrets/__init__.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 8,633 | 2019-03-23T17:51:03.000Z | 2022-03-31T22:17:42.000Z | tests/tasks/secrets/__init__.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 3,903 | 2019-03-23T19:11:21.000Z | 2022-03-31T23:21:23.000Z | tests/tasks/secrets/__init__.py | concreted/prefect | dd732f5990ee2b0f3d816adb285168fd63b239e4 | [
"Apache-2.0"
] | 937 | 2019-03-23T18:49:44.000Z | 2022-03-31T21:45:13.000Z | import pytest
pytest.importorskip("hvac")
| 10.75 | 27 | 0.790698 |
1d9b1fa7fc8c23b3d41158678831aba2fa1fcc52 | 1,436 | py | Python | cybereason_consts.py | splunk-soar-connectors/cybereason | f53892478b9bd75415d0b3eb984d5818bce9185c | [
"Apache-2.0"
] | null | null | null | cybereason_consts.py | splunk-soar-connectors/cybereason | f53892478b9bd75415d0b3eb984d5818bce9185c | [
"Apache-2.0"
] | 2 | 2021-11-09T20:46:34.000Z | 2021-11-25T01:20:52.000Z | cybereason_consts.py | splunk-soar-connectors/cybereason | f53892478b9bd75415d0b3eb984d5818bce9185c | [
"Apache-2.0"
] | 1 | 2021-11-12T09:55:02.000Z | 2021-11-12T09:55:02.000Z | # File: cybereason_consts.py
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 42.235294 | 112 | 0.770891 |
1d9bc600cb86c39242efe33e2263b3b50c5a51bf | 230 | py | Python | apps/tg_bot/urls.py | VladimirLazor/Lohika | a36407feeb2e3ade4f8c689030f343d88ff47a92 | [
"Apache-2.0"
] | null | null | null | apps/tg_bot/urls.py | VladimirLazor/Lohika | a36407feeb2e3ade4f8c689030f343d88ff47a92 | [
"Apache-2.0"
] | 9 | 2021-03-19T15:59:10.000Z | 2022-03-12T00:57:56.000Z | apps/tg_bot/urls.py | VladimirLazor/Lohika | a36407feeb2e3ade4f8c689030f343d88ff47a92 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from config.settings import TG_WEB_HOOK_URL
from .views import tg_web_hook
urlpatterns = [
path(TG_WEB_HOOK_URL, csrf_exempt(tg_web_hook)),
]
| 23 | 52 | 0.813043 |
1d9c32db10f13bc5f70c8f9104956589288f639d | 4,242 | py | Python | creme/compose/union.py | IFV/creme | a7393b534489422ba156f2d2e83fb777afbd2efb | [
"BSD-3-Clause"
] | null | null | null | creme/compose/union.py | IFV/creme | a7393b534489422ba156f2d2e83fb777afbd2efb | [
"BSD-3-Clause"
] | 1 | 2022-02-10T06:24:42.000Z | 2022-02-10T06:24:42.000Z | creme/compose/union.py | igorol/creme | 60977c4accfdca08cfd76a162095ff738ef87281 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T08:27:14.000Z | 2021-04-16T08:27:14.000Z | import collections
import types
try:
import graphviz
GRAPHVIZ_INSTALLED = True
except ImportError:
GRAPHVIZ_INSTALLED = False
from .. import base
from . import func
__all__ = ['TransformerUnion']
| 30.517986 | 86 | 0.558934 |
1d9d5c2fd8fb2fa4769b60940901fb851de328f1 | 30,740 | py | Python | app.py | mattmallencode/republic | ce7c634fab048e2734f999d56edcf444b71d28ff | [
"CC-BY-4.0"
] | null | null | null | app.py | mattmallencode/republic | ce7c634fab048e2734f999d56edcf444b71d28ff | [
"CC-BY-4.0"
] | null | null | null | app.py | mattmallencode/republic | ce7c634fab048e2734f999d56edcf444b71d28ff | [
"CC-BY-4.0"
] | null | null | null | """
Attribution:
1. Fire SVG made by made by Deepak K Vijayan (2xsamurai). Available from: https://codepen.io/2xsamurai/pen/EKpYM". Logo animation and form animation were made by me.
2. "round_up" function wirtten by Priyankur Sarkar. AVailable from: https://www.knowledgehut.com/blog/programming/py... | 54.310954 | 252 | 0.640468 |
1d9d86c211fc1d58055ad9b788bab3c0e20dbabd | 1,398 | py | Python | test/test_earthdata.py | matthewhanson/modis-ingestor | c8b903b8ce671a93a40f563103a9ca5264658815 | [
"MIT"
] | 13 | 2017-01-31T16:37:56.000Z | 2020-06-23T19:55:55.000Z | test/test_earthdata.py | matthewhanson/modis-ingestor | c8b903b8ce671a93a40f563103a9ca5264658815 | [
"MIT"
] | 22 | 2017-01-12T19:42:32.000Z | 2021-05-20T16:03:08.000Z | test/test_earthdata.py | matthewhanson/modis-ingestor | c8b903b8ce671a93a40f563103a9ca5264658815 | [
"MIT"
] | 2 | 2018-03-29T23:41:59.000Z | 2019-11-09T00:33:38.000Z | import os
from dateutil.parser import parse
import unittest
from modispds.earthdata import query, download_granule
| 31.066667 | 125 | 0.610873 |
1d9ed538d4bd36bf0a9f2ecf1ac6d7673e34504f | 1,787 | py | Python | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 10 | 2015-10-14T12:35:50.000Z | 2022-02-20T12:24:36.000Z | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 13 | 2015-11-24T03:25:08.000Z | 2017-02-08T09:15:45.000Z | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 7 | 2015-10-15T07:53:52.000Z | 2020-12-15T00:15:49.000Z | #!/usr/bin/python
# use serial python lib included in MansOS
import sys
sys.path.append('../../../mos/make/scripts')
import serial
import threading
import random
import time
baudRate = 38400
try:
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=baudRate,
parity=serial.PARITY_NONE,
... | 20.77907 | 86 | 0.579183 |
1d9ef948608abb5888f2c512e8ac676a5c5b356c | 137 | py | Python | scripts-for-manuscript/figure4/src/h5-mean.py | Clinical-Genomics/d4-format | b36b441f652b1caa3d8ce49b880a0dc853547de3 | [
"MIT"
] | 116 | 2020-05-14T19:16:47.000Z | 2022-03-19T21:50:19.000Z | scripts-for-manuscript/figure4/src/h5-mean.py | Clinical-Genomics/d4-format | b36b441f652b1caa3d8ce49b880a0dc853547de3 | [
"MIT"
] | 40 | 2020-08-27T17:27:31.000Z | 2022-03-19T08:41:06.000Z | scripts-for-manuscript/figure4/src/h5-mean.py | Clinical-Genomics/d4-format | b36b441f652b1caa3d8ce49b880a0dc853547de3 | [
"MIT"
] | 11 | 2020-09-18T13:03:42.000Z | 2022-02-18T17:27:48.000Z | import h5py
import sys
file = h5py.File(sys.argv[1], "r")
for chr in file.keys():
data = file[chr][:]
print(chr, data.mean())
| 13.7 | 34 | 0.605839 |
1d9f22247e6067874f38821b8ef5cf39fb2b0283 | 1,205 | py | Python | setup.py | stanislavlevin/k5test | 9f4e490d93c92e1b92d23ff82fb605c297515e3f | [
"0BSD"
] | null | null | null | setup.py | stanislavlevin/k5test | 9f4e490d93c92e1b92d23ff82fb605c297515e3f | [
"0BSD"
] | null | null | null | setup.py | stanislavlevin/k5test | 9f4e490d93c92e1b92d23ff82fb605c297515e3f | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='k5test',
version='0.10.0',
author='The Python GSSAPI Team',
author_email='sross@redhat.com',
packages=['k5test'],
description='A library for testing Python applications in '
'self-contained Kerberos 5 environments'... | 32.567568 | 70 | 0.60083 |
1da049a2d7118c28d4f3ac2b476676bdb4c8aff1 | 2,677 | py | Python | src/__init__.py | erramuzpe/ruber | cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7 | [
"MIT"
] | 2 | 2018-11-07T07:54:34.000Z | 2022-01-13T13:06:06.000Z | src/__init__.py | erramuzpe/ruber | cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7 | [
"MIT"
] | null | null | null | src/__init__.py | erramuzpe/ruber | cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7 | [
"MIT"
] | null | null | null | from src.dmri import (run_spm_fsl_dti_preprocessing,
run_dti_artifact_correction,
correct_dwi_space_atlas,
get_con_matrix_matlab,
run_dtk_tractography,
)
from src.interfaces import (CanICAInterface,
... | 38.797101 | 54 | 0.393351 |
1da1ec4541fe6c8f195889f5b3381ab3a7789467 | 1,062 | py | Python | nuage_neutron/vsdclient/common/cms_id_helper.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | 14 | 2015-06-24T18:35:25.000Z | 2020-09-21T07:14:06.000Z | nuage_neutron/vsdclient/common/cms_id_helper.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | 7 | 2016-01-20T18:20:28.000Z | 2020-11-18T16:04:14.000Z | nuage_neutron/vsdclient/common/cms_id_helper.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | 43 | 2015-04-07T09:02:35.000Z | 2021-02-12T07:50:19.000Z | # Copyright 2016 NOKIA
#
# 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... | 28.702703 | 78 | 0.699623 |
1da378ba7833b27f03503c506a22364e42c3cfd3 | 4,195 | py | Python | Interface.py | Angel2298/PyCakeSwapBot | e92ed52006a7aa6f94a3c88a5a70e7f4098096c9 | [
"BSD-3-Clause"
] | null | null | null | Interface.py | Angel2298/PyCakeSwapBot | e92ed52006a7aa6f94a3c88a5a70e7f4098096c9 | [
"BSD-3-Clause"
] | null | null | null | Interface.py | Angel2298/PyCakeSwapBot | e92ed52006a7aa6f94a3c88a5a70e7f4098096c9 | [
"BSD-3-Clause"
] | null | null | null | ####################################################### CREATE INTERFACE GUI ###########################################
import os
from tkinter import *
import time
window = Tk()
window.title("DEX PancakeBot")
window.minsize(width=500, height= 600)
window.config(padx=20, pady=20)
# Title
Title = Label(text... | 32.269231 | 121 | 0.591657 |
1da4d87ac0986d231201bd1bb6e4a0fc6fc8d019 | 211 | py | Python | watchmate_v1/watchlist_app/urls.py | rroy11705/Rest_API_With_Django | 6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60 | [
"CNRI-Python"
] | null | null | null | watchmate_v1/watchlist_app/urls.py | rroy11705/Rest_API_With_Django | 6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60 | [
"CNRI-Python"
] | null | null | null | watchmate_v1/watchlist_app/urls.py | rroy11705/Rest_API_With_Django | 6a75db2e2c3913ec9afc1cbfef67a5c9fd655e60 | [
"CNRI-Python"
] | null | null | null | from .views import movie_details, movie_list
from django.urls import path, include
urlpatterns = [
path('all/', movie_list, name="movie-list"),
path('<int:pk>/', movie_details, name="movie-details"),
]
| 26.375 | 59 | 0.701422 |
1da5b23d36add3ad28179cc6dbffebac84bcc231 | 280 | py | Python | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | null | null | null | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | 80 | 2020-09-22T19:26:24.000Z | 2021-09-22T19:44:09.000Z | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | null | null | null | from graphene import relay
from graphene_django import DjangoObjectType
from graphene_federation import key
from ...reviews.models import Performer
| 21.538462 | 44 | 0.753571 |
1da5bba78f1767ef9835d4c40a24376f9193ae1b | 3,550 | py | Python | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 11 | 2019-02-24T16:44:41.000Z | 2020-12-14T13:03:21.000Z | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 291 | 2019-03-22T17:21:53.000Z | 2022-03-31T04:13:44.000Z | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 10 | 2019-03-22T15:45:14.000Z | 2021-12-20T14:00:25.000Z | """Tests for `python_dev_tools` package."""
import sys
from pathlib import Path
from textwrap import dedent
import python_dev_tools.whataformatter
import python_dev_tools.whatalinter
from python_dev_tools.whataformatter import main as main_formatter
from python_dev_tools.whatalinter import lint, main as main_linter
... | 27.099237 | 95 | 0.589577 |
1da6ecd7cf81d6949311f2c3cbbf6ad20aecc35c | 164 | py | Python | deepa2/metrics/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | deepa2/metrics/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | deepa2/metrics/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | """Classes for evaluating generated DeepA2 records"""
# flake8: noqa
# pylint: skip-file
from deepa2.metrics.metric_handler import (
DA2PredictionEvaluator,
)
| 20.5 | 53 | 0.762195 |
1da7670cb3265bca373b14be3b2d7200397286df | 1,664 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/models.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Models for the dark-launching languages
"""
from config_models.models import ConfigurationModel
from django.db import models
| 27.278689 | 104 | 0.622596 |
1da7c48b6acd120f6e2b6e67aae76c191dc3fd53 | 548 | py | Python | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | null | null | null | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | 1 | 2022-01-10T22:59:36.000Z | 2022-01-10T22:59:36.000Z | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | null | null | null | # ___ ___ _ __ _ _ _ __ ___ _ __ ___ _ _
# / __|/ __| '__| | | | '_ ` _ \| '_ ` _ \| | | |
# \__ \ (__| | | |_| | | | | | | | | | | | |_| |
# |___/\___|_| \__,_|_| |_| |_|_| |_| |_|\__, |
# |___/
__title__ = 'scrummy'
__description__ = 'Plaintext Scrum-like Todo and ... | 39.142857 | 70 | 0.534672 |
1da8215721de36398c957e99a911b088c52928ea | 3,210 | py | Python | refnx/reflect/_jax_reflect.py | dcortie/refnx | 037434fa0a64755f72c540d75063986bd517ab10 | [
"BSD-3-Clause"
] | 32 | 2016-04-18T15:29:59.000Z | 2022-03-27T08:35:29.000Z | refnx/reflect/_jax_reflect.py | dcortie/refnx | 037434fa0a64755f72c540d75063986bd517ab10 | [
"BSD-3-Clause"
] | 116 | 2015-10-27T04:33:09.000Z | 2022-02-22T02:02:47.000Z | refnx/reflect/_jax_reflect.py | dcortie/refnx | 037434fa0a64755f72c540d75063986bd517ab10 | [
"BSD-3-Clause"
] | 22 | 2015-09-29T23:21:15.000Z | 2022-02-27T18:12:18.000Z | """
*Calculates the specular (Neutron or X-ray) reflectivity from a stratified
series of layers.
The refnx code is distributed under the following license:
Copyright (c) 2015 A. R. J. Nelson, ANSTO
Permission to use and redistribute the source code or binary forms of this
software and its documentation, with or with... | 30 | 79 | 0.62648 |
1da9f37084416d4890228bbc62b4a8fea137f0a1 | 7,015 | py | Python | ModelFinder/model_finder.py | Sparab16/CreditCardPrediction | 70c26664d747e0cfcae5256609097ab2e9434b67 | [
"MIT"
] | null | null | null | ModelFinder/model_finder.py | Sparab16/CreditCardPrediction | 70c26664d747e0cfcae5256609097ab2e9434b67 | [
"MIT"
] | null | null | null | ModelFinder/model_finder.py | Sparab16/CreditCardPrediction | 70c26664d747e0cfcae5256609097ab2e9434b67 | [
"MIT"
] | null | null | null | from sklearn.model_selection import GridSearchCV
from sklearn.metrics import roc_auc_score, accuracy_score
from sklearn.naive_bayes import GaussianNB
from xgboost import XGBClassifier
import os
from Logger import AppLogger
| 45.258065 | 142 | 0.609123 |
d5179e30e12ae21f90a025392fe8828ab8591a1d | 2,547 | py | Python | migrations/versions/8778f6b803ae_.py | anngle/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | null | null | null | migrations/versions/8778f6b803ae_.py | anngle/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | 6 | 2020-06-05T18:11:49.000Z | 2022-03-11T23:20:50.000Z | migrations/versions/8778f6b803ae_.py | anaf007/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | 1 | 2019-05-30T06:00:30.000Z | 2019-05-30T06:00:30.000Z | """empty message
Revision ID: 8778f6b803ae
Revises: 309f6ca2a8ec
Create Date: 2018-03-04 18:11:47.289975
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '8778f6b803ae'
down_revision = '309f6ca2a8ec'
branch_labels = None
depe... | 48.056604 | 125 | 0.711818 |
d517c4f09ba04347c87fe273db685ea053682476 | 7,248 | py | Python | barbican-8.0.0/barbican/plugin/util/translations.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | barbican-8.0.0/barbican/plugin/util/translations.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | barbican-8.0.0/barbican/plugin/util/translations.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 35.356098 | 77 | 0.717991 |
d5188b939478073039307a3d9b9b3d9126626f3a | 35,539 | py | Python | mars/worker/execution.py | immortalFrogJiang/mars | 93c786e38bdc0fbb483282d7792379db0345a3b6 | [
"Apache-2.0"
] | 1 | 2019-02-01T07:41:48.000Z | 2019-02-01T07:41:48.000Z | mars/worker/execution.py | immortalFrogJiang/mars | 93c786e38bdc0fbb483282d7792379db0345a3b6 | [
"Apache-2.0"
] | null | null | null | mars/worker/execution.py | immortalFrogJiang/mars | 93c786e38bdc0fbb483282d7792379db0345a3b6 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2018 Alibaba Group Holding Ltd.
#
# 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 a... | 43.552696 | 117 | 0.63533 |
d51a3e8b7e251050ecd8235bb18dc9a527dfd0c7 | 5,574 | py | Python | models/text2text/encoder.py | aasseman/mi-prometheus | c655c88cc6aec4d0724c19ea95209f1c2dd6770d | [
"Apache-2.0"
] | null | null | null | models/text2text/encoder.py | aasseman/mi-prometheus | c655c88cc6aec4d0724c19ea95209f1c2dd6770d | [
"Apache-2.0"
] | null | null | null | models/text2text/encoder.py | aasseman/mi-prometheus | c655c88cc6aec4d0724c19ea95209f1c2dd6770d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2017 Sean Robertson
#
# 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... | 41.909774 | 182 | 0.685863 |
d51acf3bcb18e8d4e1684a55450fc3e9b95ebb72 | 6,200 | py | Python | TSSystem/apps/edu_reform/models.py | LittleBai0606/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | null | null | null | TSSystem/apps/edu_reform/models.py | LittleBai0606/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | 5 | 2020-06-05T18:13:28.000Z | 2022-02-11T03:39:14.000Z | TSSystem/apps/edu_reform/models.py | WhiteBrownBottle/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | null | null | null | from django.db import models
import datetime, time
import django.utils.timezone as timezone
from student.models import Student
from teacher.models import Teacher
from utils.customfilefield.storage import FileStorage
# Create your models here.
| 43.661972 | 143 | 0.669677 |
d51b548c1f46b703f923d309ace739d11c94c086 | 2,374 | py | Python | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 653 | 2018-01-02T21:03:49.000Z | 2022-03-24T06:37:10.000Z | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 219 | 2017-12-09T21:44:43.000Z | 2022-03-23T20:21:46.000Z | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 155 | 2018-02-07T17:08:18.000Z | 2022-03-13T23:36:57.000Z | import pandas as pd
import pytest
from iexfinance.stocks import Stock
from iexfinance.utils.exceptions import IEXQueryError
| 25.255319 | 53 | 0.642797 |
d51cb89eb6deb0955d26dd78296fd7fa6bebba2b | 3,855 | py | Python | gatlin/infra/excel.py | kokomal/GATLIN | 20102e6d926a3a805d1cb30c8d6ec45b492ac507 | [
"BSD-3-Clause"
] | 1 | 2019-08-05T13:01:04.000Z | 2019-08-05T13:01:04.000Z | gatlin/infra/excel.py | kokomal/GATLIN | 20102e6d926a3a805d1cb30c8d6ec45b492ac507 | [
"BSD-3-Clause"
] | null | null | null | gatlin/infra/excel.py | kokomal/GATLIN | 20102e6d926a3a805d1cb30c8d6ec45b492ac507 | [
"BSD-3-Clause"
] | null | null | null | # coding = utf-8
# -*- coding: utf-8 -*-
import json
from openpyxl import load_workbook
# regionmap
# keyword
# keyword
| 32.669492 | 89 | 0.629572 |
d51db870e2b3ba60a86f83ec6d2144b9f9d6cde6 | 42,562 | py | Python | Assets/Python/Screens/CvForeignAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | 1 | 2019-08-05T18:36:14.000Z | 2019-08-05T18:36:14.000Z | Assets/Python/Screens/CvForeignAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | null | null | null | Assets/Python/Screens/CvForeignAdvisor.py | Imperator-Knoedel/Sunset | 19c95f4844586b96341f3474b58e0dacaae485b9 | [
"MIT"
] | null | null | null | ## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
from CvPythonExtensions import *
import CvUtil
import ScreenInput
import CvScreenEnums
import math
# globals
gc = CyGlobalContext()
ArtFileMgr = CyArtFileMgr()
localText = CyTranslator()
# this class is shared by both the resource and technology foreign ad... | 56.298942 | 378 | 0.728725 |
d51e26d1b13d097b4892231545aad4dd6145adfc | 6,300 | py | Python | Examples/ApiExamples/ex_hyphenation.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 3 | 2021-12-04T22:17:28.000Z | 2022-02-22T03:30:01.000Z | Examples/ApiExamples/ex_hyphenation.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 4 | 2021-11-26T10:01:06.000Z | 2021-12-14T15:01:11.000Z | Examples/ApiExamples/ex_hyphenation.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 2 | 2021-10-20T18:06:22.000Z | 2021-10-29T20:59:18.000Z | # Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
#
# This file is part of Aspose.Words. The source code in this file
# is only intended as a supplement to the documentation, and is provided
# "as is", without warranty of any kind, either expressed or implied.
import aspose.words as aw
from api_example_b... | 47.727273 | 125 | 0.685714 |
d51f3ce171cefeb4ce9612bb83acf0f40ea9f6ff | 3,036 | py | Python | PreprocessData/all_class_files/PriceSpecification.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | PreprocessData/all_class_files/PriceSpecification.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | PreprocessData/all_class_files/PriceSpecification.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z | from PreprocessData.all_class_files.StructuredValue import StructuredValue
import global_data
| 37.02439 | 403 | 0.704216 |
d52046c063e104480fca192e02774204fb6af2fe | 43,682 | py | Python | sim/python/theory_control.py | wpisailbot/boat | 7c053d67422d21af95e350c4c9d31425e5760df8 | [
"Apache-2.0"
] | 4 | 2017-04-12T19:33:17.000Z | 2019-01-29T07:44:52.000Z | sim/python/theory_control.py | wpisailbot/boat | 7c053d67422d21af95e350c4c9d31425e5760df8 | [
"Apache-2.0"
] | 17 | 2017-12-05T01:43:14.000Z | 2019-02-01T00:48:11.000Z | sim/python/theory_control.py | wpisailbot/boat | 7c053d67422d21af95e350c4c9d31425e5760df8 | [
"Apache-2.0"
] | 2 | 2017-02-19T22:40:12.000Z | 2018-09-07T11:14:24.000Z | #!/usr/bin/python3
import numpy as np
from numpy import matlib
from numpy import random
import sys
import copy
import scipy.signal
import scipy.stats.stats
from matplotlib import pyplot as plt
import unittest
# TODO:
# Only reduce longitudinal sail/rudder authority when heeled.
# For control strategy:
# Maximize forw... | 34.395276 | 117 | 0.596836 |
d521ab84f8b14d9b5f58fe4cba2c88a22ff8f98f | 1,105 | py | Python | evechem_api/security/definitions.py | mylesgallagher/evechemapi | d096a2d13b84c3ac15fedf9795177c619f96a36d | [
"MIT"
] | null | null | null | evechem_api/security/definitions.py | mylesgallagher/evechemapi | d096a2d13b84c3ac15fedf9795177c619f96a36d | [
"MIT"
] | null | null | null | evechem_api/security/definitions.py | mylesgallagher/evechemapi | d096a2d13b84c3ac15fedf9795177c619f96a36d | [
"MIT"
] | null | null | null | from .base import BaseKey, BaseKeyControl
from .exceptions import KeyNotFound
from evechem_api.maps import application_map
from evechem_api.models import Error
| 24.555556 | 63 | 0.730317 |
d522254b8c4c695805f12c63573f2dacd4d1ded5 | 293 | py | Python | notebooks/_solutions/case2_biodiversity_analysis16.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 65 | 2017-03-21T09:15:40.000Z | 2022-02-01T23:43:08.000Z | notebooks/_solutions/case2_biodiversity_analysis16.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | notebooks/_solutions/case2_biodiversity_analysis16.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 52 | 2016-12-19T07:48:52.000Z | 2022-02-19T17:53:48.000Z | heatmap_prep_plotnine = survey_data.groupby([survey_data['eventDate'].dt.year,
survey_data['eventDate'].dt.month]).size()
heatmap_prep_plotnine.index.names = ["year", "month"]
heatmap_prep_plotnine = heatmap_prep_plotnine.reset_index(name='count') | 73.25 | 87 | 0.675768 |
d523f8e13f2c1d72d705469d378a9e0c260a200c | 248 | py | Python | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | from django.urls import path
from Apps.Colaborativo import views
app_name = 'Colaborativo'
urlpatterns = [
path('', views.goEspacioColaborativo, name="colaboracion"),
path('update/<int:ida>', views.updateInfoAuditoria, name="update"),
] | 24.8 | 70 | 0.733871 |
d524800f52609686d464ccbebfdd2ca500a958bf | 3,200 | py | Python | App/models.py | steve-njuguna-k/Django-Instragram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | 2 | 2022-02-08T08:05:17.000Z | 2022-02-15T03:03:24.000Z | App/models.py | steve-njuguna-k/Django-Instagram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | null | null | null | App/models.py | steve-njuguna-k/Django-Instagram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | null | null | null | from pyexpat import model
from django.db import models
from django.contrib.auth.models import User
from cloudinary.models import CloudinaryField
# Create your models here. | 36.363636 | 122 | 0.711563 |
d5266761905d745a4881f9899734f3b37cdf85bc | 1,261 | py | Python | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | 2 | 2017-12-13T18:48:08.000Z | 2018-12-06T10:12:55.000Z | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | null | null | null | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | 1 | 2018-11-08T13:30:19.000Z | 2018-11-08T13:30:19.000Z | # script to record my location.
from time import sleep
import csv
import android
i=0
documentCount = 0
droid = android.Android()
while 1:
try:
sleep(5)
droid.startLocating(30,5)
sleep(5)
location = droid.readLocation().result
droid.stopLocating()
if hasatt... | 27.413043 | 126 | 0.538462 |
d526c2e9d5952d53cc0f0d0f50944fa61a1fa5cc | 2,123 | py | Python | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 2 | 2017-03-14T10:19:28.000Z | 2018-03-28T20:54:22.000Z | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 8 | 2020-01-02T08:01:20.000Z | 2021-09-22T17:43:29.000Z | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 2 | 2016-08-06T15:48:51.000Z | 2020-01-27T09:34:22.000Z | # Generated by Medikit 0.7.5 on 2020-05-19.
# All changes will be overriden.
# Edit Projectfile and run make update (or medikit update) to regenerate.
from codecs import open
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Py3 compatibility hacks, borrow... | 30.328571 | 110 | 0.663212 |
d526df5a2127ccb12862e8d089efd56dff94d881 | 3,947 | py | Python | backup.py | alidevjimmy/backup.py | 863b9b06118891f880617f3f27c9ee8ece5e41b4 | [
"MIT"
] | null | null | null | backup.py | alidevjimmy/backup.py | 863b9b06118891f880617f3f27c9ee8ece5e41b4 | [
"MIT"
] | null | null | null | backup.py | alidevjimmy/backup.py | 863b9b06118891f880617f3f27c9ee8ece5e41b4 | [
"MIT"
] | null | null | null | import sys
import tkinter as tk
from tkinter import messagebox as tkMessageBox
import re
import subprocess
import datetime
import getpass
import tkinter.simpledialog
import os
# location of configuration file
# this file in this version nees to command
# 1- COMMAND -> command that run for make backup -> use rsync re... | 29.901515 | 91 | 0.613884 |
d5285bf4cb0c251133aab700e3e6910bf4b734e8 | 3,061 | py | Python | mlctl/plugins/sagemaker/SagemakerHosting.py | LaudateCorpus1/mlctl | 0a42035ce9c4999e1b3565ba41fe69d6d3552273 | [
"Apache-2.0"
] | 24 | 2021-06-25T04:31:10.000Z | 2022-01-12T12:53:42.000Z | mlctl/plugins/sagemaker/SagemakerHosting.py | srivathsanvc/mlctl | 0a42035ce9c4999e1b3565ba41fe69d6d3552273 | [
"Apache-2.0"
] | 14 | 2021-06-25T04:46:43.000Z | 2021-08-19T00:01:42.000Z | mlctl/plugins/sagemaker/SagemakerHosting.py | LaudateCorpus1/mlctl | 0a42035ce9c4999e1b3565ba41fe69d6d3552273 | [
"Apache-2.0"
] | 8 | 2021-07-16T18:14:17.000Z | 2022-02-24T08:05:39.000Z | from mlctl.interfaces.Hosting import Hosting
from mlctl.plugins.utils import parse_config
import boto3
| 43.112676 | 98 | 0.499837 |
d5285c58efb554dcd2bf8ff1ee7abffb6aec165d | 1,836 | py | Python | tests/test_helpers.py | pablocael/handwritten-number-generator | 931e61469d610c48c7a36d316845026926d72eb2 | [
"MIT"
] | null | null | null | tests/test_helpers.py | pablocael/handwritten-number-generator | 931e61469d610c48c7a36d316845026926d72eb2 | [
"MIT"
] | null | null | null | tests/test_helpers.py | pablocael/handwritten-number-generator | 931e61469d610c48c7a36d316845026926d72eb2 | [
"MIT"
] | null | null | null | import numpy as np
from number_generator import helpers
| 32.785714 | 73 | 0.712418 |
d528cdb7358fa86ca6d319001569d76a35a9c560 | 360 | py | Python | products/urls.py | wmalott23/Products_app | 691e156ed6f2607a257b18bc988c789013505ee1 | [
"MIT"
] | null | null | null | products/urls.py | wmalott23/Products_app | 691e156ed6f2607a257b18bc988c789013505ee1 | [
"MIT"
] | null | null | null | products/urls.py | wmalott23/Products_app | 691e156ed6f2607a257b18bc988c789013505ee1 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
# path('', views.products_list),
# path('<int:pk>/', views.product_detail),
path('', views.ProductList.as_view()),
path('<int:pk>/', views.ProductDetail.as_view())
]
urlpatter... | 30 | 61 | 0.727778 |
d52947496bda3409d71bc7bd9fc3a5aeeb797a0a | 202 | py | Python | locomotive/models/__init__.py | maxmouchet/sncf-cli | 841a6a941630a3f460d566f50118881fff542034 | [
"MIT"
] | 22 | 2020-05-20T23:56:26.000Z | 2022-01-29T01:13:29.000Z | locomotive/models/__init__.py | maxmouchet/sncf-cli | 841a6a941630a3f460d566f50118881fff542034 | [
"MIT"
] | 8 | 2019-06-10T08:27:38.000Z | 2020-01-30T14:12:10.000Z | locomotive/models/__init__.py | maxmouchet/sncf-cli | 841a6a941630a3f460d566f50118881fff542034 | [
"MIT"
] | null | null | null | """
Models shared between locomotive modules.
"""
from .board import BoardEntry
from .journey import Journey, Proposal, Segment, Transport
from .passenger import Passenger
from .station import Station
| 22.444444 | 58 | 0.79703 |
d5296fe11fece1d8f3fbfcbc77a7811a8729397b | 1,538 | py | Python | uva/452.py | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 3 | 2020-06-25T21:04:02.000Z | 2021-05-12T03:33:19.000Z | uva/452.py | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | null | null | null | uva/452.py | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 1 | 2020-06-25T21:04:06.000Z | 2020-06-25T21:04:06.000Z | # Author: btjanaka (Bryon Tjanaka)
# Problem: (UVa) 452
# Title: Project Scheduling
# Link: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=393
# Idea: Shortest path algorithm in a DAG - find topological ordering then go
# through and relax all edges - O(E) tim... | 24.806452 | 118 | 0.535111 |
d52d64a7724649d18a9c2af3401f63e97a9893fb | 1,186 | py | Python | main/courses/forums/forms.py | Andymic/class2go | 45a457e89790cb83942d24ada816357dc91b8fe4 | [
"Apache-2.0"
] | 1 | 2015-11-05T20:49:11.000Z | 2015-11-05T20:49:11.000Z | main/courses/forums/forms.py | Andymic/class2go | 45a457e89790cb83942d24ada816357dc91b8fe4 | [
"Apache-2.0"
] | null | null | null | main/courses/forums/forms.py | Andymic/class2go | 45a457e89790cb83942d24ada816357dc91b8fe4 | [
"Apache-2.0"
] | null | null | null | from django import forms
| 31.210526 | 58 | 0.726813 |
d52e8f311e133d5943a854b889a728f1890959c9 | 6,563 | py | Python | model.py | yucicheung/AdaptiveReconNet | 953ad374150cbd488c468cc7c7d35a7409f8e92a | [
"MIT"
] | 6 | 2018-10-08T00:31:47.000Z | 2020-10-21T11:30:52.000Z | model.py | yucicheung/AdaptiveReconNet | 953ad374150cbd488c468cc7c7d35a7409f8e92a | [
"MIT"
] | 1 | 2019-01-18T10:32:41.000Z | 2019-02-18T07:28:47.000Z | model.py | yucicheung/AdaptiveReconNet | 953ad374150cbd488c468cc7c7d35a7409f8e92a | [
"MIT"
] | 4 | 2018-10-08T00:31:48.000Z | 2021-03-24T00:54:06.000Z | from utils import (
read_data,
input_setup,
imsave,
merge
)
import time
import os
import numpy as np
import tensorflow as tf
from math import ceil
| 37.936416 | 127 | 0.607039 |
d52fa52264faff6b5499de53b2e218972469ccdc | 84 | py | Python | monitor/test/__init__.py | ReCodEx/monitor | f461da684783888894c571e0bd08eaf6a948e0c5 | [
"MIT"
] | 4 | 2017-09-28T09:30:24.000Z | 2017-12-10T19:45:51.000Z | monitor/test/__init__.py | ReCodEx/monitor | f461da684783888894c571e0bd08eaf6a948e0c5 | [
"MIT"
] | null | null | null | monitor/test/__init__.py | ReCodEx/monitor | f461da684783888894c571e0bd08eaf6a948e0c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
__all__ = ['test_ClientConnections', 'test_websock_server']
| 21 | 59 | 0.761905 |