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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00c004e3df93f878ec9ce6f08213502410bf4836 | 12,588 | py | Python | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | 1 | 2021-02-17T22:32:48.000Z | 2021-02-17T22:32:48.000Z | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | null | null | null | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | null | null | null | from eufySecurityApi.const import (
TWO_FACTOR_AUTH_METHODS, API_BASE_URL, API_HEADERS, RESPONSE_ERROR_CODE,
ENDPOINT_LOGIN,ENDPOINT_DEVICE_LIST, DEVICE_TYPE, ENDPOINT_STATION_LIST, ENDPOINT_REQUEST_VERIFY_CODE,
ENDPOINT_TRUST_DEVICE_LIST, ENDPOINT_TRUST_DEVICE_ADD
)
import logging, json, copy, functools,... | 48.045802 | 158 | 0.622418 |
00c203f198873d9000f664434964603c2fa22d2f | 4,595 | py | Python | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 25 | 2019-05-30T21:13:58.000Z | 2022-01-25T09:52:55.000Z | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 2 | 2020-01-30T20:32:15.000Z | 2020-02-21T20:20:57.000Z | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 11 | 2019-05-15T17:10:01.000Z | 2021-02-10T18:07:54.000Z | # Copyright 2017 Sidewalk Labs | https://www.apache.org/licenses/LICENSE-2.0
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import mock
from mock import Mock
import unittest
import pandas as pd
import numpy as np
from doppelganger import Accuracy
from doppelganger.accuracy... | 37.357724 | 100 | 0.515996 |
00c22c75141de861b8fbd50f7ca02d4edecc1385 | 5,578 | py | Python | Competitive Programming/Design Patterns/Behavioural/Visitor.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/Design Patterns/Behavioural/Visitor.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/Design Patterns/Behavioural/Visitor.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | """ Visitor Method is a Behavioral Design Pattern which allows us to separate the algorithm from an object structure on which it operates. It helps us to add new features to an existing class hierarchy dynamically without changing it. All the behavioral patterns proved as the best methods to handle the communication be... | 40.715328 | 437 | 0.778415 |
00c2bdd91433b93ef86d3b37bbd4f2a3a9658c1c | 8,683 | py | Python | orgpy/core.py | cwatson/orgpy | 017b4ad98d125781803ce97a49d6900eae1a4846 | [
"Apache-2.0"
] | null | null | null | orgpy/core.py | cwatson/orgpy | 017b4ad98d125781803ce97a49d6900eae1a4846 | [
"Apache-2.0"
] | null | null | null | orgpy/core.py | cwatson/orgpy | 017b4ad98d125781803ce97a49d6900eae1a4846 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import re, os, copy
from datetime import datetime
from . import const
from . import utils
__all__ = ['Orgfile', 'orgFromFile']
#===============================================================================
# Main class definition for entire org file
#==========================... | 38.93722 | 109 | 0.528158 |
00c5eb269fea4254ff8e08f38dc39aedd8dfb3e9 | 1,868 | py | Python | tools/embeds.py | OneFoggyScreen/Amicable-Bot | 9900877cc6e0cf1d2a512366264b278a156f0c78 | [
"MIT"
] | 1 | 2021-02-12T02:42:15.000Z | 2021-02-12T02:42:15.000Z | tools/embeds.py | OneFoggyScreen/Amicable-Bot | 9900877cc6e0cf1d2a512366264b278a156f0c78 | [
"MIT"
] | null | null | null | tools/embeds.py | OneFoggyScreen/Amicable-Bot | 9900877cc6e0cf1d2a512366264b278a156f0c78 | [
"MIT"
] | null | null | null | #Makes embeds easy to use and with none of the clutter.
#--------- Libaries ---------#
import discord, sys
sys.path.append("../")
from settings import *
#--------- Code ---------#
def baseEmbed(Title, ImageURL, EmbedColor=Default_Color, FooterText=Name, FooterIconURL=BotImage):
""" A basic embed that has a nam... | 53.371429 | 153 | 0.722698 |
00c6e13170e64460aa3e7594fd35d9a9f26fb186 | 11,195 | py | Python | tests/library/test_ceph_ec_profile.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 1,570 | 2015-01-03T08:38:22.000Z | 2022-03-31T09:24:37.000Z | tests/library/test_ceph_ec_profile.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 4,964 | 2015-01-05T10:41:44.000Z | 2022-03-31T07:59:49.000Z | tests/library/test_ceph_ec_profile.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 1,231 | 2015-01-04T11:48:16.000Z | 2022-03-31T12:15:28.000Z | from mock.mock import MagicMock, patch
import ca_test_common
import ceph_ec_profile
import pytest
| 48.04721 | 264 | 0.496472 |
00c77972f828a4eaba5156777d6d5f0bfdf8f57c | 8,038 | py | Python | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | import argparse
import logging
import warnings
from concurrent.futures import ThreadPoolExecutor
import numpy as np
from lithops import Storage
from lithops.storage.utils import CloudObject
from sm.engine.annotation.diagnostics import (
DiagnosticType,
extract_dataset_diagnostics,
add_diagnostics,
del... | 39.596059 | 99 | 0.652152 |
00c926c130f69bc16bafa916d0ec7a727b57af9c | 3,279 | py | Python | agentpycell/__init__.py | kjph/py-agentmdl | 3ea4dc483ccc689f172de408de9de55f723349a3 | [
"MIT"
] | null | null | null | agentpycell/__init__.py | kjph/py-agentmdl | 3ea4dc483ccc689f172de408de9de55f723349a3 | [
"MIT"
] | null | null | null | agentpycell/__init__.py | kjph/py-agentmdl | 3ea4dc483ccc689f172de408de9de55f723349a3 | [
"MIT"
] | null | null | null | """ ABM: Agent Based Modelling
The base class Cell provides one method update() that will be called
on every tick.
Ticks are generated by Grids - a collection of Cell object
"""
import abc
import copy
from . import utils
def get_neighbours(self, r, c):
""" Returns the subset that surrounds point (r,c).... | 30.64486 | 80 | 0.593169 |
00c951149e26bfb25258146a4daa0d6d4a19ac04 | 207 | py | Python | parser/team23/instruccion/expresion_validacion.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team23/instruccion/expresion_validacion.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team23/instruccion/expresion_validacion.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from abstract.instruccion import *
from tools.tabla_tipos import * | 34.5 | 60 | 0.763285 |
00ca1e7787a82b32835a968f49e6305b0b5f4e86 | 2,688 | py | Python | aioconsul/client/client.py | johnnoone/aioconsul | 02f7a529d7dc2e49bed942111067aa5faf320e90 | [
"BSD-3-Clause"
] | 7 | 2015-03-17T18:29:14.000Z | 2020-01-03T06:45:43.000Z | aioconsul/client/client.py | johnnoone/aioconsul | 02f7a529d7dc2e49bed942111067aa5faf320e90 | [
"BSD-3-Clause"
] | 1 | 2015-06-04T03:06:46.000Z | 2015-06-04T03:06:46.000Z | aioconsul/client/client.py | johnnoone/aioconsul | 02f7a529d7dc2e49bed942111067aa5faf320e90 | [
"BSD-3-Clause"
] | 2 | 2015-06-03T16:53:11.000Z | 2021-12-16T13:38:23.000Z | from aioconsul.api import API
from aioconsul.common import cached_property
from .acl_endpoint import ACLEndpoint
from .agent_endpoint import AgentEndpoint
from .catalog_endpoint import CatalogEndpoint
from .checks_endpoint import ChecksEndpoint
from .coordinate_endpoint import CoordinateEndpoint
from .event_endpoint im... | 23.787611 | 76 | 0.683408 |
00ca91da745c632cc521c76e550462f23371dbf5 | 733 | py | Python | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | import colorama
colorama.init() | 26.178571 | 79 | 0.608458 |
00cb7f50c7dd6da029e4eff65652d1030d53d5ce | 5,227 | py | Python | commandServer.py | caiorss/vboxcontrol | 02fb84effb9e07ee66499a768622e495b79e90a9 | [
"Unlicense"
] | null | null | null | commandServer.py | caiorss/vboxcontrol | 02fb84effb9e07ee66499a768622e495b79e90a9 | [
"Unlicense"
] | null | null | null | commandServer.py | caiorss/vboxcontrol | 02fb84effb9e07ee66499a768622e495b79e90a9 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from subprocess import PIPE, Popen
import platform
import os
import sys
import re
import zlib
from socket import socket
from socket import AF_INET, SOCK_STREAM, SHUT_RDWR
from socket import SOL_SOCKET, SO_REUSEADDR
localhost = '127.0.0.1'
allhosts = '0.0.0.0'
... | 24.890476 | 94 | 0.515783 |
00cbf5b142a833fac446bd82a1109ad6d28c184a | 888 | py | Python | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | from os import environ
from maga.maga_plugin_service import MagaPluginService
from common.plugin_model_api import api, PluginModelAPI, PluginModelListAPI, PluginModelTrainAPI, \
PluginModelInferenceAPI, app, PluginModelParameterAPI
multivarite = MagaPluginService()
api.add_resource(PluginModelListAPI(multivarite... | 49.333333 | 101 | 0.801802 |
00cbfa16839c500b9eb995200206a0b3bc8f7b5b | 5,766 | py | Python | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | null | null | null | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | 6 | 2022-03-25T13:24:04.000Z | 2022-03-29T13:24:36.000Z | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- mode: python; coding: utf-8 -*-
from typing import List, Dict, Optional, Generator, Tuple
import collections
from jf import command
from jf import git
from jf import schema
SEPARATOR = schema.SEPARATOR
def reset(self, name: str, value: str) -> None:
command.run(['git'... | 34.321429 | 80 | 0.653833 |
00ccc3e05c2f8c10d5fcb5b0ce3e5aab48ee4131 | 3,005 | py | Python | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from Utils import *
if __name__ == "__main__":
# Your code here!
limit = 674
digits = 5
nj = NumberJuggler(limit)
pl = nj.primeList
ps = set(pl)
indexLimit = len(pl)
foundMinimum = digits * limit
foundGroup = None
indices = list(range(digits))
i = ... | 29.752475 | 86 | 0.541764 |
00ce017e64b311a8af155a0d7cd8fdd51f298861 | 1,954 | py | Python | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
from collections import OrderedDict
import glob
import json
import os
import os.path
import subprocess
import lib
argv = lib.cli_config()
if len(argv) > 1:
extension = argv[1]
else:
extension = None
if extension == 'mediawiki':
packages = [os.path.join(lib.MEDIAWIKI_DIR, 'package... | 31.015873 | 76 | 0.614637 |
00cf0d4b8c3b5d362e932a9c1aef4cf5350b79f9 | 4,821 | py | Python | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 8 | 2020-03-17T09:15:28.000Z | 2022-01-29T19:50:45.000Z | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-06-02T00:26:58.000Z | 2021-06-02T00:26:58.000Z | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-11-22T16:10:27.000Z | 2021-11-22T16:10:27.000Z | #!/path/to/interpreter
"""
PUT Call Integration Test
"""
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
import base64
import allure
import unittest
from flask import json
from api.cars_app import app
| 31.717105 | 77 | 0.607758 |
00cf8aae92b1dc888c5056333687fc326d0907ae | 356 | py | Python | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 37 | 2020-04-08T01:06:30.000Z | 2022-03-29T02:04:10.000Z | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 5 | 2020-06-12T03:38:06.000Z | 2022-03-15T08:54:09.000Z | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 22 | 2020-04-21T22:20:33.000Z | 2022-03-22T08:55:20.000Z | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from robots import getAllowedAgents
if __name__ == '__main__':
test_uas() | 32.363636 | 110 | 0.69382 |
00cfe0d27bc976505ef7a9527b8a821fce771c1d | 150 | py | Python | lib/JumpScale/baselib/watchdog/manager/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/baselib/watchdog/manager/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/baselib/watchdog/manager/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
from .WatchdogFactory import *
j.base.loader.makeAvailable(j, 'tools.watchdog')
j.tools.watchdog.manager=WatchdogFactory()
| 18.75 | 48 | 0.793333 |
00d0550f561d4fd3f38265b53b44c4789f7b9141 | 4,411 | py | Python | tests/test_api.py | agounaris/lehmanbrothers | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | null | null | null | tests/test_api.py | agounaris/lehmanbrothers | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | 1 | 2021-11-15T17:46:29.000Z | 2021-11-15T17:46:29.000Z | tests/test_api.py | agounaris/warren | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | null | null | null | from warren.api.statements import BalanceSheet
from warren.api.statements import IncomeStatement
from warren.api.statements import CashFlow
from warren.api.statements import FinancialPerformance
data = {
'ebit': 100,
'total_assets': 100,
'net_income': 100,
'total_stockholder_equity': 100,
'gross_p... | 32.674074 | 75 | 0.579914 |
00d097b5b235d9dd4d146287f7356c8fd7da08c0 | 2,718 | py | Python | tests/instance_properties/test_core.py | sad2project/descriptor-tools | ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb | [
"CC0-1.0"
] | 10 | 2015-12-15T02:17:49.000Z | 2021-08-15T12:25:06.000Z | tests/instance_properties/test_core.py | sad2project/descriptor-tools | ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb | [
"CC0-1.0"
] | 1 | 2016-06-26T22:21:08.000Z | 2016-06-27T05:29:53.000Z | tests/instance_properties/test_core.py | sad2project/descriptor-tools | ebeaba07e8519dbda25ddaa34ce9a9c49891e2bb | [
"CC0-1.0"
] | 3 | 2017-11-19T01:16:30.000Z | 2019-10-08T23:22:29.000Z | # coding=utf-8
from unittest import TestCase
from descriptor_tools.instance_properties import (
InstanceProperty)
| 28.610526 | 103 | 0.676968 |
00d37eaf2e152000bf2c3d503f3ab04f61ff6ea3 | 36 | py | Python | frappe/patches/v4_0/remove_index_sitemap.py | pawaranand/phr_frappe | d997ae7d6fbade4b2c4a2491603d988876dfd67e | [
"MIT"
] | 1 | 2022-03-05T16:02:39.000Z | 2022-03-05T16:02:39.000Z | frappe/patches/v4_0/remove_index_sitemap.py | pawaranand/phr_frappe | d997ae7d6fbade4b2c4a2491603d988876dfd67e | [
"MIT"
] | 1 | 2015-07-11T20:52:38.000Z | 2019-12-06T15:00:58.000Z | frappe/patches/v4_0/remove_index_sitemap.py | pawaranand/phr_frappe | d997ae7d6fbade4b2c4a2491603d988876dfd67e | [
"MIT"
] | 2 | 2015-09-05T05:30:23.000Z | 2018-03-21T19:45:10.000Z | import frappe
| 7.2 | 14 | 0.722222 |
00d3ce7a80766d039b044013c2ae2d16aa1b7e3d | 5,252 | py | Python | lm_training/utils/train_lm.py | jagadeesh6jaga/indicAsr--inference | 569f867ed2d72cbd225f83d9b004666cf5c76c35 | [
"MIT"
] | 8 | 2021-12-11T12:26:20.000Z | 2022-03-22T13:38:42.000Z | lm_training/utils/train_lm.py | jagadeesh6jaga/indicAsr--inference | 569f867ed2d72cbd225f83d9b004666cf5c76c35 | [
"MIT"
] | 15 | 2022-01-08T11:59:49.000Z | 2022-03-26T15:52:36.000Z | lm_training/utils/train_lm.py | jagadeesh6jaga/indicAsr--inference | 569f867ed2d72cbd225f83d9b004666cf5c76c35 | [
"MIT"
] | 2 | 2022-01-27T22:58:04.000Z | 2022-02-22T09:53:50.000Z | #This code has been taken from https://github.com/mozilla/DeepSpeech/blob/master/data/lm/generate_lm.py
import argparse
import os
import subprocess
from tqdm import tqdm
import shutil
def convert_and_filter_topk(args):
""" Convert to lowercase, count word occurrences and save top-k words to a file """
lexico... | 30.183908 | 142 | 0.582254 |
00d442d399c62daee46ef62ed81ee028a91e9d40 | 10,712 | py | Python | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | import numpy as np
import prody as pr
from prody.measure.transform import calcRMSD
from scipy.spatial.distance import cdist
import itertools
from sklearn.neighbors import NearestNeighbors
from .vdmer import pair_wise_geometry_matrix
| 43.193548 | 147 | 0.629854 |
00d68ed3e96b3394d7d99bd2cd2947cd940a0e2a | 29,199 | py | Python | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | 2 | 2021-07-19T12:42:58.000Z | 2021-12-21T09:56:32.000Z | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | null | null | null | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | null | null | null | import copy
import logging
from sklearn.base import ClassifierMixin
from sklearn.metrics import adjusted_rand_score as ARI
from sklearn.mixture import GaussianMixture
from ucsl.base import *
from ucsl.utils import *
| 48.183168 | 128 | 0.637385 |
00d842aa29ccd09a11bbcd8359c46b6c0494b69e | 400 | py | Python | doubi_sdust/0005.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | doubi_sdust/0005.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | doubi_sdust/0005.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | '''
0005 iPhone5
'''
from PIL import Image
import os.path
Size('D:\PyCharm 2017.1.3\projects', 1136, 640) | 26.666667 | 52 | 0.595 |
00d92d1664a279f5e2296cfecc6155261207c717 | 672 | py | Python | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | null | null | null | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | null | null | null | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | 2 | 2020-12-14T02:35:40.000Z | 2021-03-19T06:29:31.000Z | import tkinter as tk
windows = tk.Tk()
windows.title("")
windows.geometry("500x300") #
#windowsshow--->None:show="*"
e = tk.Entry(windows,show=None)
e.pack()
#
b1 = tk.Button(windows,text="insert point",width=15,height=2,command=insert_point)
b1.pack()
b2 = tk.Button(windows,text="insert end",width=15,... | 22.4 | 83 | 0.666667 |
00d9574f47a9a5235f879d1a411b52f1046891ac | 1,399 | py | Python | lexical/process_lexical.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | lexical/process_lexical.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | lexical/process_lexical.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | import lexical as lx
import codecs
from random import shuffle
l=lx.lexical()
result='tld,dot_num,avg_host,max_host,avg_path,max_path,class\n'
result_arr1=[]
with codecs.open('../parse/good.csv',encoding='utf-8') as f:
string=f.read()
arr=string.split('\n')
del(arr[0])
del(arr[-1])
for line in arr:
comp=line.... | 30.413043 | 124 | 0.68263 |
00dae78e3cc4d02f68755469ad0f3ad8e487b9f7 | 477 | py | Python | manage.py | isi-metaphor/mokujin | 8283bcb79892833b54279052f671b54d846c932b | [
"Apache-2.0"
] | null | null | null | manage.py | isi-metaphor/mokujin | 8283bcb79892833b54279052f671b54d846c932b | [
"Apache-2.0"
] | null | null | null | manage.py | isi-metaphor/mokujin | 8283bcb79892833b54279052f671b54d846c932b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Copyright (C) USC Information Sciences Institute
# Author: Vladimir M. Zaytsev <zaytsev@usc.edu>
# URL: <http://nlg.isi.edu/>
# For more information, see README.md
# For license information, see LICENSE
import os
import sys
if __name__ == "__main__":
os.environ.setdefault(... | 25.105263 | 75 | 0.750524 |
00db9ea31d36e006618e7ee363274309f264c275 | 1,321 | py | Python | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | """~google <search term> will return three results from the google search for <search term>"""
import re
import requests
from random import shuffle
from googleapiclient.discovery import build
import logging
my_api_key = "Your API Key(Link: https://console.developers.google.com/apis/dashboard)"
my_cse_id = "Your Custo... | 30.72093 | 94 | 0.677517 |
00dddb8657c3b8c3b329fb18c769f7bd6e7f90ef | 2,255 | py | Python | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorbayes as tb
import numpy as np
from codebase.args import args
from tensorbayes.tfutils import softmax_cross_entropy_with_two_logits as softmax_xent_two
from tensorflow.contrib.framework import add_arg_scope
| 33.656716 | 89 | 0.686475 |
00de70ef58eee9f1f78b0b92159d53c4e743910d | 1,366 | py | Python | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | #!/usr/bin/env python 3
############################################################################################
# #
# Program purpose: Removes all consecutive duplicates from a given string. #
# Program... | 44.064516 | 92 | 0.428258 |
00df3b2db24d8dfe2a752be5d3c2ea7f1bbee333 | 223 | py | Python | backend/Ehaat/details/admin.py | shuttlesworthNEO/HackIIITD-fSociety | 5d3e50322162f4cfd655290cdcd298533987996b | [
"MIT"
] | null | null | null | backend/Ehaat/details/admin.py | shuttlesworthNEO/HackIIITD-fSociety | 5d3e50322162f4cfd655290cdcd298533987996b | [
"MIT"
] | null | null | null | backend/Ehaat/details/admin.py | shuttlesworthNEO/HackIIITD-fSociety | 5d3e50322162f4cfd655290cdcd298533987996b | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Haat, Stall, Rating, Product
# Register your models here.
admin.site.register(Haat)
admin.site.register(Stall)
admin.site.register(Rating)
admin.site.register(Product)
| 22.3 | 48 | 0.798206 |
00dfce7e1992e7c1b676d1670007946bf45fd716 | 13,235 | py | Python | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 19 | 2018-05-30T22:13:17.000Z | 2022-01-18T14:04:40.000Z | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 1 | 2019-08-07T07:29:07.000Z | 2019-08-07T08:54:10.000Z | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 8 | 2019-07-03T23:19:43.000Z | 2021-11-15T17:09:24.000Z | from .ukbb import *
from .augmentations import *
from .multi_series import *
from torchvision.transforms import Compose
##############################################################################
# SINGLE Series Transforms (to be used on flow_250_*_MAG)
#######################################################... | 32.280488 | 106 | 0.552172 |
00e0fa8917594d6c0c8aa901c5548f92fa1fe7c9 | 424 | py | Python | python/py-sets/py-check-strict-superset.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 41 | 2018-05-11T07:54:34.000Z | 2022-03-29T19:02:32.000Z | python/py-sets/py-check-strict-superset.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 2 | 2021-09-13T10:03:26.000Z | 2021-10-04T10:21:05.000Z | python/py-sets/py-check-strict-superset.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 21 | 2019-01-23T19:06:59.000Z | 2021-12-23T16:03:47.000Z | # Python > Sets > Check Strict Superset
# Check if A is a strict superset of the other given sets.
#
# https://www.hackerrank.com/challenges/py-check-strict-superset/problem
#
a = set(map(int, input().split()))
strict_superset = True
for _ in range(int(input())):
x = set(map(int, input().split()))
if not ((len... | 28.266667 | 72 | 0.648585 |
00e12d4d2f525ec2940b6bf94f093ede3873009b | 2,985 | py | Python | src/clm/views/admin_cm/iso_image.py | cc1-cloud/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 11 | 2015-05-06T14:16:54.000Z | 2022-02-08T23:21:31.000Z | src/clm/views/admin_cm/iso_image.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 1 | 2015-10-30T21:08:11.000Z | 2015-10-30T21:08:11.000Z | src/clm/views/admin_cm/iso_image.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 5 | 2016-02-12T22:01:38.000Z | 2021-12-06T16:56:54.000Z | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | 25.084034 | 111 | 0.688777 |
00e222ae0c3c60f984161de1c02f4b88fd98c046 | 3,424 | py | Python | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | import json
import os
from datetime import datetime
from time import sleep
import requests
from getters_maker import get_request_hash, get_insta_query, get_cookies
| 40.761905 | 120 | 0.618283 |
00e25504336e5532acd0e82c245ee8d575ad44d6 | 289 | py | Python | CLIP/bin/calc_reads_per_bin.py | asclab/pub-ews-clip | a6722a711c658bf8c6797558e9afe89d1a1b2dab | [
"BSD-3-Clause"
] | null | null | null | CLIP/bin/calc_reads_per_bin.py | asclab/pub-ews-clip | a6722a711c658bf8c6797558e9afe89d1a1b2dab | [
"BSD-3-Clause"
] | null | null | null | CLIP/bin/calc_reads_per_bin.py | asclab/pub-ews-clip | a6722a711c658bf8c6797558e9afe89d1a1b2dab | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Input file: EWS.enriched.bins.txt
import sys
counter = {}
for line in sys.stdin:
if line[0] == '#':
continue
cols = line.strip().split('\t')
if 'count' in cols[4]:
continue
# just print EWS1 + EWS2
print int(cols[4]) + int(cols[5])
| 20.642857 | 37 | 0.574394 |
00e2c2a5ff0187278d94fe3397052c65091ac840 | 4,895 | py | Python | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2022 Mark Komus
#
# SPDX-License-Identifier: MIT
import random
import time
import board
import busio
import digitalio
import displayio
import framebufferio
import is31fl3741
from adafruit_is31fl3741.is31fl3741_PixelBuf import IS31FL3741_PixelBuf
from adafruit_is31fl3741.led_glasses_map import... | 31.178344 | 98 | 0.712972 |
00e3f141945c6b600fe68b26e38b8881cab5f607 | 1,014 | py | Python | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | 4 | 2021-01-14T20:41:46.000Z | 2021-11-21T16:50:17.000Z | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | null | null | null | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | null | null | null | counts = []
arrin = {}
printed=0
with open('model.txt') as f:
for line in f:
doesContainAlready = False
line = line.replace('\n', '')
pre = line.split(';')[0]
post = line.split(';')[1]
n=0
#for i in counts:
# if i.startswith(line):
# doesCont... | 28.166667 | 78 | 0.467456 |
00ed19520d1c449e39b8934c5dbc29a5d479a3f8 | 5,763 | py | Python | scripts/agents/metrics.py | bhillmann/hexalys | c6c102b90e2684f1c85992eaae6325b8be0c8aa6 | [
"MIT"
] | null | null | null | scripts/agents/metrics.py | bhillmann/hexalys | c6c102b90e2684f1c85992eaae6325b8be0c8aa6 | [
"MIT"
] | null | null | null | scripts/agents/metrics.py | bhillmann/hexalys | c6c102b90e2684f1c85992eaae6325b8be0c8aa6 | [
"MIT"
] | null | null | null | # By Nick Erickson
# Contains functions related to metrics
import sys
import numpy as np
from utils import graph_helper
from utils.data_utils import save_class
| 37.422078 | 321 | 0.575221 |
00edf6e571545af5f6320b841e38389297b22abd | 680 | py | Python | Utils/Submission/Submission.py | MaurizioFD/recsys-challenge-2020-twitter | 95dc024fb4f8777aa62e1304536daece640428de | [
"Apache-2.0"
] | 44 | 2020-07-09T11:31:17.000Z | 2022-03-04T05:50:48.000Z | Utils/Submission/Submission.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 3 | 2020-10-02T18:55:21.000Z | 2020-10-13T22:13:58.000Z | Utils/Submission/Submission.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 9 | 2020-08-08T14:55:59.000Z | 2021-09-06T09:17:03.000Z | import RootPath
| 40 | 131 | 0.670588 |
00efe3d9f291632450df7c20dcbcc38a81759c0a | 1,388 | py | Python | stats/db_utils.py | twist3dimages/nba-sql | 980416440f296c2cd4e8afb49c95ba77a55daae5 | [
"Apache-2.0"
] | null | null | null | stats/db_utils.py | twist3dimages/nba-sql | 980416440f296c2cd4e8afb49c95ba77a55daae5 | [
"Apache-2.0"
] | null | null | null | stats/db_utils.py | twist3dimages/nba-sql | 980416440f296c2cd4e8afb49c95ba77a55daae5 | [
"Apache-2.0"
] | null | null | null | from utils import chunk_list
"""
Database utilities (future middleware layer if we decide to use DuckDB by default.)
"""
def insert_many(settings, table, rows):
"""
Entry function on insert_many.
"""
if settings.db_type == 'sqlite':
__insert_many_sqlite(settings, table, rows)
else:
... | 27.215686 | 83 | 0.670029 |
00f08386ad2af26c1e6b09fd6ddb6558568930d8 | 4,327 | py | Python | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | import time
import picamera
import apriltag
import cv2
import numpy as np
import math
import threading
from parameters import Parameters
# Create a pool of image processors
done = False
lock = threading.Lock()
pool = []
np.set_printoptions(suppress=True)
###############################################################... | 30.048611 | 111 | 0.502196 |
00f0d88feb828efc6d566faea34795c42d5f74d4 | 9,913 | py | Python | Listing.py | l1mc/consulting_project-Shui_On_Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | 2 | 2020-09-25T02:35:28.000Z | 2020-10-25T13:11:38.000Z | Listing.py | l1mc/Consulting-Service-for-Shui-On-Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | null | null | null | Listing.py | l1mc/Consulting-Service-for-Shui-On-Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 17 14:28:27 2020
@author: Mingcong Li
"""
import difflib #
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import copy #
import matplotlib.ticker as mtick #
plt.rcParams['font.sans-serif'] = ['FangSong'] #
plt.rcParams['axes.unicode_minus'] = ... | 39.181818 | 346 | 0.71381 |
00f3bbc97594d25a8b1ca1dd47690402eccbf5d5 | 1,846 | py | Python | api/serializers.py | SergioLeguizamon/prueba_tecnica_quick | 1d09afa6ba4ed60221a88f7f2bd0811482860733 | [
"MIT"
] | null | null | null | api/serializers.py | SergioLeguizamon/prueba_tecnica_quick | 1d09afa6ba4ed60221a88f7f2bd0811482860733 | [
"MIT"
] | null | null | null | api/serializers.py | SergioLeguizamon/prueba_tecnica_quick | 1d09afa6ba4ed60221a88f7f2bd0811482860733 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.db.models import fields
from django.contrib.auth.models import User
from .models import Clients, Products, Bills, BillsProducts
| 34.185185 | 98 | 0.678765 |
00f51b27af02d7780983835d377f6e4f85ccb09f | 904 | py | Python | Algorithms/Mergesort/python/mergesort.py | Ritik7042/Data-Structures-Algorithms-Hacktoberfest-2K19 | 47550ec865e215aa7f577a4de40aac431af0d52d | [
"MIT"
] | 51 | 2019-09-30T18:49:55.000Z | 2020-11-26T10:23:15.000Z | Algorithms/Mergesort/python/mergesort.py | rvk7895/Data-Structures-Algorithms-Hacktoberfest-2K19 | 52beb5da65263bdea0d27070aa690e0ed5966139 | [
"MIT"
] | 208 | 2019-09-30T17:44:05.000Z | 2019-12-13T13:02:38.000Z | Algorithms/Mergesort/python/mergesort.py | rvk7895/Data-Structures-Algorithms-Hacktoberfest-2K19 | 52beb5da65263bdea0d27070aa690e0ed5966139 | [
"MIT"
] | 299 | 2019-09-30T14:49:35.000Z | 2021-10-02T17:06:56.000Z | #!/usr/bin/env python3
if __name__ == '__main__':
example_list = [-1, 1, 1, 0, -2, 199, 204, 1000, -400, 6]
print(example_list)
mergesort(example_list)
print(example_list)
| 23.179487 | 61 | 0.495575 |
da949dce61a4080b2cdaf17c3d09ee56ed83cdfc | 3,538 | py | Python | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | 2 | 2019-05-11T06:02:01.000Z | 2019-05-14T10:09:22.000Z | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | null | null | null | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | null | null | null | import csv
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# Correlation coef for oil prices to GDP per capita
dfOil = pd.read_excel('./data/Oil Prices.xls', dtype={'Date': int, 'Value': float})
dfOil = dfOil.rename(columns={'Date': 'Year', 'Value': 'Oil Price per Barrel (USD)'})
dfGdp = pd.... | 49.138889 | 106 | 0.639344 |
da96c8d0b5790f26e29860edfaab83ca4c76b04c | 274 | py | Python | sample.py | tmy310/aws_util | d3f49099706f239c1039b7ededd41b4de63bfb73 | [
"MIT"
] | null | null | null | sample.py | tmy310/aws_util | d3f49099706f239c1039b7ededd41b4de63bfb73 | [
"MIT"
] | 1 | 2020-03-29T06:23:20.000Z | 2020-03-29T06:23:20.000Z | sample.py | tmy310/aws_util | d3f49099706f239c1039b7ededd41b4de63bfb73 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from libs.cloud_formation_stack_resource_checker import CloudFormationStackResourceChecker
cloud_formation_stack_resource_checker = CloudFormationStackResourceChecker()
print(cloud_formation_stack_resource_checker.get_stack_and_resource_count())
| 34.25 | 91 | 0.872263 |
da97e76fb81b60192f3404927df48c6a16e6c0cb | 5,351 | py | Python | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #!/bin/python
import re
import sys
import os
config = Config()
parser = Parser(config)
fileNames = parser.parseFileNames()
splittedFileNames = parser.splitFileNames(fileNames)
generator = Generator(config)
generator.writeFiles(splittedFileNames)
| 33.030864 | 177 | 0.724164 |
da98edb50b64c4ae9596fe0d3c027f34ac473584 | 2,275 | py | Python | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | #%%
# https://preppindata.blogspot.com/2022/01/2022-week-4-prep-school-travel-plans.html
# 2022-01-26
import pandas as pd
RAW = pd.read_csv('2022/04/inputs/travel_plans.csv')
MISTAKES = {
'Scoter': 'Scooter',
'Walkk': 'Walk',
'Carr': 'Car',
'Bycycle': 'Bicycle',
'Scootr': 'Scooter',
'Wallk': ... | 32.042254 | 91 | 0.52 |
da998cae86d173be7166b8bbd15b244a3cd77208 | 2,864 | py | Python | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from mamonsu.plugins.pgsql.plugin import PgsqlPlugin as Plugin
from mamonsu.plugins.pgsql.pool import Pooler
| 40.914286 | 153 | 0.574721 |
da9b63878204a63022e41fc407896dede115d369 | 863 | py | Python | phasespace/fromdecay/__init__.py | eduardo-rodrigues/phasespace | d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6 | [
"BSD-3-Clause"
] | null | null | null | phasespace/fromdecay/__init__.py | eduardo-rodrigues/phasespace | d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6 | [
"BSD-3-Clause"
] | null | null | null | phasespace/fromdecay/__init__.py | eduardo-rodrigues/phasespace | d6bfca58862cbbb8a9bdfd4ab8af659991ea0da6 | [
"BSD-3-Clause"
] | null | null | null | """This submodule makes it possible for `phasespace` and `DecayLanguage` to work together.
More generally, the `GenMultiDecay` object can also be used as a high-level interface for simulating particles
that can decay in multiple different ways.
"""
import sys
from typing import Tuple
from .genmultidecay impor... | 30.821429 | 111 | 0.707995 |
da9c410d602b9ec28b6c717a86a0c174065fc8dc | 36 | py | Python | reporter/__init__.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | reporter/__init__.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | reporter/__init__.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | from reporter import GenerateReport
| 18 | 35 | 0.888889 |
da9d63b81e0afe17146282e05fee0b0892122bb6 | 457 | py | Python | covidframe/ml/imagenet.py | covid-frame/covid-frame | 32d50cafa3ba3388cd44cdb49136727b870def62 | [
"Apache-2.0"
] | null | null | null | covidframe/ml/imagenet.py | covid-frame/covid-frame | 32d50cafa3ba3388cd44cdb49136727b870def62 | [
"Apache-2.0"
] | null | null | null | covidframe/ml/imagenet.py | covid-frame/covid-frame | 32d50cafa3ba3388cd44cdb49136727b870def62 | [
"Apache-2.0"
] | null | null | null | from keras.applications import VGG16
| 21.761905 | 76 | 0.665208 |
daa047340a12357e898e0edbb403a1a9c7111301 | 1,324 | py | Python | src/options/timer_options.py | anglixjtu/MeshCNN_ | 83826e66d8989ed4967047c2ed6d099568c5781c | [
"MIT"
] | 2 | 2021-08-02T05:39:43.000Z | 2021-08-04T04:15:02.000Z | src/options/timer_options.py | anglixjtu/MeshCNN_ | 83826e66d8989ed4967047c2ed6d099568c5781c | [
"MIT"
] | null | null | null | src/options/timer_options.py | anglixjtu/MeshCNN_ | 83826e66d8989ed4967047c2ed6d099568c5781c | [
"MIT"
] | null | null | null | from .base_options import BaseOptions
| 77.882353 | 147 | 0.699396 |
daa23b88ceb8bf087be4f6e681687b1a4883adc2 | 636 | py | Python | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | from time import ctime
from time import sleep
from sakshat import SAKSHAT
from sakspins import SAKSPins as Pins
saks = SAKSHAT()
alarm = [2011]
try:
while True:
current_time = ctime()
current_time = current_time[11:13] + current_time[14:16]
print(current_time)
if int(c... | 23.555556 | 65 | 0.625786 |
daa528c94b1125fa8f5f9603f88f3f3061379760 | 18,429 | py | Python | ntopo/train.py | JonasZehn/ntopo | d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9 | [
"MIT"
] | 4 | 2021-10-30T15:10:31.000Z | 2021-12-27T08:56:17.000Z | ntopo/train.py | liyuesolo/ntopo-1 | d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9 | [
"MIT"
] | null | null | null | ntopo/train.py | liyuesolo/ntopo-1 | d3e17ca4cfb1d7a71c4c4f0c965cfcdc67d53fa9 | [
"MIT"
] | 1 | 2022-01-02T13:09:15.000Z | 2022-01-02T13:09:15.000Z |
import os
import time
import numpy as np
import tensorflow as tf
from tqdm import tqdm
from ntopo.monitors import SimulationMonitor
from ntopo.physics import compute_elasticity_energies, compute_opt_energy, compute_volume_penalty
from ntopo.filter import apply_sensitivity_filter
from ntopo.utils import write_to_file... | 44.514493 | 169 | 0.675566 |
daa5d4cc65519f90d470b60fa1a16f721ffb4184 | 8,019 | py | Python | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,Http404,HttpResponseRedirect
from appointment.models import Patient,Appointment
from django.template import RequestContext,loader
from django.core.urlresolvers import reverse
from django.utils import timezone
from datetime import... | 41.765625 | 120 | 0.529118 |
daa650264ca8e83a7c86604ab68eff2fe2f3357c | 357 | py | Python | casepro/msgs/migrations/0054_auto_20161201_1454.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 21 | 2015-07-21T15:57:49.000Z | 2021-11-04T18:26:35.000Z | casepro/msgs/migrations/0054_auto_20161201_1454.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 357 | 2015-05-22T07:26:45.000Z | 2022-03-12T01:08:28.000Z | casepro/msgs/migrations/0054_auto_20161201_1454.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 24 | 2015-05-28T12:30:25.000Z | 2021-11-19T01:57:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-12-01 14:54
from __future__ import unicode_literals
from django.db import migrations, models
| 27.461538 | 116 | 0.731092 |
daa71efd1db40a31c64d874f50729bf5397d345d | 1,906 | py | Python | tests/tableTests.py | AlexImmer/WikitablesToTriples | 5d86489483ca32d19fc11c48707b671fb9dbfcb1 | [
"MIT"
] | 3 | 2015-09-10T15:18:53.000Z | 2016-06-18T14:12:36.000Z | tests/tableTests.py | AlexImmer/WikitablesToTriples | 5d86489483ca32d19fc11c48707b671fb9dbfcb1 | [
"MIT"
] | 2 | 2020-05-28T11:08:30.000Z | 2021-03-31T18:40:30.000Z | tests/tableTests.py | AlexImmer/WikitablesToTriples | 5d86489483ca32d19fc11c48707b671fb9dbfcb1 | [
"MIT"
] | 1 | 2020-01-29T09:20:11.000Z | 2020-01-29T09:20:11.000Z | import unittest
from wikitables.table import Table
from testClasses import TestPage
with open ("tests/data/List_of_national_parks_of_the_United_States.html", "r") as html_page:
text = html_page.read().replace('\n', '')
| 32.862069 | 109 | 0.675236 |
daa7627c934e5e470f68c42789921d00362402ef | 2,395 | py | Python | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
#Othello.java style : single file program
import os
import time
from flask import Flask
from flask import jsonify
from flask import request
# Global variables section
_CREATE_DELAY = 2
PORT = 30026 # Affectation port a updater pour CloudFoundry
CONTROLLER_VERSION = "v1"
_CONTROL... | 24.947917 | 89 | 0.604175 |
daaa7152b73fa0a13aa5df80e0a7b9ce4f28141b | 1,489 | py | Python | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | # http://flask.pocoo.org/docs/1.0/patterns/packages/
from setuptools import setup, find_packages
import versioneer
authors = [
('David Ojeda', 'david@dojeda.com'),
]
author_names = ', '.join(tup[0] for tup in authors)
author_emails = ', '.join(tup[1] for tup in authors)
setup(
name='quetzal',
packages=... | 25.672414 | 68 | 0.577569 |
daad3d4644a92884bdcd19bcc887b15d6229fc69 | 849 | py | Python | mundo3-EstruturasCompostas/102-funcaoFatorial.py | jonasht/CursoEmVideo-CursoDePython3 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | [
"MIT"
] | null | null | null | mundo3-EstruturasCompostas/102-funcaoFatorial.py | jonasht/CursoEmVideo-CursoDePython3 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | [
"MIT"
] | null | null | null | mundo3-EstruturasCompostas/102-funcaoFatorial.py | jonasht/CursoEmVideo-CursoDePython3 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | [
"MIT"
] | null | null | null | #Exerccio Python 102:
# Crie um programa que tenha uma funo fatorial()
# que receba dois parmetros:
# o primeiro que indique o nmero a calcular e
# outro chamado show, que ser um valor lgico (opcional)
# indicando se ser mostrado ou no na tela o processo de
# clculo do fatorial.
def fatorial(n, show=False):
'''
... | 28.3 | 61 | 0.632509 |
daadc2cf5cec9fff6add080dc7c4dc6375da7cf0 | 3,732 | py | Python | ergasia4tel.py | nantinkpsl/Ergasies.python | 160c8367a87903f6b444323f117351822bd62aa3 | [
"CC0-1.0"
] | null | null | null | ergasia4tel.py | nantinkpsl/Ergasies.python | 160c8367a87903f6b444323f117351822bd62aa3 | [
"CC0-1.0"
] | null | null | null | ergasia4tel.py | nantinkpsl/Ergasies.python | 160c8367a87903f6b444323f117351822bd62aa3 | [
"CC0-1.0"
] | null | null | null | f = open("two_cities_ascii.txt", "r")#
text=f.read()# text string
f.close()#
L = []#
""" """
text=text.replace(',',' ')
text=text.replace('.',' ')
text=text.replace('!',' ')
text=text.replace('"',' ')
text=text.replace('#',' ')
text=text.replace('$',' ')
text=text.replace... | 27.850746 | 270 | 0.521704 |
daae9df32d246183515db8e74d555c8793c010e1 | 488 | py | Python | shop/migrations/0014_auto_20200120_2035.py | rafkolacz/PodajLape | be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6 | [
"PostgreSQL"
] | null | null | null | shop/migrations/0014_auto_20200120_2035.py | rafkolacz/PodajLape | be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6 | [
"PostgreSQL"
] | null | null | null | shop/migrations/0014_auto_20200120_2035.py | rafkolacz/PodajLape | be7358ffa6c6e5e6f6fe4bc7ada46f0d7df055d6 | [
"PostgreSQL"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-20 19:35
from django.db import migrations, models
import shop.models
| 24.4 | 136 | 0.639344 |
daaeb5f227baa564bbc4e4ee7a2ab88b1d145fb1 | 416 | py | Python | users/migrations/0007_alter_starred_concerts_id.py | MorganRoberts00/MyConcerts | 650185a8421d52d052763fbf03ec046583863632 | [
"MIT"
] | 1 | 2022-01-12T23:08:39.000Z | 2022-01-12T23:08:39.000Z | users/migrations/0007_alter_starred_concerts_id.py | Zachhi/MyConcerts | 650185a8421d52d052763fbf03ec046583863632 | [
"MIT"
] | null | null | null | users/migrations/0007_alter_starred_concerts_id.py | Zachhi/MyConcerts | 650185a8421d52d052763fbf03ec046583863632 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-01 16:33
from django.db import migrations, models
| 21.894737 | 76 | 0.620192 |
daaeeb623720fda94eff96a09b813f98fd47e55e | 4,048 | py | Python | facebook_data_analysis/conversation_analysis/friends_network.py | Anogio/facebook_data_analysis | a43a64bf4892e8bb705a96805912f726f194f319 | [
"MIT"
] | null | null | null | facebook_data_analysis/conversation_analysis/friends_network.py | Anogio/facebook_data_analysis | a43a64bf4892e8bb705a96805912f726f194f319 | [
"MIT"
] | null | null | null | facebook_data_analysis/conversation_analysis/friends_network.py | Anogio/facebook_data_analysis | a43a64bf4892e8bb705a96805912f726f194f319 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import networkx as nx
import pandas as pd
from facebook_data_analysis.conversation_analysis.activity_graphs import save_graph
from facebook_data_analysis.global_vars import messages_cols
from facebook_data_analysis.tools.helpers import cached
from sklearn.manifold import MDS
from tqdm im... | 38.552381 | 87 | 0.704298 |
daaf9ad2bbd982879bb0f1d6c500eb2886d1827f | 18,405 | py | Python | sdk/python/pulumi_buildkite/team.py | grapl-security/pulumi-buildkite | f801ecb661d82da6b939b13f5520038e3b6e891f | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_buildkite/team.py | grapl-security/pulumi-buildkite | f801ecb661d82da6b939b13f5520038e3b6e891f | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_buildkite/team.py | grapl-security/pulumi-buildkite | f801ecb661d82da6b939b13f5520038e3b6e891f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 38.34375 | 134 | 0.629394 |
dab0e6323421a3aea4c254b4a72550f557156f41 | 56 | py | Python | myself.py | febycloud/PROG8420 | 147b4877a33221b93c9a74f90819c397179f7332 | [
"MIT"
] | null | null | null | myself.py | febycloud/PROG8420 | 147b4877a33221b93c9a74f90819c397179f7332 | [
"MIT"
] | null | null | null | myself.py | febycloud/PROG8420 | 147b4877a33221b93c9a74f90819c397179f7332 | [
"MIT"
] | null | null | null | import sample
print('what is your name')
print(sample.d) | 18.666667 | 26 | 0.767857 |
dab0f9b97d8498de478ba17e126e3ab6a3a5d932 | 3,739 | py | Python | profiles_api/migrations/0002_category_course_image_instructor_review_video.py | MohamedAboubasha/profiles-rest-api | 0e5ede6b4771396c9f3399d05be06c19b9ac1530 | [
"MIT"
] | null | null | null | profiles_api/migrations/0002_category_course_image_instructor_review_video.py | MohamedAboubasha/profiles-rest-api | 0e5ede6b4771396c9f3399d05be06c19b9ac1530 | [
"MIT"
] | null | null | null | profiles_api/migrations/0002_category_course_image_instructor_review_video.py | MohamedAboubasha/profiles-rest-api | 0e5ede6b4771396c9f3399d05be06c19b9ac1530 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2022-01-08 21:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 47.935897 | 133 | 0.581171 |
dab15481ef318e82c0705f93a221be1485c98088 | 616 | py | Python | src/backends/python/flask/core/repos.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | src/backends/python/flask/core/repos.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | src/backends/python/flask/core/repos.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | from core import (
config, db
)
for module in config.modules:
globals()[module] = Repo(module) | 30.8 | 65 | 0.660714 |
dab23516379326ead1d968570c74ed69eecbf055 | 2,863 | py | Python | frictionless/settings.py | Grandient/frictionless-py | 8c41b96f2047d573702fe7b34ff7ffbd32c3d815 | [
"MIT"
] | 247 | 2020-08-04T16:42:09.000Z | 2022-03-30T11:54:54.000Z | frictionless/settings.py | Grandient/frictionless-py | 8c41b96f2047d573702fe7b34ff7ffbd32c3d815 | [
"MIT"
] | 444 | 2020-07-29T09:13:59.000Z | 2022-03-31T14:54:57.000Z | frictionless/settings.py | Grandient/frictionless-py | 8c41b96f2047d573702fe7b34ff7ffbd32c3d815 | [
"MIT"
] | 60 | 2020-09-04T11:39:34.000Z | 2022-03-23T18:59:51.000Z | import os
import json
import gzip
import zipfile
# Helpers
# General
UNDEFINED = object()
VERSION = read_asset("VERSION")
COMPRESSION_FORMATS = ["zip", "gz"]
INQUIRY_PROFILE = json.loads(read_asset("profiles", "inquiry.json"))
PIPELINE_PROFILE = json.loads(read_asset("profiles", "pipeline.json"))
REPORT_PROFILE ... | 29.515464 | 89 | 0.71219 |
dab536d1d9d21df99c2db8bf403753c5070c87f7 | 4,747 | py | Python | A_gen_literal_po.py | Dharma-Sagar/tx-template | 93a3005445a21a249107e01c446c9237e886de8e | [
"Apache-2.0"
] | null | null | null | A_gen_literal_po.py | Dharma-Sagar/tx-template | 93a3005445a21a249107e01c446c9237e886de8e | [
"Apache-2.0"
] | null | null | null | A_gen_literal_po.py | Dharma-Sagar/tx-template | 93a3005445a21a249107e01c446c9237e886de8e | [
"Apache-2.0"
] | 1 | 2022-03-25T15:25:00.000Z | 2022-03-25T15:25:00.000Z | from pathlib import Path
import re
import sys
from uuid import uuid4
import polib
from antx import transfer
from botok import Text
if __name__ == '__main__':
folder = 'literal/tibetan'
if len(sys.argv) > 1:
stem = sys.argv[1]
file = Path(folder) / (stem + '.txt')
print(file)
... | 31.026144 | 97 | 0.540552 |
dab78841b63bd54072dd390557aad814bcd2c522 | 2,845 | py | Python | cvm/tests/test_trec.py | CortexFoundation/tvm-cvm | d8941dc60a51dd27a6d2accc1eff2eced3b3640d | [
"Apache-2.0"
] | 6 | 2019-07-04T09:42:53.000Z | 2021-12-28T13:19:48.000Z | cvm/tests/test_trec.py | CortexFoundation/tvm-cvm | d8941dc60a51dd27a6d2accc1eff2eced3b3640d | [
"Apache-2.0"
] | 4 | 2019-06-27T08:05:18.000Z | 2021-09-09T18:59:11.000Z | cvm/tests/test_trec.py | CortexFoundation/tvm-cvm | d8941dc60a51dd27a6d2accc1eff2eced3b3640d | [
"Apache-2.0"
] | null | null | null | import gluon_zoo as gz
import mxnet as mx
from mxnet import ndarray as nd
from mxnet import gluon
import tvm
from tvm.contrib import graph_runtime
import nnvm
import pickle
import sym_pass as spass
import dataset as ds
import sym_calib as calib
import sim_quant_helper as sim
import ops_generator as opg
import utils
im... | 30.265957 | 83 | 0.693497 |
dab7892075e86447b7eb58c074c9b44136134f5d | 9,856 | py | Python | public/scripts/node_process_scripts/vamps_script_parse.py | avoorhis/vamps-node.js | 7071da6e569a669a06a6d21c23cc9c667ec49250 | [
"MIT"
] | 1 | 2015-10-28T14:48:38.000Z | 2015-10-28T14:48:38.000Z | public/scripts/node_process_scripts/vamps_script_parse.py | avoorhis/vamps-node.js | 7071da6e569a669a06a6d21c23cc9c667ec49250 | [
"MIT"
] | 48 | 2015-10-23T16:02:14.000Z | 2022-02-15T00:46:39.000Z | public/scripts/node_process_scripts/vamps_script_parse.py | avoorhis/vamps-node.js | 7071da6e569a669a06a6d21c23cc9c667ec49250 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011, Marine Biological Laboratory
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your o... | 32.104235 | 138 | 0.542106 |
dab7ff6f7d5580767751c098903a37a2703ecd3c | 468 | py | Python | Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py | JAL-code/google | 3989af94bb72b6fabde95ed50bac1493640d4cf6 | [
"MIT"
] | null | null | null | Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py | JAL-code/google | 3989af94bb72b6fabde95ed50bac1493640d4cf6 | [
"MIT"
] | null | null | null | Google It-Cert-Automation/f-Automating-Real-World-Tasks-with-Python/W1/os_walk_three_genx_fail.py | JAL-code/google | 3989af94bb72b6fabde95ed50bac1493640d4cf6 | [
"MIT"
] | null | null | null | import os
import os.path
home_address = get_location_for_code()
case = select_case()
os.walk(home_address).next()[0] # returns 'C:\dir1\dir2\startdir'
os.walk(home_address).next()[1] # returns all the dirs in 'C:\dir1\dir2\startdir'
os.walk(home_address).next()[2]
| 23.4 | 81 | 0.707265 |
dab8d7a585af5b87de622c04d5bf382bd3e38332 | 2,755 | py | Python | tests/test_cliently.py | elcaceres/cliently | 5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8 | [
"MIT"
] | null | null | null | tests/test_cliently.py | elcaceres/cliently | 5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8 | [
"MIT"
] | 3 | 2018-04-04T18:55:16.000Z | 2018-04-04T18:57:09.000Z | tests/test_cliently.py | elcaceres/cliently | 5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `cliently` package."""
import unittest
from cliently import client
import os
# TODO: This hard coding needs to be fixed with a sandbox when doing things for realsies
ACCESS_TOKEN=os.getenv("FEEDLY_ACCESS_TOKEN")
UID = os.getenv("FEEDLY_UID")
BASE_URL = "http... | 39.927536 | 124 | 0.692922 |
dab962fd7005a682b3d02a7ad6700beb39520d3f | 3,907 | py | Python | pyArango/validation.py | NeilduToit13/pyArango | 75a883c073ee9b00ff4754139b823dd0df498036 | [
"Apache-2.0"
] | null | null | null | pyArango/validation.py | NeilduToit13/pyArango | 75a883c073ee9b00ff4754139b823dd0df498036 | [
"Apache-2.0"
] | null | null | null | pyArango/validation.py | NeilduToit13/pyArango | 75a883c073ee9b00ff4754139b823dd0df498036 | [
"Apache-2.0"
] | null | null | null | from .theExceptions import ValidationError
| 28.940741 | 131 | 0.600973 |
dab9da99251eb13cbf19a332bec3cc7115eec8f3 | 859 | py | Python | yahoo_nsfw.py | m0r13/tensorflow-open_nsfw | 35da5a6eb71ad5490b25ad433cfee02986f123eb | [
"BSD-2-Clause"
] | null | null | null | yahoo_nsfw.py | m0r13/tensorflow-open_nsfw | 35da5a6eb71ad5490b25ad433cfee02986f123eb | [
"BSD-2-Clause"
] | null | null | null | yahoo_nsfw.py | m0r13/tensorflow-open_nsfw | 35da5a6eb71ad5490b25ad433cfee02986f123eb | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import tensorflow as tf
from image_utils import create_raw_image_loader
from model import OpenNsfwModel, InputType
if __name__ == "__main__":
from PIL import Image
classifier = YahooNSFWClassifier("data/open_nsfw-weights.npy")
print("NSFW score: %f" % classifier.classify(I... | 33.038462 | 99 | 0.718277 |
dabd1be8c1b91392a0032b7379bdd13519e05e0b | 4,823 | py | Python | crazyflie-lib-python/cflib/crazyflie/localization.py | loujiabin1994/crazyswarm | 893325b63b3b19015fe261bfa989846a1c82dc82 | [
"MIT"
] | null | null | null | crazyflie-lib-python/cflib/crazyflie/localization.py | loujiabin1994/crazyswarm | 893325b63b3b19015fe261bfa989846a1c82dc82 | [
"MIT"
] | null | null | null | crazyflie-lib-python/cflib/crazyflie/localization.py | loujiabin1994/crazyswarm | 893325b63b3b19015fe261bfa989846a1c82dc82 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | 33.262069 | 79 | 0.609579 |
dac5823dc3e2b862d786e19df82399b8a50a961d | 2,757 | py | Python | feature-detection.py | ronheywood/opencv | 664de6f5b3708af6c00348a31a37db484137bb8d | [
"MIT"
] | 7 | 2021-07-08T14:57:22.000Z | 2022-01-12T09:15:01.000Z | feature-detection.py | ronheywood/opencv | 664de6f5b3708af6c00348a31a37db484137bb8d | [
"MIT"
] | 1 | 2021-08-18T20:15:44.000Z | 2022-02-04T18:04:39.000Z | feature-detection.py | ronheywood/opencv | 664de6f5b3708af6c00348a31a37db484137bb8d | [
"MIT"
] | 2 | 2021-10-14T18:40:26.000Z | 2022-01-10T00:36:29.000Z | # import the necessary packages
import cv2
import sys
import os
import numpy as np
import argparse
sys.path.append(os.path.abspath('./modules/'))
import detection
import helpers
ap = argparse.ArgumentParser()
ap.add_argument("-d", "--debug", type=bool, default=False,
help="experiment with different image filters")... | 32.05814 | 122 | 0.629307 |
dac5b2ff80767ae00c126aba31c2851cfe3769ef | 7,538 | py | Python | loopy/execution.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | null | null | null | loopy/execution.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | null | null | null | loopy/execution.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | null | null | null | from __future__ import division, with_statement, absolute_import
__copyright__ = "Copyright (C) 2012-16 Andreas Kloeckner"
__license__ = """
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 withou... | 32.076596 | 79 | 0.648183 |
dac7f27abecc653f42dd61c7ee788bece9231835 | 3,419 | py | Python | rebound/python_examples/megno_interactive/problem.py | rodluger/ttv-devil | e534e4f3cd75db951cba54441f7a5458c87e0cf9 | [
"MIT"
] | null | null | null | rebound/python_examples/megno_interactive/problem.py | rodluger/ttv-devil | e534e4f3cd75db951cba54441f7a5458c87e0cf9 | [
"MIT"
] | null | null | null | rebound/python_examples/megno_interactive/problem.py | rodluger/ttv-devil | e534e4f3cd75db951cba54441f7a5458c87e0cf9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import rebound
from rebound.interruptible_pool import InterruptiblePool
# Import other modules
import numpy as np
import matplotlib.pyplot as plt
plt.ion()
from matplotlib.colors import LogNorm
# Runs one simulation.
pool = InterruptiblePool() # Number of threads default to the number of CPUs on... | 31.953271 | 162 | 0.64434 |
dac8c3ed489595ae8af03592386194327a0affcc | 257 | py | Python | Exercicios/Ex23.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | Exercicios/Ex23.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | Exercicios/Ex23.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | num = int(input('Digite um nmero de 0 a 9999:\n'))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 100
m = num // 1000 % 1000
print(f'Analisando o nmero {num}')
print(f'Unidade:{u}')
print(f'Dezena:{d}')
print(f'Centena:{c}')
print(f'Milhar:{m}')
| 19.769231 | 51 | 0.587549 |
dacba558be9c5556dc97deb7330b68ccc601680a | 167 | py | Python | Diena_13_Visualization/random/miss_num.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_13_Visualization/random/miss_num.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_13_Visualization/random/miss_num.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | import random
nums = [str(n)+"\n" for n in range(1, 51)]
random.shuffle(nums)
print(nums)
nums.pop()
with open("missing_number.txt", "w") as f:
f.writelines(nums)
| 20.875 | 42 | 0.670659 |
dacc0afe8e6fcaa1fdee48ff089bcf82ca383f60 | 1,926 | py | Python | code/eval_tsd.py | YJiangcm/COMP_5222_Project | 18afd92af6f38c9410d711fa9448b7a03507e0ac | [
"Apache-2.0"
] | null | null | null | code/eval_tsd.py | YJiangcm/COMP_5222_Project | 18afd92af6f38c9410d711fa9448b7a03507e0ac | [
"Apache-2.0"
] | null | null | null | code/eval_tsd.py | YJiangcm/COMP_5222_Project | 18afd92af6f38c9410d711fa9448b7a03507e0ac | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import sys
import argparse
def f1(predictions, gold):
"""
F1 (a.k.a. DICE) operating on two lists of offsets (e.g., character).
>>> assert f1([0, 1, 4, 5], [0, 1, 6]) == 0.5714285714285714
:param predictions: a list of predicted offsets
:param gold:... | 28.746269 | 94 | 0.600727 |
dace81c02ecfe88dcde9a79af889af15ed3ee59f | 63 | py | Python | pyschism/io/__init__.py | pmav99/pyschism | b533d29b881da6cd4f408e91a4749f86451c042a | [
"Apache-2.0"
] | null | null | null | pyschism/io/__init__.py | pmav99/pyschism | b533d29b881da6cd4f408e91a4749f86451c042a | [
"Apache-2.0"
] | null | null | null | pyschism/io/__init__.py | pmav99/pyschism | b533d29b881da6cd4f408e91a4749f86451c042a | [
"Apache-2.0"
] | null | null | null | from pyschism.io.bctides import Bctides
__all__ = ['Bctides']
| 15.75 | 39 | 0.761905 |
dacf5473b855ccb8326cf4f486426fd5801c552b | 83 | py | Python | run_bot.py | minproton/ReVot | 077457a66fb476cf11622ee9ff29494695a84fc6 | [
"Unlicense"
] | 3 | 2020-10-06T16:34:15.000Z | 2021-04-17T18:10:33.000Z | run_bot.py | minproton/ReVot | 077457a66fb476cf11622ee9ff29494695a84fc6 | [
"Unlicense"
] | 1 | 2020-10-18T07:41:00.000Z | 2020-10-18T07:43:04.000Z | run_bot.py | minproton/ReVot | 077457a66fb476cf11622ee9ff29494695a84fc6 | [
"Unlicense"
] | 3 | 2020-10-18T07:38:52.000Z | 2021-10-03T17:00:41.000Z | from reverse_image_search_bot import bot
if __name__ == '__main__':
bot.main()
| 20.75 | 40 | 0.746988 |
dad0c47ce0d0ea8d56dcd1c6ed410b390c57cb8f | 1,444 | py | Python | notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py | shitake/ml-sandbox | a23a312251d82b27582df0029c23ff4aa7792d4c | [
"MIT"
] | null | null | null | notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py | shitake/ml-sandbox | a23a312251d82b27582df0029c23ff4aa7792d4c | [
"MIT"
] | 1 | 2018-11-01T03:09:50.000Z | 2018-11-01T03:09:50.000Z | notebooks/PyTorch/tutorial_deep_learning_with_pytorch_a_60_minute_blitz_training_a_classifier_CIFAR-10/training.py | shitake/ml-sandbox | a23a312251d82b27582df0029c23ff4aa7792d4c | [
"MIT"
] | null | null | null | from net import Net
import os
import sys
import time
import torch.optim as optim
print(os.getcwd())
sys.path.append(os.getcwd())
# from ml-sandbox.src.utils.utils import display_formatted_time
import gc
del Training; gc.collect()
| 27.245283 | 96 | 0.585873 |
dad20c62d339443c7b2314dec5e7926d16864103 | 751 | py | Python | tools/gen_flask_secret.py | DVC-Viking-Robotics/webapp | 39a13a86b46973328bd664308c6a3fa375629adc | [
"MIT"
] | 6 | 2019-03-27T19:26:32.000Z | 2019-10-14T09:17:28.000Z | tools/gen_flask_secret.py | DVC-Viking-Robotics/webapp | 39a13a86b46973328bd664308c6a3fa375629adc | [
"MIT"
] | 54 | 2019-02-24T12:38:52.000Z | 2019-11-17T09:28:40.000Z | tools/gen_flask_secret.py | DVC-Viking-Robotics/webapp | 39a13a86b46973328bd664308c6a3fa375629adc | [
"MIT"
] | 12 | 2019-03-24T23:10:24.000Z | 2019-12-07T02:48:32.000Z | """
This script allows the admin to generate a new Fernet key file and re-encrypt
any '.encrypted' file, should the old key file be compromised.
Run it with ``python -m tools.gen_flask_secret``
"""
import os
from webapp.utils.file_encryption import FernetVault
from webapp.constants import SECRET_KEYFILE, FLASK_SECRET... | 34.136364 | 110 | 0.750999 |
dad29b783a0cff6154b9ddd5bbb2a707070f8ace | 1,321 | py | Python | metricol/outputs/statsite.py | soutys/metricol | 56b96e80aab8a61727b48eb2f5f19e0694895b55 | [
"MIT"
] | null | null | null | metricol/outputs/statsite.py | soutys/metricol | 56b96e80aab8a61727b48eb2f5f19e0694895b55 | [
"MIT"
] | null | null | null | metricol/outputs/statsite.py | soutys/metricol | 56b96e80aab8a61727b48eb2f5f19e0694895b55 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''Graphite output plugins module
'''
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
with_statement,
)
import logging
from queue import Empty
from statsd.client import StatsClient
from metricol.inputs import MetricInput
from metrico... | 24.462963 | 79 | 0.613929 |
dad77c6e4ccbfc91bf868ef8fb393b299a2ec072 | 30 | py | Python | main.py | jsjhcccn/qqbot | 90505ae42a5b2c3a74b85c7bc98b597373aa6b6b | [
"MIT"
] | 4,253 | 2016-07-30T11:54:14.000Z | 2022-03-17T15:40:29.000Z | main.py | MidKateIsOP520/qqbot | c5f53c31062ad5c6e70555b9bf0479488339ecbe | [
"MIT"
] | 375 | 2016-08-05T02:07:19.000Z | 2020-08-03T01:29:32.000Z | main.py | MidKateIsOP520/qqbot | c5f53c31062ad5c6e70555b9bf0479488339ecbe | [
"MIT"
] | 1,183 | 2016-07-31T01:37:43.000Z | 2022-03-13T13:18:04.000Z | from qqbot import Main; Main() | 30 | 30 | 0.766667 |
dad80e149a334d4d98779bd5f03ddaee09b35f0c | 5,300 | py | Python | quotes_generate_attribute.py | russDA/Quotes_Predictor | 6c22f141a468b304c1a5d76e43165d6f42d4e3cf | [
"MIT"
] | null | null | null | quotes_generate_attribute.py | russDA/Quotes_Predictor | 6c22f141a468b304c1a5d76e43165d6f42d4e3cf | [
"MIT"
] | null | null | null | quotes_generate_attribute.py | russDA/Quotes_Predictor | 6c22f141a468b304c1a5d76e43165d6f42d4e3cf | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
import pandas as pd
import numpy as np
# =============================================================================
# Love category of quotes
# =============================================================================
romance_urls = 'https://www.goodread... | 29.943503 | 88 | 0.508113 |
dad8ed0484b8958b3b31e0149f5e4b0720f01f84 | 791 | py | Python | tap_tally/__init__.py | bkgreve/tap-tally | 207c64b821024003859713624034c531969f0456 | [
"MIT"
] | 1 | 2021-02-12T23:22:38.000Z | 2021-02-12T23:22:38.000Z | tap_tally/__init__.py | bkgreve/tap-tally | 207c64b821024003859713624034c531969f0456 | [
"MIT"
] | 3 | 2020-09-10T11:13:17.000Z | 2020-09-10T11:19:06.000Z | tap_tally/__init__.py | bkgreve/tap-tally | 207c64b821024003859713624034c531969f0456 | [
"MIT"
] | null | null | null | import os
import json
from flask import Flask
app = Flask(__name__)
| 22.6 | 87 | 0.549937 |
dad97463770df090d4e73a80e6339dec1808753d | 4,133 | py | Python | DatabaseGeneration_database4_question5.py | wangpinggl/covidQA | f8b440ee27058cc1030af7cd57178ddf987462d0 | [
"MIT"
] | null | null | null | DatabaseGeneration_database4_question5.py | wangpinggl/covidQA | f8b440ee27058cc1030af7cd57178ddf987462d0 | [
"MIT"
] | null | null | null | DatabaseGeneration_database4_question5.py | wangpinggl/covidQA | f8b440ee27058cc1030af7cd57178ddf987462d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 29 05:31:09 2020
@author: Srikar Balusu
"""
import json
import pandas as pd
import numpy as np
import re
import random
import sqlite3
import datetime
import calendar
from dateutil.relativedelta import *
with open('lookup1.json') as json_file:
data = json.load(js... | 36.575221 | 212 | 0.640455 |
dada78f117f641ec85db243d1ba2fcd8f0d8b75a | 1,347 | py | Python | src/tutorials/hello_world_tutorial/functions/app.py | drblahdblah/covid-19-analysis | abd6ed23a49bd1277708163cad0741c5b9f9698a | [
"MIT"
] | 3 | 2020-04-20T11:10:23.000Z | 2020-04-22T08:06:04.000Z | src/tutorials/hello_world_tutorial/functions/app.py | drblahdblah/covid-19-analysis | abd6ed23a49bd1277708163cad0741c5b9f9698a | [
"MIT"
] | null | null | null | src/tutorials/hello_world_tutorial/functions/app.py | drblahdblah/covid-19-analysis | abd6ed23a49bd1277708163cad0741c5b9f9698a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
df = pd.read_csv(f'https://gist.githubusercontent.com/chriddyp/c78bf172206ce24f77d6363a2d754b59/'
f'raw/c353e8ef842413cae56ae3920b8fd78468aa4cb2/usa-agricultural-exports-2011... | 31.325581 | 99 | 0.680772 |
dadb199b4bbce57f73cf63b1e61db8a2e22975c4 | 3,339 | py | Python | ooiservices/tests/test_cmislib.py | Bobfrat/ooi-ui-services | 32f67948510e6af0bc06d62fe49ff3c991b22b40 | [
"Apache-2.0"
] | 2 | 2015-02-28T00:20:30.000Z | 2015-04-30T12:40:31.000Z | ooiservices/tests/test_cmislib.py | Bobfrat/ooi-ui-services | 32f67948510e6af0bc06d62fe49ff3c991b22b40 | [
"Apache-2.0"
] | 266 | 2015-01-02T21:29:25.000Z | 2020-01-23T16:00:11.000Z | ooiservices/tests/test_cmislib.py | Bobfrat/ooi-ui-services | 32f67948510e6af0bc06d62fe49ff3c991b22b40 | [
"Apache-2.0"
] | 13 | 2015-02-04T21:13:34.000Z | 2016-10-18T14:39:36.000Z | #!/usr/bin/env python
'''
Test the cmislib package created by Apache Chemistry project.
Version is currently at 0.5.1 and has very good reviews
from the community.
Created: 10/04/2015
'''
__author__ = 'M@Campbell'
import unittest
from unittest import skipIf
import os
from base64 import b64encode
from ooiservices.a... | 34.42268 | 79 | 0.650195 |
dadb84725f965ceb0d440e96ae59bc095140ff91 | 128 | py | Python | Code/YOLO/darkflow/darkflow/utils/im_transform.py | kalvin-osoro/ml_project | bf0bdc5719f2712682dd070045a5f1edf933a0c4 | [
"Apache-2.0"
] | null | null | null | Code/YOLO/darkflow/darkflow/utils/im_transform.py | kalvin-osoro/ml_project | bf0bdc5719f2712682dd070045a5f1edf933a0c4 | [
"Apache-2.0"
] | null | null | null | Code/YOLO/darkflow/darkflow/utils/im_transform.py | kalvin-osoro/ml_project | bf0bdc5719f2712682dd070045a5f1edf933a0c4 | [
"Apache-2.0"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:834d7828e80c45d2160d52eeeefc97a2432c512b24b89422f604edf52f3d667a
size 895
| 32 | 75 | 0.882813 |
dadc943c456eca12a123766407c6fe7d3b911d2b | 12,804 | py | Python | main_robust.py | npatel5/similarity-learning | 9052f3d966a2e14918fcaf9d3a4c93dc9143db71 | [
"MIT"
] | null | null | null | main_robust.py | npatel5/similarity-learning | 9052f3d966a2e14918fcaf9d3a4c93dc9143db71 | [
"MIT"
] | null | null | null | main_robust.py | npatel5/similarity-learning | 9052f3d966a2e14918fcaf9d3a4c93dc9143db71 | [
"MIT"
] | null | null | null | from __future__ import print_function
from IPython.core.debugger import set_trace
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import config as cf
import numpy as np
import torchvision
import torchvision.transforms as transforms
#imp... | 38.107143 | 133 | 0.670181 |