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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31383059d386bdab69fab697d6aece922f099277 | 1,236 | py | Python | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 36 | 2020-03-17T11:56:51.000Z | 2022-01-19T16:03:32.000Z | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 60 | 2020-03-02T23:13:29.000Z | 2021-05-19T15:05:42.000Z | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 4 | 2020-08-11T13:17:37.000Z | 2021-11-05T21:11:52.000Z | bluelabs_format_hints = {
'field-delimiter': ',',
'record-terminator': "\n",
'compression': 'GZIP',
'quoting': None,
'quotechar': '"',
'doublequote': False,
'escape': '\\',
'encoding': 'UTF8',
'dateformat': 'YYYY-MM-DD',
'timeonlyformat': 'HH24:MI:SS',
'datetimeformattz': 'YY... | 25.75 | 48 | 0.572006 |
313a0495ccbff8beabc442ab70ce74da829e195f | 1,829 | py | Python | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | # FROM THE OP PAPER-ISH
MINI_BATCH_SIZE = 32
MEMORY_SIZE = 10**6
BUFFER_SIZE = 100
LHIST = 4
GAMMA = 0.99
UPDATE_FREQ_ONlINE = 4
UPDATE_TARGET = 2500 # This was 10**4 but is measured in actor steps, so it's divided update_freq_online
TEST_FREQ = 5*10**4 # Measure in updates
TEST_STEPS = 10**4
LEARNING_RATE = 0.00025
G_... | 29.5 | 104 | 0.640241 |
313a4f7ab87e42cd98ccf9595c3af6b5e740cfb1 | 6,031 | py | Python | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | 1 | 2020-07-15T18:52:29.000Z | 2020-07-15T18:52:29.000Z | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | null | null | null | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | null | null | null |
import os
import json
import logging
from collections import defaultdict
import numpy as np
import networkx as nx
import torch
from torch.utils.data import DataLoader
from torch.optim import Adam
from tqdm import tqdm
from milieu.util.util import place_on_cpu, place_on_gpu
from milieu.paper.methods.method import D... | 37.459627 | 92 | 0.521472 |
313cc87d19724030ef67c4661d1e5a9c641aaae1 | 5,185 | py | Python | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 18 | 2021-08-21T05:42:40.000Z | 2022-03-16T21:00:56.000Z | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 4 | 2021-08-21T06:05:04.000Z | 2021-12-07T02:23:05.000Z | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 5 | 2021-08-24T08:29:51.000Z | 2022-03-04T17:14:49.000Z | import os
import distutils.util
from telegram import Update
from telegram.ext import Updater, CommandHandler, Filters, CallbackContext
from dotenv import load_dotenv
from scripts.get_info import get_ratio
from scripts.terra import get_balances, execute_swap
load_dotenv(override=True)
notify_telegram = bool(distutil... | 34.798658 | 291 | 0.652652 |
313ce62aeca2701889c38df68499f25c82820cc8 | 3,179 | py | Python | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | 1 | 2021-11-22T07:45:28.000Z | 2021-11-22T07:45:28.000Z | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | import os
import zipfile
import requests
def check_and_download(name, google_id, files=None, force_download=False):
"""
Checks if the meshes folder exists in the xml directory
If not it will ask the user if they want to download them
to be able to proceed
Parameters
----------
name: string
the file or direc... | 30.27619 | 121 | 0.709343 |
313da56284119f917128f140877f55d791f270c7 | 2,188 | py | Python | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | import os
import uuid
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
| 28.415584 | 94 | 0.675503 |
313df0c7ff39a3b7b860f162c9978fb31e8f55a5 | 248 | py | Python | python/simulator.py | chongdashu/puzzlescript-analyze | 0dfada4584428f7690e717d317d5396487e1f8d0 | [
"MIT"
] | 1 | 2016-02-10T14:06:43.000Z | 2016-02-10T14:06:43.000Z | python/simulator.py | chongdashu/puzzlescript-analyze | 0dfada4584428f7690e717d317d5396487e1f8d0 | [
"MIT"
] | null | null | null | python/simulator.py | chongdashu/puzzlescript-analyze | 0dfada4584428f7690e717d317d5396487e1f8d0 | [
"MIT"
] | null | null | null | __author__ = 'Chong-U Lim, culim@mit.edu'
import uinput
| 11.809524 | 82 | 0.701613 |
313e16f482043a4d9b63143c96c69a32c7de5ed4 | 4,898 | py | Python | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmi... | 37.676923 | 80 | 0.638424 |
313f2defc3a370222bbd7525f5b1756e0fdd639e | 1,454 | py | Python | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | 2 | 2022-02-21T10:37:22.000Z | 2022-03-02T01:43:30.000Z | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | null | null | null | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | 3 | 2022-02-21T05:06:19.000Z | 2022-03-27T07:58:11.000Z | # author: jamie
# email: jinjiedeng.jjd@gmail.com
if __name__ == "__main__":
infix = input()
T = int(input())
for _ in range(T):
value = list(map(int, input().split()))
postfix = []
InfixToPostfix(infix, postfix)
print(Evaluate(postfix, value)) | 29.673469 | 68 | 0.462861 |
313fe3ae0a54054320169a34676d7ed8d2ac4692 | 203 | py | Python | workoutlog/workout/admin.py | michaelrodgers/itc172_final | b71f25a5cbffab00b06c60c8816f339d169d9dc1 | [
"Apache-2.0"
] | null | null | null | workoutlog/workout/admin.py | michaelrodgers/itc172_final | b71f25a5cbffab00b06c60c8816f339d169d9dc1 | [
"Apache-2.0"
] | null | null | null | workoutlog/workout/admin.py | michaelrodgers/itc172_final | b71f25a5cbffab00b06c60c8816f339d169d9dc1 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Target, Exercise, Workout
# Register your models here.
admin.site.register(Target)
admin.site.register(Exercise)
admin.site.register(Workout)
| 25.375 | 46 | 0.783251 |
31416eaefbae7d0e56e7b72dee697c6ec5ef4bc8 | 1,015 | py | Python | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null |
Ciclo().nuevoCiclo() | 31.71875 | 90 | 0.429557 |
3143940a1c35677273eb448afe16a887f6eec384 | 4,997 | py | Python | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 110 | 2020-05-07T12:00:28.000Z | 2022-03-05T17:52:13.000Z | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 4 | 2020-05-07T12:01:21.000Z | 2021-01-01T14:23:59.000Z | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 6 | 2020-05-07T16:16:53.000Z | 2021-11-10T02:42:00.000Z | import rumps
import sys
import icon_manager
from datetime import timedelta
import timekeeper
import os
# pyinstaller --onefile -w --add-data "Icons/:Icons" --icon="Icons/timeglass.png" --clean timeglass.spec
# rumps.debug_mode(True)
if __name__ == "__main__":
default_secounds = 60 * 60
TimerApp(default_secou... | 33.092715 | 132 | 0.553932 |
3143e4df394889222436d2c1bdb781765f3da6bd | 223 | py | Python | example_bot/bot.py | JakeCover/Flare-DiscordPy | 24cc2541a6ef548583e46d58ae18abe72da5f37f | [
"MIT"
] | 1 | 2021-04-02T20:16:03.000Z | 2021-04-02T20:16:03.000Z | example_bot/bot.py | JakeCover/Flare-DiscordPy | 24cc2541a6ef548583e46d58ae18abe72da5f37f | [
"MIT"
] | null | null | null | example_bot/bot.py | JakeCover/Flare-DiscordPy | 24cc2541a6ef548583e46d58ae18abe72da5f37f | [
"MIT"
] | null | null | null | import os
from discord.ext.commands import Bot
from Flare import Flare
bot = Bot("~~")
bot.add_cog(Flare(bot))
bot.run(os.environ.get("BOT_TOKEN"))
| 13.117647 | 36 | 0.695067 |
31449da74730870d929a003f3070a25b350f24be | 1,869 | py | Python | utils/logger.py | huangxd-/BTC-ISMIR19 | cc2df75de9aba9af1c240a243ca167b1a8b07f7b | [
"MIT"
] | 82 | 2019-07-04T06:12:15.000Z | 2022-03-07T06:47:42.000Z | utils/logger.py | sungbohsun/b19 | 8d376c4284bd843664d81e3602d6e3e106d23cd4 | [
"MIT"
] | 4 | 2020-01-28T01:47:24.000Z | 2021-05-21T16:45:39.000Z | utils/logger.py | sungbohsun/b19 | 8d376c4284bd843664d81e3602d6e3e106d23cd4 | [
"MIT"
] | 13 | 2019-10-12T04:34:38.000Z | 2022-01-03T02:13:31.000Z | import logging
import os
import sys
import time
project_name = os.getcwd().split('/')[-1]
_logger = logging.getLogger(project_name)
_logger.addHandler(logging.StreamHandler())
| 25.60274 | 85 | 0.594971 |
3144e6270af5c5cebfce71812937eeb79f014048 | 882 | py | Python | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | 5 | 2021-07-05T18:03:45.000Z | 2021-07-16T09:31:02.000Z | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | null | null | null | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | null | null | null | import setuptools
ver = {}
with open('OpenControl/_version.py') as fd:
exec(fd.read(), ver)
version = ver.get('__version__')
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="OpenControl",
version=version,
author="VNOpenAI",
author_e... | 29.4 | 72 | 0.659864 |
31462c4ba41af6d515b3c86cd2798c8806f3724f | 65,264 | py | Python | ismore/plants.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | null | null | null | ismore/plants.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | null | null | null | ismore/plants.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | null | null | null | '''See the shared Google Drive documentation for an inheritance diagram that
shows the relationships between the classes defined in this file.
'''
import numpy as np
import socket
import time
from riglib import source
from ismore import settings, udp_feedback_client
import ismore_bmi_lib
from utils.constants import *... | 40.637609 | 155 | 0.58412 |
3146c14380ad5914b64e35f3048435f94f9e6ee7 | 22,089 | py | Python | catalog/client/services/catalog.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/client/services/catalog.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/client/services/catalog.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
""" EOSS catalog system
functionality for the catalog endpoint
"""
from utilities.web_utils import remote_file_exists
__author__ = "Thilo Wehrmann, Steffen Gebhardt"
__copyright__ = "Copyright 2016, EOSS GmbH"
__credits__ = ["Thilo Wehrmann", "Steffen Gebhardt"]
__license__ = "GPL"
__version__... | 43.740594 | 145 | 0.552175 |
3146dc4305a3e628e2c3b3c5cb8a0e5989294e0f | 8,919 | py | Python | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import tier1, skipif_ui_not_support, ui
from ocs_ci.ocs.ui.pvc_ui import PvcUI
from ocs_ci.framework.testlib import skipif_ocs_version
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.ocs.resources.pvc import get_all_pvc_objs, ge... | 31.40493 | 92 | 0.595582 |
3146f37afae0ee7bf1ffcaaddfa9a23cd4051a59 | 1,955 | py | Python | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 6 | 2020-09-22T06:54:51.000Z | 2021-03-25T05:38:05.000Z | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 12 | 2020-09-21T13:20:49.000Z | 2021-04-07T08:01:12.000Z | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | null | null | null | import pandas as pd
from feature_generation.datasets.Timeseries import Timeseries
from os.path import basename
| 39.897959 | 78 | 0.636317 |
314716be771983df86f570f640cfc57d97707513 | 16,103 | py | Python | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | 2 | 2019-03-04T08:51:00.000Z | 2019-11-04T10:42:13.000Z | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | null | null | null | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | null | null | null | from sys import exit
from colour import *
from rs.reaction_system import ReactionSystem
# EOF
| 37.103687 | 145 | 0.541949 |
3147807fd05cce08c68a76d2267bf8400ec93917 | 9,241 | py | Python | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | import os
import time
import fire
import torch
import random
import numpy as np
import pandas as pd
import torch.nn.functional as F
## to detach from monitor
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from trainer import Trainer
from model import ConvNet1D
from helpers imp... | 37.872951 | 136 | 0.634455 |
31489fbab4ef2b5a4414a0a8b4a377eb59e53266 | 730 | py | Python | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | null | null | null | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | 5 | 2020-09-19T08:52:48.000Z | 2021-06-02T03:29:38.000Z | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | 2 | 2020-09-19T08:45:47.000Z | 2020-11-07T12:00:24.000Z | import unittest
from src.fetchers.hvdcLineCktOwnersFetcher import getOwnersForHvdcLineCktIds
import datetime as dt
from src.appConfig import getConfig
| 31.73913 | 82 | 0.680822 |
314a3567674f4832f50804842163798ba6755e31 | 1,322 | py | Python | 3rdParty/boost/1.71.0/libs/python/test/iterator.py | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/boost/1.71.0/libs/python/test/iterator.py | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/boost/1.71.0/libs/python/test/iterator.py | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | # Copyright David Abrahams 2004. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
from __future__ import print_function
'''
>>> from iterator_ext import *
>>> from input_iterator import *
>>> x = list_int()
>>> x.push_... | 16.734177 | 71 | 0.599849 |
314a37a6a50187301c229c5c2b0248cf18eb14ce | 5,995 | py | Python | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | # -*- Python -*-
# license
# license.
# ======================================================================
"""Looks name up in the [geonames database](http://www.geonames.org/).
[GeoNames Search Webservice API](http://www.geonames.org/export/geonames-search.html)
"""
import sys, os, urllib.request, json, time
fro... | 37.006173 | 177 | 0.481568 |
314a686b41ad5ce98c4fc71d262791e5baa688cc | 117 | py | Python | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | import subprocess
import sys
import django.conf
import django.utils.encoding
subprocess.Popen
sys.argv
plt.<caret> | 11.7 | 28 | 0.820513 |
314b449f6ae2a854d067dfd6393a546317c348b5 | 2,921 | py | Python | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | # 271. Encode and Decode Strings
'''
Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings.
Machine 1 (sender) has the function:
string encode(vector<string> strs) {
// ... your code
return encoded_string;
... | 30.113402 | 162 | 0.624444 |
314bff70a566f2c7c9e67a0b7e9a88c99668d8c8 | 857 | py | Python | ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v2_0/deserialization/deserialize_invoice_number_query.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from typing import Optional
import xml.etree.ElementTree as ET
from ...xml.XmlReader import XmlReader as XR
from ..namespaces import API
from ..namespaces import DATA
from ...deserialization.create_enum import create_enum
from ..dto.InvoiceNumberQuery import InvoiceNumberQuery
from ..dto.InvoiceDirection import Invoice... | 37.26087 | 109 | 0.771295 |
314c834bc34744a5153b8449b8d6ede84e3fa535 | 1,614 | py | Python | scripts/markov_rulesets.py | takuyakanbr/covfefe | 8d6a88c838945fc8c8b8c88d19b775ec48a998b7 | [
"BSD-3-Clause"
] | null | null | null | scripts/markov_rulesets.py | takuyakanbr/covfefe | 8d6a88c838945fc8c8b8c88d19b775ec48a998b7 | [
"BSD-3-Clause"
] | 4 | 2019-12-02T17:39:27.000Z | 2019-12-02T17:43:49.000Z | scripts/markov_rulesets.py | takuyakanbr/covfefe | 8d6a88c838945fc8c8b8c88d19b775ec48a998b7 | [
"BSD-3-Clause"
] | null | null | null | # Script to generate the necessary grammar rules for the
# markov generator output type
# Dataset:
# http://www.drmaciver.com/2009/12/i-want-one-meelyun-sentences/
import re
ALPHA = ' abcdefghijklmnopqrstuvwxyz'
# read data from file
with open('sentences', 'r', encoding="utf8") as f:
content = f.read().splitlin... | 24.454545 | 64 | 0.502478 |
314ff3ce95a071becc9963a4bf86bce7daa74c66 | 2,465 | py | Python | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import dsl
from shapely.wkt import loads as wkt_loads
from . import FixtureTest
| 79.516129 | 1,057 | 0.714807 |
3150323baad4c964b663614ac688ae658dd6c3a5 | 1,129 | py | Python | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.front.common.partial_infer.utils import mo_array
from openvino.tools.mo.ops.proposal import ProposalOp
from openvino.tools.mo.front.caffe.collect_attributes import merge_attrs
from openvino.tools.mo.front.extractor... | 34.212121 | 72 | 0.681134 |
315044a27a790f45a0932ccbc6e97fab229aec69 | 667 | py | Python | mk42/apps/users/migrations/0003_auto_20170614_0038.py | vint21h/mk42 | 1574d1143ea829212203f2be0b11b44de1e7c722 | [
"WTFPL"
] | 5 | 2017-06-18T17:04:49.000Z | 2017-11-02T11:44:36.000Z | mk42/apps/users/migrations/0003_auto_20170614_0038.py | vint21h/mk42 | 1574d1143ea829212203f2be0b11b44de1e7c722 | [
"WTFPL"
] | 13 | 2017-07-05T06:35:42.000Z | 2017-09-06T02:04:04.000Z | mk42/apps/users/migrations/0003_auto_20170614_0038.py | vint21h/mk42 | 1574d1143ea829212203f2be0b11b44de1e7c722 | [
"WTFPL"
] | 10 | 2017-06-29T05:31:52.000Z | 2017-10-27T09:31:32.000Z | # -*- coding: utf-8 -*-
# mk42
# mk42/apps/users/migrations/0003_auto_20170614_0038.py
# Generated by Django 1.11.2 on 2017-06-14 00:38
from __future__ import unicode_literals
from django.db import (
migrations,
models,
)
| 23 | 189 | 0.635682 |
315100585ad8fffd2754fc98108600f71764e4fa | 3,271 | py | Python | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | null | null | null | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | null | null | null | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | 1 | 2022-02-09T07:06:09.000Z | 2022-02-09T07:06:09.000Z | import pickle
import pandas as pd
import torch
import torch.nn as nn
import torchvision.transforms as T
from torch.utils import data
from torch.utils.data import random_split
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.dataset import Dataset
from datasets.celeba import CelebA1000
from dat... | 33.040404 | 78 | 0.697035 |
31517240d14ea2064075bc5b5b6dfd061de1cb2d | 8,594 | py | Python | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
from KratosMultiphysics import *
from KratosMultiphysics.IncompressibleFluidApplication import *
from KratosMultiphysics.FluidDynamicsApplication import *
from KratosMultiphysics.Exter... | 40.729858 | 155 | 0.728764 |
3152a37b3680f114e554c550f939501a4b8c1547 | 4,475 | py | Python | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | 1 | 2017-01-10T18:47:54.000Z | 2017-01-10T18:47:54.000Z | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | """
Annotate VCF files with VRS
Input Format: VCF
Output Format: VCF
The user should pass arguments for the VCF input, VCF output, &
the vrs object file name.
ex. python3 src/ga4gh/vrs/extras/vcf_annotation.py input.vcf.gz --out
./output.vcf.gz --vrs-file ./vrs_objects.pkl
"""
import argparse
import sys
import pick... | 36.382114 | 104 | 0.666592 |
3153b18dc5b355a77d44d559ba2a0ad4652444b2 | 11,438 | py | Python | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | import glob
import hashlib
import logging
import os
import shutil
import subprocess
from functools import wraps
from tempfile import gettempdir
from threading import Thread
import requests
from timeout_decorator import timeout
from utils.constants import Constant
from utils.format import Format
logger = logging.getL... | 37.016181 | 128 | 0.573439 |
3154dea931b787a54d8711fa79545f3f1aea8641 | 1,076 | py | Python | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 676 | 2018-12-28T09:53:51.000Z | 2020-04-10T16:28:57.000Z | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 133 | 2018-12-27T16:01:35.000Z | 2020-04-11T04:49:01.000Z | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 164 | 2019-01-02T07:40:33.000Z | 2020-04-11T06:54:30.000Z | """
: 1.3.0+
"""
import re
from nonebot import CommandSession
from nonebot.helpers import render_expression
def handle_cancellation(session: CommandSession):
"""
```````` `session.finish()` `SESSION_CANCEL_EXPRESSION`
:
session:
"""
return control
__all__ = [
'handl... | 20.692308 | 115 | 0.621747 |
31580ef618e975209c707f821f01726f7b8d5bf6 | 21,726 | py | Python | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | """Class to handle the dipoles."""
# Authors: Mainak Jas <mjas@mgh.harvard.edu>
# Sam Neymotin <samnemo@gmail.com>
import warnings
import numpy as np
from copy import deepcopy
from .viz import plot_dipole, plot_psd, plot_tfr_morlet
def simulate_dipole(net, tstop, dt=0.025, n_trials=None, record_vsoma=Fals... | 36.270451 | 79 | 0.589708 |
315848ad3b388abc47c5004cde951c763a8f0cc9 | 9,728 | py | Python | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | from billy.scrape.bills import BillScraper, Bill
from billy.scrape.votes import Vote
from collections import defaultdict
from .util import get_client, get_url, backoff
# Methods (7):
# GetLegislationDetail(xs:int LegislationId, )
#
# GetLegislationDetailByDescription(ns2:DocumentType Docu... | 36.298507 | 82 | 0.42722 |
31586b0e8440ac0fb7f47895645a135f6339d512 | 15,014 | py | Python | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import argparse
import numpy as np
import glob
import re
from log import print_to_file
from scipy.fftpack import fftn, ifftn
from skimage.feature import peak_local_max, canny
from skimage.transform import hough_circle
import pickle as pickle
from paths import TRAIN_DATA_PATH, LOGS_PATH, PKL_TRAIN_DATA_PATH, PK... | 39.719577 | 128 | 0.566405 |
31594d1cfb6364ea7147487913cd57829792bf34 | 2,530 | py | Python | scrapers/scrapsfbos.py | ndd365/showup | fae0cdc52d306e6bbb538e8f66afe1d7a51006b8 | [
"MIT"
] | 48 | 2016-12-12T13:59:30.000Z | 2021-01-22T01:34:39.000Z | scrapers/scrapsfbos.py | ndd365/showup | fae0cdc52d306e6bbb538e8f66afe1d7a51006b8 | [
"MIT"
] | null | null | null | scrapers/scrapsfbos.py | ndd365/showup | fae0cdc52d306e6bbb538e8f66afe1d7a51006b8 | [
"MIT"
] | 4 | 2017-02-02T16:59:47.000Z | 2017-08-23T11:05:47.000Z | import feedparser
from bs4 import BeautifulSoup
from dateutil.parser import parse
from datetime import timedelta
import pytz
from apiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
from oauth2client.service_account import ServiceAccountCredentials
scopes = 'https:... | 24.326923 | 98 | 0.650988 |
315a3b06d331b60c879edde3bb3f8225ff91970d | 2,280 | py | Python | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | 21 | 2018-10-16T09:29:03.000Z | 2022-03-11T23:31:35.000Z | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | import os
import sys
LOCALPATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, LOCALPATH + '/../../../../')
from app.api.v2.db import Db
def format_book(book):
"""Formats the results to a dictionary"""
book = {
"id": book[0],
"title": book[1],
"description": book[2],... | 29.230769 | 251 | 0.542105 |
315b4dedab79caa0f06b6a0165468d87637edc35 | 13,809 | py | Python | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Main module."""
import os
from google.cloud import bigquery
from pbq.query import Query
from google.cloud import bigquery_storage_v1beta1
from google.cloud.exceptions import NotFound
from google.api_core.exceptions import BadRequest
import pandas as pd
import datetime
| 33.194712 | 119 | 0.608444 |
315b6ac655327cef9390472518effc0e9ec5a90d | 14,829 | py | Python | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 20 | 2015-01-16T21:35:27.000Z | 2021-11-11T00:22:43.000Z | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 14 | 2015-01-15T21:26:33.000Z | 2016-01-18T16:47:15.000Z | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 14 | 2015-02-14T22:42:40.000Z | 2021-11-11T00:22:33.000Z | import re
import types
from functools import partial
LITERAL_TYPE = types.StringTypes + (int, float, long, bool, )
| 43.872781 | 80 | 0.534763 |
315b8d418921022e63456c61eb0e983243286ff8 | 245 | py | Python | head_first_v2/ch4/modules/setup.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | head_first_v2/ch4/modules/setup.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | head_first_v2/ch4/modules/setup.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='lsearch',
version='1.0',
description='The Head First Python Search Tools', author='HF Python 2e', author_email='hfpy2e@gmail.com',
url='headfirstlabs.com',
py_modules=['lsearch'],
)
| 24.5 | 109 | 0.685714 |
315b93d96e58679d201ae083e0a5ae302d382049 | 1,519 | py | Python | desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 219 | 2017-12-12T09:42:46.000Z | 2022-03-13T08:25:13.000Z | desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 11 | 2017-12-14T08:14:51.000Z | 2021-08-09T18:37:45.000Z | desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 45 | 2017-12-14T07:26:36.000Z | 2022-03-11T09:36:56.000Z | from desktop_local_tests.public_ip_during_disruption import PublicIPDuringDisruptionTestCase
from desktop_local_tests.windows.windows_reorder_adapters_disrupter import WindowsReorderAdaptersDisrupter
| 36.166667 | 106 | 0.768269 |
315c5ece992cd3a2685eecad7131fd0199252e5a | 16,739 | py | Python | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 137 | 2018-03-05T11:53:29.000Z | 2019-11-03T16:38:42.000Z | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 385 | 2018-03-08T12:43:41.000Z | 2019-11-10T09:15:36.000Z | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 59 | 2018-03-08T10:08:27.000Z | 2019-10-26T11:30:44.000Z | import json
import logging
from http import HTTPStatus
from typing import Any, Dict, List, Optional, Tuple, Type, Union
import werkzeug
from flask import Blueprint, Flask, Response, abort, jsonify
from flask.views import MethodView
from flask_cors import CORS
from gevent.pywsgi import WSGIServer
from geventwebsocket i... | 38.837587 | 98 | 0.714798 |
315c82c7ef0cdf26d1ed8dc3787880aa67476f2f | 1,329 | py | Python | stability/stairs_contacts.py | haudren/stability-polygon | b5e42bbd6eda2426a2c0d70716fbf956ce63f290 | [
"MIT"
] | null | null | null | stability/stairs_contacts.py | haudren/stability-polygon | b5e42bbd6eda2426a2c0d70716fbf956ce63f290 | [
"MIT"
] | null | null | null | stability/stairs_contacts.py | haudren/stability-polygon | b5e42bbd6eda2426a2c0d70716fbf956ce63f290 | [
"MIT"
] | null | null | null | import numpy as np
pos = []
normals = []
p = [[-0.4722227, -0.24517583, -0.6370031]]
n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]]
pos.append(p)
normals.append(n)
p = [[-0.2549828, -0.24587737, -0.63704705]]
n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]]
pos.append(p)
normals.append(n)
p = [[-0.2... | 23.315789 | 57 | 0.653123 |
315dcc7fa72c3932ae805d3e9b9008f00630dab8 | 15,428 | py | Python | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | import inspect
import re
import types
from collections import namedtuple
from typing import List, Union, Dict
from flask_restplus import fields
from ...common import MetaData, Entry, Arg, ArgSource, RpcType,\
type_def, rpc_doc_args_key, rpc_doc_resp_key, rpc_impl_rename
from ...common.web.namespace import get_nam... | 29.899225 | 118 | 0.598004 |
315e0a58614b3057e6b0218dbfb71a1a5db2f377 | 5,306 | py | Python | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | import logging
import random
from time import time
from threading import RLock, Lock, Thread
from bot import LOGGER, download_dict, download_dict_lock, app, STOP_DUPLICATE, STORAGE_THRESHOLD
from bot.helper.ext_utils.bot_utils import get_readable_file_size
from ..status_utils.telegram_download_status import TelegramD... | 40.503817 | 104 | 0.604222 |
315f8e1d96aaa1b3755c0089f370b7d2dae3e33b | 646 | py | Python | setup.py | goofmint/qualityforward-py | 299c11cb4769fb8c42bfd2d553a5c1c1f042d2de | [
"MIT"
] | null | null | null | setup.py | goofmint/qualityforward-py | 299c11cb4769fb8c42bfd2d553a5c1c1f042d2de | [
"MIT"
] | null | null | null | setup.py | goofmint/qualityforward-py | 299c11cb4769fb8c42bfd2d553a5c1c1f042d2de | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="qualityforward",
version="1.1",
author="Atsushi Nakatsugawa",
author_email="atsushi@moongift.jp",
description="Python library for QualityForward API",
long_description="This is python library for QualityForward API. QualityForward is cloud based test m... | 34 | 125 | 0.695046 |
31615431c1549d43bb6f82b1e2019a1850b2c3a4 | 1,945 | py | Python | backend/trips/models.py | repeating/PoputchikiInno | 54b60cfd3c40a25357667c4044fd477f3b6b9152 | [
"CC-BY-4.0"
] | 20 | 2021-09-23T16:33:34.000Z | 2022-01-08T08:56:10.000Z | backend/trips/models.py | repeating/PoputchikiInno | 54b60cfd3c40a25357667c4044fd477f3b6b9152 | [
"CC-BY-4.0"
] | null | null | null | backend/trips/models.py | repeating/PoputchikiInno | 54b60cfd3c40a25357667c4044fd477f3b6b9152 | [
"CC-BY-4.0"
] | 2 | 2021-09-23T16:31:39.000Z | 2021-12-17T01:02:01.000Z | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, AbstractUser
from django.utils import timezone
from django.utils.translation import gettext as _
from django import forms
from django.contrib.auth.hashers import make_password
from django.contrib.auth import get_user... | 32.966102 | 87 | 0.684833 |
31617ded12576d7c4174e3e0dd3d96d3659501e5 | 6,957 | py | Python | jcs/jcs_main.py | orenmel/lexsub | 4197fccf489670fdc4e5510971f4288b9d0b1625 | [
"Apache-2.0"
] | 26 | 2016-07-28T03:05:07.000Z | 2021-05-14T05:02:38.000Z | jcs/jcs_main.py | afcarl/lexsub | 4197fccf489670fdc4e5510971f4288b9d0b1625 | [
"Apache-2.0"
] | 11 | 2018-09-14T12:20:25.000Z | 2021-05-03T18:54:42.000Z | jcs/jcs_main.py | afcarl/lexsub | 4197fccf489670fdc4e5510971f4288b9d0b1625 | [
"Apache-2.0"
] | 18 | 2016-11-15T14:15:23.000Z | 2022-03-15T23:41:57.000Z | '''
Run lexical substitution experiments
'''
import sys
import time
import argparse
import re
import numpy
from jcs.jcs_io import extract_word_weight
from jcs.data.context_instance import ContextInstance
from jcs.jcs_io import vec_to_str
from jcs.jcs_io import vec_to_str_generated
from jcs.cs_embedd... | 44.883871 | 193 | 0.655455 |
3162214c539ed97be79534accd9664fa733e424a | 151 | py | Python | src/django_richenum/__init__.py | adepue/django-richenum | 20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333 | [
"MIT"
] | null | null | null | src/django_richenum/__init__.py | adepue/django-richenum | 20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333 | [
"MIT"
] | null | null | null | src/django_richenum/__init__.py | adepue/django-richenum | 20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333 | [
"MIT"
] | null | null | null | __version__ = 'unknown'
try:
__version__ = __import__('pkg_resources').get_distribution('django_richenum').version
except Exception as e:
pass
| 25.166667 | 89 | 0.761589 |
31642639391c00a85e1a2f3c4f186e8a38649689 | 5,572 | py | Python | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | import numpy
with open ("dic.txt", "w", encoding="utf-8") as dic:
for x in range(5, 790, 1):
if 92 < x <= 113:
dic.write('"'+str(x)+'"'+":"+ '"'+'1'+'",')
elif 113 < x <= 133:
dic.write('"'+str(x)+'"'+":"+ '"'+'2'+'",')
elif 133 < x <= 153:
dic.w... | 43.193798 | 59 | 0.288227 |
316518dbc6fa99ee74801a883d9600ed91d0c3e7 | 1,101 | py | Python | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | 4 | 2018-06-21T20:14:11.000Z | 2021-04-28T20:34:43.000Z | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | null | null | null | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
=============
scrim.globals
=============
Defines variables passed into the python script via Environment Variables by
scrim scripts. If SCRIM_SHELL is None, then the python script was not executed
by a scrim script.
SHELLS (list): list of available shells
SCRIM_SHELL (str): Parent ... | 32.382353 | 78 | 0.710263 |
31658cd3302ac85eb923cde2f7d6f6b205979a8e | 675 | py | Python | examples/Api/channels.py | asheshambasta/csound-expression | 290567231c1d658e07ba882b1d1c726c96af67ce | [
"BSD-3-Clause"
] | null | null | null | examples/Api/channels.py | asheshambasta/csound-expression | 290567231c1d658e07ba882b1d1c726c96af67ce | [
"BSD-3-Clause"
] | null | null | null | examples/Api/channels.py | asheshambasta/csound-expression | 290567231c1d658e07ba882b1d1c726c96af67ce | [
"BSD-3-Clause"
] | null | null | null | import csnd6
| 25 | 55 | 0.58963 |
31679637922287de633bd72c77660e49f2f5bfb1 | 2,693 | py | Python | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Query the Google Books (JSON API v1) service for metadata."""
import logging
from .dev import stdmeta
from .dev._bouth23 import u
from .dev._exceptions import ISBNNotConsistentError, RecordMappingError
from .dev.webquery import query as wquery
UA = 'isbnlib (gzip)'
SERVICE_URL = (
'htt... | 37.402778 | 79 | 0.625325 |
3169b8c988e95bc8f6880f27dbdb8bd8e3429cbb | 1,949 | py | Python | gdxpds/test/conftest.py | cdgaete/gdx-pandas | 2b9b00a177268227bce189939cdab081e09cb0dc | [
"BSD-3-Clause"
] | 42 | 2016-02-24T04:23:24.000Z | 2022-02-02T09:42:18.000Z | gdxpds/test/conftest.py | cdgaete/gdx-pandas | 2b9b00a177268227bce189939cdab081e09cb0dc | [
"BSD-3-Clause"
] | 68 | 2015-08-06T14:25:22.000Z | 2022-01-03T13:38:51.000Z | gdxpds/test/conftest.py | cdgaete/gdx-pandas | 2b9b00a177268227bce189939cdab081e09cb0dc | [
"BSD-3-Clause"
] | 21 | 2017-04-25T06:21:42.000Z | 2021-08-24T14:01:27.000Z | # [LICENSE]
# Copyright (c) 2020, Alliance for Sustainable Energy.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# 1. Redistributions of source code must retain the above
# copyright no... | 39.77551 | 69 | 0.75372 |
3169daa74af1845e0439f54da803485adef48067 | 11,534 | py | Python | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 29 | 2021-07-26T07:16:38.000Z | 2022-03-27T15:10:34.000Z | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 176 | 2021-07-23T08:30:21.000Z | 2022-03-14T12:29:06.000Z | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 16 | 2021-07-26T20:55:40.000Z | 2022-03-18T15:32:17.000Z | import os
import time
from pathlib import Path
import numpy as np
import pytest
from jina import Document, DocumentArray, Executor, Flow
from jina.logging.profile import TimeContext
from jina_commons.indexers.dump import import_metas, import_vectors
from ..postgres_indexer import PostgreSQLStorage
from ..postgreshand... | 32.398876 | 86 | 0.660135 |
3169e4d8e7a2dd174944cc17f672b8a7919b6ebd | 1,928 | py | Python | targhe/models.py | luca772005/studio | 8d19d28f13f400aa4dde84c36e44cf5891d18ddd | [
"MIT"
] | null | null | null | targhe/models.py | luca772005/studio | 8d19d28f13f400aa4dde84c36e44cf5891d18ddd | [
"MIT"
] | null | null | null | targhe/models.py | luca772005/studio | 8d19d28f13f400aa4dde84c36e44cf5891d18ddd | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 26.410959 | 77 | 0.688278 |
316ab7186375a4578bd0e98836f8f14461a4cb68 | 42 | py | Python | WhatSender/__init__.py | Shauryasamant/whatsender | 057a3f971667ea8992d6645645854604c3c4d071 | [
"Unlicense"
] | 1 | 2022-01-04T10:48:06.000Z | 2022-01-04T10:48:06.000Z | WhatSender/__init__.py | Shauryasamant/whatsender | 057a3f971667ea8992d6645645854604c3c4d071 | [
"Unlicense"
] | null | null | null | WhatSender/__init__.py | Shauryasamant/whatsender | 057a3f971667ea8992d6645645854604c3c4d071 | [
"Unlicense"
] | 2 | 2022-01-05T04:14:28.000Z | 2022-02-12T07:49:15.000Z | from WhatSender.sender import SendMessage
| 21 | 41 | 0.880952 |
316b197711d08876516f43059dd4d069e90c4efc | 9,605 | py | Python | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | import pickle
from time import sleep
import googleapiclient.errors
from transliterate import translit
from logs.logging import get_logger
from api_google.google_api_sheets import get_sheets_service, get_multiple_ranges
from api_google.google_api_directory import get_directory_service, get_users_for_domain, \
get_... | 38.42 | 100 | 0.504112 |
316b518ce4f1c79a069f5d1878febd49adb00f4b | 15,524 | py | Python | src/GridCal/Gui/TowerBuilder/gui.py | SanPen/GridCal | fd3c24afff91325b8b682b03cab2b8b8edcdda57 | [
"BSD-3-Clause"
] | 284 | 2016-01-31T03:20:44.000Z | 2022-03-17T21:16:52.000Z | src/GridCal/Gui/TowerBuilder/gui.py | SanPen/GridCal | fd3c24afff91325b8b682b03cab2b8b8edcdda57 | [
"BSD-3-Clause"
] | 94 | 2016-01-14T13:37:40.000Z | 2022-03-28T03:13:56.000Z | src/GridCal/Gui/TowerBuilder/gui.py | SanPen/GridCal | fd3c24afff91325b8b682b03cab2b8b8edcdda57 | [
"BSD-3-Clause"
] | 84 | 2016-03-29T10:43:04.000Z | 2022-02-22T16:26:55.000Z | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'gui.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
######################... | 42.883978 | 134 | 0.706648 |
316d44c48b3f5f89c962c9581225af2c135bfd22 | 15,800 | py | Python | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | null | null | null | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | null | null | null | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | 1 | 2020-03-09T20:34:51.000Z | 2020-03-09T20:34:51.000Z | #!/usr/bin/env python
# Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
Lidar/BB check for CARLA
This script obtains the LiDAR's point cloud cor... | 42.473118 | 131 | 0.641582 |
316eeacabbf87d7b1bf94354ea4d069d44ec787b | 1,797 | py | Python | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Text files created on DOS/Windows machines have different line endings than
files created on Unix/Linux. DOS uses carriage return and new line ("\r\n")
as a line ending, while Unix uses just new line ("\n"). The purpose of this
script is to have a quick, on the go, shell friendly... | 26.820896 | 88 | 0.608236 |
316f081d38d5db97224f8daf18cc8e5e6ca27466 | 138 | py | Python | reference/Python/media/moviepy/audio/extract_audio.py | steadylearner/code | ba6df6c38a6e25b7ea996f4df905921e27760e04 | [
"MIT"
] | 4 | 2019-07-17T14:43:32.000Z | 2022-03-27T21:38:01.000Z | reference/Python/media/moviepy/audio/extract_audio.py | steadylearner/code | ba6df6c38a6e25b7ea996f4df905921e27760e04 | [
"MIT"
] | 39 | 2020-09-04T03:31:16.000Z | 2022-03-08T22:54:03.000Z | reference/Python/media/moviepy/audio/extract_audio.py | steadylearner/code | ba6df6c38a6e25b7ea996f4df905921e27760e04 | [
"MIT"
] | 1 | 2021-03-03T13:04:28.000Z | 2021-03-03T13:04:28.000Z | import sys
from moviepy.editor import *
clip = VideoFileClip(sys.argv[1])
audioclip = clip.audio
audioclip.write_audiofile(sys.argv[2])
| 17.25 | 38 | 0.775362 |
316f355464f64ade9dfc879dc379fa3194ccd5a6 | 363 | py | Python | objettoqt/mixins.py | brunonicko/objettoqt | 1a91ef58d4540b7f377e405492d35ccd222d71d5 | [
"MIT"
] | null | null | null | objettoqt/mixins.py | brunonicko/objettoqt | 1a91ef58d4540b7f377e405492d35ccd222d71d5 | [
"MIT"
] | null | null | null | objettoqt/mixins.py | brunonicko/objettoqt | 1a91ef58d4540b7f377e405492d35ccd222d71d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Mix-in classes for `Qt` types."""
from ._mixins import (
OQAbstractItemModelMixin,
OQAbstractItemViewMixin,
OQObjectMixin,
OQWidgetMixin,
)
from ._views import OQListViewMixin
__all__ = [
"OQObjectMixin",
"OQWidgetMixin",
"OQAbstractItemModelMixin",
"OQAbstra... | 19.105263 | 36 | 0.683196 |
316f3a2d1cd58368907db8ec0798ba08d6c7d1c7 | 527 | py | Python | util/mccLog.py | ccchooko/webControlClient | f12cf76d364c5270166c99a508d08999c7ed920c | [
"Apache-2.0"
] | null | null | null | util/mccLog.py | ccchooko/webControlClient | f12cf76d364c5270166c99a508d08999c7ed920c | [
"Apache-2.0"
] | null | null | null | util/mccLog.py | ccchooko/webControlClient | f12cf76d364c5270166c99a508d08999c7ed920c | [
"Apache-2.0"
] | null | null | null | #-*-coding:utf8-*-
import logging
from datetime import datetime
| 29.277778 | 75 | 0.580645 |
31705467ec2a06cfd21ab38f7b5f8cfa554d22cc | 1,066 | py | Python | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | # Oliver Keen
# Software Engineering 001
# jumble_solver.py
# 2/17/2021
# Assignment:
# Consider the game "Jumble"
# https://www.sandiegouniontribune.com/sd-jumble-daily-htmlstory.html
# Create a Python program to find the individual words in Jumble puzzles such
# that INJURE prints after entering the following: solve... | 28.810811 | 78 | 0.673546 |
317065682fd309f044a68646decdf80a32e30ac3 | 19,137 | py | Python | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Mycroft AI, Inc.
#
# This file is part of Mycroft Skills Manager
# (see https://github.com/MycroftAI/mycroft-skills-manager).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf... | 34.234347 | 87 | 0.576684 |
3170ca6ee7a6eb3f4bee950684186e4a99de1a8e | 1,356 | py | Python | sleekxmpp/plugins/xep_0027/stanza.py | elrond79/SleekXMPP | 62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f | [
"BSD-3-Clause"
] | 3 | 2019-02-01T06:50:08.000Z | 2020-03-24T00:45:31.000Z | sleekxmpp/plugins/xep_0027/stanza.py | elrond79/SleekXMPP | 62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f | [
"BSD-3-Clause"
] | 1 | 2017-11-07T13:03:48.000Z | 2017-11-07T13:03:48.000Z | sleekxmpp/plugins/xep_0027/stanza.py | elrond79/SleekXMPP | 62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f | [
"BSD-3-Clause"
] | null | null | null | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.xmlstream import ElementBase
| 25.111111 | 72 | 0.597345 |
31717266252a0d2d31a5a6a58dab2e9b98e48596 | 821 | py | Python | tcptofpc.py | catenacyber/fuzzpcap | 100db6cefd77238f623b5127a3efed01c7333cad | [
"MIT"
] | 6 | 2021-04-09T03:13:39.000Z | 2022-01-26T14:49:31.000Z | tcptofpc.py | catenacyber/fuzzpcap | 100db6cefd77238f623b5127a3efed01c7333cad | [
"MIT"
] | null | null | null | tcptofpc.py | catenacyber/fuzzpcap | 100db6cefd77238f623b5127a3efed01c7333cad | [
"MIT"
] | null | null | null | #tshark -r input.pcap -qz "follow,tcp,raw,0"
import struct
import sys
import binascii
import subprocess
result = subprocess.Popen( ["tshark", "-r", sys.argv[1], "-qz", "follow,tcp,raw,0"],
stdout=subprocess.PIPE)
sys.stdout.buffer.write(b"FPC\x80")
for i in range(4):
result.stdout.rea... | 27.366667 | 84 | 0.615104 |
3171f6a5227dcae1608234024716446ac61ead63 | 4,588 | py | Python | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | 1 | 2022-03-12T01:04:15.000Z | 2022-03-12T01:04:15.000Z | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | null | null | null | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | null | null | null | """
Created: November 11, 2020
Author: Kyle Koeller
Python Version 3.9
This program is meant to make the process of collecting the different filters from AIJ excel spreadsheets faster.
The user enters however many nights they have and the program goes through and checks those text files for the
different columns for,H... | 37.300813 | 114 | 0.623147 |
3172a2c22ec1638c70e59d5c5b2388f4aa10d1ba | 788 | py | Python | backend/songwriter/migrations/0006_auto_20170902_0723.py | giliam/turbo-songwriter | 3d100b08dc19c60d7a1324120e06bd9f971eea5a | [
"MIT"
] | null | null | null | backend/songwriter/migrations/0006_auto_20170902_0723.py | giliam/turbo-songwriter | 3d100b08dc19c60d7a1324120e06bd9f971eea5a | [
"MIT"
] | 12 | 2017-09-25T20:13:29.000Z | 2020-02-12T00:12:41.000Z | backend/songwriter/migrations/0006_auto_20170902_0723.py | giliam/turbo-songwriter | 3d100b08dc19c60d7a1324120e06bd9f971eea5a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-02 05:23
from __future__ import unicode_literals
from django.db import migrations
| 24.625 | 60 | 0.548223 |
3174581bfbf5c193b24ab07d26b208bd2900562c | 1,073 | py | Python | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | CHARACTERS_PER_LINE = 39
if __name__ == '__main__':
print(break_lines('The <y<Spirit of the Sword>> guides the goddess\' chosen hero to <r<Skyloft Village>>'))
print(break_lines('Hey, you look like you have a Questions?'))
print(break_lines('Skyloft Peater/Peatrice\'s Crystals has Bug Net'))
| 33.53125 | 111 | 0.538677 |
31749eb3567f7fa78e149effb86fecf4648c3519 | 1,501 | py | Python | tools/isolate/data/isolate/with_flag.py | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | tools/isolate/data/isolate/with_flag.py | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | tools/isolate/data/isolate/with_flag.py | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
if __name__ == '__main__':
sys.exit(main())
| 28.320755 | 77 | 0.632911 |
31759cd8846fcd05727a01352dd32131306245ac | 8,957 | py | Python | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 1 | 2019-12-06T13:57:43.000Z | 2019-12-06T13:57:43.000Z | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 1 | 2019-08-01T15:56:28.000Z | 2019-08-01T15:56:28.000Z | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 2 | 2020-07-21T15:25:13.000Z | 2021-07-18T18:39:59.000Z | """Loading MNIST dataset.
"""
import struct
import numpy as np
if __name__ == "__main__":
import random
import matplotlib.pyplot as plt
# Local MNIST data
MNIST_PATH = "../../machine-learning/data/mnist/"
_test()
_test_numpy()
| 35.543651 | 97 | 0.577984 |
3175aae311124c706359c0501c4ffc334907f123 | 24,640 | py | Python | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 16 | 2020-11-04T10:12:09.000Z | 2022-03-26T13:25:16.000Z | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 5 | 2020-11-18T13:07:11.000Z | 2022-03-06T08:40:01.000Z | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 5 | 2020-11-26T09:17:23.000Z | 2022-03-06T08:40:53.000Z | import threading, queue, time, os, pickle
# from queue import Queue
import numpy as np
import tensorflow as tf
import sarnet_td3.common.tf_util as U
from tensorflow.python.keras.backend import set_session
lock = threading.Lock()
"""
REINFORCE Threads
"""
| 48.888889 | 159 | 0.544562 |
3175e1912bfa26c6bcd08777e69b55a9f3b60c38 | 823 | py | Python | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | 1 | 2020-10-19T16:08:47.000Z | 2020-10-19T16:08:47.000Z | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | null | null | null | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
from sklearn.externals import joblib
from feature import *
pipeline = joblib.load('pipeline.sav')
app = Flask(__name__)
if __name__ == '__main__':
app.run(port=8080, debug=True)
| 24.939394 | 126 | 0.668287 |
3176815070b07c8d8d7495f2cec6b2d4034159cf | 534 | py | Python | 1019.next-greater-node-in-linked-list.py | elfgzp/leetCode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | 3 | 2019-04-12T06:22:56.000Z | 2019-05-04T04:25:01.000Z | 1019.next-greater-node-in-linked-list.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | 1019.next-greater-node-in-linked-list.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
| 23.217391 | 59 | 0.5 |
3176a8260273b12af11896b419d23af210fafed0 | 268 | py | Python | WXApi/WXApi/__init__.py | KEDYY/pyweipi | 1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab | [
"MIT"
] | 1 | 2018-05-22T15:10:14.000Z | 2018-05-22T15:10:14.000Z | WXApi/WXApi/__init__.py | KEDYY/pyweipi | 1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab | [
"MIT"
] | null | null | null | WXApi/WXApi/__init__.py | KEDYY/pyweipi | 1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Create: 2014/5/20
Update: 2017/11/22
"""
from .WXError import *
from .WXMenu import *
from .WXUtils import *
from .event import *
from .request import MPCenter
__date__ = '2017/3/12'
__version__ = '1.0.1'
__license__ = 'The MIT License'
| 15.764706 | 31 | 0.671642 |
31772010bf6f4955a22aabae06749a3423e3904b | 1,315 | py | Python | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | def is_field(token):
"""Checks if the token is a valid ogc type field
"""
return token in ["name", "description", "encodingType", "location", "properties", "metadata",
"definition", "phenomenonTime", "resultTime", "observedArea", "result", "id", "@iot.id",
"resultQ... | 38.676471 | 109 | 0.543726 |
31776c8bf86532d4f839128681a9e6532c17cb04 | 1,830 | py | Python | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 12 | 2015-01-21T00:18:25.000Z | 2021-07-11T07:35:26.000Z | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 86 | 2017-01-27T11:54:46.000Z | 2020-05-20T06:25:26.000Z | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 12 | 2015-01-05T09:50:42.000Z | 2019-08-19T01:43:40.000Z | # -*- coding: utf-8 -*-
'''
A runner to access data from the salt mine
'''
from __future__ import absolute_import, print_function, unicode_literals
# Import Python Libs
import logging
# Import salt libs
import salt.utils.minions
log = logging.getLevelName(__name__)
def get(tgt, fun, tgt_type='glob'):
'''
G... | 26.142857 | 74 | 0.60765 |
3177cd1e5b203f5ec64cb02bb1434a9783422e6d | 312 | py | Python | app.py | rhedgeco/test_plaid_webapp | e821e354796da9f35689eb386df9366407e2907b | [
"MIT"
] | null | null | null | app.py | rhedgeco/test_plaid_webapp | e821e354796da9f35689eb386df9366407e2907b | [
"MIT"
] | null | null | null | app.py | rhedgeco/test_plaid_webapp | e821e354796da9f35689eb386df9366407e2907b | [
"MIT"
] | null | null | null | from plaid import Client
from backend.link_token import LinkToken
from general_falcon_webserver import WebApp
client = Client(client_id='5e2e3527dd6924001167e8e8', secret='0b89f518880456b6f60020f481b3d7', environment='sandbox')
app = WebApp()
app.add_route('link', LinkToken(client))
app.launch_webserver()
| 24 | 117 | 0.817308 |
31789285a83d618d1865746d4dfadf7a34d38be3 | 403 | py | Python | examples/circuitplayground_light_plotter.py | sommersoft/Adafruit_CircuitPython_CircuitPlayground | 418ca982b34759b2804c2e816cdb505b2b818135 | [
"MIT"
] | null | null | null | examples/circuitplayground_light_plotter.py | sommersoft/Adafruit_CircuitPython_CircuitPlayground | 418ca982b34759b2804c2e816cdb505b2b818135 | [
"MIT"
] | null | null | null | examples/circuitplayground_light_plotter.py | sommersoft/Adafruit_CircuitPython_CircuitPlayground | 418ca982b34759b2804c2e816cdb505b2b818135 | [
"MIT"
] | null | null | null | """If you're using Mu, this example will plot the light levels from the light sensor (located next
to the eye) on your Circuit Playground. Try shining a flashlight on your Circuit Playground, or
covering the light sensor to see the plot increase and decrease."""
import time
from adafruit_circuitplayground import cp
wh... | 36.636364 | 98 | 0.751861 |
31793cdf4264c68e2f922f5ab5df2e6e45071db9 | 539 | py | Python | kickeststats/exceptions.py | antimaLinux/kickscarper | c2607847f1c7ad8bc30014ab4e62f0976ace5f0f | [
"MIT"
] | null | null | null | kickeststats/exceptions.py | antimaLinux/kickscarper | c2607847f1c7ad8bc30014ab4e62f0976ace5f0f | [
"MIT"
] | 1 | 2020-10-14T06:44:12.000Z | 2020-10-14T06:44:12.000Z | kickeststats/exceptions.py | antimaLinux/kickscraper | c2607847f1c7ad8bc30014ab4e62f0976ace5f0f | [
"MIT"
] | null | null | null | """Exception utilities."""
| 20.730769 | 85 | 0.684601 |
3179df3995795589d0d2f77e4b98c9ca2097dc0f | 6,431 | py | Python | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | #
# Copyright 2018, 2020 Lars Pastewka
# 2019-2020 Antoine Sanner
# 2015-2016 Till Junge
#
# ### MIT 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 without rest... | 30.770335 | 127 | 0.605038 |
317a0b761a00f16ebd6df1752f32454650a3de35 | 2,668 | py | Python | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | 5 | 2017-03-03T10:36:51.000Z | 2019-01-14T05:12:29.000Z | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | 1 | 2017-03-30T07:18:57.000Z | 2017-03-30T07:18:57.000Z | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | null | null | null | import threading
import requests
import json
import os
from nose.tools import *
from server import Httpd
app_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "app")
| 31.388235 | 129 | 0.635682 |
317a91916b77974fe06fa6db1fb05dbc3398d9cf | 1,262 | py | Python | setup.py | holoyan/python-data-validation | e928c4131072c53cb8ace1fbaa83216f06ab6bfe | [
"MIT"
] | 3 | 2021-03-16T05:47:46.000Z | 2021-03-23T17:43:55.000Z | setup.py | holoyan/python-data-validation | e928c4131072c53cb8ace1fbaa83216f06ab6bfe | [
"MIT"
] | null | null | null | setup.py | holoyan/python-data-validation | e928c4131072c53cb8ace1fbaa83216f06ab6bfe | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pyva',
packages=find_packages(),
... | 35.055556 | 73 | 0.652139 |
317b9439891e4fcd8a172759ee5646bbfda6a0f1 | 721 | py | Python | bus_system/apps/trip/migrations/0007_auto_20210624_1812.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | bus_system/apps/trip/migrations/0007_auto_20210624_1812.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | bus_system/apps/trip/migrations/0007_auto_20210624_1812.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-06-24 18:12
from django.db import migrations, models
import django.db.models.deletion
| 28.84 | 172 | 0.646325 |
317c49fa981bf39fb8fbc6c8497db1b320c837f1 | 29,766 | py | Python | geoscilabs/dcip/DCWidgetPlate2_5D.py | lheagy/geosci-labs | a946feb0f2576821a232355d539bc71a5f5b0d0c | [
"MIT"
] | 1 | 2019-01-04T10:06:44.000Z | 2019-01-04T10:06:44.000Z | geoscilabs/dcip/DCWidgetPlate2_5D.py | victortocantins/geosci-labs | 0963c5766477e59af6625954036f580481cfaf82 | [
"MIT"
] | 1 | 2018-12-30T20:09:25.000Z | 2018-12-30T20:09:25.000Z | geoscilabs/dcip/DCWidgetPlate2_5D.py | victortocantins/geosci-labs | 0963c5766477e59af6625954036f580481cfaf82 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import numpy as np
from scipy.constants import epsilon_0
from scipy.ndimage.measurements import center_of_mass
from ipywidgets import IntSlider, FloatSlider, FloatText, ToggleButtons
import matplotli... | 33 | 112 | 0.543876 |
317ed9d058dadae1ec740f0850b99974ce2e984d | 293 | py | Python | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | 3 | 2021-03-22T00:07:28.000Z | 2021-03-22T12:11:18.000Z | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | null | null | null | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | 2 | 2021-03-20T19:00:53.000Z | 2021-03-22T12:19:52.000Z | try:
__PHASE_DIAGRAMS_IMPORTED__
except NameError:
__PHASE_DIAGRAMS_IMPORTED__= False
if not __PHASE_DIAGRAMS_IMPORTED__:
from .phase_portrait import PhasePortrait
from .funcion1D import Funcion1D
from .nullclines import Nullcline2D
__PHASE_DIAGRAMS_IMPORTED__ = True | 26.636364 | 45 | 0.805461 |
3180304baa69ab409e5d9574d22f4fd3b34b2b27 | 17,714 | py | Python | P13pt/spectrumfitter/spectrumfitter.py | green-mercury/P13pt | 38c4f079ec071b5b2651415d7bcb03be7a8a1dab | [
"MIT"
] | 3 | 2019-08-27T16:32:29.000Z | 2019-09-28T06:56:14.000Z | P13pt/spectrumfitter/spectrumfitter.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 4 | 2018-10-29T22:06:54.000Z | 2019-02-28T12:39:03.000Z | P13pt/spectrumfitter/spectrumfitter.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 1 | 2019-02-13T13:29:18.000Z | 2019-02-13T13:29:18.000Z | #!/usr/bin/python
import sys
import os
import shutil
from glob import glob
from PyQt5.QtCore import (Qt, qInstallMessageHandler, QtInfoMsg, QtCriticalMsg, QtDebugMsg,
QtWarningMsg, QtFatalMsg, QSettings, pyqtSlot, QStandardPaths, QUrl)
from PyQt5.QtGui import QIcon, QDesktopServices
from PyQt... | 44.732323 | 122 | 0.628429 |
31816e6d8bed3855148fe582fbc591405a02824d | 78,388 | py | Python | subversion/tests/cmdline/lock_tests.py | centic9/subversion-ppa | f65f38f4d8821f6225ba14b50a81973ad893fc02 | [
"Apache-2.0"
] | null | null | null | subversion/tests/cmdline/lock_tests.py | centic9/subversion-ppa | f65f38f4d8821f6225ba14b50a81973ad893fc02 | [
"Apache-2.0"
] | null | null | null | subversion/tests/cmdline/lock_tests.py | centic9/subversion-ppa | f65f38f4d8821f6225ba14b50a81973ad893fc02 | [
"Apache-2.0"
] | 1 | 2020-11-04T07:19:37.000Z | 2020-11-04T07:19:37.000Z | #!/usr/bin/env python
# encoding=utf-8
#
# lock_tests.py: testing versioned properties
#
# Subversion is a tool for revision control.
# See http://subversion.apache.org for more information.
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF... | 36.240407 | 139 | 0.594708 |
318175319ce5b1d0f129d6cf4fa9618b04da1e8b | 5,622 | py | Python | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright (C) 2006 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 37.986486 | 79 | 0.714692 |
31820a59b9c5678cbd47dd2c6b18f2a2f8d3b779 | 2,986 | py | Python | pycket/base.py | krono/pycket | 5eff3401ce5cf34b16863b669ac9e274edabbe00 | [
"MIT"
] | null | null | null | pycket/base.py | krono/pycket | 5eff3401ce5cf34b16863b669ac9e274edabbe00 | [
"MIT"
] | null | null | null | pycket/base.py | krono/pycket | 5eff3401ce5cf34b16863b669ac9e274edabbe00 | [
"MIT"
] | null | null | null | from pycket.error import SchemeException
from rpython.tool.pairtype import extendabletype
from rpython.rlib import jit, objectmodel
| 27.394495 | 85 | 0.639987 |
3183eb2e126d90a029e2af49600fc31324d642a8 | 5,811 | py | Python | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 16 | 2020-11-04T14:44:16.000Z | 2022-02-16T08:08:23.000Z | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 2 | 2021-03-23T12:07:53.000Z | 2021-12-22T14:30:59.000Z | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 7 | 2020-11-17T03:20:00.000Z | 2022-03-31T15:53:58.000Z | import numpy as np
from stable_baselines import PPO2
from stable_baselines.common.policies import CnnPolicy
from stable_baselines.a2c.utils import conv, linear, conv_to_fc
from src.envs import CMDP, FrozenLakeEnvCustomMap
from src.envs.frozen_lake.frozen_maps import MAPS
from src.students import LagrangianStudent, i... | 35.432927 | 103 | 0.617794 |
31849d43e1ab19f400d94d35a3abbba09fecd8ff | 1,861 | py | Python | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | 1 | 2020-06-02T18:08:08.000Z | 2020-06-02T18:08:08.000Z | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | null | null | null | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | null | null | null | name = "scanapi"
import click
import logging
from scanapi.tree.api_tree import APITree
from scanapi.reporter import Reporter
from scanapi.requests_maker import RequestsMaker
from scanapi.settings import SETTINGS
from scanapi.yaml_loader import load_yaml
| 28.630769 | 86 | 0.674369 |
3184b4c5a678ebc4e6558070c2d466802ef6e550 | 1,065 | py | Python | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | null | null | null | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | null | null | null | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | 2 | 2021-11-17T18:52:53.000Z | 2021-12-04T09:26:37.000Z | # Given a binary tree and a node, find the level order successor of the given node in the tree.
# The level order successor is the node that appears right after the given node in the level order traversal.
from collections import deque
root = TreeNode(12)
root.left = TreeNode(7)
root.right = TreeNode(1)
root.left.le... | 26.625 | 109 | 0.661972 |
31860bb3aacd1e3679ae7c59b51984c300ac1f34 | 3,078 | py | Python | npbench/benchmarks/cavity_flow/cavity_flow_legate.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 27 | 2021-05-10T11:49:13.000Z | 2022-03-22T18:07:19.000Z | npbench/benchmarks/cavity_flow/cavity_flow_legate.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 3 | 2021-12-01T13:03:17.000Z | 2022-03-17T10:53:00.000Z | npbench/benchmarks/cavity_flow/cavity_flow_legate.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 7 | 2021-06-24T03:40:25.000Z | 2022-01-26T09:04:33.000Z | # Barba, Lorena A., and Forsyth, Gilbert F. (2018).
# CFD Python: the 12 steps to Navier-Stokes equations.
# Journal of Open Source Education, 1(9), 21,
# https://doi.org/10.21105/jose.00021
# TODO: License
# (c) 2017 Lorena A. Barba, Gilbert F. Forsyth.
# All content is under Creative Commons Attribution CC-BY 4.0,
# ... | 37.084337 | 90 | 0.341131 |