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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55fc362ece90946015f4b5b227a527251bc8be9e | 1,463 | py | Python | geolocator.py | Kugeleis/TeslaInventoryChecker | 93b6e8e2885bf8e0c15942e940d5d5626754f7a8 | [
"MIT"
] | 7 | 2021-08-13T16:46:32.000Z | 2021-12-23T17:54:33.000Z | geolocator.py | Kugeleis/TeslaInventoryChecker | 93b6e8e2885bf8e0c15942e940d5d5626754f7a8 | [
"MIT"
] | null | null | null | geolocator.py | Kugeleis/TeslaInventoryChecker | 93b6e8e2885bf8e0c15942e940d5d5626754f7a8 | [
"MIT"
] | 5 | 2021-08-13T04:38:05.000Z | 2021-12-14T06:29:11.000Z | import http.client
import json
from types import SimpleNamespace | 28.686275 | 89 | 0.584416 |
55fd77fad6026ba26284584227c80ea384f74fc0 | 4,942 | py | Python | client/runTFpose.py | BamLubi/tf-pose_Client | 07032a8b7ba80f717e74f6c893fadc6e2faa6573 | [
"MIT"
] | 1 | 2022-03-21T18:02:05.000Z | 2022-03-21T18:02:05.000Z | client/runTFpose.py | BamLubi/tf-pose_Client | 07032a8b7ba80f717e74f6c893fadc6e2faa6573 | [
"MIT"
] | null | null | null | client/runTFpose.py | BamLubi/tf-pose_Client | 07032a8b7ba80f717e74f6c893fadc6e2faa6573 | [
"MIT"
] | null | null | null | import argparse
import cv2
import time
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
"""
tf-openpose
"""
if __name__ == '__main__':
TFPOSE() | 37.439394 | 151 | 0.593484 |
55fe127a3e15c5c409ac7dd672e540ee28e8d786 | 413 | py | Python | oldPython/driving_app.py | Awarua-/Can-I-Have-Your-Attention-COSC475-Research | 71b5140b988aa6512a7cf5b5b6d043e20fd02084 | [
"MIT"
] | null | null | null | oldPython/driving_app.py | Awarua-/Can-I-Have-Your-Attention-COSC475-Research | 71b5140b988aa6512a7cf5b5b6d043e20fd02084 | [
"MIT"
] | null | null | null | oldPython/driving_app.py | Awarua-/Can-I-Have-Your-Attention-COSC475-Research | 71b5140b988aa6512a7cf5b5b6d043e20fd02084 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.label import Label
from kivy.core.window import Window
if __name__ == "__main__":
DrivingApp.run()
| 21.736842 | 56 | 0.653753 |
55fe69df7aecb356db95a682b17146dfaf4521ce | 3,103 | py | Python | api/src/opentrons/calibration_storage/helpers.py | faliester/opentrons | e945d0f72fed39b0f68c0b30b7afd1981644184f | [
"Apache-2.0"
] | 1 | 2022-03-17T20:38:04.000Z | 2022-03-17T20:38:04.000Z | api/src/opentrons/calibration_storage/helpers.py | faliester/opentrons | e945d0f72fed39b0f68c0b30b7afd1981644184f | [
"Apache-2.0"
] | null | null | null | api/src/opentrons/calibration_storage/helpers.py | faliester/opentrons | e945d0f72fed39b0f68c0b30b7afd1981644184f | [
"Apache-2.0"
] | null | null | null | """ opentrons.calibration_storage.helpers: various miscellaneous
functions
This module has functions that you can import to save robot or
labware calibration to its designated file location.
"""
import json
from typing import Union, List, Dict, TYPE_CHECKING
from dataclasses import is_dataclass, asdict
from hashlib ... | 32.663158 | 79 | 0.684821 |
55fe802b2df8f3e2a5853155117ec23bac4176ca | 3,264 | py | Python | scripts/OpenRobotPyxl.py | coder-cell/robotframework-openpyxl | abc839755a1e8c0208065e9c9568d7df732a6792 | [
"MIT"
] | null | null | null | scripts/OpenRobotPyxl.py | coder-cell/robotframework-openpyxl | abc839755a1e8c0208065e9c9568d7df732a6792 | [
"MIT"
] | null | null | null | scripts/OpenRobotPyxl.py | coder-cell/robotframework-openpyxl | abc839755a1e8c0208065e9c9568d7df732a6792 | [
"MIT"
] | null | null | null | import openpyxl
from robot.api.deco import keyword, library
from robot.api import logger
| 32.969697 | 75 | 0.636336 |
55fec657248ea9359324a70a7e7e0fc53b322616 | 1,852 | py | Python | club/urls.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | 1 | 2018-04-10T11:47:16.000Z | 2018-04-10T11:47:16.000Z | club/urls.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | club/urls.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'club'
urlpatterns = [
path('create/', views.create_club, name='create_club'),
path('update/<int:club_pk>', views.update_club, name='update_club'),
path('read_admin_club/<str:club>/<int:ctg_pk>/', views.read_admin_club, name='read_admin_club_ctg... | 52.914286 | 116 | 0.721922 |
55feec79a1027ecfba7881baf9cccd2719790498 | 1,270 | py | Python | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | 2 | 2020-12-18T21:42:05.000Z | 2020-12-21T06:07:33.000Z | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | null | null | null | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | 2 | 2020-07-04T20:30:19.000Z | 2021-08-31T08:32:36.000Z | from random import randint
from typing import List
print(Solution().findKthLargest([4, 1, 2, 11], 2))
| 27.021277 | 90 | 0.574803 |
55ff7e57e726077e74bb90a288c442b6922782cb | 3,033 | py | Python | termpixels/util.py | loganzartman/termpixels | 4353cc0eb9f6947cd5bb8286322a8afea597d741 | [
"MIT"
] | 17 | 2019-04-11T20:05:13.000Z | 2022-03-08T22:26:44.000Z | termpixels/util.py | loganzartman/termpixels | 4353cc0eb9f6947cd5bb8286322a8afea597d741 | [
"MIT"
] | 14 | 2019-05-16T19:26:58.000Z | 2020-10-27T09:35:02.000Z | termpixels/util.py | loganzartman/termpixels | 4353cc0eb9f6947cd5bb8286322a8afea597d741 | [
"MIT"
] | 1 | 2020-12-09T16:39:44.000Z | 2020-12-09T16:39:44.000Z | from unicodedata import east_asian_width, category
from functools import lru_cache
import re
def corners_to_box(x0, y0, x1, y1):
"""convert two corners (x0, y0, x1, y1) to (x, y, width, height)"""
x0, x1 = min(x0, x1), max(x0, x1)
y0, y1 = min(y0, y1), max(y0, y1)
return x0, y0, x1 - x0 + 1, y1 - y0 + ... | 32.265957 | 76 | 0.574019 |
55ffa154fe658f0af46cbd92f080b7eac5967357 | 303 | py | Python | json.py | AbhijithGanesh/Flask-HTTP-Server | 78f6c6985e6ffd9f4f70738771d6fcdb802964cc | [
"BSD-3-Clause"
] | null | null | null | json.py | AbhijithGanesh/Flask-HTTP-Server | 78f6c6985e6ffd9f4f70738771d6fcdb802964cc | [
"BSD-3-Clause"
] | null | null | null | json.py | AbhijithGanesh/Flask-HTTP-Server | 78f6c6985e6ffd9f4f70738771d6fcdb802964cc | [
"BSD-3-Clause"
] | null | null | null | import json
'''
READ THE DATABASE README before operating
'''
File = r'''YOUR FILE'''
with open(File,'a') as fileObj:
data = json.load()
'''
YOUR DATA LOGIC GOES IN HERE
Once the data is changed, to write it to your JSON file use the following command.
'''
json.dump(object,File) | 25.25 | 86 | 0.656766 |
3600f4551fc329b671400ff96e43cfab6f75ddb4 | 3,128 | py | Python | slash/hooks.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | slash/hooks.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | slash/hooks.py | omergertel/slash | 7dd5710a05822bbbaadc6c6517cefcbaa6397eab | [
"BSD-3-Clause"
] | null | null | null | import gossip
from .conf import config
from .utils.deprecation import deprecated
_define('session_start', doc="Called right after session starts")
_define('session_end', doc="Called right before the session ends, regardless of the reason for termination")
_define('after_session_start', doc="Second entry point for s... | 34.373626 | 142 | 0.741368 |
36011f50763e2763762534e112d2a7cea6f3af2e | 65 | py | Python | experiments/archived/20210203/bag_model/models/__init__.py | fxnnxc/text_summarization | b8c8a5f491bc44622203602941c1514b2e006fe3 | [
"Apache-2.0"
] | 5 | 2020-10-14T02:30:44.000Z | 2021-05-06T12:48:28.000Z | experiments/archived/20210119/bag_model/models/__init__.py | fxnnxc/text_summarization | b8c8a5f491bc44622203602941c1514b2e006fe3 | [
"Apache-2.0"
] | 2 | 2020-12-19T05:59:31.000Z | 2020-12-22T11:05:31.000Z | experiments/archived/20210203/bag_model/models/__init__.py | fxnnxc/text_summarization | b8c8a5f491bc44622203602941c1514b2e006fe3 | [
"Apache-2.0"
] | null | null | null | from .hub_interface import * # noqa
from .model import * # noqa | 32.5 | 36 | 0.707692 |
360246393544aa24389fdcd4c6b8786fa1b242b5 | 232 | py | Python | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | null | null | null | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | null | null | null | src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py | MingjunGeng/Code-Knowledge | 5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa | [
"MIT"
] | 1 | 2022-03-18T04:52:10.000Z | 2022-03-18T04:52:10.000Z | #!/usr/bin/python3
# --- 001 > U5W2P1_Task3_w1
if __name__ == "__main__":
print('----------start------------')
i = 12
print(solution( i ))
print('------------end------------')
| 19.333333 | 40 | 0.465517 |
3603655d64ea26fd4eb5614d884927de08638bdc | 30,296 | py | Python | plugins/modules/oci_sch_service_connector.py | A7rMtWE57x/oci-ansible-collection | 80548243a085cd53fd5dddaa8135b5cb43612c66 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_sch_service_connector.py | A7rMtWE57x/oci-ansible-collection | 80548243a085cd53fd5dddaa8135b5cb43612c66 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_sch_service_connector.py | A7rMtWE57x/oci-ansible-collection | 80548243a085cd53fd5dddaa8135b5cb43612c66 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2017, 2020 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 41.219048 | 159 | 0.568887 |
360379edca40aaeb8a9f20994bc3b04375f6c37f | 210 | py | Python | Kattis/fallingapart.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/fallingapart.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/fallingapart.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | 1 | 2020-06-22T21:07:24.000Z | 2020-06-22T21:07:24.000Z | n = int(input())
intz = [int(x) for x in input().split()]
alice = 0
bob = 0
for i, num in zip(range(n), sorted(intz)[::-1]):
if i%2 == 0:
alice += num
else:
bob += num
print(alice, bob) | 21 | 48 | 0.514286 |
3604769fe194e0541eba00a227334b835b8009c4 | 3,515 | py | Python | ffnn/rbf.py | RaoulMa/NeuralNets | f49072ac88686f753f9b5815d6cc5e71d536c3d2 | [
"MIT"
] | 1 | 2017-12-03T11:06:33.000Z | 2017-12-03T11:06:33.000Z | ffnn/rbf.py | RaoulMa/BasicNeuralNets | f49072ac88686f753f9b5815d6cc5e71d536c3d2 | [
"MIT"
] | null | null | null | ffnn/rbf.py | RaoulMa/BasicNeuralNets | f49072ac88686f753f9b5815d6cc5e71d536c3d2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Description: Choose a set of data points as weights and calculate RBF nodes for the
first layer. Those are then used as inputs for a one-layer perceptron, which gives the
output
"""
import numpy as np
import pcn
| 30.301724 | 132 | 0.588905 |
36056f0439b548a97fafa104e15d32abf2f73d7b | 836 | py | Python | Bot/config.py | faelbreseghello/Monsters-Bot | 9432cf05451ff36c3282a2d6873577e94239e724 | [
"MIT"
] | 7 | 2020-07-13T22:31:00.000Z | 2021-01-11T20:17:41.000Z | Bot/config.py | faelbreseghello/Monsters-Bot | 9432cf05451ff36c3282a2d6873577e94239e724 | [
"MIT"
] | 1 | 2020-08-19T18:58:07.000Z | 2020-08-19T18:58:07.000Z | Bot/config.py | faelbreseghello/Monsters-Bot | 9432cf05451ff36c3282a2d6873577e94239e724 | [
"MIT"
] | 1 | 2021-01-11T21:36:08.000Z | 2021-01-11T21:36:08.000Z | import datetime
import os
# General
Token = open('../Token.txt', 'r') # The token of the bot
Token = Token.read()
prefix = '*' # the command prefix
lang = 'en-us' # 'en-us' or 'pt-br'
memes = os.listdir('../Assets/monsters_memes') # memes db load
banchannel = None # the channel that will be used to ban messages
# Min... | 26.967742 | 82 | 0.685407 |
3605823cc24094c58501be0321e78ef090f4367d | 11,294 | py | Python | postscripts/_city_transformer_postscripts.py | yasahi-hpc/CityTransformer | b285525d860b4cd522a30823351ecd3cb74dcdf3 | [
"MIT"
] | null | null | null | postscripts/_city_transformer_postscripts.py | yasahi-hpc/CityTransformer | b285525d860b4cd522a30823351ecd3cb74dcdf3 | [
"MIT"
] | null | null | null | postscripts/_city_transformer_postscripts.py | yasahi-hpc/CityTransformer | b285525d860b4cd522a30823351ecd3cb74dcdf3 | [
"MIT"
] | null | null | null | """
Convert data and then visualize
Data Manupulation
1. Save metrics for validation and test data
Save figures
1. Loss curve
2. plume dispersion and errors
3. metrics
"""
import pathlib
import numpy as np
import xarray as xr
from numpy import ma
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplo... | 43.775194 | 190 | 0.573579 |
3606767125c21d0e6b93352716d5f01b3c40e053 | 664 | py | Python | OrangeInstaller/OrangeInstaller/Testing.py | mcolombo87/OrangeInstaller | 31486ed532409f08d3b22cd7fdb05f209e3fc3e8 | [
"Apache-2.0"
] | 3 | 2017-04-08T13:52:22.000Z | 2018-10-31T20:17:20.000Z | OrangeInstaller/OrangeInstaller/Testing.py | mcolombo87/OrangeInstaller | 31486ed532409f08d3b22cd7fdb05f209e3fc3e8 | [
"Apache-2.0"
] | 46 | 2017-03-16T10:20:11.000Z | 2018-11-16T15:54:38.000Z | OrangeInstaller/OrangeInstaller/Testing.py | mcolombo87/OrangeInstaller | 31486ed532409f08d3b22cd7fdb05f209e3fc3e8 | [
"Apache-2.0"
] | 1 | 2018-08-12T01:10:41.000Z | 2018-08-12T01:10:41.000Z | from Functions import functions, systemTools
import unittest
import sys
if __name__ == '__main__':
unittest.main() | 31.619048 | 125 | 0.641566 |
36067e37b136228914619d3370100e13fb6c3ddf | 61,464 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
#############################################
# WARNING ... | 49.647819 | 82 | 0.149974 |
36081a586f2b7afca6efc6de5e1d5480c80b61dc | 7,039 | py | Python | quince/ui/components/game_frame.py | DnrkasEFF/quince | 89b5699a63642fd1ed172b566670b4dd8a2f8e18 | [
"MIT"
] | null | null | null | quince/ui/components/game_frame.py | DnrkasEFF/quince | 89b5699a63642fd1ed172b566670b4dd8a2f8e18 | [
"MIT"
] | null | null | null | quince/ui/components/game_frame.py | DnrkasEFF/quince | 89b5699a63642fd1ed172b566670b4dd8a2f8e18 | [
"MIT"
] | null | null | null | """
The primary frame containing the content for the entire game
"""
import tkinter as tk
import random as random
from quince.utility import is_valid_pickup
from quince.ronda import Ronda
from quince.ui.components.opponents.opponent_frame \
import OpponentFrameHorizontal, OpponentFrameVertical
from quince.ui.compon... | 37.844086 | 79 | 0.574513 |
360825b11a2ba8661131f351d015f5a8ff5ce829 | 263 | py | Python | Python_Projects/numeric/lossofsignificance.py | arifBurakDemiray/TheCodesThatIWrote | 17d7bc81c516ec97110d0749e9c19d5e6ef9fc88 | [
"MIT"
] | 1 | 2019-11-01T20:18:06.000Z | 2019-11-01T20:18:06.000Z | Python_Projects/numeric/lossofsignificance.py | arifBurakDemiray/TheCodesThatIWrote | 17d7bc81c516ec97110d0749e9c19d5e6ef9fc88 | [
"MIT"
] | null | null | null | Python_Projects/numeric/lossofsignificance.py | arifBurakDemiray/TheCodesThatIWrote | 17d7bc81c516ec97110d0749e9c19d5e6ef9fc88 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 13 13:35:33 2020
"""
#for finding loss of significances
x=1e-1
flag = True
a=0
while (flag):
print (((2*x)/(1-(x**2))),"......",(1/(1+x))-(1/(1-x)))
x= x*(1e-1)
a=a+1
if(a==25):
flag=False
| 14.611111 | 59 | 0.48289 |
360a23f4d6f5c86eb8c653834fc1cf467b915bfa | 6,479 | py | Python | alphamind/model/treemodel.py | atefar2/alpha-mind | 66d839affb5d81d31d5cac7e5e224278e3f99a8b | [
"MIT"
] | 1 | 2020-05-18T20:57:25.000Z | 2020-05-18T20:57:25.000Z | alphamind/model/treemodel.py | atefar2/alpha-mind | 66d839affb5d81d31d5cac7e5e224278e3f99a8b | [
"MIT"
] | null | null | null | alphamind/model/treemodel.py | atefar2/alpha-mind | 66d839affb5d81d31d5cac7e5e224278e3f99a8b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2017-12-4
@author: cheng.li
"""
import arrow
import numpy as np
import pandas as pd
import xgboost as xgb
from sklearn.ensemble import RandomForestClassifier as RandomForestClassifierImpl
from sklearn.ensemble import RandomForestRegressor as RandomForestRegressorImpl
from sklear... | 36.60452 | 91 | 0.515666 |
360b21f79c3d1e633d2504158f0ac62516a639e7 | 666 | py | Python | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | from pyrogram import Client as bot, filters, emoji
MENTION = "[{}](tg://user?id={})"
text1="hi{} {} welcome to Group Chat"
group ="jangobotz"
| 33.3 | 140 | 0.683183 |
360b7ea47f3ce200b5ccf6c834ad2ed52c42e4f9 | 2,079 | py | Python | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | import locale
from xml.sax import saxutils
defaultEncoding = locale.getdefaultlocale()[-1]
| 32.484375 | 82 | 0.619529 |
360ce588463dab38c7d8f02e3de4947c05f44448 | 4,877 | py | Python | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import codecs
import traceback
import sys
import requests
import requests_cache
import feedparser
import collections
from bs4 import BeautifulSoup
from urlparse import urlparse, urljoin
one_day = 60 * 60 * 24
requests_cache.install_cache(
'rss_cache', backend='sqlite', expire_... | 29.029762 | 96 | 0.552184 |
360e9e36a16342872103b6bba5218132e5fe10ac | 3,102 | py | Python | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | from src.main.common.model import endpoint
| 40.815789 | 106 | 0.624758 |
360ffa9621191899023f1d394dd125777d985f49 | 10,326 | py | Python | tools/testbed_generator.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | null | null | null | tools/testbed_generator.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | 1 | 2021-06-01T22:18:29.000Z | 2021-06-01T22:18:29.000Z | tools/testbed_generator.py | lmadhusudhanan/contrail-test | bd39ff19da06a20bd79af8c25e3cde07375577cf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import yaml
import json
import sys
import re
import argparse
from distutils.version import LooseVersion
from collections import defaultdict
discovery_port = '5998'
config_api_port = '8082'
analytics_api_port = '8081'
control_port = '8083'
dns_port = '8092'
agent_port = '8085'
if __name__ == "__main... | 43.56962 | 126 | 0.643521 |
36111dceb7e38307b2a633510d6f416394679b79 | 9,292 | py | Python | visualization/POF/data/Base2DReader.py | alvaro-budria/body2hands | 0eba438b4343604548120bdb03c7e1cb2b08bcd6 | [
"BSD-3-Clause"
] | 63 | 2021-05-14T02:55:16.000Z | 2022-03-13T01:51:12.000Z | visualization/POF/data/Base2DReader.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-06-24T09:59:41.000Z | 2021-12-31T08:15:20.000Z | visualization/POF/data/Base2DReader.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-05-17T03:33:28.000Z | 2022-02-17T02:30:44.000Z | import tensorflow as tf
from data.BaseReader import BaseReader
import numpy as np
| 57.006135 | 183 | 0.574365 |
361199dea80437ba6ce5df8eea417f22ea366fce | 301 | py | Python | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | from tortoise import Model, fields
| 23.153846 | 43 | 0.69103 |
3611a8921184c2a719ec2f7a6c28b90498243d94 | 6,006 | py | Python | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | #api for extracting the results from wikidata
#https://www.wikidata.org/w/api.php?search=las&language=en&uselang=en&format=jsonfm&limit=25&action=wbsearchentities
# importing modules
import requests
from lxml import etree
import wikipedia
import sys
import re
import pickle
import numpy as np
import os
import sys
i... | 32.290323 | 141 | 0.705295 |
3612229195c84fc7e099e8d1a5caa6236355676b | 327 | py | Python | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | 1 | 2022-02-24T09:29:53.000Z | 2022-02-24T09:29:53.000Z | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | null | null | null | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | null | null | null | from Crypto.Util.number import getRandomRange
from sympy.ntheory.residue_ntheory import jacobi_symbol
N = int(input("N ? "))
x = getRandomRange(2, N)
x2 = (x*x) % N
J = jacobi_symbol(x, N)
print(f"x2 = {x2}")
guess = int(input("j_guess ? "))
print(f"x = {x}")
print("Outcome = Heads" if guess == J else "Outcome = T... | 20.4375 | 61 | 0.663609 |
36134c0670c8fbaeb545400c9c8d63641cf7bd8e | 248 | py | Python | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | 1 | 2021-05-19T19:30:40.000Z | 2021-05-19T19:30:40.000Z | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | null | null | null | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from scoreboard.ranking import calculate_statistics
| 24.8 | 65 | 0.758065 |
36136b9058bdd45bb7644ba4b0f512b2d1902d42 | 796 | py | Python | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
sol = Solution()
print(sol.twoSum([2,7,11,15], 9))
print(sol.twoSum([3,3], 6)) | 24.121212 | 38 | 0.442211 |
3613905669a706db1108a17ee990707e01f2f9a0 | 9,028 | py | Python | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2019-07-26T22:19:53.000Z | 2021-03-04T12:44:35.000Z | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2021-02-17T23:30:48.000Z | 2021-11-29T18:33:05.000Z | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-04-24T19:00:31.000Z | 2019-04-24T19:00:31.000Z | """
Copyright (c) 2018, Joseph Sullivan
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 notice, this
list of conditions and the follo... | 37.305785 | 85 | 0.620735 |
3613d5c133ef8f38bb7353d844f6628f9fe5e6c6 | 901 | py | Python | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | 1 | 2021-01-27T12:20:35.000Z | 2021-01-27T12:20:35.000Z | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import time
from inaccel.keras.applications.resnet50 import decode_predictions, ResNet50
from inaccel.keras.preprocessing.image import ImageDataGenerator, load_img
model = ResNet50(weights='imagenet')
data = ImageDataGenerator(dtype='int8')
images = data.flow_from_directory('imagenet/', target_siz... | 30.033333 | 102 | 0.739179 |
3613f877b238035dadd508a419d964a6d0b3a50e | 1,084 | py | Python | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission, SAFE_METHODS
from .models import User
| 31.882353 | 67 | 0.681734 |
3613fd30924745bd186e0751c87237612b35913e | 8,090 | py | Python | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from morphological_classifier.perceptron import AveragedPerceptron
from morphological_classifier.performance_metrics import PerformanceMetrics
from morphological_classifier.stats_plot import StatsPlotter
from morphological_classifier import constants, utils
import numpy as np
from collecti... | 38.341232 | 92 | 0.583931 |
361427d326c18b286127aad246549f8822f63a94 | 4,263 | py | Python | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | 1 | 2019-01-10T08:04:58.000Z | 2019-01-10T08:04:58.000Z | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | null | null | null | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | 1 | 2019-10-08T16:47:58.000Z | 2019-10-08T16:47:58.000Z | """evaluation function for chromosome
"""
import subprocess
from subprocess import PIPE, STDOUT
from autoprover.evaluation.coqstate import CoqState
def preprocess(theorem, chromosome):
"""
convert chromosome to complete Coq script
Args:
theorem (list): a list of string contains theorem or some pr... | 29 | 79 | 0.601454 |
3616727077997c5d64715fd00bfc6be4f8ba4ad8 | 1,323 | py | Python | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | 1 | 2017-04-28T13:05:13.000Z | 2017-04-28T13:05:13.000Z | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | null | null | null | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | null | null | null | import os
import numpy
from numpy import *
import math
from scipy import integrate, linalg
from matplotlib import pyplot
from pylab import *
from .integral import *
def get_velocity_field(panels, freestream, X, Y):
"""
Computes the velocity field on a given 2D mesh.
Parameters
---------
panel... | 29.4 | 87 | 0.652305 |
3616ce719b349e94d2bd7c4da3e42707eb0de49d | 4,125 | py | Python | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 6 | 2020-08-19T11:46:23.000Z | 2021-12-24T07:34:15.000Z | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 1 | 2021-03-25T23:40:15.000Z | 2021-03-25T23:40:15.000Z | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 2 | 2020-10-31T16:48:39.000Z | 2021-03-07T09:14:25.000Z | import abc
from .exceptions import HamsException
import logging
# Constants
HAMS_INTERNAL_QUERY_PORT = 1337
HAMS_INTERNAL_MANAGEMENT_PORT = 1338
HAMS_INTERNAL_RPC_PORT = 7000
HAMS_INTERNAL_METRIC_PORT = 1390
HAMS_INTERNAL_REDIS_PORT = 6379
HAMS_DOCKER_LABEL = "ai.hams.container.label"
HAMS_NAME_LABEL = "ai.hams.name"... | 28.448276 | 137 | 0.701333 |
36170542f3bcc2d21452673199202e71e6245707 | 11,044 | py | Python | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 2 | 2019-12-17T22:27:53.000Z | 2020-06-22T12:47:37.000Z | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 13 | 2019-06-16T15:42:33.000Z | 2022-02-26T05:12:34.000Z | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 1 | 2019-12-17T22:27:58.000Z | 2019-12-17T22:27:58.000Z | # -*- encoding: utf-8 -*-
"""
endpoint_user_tokens.py
"""
from solidata_api.api import *
# from log_config import log, pformat
log.debug(">>> api_auth ... creating api endpoints for USER_TOKENS")
### create namespace
ns = Namespace('tokens', description='User : tokens freshening related endpoints')
### import mo... | 30.174863 | 104 | 0.611554 |
361738fea8f68576a66d9ee50d5cd2a6da5685cc | 4,750 | py | Python | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | 3 | 2020-10-22T04:57:21.000Z | 2021-06-03T16:03:44.000Z | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | 3 | 2020-10-27T14:30:33.000Z | 2020-11-12T11:39:07.000Z | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | null | null | null | """Main module."""
import copy
import io
import logging
import re
from typing import Dict, List
import yaml
log = logging.getLogger(__name__)
TEKTON_TYPE = ("pipeline", "pipelinerun", "task", "taskrun", "condition")
def parse(yamlfiles: List[str], parameters: Dict[str, str],
skip_inlining: List[str])... | 32.986111 | 95 | 0.550105 |
3617e8e260511cf8ba4c78d54d81b23de02b0480 | 2,385 | py | Python | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
import os
from sims4.commands import Command, CommandType, ... | 33.125 | 176 | 0.704403 |
3617f1fcc07ed43dd799a0a44d4cb775cd1c7478 | 1,884 | py | Python | blackbook/migrations/0022_cleanup.py | bsiebens/blackbook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | 1 | 2021-05-10T19:15:48.000Z | 2021-05-10T19:15:48.000Z | blackbook/migrations/0022_cleanup.py | bsiebens/BlackBook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | 20 | 2020-12-27T15:56:24.000Z | 2021-09-22T18:25:02.000Z | blackbook/migrations/0022_cleanup.py | bsiebens/BlackBook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-22 22:56
from django.db import migrations
| 25.459459 | 56 | 0.525478 |
36188c3a24365e2e84cb2983da3bc80cf1611d71 | 1,431 | py | Python | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib.auth.backends import BaseBackend
from django.contrib.auth import get_user_model
| 40.885714 | 87 | 0.596785 |
3618b1890763a3badcdbdde17119e78da0fca799 | 1,655 | py | Python | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 18 | 2015-07-06T06:20:14.000Z | 2022-03-20T23:45:40.000Z | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 170 | 2015-07-07T08:42:03.000Z | 2022-03-24T17:31:17.000Z | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 11 | 2015-07-07T20:42:19.000Z | 2022-01-12T22:39:59.000Z | import requests
from django.core.management.base import BaseCommand, CommandError
from apps.core.models import EmailDomain
DATA_URL = (
'https://raw.githubusercontent.com/martenson/disposable-email-domains'
'/master/disposable_email_blacklist.conf'
)
| 30.648148 | 75 | 0.586103 |
361a68b0ba7eff6cb23d87bfa96dce0e03ec7a08 | 1,659 | py | Python | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # Given a positive integer num consisting only of digits 6 and 9.
# Return the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6).
# Example 1:
# Input: num = 9669
# Output: 9969
# Explanation:
# Changing the first digit results in 6669.
# Changing the second digit results in 9969... | 25.921875 | 101 | 0.57384 |
361c83b1b112f9b41fc07f6d3ac9327c01a72ef7 | 3,245 | py | Python | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | 1 | 2018-08-14T03:15:00.000Z | 2018-08-21T00:33:34.000Z | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | import base64
import rsa
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from ticketing.models import BalanceTicket, RideTicket
def creatertqrcode(self, rtticket: RideTicket):
uid = rtticket.qr_code
type = 'r'
val = rtticket.initial_value
n... | 33.112245 | 79 | 0.561787 |
361df2d9546970e2a42e2d2a91b1abc8fb87455f | 3,015 | py | Python | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | import datetime
from webService import WebService
import Utilidades as ut
import sys
if __name__ == "__main__":
param = ut.mainMoodle(sys.argv[1:])
#param = 'moodle_plugin_sessions.txt', '', '2020-08-01 00:00:00,2020-12-31 00:00:00'
webService = WebService()
report = []
ret = 0
dates = param[2]... | 47.109375 | 125 | 0.469983 |
361df35a0da6b8703efd3e8c9fc20bd6344aa676 | 5,549 | py | Python | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework import status
from eva.serializers import WorkSerializer, PageSerializer, WordSerializer, RadicalSerializer
from eva.models import Work, Page, Word, Radical
from rest_framework.response import Response
from django.http import Http404
| 29.359788 | 93 | 0.548567 |
361ee510413d5ff2e8e4d3a5aa90b44d49e73ac2 | 1,447 | py | Python | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
import pickle
app = Flask(__name__)#khoi tao flask
model = pickle.load(open('modelID3.pkl', 'rb'))#unpicke model
if __name__ == "__main__":
app.run(debug=True)
| 28.94 | 99 | 0.57982 |
361ef035e9cacacdf5098c184cd2ac1fe4e53da4 | 474 | py | Python | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import sys
import argparse
#Auto-import parent module
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import voc
#from pydmv import voc
parser = argparse.ArgumentParser(description="Print VOC index file without duplicates")
parser.add_argument("file", help="Input index file")
args = p... | 21.545455 | 87 | 0.736287 |
362141754e09b014da8e86cb87845189f022576c | 448 | py | Python | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 1 | 2018-06-28T01:01:35.000Z | 2018-06-28T01:01:35.000Z | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 6 | 2018-06-25T04:50:23.000Z | 2018-07-03T10:24:08.000Z | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 42 | 2018-06-19T09:48:04.000Z | 2019-09-15T01:20:06.000Z | from django.shortcuts import render
from django.http import HttpResponse
from App.models import *
# Create your views here. | 34.461538 | 67 | 0.747768 |
3621452a8a1c3599be31b149a9b725b8f48992db | 962 | py | Python | Xiaomi_8/day_start/show_screen.py | Lezaza/hotpoor_autoclick_xhs | 52eafad8cce59353a9de5bf6e488e8a2602e5536 | [
"Apache-2.0"
] | 1 | 2021-12-21T10:42:46.000Z | 2021-12-21T10:42:46.000Z | Xiaomi_8/day_start/show_screen.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | 2 | 2021-11-03T11:36:44.000Z | 2021-11-05T07:58:13.000Z | Xiaomi_8/day_start/show_screen.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | 1 | 2021-10-09T10:28:57.000Z | 2021-10-09T10:28:57.000Z | import os
import cv2
import time
path = "C:/Users/lenovo/Documents/Sites/github/hotpoor_autoclick_xhs/Xiaomi_8/day_start/hotpoor_autoclick_cache"
cache = "hotpoor_autoclick_cache/screen.png"
while True:
get_image()
print("get_image")
# load_image()
i1 = cv2.imread("%s/screen.png"%path)
scale_perc... | 30.0625 | 112 | 0.686071 |
3622cd97012a4b31faded8cb9b89d6c988e04256 | 3,359 | py | Python | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, reverse
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.core.paginator import Paginator
from hknweb.utils import markdownify
from hknweb.utils import allow_public_access
from hknweb.events.constants import (
ACCESSLEVEL_... | 33.59 | 88 | 0.669842 |
36230cd6aca7407d1176980b4ef533beffe100f8 | 9,756 | py | Python | pysnmp-with-texts/HPN-ICF-VOICE-IF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HPN-ICF-VOICE-IF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HPN-ICF-VOICE-IF-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HPN-ICF-VOICE-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-VOICE-IF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:41:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 154.857143 | 863 | 0.791513 |
3624a7b0fa4de41698f562d63ac67b0fc5033a54 | 1,230 | py | Python | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | null | null | null | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | 15 | 2021-11-22T16:05:42.000Z | 2021-12-08T16:43:37.000Z | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from entities.customers import Customer
from typing import List
| 27.954545 | 103 | 0.68374 |
3624ec443278ac728598d1df9f161910bd3e69fe | 975 | py | Python | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 186 | 2018-09-14T06:51:59.000Z | 2022-03-30T12:56:01.000Z | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 20 | 2018-10-16T15:40:08.000Z | 2022-03-23T14:37:52.000Z | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 40 | 2018-09-13T21:05:50.000Z | 2022-03-09T16:05:53.000Z | import sys
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # NOQA
import seaborn # NOQA
from spherecluster import sample_vMF
plt.ion()
n_clusters = 3
mus = np.random.randn(3, n_clusters)
mus, r = np.linalg.qr(mus, mode='reduced')
kappas = [15, 15, 15]
num_points_per... | 20.744681 | 70 | 0.644103 |
3626cc57d851fc7ca881f30af21ead100d822372 | 1,043 | py | Python | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | 2 | 2022-02-06T23:12:15.000Z | 2022-03-28T06:48:52.000Z | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | null | null | null | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Furthest point sampling
Original author: Haoqiang Fan
Modified by Charles R. Qi
All Rights Reserved. 2017.
Modified by Larissa Triess (2020)
"""
import os
import sys
import tensorflow as tf
from tensorflow.python.framework import ops
BASE_DIR = os.path.dirname(os.p... | 25.439024 | 81 | 0.701822 |
3626d45d010076e81364291684b9ea5d2493fb6c | 561 | py | Python | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | 4 | 2020-06-20T11:54:04.000Z | 2021-09-07T11:41:32.000Z | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | null | null | null | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | null | null | null | from ariadne import MutationType
from datetime import datetime as dt
from models.scope import Scope
from schemas.helpers.normalize import change_keys
from schemas.scope import ScopeCreate
mutations_resolvers = MutationType()
| 31.166667 | 78 | 0.773619 |
36288867b24d81ec55fecb507750b334c645d763 | 5,188 | py | Python | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | 3 | 2021-11-01T18:18:43.000Z | 2021-11-25T02:59:50.000Z | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | 1 | 2021-11-24T20:59:18.000Z | 2021-11-24T20:59:24.000Z | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional
import napari
import napari.layers
import numpy as np
from napari.utils.geometry import project_point_onto_plane
def point_in_bounding_box(point: np.ndarray, bounding_box: np.ndarray) -> bool:
"""Determine whether an nD point is inside an nD bounding box.
Parameters
---------... | 35.292517 | 79 | 0.632999 |
3628f30f1da84eb0aeefd00f476c1a8932e5c523 | 1,245 | py | Python | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | import numpy as np
| 24.411765 | 144 | 0.702811 |
362a49ef92737d73a5b3be88d93c98a6d215ec47 | 6,265 | py | Python | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | 2 | 2021-12-11T19:11:59.000Z | 2021-12-24T19:32:12.000Z | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | null | null | null | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | null | null | null | #
import cv2
import sys
sys.path.append(r"C:\\Users\\SAT") #
from UniversalAutomaticAnswer.conf.confImp import get_yaml_file
from UniversalAutomaticAnswer.screen.screenImp import ScreenImp #
from UniversalAutomaticAnswer.ocr.ocrImp import OCRImp
from UniversalAutomaticAnswer.util.filter import filterQuestion, filte... | 34.423077 | 162 | 0.65012 |
362bc4e36845077cd1de93becd4b863b9767b65f | 521 | py | Python | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | # standard traversal problem | 30.647059 | 91 | 0.589251 |
362d167af1df22dfcc0fab4281874b494b14c018 | 826 | py | Python | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | 2 | 2017-05-14T06:37:14.000Z | 2022-03-07T02:25:32.000Z | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | 2 | 2017-10-08T19:41:18.000Z | 2021-04-08T04:40:50.000Z | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | null | null | null | import pygame.mixer
from vec2d import Vec2d
from saveable import Saveable
| 25.030303 | 83 | 0.596852 |
362e01958a44c444693e75555e77973e632954c9 | 5,926 | py | Python | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | null | null | null | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | 3 | 2020-11-20T11:57:04.000Z | 2021-04-06T10:56:49.000Z | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
import json
from contracts_lib_py.utils import get_account
from common_utils_py.ddo.ddo import DDO
from nevermined_sdk_py import Nevermined, Config
import yaml
from configparser import ConfigParser
config_parser = ConfigParser()
configuration = config_parser.read('config.ini')
GROUP... | 35.065089 | 99 | 0.602599 |
362f493d8462bb8006f529fc1fed6929dd628362 | 1,206 | py | Python | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 86 | 2018-07-17T14:21:05.000Z | 2022-03-29T03:00:40.000Z | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 16 | 2018-04-24T22:45:24.000Z | 2021-12-15T08:37:38.000Z | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 5 | 2018-03-28T18:24:52.000Z | 2022-01-08T11:28:31.000Z | """ Module to interact with scoop. """
from subprocess import Popen, PIPE # nosec
import os
| 32.594595 | 82 | 0.609453 |
362ff49962e9b464199213d8822138a4aa8efdf5 | 515 | py | Python | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | 1 | 2021-09-30T09:49:40.000Z | 2021-09-30T09:49:40.000Z | import datetime
import uuid
from typing import Optional
from models.base import CustomBaseModel
| 21.458333 | 59 | 0.751456 |
36307c13abd4a232603e88d4d656fa8c1d5c6d39 | 3,965 | py | Python | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 3 | 2022-01-23T19:33:32.000Z | 2022-03-14T10:29:36.000Z | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 2 | 2022-03-02T20:45:30.000Z | 2022-03-22T18:49:24.000Z | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 4 | 2022-02-17T18:40:36.000Z | 2022-03-24T05:44:31.000Z | # Copyright 2021 NREL
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distri... | 35.088496 | 79 | 0.682219 |
36323555756558519c34b677df24af6e2865a756 | 2,797 | py | Python | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | import logging
import uuid
from typing import Iterable
import numpy as np
import pyaudio
from cltl.backend.api.util import raw_frames_to_np
from cltl.backend.spi.audio import AudioSource
logger = logging.getLogger(__name__)
| 27.15534 | 98 | 0.620665 |
363237db275189c9b2a840bb149422bab3cd8c25 | 21,097 | py | Python | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 94 | 2020-07-16T03:07:59.000Z | 2022-03-13T08:06:30.000Z | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 14 | 2020-11-24T04:26:26.000Z | 2021-09-13T02:44:51.000Z | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 17 | 2020-09-04T07:24:24.000Z | 2021-11-19T06:35:18.000Z | # -*- coding: utf-8 -*-
# @Date : 2020/7/6
# @Author : mingming.xu
# @Email : xv44586@gmail.com
# @File : optimizers.py
import re
import numpy as np
import tensorflow as tf
from keras.optimizers import *
from toolkit4nlp.backend import keras, K, is_tf_keras, piecewise_linear
from toolkit4nlp.utils import *
... | 37.273852 | 118 | 0.593592 |
3632e12e345819f464e0f6feced15ba246770c00 | 5,832 | py | Python | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | from sympy import Rational as frac
from ..helpers import article
from ._helpers import TriangleScheme, concat, s1, s2, s3
citation = article(
authors=["M.E. Laursen", "M. Gellert"],
title="Some criteria for numerically integrated matrices and quadrature formulas for triangles",
journal="International Jour... | 32.043956 | 100 | 0.641632 |
36359877c7a4f6573f92718849e22bc0b0b933eb | 624 | py | Python | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 1,509 | 2015-01-04T01:20:06.000Z | 2022-03-29T08:06:41.000Z | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 98 | 2015-01-09T20:58:57.000Z | 2022-03-29T11:53:44.000Z | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 333 | 2015-01-02T09:22:01.000Z | 2022-03-24T01:51:40.000Z | # ThreadedNotifier example from tutorial
#
# See: http://github.com/seb-m/pyinotify/wiki/Tutorial
#
import pyinotify
wm = pyinotify.WatchManager() # Watch Manager
mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE # watched events
#log.setLevel(10)
notifier = pyinotify.ThreadedNotifier(wm, EventHandler())
notifier.s... | 24 | 66 | 0.735577 |
36360d07dd0f1e6bcc68b6986125359b768850eb | 885 | py | Python | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
'''/*
* Copyright 2015 lixiaobo
*
* VersionUpgrade project licenses this file to you 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
... | 34.038462 | 145 | 0.748023 |
3636162e87cf5572646ae4d4770a37dc7c29083e | 9,158 | py | Python | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 3 | 2020-02-17T12:56:22.000Z | 2020-09-30T11:17:03.000Z | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 12 | 2019-05-14T12:24:02.000Z | 2020-03-24T14:00:48.000Z | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 9 | 2021-02-01T08:20:53.000Z | 2021-09-17T05:52:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
# Copyright 2017 ROBOTIS CO., LTD.
#
# 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 cop... | 40.166667 | 226 | 0.700371 |
3636470ba1388bdc81e02a4d210d625e92578097 | 2,063 | py | Python | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | 3 | 2021-02-28T19:14:49.000Z | 2022-03-29T12:10:14.000Z | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | null | null | null | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | 1 | 2021-05-13T10:27:12.000Z | 2021-05-13T10:27:12.000Z | # -*- coding: utf-8 -*-
# file: lcf_bert.py
# author: yangheng <yangheng@m.scnu.edu.cn>
# Copyright (C) 2019. All Rights Reserved.
# The code is based on repository: https://github.com/yangheng95/LCF-ABSA
import torch
import torch.nn as nn
from models.lcf import LCF_BERT
| 38.924528 | 118 | 0.713039 |
36364741a2a1bcdc096a9a1390acb2038c00084b | 10,351 | py | Python | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2017-09-21T14:58:23.000Z | 2017-09-21T14:58:23.000Z | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2020-09-09T08:52:43.000Z | 2020-09-09T08:52:43.000Z | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2019-01-21T10:57:41.000Z | 2019-01-21T10:57:41.000Z | def integrate_surface_flux(flux_map, r):
'''
Integrates a healpix surface flux to compute the total
net flux out of the sphere.
r is the radius of the sphere in meters
'''
import numpy as np
import healpy as hp
from scipy.integrate import trapz
from seren3.array import SimArray
... | 34.734899 | 144 | 0.628925 |
3637422656965fc8f3771e5007feaef41fa1973f | 2,859 | py | Python | evalution/composes/utils/matrix_utils.py | esantus/evalution2 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2017-12-06T21:46:26.000Z | 2017-12-06T21:46:26.000Z | evalution/composes/utils/matrix_utils.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 5 | 2020-03-24T15:27:40.000Z | 2021-06-01T21:47:18.000Z | evalution/composes/utils/matrix_utils.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2018-02-15T17:13:02.000Z | 2018-02-15T17:13:02.000Z |
import numpy as np
from composes.matrix.sparse_matrix import SparseMatrix
from composes.matrix.dense_matrix import DenseMatrix
from composes.matrix.matrix import Matrix
from scipy.sparse import issparse
from composes.utils.py_matrix_utils import is_array
from warnings import warn
def to_matrix(matrix_):
"""
C... | 27.490385 | 84 | 0.666317 |
3637cf787bdf4e4784cdc6527a8256c98d6b4fec | 1,646 | py | Python | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | 2 | 2019-12-09T12:02:50.000Z | 2019-12-09T22:40:01.000Z | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | null | null | null | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | 1 | 2020-05-04T09:13:50.000Z | 2020-05-04T09:13:50.000Z | from .component import Component
from cpu.Memory import SCOREBOARD
from isa.Instructions import ALUInstruction as alu
| 38.27907 | 94 | 0.567436 |
36397c2f3323af879bfcf0a875f647ed132668eb | 273 | py | Python | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | frase = str(input('Digite uma frase: ').strip().upper())
print('A letra a aparece {} vezes'.format(frase.count('A')))
print('Sua primeira apario na posio {}'.format(frase.find('A') + 1))
print('Ela aparece pela ltima vez na posio {}'.format(frase.rfind('A') + 1))
| 54.6 | 79 | 0.673993 |
363ab7e49354291dcd24ad4beee0131449a7700e | 3,269 | py | Python | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | 22 | 2019-07-16T13:59:18.000Z | 2022-01-17T02:58:01.000Z | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | null | null | null | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | 3 | 2020-02-19T19:37:52.000Z | 2021-05-11T05:48:09.000Z | import glob
import io
import numpy as np
import re
import os
from io import BytesIO
import random
from uuid import uuid4
import torch
from PIL import Image
from torch.utils.data import Dataset
from torchvision.transforms import RandomCrop
from torchvision.transforms.functional import to_tensor
| 32.69 | 126 | 0.632303 |
363b300b4584703dde103216ec3118b56fec2aec | 179 | py | Python | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | f = open("OI_school.csv")
op = open("mdt.txt","w")
for i in f.readlines():
c = i.split('","')
op.write(c[-3]+','+c[-2]+','+"".join([i+',' for i in eval(c[1])])[:-1]+'\n')
| 29.833333 | 80 | 0.463687 |
363ecc9fcc777c09f95b187bd0eb4e97cd4e05fe | 2,068 | py | Python | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | 1 | 2019-04-10T02:50:19.000Z | 2019-04-10T02:50:19.000Z | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | #!/users/aneben/python/bin/python
import sys
import commands
import numpy as np
import string
np.set_printoptions(precision=3,linewidth=200)
months={'Jan':'01','Feb':'02','Mar':'03','Apr':'04','May':'05','Jun':'06','Jul':'07','Aug':'08','Sept':'09','Oct':'10','Nov':'11','Dec':'12'}
label = sys.argv[1]
satpowerdir... | 26.512821 | 141 | 0.597679 |
363f007b5be683fdae2cae98f2ef185659366c8a | 6,060 | py | Python | scripts/utils/prepare.py | Glaciohound/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 52 | 2019-12-04T22:26:56.000Z | 2022-03-31T17:04:15.000Z | scripts/utils/prepare.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 6 | 2020-08-25T07:35:14.000Z | 2021-09-09T04:57:09.000Z | scripts/utils/prepare.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 5 | 2020-02-10T07:39:24.000Z | 2021-06-23T02:53:42.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : prepare.py
# Author : Chi Han, Jiayuan Mao
# Email : haanchi@gmail.com, maojiayuan@gmail.com
# Date : 17.07.2019
# Last Modified Date: 03.12.2019
# Last Modified By : Chi Han
#
# This file is part of the VCML codeb... | 33.854749 | 74 | 0.64769 |
363f6b85601d80ec792d9609a878c76ff8a2a456 | 14,280 | py | Python | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | 2 | 2019-05-01T00:34:28.000Z | 2021-02-10T09:18:10.000Z | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | '''
plot_allband_ds.py - Load P,L,S band dynamic spectrum for a given epoch, bin to specified resolution, and plot to file
'''
import dynspec.plot
reload(dynspec.plot)
from dynspec import load_dict
from dynspec.plot import *
from pylab import *
import os, subprocess
import matplotlib.gridspec as gridspec
'''
def get... | 45.769231 | 193 | 0.614566 |
363f98c059fbed994ba92f98a94c9d889c901242 | 2,518 | py | Python | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
if __name__ == '__main__':
pass
| 27.67033 | 125 | 0.623511 |
363fef05c1d19fcf588faad011da861494aa03e5 | 1,191 | py | Python | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null |
import random
import cocos
from cocos.tiles import TileSet, RectCell, RectMapLayer
from cocos.director import director
from cocos.layer.scrolling import ScrollingManager
import pyglet
from game import Game
from views import WorldMap, CharacterView2
if __name__ == '__main__':
director.init(width=800, height=600,... | 26.466667 | 74 | 0.687657 |
3641d06d971b0ebba597cba4a1a138c64156e641 | 3,532 | py | Python | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | 1 | 2021-10-31T13:01:08.000Z | 2021-10-31T13:01:08.000Z | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | null | null | null | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | 4 | 2021-11-04T09:03:37.000Z | 2021-12-28T06:28:15.000Z | from itertools import takewhile
from eunjeon import Mecab
import queue
from jamo import h2j, j2hcj
import numpy as np
import re
import json
import sys
from pkg_resources import VersionConflict
global script_table
global voice_table
global s_idx
global v_idx
script_table = []
voice_table = []
# script_table
... | 29.433333 | 88 | 0.558607 |
364307863e32ccdc999357c039cf0832ac94b380 | 103 | py | Python | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | from flask import Blueprint
blueprint = Blueprint('board', __name__)
from rboard.board import routes
| 17.166667 | 40 | 0.796117 |
36446df7ecc8c55d638710c593c4957d62d9704f | 615 | py | Python | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | 1 | 2018-11-30T13:52:37.000Z | 2018-11-30T13:52:37.000Z | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | null | null | null | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | null | null | null | import logging
import asyncio
import sys
from kademlia.network import Server
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
log = logging.getLogger('kademlia')
log.addHandler(handler)
log.setLevel(logging.DEBUG)
... | 21.206897 | 85 | 0.749593 |
3645c7b92794db29663c1c763622e5f0554a803c | 1,771 | py | Python | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 41 | 2018-05-08T11:54:37.000Z | 2022-02-09T21:19:17.000Z | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 139 | 2018-06-07T13:45:21.000Z | 2021-04-30T20:44:06.000Z | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 5 | 2019-09-11T12:28:24.000Z | 2022-02-04T21:38:29.000Z | from src.commons.big_query.copy_job_async.result_check.result_check_request import \
ResultCheckRequest
from src.commons.big_query.copy_job_async.task_creator import TaskCreator
| 36.142857 | 84 | 0.631846 |
36472112e71a6f099b1f967e54265e83e3ef22d7 | 2,068 | py | Python | PyInstaller/hooks/hook-numpy.py | mathiascode/pyinstaller | eaad76a75a5cc7be90e445f974f4bf1731045496 | [
"Apache-2.0"
] | 9,267 | 2015-01-01T04:08:45.000Z | 2022-03-31T11:42:38.000Z | PyInstaller/hooks/hook-numpy.py | bwoodsend/pyinstaller | 2a16bc2fe0a1234d0f89836d39b7877c74b3bca1 | [
"Apache-2.0"
] | 5,150 | 2015-01-01T12:09:56.000Z | 2022-03-31T18:06:12.000Z | PyInstaller/hooks/hook-numpy.py | bwoodsend/pyinstaller | 2a16bc2fe0a1234d0f89836d39b7877c74b3bca1 | [
"Apache-2.0"
] | 2,101 | 2015-01-03T10:25:27.000Z | 2022-03-30T11:04:42.000Z | #!/usr/bin/env python3
# --- Copyright Disclaimer ---
#
# In order to support PyInstaller with numpy<1.20.0 this file will be duplicated for a short period inside
# PyInstaller's repository [1]. However this file is the intellectual property of the NumPy team and is
# under the terms and conditions outlined their repo... | 38.296296 | 119 | 0.758704 |
36480cab3e7b7b34c639f6dcb640a7d9ee3f2cc1 | 4,480 | py | Python | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 204 | 2016-05-10T05:38:27.000Z | 2022-03-25T11:22:28.000Z | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 45 | 2016-07-18T15:39:48.000Z | 2022-02-28T17:06:38.000Z | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 40 | 2016-09-23T07:27:50.000Z | 2022-03-22T09:44:10.000Z | from django.contrib import admin, messages
from django.shortcuts import render
from django.utils.translation import gettext_lazy as _
from inline_actions.actions import DefaultActionsMixin, ViewAction
from inline_actions.admin import InlineActionsMixin, InlineActionsModelAdminMixin
from . import forms
from .models im... | 29.668874 | 87 | 0.667857 |
3649038aeb95961f992580df722315d018924dd9 | 12,731 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
| 35.561453 | 127 | 0.657843 |
36490aa7054830d00893922cc4300184b33b2ea9 | 1,037 | py | Python | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2021-01-15T01:04:43.000Z | 2021-01-15T01:04:43.000Z | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2020-03-06T12:11:29.000Z | 2020-03-06T12:11:29.000Z | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2021-01-15T08:45:02.000Z | 2021-01-15T08:45:02.000Z | """Commands module common setup."""
from importlib import import_module
from typing import Sequence
def available_commands():
"""Index available commands."""
return [
{"name": "help", "summary": "Print available commands"},
{"name": "provision", "summary": "Provision an agent"},
{"nam... | 29.628571 | 66 | 0.636451 |
36493db41d822a42cd12a9cb95ab495245aeb761 | 3,646 | py | Python | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | 9 | 2021-11-29T00:56:41.000Z | 2022-03-19T04:41:05.000Z | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | null | null | null | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | 3 | 2021-11-29T06:30:33.000Z | 2022-03-18T14:27:23.000Z | gScore = 0 #use this to index g(n)
fScore = 1 #use this to index f(n)
previous = 2 #use this to index previous node
inf = 10000 #use this for value of infinity
#we represent the graph usind adjacent list
#as dictionary of dictionaries
G = {
'biratnagar' : {'itahari' : 22, 'biratchowk' : 30, 'rangeli': 2... | 33.145455 | 94 | 0.545804 |
3649d664027df60736783975e94228ac3542abe3 | 19,918 | py | Python | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 11 | 2018-02-01T02:56:26.000Z | 2022-02-21T12:08:12.000Z | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 151 | 2016-06-15T21:31:37.000Z | 2021-11-15T16:55:53.000Z | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 21 | 2016-06-17T17:02:39.000Z | 2021-03-08T20:47:50.000Z | from enum import IntEnum
from time import gmtime, strftime
import warnings
import pandas as pd
import numpy as np
import pvl
import struct
from plio.io import ControlNetFileV0002_pb2 as cnf
from plio.io import ControlNetFileHeaderV0005_pb2 as cnh5
from plio.io import ControlPointFileEntryV0005_pb2 as cnp5
from plio.u... | 39.836 | 151 | 0.570288 |
364ab9b65eb9e9388a14433c72e77abdba6bec4c | 4,028 | py | Python | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x02\x05\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | 41.102041 | 130 | 0.708292 |
364b2da593ffc26a8e80419fd18f3ad6526af7ad | 2,130 | py | Python | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | null | null | null | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | null | null | null | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | 1 | 2020-02-21T18:09:12.000Z | 2020-02-21T18:09:12.000Z | #!/usr/bin/env python
"""
Given one or more DCC experiment IDs, looks at all read2s that were submitted and updates each r2 file
object such that it's paired_with property points to the correct r1. This works by looking at the aliases
in the r2 file object to see if there is one with _R2_001 in it. If so, it sets pair... | 37.368421 | 105 | 0.553521 |
364b86ae80f99f078899fde9b937f621e0386d77 | 1,022 | py | Python | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 6 | 2018-03-06T10:16:36.000Z | 2021-12-05T12:43:10.000Z | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-03-06T10:27:08.000Z | 2022-01-02T15:21:27.000Z | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-01-06T16:28:31.000Z | 2018-09-17T19:47:19.000Z | """Update node API method."""
from ibsng.handler.handler import Handler
| 28.388889 | 66 | 0.629159 |