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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ce63a51796d09d0a17014a9fc2ac0dc26691fea | 237 | py | Python | tests/import_tests.py | nesnoj/oemof.db | 9e549057e0eb057a8d86b701aa73c3c5dae92853 | [
"MIT"
] | null | null | null | tests/import_tests.py | nesnoj/oemof.db | 9e549057e0eb057a8d86b701aa73c3c5dae92853 | [
"MIT"
] | null | null | null | tests/import_tests.py | nesnoj/oemof.db | 9e549057e0eb057a8d86b701aa73c3c5dae92853 | [
"MIT"
] | null | null | null | from nose.tools import ok_
import oemof
import oemof.db as oemofdb
| 15.8 | 36 | 0.751055 |
4ce6d6a0bff2622c22fb1c1367e64eb0e4b661d8 | 2,440 | py | Python | tests/test_models/test_common/test_ensemble.py | miaomiaojj/mmediting-master | 4705db3000b3766af4932a7a8e090ed6e8198afe | [
"Apache-2.0"
] | 1 | 2022-03-22T03:00:20.000Z | 2022-03-22T03:00:20.000Z | tests/test_models/test_common/test_ensemble.py | miaomiaojj/mmediting-master | 4705db3000b3766af4932a7a8e090ed6e8198afe | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_common/test_ensemble.py | miaomiaojj/mmediting-master | 4705db3000b3766af4932a7a8e090ed6e8198afe | [
"Apache-2.0"
] | 1 | 2022-03-10T01:00:24.000Z | 2022-03-10T01:00:24.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import pytest
import torch
import torch.nn as nn
from mmedit.models.common import SpatialTemporalEnsemble
| 37.538462 | 77 | 0.686475 |
4cea47a6d8f11b1f745d5eb164a78367ed89d7e6 | 10,299 | py | Python | pkgtools/pypi.py | rubik/pkgtools | 17c9dc93835b01f49c4cd96725ec069c0b3db8c9 | [
"MIT"
] | 3 | 2015-07-11T09:11:43.000Z | 2016-08-19T14:29:53.000Z | pkgtools/pypi.py | rubik/pkgtools | 17c9dc93835b01f49c4cd96725ec069c0b3db8c9 | [
"MIT"
] | 1 | 2016-03-05T14:37:35.000Z | 2016-03-10T17:04:31.000Z | pkgtools/pypi.py | rubik/pkgtools | 17c9dc93835b01f49c4cd96725ec069c0b3db8c9 | [
"MIT"
] | null | null | null | import sys
from .utils import ext
if sys.version_info >= (3,):
import xmlrpc.client as xmlrpclib
import urllib.request as urllib2
else:
import xmlrpclib
import urllib2
try:
import simplejson as json
except ImportError:
import json
def pypi_client(index_url='http://pypi.python.org/pypi', *arg... | 34.793919 | 439 | 0.54549 |
4ceafd1d7403a9d630e60481f60455a521f8c29e | 399 | py | Python | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | import re
from . import Mod
REPLACE_TEXT = "REPLACEME"
mod_prepend_content_into_body = Mod(prepend_content_into_body) | 24.9375 | 75 | 0.641604 |
4ceb9d508c92b3403c67b0ebe8937b62d1700952 | 2,466 | py | Python | src/com/web/utils/Log.py | jenniferhaoba/AutomationTest | e73380d57c0f4c97cfa8471e6ec164970eb94b83 | [
"MIT"
] | null | null | null | src/com/web/utils/Log.py | jenniferhaoba/AutomationTest | e73380d57c0f4c97cfa8471e6ec164970eb94b83 | [
"MIT"
] | null | null | null | src/com/web/utils/Log.py | jenniferhaoba/AutomationTest | e73380d57c0f4c97cfa8471e6ec164970eb94b83 | [
"MIT"
] | null | null | null | """
CRITICAL > ERROR > WARNING > INFO > DEBUG > NOTSET
logger import
from utils.log import logger
logger.info('test log')
"""
import logging
from logging.handlers import TimedRotatingFileHandler
from com.web.utils.Config import LOG_PATH, Config
import os
loggerUtils = Logger() #
logger = loggerUtils.get_logger... | 45.666667 | 120 | 0.579481 |
4cebd4546485ab684a51196987e1925bef4c467c | 141 | py | Python | mdssdk/parsers/portchannel/__init__.py | akshatha-s13/mdssdk | 615a5528d0af1201e8fe8f305c62b258e5433990 | [
"Apache-2.0"
] | 4 | 2020-12-13T20:02:43.000Z | 2022-02-27T23:36:58.000Z | mdssdk/parsers/portchannel/__init__.py | akshatha-s13/mdssdk | 615a5528d0af1201e8fe8f305c62b258e5433990 | [
"Apache-2.0"
] | 13 | 2020-09-23T07:30:15.000Z | 2022-03-30T01:12:25.000Z | mdssdk/parsers/portchannel/__init__.py | akshatha-s13/mdssdk | 615a5528d0af1201e8fe8f305c62b258e5433990 | [
"Apache-2.0"
] | 12 | 2020-05-11T09:33:21.000Z | 2022-03-18T11:11:28.000Z | from .show_port_channel_database import ShowPortChannelDatabase
from .show_port_channel_database_detail import ShowPortChannelDatabaseDetail
| 47 | 76 | 0.929078 |
4ced5e6d415f7d6cd756a58a06e9108dee5a88c4 | 8,385 | py | Python | tests/test_signature_parser.py | mulkieran/into-dbus-python | 20465e418a1189e2371a11b4a4032ea9f481366a | [
"Apache-2.0"
] | null | null | null | tests/test_signature_parser.py | mulkieran/into-dbus-python | 20465e418a1189e2371a11b4a4032ea9f481366a | [
"Apache-2.0"
] | null | null | null | tests/test_signature_parser.py | mulkieran/into-dbus-python | 20465e418a1189e2371a11b4a4032ea9f481366a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 32.374517 | 79 | 0.620394 |
4cef2678285501dd8561a07546a5065697d19120 | 2,435 | py | Python | src/ychaos/utils/builtins.py | eisenhowerj/ychaos | de7572e35d89eedb5d7d2ad6a8e1fda52179eccc | [
"Apache-2.0"
] | null | null | null | src/ychaos/utils/builtins.py | eisenhowerj/ychaos | de7572e35d89eedb5d7d2ad6a8e1fda52179eccc | [
"Apache-2.0"
] | null | null | null | src/ychaos/utils/builtins.py | eisenhowerj/ychaos | de7572e35d89eedb5d7d2ad6a8e1fda52179eccc | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Yahoo
# Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms
import re
from enum import Enum
from types import DynamicClassAttribute, SimpleNamespace
from typing import Any, Iterable, List, Optional, Type, TypeVar
T = TypeVar("T")
| 26.182796 | 105 | 0.582341 |
4cf04fc94d1d561bab8a6c6919bd8c2acfb5aa27 | 5,091 | py | Python | piProbe.py | MelonSmasher/piProbe | 3f7df58fd19c6dd48851475b1673e0ef45aeabc3 | [
"MIT"
] | 15 | 2019-04-24T13:53:22.000Z | 2022-01-25T17:34:04.000Z | piProbe.py | MelonSmasher/piProbe | 3f7df58fd19c6dd48851475b1673e0ef45aeabc3 | [
"MIT"
] | null | null | null | piProbe.py | MelonSmasher/piProbe | 3f7df58fd19c6dd48851475b1673e0ef45aeabc3 | [
"MIT"
] | 3 | 2019-07-06T20:07:17.000Z | 2022-03-22T23:38:21.000Z | import sys
import os
import socket
import json
import time
import subprocess
from influxdb import InfluxDBClient
import Adafruit_DHT
# Run it!
try:
# get the config
config = getConfig()
# Make a new influx client
client = InfluxDBClient(
host=config['influxdb']['host'],
port=int(con... | 33.058442 | 102 | 0.535062 |
4cf0d2e8ea27e791ec4602dc58532416032766d1 | 561 | py | Python | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | 17 | 2020-09-21T19:59:23.000Z | 2021-05-16T15:28:41.000Z | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | null | null | null | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | 2 | 2021-03-13T09:31:30.000Z | 2022-03-19T09:43:15.000Z | # Generated by Django 3.0.4 on 2020-06-20 13:32
from django.db import migrations, models
| 23.375 | 64 | 0.58467 |
4cf2a398b75def27862677b4c356e9aadd34c1d2 | 930 | py | Python | mh_3.py | Harshsa28/Monty-Hall-problem | 6715da5b027fec841cc9c587833b83f866422eaa | [
"MIT"
] | null | null | null | mh_3.py | Harshsa28/Monty-Hall-problem | 6715da5b027fec841cc9c587833b83f866422eaa | [
"MIT"
] | null | null | null | mh_3.py | Harshsa28/Monty-Hall-problem | 6715da5b027fec841cc9c587833b83f866422eaa | [
"MIT"
] | null | null | null | import random
no_switch = 0
switch= 0
'''
for i in range(10000):
car_loc = random.randint(1,3) #obviously random
my_choice = random.randint(1,3) #obviously random
host = [1,2,3]
host.remove(car_loc)
if my_choice in host:
host.remove(my_choice)
host = random.choice(host)
options = [1... | 24.473684 | 67 | 0.626882 |
4cf388cb65cadeeda551e64e41b0b9f0bada7835 | 813 | py | Python | day13/day13-1.py | RobinRH/advent-of-code-2017 | 8996691abf4d9020294e5b750bef1e35effd5c68 | [
"MIT"
] | null | null | null | day13/day13-1.py | RobinRH/advent-of-code-2017 | 8996691abf4d9020294e5b750bef1e35effd5c68 | [
"MIT"
] | null | null | null | day13/day13-1.py | RobinRH/advent-of-code-2017 | 8996691abf4d9020294e5b750bef1e35effd5c68 | [
"MIT"
] | null | null | null | # answer 1632
import csv
import sys
filename = sys.argv[1]
layers = dict()
with open(filename, 'r') as f:
reader = csv.reader(f, delimiter=':')
for row in reader:
layer = map((lambda x : int(x)), row)
layers[layer[0]] = layer[1]
maxTime = max(layers.keys())
collisions = []
for time in ran... | 19.829268 | 60 | 0.616236 |
4cf536611c9c289cf0a6a5b53a470c6346137063 | 3,190 | py | Python | mmocr/models/textdet/postprocess/pse_postprocessor.py | yuexy/mmocr | 82488024db159266e66ea6b0d6f84a5a18e87362 | [
"Apache-2.0"
] | 2,261 | 2021-04-08T03:45:41.000Z | 2022-03-31T23:37:46.000Z | mmocr/models/textdet/postprocess/pse_postprocessor.py | yuexy/mmocr | 82488024db159266e66ea6b0d6f84a5a18e87362 | [
"Apache-2.0"
] | 789 | 2021-04-08T05:40:13.000Z | 2022-03-31T09:42:39.000Z | mmocr/models/textdet/postprocess/pse_postprocessor.py | yuexy/mmocr | 82488024db159266e66ea6b0d6f84a5a18e87362 | [
"Apache-2.0"
] | 432 | 2021-04-08T03:56:16.000Z | 2022-03-30T18:44:43.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import cv2
import numpy as np
import torch
from mmcv.ops import contour_expand
from mmocr.core import points2boundary
from mmocr.models.builder import POSTPROCESSOR
from .base_postprocessor import BasePostprocessor
| 35.842697 | 79 | 0.610658 |
4cf66bed6aed3640c350133fd53dbb1d5085fced | 163 | py | Python | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | from selenium import webdriver
driver = webdriver.Firefox()
driver.get("http://127.0.0.1:8080/#")
b = driver.find_elements_by_id("view-fullscreen")[0]
b.click() | 20.375 | 52 | 0.730061 |
4cf6adac32a989c6e601b495a7a73b88e57eabb4 | 878 | py | Python | dags/kd03-dags/research_report_parser.py | ywf5566/airflow | e7872dddbf275729b2c42e2a4ff602a6df7d1536 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | dags/kd03-dags/research_report_parser.py | ywf5566/airflow | e7872dddbf275729b2c42e2a4ff602a6df7d1536 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | dags/kd03-dags/research_report_parser.py | ywf5566/airflow | e7872dddbf275729b2c42e2a4ff602a6df7d1536 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
default_args = {
'owner': 'afroot03'
}
dag = DAG(
'research_report_parser',
default_args=default_args,
description='beta_info_update',
schedu... | 39.909091 | 213 | 0.779043 |
4cf6d1390cc0b4111f365c83154af60b50d2b6ac | 2,983 | py | Python | tweet.py | ardyflora/pytweetRogerInternet | 199c4f1e9e4a80559c7f59e16c3a0edd08527642 | [
"MIT"
] | null | null | null | tweet.py | ardyflora/pytweetRogerInternet | 199c4f1e9e4a80559c7f59e16c3a0edd08527642 | [
"MIT"
] | null | null | null | tweet.py | ardyflora/pytweetRogerInternet | 199c4f1e9e4a80559c7f59e16c3a0edd08527642 | [
"MIT"
] | null | null | null | import tweepy
import os
import pandas as pd
import matplotlib.pyplot as plt
import plotly.graph_objs as go
import plotly.plotly as py
from plotly import tools
from dotenv import load_dotenv
import plotly
import datetime
import time # {Added}
load_dotenv()
plotly.tools.set_credentials_file(
username=os.enviro... | 28.141509 | 83 | 0.630908 |
4cf6f90f97a266f542ca1d05ba36c9d433d0be5a | 1,007 | py | Python | other/chinking.py | gauthamkrishna-g/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | 6 | 2017-08-25T10:08:02.000Z | 2021-02-02T16:15:16.000Z | other/chinking.py | gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | null | null | null | other/chinking.py | gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | 2 | 2019-07-12T08:07:32.000Z | 2020-05-22T17:21:13.000Z | from nltk.tokenize import word_tokenize
from nltk import pos_tag
from nltk.tokenize import PunktSentenceTokenizer
from nltk.corpus import state_union
from nltk import RegexpParser
train_text = state_union.raw("2005-GWBush.txt")
sample_text = state_union.raw("2006-GWBush.txt")
custom_sent_tokenizer = PunktSen... | 34.724138 | 83 | 0.621648 |
4cf8c7dac3b7e12cbc636958b30abf4449cbc7d6 | 3,446 | py | Python | Easydashboard/app.py | harshalsonioo1/mpr-asi | a0c6c9321105776016c4b765ddcac964abe8f1c4 | [
"MIT"
] | null | null | null | Easydashboard/app.py | harshalsonioo1/mpr-asi | a0c6c9321105776016c4b765ddcac964abe8f1c4 | [
"MIT"
] | null | null | null | Easydashboard/app.py | harshalsonioo1/mpr-asi | a0c6c9321105776016c4b765ddcac964abe8f1c4 | [
"MIT"
] | null | null | null | from utils import plot_confusion_matrix, load_map, plot_SHAP, create_map
import hydralit as hy
import streamlit as st
import streamlit.components.v1 as components
st.set_option("deprecation.showPyplotGlobalUse", False)
app = hy.HydraApp(
title="Explainer Dashboard", # nav_container=st.header,
nav_horizontal=... | 28.01626 | 139 | 0.612304 |
4cf911eb15b62882ba50ef99f4d0b5369641722b | 261 | py | Python | ermaket/scripts/script_abort_example.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | ermaket/scripts/script_abort_example.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | ermaket/scripts/script_abort_example.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | from ermaket.api.scripts import ReturnContext, UserScript
__all__ = ['script']
script = UserScript(id=1)
| 20.076923 | 63 | 0.724138 |
4cf973cf75050168caf53e9004f07a1509cab4ba | 578 | py | Python | hardhat/recipes/x11/server/xinit.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/x11/server/xinit.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/x11/server/xinit.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | from hardhat.recipes.base import GnuRecipe
| 32.111111 | 79 | 0.624567 |
4cf9defe4fdd8ddd2590406f9ebaacf6453d229b | 221 | py | Python | main.py | Oreross/hangman_game | 80d10c9e7199f38c5aead129d15c179ee5645c92 | [
"Apache-2.0"
] | 1 | 2020-08-11T13:54:02.000Z | 2020-08-11T13:54:02.000Z | main.py | Oreross/hangman_game | 80d10c9e7199f38c5aead129d15c179ee5645c92 | [
"Apache-2.0"
] | null | null | null | main.py | Oreross/hangman_game | 80d10c9e7199f38c5aead129d15c179ee5645c92 | [
"Apache-2.0"
] | null | null | null | from game.hangman import Hangman
if __name__ == "__main__":
main()
| 15.785714 | 47 | 0.579186 |
4cfb0570d172533ee9894d3ef40fe14a0b5a7765 | 1,057 | py | Python | moodle/LoadBalancerStack.py | gastonmichel/moodle-docker | e604a6091ff65ae6a119d4e28b6e551bfa16270e | [
"CC0-1.0"
] | null | null | null | moodle/LoadBalancerStack.py | gastonmichel/moodle-docker | e604a6091ff65ae6a119d4e28b6e551bfa16270e | [
"CC0-1.0"
] | null | null | null | moodle/LoadBalancerStack.py | gastonmichel/moodle-docker | e604a6091ff65ae6a119d4e28b6e551bfa16270e | [
"CC0-1.0"
] | null | null | null | from aws_cdk import (
aws_ec2 as ec2,
aws_elasticloadbalancingv2 as elbv2,
core as cdk
)
from . import VPCStack | 30.2 | 104 | 0.631031 |
4cfce375a86afb66fe5728f23e893da84b332753 | 948 | py | Python | back-end/f1hub/results/models.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | null | null | null | back-end/f1hub/results/models.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | 18 | 2019-08-29T12:42:11.000Z | 2022-02-12T13:04:58.000Z | back-end/f1hub/results/models.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 41.217391 | 90 | 0.738397 |
4cfe154bfe19cd5e666abec8d197975b1b1677fc | 21,312 | py | Python | Code/detect-1113.py | b875102/simon | c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8 | [
"BSD-3-Clause-Attribution"
] | null | null | null | Code/detect-1113.py | b875102/simon | c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8 | [
"BSD-3-Clause-Attribution"
] | null | null | null | Code/detect-1113.py | b875102/simon | c7f0f2c7956e37f1cf5c71b1f0ca61ba2e1a5fb8 | [
"BSD-3-Clause-Attribution"
] | null | null | null | import argparse
import cv2
from models import * # set ONNX_EXPORT in models.py
from utils.datasets import *
from utils.utils import *
###############################################################
class_index = { '0':0, '1':1, '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9,\
'A':10, 'B':11,... | 42.624 | 152 | 0.513607 |
4cfef67e02b0fac5329fc1caf9c73585fb1f8ce5 | 137 | py | Python | src/ftarcoder42/build.py | StarkillerX42/starcoder42 | 86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2 | [
"BSD-3-Clause"
] | null | null | null | src/ftarcoder42/build.py | StarkillerX42/starcoder42 | 86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2 | [
"BSD-3-Clause"
] | null | null | null | src/ftarcoder42/build.py | StarkillerX42/starcoder42 | 86fbd1a4ea90c75b5d2429ac5d1caf4b0d8dbef2 | [
"BSD-3-Clause"
] | null | null | null | import subprocess as sub
sub.call('f2py -c ftarcoder42.pyf constantf.f90 mathf.f90 physicf.f90 -m'
' ftarcoder42', shell=True)
| 27.4 | 73 | 0.715328 |
4cffe546a9d5e7c7aca56e017a5ebdfc67617d85 | 1,257 | py | Python | packages/badboy/badboy/scripts/sshlogin.py | AitzazImtiaz/Boydom-OS | 805dfdc87524569c1cf11029e1ccd1a589fd368e | [
"MIT"
] | null | null | null | packages/badboy/badboy/scripts/sshlogin.py | AitzazImtiaz/Boydom-OS | 805dfdc87524569c1cf11029e1ccd1a589fd368e | [
"MIT"
] | null | null | null | packages/badboy/badboy/scripts/sshlogin.py | AitzazImtiaz/Boydom-OS | 805dfdc87524569c1cf11029e1ccd1a589fd368e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Written By: Sahar Hathiramani
# Date: 01/11/2021
import pexpect
import os
os.system("clear")
print(" ")
PROMPT = ['# ', '>>> ', '> ', '\$ ', '$ ']
main()
n = str(input("Press y and enter to return back:"))
if n=="y":
os.system("clear")
| 27.326087 | 71 | 0.597454 |
9800029f7c3f66e30ef85873b845a2fcf759869c | 972 | py | Python | test/test_ctxt.py | devopsent/patr | b206dbe37c0404b423c2864ba64639a465e7868e | [
"MIT"
] | null | null | null | test/test_ctxt.py | devopsent/patr | b206dbe37c0404b423c2864ba64639a465e7868e | [
"MIT"
] | 1 | 2019-10-19T12:48:22.000Z | 2019-10-19T12:48:22.000Z | test/test_ctxt.py | devopsent/patr | b206dbe37c0404b423c2864ba64639a465e7868e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=missing-docstring
from patr import ctxt
import pytest
| 23.707317 | 71 | 0.595679 |
9800be2265795338942ce9d2f06754749b91c514 | 2,613 | py | Python | resources/lambda_function/execute_ddl/index.py | aws-samples/aws-cdk-lambda-import-export-redshift-ddl | 3b2c944caddfb0d37b08b09f791549a086e443ca | [
"MIT-0"
] | null | null | null | resources/lambda_function/execute_ddl/index.py | aws-samples/aws-cdk-lambda-import-export-redshift-ddl | 3b2c944caddfb0d37b08b09f791549a086e443ca | [
"MIT-0"
] | null | null | null | resources/lambda_function/execute_ddl/index.py | aws-samples/aws-cdk-lambda-import-export-redshift-ddl | 3b2c944caddfb0d37b08b09f791549a086e443ca | [
"MIT-0"
] | null | null | null | import logging
import os
import boto3
import psycopg2
from psycopg2.extensions import AsIs
from botocore.exceptions import ClientError
from urllib.parse import urlparse
logger = logging.getLogger()
logger.setLevel(logging.INFO)
secretsmanager = boto3.client("secretsmanager")
s3 = boto3.client("s3")
| 33.075949 | 89 | 0.685802 |
9801a94c959c21f860f85c41508e66fcfd630de5 | 7,607 | py | Python | egen310.py | PlacidFireball/310-rover-code | 3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae | [
"MIT"
] | null | null | null | egen310.py | PlacidFireball/310-rover-code | 3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae | [
"MIT"
] | null | null | null | egen310.py | PlacidFireball/310-rover-code | 3a57fef2d92f8a3e2da6d3936db4f3da9eac45ae | [
"MIT"
] | null | null | null | # EGEN 310R D.3 Runner Script
# Written by Jared Weiss at Montana State University
# RESOURCES:
### [Pygame Docs:] https://www.pygame.org/docs/
# - I used the joystick docs (https://www.pygame.org/docs/ref/joystick.html) the most
### [Servo control article:] https://www.learnrobotics.org/blog/raspberry-pi-servo-motor/
... | 43.468571 | 139 | 0.588668 |
98033ee40832944f5bd276162a82aa4b3b960b16 | 1,438 | py | Python | chapter_7/mailinglist.py | psd314/oop_with_python | 325434394a1101fcb105ade7bf170e08afd00e14 | [
"MIT"
] | null | null | null | chapter_7/mailinglist.py | psd314/oop_with_python | 325434394a1101fcb105ade7bf170e08afd00e14 | [
"MIT"
] | null | null | null | chapter_7/mailinglist.py | psd314/oop_with_python | 325434394a1101fcb105ade7bf170e08afd00e14 | [
"MIT"
] | null | null | null | from collections import defaultdict
from send_email import send_email
| 29.346939 | 79 | 0.560501 |
9804198a7cfe5d4e970e3da94bea10e4d21e32f9 | 1,465 | py | Python | templates/new_language/lex_attrs.py | aniruddha-adhikary/spacy-dev-resources | 30f3b094bcac1670c010e46d11441796f7d0d683 | [
"MIT"
] | 132 | 2016-12-19T21:14:49.000Z | 2022-02-09T05:14:48.000Z | templates/new_language/lex_attrs.py | aniruddha-adhikary/spacy-dev-resources | 30f3b094bcac1670c010e46d11441796f7d0d683 | [
"MIT"
] | 32 | 2016-12-29T00:35:17.000Z | 2019-03-12T11:08:42.000Z | templates/new_language/lex_attrs.py | aniruddha-adhikary/spacy-dev-resources | 30f3b094bcac1670c010e46d11441796f7d0d683 | [
"MIT"
] | 68 | 2016-12-19T10:05:37.000Z | 2021-07-02T20:20:45.000Z | # coding: utf8
from __future__ import unicode_literals
# import the symbols for the attrs you want to overwrite
from ...attrs import LIKE_NUM
# Overwriting functions for lexical attributes
# Documentation: https://localhost:1234/docs/usage/adding-languages#lex-attrs
# Most of these functions, like is_lower or like_u... | 33.295455 | 85 | 0.646416 |
98041abe73a09d744f8e1be028ecf96083d6176f | 6,277 | py | Python | pirates/npc/Boss.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/npc/Boss.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/npc/Boss.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from pirates.battle import EnemyGlobals
from pirates.npc.BossBase import BossBase
from pirates.pirate import AvatarTypes
from pirates.effects.BossEffect import BossEffect
from pirates.effects.BossAura import BossAura
from direct.showbase.Dir... | 46.154412 | 467 | 0.628644 |
98053fe58d00f015f391cc682e1397842a6dae53 | 5,751 | py | Python | Nombre/Nombre.py | willingtonino/Algoritmos_programacion_C4G2 | 2a2c94678ae981974539a8019f17108775521e23 | [
"MIT"
] | null | null | null | Nombre/Nombre.py | willingtonino/Algoritmos_programacion_C4G2 | 2a2c94678ae981974539a8019f17108775521e23 | [
"MIT"
] | null | null | null | Nombre/Nombre.py | willingtonino/Algoritmos_programacion_C4G2 | 2a2c94678ae981974539a8019f17108775521e23 | [
"MIT"
] | 1 | 2021-10-31T22:54:45.000Z | 2021-10-31T22:54:45.000Z | import turtle
nombre = turtle.Turtle()
colors=['red', 'purple', 'blue', 'green', 'yellow', 'orange', 'pink','light blue']
#Nombre:Willington
nombre.color("blue")
nombre.pu()
nombre.setposition(-500,300)
nombre.speed(10)
nombre.pensize(5)
nombre.pd()
nombre.left(270)
nombre.forward(350)
nombre.left(135)
n... | 19.298658 | 83 | 0.719701 |
98061bec4ab8c362e8993720fb5a01fca50bd699 | 2,905 | py | Python | wanip_notifier.py | silvaBrian987/wanip_notifier | 8592e4ebf3c5b9cf4622f87223d843cad4e5845f | [
"Apache-2.0"
] | null | null | null | wanip_notifier.py | silvaBrian987/wanip_notifier | 8592e4ebf3c5b9cf4622f87223d843cad4e5845f | [
"Apache-2.0"
] | null | null | null | wanip_notifier.py | silvaBrian987/wanip_notifier | 8592e4ebf3c5b9cf4622f87223d843cad4e5845f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import subprocess
import logging
import smtplib
import socket
import ssl
import email
if __name__ == "__main__":
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"), format=os.environ.get("WANIP_LOG_FORMAT", "%(asctime)s - [%(levelname)s] - %(message)s"))
App().run()... | 37.727273 | 155 | 0.62926 |
9809ab5317cd085c73700d8f77b21ca36ba30fc5 | 1,292 | py | Python | utils/config.py | ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning | baef25837ce7e073d03f69a095d1992aa18dd2d5 | [
"MIT"
] | null | null | null | utils/config.py | ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning | baef25837ce7e073d03f69a095d1992aa18dd2d5 | [
"MIT"
] | null | null | null | utils/config.py | ogrenenmakine/VCL-PL-Semi-Supervised-Learning-from-Noisy-Web-Data-with-Variational-Contrastive-Learning | baef25837ce7e073d03f69a095d1992aa18dd2d5 | [
"MIT"
] | null | null | null | """
Authors: Wouter Van Gansbeke, Simon Vandenhende
Licensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/)
"""
import os
import yaml
from easydict import EasyDict
from utils.utils import mkdir_if_missing
| 36.914286 | 92 | 0.706656 |
980a318d114792589559712f7fbea57028593d15 | 12,319 | py | Python | Scripts/plot_QBOExperiments_E-W_var_mo.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 1 | 2017-10-22T02:22:14.000Z | 2017-10-22T02:22:14.000Z | Scripts/plot_QBOExperiments_E-W_var_mo.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | null | null | null | Scripts/plot_QBOExperiments_E-W_var_mo.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 4 | 2018-04-05T17:55:36.000Z | 2022-03-31T07:05:01.000Z | """
Plot comparisons between SIT and SIC modeling experiments using
WACCM4. Subplot includes FIT, HIT, FICT. Composites are
organized by QBO-E - QBO-W
Notes
-----
Author : Zachary Labe
Date : 31 January 2018
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basema... | 42.626298 | 115 | 0.572693 |
980b9fef8c317b22263bc02b4687f9bb0cc0e714 | 1,836 | py | Python | src/LecturaFicheros/Lectorcsv.py | 2019-20-TFG-Presencial-Febr/PruebaNetExtractor | 7f52e33954e6d32fb7bfee15181155674af089d2 | [
"MIT"
] | 2 | 2020-02-19T07:57:37.000Z | 2020-04-20T14:32:56.000Z | src/LecturaFicheros/Lectorcsv.py | jornav/NetExtractor | 92f39fb3ce2fe035532ffadbcb162c96b2fe5ccd | [
"MIT"
] | 102 | 2019-01-14T21:07:56.000Z | 2021-12-13T20:00:35.000Z | src/LecturaFicheros/Lectorcsv.py | adb1004/NetExtractor-2.0 | 92f39fb3ce2fe035532ffadbcb162c96b2fe5ccd | [
"MIT"
] | 4 | 2019-04-01T08:40:36.000Z | 2021-06-06T07:17:06.000Z | # -*- coding: utf-8 -*-
import csv
| 33.381818 | 99 | 0.505447 |
980ce10f02888bd3e0fcc58abcb43fed45e724e9 | 24,465 | py | Python | stax/aws/cloudformation.py | acaire/stax | 63fc890be14f3272fb98eb65c631343bae3c6d12 | [
"MIT"
] | null | null | null | stax/aws/cloudformation.py | acaire/stax | 63fc890be14f3272fb98eb65c631343bae3c6d12 | [
"MIT"
] | null | null | null | stax/aws/cloudformation.py | acaire/stax | 63fc890be14f3272fb98eb65c631343bae3c6d12 | [
"MIT"
] | null | null | null | import collections
import datetime
import difflib
import hashlib
import itertools
import json
import os
import pathlib
import string
import sys
import time
import uuid
import boto3
import botocore
import click
import halo
import yaml
from .. import gitlib
from ..exceptions import StackNotFound
from .connection_manage... | 32.49004 | 149 | 0.54159 |
980f3d1f3df4c3dd7054f229628807cf4bbb2a74 | 35,129 | py | Python | NGDAUpdater/NGDAUpdaterForStates.py | mattCensus/PerlScripts | d2643d99abc3f0647ebfbd41f7e5faa704da3e91 | [
"MIT"
] | null | null | null | NGDAUpdater/NGDAUpdaterForStates.py | mattCensus/PerlScripts | d2643d99abc3f0647ebfbd41f7e5faa704da3e91 | [
"MIT"
] | null | null | null | NGDAUpdater/NGDAUpdaterForStates.py | mattCensus/PerlScripts | d2643d99abc3f0647ebfbd41f7e5faa704da3e91 | [
"MIT"
] | null | null | null | import os
import fnmatch
import shutil
import re
import datetime
import time
#import StringIO
import pickle
import sys
import MetadataDateModules
from MetadataDateModules import metadataDateUpdater
from MetadataDateModules import TodaysDate
from FirstAlternativeTitle import FirstAlternativeTitle
from Res... | 48.320495 | 256 | 0.478892 |
98106631425f65be0197ac9801c484298d0e3b91 | 1,511 | py | Python | source/galaxy/db.py | colinleach/400B_Leach | 656abe04237d7a8de2cf56e9bfe986c333c62739 | [
"MIT"
] | 1 | 2020-03-16T12:46:02.000Z | 2020-03-16T12:46:02.000Z | source/galaxy/db.py | colinleach/400B_Leach | 656abe04237d7a8de2cf56e9bfe986c333c62739 | [
"MIT"
] | null | null | null | source/galaxy/db.py | colinleach/400B_Leach | 656abe04237d7a8de2cf56e9bfe986c333c62739 | [
"MIT"
] | null | null | null | import psycopg2
import yaml
from pathlib import Path
| 26.051724 | 76 | 0.598279 |
9811373a0f25e81fb9ae75c84f79fe4c6eb02421 | 537 | py | Python | web_login_background/tests/test_open_url.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 1 | 2020-03-01T03:04:21.000Z | 2020-03-01T03:04:21.000Z | web_login_background/tests/test_open_url.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | null | null | null | web_login_background/tests/test_open_url.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 3 | 2019-07-29T20:23:16.000Z | 2021-01-07T20:51:24.000Z | import odoo.tests
| 28.263158 | 74 | 0.489758 |
9813fd5b96f485c7f17dd680b383ea12db93f961 | 8,094 | bzl | Python | python/pip.bzl | jdob/rules_python | dad40476d74a7b1e903573293370927579261413 | [
"Apache-2.0"
] | null | null | null | python/pip.bzl | jdob/rules_python | dad40476d74a7b1e903573293370927579261413 | [
"Apache-2.0"
] | null | null | null | python/pip.bzl | jdob/rules_python | dad40476d74a7b1e903573293370927579261413 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 36.133929 | 128 | 0.680875 |
9815924c70a5419e8fe5fb5a75e1e2c1b28350dd | 2,896 | py | Python | utils/api_call.py | arpitkjain7/VacciDate | b542028490c76d44d53880798d3e5e8cf13e7c22 | [
"MIT"
] | 4 | 2021-05-23T13:48:22.000Z | 2022-02-23T04:27:35.000Z | utils/api_call.py | arpitkjain7/VacciDate | b542028490c76d44d53880798d3e5e8cf13e7c22 | [
"MIT"
] | null | null | null | utils/api_call.py | arpitkjain7/VacciDate | b542028490c76d44d53880798d3e5e8cf13e7c22 | [
"MIT"
] | null | null | null | from integration.api_setu import (
get_applicable_slots,
get_district_id_from_file,
get_state_id_by_state_name,
get_instant_applicable_slots,
)
from utils.load_config import load_configuration
from utils.external_caller import APIInterface
import time
from VacciDate_bot.send_message import send_personal... | 34.070588 | 90 | 0.643646 |
9815a2f264a1fa198fb81dd7f78ff48768cc81e5 | 74 | py | Python | util/__init__.py | lobachevzky/NLP-Project | 26f277b09a621476b21730ce63ffe33f6fae92cd | [
"MIT"
] | null | null | null | util/__init__.py | lobachevzky/NLP-Project | 26f277b09a621476b21730ce63ffe33f6fae92cd | [
"MIT"
] | null | null | null | util/__init__.py | lobachevzky/NLP-Project | 26f277b09a621476b21730ce63ffe33f6fae92cd | [
"MIT"
] | null | null | null | from . import dtree_util
import sys
sys.modules['dtree_util'] = dtree_util | 24.666667 | 38 | 0.797297 |
981758b6823b86dd7b6f15ae56e4a68151f81d16 | 889 | py | Python | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | import gspread
import time
from oauth2client.service_account import ServiceAccountCredentials
#TODO
| 28.677419 | 66 | 0.623172 |
981806b5945b12b9c6ea7adf2957b3110d87f687 | 18,833 | py | Python | utils/optimization.py | dexuiz/merlot | c83dcc1b6efb62a7000696d1c1d8e9f048b89c94 | [
"MIT"
] | 148 | 2021-06-07T22:21:51.000Z | 2022-03-28T02:27:49.000Z | utils/optimization.py | dexuiz/merlot | c83dcc1b6efb62a7000696d1c1d8e9f048b89c94 | [
"MIT"
] | 11 | 2021-06-15T04:23:51.000Z | 2022-03-27T17:41:46.000Z | utils/optimization.py | dexuiz/merlot | c83dcc1b6efb62a7000696d1c1d8e9f048b89c94 | [
"MIT"
] | 13 | 2021-06-15T13:35:09.000Z | 2022-02-17T05:28:13.000Z | import re
from collections import defaultdict
from copy import deepcopy
import numpy as np
import tensorflow as tf
from utils.model_utils import get_shape_list
def build_optimizer_from_config(loss, optimizer_config, device_config=None):
"""
This is a utility to build an optimizer from optimizer_config.
... | 44.840476 | 141 | 0.63564 |
98188360c09379562a335e365455d7a14ea7cede | 1,001 | py | Python | 001-Python-basico/024-desafio-forca.py | clebertonf/Python-course | a57f405cbd27f96e0cb61128df31e9249c79a962 | [
"MIT"
] | null | null | null | 001-Python-basico/024-desafio-forca.py | clebertonf/Python-course | a57f405cbd27f96e0cb61128df31e9249c79a962 | [
"MIT"
] | null | null | null | 001-Python-basico/024-desafio-forca.py | clebertonf/Python-course | a57f405cbd27f96e0cb61128df31e9249c79a962 | [
"MIT"
] | null | null | null |
palavra_secreta = input('Digite a palavra secreta: ')
print('Ok, agora pea pro seu amigo advinhar!')
letras_digitadas = []
contador = len(palavra_secreta) * 2
while True:
if contador <= 0:
print('Acabou as chances')
break
letra_usuario = input('Difite uma letra: ')
if len(letra_usuario) ... | 25.025 | 66 | 0.652348 |
9819a8579247b5bad793cf277cc96621e0bd2af0 | 9,157 | py | Python | AsyncGear/Gear.py | monk-after-90s/AsyncGear | 6773d38d564c21bbb2f9a0d4fd14a0c24b541ece | [
"MIT"
] | 4 | 2021-01-06T06:14:04.000Z | 2022-01-12T05:32:03.000Z | AsyncGear/Gear.py | monk-after-90s/AsyncGear | 6773d38d564c21bbb2f9a0d4fd14a0c24b541ece | [
"MIT"
] | 1 | 2021-08-05T09:54:30.000Z | 2021-08-05T10:43:33.000Z | AsyncGear/Gear.py | monk-after-90s/AsyncGear | 6773d38d564c21bbb2f9a0d4fd14a0c24b541ece | [
"MIT"
] | null | null | null | '''
Transfer an object to its gear, as an interface.
'''
import asyncio
import datetime
from .AsyncPeriod import AsyncPeriod
from .method_run_when import call_backs
from ensureTaskCanceled import ensureTaskCanceled
gears = {}
def unlock(self):
'''
Unlock the period of the gear after the gear is... | 36.337302 | 123 | 0.617014 |
9819ca0e55f2020d09e47a7ddbfb8d24790edf34 | 1,851 | py | Python | dmpr/policies.py | protocollabs/dmpr-core | 20810f3caba9f1299d5404dd633ed864db1cbc03 | [
"MIT"
] | 3 | 2017-04-07T11:31:46.000Z | 2018-09-24T06:57:39.000Z | dmpr/policies.py | protocollabs/dmpr-core | 20810f3caba9f1299d5404dd633ed864db1cbc03 | [
"MIT"
] | 27 | 2017-01-16T22:43:58.000Z | 2019-04-09T16:40:13.000Z | dmpr/policies.py | protocollabs/dmpr-core | 20810f3caba9f1299d5404dd633ed864db1cbc03 | [
"MIT"
] | 3 | 2017-01-16T18:30:27.000Z | 2017-08-23T12:40:11.000Z | import functools
from .path import Path
| 25.708333 | 77 | 0.627769 |
981a526d7708c5b0576b0f4728fce065b96bfacd | 21,905 | py | Python | stateMachineClass.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | 1 | 2021-10-04T17:44:04.000Z | 2021-10-04T17:44:04.000Z | stateMachineClass.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | 12 | 2019-07-16T08:31:50.000Z | 2019-11-19T17:58:53.000Z | stateMachineClass.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | null | null | null | #This is the class for construcing State Machines. The individual CAs
#(both inputs and states) run at 5 ms. See the notes for running faster or
#slower.
#There are test functions at the end.
#Note that to externally activate a CA State, you should only send
#excitatory connections to the first 8 neurons.
#Using ... | 44.795501 | 87 | 0.617119 |
981a62866509fd578f5f6ee676f52f1de3518aca | 1,318 | py | Python | src/tools/python/scrape_iso_country_codes.py | Justintime50/easypost-tools | b5118eec331cd9ec5502e617c73ead61fc322c94 | [
"MIT"
] | 1 | 2022-02-17T21:04:05.000Z | 2022-02-17T21:04:05.000Z | src/tools/python/scrape_iso_country_codes.py | Justintime50/easypost-tools | b5118eec331cd9ec5502e617c73ead61fc322c94 | [
"MIT"
] | null | null | null | src/tools/python/scrape_iso_country_codes.py | Justintime50/easypost-tools | b5118eec331cd9ec5502e617c73ead61fc322c94 | [
"MIT"
] | null | null | null | import json
import sys
import requests
from bs4 import BeautifulSoup
# Scrape the ISO Country Codes @ https://en.wikipedia.org/wiki/ISO_3166-1
# USAGE: venv/bin/python scrape_iso_country_codes.py
if __name__ == '__main__':
main()
| 34.684211 | 110 | 0.630501 |
981b46a42efd40cda2d50db0a7c7120a540247b8 | 275 | py | Python | setup.py | AlexMilanor/Q_gym | 3c2cc0a602233dbf3f8d1e5461725efc2f00481d | [
"MIT"
] | null | null | null | setup.py | AlexMilanor/Q_gym | 3c2cc0a602233dbf3f8d1e5461725efc2f00481d | [
"MIT"
] | null | null | null | setup.py | AlexMilanor/Q_gym | 3c2cc0a602233dbf3f8d1e5461725efc2f00481d | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='q_gym',
packages=find_packages(),
version='0.1.0',
description='Reinforcement Learning models to run on the environments of the OpenAI Gym.',
author='Alexandre A. A. Almeida',
license='MIT',
)
| 25 | 94 | 0.694545 |
981b7e5a635313c7a091099c9e5521f5ced7c348 | 3,769 | py | Python | kisseru/stage.py | chamibuddhika/kisseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 4 | 2018-08-07T12:51:32.000Z | 2021-04-07T22:10:26.000Z | kisseru/stage.py | chamibuddhika/kiseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 13 | 2018-07-30T17:57:40.000Z | 2019-01-22T16:42:51.000Z | kisseru/stage.py | chamibuddhika/kiseru | 6a77cbbf10f85c71a95c5e0d784bd41bdc5a00b6 | [
"Apache-2.0"
] | 1 | 2020-01-17T22:49:33.000Z | 2020-01-17T22:49:33.000Z | import os
import inspect
import urllib.request
import shutil
import time
import socket
from colors import Colors
from tasks import gen_runner
from tasks import Task
from tasks import Edge
from passes import Pass
from passes import PassResult
from utils import get_file_extention
from utils import get_file_name
from uti... | 32.773913 | 131 | 0.551871 |
981c4d0691e03fae2e87b2e125ed737c6938becf | 1,431 | py | Python | bmctool/utils/pulses/calc_power_equivalents.py | schuenke/BMCTool | 99ca94dab0e49a02eec774205731de80bef432d9 | [
"MIT"
] | 3 | 2021-03-29T10:43:39.000Z | 2021-08-16T09:57:54.000Z | bmctool/utils/pulses/calc_power_equivalents.py | schuenke/BMCTool | 99ca94dab0e49a02eec774205731de80bef432d9 | [
"MIT"
] | 4 | 2021-02-23T13:21:49.000Z | 2021-10-12T17:30:34.000Z | bmctool/utils/pulses/calc_power_equivalents.py | schuenke/BMCTool | 99ca94dab0e49a02eec774205731de80bef432d9 | [
"MIT"
] | null | null | null | """
calc_power_equivalents.py
"""
import numpy as np
from types import SimpleNamespace
def calc_power_equivalent(rf_pulse: SimpleNamespace,
tp: float,
td: float,
gamma_hz: float = 42.5764)\
-> np.ndarray:
"""
Calculates... | 33.27907 | 103 | 0.603075 |
981d2fbf4c8c6e7539560c121dc951fe0ad2f46e | 243 | py | Python | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | my_int = 22
my_float = 64.21
my_str_num = "38.24"
print("Int my Float! "+str(int(my_float)))
print("Float my int! "+str(float(my_int)))
print("Num my string! "+str(float(my_str_num)))
#add
foo = float(my_str_num)
foo = foo+my_float
print(foo)
| 22.090909 | 47 | 0.695473 |
e217b2d1cb22bc90807570f9d2817b3c713b7660 | 2,682 | py | Python | day11.py | kwinkunks/aoc18 | 4d664c0a6da8f0109dd8db2292c5906c098693c9 | [
"Apache-2.0"
] | 1 | 2018-12-02T22:09:26.000Z | 2018-12-02T22:09:26.000Z | day11.py | kwinkunks/aoc18 | 4d664c0a6da8f0109dd8db2292c5906c098693c9 | [
"Apache-2.0"
] | null | null | null | day11.py | kwinkunks/aoc18 | 4d664c0a6da8f0109dd8db2292c5906c098693c9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf 8 -*-
"""
Advent of Code 2018
Day X
"""
def powergrids(self, n):
"""This should really be a Grid.
"""
w, h = self.x - n + 1, self.y - n + 1
subgrids = [w*[0] for _ in range(h)]
for x, y, subgrid in self.traverse(n):
subgrids[y][x] = self.power(s... | 24.381818 | 67 | 0.50783 |
e21a48afd165335d659b5ee82935d3927a3b589f | 1,262 | py | Python | pyspark_kit/logger/log4j_proxy.py | saikocat/pyspark-kit | 7d15e6429888050a46ce23ba98aa8cda2767f84a | [
"MIT"
] | null | null | null | pyspark_kit/logger/log4j_proxy.py | saikocat/pyspark-kit | 7d15e6429888050a46ce23ba98aa8cda2767f84a | [
"MIT"
] | null | null | null | pyspark_kit/logger/log4j_proxy.py | saikocat/pyspark-kit | 7d15e6429888050a46ce23ba98aa8cda2767f84a | [
"MIT"
] | null | null | null | # log4jLogger = sc._jvm.org.apache.log4j
# LOGGER = log4jLogger.LogManager.getLogger(__name__)
# LOGGER.info("pyspark script logger initialized")
| 25.755102 | 65 | 0.627575 |
e21a7ec79d03d31431672c365c79e63660aac47f | 1,537 | py | Python | dataset/test_dataset.py | SABER-labs/SABERv2 | 028d403beadec3adebd51582fd8ef896a2fe3696 | [
"MIT"
] | 1 | 2022-03-02T02:52:24.000Z | 2022-03-02T02:52:24.000Z | dataset/test_dataset.py | SABER-labs/SABERv2 | 028d403beadec3adebd51582fd8ef896a2fe3696 | [
"MIT"
] | null | null | null | dataset/test_dataset.py | SABER-labs/SABERv2 | 028d403beadec3adebd51582fd8ef896a2fe3696 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from typing import Dict, List, Tuple, Union
import csv
from torch import Tensor
from torch.utils.data import Dataset
import torchaudio
if __name__ == "__main__":
from utils.config import config
loader = SimClrTestDataset(
root=config.dataset.test_root, tsv=config.... | 30.74 | 74 | 0.627196 |
e21b6fe53d69134213736a1276fb524ba7bd9d93 | 3,875 | py | Python | LexData/entity.py | DiFronzo/LexData | f32e112a774e3300f3a3908cca3645fd80b29f5c | [
"MIT"
] | 16 | 2019-08-27T03:55:45.000Z | 2021-12-04T13:58:01.000Z | LexData/entity.py | DiFronzo/LexData | f32e112a774e3300f3a3908cca3645fd80b29f5c | [
"MIT"
] | 16 | 2019-10-25T20:16:33.000Z | 2020-12-16T23:28:16.000Z | LexData/entity.py | DiFronzo/LexData | f32e112a774e3300f3a3908cca3645fd80b29f5c | [
"MIT"
] | 7 | 2019-12-15T11:47:00.000Z | 2021-05-14T16:30:40.000Z | import json
import logging
from typing import Dict, List, Union
from .claim import Claim
from .wikidatasession import WikidataSession
| 30.511811 | 88 | 0.551484 |
e21cc0d3b1c7ce3572e22140c0545c412f22261b | 9,715 | py | Python | tfLib/ops.py | zhangqianhui/Sparsely-Grouped-GAN | 71cb757d05309324c8d8f38b95a30a83574d7df7 | [
"MIT"
] | 62 | 2018-07-06T04:49:10.000Z | 2021-11-11T07:26:33.000Z | tfLib/ops.py | zhangqianhui/Sparsely-Grouped-GAN | 71cb757d05309324c8d8f38b95a30a83574d7df7 | [
"MIT"
] | 8 | 2018-08-31T02:37:52.000Z | 2022-03-12T00:33:16.000Z | tfLib/ops.py | zhangqianhui/Sparsely-Grouped-GAN | 71cb757d05309324c8d8f38b95a30a83574d7df7 | [
"MIT"
] | 16 | 2018-07-10T07:46:45.000Z | 2021-06-16T06:08:36.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib.layers.python.layers import batch_norm
from tensorflow.contrib.layers.python.layers import l2_regularizer
import functools
def conv_cond_concat(x, y):... | 38.86 | 130 | 0.582913 |
e21d93df6e09e189fe0531be7e6a41a04a6df768 | 2,091 | py | Python | Deploy Koalas/predicao_seguro_veicular.py | Alberlando/Projeto_Stack_Labs | dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2 | [
"MIT"
] | null | null | null | Deploy Koalas/predicao_seguro_veicular.py | Alberlando/Projeto_Stack_Labs | dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2 | [
"MIT"
] | null | null | null | Deploy Koalas/predicao_seguro_veicular.py | Alberlando/Projeto_Stack_Labs | dbf4ff2150f199e9e8a7bb7bd298d26bcaa6b5d2 | [
"MIT"
] | null | null | null | import pickle
import pandas as pd
from flask import Flask, render_template, request
# Pastas de template e assets
application = Flask(__name__, template_folder='template', static_folder='template/assets')
# Modelo Treinado
modelo = pickle.load(open('./models/modelo.pkl', 'rb'))
def get_data():
Annual_Premium ... | 32.169231 | 105 | 0.675275 |
e21ebbedab4084b07dd7feca9c6e28c31c047c5a | 9,732 | py | Python | smartsheet/folders.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | smartsheet/folders.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | smartsheet/folders.py | Funtimes-Smarts/Python-import-Smart | ffb99887d03e31d10da553c9ee8c7be1238816fc | [
"Apache-2.0"
] | null | null | null | # pylint: disable=C0111,R0902,R0913
# Smartsheet Python SDK.
#
# Copyright 2016 Smartsheet.com, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICE... | 33.215017 | 79 | 0.60522 |
e2200e5524f72a2e5ad4b0ce1842141e8401e750 | 770 | py | Python | tests/test_performance.py | blyxxyz/dtparse | de080668db3e74418e51b221669d9b2ebdb41ad8 | [
"MIT"
] | 71 | 2018-03-29T08:35:21.000Z | 2022-02-28T06:58:23.000Z | tests/test_performance.py | blyxxyz/dtparse | de080668db3e74418e51b221669d9b2ebdb41ad8 | [
"MIT"
] | 9 | 2018-04-09T12:42:06.000Z | 2021-10-14T18:43:21.000Z | tests/test_performance.py | blyxxyz/dtparse | de080668db3e74418e51b221669d9b2ebdb41ad8 | [
"MIT"
] | 3 | 2021-01-29T17:52:22.000Z | 2021-05-27T06:35:42.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import ciso8601
from datetime import datetime
import dtparse
| 26.551724 | 77 | 0.628571 |
e220223f379eea5955f8b9951c232b87a6d1acb8 | 1,201 | py | Python | Chapter 5/HelloLights.py | PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics | c6101487dfe078c25724ed7d58998f84a9ac57dd | [
"MIT"
] | null | null | null | Chapter 5/HelloLights.py | PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics | c6101487dfe078c25724ed7d58998f84a9ac57dd | [
"MIT"
] | null | null | null | Chapter 5/HelloLights.py | PacktPublishing/Mathematics-for-Game-Programming-and-Computer-Graphics | c6101487dfe078c25724ed7d58998f84a9ac57dd | [
"MIT"
] | null | null | null | from Cube import *
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
pygame.init()
screen_width = 500
screen_height = 500
screen = pygame.display.set_mode((screen_width, screen_height), DOUBLEBUF | OPENGL)
pygame.display.set_caption('Lights in OpenGL')
done = False
white = pygame.... | 28.595238 | 84 | 0.693589 |
e22154cd5b7e0c01be1d0db9da9d5ecb4fbf5209 | 6,480 | py | Python | src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
'mac_table': {
'vlans': {
'100': {
'vlan': '100',
'mac_addresses': {
'0000.0000.1111': {
'mac_address': '0000.0000.1111',
'entry': '+',
'interfaces': {
... | 39.512195 | 66 | 0.222685 |
e2215b9d1f31c1a285af3e852e3b2fdae988fa43 | 238 | py | Python | Demos/Demo-4.2 Modules/myprinter.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | 4 | 2018-04-28T13:43:20.000Z | 2021-03-11T16:10:35.000Z | Demos/Demo-4.2 Modules/myprinter.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | null | null | null | Demos/Demo-4.2 Modules/myprinter.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | null | null | null | """
my pretty printer module
"""
| 23.8 | 64 | 0.697479 |
e2223661c2c4f44a67ddc90bd3bf6d66591db78b | 5,504 | py | Python | simulate_SNVs.py | pjedge/longshot_study | da4d3ffb1a58575142a9712c21b12e2cf6083d2d | [
"MIT"
] | 3 | 2019-10-15T12:28:38.000Z | 2019-12-09T07:56:26.000Z | simulate_SNVs.py | pjedge/longshot_study | da4d3ffb1a58575142a9712c21b12e2cf6083d2d | [
"MIT"
] | null | null | null | simulate_SNVs.py | pjedge/longshot_study | da4d3ffb1a58575142a9712c21b12e2cf6083d2d | [
"MIT"
] | 2 | 2020-12-29T09:34:09.000Z | 2022-01-11T06:12:02.000Z | import copy
import random
import os
import pysam
import itertools
import numpy as np
from numpy.random import choice
VALID_CHROMS = set(['{}'.format(c) for c in range(1,23)]+['X']+['contig1','contig2','contig3'])
# estimate prior probability of genotypes using strategy described here:
# http://www.ncbi.nlm.nih.gov/pm... | 37.69863 | 133 | 0.544876 |
e2240a7bb6db4aec7ff5b824e862708bbb200092 | 26,604 | py | Python | examples/mlutils.py | HongGroup/AHO | 2f492fccc9535365ff618b4ffd04dd64248bddac | [
"MIT"
] | 4 | 2021-06-08T13:16:44.000Z | 2021-12-01T09:06:55.000Z | examples/mlutils.py | licheng-xu-echo/AHO | 2f492fccc9535365ff618b4ffd04dd64248bddac | [
"MIT"
] | null | null | null | examples/mlutils.py | licheng-xu-echo/AHO | 2f492fccc9535365ff618b4ffd04dd64248bddac | [
"MIT"
] | 2 | 2021-12-01T09:07:02.000Z | 2022-01-17T07:52:22.000Z | # -*- coding: utf-8 -*-
"""
@author: Li-Cheng Xu
"""
import numpy as np
from rdkit import Chem
import matplotlib.pyplot as plt
from sklearn.metrics import mean_absolute_error,r2_score
from sklearn.model_selection import train_test_split
from openbabel.pybel import readfile,Outputfile
def process_desc(ar... | 53.854251 | 165 | 0.598444 |
e2257823e08ea7f45c9fa382382cc45a54e32c63 | 4,736 | py | Python | computation_migration/calc/code/draw.py | mengyingzhou/ipv6_firewall_computation_migration | 3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842 | [
"MIT"
] | null | null | null | computation_migration/calc/code/draw.py | mengyingzhou/ipv6_firewall_computation_migration | 3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842 | [
"MIT"
] | null | null | null | computation_migration/calc/code/draw.py | mengyingzhou/ipv6_firewall_computation_migration | 3fbc1f910e1fffdf2d5bb25eed631dffc6d7d842 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import os
import numpy as np
import json
plt.rcParams["font.family"] = 'Arial Unicode MS' #
plt.rcParams['axes.unicode_minus'] = False #
data_source = '../data/'
if __name__ == "__main__":
# his_1()
# his_2()
his_3()
# | 29.234568 | 108 | 0.544975 |
e228dc884f57dfc425adce95624c25fcfa4c9559 | 1,591 | py | Python | 21-custom-form/Python/test-model/test-model.py | ibnmasud/AI-102-AIEngineer | 21e8d90300c88ca49a19e8f212400996ae7261ee | [
"MIT"
] | 163 | 2021-01-27T14:07:36.000Z | 2022-03-28T23:55:36.000Z | 21-custom-form/Python/test-model/test-model.py | ibnmasud/AI-102-AIEngineer | 21e8d90300c88ca49a19e8f212400996ae7261ee | [
"MIT"
] | 93 | 2021-01-27T16:07:03.000Z | 2022-03-31T13:49:49.000Z | 21-custom-form/Python/test-model/test-model.py | ibnmasud/AI-102-AIEngineer | 21e8d90300c88ca49a19e8f212400996ae7261ee | [
"MIT"
] | 243 | 2021-01-28T16:16:55.000Z | 2022-03-30T03:21:00.000Z | import os
from dotenv import load_dotenv
from azure.core.exceptions import ResourceNotFoundError
from azure.ai.formrecognizer import FormRecognizerClient
from azure.ai.formrecognizer import FormTrainingClient
from azure.core.credentials import AzureKeyCredential
if __name__ == '__main__':
main() | 34.586957 | 102 | 0.635449 |
e22c0befaa5512ccdd1b310ca9e86e617ac4186f | 79 | py | Python | web_parsers/utils/__init__.py | invanalabs/web-parser | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | 1 | 2019-10-06T23:11:32.000Z | 2019-10-06T23:11:32.000Z | web_parsers/utils/__init__.py | crawlerflow/extraction-engine | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | 2 | 2020-03-11T09:33:03.000Z | 2020-03-18T21:12:28.000Z | web_parsers/utils/__init__.py | crawlerflow/extraction-engine | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | null | null | null | from .other import yaml_to_json
from .selectors import convert_html_to_selector | 39.5 | 47 | 0.886076 |
e22c22ffbd9a0a2faef414a9d04083e1ef218ad7 | 7,830 | py | Python | cognito_emulator/userpool/views/oauth2.py | opencollector/cognito-emulator | 6351c3ec26425d57d58e6d6821d057058170e381 | [
"MIT"
] | 4 | 2020-11-17T09:29:03.000Z | 2021-07-28T22:08:52.000Z | cognito_emulator/userpool/views/oauth2.py | opencollector/cognito-emulator | 6351c3ec26425d57d58e6d6821d057058170e381 | [
"MIT"
] | null | null | null | cognito_emulator/userpool/views/oauth2.py | opencollector/cognito-emulator | 6351c3ec26425d57d58e6d6821d057058170e381 | [
"MIT"
] | 1 | 2020-11-21T12:30:06.000Z | 2020-11-21T12:30:06.000Z | # Copyright (c) 2020 Open Collector, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | 35.429864 | 88 | 0.671392 |
e22c2608e9d7b603ab0ab3546b2f860fe1b72dbd | 10,671 | py | Python | openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py | benman1/OpenML-Speed-Dating | db76372411eaf18d10513a3dd434a3414f2eda9a | [
"MIT"
] | 1 | 2020-12-17T20:25:13.000Z | 2020-12-17T20:25:13.000Z | openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py | benman1/OpenML-Speed-Dating | db76372411eaf18d10513a3dd434a3414f2eda9a | [
"MIT"
] | null | null | null | openml_speed_dating_pipeline_steps/openml_speed_dating_pipeline_steps.py | benman1/OpenML-Speed-Dating | db76372411eaf18d10513a3dd434a3414f2eda9a | [
"MIT"
] | null | null | null | """This module implements the pipeline steps needed to classify partner choices
in the OpenML Speed Dating challenge."""
from functools import lru_cache
import operator
from joblib import Parallel, delayed
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.imput... | 31.293255 | 79 | 0.608659 |
e22fc237bf632bd9754fd9b3152633f46c2df55e | 2,061 | py | Python | Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py | Imperial-lord/IITG | df4233905d2954511d5b16666f0d44cc38b9df90 | [
"MIT"
] | 4 | 2021-03-02T03:58:55.000Z | 2022-03-28T13:38:05.000Z | Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py | Imperial-lord/IITG | df4233905d2954511d5b16666f0d44cc38b9df90 | [
"MIT"
] | null | null | null | Semester 6/MA 374 (Financial Engg. Lab)/Lab 9/180123062_AB_q2.py | Imperial-lord/IITG | df4233905d2954511d5b16666f0d44cc38b9df90 | [
"MIT"
] | 4 | 2021-02-04T17:44:23.000Z | 2022-03-28T13:38:09.000Z | # Question 02, Lab 09
# AB Satyaprkash, 180123062
# imports
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# functions
# program body
fileNameArray = ['Stock Options/Index/INDEX_CE.csv', 'Stock Options/Index/INDEX_PE.csv', 'Stock Options/GAIL/GAIL_CE... | 36.157895 | 194 | 0.657448 |
e2300afbe7a94521779836a884634caba5b65620 | 486 | py | Python | scrnshot/screenshot.py | leovp/scrnshot | e5fa739663977955b072a1ae714935e5e4f1fa35 | [
"MIT"
] | 1 | 2017-11-22T22:14:12.000Z | 2017-11-22T22:14:12.000Z | scrnshot/screenshot.py | leovp/scrnshot | e5fa739663977955b072a1ae714935e5e4f1fa35 | [
"MIT"
] | null | null | null | scrnshot/screenshot.py | leovp/scrnshot | e5fa739663977955b072a1ae714935e5e4f1fa35 | [
"MIT"
] | null | null | null | import subprocess
import tempfile
def do_screenshot(url):
"""
Screenshot an `url` (fullscreen) and return a path to an image.
:param url: A previously validated URL of a webpage to capture.
:return: A Path-like object representing a screenshot.
"""
_, path = tempfile.mkstemp(suffix='.png')
... | 30.375 | 97 | 0.695473 |
e230749534777e0ccbaed6e1bc443c35cb0deff6 | 714 | py | Python | test/test_nstx/__init__.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 10 | 2015-12-18T22:38:07.000Z | 2020-03-02T09:15:50.000Z | test/test_nstx/__init__.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 14 | 2015-12-07T16:41:48.000Z | 2019-01-18T17:48:55.000Z | test/test_nstx/__init__.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 5 | 2016-05-20T17:35:23.000Z | 2019-01-17T19:00:06.000Z | from __future__ import print_function
import socket
from fdp.lib import datasources
# some valid shots for testing
shotlist = [204620, 204551, 142301, 204670, 204956, 204990]
| 31.043478 | 84 | 0.648459 |
e230cac0e9bca0e9832f66ff06f35ec5bb98d139 | 15,731 | py | Python | CUB/plots.py | TeodorChiaburu/ConceptBottleneck | a9f90743f9e3fff52446dfe0a0f256bc32033e4a | [
"MIT"
] | 75 | 2020-07-12T06:32:18.000Z | 2022-03-10T11:40:08.000Z | CUB/plots.py | TeodorChiaburu/ConceptBottleneck | a9f90743f9e3fff52446dfe0a0f256bc32033e4a | [
"MIT"
] | 13 | 2020-07-13T08:33:05.000Z | 2022-03-30T08:25:14.000Z | CUB/plots.py | TeodorChiaburu/ConceptBottleneck | a9f90743f9e3fff52446dfe0a0f256bc32033e4a | [
"MIT"
] | 16 | 2020-07-15T03:23:04.000Z | 2022-02-19T16:34:21.000Z |
import numpy as np
import matplotlib.pyplot as plt
r = {
# Normal experiments
'Independent': np.genfromtxt('IndependentModel__WithValSigmoid/results.txt'),
'Sequential': np.genfromtxt('SequentialModel__WithVal/results.txt'),
'Sequential_ConceptsBreakdown': np.genfromtxt('SequentialModel__WithVal/conce... | 53.14527 | 240 | 0.60473 |
e233adc9b22c4398d7a8beae60c358df0f7d7c2d | 2,104 | py | Python | tensorflow/python/data/experimental/ops/resampling.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 190,993 | 2015-11-09T13:17:30.000Z | 2022-03-31T23:05:27.000Z | tensorflow/python/data/experimental/ops/resampling.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 48,461 | 2015-11-09T14:21:11.000Z | 2022-03-31T23:17:33.000Z | tensorflow/python/data/experimental/ops/resampling.py | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 104,981 | 2015-11-09T13:40:17.000Z | 2022-03-31T19:51:54.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.254902 | 80 | 0.716255 |
e234414690173c77918ef824123cf90f04a2cbcc | 1,099 | py | Python | dump_ids.py | alexprz/NHIS_analyse | 466e944ed1002bf227cb1522d91daf9b80c7d7d5 | [
"MIT"
] | 1 | 2022-03-01T05:33:12.000Z | 2022-03-01T05:33:12.000Z | dump_ids.py | aperezlebel/benchmark_mv_approaches | 466e944ed1002bf227cb1522d91daf9b80c7d7d5 | [
"MIT"
] | null | null | null | dump_ids.py | aperezlebel/benchmark_mv_approaches | 466e944ed1002bf227cb1522d91daf9b80c7d7d5 | [
"MIT"
] | 1 | 2020-09-01T15:20:39.000Z | 2020-09-01T15:20:39.000Z | from argparse import Namespace
from itertools import product
from joblib import Parallel, delayed
import prediction
| 23.891304 | 90 | 0.536852 |
e23480de34ea3367e0215069e71041e9d6217090 | 649 | py | Python | exercicios/exe100/exe100.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | exercicios/exe100/exe100.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | exercicios/exe100/exe100.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | a = 50
print('\033[32m_\033[m' * a)
print(f'\033[1;32m{"SISTEMA QUE SORTEIA E SOMA PARES":=^{a}}\033[m')
print('\033[32m-\033[m' * a)
from random import randint
from time import sleep
numeros = list()
sorteia(numeros)
somapar(numeros)
| 21.633333 | 77 | 0.59168 |
e234bb2a04280183f76b137d872eee45b289f225 | 1,915 | py | Python | autosklearn/constants.py | wsyjwps1983/autosklearn | 2e29ebaca6bc26fa838f7c3b8b13960c600884e4 | [
"BSD-3-Clause"
] | null | null | null | autosklearn/constants.py | wsyjwps1983/autosklearn | 2e29ebaca6bc26fa838f7c3b8b13960c600884e4 | [
"BSD-3-Clause"
] | null | null | null | autosklearn/constants.py | wsyjwps1983/autosklearn | 2e29ebaca6bc26fa838f7c3b8b13960c600884e4 | [
"BSD-3-Clause"
] | 1 | 2019-04-01T11:53:20.000Z | 2019-04-01T11:53:20.000Z | # -*- encoding: utf-8 -*-
BINARY_CLASSIFICATION = 1
MULTICLASS_CLASSIFICATION = 2
MULTILABEL_CLASSIFICATION = 3
REGRESSION = 4
REGRESSION_TASKS = [REGRESSION]
CLASSIFICATION_TASKS = [BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION,
MULTILABEL_CLASSIFICATION]
TASK_TYPES = REGRESSION_TASKS + C... | 26.971831 | 73 | 0.696084 |
e235f31acb8ae353e5c75df0a1b68b12de85bdb9 | 92 | py | Python | pyzxing/__init__.py | Komugisama/pyzxing | d416a82824c55e9083b30d41b0dc2a9f652ad9ea | [
"MIT"
] | 107 | 2020-05-28T15:40:42.000Z | 2022-03-30T02:27:01.000Z | Prod_CV_NLP_API/flask/pyzxing/__init__.py | micintron/computer_vission_OCR | 1fdd521b334f6e5958958ccf816341531b783a21 | [
"CNRI-Python"
] | 30 | 2020-07-25T15:34:56.000Z | 2022-03-24T03:06:43.000Z | Prod_CV_NLP_API/flask/pyzxing/__init__.py | micintron/computer_vission_OCR | 1fdd521b334f6e5958958ccf816341531b783a21 | [
"CNRI-Python"
] | 19 | 2020-07-02T21:10:19.000Z | 2022-03-09T22:37:51.000Z | # coding=utf-8
"""The root of pyzxing namespace."""
from .reader import BarCodeReader #noqa | 30.666667 | 40 | 0.73913 |
e236e8bc6fd36c395d21926c8f38f313ab1c3fb5 | 314,305 | py | Python | models_nonconvex_simple/autocorr_bern35-35fix.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 7 | 2019-05-08T19:14:34.000Z | 2021-12-24T00:00:40.000Z | models_nonconvex_simple/autocorr_bern35-35fix.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | null | null | null | models_nonconvex_simple/autocorr_bern35-35fix.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 1 | 2019-05-10T18:34:18.000Z | 2019-05-10T18:34:18.000Z | # MINLP written by GAMS Convert at 08/13/20 17:37:47
#
# Equation counts
# Total E G L N X C B
# 1 0 0 1 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 117.673156 | 120 | 0.488274 |
e237ab6218d2278fe4e6deac02d0f478707e1998 | 4,374 | py | Python | submission/transit_model.py | atravitz/transit_models | e7351fc57b253551e7c7d50d60bf2ab859b2eda6 | [
"MIT"
] | null | null | null | submission/transit_model.py | atravitz/transit_models | e7351fc57b253551e7c7d50d60bf2ab859b2eda6 | [
"MIT"
] | null | null | null | submission/transit_model.py | atravitz/transit_models | e7351fc57b253551e7c7d50d60bf2ab859b2eda6 | [
"MIT"
] | null | null | null | import networkx as nx
import random
import numpy as np
from matplotlib import cm
import matplotlib.pyplot as plt
def add_line(path, g, name):
"""add a new line to a networkx graph
note: all nodes must already exist"""
new_line = np.loadtxt(path, dtype=int)
for i in range(len(new_line)-1):
... | 34.992 | 99 | 0.578875 |
e238163f8acd55691ab287c42a85b19501bfcfe7 | 3,362 | py | Python | signal_interpreter_server/tests/unit_tests/test_routes.py | mtormane/signal-interpreter-server | 6e96d520604db479c5d70e7ff372375e5552e346 | [
"MIT"
] | null | null | null | signal_interpreter_server/tests/unit_tests/test_routes.py | mtormane/signal-interpreter-server | 6e96d520604db479c5d70e7ff372375e5552e346 | [
"MIT"
] | null | null | null | signal_interpreter_server/tests/unit_tests/test_routes.py | mtormane/signal-interpreter-server | 6e96d520604db479c5d70e7ff372375e5552e346 | [
"MIT"
] | null | null | null | from unittest.mock import patch
import pytest
from werkzeug.exceptions import InternalServerError, BadRequest
from signal_interpreter_server.routes import interpret_signal
from signal_interpreter_server.routes import signal_interpreter_app, parser_factory
from signal_interpreter_server.exceptions import SignalError
... | 50.939394 | 121 | 0.672814 |
e2390611f4647b2e7e3551c1736652b488f23d92 | 425 | py | Python | backend/lib/utils/iterators.py | bayesimpact/tds-frontend | a4f47e384ef4fe4dc43c30423a1713c2c93dc87f | [
"Apache-2.0"
] | 15 | 2018-05-08T23:54:38.000Z | 2020-03-07T20:46:37.000Z | backend/lib/utils/iterators.py | akegan/encompass | 85852a91c646c62e8cd05f9c2b0c7cf0079ea7f2 | [
"Apache-2.0"
] | 297 | 2018-02-05T19:04:26.000Z | 2022-02-12T07:52:37.000Z | backend/lib/utils/iterators.py | bayesimpact/tds | a4f47e384ef4fe4dc43c30423a1713c2c93dc87f | [
"Apache-2.0"
] | 6 | 2018-05-21T19:51:15.000Z | 2019-03-21T19:20:27.000Z | """Iterators utils."""
| 26.5625 | 62 | 0.562353 |
e239d89aad607b40741aa259728cb33583bd2f79 | 3,526 | py | Python | Week-3/Class2.py | bansalbhavishaya/PythonCourse | d89cbd746279d1f9d6dcb9cda0e6f63848e94f40 | [
"MIT"
] | null | null | null | Week-3/Class2.py | bansalbhavishaya/PythonCourse | d89cbd746279d1f9d6dcb9cda0e6f63848e94f40 | [
"MIT"
] | null | null | null | Week-3/Class2.py | bansalbhavishaya/PythonCourse | d89cbd746279d1f9d6dcb9cda0e6f63848e94f40 | [
"MIT"
] | null | null | null | # oops in python
s1 = sample()
s1.show()
s1.putdata1(25)
s1.show()
print(s1.data1)
# in this as we can see that the data is public but if we put double underscore ( __ ) this makes the data to be private
s1 = sample()
s1.show()
s1.putdata1(25)
s1.show()
print(s1.__data1)
# Create a class with two privat... | 36.350515 | 203 | 0.615428 |
e23a8a1fd9ee7b65210f333c867d42311511632e | 209 | py | Python | noxfile.py | 0xflotus/pyheck | 852828f9d0bd5e9272ef6c85076d105965e05ca7 | [
"MIT"
] | 24 | 2022-01-24T16:19:26.000Z | 2022-02-17T21:12:40.000Z | noxfile.py | kevinheavey/pybip39 | 1f668feb8ebcfe009e87f853bff47876846f5c83 | [
"Apache-2.0"
] | 1 | 2022-01-20T22:52:24.000Z | 2022-01-20T22:52:24.000Z | noxfile.py | kevinheavey/pybip39 | 1f668feb8ebcfe009e87f853bff47876846f5c83 | [
"Apache-2.0"
] | 4 | 2022-01-20T22:48:38.000Z | 2022-01-28T01:16:12.000Z | # type: ignore
import nox
| 20.9 | 50 | 0.660287 |
e23aa280ead4993cea9b3c1ee67c0cfb1a5721dc | 845 | py | Python | download_models.py | AhsanAliLodhi/conditional-gans | b4e8299c59143507f9e16e965dfb659995db3b3e | [
"MIT"
] | null | null | null | download_models.py | AhsanAliLodhi/conditional-gans | b4e8299c59143507f9e16e965dfb659995db3b3e | [
"MIT"
] | null | null | null | download_models.py | AhsanAliLodhi/conditional-gans | b4e8299c59143507f9e16e965dfb659995db3b3e | [
"MIT"
] | null | null | null | import urllib.request
import zipfile
import os
url = 'https://syncandshare.lrz.de/dl/fiVRr3EeLiGxcoHXmW5yoWHq/models.zip'
print('Dlownloaing models (This might take time)')
urllib.request.urlretrieve(url, 'models.zip')
with zipfile.ZipFile('models.zip', 'r') as zip_ref:
print("extracting models")
zip_ref.extra... | 40.238095 | 86 | 0.784615 |
e23b814797f83ec93f19e86ffddbfaea18bceed4 | 708 | pyde | Python | mode/examples/Basics/Typography/Words/Words.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 1,224 | 2015-01-01T22:09:23.000Z | 2022-03-29T19:43:56.000Z | mode/examples/Basics/Typography/Words/Words.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 253 | 2015-01-14T03:45:51.000Z | 2022-02-08T01:18:19.000Z | mode/examples/Basics/Typography/Words/Words.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 225 | 2015-01-13T18:38:33.000Z | 2022-03-30T20:27:39.000Z | """
* Words.
*
* The text() function is used for writing words to the screen.
* The letters can be aligned left, center, or right with the
* textAlign() function.
"""
| 17.268293 | 63 | 0.574859 |
e23cfbce425720b8b34b74d88b27c40ed8ce71f8 | 1,892 | py | Python | flask/application/app_config.py | nydailynews/trumponomics | 4a979f49b8adf45760955caf1b6d34c20cbfc69f | [
"MIT"
] | 1 | 2019-06-03T19:22:34.000Z | 2019-06-03T19:22:34.000Z | flask/application/app_config.py | nydailynews/trumponomics | 4a979f49b8adf45760955caf1b6d34c20cbfc69f | [
"MIT"
] | null | null | null | flask/application/app_config.py | nydailynews/trumponomics | 4a979f49b8adf45760955caf1b6d34c20cbfc69f | [
"MIT"
] | 2 | 2018-11-22T03:09:52.000Z | 2019-06-22T19:28:02.000Z | #!/usr/bin/env python
# The app.page dict:
# 'title': '',
# 'url': '',
# 'description': '',
# 'author': '',
# 'datestamp': '',
# 'keywords': '',
# 'keywords_array': '',
# 'shareimg': '',
# 'shareimgdesc': '',
details = {
'base-unemployment': {
'title': '',
'description': ... | 23.65 | 38 | 0.399049 |
e23e8d88531a3fab00e76cb8fb7d0fb26f812c40 | 1,144 | py | Python | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | from docutils import nodes
| 38.133333 | 94 | 0.653846 |
e240199eef07bbbac4c91f15ad15d97cee55a920 | 2,905 | py | Python | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | null | null | null | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | 10 | 2020-06-06T00:04:08.000Z | 2022-03-12T00:05:16.000Z | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from datetime import datetime
User = settings.AUTH_USER_MODEL
# Technique
# Category
# Difficulty - Choices
# Ingredient
# Prep Time
# Cook Time
# quantity
| 30.260417 | 119 | 0.710155 |
e240ac6c4875acd9dc9a3981eae4c962d15c0da4 | 743 | py | Python | myblog/posts/migrations/0003_auto_20200621_1945.py | DevinDai13/MyBlog | 9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf | [
"Apache-2.0"
] | null | null | null | myblog/posts/migrations/0003_auto_20200621_1945.py | DevinDai13/MyBlog | 9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf | [
"Apache-2.0"
] | null | null | null | myblog/posts/migrations/0003_auto_20200621_1945.py | DevinDai13/MyBlog | 9d6a7b5f9a87b4d4e84f906cbeaf75756487b5bf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.5 on 2020-06-21 19:45
from django.db import migrations, models
| 25.62069 | 117 | 0.565276 |
e2414e6120f47710808e08205df25bc03519717f | 1,173 | py | Python | src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py | possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy | 880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5 | [
"MIT"
] | 83 | 2018-07-04T22:19:20.000Z | 2022-03-09T22:44:48.000Z | src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py | possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy | 880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5 | [
"MIT"
] | 9 | 2018-08-02T00:17:33.000Z | 2021-11-17T17:18:05.000Z | src/ch9-sqlalchemy/start/pypi_sqlalchemy/pypi/controllers/account_controller.py | possnfiffer/data-driven-web-apps-with-pyramid-and-sqlalchemy | 880dc4bc2a6d5dd5fcc91452725d5a1c7c9022c5 | [
"MIT"
] | 78 | 2018-07-28T14:07:07.000Z | 2022-01-15T07:06:42.000Z | from pyramid.view import view_config
# ################### INDEX #################################
# ################### LOGIN #################################
# ################### REGISTRATION ############################
# ################### LOGOUT ############################ | 23.938776 | 63 | 0.538789 |
e241acff81ab7a5ff0708fd2bf35315e3fae57e1 | 100 | py | Python | core/app/mqtt_services/apps.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | core/app/mqtt_services/apps.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | core/app/mqtt_services/apps.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.666667 | 36 | 0.78 |
e243561f750625be44774b3ce79a8ebb51a0b8d8 | 1,469 | py | Python | vent/core/network_tap/ncontrol/ncontrol.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | vent/core/network_tap/ncontrol/ncontrol.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | vent/core/network_tap/ncontrol/ncontrol.py | edgardmota/vent | 67b01abc059a3e9e8d16670c7058f0a9e267d8f1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import docker
import logging
import sys
import web
from rest.create import CreateR
from rest.delete import DeleteR
from rest.nics import NICsR
from rest.nlist import ListR
from rest.start import StartR
from rest.stop import StopR
module_logger = logging.getLogger(__name__)
if __name__ == '__... | 25.77193 | 78 | 0.62015 |
e246453b42dcd37dfd9577c8a2d5d504feec20c6 | 410 | py | Python | applications/prediction_bigball/container/c2_Twitter_Collector/app/predict.py | Dumpkin1996/clipper | 1a08bbdde846c3cfe76236c68548a848f71605e0 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:46:28.000Z | 2019-05-28T06:59:26.000Z | applications/prediction_clipper/container/c2_Twitter_Collector/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | null | null | null | applications/prediction_clipper/container/c2_Twitter_Collector/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | 4 | 2019-04-03T11:03:57.000Z | 2019-06-26T08:22:38.000Z | import io
import sys
import tweepy
import time
| 20.5 | 76 | 0.682927 |
e2479703efb51fcc66276bd6c78cfb1dad7d15bb | 891 | py | Python | tests/unit_tests/test_exceptions.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 9 | 2021-01-07T17:56:11.000Z | 2022-02-05T01:42:42.000Z | tests/unit_tests/test_exceptions.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 3 | 2021-05-26T16:17:33.000Z | 2021-12-17T09:25:06.000Z | tests/unit_tests/test_exceptions.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 3 | 2021-05-16T00:47:40.000Z | 2021-12-17T08:59:16.000Z | import pytest
from datacrunch.exceptions import APIException
ERROR_CODE = 'test_code'
ERROR_MESSAGE = "test message"
| 26.205882 | 69 | 0.702581 |
e2484c0e3f3a758de7ba5492e88d263a61c7d083 | 5,686 | py | Python | snoop/models.py | hoover/snoop | bd49b081418a8a01a1e469ab17759a4c5b20d850 | [
"MIT"
] | 5 | 2017-01-03T00:52:03.000Z | 2019-10-27T03:32:35.000Z | snoop/models.py | hoover/snoop | bd49b081418a8a01a1e469ab17759a4c5b20d850 | [
"MIT"
] | 25 | 2016-08-21T11:26:44.000Z | 2018-03-13T12:19:20.000Z | snoop/models.py | hoover/snoop | bd49b081418a8a01a1e469ab17759a4c5b20d850 | [
"MIT"
] | 6 | 2016-09-27T13:03:45.000Z | 2019-10-27T03:32:30.000Z | from pathlib import Path
from io import BytesIO
import json
from contextlib import contextmanager
import tempfile
import shutil
from django.db import models, transaction
from django.contrib.postgres.fields import JSONField
from django.conf import settings
| 31.414365 | 78 | 0.62522 |