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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb20be04422ba85fc708db252613db55adc1f7a9 | 359 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | #!/bin/env python
# Vulture often detects false positives when analyzing a code
# base. If there are particular things you wish to ignore,
# add them below. This file is consumed by
# scripts/dead_code/find-dead-code.sh
from vulture.whitelist_utils import Whitelist
view_whitelilst = Whitelist()
# Example:
# view_w... | 23.933333 | 61 | 0.793872 |
eb212bcaed139e5c9db595186ee8e16677921512 | 8,088 | py | Python | mmdet/utils/memory.py | Youth-Got/mmdetection | 2e0a02599804da6e07650dde37b9df538e15d646 | [
"Apache-2.0"
] | 1 | 2021-12-10T15:08:22.000Z | 2021-12-10T15:08:22.000Z | mmdet/utils/memory.py | q3394101/mmdetection | ca11860f4f3c3ca2ce8340e2686eeaec05b29111 | [
"Apache-2.0"
] | null | null | null | mmdet/utils/memory.py | q3394101/mmdetection | ca11860f4f3c3ca2ce8340e2686eeaec05b29111 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from collections import abc
from contextlib import contextmanager
from functools import wraps
import torch
from mmdet.utils import get_root_logger
def cast_tensor_type(inputs, src_type=None, dst_type=None):
"""Recursively convert Tensor in inputs f... | 37.794393 | 103 | 0.574679 |
eb213849d6f5cbf00a64871c3293e7fb777f9ff4 | 2,278 | py | Python | game.py | YeonjuKim05/Kim_Y_RPS_Fall2020 | 031bfeec09f663686ae2c9418185ab5070af3b7a | [
"MIT"
] | null | null | null | game.py | YeonjuKim05/Kim_Y_RPS_Fall2020 | 031bfeec09f663686ae2c9418185ab5070af3b7a | [
"MIT"
] | 1 | 2020-11-28T16:29:28.000Z | 2020-11-28T16:29:28.000Z | game.py | YeonjuKim05/Kim_Y_RPS_Fall2020 | 031bfeec09f663686ae2c9418185ab5070af3b7a | [
"MIT"
] | null | null | null | # import packages to extend python (just like we extend sublime, or Atom, or VSCode)
from random import randint
from gameComponents import gameVars, chooseWinner
while gameVars.player is False:
print("=======================*/ RPS CONTEST /*=======================")
print("Computer Lives: ", gameVars.ai_lives, "/"... | 26.183908 | 113 | 0.6295 |
eb21b87b5bc6c350c9c4db10e19ca1430b1bd7c2 | 1,227 | py | Python | dataset/utils.py | tarun-bisht/mlpipe | 0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1 | [
"MIT"
] | null | null | null | dataset/utils.py | tarun-bisht/mlpipe | 0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1 | [
"MIT"
] | null | null | null | dataset/utils.py | tarun-bisht/mlpipe | 0cd1f0b57a7788222228dc08f0c8a21ed51a7cc1 | [
"MIT"
] | null | null | null | import pandas as pd
import os | 36.088235 | 109 | 0.597392 |
eb2259b4263e5697783bf6849627924369449a0f | 1,222 | py | Python | THreading.py | asd86826/OpticalFlow_Test | f4d621994871b4913b95a18f59cb171526d786ae | [
"MIT"
] | null | null | null | THreading.py | asd86826/OpticalFlow_Test | f4d621994871b4913b95a18f59cb171526d786ae | [
"MIT"
] | null | null | null | THreading.py | asd86826/OpticalFlow_Test | f4d621994871b4913b95a18f59cb171526d786ae | [
"MIT"
] | null | null | null | import time
from threading import Timer
i = 0
if __name__ == "__main__":
print("Starting...")
rt = RepeatedTimer(0.05, timeTest) # it auto start ,so dont need rt.start()
try:
ST = time.time()
time.sleep(5)
except Exception as e:
raise e
finally:
... | 24.44 | 85 | 0.531097 |
eb22d571bce236b4e4b07269afd4c1273f92107f | 721 | py | Python | src/main/PyCodes/deep_versions.py | panditu2015/DL-Lab-7th-Semester | 59a64d9c219cbed8cc4a75517f46c7f551a95a5a | [
"MIT"
] | null | null | null | src/main/PyCodes/deep_versions.py | panditu2015/DL-Lab-7th-Semester | 59a64d9c219cbed8cc4a75517f46c7f551a95a5a | [
"MIT"
] | null | null | null | src/main/PyCodes/deep_versions.py | panditu2015/DL-Lab-7th-Semester | 59a64d9c219cbed8cc4a75517f46c7f551a95a5a | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
import keras
# In[2]:
# scipy
import scipy
print( ' scipy: %s ' % scipy.__version__)
# numpy
import numpy
print( ' numpy: %s ' % numpy.__version__)
# matplotlib
import matplotlib
print( ' matplotlib: %s ' % matplotlib.__version__)
# pandas
import pandas
print( ' pandas: %s ' % pandas.__... | 15.673913 | 53 | 0.694868 |
eb2601a12ac399bfb0e416993c3a1b51cb79ad73 | 577 | py | Python | graph_help/colorschemes/DarkColorScheme.py | jgurhem/Graph_Generator | d60f4451feef0c530389bfc4bc6978bda3d4c0cb | [
"MIT"
] | null | null | null | graph_help/colorschemes/DarkColorScheme.py | jgurhem/Graph_Generator | d60f4451feef0c530389bfc4bc6978bda3d4c0cb | [
"MIT"
] | null | null | null | graph_help/colorschemes/DarkColorScheme.py | jgurhem/Graph_Generator | d60f4451feef0c530389bfc4bc6978bda3d4c0cb | [
"MIT"
] | null | null | null | from .DefaultColorScheme import DefaultColorScheme
| 30.368421 | 50 | 0.636049 |
eb266bf3b2f0517ce3d9501b3cfc011f8ded2d3e | 3,817 | bzl | Python | defs.bzl | attilaolah/bazel-tools | 823216936ee93ab6884c6111a8e60e9a836fa7cc | [
"Apache-2.0"
] | 2 | 2021-09-02T18:59:09.000Z | 2021-09-20T23:13:17.000Z | defs.bzl | attilaolah/bazel-tools | 823216936ee93ab6884c6111a8e60e9a836fa7cc | [
"Apache-2.0"
] | null | null | null | defs.bzl | attilaolah/bazel-tools | 823216936ee93ab6884c6111a8e60e9a836fa7cc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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 writing, ... | 31.545455 | 79 | 0.556196 |
eb26e6350d60cf3d97e04c6da4b6ad1b56768020 | 554 | py | Python | Psi_Phi/plot.py | Twinstar2/Phython_scripts | 19f88420bca64014585e87747d01737afe074400 | [
"MIT"
] | null | null | null | Psi_Phi/plot.py | Twinstar2/Phython_scripts | 19f88420bca64014585e87747d01737afe074400 | [
"MIT"
] | 1 | 2018-02-14T15:19:07.000Z | 2018-02-14T15:19:07.000Z | Psi_Phi/plot.py | TobiasJu/Python_Master_scripts | 19f88420bca64014585e87747d01737afe074400 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
plt.switch_backend('agg')
import seaborn as sns
sns_plot = \
(sns.jointplot(psi, phi, size=12, space=0, xlim=(-190, 190), ylim=(-190, 190)).plot_joint(sns.kdeplot, zorder=0,
n_levels=6))
# sns_pl... | 39.571429 | 112 | 0.617329 |
eb289039ceb1e6cb9ff0bbb176aa1f763781e163 | 692 | py | Python | tests/test_instrumentation/test_base.py | cloudchacho/hedwig-python | 1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b | [
"Apache-2.0"
] | null | null | null | tests/test_instrumentation/test_base.py | cloudchacho/hedwig-python | 1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b | [
"Apache-2.0"
] | 3 | 2021-06-25T20:52:50.000Z | 2021-11-30T16:22:30.000Z | tests/test_instrumentation/test_base.py | cloudchacho/hedwig-python | 1e4ca5472fe661ffd9d3cedd10a9ddc2daa0926b | [
"Apache-2.0"
] | null | null | null | from unittest import mock
import pytest
get_tracer = pytest.importorskip('opentelemetry.trace.get_tracer')
| 40.705882 | 99 | 0.789017 |
eb2a05506a2d5dac21a3a7230d334f572006e5b5 | 42 | py | Python | logic/start_game.py | sparkingdark/Project | fdd521407d788d1945275148337992a795ebdf0c | [
"MIT"
] | null | null | null | logic/start_game.py | sparkingdark/Project | fdd521407d788d1945275148337992a795ebdf0c | [
"MIT"
] | null | null | null | logic/start_game.py | sparkingdark/Project | fdd521407d788d1945275148337992a795ebdf0c | [
"MIT"
] | 5 | 2020-11-28T13:13:15.000Z | 2020-12-07T16:32:36.000Z | from logic import *
| 8.4 | 19 | 0.619048 |
eb2a6dfadfc03cbe4b08fd33a47e0c0b3e370224 | 1,184 | py | Python | Leetcode/SwapNodesInPairs.py | tswsxk/CodeBook | 01b976418d64f5f94257ae0e2b36751afb93c105 | [
"MIT"
] | null | null | null | Leetcode/SwapNodesInPairs.py | tswsxk/CodeBook | 01b976418d64f5f94257ae0e2b36751afb93c105 | [
"MIT"
] | 1 | 2019-09-24T22:04:03.000Z | 2019-09-24T22:04:03.000Z | Leetcode/SwapNodesInPairs.py | tswsxk/CodeBook | 01b976418d64f5f94257ae0e2b36751afb93c105 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
def initlist(listnum):
head = ListNode(listnum[0])
tail = head
for num in listnum[1:]:
tail.next = ListNode(num)
tail = tail.next
return head
if __name__ == "__main__":
sol = Solution()
sol.swapPairs(initlist([1,2,3,4])) | 24.163265 | 44 | 0.47973 |
eb2b0a445ecc0e541307b4aff935b22d4cc3183d | 939 | py | Python | hello.py | ookcode/CodingSpider | eac57ef8b41be841a8366f3cc376ff259d01e27f | [
"MIT"
] | null | null | null | hello.py | ookcode/CodingSpider | eac57ef8b41be841a8366f3cc376ff259d01e27f | [
"MIT"
] | null | null | null | hello.py | ookcode/CodingSpider | eac57ef8b41be841a8366f3cc376ff259d01e27f | [
"MIT"
] | 1 | 2022-02-23T07:12:23.000Z | 2022-02-23T07:12:23.000Z | #!/usr/bin/python
#coding=utf-8
import os
from flask import Flask
from flask import Response
from flask import request
app = Flask(__name__)
if __name__ == "__main__":
app.run() | 30.290323 | 97 | 0.652822 |
eb2c8b8b8d777e9a0438515ac0aea6cd01f5301b | 2,696 | py | Python | chess-board-0.2.0/chessboard/pieces.py | fshelobolin/irohbot | 4ad4c554ecff1e1005fbecf26ee097c387bf357d | [
"MIT"
] | null | null | null | chess-board-0.2.0/chessboard/pieces.py | fshelobolin/irohbot | 4ad4c554ecff1e1005fbecf26ee097c387bf357d | [
"MIT"
] | null | null | null | chess-board-0.2.0/chessboard/pieces.py | fshelobolin/irohbot | 4ad4c554ecff1e1005fbecf26ee097c387bf357d | [
"MIT"
] | null | null | null | """
Ahira Justice, ADEFOKUN
justiceahira@gmail.com
"""
import os
import pygame
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
IMAGE_DIR = os.path.join(BASE_DIR, "images")
BLACK = "BLACK"
WHITE = "WHITE"
BISHOP = "BISHOP"
KING = "KING"
KNGHT = "KNIGHT"
PAWN = "PAWN"
QUEEN = "QUEEN"
ROOK = "ROOK"
| 29.304348 | 66 | 0.582715 |
eb2cab16d3d0736d863c283be6817d00ab5e890d | 3,993 | py | Python | stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 3 | 2019-08-13T01:44:16.000Z | 2019-12-10T04:05:56.000Z | stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | null | null | null | stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 7 | 2019-05-29T17:35:25.000Z | 2021-12-04T07:55:10.000Z | from resource_management.core.resources.system import Execute
from resource_management.libraries.script import Script
from resource_management.core.resources.system import Directory
from resource_management.core.resources.system import File
from resource_management.core.source import InlineTemplate
from resource_manag... | 35.651786 | 146 | 0.643877 |
eb361ceecffd166eeb0b6b3ee13b8be48e6f4d86 | 819 | py | Python | setup.py | ktvng/cue | 5f31c8898f3bc53a18956220f609489cd2bbe590 | [
"MIT"
] | null | null | null | setup.py | ktvng/cue | 5f31c8898f3bc53a18956220f609489cd2bbe590 | [
"MIT"
] | null | null | null | setup.py | ktvng/cue | 5f31c8898f3bc53a18956220f609489cd2bbe590 | [
"MIT"
] | null | null | null | """Cue: Script Orchestration for Data Analysis
Cue lets your package your data analysis into simple actions which can be connected
into a dynamic data analysis pipeline with coverage over even complex data sets.
"""
DOCLINES = (__doc__ or '').split('\n')
from setuptools import find_packages, setup
setup(... | 26.419355 | 85 | 0.616606 |
eb3657629d59fdcbd7874c2822fc0707cfc70c45 | 1,689 | py | Python | tests/getz.py | deflax/steinvord | 709326ff219159a78f644c0adf3c5b224ed42804 | [
"Zlib"
] | 1 | 2021-06-02T19:51:26.000Z | 2021-06-02T19:51:26.000Z | tests/getz.py | deflax/steinvord | 709326ff219159a78f644c0adf3c5b224ed42804 | [
"Zlib"
] | null | null | null | tests/getz.py | deflax/steinvord | 709326ff219159a78f644c0adf3c5b224ed42804 | [
"Zlib"
] | null | null | null | #!/usr/bin/python3.2
#
# Zabbix API Python usage example
# Christoph Haas <email@christoph-haas.de>
#
username=''
password='1'
hostgroup=''
item_name='system.cpu.load[,avg1]'
zabbix_url=''
import zabbix_api
import sys
# Connect to Zabbix server
z=zabbix_api.ZabbixAPI(server=zabbix_url)
z.login(user=username, passwor... | 23.788732 | 70 | 0.562463 |
eb3b035d6a2b960bc0d338d7dd3785c2208f99f5 | 11,813 | py | Python | server.py | uanthwal/starter-snake-python | 6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417 | [
"MIT"
] | null | null | null | server.py | uanthwal/starter-snake-python | 6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417 | [
"MIT"
] | null | null | null | server.py | uanthwal/starter-snake-python | 6eff23ac9b9b0cfb9dbbf6d756a92a677bbf0417 | [
"MIT"
] | null | null | null | import copy
import math
import os
import random
import cherrypy
"""
This is a simple Battlesnake server written in Python.
For instructions see https://github.com/BattlesnakeOfficial/starter-snake-python/README.md
"""
if __name__ == "__main__":
server = Battlesnake()
cherrypy.config.update({"server.socket_host":... | 31.501333 | 108 | 0.632439 |
eb3bba063d98bf83051c3973141cbbea653626d3 | 342 | py | Python | EventIntegrityLib.py | fermi-lat/EventIntegrity | 600c64c7b9be57e1008d12b7bd28ef0d260d7973 | [
"BSD-3-Clause"
] | null | null | null | EventIntegrityLib.py | fermi-lat/EventIntegrity | 600c64c7b9be57e1008d12b7bd28ef0d260d7973 | [
"BSD-3-Clause"
] | null | null | null | EventIntegrityLib.py | fermi-lat/EventIntegrity | 600c64c7b9be57e1008d12b7bd28ef0d260d7973 | [
"BSD-3-Clause"
] | null | null | null | # $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/EventIntegrity/EventIntegrityLib.py,v 1.2 2008/08/28 21:50:54 ecephas Exp $
| 38 | 134 | 0.681287 |
eb3c0fe9fe75281912b7403d1e9af8679184f59d | 107 | py | Python | mr4mp/__init__.py | lapets/mr4mp | 3f3d6ec01272d4b450eda536b37bcd76851a57d2 | [
"MIT"
] | 5 | 2019-06-28T17:36:37.000Z | 2022-03-08T18:59:01.000Z | mr4mp/__init__.py | lapets/mr4mp | 3f3d6ec01272d4b450eda536b37bcd76851a57d2 | [
"MIT"
] | null | null | null | mr4mp/__init__.py | lapets/mr4mp | 3f3d6ec01272d4b450eda536b37bcd76851a57d2 | [
"MIT"
] | null | null | null | """Gives users direct access to class and functions."""
from mr4mp.mr4mp import pool, mapreduce, mapconcat
| 35.666667 | 55 | 0.775701 |
eb3c1435400a880f8b3833ff6b37ef02c5237e11 | 59,098 | py | Python | google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/devtools/testing/v1/devtools-testing-v1-py/google/devtools/testing_v1/types/test_execution.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | 30.029472 | 108 | 0.619953 |
eb3c4ae70f222dd8a499b8678c9508db3922f5b5 | 1,457 | py | Python | CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/Resources/guides/__UNSORTED/244_shortest_word_distance_ii/shortest.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | from collections import defaultdict
# Your WordDistance object will be instantiated and called as such:
# wordDistance = WordDistance(words)
# wordDistance.shortest("word1", "word2")
# wordDistance.shortest("anotherWord1", "anotherWord2")
| 29.734694 | 67 | 0.539465 |
eb41c235a81322c2905a0154804ac4a18d5c346c | 1,060 | py | Python | src/sentimentClassification.py | MaxPowerScience/EnglishSentiment | 119eeb6e1ee9f24805fbad6650d1a9c3e305f952 | [
"Apache-2.0"
] | null | null | null | src/sentimentClassification.py | MaxPowerScience/EnglishSentiment | 119eeb6e1ee9f24805fbad6650d1a9c3e305f952 | [
"Apache-2.0"
] | null | null | null | src/sentimentClassification.py | MaxPowerScience/EnglishSentiment | 119eeb6e1ee9f24805fbad6650d1a9c3e305f952 | [
"Apache-2.0"
] | null | null | null | from perceptron import train_network, create_perceptron, test_network
from preprocessingData import get_ids_matrix, separate_test_and_training_data, read_word_list
from extractRawData import get_raw_data
from lstm import create_lstm, create_lstm_with_tensorflow
if __name__ == "__main__":
main() | 37.857143 | 93 | 0.766038 |
eb41c51ce9970b54d5b685bba4f5e3319c3b6398 | 33,225 | py | Python | Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py | databricks-academy/developer-essentials-capstone | 77e70b1eb5b49b5f6779495fac7d14f5fadded9d | [
"CC0-1.0"
] | 1 | 2022-02-08T03:56:32.000Z | 2022-02-08T03:56:32.000Z | Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py | databricks-academy/developer-essentials-capstone | 77e70b1eb5b49b5f6779495fac7d14f5fadded9d | [
"CC0-1.0"
] | null | null | null | Developer-Essentials-Capstone/Python/Includes/Capstone-Setup.py | databricks-academy/developer-essentials-capstone | 77e70b1eb5b49b5f6779495fac7d14f5fadded9d | [
"CC0-1.0"
] | 4 | 2022-01-01T09:41:31.000Z | 2022-02-17T09:48:05.000Z | # Databricks notebook source
import builtins as BI
# Setup the capstone
import re, uuid
from pyspark.sql.types import StructType, StringType, IntegerType, TimestampType, DoubleType
from pyspark.sql.functions import col, to_date, weekofyear
from pyspark.sql import DataFrame
static_tests = None
bronze_tests = None
silv... | 38.544084 | 408 | 0.669586 |
eb424108a96bf604264def77319d83c190ad7040 | 12,658 | py | Python | scraper/Scraper.py | tiskutis/Capstone24Scraper | 3182463e129f37f0f895a440d2285a51e0cfb9a2 | [
"MIT"
] | null | null | null | scraper/Scraper.py | tiskutis/Capstone24Scraper | 3182463e129f37f0f895a440d2285a51e0cfb9a2 | [
"MIT"
] | null | null | null | scraper/Scraper.py | tiskutis/Capstone24Scraper | 3182463e129f37f0f895a440d2285a51e0cfb9a2 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup as bs, BeautifulSoup
import pandas as pd
import numpy as np
import re
import logging
def get_houses_in_location(
self,
location_url_: str,
houses_in_location: set = set(),
page_limit: int = 1,
page_number: int = 1,
) -> list... | 38.241692 | 123 | 0.586902 |
eb42e8c815ef79c9ee2b0e9d574f89c917610639 | 693 | py | Python | ArticleSpider/ArticleSpider/utils/selenium_spider.py | ms-wu/Scrapy_projects | 376eb5e1c6eca54bcfb781170513c8e9d3476fec | [
"MIT"
] | null | null | null | ArticleSpider/ArticleSpider/utils/selenium_spider.py | ms-wu/Scrapy_projects | 376eb5e1c6eca54bcfb781170513c8e9d3476fec | [
"MIT"
] | null | null | null | ArticleSpider/ArticleSpider/utils/selenium_spider.py | ms-wu/Scrapy_projects | 376eb5e1c6eca54bcfb781170513c8e9d3476fec | [
"MIT"
] | null | null | null | from selenium import webdriver
from scrapy.selector import Selector
import time
chrome_opt = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_opt.add_experimental_option("prefs", prefs)
browser = webdriver.Chrome(executable_path="H:\chromedriver.exe", chrome_options=chrom... | 31.5 | 139 | 0.780664 |
eb4407cbcc3f00735c03c065582c4a89413734d8 | 1,678 | py | Python | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | from nine import str
from Qt.QtWidgets import QApplication, QStyleFactory
from Qt import QtGui
from Qt import QtCore
import sys
import os
from PyFlow.App import PyFlow
FILE_DIR = os.path.abspath(os.path.dirname(__file__))
SETTINGS_PATH = os.path.join(FILE_DIR, "PyFlow", "appConfig.ini")
STYLE_PATH = os.path.join(FILE... | 33.56 | 77 | 0.781883 |
eb444f1d2f4c6079bc153578e3e68294eef319a0 | 4,344 | py | Python | src/gapminder_challenge/dashboard/dash_app2.py | UBC-MDS/gapminder_challenge | bbc8132a475d483e7c6c46572c8efca40b506afc | [
"MIT"
] | 1 | 2022-03-19T03:31:49.000Z | 2022-03-19T03:31:49.000Z | src/gapminder_challenge/dashboard/dash_app2.py | imtvwy/gapminder_challenge | 0f7d9816b0c5baf6422baff24e0413c800d6e62a | [
"MIT"
] | 39 | 2022-02-17T05:04:48.000Z | 2022-03-19T21:37:20.000Z | src/gapminder_challenge/dashboard/dash_app2.py | imtvwy/gapminder_challenge | 0f7d9816b0c5baf6422baff24e0413c800d6e62a | [
"MIT"
] | 1 | 2022-03-19T03:30:08.000Z | 2022-03-19T03:30:08.000Z | import pandas as pd
from dash import Dash, html, dcc, Input, Output
import altair as alt
df = pd.read_csv('../../data/raw/world-data-gapminder_raw.csv') # local run
# df = pd.read_csv('data/raw/world-data-gapminder_raw.csv') # heroku deployment
url = '/dash_app2/'
def add_dash(server):
"""
It creates a D... | 42.174757 | 113 | 0.575506 |
eb448a448b8928b4d93cd021756f058d5d672505 | 4,595 | py | Python | emulator/utils/common.py | Harry45/emuPK | c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9 | [
"MIT"
] | 2 | 2021-05-10T16:59:34.000Z | 2021-05-19T16:10:24.000Z | emulator/utils/common.py | Harry45/emuPK | c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9 | [
"MIT"
] | null | null | null | emulator/utils/common.py | Harry45/emuPK | c5cd8a4ab7ef593b196ee58d9df5d826d444a2b9 | [
"MIT"
] | 2 | 2021-04-16T23:55:16.000Z | 2021-09-09T12:48:41.000Z | # Author: Arrykrishna Mootoovaloo
# Collaborators: Alan Heavens, Andrew Jaffe, Florent Leclercq
# Email : a.mootoovaloo17@imperial.ac.uk
# Affiliation : Imperial Centre for Inference and Cosmology
# Status : Under Development
'''
Perform all additional operations such as interpolations
'''
import os
import logging
im... | 24.972826 | 106 | 0.618498 |
eb458b4c5c0f75854528fff96d2061d078c5cbe7 | 2,984 | py | Python | pypy/translator/microbench/pybench/Imports.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/translator/microbench/pybench/Imports.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/translator/microbench/pybench/Imports.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | from pybench import Test
# First imports:
import os
import package.submodule
| 21.314286 | 37 | 0.515416 |
de16d40373757db432c5c7a3e7d57eeddc1025cc | 1,745 | py | Python | tests/test_generators_rst.py | dbaty/soho | 3fe67d3dc52919751217d6e73be436c3e291ab04 | [
"BSD-3-Clause"
] | null | null | null | tests/test_generators_rst.py | dbaty/soho | 3fe67d3dc52919751217d6e73be436c3e291ab04 | [
"BSD-3-Clause"
] | 1 | 2015-10-11T10:34:08.000Z | 2015-10-11T10:34:08.000Z | tests/test_generators_rst.py | dbaty/soho | 3fe67d3dc52919751217d6e73be436c3e291ab04 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
| 37.12766 | 79 | 0.581089 |
de170bec53f0702af41038f426ab0305ba516d45 | 206 | py | Python | wagtail_ab_testing/test/apps.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 14 | 2021-02-19T08:52:37.000Z | 2022-03-16T05:16:38.000Z | wagtail_ab_testing/test/apps.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 10 | 2021-04-09T16:16:17.000Z | 2022-03-31T17:30:18.000Z | wagtail_ab_testing/test/apps.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 11 | 2021-04-23T15:19:06.000Z | 2022-03-28T16:15:14.000Z | from django.apps import AppConfig
| 25.75 | 47 | 0.771845 |
de188ec6c9675e889154db140be0ba41e013c1c2 | 835 | py | Python | shc/__init__.py | fabaff/smarthomeconnect | 611cd0f372d03b5fc5798a2a9a5f962d1da72799 | [
"Apache-2.0"
] | 5 | 2021-07-02T21:48:45.000Z | 2021-12-12T21:55:42.000Z | shc/__init__.py | fabaff/smarthomeconnect | 611cd0f372d03b5fc5798a2a9a5f962d1da72799 | [
"Apache-2.0"
] | 49 | 2020-09-18T20:05:55.000Z | 2022-03-05T19:51:33.000Z | shc/__init__.py | fabaff/smarthomeconnect | 611cd0f372d03b5fc5798a2a9a5f962d1da72799 | [
"Apache-2.0"
] | 1 | 2021-12-10T14:50:43.000Z | 2021-12-10T14:50:43.000Z | # Copyright 2020 Michael Thies <mail@mhthies.de>
#
# 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 agre... | 34.791667 | 120 | 0.777246 |
de1a03c3bf2d4b4418706f4fb2057bc7977a7251 | 777 | py | Python | client.py | juzejunior/HttpBasicServer | 7e77b49f693d9cfe0d782e93026d8f9261368b69 | [
"MIT"
] | null | null | null | client.py | juzejunior/HttpBasicServer | 7e77b49f693d9cfe0d782e93026d8f9261368b69 | [
"MIT"
] | null | null | null | client.py | juzejunior/HttpBasicServer | 7e77b49f693d9cfe0d782e93026d8f9261368b69 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Simple Http Client, to request html files
Modification: 11/09/2017
Author: J. Jnior
'''
import httplib
import sys
#get http server ip - pass in the command line
http_server = sys.argv[1]
#create a connection with the server
conn = httplib.HTTPConnection(htt... | 22.852941 | 58 | 0.679537 |
de1d5ad5042762573fde2a3a38799da995504ae1 | 6,881 | py | Python | pyssh/crypto/asymmetric.py | beckjake/pyssh | d6b7a6cca7e38d0835f84386723ec10ac5ad621f | [
"CC0-1.0"
] | null | null | null | pyssh/crypto/asymmetric.py | beckjake/pyssh | d6b7a6cca7e38d0835f84386723ec10ac5ad621f | [
"CC0-1.0"
] | null | null | null | pyssh/crypto/asymmetric.py | beckjake/pyssh | d6b7a6cca7e38d0835f84386723ec10ac5ad621f | [
"CC0-1.0"
] | null | null | null | """Implement asymmetric cryptography.
"""
from __future__ import print_function, division, absolute_import
from __future__ import unicode_literals
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa, dsa, utils, padding
from cryptography.hazmat.pri... | 31.277273 | 83 | 0.636826 |
de1dfa963d73dc87e79e92fa3fe653f6462539c8 | 1,230 | py | Python | books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py | haohonglin/DeepLearning-1 | c00eee4738d322f6eb5d61d5bafbcfa7b20152a0 | [
"Apache-2.0"
] | 1 | 2020-12-01T06:13:21.000Z | 2020-12-01T06:13:21.000Z | books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py | idonashino/DeepLearning | c00eee4738d322f6eb5d61d5bafbcfa7b20152a0 | [
"Apache-2.0"
] | null | null | null | books/李航-统计学习/machine_learning_algorithm-master/naive_bayes/naive_bayes.py | idonashino/DeepLearning | c00eee4738d322f6eb5d61d5bafbcfa7b20152a0 | [
"Apache-2.0"
] | 1 | 2021-01-01T15:28:36.000Z | 2021-01-01T15:28:36.000Z | """
@ jetou
@ cart decision_tree
@ date 2017 10 31
"""
import numpy as np
| 28.604651 | 89 | 0.585366 |
de1e40b74da53919bbdc4c6c8dda38d5aba2c247 | 27 | py | Python | src/__init__.py | natrodrigues/face-recognition | 00c78bea55d2738913cf5475056c2faf05fe960e | [
"MIT"
] | null | null | null | src/__init__.py | natrodrigues/face-recognition | 00c78bea55d2738913cf5475056c2faf05fe960e | [
"MIT"
] | null | null | null | src/__init__.py | natrodrigues/face-recognition | 00c78bea55d2738913cf5475056c2faf05fe960e | [
"MIT"
] | null | null | null | from . import frame_manager | 27 | 27 | 0.851852 |
de1e4247762eb410a1475e5659c71d8d5fb3aa3a | 276 | py | Python | sparweltbitool/config.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | null | null | null | sparweltbitool/config.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | null | null | null | sparweltbitool/config.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | 1 | 2015-07-22T16:53:42.000Z | 2015-07-22T16:53:42.000Z | import os
import sys
if sys.version_info[:2] >= (3, 4):
import configparser
config = configparser.ConfigParser()
else:
import ConfigParser
config = ConfigParser.ConfigParser()
config.readfp(open('app/config/config_%s.cfg' % os.environ.get('APP_ENV', 'dev')))
| 25.090909 | 82 | 0.706522 |
de2067c1459291384093f5c6102e9ab0301ade68 | 3,164 | py | Python | src/rsa_decryption_125/app.py | seanballais/rsa-decryption-125 | df2ad27d055469e7c58a811f40cfc2c8a6171298 | [
"MIT"
] | null | null | null | src/rsa_decryption_125/app.py | seanballais/rsa-decryption-125 | df2ad27d055469e7c58a811f40cfc2c8a6171298 | [
"MIT"
] | null | null | null | src/rsa_decryption_125/app.py | seanballais/rsa-decryption-125 | df2ad27d055469e7c58a811f40cfc2c8a6171298 | [
"MIT"
] | null | null | null | import tkinter
from tkinter import *
from rsa_decryption_125 import decryptor
if __name__ == '__main__':
main() | 34.391304 | 102 | 0.631163 |
de207e25aa9bca185c57928c53cd749f04d47818 | 2,031 | py | Python | model.py | starinsun/multiagent-particle-envs | 23b1c47fad4d71347ba3de7a5e8cec910f08382d | [
"MIT"
] | null | null | null | model.py | starinsun/multiagent-particle-envs | 23b1c47fad4d71347ba3de7a5e8cec910f08382d | [
"MIT"
] | null | null | null | model.py | starinsun/multiagent-particle-envs | 23b1c47fad4d71347ba3de7a5e8cec910f08382d | [
"MIT"
] | null | null | null | import paddle.fluid as fluid
import parl
from parl import layers
| 27.445946 | 68 | 0.573609 |
de20802d519423344cda6384cb09a94946775ee1 | 724 | py | Python | src/fmWidgets/FmColorEdit.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/fmWidgets/FmColorEdit.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/fmWidgets/FmColorEdit.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | from PyQt4.QtGui import QPalette, QColor
__author__ = 'pawel'
from PyQt4 import QtGui
from PyQt4.QtCore import Qt
| 25.857143 | 57 | 0.672652 |
de269b1d0a4fe87a69767fba8b3e00ccf68b4d65 | 6,543 | py | Python | admin.py | ericholscher/pypi | 4c7c13bd2061d99bbf11a803ac7a7afe3740e365 | [
"BSD-3-Clause"
] | 1 | 2015-11-08T11:31:07.000Z | 2015-11-08T11:31:07.000Z | admin.py | ericholscher/pypi | 4c7c13bd2061d99bbf11a803ac7a7afe3740e365 | [
"BSD-3-Clause"
] | null | null | null | admin.py | ericholscher/pypi | 4c7c13bd2061d99bbf11a803ac7a7afe3740e365 | [
"BSD-3-Clause"
] | null | null | null |
import sys, os, urllib, StringIO, traceback, cgi, binascii, getopt, shutil
import zipfile, gzip, tarfile
#sys.path.append('/usr/local/pypi/lib')
import store, config
def set_password(store, name, pw):
""" Reset the user's password and send an email to the address given.
"""
user = store.get_user(name.str... | 35.367568 | 97 | 0.599419 |
de26d7fc8c223d9eef08edc2aa50933adc8cafe1 | 1,777 | py | Python | scripts/geodata/address_expansions/equivalence.py | Fillr/libpostal | bce153188aff9fbe65aef12c3c639d8069e707fc | [
"MIT"
] | 3,489 | 2015-03-03T00:21:38.000Z | 2022-03-29T09:03:05.000Z | scripts/geodata/address_expansions/equivalence.py | StephenHildebrand/libpostal | d8c9847c5686a1b66056e65128e1774f060ff36f | [
"MIT"
] | 488 | 2015-05-29T23:04:28.000Z | 2022-03-29T11:20:24.000Z | scripts/geodata/address_expansions/equivalence.py | StephenHildebrand/libpostal | d8c9847c5686a1b66056e65128e1774f060ff36f | [
"MIT"
] | 419 | 2015-11-24T16:53:07.000Z | 2022-03-27T06:51:28.000Z | import random
import re
import six
from itertools import izip
from geodata.address_expansions.gazetteers import *
from geodata.encoding import safe_decode, safe_encode
from geodata.text.normalize import normalized_tokens
from geodata.text.tokenize import tokenize_raw, token_types
from geodata.text.utils import non_br... | 31.175439 | 85 | 0.68655 |
de27afb959d2cb13e74aaad06b80a65da178a7e6 | 170 | py | Python | Language Skills/Python/Unit 08 Loops/01 Loops/Step Up 'For's/While Loops/3-While You're at it.py | rhyep/Python_tutorials | f5c8a64b91802b005dfe7dd9035f8d8daae8c3e3 | [
"MIT"
] | 346 | 2016-02-22T20:21:10.000Z | 2022-01-27T20:55:53.000Z | Language Skills/Python/Unit 8/1-Loops/While Loops/3-While You're at it.py | vpstudios/Codecademy-Exercise-Answers | ebd0ee8197a8001465636f52c69592ea6745aa0c | [
"MIT"
] | 55 | 2016-04-07T13:58:44.000Z | 2020-06-25T12:20:24.000Z | Language Skills/Python/Unit 8/1-Loops/While Loops/3-While You're at it.py | vpstudios/Codecademy-Exercise-Answers | ebd0ee8197a8001465636f52c69592ea6745aa0c | [
"MIT"
] | 477 | 2016-02-21T06:17:02.000Z | 2021-12-22T10:08:01.000Z | num = 1
while num <= 10: # Fill in the condition
x = num ** 2# Print num squared
num = num + 1# Increment num (make sure to do this!)
print x
print num
| 21.25 | 56 | 0.594118 |
de2838f69cfe04090e0142bb22b24b01a4243cd5 | 948 | py | Python | setup.py | povilasb/udptest | 3d16d2e6509e008b37775e7784af54b6edb6633e | [
"MIT"
] | 2 | 2017-11-17T09:10:41.000Z | 2019-09-20T21:50:08.000Z | setup.py | povilasb/udptest | 3d16d2e6509e008b37775e7784af54b6edb6633e | [
"MIT"
] | null | null | null | setup.py | povilasb/udptest | 3d16d2e6509e008b37775e7784af54b6edb6633e | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='udptest',
version='0.1.0',
description='UDP benchmarking/testing tool.',
long_description=open('README.rst').read(),
url='https://github.com/povilasb/httpmeter',
author='Povilas Balciunas',
author_email='balciunas90@gmail.com',
... | 25.621622 | 49 | 0.582278 |
de28f51f7fb4db9f4c4cfed3b53384caa7188918 | 3,200 | py | Python | ssanchors/utilities.py | IoSR-Surrey/source-separation-anchors | c2c73312bdc7f08f37c088fa3986168813f13799 | [
"MIT"
] | 4 | 2018-07-06T14:35:29.000Z | 2019-08-28T17:13:11.000Z | ssanchors/utilities.py | nd1511/source-separation-anchors | c2c73312bdc7f08f37c088fa3986168813f13799 | [
"MIT"
] | 1 | 2018-06-18T17:08:28.000Z | 2018-06-19T10:45:58.000Z | ssanchors/utilities.py | nd1511/source-separation-anchors | c2c73312bdc7f08f37c088fa3986168813f13799 | [
"MIT"
] | 1 | 2018-11-05T19:56:17.000Z | 2018-11-05T19:56:17.000Z | from __future__ import division
import numpy as np
from untwist import data
from untwist import transforms
def target_accompaniment(target, others, sample_rate=None):
"""
Given a target source and list of 'other' sources, this function returns
the target and accompaniment as untwist.data.audio.Wave objec... | 25.806452 | 78 | 0.64625 |
de296667231d2bd75b621d94c889fd2ea3b5afb5 | 812 | py | Python | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | import os
import re | 31.230769 | 62 | 0.571429 |
de2bfdafb52bf7f86a472b4af4f49451d709be07 | 87 | py | Python | tests/fixtures/abcd_package/test_a.py | venmo/nose-randomly | 39db5db71a226ffdb6572d5785638e0a16379cfb | [
"BSD-3-Clause"
] | 19 | 2015-07-30T17:27:56.000Z | 2021-08-10T07:19:43.000Z | tests/fixtures/abcd_package/test_a.py | venmo/nose-randomly | 39db5db71a226ffdb6572d5785638e0a16379cfb | [
"BSD-3-Clause"
] | 11 | 2016-02-14T10:33:44.000Z | 2016-10-28T12:38:35.000Z | tests/fixtures/abcd_package/test_a.py | adamchainz/nose-randomly | 8a3fbeaf7cc5452c44da8c7e7573fe89391c8260 | [
"BSD-3-Clause"
] | 4 | 2016-06-01T06:04:46.000Z | 2016-10-26T11:41:53.000Z | from unittest import TestCase
| 12.428571 | 29 | 0.666667 |
de2d96eb9081272f5172b90d540db88b204c04b4 | 427 | py | Python | Python_Challenge_115/6/F.py | LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 28 | 2019-10-15T13:15:26.000Z | 2021-11-08T08:23:45.000Z | Python_Challenge_115/6/F.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | null | null | null | Python_Challenge_115/6/F.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 17 | 2019-09-09T00:15:36.000Z | 2021-01-28T13:08:51.000Z | '''
Statement
Fibonacci numbers are the numbers in the integer sequence starting with 1, 1 where every number after the first two is the sum of the two preceding ones:
1, 1, 2, 3, 5, 8, 13, 21, 34, ...
Given a positive integer n, print the nth Fibonacci number.
Example input
6
Example output
8
'''
num = int(input()... | 18.565217 | 153 | 0.676815 |
de2edc2bbe1eee14e878fa5bd6b3104c3a6af8ad | 144 | py | Python | test/test_sum_up.py | marco-a-wagner/nirvana | 325756ec5f208994767b4909ed217ce716f5fcfb | [
"CC0-1.0"
] | null | null | null | test/test_sum_up.py | marco-a-wagner/nirvana | 325756ec5f208994767b4909ed217ce716f5fcfb | [
"CC0-1.0"
] | null | null | null | test/test_sum_up.py | marco-a-wagner/nirvana | 325756ec5f208994767b4909ed217ce716f5fcfb | [
"CC0-1.0"
] | null | null | null | from src.sum_up import * | 16 | 30 | 0.583333 |
de2ffb901bbfbc3af2061583ab91b8842066be1f | 1,376 | py | Python | cluster.py | YektaDmrc/UW_GEMSEC | b9e0c995e34f098fdb607fa35a3fe47663839086 | [
"MIT"
] | 1 | 2018-07-10T23:37:47.000Z | 2018-07-10T23:37:47.000Z | cluster.py | YektaDmrc/UW_GEMSEC | b9e0c995e34f098fdb607fa35a3fe47663839086 | [
"MIT"
] | null | null | null | cluster.py | YektaDmrc/UW_GEMSEC | b9e0c995e34f098fdb607fa35a3fe47663839086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 13 15:38:11 2018
@author: Yekta
"""
import csv
import numpy as np
from sklearn.cluster import KMeans
clon = list(csv.reader(open("C:/Users/Yekta/Desktop/stajvol3/MoS2BP Binding Characterization_07-11-17_DY.csv")))
for k in range(1,15):
fin=[]
for m i... | 32.761905 | 130 | 0.588663 |
de319a3d0a027f8b448c09d0528c44c359822d8e | 1,440 | py | Python | test_collision/test_discretedynamicsworld.py | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | 2 | 2015-09-16T15:24:39.000Z | 2015-11-18T11:53:51.000Z | test_collision/test_discretedynamicsworld.py | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | 1 | 2018-04-04T15:33:20.000Z | 2018-04-04T15:33:20.000Z | test_collision/test_discretedynamicsworld.py | Klumhru/boost-python-bullet | d9ffae09157280f60cb469d8c9c9fa4c1920e3ce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_collision.test_discretedynamicsworld
"""
from __future__ import unicode_literals, print_function, absolute_import
import unittest
import bullet
from .test_worlds import WorldTestDataMixin
| 28.8 | 72 | 0.634028 |
de31e808778594864eecf61a23f3d4e16b0f2a4b | 820 | py | Python | force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py | force-h2020/force-wfmanager | bcd488cd37092cacd9d0c81b544ee8c1654d1d92 | [
"BSD-2-Clause"
] | 1 | 2019-08-19T16:02:20.000Z | 2019-08-19T16:02:20.000Z | force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py | force-h2020/force-wfmanager | bcd488cd37092cacd9d0c81b544ee8c1654d1d92 | [
"BSD-2-Clause"
] | 396 | 2017-07-18T15:19:55.000Z | 2021-05-03T06:23:06.000Z | force_wfmanager/notifications/tests/test_ui_notification_hooks_factory.py | force-h2020/force-wfmanager | bcd488cd37092cacd9d0c81b544ee8c1654d1d92 | [
"BSD-2-Clause"
] | 2 | 2019-03-05T16:23:10.000Z | 2020-04-16T08:59:11.000Z | # (C) Copyright 2010-2020 Enthought, Inc., Austin, TX
# All rights reserved.
import unittest
from force_wfmanager.notifications.ui_notification_hooks_manager \
import \
UINotificationHooksManager
from force_wfmanager.notifications.ui_notification_plugin import \
UINotificationPlugin
| 31.538462 | 68 | 0.74878 |
de31ea78bbeb185adcdcced18fcb297d6af4dc71 | 447 | py | Python | phrasebook/middleware.py | DanCatchpole/phrasebook-django | 4f85ec40626cbb97c659448ee06f2291c8f2918b | [
"MIT"
] | 1 | 2020-11-10T17:31:56.000Z | 2020-11-10T17:31:56.000Z | phrasebook/middleware.py | DanCatchpole/phrasebook-django | 4f85ec40626cbb97c659448ee06f2291c8f2918b | [
"MIT"
] | null | null | null | phrasebook/middleware.py | DanCatchpole/phrasebook-django | 4f85ec40626cbb97c659448ee06f2291c8f2918b | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from .models import UserLanguage
| 27.9375 | 66 | 0.680089 |
de346180214f310ac4c427bc250a7eb3f75732e4 | 113 | py | Python | PROGATE/PYTHON_I_page07.py | vox256/Codes | c408ef0fbc25af46dacef93b3496985feb98dd5c | [
"MIT"
] | null | null | null | PROGATE/PYTHON_I_page07.py | vox256/Codes | c408ef0fbc25af46dacef93b3496985feb98dd5c | [
"MIT"
] | null | null | null | PROGATE/PYTHON_I_page07.py | vox256/Codes | c408ef0fbc25af46dacef93b3496985feb98dd5c | [
"MIT"
] | null | null | null | money = 2000
print(money)
# money5000money
money += 5000
# money
print (money) | 14.125 | 36 | 0.787611 |
de3486ad1b0724a14e6330a44ee92a956bf5ee2e | 380 | py | Python | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import redirect, request, url_for
from flask.views import MethodView
from flask.ext.security import current_user
| 22.352941 | 59 | 0.692105 |
de34fea664d85474bd07e69ca7917ce3402fb32e | 142 | py | Python | nolina/__init__.py | JohnReid/nolina | 23894517ac60d27d167447871ef85a4a78cad630 | [
"MIT"
] | null | null | null | nolina/__init__.py | JohnReid/nolina | 23894517ac60d27d167447871ef85a4a78cad630 | [
"MIT"
] | null | null | null | nolina/__init__.py | JohnReid/nolina | 23894517ac60d27d167447871ef85a4a78cad630 | [
"MIT"
] | null | null | null | """Randomised linear algebra."""
import numpy.linalg as la
| 15.777778 | 39 | 0.640845 |
de35289eea69e5ceb7febfc7fa32b43c5609a79c | 887 | py | Python | src/commands/reload.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 6 | 2019-08-15T20:19:38.000Z | 2021-02-28T21:33:19.000Z | src/commands/reload.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 31 | 2019-08-14T08:42:08.000Z | 2020-05-07T13:43:43.000Z | src/commands/reload.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 5 | 2019-08-17T13:39:53.000Z | 2020-04-01T07:25:51.000Z | from bt_utils.console import Console
from bt_utils.config import cfg
from bt_utils.embed_templates import SuccessEmbed, WarningEmbed
from bt_utils.handle_sqlite import DatabaseHandler
SHL = Console('BundestagsBot Reload')
DB = DatabaseHandler()
settings = {
'name': 'reload',
'channels': ['team'],
'mod_cmd... | 27.71875 | 92 | 0.713641 |
de3555aacf51f612d0e7cb4e5d614fc7db59f6c9 | 4,022 | py | Python | scanner.py | Darchiv/scambus | 0a81a67b76a5ec5117d56a4c05c4392696eb3f06 | [
"MIT"
] | 22 | 2015-08-21T11:58:20.000Z | 2021-12-28T04:50:05.000Z | scanner.py | Darchiv/scambus | 0a81a67b76a5ec5117d56a4c05c4392696eb3f06 | [
"MIT"
] | 5 | 2017-02-26T14:22:53.000Z | 2021-02-11T00:47:48.000Z | scanner.py | Darchiv/scambus | 0a81a67b76a5ec5117d56a4c05c4392696eb3f06 | [
"MIT"
] | 14 | 2015-04-13T08:02:18.000Z | 2021-12-16T14:08:54.000Z | #! /usr/bin/env python2.7
import getopt, sys, time, util
from wmbus import WMBusFrame
from Crypto.Cipher import AES
if __name__ == "__main__":
main(sys.argv[1:])
'''
Class Scanner(threading.Thread):
def __init__(self,dev):
#something here that initialize serial port
d... | 31.421875 | 92 | 0.458478 |
de35b41f521bfe20dfbbf60f134cdbe2d7425715 | 2,080 | py | Python | pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# module gi._gi
# from /usr/lib/python3/dist-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
# no doc
# imports
import _gobject as _gobject # <module '_gobject'>
import _glib as _glib # <module '_glib'>
import gi as __gi
import gobject as __gobject
from .object import object
| 25.679012 | 76 | 0.610577 |
de3618687057494d918d8f6f783dfd78edbb7ce5 | 828 | py | Python | setup.py | ntamas/python-selecta | bc9a11f288df427ceb126aa994ac3810685e2d94 | [
"MIT"
] | 1 | 2019-02-21T14:47:40.000Z | 2019-02-21T14:47:40.000Z | setup.py | ntamas/python-selecta | bc9a11f288df427ceb126aa994ac3810685e2d94 | [
"MIT"
] | 2 | 2015-07-11T03:32:35.000Z | 2015-08-26T09:29:40.000Z | setup.py | ntamas/python-selecta | bc9a11f288df427ceb126aa994ac3810685e2d94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from selecta import __version__
from setuptools import setup
options = dict(
name='python-selecta',
version=__version__,
url='http://github.com/ntamas/python-selecta',
description='Python port of @garybernhardt/selecta',
license='MIT',
author='T... | 20.195122 | 56 | 0.607488 |
de37ff05a0046e06ac61cbc292e777a426c175fb | 525 | py | Python | graphsaint/setup.py | alexs131/GraphSAINT | 20ac0dce1bdad0505b98ab117aaca84d1aa0bcd8 | [
"MIT"
] | null | null | null | graphsaint/setup.py | alexs131/GraphSAINT | 20ac0dce1bdad0505b98ab117aaca84d1aa0bcd8 | [
"MIT"
] | null | null | null | graphsaint/setup.py | alexs131/GraphSAINT | 20ac0dce1bdad0505b98ab117aaca84d1aa0bcd8 | [
"MIT"
] | null | null | null | # cython: language_level=3
from distutils.core import setup, Extension
from Cython.Build import cythonize
import numpy
# import cython_utils
import os
os.environ["CC"] = "/opt/homebrew/Cellar/gcc/11.2.0_3/bin/g++-11"
os.environ["CXX"] = "/opt/homebrew/Cellar/gcc/11.2.0_3/bin/g++-11"
setup(ext_modules=cython... | 37.5 | 93 | 0.737143 |
de3854551e9e60f025c395d03bedb3f5b3cb6f38 | 4,958 | py | Python | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | import sys
def get_network(args):
""" return given network
"""
if args.MODEL.NAME == 'vgg16':
from models.vgg import vgg16_bn
net = vgg16_bn()
elif args.MODEL.NAME == 'vgg13':
from models.vgg import vgg13_bn
net = vgg13_bn()
elif args.MODEL.NAME == 'vgg11':
from models.vgg import vgg11_bn
net = vgg11... | 32.834437 | 65 | 0.740621 |
de38b348a7c3f728ca43e602a33e53edfd8f033d | 10,812 | py | Python | tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | 2 | 2020-01-30T21:51:00.000Z | 2020-07-22T14:51:05.000Z | tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | null | null | null | tests/eth2/beacon/state_machines/forks/test_serenity_block_attestation_validation.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | null | null | null | import pytest
from hypothesis import (
given,
settings,
strategies as st,
)
from eth_utils import (
ValidationError,
)
from eth.constants import (
ZERO_HASH32,
)
from eth2.beacon.committee_helpers import (
get_crosslink_committees_at_slot,
)
from eth2.beacon.state_machines.forks.serenity.block... | 31.068966 | 117 | 0.561321 |
de3966c1044750e98c8968c82831f55e24112044 | 13,679 | py | Python | SeqtaSDSBridge.py | jacobcurulli/SeqtaSDSBridge | 19b8da95462d1e0aa8a059c9f8075d8f7ce1b417 | [
"CC-BY-4.0"
] | null | null | null | SeqtaSDSBridge.py | jacobcurulli/SeqtaSDSBridge | 19b8da95462d1e0aa8a059c9f8075d8f7ce1b417 | [
"CC-BY-4.0"
] | 1 | 2021-05-21T04:52:28.000Z | 2021-05-21T05:00:10.000Z | SeqtaSDSBridge.py | jacobcurulli/SeqtaSDSBridge | 19b8da95462d1e0aa8a059c9f8075d8f7ce1b417 | [
"CC-BY-4.0"
] | 1 | 2021-04-07T13:50:43.000Z | 2021-04-07T13:50:43.000Z | ###########################################################################################################
###########################################################################################################
## SeqtaToSDS ... | 45.445183 | 185 | 0.635865 |
de3b514aae1619036f4e6044f0e8e9c86052e8a3 | 457 | py | Python | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | """
"""
import os
from PIL import Image
from numpy import *
def get_imlist(path):
"""
JPG
:param path:
:return:
"""
return [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.jpg')]
def imresize(im, sz):
"""
:param im:
:param sz:
:return:
"""
pil_i... | 16.925926 | 82 | 0.610503 |
de3ba9c03d6171d2fbdd34396181dfc69aedd8a7 | 5,190 | py | Python | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | 1 | 2021-03-31T10:55:51.000Z | 2021-03-31T10:55:51.000Z | from django.shortcuts import (
render, redirect, reverse, get_object_or_404, HttpResponse)
from django.contrib import messages
from shop.models import Product
from members.models import Member
def load_cart(request):
"""This view render's the user's cart contents"""
return render(request, 'cart/cart.html'... | 41.854839 | 79 | 0.559152 |
de3d6c63aa40e3dc9ff43cbc7c4deca001d8d40e | 172 | py | Python | runserver.py | revalo/hush.mit.edu | e47c28c934dcfb94c52f6e12367869389e8ed7a8 | [
"MIT"
] | 21 | 2017-10-30T20:55:48.000Z | 2021-09-03T14:06:58.000Z | runserver.py | revalo/hush.mit.edu | e47c28c934dcfb94c52f6e12367869389e8ed7a8 | [
"MIT"
] | 1 | 2021-11-08T02:05:34.000Z | 2021-11-08T06:54:41.000Z | runserver.py | revalo/hush.mit.edu | e47c28c934dcfb94c52f6e12367869389e8ed7a8 | [
"MIT"
] | 3 | 2017-11-15T23:18:00.000Z | 2018-01-01T06:44:03.000Z | from confess import app
from confess.config import PORT, DEBUG
if __name__ == '__main__':
app.run(
host='0.0.0.0',
port=PORT,
debug=DEBUG
) | 19.111111 | 38 | 0.593023 |
de3daa1f9c197f223b8adf05ac9c7b5634367d5c | 5,945 | py | Python | bin/plot_examples/plot_vars_barchart.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-03-18T18:27:49.000Z | 2019-03-18T18:27:49.000Z | bin/plot_examples/plot_vars_barchart.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-17T21:33:15.000Z | 2020-12-17T21:35:41.000Z | bin/plot_examples/plot_vars_barchart.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-01-05T08:23:20.000Z | 2021-01-05T08:23:20.000Z | """ Plots analysis on the workflow variables for experiments with different
workflow types and different %of workflow core hours in the workload.
Resuls are plotted as barchars that show how much the vas deviate in
single and multi from aware.
"""
import matplotlib
from orchestration import get_central_db
from orches... | 36.030303 | 75 | 0.518923 |
de3df638310dcbe32c189284547dca83d1fe51a7 | 410 | py | Python | devpotato_bot/commands/daily_titles/models/inevitable_title.py | cl0ne/cryptopotato-bot | af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1 | [
"MIT"
] | 1 | 2021-05-15T23:41:29.000Z | 2021-05-15T23:41:29.000Z | devpotato_bot/commands/daily_titles/models/inevitable_title.py | cl0ne/cryptopotato-bot | af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1 | [
"MIT"
] | 1 | 2022-02-19T20:38:33.000Z | 2022-02-19T23:53:39.000Z | devpotato_bot/commands/daily_titles/models/inevitable_title.py | cl0ne/cryptopotato-bot | af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1 | [
"MIT"
] | 1 | 2021-05-15T23:42:21.000Z | 2021-05-15T23:42:21.000Z | from __future__ import annotations
from .title import TitleFromGroupChat, Base
| 27.333333 | 63 | 0.660976 |
de3e64921cbcc4e464aa3d32a70cc4b3179f2705 | 1,034 | py | Python | matplotlib/gas_price_overtime.py | MatveiAleksandrovich/Artificial-Intelligence | d3d6f253e7c2256f6f9d490b077bdb50ca1da229 | [
"MIT"
] | null | null | null | matplotlib/gas_price_overtime.py | MatveiAleksandrovich/Artificial-Intelligence | d3d6f253e7c2256f6f9d490b077bdb50ca1da229 | [
"MIT"
] | null | null | null | matplotlib/gas_price_overtime.py | MatveiAleksandrovich/Artificial-Intelligence | d3d6f253e7c2256f6f9d490b077bdb50ca1da229 | [
"MIT"
] | null | null | null | import requests
import pandas as pd
import matplotlib.pyplot as plt
url_gas_data = 'https://raw.githubusercontent.com/KeithGalli/matplotlib_tutorial/master/gas_prices.csv'
res1 = requests.get(url_gas_data, allow_redirects=True)
with open('gas_prices.csv', 'wb') as file:
file.write(res1.content)
plt.figure(figsiz... | 23.5 | 103 | 0.698259 |
de40955063f239619674a2b5ecbf4dbaa910621e | 2,305 | py | Python | integration_tests/test_surveys.py | ONSdigital/sdx-tester | df193867c0d5e9dbf39790c85c41b07a9efed756 | [
"MIT"
] | null | null | null | integration_tests/test_surveys.py | ONSdigital/sdx-tester | df193867c0d5e9dbf39790c85c41b07a9efed756 | [
"MIT"
] | null | null | null | integration_tests/test_surveys.py | ONSdigital/sdx-tester | df193867c0d5e9dbf39790c85c41b07a9efed756 | [
"MIT"
] | null | null | null | import unittest
import uuid
from app import survey_loader
from app import message_manager
from app.tester import run_survey
| 37.786885 | 109 | 0.572668 |
de42aa506b54f4487685cb532dc908e5f790e4a5 | 509 | py | Python | shared/app_business_logic.py | c-w/python-loadtests | 3ffd3dc89780b9372a5d20a71b2becec121ff3d2 | [
"Apache-2.0"
] | 2 | 2020-02-12T23:03:09.000Z | 2020-02-12T23:09:42.000Z | shared/app_business_logic.py | c-w/python-loadtests | 3ffd3dc89780b9372a5d20a71b2becec121ff3d2 | [
"Apache-2.0"
] | null | null | null | shared/app_business_logic.py | c-w/python-loadtests | 3ffd3dc89780b9372a5d20a71b2becec121ff3d2 | [
"Apache-2.0"
] | null | null | null | from os import environ
from azure.storage.table import TableService
azure_account_name = environ['AZURE_ACCOUNT_NAME']
azure_account_key = environ['AZURE_ACCOUNT_KEY']
azure_table_name = environ['AZURE_TABLE_NAME']
table = TableService(azure_account_name, azure_account_key)
get_entity = table.get_entity
| 28.277778 | 65 | 0.776031 |
de44446f8526c9f2e48dd37b76b2ac71ae33e71b | 3,424 | py | Python | csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | null | null | null | csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | null | null | null | csrank/dataset_reader/objectranking/letor_object_ranking_dataset_reader.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | 1 | 2018-10-30T08:57:14.000Z | 2018-10-30T08:57:14.000Z | import logging
import h5py
import numpy as np
from sklearn.utils import check_random_state
from csrank.constants import OBJECT_RANKING
from csrank.dataset_reader.letor_dataset_reader import LetorDatasetReader
from csrank.dataset_reader.objectranking.util import sub_sampling
NAME = "LetorObjectRankingDatasetReader"
... | 39.356322 | 104 | 0.629965 |
de44c06366bdb1cf83f5f3bb8ad925cefb959cf0 | 1,222 | py | Python | app/wqFull/dev/trans.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/wqFull/dev/trans.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/wqFull/dev/trans.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | 2 | 2021-04-04T02:45:59.000Z | 2022-03-19T09:41:39.000Z | from sklearn.preprocessing import QuantileTransformer, PowerTransformer
from hydroDL.data import usgs, gageII, gridMET, ntn, GLASS, transform, dbBasin
import numpy as np
import matplotlib.pyplot as plt
from hydroDL.post import axplot, figplot
from hydroDL import kPath
import json
import os
import importlib
importlib.re... | 25.458333 | 78 | 0.714403 |
de463062073e4c38b0ef746845b5c9b821ed145e | 659 | py | Python | pysad/statistics/__init__.py | selimfirat/pysad | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | [
"BSD-3-Clause"
] | 155 | 2020-08-17T12:52:38.000Z | 2022-03-19T02:59:26.000Z | pysad/statistics/__init__.py | shubhsoni/pysad | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | [
"BSD-3-Clause"
] | 2 | 2020-10-22T09:50:28.000Z | 2021-02-15T02:01:44.000Z | pysad/statistics/__init__.py | shubhsoni/pysad | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | [
"BSD-3-Clause"
] | 14 | 2020-10-09T17:08:23.000Z | 2022-03-25T11:30:12.000Z | """
The :mod:`pysad.statistics` module contains methods to keep track of statistics on streaming data.
"""
from .abs_statistic import AbsStatistic
from .average_meter import AverageMeter
from .count_meter import CountMeter
from .max_meter import MaxMeter
from .median_meter import MedianMeter
from .min_meter import MinM... | 41.1875 | 163 | 0.814871 |
de481c317eb312cc809e4b8eb2f8383abd96ba97 | 324 | py | Python | src/elrados/views.py | IamShobe/elrados | dd2523e1523591c7a3213dfd062b376f41bb9f18 | [
"MIT"
] | 2 | 2018-07-20T11:03:42.000Z | 2019-06-06T06:00:12.000Z | src/elrados/views.py | IamShobe/elrados | dd2523e1523591c7a3213dfd062b376f41bb9f18 | [
"MIT"
] | null | null | null | src/elrados/views.py | IamShobe/elrados | dd2523e1523591c7a3213dfd062b376f41bb9f18 | [
"MIT"
] | 2 | 2018-12-18T16:00:34.000Z | 2019-04-08T14:29:02.000Z | """Global index view."""
import pkg_resources
from django.shortcuts import render
def index(request):
"""Basic view."""
plugins = \
[plugin.load() for plugin in
pkg_resources.iter_entry_points(group='elrados.plugins')]
return render(request, "index.html", {
"plugins": plugins
... | 21.6 | 66 | 0.641975 |
de48207667680d4095ac834e7b25417f0ab4f83a | 2,274 | py | Python | examples/old/zipline_momentun.py | sherrytp/TradingEvolved | 4bc9cc18244954bff37a80f67cce658bd0802b5d | [
"Apache-2.0"
] | null | null | null | examples/old/zipline_momentun.py | sherrytp/TradingEvolved | 4bc9cc18244954bff37a80f67cce658bd0802b5d | [
"Apache-2.0"
] | null | null | null | examples/old/zipline_momentun.py | sherrytp/TradingEvolved | 4bc9cc18244954bff37a80f67cce658bd0802b5d | [
"Apache-2.0"
] | 1 | 2022-03-26T07:11:18.000Z | 2022-03-26T07:11:18.000Z | import pandas as pd
import matplotlib.pyplot as plt
from zipline.finance.commission import PerShare
from zipline.api import set_commission, symbol, order_target_percent
import zipline
from models.live_momentum import LiveMomentum
with open('/Users/landey/Desktop/Eonum/live_model/eouniverse/stock_list.txt', 'r') as f... | 30.72973 | 95 | 0.647757 |
de4860345de948d81c21b1062677ea640e28f033 | 10,120 | py | Python | packages/robotControl/scripts/intercept.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/robotControl/scripts/intercept.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/robotControl/scripts/intercept.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | # Copyright 2020 Jan Feitsma (Falcons)
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
# Jan Feitsma, March 2020
# Robot will continuously intercept around current position.
#
# For description and usage hints, execute with '-h'
import sys, os
import time
import logging, signal
logging.basicConfig(leve... | 42.700422 | 305 | 0.619368 |
de4f135b4907a9ad1ee036150f5775fba0b81256 | 4,859 | py | Python | arpym/tools/plc.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | 6 | 2021-04-10T13:24:30.000Z | 2022-03-26T08:20:42.000Z | arpym/tools/plc.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | null | null | null | arpym/tools/plc.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | 6 | 2019-08-13T22:02:17.000Z | 2022-02-09T17:49:12.000Z | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec, GridSpecFromSubplotSpec
from matplotlib.ticker import FuncFormatter
def plot_dynamic_strats(t, v_t_strat, v_t_risky, w_t_risky, h_t_risky,
num, j_sel):
"""For details, s... | 35.210145 | 106 | 0.61844 |
de4f23bfb5a827684724b1fa6940e53745dbb142 | 1,166 | py | Python | krpc_client.py | janismac/ksp_rtls_launch_to_rendezvous | 195ebfb5aacf1a857aaaf0a69bf071d93d887efd | [
"Apache-2.0"
] | 1 | 2020-11-07T15:53:19.000Z | 2020-11-07T15:53:19.000Z | krpc_client.py | janismac/ksp_rtls_launch_to_rendezvous | 195ebfb5aacf1a857aaaf0a69bf071d93d887efd | [
"Apache-2.0"
] | null | null | null | krpc_client.py | janismac/ksp_rtls_launch_to_rendezvous | 195ebfb5aacf1a857aaaf0a69bf071d93d887efd | [
"Apache-2.0"
] | 1 | 2020-11-07T15:56:06.000Z | 2020-11-07T15:56:06.000Z | import sys
import subprocess
import time
import json
import krpc
import math
import scipy.integrate
import numpy as np
from PrePlanningChecklist import PrePlanningChecklist
from PlannerUiPanel import PlannerUiPanel
from MainUiPanel import MainUiPanel
from ConfigUiPanel import ConfigUiPanel
from AutopilotUiPanel import ... | 25.911111 | 76 | 0.736707 |
de4fbddd1a8e5c3c47f15c39acb99e707f22e65b | 617 | py | Python | src/alerter.py | Jawgo/DiscordBot | 43dccce80aa8d8bd51b44c0de732fd70d9194672 | [
"MIT"
] | null | null | null | src/alerter.py | Jawgo/DiscordBot | 43dccce80aa8d8bd51b44c0de732fd70d9194672 | [
"MIT"
] | null | null | null | src/alerter.py | Jawgo/DiscordBot | 43dccce80aa8d8bd51b44c0de732fd70d9194672 | [
"MIT"
] | null | null | null | import os
from discord import Webhook, RequestsWebhookAdapter, Colour, Embed
| 36.294118 | 110 | 0.666126 |
de50a4c4fb04e2350cc10caa2aea9a7a75fcac8c | 4,593 | py | Python | dataset_preproc/preproc_video/face_extract.py | RicardoP0/multimodal-matchmap | aa44c574a57073833004172734394882889d8d3b | [
"MIT"
] | null | null | null | dataset_preproc/preproc_video/face_extract.py | RicardoP0/multimodal-matchmap | aa44c574a57073833004172734394882889d8d3b | [
"MIT"
] | null | null | null | dataset_preproc/preproc_video/face_extract.py | RicardoP0/multimodal-matchmap | aa44c574a57073833004172734394882889d8d3b | [
"MIT"
] | null | null | null | #%%
#https://github.com/timesler/facenet-pytorch
from facenet_pytorch import MTCNN, extract_face
import torch
import numpy as np
import mmcv, cv2
import os
import matplotlib.pyplot as plt
from PIL import Image
# %%
#%%
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
print('Running on... | 29.254777 | 95 | 0.642717 |
de51709d96e27d7e3576d5ee6ad6f2ebabdc7ebc | 1,441 | py | Python | launch/gazebo.launch.py | fly4future/fog_gazebo_resources | 1af1aa2d3a5e7c67bf39605655ca96a154daa4b3 | [
"BSD-3-Clause"
] | null | null | null | launch/gazebo.launch.py | fly4future/fog_gazebo_resources | 1af1aa2d3a5e7c67bf39605655ca96a154daa4b3 | [
"BSD-3-Clause"
] | null | null | null | launch/gazebo.launch.py | fly4future/fog_gazebo_resources | 1af1aa2d3a5e7c67bf39605655ca96a154daa4b3 | [
"BSD-3-Clause"
] | null | null | null | """Launch Gazebo server and client with command line arguments."""
from launch import LaunchDescription
from launch.substitutions import LaunchConfiguration
from launch.actions import DeclareLaunchArgument
from launch.actions import IncludeLaunchDescription
from launch.actions import ExecuteProcess
from launch.conditi... | 38.945946 | 117 | 0.696738 |
de5241403b212e20d0b5a9c1eb86d5461e49bad7 | 957 | py | Python | hlrl/torch/utils/contexts/training.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/utils/contexts/training.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | hlrl/torch/utils/contexts/training.py | Chainso/HLRL | 584f4ed2fa4d8b311a21dbd862ec9434833dd7cd | [
"MIT"
] | null | null | null | from contextlib import contextmanager
import torch.nn as nn
| 20.804348 | 66 | 0.6186 |
de53cfe343832488633720622d964252c48b5617 | 3,180 | py | Python | test/test_postfix.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | test/test_postfix.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | test/test_postfix.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | import unittest
from calculator import tokens, evaluator
from calculator.parser import tokenize, infix_to_postfix
| 31.485149 | 70 | 0.646226 |
de55352cff35ae8596924966eb4c23a46054b461 | 1,124 | py | Python | Weather API/app.py | TanushreeShaw/Weather | 0bebe029536f579bbd9d28c07d3e33f3438a1a56 | [
"MIT"
] | null | null | null | Weather API/app.py | TanushreeShaw/Weather | 0bebe029536f579bbd9d28c07d3e33f3438a1a56 | [
"MIT"
] | null | null | null | Weather API/app.py | TanushreeShaw/Weather | 0bebe029536f579bbd9d28c07d3e33f3438a1a56 | [
"MIT"
] | null | null | null | from flask import Flask,
render_template, request
import requests
import json
import os
app = Flask(__name__)
picfolder = os.path.join('static','pics')
app.config['UPLOAD_FOLDER'] = picfolder
if __name__ == '__main__':
app.run(debug=True)
| 33.058824 | 152 | 0.670819 |
de559c2b5884fa9c7d514b793b602e0875f672ea | 561 | py | Python | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | null | null | null | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | 38 | 2017-12-21T10:10:54.000Z | 2022-03-07T20:54:37.000Z | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | 6 | 2018-06-01T21:04:34.000Z | 2020-01-14T15:26:26.000Z | from django.conf.urls import url
from core.views import me
from core.rest import CardViewSet, UserViewSet, NfcCardViewSet, GroupViewSet
from core.utils import SharedAPIRootRouter
# SharedAPIRootRouter is automatically imported in global urls config
router = SharedAPIRootRouter()
router.register(r"core/users", UserVie... | 33 | 76 | 0.787879 |
de5df9efa200676cbee6ac7078451697101f76eb | 2,931 | py | Python | flora_tools/experiments/measure_time_irq_process.py | Atokulus/flora-tools | 6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0 | [
"MIT"
] | 1 | 2020-11-20T16:36:17.000Z | 2020-11-20T16:36:17.000Z | flora_tools/experiments/measure_time_irq_process.py | Atokulus/flora-tools | 6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0 | [
"MIT"
] | null | null | null | flora_tools/experiments/measure_time_irq_process.py | Atokulus/flora-tools | 6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0 | [
"MIT"
] | null | null | null | from flora_tools.experiment import *
| 37.576923 | 111 | 0.588536 |
de5e91c132fdc9f05dd13b11b8708a82b0c0f470 | 213 | py | Python | 6P/REDES/restAPI/main/serializers.py | rwnicholas/fluffy-potato | 52ccd25cf77f8cebce1420e7fe9028a277811986 | [
"MIT"
] | null | null | null | 6P/REDES/restAPI/main/serializers.py | rwnicholas/fluffy-potato | 52ccd25cf77f8cebce1420e7fe9028a277811986 | [
"MIT"
] | null | null | null | 6P/REDES/restAPI/main/serializers.py | rwnicholas/fluffy-potato | 52ccd25cf77f8cebce1420e7fe9028a277811986 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from main.models import Suco
| 26.625 | 55 | 0.704225 |
de5f40f2fa117e9d234c38567381795609e6e892 | 183 | py | Python | gpytorch/kernels/keops/__init__.py | wjmaddox/gpytorch | 679f437fa71f8e15d98b3d256924ecf4b52c0448 | [
"MIT"
] | 1 | 2019-09-16T16:58:54.000Z | 2019-09-16T16:58:54.000Z | gpytorch/kernels/keops/__init__.py | wjmaddox/gpytorch | 679f437fa71f8e15d98b3d256924ecf4b52c0448 | [
"MIT"
] | null | null | null | gpytorch/kernels/keops/__init__.py | wjmaddox/gpytorch | 679f437fa71f8e15d98b3d256924ecf4b52c0448 | [
"MIT"
] | null | null | null | from .matern_kernel import MaternKernel
from .rbf_kernel import RBFKernel
from .spectralgp_kernel import SpectralGPKernel
__all__ = ["MaternKernel", "RBFKernel", "SpectralGPKernel"]
| 30.5 | 59 | 0.825137 |
de61a2c63bd8bf8c89dfa8db3b212f5ada8c9268 | 271 | py | Python | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-02-27T07:27:17.000Z | 2021-02-27T07:27:17.000Z | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | null | null | null | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-06-09T15:56:54.000Z | 2021-06-09T15:56:54.000Z | # Generated by Django 2.2.10 on 2020-03-24 16:30
from django.db import migrations
| 19.357143 | 52 | 0.664207 |
de61aeb69172f0bbf84a85482ba65c30efe863a2 | 1,901 | py | Python | main.py | SHGoldfarb/fantastic-barnacle | 64650155ef8172530a6f88be6e7361bfc7e6bfa2 | [
"MIT"
] | null | null | null | main.py | SHGoldfarb/fantastic-barnacle | 64650155ef8172530a6f88be6e7361bfc7e6bfa2 | [
"MIT"
] | null | null | null | main.py | SHGoldfarb/fantastic-barnacle | 64650155ef8172530a6f88be6e7361bfc7e6bfa2 | [
"MIT"
] | null | null | null | import requests
import os
from datetime import datetime
import pandas as pd
if __name__ == "__main__":
main()
| 23.7625 | 78 | 0.711731 |
de6435cdbc67360ee94636dc50bd704495e2b720 | 382 | py | Python | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | import os
import yoloCarAccident as yc
# yc.find('test.txt')
f1 = open('result2.txt','r')
i = 0
s = ""
for lines in f1:
if(i<80000):
s += lines
i+=1
else:
f2 = open('test.txt','w')
f2.write(s)
f2.close()
try:
yc.find('test.txt')
except ValueError:
pass
s = ""
i = 0
# break
# f2 = open('t... | 13.172414 | 28 | 0.557592 |
de65eb26862ea6588043a83de4e49020ae4daf2c | 1,853 | py | Python | socketserver_extra.py | sim642/pyqwebirc | cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e | [
"MIT"
] | null | null | null | socketserver_extra.py | sim642/pyqwebirc | cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e | [
"MIT"
] | 2 | 2017-01-04T18:24:00.000Z | 2017-01-04T18:50:32.000Z | socketserver_extra.py | sim642/pyqwebirc | cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e | [
"MIT"
] | null | null | null | import socketserver
import socket
| 33.089286 | 88 | 0.652455 |
de681128c0eb4ded13f92d6720603223e15efc17 | 4,560 | py | Python | train_n_test/train_decoder.py | kamieen03/style-transfer-net | c9f56aa579553be8c72f37ce975ba88dbd775605 | [
"BSD-2-Clause"
] | 2 | 2019-12-14T14:59:22.000Z | 2020-01-30T16:17:28.000Z | train_n_test/train_decoder.py | kamieen03/style-transfer-net | c9f56aa579553be8c72f37ce975ba88dbd775605 | [
"BSD-2-Clause"
] | null | null | null | train_n_test/train_decoder.py | kamieen03/style-transfer-net | c9f56aa579553be8c72f37ce975ba88dbd775605 | [
"BSD-2-Clause"
] | 1 | 2020-01-16T20:03:35.000Z | 2020-01-16T20:03:35.000Z | #!/usr/bin/env python3
import os, sys
sys.path.append(os.path.abspath(__file__ + "/../../")) # just so we can use 'libs'
import torch.utils.data
import torch.optim as optim
from torch import nn
import numpy as np
import torch
from libs.Loader import Dataset
from libs.shufflenetv2 import ShuffleNetV2AutoEncoder
BA... | 35.905512 | 84 | 0.53114 |
de69814605b1835959a1ffdafc1b9774d60d18ad | 75 | py | Python | utils/__init__.py | bitst0rm-st3/AutomaticPackageReloader | b48699420ccadb3c1a8796a1a7275f70089f0934 | [
"MIT"
] | null | null | null | utils/__init__.py | bitst0rm-st3/AutomaticPackageReloader | b48699420ccadb3c1a8796a1a7275f70089f0934 | [
"MIT"
] | null | null | null | utils/__init__.py | bitst0rm-st3/AutomaticPackageReloader | b48699420ccadb3c1a8796a1a7275f70089f0934 | [
"MIT"
] | null | null | null | from .progress_bar import ProgressBar
from .read_config import read_config
| 25 | 37 | 0.866667 |
de6c1a64c58a8aca902a8fc78dd2204b84031a65 | 2,871 | py | Python | src/main/create/c_chains_user_json.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null | src/main/create/c_chains_user_json.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null | src/main/create/c_chains_user_json.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null |
#%%
# PAGE EXAMPLE
# {'title': 'Zuppa_di_pesce_(film)',
# 'chains': [{'revisions': ['95861493', '95861612', '95973728'],
# 'users': {'93.44.99.33': '', 'Kirk39': '63558', 'AttoBot': '482488'},
# 'len': 3,
# 'start': '2018-04-01 04:54:40.0',
# 'end': '2018-04-05 07:36:26.0'}],
# 'n_chains': 1,
# 'n_rever... | 26.1 | 183 | 0.563915 |
de6c4ab063a946c3b3fd6bbb89fa20997b2be723 | 5,105 | py | Python | src/carts/views.py | dhaval6552/ecommerce-2 | ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737 | [
"MIT"
] | null | null | null | src/carts/views.py | dhaval6552/ecommerce-2 | ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737 | [
"MIT"
] | null | null | null | src/carts/views.py | dhaval6552/ecommerce-2 | ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737 | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import AuthenticationForm
from django.core.urlresolvers import reverse
from django.views.generic.base import View
from django.views.generic.detail import SingleObjectMixin,DetailView
from django.shortcuts import render,get_object_or_404,redirect
from django.http import HttpResponseRedirec... | 33.807947 | 92 | 0.582174 |
de71e1c800cd0628725b2dd49b907881044e1b6d | 721 | py | Python | Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 22 | 2015-02-26T09:07:18.000Z | 2020-05-10T16:22:05.000Z | Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 123 | 2016-04-05T18:32:41.000Z | 2022-03-13T21:09:21.000Z | Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py | tduoth/JsObjects | eb3e2a8b1f47d0da53c8b1a85a7949269711932f | [
"MIT"
] | 56 | 2015-03-19T22:26:37.000Z | 2021-12-06T02:52:02.000Z | #!/usr/bin/python
'''
Created on May 23, 2012
@author: Charlie
'''
import unittest
from mock import patch
import xml.etree.ElementTree as ET
from TestCgiMainBase import TestCgiMainBase
if __name__ == "__main__":
unittest.main() | 24.862069 | 71 | 0.647712 |