hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73eee2fb344cce481c9e4bf622cf22c5054e99f7 | 3,833 | py | Python | tests/template_tests/filter_tests/test_unordered_list.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | 1 | 2015-01-09T08:45:54.000Z | 2015-01-09T08:45:54.000Z | tests/template_tests/filter_tests/test_unordered_list.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | null | null | null | tests/template_tests/filter_tests/test_unordered_list.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | null | null | null | import warnings
from django.test import SimpleTestCase
from django.utils.deprecation import RemovedInDjango20Warning
from django.utils.safestring import mark_safe
from ..utils import render, setup
class UnorderedListTests(SimpleTestCase):
@setup({'unordered_list01': '{{ a|unordered_list }}'})
def test_unor... | 50.434211 | 97 | 0.60527 | 3,628 | 0.946517 | 0 | 0 | 3,470 | 0.905296 | 0 | 0 | 1,540 | 0.401774 |
73efefef974776a64a4da11b84a452736ff6369e | 5,218 | py | Python | models/train_classifier.py | jcardenas14/Disaster-Response | 303cbbc9098e3e1d163e8a6a7bc4bcdc8f134395 | [
"MIT"
] | null | null | null | models/train_classifier.py | jcardenas14/Disaster-Response | 303cbbc9098e3e1d163e8a6a7bc4bcdc8f134395 | [
"MIT"
] | null | null | null | models/train_classifier.py | jcardenas14/Disaster-Response | 303cbbc9098e3e1d163e8a6a7bc4bcdc8f134395 | [
"MIT"
] | null | null | null | import numpy as np
import nltk
import re
import pandas as pd
import sys
import pickle
from sklearn.pipeline import Pipeline
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from sklearn.multioutput import MultiOutputClassifier
from sklearn.ensemble import RandomFore... | 33.025316 | 101 | 0.675929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,052 | 0.393254 |
73f111cc65a7da55125e7eb4f996288413f32c34 | 3,850 | py | Python | getauditrecords.py | muzznak/pyviyatools | 58a99656e0a773370c050de191999fbc98ac5f03 | [
"Apache-2.0"
] | 25 | 2019-04-09T19:52:54.000Z | 2022-03-07T02:11:58.000Z | getauditrecords.py | muzznak/pyviyatools | 58a99656e0a773370c050de191999fbc98ac5f03 | [
"Apache-2.0"
] | 49 | 2018-12-13T15:53:16.000Z | 2022-03-09T15:31:13.000Z | getauditrecords.py | muzznak/pyviyatools | 58a99656e0a773370c050de191999fbc98ac5f03 | [
"Apache-2.0"
] | 25 | 2019-08-23T19:58:29.000Z | 2022-02-24T16:14:03.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# getauditrecords.py January 2020
#
# Extract list of audit records from SAS Infrastructure Data Server using REST API.
#
# Examples:
#
# 1. Return list of audit events from all users and applications
# ./getauditrecords.py
#
# Change History
#
# 10JAN2020 Comments ad... | 43.258427 | 189 | 0.751169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,293 | 0.59543 |
73f1a91dc045f413a69942d834270e344133624f | 6,345 | py | Python | async_blp/handlers.py | rockscie/async_blp | acb8777ccf2499681bde87d76ca780b61219699c | [
"MIT"
] | 12 | 2019-08-05T16:56:54.000Z | 2021-02-02T11:09:37.000Z | async_blp/handlers.py | lightning-like/async_blp | acb8777ccf2499681bde87d76ca780b61219699c | [
"MIT"
] | null | null | null | async_blp/handlers.py | lightning-like/async_blp | acb8777ccf2499681bde87d76ca780b61219699c | [
"MIT"
] | 5 | 2019-12-08T15:43:13.000Z | 2021-11-14T08:38:07.000Z | """
File contains handler for ReferenceDataRequest
"""
import asyncio
import uuid
from typing import Dict
from typing import List
from .base_handler import HandlerBase
from .base_request import RequestBase
from .requests import Subscription
from .utils.blp_name import RESPONSE_ERROR
from .utils.log import get_logger
... | 33.571429 | 78 | 0.628684 | 5,865 | 0.92435 | 0 | 0 | 450 | 0.070922 | 2,054 | 0.323719 | 1,851 | 0.291726 |
73f2bc3599ec98d3aba14c518c543be223219c33 | 4,759 | py | Python | cytochrome-b6f-nn-np-model-kinetics.py | vstadnyt/cytochrome | 546aa450fa6dc2758b079aba258e3572dd24d60c | [
"MIT"
] | null | null | null | cytochrome-b6f-nn-np-model-kinetics.py | vstadnyt/cytochrome | 546aa450fa6dc2758b079aba258e3572dd24d60c | [
"MIT"
] | null | null | null | cytochrome-b6f-nn-np-model-kinetics.py | vstadnyt/cytochrome | 546aa450fa6dc2758b079aba258e3572dd24d60c | [
"MIT"
] | 1 | 2021-09-28T17:17:48.000Z | 2021-09-28T17:17:48.000Z | import cytochrome_lib #This is a cytochrome library
import matplotlib.pyplot as plt
import numpy as np
version = "Last update: Aug 8, 2017"
desription = "This code calculates population distribution in the cytochrome b6f protein and plots kinetic profiles for two different models: \n'nn' and 'np' models \n The outpu... | 36.328244 | 394 | 0.741963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,408 | 0.29586 |
73f3505bc64c937e900a105ef529d5195af953f8 | 10,062 | py | Python | moderation/models.py | raja-creoit/django-moderation | 627afeeeb272d8d7e8f4893e8418d8942ccb80ba | [
"BSD-3-Clause"
] | null | null | null | moderation/models.py | raja-creoit/django-moderation | 627afeeeb272d8d7e8f4893e8418d8942ccb80ba | [
"BSD-3-Clause"
] | 1 | 2020-01-31T20:37:53.000Z | 2020-01-31T20:37:53.000Z | moderation/models.py | raja-creoit/django-moderation | 627afeeeb272d8d7e8f4893e8418d8942ccb80ba | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.conf import settings
try:
from django.contrib.contenttypes.fields import GenericForeignKey
except ImportError:
from django.contrib.contenttypes.generic import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import m... | 38.7 | 93 | 0.633174 | 8,764 | 0.871 | 0 | 0 | 142 | 0.014113 | 0 | 0 | 1,401 | 0.139237 |
73f3c138d83e22bb6c02d12e03c089fb61651fa0 | 3,684 | py | Python | hygnd/munge.py | thodson-usgs/hygnd | 04d3596f79350ba19e08851e494c8feb7d68c0e0 | [
"MIT"
] | 2 | 2018-07-27T22:29:27.000Z | 2020-03-04T18:01:47.000Z | hygnd/munge.py | thodson-usgs/hygnd | 04d3596f79350ba19e08851e494c8feb7d68c0e0 | [
"MIT"
] | null | null | null | hygnd/munge.py | thodson-usgs/hygnd | 04d3596f79350ba19e08851e494c8feb7d68c0e0 | [
"MIT"
] | null | null | null | from math import floor
import pandas as pd
def filter_param_cd(df, code):
"""Return df filtered by approved data
"""
approved_df = df.copy()
params = [param.strip('_cd') for param in df.columns if param.endswith('_cd')]
for param in params:
#filter out records where param_cd doesn't cont... | 32.034783 | 99 | 0.646851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,849 | 0.5019 |
73f42c1536b7cbae9884bce03cfe3067637e0ad1 | 3,681 | py | Python | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | import json
import requests
import pandas as pd
import websocket
# Get Alpaca API Credential
endpoint = "https://data.alpaca.markets/v2"
headers = json.loads(open("key.txt", 'r').read())
def hist_data(symbols, start="2021-01-01", timeframe="1Hour", limit=50, end=""):
"""
returns historical b... | 39.159574 | 115 | 0.551481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,421 | 0.386036 |
73f83bfdf1bdf3cc0ae0369940411280ceef339a | 4,420 | py | Python | yaps/server/subscription.py | victorhook/vqtt | f79f9826ce91bf77a75047c22d7a729d539f83f9 | [
"MIT"
] | null | null | null | yaps/server/subscription.py | victorhook/vqtt | f79f9826ce91bf77a75047c22d7a729d539f83f9 | [
"MIT"
] | null | null | null | yaps/server/subscription.py | victorhook/vqtt | f79f9826ce91bf77a75047c22d7a729d539f83f9 | [
"MIT"
] | 1 | 2021-03-02T19:18:30.000Z | 2021-03-02T19:18:30.000Z | import asyncio
from yaps.api import protocol
from yaps.utils.log import Log
SLEEP_SLOT_TIME = 1 # In seconds.
class State:
PING_PONG = 1
PING_PONG_1_MISS = 2
PING_PONG_2_MISS = 3
class Subscription:
"""
Abstraction for handling a subscription.
This class has utilites that ... | 31.126761 | 78 | 0.563801 | 4,293 | 0.971267 | 0 | 0 | 0 | 0 | 2,156 | 0.487783 | 1,394 | 0.315385 |
73fb16f86099e7cc34882ec8e6eb8ce6cb617a74 | 487 | py | Python | processing/1_comset.py | acleclair/ICPC2020_GNN | a8b03de597e8f25c17503c3834c7956ecc8f2247 | [
"MIT"
] | 58 | 2020-04-09T20:29:34.000Z | 2022-03-28T11:38:40.000Z | processing/1_comset.py | acleclair/ICPC2020_GNN | a8b03de597e8f25c17503c3834c7956ecc8f2247 | [
"MIT"
] | 11 | 2020-04-11T14:19:01.000Z | 2021-11-27T07:38:41.000Z | processing/1_comset.py | acleclair/ICPC2020_GNN | a8b03de597e8f25c17503c3834c7956ecc8f2247 | [
"MIT"
] | 14 | 2020-06-15T14:32:03.000Z | 2022-01-23T10:33:15.000Z | import pickle
bad_fid = pickle.load(open('autogenfid.pkl', 'rb'))
comdata = 'com_pp.txt'
good_fid = []
outfile = './output/dataset.coms'
fo = open(outfile, 'w')
for line in open(comdata):
tmp = line.split(',')
fid = int(tmp[0].strip())
if bad_fid[fid]:
continue
com = tmp[1].strip()
com... | 20.291667 | 51 | 0.546201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.170431 |
73fb988d86cc41ea1f693ac556af57905fca2bc3 | 22,588 | py | Python | shibuya/cubesym.py | Parcly-Taxel/Shibuya | aa79b47d2a5fc859acb9645ebd635578fe2f145b | [
"MIT"
] | null | null | null | shibuya/cubesym.py | Parcly-Taxel/Shibuya | aa79b47d2a5fc859acb9645ebd635578fe2f145b | [
"MIT"
] | null | null | null | shibuya/cubesym.py | Parcly-Taxel/Shibuya | aa79b47d2a5fc859acb9645ebd635578fe2f145b | [
"MIT"
] | null | null | null | """
Cubic symmetric graphs. Most of the embeddings realised here were taken from MathWorld.
"""
from mpmath import *
from functools import reduce
from shibuya.generators import cu, star_radius, ring_edges, lcf_edges
from shibuya.generators import all_unit_distances, circumcentre
from shibuya.generators import fixparams... | 35.91097 | 230 | 0.527625 | 0 | 0 | 0 | 0 | 1,547 | 0.068482 | 0 | 0 | 3,025 | 0.133909 |
73fbbcb7d6e336ad39011f035279ed591c9a4ab4 | 937 | py | Python | src/create_scatterplot.py | djparente/coevol-utils | 966a1f16872d72886b92cc3fa51f803412acc481 | [
"BSD-3-Clause"
] | 1 | 2016-03-13T05:26:40.000Z | 2016-03-13T05:26:40.000Z | src/create_scatterplot.py | djparente/coevol-utils | 966a1f16872d72886b92cc3fa51f803412acc481 | [
"BSD-3-Clause"
] | null | null | null | src/create_scatterplot.py | djparente/coevol-utils | 966a1f16872d72886b92cc3fa51f803412acc481 | [
"BSD-3-Clause"
] | null | null | null | #!/cygdrive/c/Python27/python.exe
# Daniel J. Parente, Ph.D.
# Swint-Kruse Laboratory
# Physician Scientist Training Program
# University of Kansas Medical Center
# This code is adapted from the example available at
# http://pandasplotting.blogspot.com/2012/04/added-kde-to-scatter-matrix-diagonals.html
# Creates a s... | 28.393939 | 125 | 0.760939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 550 | 0.58698 |
73fdabf0cf89f2998b7ab3d1732e81dfc49cf70e | 4,143 | py | Python | core/perspective_projection.py | sam-lb/python-grapher | 657c423fa6e1f2260988749807db9a5beaf1fef2 | [
"MIT"
] | 2 | 2019-08-21T15:02:51.000Z | 2019-09-03T00:26:48.000Z | core/perspective_projection.py | sam-lb/mathgraph3d | 657c423fa6e1f2260988749807db9a5beaf1fef2 | [
"MIT"
] | 6 | 2019-07-28T21:28:11.000Z | 2019-11-05T12:08:23.000Z | core/perspective_projection.py | sam-lb/mathgraph3d | 657c423fa6e1f2260988749807db9a5beaf1fef2 | [
"MIT"
] | null | null | null | import pygame;
import numpy as np;
from math import sin, cos;
pygame.init();
width, height, depth = 640, 480, 800;
camera = [width // 2, height // 2, depth];
units_x, units_y, units_z = 8, 8, 8;
scale_x, scale_y, scale_z = width / units_x, height / units_y, depth / units_z;
screen = pygame.display.set_mode((width, he... | 34.525 | 99 | 0.565291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 987 | 0.238233 |
73fea2fbc1c54c3ba581a8b82427643b53be014d | 1,444 | py | Python | manu_sawyer/src/tensorflow_model_is_gripping/grasp_example.py | robertocalandra/the-feeling-of-success | 7bb895897e369ae9f5fcaeed61d401e019a9cdf1 | [
"MIT"
] | 10 | 2018-05-31T04:57:25.000Z | 2021-05-28T11:22:29.000Z | manu_sawyer/src/tensorflow_model_is_gripping/grasp_example.py | robertocalandra/the-feeling-of-success | 7bb895897e369ae9f5fcaeed61d401e019a9cdf1 | [
"MIT"
] | null | null | null | manu_sawyer/src/tensorflow_model_is_gripping/grasp_example.py | robertocalandra/the-feeling-of-success | 7bb895897e369ae9f5fcaeed61d401e019a9cdf1 | [
"MIT"
] | 3 | 2018-05-31T05:00:08.000Z | 2019-02-25T06:32:45.000Z | import grasp_net, grasp_params, h5py, aolib.img as ig, os, numpy as np, aolib.util as ut
net_pr = grasp_params.im_fulldata_v5()
net_pr = grasp_params.gel_im_fulldata_v5()
checkpoint_file = '/home/manu/ros_ws/src/manu_research/manu_sawyer/src/tensorflow_model_is_gripping/training/net.tf-6499'
gpu = '/gpu:0'
db_file = ... | 40.111111 | 121 | 0.668975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 484 | 0.33518 |
73febbee1eb35f8161409705d1117c1808557690 | 3,683 | py | Python | API/models/models.py | Rkanehisa/Stone_Projeto | b022cc7031ba2c3b29181df2720197ca9edc1ab3 | [
"MIT"
] | null | null | null | API/models/models.py | Rkanehisa/Stone_Projeto | b022cc7031ba2c3b29181df2720197ca9edc1ab3 | [
"MIT"
] | null | null | null | API/models/models.py | Rkanehisa/Stone_Projeto | b022cc7031ba2c3b29181df2720197ca9edc1ab3 | [
"MIT"
] | null | null | null | from API.db import db
from datetime import datetime
from passlib.apps import custom_app_context as pwd_context
class User(db.Model):
__tablename__ = "users"
def __init__(self, username, password):
self.username = username
self.password = pwd_context.hash(password)
self.limit = 0
... | 31.211864 | 114 | 0.65653 | 3,564 | 0.967689 | 0 | 0 | 320 | 0.086886 | 0 | 0 | 232 | 0.062992 |
73fecce467712a52b8aaf68f72a88091d6f9da83 | 418 | py | Python | src/TestDice.py | Yamanama/CodeMonkeyApplication | 4dc24016b96dbed5b8e833d5248dd76d1f3dfc08 | [
"MIT"
] | null | null | null | src/TestDice.py | Yamanama/CodeMonkeyApplication | 4dc24016b96dbed5b8e833d5248dd76d1f3dfc08 | [
"MIT"
] | null | null | null | src/TestDice.py | Yamanama/CodeMonkeyApplication | 4dc24016b96dbed5b8e833d5248dd76d1f3dfc08 | [
"MIT"
] | null | null | null | import unittest
from Dice import Dice
class TestDice(unittest.TestCase):
def setUp(self):
self.sides = 8
self.dice = Dice(self.sides)
def test_roll(self):
for i in range(1000):
self.assertLessEqual(self.dice.roll(), self.sides)
def test_error(self):
self.asse... | 19.904762 | 62 | 0.636364 | 309 | 0.739234 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 0.064593 |
73fef45c289e3867a6d35ff55ed2c6e15b25c65c | 16,694 | py | Python | accProcess.py | CASSON-LAB/BiobankActivityCSF | d3e6d7283aed72fa329da1e045fa49cc7e6b2e9c | [
"BSD-2-Clause"
] | 3 | 2020-08-03T12:08:34.000Z | 2021-03-16T11:31:01.000Z | accProcess.py | CASSON-LAB/BiobankActivityCSF | d3e6d7283aed72fa329da1e045fa49cc7e6b2e9c | [
"BSD-2-Clause"
] | null | null | null | accProcess.py | CASSON-LAB/BiobankActivityCSF | d3e6d7283aed72fa329da1e045fa49cc7e6b2e9c | [
"BSD-2-Clause"
] | 1 | 2020-08-05T16:13:02.000Z | 2020-08-05T16:13:02.000Z | """Command line tool to extract meaningful health info from accelerometer data."""
import accelerometer.accUtils
import argparse
import collections
import datetime
import accelerometer.device
import json
import os
import accelerometer.summariseEpoch
import sys
import pandas as pd
import numpy as np
import matplotlib.p... | 49.684524 | 93 | 0.547622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,337 | 0.439499 |
fb3f354629384e19edefd222de21d0f75d624bfc | 382 | py | Python | VetsApp/views.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 2 | 2020-04-13T14:26:54.000Z | 2022-01-19T01:30:25.000Z | VetsApp/views.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 2 | 2020-05-29T18:52:55.000Z | 2020-05-30T02:06:28.000Z | VetsApp/views.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 8 | 2020-04-11T08:30:44.000Z | 2020-05-30T03:26:13.000Z | from django.shortcuts import render
from .models import VetsInfoTable
# Create your views here.
def home(request):
context = {
"name": "Home"
}
return render(request, 'index.html', context)
def view_vets(request):
obj = VetsInfoTable.objects.all()
context = {
"vets_data": obj... | 15.916667 | 53 | 0.641361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 76 | 0.198953 |
fb40883451f136e23adf11a2d1d1d175606ca586 | 542 | py | Python | generate.py | IsaacPeters/Closest-Pair-of-Points | 3c71efcbeae12b0b187117a671b782e392ea71b2 | [
"MIT"
] | 1 | 2021-07-18T03:59:55.000Z | 2021-07-18T03:59:55.000Z | generate.py | IsaacPeters/Closest-Pair-of-Points | 3c71efcbeae12b0b187117a671b782e392ea71b2 | [
"MIT"
] | null | null | null | generate.py | IsaacPeters/Closest-Pair-of-Points | 3c71efcbeae12b0b187117a671b782e392ea71b2 | [
"MIT"
] | null | null | null | import sys
import math
import random
# Figure out what we should name our output file, and how big it should be
if len(sys.argv) != 3: # Make sure we get a file argument, and only that
print("Incorrect number of arguments found, should be \"generate <file> 10^<x>\"")
for i in range(10):
with open("./gen/%s%d"... | 38.714286 | 86 | 0.612546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 222 | 0.409594 |
fb40d608ac0b102b80003c2f549912877d9e3d53 | 963 | py | Python | wagtail/snippets/urls.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 2 | 2021-03-18T21:41:05.000Z | 2021-03-18T21:41:08.000Z | wagtail/snippets/urls.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 13 | 2015-05-08T12:27:10.000Z | 2020-01-23T14:45:57.000Z | wagtail/snippets/urls.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 2 | 2020-09-03T20:12:32.000Z | 2021-03-29T08:29:23.000Z | from django.urls import path
from wagtail.snippets.views import chooser, snippets
app_name = 'wagtailsnippets'
urlpatterns = [
path('', snippets.index, name='index'),
path('choose/', chooser.choose, name='choose_generic'),
path('choose/<slug:app_label>/<slug:model_name>/', chooser.choose, name='choose')... | 45.857143 | 105 | 0.688474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 495 | 0.514019 |
fb413304ce562fca6f9892396c8901821a208e1e | 1,974 | py | Python | ding/envs/env/tests/test_env_implementation_check.py | jayyoung0802/DI-engine | efbb35ddaf184d1009291e6842fbbae09f193492 | [
"Apache-2.0"
] | 1 | 2022-03-21T16:15:39.000Z | 2022-03-21T16:15:39.000Z | ding/envs/env/tests/test_env_implementation_check.py | jayyoung0802/DI-engine | efbb35ddaf184d1009291e6842fbbae09f193492 | [
"Apache-2.0"
] | null | null | null | ding/envs/env/tests/test_env_implementation_check.py | jayyoung0802/DI-engine | efbb35ddaf184d1009291e6842fbbae09f193492 | [
"Apache-2.0"
] | null | null | null | import pytest
from easydict import EasyDict
import numpy as np
import gym
from copy import deepcopy
from ding.envs.env import check_array_space, check_different_memory, check_all, demonstrate_correct_procedure
from ding.envs.env.tests import DemoEnv
@pytest.mark.unittest
def test_an_implemented_env():
demo_env =... | 37.961538 | 109 | 0.691489 | 0 | 0 | 0 | 0 | 1,714 | 0.868288 | 0 | 0 | 67 | 0.033941 |
fb421f779844bb484b1c9c0a35a1b99901994f6f | 18,474 | py | Python | tests/evergreen/metrics/test_buildmetrics.py | jamesbroadhead/evergreen.py | 08418bf53bb7cd8de8a68aa6ae0847f28e9e0a30 | [
"Apache-2.0"
] | null | null | null | tests/evergreen/metrics/test_buildmetrics.py | jamesbroadhead/evergreen.py | 08418bf53bb7cd8de8a68aa6ae0847f28e9e0a30 | [
"Apache-2.0"
] | null | null | null | tests/evergreen/metrics/test_buildmetrics.py | jamesbroadhead/evergreen.py | 08418bf53bb7cd8de8a68aa6ae0847f28e9e0a30 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
"""Unit tests for src/evergreen/metrics/buildmetrics.py."""
from __future__ import absolute_import
from unittest.mock import MagicMock
import pytest
import evergreen.metrics.buildmetrics as under_test
from evergreen.errors.exceptions import ActiveTaskMetricsException
from evergreen.task imp... | 41.053333 | 81 | 0.691783 | 17,963 | 0.97234 | 0 | 0 | 0 | 0 | 0 | 0 | 1,264 | 0.06842 |
fb427d81000b8506419aa7780e97ffc579670c50 | 813 | py | Python | tools_d2/convert-pretrain-model-to-d2.py | nguyentritai2906/panoptic-deeplab | 6bbe17801488a417ed9586acab285ee6a05d68cb | [
"Apache-2.0"
] | 506 | 2020-06-12T01:07:56.000Z | 2022-03-26T00:56:52.000Z | tools_d2/convert-pretrain-model-to-d2.py | MrMa-T/panoptic-deeplab | cf8e20bbbf1cf540c7593434b965a93c4a889890 | [
"Apache-2.0"
] | 85 | 2020-06-12T04:51:31.000Z | 2022-03-23T16:19:44.000Z | tools_d2/convert-pretrain-model-to-d2.py | MrMa-T/panoptic-deeplab | cf8e20bbbf1cf540c7593434b965a93c4a889890 | [
"Apache-2.0"
] | 102 | 2020-06-12T06:45:44.000Z | 2022-03-22T14:03:04.000Z | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import pickle as pkl
import sys
import torch
"""
Usage:
# download your pretrained model:
wget https://github.com/LikeLy-Journey/SegmenTron/releases/download/v0.1.0/tf-xception65-270e81cf.pth -O x65.pth
# run the conver... | 24.636364 | 114 | 0.681427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 585 | 0.719557 |
fb4386dbb22354c808375368f8d1474f3605a181 | 2,953 | py | Python | test_geo.py | OrrEos/IA-Flood-Warning-Project | af485560050c6e387aabf0bd7500b13de62f810f | [
"MIT"
] | null | null | null | test_geo.py | OrrEos/IA-Flood-Warning-Project | af485560050c6e387aabf0bd7500b13de62f810f | [
"MIT"
] | null | null | null | test_geo.py | OrrEos/IA-Flood-Warning-Project | af485560050c6e387aabf0bd7500b13de62f810f | [
"MIT"
] | 1 | 2022-01-24T09:57:24.000Z | 2022-01-24T09:57:24.000Z | import random
from floodsystem.utils import sorted_by_key # noqa
from floodsystem.geo import stations_by_distance, stations_within_radius, rivers_with_station, stations_by_river,rivers_by_station_number
from floodsystem.stationdata import build_station_list
'''def test_geo():
#Task 1A
#does the function ... | 29.828283 | 137 | 0.679986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,256 | 0.42533 |
fb43e8774473bcb7c7cfe41180999e085bda6d33 | 724 | py | Python | app.py | aws-samples/aws-cdk-service-catalog-pipeline | e6e3eab0dec3fc41e7621971453131fd0d5b6e32 | [
"MIT-0"
] | null | null | null | app.py | aws-samples/aws-cdk-service-catalog-pipeline | e6e3eab0dec3fc41e7621971453131fd0d5b6e32 | [
"MIT-0"
] | null | null | null | app.py | aws-samples/aws-cdk-service-catalog-pipeline | e6e3eab0dec3fc41e7621971453131fd0d5b6e32 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python3
import os
import aws_cdk as cdk
# For consistency with TypeScript code, `cdk` is the preferred import name for
# the CDK's core module. The following line also imports it as `core` for use
# with examples from the CDK Developer's Guide, which are in the process of
# being updated to use `cdk`.... | 31.478261 | 79 | 0.727901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 454 | 0.627072 |
fb4452119142d00f8ea5508e610548a9fa55bde5 | 1,565 | py | Python | Generator/Sheet3/PDF.py | trngb/watools | 57b9074d59d856886675aa26014bfd6673d5da76 | [
"Apache-2.0"
] | 11 | 2018-09-25T08:58:26.000Z | 2021-02-13T18:58:05.000Z | Generator/Sheet3/PDF.py | trngbich/watools | 57b9074d59d856886675aa26014bfd6673d5da76 | [
"Apache-2.0"
] | 1 | 2020-07-03T02:36:41.000Z | 2021-03-21T22:20:47.000Z | Generator/Sheet3/PDF.py | trngbich/watools | 57b9074d59d856886675aa26014bfd6673d5da76 | [
"Apache-2.0"
] | 16 | 2018-09-28T22:55:11.000Z | 2021-02-22T13:03:56.000Z | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2017
Contact: [email protected]
Repository: https://github.com/wateraccounting/wa
Module: Generator/Sheet3
"""
import os
def Create(Dir_Basin, Basin, Simulation, Dir_Basin_CSV_a, Dir_Basin_CSV_b):
"""
This functions create the monthly ... | 33.297872 | 157 | 0.681789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 882 | 0.563578 |
fb446c8a40864dcf38289e8b379abbb25374263e | 2,481 | py | Python | bonita/commands/user.py | dantebarba/bonita-cli | f750a6a1ff802e5197644b2363aea406bf29b6bf | [
"WTFPL"
] | 2 | 2017-09-02T08:05:03.000Z | 2018-09-17T13:48:03.000Z | bonita/commands/user.py | dantebarba/bonita-cli | f750a6a1ff802e5197644b2363aea406bf29b6bf | [
"WTFPL"
] | null | null | null | bonita/commands/user.py | dantebarba/bonita-cli | f750a6a1ff802e5197644b2363aea406bf29b6bf | [
"WTFPL"
] | null | null | null | """The user command."""
from json import dumps
from .base import Base
from bonita.api.bonita_client import BonitaClient
class User(Base):
"""Manage user"""
def run(self):
# bonita process [deploy <filename_on_server>|get <process_id>|enable <process_id>|disable <process_id>]
#print('You sup... | 33.986301 | 112 | 0.563886 | 2,357 | 0.95002 | 0 | 0 | 0 | 0 | 0 | 0 | 611 | 0.246272 |
fb4520cbe2999728bc66894639cfa8a36d53fb16 | 1,809 | py | Python | pyActionRec/action_flow.py | Xiatian-Zhu/anet2016_cuhk | a0df08cbbe65013e9a259d5412c33a99c2c84127 | [
"BSD-2-Clause"
] | 253 | 2016-07-01T22:57:55.000Z | 2022-03-01T10:59:31.000Z | pyActionRec/action_flow.py | Xiatian-Zhu/anet2016_cuhk | a0df08cbbe65013e9a259d5412c33a99c2c84127 | [
"BSD-2-Clause"
] | 39 | 2016-08-31T08:42:24.000Z | 2021-12-11T06:56:47.000Z | pyActionRec/action_flow.py | Xiatian-Zhu/anet2016_cuhk | a0df08cbbe65013e9a259d5412c33a99c2c84127 | [
"BSD-2-Clause"
] | 101 | 2016-07-01T22:57:57.000Z | 2022-03-08T07:26:53.000Z | from config import ANET_CFG
import sys
sys.path.append(ANET_CFG.DENSE_FLOW_ROOT+'/build')
from libpydenseflow import TVL1FlowExtractor
import action_caffe
import numpy as np
class FlowExtractor(object):
def __init__(self, dev_id, bound=20):
TVL1FlowExtractor.set_device(dev_id)
self._et = TVL1F... | 30.15 | 113 | 0.611388 | 1,234 | 0.682145 | 0 | 0 | 0 | 0 | 0 | 0 | 223 | 0.123273 |
fb4743a6ee0568d1f98e6dec89a2138670b26a6f | 9,921 | py | Python | aqme/qdesc.py | patonlab/aqme | 080d8e85ee905718ddf78f7fdee2ee308a293ad1 | [
"MIT"
] | null | null | null | aqme/qdesc.py | patonlab/aqme | 080d8e85ee905718ddf78f7fdee2ee308a293ad1 | [
"MIT"
] | null | null | null | aqme/qdesc.py | patonlab/aqme | 080d8e85ee905718ddf78f7fdee2ee308a293ad1 | [
"MIT"
] | null | null | null | #####################################################.
# This file stores all the functions #
# used for genrating all parameters #
#####################################################.
from rdkit.Chem import AllChem as Chem
from rdkit.Chem import rdMolTransforms
import os
import pandas... | 65.269737 | 238 | 0.603467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,884 | 0.1899 |
fb49836ffdfff81dfa3d877748d3c2b47f98f7fb | 3,446 | py | Python | googlecode-issues-exporter/generate_user_map.py | ballschin52/support-tools | 85be996e89d292c7f20031dde88198acc63d5e6c | [
"Apache-2.0"
] | 41 | 2016-05-03T02:27:07.000Z | 2021-10-14T13:54:16.000Z | googlecode-issues-exporter/generate_user_map.py | ballschin52/support-tools | 85be996e89d292c7f20031dde88198acc63d5e6c | [
"Apache-2.0"
] | 7 | 2016-05-05T13:53:37.000Z | 2021-06-27T20:25:13.000Z | googlecode-issues-exporter/generate_user_map.py | ballschin52/support-tools | 85be996e89d292c7f20031dde88198acc63d5e6c | [
"Apache-2.0"
] | 30 | 2016-05-05T13:26:21.000Z | 2021-10-13T09:39:21.000Z | # Copyright 2014 Google Inc. 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 law or a... | 28.716667 | 78 | 0.702844 | 172 | 0.049913 | 0 | 0 | 0 | 0 | 0 | 0 | 1,506 | 0.437028 |
fb4998788840ae0b088496c0b1aec6536f521b03 | 952 | py | Python | apps/auth/views/wxlogin.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/auth/views/wxlogin.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/auth/views/wxlogin.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | from flask import Blueprint
from apps.auth.business.wxlogin import WxLoginBusiness
from apps.auth.extentions import validation, parse_json_form
from library.api.render import json_detail_render
wxlogin = Blueprint("wxlogin", __name__)
@wxlogin.route('/', methods=['POST'])
@validation('POST:wx_user_code')
def wxuser... | 25.052632 | 65 | 0.668067 | 0 | 0 | 0 | 0 | 740 | 0.755102 | 0 | 0 | 532 | 0.542857 |
fb4ad13207c5ca10ca59d1294d3d67f91a07e8bb | 4,374 | py | Python | servidor/jornada_teorica.py | angeloide78/wShifts | d88a3284c8a3829a7fbda127eb23c4d5392033f3 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2019-12-21T22:07:11.000Z | 2021-09-24T15:08:45.000Z | servidor/jornada_teorica.py | angeloide78/wShifts | d88a3284c8a3829a7fbda127eb23c4d5392033f3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-24T23:10:40.000Z | 2018-03-24T23:10:40.000Z | servidor/jornada_teorica.py | angeloide78/wShifts | d88a3284c8a3829a7fbda127eb23c4d5392033f3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-26T21:47:10.000Z | 2022-01-26T21:47:10.000Z | # -*- coding: utf-8 -*
# ALGG 03-01-2017 Creación de módulo jornada_teorica.
class JornadaTeorica(object):
def __init__(self, conn):
'''Constructor'''
# Conexión.
self.__conn = conn
def get_jt(self, centro_fisico_id = None, anno = None):
'''Devuelve: (... | 32.887218 | 79 | 0.486968 | 4,294 | 0.978355 | 0 | 0 | 0 | 0 | 0 | 0 | 2,034 | 0.463431 |
fb4e27ed9f0165f7474ca1a89bce202114f9a019 | 3,645 | py | Python | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 58 | 2017-04-20T17:25:25.000Z | 2021-02-05T21:41:25.000Z | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 3 | 2018-04-08T22:03:25.000Z | 2020-05-07T06:03:21.000Z | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 17 | 2017-12-03T04:26:48.000Z | 2021-01-26T21:18:27.000Z | '''
This code was based on these repositories,
so special thanks to:
https://github.com/datademofun/spotify-flask
https://github.com/drshrey/spotify-flask-auth-example
'''
from flask import Flask, request, redirect, g, render_template, session
from spotify_requests import spotify
app = Flask(... | 27.613636 | 72 | 0.609877 | 0 | 0 | 0 | 0 | 2,452 | 0.672702 | 0 | 0 | 927 | 0.254321 |
fb4e569bf8fd09a1c7d6371a76f1b851a6a2772b | 7,275 | py | Python | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 4 | 2017-06-12T15:18:30.000Z | 2019-10-11T15:12:43.000Z | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 64 | 2017-05-14T22:15:53.000Z | 2020-03-08T15:26:49.000Z | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 2 | 2018-09-08T08:02:25.000Z | 2020-04-24T13:02:06.000Z | from ckan import model
from ckan.lib.cli import CkanCommand
from ckan.lib.munge import munge_title_to_name, substitute_ascii_equivalents
from ckan.logic import get_action
from ckan.lib.helpers import render_markdown
from ckan.plugins import toolkit
import logging
log = logging.getLogger(__name__)
class MigrationCom... | 39.538043 | 121 | 0.576082 | 6,972 | 0.958351 | 0 | 0 | 0 | 0 | 0 | 0 | 2,979 | 0.409485 |
fb4fa127bfbce18cd4fdeeaf2d1ebf19b58badc3 | 13,826 | py | Python | run.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | run.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | run.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import cv2
from scipy.misc import imsave
import matplotlib.pyplot as plt
import analysis
import imageprocess
import datainterface
import imagemosaicking
town_names = ['昂素镇', '敖勒召其镇', '布拉格苏木', '城川镇', '二道川乡', \
'毛盖图苏木', '三段地镇', '上海庙镇', '珠和苏木']
for index in rang... | 41.39521 | 117 | 0.667872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,001 | 0.431044 |
fb4fc030e59a7a7273510289cf7ba58993b6464b | 2,593 | py | Python | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | null | null | null | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | 2 | 2019-04-05T21:38:16.000Z | 2019-12-25T07:15:37.000Z | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | 6 | 2018-07-29T11:41:35.000Z | 2020-12-02T12:22:52.000Z | import logging
import os
import unittest
from logging.config import fileConfig
from src.lambda_function import validate_configurations as validate
# create logger assuming running from ./run script
fileConfig('tests/logging_config.ini')
logger = logging.getLogger(__name__)
class TestLambdaFunction(unittest.TestCase... | 35.520548 | 103 | 0.687235 | 2,266 | 0.873891 | 0 | 0 | 0 | 0 | 0 | 0 | 1,062 | 0.409564 |
fb4fd1b54e5406173715c8f8b6132187b8fbeda2 | 1,954 | py | Python | script/QA_LSTM.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | 4 | 2017-06-19T01:15:55.000Z | 2020-02-29T03:45:26.000Z | script/QA_LSTM_v2.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | null | null | null | script/QA_LSTM_v2.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow
from keras import Input, optimizers
from keras import backend as K
from keras.engine import Model
from keras import layers
from keras.layers import Bidirectional, LSTM, merge, Reshape, Lambda, Dense, BatchNormalization
K.clear_session()
print("设置显卡信息...")
# 设置tendorflow对显存使用按需增长
co... | 31.516129 | 95 | 0.720061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 369 | 0.181416 |
fb515bfaa92002625ae59283942eea3a360391f0 | 467 | py | Python | lib/mysocket.py | vanphuong12a2/pposter | fac6e289985909de059150ca860677dba9ade6c9 | [
"MIT"
] | null | null | null | lib/mysocket.py | vanphuong12a2/pposter | fac6e289985909de059150ca860677dba9ade6c9 | [
"MIT"
] | null | null | null | lib/mysocket.py | vanphuong12a2/pposter | fac6e289985909de059150ca860677dba9ade6c9 | [
"MIT"
] | null | null | null | from flask_socketio import SocketIO
NOTI = 'notification'
class MySocket():
def __init__(self, app, async_mode):
self.socketio = SocketIO(app, async_mode=async_mode)
def get_socketio(self):
return self.socketio
def noti_emit(self, msg, room=None):
if room:
self.soc... | 23.35 | 81 | 0.62955 | 404 | 0.865096 | 0 | 0 | 0 | 0 | 0 | 0 | 40 | 0.085653 |
fb51e6590cca3f878c6c2b90af8869c140eb763b | 2,128 | py | Python | server/tests/steps/sql_translator/test_filter.py | davinov/weaverbird | 3f907f080729ba70be8872d6c5ed0fdcec9b8a9a | [
"BSD-3-Clause"
] | 54 | 2019-11-20T15:07:39.000Z | 2022-03-24T22:13:51.000Z | server/tests/steps/sql_translator/test_filter.py | ToucanToco/weaverbird | 7cbd3cc612437a876470cc872efba69526694d62 | [
"BSD-3-Clause"
] | 786 | 2019-10-20T11:48:37.000Z | 2022-03-23T08:58:18.000Z | server/tests/steps/sql_translator/test_filter.py | davinov/weaverbird | 3f907f080729ba70be8872d6c5ed0fdcec9b8a9a | [
"BSD-3-Clause"
] | 10 | 2019-11-21T10:16:16.000Z | 2022-03-21T10:34:06.000Z | import pytest
from weaverbird.backends.sql_translator.metadata import SqlQueryMetadataManager
from weaverbird.backends.sql_translator.steps import translate_filter
from weaverbird.backends.sql_translator.types import SQLQuery
from weaverbird.pipeline.conditions import ComparisonCondition
from weaverbird.pipeline.steps... | 40.150943 | 111 | 0.706767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 711 | 0.334117 |
fb5248790acad20b7f6c753089b4b879cf218187 | 4,322 | py | Python | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | """
Load tests from :class:`unittest.TestCase` subclasses.
This plugin implements :func:`loadTestsFromName` and
:func:`loadTestsFromModule` to load tests from
:class:`unittest.TestCase` subclasses found in modules or named on the
command line.
"""
# Adapted from unittest2/loader.py from the unittest2 plugins branch.... | 37.258621 | 85 | 0.635817 | 3,599 | 0.832716 | 0 | 0 | 0 | 0 | 0 | 0 | 969 | 0.224202 |
fb52ea45a86609e7040cf2f5adb9df43b0bf1496 | 265 | py | Python | todo/main.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | todo/main.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | todo/main.py | shuayb/simple-todo | 7a6c840d38ada098b5cc3458d652c7db02ffd791 | [
"MIT"
] | null | null | null | from app import app, db
import models
import views
if __name__ == '__main__':
app.run()
# No need to do (debug=True), as in config.py, debug = true is already set.
# app.run(debug=True)
# app.run(debug=True, use_debugger=False, use_reloader=False)
| 26.5 | 79 | 0.683019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 167 | 0.630189 |
fb53c7de261609a0deb36f13cdae3c4c1cc92433 | 789 | py | Python | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 10 | 2017-12-28T10:15:56.000Z | 2020-10-19T18:13:58.000Z | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 37 | 2018-03-07T00:48:37.000Z | 2021-03-22T20:03:48.000Z | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 27 | 2018-03-06T19:56:01.000Z | 2022-03-23T04:18:23.000Z | import sys
sys.path.append("./pysphere")
from pysphere import VIServer
from pysphere.resources.vi_exception import VIException, VIApiException, \
FaultTypes
import sys
if len(sys.argv) != 6:
sys.exit("error = please check arguments")
serverName = sys.argv[1]
login =... | 29.222222 | 75 | 0.673004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 110 | 0.139417 |
fb56942879beca982f2985123f64367d7b06b779 | 1,431 | py | Python | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 61 | 2021-08-19T06:10:03.000Z | 2021-10-09T06:44:54.000Z | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 41 | 2021-09-08T03:02:42.000Z | 2021-09-29T09:00:57.000Z | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 11 | 2021-08-20T06:19:08.000Z | 2021-10-02T14:55:39.000Z | import json
import logging
import tensorflow as tf
from easy_rec.python.protos.dataset_pb2 import DatasetConfig
from easy_rec.python.protos.feature_config_pb2 import FeatureConfig
from easy_rec.python.utils.config_util import get_compatible_feature_configs
from easy_rec.python.utils.convert_rtp_fg import load_input_... | 34.071429 | 92 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 117 | 0.081761 |
fb56b6a8fcadb6c716511c7be794553961db8e2e | 529 | py | Python | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | null | null | null | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | 1 | 2019-02-06T21:38:12.000Z | 2019-02-06T21:38:12.000Z | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | null | null | null | import pytest
@pytest.fixture(scope="session")
def shared_zone_test_context(request):
from shared_zone_test_context import SharedZoneTestContext
ctx = SharedZoneTestContext()
def fin():
ctx.tear_down()
request.addfinalizer(fin)
return ctx
@pytest.fixture(scope="session")
def zone_hist... | 18.241379 | 62 | 0.725898 | 0 | 0 | 0 | 0 | 510 | 0.964083 | 0 | 0 | 18 | 0.034026 |
fb57d98140afeca2dc5e728adfc2de4c920c0f82 | 15,642 | py | Python | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | from enum import Enum
import requests
import argparse
import nflgame
def get_user_id_to_team_name(league_id):
"""
Gets a map of fantasy player user id to their team name
"""
user_id_to_team_name = {}
r = requests.get("https://api.sleeper.app/v1/league/%s/users" % league_id)
user_data = r.json()... | 47.256798 | 180 | 0.637642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,208 | 0.269019 |
fb593493c97b14b708bc0b8b5a7f5e7166948d28 | 10,489 | py | Python | Kelp/kelp.py | trondkr/particleDistributions | 1f5be088150db92c985c00210951ab62521bf694 | [
"MIT"
] | null | null | null | Kelp/kelp.py | trondkr/particleDistributions | 1f5be088150db92c985c00210951ab62521bf694 | [
"MIT"
] | 1 | 2019-07-11T15:02:32.000Z | 2019-07-11T16:57:03.000Z | Kelp/kelp.py | trondkr/particleDistributions | 1f5be088150db92c985c00210951ab62521bf694 | [
"MIT"
] | 1 | 2019-12-23T06:49:29.000Z | 2019-12-23T06:49:29.000Z | #!/usr/bin/env python
from datetime import datetime, timedelta
import numpy as np
from opendrift.readers import reader_basemap_landmask
from opendrift.readers import reader_ROMS_native
from kelp.kelpClass import PelagicPlanktonDrift
from opendrift.readers import reader_netCDF_CF_generic
import logging
import gdal
imp... | 38.992565 | 218 | 0.695586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,701 | 0.352846 |
fb59a435d0311305f0e15444f804e1c503ccd050 | 6,818 | py | Python | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | 1 | 2021-03-29T07:31:22.000Z | 2021-03-29T07:31:22.000Z | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | null | null | null | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | null | null | null | import json
import sqlite3
import typing
from typing import Optional, Dict
from copy import deepcopy
from contextlib import suppress
from bson.objectid import ObjectId
from pymongo import MongoClient
from pymongo.errors import ConfigurationError
class MongoStorageException(Exception):
pass
class Mongo:
def... | 37.668508 | 93 | 0.589909 | 6,563 | 0.962599 | 871 | 0.12775 | 0 | 0 | 0 | 0 | 851 | 0.124817 |
fb59b4889f363415f77eaf0d9d1624d307371014 | 13,486 | py | Python | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 26 | 2019-05-15T02:03:47.000Z | 2022-02-21T07:28:11.000Z | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 815 | 2019-05-10T12:31:52.000Z | 2022-03-31T12:56:26.000Z | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 9 | 2019-04-20T23:06:29.000Z | 2022-01-24T21:21:04.000Z | # pylint: skip-file
# type: ignore
# -*- coding: utf-8 -*-
#
# tests.models.opstress.opstress_integration_test.py is part of The RAMSTK Project
#
# All rights reserved.
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com
"""Class for testing operating stress integrations."""
... | 39.899408 | 88 | 0.710811 | 11,613 | 0.861115 | 1,068 | 0.079193 | 12,970 | 0.961738 | 0 | 0 | 5,383 | 0.399155 |
fb5a0434cd62419bd4c146c19aafa8c01ca37afb | 1,159 | py | Python | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | import os
from validr import T
from aiohttp.web import json_response
from aiohttp.web_request import Request
from rssant_common import timezone
from rssant_common.image_token import ImageToken, ImageTokenDecodeError
from rssant_config import CONFIG
from .rest_validr import ValidrRouteTableDef
from .image_proxy import... | 26.340909 | 71 | 0.724763 | 0 | 0 | 0 | 0 | 787 | 0.679034 | 729 | 0.628991 | 74 | 0.063848 |
fb5bb09cbb3eed2ec9bb972fd01943b3b7af90ee | 2,785 | py | Python | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 3 | 2021-02-04T02:53:35.000Z | 2021-07-22T01:09:36.000Z | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 17 | 2021-02-19T23:25:29.000Z | 2021-05-16T04:18:00.000Z | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | null | null | null | from testing_config import BaseTestConfig
from application.models import User
from application.models import Chatroom
import json
from application.utils import auth
class TestMatch(BaseTestConfig):
test_group = {
"name": "test_group",
"tag": "Poker",
}
test_group2 = {
"name": "test... | 29.315789 | 76 | 0.560144 | 2,614 | 0.9386 | 0 | 0 | 0 | 0 | 0 | 0 | 994 | 0.356912 |
fb5d367b92efd326d4327262afe891263095720b | 1,633 | py | Python | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | import sys
sys.path.insert(0, '/home/hena/caffe-ocr/buildcmake/install/python')
sys.path.insert(0, '/home/hena/tool/protobuf-3.1.0/python')
import caffe
import math
import numpy as np
def SoftMax(net_ans):
tmp_net = [math.exp(i) for i in net_ans]
sum_exp = sum(tmp_net)
return [i/sum_exp for i in tmp_net]
... | 29.160714 | 82 | 0.515615 | 1,302 | 0.797306 | 0 | 0 | 0 | 0 | 0 | 0 | 487 | 0.298224 |
fb5dda247bf82e8dba4c4c4fbaea1e533adc2c8f | 2,530 | py | Python | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | """
Tools for creating and working with Line (Station) Grids
"""
from typing import Union
import pyproj
import numpy as np
_atype = Union[type(None), np.ndarray]
_ptype = Union[type(None), pyproj.Proj]
class StaHGrid:
"""
Stations Grid
EXAMPLES:
--------
>>> x = arange(8)
>>> y = arange(8... | 24.326923 | 75 | 0.527273 | 2,319 | 0.916601 | 0 | 0 | 480 | 0.189723 | 0 | 0 | 626 | 0.247431 |
fb5e69fb9347917ede848ed32aab714b5ee1edac | 3,364 | py | Python | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from ..reco.disp import disp_vector
import astropy.units as u
import matplotlib.pyplot as plt
from ctapipe.visualization import CameraDisplay
__all__ = [
'overlay_disp_vector',
'overlay_hillas_major_axis',
'overlay_source',
'display_dl1_event',
]
def display_dl1_event(event, camera_... | 29.769912 | 106 | 0.633472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,443 | 0.428954 |
fb5ee7c913a1ddd435fb481e4af6d53922603786 | 14,537 | py | Python | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | null | null | null | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | null | null | null | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | 1 | 2022-02-16T22:25:22.000Z | 2022-02-16T22:25:22.000Z | import numpy as np
import random
from scipy.stats import skew as scipy_skew
from skimage.transform import resize as skimage_resize
from QFlow import config
## set of functions for loading and preparing a dataset for training.
def get_num_min_class(labels):
'''
Get the number of the minimum represented class i... | 35.982673 | 81 | 0.65323 | 2,380 | 0.16372 | 0 | 0 | 0 | 0 | 0 | 0 | 6,623 | 0.455596 |
fb5eea86a746925440911830c3d41121077c7f7a | 472 | py | Python | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/star/star_needs_assignment_target_py35.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 463 | 2015-01-15T08:17:42.000Z | 2022-03-28T15:10:20.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/star/star_needs_assignment_target_py35.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 52 | 2015-01-06T02:43:59.000Z | 2022-03-14T11:15:21.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/star/star_needs_assignment_target_py35.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 249 | 2015-01-07T22:49:49.000Z | 2022-03-18T02:32:06.000Z | """
Test PEP 0448 -- Additional Unpacking Generalizations
https://www.python.org/dev/peps/pep-0448/
"""
# pylint: disable=superfluous-parens, unnecessary-comprehension
UNPACK_TUPLE = (*range(4), 4)
UNPACK_LIST = [*range(4), 4]
UNPACK_SET = {*range(4), 4}
UNPACK_DICT = {'a': 1, **{'b': '2'}}
UNPACK_DICT2 = {**UNPACK_D... | 29.5 | 81 | 0.641949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 222 | 0.470339 |
fb5ffc354d2d854524531b1d4f70227336db8f87 | 238 | py | Python | src/ikazuchi/errors.py | t2y/ikazuchi | 7023111e92fa47360c50cfefd1398c554475f2c6 | [
"Apache-2.0"
] | null | null | null | src/ikazuchi/errors.py | t2y/ikazuchi | 7023111e92fa47360c50cfefd1398c554475f2c6 | [
"Apache-2.0"
] | null | null | null | src/ikazuchi/errors.py | t2y/ikazuchi | 7023111e92fa47360c50cfefd1398c554475f2c6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class IkazuchiError(Exception):
""" ikazuchi root exception """
pass
class TranslatorError(IkazuchiError):
""" ikazuchi translator exception """
pass
class NeedApiKeyError(TranslatorError): pass
| 19.833333 | 44 | 0.693277 | 208 | 0.87395 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.382353 |
fb607c62040621d2cd1122da4b43413ea79de0be | 4,331 | py | Python | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | 1 | 2020-09-25T02:46:00.000Z | 2020-09-25T02:46:00.000Z | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | null | null | null | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | null | null | null | import pyglet
print('Loading resources')
def center_image(image):
"""Sets an image's anchor point to its center"""
image.anchor_x = image.width / 2
image.anchor_y = image.height / 2
# Tell pyglet where to find the resources
pyglet.resource.path = ['./resources', './resources/backgrounds']
pyglet.resource... | 30.286713 | 84 | 0.803048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 915 | 0.211268 |
fb61944ce32d6c5a99c9e008904e108e5bfd2d77 | 2,517 | py | Python | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/gil9red/VideoStreamingWithEncryption/blob/37cf7f501460a286ec44a20db7b2403e8cb05d97/server_GUI_Qt/inner_libs/gui/SelectDirBox.py
import os
from PyQt5.QtWidgets import QWidget, QLineEdit, QLabel, QPushButton, QHBoxLa... | 28.931034 | 156 | 0.684148 | 1,881 | 0.747318 | 0 | 0 | 0 | 0 | 0 | 0 | 304 | 0.120779 |
fb623387f3a45681b01c77927c90b4d6cbbd3ef4 | 3,503 | py | Python | ImageStabilizer.py | arthurscholz/UMN-AFM-Scripts | 86b4d11f9f70f378200899c930d1fa38ad393c66 | [
"MIT"
] | null | null | null | ImageStabilizer.py | arthurscholz/UMN-AFM-Scripts | 86b4d11f9f70f378200899c930d1fa38ad393c66 | [
"MIT"
] | null | null | null | ImageStabilizer.py | arthurscholz/UMN-AFM-Scripts | 86b4d11f9f70f378200899c930d1fa38ad393c66 | [
"MIT"
] | null | null | null | import numpy as np
import picoscript
import cv2
import HeightTracker
import atexit
print "Setting Parameters..."
zDacRange = 0.215 # Sensor specific number
windowSize = 3e-6 # window size in meters
windowBLHCX = 3.5e-6 # window bottom left hand corner X-axis in meters
windowBLHCY = 3.5e-6 # window bottom left hand c... | 30.198276 | 96 | 0.663717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 453 | 0.129318 |
fb6262762a9edf203b455a0bed2e167c184ce590 | 1,947 | py | Python | Twitter Data Extraction.py | scottblender/twitter-covid-19-vaccine-analysis | a4d273b8b885fc33db075dfc910fa39645fa3789 | [
"MIT"
] | null | null | null | Twitter Data Extraction.py | scottblender/twitter-covid-19-vaccine-analysis | a4d273b8b885fc33db075dfc910fa39645fa3789 | [
"MIT"
] | null | null | null | Twitter Data Extraction.py | scottblender/twitter-covid-19-vaccine-analysis | a4d273b8b885fc33db075dfc910fa39645fa3789 | [
"MIT"
] | null | null | null | import snscrape.modules.twitter as sntwitter
import pandas as pd
# Creating list to append tweet data to
tweets_list2 = []
# Using TwitterSearchScraper to scrape data and append tweets to list
for i,tweet in enumerate(sntwitter.TwitterSearchScraper('covid vaccine until:2021-05-24').get_items()):
if i>100000:
... | 69.535714 | 320 | 0.757062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 779 | 0.400103 |
fb62f3f5a5769a80a5d13a6f4d1ccd457d5f9675 | 138 | py | Python | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | 22 | 2017-07-20T18:02:27.000Z | 2021-06-10T13:06:22.000Z | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | null | null | null | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | 2 | 2019-12-11T20:44:08.000Z | 2021-02-02T04:37:04.000Z | from .repository import Repository
from .manager import Manager
__all__ = ["Manager", "Repository", "__version__"]
__version__ = "0.2.0"
| 23 | 50 | 0.746377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 41 | 0.297101 |
fb62f6a8cb550f9476912173180ad44a3f1fe7d0 | 44,876 | py | Python | Source/Git/wb_git_project.py | barry-scott/git-workbench | 9f352875ab097ce5e45f85bf255b1fa02a196807 | [
"Apache-2.0"
] | 24 | 2017-03-23T06:24:02.000Z | 2022-03-19T13:35:44.000Z | Source/Git/wb_git_project.py | barry-scott/scm-workbench | 5607f12056f8245e0178816603e4922b7f5805ac | [
"Apache-2.0"
] | 14 | 2016-06-21T10:06:27.000Z | 2020-07-25T11:56:23.000Z | Source/Git/wb_git_project.py | barry-scott/git-workbench | 9f352875ab097ce5e45f85bf255b1fa02a196807 | [
"Apache-2.0"
] | 11 | 2016-12-25T12:36:16.000Z | 2022-03-23T14:25:25.000Z | '''
====================================================================
Copyright (c) 2016-2017 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
======================================================... | 33.741353 | 130 | 0.586661 | 42,194 | 0.940235 | 0 | 0 | 0 | 0 | 0 | 0 | 4,444 | 0.099028 |
fb64c2c423679d3b9a605145467c5cb4184c77b4 | 443 | py | Python | stackflowCrawl/spiders/stackoverflow/constants/consult.py | matheuslins/stackflowCrawl | b6adacc29bfc2e6210a24968f691a54854952b2e | [
"MIT"
] | null | null | null | stackflowCrawl/spiders/stackoverflow/constants/consult.py | matheuslins/stackflowCrawl | b6adacc29bfc2e6210a24968f691a54854952b2e | [
"MIT"
] | 2 | 2021-03-31T19:47:59.000Z | 2021-12-13T20:41:06.000Z | stackflowCrawl/spiders/stackoverflow/constants/consult.py | matheuslins/stackflowCrawl | b6adacc29bfc2e6210a24968f691a54854952b2e | [
"MIT"
] | null | null | null |
XPAHS_CONSULT = {
'jobs_urls': '//div[contains(@class, "listResults")]//div[contains(@data-jobid, "")]//h2//a/@href',
'results': '//span[@class="description fc-light fs-body1"]//text()',
'pagination_indicator': '//a[contains(@class, "s-pagination--item")][last()]//span[contains(text(), "next")]',
'pagi... | 44.3 | 114 | 0.629797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 376 | 0.848758 |
fb6699684cb8142168142ff3619e29cd5107fcf6 | 3,676 | py | Python | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | 3 | 2021-06-02T00:56:48.000Z | 2021-09-08T01:35:53.000Z | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | import logging
import os
import random
import time
import datetime
import sys
import math
from screen import Screen
from scorer import Scorer
from trigger import Trigger
from psychopy import core, event, sound
from psychopy.hardware import keyboard
from pupil_labs import PupilCore
from datalog import Datalog
from conf... | 24.344371 | 105 | 0.658052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,563 | 0.42519 |
fb67712141abf405660b20968e896ccaf386184f | 3,696 | py | Python | src/commercetools/services/inventory.py | labd/commercetools-python-sdk | d8ec285f08d56ede2e4cad45c74833f5b609ab5c | [
"MIT"
] | 15 | 2018-11-02T14:35:52.000Z | 2022-03-16T07:51:44.000Z | src/commercetools/services/inventory.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | 84 | 2018-11-02T12:50:32.000Z | 2022-03-22T01:25:54.000Z | src/commercetools/services/inventory.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | 13 | 2019-01-03T09:16:50.000Z | 2022-02-15T18:37:19.000Z | # DO NOT EDIT! This file is automatically generated
import typing
from commercetools.helpers import RemoveEmptyValuesMixin
from commercetools.platform.models.inventory import (
InventoryEntry,
InventoryEntryDraft,
InventoryEntryUpdate,
InventoryEntryUpdateAction,
InventoryPagedQueryResponse,
)
from... | 30.545455 | 88 | 0.623106 | 3,287 | 0.88934 | 0 | 0 | 0 | 0 | 0 | 0 | 387 | 0.104708 |
fb685e91f9d3ddb25b69ea95c37b26cc21ab500f | 8,008 | py | Python | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 9 | 2021-01-08T12:49:01.000Z | 2021-12-29T06:59:32.000Z | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 2 | 2021-02-22T20:42:25.000Z | 2021-02-22T22:22:59.000Z | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 9 | 2021-02-15T14:18:48.000Z | 2021-12-17T04:02:07.000Z | from __future__ import print_function # so print doesn't show brackets
import copy
import numpy as np
import time as time
import matplotlib.pyplot as plt
import pickle
import redis
import qmla.model_for_learning
import qmla.redis_settings
import qmla.logging
pickle.HIGHEST_PROTOCOL = 4
plt.switch_ba... | 35.591111 | 123 | 0.604146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,127 | 0.390485 |
fb69066846fdd4ee95649e7481b0ff3dce03d604 | 9,390 | py | Python | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | """
File: pylinex/quantity/CompiledQuantity.py
Author: Keith Tauscher
Date: 3 Sep 2017
Description: File containing a class representing a list of Quantities to be
evaluated with the same (or overlapping) arguments. When it is
called, each underlying Quantity is called.
"""
from ..util import... | 39.620253 | 79 | 0.583174 | 8,650 | 0.921193 | 0 | 0 | 3,638 | 0.387433 | 0 | 0 | 4,831 | 0.514483 |
fb6a3d12a6011f130cb0dca995f5e63b890b615a | 184 | py | Python | Desafios/desafio48.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | 1 | 2019-11-21T02:08:58.000Z | 2019-11-21T02:08:58.000Z | Desafios/desafio48.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | null | null | null | Desafios/desafio48.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | null | null | null | s = 0
cont = 0
for c in range(1, 501, 2):
if c % 3 == 0:
s = s + c
cont = cont + 1
print('A soma de todos os {} valores solicitados é {}'.format(cont, s))
| 20.444444 | 72 | 0.483696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 0.264865 |
fb6d1002b4582dd7b3bb100c3a8d3d43f66ca13b | 8,588 | py | Python | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.md', which is part of this source code package.
#
import time
import uuid
from kubernetes.K8sCronJob import K8sCronJob
from kubernetes.K8sPod import K8sPod
from kubernetes.models.v2alpha1.Cro... | 35.053061 | 115 | 0.577317 | 8,087 | 0.941663 | 0 | 0 | 0 | 0 | 0 | 0 | 1,389 | 0.161737 |
fb6d4b7447432a3d88c9b0ce1e3fc024eb47008f | 9,054 | py | Python | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 372 | 2016-01-26T02:41:51.000Z | 2022-03-31T02:03:13.000Z | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 17 | 2016-08-23T17:28:02.000Z | 2020-05-11T15:54:50.000Z | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 143 | 2016-01-13T05:33:33.000Z | 2021-12-10T16:48:42.000Z | '''
This file implements various optimization methods, including
-- SGD with gradient norm clipping
-- AdaGrad
-- AdaDelta
-- Adam
Transparent to switch between CPU / GPU.
@author: Tao Lei ([email protected])
'''
import random
from collections import OrderedDict
import... | 37.882845 | 93 | 0.587254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 707 | 0.078087 |
fb704422d64cb57af346521f6ec226890742b70a | 883 | py | Python | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtGui import QPixmap, QIcon
from PyQt5 import uic
from internationalization import LANGUAGE
class Loose(QMainWindow):
def __init__(self, lang):
QMainWindow.__init__(self)
uic.loadUi("windows/Looser.ui", self)
self.lang = lang
... | 35.32 | 82 | 0.698754 | 728 | 0.824462 | 0 | 0 | 0 | 0 | 0 | 0 | 153 | 0.173273 |
fb705b9a868266542cc3de66cc5408c3859e9bcd | 617 | py | Python | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | import requests
class Post:
def __init__(self, page_access_token, **kwargs):
self.page_access_token = page_access_token
return super().__init__(**kwargs)
def send(self, url, json):
try:
request_session = requests.Session()
params = {'access_token': se... | 30.85 | 87 | 0.593193 | 599 | 0.96769 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0.03231 |
fb70843b616618f2f4796598ec6f5433ecaca7a0 | 2,424 | py | Python | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | import argparse
import Functions_Features.functionsToDetermineMotifStrength as fdm
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument("-w","--tmpfolder",type=str,help="Input the upperlevel folder containing folder to Write to")
parser.add_argument("-t","--foldertitle",type=str,help="Input the t... | 47.529412 | 176 | 0.757426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 650 | 0.268152 |
fb7155177920bff87f0b52005b1ab66f25856784 | 964 | py | Python | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | 1 | 2015-11-08T13:00:51.000Z | 2015-11-08T13:00:51.000Z | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | null | null | null | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | null | null | null | import os
import subprocess
import time
class Asciicast(object):
def __init__(self, env=os.environ):
self.command = None
self.title = None
self.shell = env.get('SHELL', '/bin/sh')
self.term = env.get('TERM')
self.username = env.get('USER')
@property
def meta_data(... | 26.054054 | 60 | 0.520747 | 784 | 0.813278 | 0 | 0 | 534 | 0.553942 | 0 | 0 | 124 | 0.128631 |
fb71ff02d4840f857aab0f05feb1b65683b1dfad | 88 | py | Python | software_engineering-project/project/admin.py | mahdiieh/software_engineering_PROJECT | f0c40ccf0452f6da83fbb253050848b49c4f6153 | [
"MIT"
] | null | null | null | software_engineering-project/project/admin.py | mahdiieh/software_engineering_PROJECT | f0c40ccf0452f6da83fbb253050848b49c4f6153 | [
"MIT"
] | null | null | null | software_engineering-project/project/admin.py | mahdiieh/software_engineering_PROJECT | f0c40ccf0452f6da83fbb253050848b49c4f6153 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Movie
admin.site.register(Movie)
| 14.666667 | 32 | 0.806818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
fb731e02437da6274e8e54fa035f9eeb59f57f17 | 17,808 | py | Python | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | 9 | 2021-04-26T14:43:52.000Z | 2021-11-08T09:47:24.000Z | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | null | null | null | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | 1 | 2021-03-24T18:33:32.000Z | 2021-03-24T18:33:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Asian Language Treebank (ALT) Project"""
from __future__ import absolute_import, division, print_function
import os
import datasets
_CITATION = """\
@inproceedings{riza2016introduction,
title={Introduction of the asian language treebank},
author={Riza, Hammam an... | 41.901176 | 706 | 0.500898 | 15,142 | 0.850292 | 8,591 | 0.482424 | 0 | 0 | 0 | 0 | 6,039 | 0.339117 |
fb747216a8e33dd3a7c21862ae471a10d4ad3882 | 246 | py | Python | setup.py | whistlebee/awis-py | 01793c72b369e5e41c4d11b7ba67f71e47cee3ef | [
"Apache-2.0"
] | 1 | 2020-09-04T18:50:32.000Z | 2020-09-04T18:50:32.000Z | setup.py | whistlebee/awis-py | 01793c72b369e5e41c4d11b7ba67f71e47cee3ef | [
"Apache-2.0"
] | 1 | 2020-09-06T05:51:43.000Z | 2020-09-19T09:27:56.000Z | setup.py | whistlebee/awis-py | 01793c72b369e5e41c4d11b7ba67f71e47cee3ef | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='awis-py',
version='0.0.2',
url='https://github.com/whistlebee/awis-py',
packages=find_packages(),
install_requires=['requests', 'lxml'],
python_requires='>=3.6'
)
| 20.5 | 48 | 0.658537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 0.317073 |
fb74a99668bbeadd3a3026fa2344b01e7a173609 | 17,918 | py | Python | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | null | null | null | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | 2 | 2020-08-06T10:01:59.000Z | 2021-05-17T12:14:44.000Z | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | 2 | 2020-08-19T06:52:09.000Z | 2021-12-10T08:57:54.000Z | import sys
from pathlib import Path
import numpy as np
import pandas as pd
from bokeh.models import ColumnDataSource
from bokeh.io import export_png
from bokeh.plotting import figure
def plot_lifetime(df, type, path):
df = df.copy()
palette = ["#c9d9d3", "#718dbf", "#e84d60", "#648450"]
ylist = []
... | 34.194656 | 127 | 0.60509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,012 | 0.168099 |
fb7583ba835e078f93bcf270c20be6606ba135d8 | 98 | py | Python | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | from multiprocessing import Process
server = Process(target=app.run)# ...
server.terminate()
| 19.6 | 38 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.061224 |
fb7811b122904a7fba10519297aa03213ea6aa2e | 755 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/vboimplementation.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/vboimplementation.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/vboimplementation.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | from OpenGL.arrays import vbo
from OpenGL.GLES2.VERSION import GLES2_2_0
from OpenGL.GLES2.OES import mapbuffer
class Implementation( vbo.Implementation ):
"""OpenGL-based implementation of VBO interfaces"""
def __init__( self ):
for name in self.EXPORTED_NAMES:
for source in [ GLES2_2_0, m... | 35.952381 | 73 | 0.561589 | 615 | 0.81457 | 0 | 0 | 0 | 0 | 0 | 0 | 56 | 0.074172 |
fb79110d81706eec2a558890fdef6435d3ebf1bb | 8,457 | py | Python | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | 1 | 2021-04-09T09:13:56.000Z | 2021-04-09T09:13:56.000Z | import unittest
import numpy as np
import openjij as oj
import cxxjij as cj
def calculate_ising_energy(h, J, spins):
energy = 0.0
for (i, j), Jij in J.items():
energy += Jij*spins[i]*spins[j]
for i, hi in h.items():
energy += hi * spins[i]
return energy
def calculate_qubo_energy(Q, ... | 37.255507 | 126 | 0.578101 | 7,962 | 0.941469 | 0 | 0 | 0 | 0 | 0 | 0 | 462 | 0.054629 |
fb795f78cbeba316633c5e08d2759b19e5be4e41 | 18,273 | py | Python | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | 1 | 2022-01-25T16:03:02.000Z | 2022-01-25T16:03:02.000Z | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | null | null | null | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import grpc
from datetime import datetime
import sys
import logging
import socket
import os
from ipaddress import ip_network, ip_address, IPv4Address
import json
import signal
import traceback
import re
from concurrent.futures import ThreadPoolExecutor
import sdk_service_pb2
impor... | 46.614796 | 150 | 0.591747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8,594 | 0.470311 |
fb7b00cf08bb11ddac21a6f98e99ab8e31ed948a | 1,003 | py | Python | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import, division, print_function, unicode_literals
import os.path
import pytest
xr = pytest.importorskip('xarray') # noqa
from cfgrib import cfgrib_
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
TEST_DATA = os.path.join(SAMPLE_DATA_FOLDER, 'era5-level... | 31.34375 | 97 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 207 | 0.206381 |
fb7b2416a898fcaefa5788048c29968341cc3540 | 4,578 | py | Python | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2018-11-23T01:48:59.000Z | 2018-11-23T01:48:59.000Z | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2018-03-25T19:36:41.000Z | 2018-03-25T19:53:27.000Z | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2020-10-01T15:38:04.000Z | 2020-10-01T15:38:04.000Z | #! /usr/bin/env python3
# Copyright(c) 2017 Intel Corporation.
# License: MIT See LICENSE file in root directory.
# NPS
# pulls images from camera device and places them in a Queue
# if the queue is full will start to skip camera frames.
#import numpy as np
import cv2
import queue
import threading
import time
class... | 42 | 118 | 0.676933 | 4,262 | 0.930974 | 0 | 0 | 0 | 0 | 0 | 0 | 2,033 | 0.44408 |
fb7bbc55fb1c9399f6c93d62c5a66100a843787f | 175 | py | Python | examples/domainby.py | ipfinder/ip-finder-python | 48ba093801d244c12a4583c138d62c94355baf28 | [
"Apache-2.0"
] | 8 | 2019-07-12T22:20:49.000Z | 2022-03-01T09:03:58.000Z | examples/domainby.py | ipfinder/ip-finder-python | 48ba093801d244c12a4583c138d62c94355baf28 | [
"Apache-2.0"
] | 2 | 2019-08-29T23:24:57.000Z | 2021-02-01T15:15:16.000Z | examples/domainby.py | ipfinder/ip-finder-python | 48ba093801d244c12a4583c138d62c94355baf28 | [
"Apache-2.0"
] | 5 | 2019-07-12T23:01:03.000Z | 2021-07-07T11:11:44.000Z | import ipfinder
con = ipfinder.config('f67f788f8a02a188ec84502e0dff066ed4413a85') # YOUR_TOKEN_GOES_HERE
# domain name
by = 'DZ';
dby = con.getDomainBy(by)
print(dby.all)
| 15.909091 | 88 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 81 | 0.462857 |
fb7be7756110402e4a2ea628f2c6bc51fd0dd0f4 | 139 | py | Python | manager.py | thangbk2209/pretraining_auto_scaling_ng | 0b98b311c75ec4b87b3e8168f93eeb53ed0d16f5 | [
"MIT"
] | null | null | null | manager.py | thangbk2209/pretraining_auto_scaling_ng | 0b98b311c75ec4b87b3e8168f93eeb53ed0d16f5 | [
"MIT"
] | null | null | null | manager.py | thangbk2209/pretraining_auto_scaling_ng | 0b98b311c75ec4b87b3e8168f93eeb53ed0d16f5 | [
"MIT"
] | null | null | null | """
Author: bkc@data_analysis
Project: autoencoder_ng
Created: 7/29/20 10:51
Purpose: START SCRIPT FOR AUTOENCODER_NG PROJECT
"""
| 19.857143 | 50 | 0.726619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 138 | 0.992806 |
fb7dc85f21a97ece3e0b036a3c4e6d6962f9001a | 49 | py | Python | netvisor_api_client/schemas/sales_payments/__init__.py | kiuru/netvisor-api-client | 2af3e4ca400497ace5a86d0a1807ec3b9c530cf4 | [
"MIT"
] | 5 | 2019-04-17T08:10:47.000Z | 2021-11-27T12:26:15.000Z | netvisor_api_client/schemas/sales_payments/__init__.py | kiuru/netvisor-api-client | 2af3e4ca400497ace5a86d0a1807ec3b9c530cf4 | [
"MIT"
] | 7 | 2019-06-25T17:02:50.000Z | 2021-07-21T10:14:38.000Z | netvisor_api_client/schemas/sales_payments/__init__.py | kiuru/netvisor-api-client | 2af3e4ca400497ace5a86d0a1807ec3b9c530cf4 | [
"MIT"
] | 10 | 2019-06-25T15:37:33.000Z | 2021-10-16T19:40:37.000Z | from .list import SalesPaymentListSchema # noqa
| 24.5 | 48 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.122449 |
fb7ec52a5b793917a80604774ec9ccdc87a89f1d | 858 | py | Python | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 9 | 2021-05-15T21:18:03.000Z | 2022-03-31T16:56:36.000Z | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 5 | 2021-04-23T17:59:23.000Z | 2021-05-23T17:03:40.000Z | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 3 | 2022-02-22T12:09:49.000Z | 2022-03-16T21:33:49.000Z | import numpy as np
from matplotlib import pyplot as plt
from sympy import symbols, solve
a, b, c, d, x, α, β = symbols("a b c d x α β")
# polynomial function f(x) = ax³ + bx² + cx + d
f = a * x ** 3 + b * x ** 2 + c * x + d
fp = f.diff(x) # derivative f'(x)
# evaluate both at x=0 and x=1
f0, f1 = [f.subs(x, i) for... | 21.45 | 61 | 0.581585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 285 | 0.326087 |
fb80aeb666b891b4a2d73d6188ae90784a764de1 | 13,614 | py | Python | test/test_admin.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 22 | 2015-10-26T15:20:37.000Z | 2022-03-11T06:38:17.000Z | test/test_admin.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 10 | 2016-01-22T18:46:19.000Z | 2019-07-19T12:49:51.000Z | test/test_admin.py | mcauer/browserscope | a9c0e1a250774f14689e06f93ad274d0b9d725e4 | [
"Apache-2.0"
] | 12 | 2015-10-17T09:40:44.000Z | 2019-06-08T19:54:36.000Z | #!/usr/bin/python2.5
#
# Copyright 2009 Google 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 ... | 36.40107 | 80 | 0.659027 | 12,023 | 0.883135 | 0 | 0 | 0 | 0 | 0 | 0 | 3,935 | 0.289041 |
fb8120f79917456a521cb4d10307f0c3faeada82 | 3,198 | py | Python | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | 1 | 2020-07-30T06:15:20.000Z | 2020-07-30T06:15:20.000Z | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | null | null | null | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | 1 | 2019-06-05T15:52:18.000Z | 2019-06-05T15:52:18.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
from dataclasses import dataclass
from typing import Dict, List
import torch
import torch.nn as nn
from ml.rl import types as rlt
from ml.rl.models.base import ModelBase
logger = logging.getLogger(__name__)... | 29.072727 | 88 | 0.6601 | 2,797 | 0.874609 | 0 | 0 | 943 | 0.294872 | 0 | 0 | 270 | 0.084428 |
fb8171ca82d4da70cd7cdba0a82012d267002dc5 | 4,227 | py | Python | compuG/transformacionesPCarte copia.py | alejoso76/Computaci-n-gr-fica | 474a498a328b8951aa0bfa1db2d0d1f3d8cc914b | [
"MIT"
] | null | null | null | compuG/transformacionesPCarte copia.py | alejoso76/Computaci-n-gr-fica | 474a498a328b8951aa0bfa1db2d0d1f3d8cc914b | [
"MIT"
] | null | null | null | compuG/transformacionesPCarte copia.py | alejoso76/Computaci-n-gr-fica | 474a498a328b8951aa0bfa1db2d0d1f3d8cc914b | [
"MIT"
] | null | null | null | import pygame
import math
#Dibuja triangulo y lo escala con el teclado
ANCHO=600
ALTO=480
def dibujarPlano(o, pantalla):
pygame.draw.line(pantalla, [0, 255, 0], [o[0], 0], [o[0], 480] )
pygame.draw.line(pantalla, [0, 255, 0], [0, o[1]], [640, o[1]] )
def dibujarTriangulo(a, b, c, plano):
'''
pygame.dr... | 32.767442 | 79 | 0.492548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 774 | 0.183109 |
fb81ef1eb1f00a9abc20cdf31b290c4e33722c10 | 10,692 | py | Python | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 119 | 2019-06-18T19:10:04.000Z | 2022-03-25T02:24:26.000Z | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 18 | 2019-08-28T09:32:24.000Z | 2021-09-08T15:25:01.000Z | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 19 | 2019-07-11T08:19:18.000Z | 2022-02-07T12:59:05.000Z | from __future__ import print_function
import os, sys
import pickle
import time
import glob
import numpy as np
import torch
from model import PVSE
from loss import cosine_sim, order_sim
from vocab import Vocabulary
from data import get_test_loader
from logger import AverageMeter
from option import parser, verify_input... | 36.742268 | 107 | 0.607931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,693 | 0.158343 |
fb82fbf2f9c2c62b4641f184634a4204b573ebe0 | 13,286 | py | Python | paddlex/ppdet/modeling/heads/detr_head.py | xiaolao/PaddleX | 4fa58cd0e485418ba353a87414052bd8a19204e5 | [
"Apache-2.0"
] | 3,655 | 2020-03-28T09:19:50.000Z | 2022-03-31T13:28:39.000Z | paddlex/ppdet/modeling/heads/detr_head.py | BDGZhengzhou/PaddleX | a07b54c6eaa363cb8008b26cba83eed734c52044 | [
"Apache-2.0"
] | 829 | 2020-03-28T04:03:18.000Z | 2022-03-31T14:34:30.000Z | paddlex/ppdet/modeling/heads/detr_head.py | BDGZhengzhou/PaddleX | a07b54c6eaa363cb8008b26cba83eed734c52044 | [
"Apache-2.0"
] | 738 | 2020-03-28T03:56:46.000Z | 2022-03-31T13:11:03.000Z | # Copyright (c) 2021 PaddlePaddle 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 appli... | 37.215686 | 110 | 0.553967 | 12,228 | 0.920367 | 0 | 0 | 6,977 | 0.525139 | 0 | 0 | 2,321 | 0.174695 |
fb83c2db2b3565baeaebf20f605f38a7b225d465 | 3,911 | py | Python | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import json
import time
import sys
#import numpy as np
import cv2
from cscore import CameraServer, VideoSource, CvSource, VideoMode, CvSink, UsbCamera
from networktables import NetworkTablesInstance
def Track(frame, sd):
Lower = (0,0,0)
Upper = (0,0,0)
if sd.getNumber("Track", 0):
... | 36.212963 | 112 | 0.604449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,384 | 0.353874 |
fb8406595f2e94d2539b01b5e80bd41db3092f8b | 1,667 | py | Python | soccer_stats_calc/soccer_var_ana.py | steffens21/diesunddas | 35222ff2ddac0b115dfd2e5b6764c6878af8d228 | [
"MIT"
] | null | null | null | soccer_stats_calc/soccer_var_ana.py | steffens21/diesunddas | 35222ff2ddac0b115dfd2e5b6764c6878af8d228 | [
"MIT"
] | null | null | null | soccer_stats_calc/soccer_var_ana.py | steffens21/diesunddas | 35222ff2ddac0b115dfd2e5b6764c6878af8d228 | [
"MIT"
] | null | null | null | import sys
from collections import deque
import soccer_toolbox
import csv_tools
def fileToStats(csvfile, stat, nbrAgg):
header, listRawData = csv_tools.loadData(csvfile)
dictCol = csv_tools.getColumns(header)
setTeams = csv_tools.getTeams(listRawData, dictCol['nColHomeTeam'], dictCol['nColAwayTeam'])
... | 29.245614 | 96 | 0.619076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.054589 |
fb8546895b2c19d3192fb1d824c0ca8782071aeb | 895 | py | Python | HelloWorldWebsite/searchTest/views.py | 404NotFound-401/DjangoTutorial | 8218b5308245b309c7cb36386306152378602b6d | [
"MIT"
] | null | null | null | HelloWorldWebsite/searchTest/views.py | 404NotFound-401/DjangoTutorial | 8218b5308245b309c7cb36386306152378602b6d | [
"MIT"
] | 10 | 2019-09-07T20:30:34.000Z | 2019-09-08T19:22:11.000Z | HelloWorldWebsite/searchTest/views.py | 404NotFound-401/DjangoTutorial | 8218b5308245b309c7cb36386306152378602b6d | [
"MIT"
] | 1 | 2019-09-08T19:38:54.000Z | 2019-09-08T19:38:54.000Z | from __future__ import unicode_literals
from django.shortcuts import render, redirect
from django.template import loader
from django.http import HttpResponse
from django.views import generic
from .models import Movie
from . import searchapi
from django.urls import reverse
# Create your views here.
class Search(gener... | 28.870968 | 66 | 0.684916 | 590 | 0.659218 | 0 | 0 | 0 | 0 | 0 | 0 | 156 | 0.174302 |
fb8662bca964b254e5cebea057da8c25555e063b | 27,693 | py | Python | mapreduce/handlers.py | igeeker/v2ex | 9fa81f7c82aa7d162a924d357494b241eb8a6207 | [
"BSD-3-Clause"
] | 161 | 2019-07-23T06:53:45.000Z | 2022-03-24T01:07:19.000Z | mapreduce/handlers.py | igeeker/v2ex | 9fa81f7c82aa7d162a924d357494b241eb8a6207 | [
"BSD-3-Clause"
] | null | null | null | mapreduce/handlers.py | igeeker/v2ex | 9fa81f7c82aa7d162a924d357494b241eb8a6207 | [
"BSD-3-Clause"
] | 26 | 2019-08-05T06:09:38.000Z | 2021-07-08T02:05:13.000Z | #!/usr/bin/env python
#
# Copyright 2010 Google 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 o... | 35.188056 | 80 | 0.680605 | 26,198 | 0.946015 | 0 | 0 | 8,739 | 0.315567 | 0 | 0 | 10,991 | 0.396887 |
fb886601d83ea5836e86da12edc2cb8f001f8166 | 382 | py | Python | radiomicsfeatureextractionpipeline/backend/src/logic/entities/ct_series.py | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | radiomicsfeatureextractionpipeline/backend/src/logic/entities/ct_series.py | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | 6 | 2021-06-09T19:39:27.000Z | 2021-09-30T16:41:40.000Z | radiomicsfeatureextractionpipeline/backend/src/logic/entities/ct_series.py | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | """
This module is used to represent a CTSeries object from the DICOMSeries table in the database.
Inherits SeriesWithImageSlices module.
"""
from logic.entities.series_with_image_slices import SeriesWithImageSlices
class CtSeries(SeriesWithImageSlices):
"""
This class stores all information about a CT-series... | 29.384615 | 99 | 0.780105 | 163 | 0.426702 | 0 | 0 | 0 | 0 | 0 | 0 | 252 | 0.659686 |
fb88b8dcfd3fd4a86eaad1ea35d9e6acff02b1b6 | 8,108 | py | Python | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | import os
import sys
import tensorflow as tf
import tf_utils.tf_util as tf_util
from tf_utils.pointSIFT_util import pointSIFT_module, pointSIFT_res_module, pointnet_fp_module, pointnet_sa_module
def placeholder_inputs(batch_size,num_point,num_class):
#num_class=numofclasses*2
pointclouds_pl = tf.placeholder(... | 57.503546 | 218 | 0.741737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,916 | 0.482266 |
fb89161fb05f2325ee9a0854f9561e3db343bc07 | 89 | py | Python | cwl_airflow_parser/operators/__init__.py | lrodri29/cwl-airflow-parser | 3854022fc7a5c62cfd92e93fdb7a97d528918239 | [
"Apache-2.0"
] | 14 | 2018-05-01T01:31:07.000Z | 2019-09-02T15:41:06.000Z | cwl_airflow_parser/operators/__init__.py | lrodri29/cwl-airflow-parser | 3854022fc7a5c62cfd92e93fdb7a97d528918239 | [
"Apache-2.0"
] | 1 | 2018-08-06T17:28:51.000Z | 2018-08-27T16:05:10.000Z | cwl_airflow_parser/operators/__init__.py | lrodri29/cwl-airflow-parser | 3854022fc7a5c62cfd92e93fdb7a97d528918239 | [
"Apache-2.0"
] | 8 | 2018-08-06T16:47:31.000Z | 2020-05-12T20:21:01.000Z | from .cwljobdispatcher import CWLJobDispatcher
from .cwljobgatherer import CWLJobGatherer | 44.5 | 46 | 0.898876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |