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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b56b4c5922bce77528a0bba1e6eec4b2613a9cca | 62 | py | Python | msm_pele/AdaptivePELE/docs/makehtml.py | danielSoler93/msm_pele | 80b187ceb6446059f6c7b0dd2c0968f0db4a17a1 | [
"MIT"
] | 13 | 2017-06-14T14:42:22.000Z | 2022-01-25T08:46:04.000Z | msm_pele/AdaptivePELE/docs/makehtml.py | danielSoler93/msm_pele | 80b187ceb6446059f6c7b0dd2c0968f0db4a17a1 | [
"MIT"
] | 16 | 2018-01-16T01:32:02.000Z | 2021-02-19T17:05:12.000Z | msm_pele/AdaptivePELE/docs/makehtml.py | danielSoler93/msm_pele | 80b187ceb6446059f6c7b0dd2c0968f0db4a17a1 | [
"MIT"
] | 8 | 2018-02-20T10:47:07.000Z | 2022-03-21T12:28:07.000Z | from sphinx import cmdline
import sys
cmdline.main(sys.argv)
| 12.4 | 26 | 0.806452 |
b56c623a069eaa852720532015deec19073b3d1a | 5,526 | py | Python | sirbot/slack/wrapper.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 7 | 2017-05-06T11:37:25.000Z | 2018-11-22T09:46:32.000Z | sirbot/slack/wrapper.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 19 | 2017-05-07T16:25:02.000Z | 2017-09-22T08:02:59.000Z | sirbot/slack/wrapper.py | Ovvovy/sirbot-slack | 2d27e49cfbc2cb12e87ef3814823d2ad68d0a788 | [
"MIT"
] | 3 | 2017-05-06T11:37:28.000Z | 2017-07-07T09:32:54.000Z | import logging
from .store.user import User
from .errors import SlackInactiveDispatcher, SlackNoThread
logger = logging.getLogger(__name__)
| 32.892857 | 79 | 0.596091 |
b56d3d57d3b008ef213624e96067cf823658819f | 4,321 | py | Python | rc/returninfo/classifier.py | ddangelorb/gthbmining | a7d18623cd14a2ffd2508a4bb6a71b06a5f26215 | [
"MIT"
] | 4 | 2019-09-17T02:53:51.000Z | 2020-10-23T14:48:16.000Z | rc/returninfo/classifier.py | ddangelorb/gthbmining | a7d18623cd14a2ffd2508a4bb6a71b06a5f26215 | [
"MIT"
] | null | null | null | rc/returninfo/classifier.py | ddangelorb/gthbmining | a7d18623cd14a2ffd2508a4bb6a71b06a5f26215 | [
"MIT"
] | null | null | null | import warnings
warnings.filterwarnings('ignore') #ignore warnings to print values properly
import logging
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassif... | 50.244186 | 190 | 0.682249 |
b56d8510f015d44a803fb673140f624e3488a4d1 | 326 | py | Python | pctiler/pctiler/colormaps/mtbs.py | hobu/planetary-computer-apis | 27f5b8ce78737f43b306fa4738007c207a329b5b | [
"MIT"
] | 1 | 2021-11-02T16:13:43.000Z | 2021-11-02T16:13:43.000Z | pctiler/pctiler/colormaps/mtbs.py | moradology/planetary-computer-apis-1 | 81a666e843cd0d8592708b35e1360fb68815816d | [
"MIT"
] | null | null | null | pctiler/pctiler/colormaps/mtbs.py | moradology/planetary-computer-apis-1 | 81a666e843cd0d8592708b35e1360fb68815816d | [
"MIT"
] | null | null | null | from typing import Dict, List
mtbs_colormaps: Dict[str, Dict[int, List[int]]] = {
"mtbs-severity": {
0: [0, 0, 0, 0],
1: [0, 100, 0, 255],
2: [127, 255, 212, 255],
3: [255, 255, 0, 255],
4: [255, 0, 0, 255],
5: [127, 255, 0, 255],
6: [255, 255, 255, 255],
... | 23.285714 | 51 | 0.435583 |
b56dd907e3a9ba7c7134351a3ded86b0fead6823 | 183 | py | Python | run.py | sgilhuly/mire | 8ac07af9083831a03a1901c1bb655932111ae4cf | [
"MIT"
] | 2 | 2020-06-15T10:51:43.000Z | 2020-08-02T07:38:44.000Z | run.py | sgilhuly/mire | 8ac07af9083831a03a1901c1bb655932111ae4cf | [
"MIT"
] | null | null | null | run.py | sgilhuly/mire | 8ac07af9083831a03a1901c1bb655932111ae4cf | [
"MIT"
] | 1 | 2018-05-15T04:45:37.000Z | 2018-05-15T04:45:37.000Z | import sys
from app import app, socketio
if __name__ == "__main__":
if len(sys.argv) > 1:
port = int(sys.argv[1])
else:
port=5000
socketio.run(app, host="0.0.0.0", port=port) | 18.3 | 45 | 0.661202 |
b56fc2f3040d889070f9fe524690dd7b2af07b3c | 1,004 | py | Python | pyFoam/extractForces.py | mjsauvinen/P4US | ba7bbc77a6e482f612ba5aa5f021a41fcbb23345 | [
"MIT"
] | 4 | 2017-06-10T13:34:29.000Z | 2021-10-08T14:33:43.000Z | pyFoam/extractForces.py | mjsauvinen/P4US | ba7bbc77a6e482f612ba5aa5f021a41fcbb23345 | [
"MIT"
] | 8 | 2018-07-10T12:00:49.000Z | 2021-09-16T13:58:59.000Z | pyFoam/extractForces.py | mjsauvinen/P4US | ba7bbc77a6e482f612ba5aa5f021a41fcbb23345 | [
"MIT"
] | 6 | 2019-05-03T07:29:12.000Z | 2022-01-21T03:10:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import numpy as np
import pylab as pl
from txtTools import openIOFile
# =*=*=*=* FUNCTION DEFINITIONS *=*=*=*=*=*=*=*=*=*=*=*
# =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
try:
factor = sys.argv[1]
except:
factor = 1.
factor = float(factor)
f =... | 20.489796 | 55 | 0.531873 |
b5708d1fb897807ff8443226c727f7b6941ec2ec | 580 | py | Python | fluentcheck/tests/tests_is/test_basic_checks_is.py | jstoebel/fluentcheck | 9258dab4f46776b5df50528f5028ce2d11a443c5 | [
"MIT"
] | 83 | 2018-05-31T13:21:06.000Z | 2022-03-20T14:27:49.000Z | fluentcheck/tests/tests_is/test_basic_checks_is.py | jstoebel/fluentcheck | 9258dab4f46776b5df50528f5028ce2d11a443c5 | [
"MIT"
] | 20 | 2019-02-10T15:07:44.000Z | 2021-04-02T13:18:52.000Z | fluentcheck/tests/tests_is/test_basic_checks_is.py | jstoebel/fluentcheck | 9258dab4f46776b5df50528f5028ce2d11a443c5 | [
"MIT"
] | 11 | 2019-02-16T21:33:11.000Z | 2022-03-25T03:39:52.000Z | import unittest
from fluentcheck import Is
from fluentcheck.exceptions import CheckError
# noinspection PyStatementEffect
| 26.363636 | 63 | 0.712069 |
b57121e74eb14c59a54321fc4b77f18535e2b4a3 | 414 | py | Python | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-18 17:06
from django.db import migrations, models
| 21.789474 | 59 | 0.625604 |
b57208d1dd6013bfe4af88d2691bee115d3cc089 | 627 | py | Python | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from rest_framework.exceptions import ValidationError as DRFValidationError
from api.models import TimestampedModel
| 29.857143 | 75 | 0.700159 |
b572d60eef0c25ee409f0d4d3f9822ab96421622 | 3,652 | py | Python | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | """Box for specifying initial guess for the fitting algorithm."""
from typing import Callable, List, Optional
import numpy as np
import toga
from eddington import EddingtonException
from toga.style import Pack
from eddington_gui.boxes.line_box import LineBox
from eddington_gui.consts import SMALL_INPUT_WIDTH
| 34.780952 | 87 | 0.618839 |
b5742eb898932211cf75e05e216d0c94c86949cb | 418 | py | Python | examples/select.py | GBS3/cues | 09bce776f9275b71a4028e5c59103e45d81ebed6 | [
"MIT"
] | 1 | 2021-09-13T02:29:43.000Z | 2021-09-13T02:29:43.000Z | examples/select.py | giosali/cues | 09bce776f9275b71a4028e5c59103e45d81ebed6 | [
"MIT"
] | null | null | null | examples/select.py | giosali/cues | 09bce776f9275b71a4028e5c59103e45d81ebed6 | [
"MIT"
] | 1 | 2021-05-26T04:35:47.000Z | 2021-05-26T04:35:47.000Z | """
examples.select
===============
An example that demonstrates the Select child class.
"""
from cues.cues import Select
if __name__ == '__main__':
main()
| 18.173913 | 69 | 0.629187 |
b576d5aece893c6e7258835bd199ea37f39fabca | 6,685 | py | Python | ckanext/satreasury/tests/test_plugin.py | OpenUpSA/ckanext-satreasury | b6e71009ee5fdfe8cc477304b10536b5af614de6 | [
"MIT"
] | 1 | 2019-09-08T08:56:54.000Z | 2019-09-08T08:56:54.000Z | ckanext/satreasury/tests/test_plugin.py | vulekamali/ckanext-satreasury | b6e71009ee5fdfe8cc477304b10536b5af614de6 | [
"MIT"
] | 3 | 2020-03-24T17:05:46.000Z | 2021-02-02T22:01:44.000Z | ckanext/satreasury/tests/test_plugin.py | vulekamali/ckanext-satreasury | b6e71009ee5fdfe8cc477304b10536b5af614de6 | [
"MIT"
] | 1 | 2019-05-30T19:30:22.000Z | 2019-05-30T19:30:22.000Z | import json
import unittest
from functools import partial
import ckan.model as model
import responses
from ckanext.satreasury.plugin import SATreasuryDatasetPlugin
from mock import MagicMock, Mock, PropertyMock, patch
TRAVIS_ENDPOINT = "https://api.travis-ci.org/repo/vulekamali%2Fstatic-budget-portal"
TRAVIS_COMMIT_M... | 43.129032 | 219 | 0.57457 |
b57c5c0aef7e6b76df1071bc270b08f415d805ee | 2,011 | py | Python | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 4 | 2017-08-09T14:05:48.000Z | 2018-12-25T01:34:23.000Z | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 12 | 2017-01-19T23:18:18.000Z | 2018-12-23T18:57:54.000Z | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 2 | 2017-08-08T09:48:20.000Z | 2018-07-09T09:12:43.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Routines to evaluate the system.
"""
import logging
from collections import Counter
from . import db
logger = logging.getLogger(__name__)
def get_exhaustive_samples(corpus_tag):
"""
Use the document_sample table to get which documents have been exhaustively... | 40.22 | 147 | 0.635007 |
b57f76841f0c85c583ef9797290a21bbf823a12e | 2,212 | py | Python | model_metadata/utils.py | csdms/model_metadata | 62acab7ae2a152bec64bc1f52751f7a8aa1d4184 | [
"MIT"
] | 1 | 2021-05-25T14:38:10.000Z | 2021-05-25T14:38:10.000Z | model_metadata/utils.py | csdms/model_metadata | 62acab7ae2a152bec64bc1f52751f7a8aa1d4184 | [
"MIT"
] | 3 | 2018-04-05T21:50:24.000Z | 2021-04-02T03:54:04.000Z | model_metadata/utils.py | csdms/model_metadata | 62acab7ae2a152bec64bc1f52751f7a8aa1d4184 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import sys
from .api import install as install_mmd
def model_data_dir(name, datarootdir=None):
"""Get a model's data dir.
Parameters
----------
name : str
The name of the model.
Returns
-------
str
The absolute path to the data directory ... | 26.97561 | 66 | 0.574593 |
b582e5842d21e445f1825c2debc8042c425aedda | 8,060 | py | Python | solution/serverlist.py | ksh0165/lhms | 8848a74ac5c0f309e3ab28583af4bd574575ab8a | [
"Apache-2.0"
] | null | null | null | solution/serverlist.py | ksh0165/lhms | 8848a74ac5c0f309e3ab28583af4bd574575ab8a | [
"Apache-2.0"
] | null | null | null | solution/serverlist.py | ksh0165/lhms | 8848a74ac5c0f309e3ab28583af4bd574575ab8a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import os
import subprocess
import re
import pymysql
from datetime import datetime
strPath = r"/etc/webmin/servers";# file dir
files = os.listdir(strPath)
lists = [];# file lists
host = [];
user = [];
pwd = [];
val = 0;# extractServer use
test = "";# grep host
test1 = "";# grep user
test2 = "";# gre... | 42.198953 | 150 | 0.458561 |
b58403121af69cb7645522d11585b8ed10c27038 | 579 | py | Python | algorithms/tree_level_width.py | danielhgasparin/algorithms-python | 4b27c3cddd22762599fe55d3b760f388733c4fa7 | [
"MIT"
] | null | null | null | algorithms/tree_level_width.py | danielhgasparin/algorithms-python | 4b27c3cddd22762599fe55d3b760f388733c4fa7 | [
"MIT"
] | null | null | null | algorithms/tree_level_width.py | danielhgasparin/algorithms-python | 4b27c3cddd22762599fe55d3b760f388733c4fa7 | [
"MIT"
] | null | null | null | """Tree level width module."""
from collections import deque
def tree_level_width(tree):
"""Return a list containing the width of each level of the specified tree."""
result = []
count = 0
queue = deque([tree.root, "s"])
while len(queue) > 0:
node = queue.popleft()
if node == "s":
... | 26.318182 | 81 | 0.504318 |
b5843a61298c91586c4a21bf7567496274b5cfe9 | 592 | py | Python | tests/utils/test_bbox.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 1 | 2017-08-27T00:01:27.000Z | 2017-08-27T00:01:27.000Z | tests/utils/test_bbox.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 49 | 2017-08-20T02:09:26.000Z | 2017-12-31T11:58:27.000Z | tests/utils/test_bbox.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 1 | 2017-12-08T08:31:38.000Z | 2017-12-08T08:31:38.000Z | import os
import unittest
import clib
from clib.utils import Box
if __name__ == '__main__':
unittest.main()
| 26.909091 | 64 | 0.646959 |
b586010d4e3392e2a65d444fb3bb7f33c20e15b9 | 67,167 | py | Python | iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py | iriusrisk/iriusrisk-python-client-lib | 4912706cd1e5c0bc555dbc7da02fb64cbeab3b18 | [
"Apache-2.0"
] | null | null | null | iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py | iriusrisk/iriusrisk-python-client-lib | 4912706cd1e5c0bc555dbc7da02fb64cbeab3b18 | [
"Apache-2.0"
] | null | null | null | iriusrisk-python-client-lib/iriusrisk_python_client_lib/api/users_api.py | iriusrisk/iriusrisk-python-client-lib | 4912706cd1e5c0bc555dbc7da02fb64cbeab3b18 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
IriusRisk API
Products API # noqa: E501
OpenAPI spec version: 1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from iriusrisk_py... | 46.322069 | 390 | 0.634448 |
b5888f3a509cecfa1613e21a4254b8b55ec9d01b | 1,246 | py | Python | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | # This file is placed in the Public Domain.
import queue
import threading
from .dpt import Dispatcher
from .obj import Object
from .thr import launch
from .utl import get_exception
| 18.878788 | 43 | 0.544944 |
b58c5490649547fd191436f9730cc2a2c51f3b00 | 3,619 | py | Python | src/utils.py | Flantropy/TelegramChatAnalyzer | 88e879fa771361d47292721ff8adfd82a74e9b93 | [
"MIT"
] | null | null | null | src/utils.py | Flantropy/TelegramChatAnalyzer | 88e879fa771361d47292721ff8adfd82a74e9b93 | [
"MIT"
] | null | null | null | src/utils.py | Flantropy/TelegramChatAnalyzer | 88e879fa771361d47292721ff8adfd82a74e9b93 | [
"MIT"
] | null | null | null | import json
import logging
from io import BytesIO
from typing import List
from typing import Optional
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from telegram import InputMediaPhoto
def _unpack_telegram_document(update) -> dict:
"""
This function retrieves JSONrepresentation o... | 30.411765 | 94 | 0.671733 |
b58c5890c2ea7e046b469064a62ceb8bea1ea212 | 2,215 | py | Python | pyxrd/calculations/improve.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 27 | 2018-06-15T15:28:18.000Z | 2022-03-10T12:23:50.000Z | pyxrd/calculations/improve.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 22 | 2018-06-14T08:29:16.000Z | 2021-07-05T13:33:44.000Z | pyxrd/calculations/improve.py | PyXRD/pyxrd | 26bacdf64f3153fa74b8caa62e219b76d91a55c1 | [
"BSD-2-Clause"
] | 8 | 2019-04-13T13:03:51.000Z | 2021-06-19T09:29:11.000Z | # coding=UTF-8
# ex:ts=4:sw=4:et=on
# Copyright (c) 2013, Mathijs Dumon
# All rights reserved.
# Complete license can be found in the LICENSE file.
from io import StringIO
from scipy.optimize import fmin_l_bfgs_b
from .exceptions import wrap_exceptions
| 27.012195 | 86 | 0.648307 |
b58ccbfff32cc054d600f5f7877ef4514f099933 | 931 | py | Python | enforceTH.py | Multivalence/enforceTypeHint | fb87fd48baa525044516ddbdf2160128e03fb7b7 | [
"MIT"
] | null | null | null | enforceTH.py | Multivalence/enforceTypeHint | fb87fd48baa525044516ddbdf2160128e03fb7b7 | [
"MIT"
] | null | null | null | enforceTH.py | Multivalence/enforceTypeHint | fb87fd48baa525044516ddbdf2160128e03fb7b7 | [
"MIT"
] | 1 | 2020-12-16T18:34:19.000Z | 2020-12-16T18:34:19.000Z | import functools
| 23.275 | 94 | 0.664876 |
b591052db3d50aa3c4ca4b5f6cbba2c5ca1708a6 | 3,239 | py | Python | examples/DataRecording/runDataRecording.py | mumuwoyou/pytrader | 6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a | [
"MIT"
] | 4 | 2019-03-14T05:30:59.000Z | 2021-11-21T20:05:22.000Z | examples/DataRecording/runDataRecording.py | mumuwoyou/pytrader | 6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a | [
"MIT"
] | null | null | null | examples/DataRecording/runDataRecording.py | mumuwoyou/pytrader | 6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a | [
"MIT"
] | 4 | 2019-02-14T14:30:46.000Z | 2021-01-05T09:46:19.000Z | # encoding: UTF-8
from __future__ import print_function
import sys
try:
reload(sys) # Python 2
sys.setdefaultencoding('utf8')
except NameError:
pass # Python 3
import multiprocessing
from time import sleep
from datetime import datetime, time
from cyvn.trader.vtEvent import EVENT_LOG, EVENT_REC... | 26.120968 | 77 | 0.562211 |
b5913a9cb235f8d0707df68f9171ff05c9b0c7aa | 232 | py | Python | 2.4 lcm.py | rahul263-stack/PROJECT-Dump | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | 1 | 2020-04-06T04:41:56.000Z | 2020-04-06T04:41:56.000Z | 2.4 lcm.py | rahul263-stack/quarantine | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | null | null | null | 2.4 lcm.py | rahul263-stack/quarantine | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | null | null | null | # Python3
a, b = [int(i) for i in input().split()]
if a>b:
gcd = euclid_gcd(a, b)
else:
gcd = euclid_gcd(b, a)
print(a*b//gcd) | 14.5 | 40 | 0.534483 |
b59341fea7f0dca1f065a80700c550e7ea708375 | 711 | py | Python | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 132 | 2021-03-12T18:45:19.000Z | 2022-03-28T16:54:33.000Z | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 5 | 2021-03-14T08:41:32.000Z | 2022-01-29T21:58:22.000Z | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 13 | 2021-03-16T13:06:20.000Z | 2021-12-29T11:57:38.000Z | import os
current_dir = os.path.dirname(os.path.realpath(__file__))
import gym
from gym.envs.registration import registry, make, spec
register(id="RandomWalkEnv-v0", entry_point="environments.mocap_envs:RandomWalkEnv")
register(id="TargetEnv-v0", entry_point="environments.mocap_envs:TargetEnv")
register(id="Joysti... | 33.857143 | 84 | 0.773558 |
b59346ae49540ddec35f1665aa5dcc8cc4da2da0 | 471 | py | Python | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 23 | 2015-10-28T14:08:23.000Z | 2021-09-11T21:38:41.000Z | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 4 | 2019-12-05T20:36:10.000Z | 2020-06-05T18:41:54.000Z | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 11 | 2015-10-28T15:49:56.000Z | 2021-09-14T14:18:36.000Z | import datetime
from django.test import TestCase
from libya_elections.utils import at_noon
| 29.4375 | 58 | 0.685775 |
b5934a3e23d4a7debafa86c699f518b3070881a9 | 153 | py | Python | website/website/apps/statistics/urls.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2020-08-17T05:56:16.000Z | 2020-08-17T05:56:16.000Z | website/website/apps/statistics/urls.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 5 | 2020-06-05T17:51:56.000Z | 2022-01-13T00:42:51.000Z | website/website/apps/statistics/urls.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2015-02-23T22:54:00.000Z | 2015-02-23T22:54:00.000Z | from django.conf.urls import url
from website.apps.statistics.views import statistics
urlpatterns = [
url(r'^$', statistics, name="statistics"),
]
| 19.125 | 52 | 0.732026 |
b593abbfc1101fb51b4b3e49fd3161d9712060e7 | 12,779 | py | Python | sitk_rtss_io.py | Auto-segmentation-in-Radiation-Oncology/Chapter-3 | 307330c848c7ddb650353484e18fa9bc7903f737 | [
"BSD-3-Clause"
] | 1 | 2020-06-28T01:57:46.000Z | 2020-06-28T01:57:46.000Z | sitk_rtss_io.py | Auto-segmentation-in-Radiation-Oncology/Chapter-12 | 307330c848c7ddb650353484e18fa9bc7903f737 | [
"BSD-3-Clause"
] | null | null | null | sitk_rtss_io.py | Auto-segmentation-in-Radiation-Oncology/Chapter-12 | 307330c848c7ddb650353484e18fa9bc7903f737 | [
"BSD-3-Clause"
] | 1 | 2021-11-15T21:47:17.000Z | 2021-11-15T21:47:17.000Z | from skimage import measure
import pydicom
from pydicom.dataset import Dataset, FileDataset
from pydicom.sequence import Sequence
import os
import numpy as np
import SimpleITK as sITK
import time
import glob
import sitk_ct_io as imio
from skimage.draw import polygon
# for debugging
# import matplotlib.p... | 44.526132 | 120 | 0.642069 |
b59742af888cb2d88c4cbf6cba219ceb64599613 | 2,364 | py | Python | code/opt_algo/downhillsimplex_untested.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | 1 | 2020-06-13T10:02:02.000Z | 2020-06-13T10:02:02.000Z | code/opt_algo/downhillsimplex_untested.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | code/opt_algo/downhillsimplex_untested.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 14:03:18 2020
@author: Nicolai
"""
import sys
sys.path.append("../differential_evolution")
from JADE import JADE
import numpy as np
import scipy as sc
import testFunctions as tf
def downhillsimplex(population, function, minError, maxFeval):
'''
implementatio... | 26.863636 | 87 | 0.593909 |
b5977a635ec36409ea956827d6f1116885b0d8e3 | 7,030 | py | Python | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | 1 | 2020-08-24T20:05:13.000Z | 2020-08-24T20:05:13.000Z | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | null | null | null | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import pandas as pd
import os
| 32.546296 | 187 | 0.52845 |
b59a516d2e4ba77e47687f54990e9a2e4f955197 | 1,185 | py | Python | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 67 | 2020-06-25T06:50:58.000Z | 2022-03-29T17:15:43.000Z | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 60 | 2020-06-28T22:58:21.000Z | 2022-03-24T01:30:59.000Z | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 9 | 2020-06-25T13:07:39.000Z | 2021-12-01T01:41:24.000Z | """
Geological features
"""
import logging
import numpy as np
logger = logging.getLogger(__name__)
| 27.55814 | 103 | 0.563713 |
b59a84378daec5c068b0ad9a5875001c348356a9 | 2,137 | py | Python | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | from typing import Set
import utils
data = utils.getLinesFromFile("day8.input")
# data = ['be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe','edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc','fgaebd cg bdaec gdafb agbcfd gdcbef bgcad gfac gcb cdg... | 35.616667 | 860 | 0.657932 |
b59a9f26b84db7052d875507a0706016c6d4734b | 108 | py | Python | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | num1 = 5
num2 = 4
max_num = max(num1,num2)
print("Max between {0} and {1} is {2}".format(num1,num2,max_num)) | 27 | 65 | 0.666667 |
b59b156deb529184049dc84975771504d0687be0 | 298 | py | Python | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | null | null | null | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | 1 | 2020-03-07T05:20:36.000Z | 2020-03-07T05:20:36.000Z | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | null | null | null | # ANOVA example from Sokal & Rohlf (fourth ed.), Box 11.1
import numpy as np
from anova import anova_twoway_balanced
consumption = np.array(
[[[709, 679, 699],
[592, 538, 476]],
[[657, 594, 677],
[508, 505, 539]]])
result = anova_twoway_balanced(consumption)
print(result)
| 19.866667 | 57 | 0.651007 |
b59c0e7ce913172c25c6a249bc299d0133408394 | 4,951 | py | Python | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | 2 | 2019-11-29T15:46:14.000Z | 2021-05-28T06:54:41.000Z | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | null | null | null | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | null | null | null | """ Optimizers class """
import torch
import torch.optim as optim
from torch.nn.utils import clip_grad_norm_
import operator
import functools
from copy import copy
from math import sqrt
def noam_decay(step, warmup_steps, model_size):
"""
Learning rate schedule described in
https://arxiv.org/pdf/1706.037... | 31.941935 | 75 | 0.613411 |
b59da18e5dee5065a74262a17b2223e79fa39bac | 3,019 | py | Python | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | import inspect
# class Meta(type):
# def __new__(meta, name, bases, attr):
# """Meta description of class definition"""
# return super(Meta, meta).__new__(meta, name, bases, attr)
# def __init__(cls, name, bases, attr, compound):
# """ Meta intervention on class instantiation """
# return super(Meta, cls... | 26.716814 | 100 | 0.663796 |
b5a053b0143ef5854f560bee76e6b4b427176e12 | 384 | py | Python | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product
from .forms import CreateProductForm
# Improves upon the basic admin page functionality by
# displaying the database as a formatted table
admin.site.register(Product, CreateProductAdmin)
| 25.6 | 55 | 0.796875 |
b5a0cac842fff324e018f25672c1b93817ef376b | 761 | py | Python | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import unittest
from unittest.mock import patch
from keyman_config.gnome_keyboards_util import is_gnome_shell, _reset_gnome_shell
if __name__ == '__main__':
unittest.main()
| 26.241379 | 81 | 0.710907 |
b5a22c7ed55e816b9317d7d3ca45276bbf0eae8f | 4,059 | py | Python | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 1 | 2022-02-04T20:24:35.000Z | 2022-02-04T20:24:35.000Z | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | null | null | null | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | null | null | null | """This contains all of the forms used by the Users application."""
# Django Imports
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth import forms, get_user_model
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth.models import Group
from django.core.e... | 33 | 151 | 0.60951 |
b5a405be96095986ee0bca6128c66be907263013 | 5,119 | py | Python | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | import numpy as np
import scipy.linalg as la
from statsmodels.tsa.api import SimpleExpSmoothing, Holt
"""
@desc: From activity probe, calculate spike patterns
"""
"""
@desc: Calculate cross correlation between spike trains of two neurons
"""
"""
@desc: Filter spike train
@pars: spikeTrain: has N rows (number of neur... | 31.99375 | 116 | 0.66302 |
b5a44828d5483c6c45161cfac8ca00bdef446848 | 102 | py | Python | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | lanche = ('Hamburguer', 'Suco', 'Pizza', 'Pudim')
for c in range(0, len(lanche)):
print(lanche[c]) | 34 | 49 | 0.617647 |
b5a5c87aa9d81229a227e759c198a1d1b4eb7d1c | 43 | py | Python | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | SOAP_HOST = '127.0.0.1'
SOAP_PORT = 8083
| 14.333333 | 24 | 0.651163 |
b5a74044f5f2241591f7f602964eb017fc2ac290 | 6,429 | py | Python | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | from visualize import pprint
| 27.474359 | 63 | 0.492767 |
b5a768c1e95c0cadc94391b379feeeb1bdde832a | 560 | py | Python | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | 10 | 2017-11-23T18:28:11.000Z | 2021-06-10T19:53:06.000Z | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-12-02 20:04
from __future__ import unicode_literals
from django.db import migrations, models
| 26.666667 | 162 | 0.621429 |
b5a8ce20825359ee43189cb3855431dba7b2a76f | 424 | py | Python | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | import unittest
from hamcrest import equal_to, assert_that
from structural.adapter.adapter import InvokerTargetAdapter
from structural.adapter.target import InvokerTarget
| 26.5 | 79 | 0.785377 |
b5aa67663a42b92a7d170586d7626bb2aa4c2ae4 | 350 | py | Python | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 1,571 | 2015-12-09T14:08:47.000Z | 2022-03-30T21:34:36.000Z | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 117 | 2015-10-22T05:59:19.000Z | 2021-09-17T00:14:38.000Z | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 452 | 2015-10-21T23:00:58.000Z | 2022-03-18T21:16:50.000Z | import re
# "degree CS":
print reverse_str(" CS degree")
print reverse_str("CS degree")
print reverse_str("CS degree ")
print reverse_str(" CS degree")
| 23.333333 | 61 | 0.614286 |
b5aa825a7935ba4d77fce082856c1d3665daa828 | 36 | py | Python | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | null | null | null | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | null | null | null | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | 1 | 2020-09-26T17:14:51.000Z | 2020-09-26T17:14:51.000Z | """Unit test package for Design."""
| 18 | 35 | 0.666667 |
b5ab0cc6d56f4bb448790870183992c30226988d | 405 | py | Python | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | null | null | null | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 12 | 2019-02-03T07:54:32.000Z | 2022-03-11T23:33:19.000Z | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 2 | 2018-12-28T11:38:17.000Z | 2019-09-11T22:45:04.000Z | # Generated by Django 2.1.3 on 2019-05-05 07:38
from django.db import migrations, models
| 21.315789 | 75 | 0.604938 |
b5ad8a76a11325ddca7cdc3828c5aa0284e06719 | 1,926 | py | Python | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | from ..annotation.attribute import Attribute
from ..annotation.relation import Relation
from .knowledge_graph_edge import KnowledgeGraphEdge
from ontology_learning.utils.hash import get_hash | 30.571429 | 97 | 0.731568 |
b5af94b7bf661eb528749316c8d0360da97313c8 | 1,023 | py | Python | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | from neopixel import Color
import time
| 26.230769 | 72 | 0.507331 |
b5b10a9848f882ce50edffdefcb5be881ccbdc3f | 347 | py | Python | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | '''Problem 29 from project Euler: Distinct powers
https://projecteuler.net/problem=29'''
RESULT = 9183
def solve():
'''Main function'''
vals = set()
limit = 100
for i in xrange(2, limit + 1):
for j in xrange(2, limit + 1):
vals.add(i**j)
return len(vals)
if __name__ == '__... | 16.52381 | 49 | 0.579251 |
b5b23767bc452d1d161330f945974af76c7faa29 | 3,337 | py | Python | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | 4 | 2022-03-07T07:27:04.000Z | 2022-03-29T05:59:57.000Z | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | null | null | null | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | 3 | 2022-03-05T15:24:51.000Z | 2022-03-14T08:48:05.000Z | import asyncio
from pyrogram.raw import functions
from pyrogram.types import Message
from tronx import app, gen
app.CMD_HELP.update(
{"group" : (
"group",
{
"bgroup [group name]" : "Creates a basic group.",
"sgroup [group name]" : "Creates a super group.",
"unread" : "Mark a chat as unread in your tele... | 26.275591 | 145 | 0.66407 |
b5b452ab3b7a17e033f9002b103343c10716d627 | 27 | py | Python | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 121 | 2015-03-26T15:40:37.000Z | 2021-10-10T14:19:06.000Z | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 53 | 2015-06-01T23:44:58.000Z | 2020-12-14T15:40:47.000Z | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 24 | 2015-06-01T19:30:21.000Z | 2021-08-13T19:47:41.000Z | """Affine tests package"""
| 13.5 | 26 | 0.666667 |
b5b4862f7fdb7c41318549c096be4b0001eba966 | 109,366 | py | Python | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:02:15.000Z | 2021-07-15T01:02:15.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:11:26.000Z | 2021-09-24T01:06:45.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | null | null | null | from IPython.display import display, HTML
import time
import math
import re
import sys
import inspect
"""
Original Created at: 23rd October 2018
by: Tolga Atam
v2.1.0 Updated at: 15th March 2021
by: Tolga Atam
Module for drawing classic Turtle figures on Google Colab notebooks.
It uses html capabilit... | 44.206144 | 1,897 | 0.586517 |
b5b4a7c2bcf95fde6a181a23d3adc5de69780240 | 5,152 | py | Python | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | 1 | 2021-11-04T09:19:14.000Z | 2021-11-04T09:19:14.000Z | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | null | null | null | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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, ... | 38.162963 | 103 | 0.606366 |
b5b4c824ddba4f2d18052e43c4be91b69f16e79d | 5,997 | py | Python | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | 3 | 2022-01-18T01:11:21.000Z | 2022-01-25T01:04:42.000Z | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | null | null | null | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | null | null | null | from ctypes import Structure, sizeof, c_int, c_int32, c_float, c_wchar
# Credits
# https://github.com/dabde/acc_shared_mem_access_python
# https://github.com/rrennoir/PyAccSharedMemory
| 32.416216 | 70 | 0.516925 |
b5b4c9c1dbb3216905a27aa4ce2edea78394a9e2 | 2,554 | py | Python | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
import script_util as su
import pandas as pd
import numpy as np
import argparse
if __name__=="__main__":
parser = argparse.ArgumentParser()
parser.add_argument("design")
parser.add_argument("pA", type=float)
parser.add_argument("pB", type=float)
parser.add_arg... | 27.462366 | 82 | 0.583399 |
b5b5bab4def1ed3509dd85a680dfad03dc1b2fa0 | 5,466 | py | Python | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | """
Minimax algorithm with alpha-beta pruning applied to the Connect 4 game.
Inspired by https://youtu.be/l-hh51ncgDI
"""
import os
import copy
import math
def minimax(game, depth, maximize, alpha=None, beta=None):
"""Minimax algorithm, using (optionally) alpha-beta pruning."""
if depth == 0:
# Max... | 32.730539 | 89 | 0.612697 |
b5b7e6c47eafcf7703a0e022d44052d760708267 | 2,346 | py | Python | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 23 | 2015-08-25T19:40:18.000Z | 2020-12-27T09:23:06.000Z | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | null | null | null | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 8 | 2016-05-18T20:13:06.000Z | 2020-11-03T16:09:50.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--group")
args = parser.parse_args()
import yaml
import numpy as np
from lfd import registration, tps
import os.path as osp
tps.VERBOSE=False
np.seterr(all='raise')
np.set_printoptions(precision=3)
with open("ground_truth.yaml","r") as fh:
... | 36.092308 | 130 | 0.617221 |
b5b832c7207c148b4f89c1e17e84f452793c1e36 | 3,397 | py | Python | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 42 | 2020-12-11T09:21:10.000Z | 2022-02-20T01:44:32.000Z | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 2 | 2020-12-15T14:40:33.000Z | 2021-08-02T07:04:42.000Z | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 5 | 2020-12-13T16:03:03.000Z | 2021-08-09T14:18:37.000Z | from argparse import ArgumentParser
from pathlib import Path
import pickle
import os
from tqdm import tqdm
from tokenizers import Tokenizer
from tokenizers.processors import RobertaProcessing
from transformers import AutoTokenizer
if __name__ == '__main__':
main()
| 30.603604 | 79 | 0.578746 |
b5b8963f6516bffc7a6999cc9be33b3103b93631 | 1,175 | py | Python | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | 7 | 2021-03-19T10:46:09.000Z | 2022-03-12T00:28:55.000Z | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | from channels.generic.websocket import WebsocketConsumer
import json
from asgiref.sync import async_to_sync
| 43.518519 | 199 | 0.685106 |
a9085ff8566d990dfd43c879277cd4b73db4ecb9 | 185 | py | Python | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | 1 | 2021-12-21T21:46:31.000Z | 2021-12-21T21:46:31.000Z | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | null | null | null | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | null | null | null | co = float(input('Comprimento do cateto oposto: '))
ca = float(input('Comprimento do cateto adjacente: '))
hy = ((co**2 + ca**2) ** (1/2))
print('A hipotenusa mede {:.2f}'.format(hy))
| 30.833333 | 54 | 0.632432 |
a90935ea9eaeec17fd69395a2c757ba3a6870196 | 45 | py | Python | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 17 | 2016-08-12T13:15:43.000Z | 2021-03-22T13:35:33.000Z | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | null | null | null | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 13 | 2016-08-12T13:31:47.000Z | 2021-01-28T11:06:48.000Z | array = [1,2,3]
for v in array:
print(v)
| 11.25 | 15 | 0.555556 |
a909774bf8b8ead0a6b26b707982f6f0737bb165 | 1,479 | py | Python | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | 21 | 2015-05-30T16:17:02.000Z | 2015-07-29T17:30:12.000Z | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
import time
from animations.abstractanimation import AbstractAnimation
from animations.noanimation.noanimation import MultiLineNoAnimation
| 36.073171 | 70 | 0.676133 |
a90997632623c70526b57f88d63354bc898f0759 | 5,056 | py | Python | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | 1 | 2020-10-05T21:44:18.000Z | 2020-10-05T21:44:18.000Z | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | """Viewsets for the 'healthchecks' app"""
# Built-in
import logging
from enum import Enum
from functools import wraps
from secrets import token_urlsafe
# Django
from django.core.cache import cache
from django.core.exceptions import FieldError, ImproperlyConfigured, ObjectDoesNotExist
from django.db import connection
... | 36.114286 | 87 | 0.625791 |
a90a3b893c4a5282243641ddfdb4b678a42dfab0 | 595 | py | Python | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null |
send_message_to_slack('Deployment has been completed.... ')
| 31.315789 | 114 | 0.608403 |
a90a5cf5add76b19b473f9f00bc495423c4006b7 | 2,418 | py | Python | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | null | null | null | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | 4 | 2020-08-02T23:50:50.000Z | 2020-08-29T02:19:34.000Z | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | null | null | null | from typing import Any, TypeVar, Generic, Callable, List
import numpy as np
import torch
TWord = TypeVar('TWord')
TIdx = TypeVar('TIdx')
| 26.282609 | 79 | 0.61828 |
a90b6c7a5acda4657cfa1d865f79e1eaf7650120 | 1,701 | py | Python | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | null | null | null | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 93 | 2020-05-19T18:14:12.000Z | 2022-03-29T00:26:39.000Z | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 1 | 2020-11-21T20:24:35.000Z | 2020-11-21T20:24:35.000Z | # Generated by Django 3.0.6 on 2020-05-09 11:51
import django.contrib.postgres.fields
from django.db import migrations, models
import apps.attachment.models.attachment
| 53.15625 | 439 | 0.661376 |
a90c404f04036069bd2082d181651a2189166074 | 2,788 | py | Python | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 12 | 2018-08-02T13:40:22.000Z | 2022-03-01T09:08:32.000Z | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | null | null | null | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 1 | 2020-10-24T13:11:13.000Z | 2020-10-24T13:11:13.000Z | import math
import os
import time
from unittest import TestCase
import mock
from tests.StubTimer import StubTimer
from tests.StubUTime import StubUTime
| 36.684211 | 126 | 0.694763 |
a90d8ca252bf2267c50c432c7ac883793403748f | 7,085 | py | Python | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import sys
import Pycluster as pc
from pylab import *
from collections import defaultdict
colors = ('green',
'blue',
'orange',
'cyan',
'magenta',
'red',
'yellow',
'pink',
'purple',
'brown')
def main():
"""docstring fo... | 27.784314 | 73 | 0.500494 |
a9110b5c0117f2af8467c6b63060a19e830d3f66 | 3,381 | py | Python | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | """A modified image folder class
We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py)
so that this class can load images from both current directory and its subdirectories.
"""
import torch.utils.data as data
from PIL import Image
import nibabel a... | 31.305556 | 122 | 0.631174 |
a91339cbacf313c26ddda2e22c112331ab363a81 | 448 | py | Python | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | 1 | 2021-01-03T01:54:23.000Z | 2021-01-03T01:54:23.000Z | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from powrap import powrap
FIXTURE_DIR = Path(__file__).resolve().parent
| 24.888889 | 72 | 0.734375 |
a916d3cf1a3dfecb0957b149dfe4924022d506c7 | 472 | py | Python | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of cryptidy module
"""
The cryptidy module wraps PyCrpytodome(x) functions into simple
symmetric and asymmetric functions
"""
__intname__ = "cryptidy"
__author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2018-2021 Orsiris de Jong"
__descri... | 24.842105 | 83 | 0.739407 |
a9183d49bf73710dff21d0bf9ba6860835767866 | 5,323 | pyw | Python | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | 1 | 2019-04-13T14:47:06.000Z | 2019-04-14T13:22:31.000Z | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | import praw
import ctypes
import shutil
import requests
import requests_cache
from PIL import Image
import os
import io
requests_cache.install_cache('bg_cache')
filepath = "reddit.creds.txt"
with open(filepath, "r") as fin:
client_id = fin.readline().replace("\n", "")
# TODO: update code to accept... | 42.927419 | 115 | 0.507233 |
a91c4d71080e49a5432f9894381a21354fd82539 | 6,450 | py | Python | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | import json
import faiss
import pickle
import os
import tqdm
import numpy as np
import argparse
import time
from functools import wraps
parser = argparse.ArgumentParser()
parser.add_argument('--d', type=int, default=768, help='dimension size')
parser.add_argument('--buffer_size', type=int, default=50000)
parser.add_ar... | 36.647727 | 106 | 0.666667 |
a91cd484fb7ee6f69e7e02fdf7a857174e746328 | 295 | py | Python | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | #Unzip Tuples
#Unzip the cast tuple into two names and heights tuples.
cast = (("Barney", 72), ("Robin", 68), ("Ted", 72), ("Lily", 66), ("Marshall", 76))
# define names and heights here
names, heights = zip(*cast) # unzips cast into two tuples(names and heights)
print(names)
print(heights)
| 26.818182 | 83 | 0.677966 |
a9243210b5050d1609507b8edecbe58a2ea18c39 | 2,243 | py | Python | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 126 | 2015-03-24T17:37:33.000Z | 2022-03-29T18:37:39.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 1,815 | 2015-03-16T21:01:30.000Z | 2019-09-09T18:47:29.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 69 | 2015-03-27T23:44:26.000Z | 2021-02-14T09:45:28.000Z | import djclick as click
from django.contrib.auth.models import User, Group
from django.db import transaction
from django.core.management.base import CommandError
| 31.591549 | 78 | 0.623718 |
a92832dc73ab475a159970bd2c9e45e28feec5c7 | 544 | py | Python | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | import configargparse | 27.2 | 50 | 0.582721 |
a92ab375e3c0927ad6ddd2ae99cba78e73a59cc7 | 3,767 | py | Python | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | from typing import List
import numpy as np
from mmhuman3d.utils.path_utils import (
Existence,
check_path_existence,
check_path_suffix,
)
from .human_data import HumanData
| 35.205607 | 78 | 0.609238 |
a92aefa88c9e1677341b516fd325e4f5ca942f90 | 10,174 | py | Python | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | from typing import List
import math
import configargparse
import numpy as np
import sqlalchemy
import yaml
import sys
import tqdm
from IPython import embed
from celery import group
from angular_solver import solve, bulk_solve
from database import Config, ConfigHolder, Graph, Task, TaskJobs, get_session
from solver im... | 47.32093 | 169 | 0.650285 |
a92c71e28235d4a2efca0061d489e377536349be | 322 | py | Python | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 512 | 2019-11-28T08:39:23.000Z | 2022-03-31T01:49:27.000Z | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 177 | 2019-12-03T17:50:21.000Z | 2022-03-17T11:58:01.000Z | distrib/kotlin_kernel/detect_jars_location.py | erokhins/kotlin-jupyter | 895528926ab14f0f2d15fcbc8a88b0ea1259632a | [
"Apache-2.0"
] | 66 | 2019-12-21T20:35:53.000Z | 2022-02-14T21:34:25.000Z | import os
from typing import AnyStr
from run_kotlin_kernel.run_kernel import module_install_path
if __name__ == "__main__":
detect_jars_location()
| 21.466667 | 60 | 0.757764 |
a92d996e996a1ad325d7ff8b5ebcfa9511fd291d | 78 | py | Python | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 7 | 2020-04-18T01:31:26.000Z | 2021-12-23T13:58:55.000Z | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 1 | 2020-11-17T03:39:21.000Z | 2021-05-06T04:09:24.000Z | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 4 | 2020-03-20T01:38:55.000Z | 2021-09-14T03:50:44.000Z | from .value_function import NNVFunction, NNQFunction, NNDiscriminatorFunction
| 39 | 77 | 0.884615 |
a92f10539fc879fc6144252e415f0ed5e662c25e | 7,679 | py | Python | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 8 | 2019-11-13T22:26:45.000Z | 2022-03-23T15:30:37.000Z | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | null | null | null | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-08-10T18:22:04.000Z | 2021-08-30T23:16:27.000Z | """Generic room model"""
import argparse
import os
from frads import radgeom
from frads import radutil, util
def make_room(dimension: dict):
"""Make a side-lit shoebox room as a Room object."""
theroom = Room(float(dimension['width']),
float(dimension['depth']),
float(d... | 42.192308 | 90 | 0.594218 |
a92f6dae240175ed04d97420af8139933f7227f7 | 83 | py | Python | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
| 13.833333 | 33 | 0.73494 |
a9303881f52bbb7f52abc64facc0144ae2221c86 | 2,073 | py | Python | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 66 | 2017-07-25T04:02:59.000Z | 2022-02-24T21:15:10.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 6 | 2017-09-04T18:05:54.000Z | 2020-11-19T22:32:43.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 23 | 2017-08-28T18:18:14.000Z | 2021-11-13T06:41:52.000Z | """
python test.py my-api-key
"""
import ondemand
import sys
od = ondemand.OnDemandClient(api_key=sys.argv[1])
od.debug = True
# Get that Crypto
resp = od.crypto('^BTCUSD,^LTCUSD')
print('')
print(resp)
print('')
# Get a Quote
resp = od.quote('AAPL', 'bid,ask')
print('')
print(resp)
print('')
... | 20.939394 | 72 | 0.639653 |
a93139d8990a5f884a5f91950142a530d39d5797 | 170 | py | Python | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import CorrectivProvider
urlpatterns = default_urlpatterns(CorrectivProvider)
| 34 | 75 | 0.882353 |
a931b52e06e6999322f4b50a1f8d242014570def | 198 | py | Python | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | 1 | 2019-11-17T03:03:04.000Z | 2019-11-17T03:03:04.000Z | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | import random
| 18 | 41 | 0.590909 |
a931b982d8994d2cd901db4713baba148c9468eb | 10,825 | py | Python | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 9 | 2019-11-03T10:15:06.000Z | 2022-02-26T06:16:10.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 2 | 2020-07-08T18:23:02.000Z | 2022-01-17T17:31:18.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 5 | 2020-07-06T16:28:15.000Z | 2022-02-22T00:51:48.000Z | import os
import requests
from requests.auth import HTTPBasicAuth
from ..integration.os.process import Command
from ..integration.os.utils import chdir
| 33.410494 | 119 | 0.584388 |
a934ac7175537d5e0f644f854f7833119ee2a065 | 4,697 | py | Python | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-08-05 19:55
from django.db import migrations, models
| 59.455696 | 255 | 0.613157 |
a935dc2fa82547bf6d3850ba747641cf2ca1a91f | 908,364 | py | Python | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | 6 | 2015-11-13T22:13:24.000Z | 2021-03-25T01:30:01.000Z | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | null | null | null | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | 5 | 2016-02-28T22:11:05.000Z | 2020-07-31T02:06:11.000Z | #Found stateFile, trying to restore the crawler state.
dictSet_0 = [('das', u'Bearbeiten', u'editing a document'), ('der', u'Politiker', u'politician; centrist'), ('der', u'Januar', u'January'), ('der', u'August', u'August'), ('der', u'Komponist', u'composer'), ('der', u'Mai', u'May'), ('die', u'T\xfcrkei', u'T\xfcrk... | 5,937.019608 | 7,698 | 0.675164 |
a93610cab32e285ce4c6a541e3cc023ff8fe9e1f | 25,186 | py | Python | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | 1 | 2021-10-04T19:56:25.000Z | 2021-10-04T19:56:25.000Z | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter.ttk import *
from frontend.gui.widgets import ToggleFrame
from frontend.mod.automaton import *
from frontend.mod.constants import *
from frontend.mod.hyir import *
from frontend.mod.session import Session
| 31.017241 | 92 | 0.581077 |
a9363e554d610fb201aa75a84231ad4a9b284d4a | 749 | py | Python | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | 1 | 2021-10-01T09:59:22.000Z | 2021-10-01T09:59:22.000Z | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | """In this code we wanna plot real-time data."""
# import random
from itertools import count
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
plt.style.use('fivethirtyeight')
x_vals = []
y_vals = []
index = count()
def animate(i):
"""Plot the gr... | 20.805556 | 59 | 0.635514 |
a937efbd3e11f0b5981cad6ed7badf54a6c3173d | 10,688 | py | Python | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | 1 | 2020-03-12T04:27:26.000Z | 2020-03-12T04:27:26.000Z | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import os, sys, re
import logging as L
import shutil
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from pprint import pformat, pprint
DRY_RUN = []
TALLIES = dict( runs = 0,
fastqdirs = 0 )
# Could import this from hesiod/__init__.py but I don't want the deps... | 37.900709 | 96 | 0.625561 |
a9386e5cb5a9cdff5dcde3ebc831677dfecb0b4f | 1,478 | py | Python | run.py | pacyu/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-03-01T09:24:57.000Z | 2020-10-14T07:52:22.000Z | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | null | null | null | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-02-28T14:57:25.000Z | 2020-10-14T07:59:34.000Z | import audio_visual
import argparse
import sys
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='Audio visualization', conflict_handler='resolve')
parser.add_argument('-e', '--effect',
help='visualization effect: 1d or 2d or 3d')
parser.add_argument('-f', '--filenam... | 38.894737 | 101 | 0.56157 |
a9396c4b2a5db6f805687ea1be44d44fa3d0fd9d | 1,091 | py | Python | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | 5 | 2020-06-06T01:01:48.000Z | 2021-09-22T18:16:22.000Z | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | import logging
from celery import shared_task
from .models import Feed
| 28.710526 | 94 | 0.590284 |
a93a4d9b6bed301ebae7d372b616b0296d0f4625 | 6,816 | py | Python | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 6 | 2021-03-18T19:27:03.000Z | 2021-09-10T10:26:15.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 3 | 2021-04-06T07:30:40.000Z | 2021-04-29T17:00:29.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 4 | 2021-04-02T10:08:15.000Z | 2021-11-16T01:26:28.000Z | ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: tetration_application_query
short_description: Search the application api for scope id's or details
version_added: '2.9'
description:
- "Search the Application API by ... | 30.841629 | 120 | 0.657424 |
a93c706774e1f4d0d457d316c78682d027154d47 | 3,831 | py | Python | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 15 | 2015-09-13T14:40:48.000Z | 2021-04-29T15:21:13.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 9 | 2015-09-07T07:57:20.000Z | 2020-12-14T07:11:59.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 10 | 2015-09-07T07:56:09.000Z | 2020-05-22T12:43:21.000Z | import datetime
import json
import os
import random
import re
import string
import unittest
from mock import patch, Mock
from six import string_types
import payjp
NOW = datetime.datetime.now()
DUMMY_CARD = {
'number': '4242424242424242',
'exp_month': NOW.month,
'exp_year': NOW.year + 4
}
DUMMY_CHARGE ... | 25.711409 | 106 | 0.640825 |
a93f9ae56030b3bb1d933321fd043f4b7c020edb | 2,473 | py | Python | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | lvancrayelynghe/dotfiles | 6cbf95368f18d26adc3520b4223157a0ed6acebc | [
"MIT"
] | 17 | 2019-03-25T23:43:40.000Z | 2022-03-08T17:56:06.000Z | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | null | null | null | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | 6 | 2019-03-20T18:17:22.000Z | 2020-12-11T04:38:22.000Z | import sublime
import sublime_plugin
import subprocess
import re
import time
import threading
| 34.830986 | 109 | 0.608573 |
a9413ba0562d76a3686a4648b8027621dd78c41b | 2,736 | py | Python | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : EXP
# -----------------------------------------------
import os
import re
import numbers
def _parse_dict(conf_dict) :
'''
:param conf_dict:
:return:
'''
result_dict = {}
for key, val in conf_dict.items() :
if isinstance... | 23.186441 | 83 | 0.50402 |
a9420e4c78acda83f196da1eaae00337d68d7f90 | 132 | py | Python | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null |
from .extension import MKAutoDocExtension, makeExtension
__version__ = "0.1.0"
__all__ = ["MKAutoDocExtension", "makeExtension"]
| 18.857143 | 56 | 0.772727 |