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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2e60fefd12f980302a3f8d0677aef2cf55d0964 | 1,348 | py | Python | demos/path/demo_path.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5 | 2021-02-14T03:56:07.000Z | 2021-12-16T04:46:54.000Z | demos/path/demo_path.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-02-05T19:30:55.000Z | 2021-02-05T19:51:21.000Z | demos/path/demo_path.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-09-20T21:21:12.000Z | 2022-01-09T20:49:46.000Z | # Simple path demo
# Meant to demonstrate the WA Simulator API
# -----------------------------------------------------------------
# Import the simulator
import wa_simulator as wa
import matplotlib.pyplot as plt
# Command line arguments
parser = wa.WAArgumentParser(use_sim_defaults=False)
parser.add_argument("-p", "-... | 31.348837 | 94 | 0.626113 |
e2e6e9f256351ec45645abb75d19744b0bc45894 | 4,684 | py | Python | Practice2/Lab3-2_Genre_Classification.py | kiseyno92/SNU_ML | be48a5c570ef59dc2b5a782c828536e100d7f0eb | [
"MIT"
] | 1 | 2017-08-10T10:16:32.000Z | 2017-08-10T10:16:32.000Z | Practice2/Lab3-2_Genre_Classification.py | kiseyno92/SNU_ML | be48a5c570ef59dc2b5a782c828536e100d7f0eb | [
"MIT"
] | null | null | null | Practice2/Lab3-2_Genre_Classification.py | kiseyno92/SNU_ML | be48a5c570ef59dc2b5a782c828536e100d7f0eb | [
"MIT"
] | null | null | null |
# coding: utf-8
# ### Machine Learning Application - Genre Classification
# UDSL-SNU Big Data Academy
# 20170725
# ##### Import libraries
# In[1]:
import h5py
import numpy as np
import matplotlib.pyplot as plt
from sklearn import cross_validation
from sklearn.preprocessing import StandardScaler
from sklearn.me... | 22.411483 | 86 | 0.6962 |
e2e70943a13008111153a414f22c56d558bfae48 | 1,232 | py | Python | flurry.util/flurry/util/json.py | mccolljr/fete | 9342c814db997c8a7b5a1f3b23dd309d463c9718 | [
"MIT"
] | 1 | 2022-01-10T20:19:16.000Z | 2022-01-10T20:19:16.000Z | flurry.util/flurry/util/json.py | mccolljr/fete | 9342c814db997c8a7b5a1f3b23dd309d463c9718 | [
"MIT"
] | null | null | null | flurry.util/flurry/util/json.py | mccolljr/fete | 9342c814db997c8a7b5a1f3b23dd309d463c9718 | [
"MIT"
] | null | null | null | from typing import Any
import json
import base64
import binascii
import datetime as dt
__all__ = ("JSON",)
| 27.377778 | 68 | 0.582792 |
e2e880113fa2ff93a3ecc07d1b229e383a3a5b72 | 6,023 | py | Python | assignments/assignment_clo_worksheet.py | dgrobani/py3_canvaslmi_api | c02c56a33dd196bdf779039c13bb52aa1e88699d | [
"MIT"
] | 18 | 2017-07-20T20:20:39.000Z | 2021-09-26T20:16:58.000Z | assignments/assignment_clo_worksheet.py | dgrobani/py3_canvaslmi_api | c02c56a33dd196bdf779039c13bb52aa1e88699d | [
"MIT"
] | null | null | null | assignments/assignment_clo_worksheet.py | dgrobani/py3_canvaslmi_api | c02c56a33dd196bdf779039c13bb52aa1e88699d | [
"MIT"
] | 3 | 2018-05-17T12:07:36.000Z | 2021-12-22T23:17:18.000Z | # https://openpyxl.readthedocs.io/
# https://automatetheboringstuff.com/chapter12/
# https://www.ablebits.com/office-addins-blog/2014/09/24/excel-drop-down-list/
# http://stackoverflow.com/questions/18595686/how-does-operator-itemgetter-and-sort-work-in-python
from canvas.core.courses import get_course_by_sis_id,... | 48.96748 | 117 | 0.636062 |
e2ead67c7bdbd412472810f4cfc5c65925b61e24 | 3,949 | py | Python | curiefense/curielogserver/curielogserver/ratelimitrecommendation.py | fossabot/curiefense | 6941f8aa08bcac1b0cf87c36ddb0037917a38c5a | [
"Apache-2.0"
] | 1 | 2020-11-15T06:27:05.000Z | 2020-11-15T06:27:05.000Z | curiefense/curielogserver/curielogserver/ratelimitrecommendation.py | fossabot/curiefense | 6941f8aa08bcac1b0cf87c36ddb0037917a38c5a | [
"Apache-2.0"
] | 3 | 2022-02-24T09:58:32.000Z | 2022-03-01T20:05:07.000Z | curiefense/curielogserver/curielogserver/ratelimitrecommendation.py | xavier-rbz/curiefense | 44200a90c515fe184e9c66ea662b2643adcbd34e | [
"Apache-2.0"
] | 1 | 2021-01-07T20:51:48.000Z | 2021-01-07T20:51:48.000Z | import yaml
def rate_limit_recommend(input_args):
rate_limloc = RateLimitLocation(**input_args)
result = rate_limloc.run()
return result
| 30.612403 | 109 | 0.627247 |
e2eca23998b33c6bcec131356180963aa665068c | 7,359 | py | Python | tests/test_pool.py | 5uper5hoot/PikaExamples | 9d3ae7918343ed612c253bf410882575033c80d6 | [
"MIT"
] | null | null | null | tests/test_pool.py | 5uper5hoot/PikaExamples | 9d3ae7918343ed612c253bf410882575033c80d6 | [
"MIT"
] | 17 | 2019-01-13T00:18:25.000Z | 2020-03-31T01:18:32.000Z | tests/test_pool.py | 5uper5hoot/PikaExamples | 9d3ae7918343ed612c253bf410882575033c80d6 | [
"MIT"
] | null | null | null | """
***********************************************************************
This code has been sourced from
https://github.com/bninja/pika-pool/blob/master/pika_pool.py
Governed by the following BSD licence sourced from
https://github.com/bninja/pika-pool/blob/master/LICENSE. No copyright
notice is available.
Redistr... | 31.314894 | 79 | 0.649409 |
e2ed43d6c5005bae2644f44607ee1e0503afb323 | 702 | py | Python | lino_xl/lib/boards/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/boards/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/boards/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2008-2015 Luc Saffre
#
# License: BSD (see file COPYING for details)
"""See :mod:`ml.boards`.
.. autosummary::
:toctree:
models
mixins
"""
from lino.api import ad, _
| 21.272727 | 67 | 0.665242 |
e2ed6bd63b9ba47737b8f3f36b327226fa4cd188 | 1,628 | py | Python | setup.py | cfobel/go-posh | 29e387d823fcd148cf7020afdbe5b26a56293729 | [
"MIT"
] | null | null | null | setup.py | cfobel/go-posh | 29e387d823fcd148cf7020afdbe5b26a56293729 | [
"MIT"
] | null | null | null | setup.py | cfobel/go-posh | 29e387d823fcd148cf7020afdbe5b26a56293729 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2002-2008 ActiveState Software
# Author: Trent Mick (trentm@gmail.com)
"""Quick directory changing (super-cd)
'go' is a simple command line script to simplify jumping between
directories in the shell. You can create shortcut names for commonly
used directories and invoke ... | 28.068966 | 72 | 0.668919 |
e2f0f6178903796c7342081af199f0f30fa8ed96 | 2,294 | py | Python | refinery/bnpy/bnpy-dev/tests/end-to-end/TestProxFunc.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 103 | 2015-01-13T00:48:14.000Z | 2021-11-08T10:53:22.000Z | refinery/bnpy/bnpy-dev/tests/end-to-end/TestProxFunc.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 7 | 2015-02-21T04:03:40.000Z | 2021-08-23T20:24:54.000Z | refinery/bnpy/bnpy-dev/tests/end-to-end/TestProxFunc.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 27 | 2015-01-23T00:54:31.000Z | 2020-12-30T14:30:50.000Z | '''
Unit tests to verify that our proposed proximity functions work as expected.
Proximity function (defined in Util) are used to determine if two estimated parameters are "close enough" within some numerical tolerance to be treated as equivalent. We eventually use these functions to assess whether learning algorithms... | 32.309859 | 307 | 0.672188 |
e2f30d3a34d3afe633e7babc6d3703910a51d3d8 | 173 | py | Python | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | 1 | 2020-08-28T21:46:12.000Z | 2020-08-28T21:46:12.000Z | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | null | null | null | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Arda Seremet <ardaseremet@outlook.com>
TURN_ON_BASE = 16
TURN_OFF_BASE = 116
TOGGLE_BASE = 0
TEMP_MONOSTABLE_BASE = 200
STATUS_XML_PATH = "status.xml"
| 21.625 | 59 | 0.780347 |
e2f3bc60879bf6291053573473efb8979f222e3a | 3,672 | py | Python | UforFunction.py | DezhengLee/Labster | 561c522d6d3d0b4b70c667d2f9a1d16e1734affc | [
"Apache-2.0"
] | 1 | 2021-09-27T14:26:20.000Z | 2021-09-27T14:26:20.000Z | UforFunction.py | DezhengLee/Labster | 561c522d6d3d0b4b70c667d2f9a1d16e1734affc | [
"Apache-2.0"
] | null | null | null | UforFunction.py | DezhengLee/Labster | 561c522d6d3d0b4b70c667d2f9a1d16e1734affc | [
"Apache-2.0"
] | null | null | null | from sympy import *
from sympy.abc import *
import functions as func
from decimal import *
def findAbsFuncU(function, U, variable, means, roundornot=True):
"""
This function is used to find the absolut compound U, as well as the values of U of temp variables
:param function: (String) the formula
... | 31.384615 | 103 | 0.572168 |
e2f68d2c703206d782b3bf27baf1eb812e1e2a22 | 489 | py | Python | swid_generator/meta.py | xgdfalcon/swidGenerator | 367706d93d6f6ec2407d695b96446dd704d1ab87 | [
"MIT"
] | 13 | 2015-10-16T18:28:32.000Z | 2021-08-29T09:36:08.000Z | swid_generator/meta.py | sthagen/swidGenerator | b70f9bef402de11bc2d226b4379d18dc490ec7fd | [
"MIT"
] | 11 | 2018-07-03T13:34:08.000Z | 2019-04-10T10:29:29.000Z | swid_generator/meta.py | sthagen/swidGenerator | b70f9bef402de11bc2d226b4379d18dc490ec7fd | [
"MIT"
] | 12 | 2017-02-22T14:51:10.000Z | 2022-03-23T16:55:20.000Z | # -*- coding: utf-8 -*-
"""
This module contains metadata about the project.
"""
from __future__ import unicode_literals
title = 'swid_generator'
version = '1.1.0'
description = 'Application which generates SWID-Tags from Linux installed packages, package-files and ' \
'directories using tools like DPGK ... | 34.928571 | 105 | 0.711656 |
e2f6de5e5cb0ff1bac4f2a109787e36e831a69bb | 3,946 | py | Python | tombot/registry.py | TijmenW/tom-bot | e9368a41562496761a111c28697384730f43db0e | [
"MIT"
] | 1 | 2020-02-02T21:41:01.000Z | 2020-02-02T21:41:01.000Z | tombot/registry.py | TijmenW/tom-bot | e9368a41562496761a111c28697384730f43db0e | [
"MIT"
] | 1 | 2021-05-17T13:14:30.000Z | 2021-05-17T13:14:30.000Z | tombot/registry.py | TijmenW/tom-bot | e9368a41562496761a111c28697384730f43db0e | [
"MIT"
] | 2 | 2020-02-19T17:20:46.000Z | 2020-07-29T18:51:10.000Z | '''
Contains generalized events and the command handlers.
'''
#pylint: disable=too-few-public-methods
import logging
import types
from collections import defaultdict
# Events
# Event constants:
# Format: NAME = 'identifier' # when, (args)
BOT_START = 'tombot.bot.start' # bot's start, (bot)
BOT_SHUTD... | 32.081301 | 95 | 0.650025 |
e2f78778d85f1d18a46b7ce5d657b1b24b664e70 | 638 | py | Python | whist/game_events.py | PeterSR/pywhist | b66e92974c374d92fb34d28ed20e5af6940175b0 | [
"MIT"
] | null | null | null | whist/game_events.py | PeterSR/pywhist | b66e92974c374d92fb34d28ed20e5af6940175b0 | [
"MIT"
] | null | null | null | whist/game_events.py | PeterSR/pywhist | b66e92974c374d92fb34d28ed20e5af6940175b0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .cards import Trick
from .player import Player
from .partners import TeamID
from .game_actions import BaseAction
| 20.580645 | 65 | 0.722571 |
e2f92c07c25bcc67308a2cb5dcae80b8b541482b | 35 | py | Python | junn/common/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/common/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn/common/__init__.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | """Common functionality module."""
| 17.5 | 34 | 0.714286 |
e2f98c7ebc2068e8843a92cd18ee6c291058f255 | 425 | py | Python | unsupervised/clustering/ICluster.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | unsupervised/clustering/ICluster.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | unsupervised/clustering/ICluster.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
import unsupervised.clustering.utils.initial_assignments as init_assign | 32.692308 | 78 | 0.731765 |
e2fa0aa5791ecb78f7681d90c87d0dd344dafd21 | 990 | py | Python | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | 2 | 2021-03-14T11:38:26.000Z | 2021-03-14T11:38:30.000Z | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | null | null | null | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | 1 | 2022-01-17T19:33:23.000Z | 2022-01-17T19:33:23.000Z | '''
nums
1
'''
from typing import List
'''
O(n)
O(logn)
'''
| 25.384615 | 98 | 0.570707 |
e2faad4c3d7b7b278b5e577d4bcd74c44ae6ecb8 | 1,863 | py | Python | Downloader.py | mozdren/IPCamMozRecord | f5ce1d3725af65137468e2ecb948dda3b9d584dd | [
"MIT"
] | null | null | null | Downloader.py | mozdren/IPCamMozRecord | f5ce1d3725af65137468e2ecb948dda3b9d584dd | [
"MIT"
] | null | null | null | Downloader.py | mozdren/IPCamMozRecord | f5ce1d3725af65137468e2ecb948dda3b9d584dd | [
"MIT"
] | null | null | null | import urllib2
import threading
import Configuration
import cv
if __name__ == "__main__":
configuration = Configuration.Configuration("config.xml")
print configuration
downloader = Downloader(configuration)
downloader.download()
| 31.576271 | 85 | 0.602791 |
e2fb4f7486995eba5533445b1969c67b56305d0a | 1,310 | py | Python | src/SNA_compute_AI.py | soham1112/spider-networks | 0607f54044f2b16de8f543df4755c5ce3875e153 | [
"MIT"
] | null | null | null | src/SNA_compute_AI.py | soham1112/spider-networks | 0607f54044f2b16de8f543df4755c5ce3875e153 | [
"MIT"
] | null | null | null | src/SNA_compute_AI.py | soham1112/spider-networks | 0607f54044f2b16de8f543df4755c5ce3875e153 | [
"MIT"
] | null | null | null | #===============================================================================
# SM 2/2016
# Code exclusively for computing association_index_attacker using full
# association index given the pair of attackers (M, N) and data D.
#===============================================================================
import... | 26.2 | 91 | 0.51145 |
e2fbe936b6cb25bafa6c922903345c6baab44779 | 8,800 | py | Python | pynet/datasets/cub.py | Duplums/pynet | 5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b | [
"CECILL-B"
] | null | null | null | pynet/datasets/cub.py | Duplums/pynet | 5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b | [
"CECILL-B"
] | null | null | null | pynet/datasets/cub.py | Duplums/pynet | 5f91dc2e80c2eb4e44d57403dd65aa80e8a5875b | [
"CECILL-B"
] | null | null | null | import os
import torch
import logging
from PIL import Image
from itertools import compress
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler
import torchvision.transforms as transforms
from torchvision.datasets import ImageFolder
from pynet.datasets.core import AbstractDataManager, DataItem, Set... | 47.826087 | 123 | 0.617727 |
e2fcbd9acf6f2cb524344b5614e1587fae9a574d | 1,734 | py | Python | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | 6 | 2020-10-05T03:11:49.000Z | 2021-08-23T19:04:47.000Z | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | null | null | null | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | 1 | 2020-10-05T03:11:54.000Z | 2020-10-05T03:11:54.000Z | #!/usr/bin/env python
from time import sleep
import rospy
from rdda_ur5_control.srv import SetRddaParam, RddaData, Move, MoveTraj, NoParam
if __name__ == "__main__":
rospy.wait_for_service('rdda_ur5_control/home_rdda')
rospy.wait_for_service('rdda_ur5_control/set_rdda_stiffness')
rospy.wait_for_service('r... | 41.285714 | 100 | 0.707036 |
e2fd80e0dd958c8f4932541c7c796d5fba2375bb | 24,569 | py | Python | smp_manifold_learning/scripts/vae_analysis.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 11 | 2020-09-26T12:13:01.000Z | 2022-03-23T07:34:14.000Z | smp_manifold_learning/scripts/vae_analysis.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 1 | 2021-04-10T10:42:28.000Z | 2021-04-16T07:04:26.000Z | smp_manifold_learning/scripts/vae_analysis.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 5 | 2020-09-24T18:52:46.000Z | 2022-03-23T07:26:15.000Z | #!/usr/bin/env python3
import numpy as np
import os
import dill
import json
import pandas as pd
import torch
import matplotlib.pyplot as plt
import plotly.graph_objects as go
from smp_manifold_learning.motion_planner.feature import SphereFeature, LoopFeature
from smp_manifold_learning.differentiable_models.utils impor... | 39.949593 | 148 | 0.53421 |
e2fd8380ddf10eda9c6d44420cfcef69f1e223b3 | 1,062 | py | Python | app/request.py | lorderonnie/ronniesblog | 11bb3ebf96e49a52c5fbc36f098e262e03334872 | [
"MIT"
] | null | null | null | app/request.py | lorderonnie/ronniesblog | 11bb3ebf96e49a52c5fbc36f098e262e03334872 | [
"MIT"
] | null | null | null | app/request.py | lorderonnie/ronniesblog | 11bb3ebf96e49a52c5fbc36f098e262e03334872 | [
"MIT"
] | null | null | null | import urllib.request,json
from .models import Quote
get_quote_url='http://quotes.stormconsultancy.co.uk/random.json'
def get_quote():
'''
This gets thejson respond and allows you to access the url information
'''
with urllib.request.urlopen(get_quote_url) as url:
get_quote_data = url.read(... | 22.125 | 74 | 0.619586 |
e2fdc91e625cb3fb22bf10795f9fa82f5dac02f9 | 222 | py | Python | ioc_writer/__init__.py | mandiant/ioc_writer | 712247f3a10bdc2584fa18ac909fc763f71df21a | [
"Apache-2.0"
] | 167 | 2015-01-05T00:58:07.000Z | 2022-03-22T18:20:22.000Z | ioc_writer/__init__.py | vitty84/ioc_writer | 712247f3a10bdc2584fa18ac909fc763f71df21a | [
"Apache-2.0"
] | 5 | 2016-05-26T15:24:07.000Z | 2017-12-11T05:23:41.000Z | ioc_writer/__init__.py | mandiant/ioc_writer | 712247f3a10bdc2584fa18ac909fc763f71df21a | [
"Apache-2.0"
] | 60 | 2015-03-15T23:33:14.000Z | 2022-01-12T23:19:53.000Z | from ioc_writer import ioc_api
from ioc_writer import ioc_et
from ioc_writer import ioc_common
from ioc_writer import utils
from ioc_writer import managers
__all__ = ['ioc_api', 'ioc_common', 'ioc_et', 'utils', 'managers'] | 37 | 66 | 0.806306 |
39018e67f03e1e9f61e5f82b904d4555c3dc4529 | 3,537 | py | Python | github_sync.py | polifonia-project/polifonia_dashboard | 7a2ad585eb5adc3726ff8c6585cc7d1061507e77 | [
"0BSD"
] | null | null | null | github_sync.py | polifonia-project/polifonia_dashboard | 7a2ad585eb5adc3726ff8c6585cc7d1061507e77 | [
"0BSD"
] | 2 | 2022-03-09T21:43:19.000Z | 2022-03-15T18:13:51.000Z | github_sync.py | polifonia-project/polifonia_dashboard | 7a2ad585eb5adc3726ff8c6585cc7d1061507e77 | [
"0BSD"
] | null | null | null | import os , json
import requests
from github import Github, InputGitAuthor
import conf
dir_path = os.path.dirname(os.path.realpath(__file__))
# OAUTH APP
clientId = conf.clientID
clientSecret = conf.clientSecret
def ask_user_permission(code):
""" get user permission when authenticating via github"""
res = None
... | 33.685714 | 112 | 0.729714 |
3901f5052217f31c1711d03d87f6b9db3214ccf0 | 1,928 | py | Python | pubs_converter/converter.py | IntelAgir-Research-Group/intelagir-research-group.github.io | 5ab3572c1ac08b4819b2a0df26516d6127ce0a35 | [
"MIT"
] | null | null | null | pubs_converter/converter.py | IntelAgir-Research-Group/intelagir-research-group.github.io | 5ab3572c1ac08b4819b2a0df26516d6127ce0a35 | [
"MIT"
] | null | null | null | pubs_converter/converter.py | IntelAgir-Research-Group/intelagir-research-group.github.io | 5ab3572c1ac08b4819b2a0df26516d6127ce0a35 | [
"MIT"
] | 2 | 2021-02-08T16:23:33.000Z | 2022-01-05T20:19:44.000Z | # install package before running:
# pip install bibtexparser
import bibtexparser
with open('publications.bib') as bibtex_file:
# bib_database = bibtexparser.load(bibtex_file)
bib_database = bibtexparser.bparser.BibTexParser(common_strings=True).parse_file(bibtex_file)
md_string = ""
for entry in bib_database... | 31.606557 | 97 | 0.604772 |
39029f6c2c31cf4b23816a7a341ec805e7421baa | 698 | py | Python | [OPMan]/Seasonals [TV]/2011-4 - Fall/[a8292] Ben-To/setup.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 57 | 2019-01-31T17:32:46.000Z | 2022-03-23T05:46:51.000Z | [OPMan]/Seasonals [TV]/2011-4 - Fall/[a8292] Ben-To/setup.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | null | null | null | [OPMan]/Seasonals [TV]/2011-4 - Fall/[a8292] Ben-To/setup.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 12 | 2019-04-30T06:16:13.000Z | 2022-03-14T16:15:07.000Z | #!/usr/bin/env python3
import setuptools
with open("requirements.txt") as fh:
install_requires = fh.read()
name = "bento_filters"
version = "1.0.0"
release = "1.0.0"
setuptools.setup(
name=name,
version=release,
author="LightArrowsEXE",
author_email="Lightarrowsreboot@gmail.com",
description... | 23.266667 | 58 | 0.640401 |
39030dc4ca3d919715e730ef09db812f228c6f4a | 5,256 | py | Python | nips17_proto/proto.py | hli2020/proto_net | e95ee26a2d68ecdb6ddd701b5ef4029202e33742 | [
"MIT"
] | 2 | 2019-07-06T08:04:51.000Z | 2019-10-18T12:27:16.000Z | nips17_proto/proto.py | hli2020/proto_net | e95ee26a2d68ecdb6ddd701b5ef4029202e33742 | [
"MIT"
] | null | null | null | nips17_proto/proto.py | hli2020/proto_net | e95ee26a2d68ecdb6ddd701b5ef4029202e33742 | [
"MIT"
] | 1 | 2021-01-26T02:56:46.000Z | 2021-01-26T02:56:46.000Z | # coding=utf-8
from tqdm import tqdm
import sys
import argparse
from torch import optim
from basic_opt import *
from prototypical_loss import prototypical_loss as loss_fn
from protonet import ProtoNet
sys.path.append(os.getcwd())
from dataset.data_loader import data_loader
from torch.optim.lr_scheduler import MultiSte... | 38.086957 | 116 | 0.660769 |
39047cc2529d32fdf0736bc253ad9e235e31b909 | 2,141 | py | Python | scene_cutter/scene_cutter.py | Zselter07/ffmpeg_scene_cutter | b78237acfe233a1897ef5d12a7745589d21ef0c4 | [
"MIT"
] | null | null | null | scene_cutter/scene_cutter.py | Zselter07/ffmpeg_scene_cutter | b78237acfe233a1897ef5d12a7745589d21ef0c4 | [
"MIT"
] | null | null | null | scene_cutter/scene_cutter.py | Zselter07/ffmpeg_scene_cutter | b78237acfe233a1897ef5d12a7745589d21ef0c4 | [
"MIT"
] | null | null | null | import os
from typing import Optional, List
from kcu import sh, kpath
# Threshold - the scene change detection score values are between [0-1].
# PRIVATE METHODS | 33.984127 | 124 | 0.643624 |
3904fe36e254754cd9d0f734bd1f20cf48a463ed | 1,294 | py | Python | tutorials/source/1.parameterized_quantum_circuit.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | tutorials/source/1.parameterized_quantum_circuit.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | tutorials/source/1.parameterized_quantum_circuit.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2022 <Huawei Technologies 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 22.701754 | 76 | 0.673107 |
39057e3e32745631eb166e612031e1b4eb2801c6 | 5,097 | py | Python | .executor/arch-package/t2ec-lib/arch-update.py | gh0zialfat1h/dotfiles | d9b3f93ea6301ec65ed8140b6c6180d7166f3623 | [
"MIT"
] | 3 | 2021-06-02T04:54:09.000Z | 2021-06-06T04:29:01.000Z | .executor/arch-package/t2ec-lib/arch-update.py | 0xft1h/dotfiles | d9b3f93ea6301ec65ed8140b6c6180d7166f3623 | [
"MIT"
] | null | null | null | .executor/arch-package/t2ec-lib/arch-update.py | 0xft1h/dotfiles | d9b3f93ea6301ec65ed8140b6c6180d7166f3623 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# _*_ coding: utf-8 _*_
"""
# Author: Piotr Miller
# e-mail: nwg.piotr@gmail.com
# Website: http://nwg.pl
# Project: https://github.com/nwg-piotr/tint2-executors
# License: GPL3
# Credits: RaphaelRochet/arch-update
# https://github.com/RaphaelRochet/arch-update
# Icon by @edskeye
Arguments [-C<aur_... | 33.313725 | 134 | 0.530116 |
3905bcd7408ea63d921f3109b9efc0c9b7cc46b6 | 21,558 | py | Python | tests/unit/test_doc.py | alexey-zhukovin/salt | 87382072abf353f3da62ae4e2d9fe1ba14344efa | [
"Apache-2.0"
] | 1 | 2021-09-06T00:14:04.000Z | 2021-09-06T00:14:04.000Z | tests/unit/test_doc.py | alexey-zhukovin/salt | 87382072abf353f3da62ae4e2d9fe1ba14344efa | [
"Apache-2.0"
] | 2 | 2021-04-30T21:17:57.000Z | 2021-12-13T20:40:23.000Z | tests/unit/test_doc.py | Kamatera/salt | ac960a3308617657d9d039dae9108e0045ab3929 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
tests.unit.doc_test
~~~~~~~~~~~~~~~~~~~~
"""
# Import Python libs
from __future__ import absolute_import
import collections
import logging
import os
import re
# Import Salt libs
import salt.modules.cmdmod
import salt.utils.files
import salt.utils.platform
from tests.support.runtes... | 35.810631 | 105 | 0.583728 |
3905f2e565555cf20834bdf278a2d30e0b9efa4d | 733 | py | Python | segment_level/scripts/combine_gismo_clusters_generate_saf.py | gtonkinhill/falciparum_transcriptome_manuscript | e7a9d33715264c741abfee77253e2244f5a8d91a | [
"MIT"
] | null | null | null | segment_level/scripts/combine_gismo_clusters_generate_saf.py | gtonkinhill/falciparum_transcriptome_manuscript | e7a9d33715264c741abfee77253e2244f5a8d91a | [
"MIT"
] | null | null | null | segment_level/scripts/combine_gismo_clusters_generate_saf.py | gtonkinhill/falciparum_transcriptome_manuscript | e7a9d33715264c741abfee77253e2244f5a8d91a | [
"MIT"
] | 1 | 2020-12-10T13:56:42.000Z | 2020-12-10T13:56:42.000Z | import glob
mult=1
with open("combined_blocks_clustered.csv", 'w') as outfile:
for f in glob.glob("*hierarchical_clusters.csv"):
print f
with open(f, 'rU') as infile:
if mult==1:
outfile.write(infile.next())
else:
infile.next()
for line in infile:
line = line.strip()... | 25.275862 | 92 | 0.575716 |
3906a98a261906d140cb30e83a28612005b970ab | 1,913 | py | Python | tailorpad/admin/doctype/product_options/product_options.py | LaganJ/Tailoring | 2c527e229871c5292a9ed7c92967219b756ba99d | [
"MIT"
] | 2 | 2022-03-21T18:09:21.000Z | 2022-03-22T05:47:50.000Z | tailorpad/admin/doctype/product_options/product_options.py | LaganJ/Tailoring | 2c527e229871c5292a9ed7c92967219b756ba99d | [
"MIT"
] | null | null | null | tailorpad/admin/doctype/product_options/product_options.py | LaganJ/Tailoring | 2c527e229871c5292a9ed7c92967219b756ba99d | [
"MIT"
] | 1 | 2022-03-28T14:28:13.000Z | 2022-03-28T14:28:13.000Z | # Copyright (c) 2022, White Hat Global and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cint, cstr
from frappe.model.document import Document | 32.982759 | 98 | 0.738108 |
390bc903243dbca726f91a88351ec6f06ced30c7 | 151 | py | Python | tcplotter/__init__.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | null | null | null | tcplotter/__init__.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | 5 | 2022-02-04T07:13:32.000Z | 2022-03-15T14:15:04.000Z | tcplotter/__init__.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | null | null | null | from .tcplotter import time_vs_temp
from .tcplotter import eu_vs_radius
from .tcplotter import rate_vs_radius_eu
from .tcplotter import rate_vs_age_tc
| 30.2 | 40 | 0.86755 |
390da76a8bf622886139deafd78e028a0a5a866c | 884 | py | Python | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | '''display_sars_cov2_infection_study_results.py
This script is executed using the CMD tag in the Dockerfile
in order to display modeling study results to the console and
to an html site allocated on the host machine.
'''
from flask import Flask, render_template
from shutil import move
from os import getcwd
app = Flas... | 36.833333 | 98 | 0.757919 |
3912b626fb6eea72b992a53c272a97d250910d77 | 871 | py | Python | instagram_scraper/proxy.py | smb-h/instagram-scraper | 7c9a5ec99b825ed975b4acc71c970f0853e82eb4 | [
"Unlicense"
] | null | null | null | instagram_scraper/proxy.py | smb-h/instagram-scraper | 7c9a5ec99b825ed975b4acc71c970f0853e82eb4 | [
"Unlicense"
] | 3 | 2022-01-13T04:22:06.000Z | 2022-03-12T01:04:48.000Z | instagram_scraper/proxy.py | smb-h/instagram-scraper | 7c9a5ec99b825ed975b4acc71c970f0853e82eb4 | [
"Unlicense"
] | 1 | 2021-04-27T07:59:28.000Z | 2021-04-27T07:59:28.000Z | import requests
from stem import Signal
from stem.control import Controller
from fake_useragent import UserAgent
import random, time
headers = { 'User-Agent': UserAgent().random }
print(requests.get('https://ident.me', headers=headers).text)
proxies = {
'http': 'socks5://127.0.0.1:9050',
'https': 'socks5://... | 26.393939 | 83 | 0.718714 |
3916c639b5db2d10c51e8dc556530287daecff0c | 2,781 | py | Python | src/preprocess/remove_duplicate.py | yogendra-yatnalkar/AI_for_any_game_using_CNN | be398c86f61d211534b6b709c5501f2276735552 | [
"MIT"
] | 1 | 2020-05-31T13:02:48.000Z | 2020-05-31T13:02:48.000Z | src/preprocess/remove_duplicate.py | yogendra-yatnalkar/AI_for_any_game_using_CNN | be398c86f61d211534b6b709c5501f2276735552 | [
"MIT"
] | null | null | null | src/preprocess/remove_duplicate.py | yogendra-yatnalkar/AI_for_any_game_using_CNN | be398c86f61d211534b6b709c5501f2276735552 | [
"MIT"
] | null | null | null | from PIL import Image
import imagehash
import os
import pandas as pd
| 44.142857 | 127 | 0.512046 |
3918401a1115c32350535dad538e1deab5215e1f | 1,327 | py | Python | boa/argparse.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 3 | 2020-08-10T04:24:45.000Z | 2022-03-16T07:22:11.000Z | boa/argparse.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 15 | 2020-08-09T22:01:32.000Z | 2022-03-18T04:15:53.000Z | boa/argparse.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 2 | 2021-02-04T16:25:57.000Z | 2021-12-20T20:07:58.000Z | """
argparse.py
Argument parser helper for both the UWSGI runner and CLI
Credits: https://mike.depalatis.net/blog/simplifying-argparse.html
"""
import sys
import argparse
HEADER = """
___.
\_ |__ _________
| __ \ / _ \__ \
| \_\ ( <_> ) __ \_
|___ /\____(____ /
\/ ... | 25.037736 | 75 | 0.654861 |
39190f6f95541bce0a5214eb986ad0051aecedc4 | 2,420 | py | Python | HierStack/hierarchy.py | manisa/ClassifyTE | e186a6a6d4fcc4f6a9fc3ccc234f66c58a3d1b93 | [
"MIT"
] | 11 | 2020-09-24T02:12:22.000Z | 2022-03-11T09:55:08.000Z | HierStack/hierarchy.py | manisa/ClassifyTE | e186a6a6d4fcc4f6a9fc3ccc234f66c58a3d1b93 | [
"MIT"
] | 2 | 2020-09-24T02:17:53.000Z | 2021-03-10T00:59:47.000Z | HierStack/hierarchy.py | manisa/ClassifyTE | e186a6a6d4fcc4f6a9fc3ccc234f66c58a3d1b93 | [
"MIT"
] | 3 | 2021-04-08T05:45:36.000Z | 2021-12-30T19:18:15.000Z | import networkx as nx
import pandas as pd
import numpy as np
| 30.632911 | 83 | 0.642975 |
3919b6d798e6bab79283dcfc695bccf752daf541 | 12,058 | py | Python | sushichef.py | learningequality/sushi-chef-openstax | dea899fec6b090a1f7b0e1597f8260ca4c0b0f6f | [
"MIT"
] | null | null | null | sushichef.py | learningequality/sushi-chef-openstax | dea899fec6b090a1f7b0e1597f8260ca4c0b0f6f | [
"MIT"
] | 4 | 2017-09-25T19:39:26.000Z | 2019-01-11T17:19:13.000Z | sushichef.py | learningequality/sushi-chef-openstax | dea899fec6b090a1f7b0e1597f8260ca4c0b0f6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import copy
import os
import sys;
sys.path.append(os.getcwd()) # Handle relative imports
from ricecooker.utils import downloader, html_writer
from ricecooker.chefs import SushiChef
from ricecooker.classes import nodes, files
from ricecooker.config import LOGGER # Use logger ... | 44.659259 | 147 | 0.619423 |
391a19afad9866d05133372637046deacf2e74ca | 5,085 | pyw | Python | sigaa8.pyw | luisrguerra/calculadorahorariossigaaunb | e99a271683812310fe6289dbe128232657253faf | [
"BSD-3-Clause"
] | 1 | 2021-01-21T02:42:17.000Z | 2021-01-21T02:42:17.000Z | sigaa8.pyw | luisrguerra/calculadorahorariossigaaunb | e99a271683812310fe6289dbe128232657253faf | [
"BSD-3-Clause"
] | null | null | null | sigaa8.pyw | luisrguerra/calculadorahorariossigaaunb | e99a271683812310fe6289dbe128232657253faf | [
"BSD-3-Clause"
] | null | null | null | from tkinter import *
from tkinter import ttk
import os.path #para checar se o arquivo existe
import solicitar
import imprimir
import fechar
icone = ".\data\icone.ico"
icone_existe = os.path.exists(icone)
while True:
cor_fundo = 'white'
fonte_texto = "Arial"
tamanho_texto = 12
tamanho_titulo = 16
... | 30.449102 | 93 | 0.417306 |
391af0070ec9aa055f9fe705531d28f9338b23ac | 1,966 | py | Python | __init__.py | carlosnavarro25/ListadeSuper | 7ed3779ed21bd4ff6decff24050e196f4ffd4af3 | [
"MIT"
] | null | null | null | __init__.py | carlosnavarro25/ListadeSuper | 7ed3779ed21bd4ff6decff24050e196f4ffd4af3 | [
"MIT"
] | null | null | null | __init__.py | carlosnavarro25/ListadeSuper | 7ed3779ed21bd4ff6decff24050e196f4ffd4af3 | [
"MIT"
] | null | null | null | from flask import Flask, request, flash
from flask import render_template
from flask import redirect
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///listasuper.sqlite3'
app.config['SECRET_KEY'] = 'uippc3'
db = SQLAlchemy(app)
db.create_all()
app... | 23.97561 | 70 | 0.660732 |
391b3c5be435c99144a6db5bd572222cb6d2f3f1 | 29 | py | Python | ngs_utils/jsontemplate/__init__.py | pdiakumis/NGS_Utils | 9eae9f8d5f0e408118d429fde90e297dbac9ae15 | [
"MIT"
] | 3 | 2018-06-06T01:41:51.000Z | 2020-08-20T11:36:06.000Z | ngs_utils/jsontemplate/__init__.py | pdiakumis/NGS_Utils | 9eae9f8d5f0e408118d429fde90e297dbac9ae15 | [
"MIT"
] | 4 | 2019-11-28T03:34:54.000Z | 2021-06-24T23:04:55.000Z | ngs_utils/jsontemplate/__init__.py | pdiakumis/NGS_Utils | 9eae9f8d5f0e408118d429fde90e297dbac9ae15 | [
"MIT"
] | 5 | 2018-03-15T12:43:38.000Z | 2021-06-24T23:12:48.000Z | from ._jsontemplate import *
| 14.5 | 28 | 0.793103 |
391b9c72800385ae9692b6e6dd7debb52f9635d1 | 4,309 | py | Python | utils.py | jinhwanlazy/kalman-filter-isnt-hard | 7db92bda639761b41be505596b1708b83aa8fa3f | [
"Unlicense"
] | null | null | null | utils.py | jinhwanlazy/kalman-filter-isnt-hard | 7db92bda639761b41be505596b1708b83aa8fa3f | [
"Unlicense"
] | null | null | null | utils.py | jinhwanlazy/kalman-filter-isnt-hard | 7db92bda639761b41be505596b1708b83aa8fa3f | [
"Unlicense"
] | null | null | null | import scipy.io
from matplotlib import pyplot as plt
import numpy as np
def run_radar_position_estimation(kf, ts, measurements_seq):
measurements = []
estimations = []
speeds = []
altitudes = []
positions = []
for t, meas in zip(ts, measurements_seq):
kf.update(np.array(... | 26.598765 | 103 | 0.571362 |
391c545fe97dbf90b53cd05bbc8214ed5d823aa1 | 1,119 | py | Python | interval_search/binary_search.py | mmore500/interval-search | c03f14cbd51770ff4a6abf8f627028c4961368fd | [
"MIT"
] | null | null | null | interval_search/binary_search.py | mmore500/interval-search | c03f14cbd51770ff4a6abf8f627028c4961368fd | [
"MIT"
] | null | null | null | interval_search/binary_search.py | mmore500/interval-search | c03f14cbd51770ff4a6abf8f627028c4961368fd | [
"MIT"
] | null | null | null | import typing
def binary_search(
predicate: typing.Callable[[int], bool],
lower_bound: int,
upper_bound: int,
) -> typing.Optional[int]:
"""
Find the positive integer threshold below which a search criteria is never
satisfied and above which it is always satisfied.
Parameters
--------... | 27.292683 | 78 | 0.65773 |
391c64ffe43e8158ce594a3b15df0fa54c77d26e | 8,326 | py | Python | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | # Note: Kaggle only runs Python 3, not Python 2
# We'll use the pandas library to read CSV files into dataframes
import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.linear_model import SGDRegressor
from sklearn import decomposition, pipeline, metrics, grid_search
from sklearn.metrics ... | 33.171315 | 103 | 0.675354 |
39224edae2c8c9217adba82e613f3d788595f00d | 2,482 | py | Python | tools/eval2txt.py | youshyee/Greatape-Detection | 333b63d8f76538659bcd2bc6022128830a7a435b | [
"Apache-2.0"
] | 1 | 2019-09-22T16:47:16.000Z | 2019-09-22T16:47:16.000Z | tools/eval2txt.py | youshyee/Greatape-Detection | 333b63d8f76538659bcd2bc6022128830a7a435b | [
"Apache-2.0"
] | null | null | null | tools/eval2txt.py | youshyee/Greatape-Detection | 333b63d8f76538659bcd2bc6022128830a7a435b | [
"Apache-2.0"
] | null | null | null | '''
given a wordking dir
calculate the result for each epoch saving and save it as txt file
'''
import os
import mmcv
import argparse
import os.path as osp
import shutil
import tempfile
import torch
import torch.distributed as dist
from mmcv.runner import load_checkpoint, get_dist_info
from mmcv.parallel import MMDat... | 31.820513 | 148 | 0.695407 |
3922f2d026215c4b598ddcee6bd6c8a6350ddcaf | 573 | py | Python | example_python/app_02_grpc/client/main.py | simplebuild/please.make | 3d0fbea34e633f5b71694c53aca7352e829e2c46 | [
"MIT"
] | 24 | 2020-05-06T17:57:40.000Z | 2022-02-22T13:30:36.000Z | example_python/app_02_grpc/client/main.py | simplebuild/please.make | 3d0fbea34e633f5b71694c53aca7352e829e2c46 | [
"MIT"
] | 3 | 2022-02-13T12:58:28.000Z | 2022-02-27T04:32:16.000Z | example_python/app_02_grpc/client/main.py | simplebuild/please.make | 3d0fbea34e633f5b71694c53aca7352e829e2c46 | [
"MIT"
] | 3 | 2020-05-21T12:58:50.000Z | 2021-02-03T07:36:01.000Z | import grpc
import logging
from absl import app, flags
import example_python.app_02_grpc.proto.greeter_pb2 as greeter_pb2
import example_python.app_02_grpc.proto.greeter_pb2_grpc as greeter_pb2_grpc
flags.DEFINE_integer('port', 50051, 'Port to serve book service on')
if __name__ == '__main__':
app.run(main)
| 28.65 | 97 | 0.776614 |
3923d604ff92a346c270b87926a44f2862185eb0 | 3,118 | py | Python | community_erpnext_com/erpnext_community_portal/doctype/frappe_job_bid/frappe_job_bid.py | saurabh6790/community_erpnext_com | edf285de15285e376b223b8c85ea19b46e7d16d7 | [
"MIT"
] | null | null | null | community_erpnext_com/erpnext_community_portal/doctype/frappe_job_bid/frappe_job_bid.py | saurabh6790/community_erpnext_com | edf285de15285e376b223b8c85ea19b46e7d16d7 | [
"MIT"
] | null | null | null | community_erpnext_com/erpnext_community_portal/doctype/frappe_job_bid/frappe_job_bid.py | saurabh6790/community_erpnext_com | edf285de15285e376b223b8c85ea19b46e7d16d7 | [
"MIT"
] | 1 | 2020-02-27T11:18:08.000Z | 2020-02-27T11:18:08.000Z | # Copyright (c) 2015, Frappe Technologies Pvt Ltd and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.website.website_generator import WebsiteGenerator
from frappe.website.utils import get_comment_list
new_bid_templ... | 34.263736 | 89 | 0.739256 |
39243003cba396e92b11cfacdc18745deb8b6050 | 2,314 | py | Python | Passing/rotate.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | 1 | 2020-01-16T13:19:19.000Z | 2020-01-16T13:19:19.000Z | Passing/rotate.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | null | null | null | Passing/rotate.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | 1 | 2020-01-09T21:04:30.000Z | 2020-01-09T21:04:30.000Z | import math
if(__name__=="__main__"):
pos1=[-5,-2] #positions of the bots
pos2=[-9,2]
ang1=123 #initial direction of bots
ang2=21
#f_ang1,f_ang2=rotate(pos1,ang1,pos2,ang2)
#clockwise-> +ve , anticlockvise-> -ve
#change_in_angle(ang1,f_an... | 27.879518 | 87 | 0.553587 |
3924b0c63a982cfc2185670003e734bf53265e66 | 1,346 | py | Python | aggregate/quality_of_life/access_to_jobs.py | NYCPlanning/db-equitable-development-tool | b24d83dc4092489995cabcdcb611642c1c8ee3b2 | [
"MIT"
] | 1 | 2021-12-30T21:03:56.000Z | 2021-12-30T21:03:56.000Z | aggregate/quality_of_life/access_to_jobs.py | NYCPlanning/db-equitable-development-tool | b24d83dc4092489995cabcdcb611642c1c8ee3b2 | [
"MIT"
] | 209 | 2021-10-20T19:03:04.000Z | 2022-03-31T21:02:37.000Z | aggregate/quality_of_life/access_to_jobs.py | NYCPlanning/db-equitable-development-tool | b24d83dc4092489995cabcdcb611642c1c8ee3b2 | [
"MIT"
] | null | null | null | import pandas as pd
from internal_review.set_internal_review_file import set_internal_review_files
from utils.PUMA_helpers import clean_PUMAs, puma_to_borough
| 37.388889 | 119 | 0.719168 |
3924f850ecca94736efdcc056138a74edf483435 | 279 | py | Python | main.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | main.py | Maurya232Abhishek/pythoncodecamp | 729d2a6167da35f1d6d4786ea43a74fa0c1e4a89 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | main.py | Maurya232Abhishek/pythoncodecamp | 729d2a6167da35f1d6d4786ea43a74fa0c1e4a89 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | # A compilation of Python programs for learning purposes.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('Python')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
| 19.928571 | 61 | 0.706093 |
3925fe1fce8c87b4355c29e43b08be99a6eefa03 | 388 | py | Python | job_scraper/__init__.py | DannyMcwaves/ATS | 91327ce15b4c4ea2fffebf02562cb8095b7983ec | [
"BSD-3-Clause"
] | null | null | null | job_scraper/__init__.py | DannyMcwaves/ATS | 91327ce15b4c4ea2fffebf02562cb8095b7983ec | [
"BSD-3-Clause"
] | 4 | 2020-06-05T17:38:46.000Z | 2022-03-02T14:54:30.000Z | job_scraper/__init__.py | DannyMcwaves/ATS | 91327ce15b4c4ea2fffebf02562cb8095b7983ec | [
"BSD-3-Clause"
] | null | null | null | """
run the scrape bot from inside the project
using an exported function from this module.
"""
__all__ = ['run']
from scrapy.crawler import CrawlerProcess
from .spiders import JobScraperSpider
| 20.421053 | 62 | 0.708763 |
3926d81892df689f687efb02a6b67ba5dbe79654 | 8,272 | py | Python | translate/translate_bpe2char.py | nyu-dl/dl4mt-c2c | 7655c0edc2fbc113fa856e9916592f4662059099 | [
"BSD-3-Clause"
] | 171 | 2016-11-01T13:13:47.000Z | 2022-03-21T14:10:19.000Z | translate/translate_bpe2char.py | trevordonnelly/dl4mt-c2c | 7655c0edc2fbc113fa856e9916592f4662059099 | [
"BSD-3-Clause"
] | 23 | 2016-11-20T03:55:36.000Z | 2019-05-13T15:18:32.000Z | translate/translate_bpe2char.py | trevordonnelly/dl4mt-c2c | 7655c0edc2fbc113fa856e9916592f4662059099 | [
"BSD-3-Clause"
] | 63 | 2016-11-01T16:53:28.000Z | 2020-06-13T13:12:40.000Z | import argparse
import sys
import os
import time
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.insert(0, "/misc/kcgscratch1/ChoGroup/jasonlee/dl4mt-c2c/bpe2char") # change appropriately
import numpy
import cPickle as pkl
from mixer import *
if __name__ == "__main__":
parser = argparse.ArgumentParser()
... | 35.655172 | 254 | 0.615933 |
3929a5f96eb3582a55288fd32d81ecdcdf883c97 | 607 | py | Python | scripts/print_model_summary.py | qai222/CompAugCycleGAN | 1a9d54237f4470a4fd5ab215993ed5b373a87e86 | [
"CC-BY-4.0"
] | null | null | null | scripts/print_model_summary.py | qai222/CompAugCycleGAN | 1a9d54237f4470a4fd5ab215993ed5b373a87e86 | [
"CC-BY-4.0"
] | null | null | null | scripts/print_model_summary.py | qai222/CompAugCycleGAN | 1a9d54237f4470a4fd5ab215993ed5b373a87e86 | [
"CC-BY-4.0"
] | null | null | null | import os
from cacgan.data import FormulaDataset, GroupAB
from cacgan.gans import AugCycleGan
from cacgan.gans import Trainer
from cacgan.utils import SEED, seed_rng, load_pkl
"""
print a txt file describing the structure of augcyc
"""
seed_rng(SEED)
dataset = load_pkl("../dataset/dataset_ab.pkl")
dataset: FormulaD... | 27.590909 | 94 | 0.792422 |
3929bec32ef1c5ce780461ed9cf4da4c8626eee2 | 894 | py | Python | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | null | null | null | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | null | null | null | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | 1 | 2020-11-27T23:24:09.000Z | 2020-11-27T23:24:09.000Z | # Generated by Django 3.1.2 on 2020-10-17 13:50
import django.contrib.auth.models
from django.db import migrations
| 24.833333 | 70 | 0.551454 |
392acdb2ba71ec521fa09fbe78d6aeda095a2027 | 20,473 | py | Python | python_scripts/tools/test_accuracy.py | cristianwpuig/Object-detection-and-classification-using-LiDAR-and-edgeTPU | fa876ee8ccf40ecfacfd3a697c41a519a15a3ff1 | [
"MIT"
] | null | null | null | python_scripts/tools/test_accuracy.py | cristianwpuig/Object-detection-and-classification-using-LiDAR-and-edgeTPU | fa876ee8ccf40ecfacfd3a697c41a519a15a3ff1 | [
"MIT"
] | null | null | null | python_scripts/tools/test_accuracy.py | cristianwpuig/Object-detection-and-classification-using-LiDAR-and-edgeTPU | fa876ee8ccf40ecfacfd3a697c41a519a15a3ff1 | [
"MIT"
] | null | null | null | import ctypes
import csv
import os
import numpy as np
import tflite_runtime.interpreter as tflite
import time
import platform
import collections
import operator
'''
source /home/cristian/virtualenvs/coral/bin/activate
python test_accuracy.py
'''
# Configuration parametres
print_results = True
load_results = False
writ... | 44.506522 | 217 | 0.640014 |
392c38c4087be8ff3e32c8fcba510fcdd3370bb8 | 10,037 | py | Python | scripts/achived/classifcation5.py | nmningmei/metacognition | 734082e247cc7fc9d277563e2676e10692617a3f | [
"MIT"
] | 3 | 2019-07-09T15:37:46.000Z | 2019-07-17T16:28:02.000Z | scripts/achived/classifcation5.py | nmningmei/metacognition | 734082e247cc7fc9d277563e2676e10692617a3f | [
"MIT"
] | null | null | null | scripts/achived/classifcation5.py | nmningmei/metacognition | 734082e247cc7fc9d277563e2676e10692617a3f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 13 13:31:08 2018
@author: nmei
Cross experiment validation
"""
import os
working_dir = '../data/'
import pandas as pd
from tqdm import tqdm
pd.options.mode.chained_assignment = None
import numpy as np
from sklearn.metrics import roc_auc_score
fr... | 34.850694 | 98 | 0.507721 |
392d149ad0b50198610a97e8e0753d72575eb6b5 | 924 | py | Python | Scoring_Tools/check_stacks_2.py | htpans/htpans | 49b9c6cec007577bde5e8dfbce9acde45be78fbf | [
"MIT"
] | null | null | null | Scoring_Tools/check_stacks_2.py | htpans/htpans | 49b9c6cec007577bde5e8dfbce9acde45be78fbf | [
"MIT"
] | null | null | null | Scoring_Tools/check_stacks_2.py | htpans/htpans | 49b9c6cec007577bde5e8dfbce9acde45be78fbf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 26 17:43:03 2019
@author: Eric Danielson
"""
from skimage import io
import os
import argparse
from tqdm import tqdm
argparser = argparse.ArgumentParser(
description='Train and validate YOLO_v2 model on any dataset')
argparser.add_argument(
'-i',... | 24.315789 | 67 | 0.554113 |
392d42b9edf6beeccc22b6acefd045b99b7ec43e | 574 | py | Python | hqtrace_start.py | halucinator/hq-tracer | 67d155142910aec25ef2fc14159cb0ef80a34111 | [
"BSD-3-Clause"
] | 1 | 2021-08-03T01:54:12.000Z | 2021-08-03T01:54:12.000Z | hqtrace_start.py | halucinator/hq-tracer | 67d155142910aec25ef2fc14159cb0ef80a34111 | [
"BSD-3-Clause"
] | null | null | null | hqtrace_start.py | halucinator/hq-tracer | 67d155142910aec25ef2fc14159cb0ef80a34111 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS,
# the U.S. Government retains certain rights in this software.
# #This script starts the HQTrace Plugin
#@Christopher Wright
#@category HQTracer
#@keybinding alt shift t
#@menupa... | 35.875 | 85 | 0.773519 |
392d9ed47279e20510efa86956a52f2d4392ee39 | 2,816 | py | Python | gps_server/server.py | simonfong6/not-kiwi-bot | 9542f328542126b32b2bb2961eea3f4243bdd29f | [
"MIT"
] | 1 | 2018-05-16T00:52:53.000Z | 2018-05-16T00:52:53.000Z | gps_server/server.py | simonfong6/not-kiwi-bot | 9542f328542126b32b2bb2961eea3f4243bdd29f | [
"MIT"
] | null | null | null | gps_server/server.py | simonfong6/not-kiwi-bot | 9542f328542126b32b2bb2961eea3f4243bdd29f | [
"MIT"
] | 1 | 2020-09-24T17:58:34.000Z | 2020-09-24T17:58:34.000Z | #!/env/usr/bin python
"""
server.py
Tool to visualize GPS coordinates for donkeycar.
"""
from flask import Flask, request, send_from_directory, jsonify
import json
# File that stores the GPS markers
DATA_FILE = 'data.json'
# JSON status messages
SUCCESS = {'status' : {'success': True}}
FAIL = {'status': {'success':... | 24.920354 | 77 | 0.580256 |
392ece3eab4fceea4640046a996ab12e285120cf | 6,635 | py | Python | lunarlander/learn.py | brianquinlan/learn-machine-learning | 275284eafdeb4e0140ab5d877e06d3258f7b590a | [
"MIT"
] | 1 | 2018-05-10T02:55:15.000Z | 2018-05-10T02:55:15.000Z | lunarlander/learn.py | brianquinlan/learn-machine-learning | 275284eafdeb4e0140ab5d877e06d3258f7b590a | [
"MIT"
] | null | null | null | lunarlander/learn.py | brianquinlan/learn-machine-learning | 275284eafdeb4e0140ab5d877e06d3258f7b590a | [
"MIT"
] | null | null | null | # Copyright 2019 Brian Quinlan
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 27.417355 | 78 | 0.609495 |
392fd6cec05398851f6edab18f7e5a5a0402b4ac | 316 | py | Python | chapter05/error_view_demo/errors/urls.py | Tomtao626/django | fe945063593b4bfe82d74842f728b854b501a294 | [
"Apache-2.0"
] | null | null | null | chapter05/error_view_demo/errors/urls.py | Tomtao626/django | fe945063593b4bfe82d74842f728b854b501a294 | [
"Apache-2.0"
] | null | null | null | chapter05/error_view_demo/errors/urls.py | Tomtao626/django | fe945063593b4bfe82d74842f728b854b501a294 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 02/01/2021 23:37
# @Author : tomtao
# @Email : tp320670258@gmail.com
# @File : urls.py
# @Project : error_view_demo
from django.urls import path
from . import views
urlpatterns = [
path('405.html', views.view_405, name='405'),
path('403.html', views.view_403, name='403')
] | 24.307692 | 49 | 0.651899 |
393274511ff8ade3d568edf3ce281b780dd13969 | 3,376 | py | Python | tests/test_dataset.py | ckauth/eurostat-api-client | 70c859881d50b3eca275434e2590ff7d76b290e9 | [
"Apache-2.0"
] | 4 | 2019-01-04T12:57:07.000Z | 2021-03-14T04:03:42.000Z | tests/test_dataset.py | ckauth/eurostat-api-client | 70c859881d50b3eca275434e2590ff7d76b290e9 | [
"Apache-2.0"
] | 6 | 2019-06-16T21:20:09.000Z | 2021-09-15T21:03:57.000Z | tests/test_dataset.py | ckauth/eurostat-api-client | 70c859881d50b3eca275434e2590ff7d76b290e9 | [
"Apache-2.0"
] | 9 | 2019-07-29T16:13:25.000Z | 2022-03-10T17:42:30.000Z | from eurostatapiclient.models.dataset import dimension_list_size
from eurostatapiclient.models.dimension import ItemList, Dimension
import unittest
from eurostatapiclient.models.dataset import Dataset
import datetime
import json
import os
TEST_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
ADD_DATASET =... | 36.301075 | 74 | 0.591825 |
3933365abb5430b754b10a4e77d9d9f75fd097cc | 3,001 | py | Python | MediaTracker/views/views_main.py | sarahbeharrygoss/MediaTracker | 3df8ae27534ed5c9933cc4944b90372d5f569692 | [
"MIT"
] | null | null | null | MediaTracker/views/views_main.py | sarahbeharrygoss/MediaTracker | 3df8ae27534ed5c9933cc4944b90372d5f569692 | [
"MIT"
] | null | null | null | MediaTracker/views/views_main.py | sarahbeharrygoss/MediaTracker | 3df8ae27534ed5c9933cc4944b90372d5f569692 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from MediaTracker.flask_app_and_db import flask_app as app
from MediaTracker import models
from flask import render_template, request
from MediaTracker.forms import MediaForm
from MediaTracker.controllers import media_controller, tag_controller
from urllib.parse import urlencode... | 34.895349 | 105 | 0.676774 |
3933b14868fb7835981174229acf0723b316d2f0 | 3,448 | py | Python | marx.py | shrsv/marx | bf0f332c8505e4c17035f0aaddf501a9c3f160f5 | [
"MIT"
] | null | null | null | marx.py | shrsv/marx | bf0f332c8505e4c17035f0aaddf501a9c3f160f5 | [
"MIT"
] | null | null | null | marx.py | shrsv/marx | bf0f332c8505e4c17035f0aaddf501a9c3f160f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import ply.lex as lex
# Commonmark specification by John MacFarlane
# http://spec.commonmark.org/0.21/
# The spec uses BMP Unicode codepoints:
# U+NNNN where 0000 <= NNNN <= FFFF
# https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
# The building blocks are:
# character, li... | 38.311111 | 80 | 0.75145 |
3934036821b99f3a446c5842236bd774d012e9ea | 283 | py | Python | pirates.py | sanjeev8386/Debugging | dd4ad640cf22af1d06d3bdccb74acab29bab47fc | [
"Apache-2.0"
] | 5 | 2019-03-03T06:18:45.000Z | 2019-03-03T06:27:29.000Z | pirates.py | sanjeev8386/Debugging | dd4ad640cf22af1d06d3bdccb74acab29bab47fc | [
"Apache-2.0"
] | null | null | null | pirates.py | sanjeev8386/Debugging | dd4ad640cf22af1d06d3bdccb74acab29bab47fc | [
"Apache-2.0"
] | null | null | null | # greeting = input("Kya naam hai aapka?")
# print(greeting)
# greeting = input("Kya naam hai aapka?")
# print(greeting)
greeting = input("Hello, pirate ji! Andar aane ka password batao?")
if "AbraKaDabra" == greeting:
print("Andar aao ji!")
else:
print("Bhaag jaa pirate!")
| 28.3 | 67 | 0.674912 |
39340c106072ca98c8d5dadf76bb06e25cb34669 | 4,409 | py | Python | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | 2 | 2021-08-06T19:40:53.000Z | 2021-08-07T05:21:24.000Z | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | null | null | null | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.33.0
# ... | 44.535354 | 96 | 0.821048 |
393450fc2d2715e9100e072a54294b73919a49e9 | 11,446 | py | Python | src/qibo/tests/test_core_hamiltonians.py | renatomello/qibo | 20c6f3f22effbeccd5d31ed456717f9bee449e0c | [
"Apache-2.0"
] | null | null | null | src/qibo/tests/test_core_hamiltonians.py | renatomello/qibo | 20c6f3f22effbeccd5d31ed456717f9bee449e0c | [
"Apache-2.0"
] | null | null | null | src/qibo/tests/test_core_hamiltonians.py | renatomello/qibo | 20c6f3f22effbeccd5d31ed456717f9bee449e0c | [
"Apache-2.0"
] | 1 | 2022-03-28T17:52:46.000Z | 2022-03-28T17:52:46.000Z | """Test methods in `qibo/core/hamiltonians.py`."""
import pytest
import numpy as np
from scipy import sparse
from qibo import hamiltonians, K
from qibo.tests.utils import random_complex
def test_hamiltonian_operation_errors():
"""Testing hamiltonian not implemented errors."""
H1 = hamiltonians.XXZ(nqubits... | 35.880878 | 90 | 0.62441 |
39368ab4391d5218fe27c32f6d8834334fe277a9 | 9,451 | py | Python | modules/feature_weights.py | keyvantaj/Quantitative | 77c7c414c47ed3fe22873b87ed15e92dc62226da | [
"MIT"
] | 9 | 2020-10-11T21:09:41.000Z | 2022-02-17T01:52:04.000Z | modules/feature_weights.py | ajmal017/Quantitative | 7af681677031987c64f402d8cb06b358cedd184a | [
"MIT"
] | null | null | null | modules/feature_weights.py | ajmal017/Quantitative | 7af681677031987c64f402d8cb06b358cedd184a | [
"MIT"
] | 3 | 2020-07-18T02:19:08.000Z | 2022-01-30T15:37:02.000Z | import matplotlib.pyplot as plt
import datetime as datetime
import numpy as np
import pandas as pd
import talib
import seaborn as sns
from time import time
from sklearn import preprocessing
from pandas.plotting import register_matplotlib_converters
from .factorize import FactorManagement
import scipy.stats as stats
imp... | 42.191964 | 114 | 0.632526 |
39373fd62c1c95168677446d3aff06f09ea5b298 | 3,179 | py | Python | tests/asv_bench/benchmarks/count_if.py | realead/cykhash | b1a45843c3be49cd232d3c78315d2291a830284f | [
"MIT"
] | 18 | 2019-03-13T08:20:06.000Z | 2021-06-22T08:03:01.000Z | tests/asv_bench/benchmarks/count_if.py | realead/cykhash | b1a45843c3be49cd232d3c78315d2291a830284f | [
"MIT"
] | 6 | 2020-04-13T10:11:45.000Z | 2021-11-14T15:59:55.000Z | tests/asv_bench/benchmarks/count_if.py | realead/cykhash | b1a45843c3be49cd232d3c78315d2291a830284f | [
"MIT"
] | 7 | 2019-05-19T22:24:57.000Z | 2020-08-26T23:01:23.000Z | import numpy as np
from cykhash import count_if_int64, count_if_int64_from_iter, Int64Set_from, Int64Set_from_buffer
from cykhash import count_if_int32, count_if_int32_from_iter, Int32Set_from, Int32Set_from_buffer
from cykhash import count_if_float64, count_if_float64_from_iter, Float64Set_from, Float64Set_from_buffe... | 30.864078 | 110 | 0.643599 |
3938add8f52f37344b2c5a7d5cbf597b4f740a18 | 1,188 | py | Python | src/sim/06-allegheny-05-school-work-flu/sim-test-01.py | momacs/pram | d2de43ea447d13a65d814f781ec86889754f76fe | [
"BSD-3-Clause"
] | 10 | 2019-01-18T19:11:54.000Z | 2022-03-16T08:39:36.000Z | src/sim/06-allegheny-05-school-work-flu/sim-test-01.py | momacs/pram | d2de43ea447d13a65d814f781ec86889754f76fe | [
"BSD-3-Clause"
] | 2 | 2019-02-19T15:10:44.000Z | 2019-02-26T04:26:24.000Z | src/sim/06-allegheny-05-school-work-flu/sim-test-01.py | momacs/pram | d2de43ea447d13a65d814f781ec86889754f76fe | [
"BSD-3-Clause"
] | 3 | 2019-02-19T15:11:08.000Z | 2021-08-20T11:51:04.000Z | '''
A test simulation involving the SEIR flu model in isolation.
'''
from pram.data import GroupSizeProbe, ProbeMsgMode
from pram.entity import Group, Site
from pram.rule import SEIRFluRule
from pram.sim import Simulation
rand_seed = 1928
probe_grp_size_flu = GroupSizeProbe.by_attr('flu', SEIRFluRule.ATTR, SE... | 24.75 | 159 | 0.590067 |
39393793b2eafb2d08a2bee5095d95946bcad88f | 31 | py | Python | models/__init__.py | StephenTerror/TSSCapsNet | edc01b85987da641f4797c1bf60355bc78a6d51f | [
"Apache-2.0"
] | 1 | 2021-03-21T12:37:38.000Z | 2021-03-21T12:37:38.000Z | models/__init__.py | StephenTerror/TSSCapsNet | edc01b85987da641f4797c1bf60355bc78a6d51f | [
"Apache-2.0"
] | null | null | null | models/__init__.py | StephenTerror/TSSCapsNet | edc01b85987da641f4797c1bf60355bc78a6d51f | [
"Apache-2.0"
] | null | null | null | from models.model_zoo import *
| 15.5 | 30 | 0.806452 |
39393fd1663cd51cc893648130264d6a536c39eb | 374 | py | Python | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | from ProjectEulerCommons.Base import *
Answer(
int(''.join(map(str, first_true_value(permutations(list(range(10))), pred = lambda enum: enum[0] == 1000000 - 1))))
)
"""
------------------------------------------------
ProjectEuler.Problem.024.py
The Answer is: 2783915460
Time Elasped: 1.132969617843628sec... | 28.769231 | 119 | 0.516043 |
393af2e7a56b8e1fb6dfc214efb3967a67da7892 | 866 | py | Python | test_first/patch_module.py | haarcuba/test_first | 804ccd40699345423a44c90c62ced7fcb82f735b | [
"MIT"
] | null | null | null | test_first/patch_module.py | haarcuba/test_first | 804ccd40699345423a44c90c62ced7fcb82f735b | [
"MIT"
] | 7 | 2021-10-30T19:09:10.000Z | 2021-12-04T21:14:28.000Z | test_first/patch_module.py | haarcuba/test_first | 804ccd40699345423a44c90c62ced7fcb82f735b | [
"MIT"
] | null | null | null | import pytest
from test_first import fake
_SENTINEL = 'test_first-sentinel-a72004be-7a66-42f5-bdcf-7d71eb7283e3'
| 27.0625 | 70 | 0.620092 |
393d856c5a143092e3bf4ec4635cb697b334ab02 | 12,721 | py | Python | geo/geophys/examples/RM15/RM15.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | geo/geophys/examples/RM15/RM15.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | geo/geophys/examples/RM15/RM15.py | Tamlyn78/geo | dd63372acdd1fe8b744c05eca5ad23836e6a1604 | [
"MIT"
] | null | null | null | from os import listdir, makedirs
from os.path import abspath, basename, dirname, isdir, join
import re
import csv
import numpy as np
import pandas as pd
from scipy import stats, ndimage, signal
import matplotlib.pyplot as plt
from matplotlib import cm, rc
from mpl_toolkits.axes_grid1 import make_axes_locatable
from ma... | 33.564644 | 135 | 0.585803 |
393d8a33f773b3b39e9d958ef90238b7ad2f9749 | 309 | py | Python | Apps/phsplunkoncall/splunkoncall_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 74 | 2019-10-22T02:00:53.000Z | 2022-03-15T12:56:13.000Z | Apps/phsplunkoncall/splunkoncall_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 375 | 2019-10-22T20:53:50.000Z | 2021-11-09T21:28:43.000Z | Apps/phsplunkoncall/splunkoncall_consts.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 175 | 2019-10-23T15:30:42.000Z | 2021-11-05T21:33:31.000Z | # File: splunkoncall_consts.py
#
# Copyright (c) 2018-2021 Splunk Inc.
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
# Define your constants here
INTEGRATION_URL_MISSING = "Integration URL required in asset configuration"
UPDATE_INCIDENT_ERROR = "Error updating incident"
| 28.090909 | 77 | 0.776699 |
393d8d7d5792eab89a415b922f64a52c86ec37a7 | 1,716 | py | Python | specreduce/table_utils.py | simontorres/specreduce | bb41c2d1416cb2fa1137f58643ddd9400a3092b9 | [
"BSD-3-Clause"
] | null | null | null | specreduce/table_utils.py | simontorres/specreduce | bb41c2d1416cb2fa1137f58643ddd9400a3092b9 | [
"BSD-3-Clause"
] | null | null | null | specreduce/table_utils.py | simontorres/specreduce | bb41c2d1416cb2fa1137f58643ddd9400a3092b9 | [
"BSD-3-Clause"
] | null | null | null | """Utility functions to parse master NIST table.
"""
from astropy.table import Column, Table, vstack
import glob
import numpy as np
def sort_table_by_element(table, elem_list):
"""Build table based on list of elements
Parameters
----------
table: astropy table
Table to sort
elem_list: lis... | 26 | 91 | 0.643939 |
393e5bb1bc9612539e7d8b447c1f8d1b0ef109f0 | 1,223 | py | Python | AioCentralBankRuApi.py | dark0ghost/AioCentralBankRuApi | fcd9d0c9bc660c8e03c67d022398b51f47571720 | [
"MIT"
] | null | null | null | AioCentralBankRuApi.py | dark0ghost/AioCentralBankRuApi | fcd9d0c9bc660c8e03c67d022398b51f47571720 | [
"MIT"
] | null | null | null | AioCentralBankRuApi.py | dark0ghost/AioCentralBankRuApi | fcd9d0c9bc660c8e03c67d022398b51f47571720 | [
"MIT"
] | null | null | null | import aiohttp
from typing import Dict
| 27.177778 | 75 | 0.540474 |
393e655ee87ab592a9155b2f92d99ffe276dd68d | 40,932 | py | Python | IntOpt/NeurIPSIntopt-main/Interior/intopt_energy_mlp.py | Patyrn/Divide-and-Learn | ff03689c7ab6a7155ebd019babce8f79d0757a53 | [
"MIT"
] | 7 | 2020-11-06T01:29:48.000Z | 2022-01-02T12:49:40.000Z | IntOpt/NeurIPSIntopt-main/Interior/intopt_energy_mlp.py | Patyrn/Divide-and-Learn | ff03689c7ab6a7155ebd019babce8f79d0757a53 | [
"MIT"
] | 2 | 2021-01-19T16:59:04.000Z | 2021-01-25T10:17:46.000Z | IntOpt/NeurIPSIntopt-main/Interior/intopt_energy_mlp.py | Patyrn/Divide-and-Learn | ff03689c7ab6a7155ebd019babce8f79d0757a53 | [
"MIT"
] | 5 | 2021-07-13T04:47:13.000Z | 2022-01-17T14:05:06.000Z | import sys
sys.path.insert(0, '..')
sys.path.insert(0, '../EnergyCost')
from qpthlocal.qp import QPFunction
from qpthlocal.qp import QPSolvers
from qpthlocal.qp import make_gurobi_model
from ICON import *
from sgd_learner import *
from sklearn.metrics import mean_squared_error as mse
from collections import defaultdict... | 41.981538 | 134 | 0.569066 |
393f1dae7f66e2378ca21c870e8999d47cde8d9f | 3,868 | py | Python | Sem-10-T2-Q5.py | daianasousa/Atividade-Remota-10 | 824ee93de32d7e93d836b1ac3b5b78eac8a2eea7 | [
"MIT"
] | null | null | null | Sem-10-T2-Q5.py | daianasousa/Atividade-Remota-10 | 824ee93de32d7e93d836b1ac3b5b78eac8a2eea7 | [
"MIT"
] | null | null | null | Sem-10-T2-Q5.py | daianasousa/Atividade-Remota-10 | 824ee93de32d7e93d836b1ac3b5b78eac8a2eea7 | [
"MIT"
] | null | null | null | agenda = {
'Joo': '86988102987',
}
# (C)RUD
# C(R)UD
# CR(U)D
# CRU(D)
if __name__ == '__main__':
main()
| 29.082707 | 83 | 0.572389 |
3942c26296f00630ee50c69c002e490850562b67 | 14,568 | py | Python | src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 1 | 2020-04-02T11:51:20.000Z | 2020-04-02T11:51:20.000Z | src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
# rename quest to fixt segmentation fault
| 45.102167 | 162 | 0.737095 |
3945918df30a9ed54072945849738662d8767f6a | 461 | py | Python | sources/t08/t08ej08.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t08/t08ej08.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t08/t08ej08.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | from functools import wraps
add(2, 2)
sub(8, 3)
mul(5,6)
div(16, 2)
help(add) | 14.40625 | 36 | 0.566161 |
3945df9845ecf9ada82d2ae164bf467f497ebb1b | 1,918 | py | Python | administration/views.py | mwinamijr/school-management-system-backend | 7ec0ab674f524964214fc0abc39cef752eff4f9b | [
"MIT"
] | null | null | null | administration/views.py | mwinamijr/school-management-system-backend | 7ec0ab674f524964214fc0abc39cef752eff4f9b | [
"MIT"
] | 4 | 2021-06-05T00:11:13.000Z | 2022-01-13T03:47:17.000Z | administration/views.py | mwinamijr/school-management-system-backend | 7ec0ab674f524964214fc0abc39cef752eff4f9b | [
"MIT"
] | 1 | 2021-04-20T18:05:56.000Z | 2021-04-20T18:05:56.000Z | from rest_framework import generics, views, viewsets
from rest_framework.decorators import api_view
from rest_framework.parsers import FileUploadParser
from rest_framework.response import Response
from rest_framework import status
from django.http import Http404
from openpyxl import load_workbook, Workbook
from openpyx... | 33.068966 | 72 | 0.792492 |
39464a019cb985cdafeee6f4d457d7fc18ed469a | 377 | py | Python | DjangoAPI/MyAPI/urls.py | ashishmenkudale/django_poc | 16f30a10f497f653062ec923d3510f7530ecbedd | [
"MIT"
] | null | null | null | DjangoAPI/MyAPI/urls.py | ashishmenkudale/django_poc | 16f30a10f497f653062ec923d3510f7530ecbedd | [
"MIT"
] | null | null | null | DjangoAPI/MyAPI/urls.py | ashishmenkudale/django_poc | 16f30a10f497f653062ec923d3510f7530ecbedd | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('MyAPI', views.ApprovalsView)
urlpatterns = [
path('api/', include(router.urls)),
path('status/', views.approvereject),
path('form/', views.cxcontact, name='cxform')... | 31.416667 | 53 | 0.71618 |
39497691ceabd3784d606785b4a899f237208ed4 | 38,631 | py | Python | arelle/plugin/sphinx/FormulaGenerator.py | DataFinnovation/Arelle | d4bf45f56fc9249f75ab22e6217dbe55f0510841 | [
"Apache-2.0"
] | 292 | 2015-01-27T03:31:51.000Z | 2022-03-26T07:00:05.000Z | arelle/plugin/sphinx/FormulaGenerator.py | DataFinnovation/Arelle | d4bf45f56fc9249f75ab22e6217dbe55f0510841 | [
"Apache-2.0"
] | 94 | 2015-04-18T23:03:00.000Z | 2022-03-28T17:24:55.000Z | arelle/plugin/sphinx/FormulaGenerator.py | DataFinnovation/Arelle | d4bf45f56fc9249f75ab22e6217dbe55f0510841 | [
"Apache-2.0"
] | 200 | 2015-01-13T03:55:47.000Z | 2022-03-29T12:38:56.000Z | '''
formulaGenerator generates XBRL formula linkbases for a subset of the Sphinx language.
(c) Copyright 2013 Mark V Systems Limited, California US, All rights reserved.
Mark V copyright applies to this software, which is licensed according to the terms of Arelle(r).
Sphinx is a Rules Language for XBRL described by... | 46.543373 | 125 | 0.551422 |
3949804a27d13ac40bfeeab53fe441faa29640de | 2,900 | py | Python | backend/core/management/commands/load_fixtures.py | Swapnil070797/falco | 2576bee2e385aa62cf93ab5f27234bb51313b416 | [
"MIT"
] | 796 | 2019-10-19T19:58:12.000Z | 2022-03-22T14:02:37.000Z | backend/core/management/commands/load_fixtures.py | Swapnil070797/falco | 2576bee2e385aa62cf93ab5f27234bb51313b416 | [
"MIT"
] | 224 | 2019-10-19T17:45:12.000Z | 2022-03-24T20:46:29.000Z | backend/core/management/commands/load_fixtures.py | Swapnil070797/falco | 2576bee2e385aa62cf93ab5f27234bb51313b416 | [
"MIT"
] | 33 | 2019-10-22T21:17:09.000Z | 2021-12-23T06:08:26.000Z | from datetime import timedelta
from django.core.management.base import BaseCommand
from django.utils import timezone
from audits.factories import (
AuditFactory,
AuditResultsFactory,
AuditStatusHistoryFactory,
)
from audits.models import Audit, AuditResults
from core.factories import AdminFactory, UserFact... | 42.647059 | 84 | 0.704483 |
3949fe35326199497ec243fad616b2c474910cea | 409 | py | Python | palindrome_program.py | shubham13202/Palindrome_number | af01bb105ea8bd1cef0311f084ba1ad409d0cf59 | [
"MIT"
] | null | null | null | palindrome_program.py | shubham13202/Palindrome_number | af01bb105ea8bd1cef0311f084ba1ad409d0cf59 | [
"MIT"
] | null | null | null | palindrome_program.py | shubham13202/Palindrome_number | af01bb105ea8bd1cef0311f084ba1ad409d0cf59 | [
"MIT"
] | null | null | null | """n = int(input("Enter ThE number :"))
temp = n
new = 0
while temp > 0:
d = temp % 10
new = new * 10 + d
temp = temp //10
if n == new:
print("Number is palindrome")
else:
print("Number is not palindrome")
#print(palindrome(101))
"""
var1=str(input("Enter the sequence"))
x=var1[::-1]
if(var1==x):... | 17.782609 | 42 | 0.599022 |
394a8e23225b11ac893797de835089f91e2b99ae | 368 | py | Python | euler273/273.py | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2020-03-23T04:31:14.000Z | 2021-01-17T09:03:09.000Z | euler273/273.py | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | null | null | null | euler273/273.py | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2018-03-28T20:53:27.000Z | 2020-04-27T07:03:02.000Z | #!/usr/bin/env python
import math
erato = [True]*150
primes = []
for i in xrange(2, 150):
if erato[i]:
if i % 4 == 1:
primes.append(i)
j = i + i
while j < 150:
erato[j] = False
j += i
print primes
print len(primes)
print 2**len(primes)
mul = 1
for p in p... | 16.727273 | 28 | 0.516304 |
394ab9998819718496fb6f7b44cc4fce8aaac5ee | 2,869 | py | Python | pysnmp-with-texts/TOS-SMI.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/TOS-SMI.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/TOS-SMI.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 TOS-SMI (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TOS-SMI
# Produced by pysmi-0.3.4 at Wed May 1 15:24:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 102.464286 | 505 | 0.758801 |
394ae53df762a37668f92d5a8c275bd8a607f470 | 7,493 | py | Python | test/units/plugins/inventory/test_inventory.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 37 | 2017-08-15T15:02:43.000Z | 2021-07-23T03:44:31.000Z | test/units/plugins/inventory/test_inventory.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 12 | 2018-01-10T05:25:25.000Z | 2021-11-28T06:55:48.000Z | test/units/plugins/inventory/test_inventory.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 49 | 2017-08-15T09:52:13.000Z | 2022-03-21T17:11:54.000Z | # Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com>
#
# This file is part of Ansible
#
# Ansible 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 ... | 36.730392 | 113 | 0.577472 |
394c0a95f80ca6b5a6459e883027f6e8484a36c9 | 116 | py | Python | djmoney/models/__init__.py | toudi/django-money | 44878b26f05351a55ec97d2b437de48875ea6cee | [
"BSD-3-Clause"
] | null | null | null | djmoney/models/__init__.py | toudi/django-money | 44878b26f05351a55ec97d2b437de48875ea6cee | [
"BSD-3-Clause"
] | null | null | null | djmoney/models/__init__.py | toudi/django-money | 44878b26f05351a55ec97d2b437de48875ea6cee | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
from django.core import serializers
serializers.register_serializer('json', 'djmoney.serializers')
| 19.333333 | 62 | 0.801724 |
394deac2c0648e3ff3bc3f9137803ed2f4273593 | 409 | py | Python | c12/p349_stdout.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | c12/p349_stdout.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | c12/p349_stdout.py | HiAwesome/dive-into-python3-practice | e57504cb0683ebca9c80b20ff0cb3878bdcc3f87 | [
"Apache-2.0"
] | null | null | null | import sys
print('A')
with open('../resource/txt/output/out.log', mode='w', encoding='utf-8') as a_file, RedirectStdoutTo(a_file):
print('B')
print('C')
| 20.45 | 108 | 0.638142 |
394e6287c45dd4b169b78862df54b129511b5346 | 1,495 | py | Python | test_pyparsing_3_1.py | luluci/gui_env | 9c2ffe331c2dc8a7e128474ce9590498082de569 | [
"MIT"
] | null | null | null | test_pyparsing_3_1.py | luluci/gui_env | 9c2ffe331c2dc8a7e128474ce9590498082de569 | [
"MIT"
] | null | null | null | test_pyparsing_3_1.py | luluci/gui_env | 9c2ffe331c2dc8a7e128474ce9590498082de569 | [
"MIT"
] | null | null | null | import pyparsing as pp
comment_parser = pp.Group(
(pp.Literal("//") + pp.restOfLine)
| pp.cStyleComment
).setParseAction(act_comment)
pp_key1 = pp.Keyword("hoge")
pp_key2 = pp.Keyword("fuga")
pp_sc = pp.Literal(";")
statement = pp.Group(
pp.Empty().setParseAction(act_parser_start)
+ pp_key1.setParseAction(... | 19.166667 | 69 | 0.646154 |
394ecf34ca7686c2864f4d097b99dc46fa95d1e2 | 1,537 | py | Python | tests/todo/dot.py | bryevdv/cunumeric | 7965ceb96d3252371c22cf32d38ac91c4db77a38 | [
"Apache-2.0"
] | 304 | 2021-11-05T13:13:08.000Z | 2022-03-27T17:53:37.000Z | tests/todo/dot.py | bryevdv/cunumeric | 7965ceb96d3252371c22cf32d38ac91c4db77a38 | [
"Apache-2.0"
] | 62 | 2021-11-02T15:59:16.000Z | 2022-03-31T18:23:15.000Z | tests/todo/dot.py | bryevdv/cunumeric | 7965ceb96d3252371c22cf32d38ac91c4db77a38 | [
"Apache-2.0"
] | 26 | 2021-11-09T09:01:04.000Z | 2022-02-25T15:57:22.000Z | # Copyright 2021-2022 NVIDIA Corporation
#
# 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 ... | 27.945455 | 77 | 0.62069 |
39512081e501bea95e39139b8a09e836d559e349 | 61 | py | Python | ninja_schema/types.py | eadwinCode/django-schema | 94280270aa4f9c8ed08808c938283a4e217d17f0 | [
"MIT"
] | 9 | 2021-10-31T22:03:00.000Z | 2022-03-27T19:40:40.000Z | ninja_schema/types.py | eadwinCode/django-schema | 94280270aa4f9c8ed08808c938283a4e217d17f0 | [
"MIT"
] | null | null | null | ninja_schema/types.py | eadwinCode/django-schema | 94280270aa4f9c8ed08808c938283a4e217d17f0 | [
"MIT"
] | null | null | null | from typing import Any, Dict
DictStrAny = Dict[str, Any]
| 15.25 | 29 | 0.704918 |
39514311e1de0c6b9b8fe2b0f0b8804f4d55eecd | 1,005 | py | Python | mocasin/maps/platform/__init__.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | 1 | 2022-03-13T19:27:50.000Z | 2022-03-13T19:27:50.000Z | mocasin/maps/platform/__init__.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | null | null | null | mocasin/maps/platform/__init__.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | null | null | null | # Copyright (C) 2017 TU Dresden
# Licensed under the ISC license (see LICENSE.txt)
#
# Authors: Christian Menard
import logging
from hydra.utils import to_absolute_path
from .convert import convert
from .parse import parse
from mocasin.common.platform import Platform
log = logging.getLogger(__name__)
| 28.714286 | 66 | 0.664677 |
3952128fa2c00ebcf9dc48dfa06c1ee5269ac448 | 866 | py | Python | Backend/apps/trade/migrations/0002_auto_20190224_0327.py | BeanWei/Dailyfresh-B2C | 7c94e9a4428e5116c91bf27cf696e6eee430748a | [
"Apache-2.0"
] | 84 | 2019-02-22T08:19:52.000Z | 2022-02-08T03:36:32.000Z | Backend/apps/trade/migrations/0002_auto_20190224_0327.py | GinCho-Max/Dailyfresh-B2C | 7c94e9a4428e5116c91bf27cf696e6eee430748a | [
"Apache-2.0"
] | 16 | 2019-09-06T10:25:40.000Z | 2022-02-12T06:37:41.000Z | Backend/apps/trade/migrations/0002_auto_20190224_0327.py | GinCho-Max/Dailyfresh-B2C | 7c94e9a4428e5116c91bf27cf696e6eee430748a | [
"Apache-2.0"
] | 61 | 2019-03-20T02:29:23.000Z | 2021-07-09T08:14:25.000Z | # Generated by Django 2.0.2 on 2019-02-24 03:27
from django.db import migrations, models
import django.db.models.deletion
| 29.862069 | 121 | 0.613164 |
3952324dfb1c3711021424481c4d89c71b0f8d7a | 2,020 | py | Python | autoelective/captcha/classifier.py | 12f23eddde/PKUAutoElective | 1a7094ea14a90fb23a3bd33d013bf5a46127394f | [
"MIT"
] | 24 | 2019-09-13T11:58:32.000Z | 2022-02-22T02:38:25.000Z | autoelective/captcha/classifier.py | yzy-pku/PKUAutoElective | 309f8472fc5ba751d46373ea51fa72e1aa3148b0 | [
"MIT"
] | 5 | 2020-09-21T16:23:20.000Z | 2022-01-13T01:37:13.000Z | autoelective/captcha/classifier.py | yzy-pku/PKUAutoElective | 309f8472fc5ba751d46373ea51fa72e1aa3148b0 | [
"MIT"
] | 5 | 2019-09-20T15:36:54.000Z | 2021-09-10T14:32:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# filename: classifier.py
# modified: 2019-09-08
__all__ = ["KNN","SVM","RandomForest"]
import os
import re
from sklearn.neighbors.classification import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.ensemble.forest import RandomForestClassifier
from sklea... | 24.047619 | 80 | 0.630198 |