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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adc8cf67fa5dfd7aed6e2a5df90113f994c20b3b | 1,148 | py | Python | tarkov/bots/generator/loot/_base.py | JustEmuTarkov/jet_py | 2f352b5e6f5d88594d08afc46e9458e919271788 | [
"MIT"
] | 14 | 2021-02-24T02:32:48.000Z | 2022-01-03T05:51:45.000Z | tarkov/bots/generator/loot/_base.py | JustEmuTarkov/jet_py | 2f352b5e6f5d88594d08afc46e9458e919271788 | [
"MIT"
] | 1 | 2021-03-08T09:02:29.000Z | 2021-03-08T09:02:29.000Z | tarkov/bots/generator/loot/_base.py | JustEmuTarkov/jet_py | 2f352b5e6f5d88594d08afc46e9458e919271788 | [
"MIT"
] | 4 | 2021-04-14T01:47:01.000Z | 2021-11-29T02:18:32.000Z | from __future__ import annotations
from typing import TYPE_CHECKING
from dependency_injector.wiring import Provide, inject
from server.container import AppContainer
from ._types import BotInventoryContainers, LootGenerationConfig
if TYPE_CHECKING:
# pylint: disable=cyclic-import
from tarkov.bots.bots import... | 31.027027 | 69 | 0.740418 |
adc9d401feb2c0145e7e065ab182fb792dc27133 | 411 | py | Python | calico/datadog_checks/calico/check.py | davidlrosenblum/integrations-extras | 281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3 | [
"BSD-3-Clause"
] | 158 | 2016-06-02T16:25:31.000Z | 2022-03-16T15:55:14.000Z | calico/datadog_checks/calico/check.py | davidlrosenblum/integrations-extras | 281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3 | [
"BSD-3-Clause"
] | 554 | 2016-03-15T17:39:12.000Z | 2022-03-31T10:29:16.000Z | calico/datadog_checks/calico/check.py | davidlrosenblum/integrations-extras | 281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3 | [
"BSD-3-Clause"
] | 431 | 2016-05-13T15:33:13.000Z | 2022-03-31T10:06:46.000Z | from datadog_checks.base import OpenMetricsBaseCheckV2
from .metrics import METRIC_MAP
| 24.176471 | 63 | 0.664234 |
adcb4497ce1ae012191c1c8f35996119cb7174cf | 1,059 | py | Python | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | python/python_challenge/25/25.py | yunyu2019/blog | e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Date : 2016-05-17 16:36:18
# @Author : Yunyu2019 (yunyu2010@yeah.net)
# @Link : http://www.pythonchallenge.com/pc/hex/lake.html
import os
import wave
import time
import Image
import requests
"""
for i in range(1,26):
urls='http://www.pythonchalleng... | 24.068182 | 64 | 0.586402 |
adcc014796de1bd0000f6b7256d97c0e49e27311 | 2,645 | py | Python | scripts/initial_check.py | GenomeImmunobiology/hervk_kmers | 5ede5c34cda75cec840cb499270e5b3c70582045 | [
"MIT"
] | null | null | null | scripts/initial_check.py | GenomeImmunobiology/hervk_kmers | 5ede5c34cda75cec840cb499270e5b3c70582045 | [
"MIT"
] | null | null | null | scripts/initial_check.py | GenomeImmunobiology/hervk_kmers | 5ede5c34cda75cec840cb499270e5b3c70582045 | [
"MIT"
] | 1 | 2021-03-09T04:14:49.000Z | 2021-03-09T04:14:49.000Z | #!/usr/bin/env python
'''
Copyright (c) 2020 RIKEN
All Rights Reserved
See file LICENSE for details.
'''
import os,sys,datetime,multiprocessing
from os.path import abspath,dirname,realpath,join
import log,traceback
# http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python
| 33.481013 | 120 | 0.551985 |
adcc36ffc2e2e8f7a5b13fe702db8dab22da84df | 381 | py | Python | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | 37 | 2021-05-12T06:28:04.000Z | 2022-03-31T10:14:51.000Z | megalinter/tests/test_megalinter/linters/rust_clippy_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
"""
Unit tests for RUST linter clippy
This class has been automatically generated by .automation/build.py, please do not update it manually
"""
from unittest import TestCase
from megalinter.tests.test_megalinter.LinterTestRoot import LinterTestRoot
| 25.4 | 101 | 0.784777 |
adcca01c0f26e751ad2af6441598f765ca450604 | 868 | py | Python | tests/test_loader.py | sergeyglazyrindev/asceticcmdrunner | bde966398e8ecdcc638ac8137d4fab485bb5dce7 | [
"MIT"
] | null | null | null | tests/test_loader.py | sergeyglazyrindev/asceticcmdrunner | bde966398e8ecdcc638ac8137d4fab485bb5dce7 | [
"MIT"
] | null | null | null | tests/test_loader.py | sergeyglazyrindev/asceticcmdrunner | bde966398e8ecdcc638ac8137d4fab485bb5dce7 | [
"MIT"
] | null | null | null | import mock
from acmdrunner import Loader
import os
import tests.management.acr_commands
active_dir = os.getcwd()
cur_dir = os.path.dirname(__file__)
| 27.125 | 71 | 0.724654 |
adcd400ff1adfb7e8690873eed1def1e2ba865b1 | 6,838 | py | Python | tests/test_from_avro.py | godatadriven/pydantic-avro | f50010dc1bd9bb33bdcbdbe443d6085884d26dd4 | [
"MIT"
] | 7 | 2021-12-20T09:00:25.000Z | 2022-01-17T13:18:39.000Z | tests/test_from_avro.py | godatadriven/pydantic-avro | f50010dc1bd9bb33bdcbdbe443d6085884d26dd4 | [
"MIT"
] | 25 | 2021-12-18T16:18:25.000Z | 2022-03-28T22:33:14.000Z | tests/test_from_avro.py | godatadriven/pydantic-avro | f50010dc1bd9bb33bdcbdbe443d6085884d26dd4 | [
"MIT"
] | 4 | 2022-01-16T11:11:19.000Z | 2022-03-26T16:17:48.000Z | from pydantic_avro.avro_to_pydantic import avsc_to_pydantic
| 30.123348 | 119 | 0.388125 |
adcefa1b9b892a7b65705918561ff4fdd2c1bb29 | 1,128 | py | Python | dojo/unittests/tools/test_cloudsploit_parser.py | art-tykh/django-DefectDojo | 22201f336974a99808998e98cdb3ed536bfdd85a | [
"BSD-3-Clause"
] | 1,772 | 2018-01-22T23:32:15.000Z | 2022-03-31T14:49:33.000Z | dojo/unittests/tools/test_cloudsploit_parser.py | art-tykh/django-DefectDojo | 22201f336974a99808998e98cdb3ed536bfdd85a | [
"BSD-3-Clause"
] | 3,461 | 2018-01-20T19:12:28.000Z | 2022-03-31T17:14:39.000Z | dojo/unittests/tools/test_cloudsploit_parser.py | art-tykh/django-DefectDojo | 22201f336974a99808998e98cdb3ed536bfdd85a | [
"BSD-3-Clause"
] | 1,173 | 2018-01-23T07:10:23.000Z | 2022-03-31T14:40:43.000Z | from django.test import TestCase
from dojo.models import Test
from dojo.tools.cloudsploit.parser import CloudsploitParser
| 40.285714 | 85 | 0.734043 |
add258efeef3f956d7fb99304fe175cc5d75a991 | 1,329 | py | Python | mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py | 094459/time-series-and-data-lakes | 75540661764b8bca91debf625278985ceba7b5ca | [
"MIT"
] | 9 | 2021-12-03T17:51:42.000Z | 2022-03-17T08:45:05.000Z | mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py | 094459/time-series-and-data-lakes | 75540661764b8bca91debf625278985ceba7b5ca | [
"MIT"
] | null | null | null | mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py | 094459/time-series-and-data-lakes | 75540661764b8bca91debf625278985ceba7b5ca | [
"MIT"
] | 1 | 2021-12-12T16:00:31.000Z | 2021-12-12T16:00:31.000Z | from aws_cdk import core
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_s3 as s3
import aws_cdk.aws_s3_deployment as s3deploy
import aws_cdk.aws_iam as iam
| 27.122449 | 90 | 0.641836 |
add2a5d0a4f10c67d63cf8daaaf3c6b9766d80f2 | 2,743 | py | Python | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | 1 | 2021-03-22T20:45:06.000Z | 2021-03-22T20:45:06.000Z | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | null | null | null | caloric_balance/test_main_getUserString.py | ankitsumitg/python-projects | 34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1 | [
"MIT"
] | null | null | null | """
Do Not Edit this file. You may and are encouraged to look at it for reference.
"""
import sys
if sys.version_info.major != 3:
print('You must use Python 3.x version to run this unit test')
sys.exit(1)
import unittest
import main
if __name__ == '__main__':
unittest.main()
| 33.048193 | 87 | 0.677725 |
add33c54e770750ea8275fe2e30292d5a6c64611 | 1,386 | py | Python | corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from datetime import datetime, timedelta
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db import connection
from phonelog.models import OldDeviceReportEntry, DeviceReportEntry
COLUMNS = (
"xform_id", "i", "msg", "type", "date", "server_date", "domain",
"devi... | 35.538462 | 77 | 0.584416 |
add35b0f883ca25be7c8935f80592e9b0471f49d | 5,180 | py | Python | UnB/PI2-SESC/SESCdraw.py | nauam/vuepress-next | 4f39162aa38e36b85d74bf5fc858770cbf87d1f4 | [
"MIT"
] | null | null | null | UnB/PI2-SESC/SESCdraw.py | nauam/vuepress-next | 4f39162aa38e36b85d74bf5fc858770cbf87d1f4 | [
"MIT"
] | 2 | 2021-11-02T11:37:02.000Z | 2021-11-02T11:37:53.000Z | UnB/PI2-SESC/SESCdraw.py | nauam/vuepress-next | 4f39162aa38e36b85d74bf5fc858770cbf87d1f4 | [
"MIT"
] | null | null | null | import pygame
import math
from pygame.locals import *
from OpenGL.GL import *
########################################################
################## CONFIGURAES MESA ##################
larCamp = 1160
altCamp = 770
passo = 0.53
apasso = 0.18 #deg
xJog = 30
yJog = 40
has = 10
hasGOL... | 41.774194 | 99 | 0.509073 |
add36b7db37e26004fe848c8316ce3ebda2a90b6 | 660 | py | Python | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | linked_list_reversal.py | Nikhilxavier/Linked-List | b934985d937edd2cd4a683d751a930aacd7f96bf | [
"BSD-3-Clause"
] | null | null | null | """
Implementation of Linked List reversal.
"""
# Author: Nikhil Xavier <nikhilxavier@yahoo.com>
# License: BSD 3 clause
def reverse_linked_list(head):
"""Reverse linked list.
Returns reversed linked list head.
"""
current_node = head
previous_node = None
next_node = None
while current... | 20 | 48 | 0.668182 |
add538016b2beae44f41546b6a9daabd1efa1beb | 1,310 | py | Python | scripts/stats/cluster/transform_documents_2d.py | foobar999/Wikipedia-Cluster-Analysis | 4dc8166fb01f9b3ab6d7557de331cfc95298ff0c | [
"MIT"
] | null | null | null | scripts/stats/cluster/transform_documents_2d.py | foobar999/Wikipedia-Cluster-Analysis | 4dc8166fb01f9b3ab6d7557de331cfc95298ff0c | [
"MIT"
] | null | null | null | scripts/stats/cluster/transform_documents_2d.py | foobar999/Wikipedia-Cluster-Analysis | 4dc8166fb01f9b3ab6d7557de331cfc95298ff0c | [
"MIT"
] | null | null | null | import argparse
from sklearn import decomposition
from sklearn.manifold import TSNE
from scripts.utils.utils import init_logger, save_npz
from scripts.utils.documents import load_document_topics
logger = init_logger()
if __name__ == '__main__':
main()
| 39.69697 | 137 | 0.761832 |
add5947a236430ec92e6da0ce2795473737ac226 | 551 | py | Python | 1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | from collections import defaultdict
| 23.956522 | 74 | 0.548094 |
add70bcfae38da04abc22d36a07d4f398a5298d9 | 2,900 | py | Python | gbmk2pinb.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 21 | 2016-11-16T20:08:56.000Z | 2021-12-11T23:13:05.000Z | gbmk2pinb.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 1 | 2020-10-05T08:35:31.000Z | 2020-10-05T08:35:31.000Z | gbmk2pinb.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 8 | 2016-11-12T22:54:55.000Z | 2021-02-10T10:46:23.000Z | #!/usr/bin/env python
'''
Port Google Bookmarks over to pinboard.in
* Export Google Bookmarks by hitting
http://www.google.com/bookmarks/?output=xml&num=10000
* Get pinboard auth_token from https://pinboard.in/settings/password
Run:
./gbmk2pinb.py bookmarks.xml --auth-token <token>
'''
import requests
from cS... | 26.605505 | 76 | 0.62 |
add7f9669f3e05d6508ad79cf1105d32eda37887 | 11,106 | py | Python | rover/type-ab/wheels_service.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | 3 | 2018-02-13T21:39:55.000Z | 2018-04-26T18:17:39.000Z | rover/type-ab/wheels_service.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | null | null | null | rover/type-ab/wheels_service.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2016-2017 Games Creators Club
#
# MIT License
#
import traceback
import time
import re
import copy
import pyroslib
import storagelib
import smbus
#
# wheels service
#
#
# This service is responsible for moving wheels on the rover.
# Current implementation also handles:
# - se... | 29.149606 | 108 | 0.572033 |
add81cb05015339a61019826e171a37c7a199581 | 5,960 | py | Python | src/hyper_prompt/segments/git.py | artbycrunk/hyper-prompt | b78d98e4e5c65647b566368ea778b205a86371de | [
"MIT"
] | 5 | 2019-11-11T15:54:09.000Z | 2022-03-23T00:00:07.000Z | src/hyper_prompt/segments/git.py | artbycrunk/hyper-prompt | b78d98e4e5c65647b566368ea778b205a86371de | [
"MIT"
] | 8 | 2019-12-19T16:03:08.000Z | 2021-10-21T01:42:08.000Z | src/hyper_prompt/segments/git.py | artbycrunk/hyper-prompt | b78d98e4e5c65647b566368ea778b205a86371de | [
"MIT"
] | 3 | 2019-08-09T12:05:19.000Z | 2020-10-06T08:16:24.000Z | import os
import re
import subprocess
from ..segment import BasicSegment
| 30.880829 | 103 | 0.460403 |
add8774dbb279519f1395cc74a9dc7957550b2a2 | 7,520 | py | Python | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | edg_core/test_simple_const_prop.py | tengisd/PolymorphicBlocks | 240a11f813762c4eb5a97c9d9766a0af19cd8f3a | [
"BSD-3-Clause"
] | null | null | null | import unittest
from . import *
from edg_core.ScalaCompilerInterface import ScalaCompiler
| 38.367347 | 100 | 0.71742 |
adda310f115e4d135391af4cbeb41ba6e1fe7f71 | 3,061 | py | Python | get_types.py | AllanMoralesPrado/PokeAPI-project | a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145 | [
"MIT"
] | null | null | null | get_types.py | AllanMoralesPrado/PokeAPI-project | a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145 | [
"MIT"
] | null | null | null | get_types.py | AllanMoralesPrado/PokeAPI-project | a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145 | [
"MIT"
] | null | null | null | #Modulo que devuelve tres valores:
# pkmn_type_en: lista de str cuyos valores son los nombres de los tipos del pokemon (en ingles)
# special_type: lista de str cuyos valores son los nombres de los tipos especiales del pokemon
# pkmn_damage_rel: diccionario de listas str cuyos valores son los nombres de los tipos del p... | 35.593023 | 111 | 0.665795 |
addc984c604dda76024ddee4181508788307c8b0 | 422 | py | Python | pyPractise/jcp030.py | enyaooshigaolo/MyPython | 67dc3f6ff596545ab70e11a573a6031232128711 | [
"Apache-2.0"
] | null | null | null | pyPractise/jcp030.py | enyaooshigaolo/MyPython | 67dc3f6ff596545ab70e11a573a6031232128711 | [
"Apache-2.0"
] | null | null | null | pyPractise/jcp030.py | enyaooshigaolo/MyPython | 67dc3f6ff596545ab70e11a573a6031232128711 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2017115
@author: Think
512321
1.29
2.
'''
from pip._vendor.distlib.compat import raw_input
jcp030() | 21.1 | 49 | 0.597156 |
addcfbc1202ddedf82c6055c7f9b66dac55c513b | 2,821 | py | Python | scripts/anisotropy.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | scripts/anisotropy.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | scripts/anisotropy.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Created by Jongmin Sung (jongmin.sung@gmail.com)
Anisotropy data analysis
The equation for the curve as published by Marchand et al. in Nature Cell Biology in 2001 is as follows:
y = a + (b-a) / [(c(x+K)/K*d)+1], where
a is the anisotrop... | 32.802326 | 105 | 0.558313 |
addd60f66ac5c1f27cca6c73bae47a5f1d867f7c | 4,519 | py | Python | tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py | VanessaDo/cloudml-samples | ae6cd718e583944beef9d8a90db12091ac399432 | [
"Apache-2.0"
] | 1,552 | 2016-09-29T18:59:01.000Z | 2022-03-30T06:13:41.000Z | tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py | VanessaDo/cloudml-samples | ae6cd718e583944beef9d8a90db12091ac399432 | [
"Apache-2.0"
] | 385 | 2016-10-01T11:21:18.000Z | 2021-12-17T01:40:25.000Z | tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py | VanessaDo/cloudml-samples | ae6cd718e583944beef9d8a90db12091ac399432 | [
"Apache-2.0"
] | 983 | 2016-09-29T17:00:57.000Z | 2022-03-30T06:13:46.000Z | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 40.348214 | 78 | 0.611861 |
addded900080d658ae63eb6fa0ec1ba46ebc0d17 | 492 | py | Python | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | null | null | null | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | null | null | null | setup.py | my-old-projects/syspy | f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d | [
"MIT"
] | 1 | 2020-11-21T10:09:30.000Z | 2020-11-21T10:09:30.000Z | from distutils.core import setup
setup(
name = 'syspy',
version = '0.2',
url = 'https://github.com/aligoren/syspy',
download_url = 'https://github.com/aligoren/syspy/archive/master.zip',
author = 'Ali GOREN <goren.ali@yandex.com>',
author_email = 'goren.ali@yandex.com',
license = 'Apache v2... | 32.8 | 81 | 0.636179 |
adde9423551c7dda2a8e059cbe593f3c2faacded | 1,638 | py | Python | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 2 | 2021-04-01T00:23:44.000Z | 2021-04-01T00:23:48.000Z | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | null | null | null | DjangoECom/products/migrations/0003_auto_20210109_2256.py | MostafaSamyFayez/E-Commerce-Sys | 95ed3cb65b238866e336d43422dfb1737bfd7993 | [
"Unlicense"
] | 1 | 2021-01-23T13:06:25.000Z | 2021-01-23T13:06:25.000Z | # Generated by Django 3.1.4 on 2021-01-09 20:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 39.95122 | 139 | 0.59707 |
ade08716a0728bd71f409c370ab1b6a0670febc4 | 1,354 | py | Python | setup.py | PiotrRadzinski/envemind | 7eb159e3a9f481b95e26df81595e5c8b7e8485c7 | [
"MIT"
] | null | null | null | setup.py | PiotrRadzinski/envemind | 7eb159e3a9f481b95e26df81595e5c8b7e8485c7 | [
"MIT"
] | null | null | null | setup.py | PiotrRadzinski/envemind | 7eb159e3a9f481b95e26df81595e5c8b7e8485c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from distutils.core import Extension
import pathlib
here = pathlib.Path(__file__).parent.resolve()
setup(
name='envemind',
version='0.0.1',
description='Prediction of monoisotopic mass in mass spectra',
# long_des... | 36.594595 | 71 | 0.619645 |
ade1b9af12ca82c1c26ca0644c6d5b378d6445ab | 5,496 | py | Python | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 2 | 2021-12-10T21:17:57.000Z | 2021-12-17T18:54:49.000Z | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 9 | 2021-12-21T18:35:28.000Z | 2022-03-27T20:03:50.000Z | build.py | niklas2902/py4godot | bf50624d1fc94b55faf82a3a4d322e33fbba60ce | [
"MIT"
] | 1 | 2022-03-07T08:06:57.000Z | 2022-03-07T08:06:57.000Z | import argparse
import os
import subprocess
import time
from Cython.Build import cythonize
import generate_bindings
from meson_scripts import copy_tools, download_python, generate_init_files, \
locations, platform_check, generate_godot, \
download_godot
generate_bindings.build()
def compile_python_ver_file... | 41.014925 | 121 | 0.670852 |
ade3eb7e1347229abd0cf82b50e4a088e04ffa76 | 543 | py | Python | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01/Aula08.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | # ------------------------------- UTILIZANDO MODULOS - AULA 08 -------------------------------
# BIBLIOTECA MATH
#from math import sqrt
#num = int(input('Digite um Numero: '))
#raiz = sqrt(num)
#print('O Valor da raiz de {} : {:.2f}'.format(num, raiz))
# BIBLIOTECA RANDOM
#import random
# num = random.random()... | 20.884615 | 118 | 0.604052 |
ade4d82b609c594b7c7b2743267ac4e2efc9393b | 227 | py | Python | tests/conftest.py | skarzi/drf-exception-dispatcher | a950f7ce8ca33551b0860fb4c78ced53afd06163 | [
"MIT"
] | null | null | null | tests/conftest.py | skarzi/drf-exception-dispatcher | a950f7ce8ca33551b0860fb4c78ced53afd06163 | [
"MIT"
] | 70 | 2021-02-05T07:20:57.000Z | 2022-03-31T05:11:20.000Z | tests/conftest.py | skarzi/drf-exception-dispatcher | a950f7ce8ca33551b0860fb4c78ced53afd06163 | [
"MIT"
] | null | null | null | import os
import django
from django.conf import settings
def pytest_configure(config):
"""Configure Django."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
settings.configure()
django.setup()
| 17.461538 | 63 | 0.726872 |
ade4fdb3bcfaf121e8cc409f04834032214ff47c | 763 | py | Python | Python/p1.py | Nivedya-27/Autumn-of-Automation | 2f645b58d035d6277f7ee0ff77814be812815f6d | [
"MIT"
] | null | null | null | Python/p1.py | Nivedya-27/Autumn-of-Automation | 2f645b58d035d6277f7ee0ff77814be812815f6d | [
"MIT"
] | null | null | null | Python/p1.py | Nivedya-27/Autumn-of-Automation | 2f645b58d035d6277f7ee0ff77814be812815f6d | [
"MIT"
] | null | null | null | d=int(input("enter d"))
n=''
max=''
for i in range(d):
if i==0:
n=n+str(1)
else :
n=n+str(0)
max=max+str(9)
n=int(n)+1 #smallest odd no. with d digits if d>1 or 2 if d==1
max=int(max) #largest no. with d digits
l=[] #list of prime no.s of d digits
while n<=max:
if check_prime(n):
l.append(n)
if n==2:
... | 20.621622 | 78 | 0.609436 |
ade56836ea955efdb495cba170a57ad630ee81e1 | 24,951 | py | Python | tests/test_03_main_balancer.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 5 | 2021-03-23T21:09:06.000Z | 2021-07-06T19:29:38.000Z | tests/test_03_main_balancer.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 4 | 2021-02-08T17:08:06.000Z | 2021-02-24T04:59:50.000Z | tests/test_03_main_balancer.py | VolumeFi/exchange-liquidity | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import pytest
from brownie.test import strategy
from hypothesis import HealthCheck
| 252.030303 | 19,798 | 0.665945 |
ade5713cc5ef83db5a1136d2a28d6781e4caec62 | 6,285 | py | Python | cellxgene_schema_cli/scripts/ontology_processing.py | chanzuckerberg/single-cell-curation | 7ea0aae3b3d8c75d9717b34374a8d10e222d71ce | [
"MIT"
] | 8 | 2021-03-17T23:42:41.000Z | 2022-03-08T13:08:55.000Z | cellxgene_schema_cli/scripts/ontology_processing.py | chanzuckerberg/single-cell-curation | 7ea0aae3b3d8c75d9717b34374a8d10e222d71ce | [
"MIT"
] | 156 | 2021-02-23T18:17:42.000Z | 2022-03-31T20:49:46.000Z | cellxgene_schema_cli/scripts/ontology_processing.py | chanzuckerberg/single-cell-curation | 7ea0aae3b3d8c75d9717b34374a8d10e222d71ce | [
"MIT"
] | 8 | 2021-03-22T17:07:31.000Z | 2022-03-08T11:07:48.000Z | import owlready2
import yaml
import urllib.request
import os
import gzip
import json
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../cellxgene_schema"))
import env
from typing import List
import os
def _download_owls(
owl_info_yml: str = env.OWL_INFO_YAML, output_dir: str ... | 31.742424 | 107 | 0.604455 |
ade5f5e2cfd5b36a0ae20ab962012600912b9fde | 1,337 | py | Python | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-03-04T15:24:12.000Z | 2021-03-04T15:24:12.000Z | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 7 | 2020-08-24T13:27:02.000Z | 2021-06-09T18:42:31.000Z | backoffice/web/companies/serializers.py | uktrade/trade-access-program | 8fb565e96de7d7bb0bde31255aef0f291063e93c | [
"MIT"
] | 1 | 2021-05-20T07:40:00.000Z | 2021-05-20T07:40:00.000Z | from rest_framework import serializers
from web.companies.models import Company, DnbGetCompanyResponse
| 32.609756 | 95 | 0.732236 |
ade713c52195e4d636a5f8f37736575316cae117 | 5,648 | py | Python | src/4/lr_got.py | marmor97/cds-language-exam | d6f1aa543ba3f78d1a9f34c67a687e4f0944a665 | [
"MIT"
] | null | null | null | src/4/lr_got.py | marmor97/cds-language-exam | d6f1aa543ba3f78d1a9f34c67a687e4f0944a665 | [
"MIT"
] | null | null | null | src/4/lr_got.py | marmor97/cds-language-exam | d6f1aa543ba3f78d1a9f34c67a687e4f0944a665 | [
"MIT"
] | null | null | null | # importing modules and packages
# system tools
import os
import sys
import argparse
sys.path.append(os.path.join("..", ".."))
from contextlib import redirect_stdout
# pandas, numpy, gensim
import pandas as pd
import numpy as np
import gensim.downloader
# import my classifier utility functions - see the Github repo!
... | 39.774648 | 266 | 0.611898 |
adeb17cff886b521d293c0e2174cc4837bd14430 | 1,890 | py | Python | isoprene_pumpjack/helpers/services.py | tommilligan/isoprene-pumpjack | 175c7d963b4d3378a6ad434071cad1fb6d5b8a32 | [
"Apache-2.0"
] | null | null | null | isoprene_pumpjack/helpers/services.py | tommilligan/isoprene-pumpjack | 175c7d963b4d3378a6ad434071cad1fb6d5b8a32 | [
"Apache-2.0"
] | null | null | null | isoprene_pumpjack/helpers/services.py | tommilligan/isoprene-pumpjack | 175c7d963b4d3378a6ad434071cad1fb6d5b8a32 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Central execution points for non-python services
'''
import logging
from neo4j.v1 import GraphDatabase, basic_auth
import neo4j.bolt.connection
import elasticsearch.exceptions
from isoprene_pumpjack.constants.environment import environment
from isoprene_pumpjack.utils.neo_to_d3 import neo_... | 34.363636 | 89 | 0.724868 |
aded4518a2f294727acdd53f5c2f5b29c9ac192e | 11,148 | py | Python | test/inprogress/test_ee2_api/test_EE2API.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | null | null | null | test/inprogress/test_ee2_api/test_EE2API.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | 6 | 2020-05-26T17:40:07.000Z | 2022-03-11T16:33:11.000Z | test/inprogress/test_ee2_api/test_EE2API.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | 1 | 2020-05-26T17:12:59.000Z | 2020-05-26T17:12:59.000Z | # -*- coding: utf-8 -*-
from JobBrowserBFF.TestBase import TestBase
from JobBrowserBFF.model.EE2Api import EE2Api
from JobBrowserBFF.schemas.Schema import Schema
ENV = 'ci'
USER_CLASS = 'user'
UPSTREAM_SERVICE = 'ee2'
JOB_ID_HAPPY = '5e8285adefac56a4b4bc2b14'
JOB_ID_LOG_HAPPY = '5e8647c576f5df12d4fa6953'
JOB_ID_NOT_FO... | 39.392226 | 88 | 0.600646 |
adeda8e4831bfdd84daf5ffee1aa3f3be1652de6 | 529 | py | Python | ldeep/views/activedirectory.py | podjackel/ldeep | dac9b6d92b905b66868897da4bcc2ec4fa1d0999 | [
"MIT"
] | 41 | 2018-10-24T12:10:34.000Z | 2022-03-29T08:21:30.000Z | ldeep/views/activedirectory.py | podjackel/ldeep | dac9b6d92b905b66868897da4bcc2ec4fa1d0999 | [
"MIT"
] | 7 | 2018-10-25T16:34:25.000Z | 2021-04-14T01:00:14.000Z | ldeep/views/activedirectory.py | podjackel/ldeep | dac9b6d92b905b66868897da4bcc2ec4fa1d0999 | [
"MIT"
] | 17 | 2019-01-08T15:06:15.000Z | 2022-01-21T00:20:53.000Z |
from ldap3 import ALL_ATTRIBUTES, ALL_OPERATIONAL_ATTRIBUTES
from ldap3.protocol.formatters.validators import validate_sid, validate_guid
ALL_ATTRIBUTES = ALL_ATTRIBUTES
ALL_OPERATIONAL_ATTRIBUTES = ALL_OPERATIONAL_ATTRIBUTES
ALL = [ALL_ATTRIBUTES, ALL_OPERATIONAL_ATTRIBUTES]
validate_sid = validate_sid
validate_guid... | 24.045455 | 76 | 0.835539 |
adee84920a6fd9a1311346aec3afbb03a615787d | 1,237 | py | Python | sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .automation_account import *
from .cert... | 30.925 | 80 | 0.78658 |
adf09047622763f9323976214e678f90e9ed8ff9 | 1,708 | py | Python | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | 1 | 2017-04-26T10:13:34.000Z | 2017-04-26T10:13:34.000Z | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | null | null | null | project_name/urls.py | rafael-rpa/django-auth-extension-boilerplate | 2fba1f4dc6a14da525c93303e86934682f4bfcbc | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.conf.urls import include, url
from django.contrib import admin
from auth_extension import views as auth_views
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete
from django.conf im... | 55.096774 | 276 | 0.730094 |
adf4bfc1de4b0c89ad4020a842811facae16d88a | 499 | py | Python | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | Easy/After 157/175.Modified Kaprekar Numbers.py | sherryx080/CPTango | c7491156202fa7517c96b96dab27c867b949bb63 | [
"MIT"
] | null | null | null | import sys
p = int(sys.stdin.readline())
q = int(sys.stdin.readline())
result = []
for i in range(p,q+1):
square = i * i
l_num = 0
temp = list(str(square))
#print(temp[:len(temp)//2])
#print(temp[len(temp)//2:])
if square > 10:
l_num = int(''.join(temp[:len(temp)//2]))
r_num = int(... | 20.791667 | 49 | 0.54509 |
adf6daa9b589cfc3315f30adb8aabf6d767de08b | 808 | py | Python | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | 1 | 2020-09-24T00:34:06.000Z | 2020-09-24T00:34:06.000Z | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | null | null | null | catalyst/dl/callbacks/metrics/__init__.py | TeAmP0is0N/catalyst | 445e366266196a2f1076cc7fa2438d66dfa58c14 | [
"Apache-2.0"
] | 1 | 2020-09-24T00:34:07.000Z | 2020-09-24T00:34:07.000Z | # flake8: noqa
from catalyst.dl.callbacks.metrics.accuracy import (
AccuracyCallback,
MultiLabelAccuracyCallback,
)
from catalyst.dl.callbacks.metrics.auc import AUCCallback
from catalyst.dl.callbacks.metrics.cmc import CMCScoreCallback
from catalyst.dl.callbacks.metrics.dice import (
DiceCallback,
Mul... | 27.862069 | 66 | 0.804455 |
adf797c04c5912626a52449a6704952383c10673 | 451 | py | Python | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | login/migrations/0003_user_token.py | yuxiaoYX/xiaoshuo | 5652703521aa99774e8e0667c5e6b9f24a6d90ac | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-07-28 08:12
from django.db import migrations, models
| 22.55 | 86 | 0.605322 |
adfa006844d8a11fe82113a8c42d8b2a11a4d2bc | 10,777 | py | Python | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 8 | 2018-05-24T04:46:58.000Z | 2021-06-11T04:41:49.000Z | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | null | null | null | usersystem/views.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 4 | 2020-01-24T13:35:42.000Z | 2021-06-15T07:38:06.000Z | from allauth.account.utils import setup_user_email, send_email_confirmation
from rest_framework.response import Response
from usersystem.serializers import UserSerializer, UserRegisterSerializer
from rest_framework.views import APIView
from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST, HTTP_201_CREATE... | 39.47619 | 119 | 0.675049 |
adfa93c02e8adb449c205b08b98c00c078beda51 | 13,966 | py | Python | splitgraph/commandline/image_creation.py | Trase/splitgraph | ef8332b29640230f4eebcbb350a37c67285064b1 | [
"Apache-2.0"
] | 1 | 2020-06-24T23:42:11.000Z | 2020-06-24T23:42:11.000Z | splitgraph/commandline/image_creation.py | Trase/splitgraph | ef8332b29640230f4eebcbb350a37c67285064b1 | [
"Apache-2.0"
] | null | null | null | splitgraph/commandline/image_creation.py | Trase/splitgraph | ef8332b29640230f4eebcbb350a37c67285064b1 | [
"Apache-2.0"
] | null | null | null | """
sgr commands related to creating and checking out images
"""
import sys
from collections import defaultdict
import click
from splitgraph.commandline.common import ImageType, RepositoryType, JsonType, remote_switch_option
from splitgraph.config import get_singleton, CONFIG
from splitgraph.exceptions import TableNo... | 37.951087 | 164 | 0.680009 |
adfb427ed9c8aea967913aed0f52cd6bbf4bc8fe | 1,661 | py | Python | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | tests/libtests/geocoords/data/ConvertDataApp.py | jedbrown/spatialdata | f18d34d92253986e8018f393201bf901e9667c2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
#... | 27.229508 | 78 | 0.64419 |
adfb5713c6c3ab922ee55b1c8b7f49f69297f607 | 381 | py | Python | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | index.py | FunctionX/validator_queries | 842d0a75ee07f48b972d1bb18d292cadc730fa8b | [
"MIT"
] | null | null | null | import subprocess
import json
import csv
from csv import DictWriter
import datetime
import pandas as pd
import Cmd
import Data
from Report import Report
import File
if __name__ == '__main__':
main()
| 14.111111 | 77 | 0.76378 |
adfc25dd827903785cf0dc2f054806e377cdcb01 | 1,000 | py | Python | py/py_0067_maximum_path_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0067_maximum_path_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0067_maximum_path_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 67: Maximum path sum II
# https://projecteuler.net/problem=67
#
# By starting at the top of the triangle below and moving to adjacent numbers
# on the row below, the maximum total from top to bottom is 23. 37 42 4 68 5 9
# 3That is, 3 + 7 + 4 + 9 = 23. Find the maximum total fr... | 35.714286 | 79 | 0.706 |
adfd589bdaa5f2bed3080ab8be5e570ad08ea48a | 1,457 | py | Python | sistemas_lineares.py | lucaspompeun/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais | 008d397f76a935af1aba530cc0134b9dd326d3ac | [
"MIT"
] | 16 | 2019-09-27T03:08:44.000Z | 2020-10-16T18:43:45.000Z | primeira-edicao/sistemas_lineares.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | null | null | null | primeira-edicao/sistemas_lineares.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | 5 | 2019-09-13T20:00:38.000Z | 2020-09-19T03:04:00.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 27 18:19:25 2019
INSTITUTO FEDERAL DE EDUCAO, CINCIA E TECNOLOGIA DO PRA - IFPA ANANINDEUA
@author:
Prof. Dr. Denis C. L. Costa
Discentes:
Heictor Alves de Oliveira Costa
Lucas Pompeu Neves
Grupo de ... | 26.981481 | 78 | 0.572409 |
adfdf98fe1afda40d1e086b86ceaf5056842822c | 1,956 | py | Python | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/unemp_dur.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def unemp_dur(path):
"""Unemployment Duration
Journal of Business Econ... | 22.744186 | 71 | 0.674847 |
adff3e929b131603bc3d8d375940f959a87b03cb | 138 | py | Python | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe22.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | f=float(input("Digite a temperatura na escala Farenheit: "))
celsius=5/9*(f-32)
print("A temperatura",f,"F, Em Clsius : ",celsius,"C") | 46 | 60 | 0.702899 |
bc0331e695df64f1d609fc39793c9079fcfd83e0 | 1,289 | py | Python | Exercicios/Mundo 2/ex044.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | Exercicios/Mundo 2/ex044.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | Exercicios/Mundo 2/ex044.py | EdsonRomao/CursoEmVideo | caf99f5a54c001069572a0318dfcaa50d028d362 | [
"MIT"
] | null | null | null | """
Elabore um programa que calcule o valor a ser pago por um produto,
considerando o seu PREO NORMAL e CONDIO DE PAGAMENTO:
- vista dinheiro/cheque: 10% de desconto
- vista no carto: 5% de desconto
- Em at 2x no carto: Preo normal
- 3x ou mais no carto: 20% de JUROS
"""
preco = float(input('Qual o valor do produto?... | 40.28125 | 119 | 0.619085 |
bc03aad972f5e963ed741a11cdefd802a8d37393 | 11,558 | py | Python | Sampling/gp/GPy_wrapper.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 7 | 2020-09-16T23:50:01.000Z | 2022-01-29T13:31:35.000Z | Sampling/gp/GPy_wrapper.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 1 | 2022-01-15T14:50:16.000Z | 2022-01-15T14:50:16.000Z | Sampling/gp/GPy_wrapper.py | josephhic/AutoDot | 9acd0ddab9191b8a90afc6f1f6373cf711b40b89 | [
"MIT"
] | 6 | 2020-08-20T11:52:51.000Z | 2021-03-12T08:04:35.000Z | import numpy as np
import GPy
from .GP_interface import GPInterface, convert_lengthscale, convert_2D_format
def create_GP(num_active_gates, outdim, k_name='Matern52', var_f=1.0, lengthscale=1.0, center=0.0):
if np.isscalar(lengthscale):
lengthscale = np.ones(num_active_gates)
gp = GPyWrapper() # init... | 37.771242 | 149 | 0.626752 |
bc03d7e1e8567f7bd294e43c4cbf61eccfd77084 | 128 | py | Python | Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | 15 | 2019-11-16T11:09:24.000Z | 2022-01-09T01:58:03.000Z | Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | 1 | 2021-11-10T19:46:00.000Z | 2021-11-10T19:46:00.000Z | Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py | oke-aditya/Machine_Learning | 3dd40ae2b9cba1890e7060448e75c14194b27775 | [
"MIT"
] | null | null | null | from flask_adv_deploy import app
# Note Gunicorn is not supported in Windows machine.
if __name__ == "__main__":
app.run()
| 21.333333 | 52 | 0.742188 |
bc05ff0b37a8954f4cefbbcdd8fe6e02c5cb64be | 3,938 | py | Python | 12/12.py | Hegemege/advent-of-code-2018 | 298e1dc95486df6888c3fb5b73d92dfc49703f8a | [
"MIT"
] | null | null | null | 12/12.py | Hegemege/advent-of-code-2018 | 298e1dc95486df6888c3fb5b73d92dfc49703f8a | [
"MIT"
] | null | null | null | 12/12.py | Hegemege/advent-of-code-2018 | 298e1dc95486df6888c3fb5b73d92dfc49703f8a | [
"MIT"
] | null | null | null |
def grow(node, rules):
'''Take the current state described by one node'''
# Find the leftmost node and add the 3 nodes
leftmost = get_leftmost(node)
for i in range(3):
new_node = Node('.', leftmost.index - 1, None, None)
leftmost.previous = new_node
new_node.next = leftmost
... | 28.744526 | 149 | 0.624937 |
bc068191a843e9f2423e9bfc3bb78487a28b39fc | 2,243 | py | Python | vissl/models/heads/__init__.py | blazejdolicki/vissl | 9c10748a19fb1c637f32687142c8cd685f2410ff | [
"MIT"
] | 2,512 | 2021-01-27T18:44:44.000Z | 2022-03-31T19:33:49.000Z | vissl/models/heads/__init__.py | blazejdolicki/vissl | 9c10748a19fb1c637f32687142c8cd685f2410ff | [
"MIT"
] | 361 | 2021-01-27T20:12:09.000Z | 2022-03-31T12:39:34.000Z | vissl/models/heads/__init__.py | blazejdolicki/vissl | 9c10748a19fb1c637f32687142c8cd685f2410ff | [
"MIT"
] | 277 | 2021-01-29T08:09:02.000Z | 2022-03-31T07:57:35.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from pathlib import Path
from typing import Callable
from classy_vision.generic.registry_utils import import_all_modules
FILE_ROOT = Path(__... | 28.0375 | 86 | 0.695497 |
bc06f93db51ec5a28da1f833b4d4dd387dfb4c40 | 751 | py | Python | users/tests.py | tonyguthiga/instagram | 4d49e8c8cf0efb8ac875d2986956ddcce756864b | [
"Unlicense"
] | null | null | null | users/tests.py | tonyguthiga/instagram | 4d49e8c8cf0efb8ac875d2986956ddcce756864b | [
"Unlicense"
] | null | null | null | users/tests.py | tonyguthiga/instagram | 4d49e8c8cf0efb8ac875d2986956ddcce756864b | [
"Unlicense"
] | null | null | null | from django.test import TestCase
# Create your tests here.
from django.test import TestCase
from django.contrib.auth.models import User
from .models import Profile
| 34.136364 | 133 | 0.643142 |
bc0762cc61dc9010fbb5ce8a4cca396976aadaf0 | 800 | py | Python | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 2 | 2019-12-18T16:34:06.000Z | 2020-03-13T03:31:26.000Z | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 4 | 2019-12-22T18:40:31.000Z | 2020-05-07T00:52:48.000Z | tests/strangenames.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from unittest import TestCase
import validator.validator as validator
from .test_utils import schema, build_map
| 29.62963 | 93 | 0.70125 |
bc0820e97035bc22e07e063ecf6170b4f34d25c6 | 640 | py | Python | Chap 1/Class-List-(project2).py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | Chap 1/Class-List-(project2).py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | Chap 1/Class-List-(project2).py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | # David Hickox
# Jan 12 17
# HickoxProject2
# Displayes name and classes
# prints my name and classes in columns and waits for the user to hit enter to end the program
print("David Hickox")
print()
print("1st Band")
print("2nd Programming")
print("3rd Ap Pysics C")
print("4th Lunch")
print("5th Ap Lang... | 27.826087 | 184 | 0.676563 |
bc09c9f073047ca21417a9bc0a6bb6aae99588bd | 7,080 | py | Python | easy_tokenizer/tokenizer.py | tilaboy/easy-tokenizer | c7b99bafa0a22bf0956129cdfd4c9c1069a5df57 | [
"MIT"
] | 1 | 2019-10-23T00:40:38.000Z | 2019-10-23T00:40:38.000Z | easy_tokenizer/tokenizer.py | tilaboy/easy_tokenizer | c7b99bafa0a22bf0956129cdfd4c9c1069a5df57 | [
"MIT"
] | 188 | 2019-11-16T01:48:33.000Z | 2022-03-28T09:36:19.000Z | easy_tokenizer/tokenizer.py | tilaboy/easy-tokenizer | c7b99bafa0a22bf0956129cdfd4c9c1069a5df57 | [
"MIT"
] | null | null | null | '''Tokenizer Class'''
# -*- encoding: utf-8 -*-
import re
from .token_with_pos import TokenWithPos
from .patterns import Patterns
| 35.223881 | 76 | 0.524859 |
bc0a0fa5f18fcd52ed6c80228bbe0f8823a9bdad | 2,688 | py | Python | rev/desmos-pro/solve-maze.py | nanzggits/sdctf-2021 | fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c | [
"MIT"
] | 6 | 2021-05-17T21:04:31.000Z | 2022-01-01T23:28:18.000Z | rev/desmos-pro/solve-maze.py | nanzggits/sdctf-2021 | fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c | [
"MIT"
] | null | null | null | rev/desmos-pro/solve-maze.py | nanzggits/sdctf-2021 | fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c | [
"MIT"
] | 1 | 2021-06-01T17:03:06.000Z | 2021-06-01T17:03:06.000Z | from typing import List, Optional, Tuple
import mazegen
from mazegen import M, WALL
# In desmos coordinates (x,y), with y=0 being the bottom row
# CARDINAL_DELTAS = [(0, 1), (1, 0), (0, -1), (-1, 0)]
# In array coordinates (y,x), with y=0 being the top row
CARDINAL_DELTAS = [(-1, 0), (0, 1), (1, 0), (0, -1)]
S = Tupl... | 34.909091 | 106 | 0.603051 |
bc0a8cdfe027330a24bc7a38c3790b5c1221893d | 361 | py | Python | solvent/run.py | shlomimatichin/solvent | c8bdba9aed1372060d167b27366cbe7afaacc470 | [
"Apache-2.0"
] | null | null | null | solvent/run.py | shlomimatichin/solvent | c8bdba9aed1372060d167b27366cbe7afaacc470 | [
"Apache-2.0"
] | null | null | null | solvent/run.py | shlomimatichin/solvent | c8bdba9aed1372060d167b27366cbe7afaacc470 | [
"Apache-2.0"
] | null | null | null | import subprocess
import logging
| 27.769231 | 78 | 0.648199 |
bc0cf17e742ee5f0e9c7dd32d45b474ef9bbc8ae | 15,924 | py | Python | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 4 | 2021-04-22T20:19:40.000Z | 2022-01-30T18:57:23.000Z | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 1 | 2022-01-24T14:10:27.000Z | 2022-01-30T16:42:53.000Z | util/approximate/embedding_interpolator/old/v1_numpy.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 2 | 2019-05-19T07:44:28.000Z | 2021-04-22T20:20:40.000Z | from numpy import zeros, ones, dot, sum, abs, max, argmax, clip, \
random, prod, asarray, set_printoptions, unravel_index
# Generate a random uniform number (array) in range [0,1].
# Build a model given four integers:
# di - dimension of input
# ds - dimension for each internal state
# ns - number of intern... | 41.46875 | 129 | 0.543582 |
bc101f9477ced02fc73e4aa485f705e9bede840d | 1,429 | py | Python | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | sample-apps/data-loader/app.py | jkylling/fdb-kubernetes-operator | b6c2d18d7841e789bd33bc1e05ed449e7468fabd | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
'''
This file provides a sample app for loading data into FDB.
To use it to load data into one of the sample clusters in this repo,
you can build the image by running `docker build -t fdb-data-loader sample-apps/data-loader`,
and then run the data loader by running `kubectl apply -f sample-apps/dat... | 30.404255 | 110 | 0.73478 |
bc10b3a754b1e07f5391ee346cb0afda2918b4d2 | 1,580 | py | Python | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | data_files/PROGRAMS/MEDIUM/0018_4Sum.py | sudhirrd007/LeetCode-scraper | de87ff17fff2c73e67392321df1107cce7cbf883 | [
"MIT"
] | null | null | null | # ID : 18
# Title : 4Sum
# Difficulty : MEDIUM
# Acceptance_rate : 35.2%
# Runtime : 72 ms
# Memory : 12.7 MB
# Tags : Array , Hash Table , Two Pointers
# Language : python3
# Problem_link : https://leetcode.com/problems/4sum
# Premium : 0
# Notes : -
###
| 31.6 | 86 | 0.401899 |
bc10d6ea7391b5e3c732ffbac5c5266d74feef0e | 1,916 | py | Python | dentalvision/asm/fit.py | DreamSki/dentalvision | dd7ca6f7ccefb294dab5b37c37f195df5aadfaab | [
"MIT"
] | 7 | 2018-01-22T01:03:25.000Z | 2022-01-05T08:47:29.000Z | dentalvision/asm/fit.py | tdekeyser/dentalvision | dd7ca6f7ccefb294dab5b37c37f195df5aadfaab | [
"MIT"
] | null | null | null | dentalvision/asm/fit.py | tdekeyser/dentalvision | dd7ca6f7ccefb294dab5b37c37f195df5aadfaab | [
"MIT"
] | 8 | 2017-03-03T14:26:34.000Z | 2020-07-16T12:15:41.000Z | '''
Algorithm for matching the model to image points.
Based on (Cootes et al. 2000, p.9) and (Blanz et al., p.4).
'''
import numpy as np
from utils.structure import Shape
from utils.align import Aligner
| 34.214286 | 86 | 0.616388 |
bc1384f21ce9e92bbb5a1b5230fae5b32226449c | 578 | py | Python | bank_ddd_es_cqrs/accounts/app.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | 8 | 2020-10-27T09:46:20.000Z | 2022-01-27T12:16:48.000Z | bank_ddd_es_cqrs/accounts/app.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | null | null | null | bank_ddd_es_cqrs/accounts/app.py | Hyaxia/Bank-DDD-CQRS-ES | 116e3eb3e93d549c1da53e6d506ab47667d77445 | [
"MIT"
] | 2 | 2021-05-29T08:11:48.000Z | 2021-07-26T04:44:53.000Z | from flask import Flask
from flask_cors import CORS # type: ignore
from .api import account_blueprint
from .event_handlers import register_event_handlers
from .infrastructure import event_store_db
from .composition_root import event_manager
| 25.130435 | 56 | 0.792388 |
bc13edd4a944944871cf4bb67afafb4e4e45becb | 41,794 | py | Python | Fase II/team04/storageManager.py | estrada-usac/EDD20DIC-PROYECTO | 843347de97af5e432d97c99ef490024d6f3ff49e | [
"MIT"
] | null | null | null | Fase II/team04/storageManager.py | estrada-usac/EDD20DIC-PROYECTO | 843347de97af5e432d97c99ef490024d6f3ff49e | [
"MIT"
] | 3 | 2020-12-22T15:17:16.000Z | 2021-01-08T17:37:22.000Z | Fase II/team04/storageManager.py | estrada-usac/EDD20DIC-PROYECTO | 843347de97af5e432d97c99ef490024d6f3ff49e | [
"MIT"
] | null | null | null | # Package: Storage Manager
# License: Released under MIT License
# Notice: Copyright (c) 2020 TytusDB Team
# Developers: Alexis Peralta
from storage.avl import avlMode
from storage.b import BMode
from storage.bplus import BPlusMode
from storage.hash import HashMode
from storage.isam import I... | 39.502836 | 131 | 0.568933 |
bc14cc074618702fe004846062d87461a64782e7 | 1,015 | py | Python | pdf_downloader.py | mniac810/RPA_Challenge | 3f203bf33c9643ab77e22e109520bf748c866e46 | [
"Apache-2.0"
] | 1 | 2022-01-10T04:49:38.000Z | 2022-01-10T04:49:38.000Z | pdf_downloader.py | mniac810/RPA_Challenge | 3f203bf33c9643ab77e22e109520bf748c866e46 | [
"Apache-2.0"
] | null | null | null | pdf_downloader.py | mniac810/RPA_Challenge | 3f203bf33c9643ab77e22e109520bf748c866e46 | [
"Apache-2.0"
] | null | null | null | from RPA.Browser.Selenium import Selenium
from RPA.FileSystem import FileSystem
import datetime
import os
| 31.71875 | 77 | 0.605911 |
bc1654338e8c6eee8c72f671de285bccc11be562 | 1,352 | py | Python | tests/TestFiles/fodder.py | ComposableAnalytics/ComposaPy | 6d82f8f953c709dde55e7f055e2f8b4e6765caba | [
"MIT"
] | null | null | null | tests/TestFiles/fodder.py | ComposableAnalytics/ComposaPy | 6d82f8f953c709dde55e7f055e2f8b4e6765caba | [
"MIT"
] | null | null | null | tests/TestFiles/fodder.py | ComposableAnalytics/ComposaPy | 6d82f8f953c709dde55e7f055e2f8b4e6765caba | [
"MIT"
] | null | null | null | # Add this test back later, unfortunately casting errors and no time to deal with them.
# @pytest.mark.parametrize("dataflow_object", ["external_input_int.json"], indirect=True)
# def test_external_input_int(dataflow_object: DataFlowObject, dataflow: DataFlow):
# dataflow_rs = dataflow_object.run(external_inputs={"... | 38.628571 | 89 | 0.727071 |
bc16f12ef99fb925404a57659bcb97a3596fb611 | 886 | py | Python | django/store/views.py | brickfaced/django-ecommerce | e06c69f4cc1f57ac2acffa0baf1c48fa99fede13 | [
"MIT"
] | 24 | 2021-03-10T17:04:46.000Z | 2022-02-28T20:09:52.000Z | nextdrf/django/store/views.py | RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1 | 4416c2168143aa71ba863d61efb71c5712dbd215 | [
"MIT"
] | 1 | 2021-04-07T19:57:10.000Z | 2021-04-07T20:37:03.000Z | nextdrf/django/store/views.py | RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1 | 4416c2168143aa71ba863d61efb71c5712dbd215 | [
"MIT"
] | 18 | 2021-03-21T09:03:40.000Z | 2022-01-31T10:08:24.000Z | from django.shortcuts import render
from rest_framework import generics
from . import models
from .models import Category, Product
from .serializers import CategorySerializer, ProductSerializer
| 27.6875 | 106 | 0.772009 |
bc1a89242c0c01e6a959ddfab279551c0ad333eb | 831 | py | Python | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | PacktPublishing/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 25 | 2021-01-20T19:09:05.000Z | 2022-02-02T01:29:46.000Z | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | null | null | null | 6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 23 | 2021-01-20T19:09:12.000Z | 2022-03-23T02:50:05.000Z |
node1 = Node("A")
node2 = Node("B")
node3 = Node("C")
node4 = Node("D")
node5 = Node("E")
node6 = Node("F")
node7 = Node("G")
node8 = Node("H")
node1.adjacentlist.append(node2)
node1.adjacentlist.append(node3)
node1.adjacentlist.append(node4)
node2.adjacentlist.append(node5)
node2.adjacentlist.append(node6)
node4.adj... | 21.868421 | 44 | 0.649819 |
bc1b2d2d655b2df2c4a3a6c3fd0b4a26677171d9 | 613 | py | Python | blender/arm/logicnode/array/LN_array_loop_node.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/array/LN_array_loop_node.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | blender/arm/logicnode/array/LN_array_loop_node.py | niacdoial/armory | 3f9b633fbf772017c576a3f77695a6c28d9956e1 | [
"Zlib"
] | null | null | null | from arm.logicnode.arm_nodes import *
| 34.055556 | 54 | 0.676998 |
bc1b8a063d015af41a39f93f00886505f7a7b958 | 2,592 | py | Python | streamalert_cli/terraform/cloudwatch_events.py | Meliairon/streamalert | 3b774a59d260b2822cd156e837781bd34f3625f7 | [
"Apache-2.0"
] | 1 | 2020-07-28T09:54:07.000Z | 2020-07-28T09:54:07.000Z | streamalert_cli/terraform/cloudwatch_events.py | Meliairon/streamalert | 3b774a59d260b2822cd156e837781bd34f3625f7 | [
"Apache-2.0"
] | null | null | null | streamalert_cli/terraform/cloudwatch_events.py | Meliairon/streamalert | 3b774a59d260b2822cd156e837781bd34f3625f7 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2017-present Airbnb, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 34.56 | 98 | 0.699846 |
bc1bb420dc30704ccfcc14f1b5e2b0fb34f290c1 | 2,416 | py | Python | EvolutionaryAlgorithm/evolution.py | stepan-krivanek/evolutionary-algorithm | d8bafdb0caad2d66cc8138090c046244bd7779e8 | [
"MIT"
] | null | null | null | EvolutionaryAlgorithm/evolution.py | stepan-krivanek/evolutionary-algorithm | d8bafdb0caad2d66cc8138090c046244bd7779e8 | [
"MIT"
] | null | null | null | EvolutionaryAlgorithm/evolution.py | stepan-krivanek/evolutionary-algorithm | d8bafdb0caad2d66cc8138090c046244bd7779e8 | [
"MIT"
] | null | null | null |
import numpy as np
from LocalSearch.local_search import *
from EvolutionAlgorithm import EvolutionAlgorithm as EA
if __name__ == "__main__":
print(evolutionary_algorithm(sphere, 100, 1000))
| 30.974359 | 94 | 0.722268 |
bc1bb7a3ffc94e487eae34a752e77501805ef163 | 31 | py | Python | tests/tests/dummy.py | cjhall1283/pylint_runner | 64dae35dd07886524278c90c62270ae7a7d3a7a7 | [
"MIT"
] | 16 | 2016-01-14T17:38:39.000Z | 2020-10-30T13:41:33.000Z | tests/tests/dummy.py | cjhall1283/pylint_runner | 64dae35dd07886524278c90c62270ae7a7d3a7a7 | [
"MIT"
] | 12 | 2015-03-19T13:56:18.000Z | 2020-09-11T12:09:16.000Z | tests/tests/dummy.py | cjhall1283/pylint_runner | 64dae35dd07886524278c90c62270ae7a7d3a7a7 | [
"MIT"
] | 7 | 2017-02-14T01:03:22.000Z | 2021-08-25T16:34:17.000Z | """
Dummy file for testing
"""
| 7.75 | 22 | 0.612903 |
bc1e77fd96c476fc9f6f17e8e53fde1e2ccef6c7 | 1,545 | py | Python | src/kids/test/__init__.py | 0k/kids.test | 51554726caea29a5e690c76981c6035dc5c7cfee | [
"BSD-2-Clause"
] | null | null | null | src/kids/test/__init__.py | 0k/kids.test | 51554726caea29a5e690c76981c6035dc5c7cfee | [
"BSD-2-Clause"
] | null | null | null | src/kids/test/__init__.py | 0k/kids.test | 51554726caea29a5e690c76981c6035dc5c7cfee | [
"BSD-2-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
import os
import tempfile
import unittest
import re
import shutil
def run(test):
from pprint import pprint
try:
from StringIO import StringIO
except ImportError: ## PY3
from io impo... | 26.637931 | 78 | 0.641424 |
bc1e78e2d936299d31ed164ae95b1d514a32eb51 | 221 | py | Python | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/ridwell/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Ridwell integration."""
import logging
DOMAIN = "ridwell"
LOGGER = logging.getLogger(__package__)
DATA_ACCOUNT = "account"
DATA_COORDINATOR = "coordinator"
SENSOR_TYPE_NEXT_PICKUP = "next_pickup"
| 18.416667 | 44 | 0.778281 |
bc1e7e433a435fea0e74defa83e3a8743bf77c68 | 6,143 | py | Python | src/py/test/IntegrationTest/Main.py | AdamPesci/diveR | ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7 | [
"MIT"
] | null | null | null | src/py/test/IntegrationTest/Main.py | AdamPesci/diveR | ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7 | [
"MIT"
] | null | null | null | src/py/test/IntegrationTest/Main.py | AdamPesci/diveR | ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7 | [
"MIT"
] | null | null | null | """
Authors: Augustine Italiano, Ryan Forster, Adam Camer-Pesci
This class will act as the control centre for the backend components:
Calculations.py
FileLoader.py
"""
import os
import sys
import csv
from datetime import datetime
import json
import rpy2.robjects.packages as rpackages
from rpy2.robjects.vector... | 38.879747 | 225 | 0.629497 |
bc1e9e83d6c06a1ae9645a6b283f62c80e387eab | 1,328 | py | Python | exussum/fs.py | exussum/exussum | 54fc2388364ab8a3a2cc8e6fb838a7b748d7c889 | [
"BSD-2-Clause"
] | null | null | null | exussum/fs.py | exussum/exussum | 54fc2388364ab8a3a2cc8e6fb838a7b748d7c889 | [
"BSD-2-Clause"
] | null | null | null | exussum/fs.py | exussum/exussum | 54fc2388364ab8a3a2cc8e6fb838a7b748d7c889 | [
"BSD-2-Clause"
] | null | null | null | import subprocess
import fnmatch
from pathlib import Path
import os
import re
| 27.102041 | 100 | 0.611446 |
bc1ebe2ab303cdc8d8d9f7d8408efd5e477ec4b6 | 1,917 | py | Python | click_example/utils.py | captainCapitalism/typer-oo-example | 00b94948f52a582591c93b7b50c782a71dc744af | [
"MIT"
] | 2 | 2021-09-15T18:04:39.000Z | 2022-01-06T03:45:54.000Z | click_example/utils.py | captainCapitalism/typer-oo-example | 00b94948f52a582591c93b7b50c782a71dc744af | [
"MIT"
] | null | null | null | click_example/utils.py | captainCapitalism/typer-oo-example | 00b94948f52a582591c93b7b50c782a71dc744af | [
"MIT"
] | null | null | null | import click
| 28.61194 | 86 | 0.574335 |
bc1fee8e7b2dd05b18c6fd6cd75205806000b3bf | 4,716 | py | Python | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | 2 | 2020-12-06T23:04:39.000Z | 2020-12-29T18:28:20.000Z | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | null | null | null | neuron_simulator_service/SAC_network/stimulus.py | jpm343/RetinaX | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | [
"MIT"
] | 1 | 2020-10-23T19:40:59.000Z | 2020-10-23T19:40:59.000Z | from __future__ import division
import numpy as np
# Set bar stimuli speed
| 38.975207 | 79 | 0.599237 |
bc21fb987995424da0c4a8da3583644d72bd8f6a | 3,326 | py | Python | test_prime_numbers.py | zekedran/python_tdd_ci_tutorial | 6a318ce5f26953dd44ca49da73815de4a2634fe5 | [
"MIT"
] | null | null | null | test_prime_numbers.py | zekedran/python_tdd_ci_tutorial | 6a318ce5f26953dd44ca49da73815de4a2634fe5 | [
"MIT"
] | null | null | null | test_prime_numbers.py | zekedran/python_tdd_ci_tutorial | 6a318ce5f26953dd44ca49da73815de4a2634fe5 | [
"MIT"
] | null | null | null | from prime_numbers import is_prime
| 31.084112 | 34 | 0.695129 |
bc220e54ff06969c5a581e943797eaee68f0f203 | 14,914 | py | Python | main.py | white-undo/scientific-calc | 46c24f289446f247a26946b855494458b92bd806 | [
"MIT"
] | null | null | null | main.py | white-undo/scientific-calc | 46c24f289446f247a26946b855494458b92bd806 | [
"MIT"
] | null | null | null | main.py | white-undo/scientific-calc | 46c24f289446f247a26946b855494458b92bd806 | [
"MIT"
] | null | null | null | #====================== #
# Scientific Plotting Calculator #
#---------------------- #
# Preetam Sharma #
# Artificial Intelligence, ICL #
#====================== #
# Usefull modules and tools
from tkinter import BOTTOM, BOTH, TOP, Label, DISABLED, NORMAL, INSERT, E... | 40.972527 | 138 | 0.593 |
bc22939116e8ef6b4d13b61eab3aac762d3ff398 | 7,386 | py | Python | client/tests/test_up_args.py | gefyrahq/gefyra | 0bc205b4b01100c640081ead671bdb195761299b | [
"Apache-2.0"
] | 41 | 2022-03-24T15:45:56.000Z | 2022-03-31T08:07:19.000Z | client/tests/test_up_args.py | Schille/gefyra | 43abd17b8ed5867a26266b5e7a5d6f9edfebab4a | [
"Apache-2.0"
] | 23 | 2021-12-02T10:29:09.000Z | 2022-03-17T18:10:57.000Z | client/tests/test_up_args.py | Schille/gefyra | 43abd17b8ed5867a26266b5e7a5d6f9edfebab4a | [
"Apache-2.0"
] | 3 | 2022-02-18T21:16:10.000Z | 2022-03-09T22:46:28.000Z | from gefyra.__main__ import up_parser, up_command
from gefyra.configuration import ClientConfiguration, __VERSION__
REGISTRY_URL = "my-reg.io/gefyra"
QUAY_REGISTRY_URL = "quay.io/gefyra"
STOWAWAY_LATEST = "my-reg.io/gefyra/stowaway:latest"
CARGO_LATEST = "my-reg.io/gefyra/cargo:latest"
OPERATOR_LATEST = "my-reg.io/ge... | 37.876923 | 85 | 0.753859 |
bc22db5abfbd89d0661acf1f13af1e246c8ff360 | 6,476 | py | Python | Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py | kevinAlfsen/RASH-Bachelor-Thesis | 143a2a3a6997fd00caa420666a0a5c5570ce82ab | [
"BSD-3-Clause"
] | null | null | null | Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py | kevinAlfsen/RASH-Bachelor-Thesis | 143a2a3a6997fd00caa420666a0a5c5570ce82ab | [
"BSD-3-Clause"
] | null | null | null | Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py | kevinAlfsen/RASH-Bachelor-Thesis | 143a2a3a6997fd00caa420666a0a5c5570ce82ab | [
"BSD-3-Clause"
] | null | null | null | # coding: utf8
import argparse
import math
import os
import sys
from time import clock
import libmaster_board_sdk_pywrap as mbs
from Trajectory import trajectory
from Plotter import overlay_plot
if __name__ == "__main__":
main()
| 36.382022 | 140 | 0.553737 |
bc2355c41df28e3cbb07b0fa1bf6a887e83f0856 | 8,074 | py | Python | main_mini.py | idosharon/Leechy-Prototype-Spectrum-Analyzer | 7708ee9ae538b8f7db5e0596299ac40fb48d75d3 | [
"Unlicense"
] | null | null | null | main_mini.py | idosharon/Leechy-Prototype-Spectrum-Analyzer | 7708ee9ae538b8f7db5e0596299ac40fb48d75d3 | [
"Unlicense"
] | null | null | null | main_mini.py | idosharon/Leechy-Prototype-Spectrum-Analyzer | 7708ee9ae538b8f7db5e0596299ac40fb48d75d3 | [
"Unlicense"
] | 3 | 2022-01-02T08:46:49.000Z | 2022-01-15T16:02:50.000Z | # Leechy Prototype Spectrum Analyzer.
# Important: MAKE SURE KEYBOARD IS ON ENGLISH AND CAPSLOCK IS NOT ON!
import cv2,pickle,xlsxwriter,time,datetime,os, os.path
from imutils import rotate_bound
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Button
from PIL import Image, Im... | 30.126866 | 227 | 0.628685 |
bc2367f7ad3d249653384c57887795fc9732fb47 | 136 | py | Python | models/__init__.py | dudtjakdl/OpenNMT-Korean-To-English | 32fcdb860906f40f84375ec17a23ae32cb90baa0 | [
"Apache-2.0"
] | 1,491 | 2017-06-30T16:15:40.000Z | 2022-03-22T02:05:16.000Z | models/__init__.py | dudtjakdl/OpenNMT-Korean-To-English | 32fcdb860906f40f84375ec17a23ae32cb90baa0 | [
"Apache-2.0"
] | 128 | 2017-07-07T21:41:03.000Z | 2021-06-30T13:18:23.000Z | models/__init__.py | dudtjakdl/OpenNMT-Korean-To-English | 32fcdb860906f40f84375ec17a23ae32cb90baa0 | [
"Apache-2.0"
] | 434 | 2017-07-08T12:35:15.000Z | 2022-03-25T06:28:13.000Z | from .EncoderRNN import EncoderRNN
from .DecoderRNN import DecoderRNN
from .TopKDecoder import TopKDecoder
from .seq2seq import Seq2seq
| 27.2 | 36 | 0.852941 |
bc24a0ca761d939b80b88836c40772f1d9ffb66b | 3,055 | py | Python | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 601 | 2018-08-25T20:01:22.000Z | 2019-11-19T19:37:08.000Z | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 626 | 2018-08-27T16:30:33.000Z | 2019-11-20T17:02:00.000Z | panel/layout/spacer.py | sthagen/holoviz-panel | 9abae5ac78e55857ed209de06feae3439f2f533b | [
"BSD-3-Clause"
] | 73 | 2018-09-28T07:46:05.000Z | 2019-11-18T22:45:36.000Z | """
Spacer components to add horizontal or vertical space to a layout.
"""
import param
from bokeh.models import Div as BkDiv, Spacer as BkSpacer
from ..reactive import Reactive
| 27.035398 | 80 | 0.636661 |
bc24deaeae5652bf63e557de1533a49cda47444a | 432 | py | Python | reddit2telegram/channels/r_gentlemanboners/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_gentlemanboners/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_gentlemanboners/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
from utils import weighted_random_subreddit
subreddit = weighted_random_subreddit({
'BeautifulFemales': 0.25,
'cutegirlgifs': 0.25,
'gentlemanboners': 0.25,
'gentlemanbonersgifs': 0.25
})
t_channel = '@r_gentlemanboners'
| 18.782609 | 43 | 0.657407 |
bc2766b525e97b803d5443c5f873e693460a5edd | 5,334 | py | Python | efficientEigensolvers/Page_Rank_Application.py | ICERM-Efficient-Eigensolvers-2020/Implimentation | c5856afaeaa234946fb5151226e4f3f5a60a1018 | [
"MIT"
] | null | null | null | efficientEigensolvers/Page_Rank_Application.py | ICERM-Efficient-Eigensolvers-2020/Implimentation | c5856afaeaa234946fb5151226e4f3f5a60a1018 | [
"MIT"
] | null | null | null | efficientEigensolvers/Page_Rank_Application.py | ICERM-Efficient-Eigensolvers-2020/Implimentation | c5856afaeaa234946fb5151226e4f3f5a60a1018 | [
"MIT"
] | 2 | 2020-07-15T15:09:36.000Z | 2020-10-11T11:30:09.000Z | import sys, os
import Page_Rank_Utils as pru
from Power_Iteration import PowerMethod
from QR_Algorithm import qr_Algorithm_HH, qr_Algorithm_GS, shiftedQR_Algorithm
from Inverse_Iteration import InverseMethod
from Inverse_Iteration_w_shift import InverseShift
import matplotlib.pyplot as plt
THIS_FOLDER = os.path.dirname... | 37.829787 | 117 | 0.650919 |
bc29e1bc3e6578fac96ebc8b4d22ae86f30e35fb | 188 | py | Python | 04-ClassMembers/member.py | bakhshalipour/boost-python3-mac | dd86f2a1d2460118878282b794a87c821cd38a3a | [
"BSL-1.0"
] | null | null | null | 04-ClassMembers/member.py | bakhshalipour/boost-python3-mac | dd86f2a1d2460118878282b794a87c821cd38a3a | [
"BSL-1.0"
] | null | null | null | 04-ClassMembers/member.py | bakhshalipour/boost-python3-mac | dd86f2a1d2460118878282b794a87c821cd38a3a | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python3
import member
m1 = member.SomeClass("Pavel")
print ("name =",m1.name)
m1.name = "Gunther"
print ("name =",m1.name)
m1.number = 7.3
print ("number =",m1.number)
| 13.428571 | 30 | 0.648936 |
bc2ad22aede45c1a13a1677de0ef725433124657 | 26,946 | py | Python | valispace/__init__.py | singleit-tech/ValispacePythonAPI | a5681779b3ee898188270a7973e0222875f93b8c | [
"MIT"
] | 9 | 2018-04-28T10:38:31.000Z | 2022-02-18T12:41:47.000Z | valispace/__init__.py | singleit-tech/ValispacePythonAPI | a5681779b3ee898188270a7973e0222875f93b8c | [
"MIT"
] | 7 | 2017-10-26T13:10:30.000Z | 2020-08-08T13:46:19.000Z | valispace/__init__.py | singleit-tech/ValispacePythonAPI | a5681779b3ee898188270a7973e0222875f93b8c | [
"MIT"
] | 13 | 2017-10-06T08:23:06.000Z | 2022-02-09T10:55:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import getpass
import json
import requests
import sys
import six
import re
| 36.861833 | 165 | 0.572627 |
bc2ade7603e85b28fb608daaa69727e893191a3a | 194 | py | Python | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 3 | 2019-05-30T02:41:17.000Z | 2019-11-11T09:59:07.000Z | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 1 | 2021-02-05T14:51:01.000Z | 2021-02-11T08:37:31.000Z | setup.py | khuong507/bluemix-cloudbase-init | 10628014687c5f0cfb183f5e8f182856078fa5fa | [
"Apache-2.0"
] | 2 | 2017-08-10T13:44:23.000Z | 2019-12-19T15:08:52.000Z | from distutils.core import setup
setup(name='Bluemix',
version='0.1',
description='A bluemix datasource to be used with cloudbase-init',
packages=['bluemix', 'bluemix.conf'])
| 27.714286 | 72 | 0.685567 |
bc2c36f82b74e08da6f7b10aee3d76392a0e0a37 | 49,575 | py | Python | giant/relative_opnav/estimators/ellipse_matching.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | 5 | 2021-09-10T14:29:19.000Z | 2022-01-13T20:15:01.000Z | giant/relative_opnav/estimators/ellipse_matching.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | null | null | null | giant/relative_opnav/estimators/ellipse_matching.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | 2 | 2021-10-01T18:39:13.000Z | 2021-12-30T08:53:08.000Z | # Copyright 2021 United States Government as represented by the Administrator of the National Aeronautics and Space
# Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rights Reserved.
r"""
This module provides the capability to locate the relative position of a regula... | 56.657143 | 120 | 0.655915 |
bc2cee5c5a4a0949cd5f8bd23a23aa640050ca78 | 5,071 | py | Python | pytorch/probability/distributions_.py | NunoEdgarGFlowHub/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | 83 | 2019-04-12T10:23:23.000Z | 2022-03-30T12:40:43.000Z | pytorch/probability/distributions_.py | sten2lu/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | null | null | null | pytorch/probability/distributions_.py | sten2lu/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | 11 | 2019-04-12T11:26:00.000Z | 2020-05-12T01:14:21.000Z | import math
import sys
import torch
from numbers import Number
from torch import distributions
from torch.distributions import constraints
from torch.distributions.exp_family import ExponentialFamily
from torch.distributions.utils import _standard_normal, broadcast_all
q = sys.exit
class MixtureSameFamily(distribu... | 36.482014 | 90 | 0.634589 |
bc2e49c13ad370198ee4d1ae34071ef594b3447a | 376 | py | Python | basicplot.py | sirgogo/docker-meep | 4c41cec929ce829662fe7b2484aa8e8bf490a0a5 | [
"MIT"
] | 2 | 2020-02-22T05:50:14.000Z | 2022-02-26T20:39:34.000Z | basicplot.py | sirgogo/docker-meep | 4c41cec929ce829662fe7b2484aa8e8bf490a0a5 | [
"MIT"
] | null | null | null | basicplot.py | sirgogo/docker-meep | 4c41cec929ce829662fe7b2484aa8e8bf490a0a5 | [
"MIT"
] | 7 | 2017-09-05T11:08:31.000Z | 2021-11-16T00:56:30.000Z | import matplotlib
matplotlib.use('Agg') # this lets us do some headless stuff
import matplotlib.pylab as plt
import numpy as np
x = np.asarray([0,5,2])
y = np.asarray([0,1,3])
f = plt.figure()
ax = f.add_subplot(111)
ax.plot(x,y)
#plt.show() # we have a headless display, can't do this!
f.savefig('basicplot.eps',format... | 28.923077 | 87 | 0.720745 |
bc2e6b8739ca8dec99ed92907eb1665877d1fd33 | 659 | py | Python | py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py | beenorgone-notebook/python-notebook | 48e42b5be70e7ca06e8440a75516c055c961371c | [
"MIT"
] | null | null | null | py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py | beenorgone-notebook/python-notebook | 48e42b5be70e7ca06e8440a75516c055c961371c | [
"MIT"
] | null | null | null | py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py | beenorgone-notebook/python-notebook | 48e42b5be70e7ca06e8440a75516c055c961371c | [
"MIT"
] | 1 | 2018-04-08T13:24:39.000Z | 2018-04-08T13:24:39.000Z | # https://www.hackerrank.com/challenges/utopian-tree
T = int(input().strip())
for i in range(T):
print(tree_height(1, int(input().strip()), start='spring'))
| 24.407407 | 65 | 0.502276 |
bc2f04c16bdbecd969f22b63a971bad1b03dcc0a | 56 | py | Python | piodispatch/__init__.py | Kiruse/PioDispatch | ae4b6199795d2cc0ad8451cc17b57a4b517fdbda | [
"MIT"
] | null | null | null | piodispatch/__init__.py | Kiruse/PioDispatch | ae4b6199795d2cc0ad8451cc17b57a4b517fdbda | [
"MIT"
] | null | null | null | piodispatch/__init__.py | Kiruse/PioDispatch | ae4b6199795d2cc0ad8451cc17b57a4b517fdbda | [
"MIT"
] | null | null | null | from .piodispatch import dispatch, ascoroutine, shutdown | 56 | 56 | 0.857143 |
bc30514100a65cd97885d46696267a630becc87d | 266 | py | Python | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | 1 | 2020-10-01T09:12:09.000Z | 2020-10-01T09:12:09.000Z | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | null | null | null | Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py | ugurcan-sonmez-95/LeetCode | e463a424c2d781f67be31ae42bc3c5c896db6017 | [
"MIT"
] | null | null | null | ### Maximum Number of Coins You Can Get - Solution | 29.555556 | 50 | 0.56391 |
bc3126c570e95df36a490d3edfbfb2c0283d8529 | 986 | py | Python | learner2/pupil/migrations/0012_sessiondata.py | Arunkumar99/learners | 744006a805fb65087e8c41333bd697ec24b7a392 | [
"BSD-3-Clause"
] | 3 | 2020-05-30T17:08:51.000Z | 2021-12-14T02:55:19.000Z | learner2/pupil/migrations/0012_sessiondata.py | Arunkumar99/learners | 744006a805fb65087e8c41333bd697ec24b7a392 | [
"BSD-3-Clause"
] | null | null | null | learner2/pupil/migrations/0012_sessiondata.py | Arunkumar99/learners | 744006a805fb65087e8c41333bd697ec24b7a392 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
| 34 | 114 | 0.56998 |