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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
167f92f56a42d5741ea4dde46075bf065ebbe3cd | 11,512 | py | Python | Bindings/Python/examples/Moco/examplePredictAndTrack.py | mcx/opensim-core | c109f8cec3a81c732f335cd39752da6ae573b604 | [
"Apache-2.0"
] | 532 | 2015-03-13T18:51:10.000Z | 2022-03-27T08:08:29.000Z | Bindings/Python/examples/Moco/examplePredictAndTrack.py | mcx/opensim-core | c109f8cec3a81c732f335cd39752da6ae573b604 | [
"Apache-2.0"
] | 2,701 | 2015-01-03T21:33:34.000Z | 2022-03-30T07:13:41.000Z | Bindings/Python/examples/Moco/examplePredictAndTrack.py | mcx/opensim-core | c109f8cec3a81c732f335cd39752da6ae573b604 | [
"Apache-2.0"
] | 271 | 2015-02-16T23:25:29.000Z | 2022-03-30T20:12:17.000Z | # -------------------------------------------------------------------------- #
# OpenSim Moco: examplePredictAndTrack.py #
# -------------------------------------------------------------------------- #
# Copyright (c) 2018 Stanford University and the Authors #
# ... | 34.160237 | 79 | 0.633687 |
1680693e61459262ca19480a0c2453b04b05a5a0 | 992 | py | Python | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | import sqlite3
from pandas import DataFrame
conn = sqlite3.connect('./data.db',check_same_thread=False)
| 32 | 138 | 0.582661 |
1680b6fe6e7e3043a7d70ac1ab9bfc138b53e7ea | 5,255 | py | Python | pymapd/_parsers.py | mflaxman10/pymapd | 00b72ae399a0ff829507ee0b3a2b7404f3a06c26 | [
"Apache-2.0"
] | null | null | null | pymapd/_parsers.py | mflaxman10/pymapd | 00b72ae399a0ff829507ee0b3a2b7404f3a06c26 | [
"Apache-2.0"
] | null | null | null | pymapd/_parsers.py | mflaxman10/pymapd | 00b72ae399a0ff829507ee0b3a2b7404f3a06c26 | [
"Apache-2.0"
] | null | null | null | """
Utility methods for parsing data returned from MapD
"""
import datetime
from collections import namedtuple
from sqlalchemy import text
import mapd.ttypes as T
from ._utils import seconds_to_time
Description = namedtuple("Description", ["name", "type_code", "display_size",
... | 27.952128 | 79 | 0.597146 |
16833799777639519b435db61702159dbc70cb57 | 20,687 | py | Python | featuretools/entityset/entity.py | rohit901/featuretools | 20bee224782acf94909c2bf33239fd5332a8c1de | [
"BSD-3-Clause"
] | 1 | 2021-07-30T16:03:48.000Z | 2021-07-30T16:03:48.000Z | featuretools/entityset/entity.py | rohit901/featuretools | 20bee224782acf94909c2bf33239fd5332a8c1de | [
"BSD-3-Clause"
] | 13 | 2021-03-04T19:29:21.000Z | 2022-01-21T10:49:20.000Z | featuretools/entityset/entity.py | rohit901/featuretools | 20bee224782acf94909c2bf33239fd5332a8c1de | [
"BSD-3-Clause"
] | 2 | 2021-02-09T21:37:48.000Z | 2021-12-22T16:13:27.000Z | import logging
import warnings
import dask.dataframe as dd
import numpy as np
import pandas as pd
from featuretools import variable_types as vtypes
from featuretools.utils.entity_utils import (
col_is_datetime,
convert_all_variable_data,
convert_variable_data,
get_linked_vars,
infer_variable_types... | 42.391393 | 124 | 0.592353 |
16848dd03e02c952cce813e4092be02064f38ca9 | 1,470 | py | Python | githubdl/url_helpers.py | wilvk/githubdl | 1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920 | [
"MIT"
] | 16 | 2018-06-20T00:01:40.000Z | 2022-01-24T08:16:17.000Z | githubdl/url_helpers.py | wilvk/githubdl | 1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920 | [
"MIT"
] | 12 | 2018-07-18T21:09:37.000Z | 2020-03-28T23:38:13.000Z | githubdl/url_helpers.py | wilvk/githubdl | 1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920 | [
"MIT"
] | null | null | null | import re
from urllib.parse import urlparse
import logging
| 31.276596 | 76 | 0.706803 |
168519bcca14cbc5945efcceae792622fe09d3d9 | 25,777 | py | Python | RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | null | null | null | RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | null | null | null | RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py | AlsikeE/Ez | 2f84ac1896a5b6d8f467c14d3618274bdcfd2cad | [
"Apache-2.0"
] | 1 | 2021-05-08T02:23:00.000Z | 2021-05-08T02:23:00.000Z | import itertools
from ez_lib import ez_flow_tool
from collections import defaultdict
from ez_scheduler import EzScheduler
from ez_lib.ez_ob import CenUpdateInfo, UpdateNext
from misc import constants, logger
from domain.message import *
from collections import deque
from misc import global_vars
import time
import even... | 54.039832 | 136 | 0.58141 |
16863f0872927e8b824cd132c78fbf22829a951a | 892 | py | Python | src/trackbar.py | clovadev/opencv-python | f9c685f8dc658f630a9742f4dd55663bde03fe7d | [
"MIT"
] | null | null | null | src/trackbar.py | clovadev/opencv-python | f9c685f8dc658f630a9742f4dd55663bde03fe7d | [
"MIT"
] | null | null | null | src/trackbar.py | clovadev/opencv-python | f9c685f8dc658f630a9742f4dd55663bde03fe7d | [
"MIT"
] | null | null | null | import numpy as np
import cv2 as cv
# Create a black image, a window
img = np.zeros((300, 512, 3), np.uint8)
cv.namedWindow('image')
# create trackbars for color change
cv.createTrackbar('R', 'image', 0, 255, nothing)
cv.createTrackbar('G', 'image', 0, 255, nothing)
cv.createTrackbar('B', 'image', 0, 255, nothing)
... | 22.3 | 49 | 0.618834 |
1687efc3eb23ad09ae90d5260997fa4ec210ea9f | 1,246 | py | Python | aoc_2015/src/day20.py | ambertests/adventofcode | 140ed1d71ed647d30d1e6572964cab1e89dfd105 | [
"MIT"
] | null | null | null | aoc_2015/src/day20.py | ambertests/adventofcode | 140ed1d71ed647d30d1e6572964cab1e89dfd105 | [
"MIT"
] | null | null | null | aoc_2015/src/day20.py | ambertests/adventofcode | 140ed1d71ed647d30d1e6572964cab1e89dfd105 | [
"MIT"
] | null | null | null | from functools import reduce
# https://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python
# takes around 20s
pt1, pt2 = solve(29000000)
print("Part 1:", pt1)
print("Part 2:", pt2)
| 27.688889 | 125 | 0.50321 |
1688724e3867c7e8e39adb6579cee704e885e634 | 1,604 | py | Python | setup.py | jean/labels | dcb6f40fb4e222068e302202dd5d7d98b4771e4b | [
"MIT"
] | 1 | 2019-11-06T14:08:40.000Z | 2019-11-06T14:08:40.000Z | setup.py | jean/labels | dcb6f40fb4e222068e302202dd5d7d98b4771e4b | [
"MIT"
] | null | null | null | setup.py | jean/labels | dcb6f40fb4e222068e302202dd5d7d98b4771e4b | [
"MIT"
] | null | null | null | import pathlib
import setuptools
setuptools.setup(
name="labels",
version="0.3.0.dev0",
author="Raphael Pierzina",
author_email="raphael@hackebrot.de",
maintainer="Raphael Pierzina",
maintainer_email="raphael@hackebrot.de",
license="MIT",
url="https://github.com/hackebrot/labels",
... | 34.12766 | 81 | 0.640898 |
168883ce786ac5e2bf642b55446a3bcf835eeaa8 | 275 | py | Python | colab/__init__.py | caseywstark/colab | e05293e45a657eda19d733bf05624a1613a7a9b7 | [
"MIT"
] | 1 | 2015-11-05T11:49:32.000Z | 2015-11-05T11:49:32.000Z | colab/__init__.py | caseywstark/colab | e05293e45a657eda19d733bf05624a1613a7a9b7 | [
"MIT"
] | null | null | null | colab/__init__.py | caseywstark/colab | e05293e45a657eda19d733bf05624a1613a7a9b7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__about__ = """
This project demonstrates a social networking site. It provides profiles,
friends, photos, blogs, tribes, wikis, tweets, bookmarks, swaps,
locations and user-to-user messaging.
In 0.5 this was called "complete_project".
"""
| 27.5 | 74 | 0.705455 |
1689397a49d0387c8d71492ecee794b05a45ba83 | 862 | py | Python | src/ralph/ui/forms/util.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/ui/forms/util.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/ui/forms/util.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from ralph.business.models import Venture, VentureRole
| 28.733333 | 78 | 0.558005 |
1689e31b5f0f44d60b97128a67d87b2730238b68 | 28 | py | Python | tests/syntax/missing_in_with_for.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/syntax/missing_in_with_for.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/syntax/missing_in_with_for.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | for x range(4):
print(x)
| 9.333333 | 15 | 0.571429 |
168b7cd601c412154d052fac8164eeb139aec911 | 4,769 | py | Python | services/users/manage.py | eventprotocol/event-protocol-webapp | 38ccdc63bc744576ebb3631b7e17cfd4a09216b6 | [
"MIT"
] | null | null | null | services/users/manage.py | eventprotocol/event-protocol-webapp | 38ccdc63bc744576ebb3631b7e17cfd4a09216b6 | [
"MIT"
] | 11 | 2020-09-05T14:16:23.000Z | 2022-03-03T22:33:14.000Z | services/users/manage.py | eventprotocol/event-protocol-webapp | 38ccdc63bc744576ebb3631b7e17cfd4a09216b6 | [
"MIT"
] | null | null | null | """
manage.py for flask application
"""
import unittest
import coverage
import os
from flask.cli import FlaskGroup
from project import create_app, db
from project.api.models import User
# Code coverage
COV = coverage.Coverage(
branch=True,
include='project/*',
omit=[
'project/tests/*',
'p... | 29.621118 | 79 | 0.642063 |
168bb7123d253d48e67b56f36bbcad938db24dd7 | 1,750 | py | Python | keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py | erelcan/keras-transformer | ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f | [
"Apache-2.0"
] | 3 | 2021-02-14T17:10:59.000Z | 2021-02-14T18:09:17.000Z | keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py | erelcan/keras-transformer | ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f | [
"Apache-2.0"
] | null | null | null | keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py | erelcan/keras-transformer | ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f | [
"Apache-2.0"
] | null | null | null | import os
from keras.callbacks import ModelCheckpoint
from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC
from keras_transformer.utils.io_utils import save_to_pickle
| 35 | 117 | 0.671429 |
168c810ecd449bb3eb263646cbc454470f8c28e4 | 527 | py | Python | train_test_val.py | arashk7/Yolo5_Dataset_Generator | aeba58b51201b8521478c777b40c4d31f0c60be9 | [
"Apache-2.0"
] | null | null | null | train_test_val.py | arashk7/Yolo5_Dataset_Generator | aeba58b51201b8521478c777b40c4d31f0c60be9 | [
"Apache-2.0"
] | null | null | null | train_test_val.py | arashk7/Yolo5_Dataset_Generator | aeba58b51201b8521478c777b40c4d31f0c60be9 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
input_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5'
output_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5\ZhitangYolo5'
in_img_dir = os.path.join(input_dir, 'Images')
in_label_dir = os.path.join(input_dir, 'Labels')
out_img_dir = os.path.join(output_dir, 'images')
out_label_dir = os.path.jo... | 22.913043 | 68 | 0.736243 |
168cde4a792e9985c473078c1d3e1678761198e7 | 4,873 | py | Python | homeassistant/components/media_player/pjlink.py | dauden1184/home-assistant | f4c6d389b77d0efa86644e76604eaea5d21abdb5 | [
"Apache-2.0"
] | 4 | 2019-01-10T14:47:54.000Z | 2021-04-22T02:06:27.000Z | homeassistant/components/media_player/pjlink.py | dauden1184/home-assistant | f4c6d389b77d0efa86644e76604eaea5d21abdb5 | [
"Apache-2.0"
] | 6 | 2021-02-08T21:02:40.000Z | 2022-03-12T00:52:16.000Z | homeassistant/components/media_player/pjlink.py | dauden1184/home-assistant | f4c6d389b77d0efa86644e76604eaea5d21abdb5 | [
"Apache-2.0"
] | 3 | 2018-08-29T19:26:20.000Z | 2020-01-19T11:58:22.000Z | """
Support for controlling projector via the PJLink protocol.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.pjlink/
"""
import logging
import voluptuous as vol
from homeassistant.components.media_player import (
PLATFORM_SCHEMA, SUPP... | 31.038217 | 78 | 0.65668 |
168da4e09bd5b50aa5b8cd08e50f215c17b399b2 | 608 | py | Python | leetcode/regex_matching.py | Kaushalya/algo_journal | bcea8afda0dc86b36452378e3bcff9b0f57d6856 | [
"Apache-2.0"
] | null | null | null | leetcode/regex_matching.py | Kaushalya/algo_journal | bcea8afda0dc86b36452378e3bcff9b0f57d6856 | [
"Apache-2.0"
] | null | null | null | leetcode/regex_matching.py | Kaushalya/algo_journal | bcea8afda0dc86b36452378e3bcff9b0f57d6856 | [
"Apache-2.0"
] | null | null | null | # Level: Hard
if __name__ == "__main__":
ss = 'abbbbbc'
p = 'a*'
print(isMatch(ss, p)) | 17.882353 | 39 | 0.361842 |
168db9c8444379377b3a611c0a5f87f083f3ec4d | 3,217 | py | Python | tests/factories.py | luzik/waliki | b7db696075ceebb5676be61f44e2d806cc472255 | [
"BSD-3-Clause"
] | 324 | 2015-01-02T20:48:33.000Z | 2021-12-11T14:44:34.000Z | tests/factories.py | luzik/waliki | b7db696075ceebb5676be61f44e2d806cc472255 | [
"BSD-3-Clause"
] | 103 | 2015-01-02T03:01:34.000Z | 2020-04-02T19:03:53.000Z | tests/factories.py | luzik/waliki | b7db696075ceebb5676be61f44e2d806cc472255 | [
"BSD-3-Clause"
] | 84 | 2015-01-07T08:53:05.000Z | 2021-01-04T00:26:38.000Z | import factory
from django.contrib.auth.models import User, Group, Permission
from waliki.models import ACLRule, Page, Redirect
| 28.723214 | 98 | 0.608642 |
168dc722af15d363851566ae2eeabcf9ccc50653 | 68,372 | py | Python | nxt_editor/commands.py | dalteocraft/nxt_editor | 18992da7cfa89769568434ec08d787510e09f1c4 | [
"MIT"
] | 131 | 2020-12-03T08:01:26.000Z | 2022-03-07T03:41:37.000Z | nxt_editor/commands.py | dalteocraft/nxt_editor | 18992da7cfa89769568434ec08d787510e09f1c4 | [
"MIT"
] | 127 | 2020-12-07T21:43:02.000Z | 2022-02-17T22:31:14.000Z | nxt_editor/commands.py | dalteocraft/nxt_editor | 18992da7cfa89769568434ec08d787510e09f1c4 | [
"MIT"
] | 17 | 2020-12-08T08:06:44.000Z | 2021-11-18T05:40:11.000Z | # Built-in
import copy
import logging
import time
# External
from Qt.QtWidgets import QUndoCommand
# Internal
from nxt_editor import colors
from nxt_editor import user_dir
from nxt import nxt_path
from nxt.nxt_layer import LAYERS, SAVE_KEY
from nxt.nxt_node import (INTERNAL_ATTRS, META_ATTRS, get_node_as_dict,
... | 40.60095 | 80 | 0.597379 |
168de834f7c08dea94c1b268f9213453f995fc3e | 6,642 | py | Python | mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py | libracore/mietrechtspraxis | 7b2320a70b98b086be136a86b1ab4fadfce215ff | [
"MIT"
] | 1 | 2021-07-15T13:25:23.000Z | 2021-07-15T13:25:23.000Z | mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py | libracore/mietrechtspraxis | 7b2320a70b98b086be136a86b1ab4fadfce215ff | [
"MIT"
] | 1 | 2022-01-27T13:30:56.000Z | 2022-01-27T13:30:56.000Z | mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py | libracore/mietrechtspraxis | 7b2320a70b98b086be136a86b1ab4fadfce215ff | [
"MIT"
] | 2 | 2021-08-14T22:23:08.000Z | 2021-09-08T09:31:51.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2021, libracore AG and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from datetime import datetime
from PyPDF2 import PdfFileWriter
from frappe.utils.file_manager im... | 43.986755 | 187 | 0.483439 |
168eb7379683dd807fa4203db108dc8a9b170baa | 323 | py | Python | easysockets/client_socket.py | Matthias1590/EasySockets | 70d33a04e862b682b87bdf2103bcc1d7da06994e | [
"MIT"
] | 2 | 2022-01-10T12:25:45.000Z | 2022-01-15T08:01:32.000Z | easysockets/client_socket.py | Matthias1590/EasySockets | 70d33a04e862b682b87bdf2103bcc1d7da06994e | [
"MIT"
] | null | null | null | easysockets/client_socket.py | Matthias1590/EasySockets | 70d33a04e862b682b87bdf2103bcc1d7da06994e | [
"MIT"
] | null | null | null | from .connection import Connection
import socket
| 24.846154 | 73 | 0.696594 |
168f0267685e958dd990feeae60a1086e6b78107 | 31,038 | py | Python | pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2022-03-16T01:40:10.000Z | 2022-03-16T01:40:10.000Z | pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | null | null | null | pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2018-10-03T19:08:33.000Z | 2018-10-03T19:08:33.000Z | #!/pxrpythonsubst
#
# Copyright 2017 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 42.69326 | 100 | 0.63055 |
168fdf67ec71ebdf125bbe9b6f5c14dad854391f | 1,310 | py | Python | round_robin_generator/matchup_times.py | avadavat/round_robin_generator | 242d522386f6af26db029232fcffb51004ff4c59 | [
"MIT"
] | null | null | null | round_robin_generator/matchup_times.py | avadavat/round_robin_generator | 242d522386f6af26db029232fcffb51004ff4c59 | [
"MIT"
] | 5 | 2020-04-26T19:44:41.000Z | 2020-05-01T16:26:06.000Z | round_robin_generator/matchup_times.py | avadavat/round_robin_generator | 242d522386f6af26db029232fcffb51004ff4c59 | [
"MIT"
] | null | null | null | import pandas as pd
from datetime import timedelta
| 48.518519 | 116 | 0.636641 |
16904816a9bda6205128c0d91b67e3ab2be3d489 | 3,943 | py | Python | src/commands/locate_item.py | seisatsu/DennisMUD-ESP32 | b63d4b914c5e8d0f9714042997c64919b20be842 | [
"MIT"
] | 19 | 2018-10-02T03:58:46.000Z | 2021-04-09T13:09:23.000Z | commands/locate_item.py | seisatsu/Dennis | 8f1892f21beba6b21b4f7b9ba3062296bb1dc4b9 | [
"MIT"
] | 100 | 2018-09-22T22:54:35.000Z | 2021-04-16T17:46:34.000Z | src/commands/locate_item.py | seisatsu/DennisMUD-ESP32 | b63d4b914c5e8d0f9714042997c64919b20be842 | [
"MIT"
] | 1 | 2022-01-03T02:21:56.000Z | 2022-01-03T02:21:56.000Z | #######################
# Dennis MUD #
# locate_item.py #
# Copyright 2018-2020 #
# Michael D. Reiley #
#######################
# **********
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal i... | 41.072917 | 116 | 0.633274 |
16904f40b9743948ab5dc6a0d2f55015295bc2fd | 2,787 | py | Python | modelling/scsb/models/monthly-comparisons.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | modelling/scsb/models/monthly-comparisons.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | modelling/scsb/models/monthly-comparisons.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | import json
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
from sklearn.tree import DecisionTreeRegressor
from xgboost import XGBRegressor
from catboost import CatBoostRegressor
from sklearn.model_selection import ... | 38.708333 | 161 | 0.734482 |
1690da2be65319bb6696ac8f2ce11540524171c2 | 14,922 | py | Python | src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py | xzhnshng/databricks-zero-to-mlops | f1691c6f6137ad8b938e64cea4700c7011efb800 | [
"CC0-1.0"
] | null | null | null | src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py | xzhnshng/databricks-zero-to-mlops | f1691c6f6137ad8b938e64cea4700c7011efb800 | [
"CC0-1.0"
] | null | null | null | src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py | xzhnshng/databricks-zero-to-mlops | f1691c6f6137ad8b938e64cea4700c7011efb800 | [
"CC0-1.0"
] | null | null | null | # Databricks notebook source
# MAGIC %md
# MAGIC # XGBoost training
# MAGIC This is an auto-generated notebook. To reproduce these results, attach this notebook to the **10-3-ML-Cluster** cluster and rerun it.
# MAGIC - Compare trials in the [MLflow experiment](#mlflow/experiments/406583024052808/s?orderByKey=metrics.%... | 36.753695 | 461 | 0.743399 |
1694a3aec6658351c14a81b2e91e92955b6cb8a7 | 341 | py | Python | lucky_guess/__init__.py | mfinzi/lucky-guess-chemist | 01898b733dc7d026f70d0cb6337309cb600502fb | [
"MIT"
] | null | null | null | lucky_guess/__init__.py | mfinzi/lucky-guess-chemist | 01898b733dc7d026f70d0cb6337309cb600502fb | [
"MIT"
] | null | null | null | lucky_guess/__init__.py | mfinzi/lucky-guess-chemist | 01898b733dc7d026f70d0cb6337309cb600502fb | [
"MIT"
] | null | null | null |
import importlib
import pkgutil
__all__ = []
for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
module = importlib.import_module('.'+module_name,package=__name__)
try:
globals().update({k: getattr(module, k) for k in module.__all__})
__all__ += module.__all__
except Att... | 34.1 | 73 | 0.71261 |
1695439f6b89942d55b135dae20f140a0772199c | 3,727 | py | Python | shuffling_algorithm.py | BaptisteLafoux/aztec_tiling | 413acd8751b8178942e91fbee32987f02bc5c695 | [
"MIT"
] | null | null | null | shuffling_algorithm.py | BaptisteLafoux/aztec_tiling | 413acd8751b8178942e91fbee32987f02bc5c695 | [
"MIT"
] | null | null | null | shuffling_algorithm.py | BaptisteLafoux/aztec_tiling | 413acd8751b8178942e91fbee32987f02bc5c695 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 22:04:48 2020
@author: baptistelafoux
"""
import domino
import numpy as np
import numpy.lib.arraysetops as aso
| 26.81295 | 117 | 0.499866 |
1696d983057a2d937827a5a96f9b5500cb3c490c | 478 | py | Python | scripts/matrix_operations.py | h3ct0r/gas_mapping_example | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | 1 | 2022-02-28T21:55:23.000Z | 2022-02-28T21:55:23.000Z | scripts/matrix_operations.py | ArghyaChatterjee/gas_mapping_kerneldm | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | null | null | null | scripts/matrix_operations.py | ArghyaChatterjee/gas_mapping_kerneldm | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | 2 | 2021-12-14T05:15:18.000Z | 2022-02-28T21:55:10.000Z | import numpy as np
| 26.555556 | 67 | 0.725941 |
16988b5f9f77ebb40b1eb37bef67f48bd826786d | 121 | py | Python | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["license_chk.py"]))
| 20.166667 | 50 | 0.793388 |
169a6a92aa8a5f8b13f2ca7a2bc5a3d4390e96a9 | 6,363 | py | Python | quantum/plugins/nicira/extensions/nvp_qos.py | yamt/neutron | f94126739a48993efaf1d1439dcd3dadb0c69742 | [
"Apache-2.0"
] | null | null | null | quantum/plugins/nicira/extensions/nvp_qos.py | yamt/neutron | f94126739a48993efaf1d1439dcd3dadb0c69742 | [
"Apache-2.0"
] | null | null | null | quantum/plugins/nicira/extensions/nvp_qos.py | yamt/neutron | f94126739a48993efaf1d1439dcd3dadb0c69742 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Nicira, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/lic... | 31.191176 | 78 | 0.610718 |
169b6898f6bda824a9456c155bd29a6f84fdb9e8 | 251 | py | Python | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | 1 | 2021-12-14T19:21:44.000Z | 2021-12-14T19:21:44.000Z | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | null | null | null | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | null | null | null | """easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy.
To suggest more to be added, please add an issue on the GitHub repo.
"""
from easyneuron.math.distance import euclidean_distance | 41.833333 | 120 | 0.788845 |
169c6caecdf841a261ae5cbf1ce633a03edb8b3a | 2,532 | py | Python | tests/unit/concurrently/test_TaskPackageDropbox_put.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/concurrently/test_TaskPackageDropbox_put.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/concurrently/test_TaskPackageDropbox_put.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | # Tai Sakuma <tai.sakuma@gmail.com>
import pytest
try:
import unittest.mock as mock
except ImportError:
import mock
from alphatwirl.concurrently import TaskPackageDropbox
##__________________________________________________________________||
##________________________________________________________________... | 30.878049 | 98 | 0.742496 |
169dfe6f123a1bb92dcedefda60fdcdf0dde5b42 | 3,497 | py | Python | networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py | gokarslan/networking-odl2 | 6a6967832b2c02dfcff6a9f0ab6e36472b849ce8 | [
"Apache-2.0"
] | null | null | null | networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py | gokarslan/networking-odl2 | 6a6967832b2c02dfcff6a9f0ab6e36472b849ce8 | [
"Apache-2.0"
] | null | null | null | networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py | gokarslan/networking-odl2 | 6a6967832b2c02dfcff6a9f0ab6e36472b849ce8 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 40.662791 | 78 | 0.637975 |
169ed0cf36c52beabffce88a57318686603b6c41 | 443 | py | Python | users/migrations/0002_auto_20191113_1352.py | Dragonite/djangohat | 68890703b1fc647785cf120ada281d6f3fcc4121 | [
"MIT"
] | 2 | 2019-11-15T05:07:24.000Z | 2019-11-15T10:27:48.000Z | users/migrations/0002_auto_20191113_1352.py | Dragonite/djangohat | 68890703b1fc647785cf120ada281d6f3fcc4121 | [
"MIT"
] | null | null | null | users/migrations/0002_auto_20191113_1352.py | Dragonite/djangohat | 68890703b1fc647785cf120ada281d6f3fcc4121 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-11-13 13:52
from django.db import migrations, models
| 23.315789 | 119 | 0.625282 |
16a0f5c79d486ed958f66a4f801398499c8d9ff1 | 3,389 | py | Python | premium/backend/src/baserow_premium/api/admin/dashboard/views.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 839 | 2020-07-20T13:29:34.000Z | 2022-03-31T21:09:16.000Z | premium/backend/src/baserow_premium/api/admin/dashboard/views.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 28 | 2020-08-07T09:23:58.000Z | 2022-03-01T22:32:40.000Z | premium/backend/src/baserow_premium/api/admin/dashboard/views.py | cjh0613/baserow | 62871f5bf53c9d25446976031aacb706c0abe584 | [
"MIT"
] | 79 | 2020-08-04T01:48:01.000Z | 2022-03-27T13:30:54.000Z | from datetime import timedelta
from django.contrib.auth import get_user_model
from drf_spectacular.utils import extend_schema
from rest_framework.response import Response
from rest_framework.permissions import IsAdminUser
from rest_framework.views import APIView
from baserow.api.decorators import accept_timezone
fr... | 38.078652 | 88 | 0.649159 |
16a20512bd62fea83ee40c49a4b7cc5fa386ce48 | 969 | py | Python | src/clientOld.py | dan3612812/socketChatRoom | b0d548477687de2d9fd521826db9ea75e528de5c | [
"MIT"
] | null | null | null | src/clientOld.py | dan3612812/socketChatRoom | b0d548477687de2d9fd521826db9ea75e528de5c | [
"MIT"
] | null | null | null | src/clientOld.py | dan3612812/socketChatRoom | b0d548477687de2d9fd521826db9ea75e528de5c | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import sys
import socket
import time
import threading
import select
HOST = '192.168.11.98'
PORT = int(sys.argv[1])
queue = []
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
queue.append(s)
print("add client to queue")
socketThread = threading.Thread(target=s... | 19.38 | 53 | 0.627451 |
16a205ccc4af00539940fcbe977b97f31972c365 | 6,296 | py | Python | plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
| 28.488688 | 215 | 0.513977 |
16a25b6b94677a9d90afcb9439df38171a1429af | 25,083 | py | Python | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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 l... | 42.513559 | 79 | 0.574812 |
16a2ce4183cf617439f69c8fd39f2dded2cf7d88 | 180 | py | Python | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | from flask_restful import reqparse
| 25.714286 | 64 | 0.738889 |
16a3072f25578896e1189f9fac5976e0586e6b47 | 6,369 | py | Python | demo_large_image.py | gunlyungyou/AerialDetection | a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26 | [
"Apache-2.0"
] | 9 | 2020-10-08T19:51:17.000Z | 2022-02-16T12:58:01.000Z | demo_large_image.py | gunlyungyou/AerialDetection | a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26 | [
"Apache-2.0"
] | null | null | null | demo_large_image.py | gunlyungyou/AerialDetection | a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26 | [
"Apache-2.0"
] | 8 | 2020-09-25T14:47:55.000Z | 2022-02-16T12:31:13.000Z | from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections
import mmcv
from mmcv import Config
from mmdet.datasets import get_dataset
import cv2
import os
import numpy as np
from tqdm import tqdm
import DOTA_devkit.polyiou as polyiou
import math
import pdb
CLASS_NAMES_KR = (' ', ' ', '... | 43.326531 | 122 | 0.551892 |
16a329d42e5fe4d870ae6840dac571c4c4bd741b | 221 | py | Python | ImageSearcher/admin.py | carpensa/dicom-harpooner | 2d998c22c51e372fb9b5f3508c900af6f4405cd3 | [
"BSD-3-Clause"
] | 1 | 2021-05-24T21:45:05.000Z | 2021-05-24T21:45:05.000Z | ImageSearcher/admin.py | carpensa/dicom-harpooner | 2d998c22c51e372fb9b5f3508c900af6f4405cd3 | [
"BSD-3-Clause"
] | null | null | null | ImageSearcher/admin.py | carpensa/dicom-harpooner | 2d998c22c51e372fb9b5f3508c900af6f4405cd3 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from dicoms.models import Subject
from dicoms.models import Session
from dicoms.models import Series
admin.site.register(Session)
admin.site.register(Subject)
admin.site.register(Series)
| 24.555556 | 33 | 0.837104 |
16a335de057546c0e95c5699aa9470bc30a7f928 | 334 | py | Python | src/djangoreactredux/wsgi.py | noscripter/django-react-redux-jwt-base | 078fb86005db106365df51fa11d8602fa432e3c3 | [
"MIT"
] | 4 | 2016-07-03T08:18:45.000Z | 2018-12-25T07:47:41.000Z | src/djangoreactredux/wsgi.py | noscripter/django-react-redux-jwt-base | 078fb86005db106365df51fa11d8602fa432e3c3 | [
"MIT"
] | 2 | 2021-03-20T00:02:08.000Z | 2021-06-10T23:34:26.000Z | src/djangoreactredux/wsgi.py | noscripter/django-react-redux-jwt-base | 078fb86005db106365df51fa11d8602fa432e3c3 | [
"MIT"
] | 1 | 2019-08-02T14:51:41.000Z | 2019-08-02T14:51:41.000Z | """
WSGI config for django-react-redux-jwt-base project.
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoreactredux.settings.dev")
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = get_wsgi_application()
application = DjangoWhiteNoise... | 23.857143 | 80 | 0.820359 |
16a40296272a4a2617c7e2666b6828a4cb958030 | 1,414 | py | Python | simple_settings/dynamic_settings/base.py | matthewh/simple-settings | dbddf8d5be7096ee7c4c3cc6d82824befa9b714f | [
"MIT"
] | null | null | null | simple_settings/dynamic_settings/base.py | matthewh/simple-settings | dbddf8d5be7096ee7c4c3cc6d82824befa9b714f | [
"MIT"
] | null | null | null | simple_settings/dynamic_settings/base.py | matthewh/simple-settings | dbddf8d5be7096ee7c4c3cc6d82824befa9b714f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
from copy import deepcopy
import jsonpickle
| 28.28 | 68 | 0.609618 |
16a410bbf9dbba9b62a772c35376b67270885de8 | 3,981 | py | Python | scripts/map_frame_to_utm_tf_publisher.py | coincar-sim/lanelet2_interface_ros | f1738766dd323ed64a4ebcc8254438920a587b80 | [
"BSD-3-Clause"
] | 7 | 2019-03-27T03:59:50.000Z | 2021-10-17T10:46:29.000Z | scripts/map_frame_to_utm_tf_publisher.py | coincar-sim/lanelet2_interface_ros | f1738766dd323ed64a4ebcc8254438920a587b80 | [
"BSD-3-Clause"
] | 6 | 2019-04-13T15:55:55.000Z | 2021-06-01T21:08:18.000Z | scripts/map_frame_to_utm_tf_publisher.py | coincar-sim/lanelet2_interface_ros | f1738766dd323ed64a4ebcc8254438920a587b80 | [
"BSD-3-Clause"
] | 4 | 2021-03-25T09:22:55.000Z | 2022-03-22T05:40:49.000Z | #!/usr/bin/env python
#
# Copyright (c) 2018
# FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de)
# KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted p... | 38.278846 | 85 | 0.757096 |
16a5b8fdf510e7bdeb3c6bd8d9c144db7f897552 | 52 | py | Python | lectures/05-python-intro/examples/argv.py | mattmiller899/biosys-analytics | ab24a4c7206ed9a865e896daa57cee3c4e62df1f | [
"MIT"
] | 14 | 2019-07-14T08:29:04.000Z | 2022-03-07T06:33:26.000Z | lectures/05-python-intro/examples/argv.py | mattmiller899/biosys-analytics | ab24a4c7206ed9a865e896daa57cee3c4e62df1f | [
"MIT"
] | 4 | 2020-03-24T18:25:26.000Z | 2021-08-23T20:44:07.000Z | lectures/05-python-intro/examples/argv.py | mattmiller899/biosys-analytics | ab24a4c7206ed9a865e896daa57cee3c4e62df1f | [
"MIT"
] | 33 | 2019-01-05T17:03:47.000Z | 2019-11-11T20:48:24.000Z | #!/usr/bin/env python3
import sys
print(sys.argv)
| 8.666667 | 22 | 0.711538 |
16a6cc579db685a8a411c51c09771255b3e6c2c9 | 366 | py | Python | tests/fixtures.py | easyas314159/cnftools | 67896cf3d17587accfc5ad7e30730fea2394f558 | [
"MIT"
] | null | null | null | tests/fixtures.py | easyas314159/cnftools | 67896cf3d17587accfc5ad7e30730fea2394f558 | [
"MIT"
] | null | null | null | tests/fixtures.py | easyas314159/cnftools | 67896cf3d17587accfc5ad7e30730fea2394f558 | [
"MIT"
] | null | null | null | from itertools import chain
| 21.529412 | 52 | 0.734973 |
16a762cb2b4ddc4c0f253e56da58680346091ea8 | 7,879 | py | Python | applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py | Rodrigo-Flo/Kratos | f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b | [
"BSD-4-Clause"
] | null | null | null | applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py | Rodrigo-Flo/Kratos | f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b | [
"BSD-4-Clause"
] | null | null | null | applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py | Rodrigo-Flo/Kratos | f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b | [
"BSD-4-Clause"
] | null | null | null | # Import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.kratos_utilities as KratosUtilities
from KratosMultiphysics.FluidDynamicsApplication.fluid_dynamics_analysis import FluidDynamicsAnalysis
if __name__ == '__main__':
t... | 48.635802 | 142 | 0.615053 |
16a7758cb5092239aa048ae598f5849367159b11 | 647 | py | Python | src/controllers/__init__.py | TonghanWang/NDQ | 575f2e243bac1a567c072dbea8e093aaa4959511 | [
"Apache-2.0"
] | 63 | 2020-02-23T09:37:15.000Z | 2022-01-17T01:30:50.000Z | src/controllers/__init__.py | fringsoo/NDQ | e243ba917e331065e82c6634cb1d756873747be5 | [
"Apache-2.0"
] | 14 | 2020-04-20T02:20:11.000Z | 2022-03-12T00:16:33.000Z | src/controllers/__init__.py | mig-zh/NDQ | 5720e3e8b529724e8d96a9a24c73bca24a11e7f9 | [
"Apache-2.0"
] | 16 | 2020-03-12T02:57:52.000Z | 2021-11-27T13:07:08.000Z | from .basic_controller import BasicMAC
from .cate_broadcast_comm_controller import CateBCommMAC
from .cate_broadcast_comm_controller_full import CateBCommFMAC
from .cate_broadcast_comm_controller_not_IB import CateBCommNIBMAC
from .tar_comm_controller import TarCommMAC
from .cate_pruned_broadcast_comm_controller import... | 46.214286 | 66 | 0.797527 |
16a89cacbc82dd93659b9a841883e22a139d8576 | 447 | py | Python | main.py | 1999foxes/run-cmd-from-websocket | 0e2a080fe92b93c6cba63dfe5649ac2a3e745009 | [
"Apache-2.0"
] | null | null | null | main.py | 1999foxes/run-cmd-from-websocket | 0e2a080fe92b93c6cba63dfe5649ac2a3e745009 | [
"Apache-2.0"
] | null | null | null | main.py | 1999foxes/run-cmd-from-websocket | 0e2a080fe92b93c6cba63dfe5649ac2a3e745009 | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
import logging
import websockets
logging.basicConfig()
if __name__ == "__main__":
asyncio.run(main())
| 17.88 | 60 | 0.657718 |
16a8a652721deb01765dac84306cf8e790d8b09a | 3,998 | py | Python | 3d_Vnet/3dvnet.py | GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks | f627ce48e44bcc7d295ee1cf4086bfdfd7705d44 | [
"MIT"
] | 100 | 2020-05-21T10:23:31.000Z | 2022-03-26T18:26:38.000Z | 3d_Vnet/3dvnet.py | GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks | f627ce48e44bcc7d295ee1cf4086bfdfd7705d44 | [
"MIT"
] | 3 | 2020-08-19T18:14:01.000Z | 2021-01-04T09:53:07.000Z | 3d_Vnet/3dvnet.py | GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks | f627ce48e44bcc7d295ee1cf4086bfdfd7705d44 | [
"MIT"
] | 25 | 2020-09-05T04:19:22.000Z | 2022-02-09T19:30:29.000Z | import random
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#%matplotlib inline
import tensorflow as tf
import keras.backend as K
from keras.utils import to_categorical
from keras import metrics
from keras.models import Model, load_model
from keras.layers import Input, BatchNormalizat... | 34.465517 | 118 | 0.693847 |
16a92c971c54838ec2fe27ba303cf0b8622f86ad | 347 | py | Python | vk/types/additional/active_offer.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | 24 | 2019-09-13T15:30:09.000Z | 2022-03-09T06:35:59.000Z | vk/types/additional/active_offer.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | null | null | null | vk/types/additional/active_offer.py | Inzilkin/vk.py | 969f01e666c877c1761c3629a100768f93de27eb | [
"MIT"
] | 12 | 2019-09-13T15:30:31.000Z | 2022-03-01T10:13:32.000Z | from ..base import BaseModel
# returned from https://vk.com/dev/account.getActiveOffers
| 21.6875 | 58 | 0.665706 |
16a9cd5f8c3947e5f770014cb07528f411173928 | 18,818 | py | Python | lib/networks/Resnet50_train.py | yangxue0827/TF_Deformable_Net | 00c86380fd2725ebe7ae22f41d460ffc0bca378d | [
"MIT"
] | 193 | 2017-07-19T14:29:38.000Z | 2021-10-20T07:35:42.000Z | lib/networks/Resnet50_train.py | yangxue0827/TF_Deformable_Net | 00c86380fd2725ebe7ae22f41d460ffc0bca378d | [
"MIT"
] | 29 | 2017-07-24T10:07:22.000Z | 2020-01-03T20:38:36.000Z | lib/networks/Resnet50_train.py | Zardinality/TF_Deformable_Net | 00c86380fd2725ebe7ae22f41d460ffc0bca378d | [
"MIT"
] | 67 | 2017-07-27T14:32:47.000Z | 2021-12-27T13:10:37.000Z | # --------------------------------------------------------
# TFFRCNN - Resnet50
# Copyright (c) 2016
# Licensed under The MIT License [see LICENSE for details]
# Written by miraclebiu
# --------------------------------------------------------
import tensorflow as tf
from .network import Network
from ..fast_rcnn.config... | 58.080247 | 189 | 0.597619 |
16aafc257a8e2aae93d3cae037dc8cf239e63a42 | 20,180 | py | Python | lib/aws_sso_lib/assignments.py | vdesjardins/aws-sso-util | bf092a21674e8286c4445df7f4aae8ad061444ca | [
"Apache-2.0"
] | 330 | 2020-11-11T15:53:22.000Z | 2022-03-30T06:45:57.000Z | lib/aws_sso_lib/assignments.py | vdesjardins/aws-sso-util | bf092a21674e8286c4445df7f4aae8ad061444ca | [
"Apache-2.0"
] | 47 | 2020-11-11T01:32:29.000Z | 2022-03-30T01:33:28.000Z | lib/aws_sso_lib/assignments.py | vdesjardins/aws-sso-util | bf092a21674e8286c4445df7f4aae8ad061444ca | [
"Apache-2.0"
] | 23 | 2020-11-25T14:12:37.000Z | 2022-03-30T02:16:26.000Z | import re
import numbers
import collections
import logging
from collections.abc import Iterable
import itertools
import aws_error_utils
from .lookup import Ids, lookup_accounts_for_ou
from .format import format_account_id
LOGGER = logging.getLogger(__name__)
_Context = collections.namedtuple("_Context", [
"sess... | 41.608247 | 147 | 0.637413 |
16abab9c314c051765ffd991fb6c764e6cf24cb5 | 235 | py | Python | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | 1 | 2020-03-10T07:43:08.000Z | 2020-03-10T07:43:08.000Z | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | null | null | null | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | 1 | 2020-04-03T05:24:47.000Z | 2020-04-03T05:24:47.000Z | import threading
from concurrent.futures import ThreadPoolExecutor
from service.train import do_train
| 26.111111 | 49 | 0.795745 |
16ac3137138a7e3b002c9c9337af2623d4ef26d0 | 2,600 | py | Python | buildutil/main.py | TediCreations/buildutils | 49a35e0926baf65f7688f89e53f525812540101c | [
"MIT"
] | null | null | null | buildutil/main.py | TediCreations/buildutils | 49a35e0926baf65f7688f89e53f525812540101c | [
"MIT"
] | null | null | null | buildutil/main.py | TediCreations/buildutils | 49a35e0926baf65f7688f89e53f525812540101c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import argparse
import subprocess
if __name__ == '__main__':
from version import __version__
from configParser import ConfigParser
else:
from .version import __version__
from .configParser import ConfigParser
def command(cmd):
"""Run a shell command"""
subprocess.call(cmd, sh... | 20.967742 | 65 | 0.672692 |
16ad65c0a3b3c48d1d5528a704a36242b69e1b30 | 590 | py | Python | python/get_links.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 63 | 2019-05-19T13:22:37.000Z | 2022-03-30T13:21:40.000Z | python/get_links.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 67 | 2019-05-03T17:17:19.000Z | 2021-06-21T11:02:10.000Z | python/get_links.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 49 | 2019-02-19T09:28:33.000Z | 2019-03-24T04:36:53.000Z | #This file is auto-generated. See modules.json and autogenerator.py for details
#!/usr/bin/python3
"""
get_links.py
MediaWiki API Demos
Demo of `Links` module: Get all links on the given page(s)
MIT License
"""
import requests
S = requests.Session()
URL = "https://en.wikipedia.org/w/api.php"
PAR... | 16.857143 | 79 | 0.618644 |
16adc3c8486e2f9e557cbef70e8a437e66aeb740 | 19,267 | py | Python | gautools/submit_gaussian.py | thompcinnamon/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | null | null | null | gautools/submit_gaussian.py | thompcinnamon/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | 2 | 2018-07-18T19:53:08.000Z | 2019-02-25T23:25:51.000Z | gautools/submit_gaussian.py | theavey/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | 1 | 2017-01-04T20:50:21.000Z | 2017-01-04T20:50:21.000Z | #! /usr/bin/env python3
########################################################################
# #
# This script was written by Thomas Heavey in 2015. #
# theavey@bu.edu thomasjheavey@gmail.com #
# ... | 44.496536 | 78 | 0.553537 |
16aff0c4c406b2f10dac6cda72a39c612f61400e | 2,036 | py | Python | experiments/recorder.py | WeiChengTseng/maddpg | f2813ab8bc43e2acbcc69818672e2e2fd305a007 | [
"MIT"
] | 3 | 2022-01-04T13:32:11.000Z | 2022-01-11T05:59:22.000Z | experiments/recorder.py | WeiChengTseng/maddpg | f2813ab8bc43e2acbcc69818672e2e2fd305a007 | [
"MIT"
] | null | null | null | experiments/recorder.py | WeiChengTseng/maddpg | f2813ab8bc43e2acbcc69818672e2e2fd305a007 | [
"MIT"
] | null | null | null | import json
import copy
import pdb
import numpy as np
import pickle
| 27.513514 | 66 | 0.515717 |
16b0c13e303ebbec34fd3a80391f02025c584689 | 589 | py | Python | generate/dummy_data/mvp/gen_csv.py | ifekxp/data | f3571223f51b3fcc3a708d9ac82e76e3cc1ee068 | [
"MIT"
] | null | null | null | generate/dummy_data/mvp/gen_csv.py | ifekxp/data | f3571223f51b3fcc3a708d9ac82e76e3cc1ee068 | [
"MIT"
] | null | null | null | generate/dummy_data/mvp/gen_csv.py | ifekxp/data | f3571223f51b3fcc3a708d9ac82e76e3cc1ee068 | [
"MIT"
] | null | null | null | from faker import Faker
import csv
# Reference: https://pypi.org/project/Faker/
output = open('data.CSV', 'w', newline='')
fake = Faker()
header = ['name', 'age', 'street', 'city', 'state', 'zip', 'lng', 'lat']
mywriter=csv.writer(output)
mywriter.writerow(header)
for r in range(1000):
mywriter... | 21.814815 | 73 | 0.556876 |
16b0eceb3e8aafd2e9b6e9e274abab88018c34aa | 495 | py | Python | subir/ingreso/migrations/0004_auto_20191003_1509.py | Brandon1625/subir | b827a30e64219fdc9de07689d2fb32e2c4bd02b7 | [
"bzip2-1.0.6"
] | null | null | null | subir/ingreso/migrations/0004_auto_20191003_1509.py | Brandon1625/subir | b827a30e64219fdc9de07689d2fb32e2c4bd02b7 | [
"bzip2-1.0.6"
] | null | null | null | subir/ingreso/migrations/0004_auto_20191003_1509.py | Brandon1625/subir | b827a30e64219fdc9de07689d2fb32e2c4bd02b7 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.4 on 2019-10-03 21:09
from django.db import migrations, models
import django.db.models.deletion
| 24.75 | 116 | 0.650505 |
16b1afada94a1ed1f6f7ce90f2dda1d6203c70b0 | 1,302 | py | Python | pyscf/nao/test/test_0017_tddft_iter_nao.py | mfkasim1/pyscf | 7be5e015b2b40181755c71d888449db936604660 | [
"Apache-2.0"
] | 3 | 2021-02-28T00:52:53.000Z | 2021-03-01T06:23:33.000Z | pyscf/nao/test/test_0017_tddft_iter_nao.py | mfkasim1/pyscf | 7be5e015b2b40181755c71d888449db936604660 | [
"Apache-2.0"
] | 36 | 2018-08-22T19:44:03.000Z | 2020-05-09T10:02:36.000Z | pyscf/nao/test/test_0017_tddft_iter_nao.py | mfkasim1/pyscf | 7be5e015b2b40181755c71d888449db936604660 | [
"Apache-2.0"
] | 4 | 2018-02-14T16:28:28.000Z | 2019-08-12T16:40:30.000Z | from __future__ import print_function, division
import os,unittest
from pyscf.nao import tddft_iter
dname = os.path.dirname(os.path.abspath(__file__))
td = tddft_iter(label='water', cd=dname)
try:
from pyscf.lib import misc
libnao_gpu = misc.load_library("libnao_gpu")
td_gpu = tddft_iter(label='water', cd... | 33.384615 | 107 | 0.678955 |
16b1e0777507d0977f5c8842b27867dc734bcc90 | 898 | py | Python | setup.py | dimasciput/osm2geojson | 7b5ba25e39d80838d41f342237161e0fdc5e64b6 | [
"MIT"
] | null | null | null | setup.py | dimasciput/osm2geojson | 7b5ba25e39d80838d41f342237161e0fdc5e64b6 | [
"MIT"
] | null | null | null | setup.py | dimasciput/osm2geojson | 7b5ba25e39d80838d41f342237161e0fdc5e64b6 | [
"MIT"
] | null | null | null | import io
from os import path
from setuptools import setup
dirname = path.abspath(path.dirname(__file__))
with io.open(path.join(dirname, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='osm2geojson',
version='0.1.27',
license='MIT',
description='Parse OSM and Overpas... | 32.071429 | 73 | 0.722717 |
16b268fae933e4415a5583a098a6d7daa28d2e18 | 849 | py | Python | Cap_11/ex11.6.py | gguilherme42/Livro-de-Python | 465a509d50476fd1a87239c71ed741639d58418b | [
"MIT"
] | 4 | 2020-04-07T00:38:46.000Z | 2022-03-10T03:34:42.000Z | Cap_11/ex11.6.py | gguilherme42/Livro-de-Python | 465a509d50476fd1a87239c71ed741639d58418b | [
"MIT"
] | null | null | null | Cap_11/ex11.6.py | gguilherme42/Livro-de-Python | 465a509d50476fd1a87239c71ed741639d58418b | [
"MIT"
] | 1 | 2021-04-22T02:45:38.000Z | 2021-04-22T02:45:38.000Z | import sqlite3
from contextlib import closing
nome = input('Nome do produto: ').lower().capitalize()
with sqlite3.connect('precos.db') as conexao:
with closing(conexao.cursor()) as cursor:
cursor.execute('SELECT * FROM Precos WHERE nome_produto = ?', (nome,))
registro = cursor.fetchone()
... | 38.590909 | 102 | 0.572438 |
16b631fdc9b05e860febb665678ebc3703e11591 | 4,882 | py | Python | jet20/backend/solver.py | JTJL/jet20 | 2dc01ebf937f8501bcfb15c6641c569f8097ccf5 | [
"MIT"
] | 1 | 2020-07-13T19:02:26.000Z | 2020-07-13T19:02:26.000Z | jet20/backend/solver.py | JTJL/jet20 | 2dc01ebf937f8501bcfb15c6641c569f8097ccf5 | [
"MIT"
] | null | null | null | jet20/backend/solver.py | JTJL/jet20 | 2dc01ebf937f8501bcfb15c6641c569f8097ccf5 | [
"MIT"
] | null | null | null |
import torch
import time
import copy
from jet20.backend.constraints import *
from jet20.backend.obj import *
from jet20.backend.config import *
from jet20.backend.core import solve,OPTIMAL,SUB_OPTIMAL,USER_STOPPED
import logging
logger = logging.getLogger(__name__)
| 26.247312 | 102 | 0.546907 |
16b8038b17e6b43264d1acbee80a12ded5b8d440 | 1,077 | py | Python | tests/test_transforms.py | mengfu188/mmdetection.bak | 0bc0ea591b5725468f83f9f48630a1e3ad599303 | [
"Apache-2.0"
] | 2 | 2020-07-14T13:55:17.000Z | 2021-05-07T11:25:31.000Z | tests/test_transforms.py | mengfu188/mmdetection.bak | 0bc0ea591b5725468f83f9f48630a1e3ad599303 | [
"Apache-2.0"
] | null | null | null | tests/test_transforms.py | mengfu188/mmdetection.bak | 0bc0ea591b5725468f83f9f48630a1e3ad599303 | [
"Apache-2.0"
] | null | null | null | import torch
from mmdet.datasets.pipelines.transforms import Pad
from mmdet.datasets.pipelines.transforms import FilterBox
import numpy as np
import cv2
if __name__ == '__main__':
# test_pad()
test_filter_box()
| 22.914894 | 57 | 0.535747 |
16b8947aeb5e92484b74a59f50dce7a8d1075f22 | 23,601 | py | Python | dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py | akulamartin/lumberyard | 2d4be458a02845179be098e40cdc0c48f28f3b5a | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | null | null | null | dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | 4 | 2019-08-05T07:25:46.000Z | 2020-12-07T05:12:55.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 43.304587 | 191 | 0.637897 |
16ba68b504461ec3bb45c6f18a8ccf9704c15e7e | 7,471 | py | Python | linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | 3 | 2019-11-22T08:04:18.000Z | 2019-11-26T06:55:36.000Z | linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Curve fitting with linear programming.
Minimizes the sum of error for each fit point to find the optimal coefficients
for a given polynomial.
Overview:
Objective: Sum of errors
Subject to: Bounds on coefficients
Credit: "Curve Fitting with Linear Programming", H. Swanson and R. E. ... | 39.115183 | 80 | 0.674073 |
16bce26f2376d0aa7170df9f650a479bf160647c | 11,177 | py | Python | build-script-helper.py | aciidb0mb3r/swift-stress-tester | aad9df89d2aae4640e9f4e06c234818c6b3ed434 | [
"Apache-2.0"
] | null | null | null | build-script-helper.py | aciidb0mb3r/swift-stress-tester | aad9df89d2aae4640e9f4e06c234818c6b3ed434 | [
"Apache-2.0"
] | null | null | null | build-script-helper.py | aciidb0mb3r/swift-stress-tester | aad9df89d2aae4640e9f4e06c234818c6b3ed434 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
This source file is part of the Swift.org open source project
Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See https://swift.org/LICENSE.txt for license information
See https://swift.org/CONTRI... | 38.277397 | 204 | 0.711014 |
16bd3669143df2de8767a9c8bf39a0f217eb03a8 | 1,701 | py | Python | tests/components/deconz/test_scene.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/deconz/test_scene.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/deconz/test_scene.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """deCONZ scene platform tests."""
from unittest.mock import patch
from openpeerpower.components.scene import DOMAIN as SCENE_DOMAIN, SERVICE_TURN_ON
from openpeerpower.const import ATTR_ENTITY_ID
from .test_gateway import (
DECONZ_WEB_REQUEST,
mock_deconz_put_request,
setup_deconz_integration,
)
| 27.885246 | 82 | 0.627278 |
16bd643a28b81f74d29d0b9a43b20d245093f663 | 12,716 | py | Python | tensorhive/config.py | roscisz/TensorHive | 4a680f47a0ee1ce366dc82ad9964e229d9749c4e | [
"Apache-2.0"
] | 129 | 2017-08-25T11:45:15.000Z | 2022-03-29T05:11:25.000Z | tensorhive/config.py | roscisz/TensorHive | 4a680f47a0ee1ce366dc82ad9964e229d9749c4e | [
"Apache-2.0"
] | 251 | 2017-07-27T10:05:58.000Z | 2022-03-02T12:46:13.000Z | tensorhive/config.py | roscisz/TensorHive | 4a680f47a0ee1ce366dc82ad9964e229d9749c4e | [
"Apache-2.0"
] | 20 | 2017-08-13T13:05:14.000Z | 2022-03-19T02:21:37.000Z | from pathlib import PosixPath
import configparser
from typing import Dict, Optional, Any, List
from inspect import cleandoc
import shutil
import tensorhive
import os
import logging
log = logging.getLogger(__name__)
ConfigInitilizer()
config = ConfigLoader.load(CONFIG_FILES.MAIN_CONFIG_PATH, displayed_title='main')... | 42.959459 | 118 | 0.681268 |
16bdc023e7792aee5f95f6dd1ec12e9328dbed08 | 4,534 | py | Python | model.py | iz2late/baseline-seq2seq | 2bfa8981083aed8d30befeb42e41fe78d8ec1641 | [
"MIT"
] | 1 | 2021-01-06T20:49:32.000Z | 2021-01-06T20:49:32.000Z | model.py | iz2late/baseline-seq2seq | 2bfa8981083aed8d30befeb42e41fe78d8ec1641 | [
"MIT"
] | null | null | null | model.py | iz2late/baseline-seq2seq | 2bfa8981083aed8d30befeb42e41fe78d8ec1641 | [
"MIT"
] | null | null | null | import random
from typing import Tuple
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch import Tensor
| 37.163934 | 90 | 0.635862 |
16be469a1debb4ce731178e138eb07a68236018a | 7,907 | py | Python | ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py | xuyannus/Machine-Learning-Collection | 6d5dcd18d4e40f90e77355d56a2902e4c617ecbe | [
"MIT"
] | 3,094 | 2020-09-20T04:34:31.000Z | 2022-03-31T23:59:46.000Z | ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py | xkhainguyen/Machine-Learning-Collection | 425d196e9477dbdbbd7cc0d19d29297571746ab5 | [
"MIT"
] | 79 | 2020-09-24T08:54:17.000Z | 2022-03-30T14:45:08.000Z | ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py | xkhainguyen/Machine-Learning-Collection | 425d196e9477dbdbbd7cc0d19d29297571746ab5 | [
"MIT"
] | 1,529 | 2020-09-20T16:21:21.000Z | 2022-03-31T21:16:25.000Z | import torch
import torch.nn as nn
import torch.optim as optim
from torchtext.datasets import Multi30k
from torchtext.data import Field, BucketIterator
import numpy as np
import spacy
import random
from torch.utils.tensorboard import SummaryWriter # to print to tensorboard
from utils import translate_sentence, bleu, s... | 32.539095 | 103 | 0.682433 |
16beddc32cad55aeba19e5840d544ba51efbce38 | 2,533 | py | Python | gail_chatbot/light/sqil/light_sentence_imitate_mixin.py | eublefar/gail_chatbot | fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab | [
"MIT"
] | null | null | null | gail_chatbot/light/sqil/light_sentence_imitate_mixin.py | eublefar/gail_chatbot | fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab | [
"MIT"
] | null | null | null | gail_chatbot/light/sqil/light_sentence_imitate_mixin.py | eublefar/gail_chatbot | fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab | [
"MIT"
] | null | null | null | from typing import Dict, Any, List
import string
from parlai.core.agents import Agent
from parlai.core.message import Message
from random import sample
import pathlib
path = pathlib.Path(__file__).parent.absolute()
| 29.8 | 91 | 0.586656 |
16bf36b1dcc9b129dcd361097fbc1ea1ea920674 | 1,654 | py | Python | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 1 | 2022-02-08T09:47:35.000Z | 2022-02-08T09:47:35.000Z | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 62 | 2021-04-02T23:41:16.000Z | 2022-03-25T13:16:10.000Z | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | null | null | null | """https://www.educative.io/courses/grokking-the-coding-interview/N7rwVyAZl6D
Categories:
- Binary
- Bit Manipulation
- Blind 75
See Also:
- pytudes/_2021/leetcode/blind_75/linked_list/_141__linked_list_cycle__easy.py
"""
from pytudes._2021.utils.linked_list import (
ListNode,
NodeType,
... | 23.971014 | 82 | 0.605804 |
16bf4f8f27c28015e220b292e189af4ce08ed99c | 4,417 | py | Python | httpd.py | whtt8888/TritonHTTPserver | 99adf3f1e6c3867bb870cda8434605c59409ea19 | [
"MIT"
] | 2 | 2019-04-07T06:11:56.000Z | 2019-10-14T05:08:16.000Z | httpd.py | whtt8888/TritonHTTPserver | 99adf3f1e6c3867bb870cda8434605c59409ea19 | [
"MIT"
] | null | null | null | httpd.py | whtt8888/TritonHTTPserver | 99adf3f1e6c3867bb870cda8434605c59409ea19 | [
"MIT"
] | null | null | null | import sys
import os
import socket
import time
import threading
if __name__ == '__main__':
input_port = int(sys.argv[1])
input_doc_root = sys.argv[2]
server = MyServer(input_port, input_doc_root)
# Add code to start your server here
threads = []
with socket.socket(socket.AF_INET, socket.SOCK... | 31.105634 | 85 | 0.479511 |
16c081effc971dd24b22b938117db5e30575dfca | 1,179 | py | Python | pf_pweb_sourceman/task/git_repo_man.py | problemfighter/pf-pweb-sourceman | 827b1d92ac992ec1495b128e99137aab1cfa09a0 | [
"Apache-2.0"
] | null | null | null | pf_pweb_sourceman/task/git_repo_man.py | problemfighter/pf-pweb-sourceman | 827b1d92ac992ec1495b128e99137aab1cfa09a0 | [
"Apache-2.0"
] | null | null | null | pf_pweb_sourceman/task/git_repo_man.py | problemfighter/pf-pweb-sourceman | 827b1d92ac992ec1495b128e99137aab1cfa09a0 | [
"Apache-2.0"
] | null | null | null | from git import Repo
from pf_pweb_sourceman.common.console import console
from pf_py_file.pfpf_file_util import PFPFFileUtil
| 33.685714 | 84 | 0.63274 |
16c22952eef284ef2bbd4cfa4e2bbaa9380b0ceb | 2,969 | py | Python | tool/remote_info.py | shanmukmichael/Asset-Discovery-Tool | 82c3f2f5cecb394a1ad87b2e504fbef219a466fd | [
"MIT"
] | null | null | null | tool/remote_info.py | shanmukmichael/Asset-Discovery-Tool | 82c3f2f5cecb394a1ad87b2e504fbef219a466fd | [
"MIT"
] | null | null | null | tool/remote_info.py | shanmukmichael/Asset-Discovery-Tool | 82c3f2f5cecb394a1ad87b2e504fbef219a466fd | [
"MIT"
] | null | null | null | import socket
import paramiko
import json
Hostname = '34.224.2.243'
Username = 'ec2-user'
key = 'G:/Projects/Python/Asset-Discovery-Tool/tool/s.pem'
is_connected()
try:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=Hostname, username=Username, ... | 29.39604 | 84 | 0.594139 |
16c3880f871252c2ad2ebcf1bd3aca25678856cb | 16,099 | py | Python | hvac/api/secrets_engines/kv_v2.py | Famoco/hvac | cdc1854385dd981de38bcb6350f222a52bcf3923 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/kv_v2.py | Famoco/hvac | cdc1854385dd981de38bcb6350f222a52bcf3923 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/kv_v2.py | Famoco/hvac | cdc1854385dd981de38bcb6350f222a52bcf3923 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""KvV2 methods module."""
from hvac import exceptions, utils
from hvac.api.vault_api_base import VaultApiBase
DEFAULT_MOUNT_POINT = 'secret'
| 42.254593 | 127 | 0.638611 |
16c3b1e6ee4edc3e7c6e66622f8ee4afa8a44dad | 512 | py | Python | android/install-all.py | SaschaWillems/vulkan_slim | 642bcf1eaba8bbcb94a8bec61f3454c597af72f9 | [
"MIT"
] | 28 | 2017-09-04T18:54:49.000Z | 2021-09-18T11:52:04.000Z | android/install-all.py | 0xm1nam0/Vulkan | ea726e617f71f5ff5c1503bca134b2a7ad17a1a7 | [
"MIT"
] | null | null | null | android/install-all.py | 0xm1nam0/Vulkan | ea726e617f71f5ff5c1503bca134b2a7ad17a1a7 | [
"MIT"
] | 1 | 2018-07-20T06:51:08.000Z | 2018-07-20T06:51:08.000Z | # Install all examples to connected device(s)
import subprocess
import sys
answer = input("Install all vulkan examples to attached device, this may take some time! (Y/N)").lower() == 'y'
if answer:
BUILD_ARGUMENTS = ""
for arg in sys.argv[1:]:
if arg == "-validation":
BUILD_ARGUMENTS += "-v... | 36.571429 | 111 | 0.644531 |
16c4d3d9ff39c41395ea4a9779719c084f2fc55a | 1,726 | py | Python | main.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null | main.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null | main.py | juangallostra/moonboard | d4a35857d480ee4bed06faee44e0347e1070b6b8 | [
"MIT"
] | null | null | null | from generators.ahoughton import AhoughtonGenerator
from render_config import RendererConfig
from problem_renderer import ProblemRenderer
from moonboard import get_moonboard
from adapters.default import DefaultProblemAdapter
from adapters.crg import CRGProblemAdapter
from adapters.ahoughton import AhoughtonAdapter
impo... | 30.280702 | 113 | 0.707995 |
16c4fdb052f6373448ef88971819f508813eb2d7 | 5,228 | py | Python | GearBot/Util/Pages.py | JohnyTheCarrot/GearBot | 8a32bfc79f997a154c9abccbf6742a79fc5257b0 | [
"MIT"
] | null | null | null | GearBot/Util/Pages.py | JohnyTheCarrot/GearBot | 8a32bfc79f997a154c9abccbf6742a79fc5257b0 | [
"MIT"
] | null | null | null | GearBot/Util/Pages.py | JohnyTheCarrot/GearBot | 8a32bfc79f997a154c9abccbf6742a79fc5257b0 | [
"MIT"
] | null | null | null | import discord
from Util import Utils, Emoji, Translator
page_handlers = dict()
known_messages = dict()
def basic_pages(pages, page_num, action):
if action == "PREV":
page_num -= 1
elif action == "NEXT":
page_num += 1
if page_num < 0:
page_num = len(pages) - 1
if page_n... | 33.299363 | 213 | 0.55394 |
16c7d2d61e641808d594577e77047ea93c4d6c86 | 8,007 | py | Python | software/Opal/spud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | 2 | 2020-05-11T02:39:46.000Z | 2020-05-11T03:08:38.000Z | software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | null | null | null | software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | 2 | 2020-05-21T22:50:19.000Z | 2020-10-28T17:16:31.000Z | #!/usr/bin/env python
# This file is part of Diamond.
#
# Diamond 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 3 of the License, or
# (at your option) any later version.
#
# ... | 28.193662 | 95 | 0.723242 |
16c86dba44c4d72104ae5760fa8ff0a89daa4441 | 5,793 | py | Python | src/mazes.py | tim-fi/pyxel_games | 3df9d7e1f3d5436d2051db3f5783bdeab916c054 | [
"Unlicense"
] | 2 | 2021-04-03T09:49:46.000Z | 2021-12-27T19:32:32.000Z | src/mazes.py | tim-fi/pyxel_games | 3df9d7e1f3d5436d2051db3f5783bdeab916c054 | [
"Unlicense"
] | null | null | null | src/mazes.py | tim-fi/pyxel_games | 3df9d7e1f3d5436d2051db3f5783bdeab916c054 | [
"Unlicense"
] | null | null | null | from __future__ import annotations
from dataclasses import dataclass, field, InitVar
from typing import List, Tuple, Iterator, Iterable, Optional
from random import choice
import pyxel
# -------------------------------------------------------
# Types
# -------------------------------------------------------
Maze = T... | 32.544944 | 79 | 0.468324 |
16c8cf672763555c8ebe97c11704c5a42703427b | 5,536 | py | Python | bobjiang/settings.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-10-25T13:08:04.000Z | 2020-01-05T11:29:18.000Z | bobjiang/settings.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 9 | 2020-05-10T10:13:56.000Z | 2022-03-11T23:33:52.000Z | bobjiang/settings.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-02-11T02:55:51.000Z | 2020-01-05T11:29:20.000Z | """
Django settings for bobjiang project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
i... | 28.984293 | 171 | 0.638728 |
16c94789f75ac4c3a4caedf7d0832ce6641802d7 | 671 | py | Python | Users/models.py | titusnjuguna/FreeDom | 204b3d06ba66e6e8a04af976a25c3c1b7c070f75 | [
"MIT"
] | 1 | 2022-02-10T17:54:53.000Z | 2022-02-10T17:54:53.000Z | Users/models.py | titusnjuguna/FreeDom | 204b3d06ba66e6e8a04af976a25c3c1b7c070f75 | [
"MIT"
] | null | null | null | Users/models.py | titusnjuguna/FreeDom | 204b3d06ba66e6e8a04af976a25c3c1b7c070f75 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
| 29.173913 | 60 | 0.588674 |
16c9a5ddd1d3e1f33c18bfd269bc6097b27aa5a2 | 2,281 | py | Python | dvc/__init__.py | zjj2wry/dvc | c9df567938eefd7b1f5b094c15f04e5ce704aa36 | [
"Apache-2.0"
] | null | null | null | dvc/__init__.py | zjj2wry/dvc | c9df567938eefd7b1f5b094c15f04e5ce704aa36 | [
"Apache-2.0"
] | null | null | null | dvc/__init__.py | zjj2wry/dvc | c9df567938eefd7b1f5b094c15f04e5ce704aa36 | [
"Apache-2.0"
] | null | null | null | """
DVC
----
Make your data science projects reproducible and shareable.
"""
import os
import warnings
VERSION_BASE = '0.23.2'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__))
HOMEPATH = os.path.dirname(PACKAGEPATH)
VERSIONPATH = os.path.join(PACKAGEPATH, 'version.py')
def _updat... | 32.126761 | 78 | 0.702762 |
16c9bf4375ba49f6aaa19ea289549cfbf3ed1092 | 9,092 | py | Python | pkg_dir/src/utils/notion_utils.py | robperch/robase_datalysis | 343cb59b16630ca776bd941897ab8da63f20bfe1 | [
"MIT"
] | 2 | 2022-01-09T19:18:57.000Z | 2022-01-09T19:19:04.000Z | pkg_dir/src/utils/notion_utils.py | robperch/robasecode | 343cb59b16630ca776bd941897ab8da63f20bfe1 | [
"MIT"
] | 4 | 2022-01-17T02:46:24.000Z | 2022-02-20T23:04:05.000Z | pkg_dir/src/utils/notion_utils.py | robperch/robasecode | 343cb59b16630ca776bd941897ab8da63f20bfe1 | [
"MIT"
] | null | null | null | ## MODULE WITH UTIL FUNCTIONS - NOTION
"----------------------------------------------------------------------------------------------------------------------"
####################################################### Imports ########################################################
"---------------------------------... | 30.006601 | 120 | 0.569182 |
16caf6d3ac2e6621185a4d16c03069163552a572 | 8,371 | py | Python | libpermian/issueanalyzer/test_baseissue.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | null | null | null | libpermian/issueanalyzer/test_baseissue.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | 9 | 2022-02-07T14:14:10.000Z | 2022-03-22T09:17:16.000Z | libpermian/issueanalyzer/test_baseissue.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | 3 | 2022-01-20T09:17:39.000Z | 2022-03-08T00:35:58.000Z | import unittest
import logging
import contextlib
from libpermian.settings import Settings
from .proxy import IssueAnalyzerProxy
from .base import BaseAnalyzer, BaseIssue
from .issueset import IssueSet
LOGGER = logging.getLogger('test')
# TrackedResolvedIssue should behave the same way as TrackedUnresolvedIssue
# so... | 29.896429 | 79 | 0.611158 |
16cb0577b93ac4b27ff6f443a2d517ea18cbf9f7 | 6,421 | py | Python | naplib/alignment/prosodylab_aligner/__main__.py | gavinmischler/naplib-python | 8cd7a0fc700f1c07243169ec42fc087955885adc | [
"MIT"
] | 1 | 2022-03-02T20:54:23.000Z | 2022-03-02T20:54:23.000Z | naplib/alignment/prosodylab_aligner/__main__.py | gavinmischler/gavlib | cacf9180b1442e4aed98b6182d586747a6d6ef90 | [
"MIT"
] | null | null | null | naplib/alignment/prosodylab_aligner/__main__.py | gavinmischler/gavlib | cacf9180b1442e4aed98b6182d586747a6d6ef90 | [
"MIT"
] | null | null | null | # Copyright (c) 2011-2014 Kyle Gorman and Michael Wagner
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify,... | 40.13125 | 102 | 0.68167 |
16cc459343115a5e0d636bad4bf667af5c4f5d6d | 4,021 | py | Python | init/build_statements.py | andgein/sis-2017-winter-olymp | e6cf290ab2c24a22ca76949895e2a6cc6d818dc0 | [
"MIT"
] | null | null | null | init/build_statements.py | andgein/sis-2017-winter-olymp | e6cf290ab2c24a22ca76949895e2a6cc6d818dc0 | [
"MIT"
] | null | null | null | init/build_statements.py | andgein/sis-2017-winter-olymp | e6cf290ab2c24a22ca76949895e2a6cc6d818dc0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import codecs
import os
import os.path
import shutil
import subprocess
import logging
import glob
import json
CONTEST_DIR = 'polygon-contest'
INIT_FILE = 'init.txt'
BUILD_DIR = 'build'
LANGUAGE = 'russian'
FILES_DIR = 'files-' + LANGUAGE
if __name__ == '__main__':
main()
| 39.038835 | 123 | 0.607063 |
16cc8a900ca38b32bc2a6bbb0fff269ef5b921da | 1,430 | py | Python | conanfile.py | mmurooka/mc_rtc_data | bf45279cc59f9d85915cb2a01a84c23e5ce45958 | [
"BSD-2-Clause"
] | 1 | 2021-04-12T06:02:53.000Z | 2021-04-12T06:02:53.000Z | conanfile.py | mmurooka/mc_rtc_data | bf45279cc59f9d85915cb2a01a84c23e5ce45958 | [
"BSD-2-Clause"
] | 3 | 2020-06-18T10:01:15.000Z | 2021-11-08T12:43:43.000Z | conanfile.py | mmurooka/mc_rtc_data | bf45279cc59f9d85915cb2a01a84c23e5ce45958 | [
"BSD-2-Clause"
] | 4 | 2020-03-12T08:57:41.000Z | 2021-09-07T03:07:56.000Z | # -*- coding: utf-8 -*-
#
from conans import python_requires
import conans.tools as tools
import os
base = python_requires("Eigen3ToPython/latest@multi-contact/dev")
| 34.878049 | 168 | 0.652448 |
16cd7731b200cbda5815fed9bc8eb8baf3b78188 | 1,217 | py | Python | hyperion/migrations/0006_auto_20190218_2251.py | ExiaSR/hyperion | 0b14ef55ed00b964f1966c722f4162c475aa4895 | [
"MIT"
] | 3 | 2019-01-30T03:50:04.000Z | 2019-02-20T00:33:05.000Z | hyperion/migrations/0006_auto_20190218_2251.py | ExiaSR/hyperion | 0b14ef55ed00b964f1966c722f4162c475aa4895 | [
"MIT"
] | 173 | 2019-01-30T08:30:54.000Z | 2019-04-05T19:43:06.000Z | hyperion/migrations/0006_auto_20190218_2251.py | ExiaSR/hyperion | 0b14ef55ed00b964f1966c722f4162c475aa4895 | [
"MIT"
] | 2 | 2019-05-06T22:59:56.000Z | 2020-09-29T03:13:03.000Z | # Generated by Django 2.1.5 on 2019-02-18 22:51
from django.db import migrations, models
import django.db.models.deletion
| 34.771429 | 201 | 0.571898 |
16cdaac129cd705700eab605365385f7b7b8a82c | 2,236 | py | Python | pottan_ocr/utils.py | nithyadurai87/pottan-ocr-tamil | e455891dc0ddd508d1318abf84fc59cc548873f7 | [
"MIT"
] | 5 | 2019-05-05T18:26:14.000Z | 2019-08-02T05:04:12.000Z | pottan_ocr/utils.py | nithyadurai87/pottan-ocr-tamil | e455891dc0ddd508d1318abf84fc59cc548873f7 | [
"MIT"
] | 3 | 2020-07-17T02:28:11.000Z | 2021-05-08T21:58:10.000Z | pottan_ocr/utils.py | nithyadurai87/pottan-ocr-tamil | e455891dc0ddd508d1318abf84fc59cc548873f7 | [
"MIT"
] | 3 | 2020-04-11T19:39:08.000Z | 2020-12-21T08:44:21.000Z | import torch
import json
import numpy as np
from torch.autograd import Variable
import gzip
import yaml
from re import split
from matplotlib import pyplot
config = readYaml('./config.yaml')
def loadTrainedModel( model, opt ):
"""Load a pretrained model into given model"""
print('loading pretrained mode... | 24.304348 | 99 | 0.58542 |
16cef8471ab7389079cb6001c00f1c83826a7643 | 1,546 | py | Python | pyvips/error.py | kleisauke/pyvips | ae3b0c09669cfb662e773e8ae69cf589ac15e320 | [
"MIT"
] | null | null | null | pyvips/error.py | kleisauke/pyvips | ae3b0c09669cfb662e773e8ae69cf589ac15e320 | [
"MIT"
] | null | null | null | pyvips/error.py | kleisauke/pyvips | ae3b0c09669cfb662e773e8ae69cf589ac15e320 | [
"MIT"
] | null | null | null | # errors from libvips
import sys
import logging
from pyvips import ffi, vips_lib
logger = logging.getLogger(__name__)
_is_PY3 = sys.version_info[0] == 3
if _is_PY3:
text_type = str
else:
text_type = unicode
ffi.cdef('''
const char* vips_error_buffer (void);
void vips_error_clear (void);
''')
de... | 20.891892 | 76 | 0.638422 |
16cf7d6d5783bc8dc6f881f5646090c8b7e4317c | 7,584 | py | Python | population_estimator/curses_io.py | cruzanta/population-estimator | cb56c551b615726543d8b1643302be2d30fd593c | [
"MIT"
] | 1 | 2019-02-10T01:30:09.000Z | 2019-02-10T01:30:09.000Z | population_estimator/curses_io.py | cruzantada/population-estimator | cb56c551b615726543d8b1643302be2d30fd593c | [
"MIT"
] | null | null | null | population_estimator/curses_io.py | cruzantada/population-estimator | cb56c551b615726543d8b1643302be2d30fd593c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Module for painting output on and obtaining input from a text-based terminal
window using the curses library.
"""
import curses
import textwrap
def display_string_with_prompt(screen, first_line_num, a_string, prompt):
"""Paints two strings and accepts input.
Paints two strings ... | 36.114286 | 80 | 0.676292 |
16d095db1ff9ef61a032d5e0564695c1cb47f1b3 | 6,986 | py | Python | SAP/released_tr_email_sender/ui.py | botisko/personal_programs | 2e234271db438e228b9028b8180a6e833f482104 | [
"MIT"
] | null | null | null | SAP/released_tr_email_sender/ui.py | botisko/personal_programs | 2e234271db438e228b9028b8180a6e833f482104 | [
"MIT"
] | 1 | 2021-01-08T13:25:16.000Z | 2021-01-08T13:25:16.000Z | SAP/released_tr_email_sender/ui.py | botisko/personal_programs | 2e234271db438e228b9028b8180a6e833f482104 | [
"MIT"
] | 1 | 2021-01-08T12:52:29.000Z | 2021-01-08T12:52:29.000Z | import json
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from tr_data import TRData, NO_DATA_MEETS_CRITERIA
from email_text import email_body_template
from helpers import send_email
RECIPIENT = <email_address>
EXCEPTION_FILE = "tr_number_exceptions.json"
| 38.174863 | 134 | 0.61838 |
16d0a3ae5b7a5043417a9ada134eda9cc4f2dd27 | 1,548 | py | Python | AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | 2 | 2019-01-23T14:23:17.000Z | 2019-01-23T14:23:49.000Z | AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | null | null | null | AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py | foochane/Tensorflow-Learning | 54d210a1286051e9d60c98a62bd63eb070bc0a11 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
#0
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import opt4_8_generateds
import opt4_8_forward
STEPS = 40000
BATCH_SIZE = 30
LEARNING_RATE_BASE = 0.001
LEARNING_RATE_DECAY = 0.999
REGULARIZER = 0.01
if __name__=='__main__':
backward()
| 24.967742 | 72 | 0.700258 |
16d13aced6b20979dea691425018aa9f0ea80fb3 | 3,168 | py | Python | test/examples/integrated/codec/vip/vip_agent.py | rodrigomelo9/uvm-python | e3127eba2cc1519a61dc6f736d862a8dcd6fce20 | [
"Apache-2.0"
] | 140 | 2020-01-18T00:14:17.000Z | 2022-03-29T10:57:24.000Z | test/examples/integrated/codec/vip/vip_agent.py | Mohsannaeem/uvm-python | 1b8768a1358d133465ede9cadddae651664b1d53 | [
"Apache-2.0"
] | 24 | 2020-01-18T18:40:58.000Z | 2021-03-25T17:39:07.000Z | test/examples/integrated/codec/vip/vip_agent.py | Mohsannaeem/uvm-python | 1b8768a1358d133465ede9cadddae651664b1d53 | [
"Apache-2.0"
] | 34 | 2020-01-18T12:22:59.000Z | 2022-02-11T07:03:11.000Z | #//
#// -------------------------------------------------------------
#// Copyright 2011 Synopsys, Inc.
#// Copyright 2019-2020 Tuomas Poikela (tpoikela)
#// All Rights Reserved Worldwide
#//
#// Licensed under the Apache License, Version 2.0 (the
#// "License"); you may not use this file except in
#//... | 33 | 96 | 0.606376 |
16d1b5218231a945c48c3095503b717e135149a2 | 7,987 | py | Python | tests/test_transliterate.py | abosoar/camel_tools | 0a92c06f6dde0063e26df5cbe4d74c2f99b418e0 | [
"MIT"
] | 1 | 2021-03-23T12:50:47.000Z | 2021-03-23T12:50:47.000Z | tests/test_transliterate.py | KaoutharMokrane/camel_tools | e9099907835b05d448362bce2cb0e815ac7f5590 | [
"MIT"
] | null | null | null | tests/test_transliterate.py | KaoutharMokrane/camel_tools | e9099907835b05d448362bce2cb0e815ac7f5590 | [
"MIT"
] | 1 | 2021-01-24T05:06:33.000Z | 2021-01-24T05:06:33.000Z | # -*- coding: utf-8 -*-
# MIT License
#
# Copyright 2018-2020 New York University Abu Dhabi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... | 33.700422 | 79 | 0.662076 |