hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
03bba9ccbb8b2674ef2d43e1b40d24304821cb65
6,841
py
Python
authenticator_test.py
caoimhechaos/py-ancientauth
542f1b3b4e17710355a3b7e16eaa04d22a8a4a28
[ "BSD-3-Clause" ]
null
null
null
authenticator_test.py
caoimhechaos/py-ancientauth
542f1b3b4e17710355a3b7e16eaa04d22a8a4a28
[ "BSD-3-Clause" ]
null
null
null
authenticator_test.py
caoimhechaos/py-ancientauth
542f1b3b4e17710355a3b7e16eaa04d22a8a4a28
[ "BSD-3-Clause" ]
null
null
null
"""Unit test for the AncientAuth authenticator class.""" from ancientsolutions.crypttools import x509 from datetime import datetime, timedelta from Crypto.PublicKey.RSA import importKey import authenticator import calendar import token_cookie import token_pb2 import unittest _TEST_KEY = """-----BEGIN PRIVATE KEY---...
37.587912
69
0.814647
03bbc5b80a072406a236608b7a678f9997353195
470
py
Python
setup.py
justinkinney/zonemanager
b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded
[ "MIT" ]
1
2016-06-09T20:02:06.000Z
2016-06-09T20:02:06.000Z
setup.py
justinkinney/zonemanager
b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded
[ "MIT" ]
null
null
null
setup.py
justinkinney/zonemanager
b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import zonemanager setup( name='zonemanager', version=zonemanager.__version__, description='Simple Route53 zone management', packages=find_packages(), include_package_data=True, py_modules=['zonemanager'], install_requires=[ 'click', ...
22.380952
63
0.648936
03bbc6d22ee66bdbf7a13cc7d0c5b5380d40485d
1,121
py
Python
starter_kit/bots/Skillz/Barel/Func_SortTreasureIslands.py
ido777/Skillz
e28a8120263e35848685f9b54dfde8cdbfc7f194
[ "MIT" ]
null
null
null
starter_kit/bots/Skillz/Barel/Func_SortTreasureIslands.py
ido777/Skillz
e28a8120263e35848685f9b54dfde8cdbfc7f194
[ "MIT" ]
null
null
null
starter_kit/bots/Skillz/Barel/Func_SortTreasureIslands.py
ido777/Skillz
e28a8120263e35848685f9b54dfde8cdbfc7f194
[ "MIT" ]
null
null
null
__author__ = 'User' def Treasure_Islands(game): #this function return a list with the islands that have treasures. The list sorted by the value of the treasure islands #if both treasure islands have the same value the sorting will be by the capture turns. treasure_islands = [] island_values = (1, 2, 4...
43.115385
123
0.610169
03bc13b0585c658744620bea126a91792b22f3b5
1,623
py
Python
embutils/utils/bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
embutils/utils/bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
embutils/utils/bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ Byte manipulation utilities. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ # -->> Definitions <<------------------ # -->> API <<-------------------------- def bitmask(bit: int, fill: bool = False) -> in...
25.761905
103
0.581639
03bc1f83b5f58e9192fe4877d13bb955976f06fd
2,763
py
Python
djangocms_navigation/templatetags/navigation_menu_tags.py
marktsavage/djangocms-navigation
d15db1c4dd09162b8034b583e9630e7b97dfea86
[ "BSD-3-Clause" ]
6
2018-12-12T10:45:42.000Z
2022-03-16T20:50:36.000Z
djangocms_navigation/templatetags/navigation_menu_tags.py
marktsavage/djangocms-navigation
d15db1c4dd09162b8034b583e9630e7b97dfea86
[ "BSD-3-Clause" ]
15
2019-01-08T11:55:31.000Z
2022-03-01T15:06:52.000Z
djangocms_navigation/templatetags/navigation_menu_tags.py
marktsavage/djangocms-navigation
d15db1c4dd09162b8034b583e9630e7b97dfea86
[ "BSD-3-Clause" ]
9
2018-12-14T00:58:25.000Z
2022-03-11T17:16:17.000Z
# -*- coding: utf-8 -*- from django import template from cms.models import Page from menus.menu_pool import menu_pool from classytags.arguments import Argument from classytags.core import Options from classytags.helpers import InclusionTag register = template.Library() class NavigationShowBreadcrumb(InclusionTag)...
32.892857
92
0.628303
03bc25d42688333324dffc1848c110db6fbb8794
3,291
py
Python
tests/test_temperature.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_temperature.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_temperature.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
39.178571
99
0.69918
03bc27b3bfda878f5e409921cccf4e0782be2c71
3,374
py
Python
src/stk/molecular/functional_groups/functional_groups/aldehyde.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
src/stk/molecular/functional_groups/functional_groups/aldehyde.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
src/stk/molecular/functional_groups/functional_groups/aldehyde.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
null
null
null
""" Aldehyde ======== """ from .generic_functional_group import GenericFunctionalGroup class Aldehyde(GenericFunctionalGroup): """ Represents an aldehyde functional group. The structure of the functional group is given by the pseudo-SMILES ``[atom][carbon](=[oxygen])[hydrogen]``. """ def ...
21.767742
71
0.505039
03bc284329fabfe9d6bf680f3be020f6701f91bf
2,889
py
Python
app/web.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
1
2018-08-29T12:03:06.000Z
2018-08-29T12:03:06.000Z
app/web.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
app/web.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
import json from app import app, db from app.models import * from flask import ( Flask, request, abort, url_for, current_app, render_template, redirect ) @app.route('/') def index(): return render_template('index.html') @app.route('/store') def store(): row_limit = 5 col_limit = 4 query_all_mar...
30.734043
113
0.632399
03bc36fd36e0eef51943cbeb0ea1e96c07601705
5,597
py
Python
tests/test_emit_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_emit_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_emit_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from tests import FlexGetBase from flexget.entry import Entry class TestEmitSeries(FlexGetBase): __yaml__ = """ tasks: inject_series: series: - Test Series 1 - Test Series 2: ...
37.313333
101
0.603895
03bc40d235644ff15fee813e6d8f48042dfea7e2
2,906
py
Python
postprocessing.py
sandcobainer/MUSI6202Synth
6c5d5c53c016ff93019fca87c75b97e7a934eeb2
[ "MIT" ]
null
null
null
postprocessing.py
sandcobainer/MUSI6202Synth
6c5d5c53c016ff93019fca87c75b97e7a934eeb2
[ "MIT" ]
null
null
null
postprocessing.py
sandcobainer/MUSI6202Synth
6c5d5c53c016ff93019fca87c75b97e7a934eeb2
[ "MIT" ]
2
2021-04-09T23:14:06.000Z
2022-02-15T06:05:56.000Z
# Post processing scripts: interpolation, dithering, resampling and output from scipy import signal import numpy as np from scipy.interpolate import interp1d import wavio from dataclasses import dataclass @dataclass class Downsampler: output_fs: int = 48000 output_br: int = 32 def write_wav(self, wave_f...
31.247312
82
0.611838
03bc499987c8a0561fff069033ef182b4fbe7d51
1,407
py
Python
image_versions/processors.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/processors.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
image_versions/processors.py
hyperlocalhq/django-image-versions
345848cb4ac52485b6f2a591be0aef5c9dfcdc80
[ "MIT" ]
null
null
null
from pilkit.processors import ResizeCanvas def resize_canvas_process(self, img): from PIL import Image from pilkit.processors import Anchor original_width, original_height = img.size if self.anchor: anchor = Anchor.get_tuple(self.anchor) anchor_x = original_width * anchor[0] ...
31.977273
70
0.585643
03bc51ce823930c3cc989d3dbf87da14dba9ae99
2,058
py
Python
djangocms_blog/liveblog/migrations/0001_initial.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
1
2022-01-09T20:23:10.000Z
2022-01-09T20:23:10.000Z
djangocms_blog/liveblog/migrations/0001_initial.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
null
null
null
djangocms_blog/liveblog/migrations/0001_initial.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
1
2021-05-26T15:17:13.000Z
2021-05-26T15:17:13.000Z
import django.db.models.deletion import filer.fields.image from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("cms", "0013_urlconfrevision"), ("filer", "0003_thumbnailoption"), ] operations = [ migrations.CreateModel( nam...
34.3
103
0.433431
03bc75ec4fa5f614ceb11128b1693a2caea1794a
11,941
py
Python
lucky_guess/architecture.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/architecture.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/architecture.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from lucky_guess.lieconv_layers import LieConvSimple,simple_lift,LieConvAutoregressive from oil.model_trainers import Trainer from lie_conv.lieConv import PointConv, Pass, Swish, GlobalPool from lie_conv.lieConv import norm, LieResNet, BottleBlock from ...
45.926923
123
0.644753
03bc850ba318aff48f9b7715135f6b885e19aa95
3,048
py
Python
beacon/endpoints/rest/info.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
beacon/endpoints/rest/info.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
beacon/endpoints/rest/info.py
CINECA-project/beacon-2.x
986214fc910491206cb3b17ad4d14f00890e888d
[ "Apache-2.0" ]
null
null
null
""" Info Endpoint. Querying the info endpoint reveals information about this beacon and its existing datasets and their associated metadata. * ``/`` Beacon-v1 * ``/info`` Beacon-v1 * ``/info?model=GA4GH-ServiceInfo-v0.1`` GA4GH * ``/service-info`` GA4GH """ import logging from ...utils import resolve_token from ....
37.170732
120
0.577756
03bc9b66c018fc99445919d1ec20c1fcdeebc603
1,035
py
Python
manage.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
4
2020-08-18T23:41:34.000Z
2020-10-08T21:15:54.000Z
manage.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
3
2020-08-31T19:38:46.000Z
2020-08-31T19:39:18.000Z
manage.py
aleducode/help-abejorral
cd924bcef45ad45a4ed3d2950fb1002b170309a8
[ "MIT" ]
1
2020-08-25T18:29:14.000Z
2020-08-25T18:29:14.000Z
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.34375
77
0.657005
03bca9f90b6c062d4f1070adcbaa6d864d72d058
1,804
py
Python
.leetcode/771.jewels-and-stones.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/771.jewels-and-stones.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/771.jewels-and-stones.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=771 lang=python3 # # [771] Jewels and Stones # # https://leetcode.com/problems/jewels-and-stones/description/ # # algorithms # Easy (87.31%) # Likes: 3094 # Dislikes: 460 # Total Accepted: 685.6K # Total Submissions: 784.3K # Testcase Example: '"aA"\n"aAAbbbb"' # # You're given strings jewe...
20.044444
79
0.635255
03bcd7550aa42c9e006d77a91ae13ccbb4478fcc
777
py
Python
backend/test/test_server.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
null
null
null
backend/test/test_server.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
9
2022-03-15T12:10:58.000Z
2022-03-23T19:33:51.000Z
backend/test/test_server.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
null
null
null
import json from viasp.shared.model import ClingoMethodCall from viasp.shared.io import DataclassJSONEncoder def create_empty_call() -> ClingoMethodCall: return ClingoMethodCall("", {}) def test_registering_valid_call_should_return_ok(client): valid = create_empty_call() rv = client.post("/control/add_...
33.782609
103
0.709138
03bceafbf8d657ce8b9bdc6322253b430d624b50
38,154
py
Python
sunpy/database/database.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/database/database.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
sunpy/database/database.py
derdon/sunpy
619102cd48c73a326c45263369446be9b74366e8
[ "MIT" ]
null
null
null
# Author: Simon Liedtke <liedtke.simon@googlemail.com> # # This module was developed with funding provided by # the Google Summer of Code (2013). from __future__ import absolute_import import itertools import operator from datetime import datetime from contextlib import contextmanager import os.path from sqlalchemy ...
38.617409
127
0.630314
03bd15168f702eea9ec0cc02f492a888908d59dc
53
py
Python
ipygpulogger/version.py
stas00/ipygpulogger
456b41dfaae77c346ca120cdca11e3ae15b602ac
[ "Apache-2.0" ]
1
2019-01-05T02:58:02.000Z
2019-01-05T02:58:02.000Z
ipygpulogger/version.py
stas00/ipygpulogger
456b41dfaae77c346ca120cdca11e3ae15b602ac
[ "Apache-2.0" ]
null
null
null
ipygpulogger/version.py
stas00/ipygpulogger
456b41dfaae77c346ca120cdca11e3ae15b602ac
[ "Apache-2.0" ]
null
null
null
__all__ = ['__version__'] __version__ = '0.1.1.dev0'
17.666667
26
0.679245
03bd27e324bc6c86b3ab9d2a3c4c74f2bc0642fe
3,001
py
Python
SCRAPE/Lib/site-packages/twisted/words/test/test_basesupport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/words/test/test_basesupport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/words/test/test_basesupport.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet import defer, error from twisted.trial import unittest from twisted.words.im import basesupport class DummyAccount(basesupport.AbstractAccount): """ An account object that will do nothing when asked to start to log ...
29.712871
86
0.642786
03bd3b3f0b99a2ab226d7f05387aac70fad2ea21
1,967
py
Python
pick_star.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
1
2021-06-06T15:26:36.000Z
2021-06-06T15:26:36.000Z
pick_star.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
null
null
null
pick_star.py
marissakotze/timDIMM
dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f
[ "BSD-3-Clause" ]
3
2015-07-29T15:16:35.000Z
2017-12-01T13:02:36.000Z
#!/usr/bin/env python import os import hrstar_with_precess_WEST import hrstar_with_precess import hrstar from pygto900 import GTO900, status, slew, airmass import time from astropy.coordinates import Angle def pick_star(g): """A task to check to see if the current star is okay, and if not, to find a new st...
28.507246
137
0.638027
03bd66c07284d4ad8b3f99656e5f0dbf5702c025
226
py
Python
earlier-2020/pytorch/cmul_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
earlier-2020/pytorch/cmul_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
earlier-2020/pytorch/cmul_t.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
import torch import numpy as np c = np.zeros((128,3,32,32)) a = np.ones((128)) b = np.ones((128,3,32,32)) wa = torch.from_numpy(a) wb = torch.from_numpy(b) wc = torch.from_numpy(c) wc = torch.addcmul(wc, 1, wa, wb) print wc
17.384615
33
0.659292
03bd7e9ab6bdb1ea2f5982e42e14c02e8145a461
692
py
Python
chef_validator/tests/unit/common/test_credentials.py
ging/fi-ware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
1
2015-08-27T08:49:28.000Z
2015-08-27T08:49:28.000Z
chef_validator/tests/unit/common/test_credentials.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
chef_validator/tests/unit/common/test_credentials.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 ...
40.705882
76
0.745665
03bd8545750192a2dffc7d0ddde5268c823a638f
82,480
py
Python
PyQuante/rys.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
null
null
null
PyQuante/rys.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
null
null
null
PyQuante/rys.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
1
2022-01-07T19:20:27.000Z
2022-01-07T19:20:27.000Z
""" Two electron integral evaluation using Rys polynomials. References: ABD: Augspurger, Bernholdt, and Dykstra. 'Concise, Open-Ended Implementation of Rys Polynomial Evaluation of Two-Electron Integrals.' J. Comp. Chem. 11 (8), 972-977 (1990). Special thanks to Cliff Dykstra for providing a working v...
55.616993
81
0.524079
03bd98dd85393306663f788e0f38a796d1b072ed
3,303
py
Python
examples/labs/watershed_labeling.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
examples/labs/watershed_labeling.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
1
2015-09-09T07:49:57.000Z
2015-09-25T01:50:40.000Z
examples/labs/watershed_labeling.py
matthew-brett/nipy
5a3f080f2504f8b2c326677ea2e3101344b3f579
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ This scipt generates a noisy activation image image and performs a watershed segmentation in it. Needs matplotlib Author : Bertrand Thirion, 2009--2012 """ #autoindent print __do...
30.027273
80
0.5495
03bd9def81df760c3c53735f7de7e366bf67a9bd
2,430
py
Python
server/hnp/api/tests.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
2
2020-04-29T09:58:21.000Z
2020-05-08T20:23:33.000Z
server/hnp/api/tests.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
1
2020-05-01T11:00:58.000Z
2020-05-01T11:00:58.000Z
server/hnp/api/tests.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
null
null
null
import json from uuid import uuid1 from flask import url_for from hnp import db from hnp.common.testcommon import hnpTestCase from hnp.api.models import Sensor class SensorTestCase(hnpTestCase): def setUp(self): super(SensorTestCase, self).setUp() self.sensordata = dict(hostname='hnp.test.senso...
36.818182
78
0.661728
03bdabbae8c4243fad337f2231bb6df0b27e9a0e
751
py
Python
python-midonetclient/src/midonetclient/protobuf/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
221
2015-01-04T17:49:57.000Z
2021-12-23T16:15:35.000Z
python-midonetclient/src/midonetclient/protobuf/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
8
2018-05-24T13:36:03.000Z
2021-02-19T16:01:43.000Z
python-midonetclient/src/midonetclient/protobuf/__init__.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
95
2015-01-07T02:06:23.000Z
2022-02-23T22:23:55.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2015 Midokura Europe SARL, All Rights Reserved. # 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://w...
35.761905
75
0.772304
03bdd61b568fd54543030b826e3cac45d1ec23d8
6,783
py
Python
sktime/classification/feature_based/_tsfresh_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_tsfresh_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_tsfresh_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """TSFresh Classifier. Pipeline classifier using the TSFresh transformer and an estimator. """ __author__ = ["MatthewMiddlehurst"] __all__ = ["TSFreshClassifier"] import numpy as np from sklearn.ensemble import RandomForestClassifier from sktime.base._base import _clone_estimator from sktime...
33.413793
86
0.630842
03bde6915b0da3b8761796f53f18b0960ba72db0
22,002
py
Python
niapy/algorithms/other/aso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/other/aso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
1
2021-08-13T07:52:40.000Z
2021-08-16T08:52:20.000Z
niapy/algorithms/other/aso.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
2
2021-08-08T08:29:53.000Z
2021-08-12T15:31:55.000Z
# encoding=utf8 import logging import numpy as np from niapy.algorithms.algorithm import Algorithm from niapy.util import full_array, euclidean logging.basicConfig() logger = logging.getLogger('niapy.algorithms.other') logger.setLevel('INFO') __all__ = ['AnarchicSocietyOptimization', 'elitism', 'sequential', 'cross...
45.742204
244
0.629306
03bdf3c1129c08e3860a723f0179780c21305339
55,169
py
Python
machine-learning-notebooks/02-mobilenet-transfer-learning-scripts/retrain.py
naivelogic/vision-ai-developer-kit
e72ed377c027df24f125ad1bdd0c94652075e25a
[ "MIT" ]
94
2019-07-09T20:28:02.000Z
2022-02-16T16:32:19.000Z
machine-learning-notebooks/02-mobilenet-transfer-learning-scripts/retrain.py
naivelogic/vision-ai-developer-kit
e72ed377c027df24f125ad1bdd0c94652075e25a
[ "MIT" ]
121
2019-07-26T19:35:20.000Z
2022-02-26T23:18:46.000Z
machine-learning-notebooks/02-mobilenet-transfer-learning-scripts/retrain.py
naivelogic/vision-ai-developer-kit
e72ed377c027df24f125ad1bdd0c94652075e25a
[ "MIT" ]
59
2019-07-11T12:24:11.000Z
2022-02-16T21:19:38.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.865926
110
0.694593
03be16ff592b66f29f53bda3872a0eeee196902e
3,504
py
Python
web/app/core/tests/test_category_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
web/app/core/tests/test_category_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
1
2020-08-13T19:19:58.000Z
2020-08-13T19:19:58.000Z
web/app/core/tests/test_category_api.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Category from core.serializers import CategorySerializer from .helper import sample_profile, \ sample_company, \ fake, \ CATEG...
28.958678
79
0.651541
03be44952a6f425d6951d7384579b97549f48b01
4,406
py
Python
Preprocessing/visualize_phoneme_embeddings.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
Preprocessing/visualize_phoneme_embeddings.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
Preprocessing/visualize_phoneme_embeddings.py
Flux9665/IMS-Toucan
dca76d37c5ea35bcdb35f979efd533fec75ed855
[ "Apache-2.0" ]
null
null
null
import json import numpy as np from matplotlib import pyplot as plt from matplotlib.markers import MarkerStyle from sklearn.decomposition import PCA from sklearn.manifold import TSNE from Preprocessing.ArticulatoryCombinedTextFrontend import ArticulatoryCombinedTextFrontend def plot_embeddings(reduced_data, phoneme...
37.65812
141
0.626192
03be79ab082cdccc6e3a9bc289677fb1165cc55e
19,508
py
Python
src/olympia/promoted/tests/test_admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/promoted/tests/test_admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/promoted/tests/test_admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
from olympia import amo from olympia.amo.tests import ( addon_factory, TestCase, user_factory, version_factory) from olympia.amo.tests.test_helpers import get_uploaded_file from olympia.amo.urlresolvers import django_reverse, reverse from olympia.constants.promoted import LINE, RECOMMENDED from olympia.hero.models ...
42.043103
79
0.620258
03beb8064e4c4b6fcc923fea040f62d2b4c93032
2,269
py
Python
setup.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
setup.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
setup.py
pedrorodriguesgomes/django-rest-logger
01152aad9854b02e8b76404e2960632d72e4b0e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): filename = os.path.join(os.path.dirname(__file__), *file_paths) version_file = open(filename).read() ve...
29.855263
70
0.610842
03bece7f1099863ae52c059f8bb4fcb5554d8fb3
61,637
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.288024
286
0.675747
03bed3ba926e22e4aeaf66d799529bd8ec5e3d41
1,829
py
Python
igibson/object_states/cooked.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/object_states/cooked.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/object_states/cooked.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
from igibson.object_states.max_temperature import MaxTemperature from igibson.object_states.object_state_base import AbsoluteObjectState, BooleanState from igibson.object_states.texture_change_state_mixin import TextureChangeStateMixin from igibson.utils.utils import transform_texture _DEFAULT_COOK_TEMPERATURE = 70 ...
38.914894
101
0.739748
03bf030c53c382c8d1b6c6a756a324d189b16461
3,874
py
Python
alipay/aop/api/domain/UserFacePaySkinInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/UserFacePaySkinInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/UserFacePaySkinInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class UserFacePaySkinInfo(object): def __init__(self): self._client_version_limit = None self._expire_date = None self._name = None self._setting_link = None sel...
29.572519
91
0.584409
03bf0dbfc85ac1b6b3476f125a3abe80172a999f
1,710
py
Python
tools/migrations/0040_connect_suggestions.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0040_connect_suggestions.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0040_connect_suggestions.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2019-07-23 16:21 from __future__ import unicode_literals from django.apps import apps from django.db import migrations from django.db.models import Q def create_new_suggestion_root(apps, schema_editor): from toolz.curried import pipe, map from toolz impo...
28.5
67
0.668421
03bf18da2dfd2f80e5802214ed26e2cee07c35dc
494
py
Python
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
78
2020-03-02T12:00:57.000Z
2022-02-21T09:48:08.000Z
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
19
2020-03-02T12:07:18.000Z
2022-03-30T08:04:06.000Z
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
14
2020-06-14T03:29:47.000Z
2021-07-21T06:30:08.000Z
from maskrcnn_benchmark.data import datasets from .kitti import kitti_evaluation def evaluate(dataset, predictions, output_folder, **kwargs): args = dict( dataset=dataset, predictions=predictions, output_folder=output_folder, **kwargs ) if isinstance(dataset, datasets.KittiDataset): retur...
32.933333
87
0.736842
03bf1b433293fc195837d8c10c63963f7d8126c8
762
py
Python
Seeder/contracts/forms.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/contracts/forms.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/contracts/forms.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from . import models from contracts.constants import CREATIVE_COMMONS_TYPES_CHOICES from django import forms class ContractForm(forms.ModelForm): class Meta: model = models.Contract fields = ('state', 'year', 'contract_number', 'valid_from', 'valid_to', 'contract_file', 'creativ...
28.222222
79
0.658793
03bf6083edaf7e99da6858642101f76c9ad4529b
13,692
py
Python
posthog/queries/sessions/test/test_sessions_list.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
posthog/queries/sessions/test/test_sessions_list.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2022-02-15T00:47:35.000Z
2022-02-15T00:47:35.000Z
posthog/queries/sessions/test/test_sessions_list.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2021-09-08T19:45:03.000Z
2021-09-08T19:45:03.000Z
from dateutil.relativedelta import relativedelta from django.utils.timezone import now from freezegun import freeze_time from posthog.models import Action, ActionStep, Cohort, Event, Organization, Person, SessionRecordingEvent from posthog.models.filters.sessions_filter import SessionsFilter from posthog.queries.sessi...
41.365559
147
0.486561
03bf854453e1a4ffcf838cec87c36aa9064dfcef
519
py
Python
scripts/get_network_parameters.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
3
2021-12-07T17:08:00.000Z
2021-12-08T23:16:57.000Z
scripts/get_network_parameters.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-12-09T00:33:41.000Z
2021-12-09T15:59:48.000Z
scripts/get_network_parameters.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-07-30T14:53:48.000Z
2021-07-30T14:53:48.000Z
from ecg_classification import * if __name__ == '__main__': # CNN parameters for model_config in [ECGCNN_CONFIG_S, ECGCNN_CONFIG_M, ECGCNN_CONFIG_L, ECGCNN_CONFIG_XL]: model = ECGCNN(config=model_config) print(sum([p.numel() for p in model.parameters()])) # AttNet parameters for model_c...
43.25
106
0.720617
03bf8658c65ae030f20ece4c3a2bac9d805f10a2
4,753
py
Python
src/python/octmps_main.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
18
2018-03-12T01:15:47.000Z
2021-08-09T15:20:56.000Z
src/python/octmps_main.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
5
2019-03-18T05:49:44.000Z
2021-07-02T08:14:05.000Z
src/python/octmps_main.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
7
2019-04-01T02:47:50.000Z
2021-11-15T07:59:57.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import argparse import json from math import fmod, ceil from lib import octmps from src.python.octmps_io import show_version from src.python.mesh import load_mesh def read_opt_files(opt_file_name): regions = list() with open(op...
41.692982
110
0.635599
03bf93285443d770f11e92814159e676aa3d4515
9,515
py
Python
libqtile/layout/floating.py
airwoodix/qtile
95ea620fb4c1b549fae3fc2f4162c6d33dc24f80
[ "MIT" ]
2
2015-01-03T02:25:19.000Z
2015-02-07T19:16:06.000Z
libqtile/layout/floating.py
airwoodix/qtile
95ea620fb4c1b549fae3fc2f4162c6d33dc24f80
[ "MIT" ]
1
2020-04-15T20:20:42.000Z
2020-04-15T20:20:42.000Z
libqtile/layout/floating.py
zordsdavini/qtile
571198aff5332e86ad156a8710d36d4507f43421
[ "MIT" ]
1
2015-01-22T15:53:01.000Z
2015-01-22T15:53:01.000Z
# Copyright (c) 2010 matt # Copyright (c) 2010-2011 Paul Colomiets # Copyright (c) 2011 Mounier Florian # Copyright (c) 2012 Craig Barnes # Copyright (c) 2012, 2014-2015 Tycho Andersen # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2013 Julien Iguchi-Cartigny # Copyright (c) 2014 ramnes # Copyright (c) 2014 Sean Vig ...
35.110701
91
0.595901
03bfaac6fbfd521f40fbb630f9726d979891509a
2,229
py
Python
tests/test_prepro.py
fanfanba/mt-dnn
b8f0e4d5c2ab3221228367725b3adf63f31ac25d
[ "MIT" ]
null
null
null
tests/test_prepro.py
fanfanba/mt-dnn
b8f0e4d5c2ab3221228367725b3adf63f31ac25d
[ "MIT" ]
null
null
null
tests/test_prepro.py
fanfanba/mt-dnn
b8f0e4d5c2ab3221228367725b3adf63f31ac25d
[ "MIT" ]
null
null
null
import shutil import os import subprocess import filecmp import os.path def compare_files(dir1, dir2, common_files, text_mode=False): same_files = [] diff_files = [] for common_file in common_files: path0 = os.path.join(dir1, common_file) path1 = os.path.join(dir2, common_file) ope...
36.540984
207
0.69493
03bfb855572021e18948c23b9d0b174e2f5dbb3d
4,611
py
Python
diskimage_builder/block_device/level3/mount.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
1
2017-08-30T16:58:33.000Z
2017-08-30T16:58:33.000Z
diskimage_builder/block_device/level3/mount.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
diskimage_builder/block_device/level3/mount.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Andreas Florath (andreas@florath.net) # # 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...
36.023438
75
0.64216
03bfbf081295d8ff2ca56b2f11e429838bb9144a
412
py
Python
tests/regressiontests/admin_views/urls.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2017-07-08T06:24:07.000Z
2017-07-08T06:24:07.000Z
tests/regressiontests/admin_views/urls.py
cheshire/django
d9c4eacbd95f6a02e67f669f294da2dc8967a630
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_views/urls.py
cheshire/django
d9c4eacbd95f6a02e67f669f294da2dc8967a630
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
from __future__ import absolute_import from django.conf.urls import patterns, include from . import views, customadmin, admin urlpatterns = patterns('', (r'^test_admin/admin/doc/', include('django.contrib.admindocs.urls')), (r'^test_admin/admin/secure-view/$', views.secure_view), (r'^test_admin/admin/',...
29.428571
74
0.720874
03bfc679966d800f3bf2239b61226ec19114c3df
5,669
py
Python
chapter2/intogen-arrays/src/biomart/mrna_oncodrive.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/intogen-arrays/src/biomart/mrna_oncodrive.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/intogen-arrays/src/biomart/mrna_oncodrive.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """ Export oncodrive results to biomart database * Configuration parameters: - The ones required by intogen.data.entity.EntityManagerFactory * Input: - id: The mrna.oncodrive_gene ids to export * Entities: - mrna.oncodrive_genes """ from wok.task import Task from intogen.repository.serve...
28.345
116
0.720938
03bfc6f5d46aa32f0d211652c5bfc5446ea0b9c8
235
py
Python
LeetCode/NumberOfEvenDigits.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
LeetCode/NumberOfEvenDigits.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
LeetCode/NumberOfEvenDigits.py
livanshu/Data_Science_Portfolio
18a912bab7383f55dece5ffcbfb2cff546ffe55e
[ "MIT" ]
null
null
null
def findNumbers(self, nums: List[int]) -> int: a = map(str,nums) #map(function,iterable) count = 0 for i in a: if len(i) % 2 == 0: count +=1 return count
26.111111
57
0.425532
03bfd74ce9eaadbe0245be5804250f7fed57ae84
1,677
py
Python
server/tests/test_map.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
2
2018-08-20T18:09:47.000Z
2019-04-29T06:18:42.000Z
server/tests/test_map.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
6
2019-04-28T20:56:25.000Z
2022-02-12T04:33:23.000Z
server/tests/test_map.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
null
null
null
import unittest from pyfiles.model import map, tileEnum class TestMap(unittest.TestCase): # GIVEN that I have created a new Map model # When I examine the newly created instance # Then it should be initialised using tileEnum and the values be retrievable def test_map_creation_defaults(self): ...
39
87
0.679785
03bff809f7ca398a5e492dd8056c09cf4eadff5a
69,261
py
Python
deeplab/symbols/resnet_v1_101_deeplab_dilate10x10.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2017-08-28T13:13:48.000Z
2017-08-28T13:13:48.000Z
deeplab/symbols/resnet_v1_101_deeplab_dilate10x10.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
null
null
null
deeplab/symbols/resnet_v1_101_deeplab_dilate10x10.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2021-11-05T20:44:54.000Z
2021-11-05T20:44:54.000Z
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Written by Zheng Zhang # -------------------------------------------------------- import...
83.547648
123
0.598158
03c00a7b07fce14c737a70a0dfcea5ed3b44d45d
4,192
py
Python
superset/data/unicode_test_data.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/data/unicode_test_data.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/data/unicode_test_data.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
26.871795
76
0.581823
03c016532e75df73051c93040dc145f6ef591461
2,410
py
Python
docs/conf.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
2
2021-03-01T14:23:25.000Z
2021-11-28T19:17:08.000Z
docs/conf.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
1
2021-02-12T21:02:22.000Z
2021-02-12T21:35:33.000Z
docs/conf.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
7
2019-12-18T20:11:06.000Z
2020-10-14T08:54:16.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
38.253968
157
0.670954
03c03e077807d07cc7874edd878d30cdef76e387
11,397
py
Python
autokeras/blocks/preprocessing.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
3,979
2019-04-02T02:01:52.000Z
2022-03-31T16:53:14.000Z
autokeras/blocks/preprocessing.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
939
2019-04-02T18:13:53.000Z
2022-03-31T16:25:08.000Z
autokeras/blocks/preprocessing.py
micheleFraccaroli/autokeras
4c0e36dc0a5418355952dd74f74b2b6e7e87ebf1
[ "Apache-2.0" ]
826
2019-04-02T00:53:31.000Z
2022-03-31T10:11:02.000Z
# Copyright 2020 The AutoKeras Authors. # # 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 i...
37.99
85
0.64517
03c045e3cc6d9e93a4ab68f25449876e8ca68330
263
py
Python
terrascript/unifi/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/unifi/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/unifi/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/unifi/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class unifi(terrascript.Provider): pass
17.533333
79
0.768061
03c0731267e6e226e97253f708cc2918c112b528
1,709
py
Python
main.py
700gtk/ML_MNIST
394c8c1ef0634ca4d28fe55cd0a3feb462d7f192
[ "MIT" ]
null
null
null
main.py
700gtk/ML_MNIST
394c8c1ef0634ca4d28fe55cd0a3feb462d7f192
[ "MIT" ]
null
null
null
main.py
700gtk/ML_MNIST
394c8c1ef0634ca4d28fe55cd0a3feb462d7f192
[ "MIT" ]
null
null
null
import SGD_Ensemble from sklearn.model_selection import GridSearchCV import support as sp import neuralNet as nueralN from sklearn.linear_model import SGDClassifier from sklearn.metrics import f1_score import cv2 import numpy as np ### Get data X, Y = sp.Read_in_data('Data/train.csv') X_test, _ = sp.Read_in_data('Data...
24.414286
75
0.702165
03c07af62e5e232da304854c2f784e28f855c0d0
811
py
Python
gerenciador_tarefas/gerenciador_tarefas/urls.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
1
2020-06-24T13:23:30.000Z
2020-06-24T13:23:30.000Z
gerenciador_tarefas/gerenciador_tarefas/urls.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
null
null
null
gerenciador_tarefas/gerenciador_tarefas/urls.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
null
null
null
"""gerenciador_tarefas URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
35.26087
77
0.709001
03c09083243f839f53fc03bb1af7a91a45b4aeac
2,198
py
Python
test/test-scripts/cloudantapp/ViewOption.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
25
2015-11-02T16:50:47.000Z
2020-11-07T13:41:36.000Z
test/test-scripts/cloudantapp/ViewOption.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
80
2015-10-14T11:08:00.000Z
2018-03-26T01:30:20.000Z
test/test-scripts/cloudantapp/ViewOption.py
cloudant-labs/spark-cloudant
07f772eb21ec268f2e013a65dc2f21e01232f82b
[ "Apache-2.0" ]
30
2015-10-13T19:14:13.000Z
2020-11-08T07:23:30.000Z
#******************************************************************************* # Copyright (c) 2015 IBM Corp. # # 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/li...
36.032787
136
0.696997
03c090eab4e8b2e70ddbfc3a59a9ec1632904bcd
101,334
py
Python
hs_core/tests/api/native/test_core_metadata.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/tests/api/native/test_core_metadata.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/tests/api/native/test_core_metadata.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from dateutil import parser from lxml import etree from unittest import TestCase from django.core.exceptions import ValidationError from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import Group, User from hs_core.hydroshare import resource from hs_core.models import GenericRe...
60.210339
121
0.615322
03c0dd97f22c82b933cd4c95a2a0bc2f30640c41
1,105
py
Python
caastools/parsing/common.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
caastools/parsing/common.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
caastools/parsing/common.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List __all__ = ['DataSet', 'Global', 'Interview', 'Utterance', 'UtteranceProperty'] @dataclass class Interview: interview_name: str rater: str @dataclass class Global: original_value: str property_id: int property_value_id: int property_n...
20.090909
78
0.721267
03c0e0c745f28a4583a62e5751d4fbc9d517a1d5
3,509
py
Python
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/WEBHCAT/package/scripts/webhcat.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/WEBHCAT/package/scripts/webhcat.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/WEBHCAT/package/scripts/webhcat.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
32.192661
86
0.642633
03c15af99613688244d429e53e795a8805cce192
36,491
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.249683
238
0.552849
03c16f0f6e93f1ea85df40952de38db2707955b9
3,946
py
Python
tests/conftest.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
tests/conftest.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
tests/conftest.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
"""Fixtures for tests.""" import os import shutil from typing import Generator from unittest.mock import patch import pytest from _pytest.config import Config from adaptavist import Adaptavist from . import AdaptavistMock, read_global_config, system_test_preconditions pytest_plugins = ("pytester", ) def pytest_co...
44.337079
144
0.661429
03c170c46be50a372199807dbf83bda61a3c345f
2,202
py
Python
test/acceptance/integration/environments/get_environments/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/integration/environments/get_environments/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/integration/environments/get_environments/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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: # # h...
32.865672
85
0.755223
03c194825f16374b16fcc7b1f16118626ccc9286
16,621
py
Python
kobo-install/helpers/template.py
OpenOPx/kobotoolbox
ceee7e0740c8c74f33e5d2e36cb2cace0935abee
[ "MIT" ]
null
null
null
kobo-install/helpers/template.py
OpenOPx/kobotoolbox
ceee7e0740c8c74f33e5d2e36cb2cace0935abee
[ "MIT" ]
null
null
null
kobo-install/helpers/template.py
OpenOPx/kobotoolbox
ceee7e0740c8c74f33e5d2e36cb2cace0935abee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import fnmatch import json import os import re import stat import sys from string import Template as PyTemplate from urllib.parse import quote_plus from helpers.cli import CLI from helpers.config import Config class Template: UNIQUE_ID_FILE = '.uniqid' @classmethod def render(cls...
41.761307
80
0.55845
03c1d5956db2bc55f464dcabd4815f4836d129d6
3,475
py
Python
src/train/pretrained_embedding_bidirectional_lstm_model.py
wxy1224/cs224n_project
6dbd7869622565d0eaa3ac7b1dacc569f33d5a18
[ "MIT" ]
1
2018-05-30T16:16:12.000Z
2018-05-30T16:16:12.000Z
src/train/pretrained_embedding_bidirectional_lstm_model.py
wxy1224/cs224n_project
6dbd7869622565d0eaa3ac7b1dacc569f33d5a18
[ "MIT" ]
7
2020-01-28T22:19:16.000Z
2021-05-21T14:43:03.000Z
src/train/pretrained_embedding_bidirectional_lstm_model.py
wxy1224/cs224n_project
6dbd7869622565d0eaa3ac7b1dacc569f33d5a18
[ "MIT" ]
null
null
null
from src.train.abstract_model import BaseModel from keras.models import Model from keras.layers import Dense, Embedding, Input from keras.layers import LSTM, Bidirectional, GlobalMaxPool1D, Dropout from keras.preprocessing import text, sequence from keras.callbacks import EarlyStopping, ModelCheckpoint from src.config...
43.4375
111
0.677986
03c1ff51cc7bfa320dd53c59d84d7344f72edba2
2,389
py
Python
CadVlan/Util/shortcuts.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
17
2015-05-19T20:03:45.000Z
2022-03-24T06:19:47.000Z
CadVlan/Util/shortcuts.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
41
2015-01-27T18:36:07.000Z
2021-06-10T20:34:03.000Z
CadVlan/Util/shortcuts.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
19
2016-09-12T07:35:42.000Z
2022-01-28T23:46:11.000Z
# -*- coding:utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
33.180556
110
0.741733
03c219e59d534eafdc68bf247da2521a68df349b
7,573
py
Python
sktime/classification/feature_based/_signature_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_signature_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_signature_classifier.py
FedericoGarza/sktime
b21cdd81453abd34c72b42d4b2273b49d29eba30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Implementation of a SignatureClassifier. Utilises the signature method of feature extraction. This method was built according to the best practices and methodologies described in the paper: "A Generalised Signature Method for Time Series" [arxiv](https://arxiv.org/pdf/2006.00873.pdf)...
35.38785
87
0.666315
03c253f7222d1b241a97d7ceab0a0aaae762752c
3,717
py
Python
rlkit/core/eval_util.py
YangRui2015/rlkit_pro
fccde0877a0da043525f7239bf703995107a8e80
[ "MIT" ]
1
2020-09-30T14:18:28.000Z
2020-09-30T14:18:28.000Z
rlkit/core/eval_util.py
YangRui2015/rlkit_pro
fccde0877a0da043525f7239bf703995107a8e80
[ "MIT" ]
null
null
null
rlkit/core/eval_util.py
YangRui2015/rlkit_pro
fccde0877a0da043525f7239bf703995107a8e80
[ "MIT" ]
null
null
null
""" Common evaluation utilities. """ from collections import OrderedDict from numbers import Number import numpy as np import rlkit.pythonplusplus as ppp def get_generic_path_information(paths, stat_prefix=''): """ Get an OrderedDict with a bunch of statistic names and values. """ statistics = Orde...
32.321739
76
0.566048
03c25663315d413ba38b1f42ef2a5b505d2080a2
236
py
Python
edurange_refactored/graph_utils.py
apollo-heidal/edurange-flask
41a34b5405a99b4c66e7e4f9f596b4763cdee793
[ "MIT" ]
7
2020-09-16T18:09:27.000Z
2021-11-15T11:14:15.000Z
edurange_refactored/graph_utils.py
apollo-heidal/edurange-flask
41a34b5405a99b4c66e7e4f9f596b4763cdee793
[ "MIT" ]
25
2020-08-17T18:21:56.000Z
2022-02-25T03:58:36.000Z
edurange_refactored/graph_utils.py
apollo-heidal/edurange-flask
41a34b5405a99b4c66e7e4f9f596b4763cdee793
[ "MIT" ]
8
2020-08-27T20:36:21.000Z
2021-12-31T22:00:55.000Z
import os def getGraph(s, username): # s - scenario name, username - student username try: graph = open("./data/tmp/" + s + "/graphs/" + username + ".svg", "r").read() return graph except: return None
21.454545
84
0.563559
03c26c4b456ae22d8ebcb980b26919d46daa9c77
718
py
Python
datastructures/linked_lists/insert_sort/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datastructures/linked_lists/insert_sort/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datastructures/linked_lists/insert_sort/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from .. import Node def sorted_insert(head: Node, new_node: Node): current = None if head is None or head.value >= new_node.value: new_node.next = head head = new_node else: current = head while current.next is not None and current.next.data < new_node.value: ...
18.410256
78
0.614206
03c29283c20aaf2ae778123cd2d87fd515128c54
19,907
py
Python
tests/components/zha/test_light.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-04-07T15:44:54.000Z
2020-04-07T15:44:54.000Z
tests/components/zha/test_light.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
tests/components/zha/test_light.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Test zha light.""" from datetime import timedelta from unittest.mock import MagicMock, call, sentinel from asynctest import CoroutineMock, patch import pytest import zigpy.profiles.zha as zha import zigpy.types import zigpy.zcl.clusters.general as general import zigpy.zcl.clusters.lighting as lighting import zigpy....
34.98594
100
0.696891
03c29dd9fc5e809fba378e450eee0fba462a97c8
3,278
py
Python
swift/codegen/codegen.py
RasmusWL/ql
298f4ab899dcb12414d4fd5112956b82effd140f
[ "MIT" ]
null
null
null
swift/codegen/codegen.py
RasmusWL/ql
298f4ab899dcb12414d4fd5112956b82effd140f
[ "MIT" ]
null
null
null
swift/codegen/codegen.py
RasmusWL/ql
298f4ab899dcb12414d4fd5112956b82effd140f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Driver script to run all code generation """ import argparse import logging import pathlib import sys import importlib import types import typing from swift.codegen.lib import render, paths from swift.codegen.generators import generate def _parse_args() -> argparse.Namespace: p = argp...
49.666667
120
0.66809
03c29deb08bfdd6da022e3fc51fb95245b587dce
6,673
py
Python
Extensions/DepressionScore.py
OdenDavid/Sentiment247
001cb4665b8dbeb434654a9d74eb98f1c419c495
[ "Apache-2.0" ]
null
null
null
Extensions/DepressionScore.py
OdenDavid/Sentiment247
001cb4665b8dbeb434654a9d74eb98f1c419c495
[ "Apache-2.0" ]
null
null
null
Extensions/DepressionScore.py
OdenDavid/Sentiment247
001cb4665b8dbeb434654a9d74eb98f1c419c495
[ "Apache-2.0" ]
null
null
null
# for text manipulation import nltk import re # importing different libraries for text processing from nltk.tokenize import word_tokenize from nltk.corpus import stopwords from nltk.stem import PorterStemmer # for data manipulation from math import log, sqrt import pandas as pd import numpy as np import os, sys imp...
44.192053
148
0.598082
03c2a2992440df3de34971f02571a3ac5398f278
9,712
py
Python
VectorFunctions.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
VectorFunctions.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
VectorFunctions.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
# %% Imports from sympy import Matrix, init_printing import sympy as sym import sympy.printing as printing from sympy import Integral, Matrix, pi, pprint import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d import functions as f # %% All Functions and Definitions relating to working wit...
29.165165
103
0.601524
03c2e5a4189dc5c51419f3d805b8c0e1cf465dec
426
py
Python
build/j2s7s300_ikfast/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/j2s7s300_ikfast/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/j2s7s300_ikfast/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "moveit_core;pluginlib;roscpp;tf_conversions".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NA...
47.333333
88
0.732394
03c34b3b108f8736723c4a396d644278dbd26a81
6,276
py
Python
hyperbox/networks/mobilenet/mobile_net.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/networks/mobilenet/mobile_net.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/networks/mobilenet/mobile_net.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import math from hyperbox.mutables.spaces import OperationSpace from hyperbox.utils.utils import load_json from hyperbox.networks.base_nas_network import BaseNASNetwork from hyperbox.networks.mobilenet.mobile_ops import * from hyperbox.networks.mobilenet.mobile_utils import...
43.583333
142
0.53601
03c3645176d896e7e95717ac1a8598bc731a8844
3,657
py
Python
sdks/python/appcenter_sdk/models/DatabaseCollection.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/DatabaseCollection.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/DatabaseCollection.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class DatabaseCollec...
26.693431
90
0.550451
03c368c294c0e4f85effbcb23347483adc4f11d5
2,913
py
Python
nexus/__init__.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
null
null
null
nexus/__init__.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
null
null
null
nexus/__init__.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
1
2021-11-18T13:03:26.000Z
2021-11-18T13:03:26.000Z
""" Nexus ~~~~~ """ try: VERSION = __import__('pkg_resources') \ .get_distribution('nexus').version except Exception, e: VERSION = 'unknown' # XXX: code based on django.contrib.admin auto discovery from nexus.sites import NexusSite, site from nexus.modules import NexusModule __all__ = ('autodiscover...
34.678571
84
0.665294
03c3a5a2db4c02c36e3acadf8719f9ed8bf8ba1d
2,947
py
Python
scapy/scapy/layers/vxlan.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/vxlan.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/vxlan.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
#! /usr/bin/env python # RFC 7348 - Virtual eXtensible Local Area Network (VXLAN): # A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks # http://tools.ietf.org/html/rfc7348 # https://www.ietf.org/id/draft-ietf-nvo3-vxlan-gpe-02.txt # # VXLAN Group Policy Option: # http://tools.ietf.org/html/d...
34.267442
79
0.615541
03c3c92d606b7dba72cc924a622b59622ec2d2d3
2,042
py
Python
cogs/reddit.py
Virtual-/JadedBot
263938574e3c3d8dcfc754f415d7804805eca603
[ "BSD-3-Clause" ]
null
null
null
cogs/reddit.py
Virtual-/JadedBot
263938574e3c3d8dcfc754f415d7804805eca603
[ "BSD-3-Clause" ]
null
null
null
cogs/reddit.py
Virtual-/JadedBot
263938574e3c3d8dcfc754f415d7804805eca603
[ "BSD-3-Clause" ]
3
2020-08-17T21:15:30.000Z
2021-01-05T21:05:08.000Z
import discord import praw import configparser from random import randint from discord.ext import commands class Reddit(commands.Cog): """This class is responsible for all the reddit functionality.""" def __init__(self, bot): self.bot = bot self.config = configparser.ConfigParser() self...
37.814815
111
0.598923
03c3c93d5cbae63dc00fe9988124672ab1071039
4,706
py
Python
dags/dataset_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
dags/dataset_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
dags/dataset_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
32.680556
145
0.574798
03c3cf0b170479ee77e552f6a856e68da600773f
809
py
Python
vaccination/manage.py
Baschdl/vaccination_checker
e5efcb96a4b35dd76c2746f46b527b158fbba2c8
[ "MIT" ]
null
null
null
vaccination/manage.py
Baschdl/vaccination_checker
e5efcb96a4b35dd76c2746f46b527b158fbba2c8
[ "MIT" ]
null
null
null
vaccination/manage.py
Baschdl/vaccination_checker
e5efcb96a4b35dd76c2746f46b527b158fbba2c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vaccination.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that ...
35.173913
77
0.644005
03c3cf6747e8ca8238f9594b02b05ac57428ac6c
3,997
py
Python
bestfitting/src/data_process/s5_train_match_external.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
bestfitting/src/data_process/s5_train_match_external.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
bestfitting/src/data_process/s5_train_match_external.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy as np import pandas as pd import cv2 from PIL import Image import imagehash from tqdm import tqdm import pickle import mlcrate as mlc from config.config import * from utils.common_util import * def train_imread(img_dir, img_id, color): img = Image.open(opj(img_dir,...
33.588235
102
0.649987
03c3cf8a0e59b6b392fbc3f75c4c22ce5dafaf56
24,363
py
Python
openapi_client/api/route_pattern_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/route_pattern_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/route_pattern_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa:...
84.888502
1,285
0.684768
03c3d4477c462365891f1b55991b4c1dc9bdf3df
10,124
py
Python
vint/ast/plugin/scope_plugin.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
1
2015-05-14T22:02:45.000Z
2015-05-14T22:02:45.000Z
vint/ast/plugin/scope_plugin.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
null
null
null
vint/ast/plugin/scope_plugin.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
null
null
null
from enum import Enum from vint.ast.plugin.abstract_ast_plugin import AbstractASTPlugin from vint.ast.traversing import traverse from vint.ast.node_type import NodeType from vint.ast.plugin.builtin_identifiers import BuiltinIdentifierMap class DeclarationScope(Enum): GLOBAL = 1 BUFFER_LOCAL = 2 WINDOW_LOC...
32.977199
101
0.660411
03c3d4b91f760f260a19839bcfeba570e245840c
21,862
py
Python
cgatpipelines/tasks/enrichment.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
11
2018-09-07T11:33:23.000Z
2022-01-07T12:16:11.000Z
cgatpipelines/tasks/enrichment.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
102
2018-03-22T15:35:26.000Z
2022-03-23T17:46:16.000Z
cgatpipelines/tasks/enrichment.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
7
2018-06-11T15:01:41.000Z
2020-03-31T09:29:33.000Z
''' enrichment.py - Tasks for computing genomic enrichment ============================================================== Reference --------- ''' import re import os import tempfile import collections import shutil import cgatcore.experiment as E from cgatcore import pipeline as P import sqlite3 def outputSegments(...
28.429129
109
0.562849
03c3f462924bbf8b3564ed81a0782a73c6ede247
4,833
py
Python
libapparmor/utils/test/test-aamode.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/test/test-aamode.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/test/test-aamode.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
#! /usr/bin/python3 # ------------------------------------------------------------------ # # Copyright (C) 2014-2016 Christian Boltz # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software F...
42.026087
124
0.657976
03c415f25eae7582b802721c76391751105c8e8f
1,474
py
Python
Chapter 2/02/recipe13_plugin.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 2/02/recipe13_plugin.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 2/02/recipe13_plugin.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
import sys err = sys.stderr import nose import re from nose.plugins import Plugin class RegexPicker(Plugin): name = "regexpicker" def __init__(self): Plugin.__init__(self) self.verbose = False def options(self, parser, env): Plugin.options(self, parser, env) parser.add_op...
30.081633
94
0.589552
03c41cedc3f637c61636b58de4bbb6199fc8082f
3,663
py
Python
pinax/apps/tasks/tests/test_workflow.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/tasks/tests/test_workflow.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
null
null
null
pinax/apps/tasks/tests/test_workflow.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
# coding: utf-8 from django.test import TestCase from django.contrib.auth.models import Group from django.contrib.auth.models import User from tasks.models import Task from tasks.workflow import always, is_assignee, is_assignee_or_none from tasks.workflow import is_creator, no_assignee, is_task_manager from tasks.wor...
42.103448
88
0.694513
03c42c19e865d6e8cf2d77d51023f3c6ad4e970e
5,493
py
Python
custom_components/webcomic/sensor.py
dnguyen800/Web-Comic-Downloader
a7a6238a9d5adf6c32b05b1d2a6ef1f6cc2e1b4b
[ "MIT" ]
1
2019-10-24T10:56:01.000Z
2019-10-24T10:56:01.000Z
custom_components/webcomic/sensor.py
dnguyen800/Web-Comic-Downloader
a7a6238a9d5adf6c32b05b1d2a6ef1f6cc2e1b4b
[ "MIT" ]
null
null
null
custom_components/webcomic/sensor.py
dnguyen800/Web-Comic-Downloader
a7a6238a9d5adf6c32b05b1d2a6ef1f6cc2e1b4b
[ "MIT" ]
1
2022-02-10T15:56:58.000Z
2022-02-10T15:56:58.000Z
""" Home Assistant sensor that searches through the URL of a webcomic site and finds the image URL of the comic. The image URL can then be used in a Lovelace card like Useful-Markdown to show the latest webcomic. For more details, go here: https://github.com/dnguyen800/webcomic Instagram Scraper code is from this url...
29.853261
160
0.602403
03c43434a48a80d05bfcaece5f9f746e996ea8f6
2,080
py
Python
survae/transforms/surjections/dequantization_variational.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/transforms/surjections/dequantization_variational.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/transforms/surjections/dequantization_variational.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch from survae.distributions import ConditionalDistribution from survae.transforms.surjections import Surjection class VariationalDequantization(Surjection): ''' A variational dequantization layer. This is useful for converting discrete variables to continuous [1, 2]. Forward: `z = ...
36.491228
115
0.640865
03c4423c252aee30f7c45e6b0e3e7e55c7b6d88c
6,420
py
Python
tests/updated_hessian_test_suite_random.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/updated_hessian_test_suite_random.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/updated_hessian_test_suite_random.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
import sys import math import torch from timeit import default_timer as timer import os import json from subprocess import PIPE, run import numpy as np import shutil from datetime import datetime sys.path.append('tests/python_test_utils') sys.path.append('src') import forward_diff import tapenade_utils import us_uti...
35.666667
179
0.644704
03c446ffdac8cb7a55a35bd720c7d81568b5e68b
7,163
py
Python
test/dataset/test_stat.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
2
2019-09-05T05:39:03.000Z
2020-11-08T17:07:04.000Z
test/dataset/test_stat.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
test/dataset/test_stat.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
# Standard library imports import unittest from typing import cast # Third-party imports import numpy as np import pandas as pd # First-party imports from gluonts.core.exception import GluonTSDataError from gluonts.dataset.common import DataEntry, Dataset from gluonts.dataset.stat import ( DatasetStatistics, ...
30.742489
79
0.556331
03c45faec19cabc3052bf3e43455ec2729bcfd67
137
py
Python
cylinder_fitting/__init__.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
19
2018-04-13T07:53:41.000Z
2022-03-27T13:40:44.000Z
cylinder_fitting/__init__.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
2
2018-05-18T12:53:11.000Z
2022-03-09T12:31:08.000Z
cylinder_fitting/__init__.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
10
2018-02-13T22:15:51.000Z
2022-03-03T08:06:05.000Z
from .fitting import fit from .visualize import show_fit from .visualize import show_G_distribution from .analysis import fitting_rmsd
19.571429
42
0.839416
03c4a1cfd798519e8789281bcccc5cffd63d3a19
3,896
py
Python
scripts/practice/FB-reRun/IntersectionOfTwoLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/IntersectionOfTwoLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/IntersectionOfTwoLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Intersection of Two Linked Lists Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null. For example, the following two linked lists begin to intersect at node c1: The test cases are generate...
41.010526
209
0.694559
03c4b88a873475a9c98eea5ac3cef588b30b40c6
1,467
py
Python
ara/settings/log.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
ara/settings/log.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
ara/settings/log.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
import sys import os LOG_FILE_PATH = os.environ.get('LOG_FILE_PATH', '/var/log/newara/http_access.log') LOG_MAX_BYTES = int(os.environ.get('LOG_MAX_BYTES', 1024 * 1024 * 10)) LOG_BACKUP_COUNT = int(os.environ.get('LOG_BACKUP_COUNT', 100)) LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'filter...
27.166667
82
0.494888
03c5236b02dfe02f64616d6621811625bd629867
219
py
Python
webapp/flask-tdd-docker/project/api/ping.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
webapp/flask-tdd-docker/project/api/ping.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
5
2021-04-08T21:59:04.000Z
2022-02-10T14:19:59.000Z
webapp/flask-tdd-docker/project/api/ping.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
from flask_restx import Namespace, Resource ping_namespace = Namespace("ping") class Ping(Resource): def get(self): return {"status": "success", "message": "pong"} ping_namespace.add_resource(Ping, "")
18.25
55
0.694064
03c527accefe05f3424089d597dcb7aaa3ccf846
1,249
py
Python
Console/Python/MisionTic/Evaluations/No_Calificables/MinTic_Evaluation_2.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
1
2021-08-30T21:06:52.000Z
2021-08-30T21:06:52.000Z
Console/Python/MisionTic/Evaluations/MinTic_Evaluation_2.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
1
2021-05-18T05:42:02.000Z
2021-05-18T05:42:02.000Z
Console/Python/MisionTic/Evaluations/No_Calificables/MinTic_Evaluation_2.py
DavidsDvm/Dev_Exercises
59e12913e987e710558044e27c07b192576167f3
[ "Unlicense", "MIT" ]
null
null
null
#=_Describcion del problema_= """ Enunciado: Manejo de tipos de datos en Python,Identifica el tipo de dato (int, float, string o list) de los siguientes valores literales: Hola Mundo [1, 10, 100] -25 1.167 [Hola,Mundo] True A={Uno:uno, Dos:dos}, Para la solución de este problema, se requiere que el us...
35.685714
93
0.718175
03c55c40bef3fbce644f01b2afe0f6e43736d310
6,988
py
Python
map_viruses.py
FredHutch/map_viruses
92186d4024c67b708ee652f232e8878e403fb661
[ "MIT" ]
10
2018-02-16T04:28:03.000Z
2022-01-31T06:18:14.000Z
map_viruses.py
FredHutch/map_viruses
92186d4024c67b708ee652f232e8878e403fb661
[ "MIT" ]
3
2018-02-21T20:39:38.000Z
2018-02-22T18:02:47.000Z
map_viruses.py
FredHutch/map_viruses
92186d4024c67b708ee652f232e8878e403fb661
[ "MIT" ]
3
2018-02-16T14:19:26.000Z
2020-08-09T08:05:53.000Z
#!/usr/bin/python """Wrapper script to align FASTQ file(s) against a set of viral genomes.""" import os import uuid import time import shutil import logging import argparse import pandas as pd from lib.exec_helpers import align_reads from lib.exec_helpers import return_results from lib.exec_helpers import return_align...
34.087805
84
0.598025