hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795d9ecee52d67c7d58b1e748b142e100a0b791b
138
py
Python
energydiagram/__init__.py
agrass15268/PyEnergyDiagrams
6cecbd8617e234eefa22888030cf9f3b4a1cf41f
[ "MIT" ]
90
2017-01-24T14:21:05.000Z
2022-02-25T18:49:39.000Z
energydiagram/__init__.py
agrass15268/PyEnergyDiagrams
6cecbd8617e234eefa22888030cf9f3b4a1cf41f
[ "MIT" ]
14
2017-02-14T23:03:38.000Z
2022-03-08T14:59:48.000Z
energydiagram/__init__.py
agrass15268/PyEnergyDiagrams
6cecbd8617e234eefa22888030cf9f3b4a1cf41f
[ "MIT" ]
47
2017-01-25T13:28:16.000Z
2022-03-25T03:13:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 25 12:56:47 2019 @author: giacomo """ from .energydiagram import ED
17.25
35
0.65942
795d9eeded3b78e2ba9075c9c7971e20d685223b
4,536
py
Python
electrum_scribe/gui/kivy/uix/dialogs/fee_dialog.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
electrum_scribe/gui/kivy/uix/dialogs/fee_dialog.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
electrum_scribe/gui/kivy/uix/dialogs/fee_dialog.py
scribenetwork/scribe-electrum-desktop
b0507a8df1a88038e200905070524fded0a00978
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum_scribe.gui.kivy.i18n import _ Builder.load_string(''' <FeeDialog@Popup> id: popup title: _('Transaction Fees') size_hint: 0.8, 0.8 pos_hint: {'top':0.9} ...
34.363636
145
0.544312
795d9f643d61be95b3aeb6bc9db09f369b494479
1,620
py
Python
8 - Graphs/graph.py
codyveladev/ds-alg-practice
f2456c64e838ba8e73286b3b1f60b4c450d52ecd
[ "MIT" ]
null
null
null
8 - Graphs/graph.py
codyveladev/ds-alg-practice
f2456c64e838ba8e73286b3b1f60b4c450d52ecd
[ "MIT" ]
null
null
null
8 - Graphs/graph.py
codyveladev/ds-alg-practice
f2456c64e838ba8e73286b3b1f60b4c450d52ecd
[ "MIT" ]
null
null
null
class Graph: def __init__(self): self.adj_list = {} def add_vertex(self, vertex): if self not in self.adj_list.keys(): self.adj_list[vertex] = [] return True return False def remove_vertex(self, vertex): if vertex in self.adj_list.keys(): ...
28.421053
58
0.567901
795da0f573b887b325ce76ffd512924ecd5828d9
1,178
py
Python
xlsxwriter/test/comparison/test_comment01.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
3
2018-02-26T12:31:41.000Z
2020-10-10T14:14:11.000Z
xlsxwriter/test/comparison/test_comment01.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_comment01.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
25.608696
79
0.610357
795da2a949a10abd32dcd9d0e50ec13ce01c0cad
5,422
py
Python
docs/conf.py
zlluGitHub/phylotree.js
07cf20e6b73c2626eaeeca7354cc64b786a90bc4
[ "MIT" ]
null
null
null
docs/conf.py
zlluGitHub/phylotree.js
07cf20e6b73c2626eaeeca7354cc64b786a90bc4
[ "MIT" ]
null
null
null
docs/conf.py
zlluGitHub/phylotree.js
07cf20e6b73c2626eaeeca7354cc64b786a90bc4
[ "MIT" ]
1
2021-03-24T02:18:49.000Z
2021-03-24T02:18:49.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Phylotree.js documentation build configuration file, created by # sphinx-quickstart on Mon Nov 27 10:08:45 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
29.955801
79
0.684249
795da3091ede99ec97c78ec42cbd8e3d782c64cb
4,538
py
Python
setup.py
leodigi/django-pagemore
c16c01b6f76b1e1ec544e9e501804c2e165f01c8
[ "BSD-3-Clause" ]
1
2016-08-09T23:23:05.000Z
2016-08-09T23:23:05.000Z
setup.py
leodigi/django-pagemore
c16c01b6f76b1e1ec544e9e501804c2e165f01c8
[ "BSD-3-Clause" ]
null
null
null
setup.py
leodigi/django-pagemore
c16c01b6f76b1e1ec544e9e501804c2e165f01c8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys from fnmatch import fnmatchcase from setuptools import setup,find_packages from distutils.util import convert_path # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ["*.py", "*.pyc", "*~", ".*", "*.bak", "Makefile"] stan...
36.015873
86
0.564346
795da34a0e5bc6f21f746c748514c0ce2f64ae36
437
py
Python
candidates/views.py
prikmm/CareerCradle
a0783cc2fa4074ca88e7a1f2f5f36271c861dac5
[ "MIT" ]
null
null
null
candidates/views.py
prikmm/CareerCradle
a0783cc2fa4074ca88e7a1f2f5f36271c861dac5
[ "MIT" ]
1
2021-04-14T12:24:41.000Z
2021-04-18T07:33:11.000Z
candidates/views.py
prikmm/CareerCradle
a0783cc2fa4074ca88e7a1f2f5f36271c861dac5
[ "MIT" ]
3
2021-04-06T13:54:44.000Z
2021-05-03T17:28:59.000Z
from django.shortcuts import render from django.views.generic import TemplateView from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. class CandidateHomeView(LoginRequiredMixin, TemplateView): template_name = "candidates/home.html" class JobsView(TemplateView): template_name = ...
33.615385
58
0.816934
795da489f4f181df1a3d96fe3e31a0dc4b957265
1,533
py
Python
report_crawler/crawler.py
HeadCow/ARPS
fa7257f2aaee70391b8def527dd09f59aa5d26fa
[ "MIT" ]
1
2021-04-09T09:49:11.000Z
2021-04-09T09:49:11.000Z
report_crawler/crawler.py
HeadCow/ARPS
fa7257f2aaee70391b8def527dd09f59aa5d26fa
[ "MIT" ]
null
null
null
report_crawler/crawler.py
HeadCow/ARPS
fa7257f2aaee70391b8def527dd09f59aa5d26fa
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import print_function import os import time import shutil import traceback from report_crawler.spiders.__Global_function import get_localtime from report_crawler.spiders.__Global_variable import REPORT_SAVEDIR now_time = get_localtime(time.strftime("%Y-%m-%d", time.localtime()))...
26.431034
131
0.654925
795da4a33bd651f5a6fd775fda608485c1a0f20b
5,280
py
Python
research/cv/centernet_det/infer/sdk/api/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_det/infer/sdk/api/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_det/infer/sdk/api/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
34.966887
103
0.629735
795da4ae9b0562934df5a510904951f5501182c3
3,987
py
Python
background/download.py
Ideflop/SNCF
bf8259fced3fe8b08abb15737b949f0f1463c61b
[ "MIT" ]
2
2022-03-15T21:13:45.000Z
2022-03-15T23:04:30.000Z
background/download.py
Ideflop/SNCF
bf8259fced3fe8b08abb15737b949f0f1463c61b
[ "MIT" ]
null
null
null
background/download.py
Ideflop/SNCF
bf8259fced3fe8b08abb15737b949f0f1463c61b
[ "MIT" ]
1
2022-03-15T19:28:33.000Z
2022-03-15T19:28:33.000Z
#! /usr/bin/python3 import requests import json import datetime import secret import os today = datetime.date.today() yesterday = today - datetime.timedelta(days = 1) bef,mid,aft = str(today).split('-') date_today = [bef, *(mid, aft)] until = "".join(date_today) bef,mid,aft = str(yesterday).split('-') date_yesterd...
33.788136
178
0.613995
795da59e1f1215cc3a27be3b129e395a55d8bb36
6,369
py
Python
tests/bdd/features/pool/create/test_name.py
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
13
2021-03-29T15:10:15.000Z
2022-03-23T04:01:59.000Z
tests/bdd/features/pool/create/test_name.py
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
146
2021-03-30T13:14:56.000Z
2022-03-31T15:54:38.000Z
tests/bdd/features/pool/create/test_name.py
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
12
2021-06-22T13:53:01.000Z
2022-03-31T12:07:36.000Z
"""Pool creation feature tests.""" import http from pytest_bdd import ( given, scenario, then, when, ) import pytest from common.deployer import Deployer from common.apiclient import ApiClient from openapi.model.create_pool_body import CreatePoolBody from openapi.model.pool import Pool from openapi.e...
31.529703
94
0.758989
795da66e69e99fc9a039673f81a386cee4d35325
4,529
py
Python
webserver.py
exveria1015/wowpng
97f256fad67a16d670e53e8daa39f17e8432cefc
[ "BSD-3-Clause" ]
10
2020-02-10T14:27:52.000Z
2020-12-15T12:05:32.000Z
webserver.py
exveria1015/wowpng
97f256fad67a16d670e53e8daa39f17e8432cefc
[ "BSD-3-Clause" ]
3
2020-02-11T11:10:02.000Z
2021-12-15T10:25:35.000Z
webserver.py
exveria1015/wowpng
97f256fad67a16d670e53e8daa39f17e8432cefc
[ "BSD-3-Clause" ]
4
2020-02-10T08:41:26.000Z
2021-12-06T12:28:17.000Z
import datetime import json import logging import os import random import string import subprocess import time from subprocess import PIPE from concurrent.futures import ThreadPoolExecutor from tempfile import TemporaryDirectory import tornado from tornado import log from tornado import options from tornado import we...
26.48538
85
0.578273
795da746861170d92db9c8fd29611a3011b0a434
19,056
py
Python
Lib/site-packages/flask_blogging/views.py
CardinalFunky/Flask-Development-Site
23a89f4045ff764411935df3c9195457242e3f0d
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/flask_blogging/views.py
CardinalFunky/Flask-Development-Site
23a89f4045ff764411935df3c9195457242e3f0d
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/flask_blogging/views.py
CardinalFunky/Flask-Development-Site
23a89f4045ff764411935df3c9195457242e3f0d
[ "bzip2-1.0.6" ]
null
null
null
from __future__ import division try: from builtins import str except ImportError: pass from flask import escape from .processor import PostProcessor from flask_login import login_required, current_user from flask import Blueprint, current_app, render_template, request, redirect, \ url_for, flash, make_respo...
42.44098
79
0.60742
795da7bdd8c7bac2bef44090295f40680b7524f4
1,387
py
Python
setup.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
3
2016-03-23T08:12:03.000Z
2018-10-06T02:46:54.000Z
setup.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
setup.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from Cython.Build import cythonize from distutils.extension import Extension import versioneer import sys import os include_dirs = [os.path.join(sys.prefix, "include")] library_dirs = [os.path.join(sys.prefix, "lib")] libraries = ["uv"] kwargs = { 'include_dirs': include...
31.522727
62
0.682769
795da89fe4d4e0d95ca83d9dfc2cdadff0264c0b
1,749
py
Python
conftest.py
samwill/bokeh
228132eba4b696b91b2a77f7e9d07771ba868093
[ "BSD-3-Clause" ]
1
2021-10-30T00:32:00.000Z
2021-10-30T00:32:00.000Z
conftest.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
12
2020-08-26T20:19:29.000Z
2020-08-26T20:19:52.000Z
conftest.py
Deng-Fankang/bokeh
894731860c53b7c9ddd0057dee85cf064278dc0e
[ "BSD-3-Clause" ]
2
2021-01-12T18:22:24.000Z
2021-10-30T00:32:02.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
34.294118
142
0.639222
795da97e0791da97363472fc7c3ab62c6c136135
6,089
py
Python
mmocr/models/textrecog/backbones/table_resnet_extra.py
zezeze97/image2latex
c745667cd1af91dbff2385dcf2f2b80b9a40adb6
[ "Apache-2.0" ]
4
2022-01-03T06:52:30.000Z
2022-01-17T02:30:25.000Z
mmocr/models/textrecog/backbones/table_resnet_extra.py
zezeze97/image2latex
c745667cd1af91dbff2385dcf2f2b80b9a40adb6
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/backbones/table_resnet_extra.py
zezeze97/image2latex
c745667cd1af91dbff2385dcf2f2b80b9a40adb6
[ "Apache-2.0" ]
1
2021-12-31T04:47:16.000Z
2021-12-31T04:47:16.000Z
import torch import torch.nn as nn import torch.nn.functional as F from mmdet.models.builder import BACKBONES from ..layers.context_block import ContextBlock def conv3x3(in_planes, out_planes, stride=1): """ 3x3 convolution with padding """ return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,...
32.216931
118
0.583511
795dab2d53e3854c2301aa553ffa387bf48bf261
3,743
py
Python
intern_xplorer_api/intern_xplorer/models.py
NenadPantelic/Intern-xplorer
c1d6ea0ecf43fd1019a9c95cd436056d6bdaeb00
[ "MIT" ]
null
null
null
intern_xplorer_api/intern_xplorer/models.py
NenadPantelic/Intern-xplorer
c1d6ea0ecf43fd1019a9c95cd436056d6bdaeb00
[ "MIT" ]
9
2020-11-17T13:30:51.000Z
2020-11-19T21:06:42.000Z
intern_xplorer_api/intern_xplorer/models.py
NenadPantelic/Intern-xplorer
c1d6ea0ecf43fd1019a9c95cd436056d6bdaeb00
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.timezone import now # TODO: role and resource category should be entities ROLES = [("admin", "Admin"), ("candidate", "Candidate"), ("recruiter", "Recruiter")] RESOURCE_CATEGORIES = [("Data structures and algorithms", "Da...
44.559524
120
0.676196
795dabe1b85dca06ea02b4534e61e98706e8cda8
6,561
py
Python
examples/pytorch/rgcn/entity_classify.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
6
2020-04-27T16:31:53.000Z
2022-03-24T16:27:51.000Z
examples/pytorch/rgcn/entity_classify.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
null
null
null
examples/pytorch/rgcn/entity_classify.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
4
2020-03-17T11:21:56.000Z
2020-07-02T09:42:24.000Z
""" Modeling Relational Data with Graph Convolutional Networks Paper: https://arxiv.org/abs/1703.06103 Code: https://github.com/tkipf/relational-gcn Difference compared to tkipf/relation-gcn * l2norm applied to all weights * remove nodes that won't be touched """ import argparse import numpy as np import time import ...
38.368421
116
0.640451
795dac639a5d52aaaa273509ff73be960e61abd5
7,379
py
Python
api/leap_fn.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
1
2021-10-05T17:21:59.000Z
2021-10-05T17:21:59.000Z
api/leap_fn.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
5
2020-06-10T01:45:21.000Z
2022-02-27T04:06:48.000Z
api/leap_fn.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
3
2020-04-30T18:54:30.000Z
2021-11-15T23:18:28.000Z
# This is the main API that users interact with LEAP. Users # will create an instance of the LEAP class and can either # set their own user defined functions or use one of the func- # tions available in LEAP import json import proto as pb #from utils import leap_utils import utils.leap_utils as leap_utils from proto i...
34.643192
80
0.682342
795dac6e59fca8a1e25ce38bb72d997470b83d05
5,859
py
Python
tests/unit/harvesters/civic/test_civic_evidence.py
cancervariants/metakb
554cb28bf8b46a5b19e3f9f5e5ddb821ad4daea8
[ "MIT" ]
9
2018-12-05T12:13:16.000Z
2022-03-05T00:22:48.000Z
tests/unit/harvesters/civic/test_civic_evidence.py
cancervariants/metakb
554cb28bf8b46a5b19e3f9f5e5ddb821ad4daea8
[ "MIT" ]
107
2018-11-28T16:37:12.000Z
2022-02-14T17:07:59.000Z
tests/unit/harvesters/civic/test_civic_evidence.py
cancervariants/metakb
554cb28bf8b46a5b19e3f9f5e5ddb821ad4daea8
[ "MIT" ]
4
2018-11-30T17:17:47.000Z
2020-04-08T10:36:24.000Z
"""Test CIViC source""" import pytest from metakb import PROJECT_ROOT from metakb.harvesters.civic import CIViC from mock import patch import json @pytest.fixture(scope='module') def lnscc(): """Create a fixture for EID3017 evidence.""" return { "id": 3017, "name": "EID3017", "descript...
44.386364
79
0.498037
795dadaecef37092e2ed90656edc0a4d814e6126
35,455
py
Python
rocketchat_API/rocketchat.py
paulbarton90/rocketchat_API
1393607483cc7b112d3353c4340a05eb253b32cf
[ "MIT" ]
null
null
null
rocketchat_API/rocketchat.py
paulbarton90/rocketchat_API
1393607483cc7b112d3353c4340a05eb253b32cf
[ "MIT" ]
1
2020-05-18T20:01:24.000Z
2020-05-25T20:01:58.000Z
rocketchat_API/rocketchat.py
paulbarton90/rocketchat_API
1393607483cc7b112d3353c4340a05eb253b32cf
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- import mimetypes import os import re import requests from rocketchat_API.APIExceptions.RocketExceptions import RocketConnectionException, RocketAuthenticationException, \ RocketMissingParamException class RocketChat: API_path = '/api/v1/' def __init__(self, user=None, password=None...
47.210386
119
0.658102
795dadc1d9e0fa420727f08954e2169a1e6aea26
549
py
Python
insta/wsgi.py
azhar-sheikh/Instagram
9f4bf620d151e5353e527dbe14d06c3af964a4f8
[ "MIT" ]
2
2021-11-11T00:23:07.000Z
2022-01-06T17:16:16.000Z
insta/wsgi.py
azhar-sheikh/Instagram
9f4bf620d151e5353e527dbe14d06c3af964a4f8
[ "MIT" ]
11
2020-06-05T18:48:11.000Z
2022-02-20T07:02:49.000Z
insta/wsgi.py
azhar-sheikh/Instagram
9f4bf620d151e5353e527dbe14d06c3af964a4f8
[ "MIT" ]
6
2021-04-02T11:36:48.000Z
2022-03-22T09:39:34.000Z
""" WSGI config for insta project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoW...
26.142857
78
0.803279
795dae0d12856d160e51d659cb94dce1ebc68efa
934
py
Python
experiences/migrations/0001_initial.py
jordifierro/abidria-api
d7689783bf23fbe43c395b07572a1380654652cd
[ "MIT" ]
93
2017-08-12T09:41:21.000Z
2022-03-19T20:04:41.000Z
experiences/migrations/0001_initial.py
jordifierro/abidria-api
d7689783bf23fbe43c395b07572a1380654652cd
[ "MIT" ]
1
2017-10-09T16:49:10.000Z
2017-10-13T18:07:29.000Z
experiences/migrations/0001_initial.py
jordifierro/abidria-api
d7689783bf23fbe43c395b07572a1380654652cd
[ "MIT" ]
25
2017-08-18T04:31:23.000Z
2022-02-20T20:31:47.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-16 12:12 from __future__ import unicode_literals from django.db import migrations, models import stdimage.models import stdimage.utils class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ mig...
29.1875
130
0.59743
795dae2d6b661fc528d952c2315196d94127961f
3,530
py
Python
src/main/python/apache/aurora/executor/common/status_checker.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
11
2016-05-25T15:44:34.000Z
2021-07-24T19:37:30.000Z
src/main/python/apache/aurora/executor/common/status_checker.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
1
2022-01-21T23:08:28.000Z
2022-01-21T23:08:28.000Z
src/main/python/apache/aurora/executor/common/status_checker.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
6
2016-05-30T06:41:24.000Z
2022-02-27T10:57:58.000Z
# # 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 ...
30.964912
99
0.722663
795daeff179919b688229d841deb14ed9b75c6dd
283
py
Python
olx/pipelines.py
petref/OlxScraper
8ba751e2d6b92e3d0bd35713033382aa4b6bddd6
[ "MIT" ]
94
2017-03-07T08:21:30.000Z
2022-02-13T13:21:32.000Z
olx/pipelines.py
petref/OlxScraper
8ba751e2d6b92e3d0bd35713033382aa4b6bddd6
[ "MIT" ]
2
2018-08-30T06:32:31.000Z
2021-08-09T06:58:07.000Z
olx/pipelines.py
petref/OlxScraper
8ba751e2d6b92e3d0bd35713033382aa4b6bddd6
[ "MIT" ]
62
2017-07-23T00:35:50.000Z
2022-03-15T22:00:36.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class OlxPipeline(object): def process_item(self, item, spider): return item
23.583333
65
0.706714
795daf497e7baabaf541ed109fb24f8b45a83000
583
py
Python
pigeonXT/analyse.py
scordee/pigeonXT
943855e4180b86b135a27af00df8df7d6a4d6b8c
[ "Apache-2.0" ]
193
2020-05-29T03:18:44.000Z
2022-03-30T17:32:43.000Z
pigeonXT/analyse.py
scordee/pigeonXT
943855e4180b86b135a27af00df8df7d6a4d6b8c
[ "Apache-2.0" ]
2
2020-08-10T06:07:34.000Z
2020-08-19T15:47:44.000Z
pigeonXT/analyse.py
scordee/pigeonXT
943855e4180b86b135a27af00df8df7d6a4d6b8c
[ "Apache-2.0" ]
36
2020-05-29T13:02:26.000Z
2022-03-11T15:51:19.000Z
def get_number_of_annotations_per_label(annotations, labels): """ Gets the number of annotations per label :param annotations: a list of labelled (annotated) examples :param labels: a list of labels used when annotated :return: annotations_count: a dictionary of counts per label """ annotati...
38.866667
102
0.749571
795dafc565146b066568d6c5f90fd71a46f254d3
9,107
py
Python
src/poetry/masonry/builders/editable.py
ombschervister/poetry
66bd0dd974f1735db82e13998f0d5dae26a235d4
[ "MIT" ]
null
null
null
src/poetry/masonry/builders/editable.py
ombschervister/poetry
66bd0dd974f1735db82e13998f0d5dae26a235d4
[ "MIT" ]
null
null
null
src/poetry/masonry/builders/editable.py
ombschervister/poetry
66bd0dd974f1735db82e13998f0d5dae26a235d4
[ "MIT" ]
null
null
null
from __future__ import annotations import hashlib import os import shutil from base64 import urlsafe_b64encode from pathlib import Path from typing import TYPE_CHECKING from poetry.core.masonry.builders.builder import Builder from poetry.core.masonry.builders.sdist import SdistBuilder from poetry.core.masonry.utils....
33.72963
87
0.555507
795dafdcad84bb136d6fd9bf01b885e404d53cfe
1,463
py
Python
enaml/layout/box_helper.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
26
2016-04-01T18:49:31.000Z
2020-07-21T22:19:46.000Z
enaml/layout/box_helper.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
29
2016-02-22T17:40:55.000Z
2018-08-21T18:18:36.000Z
enaml/layout/box_helper.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
4
2016-08-29T13:07:19.000Z
2018-11-04T01:31:46.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
30.479167
79
0.602187
795db1775ef3bb0a856ff292f197cd36234bea62
8,537
py
Python
projetos/central de jogos.py
DanielSoaresFranco/Aulas.py
440a9b476782f737b14cea64f1437479e820fc7d
[ "MIT" ]
null
null
null
projetos/central de jogos.py
DanielSoaresFranco/Aulas.py
440a9b476782f737b14cea64f1437479e820fc7d
[ "MIT" ]
1
2021-03-03T22:45:47.000Z
2021-03-03T23:01:14.000Z
projetos/central de jogos.py
DanielSoaresFranco/Aulas.py
440a9b476782f737b14cea64f1437479e820fc7d
[ "MIT" ]
null
null
null
from random import choice, randint from time import sleep from utilidades_daniel import mensagem def login(): import mysql.connector as sql def begin(cursor): cursor.execute(""" CREATE TABLE IF NOT EXISTS userdata ( Id INTEGER NOT NULL auto_increment, Name VARCHAR(30) NOT NULL, ...
36.797414
172
0.541642
795db18eccec87c51960718272f22b9955ec13f8
2,637
py
Python
tests/integration/storage/test_system_user_storage.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
tests/integration/storage/test_system_user_storage.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
tests/integration/storage/test_system_user_storage.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
from typing import Optional import pytest from faker import Faker from pydantic import SecretStr from overhave import db from overhave.entities import SystemUserModel from overhave.storage import SystemUserStorage @pytest.mark.usefixtures("database") @pytest.mark.parametrize("test_user_role", list(db.Role), indirec...
38.217391
120
0.725446
795db374ec4bb44a7556ee4ef131da597d7ab2e2
1,860
py
Python
tests/conftest.py
hoffmann/daq
25bb7393ffdb232bc77947984377cf399be9843f
[ "BSD-2-Clause" ]
1
2020-06-29T08:49:16.000Z
2020-06-29T08:49:16.000Z
tests/conftest.py
hoffmann/daq
25bb7393ffdb232bc77947984377cf399be9843f
[ "BSD-2-Clause" ]
null
null
null
tests/conftest.py
hoffmann/daq
25bb7393ffdb232bc77947984377cf399be9843f
[ "BSD-2-Clause" ]
null
null
null
# content of conftest.py import pytest import os import numpy as np import pandas as pd from storefact import get_store from kartothek.io.dask.dataframe import update_dataset_from_ddf import dask.dataframe as dd @pytest.fixture(scope="session") def account_name(): return os.environ.get("ACCOUNT_NAME") @pytest.fi...
26.571429
102
0.617742
795db382c3943cbedb10dd3efd155034151c3fd2
423
py
Python
tinyfunds/migrations/0023_event_address.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
1
2020-12-02T19:47:33.000Z
2020-12-02T19:47:33.000Z
tinyfunds/migrations/0023_event_address.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
4
2021-04-08T20:35:24.000Z
2021-09-22T19:40:03.000Z
tinyfunds/migrations/0023_event_address.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-11-09 21:03 from django.db import migrations import places.fields class Migration(migrations.Migration): dependencies = [ ('tinyfunds', '0022_remove_event_address'), ] operations = [ migrations.AddField( model_name='event', nam...
21.15
72
0.621749
795db41bff6af9c4727e42a72eb220030fc2aad3
6,176
py
Python
sdk/lusid/models/annul_single_structured_data_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/annul_single_structured_data_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/annul_single_structured_data_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
29.980583
132
0.597312
795db523e5821342d23cc778695116a2aa201794
188
py
Python
example_plot_nora3.py
KonstantinChri/MET_waves
e2956a4abba76fb17c6745fe31d1861cccc3ebda
[ "MIT" ]
1
2022-03-31T11:36:58.000Z
2022-03-31T11:36:58.000Z
example_plot_nora3.py
KonstantinChri/MET_waves
e2956a4abba76fb17c6745fe31d1861cccc3ebda
[ "MIT" ]
null
null
null
example_plot_nora3.py
KonstantinChri/MET_waves
e2956a4abba76fb17c6745fe31d1861cccc3ebda
[ "MIT" ]
null
null
null
import met_waves met_waves.plot_panarctic_map(start_time='1993-01-31T12:00', end_time='1993-02-04T12:00', product='NORA3', variable='hs', method='timestep')
31.333333
88
0.648936
795db5e290ab273e37a3fc030874b30cc365ea2a
2,526
py
Python
albums/tests.py
jpwilson/OurFamilySocials
724efb54039677e0bc3272d296a7f83e7e6f8ba0
[ "MIT" ]
null
null
null
albums/tests.py
jpwilson/OurFamilySocials
724efb54039677e0bc3272d296a7f83e7e6f8ba0
[ "MIT" ]
2
2021-09-19T00:49:18.000Z
2021-10-07T16:20:02.000Z
albums/tests.py
jpwilson/OurFamilySocials
724efb54039677e0bc3272d296a7f83e7e6f8ba0
[ "MIT" ]
null
null
null
from django.http import response from django.test import TestCase, SimpleTestCase from django.urls import reverse, resolve from django.core.files.uploadedfile import SimpleUploadedFile from django.contrib.auth import get_user_model from .views import add_album_view, edit_album, delete_album, album_gallery_view from .mo...
38.272727
99
0.68171
795db60671290f84c1fc3113008d6f51b0db5a26
2,153
py
Python
main.py
dev-ved30/Signature
87aae0ab2adf46204e168783ed3fc84b744498c9
[ "MIT", "BSD-3-Clause" ]
3
2020-06-20T21:07:19.000Z
2020-07-20T21:10:49.000Z
main.py
Adi-UA/Signature
87aae0ab2adf46204e168783ed3fc84b744498c9
[ "MIT", "BSD-3-Clause" ]
4
2021-06-08T22:01:13.000Z
2022-03-12T00:40:08.000Z
main.py
Adi-UA/Signature
87aae0ab2adf46204e168783ed3fc84b744498c9
[ "MIT", "BSD-3-Clause" ]
1
2020-12-11T22:21:42.000Z
2020-12-11T22:21:42.000Z
import os import os.path from process import * import eel try: os.makedirs("web/temp") except: pass shadow_crush_img_path = "web/temp/.shadow.png" temp_img_path = "web/temp/.temp.png" @eel.expose def process_img(): """ This function is exposed to eel. It takes the image from tkinter, processes it and...
25.939759
133
0.689271
795db62a30249a4d94f9ae0c91e6d72f8484fccf
1,237
gyp
Python
modules/video_coding/codecs/vp9/vp9.gyp
yuxw75/temp
ab2fd478821e6c98ff10f2976ce43f617250cff6
[ "DOC", "BSD-3-Clause" ]
null
null
null
modules/video_coding/codecs/vp9/vp9.gyp
yuxw75/temp
ab2fd478821e6c98ff10f2976ce43f617250cff6
[ "DOC", "BSD-3-Clause" ]
2
2019-01-16T13:52:47.000Z
2019-02-03T11:34:44.000Z
modules/video_coding/codecs/vp9/vp9.gyp
yuxw75/temp
ab2fd478821e6c98ff10f2976ce43f617250cff6
[ "DOC", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
28.767442
100
0.56831
795db633f39316ad7f81603ac1f7631fc8ab377c
168
py
Python
apps/tips/apps.py
MeirKriheli/debian.org.il
90bff955c38f7e6e51647463c6a59701302de8e1
[ "MIT" ]
null
null
null
apps/tips/apps.py
MeirKriheli/debian.org.il
90bff955c38f7e6e51647463c6a59701302de8e1
[ "MIT" ]
1
2017-05-09T17:22:07.000Z
2017-06-04T14:42:01.000Z
apps/tips/apps.py
MeirKriheli/debian.org.il
90bff955c38f7e6e51647463c6a59701302de8e1
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class TipsConfig(AppConfig): name = 'tips' verbose_name = _('Tips')
21
55
0.75
795db659f2b6d89a33dea8db6e3f686f97454fd5
65,162
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-05-12T23:29:15.000Z
2020-05-12T23:29:15.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/models/_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
# 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 ...
35.356484
148
0.641831
795db67a6b778184c5733807495e618183bfa401
2,369
py
Python
behavior_cloning/prelim_submit/param_annealing.py
chickert/reinforcement_learning
473323f08b079004f27a7f0931e5e9a46bfad347
[ "MIT" ]
null
null
null
behavior_cloning/prelim_submit/param_annealing.py
chickert/reinforcement_learning
473323f08b079004f27a7f0931e5e9a46bfad347
[ "MIT" ]
null
null
null
behavior_cloning/prelim_submit/param_annealing.py
chickert/reinforcement_learning
473323f08b079004f27a7f0931e5e9a46bfad347
[ "MIT" ]
null
null
null
import numpy as np # I used this class from our PPO group project class AnnealedParam(float): def __new__(cls, param_min, param_max, period, param_value=None, param_max_decay=1.0, param_min_decay=1.0, s...
36.446154
119
0.607851
795db6ad8d7467b9253dcbdd32d5de289ff944ce
6,389
py
Python
tests/util/misc.py
vishalbelsare/trieste
d25b66becd0cac47574b0f8e80bc28301aa0bf98
[ "Apache-2.0" ]
1
2021-10-02T19:53:48.000Z
2021-10-02T19:53:48.000Z
tests/util/misc.py
vishalbelsare/trieste
d25b66becd0cac47574b0f8e80bc28301aa0bf98
[ "Apache-2.0" ]
null
null
null
tests/util/misc.py
vishalbelsare/trieste
d25b66becd0cac47574b0f8e80bc28301aa0bf98
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Trieste Contributors # # 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...
33.626316
99
0.679293
795db893bdc67276fa10dbd08945d672cfff0076
17,518
py
Python
yt/frontends/enzo_p/data_structures.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/enzo_p/data_structures.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/enzo_p/data_structures.py
cevans216/yt
c19c3c615b996c8a6e418362ffea9041a616d673
[ "BSD-3-Clause-Clear" ]
null
null
null
import io as io import os import warnings import numpy as np from yt.data_objects.grid_patch import AMRGridPatch from yt.data_objects.static_output import Dataset from yt.fields.field_info_container import NullFunc from yt.frontends.enzo.misc import cosmology_get_units from yt.frontends.enzo_p.fields import EnzoPFiel...
36.344398
86
0.562793
795db92d23aab40b10d3a628223760fea6fcabc5
13,338
py
Python
examples/scripts/flopy_swi2_ex2.py
hzhang4/usg-cln
7bc6a58f73dade866c8d24838305058d4ea2e568
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
examples/scripts/flopy_swi2_ex2.py
hzhang4/usg-cln
7bc6a58f73dade866c8d24838305058d4ea2e568
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
examples/scripts/flopy_swi2_ex2.py
hzhang4/usg-cln
7bc6a58f73dade866c8d24838305058d4ea2e568
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import os import sys import numpy as np import flopy import matplotlib.pyplot as plt # --modify default matplotlib settings updates = { "font.family": ["Univers 57 Condensed", "Arial"], "mathtext.default": "regular", "pdf.compression": 0, "pdf.fonttype": 42, "legend.fontsize": 7, "axes.label...
27.72973
83
0.537862
795dbbf12c38a62185eb20b50e763dc540bafd27
894
py
Python
deploy2ecscli/aws/client/ecr/client.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
deploy2ecscli/aws/client/ecr/client.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
deploy2ecscli/aws/client/ecr/client.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
import dataclasses import boto3 from deploy2ecscli.aws.client.config import Config from deploy2ecscli.aws.client.ecr.resources import AuthorizationToken from deploy2ecscli.aws.client.ecr.resources import RepositoryCollection @dataclasses.dataclass(init=False, frozen=True) class Client(): """ Usage: ...
30.827586
76
0.746085
795dbc091cd18268c0b6c7b9f47aa7efb1d91150
3,468
py
Python
touchdown/tests/stubs/aws/instance_profile.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
14
2015-01-05T18:18:04.000Z
2022-02-07T19:35:12.000Z
touchdown/tests/stubs/aws/instance_profile.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
106
2015-01-06T00:17:13.000Z
2019-09-07T00:35:32.000Z
touchdown/tests/stubs/aws/instance_profile.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
5
2015-01-30T10:18:24.000Z
2022-02-07T19:35:13.000Z
# Copyright 2016 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.030303
78
0.534314
795dbc0dba8abaa954ada447b3a244029ab78e46
21,232
py
Python
modules/pymol/plugins/managergui.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
modules/pymol/plugins/managergui.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
modules/pymol/plugins/managergui.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
''' PyMOL Plugins Engine, Graphical Plugin Manager (c) 2011-2012 Thomas Holder, PyMOL OS Fellow License: BSD-2-Clause ''' import Pmw import Tkinter from .legacysupport import tkMessageBox, tkFileDialog from . import pref_get default_pad = {'padx': 5, 'pady': 5} default_top = {'fill': 'x', 'anchor': 'n', 'side': 'to...
35.269103
129
0.591513
795dbc448d5f28423586a2991e770ce89ebeae62
917
py
Python
core/utils.py
weima/pytorch-study-notes
dd01f70a617042842483bc8ff1ea12aa3c46f197
[ "MIT" ]
null
null
null
core/utils.py
weima/pytorch-study-notes
dd01f70a617042842483bc8ff1ea12aa3c46f197
[ "MIT" ]
null
null
null
core/utils.py
weima/pytorch-study-notes
dd01f70a617042842483bc8ff1ea12aa3c46f197
[ "MIT" ]
null
null
null
import torch from core.types import TorchDevice device = torch.device(TorchDevice.Cuda if torch.cuda.is_available() else TorchDevice.Cpu) def set_parameter_requires_grad(model, feature_extracting): """ This helper function sets the .requires_grad attribute of the parameters in the model to False when we...
35.269231
89
0.745911
795dbcc498acabc6dbdd769fcca9da351869b57f
20,835
py
Python
test/contrib/test_funsor.py
karm-patel/numpyro
34e0cdf4fa0ab9a0300a0d894d6758419fb46f40
[ "Apache-2.0" ]
null
null
null
test/contrib/test_funsor.py
karm-patel/numpyro
34e0cdf4fa0ab9a0300a0d894d6758419fb46f40
[ "Apache-2.0" ]
null
null
null
test/contrib/test_funsor.py
karm-patel/numpyro
34e0cdf4fa0ab9a0300a0d894d6758419fb46f40
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 from collections import OrderedDict from functools import partial import numpy as np from numpy.testing import assert_allclose import pytest from jax import random import jax.numpy as jnp from funsor import Bint, Real, Tensor import...
37.608303
88
0.587377
795dbd0fee7420012e066e43ef5ed5d4dcb72e1b
545
py
Python
chat/migrations/0004_full_chat_follow.py
Aditya-aot/ION
4789bb2e05fae48414eb829c3607c13a24349cd7
[ "MIT" ]
null
null
null
chat/migrations/0004_full_chat_follow.py
Aditya-aot/ION
4789bb2e05fae48414eb829c3607c13a24349cd7
[ "MIT" ]
null
null
null
chat/migrations/0004_full_chat_follow.py
Aditya-aot/ION
4789bb2e05fae48414eb829c3607c13a24349cd7
[ "MIT" ]
1
2022-02-16T10:43:57.000Z
2022-02-16T10:43:57.000Z
# Generated by Django 3.0.7 on 2020-10-03 10:51 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('chat', '0003_auto_20200923_2120'), ] operations ...
25.952381
111
0.66422
795dbdaba586c6b7e7e9dba9644fa84438b7f31f
78
py
Python
sandbox/lib/jumpscale/JumpscaleLibsExtra/tools/capacity/units.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
sandbox/lib/jumpscale/JumpscaleLibsExtra/tools/capacity/units.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
Jumpscale/tools/capacity/units.py
threefoldtech/jumpscale10
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
MB = 1000 * 1000 GB = MB * 1000 KiB = 1024 MiB = KiB * 1024 GiB = MiB * 1024
11.142857
16
0.576923
795dbe6df4bb3795233cf45e4fb6882b81a81bd4
3,870
py
Python
util/question_database.py
giaccone/the_kirchhoff_bot
96783c2c7128b067e701d80dfc08ae1208b8e600
[ "MIT" ]
null
null
null
util/question_database.py
giaccone/the_kirchhoff_bot
96783c2c7128b067e701d80dfc08ae1208b8e600
[ "MIT" ]
null
null
null
util/question_database.py
giaccone/the_kirchhoff_bot
96783c2c7128b067e701d80dfc08ae1208b8e600
[ "MIT" ]
null
null
null
from telegram import InlineKeyboardButton def generate_buttons(labels): buttons = [[InlineKeyboardButton(labels[0], callback_data=labels[0]), InlineKeyboardButton(labels[1], callback_data=labels[1])], [InlineKeyboardButton(labels[2], callback_data=labels[2]), Inline...
55.285714
127
0.523514
795dbecd5f915996b1e07b390a38141d8f5f50db
765
py
Python
app/core/tests/test_commands.py
lordenem/recipe_rest_api
d88b93f74b33bdf625f49960d67a7483f19e3290
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
lordenem/recipe_rest_api
d88b93f74b33bdf625f49960d67a7483f19e3290
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
lordenem/recipe_rest_api
d88b93f74b33bdf625f49960d67a7483f19e3290
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.core.management import call_command from django.db.utils import OperationalError from django.test import TestCase class CommandTests(TestCase): def test_wait_for_db_ready(self): with patch('django.db.utils.ConnectionHandler.__getitem__') as gi: gi....
33.26087
74
0.68366
795dbf2b31e880e3c9f52f1f9540733268f4457f
809
py
Python
learning/13.await_deliver.py
relax-space/coroutine-first
0cdf078b8bd57e6a13961930888f8c0c4bd6c5a6
[ "Apache-2.0" ]
null
null
null
learning/13.await_deliver.py
relax-space/coroutine-first
0cdf078b8bd57e6a13961930888f8c0c4bd6c5a6
[ "Apache-2.0" ]
null
null
null
learning/13.await_deliver.py
relax-space/coroutine-first
0cdf078b8bd57e6a13961930888f8c0c4bd6c5a6
[ "Apache-2.0" ]
null
null
null
''' await传递: 允许生成器或协程把工作委托给第三方完成 ''' ''' req3通过await进入了req1方法,而req2没能进入 ''' async def req1(): return 1 async def req2(): b = req1() return b async def req3(): b = await req1() return b def print_value(f, args): try: b = f.send(args) except StopIteration as e: print(...
17.212766
130
0.630408
795dbf33d8d47d52828342d572fbaa253ddc5d39
33,622
py
Python
test/test_restful.py
ashcrow/keylime
7fc63fdaef67a09a79ff37e82b0de9e601c483f0
[ "Apache-2.0" ]
null
null
null
test/test_restful.py
ashcrow/keylime
7fc63fdaef67a09a79ff37e82b0de9e601c483f0
[ "Apache-2.0" ]
null
null
null
test/test_restful.py
ashcrow/keylime
7fc63fdaef67a09a79ff37e82b0de9e601c483f0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 ''' SPDX-License-Identifier: Apache-2.0 Copyright 2017 Massachusetts Institute of Technology. ''' """ NOTE: This unittest is being used as a procedural test. The tests must be run in-order and CANNOT be parallelized! Tests all but two RESTful interfaces: * agent's POST /v2/keys/vkey - ...
40.459687
188
0.643567
795dbf40d26b09d0dfe975f2c910f3f5407d3a0f
1,164
py
Python
extensions/cauchy/tuning_setup.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
513
2021-11-03T23:08:23.000Z
2022-03-31T16:29:18.000Z
extensions/cauchy/tuning_setup.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
30
2021-09-30T07:53:38.000Z
2022-03-22T01:13:42.000Z
extensions/cauchy/tuning_setup.py
MikeOwino/state-spaces
b6672bca994b6a36347f414faa59761e42b1e2b1
[ "Apache-2.0" ]
49
2021-10-29T22:47:20.000Z
2022-03-30T15:24:56.000Z
import os from setuptools import setup from pathlib import Path import torch.cuda from torch.utils.cpp_extension import CppExtension, CUDAExtension, BuildExtension from torch.utils.cpp_extension import CUDA_HOME extensions_dir = Path(os.getenv('TUNING_SOURCE_DIR')).absolute() assert extensions_dir.exists() source_fi...
31.459459
81
0.670103
795dc009706a713234d98ee9f6b4898a2f64fac4
1,539
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph_create_update_parameters.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph_create_update_parameters.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/gremlin_graph_create_update_parameters.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
37.536585
83
0.626381
795dc0405ddda2ae08fc839ff4f0bc6a31fc5f16
148,534
py
Python
src/config/api-server/vnc_cfg_api_server/db_manage.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/db_manage.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/db_manage.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import argparse from builtins import filter from builtins import object from builtins import str from collections import defaultdict import copy from functools import wraps import inspect from six import StringIO import itertools import loggi...
43.216177
103
0.554647
795dc247cabd86d955b0f3f06d344b73c1c87d79
2,091
py
Python
keystoneclient/v3/services.py
pyarnold/python-keystoneclient
16ca30673773ff4e30c4165e7b355cedc65c789b
[ "Apache-1.1" ]
1
2020-12-18T01:07:30.000Z
2020-12-18T01:07:30.000Z
keystoneclient/v3/services.py
pyarnold/python-keystoneclient
16ca30673773ff4e30c4165e7b355cedc65c789b
[ "Apache-1.1" ]
null
null
null
keystoneclient/v3/services.py
pyarnold/python-keystoneclient
16ca30673773ff4e30c4165e7b355cedc65c789b
[ "Apache-1.1" ]
null
null
null
# Copyright 2011 OpenStack Foundation # Copyright 2011 Nebula, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/...
32.671875
78
0.665232
795dc2aabf29334607ca784351cbd471cd9e4beb
2,359
py
Python
api.py
damianrusinek/eth-messenger-py
08f066e9836af9ec28f37268e37ca2fdeeb082ae
[ "MIT" ]
2
2018-03-22T13:44:45.000Z
2020-11-20T19:59:23.000Z
api.py
damianrusinek/eth-messenger-py
08f066e9836af9ec28f37268e37ca2fdeeb082ae
[ "MIT" ]
null
null
null
api.py
damianrusinek/eth-messenger-py
08f066e9836af9ec28f37268e37ca2fdeeb082ae
[ "MIT" ]
1
2021-09-03T10:16:39.000Z
2021-09-03T10:16:39.000Z
import requests, json, re from requests.exceptions import RequestException class ApiException(Exception): pass class NoResultsException(ApiException): pass class EtherScanAPI: def __init__(self, testnet=False): self.API_URL = 'https://api.etherscan.io/api' if not testnet \ else 'ht...
39.316667
92
0.509538
795dc35f65739b440f668c7567569c2e7bb30770
4,436
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/beat_phase.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/beat_phase.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/beat_phase.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
import numpy import pylab import overlap #import scipy.signal def calc_pulse_trains(bpm, window, sr): period = int(round(60.0 * sr / bpm)) #pulse_trains = numpy.zeros( (period, length) ) num_offsets = period samples = len(window) #print "#\t%.2f\t%i" % (bpm, period) bp_mags = numpy.zeros( ...
29.771812
93
0.533589
795dc3a625dad5dafaa774bd2c1eaaaf796f17cc
1,907
py
Python
var/spack/repos/builtin/packages/giflib/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/giflib/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2022-02-28T11:30:18.000Z
2022-03-23T19:34:56.000Z
var/spack/repos/builtin/packages/giflib/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Giflib(MakefilePackage, SourceforgePackage): """The GIFLIB project maintains the giflib se...
35.314815
116
0.653907
795dc44d9cdecf8014b6dc74c53ac548173913a4
1,347
py
Python
tests/sanscript/roman_test.py
AdityaGarg1995/indic_transliteration
8075a848f386d198069c207cfe0fff1e1ae0f470
[ "MIT" ]
null
null
null
tests/sanscript/roman_test.py
AdityaGarg1995/indic_transliteration
8075a848f386d198069c207cfe0fff1e1ae0f470
[ "MIT" ]
null
null
null
tests/sanscript/roman_test.py
AdityaGarg1995/indic_transliteration
8075a848f386d198069c207cfe0fff1e1ae0f470
[ "MIT" ]
null
null
null
from indic_transliteration import sanscript def test_fix_lazy_anusvaara_itrans(): assert sanscript.SCHEMES[sanscript.ITRANS].fix_lazy_anusvaara("shaMkara") == "sha~Nkara" assert sanscript.SCHEMES[sanscript.ITRANS].fix_lazy_anusvaara("saMchara") == "sa~nchara" assert sanscript.SCHEMES[sanscript.ITRANS].fix...
61.227273
94
0.768374
795dc45a9dc630c83f859ff78115f4f5961d4995
2,444
py
Python
main.py
MohMehrnia/FarsiDigitHandwrite
4128d5666e2cc0f35e7b0e1f7766c43f29ff7ca3
[ "MIT" ]
1
2020-05-08T13:10:26.000Z
2020-05-08T13:10:26.000Z
main.py
MohMehrnia/FarsiDigitHandwrite
4128d5666e2cc0f35e7b0e1f7766c43f29ff7ca3
[ "MIT" ]
2
2019-02-17T02:52:47.000Z
2020-04-25T20:14:37.000Z
main.py
MohMehrnia/FarsiDigitHandwrite
4128d5666e2cc0f35e7b0e1f7766c43f29ff7ca3
[ "MIT" ]
1
2019-06-01T21:31:30.000Z
2019-06-01T21:31:30.000Z
from __future__ import print_function from matplotlib import pyplot as plt from HodaDatasetReader import read_hoda_cdb, read_hoda_dataset from keras.datasets import mnist from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.optimizers import Adam from keras.utils impor...
32.157895
129
0.634206
795dc4e31b6c5520fc6fc1cd759844b0242c0677
12,944
py
Python
angrmanagement/plugins/seed_table/seed_table_plugin.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
474
2015-08-10T17:47:15.000Z
2022-03-31T21:10:55.000Z
angrmanagement/plugins/seed_table/seed_table_plugin.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
355
2015-08-17T09:35:53.000Z
2022-03-31T21:29:52.000Z
angrmanagement/plugins/seed_table/seed_table_plugin.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
95
2015-08-11T14:36:12.000Z
2022-03-31T23:01:01.000Z
import time from PySide2.QtCore import Qt, QAbstractTableModel, QModelIndex, QEvent, Signal, QObject from PySide2.QtGui import QCursor from PySide2.QtWidgets import ( QVBoxLayout, QMainWindow, QTableView, QAbstractItemView, QHeaderView, QWidget, QHBoxLayout, QComboBox, QLabel, Q...
37.627907
111
0.63937
795dc4f4e44256027478b302295d457609c3c030
1,993
py
Python
examples/web_framework/test.py
rch/pyke-1.1.1
e399b06f0c655eb6baafebaed09b4eb8f9c44b82
[ "MIT" ]
5
2021-05-30T19:15:21.000Z
2022-02-09T20:13:17.000Z
examples/web_framework/test.py
rch/pyke-1.1.1
e399b06f0c655eb6baafebaed09b4eb8f9c44b82
[ "MIT" ]
1
2021-05-30T16:38:09.000Z
2021-05-30T16:38:09.000Z
examples/web_framework/test.py
rch/pyke-1.1.1
e399b06f0c655eb6baafebaed09b4eb8f9c44b82
[ "MIT" ]
2
2020-06-25T21:33:34.000Z
2020-06-26T14:45:43.000Z
# $Id: test.py c5bb15998025 2010-03-03 dangyogi $ # coding=utf-8 # # Copyright © 2008 Bruce Frederiksen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including withou...
39.078431
79
0.728048
795dc606f95321dff2c2e59b73b31a92a58cca8f
2,760
py
Python
graphistry/tests/test_tigergraph.py
sevickson/pygraphistry
92795589966a423c9bc8d2c08f5e5f60b713fc55
[ "BSD-3-Clause" ]
1
2021-11-30T16:52:32.000Z
2021-11-30T16:52:32.000Z
graphistry/tests/test_tigergraph.py
LinguList/pygraphistry
51c87200ff7448f47e03f0f7b626d334e94a2fa7
[ "BSD-3-Clause" ]
null
null
null
graphistry/tests/test_tigergraph.py
LinguList/pygraphistry
51c87200ff7448f47e03f0f7b626d334e94a2fa7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import graphistry from mock import patch from common import NoAuthTestCase class TestTiger(NoAuthTestCase): def test_tg_init_plain(self): tg = graphistry.tigergraph() self.assertTrue(type(tg) == graphistry.plotter.Plotter) def test_tg_init_many(self): ...
30.32967
91
0.503261
795dc61b58d7c037a5e9ddbd772cfc91c6227d0a
3,786
py
Python
train_svm.py
alexandrepires5/3DPerception
d9df7051a2b480d1132ccadca1def4b4eabd7c51
[ "MIT" ]
null
null
null
train_svm.py
alexandrepires5/3DPerception
d9df7051a2b480d1132ccadca1def4b4eabd7c51
[ "MIT" ]
null
null
null
train_svm.py
alexandrepires5/3DPerception
d9df7051a2b480d1132ccadca1def4b4eabd7c51
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pickle import itertools import numpy as np import matplotlib.pyplot as plt from sklearn import svm from sklearn.preprocessing import LabelEncoder, StandardScaler from sklearn import cross_validation from sklearn import metrics def plot_confusion_matrix(cm, classes, ...
32.358974
89
0.615954
795dc8b20d39bafe1df9e3df6ff331b5dd6c9b1a
3,306
py
Python
sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-04T18:12:16.000Z
2019-06-04T18:12:16.000Z
sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
import time import os from azure.keyvault.keys import KeyClient from azure.identity import DefaultAzureCredential from azure.core.exceptions import HttpResponseError # ---------------------------------------------------------------------------------------------------------- # Prerequistes - # # 1. An Azure Key Vault- ...
41.325
132
0.619782
795dcaec9bcdab7deb0be790b01f429b77d292be
3,007
py
Python
scripts/validate_cbs_data.py
ShacharOch/anyway
dd62eeec19d478aca78bf9eb151110a26690495d
[ "BSD-3-Clause" ]
null
null
null
scripts/validate_cbs_data.py
ShacharOch/anyway
dd62eeec19d478aca78bf9eb151110a26690495d
[ "BSD-3-Clause" ]
null
null
null
scripts/validate_cbs_data.py
ShacharOch/anyway
dd62eeec19d478aca78bf9eb151110a26690495d
[ "BSD-3-Clause" ]
null
null
null
import os import argparse CBS_FILES_ENDINGS = ['AccAverages.xls', 'AccAverages.pdf', 'AccData.csv', 'AccCodebook.pdf', 'AccCodebook.xls', 'DicStreets.csv', 'Dictionary.csv', 'Inte...
43.57971
138
0.613236
795dcbfd41f8098efb2e2954d8f83f804d883d49
7,170
py
Python
trimesh/resolvers.py
hawkaa/trimesh
f4c152208dd197443162f1e2ddf8fbd226bdafb1
[ "MIT" ]
2
2021-09-30T06:23:33.000Z
2022-03-09T09:59:12.000Z
trimesh/resolvers.py
hawkaa/trimesh
f4c152208dd197443162f1e2ddf8fbd226bdafb1
[ "MIT" ]
1
2020-11-20T20:16:38.000Z
2020-11-20T20:16:38.000Z
trimesh/resolvers.py
hawkaa/trimesh
f4c152208dd197443162f1e2ddf8fbd226bdafb1
[ "MIT" ]
1
2020-11-17T11:28:48.000Z
2020-11-17T11:28:48.000Z
""" resolvers.py --------------- Provides a common interface to load assets referenced by name like MTL files, texture images, etc. Assets can be from ZIP archives, web assets, or a local file path. """ import os import itertools from . import util # URL parsing for remote resources via WebResolver try: # Pytho...
25.791367
74
0.53682
795dcc2c34b07d980efd301a4aad851fabe00fc3
12,310
py
Python
CSCI381_Homework3/KernelSVM.py
Shashi717/MachineLearningProjects
447d1fb160dc1ceb1530933049c8d696a28b2b71
[ "MIT" ]
null
null
null
CSCI381_Homework3/KernelSVM.py
Shashi717/MachineLearningProjects
447d1fb160dc1ceb1530933049c8d696a28b2b71
[ "MIT" ]
null
null
null
CSCI381_Homework3/KernelSVM.py
Shashi717/MachineLearningProjects
447d1fb160dc1ceb1530933049c8d696a28b2b71
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import cvxopt as cpt import time from matplotlib.colors import ListedColormap from sklearn import linear_model, datasets from sklearn.model_selection import train_test_split from sklearn import preprocessing # acquire data, s...
34.774011
145
0.633956
795dcd29e9f1f33f81afea891dafe21c08320101
1,141
py
Python
pytest_notifier/notifier.py
ratson/pytest-notifier
c3991e6396f8e1ae457a56a4bad134a9b3b4e8fd
[ "MIT" ]
15
2016-05-04T13:45:18.000Z
2022-02-23T07:28:11.000Z
pytest_notifier/notifier.py
ratson/pytest-notifier
c3991e6396f8e1ae457a56a4bad134a9b3b4e8fd
[ "MIT" ]
9
2016-06-15T16:42:06.000Z
2020-06-12T13:02:17.000Z
pytest_notifier/notifier.py
ratson/pytest-notifier
c3991e6396f8e1ae457a56a4bad134a9b3b4e8fd
[ "MIT" ]
9
2016-06-13T19:00:01.000Z
2020-12-29T18:20:59.000Z
import sys import subprocess def notify_via_libnotify(title, body, icon=None): args = ['notify-send', title, body] subprocess.check_call(args) def notify_via_terminal_notifier(title, body, icon=None): args = ['terminal-notifier', '-title', title, '-message', body] if icon: args.extend(['-app...
26.534884
67
0.591586
795dcda6125b4b99a0b842702863120e82d60948
16,111
py
Python
python_modules/dagster-graphql/dagster_graphql/schema/instigation.py
fortisoft/dagster-1
eff26c4288ebf074359c89bcf0fa57068e45a852
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/schema/instigation.py
fortisoft/dagster-1
eff26c4288ebf074359c89bcf0fa57068e45a852
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/schema/instigation.py
fortisoft/dagster-1
eff26c4288ebf074359c89bcf0fa57068e45a852
[ "Apache-2.0" ]
null
null
null
import sys import warnings import graphene import pendulum import yaml from dagster import check from dagster.core.definitions.schedule_definition import ScheduleExecutionData from dagster.core.definitions.sensor_definition import RunRequest from dagster.core.scheduler.instigation import ( InstigatorState, In...
35.33114
100
0.690212
795dcfa65a3fec1fc322399d9636dbce05e2444b
19,490
py
Python
util/dvsim/Modes.py
snpsverif/opentitan
655185835aec1cb3f1e403739eaa276245360a07
[ "Apache-2.0" ]
1
2021-12-10T17:05:45.000Z
2021-12-10T17:05:45.000Z
util/dvsim/Modes.py
snpsverif/opentitan
655185835aec1cb3f1e403739eaa276245360a07
[ "Apache-2.0" ]
null
null
null
util/dvsim/Modes.py
snpsverif/opentitan
655185835aec1cb3f1e403739eaa276245360a07
[ "Apache-2.0" ]
1
2021-03-25T15:48:48.000Z
2021-03-25T15:48:48.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r""" Classes """ import logging as log import pprint import re import sys import hjson from .utils import * class Modes(): """ Abstraction for specifying collec...
35.565693
95
0.557209
795dcff8a6194c47c5825b6c14b13a003e722a32
688
py
Python
tests/unit/test_network.py
kpn/pyrandall
ece91d3cae901c1913451c3c8996a7ce9f6f58af
[ "Apache-2.0" ]
2
2019-09-26T13:45:35.000Z
2019-09-27T08:03:43.000Z
tests/unit/test_network.py
kpn/pyrandall
ece91d3cae901c1913451c3c8996a7ce9f6f58af
[ "Apache-2.0" ]
7
2019-09-25T09:00:36.000Z
2020-06-29T06:58:11.000Z
tests/unit/test_network.py
kpn/pyrandall
ece91d3cae901c1913451c3c8996a7ce9f6f58af
[ "Apache-2.0" ]
2
2019-09-25T09:41:38.000Z
2020-02-17T11:49:37.000Z
from pyrandall.network import join_urlpath def test_urljoin_accepts_none(): url = "http://localhost.com/foo" result = join_urlpath(url, None) assert "http://localhost.com/foo" == result def test_urljoin_append_slash(): url = "http://localhost.com" result = join_urlpath(url, "/") assert "http...
26.461538
51
0.680233
795dd01e8c46d2cd1f23e3e5f917340d55f3a5cb
2,365
py
Python
apps/wfusers/models.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
apps/wfusers/models.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
11
2020-06-06T01:51:51.000Z
2022-02-10T14:31:21.000Z
apps/wfusers/models.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.db import models from django_mysql.models import JSONField from shortuuidfield import ShortUUIDField class WfUserManager(BaseUserManager): """用户模型管理类""" def _create_...
27.183908
101
0.664693
795dd100e90dec9e4eb7927812631223c2fc3e32
18,189
py
Python
ASE-experiments/L-infinity norm/MNIST/lp_nc.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
102
2018-05-10T05:46:47.000Z
2022-01-31T12:40:22.000Z
ASE-experiments/L-infinity norm/MNIST/lp_nc.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
19
2018-07-29T12:45:21.000Z
2022-03-16T13:09:00.000Z
ASE-experiments/L-infinity norm/MNIST/lp_nc.py
parthbhope/NC_Concolic_Testing
d2622ba3f7fd667b6534bda09d29f1c95c59799f
[ "BSD-3-Clause" ]
43
2018-05-02T15:09:20.000Z
2022-02-02T10:36:30.000Z
""" Neuron Cover of MNIST based on L-infinity Norm Author: Youcheng Sun Email: youcheng.sun@cs.ox.ac.uk """ import cplex import sys import numpy as np from utils import * epsilon = 1.0 / (255) def negate(model, activations, nc_layer, nc_index, im): var_names_vect = ['d'] objective = [1] lower_bounds =...
49.96978
120
0.408709
795dd1aac0f2a97223b31d394ee5d81c522dedc5
10,869
py
Python
libs/bot/bot_abroad.py
GrigorevGrigorii/BotAbroad
2d3ffa0e60f49dae03eb8773525d1130d004c011
[ "MIT" ]
null
null
null
libs/bot/bot_abroad.py
GrigorevGrigorii/BotAbroad
2d3ffa0e60f49dae03eb8773525d1130d004c011
[ "MIT" ]
13
2021-03-15T18:48:13.000Z
2022-01-03T15:05:13.000Z
libs/bot/bot_abroad.py
GrigorevGrigorii/BotAbroad
2d3ffa0e60f49dae03eb8773525d1130d004c011
[ "MIT" ]
1
2021-03-25T21:22:57.000Z
2021-03-25T21:22:57.000Z
import os import telegram import logging from libs.corona import corona_restrictions from libs.corona import exceptions as corona_exceptions from libs.secondary_functions.string import chunk_string from libs.constants import ( states as states_constants, commands as commands_constants, telegram as telegram...
52.254808
157
0.636213
795dd2ea23505b2995a02a0aa14b4d1af5eae489
3,096
py
Python
tests/p2p/test_p2p_api.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
1
2021-04-07T07:33:28.000Z
2021-04-07T07:33:28.000Z
tests/p2p/test_p2p_api.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
tests/p2p/test_p2p_api.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
import asyncio import pytest from p2p.disconnect import DisconnectReason from p2p.p2p_proto import Pong, Ping from p2p.p2p_api import DisconnectIfIdle, P2PAPI from p2p.tools.factories import ConnectionPairFactory @pytest.fixture async def alice_and_bob(): pair_factory = ConnectionPairFactory( alice_cli...
30.352941
92
0.718023
795dd2f2220171d65b48466f851ead2abe1ac163
929
py
Python
oscar/lib/python2.7/site-packages/phonenumber_field/formfields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumber_field/formfields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumber_field/formfields.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.exceptions import ValidationError from django.forms.fields import CharField from django.utils.translation import ugettext_lazy as _ from phonenumber_field.phonenumber import to_python from phonenumber_field.validators import va...
33.178571
76
0.719053
795dd2f81e1653589d6b98b605dd3327063c2c80
16,435
py
Python
causallib/estimation/tmle.py
liranszlak/causallib
2636149f6b1e307672aff638a53f8eaf2be56bc9
[ "Apache-2.0" ]
null
null
null
causallib/estimation/tmle.py
liranszlak/causallib
2636149f6b1e307672aff638a53f8eaf2be56bc9
[ "Apache-2.0" ]
null
null
null
causallib/estimation/tmle.py
liranszlak/causallib
2636149f6b1e307672aff638a53f8eaf2be56bc9
[ "Apache-2.0" ]
null
null
null
import abc import warnings from typing import Type import pandas as pd import numpy as np import statsmodels.api as sm from sklearn.preprocessing import MinMaxScaler, OneHotEncoder from sklearn.utils.multiclass import type_of_target from .doubly_robust import DoublyRobust as BaseDoublyRobust from causallib.estimation...
46.426554
120
0.675388
795dd315f11b58eca57775373be4f70fc8958fe0
11,504
py
Python
intersight/model/hyperflex_feature_limit_external_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/hyperflex_feature_limit_external_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/hyperflex_feature_limit_external_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
48.133891
1,678
0.64282
795dd3a03bd030ac59b81150960dc834c0983f11
1,022
py
Python
03-algorithms/02-optimization/codebase/gradient_descent/tests/02_test_linear_gd2.py
jameszhan/notes-ml
c633d04e5443eab71bc3b27fff89d57b89d1786c
[ "Apache-2.0" ]
null
null
null
03-algorithms/02-optimization/codebase/gradient_descent/tests/02_test_linear_gd2.py
jameszhan/notes-ml
c633d04e5443eab71bc3b27fff89d57b89d1786c
[ "Apache-2.0" ]
null
null
null
03-algorithms/02-optimization/codebase/gradient_descent/tests/02_test_linear_gd2.py
jameszhan/notes-ml
c633d04e5443eab71bc3b27fff89d57b89d1786c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import logging import unittest import numpy as np import matplotlib.pyplot as plt parent_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(parent_path) from linear_gd2 import linear_gd logger = logging.getLogger("unittestLogger") ...
24.926829
81
0.598826
795dd4724f25b124375ef42afb70b04bcb7f0ee0
525
py
Python
simulator/ui/url.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
2
2021-05-27T13:32:16.000Z
2022-03-30T01:23:34.000Z
simulator/ui/url.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
null
null
null
simulator/ui/url.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
null
null
null
from ui import UiFrame, Vect from battery import battery class UiUrl(UiFrame): def __init__(self, ofs, dim, url): super().__init__(ofs, dim) self.url = url def draw(self, ui, d): ui.canvas.hline(Vect(10, 0), ui.canvas.dim.x - 20) ui.connection.ifconfig ...
27.631579
86
0.550476
795dd491b91ed591a2aa26af940faf695ea35622
1,321
py
Python
venv/lib/python3.8/site-packages/vsts/notification/v4_0/models/subscription_channel_with_address.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/notification/v4_0/models/subscription_channel_with_address.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/notification/v4_0/models/subscription_channel_with_address.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
38.852941
95
0.518547
795dd520c6632a58711a6a0c929ff237d73d5b7c
4,983
py
Python
tests/unitary/LiquidityGaugeV2/test_set_rewards_deposit.py
jackvi810/mobi-dao-contracts
a8aad2a53aee64ecc17517b992f8574a42488b4c
[ "MIT" ]
2
2022-01-11T19:57:20.000Z
2022-01-14T15:47:08.000Z
tests/unitary/LiquidityGaugeV2/test_set_rewards_deposit.py
jackvi810/mobi-dao-contracts
a8aad2a53aee64ecc17517b992f8574a42488b4c
[ "MIT" ]
2
2021-12-16T14:52:57.000Z
2022-01-21T19:12:15.000Z
tests/unitary/LiquidityGaugeV2/test_set_rewards_deposit.py
jackvi810/mobi-dao-contracts
a8aad2a53aee64ecc17517b992f8574a42488b4c
[ "MIT" ]
6
2021-09-17T03:57:35.000Z
2022-01-09T05:13:01.000Z
import brownie import pytest from brownie import ZERO_ADDRESS from tests.conftest import approx REWARD = 10 ** 20 WEEK = 7 * 86400 LP_AMOUNT = 10 ** 18 @pytest.fixture(scope="module") def reward_contract_2(MobiusRewards, mock_lp_token, accounts, coin_a): contract = MobiusRewards.deploy(mock_lp_token, coin_a, {"...
38.627907
100
0.71182
795dd679c909558f9008c9e86c78c3ff46bfe6e3
116
py
Python
novosparc/analysis/__init__.py
mgmoshes/novosparc
dabd076692af104580bc80355cd95136a211e762
[ "BSD-3-Clause" ]
100
2019-02-04T21:54:51.000Z
2022-02-17T16:10:55.000Z
novosparc/analysis/__init__.py
mgmoshes/novosparc
dabd076692af104580bc80355cd95136a211e762
[ "BSD-3-Clause" ]
46
2019-07-04T12:41:26.000Z
2022-01-24T11:25:20.000Z
novosparc/analysis/__init__.py
mgmoshes/novosparc
dabd076692af104580bc80355cd95136a211e762
[ "BSD-3-Clause" ]
43
2019-03-25T18:11:16.000Z
2021-11-12T13:17:38.000Z
from ._analysis import get_moran_pvals, compute_random_coupling, get_cell_entropy, \ correlation_random_markers
38.666667
84
0.853448
795dd6ac87c2fc61f8049db74e31636c18d71388
388
py
Python
web/settings/asgi.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
web/settings/asgi.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
web/settings/asgi.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
""" ASGI config for web project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_...
22.823529
78
0.783505
795dd8b4e4c8f35f1cf1037e5aceea53246b4efe
10,426
py
Python
Server/src/virtualenv/Lib/encodings/iso8859_8.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/encodings/iso8859_8.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/encodings/iso8859_8.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
""" Python Character Mapping Codec iso8859_8 generated from 'MAPPINGS/ISO8859/8859-8.TXT' with gencodec.py. """ # " import codecs # ## Codec APIs class Codec(codecs.Codec): def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_table) def decode(self, input,...
33.416667
107
0.5446
795dd90286a2715bf59b68235fb30eadbe078ba4
6,109
py
Python
mriqc/utils/misc.py
kilimanjaro2/MRIQC_monkey
f70c410d7459d4970351949e10443725187c0df2
[ "BSD-3-Clause" ]
1
2021-12-16T10:34:46.000Z
2021-12-16T10:34:46.000Z
mriqc/utils/misc.py
kilimanjaro2/MRIQC_monkey
f70c410d7459d4970351949e10443725187c0df2
[ "BSD-3-Clause" ]
null
null
null
mriqc/utils/misc.py
kilimanjaro2/MRIQC_monkey
f70c410d7459d4970351949e10443725187c0df2
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Helper functions """ from pathlib import Path from collections import OrderedDict import json import pandas as pd try: from collections.abc import MutableMapping except ImportError: from collec...
28.152074
88
0.604191
795dd9135f5c1e224fd95490fcd63ea794a6c35e
277,559
py
Python
nova/virt/libvirt/driver.py
berrange/nova
2dea6662cdf15558edd3f0bf33642e7c6e18cb5c
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/driver.py
berrange/nova
2dea6662cdf15558edd3f0bf33642e7c6e18cb5c
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/driver.py
berrange/nova
2dea6662cdf15558edd3f0bf33642e7c6e18cb5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2012 University Of Minho # (c) Copyright 2013 Hewlett-Pa...
43.525012
79
0.567479
795dd93098b2c21a02f26aca2b18022d24d90ec2
15,473
py
Python
search/pool.py
rodluger/exoaurora
0ec1c59c368ccbf0c9eb2450d52b7ec7897ce322
[ "MIT" ]
1
2021-01-18T04:23:34.000Z
2021-01-18T04:23:34.000Z
search/pool.py
rodluger/exoaurora
0ec1c59c368ccbf0c9eb2450d52b7ec7897ce322
[ "MIT" ]
null
null
null
search/pool.py
rodluger/exoaurora
0ec1c59c368ccbf0c9eb2450d52b7ec7897ce322
[ "MIT" ]
2
2021-01-18T04:23:38.000Z
2022-03-06T11:03:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' :py:mod:`pool.py` - Multiprocessing ----------------------------------- An implementation of three different types of pools: - An MPI pool borrowed from :py:mod:`emcee`. This pool passes Python objects back and forth to the workers and communicates once ...
29.585086
85
0.532541
795dd933a4787aa44cb0768374cfeb17f0d57d6a
1,433
py
Python
readout_scripts/vzlogger/read_itron_push_mongoDB.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
readout_scripts/vzlogger/read_itron_push_mongoDB.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
readout_scripts/vzlogger/read_itron_push_mongoDB.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
import pandas as pd import subprocess from pymongo import MongoClient import re # read the vzlogger def read_vzlogger(collection): # collection: collection to use to store the document # return: dictionary with time, OBIS identifiers 1.8.0, 2.8.0, and respective values # get current time time = pd.Timestamp.now()...
23.883333
85
0.673412
795dd93d5b995cd3c9666260bb56cbe5f29e6829
390
py
Python
Stacks_and_Queues/Poisonous_Plants.py
NikolayVaklinov10/Interview_Preparation_Kit
517c4c7e83a7bcc99a4f570dff6959b5229b1a29
[ "MIT" ]
null
null
null
Stacks_and_Queues/Poisonous_Plants.py
NikolayVaklinov10/Interview_Preparation_Kit
517c4c7e83a7bcc99a4f570dff6959b5229b1a29
[ "MIT" ]
null
null
null
Stacks_and_Queues/Poisonous_Plants.py
NikolayVaklinov10/Interview_Preparation_Kit
517c4c7e83a7bcc99a4f570dff6959b5229b1a29
[ "MIT" ]
null
null
null
import math def poisonousPlants(plants): stack = [] maxDays = -math.inf for plant in plants: days = 1 while stack and stack[-1][0] >= plant: _, d = stack.pop() days = max(days, d + 1) if not stack: days = 0 maxDays = max(maxDays, days...
11.470588
46
0.489744
795dd94a71f8c64bb334cca96430acc5f0ccae01
1,231
py
Python
homeassistant/components/automation/event.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/automation/event.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/automation/event.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
""" Offer event listening automation rules. For more details about this automation rule, please refer to the documentation at https://home-assistant.io/components/automation/#event-trigger """ import logging import voluptuous as vol from homeassistant.const import CONF_PLATFORM from homeassistant.helpers import conf...
28.627907
78
0.661251
795dda310a8b4564a3c88fd45f03da718c656033
28,839
py
Python
kubernetes/client/models/v1_container.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_container.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_container.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
41.198571
616
0.666909
795dda8af9c371457b6b3c84add924401505c136
12,711
py
Python
mitmproxy/io/compat.py
developeric/mitmproxy
c996f1ee74a367424b956a77c3e2c7bfc9c86da5
[ "MIT" ]
9
2021-12-19T13:47:10.000Z
2022-03-26T06:34:02.000Z
mitmproxy/io/compat.py
aresayu/mitmproxy
5a03098d23b7a2ad2ecfbbb33f6ac0bbd4692790
[ "MIT" ]
null
null
null
mitmproxy/io/compat.py
aresayu/mitmproxy
5a03098d23b7a2ad2ecfbbb33f6ac0bbd4692790
[ "MIT" ]
3
2021-12-20T08:21:47.000Z
2022-03-29T17:55:12.000Z
""" This module handles the import of mitmproxy flows generated by old versions. The flow file version is decoupled from the mitmproxy release cycle (since v3.0.0dev) and versioning. Every change or migration gets a new flow file version number, this prevents issues with developer builds and snapshots. """ import uuid...
32.592308
119
0.602549
795ddabba30a82471f0329a860eb8d47b4915f58
245
py
Python
poco/services/batch/similarity_calculation/amazon/format_item_similarities.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
null
null
null
poco/services/batch/similarity_calculation/amazon/format_item_similarities.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
7
2019-03-22T06:26:39.000Z
2021-06-10T19:36:06.000Z
poco/services/batch/similarity_calculation/amazon/format_item_similarities.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
1
2017-10-25T03:43:51.000Z
2017-10-25T03:43:51.000Z
def format_item_similarities(input_path, output_path): f = open(output_path, "w") for line in open(input_path, "r"): count, another_part = line.strip().split(" ") f.write("%s,%s\n" % (another_part, count)) f.close()
30.625
54
0.620408
795ddb982ac5e65cf4f1121a4f96ecf99fe8db55
7,143
py
Python
policy/DRL/trpo_utils/distribution/utils.py
Ratnesh-Rai/Pydial-Personalisation
3a149f511ee180507cd1bb1dd2c40100c14705ab
[ "Apache-2.0" ]
3
2019-04-28T03:53:33.000Z
2020-01-20T14:38:40.000Z
policy/DRL/trpo_utils/distribution/utils.py
lgessler/pydial
482aacd16870b84bcad70aa59aa67098b42efff5
[ "Apache-2.0" ]
null
null
null
policy/DRL/trpo_utils/distribution/utils.py
lgessler/pydial
482aacd16870b84bcad70aa59aa67098b42efff5
[ "Apache-2.0" ]
1
2021-12-20T08:08:32.000Z
2021-12-20T08:08:32.000Z
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2018 # Cambridge University Engineering Department Dialogue Systems Grou...
32.616438
89
0.594148
795ddc6d734042bd21468010392e37bf8a12669d
8,796
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_load_balancer_load_balancing_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_load_balancer_load_balancing_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_load_balancer_load_balancing_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
49.139665
216
0.676103