hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
7f8501089d50cf608e52179d7f00962494fc1dec
7,471
py
Python
custom_components/plex_assistant/__init__.py
nashant/plex_assistant
6768b7c448babc634ee504544874c13153de2484
[ "MIT" ]
null
null
null
custom_components/plex_assistant/__init__.py
nashant/plex_assistant
6768b7c448babc634ee504544874c13153de2484
[ "MIT" ]
null
null
null
custom_components/plex_assistant/__init__.py
nashant/plex_assistant
6768b7c448babc634ee504544874c13153de2484
[ "MIT" ]
null
null
null
""" Plex Assistant is a component for Home Assistant to add control of Plex to Google Assistant with a little help from IFTTT or DialogFlow. Play to Google Cast devices or Plex Clients using fuzzy searches for media and cast device names. https://github.com/maykar/plex_assistant """ import homeassistant.helpers.conf...
31.259414
87
0.600455
5362e185b312c7f503b4d5ee9c1635cfa09672a8
10,189
py
Python
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockFR/evaluateEnergy.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockFR/evaluateEnergy.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockFR/evaluateEnergy.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
######################################################################## # # Date: 2000 Authors: Michel Sanner, Matt Danielson # # sanner@scripps.edu # # The Scripps Research Institute (TSRI) # Molecular Graphics Lab # La Jolla, CA 92037, USA # # Copyright: Michel Sanner and TSRI 2012 # ###########...
40.114173
141
0.635391
1ab6325dadd6ffad0a8ba462e91d77fd0a504e26
27,025
py
Python
adaptfx/3D_GUI.py
YoelPH/Adaptive-fractionation-2D
9e08e7a77ad8f20f97e8498328165d505f9cb51d
[ "MIT" ]
1
2021-07-15T12:23:25.000Z
2021-07-15T12:23:25.000Z
adaptfx/3D_GUI.py
YoelPH/Adaptive-fractionation-2D
9e08e7a77ad8f20f97e8498328165d505f9cb51d
[ "MIT" ]
null
null
null
adaptfx/3D_GUI.py
YoelPH/Adaptive-fractionation-2D
9e08e7a77ad8f20f97e8498328165d505f9cb51d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ GUI for 3D adaptive fractionation with minimum and maximum dose """ import tkinter as tk import numpy as np from scipy.stats import invgamma from tkinter import filedialog as fd from tkinter.messagebox import showinfo import tkinter.ttk as ttk import pandas as pd import interpol3D as intp3 ...
52.680312
355
0.609066
8e65339784a75a50d4bb4092d186e6e8adacd847
1,699
py
Python
app/core/migrations/0001_initial.py
Fasih1994/recipe-app-api
deb3e13c13d9093f715d4626a1ee279569d8d20c
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Fasih1994/recipe-app-api
deb3e13c13d9093f715d4626a1ee279569d8d20c
[ "MIT" ]
5
2021-03-19T12:09:44.000Z
2021-06-10T20:30:40.000Z
app/core/migrations/0001_initial.py
Fasih1994/recipe-app-api
deb3e13c13d9093f715d4626a1ee279569d8d20c
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-08-10 11:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fie...
49.970588
266
0.637434
5ea5cfe6ed50ec9aeb91e2dc35c03a2037b7259f
785
py
Python
calculator.py
BooAA/calculator
a35d94cfa04e132cf6d657f6a2e1546491748966
[ "Apache-2.0" ]
null
null
null
calculator.py
BooAA/calculator
a35d94cfa04e132cf6d657f6a2e1546491748966
[ "Apache-2.0" ]
null
null
null
calculator.py
BooAA/calculator
a35d94cfa04e132cf6d657f6a2e1546491748966
[ "Apache-2.0" ]
null
null
null
import scfm def add(a, b): return a + b def sub(a, b): return a - b def mul(a, b): return a * b def div(a, b): return a / b if __name__ == '__main__': scfm.Token.priority_table['+'] = 0 scfm.Token.priority_table['-'] = 0 scfm.Token.priority_table['*'] = 1 scfm.Token.priori...
16.354167
42
0.46879
93e9ca755adbab6f5d402753bf8eaf346cd5f8ce
442
py
Python
examples/src/Shapes/AnimationTargetShapes.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Shapes/AnimationTargetShapes.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Shapes/AnimationTargetShapes.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
import aspose.slides as slides # Path to source presentation dataDir = "./examples/data/" outDir = "./examples/out/" with slides.Presentation(dataDir + "shapes_animation_example.pptx") as pres: for slide in pres.slides: for effect in slide.timeline.main_sequence: print("{0} animation effect i...
40.181818
82
0.696833
0d7cdaddd181ffb93bb79b2cd88b80f2a19dd727
13,452
py
Python
scipy/linalg/matfuncs.py
sargas/scipy
3dcb7b2d5da7fcd9529137aa96b7a771cd47f111
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/matfuncs.py
sargas/scipy
3dcb7b2d5da7fcd9529137aa96b7a771cd47f111
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/matfuncs.py
sargas/scipy
3dcb7b2d5da7fcd9529137aa96b7a771cd47f111
[ "BSD-3-Clause" ]
null
null
null
# # Author: Travis Oliphant, March 2002 # from __future__ import division, print_function, absolute_import __all__ = ['expm','expm2','expm3','cosm','sinm','tanm','coshm','sinhm', 'tanhm','logm','funm','signm','sqrtm'] from numpy import asarray, Inf, dot, eye, diag, exp, \ product, logical_not, ravel,...
25.003717
75
0.5449
4c25ac4c8c19ae5a22c06362235ff1b0f1a587f8
5,156
py
Python
tests/test_utils.py
klada/deconz
485e915822404d292156ff2a83488954e1ed8286
[ "MIT" ]
null
null
null
tests/test_utils.py
klada/deconz
485e915822404d292156ff2a83488954e1ed8286
[ "MIT" ]
null
null
null
tests/test_utils.py
klada/deconz
485e915822404d292156ff2a83488954e1ed8286
[ "MIT" ]
null
null
null
"""Test pydeCONZ utilities. pytest --cov-report term-missing --cov=pydeconz.utils tests/test_utils.py """ import asyncio from unittest.mock import Mock, patch from asynctest import CoroutineMock import pytest import aiohttp from pydeconz import errors, utils API_KEY = "1234567890" IP = "127.0.0.1" PORT = "80" @...
28.32967
86
0.647789
31f38b77998a2de8628ce462ca5ce2b9c5632f43
7,254
py
Python
training/Data/genLMDB.py
Guanghan/GNet-pose
c70e0fc65b290e68a16ca3040a70300f9c2bee44
[ "Apache-2.0" ]
86
2017-05-09T01:30:19.000Z
2020-11-24T17:30:02.000Z
training/Data/genLMDB.py
Guanghan/GNet-pose
c70e0fc65b290e68a16ca3040a70300f9c2bee44
[ "Apache-2.0" ]
10
2017-07-10T11:31:32.000Z
2019-02-13T05:05:20.000Z
training/Data/genLMDB.py
Guanghan/GNet-pose
c70e0fc65b290e68a16ca3040a70300f9c2bee44
[ "Apache-2.0" ]
31
2017-05-10T09:53:49.000Z
2022-02-05T21:03:10.000Z
# Script Comes From Convolutional Pose Machine import scipy.io as sio import numpy as np import json import cv2 import lmdb import caffe import os.path import struct def writeLMDB(datasets, lmdb_path, validation): env = lmdb.open(lmdb_path, map_size=int(1e12)) txn = env.begin(write=True) data = [] for d in range(...
36.452261
140
0.6748
895ad0654d4336492305c4574d4b65a6c0821908
5,115
py
Python
src/Listing_test.py
ioah86/2016_Sortable_Challenge
3ce621b7065469c94515ed368579098aaec9f13e
[ "MIT" ]
null
null
null
src/Listing_test.py
ioah86/2016_Sortable_Challenge
3ce621b7065469c94515ed368579098aaec9f13e
[ "MIT" ]
null
null
null
src/Listing_test.py
ioah86/2016_Sortable_Challenge
3ce621b7065469c94515ed368579098aaec9f13e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ .. moduleauthor:: Albert Heinle<albert.heinle@gmail.com> """ import unittest from Listing import Listing import json class TestProduct(unittest.TestCase): """ Testing the class Product for correct functionality """ def test_Product_From_Sortable_Challenge(self): """...
35.520833
192
0.595112
2e617b4f09ac91a1a5e0f5cb2e5c99fb3d0c44dd
430
py
Python
wagtail/palermo/settings/dev.py
cesosag/palermo
a1a7e78096d808cb01c73eb0e2d6cde2ce2cc175
[ "MIT" ]
null
null
null
wagtail/palermo/settings/dev.py
cesosag/palermo
a1a7e78096d808cb01c73eb0e2d6cde2ce2cc175
[ "MIT" ]
null
null
null
wagtail/palermo/settings/dev.py
cesosag/palermo
a1a7e78096d808cb01c73eb0e2d6cde2ce2cc175
[ "MIT" ]
null
null
null
import os from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ['DJ_SECRET_KEY'] # SECURITY WARNING: define the correct hosts in production! ALLOWED_HOSTS = ['*'] EMAIL_BACKEND = ...
21.5
66
0.746512
431488cd5495b68f81f1e6a1a1eb29a4764fa331
3,874
py
Python
emmet-cli/emmet/cli/entry_point.py
nwinner/emmet
6bd779ba785a84f57b61954c88d1ed0dfa95b8cb
[ "BSD-3-Clause-LBNL" ]
null
null
null
emmet-cli/emmet/cli/entry_point.py
nwinner/emmet
6bd779ba785a84f57b61954c88d1ed0dfa95b8cb
[ "BSD-3-Clause-LBNL" ]
78
2020-11-16T06:46:43.000Z
2022-03-28T03:02:51.000Z
emmet-cli/emmet/cli/entry_point.py
utf/emmet
27a51a7ad4c300e280de5ba9b59a311dd77cffdd
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os import logging import click from multiprocessing_logging import install_mp_handler from log4mongo.handlers import BufferedMongoHandler from github3 import authorize, login from io import StringIO from emmet.cli.admin import admin from emmet.cli.tasks import tasks from emmet.cli.calc import calc from emmet.c...
34.283186
88
0.649974
f85cfd3438f90f935b940cf75e6a122d5d7ce5b4
98
py
Python
snapshot_queries/__init__.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
null
null
null
snapshot_queries/__init__.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
6
2022-03-30T16:19:01.000Z
2022-03-30T16:32:08.000Z
snapshot_queries/__init__.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
1
2022-03-31T19:22:22.000Z
2022-03-31T19:22:22.000Z
from .snapshot_queries import snapshot_queries VERSION = "0.5.3" __all__ = ["snapshot_queries"]
16.333333
46
0.765306
de761f86b6b79c271178033981c2585667072fda
17,510
py
Python
pfb/workers/post/binterp.py
ratt-ru/pfb-clean
b53540cf2ccd96c4ee9c9f76b200ec6a2cf5d7f3
[ "MIT" ]
4
2020-07-26T20:05:12.000Z
2022-02-11T13:08:33.000Z
pfb/workers/post/binterp.py
ratt-ru/pfb-clean
b53540cf2ccd96c4ee9c9f76b200ec6a2cf5d7f3
[ "MIT" ]
25
2020-04-17T12:37:28.000Z
2022-03-03T13:43:52.000Z
pfb/workers/post/binterp.py
ratt-ru/pfb-clean
b53540cf2ccd96c4ee9c9f76b200ec6a2cf5d7f3
[ "MIT" ]
3
2020-04-28T16:09:16.000Z
2021-05-12T10:15:16.000Z
# flake8: noqa import os from contextlib import ExitStack import click from omegaconf import OmegaConf from pfb.workers.main import cli import pyscilog pyscilog.init('pfb') log = pyscilog.get_logger('BINTERP') @cli.command() @click.option('-image', '--image', required=True, help="Path to model or restor...
39.795455
99
0.557339
f5bf086ff503bd7b97e8f5ddfbe5724ebdc11772
93
py
Python
app/main/__init__.py
Ahmed-moringa/Pitch_me
05c444cd5100248ce23709beb6f5b89fde59eda7
[ "MIT" ]
null
null
null
app/main/__init__.py
Ahmed-moringa/Pitch_me
05c444cd5100248ce23709beb6f5b89fde59eda7
[ "MIT" ]
null
null
null
app/main/__init__.py
Ahmed-moringa/Pitch_me
05c444cd5100248ce23709beb6f5b89fde59eda7
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint('main',__name__) from . import views,forms
18.6
34
0.741935
9cc06b22ff605be033ab78e9327666ca4505f1e9
452
py
Python
movies/models.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
5
2021-04-01T01:09:52.000Z
2022-02-21T16:54:54.000Z
movies/models.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
5
2021-04-08T21:58:18.000Z
2022-02-10T09:48:19.000Z
movies/models.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
1
2021-03-29T12:04:16.000Z
2021-03-29T12:04:16.000Z
from django.db import models # Create Movie Model class Movie(models.Model): title = models.CharField(max_length=100) genre = models.CharField(max_length=100) year = models.IntegerField() created_at = models.DateTimeField(auto_now_add=True) # When it was create updated_at = models.DateTimeField(au...
28.25
93
0.74115
28416af39880acfa6d59f202f5b42fc0882512ee
24,348
py
Python
cev/POSPatentTagger.py
michellekoeth/cev
1b44abe0faaf551d54ffc9d4231eee4ec3779a4a
[ "MIT" ]
1
2018-01-12T21:14:35.000Z
2018-01-12T21:14:35.000Z
cev/POSPatentTagger.py
michellekoeth/cev
1b44abe0faaf551d54ffc9d4231eee4ec3779a4a
[ "MIT" ]
1
2017-12-20T00:27:26.000Z
2017-12-20T00:27:26.000Z
cev/POSPatentTagger.py
michellekoeth/cev
1b44abe0faaf551d54ffc9d4231eee4ec3779a4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #import operator import re from mechanize import Browser import spacy import csv import time ############################################################################################ # Removes wierd spacing from PatFT/AppFT claim sets, makes new tag called CLMN for claim number ##############...
55.210884
209
0.58473
167f32e44ef29fc83080e4415d9aab0fb4c24833
11,955
py
Python
tests/grammar/python/base.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
2
2021-05-01T02:34:05.000Z
2022-02-13T06:41:36.000Z
tests/grammar/python/base.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
null
null
null
tests/grammar/python/base.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
null
null
null
parse_debug = False record = False analyzing = False #------------------------------------------------------------------------------ from dataclasses import dataclass import unittest from prettyprinter import cpprint as pp from arpeggio import Pars...
40.802048
91
0.502217
8e02c5d82523732f6ca6cfd3a9fe6bd95a8fecb5
19,394
py
Python
tests/test_models.py
sergray/marshmallow-objects
cc687de0b8689a86a0f525d9b24cf0bf64ec1383
[ "MIT" ]
32
2018-03-12T19:59:15.000Z
2019-12-24T10:47:08.000Z
tests/test_models.py
sergray/marshmallow-objects
cc687de0b8689a86a0f525d9b24cf0bf64ec1383
[ "MIT" ]
29
2018-02-06T23:55:47.000Z
2020-02-10T21:16:30.000Z
tests/test_models.py
sv-tools/marshmallow-objects
b645a77b8e00f5b72fc9e2073f64a947a80203d6
[ "MIT" ]
3
2018-07-23T19:11:01.000Z
2019-08-20T17:21:41.000Z
import collections import copy import json import unittest try: import yaml skip_yaml = False except ImportError: skip_yaml = True import marshmallow_objects as marshmallow class A(marshmallow.Model): test_field = marshmallow.fields.Str(missing="test_value", allow_none=False) tag_field = marshm...
32.269551
108
0.645767
462aa5c3346a5f2bd03cfb570251e723c51a3093
55
py
Python
dependencies/extrae/src/others/pyextrae/profile/__init__.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
3
2018-03-05T14:52:22.000Z
2019-02-08T09:58:24.000Z
dependencies/extrae/src/others/pyextrae/profile/__init__.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
1
2019-11-13T14:30:21.000Z
2019-11-13T14:30:21.000Z
dependencies/extrae/src/others/pyextrae/profile/__init__.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
null
null
null
from pyextrae.common.extrae import * startProfiling()
13.75
36
0.8
654f4b6a1e6876880ac7979160937f5c88dd66e5
765
py
Python
mchess/chess_link_pyblue.py
sshivaji/python-mchess
4e6579166a723dc82e19afa996c29c2339f4bde1
[ "MIT" ]
null
null
null
mchess/chess_link_pyblue.py
sshivaji/python-mchess
4e6579166a723dc82e19afa996c29c2339f4bde1
[ "MIT" ]
null
null
null
mchess/chess_link_pyblue.py
sshivaji/python-mchess
4e6579166a723dc82e19afa996c29c2339f4bde1
[ "MIT" ]
null
null
null
import logging import chess_link_protocol as clp # TODO: expand empty framework with actual functionality! class Transport(): def __init__(self, que): self.log = logging.getLogger("ChessLinkPyBlue") self.que = que # asyncio.Queue() self.init = True self.is_open = False s...
21.25
57
0.627451
ea608bc6278c44b1b785460399b524e1a5887339
2,484
py
Python
infrastructure/support_orchestrator/source/support_orchestrator/clients/flink.py
ptutak/data_management_system
01076a9fbfa3d8b02d01f455f8383a7dbdef5ecb
[ "Apache-2.0" ]
null
null
null
infrastructure/support_orchestrator/source/support_orchestrator/clients/flink.py
ptutak/data_management_system
01076a9fbfa3d8b02d01f455f8383a7dbdef5ecb
[ "Apache-2.0" ]
null
null
null
infrastructure/support_orchestrator/source/support_orchestrator/clients/flink.py
ptutak/data_management_system
01076a9fbfa3d8b02d01f455f8383a7dbdef5ecb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Piotr Tutak # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
33.567568
87
0.676329
d9e45b245122ace6834f5e3b86eeb2b26043b364
90
py
Python
code/setup.py
zxdclyz/std-project1
95340e5a9443556936f47acc605010926fe314ac
[ "MIT" ]
1
2021-09-12T06:01:49.000Z
2021-09-12T06:01:49.000Z
setup.py
BobAnkh/std-project3
b27589b2c43412943b4e46302881a57df3990637
[ "MIT" ]
1
2021-08-25T04:44:26.000Z
2021-08-25T04:44:26.000Z
code/setup.py
duskmoon314/std-project2
d029e0a488f20280e1a84ffc928e94a0bf87d9c0
[ "MIT" ]
null
null
null
import os os.system('pip install -r requirements.txt') print('Requirements Installed!')
15
44
0.755556
49cbcfcf0bede24e58b46b1d8dbd442c5ca39e80
1,656
py
Python
auth-api/src/auth_api/schemas/user.py
thorwolpert/sbc-auth
5da50cde2e5625d1b0ceea090c3656ee374c9b71
[ "Apache-2.0" ]
11
2019-09-26T06:58:25.000Z
2022-01-26T06:19:39.000Z
auth-api/src/auth_api/schemas/user.py
thorwolpert/sbc-auth
5da50cde2e5625d1b0ceea090c3656ee374c9b71
[ "Apache-2.0" ]
1,622
2019-05-07T21:08:38.000Z
2022-03-28T17:07:15.000Z
auth-api/src/auth_api/schemas/user.py
thorwolpert/sbc-auth
5da50cde2e5625d1b0ceea090c3656ee374c9b71
[ "Apache-2.0" ]
98
2019-03-01T21:36:15.000Z
2021-12-01T22:11:25.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
36
91
0.703502
30b708097afe700a108c762c581e071dea618dac
20,217
py
Python
website/canvas/migrations/0142_is_staff_is_over_9000.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/canvas/migrations/0142_is_staff_is_over_9000.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/canvas/migrations/0142_is_staff_is_over_9000.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." for user_info in orm.UserInfo.objects.filter(power_level=9001): user = ...
76.870722
197
0.553148
165e30d89443b7e8244ed965c34a5d7219e7d1f3
30,839
py
Python
kms/scripts/db_setup.py
asmotrich/ranger
e5abaff2da14a8accccc8747f7f33c92e79f51eb
[ "Apache-2.0" ]
null
null
null
kms/scripts/db_setup.py
asmotrich/ranger
e5abaff2da14a8accccc8747f7f33c92e79f51eb
[ "Apache-2.0" ]
null
null
null
kms/scripts/db_setup.py
asmotrich/ranger
e5abaff2da14a8accccc8747f7f33c92e79f51eb
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
43.805398
426
0.710529
f4651404394db4148bf9dcde863b52f7beaa8950
6,370
py
Python
utools/maya/align_rounded.py
theiviaxx/utools
6501e52ad77edb2beab8f33028460f32b3231b80
[ "BSD-3-Clause" ]
1
2019-09-25T22:47:02.000Z
2019-09-25T22:47:02.000Z
utools/maya/align_rounded.py
theiviaxx/utools
6501e52ad77edb2beab8f33028460f32b3231b80
[ "BSD-3-Clause" ]
4
2015-12-16T22:14:59.000Z
2015-12-16T22:18:04.000Z
utools/maya/align_rounded.py
theiviaxx/utools
6501e52ad77edb2beab8f33028460f32b3231b80
[ "BSD-3-Clause" ]
null
null
null
################################################################################################## # Copyright (c) 2014 Brett Dixon # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without ...
38.143713
98
0.535793
1a4cbb5095002c7f476feb6b4a194691be08ec65
2,285
py
Python
app/recipe/tests/test_recipe.py
ineph/Receitas-api
33c3f591037f41d0765b1b42c5b8083b96827677
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe.py
ineph/Receitas-api
33c3f591037f41d0765b1b42c5b8083b96827677
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe.py
ineph/Receitas-api
33c3f591037f41d0765b1b42c5b8083b96827677
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe from recipe.serializers import RecipeSerializer RECIPES_URL = reverse('recipe:recipe-list') de...
28.5625
71
0.670897
85f53bafa119bf996ac9e80c23eb606ae1ec4dd0
10,411
py
Python
project/classification_tools.py
boredStats/eeg-machine-learning
bbf72ef55644f3941120f8f9007d839c1a4731fd
[ "MIT" ]
1
2020-07-31T11:38:53.000Z
2020-07-31T11:38:53.000Z
project/classification_tools.py
boredStats/eeg-machine-learning
bbf72ef55644f3941120f8f9007d839c1a4731fd
[ "MIT" ]
null
null
null
project/classification_tools.py
boredStats/eeg-machine-learning
bbf72ef55644f3941120f8f9007d839c1a4731fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Classifier tools for this project.""" import os import pandas as pd import numpy as np import imblearn from sklearn import model_selection, ensemble, svm, neighbors from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import SelectFromModel, VarianceThreshold from...
36.402098
94
0.638363
50fcb55b19e5502a8b3dbda337045451557fc72e
4,274
py
Python
bstbuy.py
JayJPatel/Stock-Notifier
b076fe26137877946e18847bce5d77c0c2462d64
[ "Apache-2.0" ]
null
null
null
bstbuy.py
JayJPatel/Stock-Notifier
b076fe26137877946e18847bce5d77c0c2462d64
[ "Apache-2.0" ]
null
null
null
bstbuy.py
JayJPatel/Stock-Notifier
b076fe26137877946e18847bce5d77c0c2462d64
[ "Apache-2.0" ]
null
null
null
import os import time from selenium.common.exceptions import NoSuchElementException, TimeoutException from bot import BOT from dotenv import load_dotenv import undetected_chromedriver as uc from selenium.webdriver.common.by import By from selenium.webdriver.chrome.options import Options from selenium.webdriver.support....
35.032787
128
0.600608
b4d4a20959223209a628ff19dcebb853a2ab8da0
15,129
py
Python
libraries/botframework-connector/tests/test_conversations.py
baruchiro/botbuilder-python
736d1d1d16c69304fbaaa3d7499a6bca57706726
[ "MIT" ]
1
2020-12-29T22:47:46.000Z
2020-12-29T22:47:46.000Z
libraries/botframework-connector/tests/test_conversations.py
baruchiro/botbuilder-python
736d1d1d16c69304fbaaa3d7499a6bca57706726
[ "MIT" ]
1
2021-05-09T12:08:10.000Z
2021-05-09T12:08:10.000Z
libraries/botframework-connector/tests/test_conversations.py
baruchiro/botbuilder-python
736d1d1d16c69304fbaaa3d7499a6bca57706726
[ "MIT" ]
2
2021-12-07T10:42:10.000Z
2022-03-28T11:44:08.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import asyncio import pytest from azure_devtools.scenario_tests import ReplayableTest from botbuilder.schema import ( Activity, ActivityTypes, Attachment, AttachmentLayoutTypes, CardImage, ChannelAcco...
37.8225
108
0.660189
8dc362a507091ce03cc2b8b278781f5730550eff
466
py
Python
tests/system/test_base.py
wklken/tcpbeat
1145b85c313fdb5bf3fea0bb72a5fa4376fa2534
[ "Apache-2.0" ]
null
null
null
tests/system/test_base.py
wklken/tcpbeat
1145b85c313fdb5bf3fea0bb72a5fa4376fa2534
[ "Apache-2.0" ]
null
null
null
tests/system/test_base.py
wklken/tcpbeat
1145b85c313fdb5bf3fea0bb72a5fa4376fa2534
[ "Apache-2.0" ]
null
null
null
from tcpbeat import BaseTest import os class Test(BaseTest): def test_base(self): """ Basic test with exiting Tcpbeat normally """ self.render_config_template( path=os.path.abspath(self.working_dir) + "/log/*" ) tcpbeat_proc = self.start_beat() ...
23.3
72
0.622318
c05c13479b2d6b9d835a7a53435b9ceedb72b663
146
py
Python
userbot/function/__init__.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
null
null
null
userbot/function/__init__.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
null
null
null
userbot/function/__init__.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
1
2020-09-03T13:39:52.000Z
2020-09-03T13:39:52.000Z
# Copyright (C) Is Distributed Between @StarkGang And @ZeltraxRockz # Please Ask At @FridayOT Before Copying Any Module # FridayUserbot (2020-21)
36.5
67
0.780822
a0812e7b61780b932174589253889eae13db6f1e
840
py
Python
tests/test_record_history_yet_more.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
16
2015-02-21T00:00:20.000Z
2021-09-26T05:24:24.000Z
tests/test_record_history_yet_more.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
3
2018-04-25T04:02:41.000Z
2018-04-25T04:11:54.000Z
tests/test_record_history_yet_more.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
3
2015-02-21T13:15:20.000Z
2022-01-18T15:02:46.000Z
__author__ = "Brian O'Neill" __version__ = '0.3.0' from unittest import TestCase class TestDF(TestCase): def test__history_as_DataFrame(self): from log_calls import record_history @record_history() def f(a, b, x): return a*x + b for i in range(1000): f(3, 5, i) ...
20
51
0.584524
ceaab883818548570e077a954bb33cebfae3c329
8,343
py
Python
bpython/curtsiesfrontend/coderunner.py
timgates42/bpython
b772e1b0e608d5b17faebc7c2ec94a9958a90779
[ "PSF-2.0" ]
null
null
null
bpython/curtsiesfrontend/coderunner.py
timgates42/bpython
b772e1b0e608d5b17faebc7c2ec94a9958a90779
[ "PSF-2.0" ]
null
null
null
bpython/curtsiesfrontend/coderunner.py
timgates42/bpython
b772e1b0e608d5b17faebc7c2ec94a9958a90779
[ "PSF-2.0" ]
null
null
null
# encoding: utf-8 """For running Python code that could interrupt itself at any time in order to, for example, ask for a read on stdin, or a write on stdout The CodeRunner spawns a greenlet to run code in, and that code can suspend its own execution to ask the main greenlet to refresh the display or get information. ...
34.475207
79
0.662831
9afec6b5d1be86ba04497da91c1ed2182bcc366d
5,464
py
Python
tests/tests/views.py
aptivate/django-organizations
3ac867493508612370066c00ca7bd8d55632e116
[ "BSD-2-Clause" ]
1
2015-06-22T20:45:23.000Z
2015-06-22T20:45:23.000Z
tests/tests/views.py
philippeowagner/django-organizations
0c2dd98b5c5af0e3de7cbd4a23567213c5222ac6
[ "BSD-2-Clause" ]
null
null
null
tests/tests/views.py
philippeowagner/django-organizations
0c2dd98b5c5af0e3de7cbd4a23567213c5222ac6
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase from django.core.urlresolvers import reverse from testing_utils import AccountUserTestingMixin class AccountUnauthViewTest(TestCase, AccountUserTestingMixin): """ For unauthenticated users. Verify GET requests on all views. This does not cover updates via POST reques...
35.251613
74
0.676611
5e4b89ca67e620cf6932ecbc34141bf7263d4285
122
py
Python
Practice/evenodds.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/evenodds.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/evenodds.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
x,y = map(int,raw_input().split()) if x%2 == 0: m =x/2 else: m = x/2 + 1 if y<=m: print (y-1)*2+1 else: print (y-m)*2
12.2
34
0.516393
1e9620bd3381f22d1d7c4791a6ec74526cd186f5
13,809
py
Python
tests/test_suite.py
inverseproblem/pyMag2Dpoly
d4210faa691c1ca96677e4a416ae6571d53970ac
[ "MIT" ]
4
2021-01-31T00:41:43.000Z
2021-09-08T05:01:13.000Z
tests/test_suite.py
inverseproblem/pyMag2Dpoly
d4210faa691c1ca96677e4a416ae6571d53970ac
[ "MIT" ]
null
null
null
tests/test_suite.py
inverseproblem/pyMag2Dpoly
d4210faa691c1ca96677e4a416ae6571d53970ac
[ "MIT" ]
1
2021-03-28T07:19:26.000Z
2021-03-28T07:19:26.000Z
import sys import numpy as np sys.path.append("./") import mag2dpoly as mag ######################################################## def test1(): Jind = mag.MagnetizVector(mod=4.9,Ideg=90.0,Ddeg=45.0) Jrem = mag.MagnetizVector(mod=3.1,Ideg=45.0,Ddeg=0.0) northxax = 90.0 Nobs = 101 xzobs = np...
37.832877
95
0.436961
e7a77921b3535d540d69236f621e28233e3156e4
1,022
py
Python
epistasis/models/tests/test_utils.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
21
2016-08-31T15:14:55.000Z
2021-11-27T14:42:35.000Z
epistasis/models/tests/test_utils.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
14
2016-11-30T18:39:00.000Z
2020-04-07T23:48:49.000Z
epistasis/models/tests/test_utils.py
lperezmo/epistasis
4f751d9e2d9ca632a7b688cf32bd950ad7c2a754
[ "Unlicense" ]
8
2016-08-30T00:30:14.000Z
2020-04-02T01:03:19.000Z
# #from gpmap.simulate import GenotypePhenotypeSimulation # from ..utils import * # # from ..base import BaseModel # # class MockModel(BaseModel): # # def __init__(self): # self.gpm = GenotypePhenotypeSimulation.from_length(2) # self.model_type = "local" # self.order = 2 # self.Xbuil...
26.205128
63
0.591977
b9815118b9ae9e0cd49d67ab035a288051e11c8a
543
py
Python
main.py
CodeWithAgam/Odd-or-Even
32067d1bfeb4d022c559089f1d3984223a9564ae
[ "Apache-2.0" ]
null
null
null
main.py
CodeWithAgam/Odd-or-Even
32067d1bfeb4d022c559089f1d3984223a9564ae
[ "Apache-2.0" ]
null
null
null
main.py
CodeWithAgam/Odd-or-Even
32067d1bfeb4d022c559089f1d3984223a9564ae
[ "Apache-2.0" ]
null
null
null
# The below function calculates if a number is odd or even # Created by Agamdeep Singh / CodeWithAgam # Youtube: CodeWithAgam # Github: CodeWithAgam # Instagram: @agamdeep_21, @coderagam001 # Twitter: @CoderAgam001 # Linkdin: Agamdeep Singh # Print a Welcome message print("Welcome to Odd or Even!") # Get the number a...
28.578947
58
0.72744
7f87fe9302df20e123586e581f4cf037a9c5e80b
571
py
Python
tests/cryptography/test_key_pad_decode.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/cryptography/test_key_pad_decode.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/cryptography/test_key_pad_decode.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from cryptography.key_pad_decode import decode class MyTestCase(unittest.TestCase): def test_1(self): self.assertEqual(decode("4103432323"), "6957678787") def test_2(self): self.assertEqual(decode("4103438970"), "6957672135") def test_3(self): self.assertEqual(de...
22.84
60
0.677758
34e36b515ff4a006c19e5f98190cd03fa64e089a
7,090
py
Python
mc/sim.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
2
2019-12-17T08:45:23.000Z
2022-02-03T15:10:11.000Z
mc/sim.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
null
null
null
mc/sim.py
swirkert/ipcai2016
7193b1b1a001511e7efadc2a40b4ab544be76607
[ "BSD-3-Clause" ]
null
null
null
""" ipcai2016 Copyright (c) German Cancer Research Center, Computer Assisted Interventions. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for details """ ''' Created on Sep 8, 2015 This...
30.170213
80
0.6
44803b97af3a23febdd7af22c342428d81bd92a8
1,010
py
Python
cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_lstm/run/out/test_data/data/compare_result.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
25
2020-11-20T09:01:35.000Z
2022-03-29T10:35:38.000Z
cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_lstm/run/out/test_data/data/compare_result.py
tanmana5/samples
3ea657c42d6fc8bfd1d664d52da2e9024c2a94ea
[ "Apache-2.0" ]
5
2021-02-28T20:49:37.000Z
2022-03-04T21:50:27.000Z
cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_lstm/run/out/test_data/data/compare_result.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
16
2020-12-06T07:26:13.000Z
2022-03-01T07:51:55.000Z
""" * @file compare_result.py * * Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. """ import numpy as np de...
32.580645
72
0.658416
3be3608b6546f5e18120fd5f86355ed77072a711
6,726
py
Python
ExcelExport/dt-excel.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
80
2016-09-19T21:06:50.000Z
2022-03-31T06:34:29.000Z
ExcelExport/dt-excel.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
36
2018-01-29T06:33:10.000Z
2022-03-07T08:05:56.000Z
ExcelExport/dt-excel.py
dlopes7/dynatrace-api
5ed061b5542eea9cee8cfd5dab81d91fc891f2f5
[ "BSD-3-Clause" ]
70
2017-01-30T09:42:18.000Z
2022-03-24T18:57:35.000Z
import pycurl import json import csv import certifi import io from openpyxl import Workbook from openpyxl.styles import Alignment,Font ### Setup Variables ### URL='https://{id}.live.dynatrace.com/api/v1/' APITOKEN='XXXXXXXXXXXXXXXXXXXXX' DEST_FILENAME='dt-export.xlsx' ### function to go get the data def dtApiQuer...
34.670103
120
0.704133
f645714edd0d3366dc5c01844e944a0c158e7787
2,912
py
Python
fedjax/core/client_samplers_test.py
alshedivat/fedjax
ff46ba9955f167160353d7be72f6f5e1febee32c
[ "Apache-2.0" ]
null
null
null
fedjax/core/client_samplers_test.py
alshedivat/fedjax
ff46ba9955f167160353d7be72f6f5e1febee32c
[ "Apache-2.0" ]
null
null
null
fedjax/core/client_samplers_test.py
alshedivat/fedjax
ff46ba9955f167160353d7be72f6f5e1febee32c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.950617
78
0.682349
1e4bd3839eab345fc45832ae908f28c4ea53ff3c
1,052
py
Python
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
4
2017-09-07T13:39:50.000Z
2018-05-31T16:14:50.000Z
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
103
2017-03-19T15:58:21.000Z
2018-07-11T20:36:17.000Z
edmunds/profiler/drivers/basedriver.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
2
2017-10-14T15:20:11.000Z
2018-04-20T09:55:44.000Z
from edmunds.globals import abc, ABC class BaseDriver(ABC): """ The base driver for profiler-drivers """ def __init__(self, app): """ Initiate the instance :param app: The application :type app: Edmunds.Application ...
30.057143
79
0.495247
ec1a33b577225ba7381b15132b32be2f4261ad0f
3,366
py
Python
sdk/python/pulumi_azure_nextgen/web/v20180201/list_web_application_settings.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/web/v20180201/list_web_application_settings.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/web/v20180201/list_web_application_settings.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
32.365385
158
0.642602
454b3b99f5ff00c343f69a7a26e4551a75efc922
1,833
py
Python
dataspace/clean/dates.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
3
2021-06-28T09:45:51.000Z
2022-01-10T15:38:07.000Z
dataspace/clean/dates.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
null
null
null
dataspace/clean/dates.py
Sam-prog-sudo/dataspace
2bab85c4dfa713deb835a46e9214c43a3a674082
[ "MIT" ]
1
2021-07-01T08:50:32.000Z
2021-07-01T08:50:32.000Z
import numpy as np import pandas as pd def _to_date(df: pd.DataFrame, *cols: str, **kwargs): try: for col in cols: df[col] = pd.to_datetime(df[col], **kwargs) except Exception as e: raise Exception("Can not convert to date", e) def _fdate(df: pd.DataFrame, *cols, precision: str =...
31.067797
78
0.519913
e641181e8aa95deb94828a4029425f1c77a37880
1,953
py
Python
xlsxwriter/test/comparison/test_hyperlink18.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink18.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink18.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-12T16:44:58.000Z
2020-04-12T16:44:58.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest.TestC...
31
292
0.599078
b874b7af9e450830332c99d8b2ca941323d40896
25,979
py
Python
src/pretix/plugins/stripe/views.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/plugins/stripe/views.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/plugins/stripe/views.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import hashlib import json import logging import requests import stripe from django.contrib import messages from django.core import signing from django.db import transaction from django.http import Http404, HttpResponse, HttpResponseBadRequest from django.shortcuts import get_object_or_404, redirect, render from djang...
43.154485
132
0.633589
6c05dc37ce9ecd88d04de2c7b1fb1af36407f407
2,916
py
Python
setup.py
rosscdh/pinax-comments
266632ef22b7fd922a8d3ffd6eabdac71e2385d9
[ "MIT" ]
59
2015-12-15T22:53:40.000Z
2021-07-06T03:28:49.000Z
setup.py
rosscdh/pinax-comments
266632ef22b7fd922a8d3ffd6eabdac71e2385d9
[ "MIT" ]
22
2015-10-01T14:34:50.000Z
2021-07-27T09:49:33.000Z
setup.py
rosscdh/pinax-comments
266632ef22b7fd922a8d3ffd6eabdac71e2385d9
[ "MIT" ]
19
2016-01-27T17:41:35.000Z
2021-09-22T09:30:50.000Z
from setuptools import find_packages, setup VERSION = "2.0.0" LONG_DESCRIPTION = """ .. image:: http://pinaxproject.com/pinax-design/patches/pinax-comments.svg :target: https://pypi.python.org/pypi/pinax-comments/ ============== Pinax Comments ============== .. image:: https://img.shields.io/pypi/v/pinax-comment...
32.764045
82
0.594307
54f89e215c9268dd792586821b21d45ed5d4fce0
5,491
py
Python
rsHRF/rsHRF_GUI/gui_windows/inputWindow.py
Remi-Gau/bids-app_rsHRF
a07715b764df69fffbc7f1a43718e958662ade9b
[ "MIT" ]
1
2021-04-11T14:08:53.000Z
2021-04-11T14:08:53.000Z
rsHRF/rsHRF_GUI/gui_windows/inputWindow.py
Remi-Gau/rsHRF-1
a07715b764df69fffbc7f1a43718e958662ade9b
[ "MIT" ]
5
2021-04-15T12:49:46.000Z
2021-06-21T09:14:40.000Z
rsHRF/rsHRF_GUI/gui_windows/inputWindow.py
Remi-Gau/rsHRF-1
a07715b764df69fffbc7f1a43718e958662ade9b
[ "MIT" ]
null
null
null
import os from tkinter import Toplevel, Checkbutton, IntVar, Button, filedialog, NORMAL, DISABLED, OptionMenu, StringVar, Label class InputWindow(): def __init__(self): # input window window = Toplevel() window.title("Input Window") # get screen width and height scree...
52.798077
231
0.584411
d73ed7931f34a0ece5d2a21a574eb7ff7ea782a5
167
py
Python
tests/connection/test_commit.py
coverwallet/pysoni
49d3a8acb101436ad0724749572be2ad9d86f3ae
[ "MIT" ]
5
2019-07-08T15:38:06.000Z
2022-03-24T20:36:19.000Z
tests/connection/test_commit.py
coverwallet/pysoni
49d3a8acb101436ad0724749572be2ad9d86f3ae
[ "MIT" ]
2
2019-07-07T23:26:32.000Z
2020-06-04T07:43:24.000Z
tests/connection/test_commit.py
coverwallet/pysoni
49d3a8acb101436ad0724749572be2ad9d86f3ae
[ "MIT" ]
1
2019-05-31T09:11:22.000Z
2019-05-31T09:11:22.000Z
def test_commit_triggers_commit_in_the_connection(open_connection): open_connection.commit() open_connection._connection_handler.commit.assert_called_once()
27.833333
67
0.850299
967ca2fb53793ba1dd8fbe1e8c014925c8a2e346
1,625
py
Python
shub/compat.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
111
2015-02-05T15:24:15.000Z
2022-03-31T03:31:22.000Z
shub/compat.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
355
2015-01-01T16:18:46.000Z
2022-03-18T15:41:10.000Z
shub/compat.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
79
2015-02-23T17:07:32.000Z
2022-01-03T09:15:39.000Z
import six def to_unicode(text, encoding=None, errors='strict'): """Return the unicode representation of `text`. If `text` is already a ``unicode`` object, return it as-is. If `text` is a ``bytes`` object, decode it using `encoding`. Otherwise, raise an error. """ if isinstance(text, six.te...
31.25
74
0.632
0d018b10d18266792bd72e75eff65202e1a21bd3
2,654
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
AnkS4/CarND-Capstone
da7dfd7b8dd0e6e16f6a14d59accdeb6e2d6e4bb
[ "MIT" ]
2
2019-07-22T13:43:25.000Z
2019-09-10T22:02:16.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
AnkS4/CarND-Capstone
da7dfd7b8dd0e6e16f6a14d59accdeb6e2d6e4bb
[ "MIT" ]
10
2019-10-30T12:05:59.000Z
2022-03-11T23:53:13.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
AnkS4/CarND-Capstone
da7dfd7b8dd0e6e16f6a14d59accdeb6e2d6e4bb
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight import tensorflow as tf import numpy as np import datetime USE_CLASSIFIER = True class TLClassifier(object): def __init__(self): if (USE_CLASSIFIER == True): #load classifier graph_path = r'light_classification/model/frozen_inference_graph.pb'...
35.386667
135
0.563301
ccb074cd42abd1a3cfc928cdb62ed723ecc53d00
3,757
py
Python
youtube_dl/extractor/stv.py
incognitoRepo/youtube-dl
e9dbbbd87e200d37f15531973fe653c3573cfd0b
[ "Unlicense" ]
16
2020-12-01T15:26:58.000Z
2022-02-24T23:12:14.000Z
youtube_dl/extractor/stv.py
incognitoRepo/youtube-dl
e9dbbbd87e200d37f15531973fe653c3573cfd0b
[ "Unlicense" ]
5
2021-02-20T10:30:00.000Z
2021-06-01T21:12:31.000Z
youtube_dl/extractor/stv.py
incognitoRepo/youtube-dl
e9dbbbd87e200d37f15531973fe653c3573cfd0b
[ "Unlicense" ]
7
2020-12-01T15:27:04.000Z
2022-01-09T23:21:53.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_urllib_parse_urlparse ) from ..utils import ( extract_attributes, float_or_none, int_or_none, str_or_none, ) class STVPlayerIE(InfoExtractor): ...
39.547368
119
0.554166
c8c8c260bc7a6a63ac6e60b99a1950acfcd071a3
390
py
Python
migrations/0005_auto_20160128_1748.py
contraslash/blogs_engine-django
b353da29a6302c2a7d8b68d12ae30a18c9c1c405
[ "MIT" ]
null
null
null
migrations/0005_auto_20160128_1748.py
contraslash/blogs_engine-django
b353da29a6302c2a7d8b68d12ae30a18c9c1c405
[ "MIT" ]
null
null
null
migrations/0005_auto_20160128_1748.py
contraslash/blogs_engine-django
b353da29a6302c2a7d8b68d12ae30a18c9c1c405
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('blog_engine', '0004_post_slug'), ] operations = [ migrations.AlterField( model_name='post', name='sl...
19.5
47
0.592308
4dbd6eb4d4bd980243b6230934c5b9cd668ac989
2,476
py
Python
demos/paired_mrus_prostate/demo_data.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
demos/paired_mrus_prostate/demo_data.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
demos/paired_mrus_prostate/demo_data.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
""" Download the demo data """ import os import shutil import zipfile from tensorflow.keras.utils import get_file PROJECT_DIR = "demos/paired_mrus_prostate" os.chdir(PROJECT_DIR) DATA_PATH = "dataset" ZIP_PATH = "example-data-mrus" ORIGIN = "https://github.com/yipenghu/example-data/archive/mrus.zip" zip_file = ZIP_...
29.831325
108
0.691034
05c4c3bbb20ec9e83455d6f69915139017d00194
1,853
py
Python
plaso/cli/helpers/text_prepend.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/cli/helpers/text_prepend.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/cli/helpers/text_prepend.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """The text prepend CLI arguments helper.""" from plaso.cli import tools from plaso.cli.helpers import interface from plaso.cli.helpers import manager from plaso.lib import errors class TextPrependArgumentsHelper(interface.ArgumentsHelper): """Text prepend CLI arguments helper.""" NAME =...
33.089286
79
0.7102
d6db3f521703415c83c55fdcef316e7af68cd7ab
161
py
Python
django_jwt/mixins/__init__.py
ah450/django-jwt
7a68574d762f644a02e5f43a8804f81d5ed0f12c
[ "MIT" ]
null
null
null
django_jwt/mixins/__init__.py
ah450/django-jwt
7a68574d762f644a02e5f43a8804f81d5ed0f12c
[ "MIT" ]
4
2018-11-14T15:08:24.000Z
2021-06-10T18:18:54.000Z
django_jwt/mixins/__init__.py
ah450/django-jwt
7a68574d762f644a02e5f43a8804f81d5ed0f12c
[ "MIT" ]
null
null
null
from .authentication_mixin import JWTAuthenticationMixin from .password_reset_mixin import JWTPasswordResetMixin from .activation_mixin import JWTActivationMixin
53.666667
56
0.913043
bdac4da92cbf011b58e2f2e58b677ff4d34d0765
1,334
py
Python
setup.py
JakeVestal/financier
0ace41f3b39bb2e4252cb90eeecf316767679e34
[ "MIT" ]
null
null
null
setup.py
JakeVestal/financier
0ace41f3b39bb2e4252cb90eeecf316767679e34
[ "MIT" ]
null
null
null
setup.py
JakeVestal/financier
0ace41f3b39bb2e4252cb90eeecf316767679e34
[ "MIT" ]
1
2021-11-21T20:52:41.000Z
2021-11-21T20:52:41.000Z
# Initial setup.py template taken from: # https://towardsdatascience.com/deep-dive-create-and-publish-your-first-python-library-f7f618719e14 # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path # The director...
33.35
102
0.702399
ed0bf514f81ff67155f70ac117286fd5140fe06e
484
py
Python
dynadb/migrations/0102_auto_20200115_1112.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
3
2019-03-06T13:35:38.000Z
2020-08-05T15:31:29.000Z
dynadb/migrations/0102_auto_20200115_1112.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
null
null
null
dynadb/migrations/0102_auto_20200115_1112.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2020-01-15 10:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dynadb', '0101_auto_20190307_1830'), ] operations = [ migrations.AlterField( ...
23.047619
75
0.632231
0c6139c86e3f03a01837e6f2c9b00b0d25ffab51
2,772
py
Python
code/models/ngrams.py
ayushbaid/RedditCommunityOpinion
850904141de2c74abcab616fabc794176b9770f6
[ "MIT" ]
null
null
null
code/models/ngrams.py
ayushbaid/RedditCommunityOpinion
850904141de2c74abcab616fabc794176b9770f6
[ "MIT" ]
null
null
null
code/models/ngrams.py
ayushbaid/RedditCommunityOpinion
850904141de2c74abcab616fabc794176b9770f6
[ "MIT" ]
null
null
null
from typing import List from nltk.lm.preprocessing import padded_everygram_pipeline from nltk.lm.models import MLE from nltk.tokenize import ToktokTokenizer from nltk.tokenize import wordpunct_tokenize from models.base_model import BaseModel class NGrams(BaseModel): ''' NGram language model based on senten...
29.806452
95
0.612554
85bfbd0ab2620c93c9743034c79087148a303033
2,024
py
Python
pyfeatures/app/main.py
ome/pydoop-features
189ee7a8cd28e92be9b7e5f51b61f39449564d2a
[ "Apache-2.0" ]
2
2017-03-21T14:05:19.000Z
2017-05-20T17:33:55.000Z
pyfeatures/app/main.py
ome/pydoop-features
189ee7a8cd28e92be9b7e5f51b61f39449564d2a
[ "Apache-2.0" ]
15
2017-04-12T11:09:58.000Z
2017-12-20T07:51:08.000Z
pyfeatures/app/main.py
IDR/pydoop-features
fcb21c69287910fbb5707b4f246ea526dc2b75a7
[ "Apache-2.0" ]
4
2017-03-13T16:00:58.000Z
2017-11-30T15:33:29.000Z
# BEGIN_COPYRIGHT # # Copyright (C) 2014-2017 Open Microscopy Environment: # - University of Dundee # - CRS4 # # 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/lice...
27.351351
77
0.688735
0c0519f1c0536a68699d50844bf02a2d09330c73
535
py
Python
src/eurocodepy/ec5/sls/vibration.py
pcachim/eurocodepy
8b68e733e5ccaa41b16135d3a3f8e9d2544fc112
[ "MIT" ]
null
null
null
src/eurocodepy/ec5/sls/vibration.py
pcachim/eurocodepy
8b68e733e5ccaa41b16135d3a3f8e9d2544fc112
[ "MIT" ]
null
null
null
src/eurocodepy/ec5/sls/vibration.py
pcachim/eurocodepy
8b68e733e5ccaa41b16135d3a3f8e9d2544fc112
[ "MIT" ]
null
null
null
import math import numpy as np # useful functions aval = [0.5, 1, 2, 4] bval = [150, 120, 80, 50] def floor_freq(l, EI, m): f1 = (math.pi/2/l**2)*math.sqrt(EI/m) return f1 def vel(f1, b, l, m, EIl, EIt): n40 = math.pow(((40/f1)**2-1.0)*((b/l)**4)*(EIl/EIt), 0.25) print(f"n40 = {n40}") v = 4*(0....
17.833333
63
0.564486
7624a25f7fae6424207c8b0774903c115bf2fa41
2,186
py
Python
Xrbfetch/checks.py
FranckLejzerowicz/Xrbfetch
0f09eae47a346fa4c5cee86dc4e2eee1ccc85c92
[ "BSD-3-Clause" ]
null
null
null
Xrbfetch/checks.py
FranckLejzerowicz/Xrbfetch
0f09eae47a346fa4c5cee86dc4e2eee1ccc85c92
[ "BSD-3-Clause" ]
null
null
null
Xrbfetch/checks.py
FranckLejzerowicz/Xrbfetch
0f09eae47a346fa4c5cee86dc4e2eee1ccc85c92
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2020, Franck Lejzerowicz. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------------...
31.228571
96
0.580512
94b9963046486092aea92ff8a9f04d8fb0e50b65
247
py
Python
Fenier/apps/users/tests.py
hubertzk/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
2
2021-04-15T19:11:43.000Z
2021-04-20T05:05:32.000Z
Fenier/apps/users/tests.py
alsmonert/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
4
2021-02-26T18:19:23.000Z
2021-04-22T23:52:03.000Z
Fenier/apps/users/tests.py
alsmonert/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
1
2022-01-07T23:18:47.000Z
2022-01-07T23:18:47.000Z
from django import test from django.test import TestCase from .serializers import UsersSerializer # Create your tests here. class UsersSerializerTestCase(TestCase): def setUp(self): pass def test_serializer_update(): pass
22.454545
40
0.744939
588f87060783b0e8e379b0b060abb8a2f0f8b519
251
py
Python
demo/superuser.py
ixc/django-userena
5a8c61dcf5133e8b745c25d3b54e5578043222d8
[ "BSD-3-Clause" ]
2
2019-02-14T00:44:29.000Z
2020-04-28T17:04:05.000Z
demo/superuser.py
ixc/django-userena
5a8c61dcf5133e8b745c25d3b54e5578043222d8
[ "BSD-3-Clause" ]
null
null
null
demo/superuser.py
ixc/django-userena
5a8c61dcf5133e8b745c25d3b54e5578043222d8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from wsgi import * from django.contrib.auth.models import User try: wunki = User.objects.get(username='wunki') except User.DoesNotExist: pass else: wunki.is_staff = True wunki.is_superuser = True wunki.save()
20.916667
46
0.709163
a675c7e98b1ca4ff941b805da1663f7bcae3ddd7
2,815
py
Python
sparv/modules/misc/ids.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/modules/misc/ids.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/modules/misc/ids.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Generate unique IDs for corpus files.""" import math import random from binascii import hexlify from typing import Optional from sparv import AllDocuments, Annotation, AnnotationData, Document, Output, Wildcard, OutputDataAllDocs, annotator _ID_LENGTH = 10 @annotator("Give every document a unique ID") def doc_i...
32.356322
116
0.642274
051f91a80aca055f25f70cc7c09b1e934c737af3
97
py
Python
modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/tests/test_rodrigo_portal_gun.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/tests/test_rodrigo_portal_gun.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/tests/test_rodrigo_portal_gun.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
from rodrigo_portal_gun import __version__ def test_version(): assert __version__ == '0.1.0'
16.166667
42
0.762887
2683678fb96bfe8db403432f42980951e89813f9
205
py
Python
blender/nodes/converter/__init__.py
LewisOrton/taichi_elements_houdini
50ef3232f080030213bcb7578a48d03647a9445b
[ "MIT" ]
1
2021-05-13T11:34:03.000Z
2021-05-13T11:34:03.000Z
blender/nodes/converter/__init__.py
LewisOrton/taichi_elements_houdini
50ef3232f080030213bcb7578a48d03647a9445b
[ "MIT" ]
null
null
null
blender/nodes/converter/__init__.py
LewisOrton/taichi_elements_houdini
50ef3232f080030213bcb7578a48d03647a9445b
[ "MIT" ]
null
null
null
from .int_to_float import * from .color_to_vector import * from .hex_color_to_rgb import * from .float_math import * from .vector_math import * from .combine_vector import * from .seratate_vector import *
25.625
31
0.795122
2d9c8de0747ac7627a05987f52807c13e27e74b1
102
py
Python
zhaquirks/bitron/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
213
2020-04-16T10:48:31.000Z
2022-03-30T20:48:07.000Z
zhaquirks/bitron/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
1,088
2020-04-03T13:23:29.000Z
2022-03-31T23:55:03.000Z
zhaquirks/bitron/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
280
2020-04-24T08:44:27.000Z
2022-03-31T12:58:04.000Z
"""Bitron/SMaBiT module.""" BITRON = "Bitron Home" DIAGNOSTICS_CLUSTER_ID = 0x0B05 # decimal = 2821
20.4
49
0.715686
2da4b93e3aac5a260d329dfaedf8a4edc3264868
29,896
py
Python
imagecodecs/imagecodecs.py
hmaarrfk/imagecodecs
a598eda814c01dc1deafb41297b21b016717970b
[ "BSD-3-Clause" ]
null
null
null
imagecodecs/imagecodecs.py
hmaarrfk/imagecodecs
a598eda814c01dc1deafb41297b21b016717970b
[ "BSD-3-Clause" ]
null
null
null
imagecodecs/imagecodecs.py
hmaarrfk/imagecodecs
a598eda814c01dc1deafb41297b21b016717970b
[ "BSD-3-Clause" ]
null
null
null
# imagecodecs.py # Copyright (c) 2008-2021, Christoph Gohlke # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # thi...
31.012448
79
0.608409
7b252486d8f50287050f179a30a9c787e42ae507
225
py
Python
idunn/utils/index_names.py
bbecquet/idunn
16a6225809180b5a92eca9cb63705f156542d4d9
[ "Apache-2.0" ]
26
2018-11-30T09:17:17.000Z
2020-11-07T01:53:07.000Z
idunn/utils/index_names.py
bbecquet/idunn
16a6225809180b5a92eca9cb63705f156542d4d9
[ "Apache-2.0" ]
38
2018-06-08T09:41:04.000Z
2020-12-07T17:39:12.000Z
idunn/utils/index_names.py
Qwant/idunn
65582dfed732093778bf7c2998db1e2cd78255b8
[ "Apache-2.0" ]
9
2018-05-18T13:07:00.000Z
2020-08-01T16:42:40.000Z
from .settings import settings INDICES = { "admin": settings["PLACE_ADMIN_INDEX"], "street": settings["PLACE_STREET_INDEX"], "address": settings["PLACE_ADDRESS_INDEX"], "poi": settings["PLACE_POI_INDEX"], }
22.5
47
0.688889
e0b86d53f1d6ecbceaa057b3d960d9a39f06ed13
2,060
py
Python
lambdarank.py
imaginal/RankNet
098c487d705b32b43b3f3f740af607eab4525f7e
[ "MIT" ]
1
2018-10-04T04:39:31.000Z
2018-10-04T04:39:31.000Z
lambdarank.py
Sean0719/RankNet-1
098c487d705b32b43b3f3f740af607eab4525f7e
[ "MIT" ]
null
null
null
lambdarank.py
Sean0719/RankNet-1
098c487d705b32b43b3f3f740af607eab4525f7e
[ "MIT" ]
null
null
null
# Michael A. Alcorn (malcorn@redhat.com) # A (slightly modified) implementation of LamdaRank as described in [1]. # [1] https://papers.nips.cc/paper/2971-learning-to-rank-with-nonsmooth-cost-functions.pdf # [2] https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/MSR-TR-2010-82.pdf import numpy as n...
29.014085
100
0.682039
9e6df9b2fbf19ee174b69a47b62ffe0da8c614ae
932
py
Python
src/visions/backends/pandas/types/ip_address.py
dah33/visions
381b9c1aa700bf0b352a014a50af4d8159c2d0e7
[ "BSD-4-Clause" ]
null
null
null
src/visions/backends/pandas/types/ip_address.py
dah33/visions
381b9c1aa700bf0b352a014a50af4d8159c2d0e7
[ "BSD-4-Clause" ]
null
null
null
src/visions/backends/pandas/types/ip_address.py
dah33/visions
381b9c1aa700bf0b352a014a50af4d8159c2d0e7
[ "BSD-4-Clause" ]
null
null
null
from ipaddress import _BaseAddress, ip_address import pandas as pd from visions.backends.pandas import test_utils from visions.backends.pandas.parallelization_engines import pandas_apply from visions.backends.pandas.series_utils import series_handle_nulls, series_not_empty from visions.types.ip_address import IPAddre...
34.518519
86
0.81867
4e9b8de051fdae70a91af9d3e126f878f5bc865c
1,917
py
Python
test.py
z33bs/deep-rl-agent-solves-unity-reacher
47fa7d4ee174b8a8144ee16c5edab498fa31d3c2
[ "MIT" ]
null
null
null
test.py
z33bs/deep-rl-agent-solves-unity-reacher
47fa7d4ee174b8a8144ee16c5edab498fa31d3c2
[ "MIT" ]
null
null
null
test.py
z33bs/deep-rl-agent-solves-unity-reacher
47fa7d4ee174b8a8144ee16c5edab498fa31d3c2
[ "MIT" ]
null
null
null
from unityagents import UnityEnvironment import numpy as np env = UnityEnvironment(file_name="Reacher.app") # get the default brain brain_name = env.brain_names[0] brain = env.brains[brain_name] # reset the environment env_info = env.reset(train_mode=True)[brain_name] # number of agents num_agents = len(env_info.ag...
46.756098
103
0.663015
f90b4035a9b99dd48426f4fe2bea2bc1f1ca6198
4,940
py
Python
setup.py
Congee/jq.py
df6c93352fb21d5536dd6d718b14796cf137975c
[ "BSD-2-Clause" ]
null
null
null
setup.py
Congee/jq.py
df6c93352fb21d5536dd6d718b14796cf137975c
[ "BSD-2-Clause" ]
null
null
null
setup.py
Congee/jq.py
df6c93352fb21d5536dd6d718b14796cf137975c
[ "BSD-2-Clause" ]
1
2021-12-03T01:18:05.000Z
2021-12-03T01:18:05.000Z
#!/usr/bin/env python import os import subprocess import tarfile import shutil import sysconfig import platform import requests from setuptools import setup from setuptools.command.build_ext import build_ext from setuptools.extension import Extension if platform.system() == 'Windows': from setup_windows import ...
33.605442
126
0.64413
c66ff23c452c3458962931e799368ebb87d8171b
882
py
Python
props/scripts/MonsterPop.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
27
2016-01-13T14:16:13.000Z
2022-01-03T05:38:44.000Z
props/scripts/MonsterPop.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
1
2017-04-29T00:51:26.000Z
2017-04-29T00:54:43.000Z
props/scripts/MonsterPop.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
14
2016-01-20T21:02:37.000Z
2020-07-19T05:47:20.000Z
from bge import logic import mathutils scene = logic.getCurrentScene() def pop(cont): own = cont.owner # add obj for i in range(0, 12): # Get position of origin object pos = mathutils.Vector(own.worldPosition) pos[0] = (own.worldPosition[0]) + own['x'] pos[1] = (own.worldPosition[1]) + own['y'] # Rotate ...
21.512195
44
0.603175
56cdfd60c54a4bc7e37013e033fc1289e04c83b9
11,976
py
Python
core/domain/collection_jobs_one_off_test.py
jlau323/oppia
37438a2c9bf7e66892fb9a6a93a1fe4ca7a82691
[ "Apache-2.0" ]
2
2020-10-13T12:59:08.000Z
2020-10-13T17:10:26.000Z
core/domain/collection_jobs_one_off_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2020-05-27T06:08:17.000Z
2020-05-27T06:08:17.000Z
core/domain/collection_jobs_one_off_test.py
gitter-badger/oppia
7d8e659264582d7ce74bc6c139e597b82bca0e04
[ "Apache-2.0" ]
1
2018-03-20T14:12:31.000Z
2018-03-20T14:12:31.000Z
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
43.079137
80
0.686957
3ac3f1fbb18349ae4090c45ce39366326b05806a
23,502
py
Python
Mohr_Circle/MC_figure_sources.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
11
2017-05-06T17:05:29.000Z
2020-11-12T09:26:47.000Z
Mohr_Circle/MC_figure_sources.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
49
2017-04-20T11:26:11.000Z
2020-05-29T13:18:06.000Z
Mohr_Circle/MC_figure_sources.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
4
2017-02-14T12:55:34.000Z
2022-01-12T15:07:07.000Z
""" Mohr Circle - definition of figure specific functions and sources """ # general imports from math import pi, sin, cos, atan # bokeh imports from bokeh.models import ColumnDataSource # internal imports from MC_helper_functions import calculate_radius_and_center, clear_rect_source, clear_arrow_source # ----------...
79.131313
335
0.596758
c0694cdbababbd7332768dcd7b23dbe867864eaa
3,116
py
Python
ga_methods.py
ra6had/GA-Cluster
ed86262475d1f89b31444d97cc841a0ec0982710
[ "MIT" ]
null
null
null
ga_methods.py
ra6had/GA-Cluster
ed86262475d1f89b31444d97cc841a0ec0982710
[ "MIT" ]
null
null
null
ga_methods.py
ra6had/GA-Cluster
ed86262475d1f89b31444d97cc841a0ec0982710
[ "MIT" ]
null
null
null
import galuster import pandas as pd import numpy as np from sklearn.cluster import KMeans as km import matplotlib.pyplot as plt from datetime import datetime import copy #Define Variables gens = 5 gen_size = 1000 n_clusters = 19 cluster_list = [] sum_of_dist = [] comp_duration = [] methods = ['rand...
27.575221
87
0.716945
96b4711eacb58f560b09b8dce803a7872c1ae8c3
997
py
Python
bindings/python/v1/lte/trigger/uerep/ltetuerep.py
Nibamot/empower-enb-proto
e0ddad51f7b4a8bf6f2973929408a027747d8c42
[ "Apache-2.0" ]
null
null
null
bindings/python/v1/lte/trigger/uerep/ltetuerep.py
Nibamot/empower-enb-proto
e0ddad51f7b4a8bf6f2973929408a027747d8c42
[ "Apache-2.0" ]
null
null
null
bindings/python/v1/lte/trigger/uerep/ltetuerep.py
Nibamot/empower-enb-proto
e0ddad51f7b4a8bf6f2973929408a027747d8c42
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Base class for a generic LTE Empower Message""" # # Copyright (c) 2018 FBK-CREATENET # AUTHOR- Abin Ninan Thomas # # 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 # # ...
34.37931
66
0.725176
08bd22a9ba93bf2fa4049205926dbe805dcf24b1
733
py
Python
src/cclib/method/__init__.py
maxscheurer/cclib
722a8b534686465d4e3ae57b8dd285a56f197e4a
[ "BSD-3-Clause" ]
3
2018-05-30T18:14:35.000Z
2018-11-06T21:22:07.000Z
src/cclib/method/__init__.py
maxscheurer/cclib
722a8b534686465d4e3ae57b8dd285a56f197e4a
[ "BSD-3-Clause" ]
null
null
null
src/cclib/method/__init__.py
maxscheurer/cclib
722a8b534686465d4e3ae57b8dd285a56f197e4a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Example analyses and calculations based on data parsed by cclib.""" from cclib.method.cda import CDA from cclib.method...
33.318182
78
0.789905
f3372a77385fb5037b4afa6c68bd9e1d4967fe83
20,907
py
Python
src/gripit/core/ynk_utils.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/core/ynk_utils.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/core/ynk_utils.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from builtins import open from builtins import range from builtins import dict from builtins import int from future import standard_library standard_library.install_aliase...
33.291401
159
0.638303
1da1adf3452ff5130b1467a4f361e89ea5754a5d
25,001
py
Python
scripts/python/catalyst/updatedSCR/init_450C.py
aladshaw3/cats
a24b7c141f3d87146905e422682e125422b98b67
[ "MIT" ]
1
2022-02-17T16:37:12.000Z
2022-02-17T16:37:12.000Z
scripts/python/catalyst/updatedSCR/init_450C.py
aladshaw3/cats
a24b7c141f3d87146905e422682e125422b98b67
[ "MIT" ]
5
2021-10-30T00:06:31.000Z
2022-03-09T13:34:07.000Z
scripts/python/catalyst/updatedSCR/init_450C.py
aladshaw3/cats
a24b7c141f3d87146905e422682e125422b98b67
[ "MIT" ]
3
2021-05-08T02:26:08.000Z
2022-03-01T22:27:40.000Z
import sys sys.path.append('../..') from catalyst.isothermal_monolith_catalysis import * #Importing all reaction dictionaries from rxns_v5 import * # Create dict to iterate through rxn_list = {"r5f": r5f,"r5r": r5r,"r6f": r6f,"r6r": r6r,"r7": r7,"r8": r8,"r9": r9, "r10": r10,"r11": r11,"r12": r12,"r13": ...
40.784666
105
0.614895
d075d819e3fff20b434ff003783aae953b28ea70
927
py
Python
djangocms_link/migrations/0004_auto_20150708_1133.py
yakky/djangocms-link
31ed11a74c8abc93d851ca54d426de27ac398838
[ "BSD-3-Clause" ]
null
null
null
djangocms_link/migrations/0004_auto_20150708_1133.py
yakky/djangocms-link
31ed11a74c8abc93d851ca54d426de27ac398838
[ "BSD-3-Clause" ]
null
null
null
djangocms_link/migrations/0004_auto_20150708_1133.py
yakky/djangocms-link
31ed11a74c8abc93d851ca54d426de27ac398838
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import djangocms_link.validators class Migration(migrations.Migration): dependencies = [ ('djangocms_link', '0003_auto_20150212_1310'), ] operations = [ migrations.AlterField( ...
33.107143
189
0.649407
4dba2b70fa9ae61569cc7bd52c17176cec9d67f6
10,424
py
Python
contentcuration/contentcuration/tests/viewsets/test_clipboard.py
kollivier/studio
9089780858ae9870421056b4e6e5659ae854db57
[ "MIT" ]
1
2019-03-30T18:14:25.000Z
2019-03-30T18:14:25.000Z
contentcuration/contentcuration/tests/viewsets/test_clipboard.py
kollivier/studio
9089780858ae9870421056b4e6e5659ae854db57
[ "MIT" ]
2
2019-04-06T07:06:08.000Z
2019-04-08T23:33:53.000Z
contentcuration/contentcuration/tests/viewsets/test_clipboard.py
MisRob/studio
92a5c780c8952f7d37db38952483ab7a28d3cb9d
[ "MIT" ]
1
2020-10-20T05:21:56.000Z
2020-10-20T05:21:56.000Z
from __future__ import absolute_import import uuid from django.core.management import call_command from django.core.urlresolvers import reverse from le_utils.constants import content_kinds from contentcuration import models from contentcuration.tests import testdata from contentcuration.tests.base import StudioAPITe...
34.979866
84
0.620299
cf79cb7d8c5161f88581e48b3f1d393a3676d375
160
py
Python
sentry_auth_adfs_oauth2/__init__.py
ccpgames/sentry-auth-adfs-oauth2
14a29ac7232978b670df6b7fe579a9beea3cc8c9
[ "MIT" ]
null
null
null
sentry_auth_adfs_oauth2/__init__.py
ccpgames/sentry-auth-adfs-oauth2
14a29ac7232978b670df6b7fe579a9beea3cc8c9
[ "MIT" ]
null
null
null
sentry_auth_adfs_oauth2/__init__.py
ccpgames/sentry-auth-adfs-oauth2
14a29ac7232978b670df6b7fe579a9beea3cc8c9
[ "MIT" ]
null
null
null
from __future__ import absolute_import from sentry.auth import register from .provider import AdfsOAuth2Provider register('afds_oauth2', AdfsOAuth2Provider)
20
43
0.85
656c8acdb6d9e3b718ee2cb335308aa48d3ed365
181
py
Python
src/compendium/filetypes/__init__.py
kuwv/python-compendium
881c280ac09391594154ce85916a03dbb655b166
[ "Apache-2.0" ]
null
null
null
src/compendium/filetypes/__init__.py
kuwv/python-compendium
881c280ac09391594154ce85916a03dbb655b166
[ "Apache-2.0" ]
null
null
null
src/compendium/filetypes/__init__.py
kuwv/python-compendium
881c280ac09391594154ce85916a03dbb655b166
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # copyright: (c) 2020 by Jesse Johnson. # license: Apache 2.0, see LICENSE for more details. """Provide modules to support disparate configuration types."""
36.2
63
0.701657
8ff11fa6f0c813ee01535bff22861560a5c343ea
2,089
py
Python
dbaas/notification/migrations/0007_auto__del_field_taskhistory_db_id.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
303
2015-01-08T10:35:54.000Z
2022-02-28T08:54:06.000Z
dbaas/notification/migrations/0007_auto__del_field_taskhistory_db_id.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
124
2015-01-14T12:56:15.000Z
2022-03-22T20:45:11.000Z
dbaas/notification/migrations/0007_auto__del_field_taskhistory_db_id.py
nouraellm/database-as-a-service
5e655c9347bea991b7218a01549f5e44f161d7be
[ "BSD-3-Clause" ]
110
2015-01-02T11:59:48.000Z
2022-02-28T08:54:06.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'TaskHistory.db_id' db.delete_column(u'notification_task...
53.564103
180
0.592628
f328a31a99555f1313557b0f3ba0081728c81b3a
3,830
py
Python
stubs.min/Rhino/Geometry/__init___parts/Matrix.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Rhino/Geometry/__init___parts/Matrix.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Rhino/Geometry/__init___parts/Matrix.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Matrix(object,IDisposable): """ Matrix(rowCount: int,columnCount: int) Matrix(xform: Transform) """ def BackSolve(self,zeroTolerance,b): """ BackSolve(self: Matrix,zeroTolerance: float,b: Array[float]) -> Array[float] """ pass def BackSolvePoints(self,zeroTolerance,b): """ BackSolvePoints(se...
30.15748
215
0.643603
9df50268fb2f9cc50105fece77343c8d5e7ef878
3,062
py
Python
080 Search in Rotated Sorted Array II.py
scorpionpd/LeetCode-all
0d65494f37d093d650b83b93409e874c041f3abe
[ "MIT" ]
null
null
null
080 Search in Rotated Sorted Array II.py
scorpionpd/LeetCode-all
0d65494f37d093d650b83b93409e874c041f3abe
[ "MIT" ]
null
null
null
080 Search in Rotated Sorted Array II.py
scorpionpd/LeetCode-all
0d65494f37d093d650b83b93409e874c041f3abe
[ "MIT" ]
null
null
null
""" Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. """ __author__ = 'Danyang' class Solution: def search_set(self, A, target): """ Follow up 033...
27.585586
99
0.441868
9b9ebade1d0c1ab34f8c8dab507bf67f49f54292
3,672
py
Python
nmosauth/auth_server/models.py
bbc/nmos-auth-server
0f7a57f77798325e0b36b6a253570d111dd89603
[ "Apache-2.0" ]
9
2019-05-17T07:43:15.000Z
2020-12-06T00:40:55.000Z
nmosauth/auth_server/models.py
bbc/nmos-auth-server
0f7a57f77798325e0b36b6a253570d111dd89603
[ "Apache-2.0" ]
3
2019-06-14T14:50:48.000Z
2020-05-07T13:40:54.000Z
nmosauth/auth_server/models.py
bbc/nmos-auth-server
0f7a57f77798325e0b36b6a253570d111dd89603
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.495575
74
0.702887
1a41760f8814ef69a10811ce858f434a8831fd73
9,863
py
Python
youtube_dl/extractor/dplay.py
siddht4/youtube_dl_custom
648d01c1cdc7b3e11b4f812520fa39474719cdfc
[ "Unlicense" ]
12
2017-11-01T12:35:47.000Z
2020-02-26T19:41:30.000Z
youtube_dl/extractor/dplay.py
siddht4/youtube_dl_custom
648d01c1cdc7b3e11b4f812520fa39474719cdfc
[ "Unlicense" ]
8
2017-12-05T23:45:54.000Z
2022-02-09T23:28:51.000Z
youtube_dl/extractor/dplay.py
siddht4/youtube_dl_custom
648d01c1cdc7b3e11b4f812520fa39474719cdfc
[ "Unlicense" ]
6
2017-07-15T07:17:29.000Z
2018-03-13T07:31:18.000Z
# coding: utf-8 from __future__ import unicode_literals import json import re import time from .common import InfoExtractor from ..compat import ( compat_urlparse, compat_HTTPError, ) from ..utils import ( USER_AGENTS, ExtractorError, int_or_none, unified_strdate, remove_end, update_ur...
40.257143
157
0.538477
e1218b6a489e3550fabc3ebb7b67fe0845b3f9b7
971
py
Python
lambda_code/elasticbeanstalk/Tags/index.py
ikben/custom-resources
6857c4bc86dd118e44221efa43e8298f748bf116
[ "Apache-2.0" ]
2
2019-05-02T13:06:40.000Z
2019-12-20T15:48:31.000Z
lambda_code/elasticbeanstalk/Tags/index.py
ikben/custom-resources
6857c4bc86dd118e44221efa43e8298f748bf116
[ "Apache-2.0" ]
2
2019-09-26T14:18:49.000Z
2021-09-01T10:52:08.000Z
lambda_code/elasticbeanstalk/Tags/index.py
ikben/custom-resources
6857c4bc86dd118e44221efa43e8298f748bf116
[ "Apache-2.0" ]
1
2019-08-02T15:26:19.000Z
2019-08-02T15:26:19.000Z
from cfn_custom_resource import CloudFormationCustomResource class Tags(CloudFormationCustomResource): def validate(self): self.environmentArn = self.resource_properties['EnvironmentArn'] self.tags = self.resource_properties['Tags'] @staticmethod def tags_to_update(tags): return l...
29.424242
90
0.677652
b51a21dd5106a09d22346c0f242ada6da8519618
2,367
py
Python
assignments/04_cat/cat.py
reidloeffler/be434-fall-2021
ee2337fd8ba7d3100ffd32ecc4513f95128f5589
[ "MIT" ]
null
null
null
assignments/04_cat/cat.py
reidloeffler/be434-fall-2021
ee2337fd8ba7d3100ffd32ecc4513f95128f5589
[ "MIT" ]
null
null
null
assignments/04_cat/cat.py
reidloeffler/be434-fall-2021
ee2337fd8ba7d3100ffd32ecc4513f95128f5589
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : reidloeffler <reidloeffler@localhost> Date : 2021-09-28 Purpose: Rock the Casbah """ import argparse from io import FileIO # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( de...
28.518072
79
0.528517
a0b8e42394284548b3ae49c9f926aaceed22ff3b
5,910
py
Python
scanner.py
JustinDPerkins/cloudconformity
920d0742f2d216d06bcabe433925d4dbb9ae19d6
[ "MIT" ]
3
2020-04-16T04:08:20.000Z
2021-03-17T01:28:43.000Z
scanner.py
JustinDPerkins/cloudconformity
920d0742f2d216d06bcabe433925d4dbb9ae19d6
[ "MIT" ]
null
null
null
scanner.py
JustinDPerkins/cloudconformity
920d0742f2d216d06bcabe433925d4dbb9ae19d6
[ "MIT" ]
1
2020-04-30T16:43:57.000Z
2020-04-30T16:43:57.000Z
import sys import os import requests import json import argparse def optionA(access,access2,access3, grade): for data in access: rules = data['relationships'] ruledata = rules['rule'] rulelist = ruledata['data'] aruleid = rulelist['id'] attributes = data['attribute...
39.932432
157
0.511506
aac6d03aecf1f99064c1c3d0b50c304ec8df5c40
3,850
py
Python
tests/unit/drivers/test_encodingevaluation_driver.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
tests/unit/drivers/test_encodingevaluation_driver.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
tests/unit/drivers/test_encodingevaluation_driver.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest from jina import Document, Request from jina.drivers.evaluate import NDArrayEvaluateDriver from jina.executors.evaluators.embedding import BaseEmbeddingEvaluator from jina.proto import jina_pb2 from jina.types.document.helper import DocGroundtruthPair class MockDiffEvaluator(BaseEmbe...
30.8
83
0.694286
1141c2f9897bb9599873e0a11f00ef92ea16b1f7
3,920
py
Python
saber/tests/test_metrics.py
anarkia7115/saber
0994d355c01035092679b8fc49a9fefac7a91d1d
[ "MIT" ]
93
2018-09-25T12:10:02.000Z
2022-02-15T07:20:10.000Z
saber/tests/test_metrics.py
anarkia7115/saber
0994d355c01035092679b8fc49a9fefac7a91d1d
[ "MIT" ]
155
2018-08-25T00:57:43.000Z
2020-11-25T15:05:31.000Z
saber/tests/test_metrics.py
anarkia7115/saber
0994d355c01035092679b8fc49a9fefac7a91d1d
[ "MIT" ]
17
2018-10-10T14:07:30.000Z
2021-09-09T02:09:40.000Z
"""Any and all unit tests for the Metrics class (saber/metrics.py). """ import pytest from .. import constants from ..config import Config from ..dataset import Dataset from ..metrics import Metrics from ..utils import model_utils from .resources.dummy_constants import * PATH_TO_METRICS_OUTPUT = 'totally/arbitrary' ...
39.2
100
0.629337