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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4dcb9047f54eac204a9bac1c46c12bc3341a699a | 11,237 | py | Python | Leetcode.py | SakuraSa/Leetcode_CodeDownloader | cba23e3ec85b24e14fdf856e0e7eefb2c95644eb | [
"Apache-2.0"
] | 3 | 2015-10-20T13:05:18.000Z | 2020-07-27T19:45:58.000Z | Leetcode.py | SakuraSa/Leetcode_CodeDownloader | cba23e3ec85b24e14fdf856e0e7eefb2c95644eb | [
"Apache-2.0"
] | null | null | null | Leetcode.py | SakuraSa/Leetcode_CodeDownloader | cba23e3ec85b24e14fdf856e0e7eefb2c95644eb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
import os
import re
import requests
import datetime
import BeautifulSoup
#url requests setting
host_url = 'https://oj.leetcode.com'
login_url = 'https://oj.leetcode.com/accounts/login/'
question_list_url = 'https://oj.leetcode.com/problems/'
code_... | 41.464945 | 112 | 0.568924 |
4dccb31b43009dc8e9a6ff9aaa09678332eccb6f | 1,028 | py | Python | tokenizer.py | momennaas/kalam-lp | fdf032ca71a155169f507cba40275ca38f409c87 | [
"MIT"
] | 6 | 2019-03-31T04:46:27.000Z | 2020-02-27T16:39:31.000Z | tokenizer.py | momennaas/kalam-lp | fdf032ca71a155169f507cba40275ca38f409c87 | [
"MIT"
] | null | null | null | tokenizer.py | momennaas/kalam-lp | fdf032ca71a155169f507cba40275ca38f409c87 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
##############################################################
## Author: Abdulmumen Naas
## Description: Arabic Natural Language Processor (Kalam-lp)
## Version: 0.0.1
## Copyright (c) 2014 Abdulmumen Naas
##############################################################
import re
impo... | 25.073171 | 72 | 0.559339 |
4dcd01eb4188987a9436e56ef1dddd73f316c897 | 1,617 | py | Python | Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | null | null | null | Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | 9 | 2020-02-13T09:14:12.000Z | 2022-01-13T03:17:03.000Z | Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | 1 | 2021-03-10T03:27:37.000Z | 2021-03-10T03:27:37.000Z | __author__ = 'techsparksguru'
from selenium.webdriver.common.by import By
from .base_page_object import BasePage
| 37.604651 | 100 | 0.564626 |
4dcdd9abff0ad027ebd337ca976c53333922e6fc | 446 | py | Python | ch3/collatz_test.py | jakdept/pythonbook | 862e445ef1bcb36c890fe7e27e144354f6c855b5 | [
"MIT"
] | null | null | null | ch3/collatz_test.py | jakdept/pythonbook | 862e445ef1bcb36c890fe7e27e144354f6c855b5 | [
"MIT"
] | null | null | null | ch3/collatz_test.py | jakdept/pythonbook | 862e445ef1bcb36c890fe7e27e144354f6c855b5 | [
"MIT"
] | null | null | null |
import unittest
import collatz
if __name__ == "__main__":
unittest.main()
| 21.238095 | 63 | 0.544843 |
4dceebb4aaf3cbc5f66e75e0222673f73c95b189 | 4,046 | py | Python | test/surrogate/test_sk_random_forest.py | Dee-Why/lite-bo | 804e93b950148fb98b7e52bd56c713edacdb9b6c | [
"BSD-3-Clause"
] | 184 | 2021-06-02T06:35:25.000Z | 2022-03-31T10:33:11.000Z | test/surrogate/test_sk_random_forest.py | ZongWei-HUST/open-box | 011791aba4e44b20a6544020c73601638886d143 | [
"MIT"
] | 16 | 2021-11-15T11:13:57.000Z | 2022-03-24T12:51:17.000Z | test/surrogate/test_sk_random_forest.py | ZongWei-HUST/open-box | 011791aba4e44b20a6544020c73601638886d143 | [
"MIT"
] | 24 | 2021-06-18T04:52:57.000Z | 2022-03-30T11:14:03.000Z | from sklearn.ensemble import RandomForestRegressor
from openbox.utils.config_space import ConfigurationSpace
from openbox.utils.config_space import UniformFloatHyperparameter, \
CategoricalHyperparameter, Constant, UniformIntegerHyperparameter
import numpy as np
from openbox.utils.config_space.util import convert_c... | 32.894309 | 109 | 0.712803 |
4dcf592e4a02e009b4cb4e7b4d57ff918fb14acc | 3,258 | py | Python | cli_wrapper.py | anirbandas18/report-engine | de7d3c0caab972243a61e681abbb9a06e9c54857 | [
"MIT"
] | null | null | null | cli_wrapper.py | anirbandas18/report-engine | de7d3c0caab972243a61e681abbb9a06e9c54857 | [
"MIT"
] | null | null | null | cli_wrapper.py | anirbandas18/report-engine | de7d3c0caab972243a61e681abbb9a06e9c54857 | [
"MIT"
] | null | null | null | import subprocess, os
# constants with global scope
INPUT = "--input"
OUTPUT = "--output"
FILTERS = "--filters"
SUPPPLEMENTS = "--supplements"
JAR_DIRECTORY = "target"
JAR_NAME = "report-engine.jar"
if __name__ == '__main__':
main() | 42.868421 | 123 | 0.624002 |
4dcfc7f344c60db35f7d0923585dc078c2f43a3c | 11,267 | py | Python | 19-05-150_protein_ridge/inference.py | danhtaihoang/sparse-network | 763a19f5f333df5cfa9852d965a7110e813d52d5 | [
"MIT"
] | null | null | null | 19-05-150_protein_ridge/inference.py | danhtaihoang/sparse-network | 763a19f5f333df5cfa9852d965a7110e813d52d5 | [
"MIT"
] | null | null | null | 19-05-150_protein_ridge/inference.py | danhtaihoang/sparse-network | 763a19f5f333df5cfa9852d965a7110e813d52d5 | [
"MIT"
] | null | null | null | ##========================================================================================
import numpy as np
from scipy import linalg
from sklearn.preprocessing import OneHotEncoder
from scipy.spatial import distance
#=========================================================================================
#=========... | 30.125668 | 101 | 0.454158 |
4dcff13d4501aa2f3c3df9d643bf2c4ada7cfd82 | 335 | py | Python | src/test/resources/script/jython/testReturnString.py | adchilds/jythonutil | 24e6b945cf7474358be1f43e0a72f37411289e39 | [
"CNRI-Jython"
] | 5 | 2016-02-05T19:44:57.000Z | 2017-05-26T10:26:29.000Z | src/test/resources/script/jython/testReturnString.py | adchilds/jythonutil | 24e6b945cf7474358be1f43e0a72f37411289e39 | [
"CNRI-Jython"
] | 1 | 2017-02-03T06:19:21.000Z | 2017-02-11T03:55:55.000Z | src/test/resources/script/jython/testReturnString.py | adchilds/jythonutil | 24e6b945cf7474358be1f43e0a72f37411289e39 | [
"CNRI-Jython"
] | null | null | null | import sys
if __name__ == '__main__':
# Set the defaults
a = ''
b = ''
# If arguments were passed to this script, use those
try:
a = sys.argv[1]
b = sys.argv[2]
except Exception:
pass
# Sets the result to the longer of the two Strings
result = a if len(a) ... | 19.705882 | 56 | 0.552239 |
4dd0b98da97f43f66eaf8f6486394d5b6746b436 | 5,050 | py | Python | scraper.py | quake0day/chessreview | 1cb1aa6689f2db46546da9b1bf328da25b1b67ba | [
"Apache-2.0"
] | null | null | null | scraper.py | quake0day/chessreview | 1cb1aa6689f2db46546da9b1bf328da25b1b67ba | [
"Apache-2.0"
] | null | null | null | scraper.py | quake0day/chessreview | 1cb1aa6689f2db46546da9b1bf328da25b1b67ba | [
"Apache-2.0"
] | null | null | null | """
PGN Scraper is a small program which downloads each of a user's archived games from chess.com and stores them in a pgn file.
When running the user is asked for the account name which shall be scraped and for game types.
The scraper only downloads games of the correct type.
Supported types are: bullet, rapid, blitz... | 31.36646 | 143 | 0.60396 |
4dd0f6aca6f1e8e85ab78942074e05e47cb24566 | 2,117 | py | Python | testpro1/DB_handler_jjd.py | dongkakika/OXS | 95166365fb5e35155af3b8de6859ec87f3d9ca78 | [
"MIT"
] | 4 | 2020-04-22T08:42:01.000Z | 2021-07-31T19:28:51.000Z | testpro1/DB_handler_jjd.py | dongkakika/OXS | 95166365fb5e35155af3b8de6859ec87f3d9ca78 | [
"MIT"
] | null | null | null | testpro1/DB_handler_jjd.py | dongkakika/OXS | 95166365fb5e35155af3b8de6859ec87f3d9ca78 | [
"MIT"
] | null | null | null | import sqlite3
import codecs # for using ''
import os
#
f = codecs.open("jjd_info_title.txt", "r")
title_list = []
while True:
line = f.readline() #
if not line: break # break the loop when it's End Of File
title_list.append(line) # split the line and append it to list
f.close()... | 28.608108 | 90 | 0.600378 |
4dd104cc2e6c9e4bdd3ba911a3d5a31df0366e7f | 429 | py | Python | scripts/regression_tests.py | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 260 | 2017-03-02T19:57:51.000Z | 2022-01-21T03:52:03.000Z | scripts/regression_tests.py | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 102 | 2017-03-03T00:42:56.000Z | 2022-03-30T14:15:20.000Z | scripts/regression_tests.py | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 71 | 2017-03-02T20:22:33.000Z | 2022-01-02T03:49:04.000Z | from opt_utils import *
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-s", "--skip_compilation", action='store_true', help="skip compilation")
args = parser.parse_args()
if not args.skip_compilation:
compile_all_opt_examples()
for example in all_examples:
args = []
output = run_example(ex... | 28.6 | 93 | 0.748252 |
4dd688bf34007f2b88b7cc72d6792e3f5c02e4ad | 801 | py | Python | rec/migrations/0005_auto_20200922_1701.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | null | null | null | rec/migrations/0005_auto_20200922_1701.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | 2 | 2020-09-16T14:06:34.000Z | 2020-09-16T18:14:26.000Z | rec/migrations/0005_auto_20200922_1701.py | lpkyrius/rg1 | 6132ec5cd8db86088f8635f2e12ce6bf16aeff8e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-22 20:01
from django.db import migrations, models
| 27.62069 | 87 | 0.574282 |
4dd73302eae1ae2e039d31c3cb2e7f24834961a5 | 6,452 | py | Python | deeppavlov/deep.py | cclauss/DeepPavlov | 8726173c92994b3f789790b5879052d2f7953f47 | [
"Apache-2.0"
] | 3 | 2020-04-16T04:25:10.000Z | 2021-05-07T23:04:43.000Z | deeppavlov/deep.py | sachinsingh3107/Deeppavlov_Chatbot | f10b9485c118cdec69e73c89833a1a5a164404de | [
"Apache-2.0"
] | 12 | 2020-01-28T22:14:04.000Z | 2022-02-10T00:10:17.000Z | deeppavlov/deep.py | sachinsingh3107/Deeppavlov_Chatbot | f10b9485c118cdec69e73c89833a1a5a164404de | [
"Apache-2.0"
] | 1 | 2021-02-05T13:01:48.000Z | 2021-02-05T13:01:48.000Z | """
Copyright 2017 Neural Networks and Deep Learning lab, MIPT
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... | 47.094891 | 116 | 0.66739 |
4dd83f2bdedcce578bc2f4f15b92a56d3b2455a9 | 3,345 | py | Python | test/test_cfg/read_grammar.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 8 | 2017-12-18T08:51:27.000Z | 2020-11-26T02:21:06.000Z | test/test_cfg/read_grammar.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 1 | 2020-01-09T15:41:09.000Z | 2020-01-09T15:41:09.000Z | test/test_cfg/read_grammar.py | wannaphong/pycfg | ffa67958ed1c3deb73cadb3969ac086336fb1269 | [
"MIT"
] | 6 | 2017-06-12T16:58:40.000Z | 2019-11-27T06:55:07.000Z | '''Read grammar specifications for test cases.'''
import re
import sys
from pprint import pprint
from cfg.core import ContextFreeGrammar, Terminal, Nonterminal, Marker
from cfg.table import END_MARKER, ParseTableNormalForm
label_re = re.compile('^\s*==\s*(.*?)\s*==\s*$')
comment_re = re.compile('^([^#]*)')
shift_re =... | 31.261682 | 93 | 0.564425 |
4dd85a981091c632d855dbb819f62a7e6d570ba9 | 59,286 | py | Python | pype/plugins/global/publish/extract_review.py | barklaya/pype | db3f708b1918d4f81951b36e1575eb3ecf0551c5 | [
"MIT"
] | null | null | null | pype/plugins/global/publish/extract_review.py | barklaya/pype | db3f708b1918d4f81951b36e1575eb3ecf0551c5 | [
"MIT"
] | null | null | null | pype/plugins/global/publish/extract_review.py | barklaya/pype | db3f708b1918d4f81951b36e1575eb3ecf0551c5 | [
"MIT"
] | null | null | null | import os
import re
import copy
import json
import pyblish.api
import clique
import pype.api
import pype.lib
| 38.003846 | 95 | 0.540347 |
4dd8bacf6b045e8713670a0e2435de01e5e09f0a | 6,683 | py | Python | tests/peerfinder_test.py | wusel42/PeerFinder | 35f132b45f2947902adfb6327ebcdf60bce4bdc2 | [
"MIT"
] | 49 | 2017-07-13T13:58:14.000Z | 2022-03-04T12:23:35.000Z | tests/peerfinder_test.py | wusel42/PeerFinder | 35f132b45f2947902adfb6327ebcdf60bce4bdc2 | [
"MIT"
] | 9 | 2017-07-11T13:23:15.000Z | 2021-02-06T22:25:15.000Z | tests/peerfinder_test.py | wusel42/PeerFinder | 35f132b45f2947902adfb6327ebcdf60bce4bdc2 | [
"MIT"
] | 17 | 2017-07-11T12:37:25.000Z | 2022-01-29T14:19:35.000Z | import unittest
from unittest.mock import Mock
import mock
import peerfinder.peerfinder as peerfinder
import requests
from ipaddress import IPv6Address, IPv4Address
if __name__ == "__main__":
unittest.main()
| 36.519126 | 87 | 0.575939 |
4dd917ca4b89b1723693aa78f18f3c1b80e9acd7 | 5,372 | py | Python | ceilometer/network/notifications.py | rackerlabs/instrumented-ceilometer | 6ac5215ac0476120d9c99adcabc9cad0d32963da | [
"Apache-2.0"
] | 3 | 2021-04-18T00:37:48.000Z | 2021-07-21T10:20:11.000Z | ceilometer/network/notifications.py | lexxito/monitoring | bec8dfb8d3610331c7ae5ec543e0b8da0948c164 | [
"Apache-2.0"
] | null | null | null | ceilometer/network/notifications.py | lexxito/monitoring | bec8dfb8d3610331c7ae5ec543e0b8da0948c164 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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:/... | 32.167665 | 79 | 0.642033 |
4dda7edb222a2d84997df6163df89166d292eb6b | 2,407 | py | Python | optax/_src/update_test.py | pierricklee/optax | a75dbf99ce7af05e18bb6a2c518531ddc7303d13 | [
"Apache-2.0"
] | 2 | 2021-03-13T23:25:27.000Z | 2022-03-09T09:38:27.000Z | optax/_src/update_test.py | rwightman/optax | ba0bc11d172054d65b4387ecae840c04e2bc7035 | [
"Apache-2.0"
] | null | null | null | optax/_src/update_test.py | rwightman/optax | ba0bc11d172054d65b4387ecae840c04e2bc7035 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019 DeepMind Technologies Limited. 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
#
# ... | 33.901408 | 80 | 0.665974 |
4ddab5e3d9aa744300fde8fef5e302f340725170 | 44,868 | py | Python | scripts/venv/lib/python2.7/site-packages/cogent/core/entity.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 3 | 2015-11-20T08:44:42.000Z | 2016-12-14T01:40:03.000Z | scripts/venv/lib/python2.7/site-packages/cogent/core/entity.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | 1 | 2017-09-04T14:04:32.000Z | 2020-05-26T19:04:00.000Z | scripts/venv/lib/python2.7/site-packages/cogent/core/entity.py | sauloal/cnidaria | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Provides the entities, the building blocks of the SMRCA hierachy
representation of a macromolecular structure.
The MultiEntity class is a special Entity class to hold multiple instances of
other entities. All Entities apart from the Atom can hold others and inherit
from the MultiEntity. T... | 37.483709 | 99 | 0.584693 |
4ddb38d835903f3211b8436bd705a411ed81f133 | 3,381 | py | Python | venv/lib/python3.9/site-packages/ajsonrpc/tests/test_dispatcher.py | janten/ESP32-Paxcounter | 212317f3800ec87aef4847e7d60971d4bb9e7d70 | [
"Apache-2.0"
] | 12 | 2019-03-06T03:44:42.000Z | 2021-07-22T03:47:24.000Z | venv/lib/python3.9/site-packages/ajsonrpc/tests/test_dispatcher.py | janten/ESP32-Paxcounter | 212317f3800ec87aef4847e7d60971d4bb9e7d70 | [
"Apache-2.0"
] | 10 | 2020-10-28T10:04:58.000Z | 2021-07-21T20:47:27.000Z | venv/lib/python3.9/site-packages/ajsonrpc/tests/test_dispatcher.py | janten/ESP32-Paxcounter | 212317f3800ec87aef4847e7d60971d4bb9e7d70 | [
"Apache-2.0"
] | 4 | 2021-07-21T20:00:14.000Z | 2021-10-12T19:43:30.000Z | import unittest
from ..dispatcher import Dispatcher
class TestDispatcher(unittest.TestCase):
| 27.487805 | 79 | 0.561964 |
4ddd26506c5a2c32c298c1cac79c89b498178da9 | 7,206 | py | Python | mesh.py | msellens/pms | d175fded80087a907e8fab6ae09f6d1be69b3353 | [
"MIT"
] | null | null | null | mesh.py | msellens/pms | d175fded80087a907e8fab6ae09f6d1be69b3353 | [
"MIT"
] | null | null | null | mesh.py | msellens/pms | d175fded80087a907e8fab6ae09f6d1be69b3353 | [
"MIT"
] | null | null | null | from itertools import product
import struct
import pickle
import numpy as np
from scipy import sparse
from scipy import isnan as scipy_isnan
import numpy.matlib
ASCII_FACET = """facet normal 0 0 0
outer loop
vertex {face[0][0]:.4f} {face[0][1]:.4f} {face[0][2]:.4f}
vertex {face[1][0]:.4f} {face[1][1]:.4f} {face[1][2]... | 28.709163 | 96 | 0.543991 |
4ddd878eccdd7091a7bbb342e9e801e07d0428f5 | 4,759 | py | Python | vaccine.py | brannbrann/findavaccinesms | 91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b | [
"Apache-2.0"
] | null | null | null | vaccine.py | brannbrann/findavaccinesms | 91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b | [
"Apache-2.0"
] | null | null | null | vaccine.py | brannbrann/findavaccinesms | 91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b | [
"Apache-2.0"
] | null | null | null | '''
This is a python script that requires you have python installed, or in a cloud environment.
This script scrapes the CVS website looking for vaccine appointments in the cities you list.
To update for your area, update the locations commented below.
If you receive an error that says something is not installed, type... | 37.769841 | 128 | 0.63921 |
4ddf8f7618bc1ce4a506f069f1a4aa3da6ef6a1b | 22 | py | Python | pefile/__init__.py | 0x1F9F1/binja-msvc | be2577c22c8d37fd1e2e211f80b1c9a920705bd2 | [
"MIT"
] | 9 | 2019-02-08T10:01:39.000Z | 2021-04-29T12:27:34.000Z | pefile/__init__.py | DatBrick/binja-msvc | 751ffc1450c569bad23ac67a761d0f1fbd4ca4c4 | [
"MIT"
] | 1 | 2019-07-04T20:09:57.000Z | 2019-07-12T11:10:15.000Z | pefile/__init__.py | DatBrick/binja-msvc | 751ffc1450c569bad23ac67a761d0f1fbd4ca4c4 | [
"MIT"
] | 2 | 2019-03-03T13:00:14.000Z | 2020-05-01T05:35:04.000Z | from .pefile import *
| 11 | 21 | 0.727273 |
4de04f66464c9444c5a3decd7af60b9026030890 | 6,643 | py | Python | examples/viewer3DVolume.py | vincefn/silx | 4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444 | [
"CC0-1.0",
"MIT"
] | null | null | null | examples/viewer3DVolume.py | vincefn/silx | 4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444 | [
"CC0-1.0",
"MIT"
] | null | null | null | examples/viewer3DVolume.py | vincefn/silx | 4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444 | [
"CC0-1.0",
"MIT"
] | 1 | 2017-04-02T18:00:14.000Z | 2017-04-02T18:00:14.000Z | # coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2016-2017 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | 32.091787 | 79 | 0.663104 |
4de27831141702d223c7260054a467c2f0b9791f | 260 | py | Python | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | # __init__.py
# Copyright 2017 Roger Marsh
# Licence: See LICENCE (BSD licence)
"""Miscellaneous modules for applications available at solentware.co.uk.
These do not belong in the solentware_base or solentware_grid packages,
siblings of solentware_misc.
"""
| 26 | 72 | 0.792308 |
4de2f8a837d616a9960e145e5c2a45f95ecf9856 | 127 | py | Python | learn_tf/MNIST.py | pkumusic/AI | 912f1b6f12177e301c4a7efccc305bcb52e4d823 | [
"MIT"
] | 1 | 2017-05-26T15:23:03.000Z | 2017-05-26T15:23:03.000Z | learn_tf/MNIST.py | pkumusic/AI | 912f1b6f12177e301c4a7efccc305bcb52e4d823 | [
"MIT"
] | null | null | null | learn_tf/MNIST.py | pkumusic/AI | 912f1b6f12177e301c4a7efccc305bcb52e4d823 | [
"MIT"
] | null | null | null | __author__ = "Music"
# MNIST For ML Beginners
# https://www.tensorflow.org/versions/r0.9/tutorials/mnist/beginners/index.html
| 25.4 | 79 | 0.771654 |
4de340ca20d63248997dbff4ccd4dfac76793fb6 | 294 | py | Python | EXC/CW1/task7/mapper.py | easyCZ/UoE-Projects | 7651c8caf329c4f7b4562eba441bfc24124cfcfd | [
"BSD-2-Clause"
] | null | null | null | EXC/CW1/task7/mapper.py | easyCZ/UoE-Projects | 7651c8caf329c4f7b4562eba441bfc24124cfcfd | [
"BSD-2-Clause"
] | 1 | 2022-02-23T07:34:53.000Z | 2022-02-23T07:34:53.000Z | EXC/CW1/task7/mapper.py | easyCZ/UoE-Projects | 7651c8caf329c4f7b4562eba441bfc24124cfcfd | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# mapper.py
import sys
for line in sys.stdin:
row, values = line.strip().split('\t')
row_values = values.split(' ')
for (col, col_value) in enumerate(row_values):
# out: <col> <row> <value>
print("{0}\t{1}\t{2}".format(col, row, col_value)) | 26.727273 | 58 | 0.585034 |
4de518de130a1d423998bfe32aad3a8e89b7b784 | 171 | py | Python | rllib/algorithms/maddpg/__init__.py | willfrey/ray | 288a81b42ef0186ab4db33b30191614a7bdb69f6 | [
"Apache-2.0"
] | null | null | null | rllib/algorithms/maddpg/__init__.py | willfrey/ray | 288a81b42ef0186ab4db33b30191614a7bdb69f6 | [
"Apache-2.0"
] | null | null | null | rllib/algorithms/maddpg/__init__.py | willfrey/ray | 288a81b42ef0186ab4db33b30191614a7bdb69f6 | [
"Apache-2.0"
] | 1 | 2019-09-24T16:24:49.000Z | 2019-09-24T16:24:49.000Z | from ray.rllib.algorithms.maddpg.maddpg import (
MADDPGConfig,
MADDPGTrainer,
DEFAULT_CONFIG,
)
__all__ = ["MADDPGConfig", "MADDPGTrainer", "DEFAULT_CONFIG"]
| 21.375 | 61 | 0.730994 |
4de6e32302e33f5a63e0ba995f624e069fef3439 | 1,849 | py | Python | Fig8_RTM/RTM.py | GeoCode-polymtl/Seis_float16 | 5f9660cbdc37e5ab7f6054f7547df2ffb661a81d | [
"MIT"
] | null | null | null | Fig8_RTM/RTM.py | GeoCode-polymtl/Seis_float16 | 5f9660cbdc37e5ab7f6054f7547df2ffb661a81d | [
"MIT"
] | 5 | 2020-01-28T22:17:04.000Z | 2022-02-09T23:33:07.000Z | Fig8_RTM/RTM.py | GeoCode-polymtl/Seis_float16 | 5f9660cbdc37e5ab7f6054f7547df2ffb661a81d | [
"MIT"
] | 3 | 2019-11-27T06:06:04.000Z | 2020-06-05T17:18:15.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Perform RTM on marmousi
"""
import os
import numpy as np
import h5py as h5
from scipy.ndimage.filters import gaussian_filter
import sys
import shutil
from SeisCL import SeisCL
names = ['fp32', 'fp16io', 'fp16com']
filedata = os.getcwd() + '/marmfp32'
seis = SeisCL()
... | 31.87931 | 81 | 0.670092 |
4de77886992362775de86d085f926f5ea3304df0 | 954 | py | Python | doc/default_issue/fix.py | nadavweidman/pytconf | 6203d3607c1cc383c60d1c138efc1109c7a6ab59 | [
"MIT"
] | null | null | null | doc/default_issue/fix.py | nadavweidman/pytconf | 6203d3607c1cc383c60d1c138efc1109c7a6ab59 | [
"MIT"
] | 1 | 2021-12-03T11:35:46.000Z | 2021-12-03T11:52:52.000Z | doc/default_issue/fix.py | nadavweidman/pytconf | 6203d3607c1cc383c60d1c138efc1109c7a6ab59 | [
"MIT"
] | 8 | 2021-12-03T11:07:55.000Z | 2022-03-23T13:35:05.000Z | #!/usr/bin/python3
from typing import List
from registry import the_registry
from param_collector import the_collector
NO_DEFAULT = Unique()
NO_DEFAULT_TYPE = type(NO_DEFAULT)
for x in Foobar.columns:
print(x)
| 18.346154 | 73 | 0.627883 |
4de7d409e55429843384ad1f22b9b00b0eb2103a | 3,437 | py | Python | argonneV14.py | floresab/Toy-Models | 0b990563e1be903cbdcb56ead57d83bc3ca71198 | [
"MIT"
] | null | null | null | argonneV14.py | floresab/Toy-Models | 0b990563e1be903cbdcb56ead57d83bc3ca71198 | [
"MIT"
] | null | null | null | argonneV14.py | floresab/Toy-Models | 0b990563e1be903cbdcb56ead57d83bc3ca71198 | [
"MIT"
] | null | null | null | """
File : argonneV14.py
Language : Python 3.6
Created : 7/13/2018
Edited : 7/13/2018
San Digeo State University
Department of Physics and Astronomy
#https://journals.aps.org/prc/pdf/10.1103/PhysRevC.51.38 --argonneV18
This code implements Argonne V14 potential outlined in ...
--CONSTANTS --
... | 33.696078 | 84 | 0.364562 |
4de80e2e1c94dbe6762d16201a946a481593a775 | 543 | py | Python | solutions/python3/problem1556.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1556.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1556.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
1556. Thousand Separator
Given an integer n, add a dot (".") as the thousands separator and return it in string format.
Constraints:
0 <= n < 2^31
"""
| 19.392857 | 94 | 0.46593 |
4de95b2ae160d83f0a0fab9908a283c692256619 | 6,483 | py | Python | app/resources/base.py | smartlab-br/datahub-api | 193e71172bb4891a5bbffc902da07ef57df9ab07 | [
"MIT"
] | 1 | 2019-07-25T21:15:05.000Z | 2019-07-25T21:15:05.000Z | app/resources/base.py | smartlab-br/datahub-api | 193e71172bb4891a5bbffc902da07ef57df9ab07 | [
"MIT"
] | 44 | 2019-08-05T15:24:00.000Z | 2022-01-31T23:11:31.000Z | app/resources/base.py | smartlab-br/datahub-api | 193e71172bb4891a5bbffc902da07ef57df9ab07 | [
"MIT"
] | 1 | 2021-05-11T07:49:51.000Z | 2021-05-11T07:49:51.000Z | ''' Controller para fornecer dados da CEE '''
from flask_restful import Resource
from service.qry_options_builder import QueryOptionsBuilder
from model.thematic import Thematic
def get_domain(self):
''' Carrega o modelo de domnio, se no o encontrar '''
if self.domain is None:
self.domai... | 46.640288 | 94 | 0.608669 |
4de9705438995df854b9ebaf6e2d9530e21d53a7 | 3,155 | py | Python | tapioca_trello/resource_mapping/checklist.py | humrochagf/tapioca-trello | a7067a4c43b22e64cef67b68068580448a4cb420 | [
"MIT"
] | null | null | null | tapioca_trello/resource_mapping/checklist.py | humrochagf/tapioca-trello | a7067a4c43b22e64cef67b68068580448a4cb420 | [
"MIT"
] | null | null | null | tapioca_trello/resource_mapping/checklist.py | humrochagf/tapioca-trello | a7067a4c43b22e64cef67b68068580448a4cb420 | [
"MIT"
] | 1 | 2018-07-31T23:04:34.000Z | 2018-07-31T23:04:34.000Z | # -*- coding: utf-8 -*-
CHECKLIST_MAPPING = {
'checklist_retrieve': {
'resource': '/checklists/{id}',
'docs': (
'https://developers.trello.com/v1.0/reference'
'#checklistsid'
),
'methods': ['GET'],
},
'checklist_field_retrieve': {
'resource': ... | 28.944954 | 64 | 0.496672 |
4dea1d4995a7ebb956d68ed48040d475a502bb1f | 2,962 | py | Python | investimentos.py | isaiaspereira307/invest | ad0aa40dca4ece75fb7dad98415e73dc382f662a | [
"MIT"
] | null | null | null | investimentos.py | isaiaspereira307/invest | ad0aa40dca4ece75fb7dad98415e73dc382f662a | [
"MIT"
] | null | null | null | investimentos.py | isaiaspereira307/invest | ad0aa40dca4ece75fb7dad98415e73dc382f662a | [
"MIT"
] | null | null | null | import json
import os
acoes = ler_arquivo("acoes.json")
opcao=chamarMenu()
while opcao > 0 and opcao < 5:
if opcao == 1:
print(registrar(acoes, "acoes.json"))
elif opcao == 2:
exibir("acoes.json")
elif opcao == 3:
sair()
opcao = chamarMenu() | 27.174312 | 61 | 0.609723 |
4dea6041225ae15383493ad1d5f6078ade49cd6b | 10,718 | py | Python | lib/ipython_view.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | 2 | 2018-10-05T13:32:46.000Z | 2022-01-01T22:51:20.000Z | lib/ipython_view.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | 4 | 2021-06-08T19:33:40.000Z | 2022-03-11T23:18:06.000Z | lib/ipython_view.py | drewp/light9 | ab173a40d095051546e532962f7a33ac502943a6 | [
"MIT"
] | null | null | null | # this version is adapted from http://wiki.ipython.org/Old_Embedding/GTK
"""
Backend to the console plugin.
@author: Eitan Isaacson
@organization: IBM Corporation
@copyright: Copyright (c) 2007 IBM Corporation
@license: BSD
All rights reserved. This program and the accompanying materials are made
available under ... | 35.026144 | 90 | 0.628755 |
4deba880f54b833c42a876a0e52201d76815fdfb | 513 | py | Python | todo/urls.py | incomparable/Django | ba2f38f694b1055215559c4ca4173c245918fabf | [
"Apache-2.0"
] | null | null | null | todo/urls.py | incomparable/Django | ba2f38f694b1055215559c4ca4173c245918fabf | [
"Apache-2.0"
] | null | null | null | todo/urls.py | incomparable/Django | ba2f38f694b1055215559c4ca4173c245918fabf | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^get', views.index, name='index'),
url(r'^details/(?P<id>\w)/$', views.details, name='details'),
url(r'^add', views.add, name='add'),
url(r'^delete', views.delete, name='delete'),
... | 28.5 | 65 | 0.598441 |
4debda04f4303a03d05f73d0f622731078a63cdf | 336 | py | Python | first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | days = int(input())
sladkar = int(input())
cake = int(input())
gofreta = int(input())
pancake = int(input())
cake_price = cake*45
gofreta_price = gofreta*5.8
pancake_price = pancake*3.2
day_price = (cake_price + gofreta_price + pancake_price)*sladkar
total_price = days*day_price
campaign = total_price - (total_price/8)... | 28 | 64 | 0.741071 |
4dec80c0904955f695f9881970d5b2f7945e222c | 9,234 | py | Python | deepbiome/loss_and_metric.py | Young-won/deepbiome | 644bc226f1149038d0af7203a03a77ca6e931835 | [
"BSD-3-Clause"
] | 4 | 2019-10-20T15:56:19.000Z | 2021-03-17T16:48:35.000Z | deepbiome/loss_and_metric.py | Young-won/deepbiome | 644bc226f1149038d0af7203a03a77ca6e931835 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T22:47:57.000Z | 2019-11-11T22:47:57.000Z | deepbiome/loss_and_metric.py | Young-won/deepbiome | 644bc226f1149038d0af7203a03a77ca6e931835 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T18:17:58.000Z | 2019-11-11T18:17:58.000Z | ######################################################################
## DeepBiome
## - Loss and metrics (mse, cross-entropy)
##
## July 10. 2019
## Youngwon (youngwon08@gmail.com)
##
## Reference
## - Keras (https://github.com/keras-team/keras)
######################################################################
i... | 42.164384 | 144 | 0.594975 |
4ded2765ebba38c75e11130b9978c0647bfd5359 | 3,177 | py | Python | Hough.py | andresgmz/Scripts-Python | 1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937 | [
"MIT"
] | null | null | null | Hough.py | andresgmz/Scripts-Python | 1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937 | [
"MIT"
] | null | null | null | Hough.py | andresgmz/Scripts-Python | 1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import matplotlib.pyplot as plt
#from matplotlib import pyplot as plt
from tkinter import filedialog
from tkinter import *
root = Tk()
root.withdraw()
root.filename = filedialog.askopenfilename(initialdir = "/",title = "Select file",filetypes = (("all files",".*"),("jpg files","... | 38.743902 | 153 | 0.645892 |
4dee15ccda1b59264009aac028177487941365ec | 3,927 | py | Python | src/SentimentAnalyzer.py | IChowdhury01/Sentiment-Analyzer | 0a566365eed00b0e76feb77c638579dd80f75068 | [
"MIT"
] | null | null | null | src/SentimentAnalyzer.py | IChowdhury01/Sentiment-Analyzer | 0a566365eed00b0e76feb77c638579dd80f75068 | [
"MIT"
] | null | null | null | src/SentimentAnalyzer.py | IChowdhury01/Sentiment-Analyzer | 0a566365eed00b0e76feb77c638579dd80f75068 | [
"MIT"
] | null | null | null | # Binary Sentiment Analysis using Recurrent Neural Networks
# Import libraries & dataset list
import tensorflow as tf
import tensorflow_datasets as dslist
# Load Dataset
print("\nLoading dataset...")
# Download dataset and dataset info
DATASET_CODE = 'imdb_reviews/subwords8k' # Usin... | 30.679688 | 181 | 0.689585 |
4dee9911d375f6b557bb57e2701f998ccd07ef1c | 5,146 | py | Python | google_image_scraping_script_for_arg.py | KuoYuHong/Shihu-Cat-Image-Recognition-System | 5f184e4902fa6edb4602f01369b56ef03ad4790d | [
"MIT"
] | 1 | 2021-11-24T14:46:06.000Z | 2021-11-24T14:46:06.000Z | google_image_scraping_script_for_arg.py | KuoYuHong/Shihu-Cat-Image-Recognition-System | 5f184e4902fa6edb4602f01369b56ef03ad4790d | [
"MIT"
] | null | null | null | google_image_scraping_script_for_arg.py | KuoYuHong/Shihu-Cat-Image-Recognition-System | 5f184e4902fa6edb4602f01369b56ef03ad4790d | [
"MIT"
] | null | null | null | import selenium
from selenium import webdriver
import time
import requests
import os
from PIL import Image
import io
import hashlib
# All in same directory
DRIVER_PATH = 'chromedriver.exe'
if __name__ == '__main__':
'''
chromedriver.execmd
python google_image_scraping_script_for_arg.py
... | 36.496454 | 171 | 0.621842 |
4df16cb84c883d268ef0671570a73d61fad65816 | 1,515 | py | Python | pyslowloris/utils.py | goasdsdkai/daas | 78ef23b254893efca22748fe619ef22648b8c1e8 | [
"MIT"
] | 75 | 2017-06-15T05:58:02.000Z | 2022-03-31T22:59:25.000Z | pyslowloris/utils.py | goasdsdkai/daas | 78ef23b254893efca22748fe619ef22648b8c1e8 | [
"MIT"
] | 8 | 2017-08-25T04:14:19.000Z | 2021-09-10T06:21:33.000Z | pyslowloris/utils.py | goasdsdkai/daas | 78ef23b254893efca22748fe619ef22648b8c1e8 | [
"MIT"
] | 32 | 2017-03-22T22:52:26.000Z | 2022-03-07T15:53:01.000Z | """
MIT License
Copyright (c) 2020 Maxim Krivich
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, merge, publish,... | 36.95122 | 78 | 0.69769 |
4df1faa8f49c3cdacafcecb2f8765081676e89ad | 5,305 | py | Python | brahe/data_models/geojson.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 14 | 2019-05-29T13:36:55.000Z | 2022-02-11T15:26:13.000Z | brahe/data_models/geojson.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 1 | 2020-05-27T12:14:39.000Z | 2020-05-27T15:51:21.000Z | brahe/data_models/geojson.py | duncaneddy/brahe | 4a1746ef3c14211b0709de6e7e34b6f52fc0e686 | [
"MIT"
] | 2 | 2019-10-24T05:20:54.000Z | 2019-12-08T03:59:10.000Z | """The geojson module provides data model classes for initialization and storing
of GeoJSON objects.
"""
import typing
import typing_extensions
import pydantic
import numpy as np
import brahe.astro as astro
import brahe.coordinates as coords
import brahe.frames as frames
geographic_point = pydantic.conlist(float, mi... | 35.604027 | 121 | 0.604713 |
4df2f7977ee6df4348bd5f199099edb4427af89e | 521 | py | Python | lab7/7.7.py | rikudo765/algorithms | eb78852143662bc2e42df6271e9a015cfa8ffdd1 | [
"MIT"
] | 1 | 2020-11-16T18:46:24.000Z | 2020-11-16T18:46:24.000Z | lab7/7.7.py | rikudo765/algorithms | eb78852143662bc2e42df6271e9a015cfa8ffdd1 | [
"MIT"
] | null | null | null | lab7/7.7.py | rikudo765/algorithms | eb78852143662bc2e42df6271e9a015cfa8ffdd1 | [
"MIT"
] | null | null | null | n = int(input())
lst = list(map(int, input().split()))
sort1(lst)
| 19.296296 | 39 | 0.380038 |
4df34ddd891c605f94b640242ef9b998d8ecdfb4 | 7,141 | py | Python | CORE/engines/Gudmundsson_Constraint.py | geoffreynyaga/ostrich-project | 157cd7a3c3d9014e31ef21ca21de43f04d039997 | [
"MIT"
] | 15 | 2017-11-08T10:03:26.000Z | 2021-12-21T07:02:44.000Z | CORE/engines/Gudmundsson_Constraint.py | geoffreynyaga/ostrich-project | 157cd7a3c3d9014e31ef21ca21de43f04d039997 | [
"MIT"
] | 9 | 2020-01-17T15:09:22.000Z | 2022-03-25T19:02:05.000Z | CORE/engines/Gudmundsson_Constraint.py | geoffreynyaga/ostrich-project | 157cd7a3c3d9014e31ef21ca21de43f04d039997 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
##################################################################################
# File: c:\Projects\KENYA ONE PROJECT\CORE\engines\Gudmundsson_Constraint.py #
# Project: c:\Projects\KENYA ONE PROJECT\CORE\engines #
# Created Date: Thur... | 37 | 88 | 0.555805 |
4df5b2217528684af4f56e2341cb113e5407f9fe | 3,988 | py | Python | libs/blocks/tests/test_variable_filter.py | dendisuhubdy/attention-lvcsr | 598d487c118e66875fdd625baa84ed29d283b800 | [
"MIT"
] | 295 | 2015-09-25T21:15:04.000Z | 2022-01-13T01:16:18.000Z | libs/blocks/tests/test_variable_filter.py | shenshenzhanzhan/attention-lvcsr | 598d487c118e66875fdd625baa84ed29d283b800 | [
"MIT"
] | 21 | 2015-10-28T19:06:32.000Z | 2022-03-11T23:13:05.000Z | libs/blocks/tests/test_variable_filter.py | shenshenzhanzhan/attention-lvcsr | 598d487c118e66875fdd625baa84ed29d283b800 | [
"MIT"
] | 114 | 2015-09-26T21:23:02.000Z | 2021-11-19T02:36:41.000Z | from nose.tools import raises
from blocks.bricks import Bias, Linear, Logistic
from blocks.bricks.parallel import Merge
from blocks.filter import VariableFilter
from blocks.graph import ComputationGraph
from blocks.roles import BIAS, FILTER, PARAMETER, OUTPUT
from theano import tensor
| 34.678261 | 73 | 0.719157 |
4df630aed0715b9f32b05663f7a43496c48ccb52 | 12,437 | py | Python | techminer/gui/comparative_analysis.py | jdvelasq/techMiner | c611d96d2f812b0890513514d9d19787a1edfe2d | [
"MIT"
] | 2 | 2020-09-25T02:42:34.000Z | 2021-08-22T11:27:58.000Z | techminer/gui/comparative_analysis.py | jdvelasq/techMiner | c611d96d2f812b0890513514d9d19787a1edfe2d | [
"MIT"
] | 1 | 2020-10-17T14:38:45.000Z | 2020-10-17T14:50:19.000Z | techminer/gui/comparative_analysis.py | jdvelasq/techMiner | c611d96d2f812b0890513514d9d19787a1edfe2d | [
"MIT"
] | 2 | 2019-10-14T18:05:25.000Z | 2021-07-17T19:28:04.000Z | from collections import Counter
import pandas as pd
import ipywidgets as widgets
import techminer.core.dashboard as dash
from techminer.core import (
CA,
Dashboard,
TF_matrix,
TFIDF_matrix,
add_counters_to_axis,
clustering,
corpus_filter,
exclude_terms,
)
# from techminer.core.params ... | 28.265909 | 88 | 0.514674 |
4df876adfaa448099ddfc3311827d0272a1fac44 | 56,425 | py | Python | WayOfTheTurtle1.0.py | BYHu-2/- | 3243d3a0ccd9144573943b00ac4364dc5c320207 | [
"MIT"
] | 2 | 2021-12-25T00:04:12.000Z | 2021-12-25T00:14:35.000Z | WayOfTheTurtle1.0.py | BYHu-2/Turtle | 3243d3a0ccd9144573943b00ac4364dc5c320207 | [
"MIT"
] | null | null | null | WayOfTheTurtle1.0.py | BYHu-2/Turtle | 3243d3a0ccd9144573943b00ac4364dc5c320207 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import qtawesome
import matplotlib.pyplot as plt
import csv
import numpy as np
import datetime
import os
def main():
app = QApplication(sys.argv)
gui = MainUI()
gui.show()
sys.exit(app.exec_())
... | 43.504241 | 208 | 0.572955 |
4dfab55975cccc588661b8464faec98ada96eafa | 11,800 | py | Python | posthog/test/test_update_person_props.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | 58 | 2020-08-26T16:26:18.000Z | 2022-03-30T05:32:23.000Z | posthog/test/test_update_person_props.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | 15 | 2021-11-09T10:49:34.000Z | 2021-11-09T16:11:01.000Z | posthog/test/test_update_person_props.py | csmatar/posthog | 4587cfe18625f302726c531f06a32c18e9749e9d | [
"MIT"
] | 13 | 2020-09-08T13:27:07.000Z | 2022-03-19T17:27:10.000Z | from datetime import datetime
from django.db import connection
from posthog.models import Person
from posthog.test.base import BaseTest
# How we expect this function to behave:
# | call | value exists | call TS is ___ existing TS | previous fn | write/override
# 1| set | no | N/A ... | 42.446043 | 107 | 0.527203 |
4dfb10a7a1f3430a5ca4e269077867482eeda87b | 762 | py | Python | setup.py | cclauss/AIF360 | 4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1 | [
"Apache-2.0"
] | null | null | null | setup.py | cclauss/AIF360 | 4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1 | [
"Apache-2.0"
] | null | null | null | setup.py | cclauss/AIF360 | 4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='aif360',
version='0.1.0',
description='IBM AI Fairness 360',
author='aif360 developers',
author_email='aif360@us.ibm.com',
url='https://github.com/IBM/AIF360',
... | 29.307692 | 83 | 0.57874 |
4dfb5ac8775c4305591fb5eb4b61c6ac65e66c47 | 390 | py | Python | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | 4 | 2021-04-12T19:30:47.000Z | 2022-02-11T18:24:16.000Z | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | null | null | null | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | null | null | null | radiobutton_style = '''
QRadioButton:disabled {
background: transparent;
}
QRadioButton::indicator {
background: palette(dark);
width: 8px;
height: 8px;
border: 3px solid palette(dark);
border-radius: 7px;
}
QRadioButton::indicator:checked {
background: palette(highlight);
}
QRadioButton:... | 18.571429 | 42 | 0.697436 |
4dfbb4858f95304472fccbca8344763f96bb417e | 1,788 | py | Python | engine.py | kevioconnor/day0 | 6a72bf55dba1021850b810e647c87cb53ef86763 | [
"MIT"
] | null | null | null | engine.py | kevioconnor/day0 | 6a72bf55dba1021850b810e647c87cb53ef86763 | [
"MIT"
] | null | null | null | engine.py | kevioconnor/day0 | 6a72bf55dba1021850b810e647c87cb53ef86763 | [
"MIT"
] | null | null | null | from __future__ import annotations
import lzma, pickle
from typing import TYPE_CHECKING
from numpy import e
from tcod.console import Console
from tcod.map import compute_fov
import exceptions, render_functions
from message_log import MessageLog
if TYPE_CHECKING:
from entity import Actor
from game_map import... | 33.111111 | 117 | 0.657718 |
4dfbb723c6f3d56895498fae876785ec1b7ea406 | 19,132 | py | Python | pysnmp/ERI-DNX-STS1-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ERI-DNX-STS1-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ERI-DNX-STS1-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ERI-DNX-STS1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ERI-DNX-STS1-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:51:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 127.546667 | 2,554 | 0.744041 |
4dfc7fdfe3108af912d30eab1c90b722d5d0ec3d | 357 | py | Python | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | 1 | 2019-03-17T08:11:18.000Z | 2019-03-17T08:11:18.000Z | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | null | null | null | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | null | null | null | # flake8: noqa
# pylint: disable=cyclic-import
from .base import db, Model, metadata
from .link import Link
from .user import User
from .event import Event, Repeat
from .bookmark import Bookmark
from .tag import Tag
from .doc import Doc, DocTag
from .recipe import Recipe, RecipeImage
from .pagination import paginate, P... | 27.461538 | 44 | 0.792717 |
4dfd222e1995b07a6acae65ab8a9083933dc5471 | 632 | py | Python | nqs_tf/models/ffnn.py | ameya1101/neural-quantum-states | 2ab4f970e4cd7ed2a4ed3ebfdfe66bab396c11af | [
"MIT"
] | null | null | null | nqs_tf/models/ffnn.py | ameya1101/neural-quantum-states | 2ab4f970e4cd7ed2a4ed3ebfdfe66bab396c11af | [
"MIT"
] | null | null | null | nqs_tf/models/ffnn.py | ameya1101/neural-quantum-states | 2ab4f970e4cd7ed2a4ed3ebfdfe66bab396c11af | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense
from activations.activations import tan_sigmoid, exponential, ReLU
| 30.095238 | 67 | 0.683544 |
15005a003729bb6329d26f74028fc03fd8df4427 | 3,495 | py | Python | examples/other/text_frontend/test_g2p.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | examples/other/text_frontend/test_g2p.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | examples/other/text_frontend/test_g2p.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 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... | 35.30303 | 77 | 0.640343 |
15011a09f8a6b93bb0cb155a2b3d2cf4e30e89b7 | 530 | py | Python | data_split.py | DataXujing/ExtremeNet-Pytorch | fc8bf91cb748c144e85d2de271aea117ea54e808 | [
"BSD-3-Clause"
] | 9 | 2020-01-15T05:54:54.000Z | 2021-12-08T06:01:37.000Z | data_split.py | DataXujing/ExtremeNet-Pytorch | fc8bf91cb748c144e85d2de271aea117ea54e808 | [
"BSD-3-Clause"
] | 3 | 2020-12-01T10:26:19.000Z | 2021-01-20T07:51:47.000Z | data_split.py | DataXujing/ExtremeNet-Pytorch | fc8bf91cb748c144e85d2de271aea117ea54e808 | [
"BSD-3-Clause"
] | 3 | 2020-03-31T14:40:08.000Z | 2021-02-22T07:49:34.000Z |
# VOC
import os
import random
import shutil
trainval_percent = 0.1
train_percent = 0.9
imgfilepath = '../myData/JPEGImages' #
total_img = os.listdir(imgfilepath)
sample_num = len(total_img)
trains = random.sample(total_img,int(sample_num*train_percent))
for file in total_img:
if file in trains:
shuti... | 17.096774 | 86 | 0.711321 |
15035bfbd1a02ccbee3c988cf9c68e7e783016d5 | 3,104 | py | Python | sciunit/models/examples.py | russelljjarvis/sciun | f8f6ede84299dc700afe94b07ae4e98f87a19116 | [
"MIT"
] | 1 | 2020-05-28T00:35:23.000Z | 2020-05-28T00:35:23.000Z | sciunit/models/examples.py | ChihweiLHBird/sciunit | f5669d165fa505c3a17ac17af3d3c78aafd44ae2 | [
"MIT"
] | 1 | 2020-12-29T04:28:57.000Z | 2020-12-29T04:28:57.000Z | sciunit/models/examples.py | russelljjarvis/sciunit | f8f6ede84299dc700afe94b07ae4e98f87a19116 | [
"MIT"
] | null | null | null | """Example SciUnit model classes."""
import random
from sciunit.models import Model
from sciunit.capabilities import ProducesNumber
from sciunit.utils import class_intern, method_cache
from sciunit.utils import method_memoize # Decorator for caching of capability method results.
from typing import Union
##########... | 30.732673 | 171 | 0.661727 |
1504d1248cc2e761c3fb76bb1b97319d6ca7d7fb | 140 | py | Python | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-07-01T08:53:46.000Z | 2021-07-01T08:53:46.000Z | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | null | null | null | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-12-29T01:18:38.000Z | 2021-12-29T01:18:38.000Z | from sentence_transformers import SentenceTransformer
from semantic.config import CONFIG
model = SentenceTransformer(CONFIG["model_name"])
| 28 | 53 | 0.857143 |
1504effc59c426c8cdd37004ed34fbfb801a2d4e | 8,619 | py | Python | utils/models.py | miladalipour99/time_series_augmentation | 3c314468df689a70e84ae6b433f9cdf5bae63400 | [
"Apache-2.0"
] | 140 | 2020-04-21T05:01:42.000Z | 2022-03-30T20:03:21.000Z | utils/models.py | miladalipour99/time_series_augmentation | 3c314468df689a70e84ae6b433f9cdf5bae63400 | [
"Apache-2.0"
] | 5 | 2021-06-08T01:43:46.000Z | 2021-12-22T11:37:28.000Z | utils/models.py | miladalipour99/time_series_augmentation | 3c314468df689a70e84ae6b433f9cdf5bae63400 | [
"Apache-2.0"
] | 32 | 2020-04-26T14:00:58.000Z | 2022-03-09T01:25:32.000Z | from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Flatten, Dropout, Input
from tensorflow.keras.layers import MaxPooling1D, Conv1D
from tensorflow.keras.layers import LSTM, Bidirectional
from tensorflow.keras.layers import BatchNormalization, GlobalAveragePooling1D, Permute, concatena... | 31.922222 | 257 | 0.647987 |
1504fcdc48e346e97fc1b686d7489c610536fa41 | 2,468 | py | Python | ai_flow/test/util/test_sqlalchemy_db.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 79 | 2021-10-15T07:32:27.000Z | 2022-03-28T04:10:19.000Z | ai_flow/test/util/test_sqlalchemy_db.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 153 | 2021-10-15T05:23:46.000Z | 2022-02-23T06:07:10.000Z | ai_flow/test/util/test_sqlalchemy_db.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 23 | 2021-10-15T02:36:37.000Z | 2022-03-17T02:59:27.000Z | # Copyright 2022 The AI Flow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 29.73494 | 67 | 0.724878 |
1506feffa85f0e03250b9a11fac052405432fbe0 | 628 | py | Python | test.py | blodzbyte/isEven | 18e42cfdad052d34318900fdd91167a533b52210 | [
"MIT"
] | 44 | 2020-03-11T16:44:41.000Z | 2022-03-16T07:55:24.000Z | test.py | blodzbyte/isEven | 18e42cfdad052d34318900fdd91167a533b52210 | [
"MIT"
] | 9 | 2020-03-11T21:07:01.000Z | 2021-07-08T18:49:23.000Z | test.py | blodzbyte/isEven | 18e42cfdad052d34318900fdd91167a533b52210 | [
"MIT"
] | 18 | 2020-03-11T20:03:50.000Z | 2021-07-22T21:40:00.000Z | #!/usr/bin/env python3
from isEven import isEven
if __name__ == '__main__':
main()
| 29.904762 | 80 | 0.517516 |
15073013e66266b93b368bf7d20e3350da16c0c6 | 1,139 | py | Python | comm.py | thedognexttothetrashcan/spi_tmall | 021dc9a6a23841373000a5f09ca300abd376ad15 | [
"Apache-2.0"
] | null | null | null | comm.py | thedognexttothetrashcan/spi_tmall | 021dc9a6a23841373000a5f09ca300abd376ad15 | [
"Apache-2.0"
] | null | null | null | comm.py | thedognexttothetrashcan/spi_tmall | 021dc9a6a23841373000a5f09ca300abd376ad15 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# encoding=utf-8
import os
import datetime,time
from selenium import webdriver
import config
import threading
import numpy as np
#Create Threading Pool
| 21.903846 | 73 | 0.637401 |
15077392ea3f2519132c06a08d94b11524ea1c19 | 1,584 | py | Python | sherlockpipe/objectinfo/preparer/LightcurveBuilder.py | LuisCerdenoMota/SHERLOCK | 5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1 | [
"MIT"
] | null | null | null | sherlockpipe/objectinfo/preparer/LightcurveBuilder.py | LuisCerdenoMota/SHERLOCK | 5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1 | [
"MIT"
] | null | null | null | sherlockpipe/objectinfo/preparer/LightcurveBuilder.py | LuisCerdenoMota/SHERLOCK | 5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1 | [
"MIT"
] | null | null | null | import re
from abc import ABC, abstractmethod
from sherlockpipe.star.EpicStarCatalog import EpicStarCatalog
from sherlockpipe.star.KicStarCatalog import KicStarCatalog
from sherlockpipe.star.TicStarCatalog import TicStarCatalog
| 38.634146 | 91 | 0.674874 |
1507c96d9d4f256bc65da807cd5af86c8c25fb94 | 6,371 | py | Python | dft/dft-hartree-hydrogen.py | marvinfriede/projects | 7050cd76880c8ff0d9de17b8676e82f1929a68e0 | [
"MIT"
] | null | null | null | dft/dft-hartree-hydrogen.py | marvinfriede/projects | 7050cd76880c8ff0d9de17b8676e82f1929a68e0 | [
"MIT"
] | 3 | 2021-04-14T20:15:26.000Z | 2021-04-14T20:20:54.000Z | dft/dft-hartree-hydrogen.py | marvinfriede/projects | 7050cd76880c8ff0d9de17b8676e82f1929a68e0 | [
"MIT"
] | null | null | null | #!/bin/env python3
# coding: utf8
'''
My implementation of DFT Assignment 5.1: Hartree energy for H-atom GS
Taught by Ren Wirnata in 2019/2020.
Links:
https://tu-freiberg.de/fakultaet2/thph/lehre/density-functional-theory
https://github.com/PandaScience/teaching-resources
This script uses the last assignment's c... | 30.777778 | 86 | 0.644169 |
1507f85202e8ecdff0fe986b123a48f1bb2bac41 | 18,714 | py | Python | workflow & analyses notebooks/fukushima_telomere_methods.py | Jared-Luxton/Fukushima-Nuclear-Disaster-Humans | 1cb84f63172005f3bd8947d2bca041deaeec90e8 | [
"MIT"
] | null | null | null | workflow & analyses notebooks/fukushima_telomere_methods.py | Jared-Luxton/Fukushima-Nuclear-Disaster-Humans | 1cb84f63172005f3bd8947d2bca041deaeec90e8 | [
"MIT"
] | null | null | null | workflow & analyses notebooks/fukushima_telomere_methods.py | Jared-Luxton/Fukushima-Nuclear-Disaster-Humans | 1cb84f63172005f3bd8947d2bca041deaeec90e8 | [
"MIT"
] | 1 | 2021-05-23T22:06:17.000Z | 2021-05-23T22:06:17.000Z | import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model
from difflib import SequenceMatcher
import seaborn as sns
from statistics import mean
from ast import literal_eval
from scipy import stats
from sklearn.linear_model import LinearRegression
from s... | 35.850575 | 125 | 0.589879 |
1508aa76e743b64f436cbb0a8c19cf6751c48d1b | 4,684 | py | Python | src/xia2/cli/report.py | graeme-winter/xia2 | e00d688137d4ddb4b125be9a3f37ae00265886c2 | [
"BSD-3-Clause"
] | 10 | 2015-10-30T06:36:55.000Z | 2021-12-10T20:06:22.000Z | src/xia2/cli/report.py | graeme-winter/xia2 | e00d688137d4ddb4b125be9a3f37ae00265886c2 | [
"BSD-3-Clause"
] | 528 | 2015-11-24T08:20:12.000Z | 2022-03-21T21:47:29.000Z | src/xia2/cli/report.py | graeme-winter/xia2 | e00d688137d4ddb4b125be9a3f37ae00265886c2 | [
"BSD-3-Clause"
] | 14 | 2016-03-15T22:07:03.000Z | 2020-12-14T07:13:35.000Z | import json
import os
import sys
from collections import OrderedDict
import iotbx.phil
import xia2.Handlers.Streams
from dials.util.options import OptionParser
from jinja2 import ChoiceLoader, Environment, PackageLoader
from xia2.Modules.Report import Report
from xia2.XIA2Version import Version
phil_scope = iotbx.phi... | 28.216867 | 87 | 0.637916 |
150bff7433b6fabe00d05feee353f17bc33f7d36 | 757 | py | Python | minoan_project/minoan_project/urls.py | mtzirkel/minoan | 3eadeb1f73acf261e2f550642432ea5c25557ecb | [
"MIT"
] | null | null | null | minoan_project/minoan_project/urls.py | mtzirkel/minoan | 3eadeb1f73acf261e2f550642432ea5c25557ecb | [
"MIT"
] | null | null | null | minoan_project/minoan_project/urls.py | mtzirkel/minoan | 3eadeb1f73acf261e2f550642432ea5c25557ecb | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.conf import settings
from django.views.generic import TemplateView
from . import views
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patt... | 27.035714 | 89 | 0.698811 |
150c07692f09dbc4c2bc2f82c96435eb48b056d8 | 324 | py | Python | algorithm/__init__.py | sirCamp/bioinformatics | 2609044c57eba1097263829f9db579cd1825b8bb | [
"MIT"
] | null | null | null | algorithm/__init__.py | sirCamp/bioinformatics | 2609044c57eba1097263829f9db579cd1825b8bb | [
"MIT"
] | null | null | null | algorithm/__init__.py | sirCamp/bioinformatics | 2609044c57eba1097263829f9db579cd1825b8bb | [
"MIT"
] | null | null | null | from algorithm.InsertionLengthAlgorithm import InsertionLengthAlgorithm
from algorithm.PhysicalCoverageAlgorithm import PhysicalCoverageAlgorithm
from algorithm.SequenceCoverageAlgorithm import SequenceCoverageAlgorithm
from algorithm.CigarAlgorithm import CigarAlgorithm
from algorithm.KmersAlgorithm import KmersAlgori... | 54 | 73 | 0.92284 |
150e69b2f9539045223d00d448f50c262f488903 | 1,874 | py | Python | attackMain.py | saurabhK99/substitution-cipher | dcf69cd4866ce7408eda6faf03ddd9b601bc3fec | [
"MIT"
] | null | null | null | attackMain.py | saurabhK99/substitution-cipher | dcf69cd4866ce7408eda6faf03ddd9b601bc3fec | [
"MIT"
] | null | null | null | attackMain.py | saurabhK99/substitution-cipher | dcf69cd4866ce7408eda6faf03ddd9b601bc3fec | [
"MIT"
] | null | null | null | from tkinter import *
from attack import *
#calls letter frequency attack
#defining main window
root = Tk()
root.title('Letter Frequency Attack')
root.configure(
background='#221b1b',
)
root.option_add('*Font', 'helvatica 12')
root.option_add('*Foreground', 'whitesmoke')
root.option_add('*Background', '#221b... | 23.425 | 72 | 0.657417 |
150ef1714addd55d364456c56a5bbe4b9e5b825d | 12,703 | py | Python | eden.py | nobesio/eden | c301abdc64647fde02e8117ea137db322a804739 | [
"MIT"
] | null | null | null | eden.py | nobesio/eden | c301abdc64647fde02e8117ea137db322a804739 | [
"MIT"
] | null | null | null | eden.py | nobesio/eden | c301abdc64647fde02e8117ea137db322a804739 | [
"MIT"
] | null | null | null | from random import randint
import copy
# Auxiliary Function for rotating the DNA in each cycle.
# History is the object responsible for accounting all the organisms.
# Organism is the structure for the living organisms.
# QuantumPackages are the "food" of this simulation. The name comes from the concept us... | 37.919403 | 112 | 0.492954 |
1512acbfbf9725f996d722bba323e798347b6270 | 2,407 | py | Python | examples/example_pipeline.py | madconsulting/datanectar | 7177b907c72c92de31fb136740f33c509ed5d499 | [
"Unlicense"
] | null | null | null | examples/example_pipeline.py | madconsulting/datanectar | 7177b907c72c92de31fb136740f33c509ed5d499 | [
"Unlicense"
] | null | null | null | examples/example_pipeline.py | madconsulting/datanectar | 7177b907c72c92de31fb136740f33c509ed5d499 | [
"Unlicense"
] | null | null | null | import os
import datetime
from pathlib import Path
import pandas as pd
import luigi
PROCESSED_DIR = 'processed'
ROLLUP_DIR = 'rollups'
if __name__ == '__main__':
luigi.run()
| 28.317647 | 93 | 0.617366 |
151306af1c1480903dd00ab70e45e88f683fbe48 | 2,463 | py | Python | scripts/tflite_model_tools/tflite/Metadata.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 15 | 2021-09-05T03:43:54.000Z | 2022-03-29T14:17:29.000Z | scripts/tflite_model_tools/tflite/Metadata.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 21 | 2021-09-01T06:58:31.000Z | 2022-03-31T06:33:15.000Z | scripts/tflite_model_tools/tflite/Metadata.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 6 | 2021-09-22T06:44:19.000Z | 2022-02-07T06:28:35.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
# Metadata
def Name(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
if o != 0:
... | 29.674699 | 131 | 0.657734 |
15136d40366243c73182b9f6916a6c550042f55f | 1,124 | py | Python | kukur/config.py | timeseer-ai/kukur | 28210ff0bde396d961b60828782fef56e326b319 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-09-12T08:29:30.000Z | 2022-01-19T19:06:45.000Z | kukur/config.py | timeseer-ai/kukur | 28210ff0bde396d961b60828782fef56e326b319 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2021-03-16T08:21:01.000Z | 2022-03-21T07:30:28.000Z | kukur/config.py | timeseer-ai/kukur | 28210ff0bde396d961b60828782fef56e326b319 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-12T08:29:34.000Z | 2021-09-12T08:29:34.000Z | """Read the Kukur configuration."""
# SPDX-FileCopyrightText: 2021 Timeseer.AI
#
# SPDX-License-Identifier: Apache-2.0
import glob
import toml
def from_toml(path):
"""Read the configuration from a TOML file, processing includes."""
config = toml.load(path)
for include_options in config.get("include", []... | 32.114286 | 71 | 0.598754 |
1514c4cab7976c14d2d2ff2686c1ed82e350d931 | 3,326 | py | Python | scheduletest.py | ambimanus/appsim | 8f60b3a736af8aa7f03435c28aef2685a3dbfbe3 | [
"MIT"
] | null | null | null | scheduletest.py | ambimanus/appsim | 8f60b3a736af8aa7f03435c28aef2685a3dbfbe3 | [
"MIT"
] | null | null | null | scheduletest.py | ambimanus/appsim | 8f60b3a736af8aa7f03435c28aef2685a3dbfbe3 | [
"MIT"
] | null | null | null | import time
from datetime import datetime
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.dates import epoch2num
import device_factory
if __name__ == '__main__':
amount = 50
devices = []
for i in range(amount):
device = device_factory.ecopower_4(i, i)
... | 35.010526 | 88 | 0.585989 |
15165694e2716645ea22f6406f0f303943c423b8 | 329 | py | Python | src/genie/libs/parser/iosxe/tests/ShowInstallState/cli/equal/golden_output3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowInstallState/cli/equal/golden_output3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowInstallState/cli/equal/golden_output3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
"location": {
"R0 R1": {
"auto_abort_timer": "inactive",
"pkg_state": {
1: {
"filename_version": "17.08.01.0.149429",
"state": "U",
"type": "IMG",
}
},
... | 23.5 | 60 | 0.31307 |
1516d58cc828bc371a33c9b4a9ca474fdb7eba79 | 8,637 | py | Python | lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py | 714627034/Paddle-Lite | 015ba88a4d639db0b73603e37f83e47be041a4eb | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | # Copyright (c) 2021 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... | 40.359813 | 125 | 0.554706 |
151724d850402f50ae0bbd91cc2f5825d03ab2de | 22,871 | py | Python | cfn_policy_validator/tests/validation_tests/test_resource_validator.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 41 | 2021-09-30T01:28:51.000Z | 2022-03-24T09:42:09.000Z | cfn_policy_validator/tests/validation_tests/test_resource_validator.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 10 | 2021-09-30T08:13:11.000Z | 2022-03-22T07:34:41.000Z | cfn_policy_validator/tests/validation_tests/test_resource_validator.py | awslabs/aws-cloudformation-iam-policy-validator | 52c1439e4d76d2c7d45c97563cc87f8458134e0b | [
"MIT-0"
] | 3 | 2021-11-29T21:13:30.000Z | 2022-02-04T12:49:40.000Z | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
import boto3
import copy
import unittest
from botocore.stub import ANY
from cfn_policy_validator.tests import account_config, offline_only, only_run_for_end_to_end
from cfn_policy_validator.tests.boto_mocks impor... | 33.437135 | 145 | 0.773425 |
1518a255b1570670a775245440b45ebe73fe295d | 6,672 | py | Python | HDF4_H5_NETCDF/source2.7/h5py/tests/hl/test_datatype.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 31 | 2018-10-19T15:28:36.000Z | 2022-02-14T03:01:25.000Z | h5py/tests/hl/test_datatype.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 13 | 2020-01-28T22:20:14.000Z | 2022-03-11T23:20:14.000Z | h5py/tests/hl/test_datatype.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 10 | 2019-01-10T04:02:12.000Z | 2021-11-17T01:52:15.000Z | """
Tests for the h5py.Datatype class.
"""
from __future__ import absolute_import
from itertools import count
import numpy as np
import h5py
from ..common import ut, TestCase
| 33.527638 | 78 | 0.508243 |
151937c4e4552fde0563a4d7a5da8405bfdf819f | 2,278 | py | Python | conmon/regex.py | flashdagger/conmon | c6e75f115ad104ea7ecc7b14618efadefadad2f8 | [
"MIT"
] | null | null | null | conmon/regex.py | flashdagger/conmon | c6e75f115ad104ea7ecc7b14618efadefadad2f8 | [
"MIT"
] | null | null | null | conmon/regex.py | flashdagger/conmon | c6e75f115ad104ea7ecc7b14618efadefadad2f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import re
from typing import Pattern, Tuple, Iterator, Match, Union, Optional, List, Dict
from conmon.conan import storage_path
DECOLORIZE_REGEX = re.compile(r"[\u001b]\[\d{1,2}m", re.UNICODE)
CONAN_DATA_PATH = re.compile(
r"""(?x)
(?P<path>
([a-z... | 28.475 | 87 | 0.565847 |
15195236d745c09ce968bf6af2311b1a616e1824 | 5,089 | py | Python | src/north/cli/gscli/main.py | falcacicd/goldstone-mgmt | e7348011180e3c2dcd0558636ddc5c21779c7a3f | [
"Apache-2.0"
] | null | null | null | src/north/cli/gscli/main.py | falcacicd/goldstone-mgmt | e7348011180e3c2dcd0558636ddc5c21779c7a3f | [
"Apache-2.0"
] | null | null | null | src/north/cli/gscli/main.py | falcacicd/goldstone-mgmt | e7348011180e3c2dcd0558636ddc5c21779c7a3f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sysrepo as sr
import argparse
from prompt_toolkit import PromptSession
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.completion import Completer
import sys
import os
import logging
import asyncio
from .base import Object, InvalidInput, BreakLoop
from .onlp impo... | 28.751412 | 118 | 0.592847 |
1519776f4ef0553b7494300ab7ab52a92881c3de | 350 | py | Python | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null |
cus_list=[8,4,23,42,16,15]
selection_sort(cus_list)
| 25 | 69 | 0.611429 |
1519b725bc8e51fd74703c95a095ecb5723fb0b3 | 437 | py | Python | tests/creditcrawler_test.py | Mivinci/cqupt-piper | ce76a4334a2d7a7b75750d7bfac9efa747f968c7 | [
"MIT"
] | 3 | 2019-09-08T16:22:30.000Z | 2021-01-23T02:54:10.000Z | tests/creditcrawler_test.py | Mivinci/cqupt-piper | ce76a4334a2d7a7b75750d7bfac9efa747f968c7 | [
"MIT"
] | 1 | 2020-01-11T05:13:43.000Z | 2020-01-11T05:13:43.000Z | tests/creditcrawler_test.py | Mivinci/cqupt-piper | ce76a4334a2d7a7b75750d7bfac9efa747f968c7 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from prettytable import PrettyTable
# html = requests.get(
# 'http://jwzx.cqu.pt/student/xkxfTj.php',
# cookies={'PHPSESSID': 'o2r2fpddrj892dp1ntqddcp2hv'}).text
# soup = BeautifulSoup(html, 'html.parser')
# for tr in soup.find('table', {'id': 'AxfTjTable'}).find... | 24.277778 | 71 | 0.665904 |
1519c99cb202a036f7cd0c6cfb24bf58a516d62b | 602 | py | Python | ClassMethod.py | AdarshKvT/python-oop | b619226807c3a0b434fe9789952cc86dc8cde9b7 | [
"Apache-2.0"
] | null | null | null | ClassMethod.py | AdarshKvT/python-oop | b619226807c3a0b434fe9789952cc86dc8cde9b7 | [
"Apache-2.0"
] | null | null | null | ClassMethod.py | AdarshKvT/python-oop | b619226807c3a0b434fe9789952cc86dc8cde9b7 | [
"Apache-2.0"
] | null | null | null |
# create an object of person
p1 = Person("KvT")
# creating another instance
p2 = Person("Shin")
# accessing the class method directly
print(Person.num_of_people())
| 20.066667 | 43 | 0.647841 |
1519fb893e14d2984bb652c58400576b1b324256 | 1,117 | py | Python | webpack_manifest/templatetags/webpack_manifest_tags.py | temoto/python-webpack-manifest | bb10dbb718f2b41d8356c983b375b064e220d521 | [
"MIT"
] | 55 | 2015-11-02T19:50:41.000Z | 2022-03-06T21:48:36.000Z | webpack_manifest/templatetags/webpack_manifest_tags.py | temoto/python-webpack-manifest | bb10dbb718f2b41d8356c983b375b064e220d521 | [
"MIT"
] | 7 | 2015-09-16T05:24:37.000Z | 2018-07-25T23:10:30.000Z | webpack_manifest/templatetags/webpack_manifest_tags.py | temoto/python-webpack-manifest | bb10dbb718f2b41d8356c983b375b064e220d521 | [
"MIT"
] | 10 | 2016-03-06T16:30:00.000Z | 2020-08-12T01:41:51.000Z | from django import template
from django.conf import settings
from webpack_manifest import webpack_manifest
if not hasattr(settings, 'WEBPACK_MANIFEST'):
raise webpack_manifest.WebpackManifestConfigError('`WEBPACK_MANIFEST` has not been defined in settings')
if 'manifests' not in settings.WEBPACK_MANIFEST:
rai... | 34.90625 | 108 | 0.706356 |
151a77fa24452704d617da768baec7d8f8f8b186 | 2,668 | py | Python | utilities/jaccard_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | null | null | null | utilities/jaccard_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | 6 | 2019-07-12T15:52:31.000Z | 2020-01-13T18:14:41.000Z | utilities/jaccard_utilities.py | jjc2718/netreg | 292540e911cdfbe18ff6fe0f9bfe8e055053d23c | [
"BSD-3-Clause"
] | 1 | 2019-07-18T18:28:59.000Z | 2019-07-18T18:28:59.000Z | import os
import itertools as it
import pandas as pd
| 44.466667 | 110 | 0.642054 |
151aa06c987c92f779a676ea9b8988f697c25f28 | 2,600 | py | Python | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | 22.033898 | 78 | 0.602308 |
151beeecee85f8f8f1854a4eb0eedf92f2702417 | 7,188 | py | Python | noise_robust_cobras/noise_robust/datastructures/cycle.py | jonassoenen/noise_robust_cobras | 0e5823dbba0263c3ccb3c2afb4267f2f542fc568 | [
"Apache-2.0"
] | 2 | 2020-07-30T15:09:53.000Z | 2020-07-31T06:33:36.000Z | noise_robust_cobras/noise_robust/datastructures/cycle.py | magicalJohn/noise_robust_cobras | 0e5823dbba0263c3ccb3c2afb4267f2f542fc568 | [
"Apache-2.0"
] | null | null | null | noise_robust_cobras/noise_robust/datastructures/cycle.py | magicalJohn/noise_robust_cobras | 0e5823dbba0263c3ccb3c2afb4267f2f542fc568 | [
"Apache-2.0"
] | 1 | 2021-12-12T11:11:25.000Z | 2021-12-12T11:11:25.000Z | from collections import defaultdict
from noise_robust_cobras.noise_robust.datastructures.constraint import Constraint
from noise_robust_cobras.noise_robust.datastructures.constraint_index import (
ConstraintIndex,
)
def get_sorted_constraint_list(self):
"""
:return: a list of all constraints... | 37.243523 | 128 | 0.657763 |
151d22605d16726325dce1205b7a8ba505f35329 | 525 | py | Python | python3/hackerrank_leetcode/remove_duplicates_from_sorted_array/test.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | python3/hackerrank_leetcode/remove_duplicates_from_sorted_array/test.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | python3/hackerrank_leetcode/remove_duplicates_from_sorted_array/test.py | seLain/codesnippets | ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289 | [
"MIT"
] | null | null | null | import unittest
from main import Solution
if __name__ == '__main__':
unittest.main() | 30.882353 | 72 | 0.693333 |
12772bd26a04aaf3f825acfbb2e6f63963b94d81 | 246 | py | Python | 7KYU/word_splitter.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/word_splitter.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/word_splitter.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | SEPARATOR: list = [':', ',', '*', ';', '#', '|', '+', '%', '>', '?', '&', '=', '!']
| 35.142857 | 83 | 0.426829 |
12781452042b292ed356843d47c2a5e60478909f | 7,998 | py | Python | parsers/sales_order.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | parsers/sales_order.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | parsers/sales_order.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | import csv
from core.exceptions import InvalidFileException
| 46.77193 | 79 | 0.542136 |
1278169f69007b0aff65ad2222788f61228ad8d6 | 8,342 | py | Python | maps.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | maps.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | maps.py | BouncyButton/places-simulator | a1f5fc385750af9968cc3c6216ba20f5de4719fd | [
"MIT"
] | null | null | null | import googlemaps
import secret
from datetime import datetime
import requests
import pickle
import time
gmaps = googlemaps.Client(key=secret.PLACES_API_KEY)
# lat = 45.411400
# lon = 11.887491
coordinates = [
(45.411400, 11.887491), # torre archimede
(45.409218, 11.877915), # piazza garibaldi
(45.407698... | 29.167832 | 121 | 0.609686 |
12785f321ec0fa0181c3a4c19bc2048854ea35ad | 31,231 | py | Python | azure-iot-device/tests/iothub/test_sync_handler_manager.py | dt-boringtao/azure-iot-sdk-python | 35a09679bdf4d7a727391b265a8f1fbb99a30c45 | [
"MIT"
] | null | null | null | azure-iot-device/tests/iothub/test_sync_handler_manager.py | dt-boringtao/azure-iot-sdk-python | 35a09679bdf4d7a727391b265a8f1fbb99a30c45 | [
"MIT"
] | null | null | null | azure-iot-device/tests/iothub/test_sync_handler_manager.py | dt-boringtao/azure-iot-sdk-python | 35a09679bdf4d7a727391b265a8f1fbb99a30c45 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import log... | 43.077241 | 170 | 0.700202 |
1278ee593e924b3273cd53898ff8735b235b993e | 885 | py | Python | src/python/Chameleon.Faas/demo/helloworld_grpc_client.py | sevenTiny/Seventiny.Cloud.ScriptEngine | dda66a7d2ec8c203823e07666314b9d0c8795768 | [
"Apache-2.0"
] | 2 | 2020-01-17T03:16:42.000Z | 2020-08-28T04:23:06.000Z | src/python/Chameleon.Faas/demo/helloworld_grpc_client.py | sevenTiny/Seventiny.Cloud.ScriptEngine | dda66a7d2ec8c203823e07666314b9d0c8795768 | [
"Apache-2.0"
] | null | null | null | src/python/Chameleon.Faas/demo/helloworld_grpc_client.py | sevenTiny/Seventiny.Cloud.ScriptEngine | dda66a7d2ec8c203823e07666314b9d0c8795768 | [
"Apache-2.0"
] | 1 | 2019-12-13T07:02:56.000Z | 2019-12-13T07:02:56.000Z | import grpc
import helloworld_pb2
import helloworld_pb2_grpc
from grpc.beta import implementations
if __name__ == '__main__':
run() | 34.038462 | 118 | 0.701695 |
1279a170c86c50a1d9aa504d29a7b4fbc15ef3a6 | 2,350 | py | Python | tools/pca_outcore.py | escorciav/deep-action-proposals | c14f512febc1abd0ec40bd3188a83e4ee3913535 | [
"MIT"
] | 28 | 2017-03-19T12:02:22.000Z | 2021-07-08T13:49:41.000Z | tools/pca_outcore.py | escorciav/deep-action-proposals | c14f512febc1abd0ec40bd3188a83e4ee3913535 | [
"MIT"
] | 2 | 2018-05-07T07:43:15.000Z | 2018-12-14T16:06:48.000Z | tools/pca_outcore.py | escorciav/deep-action-proposals | c14f512febc1abd0ec40bd3188a83e4ee3913535 | [
"MIT"
] | 7 | 2017-03-19T11:51:21.000Z | 2020-01-07T11:17:48.000Z | #!/usr/bin/env python
"""
PCA done via matrix multiplication out-of-core.
"""
import argparse
import time
import h5py
import hickle as hkl
import numpy as np
if __name__ == '__main__':
p = input_parse()
args = p.parse_args()
main(**vars(args))
| 30.519481 | 73 | 0.609362 |
127b202282fe9d7b819fac4de12d835378edbe4e | 5,680 | py | Python | azdev/params.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | azdev/params.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | azdev/params.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
# ... | 67.619048 | 214 | 0.659859 |
127b40e7a10ad49a4f232756467391a18976528f | 1,968 | py | Python | gamry_parser/cv.py | bcliang/gamry-parser | c1dfcf73d973c88ee496f0aa256d99f642ab6013 | [
"MIT"
] | 6 | 2019-03-14T21:21:13.000Z | 2022-03-04T19:21:32.000Z | gamry_parser/cv.py | bcliang/gamry-parser | c1dfcf73d973c88ee496f0aa256d99f642ab6013 | [
"MIT"
] | 34 | 2019-03-11T04:21:51.000Z | 2022-01-10T21:45:38.000Z | gamry_parser/cv.py | bcliang/gamry-parser | c1dfcf73d973c88ee496f0aa256d99f642ab6013 | [
"MIT"
] | 5 | 2019-08-11T15:38:30.000Z | 2021-04-24T20:06:09.000Z | import gamry_parser as parser
| 29.373134 | 83 | 0.571646 |
127c2b5fae2468e39370fecece20d2e64788de00 | 11,609 | py | Python | comps.py | matthewb66/bdconsole | edc9a03f93dd782d58ff274ebe5152f7eccecff7 | [
"MIT"
] | null | null | null | comps.py | matthewb66/bdconsole | edc9a03f93dd782d58ff274ebe5152f7eccecff7 | [
"MIT"
] | null | null | null | comps.py | matthewb66/bdconsole | edc9a03f93dd782d58ff274ebe5152f7eccecff7 | [
"MIT"
] | null | null | null | import json
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import dash_table
col_data_comps = [
{"name": ['Component'], "id": "componentName"},
{"name": ['Version'], "id": "componentVersionName"},
{"name": ['Ignored'], "i... | 41.460714 | 103 | 0.450168 |
127c9e72b97842964045050d2c4c20f3d0a12a28 | 656 | py | Python | CursoemVideoPython/Desafio 35.py | Beebruna/Python | bdbe10ea76acca1b417f5960db0aae8be44e0af3 | [
"MIT"
] | null | null | null | CursoemVideoPython/Desafio 35.py | Beebruna/Python | bdbe10ea76acca1b417f5960db0aae8be44e0af3 | [
"MIT"
] | null | null | null | CursoemVideoPython/Desafio 35.py | Beebruna/Python | bdbe10ea76acca1b417f5960db0aae8be44e0af3 | [
"MIT"
] | null | null | null | '''
Desenvolva um programa que leia o comprimento de trs retas e diga ao usurio se elas
podem ou no formar um tringulo.
'''
reta1 = float(input('Digite o comprimento da primeira reta: '))
reta2 = float(input('Digite o comprimento da segunda reta: '))
reta3 = float(input('Digite o comprimento da terceira reta: '))
if ... | 38.588235 | 85 | 0.689024 |