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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
978cffc3f921c7c7b67a4b232b8199a57b3ee695 | 1,003 | py | Python | tests/slack_bolt/app/test_dev_server.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 504 | 2020-08-07T05:02:57.000Z | 2022-03-31T14:32:46.000Z | tests/slack_bolt/app/test_dev_server.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 560 | 2020-08-07T01:16:06.000Z | 2022-03-30T00:40:56.000Z | tests/slack_bolt/app/test_dev_server.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 150 | 2020-08-07T09:41:14.000Z | 2022-03-30T04:54:51.000Z | from slack_sdk import WebClient
from slack_bolt.app.app import SlackAppDevelopmentServer, App
from tests.mock_web_api_server import (
setup_mock_web_api_server,
cleanup_mock_web_api_server,
)
from tests.utils import remove_os_env_temporarily, restore_os_env
| 28.657143 | 80 | 0.711864 |
978dd9c54f9e671785c15a0757b30a883b691712 | 6,492 | py | Python | d2r_image/processing_data.py | mgleed/d2r_image | 0ba5317e65baa3d7e309866ed11a76ad22b30952 | [
"MIT"
] | 1 | 2022-03-29T20:04:48.000Z | 2022-03-29T20:04:48.000Z | d2r_image/processing_data.py | mgleed/d2r_image | 0ba5317e65baa3d7e309866ed11a76ad22b30952 | [
"MIT"
] | 2 | 2022-03-03T03:33:53.000Z | 2022-03-03T18:45:45.000Z | d2r_image/processing_data.py | mgleed/d2r_image | 0ba5317e65baa3d7e309866ed11a76ad22b30952 | [
"MIT"
] | 2 | 2022-03-28T18:10:30.000Z | 2022-03-29T20:56:02.000Z | from enum import Enum
import numpy as np
from d2r_image.data_models import ItemQuality
GAUS_FILTER = (19, 1)
EXPECTED_HEIGHT_RANGE = [round(num) for num in [x / 1.5 for x in [14, 40]]]
EXPECTED_WIDTH_RANGE = [round(num) for num in [x / 1.5 for x in [60, 1280]]]
BOX_EXPECTED_WIDTH_RANGE = [200, 900]
BOX_EXPECTED_HEIGH... | 31.362319 | 80 | 0.574399 |
9790b6d06414368e9d497ef1dcb4e77aa3745e0b | 1,224 | py | Python | fibonacci.py | irajtaghlidi/fibonacci-calculator | 05d7b1283f3cd87e6de0ace2fae27369b3d66387 | [
"Apache-2.0"
] | null | null | null | fibonacci.py | irajtaghlidi/fibonacci-calculator | 05d7b1283f3cd87e6de0ace2fae27369b3d66387 | [
"Apache-2.0"
] | null | null | null | fibonacci.py | irajtaghlidi/fibonacci-calculator | 05d7b1283f3cd87e6de0ace2fae27369b3d66387 | [
"Apache-2.0"
] | null | null | null | def fibonacci_element(n, computed = {0: 0, 1: 1}):
""" calculate N'th Fibonacci number. """
if n not in computed:
computed[n] = fibonacci_element(n-1, computed) + fibonacci_element(n-2, computed)
return computed[n]
def sequence_calc(nterms = 1):
""" Calculate Fibonacci sequence from start """... | 33.081081 | 112 | 0.675654 |
9792c168c5d105cccf02b6f845f731ab71aa1427 | 983 | py | Python | Demo/sgi/al/playold.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Demo/sgi/al/playold.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Demo/sgi/al/playold.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | # Play old style sound files (Guido's private format)
import al, sys, time
import AL
BUFSIZE = 8000
try:
main()
except KeyboardInterrupt:
sys.exit(1)
| 18.903846 | 65 | 0.636826 |
9795ddfbdd054e9b8dd493980cbd224f7b043ee9 | 18,506 | py | Python | src/repair_mesh.py | vg-lab/MeshReconstruct | a86b84edc752e71be525f423195ac85a92c29647 | [
"MIT"
] | null | null | null | src/repair_mesh.py | vg-lab/MeshReconstruct | a86b84edc752e71be525f423195ac85a92c29647 | [
"MIT"
] | null | null | null | src/repair_mesh.py | vg-lab/MeshReconstruct | a86b84edc752e71be525f423195ac85a92c29647 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import optparse
import os
import re
import sys
import vtk
from multiprocessing import Process
import parse_imx
RADIUS = 3 # For Open and Gauss
SCALE = 50.0 # For Rasterization
def write_image(image, filename):
"""Write vtk image data to file.""... | 33.046429 | 128 | 0.6486 |
97960ac5b9aba50b612559d324eaedb53f11ab47 | 1,855 | py | Python | tests/e2e/scale/test_scale_amq.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | tests/e2e/scale/test_scale_amq.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | tests/e2e/scale/test_scale_amq.py | nbalacha/ocs-ci | 9c5a5474d62777e868b80894d6b0f3567a7b605d | [
"MIT"
] | null | null | null | import logging
import pytest
import time
from ocs_ci.framework.testlib import E2ETest, scale
from ocs_ci.ocs import constants
from ocs_ci.ocs.amq import AMQ
from ocs_ci.helpers.helpers import default_storage_class
log = logging.getLogger(__name__)
| 28.106061 | 81 | 0.624259 |
9796bcbcd52bff788c15a63e53d1a5fee9b2780e | 1,930 | py | Python | pygin/engine.py | CarlosMatheus/Engine | 1467a919ad4489d0d4cb041b5f02aa67c6be6664 | [
"MIT"
] | 22 | 2018-12-29T16:31:19.000Z | 2022-03-07T13:12:40.000Z | pygin/engine.py | CarlosMatheus/Engine | 1467a919ad4489d0d4cb041b5f02aa67c6be6664 | [
"MIT"
] | 3 | 2018-08-14T14:45:40.000Z | 2020-01-22T08:03:27.000Z | pygin/engine.py | CarlosMatheus/Engine | 1467a919ad4489d0d4cb041b5f02aa67c6be6664 | [
"MIT"
] | 6 | 2018-05-29T20:02:02.000Z | 2021-11-13T19:35:23.000Z | import pygame
from .draw import Draw
from pygin.scene import Scene
from pygin.time import Time
from pygin.input import Input
| 30.15625 | 89 | 0.644041 |
97972a38251d7cc96a2696dd8c127ea79e4a72bc | 3,197 | py | Python | ancilla/ancilla/foundation/api/resources/wifi.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 7 | 2020-03-31T19:52:59.000Z | 2021-05-21T08:38:47.000Z | ancilla/ancilla/foundation/api/resources/wifi.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 15 | 2020-04-01T13:52:07.000Z | 2020-04-01T13:52:11.000Z | ancilla/ancilla/foundation/api/resources/wifi.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | null | null | null | '''
service.py
ancilla
Created by Kevin Musselman (kevin@frenzylabs.com) on 01/08/20
Copyright 2019 FrenzyLabs, LLC.
'''
import json
from .base import BaseHandler
import importlib
import socket
from ...data.models import Service
import asyncio
import functools
import requests
| 28.04386 | 120 | 0.59681 |
9797785f2d3c50bca700f76044973c6e9fd9075a | 8,468 | py | Python | train.py | Sumityg/Image-Classifier | fa209cb510ad59b0b83071feabe65ebc17e10b72 | [
"FTL",
"CNRI-Python",
"zlib-acknowledgement"
] | 1 | 2019-02-28T08:50:54.000Z | 2019-02-28T08:50:54.000Z | train.py | Sumityg/Image-Classifier | fa209cb510ad59b0b83071feabe65ebc17e10b72 | [
"FTL",
"CNRI-Python",
"zlib-acknowledgement"
] | null | null | null | train.py | Sumityg/Image-Classifier | fa209cb510ad59b0b83071feabe65ebc17e10b72 | [
"FTL",
"CNRI-Python",
"zlib-acknowledgement"
] | null | null | null | import numpy as np
import torch
from torch import nn
from torch import optim
import matplotlib.pyplot as plt
from torchvision import datasets,transforms,models
import torch.nn.functional as F
from collections import OrderedDict
import json
from torch.autograd import Variable
import argparse
import os
import sys
... | 41.106796 | 269 | 0.579121 |
9797bd89774b67abdf39b0c43bd052c7cbff9e10 | 29,678 | py | Python | bioimageio/spec/model/v0_3/schema.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | bioimageio/spec/model/v0_3/schema.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | bioimageio/spec/model/v0_3/schema.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | import typing
import warnings
from copy import deepcopy
from marshmallow import (
RAISE,
Schema,
ValidationError,
missing as missing_,
post_load,
pre_dump,
pre_load,
validates_schema,
)
from bioimageio.spec.rdf import v0_2 as rdf
from bioimageio.spec.shared import field_validators, fie... | 44.898638 | 177 | 0.686199 |
97980e6697871547e8a9f5ef6a6a0cdcf441451b | 6,982 | py | Python | python/apogee_drp/apred/through.py | sdss/apogee_drp | 20639052e56413a1afd862dfbf5d0262863fd98e | [
"BSD-3-Clause"
] | null | null | null | python/apogee_drp/apred/through.py | sdss/apogee_drp | 20639052e56413a1afd862dfbf5d0262863fd98e | [
"BSD-3-Clause"
] | null | null | null | python/apogee_drp/apred/through.py | sdss/apogee_drp | 20639052e56413a1afd862dfbf5d0262863fd98e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from holtztools import plots,html
from astropy.io import fits,ascii
import numpy as np
import math
import pdb
import argparse
import os
import matplotlib.pyplot as plt
def throughplot(instrument='apogee-s',outfile=None,inter=False) :
'''
Routine to make zeropoint/throughput plots from ap... | 36.941799 | 164 | 0.548267 |
97982ab43c36b6b26ef676190c28ea99752c23f5 | 2,167 | py | Python | plugins/operators/load_stats_redshift.py | slatawa/Airflow-Batch-Pipeline-S3-Redshift | 08e0d0e651b2ed58502ee800bfb100665bcd1676 | [
"Apache-2.0"
] | null | null | null | plugins/operators/load_stats_redshift.py | slatawa/Airflow-Batch-Pipeline-S3-Redshift | 08e0d0e651b2ed58502ee800bfb100665bcd1676 | [
"Apache-2.0"
] | null | null | null | plugins/operators/load_stats_redshift.py | slatawa/Airflow-Batch-Pipeline-S3-Redshift | 08e0d0e651b2ed58502ee800bfb100665bcd1676 | [
"Apache-2.0"
] | null | null | null | from airflow.models.baseoperator import BaseOperator
from airflow.providers.amazon.aws.hooks.s3 import S3Hook
from airflow.providers.postgres.hooks.postgres import PostgresHook
import tempfile
import pandas as pd
import numpy as np
| 40.12963 | 120 | 0.67928 |
97986092a8ee0db7b1d3e42b0266c32cb6daf513 | 8,377 | py | Python | classifiers/pseudolabel_sents.py | thinkmpink/police-fatalities-sample | a79fe6433c62879c6d1b9618ae2fd40c4a9aae11 | [
"MIT"
] | null | null | null | classifiers/pseudolabel_sents.py | thinkmpink/police-fatalities-sample | a79fe6433c62879c6d1b9618ae2fd40c4a9aae11 | [
"MIT"
] | null | null | null | classifiers/pseudolabel_sents.py | thinkmpink/police-fatalities-sample | a79fe6433c62879c6d1b9618ae2fd40c4a9aae11 | [
"MIT"
] | null | null | null | import argparse, functools as ft, getpass
import itertools as it, json, numpy as np, time
from spacy.en import English
from spacy.tokens.doc import Doc
from pathos.pp import ParallelPool
from pathos.threading import ThreadPool
FATAL_SYNSET = set(["dead","death","died","die","fatal","killed",
"kill","l... | 38.077273 | 98 | 0.664558 |
979a00fe5e4d9d2458b1bccdc3913f123575adcd | 12,731 | py | Python | graph_as923.py | tanupoo/lorawan_toa | 57ff520583cd3c06c6918a2763471c1edba4dc47 | [
"MIT"
] | 22 | 2018-01-03T05:45:19.000Z | 2021-04-08T02:27:26.000Z | graph_as923.py | radiojitter/lorawan_toa | fb1ed3b47b3b5cc3452d10a03b65f150f42009fb | [
"MIT"
] | 2 | 2019-05-05T10:33:12.000Z | 2019-05-10T08:10:24.000Z | graph_as923.py | radiojitter/lorawan_toa | fb1ed3b47b3b5cc3452d10a03b65f150f42009fb | [
"MIT"
] | 17 | 2017-09-30T13:48:28.000Z | 2021-06-22T21:37:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import matplotlib.pyplot as plt
from lorawan_toa import *
#########
#
fig = plt.figure(num=None, figsize=(16, 8), facecolor='w', edgecolor='k')
ax = fig.add_subplot(1,1,1)
ax.set_title("SF and ToA (BW=125 kHz)")
x = range... | 37.66568 | 97 | 0.636242 |
979a3838cb4e9e0778ad0477bae8fb4414eb8ace | 999 | py | Python | twitter_api_analysis.py | oliuba/twitter_friends_map | 5eddf2fcba65b777662d15ec78b76a959db14fa0 | [
"MIT"
] | 2 | 2021-02-23T15:14:09.000Z | 2021-02-23T15:14:30.000Z | twitter_api_analysis.py | oliuba/twitter_friends_map | 5eddf2fcba65b777662d15ec78b76a959db14fa0 | [
"MIT"
] | null | null | null | twitter_api_analysis.py | oliuba/twitter_friends_map | 5eddf2fcba65b777662d15ec78b76a959db14fa0 | [
"MIT"
] | null | null | null | """
This module works with Twitter API and gets user's friends' locations.
"""
import requests
def get_twitter_info(screen_name: str, bearer_token: str) -> dict:
"""
Returns a dictionary with a user's twitter actions and other data.
"""
base_url = 'https://api.twitter.com/'
search_url =... | 34.448276 | 92 | 0.671672 |
979a6517b48933cbdd6ac022d68721eae0739d94 | 972 | py | Python | Python Project/AlphaZero/utility/merge_model.py | staticbrightight/hajsdfh | 6667aac9d9b5fafcc86e64f03ad1f2e85568416c | [
"MIT"
] | 24 | 2018-11-06T14:16:19.000Z | 2022-01-21T02:19:18.000Z | Python Project/AlphaZero/utility/merge_model.py | staticbrightight/hajsdfh | 6667aac9d9b5fafcc86e64f03ad1f2e85568416c | [
"MIT"
] | 4 | 2018-11-27T13:59:53.000Z | 2020-07-23T06:28:12.000Z | Python Project/AlphaZero/utility/merge_model.py | staticbrightight/hajsdfh | 6667aac9d9b5fafcc86e64f03ad1f2e85568416c | [
"MIT"
] | 10 | 2019-05-05T00:06:42.000Z | 2022-01-21T02:19:21.000Z | import tensorflow as tf
if __name__ == "__main__":
with tf.Session() as sess:
game_dir = "Gobang"
model_dir = "model2_10_10_5"
batch = "11000"
#
sess.run(tf.global_variables_initializer())
# checkpointcheckpoint
latest_ckpt = tf.train.latest_checkpoint(".... | 37.384615 | 133 | 0.62963 |
979b934b57180cfe73a1e57dbb59cdf300e41582 | 343 | py | Python | examples/django/0_drf_base_no_db/example_app/views.py | e-kor/yappa | 1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649 | [
"MIT"
] | 41 | 2021-07-15T14:54:16.000Z | 2022-03-26T10:59:40.000Z | examples/django/0_drf_base_no_db/example_app/views.py | e-kor/yappa | 1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649 | [
"MIT"
] | 29 | 2021-08-04T08:04:26.000Z | 2021-08-19T09:50:30.000Z | examples/django/0_drf_base_no_db/example_app/views.py | e-kor/yappa | 1ea3c4e6a5ffb7a3fbd02d810a62f73a13b9d649 | [
"MIT"
] | 3 | 2021-07-23T14:56:40.000Z | 2022-03-24T16:09:55.000Z | from django.db import connection
from rest_framework.decorators import api_view
from rest_framework.response import Response
| 31.181818 | 69 | 0.641399 |
979c4655e61fbae772a4ccb8e0418c6fcf3c13f9 | 2,945 | py | Python | gui/wellplot/settings/layout/widgets/checkboxtable/loglayouttablemodel.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2019-10-04T13:54:51.000Z | 2021-05-21T19:36:15.000Z | gui/wellplot/settings/layout/widgets/checkboxtable/loglayouttablemodel.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 3 | 2019-11-19T17:06:09.000Z | 2020-01-18T20:39:54.000Z | gui/wellplot/settings/layout/widgets/checkboxtable/loglayouttablemodel.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2020-07-02T13:20:48.000Z | 2020-11-11T00:18:51.000Z | from PyQt4.QtCore import (QAbstractTableModel, QModelIndex, QVariant, Qt,
SIGNAL)
import operator
import logging
from globalvalues.constants.plottingconstants import PlottingConstants
from PyQt4 import QtGui, QtCore
from globalvalues.appsettings import AppSettings
logger = logging.getLogger('console') | 41.478873 | 115 | 0.617317 |
97a1f514303abbc127faf227be8b8b87a4e80659 | 635 | py | Python | visualization/read_mp_structures_to_pickle.py | rartino/hands-on-2 | 8f31b978f295a761dc0a7ae093184b3dbfa7e199 | [
"MIT"
] | null | null | null | visualization/read_mp_structures_to_pickle.py | rartino/hands-on-2 | 8f31b978f295a761dc0a7ae093184b3dbfa7e199 | [
"MIT"
] | null | null | null | visualization/read_mp_structures_to_pickle.py | rartino/hands-on-2 | 8f31b978f295a761dc0a7ae093184b3dbfa7e199 | [
"MIT"
] | 1 | 2021-09-18T21:26:30.000Z | 2021-09-18T21:26:30.000Z | #!/usr/bin/env python3
import json, io, pickle
import numpy
from numpy.lib.recfunctions import append_fields
import ase.io
read_mp_structures_to_pickle('mp_data.json','mp_structures.pickle')
| 27.608696 | 67 | 0.656693 |
97a20a38f8c5cdeec429b1ab77a0368e4cb8262b | 795 | py | Python | Aula_6/exercico3.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_6/exercico3.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | Aula_6/exercico3.py | Mateus-Silva11/AulasPython | d34dc4f62ade438e68b0a80e0baac4d6ec0d378e | [
"MIT"
] | null | null | null | #--- Exerccio 3 - Foreach
#--- Escreva programa que leia as notas (4) de 10 alunos
#--- Armazene as notas e os nomes em listas
#--- Imprima:
# 1- O nome dos alunos
# 2- Mdia do aluno
# 3- Resuldo (Aprovado>=7.0)
notas =[]
nomes = []
media = 0
a = 0
b = 1
c = 2
d = 3
for d in range(1,11)... | 21.486486 | 56 | 0.509434 |
97a20cf92a7e27918a91a5f9c8f8441eeb5e37ac | 1,789 | py | Python | sas_kernel/magics/sas_session_magic.py | gvelasq/sas_kernel | dfaf65fe538916168a9311ebba600bdc20c36aaa | [
"Apache-2.0"
] | 207 | 2016-04-01T18:38:38.000Z | 2022-03-18T12:33:10.000Z | sas_kernel/magics/sas_session_magic.py | gvelasq/sas_kernel | dfaf65fe538916168a9311ebba600bdc20c36aaa | [
"Apache-2.0"
] | 62 | 2016-04-01T19:10:21.000Z | 2022-03-21T18:50:16.000Z | sas_kernel/magics/sas_session_magic.py | gvelasq/sas_kernel | dfaf65fe538916168a9311ebba600bdc20c36aaa | [
"Apache-2.0"
] | 87 | 2016-04-01T18:22:08.000Z | 2022-02-13T21:51:54.000Z | #
# Copyright SAS Institute
#
# 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... | 33.12963 | 75 | 0.667971 |
97a299f800ad6b038cab6738576d52bb51073986 | 24,794 | py | Python | backend/save_routes.py | saatchibhalla/metrics-mvp | edd4c49fd4265261b7dd3f9f9bd5564045427aa1 | [
"MIT"
] | null | null | null | backend/save_routes.py | saatchibhalla/metrics-mvp | edd4c49fd4265261b7dd3f9f9bd5564045427aa1 | [
"MIT"
] | null | null | null | backend/save_routes.py | saatchibhalla/metrics-mvp | edd4c49fd4265261b7dd3f9f9bd5564045427aa1 | [
"MIT"
] | null | null | null | from datetime import date
from models import gtfs, config, util, nextbus, routeconfig
import argparse
import shapely
import partridge as ptg
import numpy as np
from pathlib import Path
import requests
import json
import boto3
import gzip
import hashlib
import math
import zipfile
# Downloads and parses the GTFS specifi... | 41.049669 | 180 | 0.64927 |
97a3feb428241616a65dc2b5c9e6e0c1f3acdc21 | 3,136 | py | Python | Datasets/avletters.py | elendres00/subspace-learning | 9b3a9c8f1cd706984314f9108c1fbbe04b778214 | [
"BSD-3-Clause"
] | null | null | null | Datasets/avletters.py | elendres00/subspace-learning | 9b3a9c8f1cd706984314f9108c1fbbe04b778214 | [
"BSD-3-Clause"
] | null | null | null | Datasets/avletters.py | elendres00/subspace-learning | 9b3a9c8f1cd706984314f9108c1fbbe04b778214 | [
"BSD-3-Clause"
] | null | null | null | """AVLetters lip dataset.
The original dataset is available from
http://www.ee.surrey.ac.uk/Projects/LILiR/datasets/avletters1/index.html
This dataset consists of three repetitions by each of 10 talkers,
five male (two with moustaches) and five female,
of the isolated letters A-Z, a total of 780 utterances
Refe... | 32 | 86 | 0.606505 |
97a55329595ecfe4821d9aa4c929ccae964b38fa | 3,761 | py | Python | collections_loops.py | grzegorzwojdyga/SDA_excercises_3 | 83d47dfff97186254e39d2219b946f9cb31a036b | [
"MIT"
] | null | null | null | collections_loops.py | grzegorzwojdyga/SDA_excercises_3 | 83d47dfff97186254e39d2219b946f9cb31a036b | [
"MIT"
] | null | null | null | collections_loops.py | grzegorzwojdyga/SDA_excercises_3 | 83d47dfff97186254e39d2219b946f9cb31a036b | [
"MIT"
] | null | null | null | def task1(s):
"""
Function which receives a sequence of comma-separated numbers and generate a list and a tuple which contains
every number
Input: string with comma separated numbers
Output: list and tuple with all the numbers
"""
pass
def task2():
"""
Function which receives a se... | 23.216049 | 133 | 0.645573 |
97a68f7166e1342b586f210540af9d233216cf14 | 3,215 | py | Python | python/tests/dataframe_extension_test.py | juhoautio-rovio/rovio-ingest | b03af9c7afe66bd5dec5cb909f93c85ee0743247 | [
"Apache-2.0"
] | 24 | 2021-04-08T07:12:38.000Z | 2022-03-13T11:51:15.000Z | python/tests/dataframe_extension_test.py | juhoautio-rovio/rovio-ingest | b03af9c7afe66bd5dec5cb909f93c85ee0743247 | [
"Apache-2.0"
] | 13 | 2021-04-13T09:01:28.000Z | 2022-03-22T12:59:54.000Z | python/tests/dataframe_extension_test.py | juhoautio-rovio/rovio-ingest | b03af9c7afe66bd5dec5cb909f93c85ee0743247 | [
"Apache-2.0"
] | 10 | 2021-04-08T06:53:48.000Z | 2021-12-17T07:31:58.000Z | #
# Copyright 2021 Rovio Entertainment Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 40.696203 | 101 | 0.699222 |
97a716c69dad9839af2fa60471bca2c16464c178 | 6,443 | py | Python | examples/protocols/http_server/file_serving/http_server_file_serving_test.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | 8,747 | 2016-08-18T14:58:24.000Z | 2022-03-31T20:58:55.000Z | examples/protocols/http_server/file_serving/http_server_file_serving_test.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | 8,603 | 2016-08-20T08:55:56.000Z | 2022-03-31T23:04:01.000Z | examples/protocols/http_server/file_serving/http_server_file_serving_test.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | 6,380 | 2016-08-18T18:17:00.000Z | 2022-03-31T22:25:57.000Z | #!/usr/bin/env python
#
# Copyright 2021 Espressif Systems (Shanghai) CO LTD
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 43.533784 | 149 | 0.719851 |
97a901f5d0b5c0c84bb0fb29b11466b8f67a0bc3 | 14,948 | py | Python | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/MoveFeatureBySpeed.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/MoveFeatureBySpeed.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/MoveFeatureBySpeed.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | 41.179063 | 179 | 0.453104 |
97aa12a332ccb90915beee0fbbc02c5b1e6f7be1 | 809 | py | Python | sqlite_dissect/file/journal/jounal.py | Defense-Cyber-Crime-Center/sqlite-dissect | e1a6c19928bc092bf7aeaff71072634f77a452ea | [
"MIT"
] | 12 | 2021-10-21T21:23:51.000Z | 2022-03-13T03:01:53.000Z | sqlite_dissect/file/journal/jounal.py | hartescout/sqlite-dissect | c4cd1047837a8bc6bbfa69f448149d046a7cc703 | [
"MIT"
] | 21 | 2021-09-13T17:00:33.000Z | 2022-03-31T12:56:56.000Z | sqlite_dissect/file/journal/jounal.py | hartescout/sqlite-dissect | c4cd1047837a8bc6bbfa69f448149d046a7cc703 | [
"MIT"
] | 1 | 2021-10-21T22:00:07.000Z | 2021-10-21T22:00:07.000Z | from re import sub
from sqlite_dissect.constants import FILE_TYPE
from sqlite_dissect.file.file_handle import FileHandle
"""
journal.py
This script holds the class to parse the rollback journal file.
This script holds the following object(s):
RollbackJournal(object)
"""
| 24.515152 | 103 | 0.698393 |
97aa84f3016955d3e64cde4032643625a6eea751 | 215 | py | Python | main_app/needs/__init__.py | sashalavrus/cost_app | cc7443a2ac3f7b61d4ec94c83026d1cc056e7cf4 | [
"MIT"
] | null | null | null | main_app/needs/__init__.py | sashalavrus/cost_app | cc7443a2ac3f7b61d4ec94c83026d1cc056e7cf4 | [
"MIT"
] | 4 | 2020-06-26T13:57:34.000Z | 2022-03-12T00:37:34.000Z | main_app/needs/__init__.py | sashalavrus/cost_app | cc7443a2ac3f7b61d4ec94c83026d1cc056e7cf4 | [
"MIT"
] | null | null | null | from flask import Blueprint
needs = Blueprint('needs', __name__)
from . import views
from ..models import Permission
| 17.916667 | 38 | 0.786047 |
97aba16d4df8beee9cf26f4b2ecf79c5ad7e8189 | 534 | py | Python | mal/parsers/anime/pictures.py | Nearata/myanimelist-rest-api | f254e53e7f54415c6b11f5b2e9a8afe142975f70 | [
"Unlicense"
] | 1 | 2020-11-11T14:55:23.000Z | 2020-11-11T14:55:23.000Z | mal/parsers/anime/pictures.py | Nearata/myanimelist-rest-api | f254e53e7f54415c6b11f5b2e9a8afe142975f70 | [
"Unlicense"
] | 5 | 2021-03-31T19:26:31.000Z | 2021-08-09T13:33:07.000Z | mal/parsers/anime/pictures.py | Nearata/myanimelist-rest-api | f254e53e7f54415c6b11f5b2e9a8afe142975f70 | [
"Unlicense"
] | null | null | null | from bs4 import BeautifulSoup
| 26.7 | 76 | 0.428839 |
97ac16aecb53b26dd9782a63860ed5791b8993c1 | 339 | py | Python | afternoon_sessions/alive/boilerplate/manager.py | renewfrl/python2 | 61abd0a8215ad6c8d90e8da40c7d9cfe492b8d2d | [
"CNRI-Python"
] | null | null | null | afternoon_sessions/alive/boilerplate/manager.py | renewfrl/python2 | 61abd0a8215ad6c8d90e8da40c7d9cfe492b8d2d | [
"CNRI-Python"
] | null | null | null | afternoon_sessions/alive/boilerplate/manager.py | renewfrl/python2 | 61abd0a8215ad6c8d90e8da40c7d9cfe492b8d2d | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python3
from flask_script import Manager
from flask import Flask
from task import check_alive
# use Flask framework
app = Flask(__name__)
manager = Manager(app)
if __name__ == "__main__":
manager.run()
| 15.409091 | 32 | 0.713864 |
97ac51c2848f660af486a16579c5dc13497a5b73 | 160 | py | Python | main.py | vehne/Maiwagen | fb385d840fee298d073ab07306277ed3d3c5fea8 | [
"MIT"
] | null | null | null | main.py | vehne/Maiwagen | fb385d840fee298d073ab07306277ed3d3c5fea8 | [
"MIT"
] | null | null | null | main.py | vehne/Maiwagen | fb385d840fee298d073ab07306277ed3d3c5fea8 | [
"MIT"
] | null | null | null | import kivy
kivy.require('1.10.0') # Aktuell verwendete Kivy Version
from kivy.app import App
meineAnwendung=App()
print(meineAnwendung)
meineAnwendung.run() | 20 | 57 | 0.7875 |
97acd1ee889e1251e45987565ca07079aea6a3cf | 2,794 | py | Python | src/data/common.py | mnschmit/lm-lexical-inference | 85121102459a1f79ad5df68efce4987402fca415 | [
"MIT"
] | 5 | 2021-02-24T03:59:36.000Z | 2022-03-30T08:36:58.000Z | src/data/common.py | mnschmit/lm-lexical-inference | 85121102459a1f79ad5df68efce4987402fca415 | [
"MIT"
] | 1 | 2022-03-03T15:32:17.000Z | 2022-03-11T09:01:38.000Z | src/data/common.py | mnschmit/lm-lexical-inference | 85121102459a1f79ad5df68efce4987402fca415 | [
"MIT"
] | 2 | 2021-07-26T07:42:12.000Z | 2022-01-29T18:36:39.000Z | from typing import Optional, List, TypeVar, Iterable
import re
PREM_KEY = 'premise'
HYPO_KEY = 'hypothesis'
LABEL_KEY = 'label'
SENT_KEY = 'sentence'
ANTI_KEY = 'neg_sentence'
MASKED_SENT_KEY = 'masked_sentence'
MASKED_ANTI_KEY = 'masked_neg_sentence'
PATTERNS = [
"{pal} {prem} {par}, which means that {hal} {hyp... | 30.703297 | 90 | 0.602362 |
97ae848b114ecd7f15ed548822e71b264b2b1846 | 88 | py | Python | ztlearn/dl/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 30 | 2018-03-12T19:16:27.000Z | 2021-12-16T05:32:38.000Z | ztlearn/dl/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-06-13T03:47:15.000Z | 2018-11-05T21:33:34.000Z | ztlearn/dl/__init__.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-04-30T07:42:47.000Z | 2022-01-31T11:35:53.000Z | # -*- coding: utf-8 -*-
# import packages(s)
from . import layers
from . import models
| 14.666667 | 23 | 0.647727 |
97af64566d82221c7208c36ac5931c23656c29f7 | 588 | py | Python | setup.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | null | null | null | setup.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | null | null | null | setup.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
try:
with open('requirements.txt') as f:
required = f.read().splitlines()
except:
required = ['requests>=2.7.0', 'pyrestcli>=0.6.4']
try:
with open('test_requirements.txt') as f:
test_required = f.read().splitlines()
except:
pass
se... | 24.5 | 54 | 0.62415 |
97afb71c7e9794f54839dad5cb3620f7ebd2594c | 617 | py | Python | proc/updatepreprint/setup.py | paratiuid/search-journals | f49391fb68cbc057250895f4a127c1befae28cd2 | [
"BSD-2-Clause"
] | null | null | null | proc/updatepreprint/setup.py | paratiuid/search-journals | f49391fb68cbc057250895f4a127c1befae28cd2 | [
"BSD-2-Clause"
] | null | null | null | proc/updatepreprint/setup.py | paratiuid/search-journals | f49391fb68cbc057250895f4a127c1befae28cd2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name="UpdatePrePrint",
version='0.1-beta',
description="Update Pre-Print articles to Solr",
author="SciELO",
author_email="scielo-dev@googlegroups.com",
license="BSD",
url="https://github.com/scieloorg/search-journals/tree/beta/proc/... | 28.045455 | 85 | 0.649919 |
97afe542447e2b3b30622e00a44f140834937e4e | 1,919 | py | Python | needle/modules/comms/certs/install_ca_mitm.py | yeyintminthuhtut/needle | c8bb63de88553fed2196f6c56033935b84c6aaaf | [
"BSD-3-Clause"
] | 2 | 2021-01-11T07:11:29.000Z | 2021-12-21T00:57:47.000Z | needle/modules/comms/certs/install_ca_mitm.py | yeyintminthuhtut/needle | c8bb63de88553fed2196f6c56033935b84c6aaaf | [
"BSD-3-Clause"
] | null | null | null | needle/modules/comms/certs/install_ca_mitm.py | yeyintminthuhtut/needle | c8bb63de88553fed2196f6c56033935b84c6aaaf | [
"BSD-3-Clause"
] | null | null | null | from core.framework.module import BaseModule
from core.utils.constants import Constants
| 44.627907 | 135 | 0.544554 |
97b0760f8883d9bb63483e03cdd5fcbcec371056 | 2,239 | py | Python | dotdrop/dotdrop/templategen.py | pouya-barzegar/nerdyDots | 1258380ac70cc4cdbd8f42bd0c75e1875b68aea1 | [
"Unlicense"
] | 4 | 2017-04-16T14:54:59.000Z | 2021-10-15T01:54:57.000Z | dotdrop/dotdrop/templategen.py | pouya-barzegar/nerdyDots | 1258380ac70cc4cdbd8f42bd0c75e1875b68aea1 | [
"Unlicense"
] | null | null | null | dotdrop/dotdrop/templategen.py | pouya-barzegar/nerdyDots | 1258380ac70cc4cdbd8f42bd0c75e1875b68aea1 | [
"Unlicense"
] | null | null | null | """
author: deadc0de6 (https://github.com/deadc0de6)
Copyright (c) 2017, deadc0de6
jinja2 template generator
"""
import os
import utils
from jinja2 import Environment, Template, FileSystemLoader
BLOCK_START = '{%@@'
BLOCK_END = '@@%}'
VAR_START = '{{@@'
VAR_END = '@@}}'
COMMENT_START = '{#@@'
COMMENT_END = '@@#}'
| 32.449275 | 68 | 0.575257 |
97b2cd4e209a4c3126c0c6d26ae3fcec98ba3350 | 877 | py | Python | Source/LCD/GooglyScreen/MicroPython/main.py | McNerdius/GooglyEyes | 003414dd2001a539dbfb1ee161bb21f5c71d105d | [
"MIT"
] | null | null | null | Source/LCD/GooglyScreen/MicroPython/main.py | McNerdius/GooglyEyes | 003414dd2001a539dbfb1ee161bb21f5c71d105d | [
"MIT"
] | 1 | 2021-09-04T02:36:59.000Z | 2021-09-04T04:31:56.000Z | Source/LCD/GooglyScreen/MicroPython/main.py | McNerdius/GooglyEyes | 003414dd2001a539dbfb1ee161bb21f5c71d105d | [
"MIT"
] | null | null | null | import machine
from machine import Pin, I2C
import googlyscreen, functions
i2c_builtin = I2C(scl=Pin(5), sda=Pin(4), freq=400000) # 5 = D1, 4 = D2
screen = googlyscreen.GooglyScreen(i2c_builtin)
screen.text("hello world !", 14, 0)
while True:
screen.text("double tap", 12, 16)
screen.text("to continue",... | 18.270833 | 72 | 0.597491 |
97b5b6dde1004286ad41590b88d0bd81e688d371 | 4,073 | py | Python | service/e2e_tests/elasticsearch_fixtures/elasticsearch.py | surfedushare/search-portal | f5486d6b07b7b04a46ce707cee5174db4f8da222 | [
"MIT"
] | 2 | 2021-08-19T09:40:59.000Z | 2021-12-14T11:08:20.000Z | service/e2e_tests/elasticsearch_fixtures/elasticsearch.py | surfedushare/search-portal | f5486d6b07b7b04a46ce707cee5174db4f8da222 | [
"MIT"
] | 159 | 2020-05-14T14:17:34.000Z | 2022-03-23T10:28:13.000Z | service/e2e_tests/elasticsearch_fixtures/elasticsearch.py | nppo/search-portal | aedf21e334f178c049f9d6cf37cafd6efc07bc0d | [
"MIT"
] | 1 | 2021-11-11T13:37:22.000Z | 2021-11-11T13:37:22.000Z | NL_MATERIAL = {
"math": {
"title": "Didactiek van wiskundig denken",
"text": "Leermateriaal over wiskunde en didactiek op de universiteit.",
"url": "https://maken.wikiwijs.nl/91192/Wiskundedidactiek_en_ICT",
"files": [
[{
"mime_type": "application/x-zip",
... | 41.989691 | 117 | 0.595384 |
97b6c4d85262fccfceaad1d9506e84c5a29675db | 2,171 | py | Python | modules/dbnd/test_dbnd/py2only/test_python2_newstr.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | modules/dbnd/test_dbnd/py2only/test_python2_newstr.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | modules/dbnd/test_dbnd/py2only/test_python2_newstr.py | busunkim96/dbnd | 0191fdcd4c4fbd35006f1026d1a55b2abab9097b | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | from __future__ import absolute_import
import logging
import pytest
import six
from dbnd import parameter, task
from dbnd._core.current import try_get_current_task
from dbnd._core.task_ctrl.task_ctrl import TaskCtrl
from targets.values import ObjectValueType, StrValueType
if six.PY2:
from future.builtins impor... | 31.926471 | 82 | 0.731921 |
97b740717ca0bdeb0bb1cbe8a4771b0412e31734 | 503 | py | Python | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | phone=set(["mi","apple","samsung","giomee","jio","nokia","karbon"])
tv=set(["samsung","apple","onida","vediocon"])
brand=phone.difference(tv)
print "brands in phone : ",phone
print "brands in tv : ",tv
print "phone brands that do not have tv : ",brand
'''
OUTPUT:
brands in phone : set(['apple', 'samsung', 'jio', 'nok... | 35.928571 | 86 | 0.626243 |
97b7f98fb4dcb1c29573d17798cd7573dcf3ceb7 | 9,377 | py | Python | src/ocr/word_image.py | fgulan/PyOCR | 2e1350337c744e43c7beef0f788bd70be6117c5d | [
"MIT"
] | null | null | null | src/ocr/word_image.py | fgulan/PyOCR | 2e1350337c744e43c7beef0f788bd70be6117c5d | [
"MIT"
] | null | null | null | src/ocr/word_image.py | fgulan/PyOCR | 2e1350337c744e43c7beef0f788bd70be6117c5d | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from ocr_image import OCRImage
from utils.helpers import debug_plot_array, debug_display_image
from utils import hist, constants
from char_image import CharImage
from skimage.morphology import skeletonize, thin
from skimage import img_as_ubyte
| 35.11985 | 90 | 0.637091 |
97b811c412ae55b2053727701480b3050a16e926 | 17,024 | py | Python | society_manage/api/tests.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | 4 | 2019-02-23T13:34:48.000Z | 2019-04-09T12:44:19.000Z | society_manage/api/tests.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | 134 | 2019-01-29T03:49:54.000Z | 2021-04-08T18:44:57.000Z | society_manage/api/tests.py | JeekStudio/StudentPlatform | d2cccef6555a7c9d137ecab54dbbd4aa219be57b | [
"MIT"
] | null | null | null | import os, json
from PIL import Image, ImageChops
from rest_framework.test import APIClient
from django.utils import timezone
from testing.testcases import TestCase
from society.constants import SocietyType, SocietyStatus, JoinSocietyRequestStatus, ActivityRequestStatus
from society.models import JoinSocietyRequest, ... | 36.298507 | 105 | 0.627702 |
97b8b1daa6034510ae337b2235e381b62f1dfd4a | 924 | py | Python | python/easy/1304_Find_N_Unique_Integers_Sum_up_to_Zero.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | 1 | 2021-05-22T03:27:33.000Z | 2021-05-22T03:27:33.000Z | python/easy/1304_Find_N_Unique_Integers_Sum_up_to_Zero.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | null | null | null | python/easy/1304_Find_N_Unique_Integers_Sum_up_to_Zero.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | null | null | null | from typing import *
if __name__ == "__main__":
so = Solution()
print(so.sumZero(5))
| 35.538462 | 105 | 0.587662 |
97b9073a95d5258374509299909ca5c3f894e55a | 19,261 | py | Python | casparser/analysis/gains.py | rathishg/casparser | 6abd191518c5e28216674bedfc3f25c01a38c933 | [
"MIT"
] | null | null | null | casparser/analysis/gains.py | rathishg/casparser | 6abd191518c5e28216674bedfc3f25c01a38c933 | [
"MIT"
] | null | null | null | casparser/analysis/gains.py | rathishg/casparser | 6abd191518c5e28216674bedfc3f25c01a38c933 | [
"MIT"
] | null | null | null | import csv
from collections import deque
from dataclasses import dataclass
from decimal import Decimal
from datetime import date
import io
import itertools
from typing import List, Optional
from dateutil.parser import parse as dateparse
from dateutil.relativedelta import relativedelta
from casparser.exceptions import... | 34.272242 | 100 | 0.545091 |
97bae35ffe25002d889b83d447288ed4c644e1ee | 255 | py | Python | src/main.py | mjovanc/mvc-simple-registry | 1db4c8d6d0ca80fe83bf38196d0a839454145ddf | [
"MIT"
] | null | null | null | src/main.py | mjovanc/mvc-simple-registry | 1db4c8d6d0ca80fe83bf38196d0a839454145ddf | [
"MIT"
] | null | null | null | src/main.py | mjovanc/mvc-simple-registry | 1db4c8d6d0ca80fe83bf38196d0a839454145ddf | [
"MIT"
] | null | null | null | from controller.user import User
from view.console import Console
from model.registry import Registry
if __name__ == '__main__':
main()
| 15.9375 | 35 | 0.690196 |
97bb092103a61f5af6ea9b2379b345b4e8352674 | 17,917 | py | Python | src/botModerationCommands.py | ScrappyCocco/ScroccoDiscordBot | 4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3 | [
"MIT"
] | 1 | 2018-06-27T13:59:27.000Z | 2018-06-27T13:59:27.000Z | src/botModerationCommands.py | ScrappyCocco/ScroccoDiscordBot | 4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3 | [
"MIT"
] | 6 | 2019-03-12T15:07:36.000Z | 2021-06-11T17:46:24.000Z | src/botModerationCommands.py | ScrappyCocco/ScroccoDiscordBot | 4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------------------
# IMPORTS
from discord.ext import commands
import discord
from botMethodsClass import BotMethods
# ---------------------------------------------------------------------
def setup(bot):
bot.add_cog(BotModerationCommands(bot))
| 50.187675 | 119 | 0.542948 |
97bb88a3ff4fd207aa8e791dfcb9495c02127026 | 573 | py | Python | template-mpy.py | peter-conalgo/binfonter | a052cdabe1c8b83ee72e488505f625250c30438d | [
"MIT"
] | null | null | null | template-mpy.py | peter-conalgo/binfonter | a052cdabe1c8b83ee72e488505f625250c30438d | [
"MIT"
] | null | null | null | template-mpy.py | peter-conalgo/binfonter | a052cdabe1c8b83ee72e488505f625250c30438d | [
"MIT"
] | null | null | null | from ucollections import namedtuple
GlyphInfo = namedtuple('GlyphInfo', 'x y w h bits')
| 26.045455 | 66 | 0.547993 |
97bf9f1fdd2ee9dab16772dd021abe2ff06df37b | 3,860 | py | Python | backend/youngun/youngun/apps/content/helpers/tw_post.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | backend/youngun/youngun/apps/content/helpers/tw_post.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | 1 | 2021-09-22T19:27:06.000Z | 2021-09-22T19:27:06.000Z | backend/youngun/youngun/apps/content/helpers/tw_post.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | import requests
import json
from datetime import datetime, timedelta
import pytz
import re
import dateutil.parser
from pprint import pprint
from django.conf import settings
| 34.159292 | 107 | 0.578497 |
97bfdf745212a8cd679a42ca0dc0da4fad2f527e | 343 | py | Python | setup.py | MorelLaw228/ocr-web-api-project | 12132daec38f29439d4accb2e70ba03c10d7b1c5 | [
"Apache-2.0"
] | null | null | null | setup.py | MorelLaw228/ocr-web-api-project | 12132daec38f29439d4accb2e70ba03c10d7b1c5 | [
"Apache-2.0"
] | null | null | null | setup.py | MorelLaw228/ocr-web-api-project | 12132daec38f29439d4accb2e70ba03c10d7b1c5 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='ocr-web-api-project',
version='1.1',
packages=[''],
url='https://github.com/MorelLaw228/ocr-web-api-project',
license='',
author='morellatel',
author_email='morellatel@gmail.com',
description='Projet d\'OCR de donnes mdicales ralis dans le cadre... | 26.384615 | 89 | 0.676385 |
97c0551ed75b874c31b64cb27912c48060692092 | 2,333 | py | Python | dongguanSpider/dongguanSpider/spiders/Xixi.py | qq453388937/Scarapy_Git | 6faa32684b76841face3d977fb162290cb79d177 | [
"MIT"
] | null | null | null | dongguanSpider/dongguanSpider/spiders/Xixi.py | qq453388937/Scarapy_Git | 6faa32684b76841face3d977fb162290cb79d177 | [
"MIT"
] | null | null | null | dongguanSpider/dongguanSpider/spiders/Xixi.py | qq453388937/Scarapy_Git | 6faa32684b76841face3d977fb162290cb79d177 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule, Spider
from dongguanSpider.items import DongguanspiderItem
| 38.245902 | 117 | 0.586369 |
97c05a85de794f7d5fb052796562871c169259e9 | 60,722 | py | Python | labbench/_traits.py | usnistgov/gpsdata | 23b2b9ecb13e64da24d6fb15bb2dd3b44c932308 | [
"Apache-2.0"
] | null | null | null | labbench/_traits.py | usnistgov/gpsdata | 23b2b9ecb13e64da24d6fb15bb2dd3b44c932308 | [
"Apache-2.0"
] | null | null | null | labbench/_traits.py | usnistgov/gpsdata | 23b2b9ecb13e64da24d6fb15bb2dd3b44c932308 | [
"Apache-2.0"
] | null | null | null | # This software was developed by employees of the National Institute of
# Standards and Technology (NIST), an agency of the Federal Government.
# Pursuant to title 17 United States Code Section 105, works of NIST employees
# are not subject to copyright protection in the United States and are
# considered to be in the ... | 33.922905 | 133 | 0.596308 |
97c1d95ef8e2f0a29768e928b6e4449c699ce803 | 1,061 | py | Python | src/auth.py | AnarbekB/screen | 1eccdfd469a9e173d6b5cfe2381867df2bfd9928 | [
"MIT"
] | null | null | null | src/auth.py | AnarbekB/screen | 1eccdfd469a9e173d6b5cfe2381867df2bfd9928 | [
"MIT"
] | 7 | 2020-06-05T19:43:33.000Z | 2021-09-08T00:43:59.000Z | src/auth.py | anarbekb/screen | 1eccdfd469a9e173d6b5cfe2381867df2bfd9928 | [
"MIT"
] | null | null | null | import yadisk
import sys
import os
| 20.018868 | 93 | 0.595664 |
97c1fbefb3a06f144ef25d078b5a4cbf5dc2335b | 1,425 | py | Python | testing/merge_scripts/code_coverage/merge_lib_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | testing/merge_scripts/code_coverage/merge_lib_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | testing/merge_scripts/code_coverage/merge_lib_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #!/usr/bin/env vpython
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import subprocess
import sys
import unittest
import mock
import merge_lib as merger
if __name__ == '__main__':
unitte... | 30.319149 | 76 | 0.670877 |
97c4b433234dc56623e5071a69e0f921aae6acae | 280 | py | Python | POP1/worksheets/one/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 1 | 2021-12-29T19:38:56.000Z | 2021-12-29T19:38:56.000Z | POP1/worksheets/one/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | null | null | null | POP1/worksheets/one/ex15/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 2 | 2021-04-08T22:58:03.000Z | 2021-04-09T01:16:51.000Z | # Suppose the cover price of a book is $24.95, but bookstores get a 40% discount.
# Shipping costs $3 for the first copy and 75 cents for each additional copy.
# What is the total wholesale cost for 60 copies?
print(round((24.95 - (24.95 * (40 / 100))) * 60 + 3 + 0.75 * 59, 2))
| 46.666667 | 81 | 0.678571 |
97c4fda75533de62a044626aecc15cb63af06671 | 835 | py | Python | pycolims/menus/Menu_Factory.py | daniel-avalos/pycolims | 74363595e5c6c795f235d9a6f7476093dd4dfefe | [
"MIT"
] | 1 | 2022-01-21T17:32:09.000Z | 2022-01-21T17:32:09.000Z | pycolims/menus/Menu_Factory.py | daniel-avalos/pycolims | 74363595e5c6c795f235d9a6f7476093dd4dfefe | [
"MIT"
] | 1 | 2019-02-17T06:53:38.000Z | 2019-02-17T07:27:35.000Z | pycolims/menus/Menu_Factory.py | daniel-avalos/pycolims | 74363595e5c6c795f235d9a6f7476093dd4dfefe | [
"MIT"
] | null | null | null | from pycolims.menus import _menu_single, _menu_multi
build_single = _FactorySingle()
"""Externally callable pointer to init factory"""
build_multi = _FactoryMulti()
"""Externally callable pointer to init factory"""
| 28.793103 | 71 | 0.743713 |
97c76b575796c8154fd5fd0278b2ba245cedfe48 | 36 | py | Python | pureskillgg_dsdk/ds_models/__init__.py | pureskillgg/dsdk | 2e91a815dc06cc37ac8272d87014301c64c1b46e | [
"MIT"
] | null | null | null | pureskillgg_dsdk/ds_models/__init__.py | pureskillgg/dsdk | 2e91a815dc06cc37ac8272d87014301c64c1b46e | [
"MIT"
] | 1 | 2022-03-31T15:16:17.000Z | 2022-03-31T19:38:05.000Z | pureskillgg_dsdk/ds_models/__init__.py | pureskillgg/dsdk | 2e91a815dc06cc37ac8272d87014301c64c1b46e | [
"MIT"
] | null | null | null | from .model import create_ds_models
| 18 | 35 | 0.861111 |
97ca3d957d6ee83b3587051eff22ef6e1b093626 | 471 | py | Python | scraper1830/scraper_cli.py | SiddharthNVenkatesh/1830-game-log-scraper | 5b446bec0715e8d7954bf6c0ff2e3f8619be9213 | [
"MIT"
] | null | null | null | scraper1830/scraper_cli.py | SiddharthNVenkatesh/1830-game-log-scraper | 5b446bec0715e8d7954bf6c0ff2e3f8619be9213 | [
"MIT"
] | null | null | null | scraper1830/scraper_cli.py | SiddharthNVenkatesh/1830-game-log-scraper | 5b446bec0715e8d7954bf6c0ff2e3f8619be9213 | [
"MIT"
] | null | null | null | """
Created on Sat Oct 30 19:29:30 2021
@author: siddharthvenkatesh
This is a command line interface for scraper1830.
"""
import click
from .scraper1830 import Scraper1830
if __name__ == "__main__":
cli_entry()
| 16.241379 | 81 | 0.70276 |
97cac6ef071619dfddd1dd8ce39df4d44f06769c | 708 | py | Python | supg/selector/base_selector.py | stanford-futuredata/supg | cff4e7eb9b657e79a8f1d8e245e23bcad543126c | [
"Apache-2.0"
] | 3 | 2020-08-31T21:03:31.000Z | 2021-01-17T08:08:51.000Z | supg/selector/base_selector.py | stanford-futuredata/supg | cff4e7eb9b657e79a8f1d8e245e23bcad543126c | [
"Apache-2.0"
] | 1 | 2021-07-29T06:07:25.000Z | 2021-07-29T07:04:57.000Z | supg/selector/base_selector.py | stanford-futuredata/supg | cff4e7eb9b657e79a8f1d8e245e23bcad543126c | [
"Apache-2.0"
] | 4 | 2020-09-03T03:13:37.000Z | 2021-12-20T12:13:51.000Z | from typing import Sequence
import numpy as np
import math
from supg.datasource import DataSource
| 20.823529 | 42 | 0.562147 |
97cd8b31efbc69343252ebfb456a9fa5407216a1 | 7,075 | py | Python | Tests/fTestThread.py | SkyLined/mWindowsAPI | d64d57bbf87d2a7b33cf7de89263553793484a84 | [
"CC-BY-4.0"
] | 7 | 2017-10-09T14:32:22.000Z | 2021-01-30T07:25:50.000Z | Tests/fTestThread.py | SkyLined/mWindowsAPI | d64d57bbf87d2a7b33cf7de89263553793484a84 | [
"CC-BY-4.0"
] | 2 | 2017-12-12T02:53:18.000Z | 2019-02-19T09:23:18.000Z | Tests/fTestThread.py | SkyLined/mWindowsAPI | d64d57bbf87d2a7b33cf7de89263553793484a84 | [
"CC-BY-4.0"
] | 1 | 2017-12-12T02:42:18.000Z | 2017-12-12T02:42:18.000Z | import re, sys, time;
from mWindowsAPI import *;
from mWindowsSDK import *;
from mConsole import oConsole; | 51.268116 | 150 | 0.654134 |
97cf7498846de483b874e824d92172f9251375be | 25,297 | py | Python | ledgereth/objects.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 10 | 2020-10-26T05:46:47.000Z | 2022-03-07T22:28:50.000Z | ledgereth/objects.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 13 | 2020-02-04T09:08:45.000Z | 2022-03-21T00:05:28.000Z | ledgereth/objects.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 6 | 2020-02-04T18:22:56.000Z | 2022-03-01T13:44:51.000Z | from __future__ import annotations
from abc import ABC, abstractmethod
from enum import IntEnum
from typing import Any, Dict, List, Optional, Tuple
from eth_utils import encode_hex, to_checksum_address
from rlp import Serializable, decode, encode
from rlp.sedes import BigEndianInt, Binary, CountableList
from rlp.sede... | 29.866588 | 182 | 0.565205 |
97d026b635066d5cf086038a8ca4235c00a5f2f4 | 618 | py | Python | app/validator/client_validator.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | app/validator/client_validator.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | 5 | 2018-05-17T04:03:39.000Z | 2021-09-08T01:03:17.000Z | app/validator/client_validator.py | JunFuruya/Hideout | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from app.validator.base_validator import BaseValidator
| 28.090909 | 72 | 0.656958 |
97d1eed2070eaf000dcbdb4bf3fe9d744a01be14 | 1,255 | py | Python | snafulib/executors/openshift.py | isabella232/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 31 | 2017-04-22T07:16:08.000Z | 2022-03-13T13:36:17.000Z | snafulib/executors/openshift.py | serviceprototypinglab/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 1 | 2022-02-18T13:07:37.000Z | 2022-02-18T13:07:37.000Z | snafulib/executors/openshift.py | isabella232/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 7 | 2017-08-17T11:47:52.000Z | 2022-02-18T11:51:03.000Z | # Snafu: Snake Functions - OpenShift Executor
import requests
import os
import configparser
import subprocess
container = "jszhaw/snafu"
endpoints = {}
| 31.375 | 122 | 0.717131 |
97d2a229fccfdef7f56f9b50b19d282624ff6376 | 418 | py | Python | pex/tools/command.py | ShellAddicted/pex | f1060b784fc9c4337a514ed21357ea9e8c2e4f41 | [
"Apache-2.0"
] | 2,160 | 2015-01-06T17:57:39.000Z | 2022-03-30T19:59:01.000Z | pex/tools/command.py | sthagen/pex | 9bd4c178c93556faad3c8a1e75989c9288d09416 | [
"Apache-2.0"
] | 1,242 | 2015-01-22T14:56:46.000Z | 2022-03-31T18:02:38.000Z | pex/tools/command.py | Satertek/pex | 64de1c4cf031118ef446ac98a8c164c91c23bb9b | [
"Apache-2.0"
] | 248 | 2015-01-15T13:34:50.000Z | 2022-03-26T01:24:18.000Z | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import
from abc import abstractmethod
from pex.commands.command import Command, Result
from pex.pex import PEX
| 24.588235 | 66 | 0.741627 |
8ad84f6554d959572d9b8aab5219fec19cd4dca2 | 2,389 | py | Python | root_gnn/src/optimizers/optimizer_utils.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | root_gnn/src/optimizers/optimizer_utils.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | root_gnn/src/optimizers/optimizer_utils.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Sonnet 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 l... | 42.660714 | 78 | 0.714106 |
8ada7c9398b46556df1e4189571c752be500f628 | 3,342 | py | Python | blog/models.py | pythoncali/portal | 8a5b75e229683da14d6b1cbe701800aa1806e091 | [
"BSD-3-Clause"
] | 1 | 2015-08-23T21:30:38.000Z | 2015-08-23T21:30:38.000Z | blog/models.py | djangocali/portal | 8a5b75e229683da14d6b1cbe701800aa1806e091 | [
"BSD-3-Clause"
] | 24 | 2015-08-30T06:07:19.000Z | 2016-12-11T15:52:55.000Z | blog/models.py | pythoncali/portal | 8a5b75e229683da14d6b1cbe701800aa1806e091 | [
"BSD-3-Clause"
] | 6 | 2015-08-22T16:25:19.000Z | 2016-03-12T21:28:47.000Z | # -*- coding: utf-8 -*-
from django.db import models
from taggit.managers import TaggableManager
from autoslug import AutoSlugField
from django.conf import settings
"""
## TODO ##
1. Como el direccionamiento estara ligado al uso de slugs, tanto en el caso de
las categorias como de las entradas,es necesario encontrar ... | 37.550562 | 79 | 0.710652 |
8adb66241edd0a7ac39ba771a362637aa3498721 | 3,109 | py | Python | commons.py | ruslanrf/LoadBus-Scheduler | 8565379b5d35ec6acb802548d05786b651021e26 | [
"BSD-3-Clause"
] | null | null | null | commons.py | ruslanrf/LoadBus-Scheduler | 8565379b5d35ec6acb802548d05786b651021e26 | [
"BSD-3-Clause"
] | null | null | null | commons.py | ruslanrf/LoadBus-Scheduler | 8565379b5d35ec6acb802548d05786b651021e26 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#burden -> n #
#bandage -> k #
import numpy
import collections
| 37.457831 | 121 | 0.664522 |
8adcb059119008d02be5d81b4f6f7fb231362b32 | 1,036 | py | Python | apis/v1/movies/serializers.py | sunil28rana/flask-imdb-sample-project | df28655327a42c0ec28e485d64ebbc5d525275e7 | [
"MIT"
] | null | null | null | apis/v1/movies/serializers.py | sunil28rana/flask-imdb-sample-project | df28655327a42c0ec28e485d64ebbc5d525275e7 | [
"MIT"
] | null | null | null | apis/v1/movies/serializers.py | sunil28rana/flask-imdb-sample-project | df28655327a42c0ec28e485d64ebbc5d525275e7 | [
"MIT"
] | 1 | 2020-10-22T10:31:00.000Z | 2020-10-22T10:31:00.000Z | from flask_restplus import fields
from apis.v1.v1_api import api
movie_ns = api.namespace('movies', description='Movie Module')
movie = movie_ns.model('Movie', {
'id': fields.Integer(required=True, description='Movie id'),
'99popularity': fields.Float(attribute='ninety_nine_popularity', required=True),
... | 37 | 87 | 0.722008 |
8add1b7a78dfb35db498ebfb2fd001c73838ad92 | 527 | py | Python | giturlparse/platforms/__init__.py | JulianVolodia/giturlparse | 0ae754bb289a0f097893c65c27de295e85ae43c6 | [
"Apache-2.0"
] | 20 | 2018-03-19T21:40:43.000Z | 2022-02-07T09:26:17.000Z | giturlparse/platforms/__init__.py | JulianVolodia/giturlparse | 0ae754bb289a0f097893c65c27de295e85ae43c6 | [
"Apache-2.0"
] | 23 | 2018-03-09T10:35:48.000Z | 2022-01-30T17:35:46.000Z | giturlparse/platforms/__init__.py | JulianVolodia/giturlparse | 0ae754bb289a0f097893c65c27de295e85ae43c6 | [
"Apache-2.0"
] | 15 | 2018-03-20T13:23:34.000Z | 2022-03-29T03:43:33.000Z | from .assembla import AssemblaPlatform
from .base import BasePlatform
from .bitbucket import BitbucketPlatform
from .friendcode import FriendCodePlatform
from .github import GitHubPlatform
from .gitlab import GitLabPlatform
# Supported platforms
PLATFORMS = [
# name -> Platform object
("github", GitHubPlatform... | 27.736842 | 42 | 0.72296 |
8adf2ac890c1af948e6cfd51cd75c68c97162b44 | 1,685 | py | Python | chain/crypto/objects/transactions/vote.py | tsifrer/ark | c678091e226d79fabe4a2c554e1d8e704a5b5cec | [
"MIT"
] | 5 | 2019-02-01T01:22:27.000Z | 2019-05-24T12:20:38.000Z | chain/crypto/objects/transactions/vote.py | tsifrer/ark | c678091e226d79fabe4a2c554e1d8e704a5b5cec | [
"MIT"
] | 15 | 2019-03-29T13:12:10.000Z | 2019-08-25T19:19:35.000Z | chain/crypto/objects/transactions/vote.py | tsifrer/ark | c678091e226d79fabe4a2c554e1d8e704a5b5cec | [
"MIT"
] | 4 | 2019-01-31T13:52:03.000Z | 2020-08-12T02:12:03.000Z | import logging
from .base import BaseTransaction
logger = logging.getLogger(__name__)
| 32.403846 | 85 | 0.589911 |
8adfcb4a89414d6ae6501e94a82030ed102481f6 | 1,250 | py | Python | pyreach/gyms/force_torque_sensor_element.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 13 | 2021-09-01T01:10:22.000Z | 2022-03-05T10:01:52.000Z | pyreach/gyms/force_torque_sensor_element.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | null | null | null | pyreach/gyms/force_torque_sensor_element.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 6 | 2021-09-20T21:17:53.000Z | 2022-03-14T18:42:48.000Z | # Copyright 2021 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 agreed to in writing, ... | 35.714286 | 77 | 0.7632 |
8ae10488f0effce46546c3f9df6c56b83214d532 | 1,476 | py | Python | visual_change_analysis/bin_data.py | Barry-lab/Publication_TanniDeCothiBarry2021 | 425bc0bd9a74b837d912820e9ea1539a111fcb1f | [
"Unlicense"
] | null | null | null | visual_change_analysis/bin_data.py | Barry-lab/Publication_TanniDeCothiBarry2021 | 425bc0bd9a74b837d912820e9ea1539a111fcb1f | [
"Unlicense"
] | null | null | null | visual_change_analysis/bin_data.py | Barry-lab/Publication_TanniDeCothiBarry2021 | 425bc0bd9a74b837d912820e9ea1539a111fcb1f | [
"Unlicense"
] | null | null | null | import numpy as np
def bin_data(var_to_bin_by, bin_size, limits, var_to_bin = []):
"""
Creates N-d histogram of var_to_bin_by using bins of size bin_size. If var_to_bin is provided then it creates a weighted histogram using var_to_bin as the weights. Hence if var_to_bin is spikes and var_to_bin_by is x... | 39.891892 | 288 | 0.640921 |
8ae125196aab52e929fdac647073f87d923e2a30 | 1,612 | py | Python | formatter.py | dvhh/fastly-prometheus-exporter | 36edc2e20fe621dcd7c6f2e00ea89243442ba3c7 | [
"Apache-2.0"
] | 1 | 2020-01-27T19:31:16.000Z | 2020-01-27T19:31:16.000Z | formatter.py | dvhh/fastly-prometheus-exporter | 36edc2e20fe621dcd7c6f2e00ea89243442ba3c7 | [
"Apache-2.0"
] | null | null | null | formatter.py | dvhh/fastly-prometheus-exporter | 36edc2e20fe621dcd7c6f2e00ea89243442ba3c7 | [
"Apache-2.0"
] | null | null | null | '''
Create format report from json to html using jinja2
'''
import json
import sys
import argparse
from jinja2 import Template
def get_template(argument: str):
'''
get template content
'''
if argument == '-':
return Template(sys.stdin.read())
return Template(open(argument).read())
def ge... | 23.028571 | 76 | 0.588089 |
8ae24344b66c1646de2cf34b2ae76615987a0811 | 107 | py | Python | gubbing/models/networks/temporal_net.py | mychiux413/gubbing | 45856d242fc217af35109baa8432c9979076dc40 | [
"MIT"
] | null | null | null | gubbing/models/networks/temporal_net.py | mychiux413/gubbing | 45856d242fc217af35109baa8432c9979076dc40 | [
"MIT"
] | null | null | null | gubbing/models/networks/temporal_net.py | mychiux413/gubbing | 45856d242fc217af35109baa8432c9979076dc40 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras import layers, Model
| 17.833333 | 42 | 0.794393 |
8ae311eb7581954ef8072fbd1136eedfd88b3a2a | 13,095 | py | Python | trajectories.py | ZJYgrp/React_Traj_Analysis | b9eaf2b7aec7200a5170528ecf4c8e5d1993eff1 | [
"MIT"
] | 4 | 2020-05-11T02:13:28.000Z | 2020-07-15T13:36:43.000Z | trajectories.py | ZJYgrp/React_Traj_Analysis | b9eaf2b7aec7200a5170528ecf4c8e5d1993eff1 | [
"MIT"
] | null | null | null | trajectories.py | ZJYgrp/React_Traj_Analysis | b9eaf2b7aec7200a5170528ecf4c8e5d1993eff1 | [
"MIT"
] | 1 | 2020-05-11T02:13:35.000Z | 2020-05-11T02:13:35.000Z | # TS Extraction and Trajectory classification class
import os
import matplotlib as mpl
import numpy as np
mpl.use('Agg')
| 44.540816 | 116 | 0.478274 |
8ae4102c25c4ec8fce3dd02705d63dee29ae3cbd | 13,889 | py | Python | networking_fujitsu/ml2/cfab/mech_cfab.py | mail2nsrajesh/networking-fujitsu | e3a5205999cb36f7d1ead3698ce7465c0a08eb2a | [
"Apache-2.0"
] | null | null | null | networking_fujitsu/ml2/cfab/mech_cfab.py | mail2nsrajesh/networking-fujitsu | e3a5205999cb36f7d1ead3698ce7465c0a08eb2a | [
"Apache-2.0"
] | null | null | null | networking_fujitsu/ml2/cfab/mech_cfab.py | mail2nsrajesh/networking-fujitsu | e3a5205999cb36f7d1ead3698ce7465c0a08eb2a | [
"Apache-2.0"
] | null | null | null | # Copyright 2015-2017 FUJITSU LIMITED
#
# 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 ... | 37.235925 | 78 | 0.609115 |
8ae615133256ce5b353ae9c7a3f1556b9ae8c85a | 3,665 | py | Python | nlphug/promatching.py | readall/mlgitpod | 91e388f32f4a461153094cfbf1cfdbab1f7eb199 | [
"Apache-2.0"
] | 1 | 2021-07-13T07:13:32.000Z | 2021-07-13T07:13:32.000Z | nlphug/promatching.py | readall/mlgitpod | 91e388f32f4a461153094cfbf1cfdbab1f7eb199 | [
"Apache-2.0"
] | null | null | null | nlphug/promatching.py | readall/mlgitpod | 91e388f32f4a461153094cfbf1cfdbab1f7eb199 | [
"Apache-2.0"
] | null | null | null | from transformers import ReformerConfig, PyTorchBenchmark, PyTorchBenchmarkArguments
from transformers import ReformerModelWithLMHead, ReformerTokenizer
import torch
import pandas as pd
import numpy as np
import nltk
nltk.download('stopwords', download_dir='/workspace/conda/hugface/nltk_data')
nltk.download('punkt', d... | 34.252336 | 100 | 0.702319 |
8ae6cb6bdb03906a9fea321b254d1c10db5d3c9d | 1,503 | py | Python | began/train.py | norveclibalikci/MyDeepLearning | d72e3d70aa11c8d8b05f0f72744a9cafa30e808a | [
"MIT"
] | 2 | 2018-05-15T10:28:48.000Z | 2018-09-28T13:38:11.000Z | began/train.py | norveclibalikci/MyDeepLearning | d72e3d70aa11c8d8b05f0f72744a9cafa30e808a | [
"MIT"
] | null | null | null | began/train.py | norveclibalikci/MyDeepLearning | d72e3d70aa11c8d8b05f0f72744a9cafa30e808a | [
"MIT"
] | 1 | 2019-10-25T13:24:05.000Z | 2019-10-25T13:24:05.000Z | from __future__ import print_function
from math import log10
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
from dataset import DataSetFromFolder
import torch.cuda
from torch.autograd import Variable
import torch.backends.cudnn as cudnn
import torchvision.utils as... | 25.474576 | 90 | 0.745842 |
8ae70d3a40de921bea8eee8bda2369e0ac359775 | 15,664 | py | Python | eispy/legacy/eis_utils.py | dstansby/EISpy | 8c7be2d7d9086005e2a31c2309b14ceb393de55c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 5 | 2016-10-25T20:23:08.000Z | 2021-06-03T11:09:35.000Z | eispy/legacy/eis_utils.py | dstansby/EISpy | 8c7be2d7d9086005e2a31c2309b14ceb393de55c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 5 | 2015-07-14T11:10:26.000Z | 2021-02-02T11:08:43.000Z | eispy/legacy/eis_utils.py | dstansby/EISpy | 8c7be2d7d9086005e2a31c2309b14ceb393de55c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 6 | 2015-07-13T14:57:34.000Z | 2017-01-23T23:06:51.000Z | # -*- coding: utf-8 -*-
# Author: Mateo Inchaurrandieta <mateo.inchaurrandieta@gmail.com>
# pylint: disable=E1101, C0330
"""
Utilities used in EIS calculations, corrections and fits.
"""
import os
import datetime as dt
import warnings
import urllib
import pathlib
from scipy.io import readsav
from scipy.interpolate imp... | 43.511111 | 87 | 0.593782 |
8ae7af477b7bde5b42b35528c7ad77a67aa36201 | 708 | py | Python | Tracker_Development/Tracker_Troubleshooting/Tracker_Tree_Reconstruction.py | The-Kristina/CellComp | 29ec7690e0d9adb1a6214937ca41fd1dadce18c6 | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"Net-SNMP",
"X11"
] | 7 | 2019-05-13T10:07:44.000Z | 2022-03-01T16:20:48.000Z | Tracker_Development/Tracker_Troubleshooting/Tracker_Tree_Reconstruction.py | The-Kristina/CellComp | 29ec7690e0d9adb1a6214937ca41fd1dadce18c6 | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"Net-SNMP",
"X11"
] | null | null | null | Tracker_Development/Tracker_Troubleshooting/Tracker_Tree_Reconstruction.py | The-Kristina/CellComp | 29ec7690e0d9adb1a6214937ca41fd1dadce18c6 | [
"CNRI-Python",
"RSA-MD",
"Xnet",
"Net-SNMP",
"X11"
] | 3 | 2020-04-23T18:13:20.000Z | 2020-11-11T18:46:48.000Z | # TODO: Find out if you can reconstruct chopped trees from the tracker:
import sys
sys.path.append("../")
from Cell_IDs_Analysis.Plotter_Lineage_Trees import PlotLineageTree
raw_file = "/Volumes/lowegrp/Data/Kristina/MDCK_90WT_10Sc_NoComp/17_07_24/pos13/analysis/channel_RFP/cellIDdetails_raw.txt"
xml_file = "/Volume... | 39.333333 | 123 | 0.724576 |
8ae80e8350c0616996e9ada541ffb139c4fefe70 | 545 | py | Python | Youtube/OpenCV Course/Advanced/splitmerge.py | aayush1036/OnlineCourses | 1fdcd0c02bcea8bde7ef8cb5e33688e1591ffabb | [
"MIT"
] | null | null | null | Youtube/OpenCV Course/Advanced/splitmerge.py | aayush1036/OnlineCourses | 1fdcd0c02bcea8bde7ef8cb5e33688e1591ffabb | [
"MIT"
] | null | null | null | Youtube/OpenCV Course/Advanced/splitmerge.py | aayush1036/OnlineCourses | 1fdcd0c02bcea8bde7ef8cb5e33688e1591ffabb | [
"MIT"
] | 1 | 2022-01-09T08:31:05.000Z | 2022-01-09T08:31:05.000Z | import cv2
import numpy as np
img = cv2.imread('../Resources/Photos/park.jpg')
b,g,r = cv2.split(img)
# cv2.imshow('Blue',b)
# cv2.imshow('Green',g)
# cv2.imshow('Red',r)
blank = np.zeros(img.shape[:2],dtype='uint8')
blue = cv2.merge([b,blank,blank])
green = cv2.merge([blank,g,blank])
red = cv2.merge([blank,blank,r]... | 24.772727 | 73 | 0.645872 |
8ae81db82a5790f7ce3133a2f2b9bd1143d41dc8 | 765 | py | Python | old_project/start.py | tzontzy13/IN3063-CW | aace60a1016ef146063bc10ea5d7a12c30680a3b | [
"MIT"
] | null | null | null | old_project/start.py | tzontzy13/IN3063-CW | aace60a1016ef146063bc10ea5d7a12c30680a3b | [
"MIT"
] | null | null | null | old_project/start.py | tzontzy13/IN3063-CW | aace60a1016ef146063bc10ea5d7a12c30680a3b | [
"MIT"
] | null | null | null | import numpy as np
from mnist_data import get_mnist_data
from MLP import MLP
from MLP_SGD import MLP_SGD
# get data from mnist_data file
test_data, test_targets, train_data, train_targets = get_mnist_data()
# initialize a Stochaistic Gradient Descent Multi Layer Perceptron
mlp_sgd = MLP_SGD(lr=1, sizes=[784, 30, 16... | 33.26087 | 69 | 0.763399 |
8ae82616fed48d79c904e2ca0ed350f739804d27 | 8,414 | py | Python | data/transforms/utils.py | CHC278Cao/template_cv | 05e8728bcdc441be8f9cfc4da7f605e2701fe4a7 | [
"MIT"
] | null | null | null | data/transforms/utils.py | CHC278Cao/template_cv | 05e8728bcdc441be8f9cfc4da7f605e2701fe4a7 | [
"MIT"
] | null | null | null | data/transforms/utils.py | CHC278Cao/template_cv | 05e8728bcdc441be8f9cfc4da7f605e2701fe4a7 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
@author: ccj
@contact:
"""
import numpy as np
from typing import List, Dict, Tuple, Any
import torch
import torch.nn.functional as F
def crop_white(image: np.ndarray, value: int = 255) -> np.ndarray:
"""
Crop white border from image
:param image: Type: np.ndarray, image to be ... | 34.912863 | 121 | 0.549441 |
8ae9fe0b5c0e0bd748fd8c721ab7186277a6ce4a | 4,112 | py | Python | nova_powervm/tests/virt/powervm/nvram/test_manager.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | 24 | 2015-10-18T02:55:20.000Z | 2021-11-17T11:43:51.000Z | nova_powervm/tests/virt/powervm/nvram/test_manager.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | null | null | null | nova_powervm/tests/virt/powervm/nvram/test_manager.py | openstack/nova-powervm | 376d9493e2a10313068508daf9054d7ecf6d121f | [
"Apache-2.0"
] | 12 | 2015-10-26T17:38:05.000Z | 2021-07-21T12:45:19.000Z | # Copyright 2016, 2018 IBM Corp.
#
# 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 require... | 41.959184 | 78 | 0.697957 |
8aea263c0905bc6f98b163ca30bb6f46f510187a | 6,481 | py | Python | src/server.py | nathancohen4299/v-stream | 2a515afe56b54cea86cb1628096f9d6216b4cb5b | [
"MIT"
] | null | null | null | src/server.py | nathancohen4299/v-stream | 2a515afe56b54cea86cb1628096f9d6216b4cb5b | [
"MIT"
] | 6 | 2021-04-06T18:25:35.000Z | 2022-03-01T05:29:13.000Z | src/server.py | nathancohen4299/v-stream | 2a515afe56b54cea86cb1628096f9d6216b4cb5b | [
"MIT"
] | null | null | null | import argparse
import configparser
import logging
import os
import shutil
import signal
import sys
import threading
import time
from pathlib import Path
from socket import *
from typing import List
from delta_list.delta_list import DeltaList
from objs.ack import Ack
from objs.frame import Frame
from objs.metadata imp... | 31.926108 | 88 | 0.632464 |
8aeea549341b8bc4f58add837c17e2220db8e690 | 20,969 | py | Python | btclib/transaction.py | qwerty-w/btc-lib | 4741156e133c9a648821eb1368e5cd92e739938d | [
"MIT"
] | null | null | null | btclib/transaction.py | qwerty-w/btc-lib | 4741156e133c9a648821eb1368e5cd92e739938d | [
"MIT"
] | null | null | null | btclib/transaction.py | qwerty-w/btc-lib | 4741156e133c9a648821eb1368e5cd92e739938d | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import Iterable, Protocol
import json
from btclib.const import DEFAULT_SEQUENCE, DEFAULT_VERSION, DEFAULT_LOCKTIME, \
SIGHASHES, EMPTY_SEQUENCE, NEGATIVE_SATOSHI
from btclib.utils import d_sha256, uint32, sint64, dint, pprint_class, TypeConverter
from btclib.address impor... | 34.716887 | 116 | 0.592732 |
8aeed0b6dba24a036445804f5709e96ba90e823f | 6,805 | py | Python | modules/overlay.py | zlrc/Can.dl | 525ed624675fddfdb62a287c0ef539679473add1 | [
"MIT"
] | 1 | 2019-12-24T03:19:24.000Z | 2019-12-24T03:19:24.000Z | modules/overlay.py | zlrc/Can.dl | 525ed624675fddfdb62a287c0ef539679473add1 | [
"MIT"
] | 3 | 2021-06-08T20:47:18.000Z | 2022-03-12T00:10:34.000Z | modules/overlay.py | zlrc/Can.dl | 525ed624675fddfdb62a287c0ef539679473add1 | [
"MIT"
] | null | null | null | # Overlay commands.
import discord
from discord.ext import commands
from builtins import bot
from math import floor
import asyncio
import aiohttp
from io import BytesIO
from PIL import Image
import os
import random
from wax.logger import log
from wax.helpers import convert_to_url, get_img, abs_path, islambda
| 36.983696 | 120 | 0.623659 |
8aeef686de92400b1177c43714218e819b5760cd | 4,104 | py | Python | packages/utils/helpers.py | google/compass | 4c2b1718e223480c77ef5ed8a949a0c0f9ff69d3 | [
"Apache-2.0"
] | 5 | 2021-12-28T20:29:00.000Z | 2022-03-30T17:22:19.000Z | packages/utils/helpers.py | google/compass | 4c2b1718e223480c77ef5ed8a949a0c0f9ff69d3 | [
"Apache-2.0"
] | null | null | null | packages/utils/helpers.py | google/compass | 4c2b1718e223480c77ef5ed8a949a0c0f9ff69d3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 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 agreed to in writing, ... | 32.314961 | 80 | 0.717349 |
8aef4b35b75cbb908a78f5d4b58f0250c481298b | 4,567 | py | Python | scripts/compare_neigh_overlap.py | cabrittin/elegansbrainmap | 049a26a094e085bacc70f5b05ea04a007d00eb2c | [
"MIT"
] | 2 | 2021-04-07T04:27:32.000Z | 2021-08-15T19:26:21.000Z | scripts/compare_neigh_overlap.py | cabrittin/elegansbrainmap | 049a26a094e085bacc70f5b05ea04a007d00eb2c | [
"MIT"
] | null | null | null | scripts/compare_neigh_overlap.py | cabrittin/elegansbrainmap | 049a26a094e085bacc70f5b05ea04a007d00eb2c | [
"MIT"
] | 2 | 2021-03-08T05:53:08.000Z | 2021-04-07T04:27:37.000Z | """
compare_neigh_overlap.py
Plots distributions of Jaccard distances for overlapping ipsilateral
neighborhoods (blue) and homologous contralateral neighborhoods (red)
in the adult and L4.
crated: Christopher Brittin
data: 01 November 2018
"""
import os
from configparser import ConfigParser,ExtendedInterpolation
i... | 37.434426 | 113 | 0.671338 |
8af0066c9df56b9dfc441a1e4b4117631b55bd62 | 3,006 | py | Python | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | null | null | null | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | null | null | null | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T04:19:45.000Z | 2020-11-04T04:19:45.000Z | # Copyright 2017, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 44.205882 | 372 | 0.720892 |
8af0217ebf291f4d520d2da316ab7baed961b7af | 1,051 | py | Python | nidaqmx/examples/contrib/alternate_on_off_slow.py | jkfindeisen/pylibnidaqmx | 959dfe0db49574c4fc528a9f80632702167852c1 | [
"BSD-3-Clause"
] | 1 | 2015-06-10T11:10:26.000Z | 2015-06-10T11:10:26.000Z | nidaqmx/examples/contrib/alternate_on_off_slow.py | jkfindeisen/pylibnidaqmx | 959dfe0db49574c4fc528a9f80632702167852c1 | [
"BSD-3-Clause"
] | null | null | null | nidaqmx/examples/contrib/alternate_on_off_slow.py | jkfindeisen/pylibnidaqmx | 959dfe0db49574c4fc528a9f80632702167852c1 | [
"BSD-3-Clause"
] | null | null | null | # with relatively loose timing constraints
# turn on and off a digital output
from __future__ import division
from numpy import *
import labdaq.daqmx as daqmx
import labdaq.daq as daq
import threading,time
###### setup script parameters ########
long_duration = min2sec(1.0) # twenty minutes
duration = 25.0 # sec
onv... | 25.02381 | 170 | 0.69648 |
8af0239f0b84cce0db48919e148971a27a2e5d43 | 17,570 | py | Python | thingsboard_gateway/connectors/opcua_asyncio/opcua_connector.py | atorber/thingsboard-gateway | b7f51b332346632f8451e353984723c89ebd2a09 | [
"Apache-2.0"
] | 1 | 2022-02-10T10:03:43.000Z | 2022-02-10T10:03:43.000Z | thingsboard_gateway/connectors/opcua_asyncio/opcua_connector.py | atorber/thingsboard-gateway | b7f51b332346632f8451e353984723c89ebd2a09 | [
"Apache-2.0"
] | null | null | null | thingsboard_gateway/connectors/opcua_asyncio/opcua_connector.py | atorber/thingsboard-gateway | b7f51b332346632f8451e353984723c89ebd2a09 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022. ThingsBoard
#
# 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 ... | 42.439614 | 120 | 0.548549 |
8af0d6265c41c54a855453ef99e79e3ce81ee609 | 2,557 | py | Python | webpage/autocorrect.py | JoeLanzi/CSCI_5030_TEAM_1 | 155da86076e440bb049b926d6c967bdcecc90c7b | [
"MIT"
] | null | null | null | webpage/autocorrect.py | JoeLanzi/CSCI_5030_TEAM_1 | 155da86076e440bb049b926d6c967bdcecc90c7b | [
"MIT"
] | 2 | 2021-12-08T01:55:37.000Z | 2021-12-08T21:21:49.000Z | webpage/autocorrect.py | JoeLanzi/CSCI_5030_TEAM_1 | 155da86076e440bb049b926d6c967bdcecc90c7b | [
"MIT"
] | 3 | 2021-09-10T21:39:44.000Z | 2021-10-01T21:59:18.000Z | #%%
import ast
from preprocess import to_n_gram
from grammar_checker import Checker
import pickle
LANGUAGES = ast.literal_eval(open("language_short_names.txt", "r").read())
# %% Tests
'''
correct = Autocorrect()
sentence = "an l go mbeidh mein na Gaeilge agus an Bharla ar comhchim"
correct.language_detect(sentence.l... | 31.9625 | 110 | 0.640986 |
8af0f6e3f86ec7667fa185315119381eec2c0424 | 1,121 | py | Python | data_ocean/emails.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | data_ocean/emails.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | data_ocean/emails.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from data_converter.email_utils import send_template_mail
from data_ocean.models import Register, Report
from users.models import DataOceanUser
| 32.028571 | 77 | 0.699376 |
8af17dfb07eb6bba9c4f97673c738e0249b39530 | 6,253 | py | Python | src/epython/poke/eprequests.py | elibs/epython | 8e490976f510ab6393739c42f9981495503fb454 | [
"MIT"
] | null | null | null | src/epython/poke/eprequests.py | elibs/epython | 8e490976f510ab6393739c42f9981495503fb454 | [
"MIT"
] | 1 | 2021-07-19T17:20:49.000Z | 2021-07-19T17:20:49.000Z | src/epython/poke/eprequests.py | elibs/epython | 8e490976f510ab6393739c42f9981495503fb454 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Description:
This module houses the Poke class, and the wrapped requests methods.
Author:
Ray Gomez
Date:
3/16/21
"""
import requests
from epython.environment import EPYTHON_REQUEST_ID, EPYTHON_REQUEST_RETRIES, EPYTHON_REQUEST_INTERVAL
from epython.handlers import basic_retry... | 42.537415 | 104 | 0.674716 |
8af3f1c4bfb132a59d67c0454c13b52ee3cc90b7 | 7,426 | py | Python | src/python/tests/integration/test_web/test_handler/test_auto_queue.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 255 | 2017-12-25T00:53:40.000Z | 2022-03-27T10:29:21.000Z | src/python/tests/integration/test_web/test_handler/test_auto_queue.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 111 | 2018-01-04T10:35:49.000Z | 2022-03-29T15:12:52.000Z | src/python/tests/integration/test_web/test_handler/test_auto_queue.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 53 | 2017-12-25T09:34:19.000Z | 2022-03-15T17:53:27.000Z | # Copyright 2017, Inderpreet Singh, All rights reserved.
import json
from urllib.parse import quote
from controller import AutoQueuePattern
from tests.integration.test_web.test_web_app import BaseTestWebApp
| 51.93007 | 104 | 0.684083 |
8af808d7bc7886016881da85656e7d6779ba229b | 5,851 | py | Python | udponxbee/frame.py | jimzhong/udp-on-xbee | 0ffe0c6c1d6215227381c629a2ca31f05ea673f6 | [
"MIT"
] | null | null | null | udponxbee/frame.py | jimzhong/udp-on-xbee | 0ffe0c6c1d6215227381c629a2ca31f05ea673f6 | [
"MIT"
] | null | null | null | udponxbee/frame.py | jimzhong/udp-on-xbee | 0ffe0c6c1d6215227381c629a2ca31f05ea673f6 | [
"MIT"
] | null | null | null | from struct import pack, unpack, calcsize
from enum import Enum
import logging
START_DELIMITER = 0x7E
if __name__ == "__main__":
from binascii import hexlify, unhexlify
frame = XBeeTXRequest("eeeeee", b'TxData1B')
frame = XBeeATRequest("NI")
frame = XBeeInFrame.from_bytes(unhexlify("7e00028a06... | 30.005128 | 106 | 0.621603 |
8af809dc5ab1d0a3e5ea066741d71fc6b12c36fb | 2,381 | py | Python | fasta/reorient_sequences_by_id.py | senjoro/biocode | 6697c17570126d99fb1cbeabf5b8322db006643d | [
"MIT"
] | 355 | 2015-01-15T18:11:20.000Z | 2022-03-26T19:23:30.000Z | fasta/reorient_sequences_by_id.py | senjoro/biocode | 6697c17570126d99fb1cbeabf5b8322db006643d | [
"MIT"
] | 43 | 2015-03-20T08:40:14.000Z | 2022-03-09T22:37:38.000Z | fasta/reorient_sequences_by_id.py | senjoro/biocode | 6697c17570126d99fb1cbeabf5b8322db006643d | [
"MIT"
] | 217 | 2015-01-29T08:40:33.000Z | 2022-03-26T19:23:45.000Z | #!/usr/bin/env python3
'''
Description:
Use this when you have a multi-FASTA file and you want to reverse or reverse
complement only select sequences within that file. For example, strand-specific
RNA-Seq read alignment showed that some assembled transcripts were in the wrong
orientation, and this allowed us to corr... | 29.395062 | 159 | 0.654347 |
8af83160ce38ceda718134b9bf4e6508932e4cfd | 1,152 | py | Python | grafos/grafo_niveles.py | Tensor4Dummies/2_tensorboard | 6e46c147eb7f4cfc4a4a924dbb6c75c670647bdf | [
"MIT"
] | 1 | 2017-10-25T18:57:32.000Z | 2017-10-25T18:57:32.000Z | grafos/grafo_niveles.py | Tensor4Dummies/2_tensorboard | 6e46c147eb7f4cfc4a4a924dbb6c75c670647bdf | [
"MIT"
] | null | null | null | grafos/grafo_niveles.py | Tensor4Dummies/2_tensorboard | 6e46c147eb7f4cfc4a4a924dbb6c75c670647bdf | [
"MIT"
] | null | null | null | #IMPORTACIN DE LIBRERIAS
import tensorflow as tf
import os
#QUITAR LOS MENSAJES DE AVISO
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
#CREAR EL MODELO
#Entradas
A = tf.constant([4], tf.int32, name='A')
B = tf.constant([5], tf.int32, name='B')
C = tf.constant([6], tf.int32, name='C')
x = tf.placeholder(tf.int3... | 26.790698 | 78 | 0.611111 |