hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
a9d52c7d59b48e7af2cbc0c15f1ff68f74bd0dce
822
py
Python
var/spack/repos/builtin/packages/applewmproto/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin/packages/applewmproto/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-07-06T19:11:46.000Z
2018-07-06T19:12:28.000Z
var/spack/repos/builtin/packages/applewmproto/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.000Z
# Copyright 2013-2020 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 Applewmproto(AutotoolsPackage): """Apple Rootless Window Management Extension. This e...
35.73913
95
0.745742
f57dd2bb4e79d72f723566373022649256d6ffe9
16,140
py
Python
src/mission/task/land3.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1
2020-04-04T23:49:36.000Z
2020-04-04T23:49:36.000Z
src/mission/task/land3.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
src/mission/task/land3.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
import math from props import getNode from auracore import wgs84 import comms.events import control.route from mission.task.task import Task import mission.task.state d2r = math.pi / 180.0 r2d = 180.0 / math.pi ft2m = 0.3048 m2ft = 1.0 / ft2m class Land(Task): def __init__(self, config_node): Task.__ini...
45.083799
128
0.616419
d8f2fdf184cfd07bc36c7a0b195a31713dbdc78b
6,217
py
Python
backend/framework/qlf/dashboard/bokeh/plots/patch/main.py
desihub/qlf
a9c455f7aee41d7901c89ae90dd821c617340a86
[ "BSD-3-Clause" ]
8
2017-09-08T00:24:20.000Z
2019-02-03T07:31:03.000Z
backend/framework/qlf/dashboard/bokeh/plots/patch/main.py
desihub/qlf
a9c455f7aee41d7901c89ae90dd821c617340a86
[ "BSD-3-Clause" ]
77
2017-06-15T21:39:09.000Z
2019-07-13T19:41:27.000Z
backend/framework/qlf/dashboard/bokeh/plots/patch/main.py
desihub/qlf
a9c455f7aee41d7901c89ae90dd821c617340a86
[ "BSD-3-Clause" ]
5
2017-09-10T02:25:03.000Z
2019-02-06T20:55:59.000Z
import numpy as np from dashboard.bokeh.helper import get_palette from bokeh.models import LinearColorMapper, ColorBar from bokeh.models import HoverTool, PrintfTickFormatter, ColumnDataSource from bokeh.plotting import Figure class Patch: def set_amp(self, z_value): ''' Setup for AMP plots ''' ...
37.451807
105
0.501046
78c84a7b207e0e87c8530d290f3bd003acc64d10
7,311
py
Python
psana/psana/pyalgos/generic/NDArrGenerators.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/pyalgos/generic/NDArrGenerators.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/pyalgos/generic/NDArrGenerators.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
null
null
null
####!/usr/bin/env python #------------------------------ """ :py:class:`NDArrGenerators` wrapping methods for numpy random array generators ============================================================================== Usage:: import psana.pyalgos.generic.NDArrGenerators as ag # Methods nda = ag.random_...
33.847222
113
0.601696
2d7f7a59b0d8c655a735820e2460426182189884
1,201
py
Python
google/ads/googleads/v5/enums/types/device.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/enums/types/device.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/enums/types/device.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
26.688889
74
0.68776
dd7e8a7db29bb19cc02dca6e6591720e5e9efa77
2,159
py
Python
quants/execution.py
uberman4740/AlgoRepo
a0ef89f9ec2bb7de7d9377147f06013a682470e6
[ "Apache-2.0" ]
null
null
null
quants/execution.py
uberman4740/AlgoRepo
a0ef89f9ec2bb7de7d9377147f06013a682470e6
[ "Apache-2.0" ]
null
null
null
quants/execution.py
uberman4740/AlgoRepo
a0ef89f9ec2bb7de7d9377147f06013a682470e6
[ "Apache-2.0" ]
1
2021-05-09T12:11:48.000Z
2021-05-09T12:11:48.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # execution.py import datetime import queue from abc import ABCMeta, abstractmethod from event import FillEvent, OrderEvent class ExecutionHandler(object): """ The ExecutionHandler abstract class handles the interaction between a set of order objects generated...
29.175676
81
0.669291
e8e4a12f874fe5a16c65a2f4738a41fdd83193a1
241
py
Python
datalibs/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
datalibs/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
datalibs/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
""" Libraries of physical data used by the drivers """ from datalibs import phycon from datalibs import eleclvl from datalibs import sigmarad from datalibs import symm __all__ = [ 'phycon', 'eleclvl', 'sigmarad', 'symm' ]
15.0625
50
0.697095
b08934b47e05087c7801c6e06bd697c50a56dba5
9,912
py
Python
apps/organization/views.py
yingkun1/HYSFOnline
515f32d29c2d6ae674ad1bdfed556b25d0383ab7
[ "MIT" ]
null
null
null
apps/organization/views.py
yingkun1/HYSFOnline
515f32d29c2d6ae674ad1bdfed556b25d0383ab7
[ "MIT" ]
6
2020-06-06T00:47:07.000Z
2022-03-12T00:17:23.000Z
apps/organization/views.py
yingkun1/HYSFOnline
515f32d29c2d6ae674ad1bdfed556b25d0383ab7
[ "MIT" ]
null
null
null
# *_* coding:utf-8 *_* from django.shortcuts import render from django.views.generic import View from django.http import HttpResponse from django.db.models import Q from django.shortcuts import render_to_response from .models import CourseOrg, CityDict from pure_pagination import Paginator, EmptyPage, PageNotAnInteger ...
35.526882
169
0.579399
54916db67bd550a358d99ad4c3d486631707f62a
3,439
py
Python
.history/Missions_to_Mars/scrape_mars_20200808193729.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200808193729.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200808193729.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
2
2020-11-02T08:12:16.000Z
2021-05-17T21:45:42.000Z
# Dependencies from splinter import Browser from bs4 import BeautifulSoup import requests import urllib.parse import pymongo import pprint import pandas as pd import time # Initialize browser def init_browser(): executable_path = {"executable_path": "/usr/local/bin/chromedriver"} #executable_path = {'executable...
34.737374
119
0.638849
d948490bf779469b41685519336253fb29d6546b
7,699
py
Python
src/python/pysidecaster.py
AlvinKimbowa/cast
6d4ce41d8eadf5e3f40f4846b79f512d20872d7b
[ "BSD-3-Clause" ]
8
2021-02-05T00:52:03.000Z
2022-01-24T03:29:21.000Z
src/python/pysidecaster.py
AlvinKimbowa/cast
6d4ce41d8eadf5e3f40f4846b79f512d20872d7b
[ "BSD-3-Clause" ]
49
2020-12-03T11:31:00.000Z
2022-03-31T16:09:37.000Z
src/python/pysidecaster.py
AlvinKimbowa/cast
6d4ce41d8eadf5e3f40f4846b79f512d20872d7b
[ "BSD-3-Clause" ]
10
2021-03-26T01:15:33.000Z
2022-03-15T17:08:54.000Z
#!/usr/bin/env python import sys import os.path import pycast from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtCore import Qt, Slot, Signal # custom event for handling change in freeze state class FreezeEvent(QtCore.QEvent): def __init__(self, frozen): super().__init__(QtCore.QEvent.User) ...
33.9163
102
0.66658
120137dc967ab892398c6a656e0f18ccd4b218d8
10,812
py
Python
tests/system_tests_policy.py
Acidburn0zzz/qpid-dispatch
e494da0a957d3cbbb5daaa802dd13e73e0ca4774
[ "Apache-2.0" ]
1
2017-11-29T09:19:21.000Z
2017-11-29T09:19:21.000Z
tests/system_tests_policy.py
Acidburn0zzz/qpid-dispatch
e494da0a957d3cbbb5daaa802dd13e73e0ca4774
[ "Apache-2.0" ]
null
null
null
tests/system_tests_policy.py
Acidburn0zzz/qpid-dispatch
e494da0a957d3cbbb5daaa802dd13e73e0ca4774
[ "Apache-2.0" ]
null
null
null
# # 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...
35.333333
129
0.585368
3d9e7c7c33d277306f9da5a9704ab7a4b964986e
2,525
py
Python
tests/test_replay_buffer.py
magicly/stable-baselines
109e12a2045197b5befcea6e7b9c5dfcfa947e9f
[ "MIT" ]
null
null
null
tests/test_replay_buffer.py
magicly/stable-baselines
109e12a2045197b5befcea6e7b9c5dfcfa947e9f
[ "MIT" ]
null
null
null
tests/test_replay_buffer.py
magicly/stable-baselines
109e12a2045197b5befcea6e7b9c5dfcfa947e9f
[ "MIT" ]
null
null
null
import numpy as np from stable_baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer def test_extend_uniform(): nvals = 16 states = [np.random.rand(2, 2) for _ in range(nvals)] actions = [np.random.rand(2) for _ in range(nvals)] rewards = [np.random.rand() for _ in range(nvals)] ...
34.589041
86
0.613069
aa0b7903f091be82e8b97ce84aaa85bba6573203
28,982
py
Python
aea/crypto/cosmos.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
aea/crypto/cosmos.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
aea/crypto/cosmos.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI 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 ...
33.505202
100
0.582845
58bc8662bf5f64688be91abcd781de57a60f485b
4,559
py
Python
tests/console/commands/test_config.py
torstenrudolf/poetry
639d5e05773ed8b91b80ec03c2ee64f500534c10
[ "MIT" ]
null
null
null
tests/console/commands/test_config.py
torstenrudolf/poetry
639d5e05773ed8b91b80ec03c2ee64f500534c10
[ "MIT" ]
null
null
null
tests/console/commands/test_config.py
torstenrudolf/poetry
639d5e05773ed8b91b80ec03c2ee64f500534c10
[ "MIT" ]
1
2021-04-15T10:55:44.000Z
2021-04-15T10:55:44.000Z
import json import os import pytest from poetry.config.config_source import ConfigSource from poetry.core.pyproject import PyProjectException from poetry.factory import Factory from poetry.utils._compat import PY2 from poetry.utils._compat import WINDOWS @pytest.fixture() def tester(command_tester_factory): ret...
28.85443
87
0.721211
1a047fe3277d30fa9bf041ef7f517d012b2c7408
308
py
Python
helping_hands_site/helping_hands_app/create_user.py
sophiataskova/helping_hands
26850c399c70bccff2f548d2192e2bd0260c15c5
[ "MIT" ]
null
null
null
helping_hands_site/helping_hands_app/create_user.py
sophiataskova/helping_hands
26850c399c70bccff2f548d2192e2bd0260c15c5
[ "MIT" ]
null
null
null
helping_hands_site/helping_hands_app/create_user.py
sophiataskova/helping_hands
26850c399c70bccff2f548d2192e2bd0260c15c5
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.management import setup_environ from hepling_hands_site import settings setup_environ(settings) user = User.objects.create_user('paul', 'mccartney@thebeatles.com', 'paulpassword') user.last_name = 'Mccartney' user.save() print user.last_name
22
83
0.808442
51af3518e47b808505e88f0beb748569fc6e5be3
10,414
py
Python
detectron/lib/core/rpn_generator.py
Tangshitao/Omni-supervised-Focal-Distillation
3244dfa1a4d03e7311244687c1287b5ec26bd9ca
[ "MIT" ]
58
2019-01-03T02:20:41.000Z
2022-02-25T14:24:13.000Z
detectron/lib/core/rpn_generator.py
Tangshitao/Omni-supervised-Focal-Distillation
3244dfa1a4d03e7311244687c1287b5ec26bd9ca
[ "MIT" ]
6
2019-02-12T03:52:08.000Z
2020-12-17T02:40:37.000Z
detectron/lib/core/rpn_generator.py
Tangshitao/Omni-supervised-Focal-Distillation
3244dfa1a4d03e7311244687c1287b5ec26bd9ca
[ "MIT" ]
5
2019-01-03T06:46:04.000Z
2019-10-29T07:40:11.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
34.946309
80
0.653831
3f26a1a508d56641d284c8706f73e90d1feade35
4,472
py
Python
bls_datasets/qcew.py
mbkupfer/bls-datasets
8cfff7b242251ff87dd338807530c44e71f4bee4
[ "MIT" ]
2
2019-06-11T01:34:19.000Z
2020-05-06T08:08:01.000Z
bls_datasets/qcew.py
mbkupfer/bls-datasets
8cfff7b242251ff87dd338807530c44e71f4bee4
[ "MIT" ]
6
2018-10-09T16:17:07.000Z
2018-11-01T20:54:46.000Z
bls_datasets/qcew.py
mbkupfer/bls-datasets
8cfff7b242251ff87dd338807530c44e71f4bee4
[ "MIT" ]
null
null
null
import io import requests import pandas as pd def _get_area_url(**kwargs): '''Get url for QCEW data by area. Parameters ---------- year : string 'YYYY' qtr : string Use `a` for annual averages. area : string For all area codes and titles see: http://www.bls.gov...
28.851613
80
0.589222
d973d445e82d9419624b59209870b8b8e0ac3b11
5,673
py
Python
server/app/main.py
marcostolosa/phishcatch
d72b87074a49c036e53fa92695f1df8206f3a4f8
[ "Apache-2.0" ]
70
2021-02-03T16:36:15.000Z
2022-01-14T13:43:51.000Z
server/app/main.py
marcostolosa/phishcatch
d72b87074a49c036e53fa92695f1df8206f3a4f8
[ "Apache-2.0" ]
17
2021-03-08T18:40:12.000Z
2021-09-16T20:22:23.000Z
server/app/main.py
marcostolosa/phishcatch
d72b87074a49c036e53fa92695f1df8206f3a4f8
[ "Apache-2.0" ]
16
2021-02-19T08:48:36.000Z
2021-12-13T17:27:58.000Z
# Copyright 2020 Palantir Technologies # 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 wr...
38.591837
298
0.665962
0c89a2e14cb517fc404fafa9dca57f4411379e5f
7,298
py
Python
spacy/tests/pipeline/test_entity_linker.py
jaydeepborkar/spaCy
16aa092fb5cffb5ec7079951ea0c04cb96733b3e
[ "MIT" ]
null
null
null
spacy/tests/pipeline/test_entity_linker.py
jaydeepborkar/spaCy
16aa092fb5cffb5ec7079951ea0c04cb96733b3e
[ "MIT" ]
1
2021-08-16T13:39:17.000Z
2021-08-16T13:39:40.000Z
spacy/tests/pipeline/test_entity_linker.py
jaydeepborkar/spaCy
16aa092fb5cffb5ec7079951ea0c04cb96733b3e
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import pytest from spacy.kb import KnowledgeBase from spacy.lang.en import English from spacy.pipeline import EntityRuler from spacy.tokens import Span @pytest.fixture def nlp(): return English() def assert_almost_equal(a, b): delta = 0.0001 asse...
35.950739
105
0.67772
46cbb97ca0b6a196579ce8236ac40ebcc3a5cbd7
1,888
py
Python
ciw/network.py
drvinceknight/Ciw
869382ea700c9109ba0deca2b59410c61d07be88
[ "MIT" ]
null
null
null
ciw/network.py
drvinceknight/Ciw
869382ea700c9109ba0deca2b59410c61d07be88
[ "MIT" ]
null
null
null
ciw/network.py
drvinceknight/Ciw
869382ea700c9109ba0deca2b59410c61d07be88
[ "MIT" ]
null
null
null
class ServiceCentre(object): """ An information store for each service centre in the queueing network """ def __init__(self, number_of_servers, queueing_capacity, class_change_matrix=None, schedule=None, preempt=False):...
35.622642
101
0.644597
66c9ab257cdb5c5b2a580ddd4af96035fa9ae7b1
236
py
Python
ctera_gateway_openapi/api/token.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
ctera_gateway_openapi/api/token.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
ctera_gateway_openapi/api/token.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
from werkzeug.exceptions import Unauthorized from ctera_gateway_openapi.api import tokenizer def decode_token(token): try: return tokenizer.decode_token(token) except Exception as e: raise Unauthorized from e
21.454545
47
0.754237
ca4ff56b1fdd064585945a7489e8b3a687f66725
607
py
Python
g-code-testing/g_code_parsing/g_code_functionality_defs/smoothie/write_instrument_model_g_code_functionality_def.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
g-code-testing/g_code_parsing/g_code_functionality_defs/smoothie/write_instrument_model_g_code_functionality_def.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
g-code-testing/g_code_parsing/g_code_functionality_defs/smoothie/write_instrument_model_g_code_functionality_def.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
from typing import Dict from g_code_parsing.g_code_functionality_defs.g_code_functionality_def_base import ( GCodeFunctionalityDefBase, ) class WriteInstrumentModelGCodeFunctionalityDef(GCodeFunctionalityDefBase): SIDE_EXPANSION_DICT = {"L": "Left", "R": "Right"} @classmethod def _generate_command_ex...
31.947368
84
0.710049
2658572d1f11c2334d9aebc4ce49fa768b7c73de
7,189
py
Python
econsa/correlation.py
OpenSourceEconomics/econsa
bb591c1382c97f65d557513c5cfb3febff0e0821
[ "MIT" ]
3
2020-07-17T15:05:52.000Z
2020-10-23T06:21:13.000Z
econsa/correlation.py
OpenSourceEconomics/econsa
bb591c1382c97f65d557513c5cfb3febff0e0821
[ "MIT" ]
65
2020-05-14T13:36:12.000Z
2021-06-22T15:45:15.000Z
econsa/correlation.py
admdev8/econsa
522a3a3b6cf1c74c1fb07e71c65068a89386c26c
[ "MIT" ]
4
2020-07-15T13:51:52.000Z
2021-08-31T06:58:33.000Z
"""Map arbitrary correlation matrix to Gaussian. This module implements methods from two papers to map arbitrary correlation matrix into correlation matrix for Gaussian copulas. """ from functools import partial import chaospy as cp import numpy as np from statsmodels.stats.correlation_tools import corr_nearest def...
32.977064
93
0.645709
4e8283742fd7758836bd770d29fb96579b8d8d80
1,180
py
Python
Color_Reaching/src/imageconverter.py
Igloogloo/Robot_Learning_Enviornments
ad82e35404afaf6f23bb5275e897526266972949
[ "BSD-3-Clause" ]
null
null
null
Color_Reaching/src/imageconverter.py
Igloogloo/Robot_Learning_Enviornments
ad82e35404afaf6f23bb5275e897526266972949
[ "BSD-3-Clause" ]
null
null
null
Color_Reaching/src/imageconverter.py
Igloogloo/Robot_Learning_Enviornments
ad82e35404afaf6f23bb5275e897526266972949
[ "BSD-3-Clause" ]
2
2021-08-18T17:07:46.000Z
2021-09-03T22:05:06.000Z
#!/usr/bin/env python from __future__ import print_function import roslib import sys import rospy import cv2 from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_converter: def __init__(self): self.image_pub = rospy.Publisher("image_topic_2...
24.081633
91
0.705932
593f9288e0c6667be1a80aa34791570df28a16c3
1,666
py
Python
pre_commit_mirror_maker/languages.py
adithyabsk/pre-commit-mirror-maker
a61a2116e41033db9337163f22c69f477c15978e
[ "MIT" ]
15
2015-12-13T23:15:44.000Z
2021-12-21T11:19:38.000Z
pre_commit_mirror_maker/languages.py
adithyabsk/pre-commit-mirror-maker
a61a2116e41033db9337163f22c69f477c15978e
[ "MIT" ]
31
2015-11-02T21:48:55.000Z
2022-03-07T19:12:31.000Z
pre_commit_mirror_maker/languages.py
adithyabsk/pre-commit-mirror-maker
a61a2116e41033db9337163f22c69f477c15978e
[ "MIT" ]
14
2015-05-22T10:10:47.000Z
2022-03-07T19:35:06.000Z
import json import subprocess import urllib.request from typing import List from packaging import version def ruby_get_package_versions(package_name: str) -> List[str]: url = f'https://rubygems.org/api/v1/versions/{package_name}.json' resp = json.load(urllib.request.urlopen(url)) return list(reversed([ve...
29.75
75
0.722689
401173170ca85cff5ee72b826a23aedbea785e5e
105
py
Python
src/start.py
liguoyangisme/brid
336f2b3f0fb87caaecfd17c30b2f1e648cce5198
[ "Apache-2.0" ]
null
null
null
src/start.py
liguoyangisme/brid
336f2b3f0fb87caaecfd17c30b2f1e648cce5198
[ "Apache-2.0" ]
null
null
null
src/start.py
liguoyangisme/brid
336f2b3f0fb87caaecfd17c30b2f1e648cce5198
[ "Apache-2.0" ]
null
null
null
from scrapy.cmdline import execute if __name__ == "__main__": execute("scrapy crawl ctrip".split())
21
41
0.72381
5791452624412e583a3b855bd0a5536e86f7bac8
5,353
py
Python
global_directions/PlayInteractively.py
highintothesky/StyleCLIPVideo
cf4d5a438e47d56bb48650eb0028e23478f19910
[ "MIT" ]
null
null
null
global_directions/PlayInteractively.py
highintothesky/StyleCLIPVideo
cf4d5a438e47d56bb48650eb0028e23478f19910
[ "MIT" ]
null
null
null
global_directions/PlayInteractively.py
highintothesky/StyleCLIPVideo
cf4d5a438e47d56bb48650eb0028e23478f19910
[ "MIT" ]
null
null
null
from tkinter import Tk from PIL import Image, ImageTk from tkinter.filedialog import askopenfilename from GUI import View from Inference import StyleCLIP import argparse class PlayInteractively: # Controller """ followed Model View Controller Design Pattern controller, model, view """ def __ini...
29.574586
83
0.600037
daa9c9d0d78215786556c5a579f1ae47a0362cbd
172
py
Python
syphon/tests/archive/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
null
null
null
syphon/tests/archive/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
23
2018-01-06T17:59:58.000Z
2019-02-27T15:52:20.000Z
syphon/tests/archive/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
1
2019-02-20T17:17:40.000Z
2019-02-20T17:17:40.000Z
"""syphon.tests.archive.__init__.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """
24.571429
75
0.732558
22cd1b144fa55746329cd35d14fd82eb49a55ddd
202
py
Python
demo6/hashlibtest.py
tangb-biu/learnpy
0ac8b9e9daaab2836077e5f6bfb8bd081fee4bc2
[ "MIT" ]
null
null
null
demo6/hashlibtest.py
tangb-biu/learnpy
0ac8b9e9daaab2836077e5f6bfb8bd081fee4bc2
[ "MIT" ]
null
null
null
demo6/hashlibtest.py
tangb-biu/learnpy
0ac8b9e9daaab2836077e5f6bfb8bd081fee4bc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 ''' Created on 2017年5月10日 @author: 唐斌 ''' import hashlib md5 = hashlib.md5() md5.update('how to use md5 in python hashlib'.encode('utf-8')) print(md5.hexdigest())
14.428571
62
0.693069
07fee89c4be2de44c962d0738b01339439dcf2ea
399
py
Python
lib/pyfrc/config.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
lib/pyfrc/config.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
lib/pyfrc/config.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
# # Holds settings that can be checked # # Set to True if running in code coverage mode (only set when running tests) # -> Since pyfrc 2014.6.0 coverage_mode = False # Indicates how pyfrc was run: netsim/sim/upload, etc... # -> Since pyfrc 2014.6.0 mode = None # A dictionary of configuration information that is par...
22.166667
76
0.721805
d3bc4e2185fc8b95d9292c93e31e9e6340a7a1e8
556
py
Python
jp.atcoder/abc136/abc136_a/8452067.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc136/abc136_a/8452067.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc136/abc136_a/8452067.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-16 10:55:08(JST) import sys # import collections # import math # from string import ascii_lowercase, ascii_uppercase, digits # from bisect import bisect_left as bi_l, bisect_right as bi_r # import itertools # from functools import reduce # import operator as op # from scipy.misc import comb # float...
22.24
63
0.624101
54504fa275dc0a1ee880e9abb39b5c9e18f64aa5
5,835
py
Python
tensorflow_federated/python/core/impl/executors/sizing_executor.py
OpenMined/federated
4f001b0fa20109993c0f88392ab987ac6f29a304
[ "Apache-2.0" ]
5
2020-06-04T20:10:25.000Z
2020-07-22T02:15:38.000Z
tensorflow_federated/python/core/impl/executors/sizing_executor.py
OpenMined/federated
4f001b0fa20109993c0f88392ab987ac6f29a304
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/executors/sizing_executor.py
OpenMined/federated
4f001b0fa20109993c0f88392ab987ac6f29a304
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated 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 o...
35.579268
79
0.746015
dd8eb0a5ec57de686d2c34749685bab15b902d8b
2,495
py
Python
rater/models/graph/graphsage.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
25
2020-06-28T09:21:12.000Z
2022-03-25T10:25:17.000Z
rater/models/graph/graphsage.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
null
null
null
rater/models/graph/graphsage.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
5
2021-02-01T02:52:04.000Z
2022-02-07T09:07:12.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: Simple supervised GraphSAGE model @reference: https://github.com/williamleif/graphsage-simple GraphSage: Representation Learning on Large Graphs """ import torch import torch.nn as nn import torch.nn.functional as F from torch.nn i...
31.1875
99
0.611623
72e64a1d83c3d728c1a241962b109b3208e3da0f
1,993
py
Python
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
3
2016-05-08T23:45:29.000Z
2020-01-21T11:12:46.000Z
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
"""\ Copyright (c) 2009 Paul J. Davis <paul.joseph.davis@gmail.com> This file is part of hypercouch which is released uner the MIT license. """ import time import unittest import couchdb COUCHURI = "http://127.0.0.1:5984/" TESTDB = "hyper_tests" class MultiDesignTest(unittest.TestCase): def setUp(self): s...
32.145161
113
0.515805
202953f6bec69adb631bd79478ac6e6fbc058abc
19,923
py
Python
attack.py
2016312357/FL-shield
4722427b4517659764bac0b8469d3ad6b7aea4c1
[ "MIT" ]
null
null
null
attack.py
2016312357/FL-shield
4722427b4517659764bac0b8469d3ad6b7aea4c1
[ "MIT" ]
null
null
null
attack.py
2016312357/FL-shield
4722427b4517659764bac0b8469d3ad6b7aea4c1
[ "MIT" ]
null
null
null
from __future__ import print_function """ train attack model for ori examples """ import keras from keras.models import Model from keras.layers import Dense, Input, Dropout, Activation, Conv1D, Conv2D, Flatten import tensorflow as tf import numpy as np import os import random os.environ['TF_CPP_MIN_LOG...
51.882813
137
0.478844
78990494c3fd7d68dfd99ca5191b0bdf8e01ee49
3,268
py
Python
scripts/show_parse.py
bfoz/pegen
b397b789157a8ea4912d89c0b3835b698de53e87
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
scripts/show_parse.py
bfoz/pegen
b397b789157a8ea4912d89c0b3835b698de53e87
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
scripts/show_parse.py
bfoz/pegen
b397b789157a8ea4912d89c0b3835b698de53e87
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
#!/usr/bin/env python3.8 """Show the parse tree for a given program, nicely formatted. Example: $ scripts/show_parse.py a+b Module( body=[ Expr( value=BinOp( left=Name(id="a", ctx=Load()), op=Add(), right=Name(id="b", ctx=Load()) ) ) ], type_ignores...
27.694915
96
0.615055
862903d664838bc712b0dc55c42a0d425626e442
22,921
py
Python
DataGeneration.py
Orth-Research/ml_cr
a3046e58191289a83bc40a2793b4cb7039d74e18
[ "MIT" ]
3
2020-12-16T21:40:06.000Z
2021-11-01T16:08:56.000Z
DataGeneration.py
Orth-Research/ml_cr
a3046e58191289a83bc40a2793b4cb7039d74e18
[ "MIT" ]
null
null
null
DataGeneration.py
Orth-Research/ml_cr
a3046e58191289a83bc40a2793b4cb7039d74e18
[ "MIT" ]
1
2021-03-03T16:18:56.000Z
2021-03-03T16:18:56.000Z
from ast import parse import numpy as np import pandas as pd from scipy import linalg as LA from numpy.random import default_rng import ham_cr import os import argparse class training_data: """ Class generates and output training data: specific_heat(T), susceptibility(T) and magnetization(T, B) along specifie...
56.735149
299
0.615418
98b67492994edb176375d755fe0886515652f4c4
14,880
py
Python
code_cva_2021-06-11.py
ColinVanAlstine/Misc-Cleanup-Scripts
c91f9a69e3613086136b6188644ef624f910e4dc
[ "MIT" ]
null
null
null
code_cva_2021-06-11.py
ColinVanAlstine/Misc-Cleanup-Scripts
c91f9a69e3613086136b6188644ef624f910e4dc
[ "MIT" ]
null
null
null
code_cva_2021-06-11.py
ColinVanAlstine/Misc-Cleanup-Scripts
c91f9a69e3613086136b6188644ef624f910e4dc
[ "MIT" ]
null
null
null
#2021-06-11, IST652, Project, Colin Van Alstine """ This program requires the following files to be located in a folder called C:\scripting_datasets: z00r.csv - bibliographic metadata z30.csv - item records z36.csv - current loans z36h.csv - historical loans z68.csv - order records z10...
51.84669
284
0.717137
e2ccffffb1cb3bf07b3b08dbce9dbd80afdb7515
1,974
py
Python
tests/an_bn_cn.py
marmeladema/Peggy
b74a92803dd0780f0ba01a592f793b1b781ae6e7
[ "MIT" ]
null
null
null
tests/an_bn_cn.py
marmeladema/Peggy
b74a92803dd0780f0ba01a592f793b1b781ae6e7
[ "MIT" ]
null
null
null
tests/an_bn_cn.py
marmeladema/Peggy
b74a92803dd0780f0ba01a592f793b1b781ae6e7
[ "MIT" ]
null
null
null
import os import json import peggy from . import util peg_path = os.path.join(os.path.dirname(__file__), 'grammars', 'an_bn_cn.peg') json_path = os.path.join( os.path.dirname(__file__), 'grammars', 'an_bn_cn.json' ) with open(json_path) as json_fd: grammar = json.load(json_fd) class TestAnBnCn(util.PeggyTestC...
26.675676
78
0.68997
95cbaf78a5f7339cdfdd66f54061d803ebce2271
1,877
py
Python
setup.py
pdfcrowd/sharedutils
89c8529619e34bd206673f94019968236618b6c5
[ "MIT" ]
null
null
null
setup.py
pdfcrowd/sharedutils
89c8529619e34bd206673f94019968236618b6c5
[ "MIT" ]
null
null
null
setup.py
pdfcrowd/sharedutils
89c8529619e34bd206673f94019968236618b6c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2009 pdfcrowd.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 in the Software without # restriction, including without limitation the rights to use, # copy, modif...
41.711111
67
0.683005
d7b00b54cfcc19878310c95a03eca4ee2604d41a
1,559
py
Python
examples/grid_search.py
apaleyes/differential-privacy-bayesian-optimization
252c389e2a36226383bfc5b931599a3bed2b6dda
[ "Apache-2.0" ]
23
2020-04-15T14:02:00.000Z
2022-03-10T23:17:32.000Z
examples/grid_search.py
apaleyes/differential-privacy-bayesian-optimization
252c389e2a36226383bfc5b931599a3bed2b6dda
[ "Apache-2.0" ]
2
2020-04-15T20:36:15.000Z
2020-09-28T14:42:45.000Z
examples/grid_search.py
apaleyes/differential-privacy-bayesian-optimization
252c389e2a36226383bfc5b931599a3bed2b6dda
[ "Apache-2.0" ]
18
2020-04-15T14:22:33.000Z
2022-02-16T06:48:34.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os from dpareto.models.adult.lr.dp_adam import DpAdultLrAdam from dpareto.grid_search.harness import GridSearchHarness def main(): # Hyperparameter ranges to cover with grid mesh points_per_para...
35.431818
164
0.70109
1d910c096fa0e4ce768018e460c8f2e67a750370
2,505
py
Python
docs/conf.py
darcamo/gpr_complex
72f0fa611464f8c926094d6c1212ab92e1c14f16
[ "MIT" ]
null
null
null
docs/conf.py
darcamo/gpr_complex
72f0fa611464f8c926094d6c1212ab92e1c14f16
[ "MIT" ]
null
null
null
docs/conf.py
darcamo/gpr_complex
72f0fa611464f8c926094d6c1212ab92e1c14f16
[ "MIT" ]
null
null
null
# 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...
37.38806
79
0.703393
00b098943a03243f8470eda76d7c06f45126eef0
9,826
py
Python
kiri_search/search/search.py
kiri-ai/kiri-search
78a0f78b11b73cca8934054498d5713773d3e93a
[ "Apache-2.0" ]
null
null
null
kiri_search/search/search.py
kiri-ai/kiri-search
78a0f78b11b73cca8934054498d5713773d3e93a
[ "Apache-2.0" ]
null
null
null
kiri_search/search/search.py
kiri-ai/kiri-search
78a0f78b11b73cca8934054498d5713773d3e93a
[ "Apache-2.0" ]
null
null
null
import time from .documents import Document, ElasticDocument, ChunkedDocument from elasticsearch import Elasticsearch, helpers from typing import Dict, List import shortuuid from ..utils import elastic_to_search_results, check_duplicate_documents, \ check_document_types, batch_items class SearchResult: """Bas...
32.216393
129
0.561368
7d1292287de337d56b5f5cc9eda93e4e1a46fe45
16,772
py
Python
nova/conductor/api.py
bopopescu/nova-17
2724155f4ac64aa0ef7dc25c1bf38d3c41f95b7b
[ "Apache-2.0" ]
null
null
null
nova/conductor/api.py
bopopescu/nova-17
2724155f4ac64aa0ef7dc25c1bf38d3c41f95b7b
[ "Apache-2.0" ]
null
null
null
nova/conductor/api.py
bopopescu/nova-17
2724155f4ac64aa0ef7dc25c1bf38d3c41f95b7b
[ "Apache-2.0" ]
1
2020-07-24T01:18:11.000Z
2020-07-24T01:18:11.000Z
# Copyright 2012 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/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
45.950685
79
0.621035
94eb4334c306f927dcfe87958fd717d04001142d
1,494
py
Python
Tests/test_in.py
SueDou/python
cd620439f7e3d4aa98ba363314f11c5cf69cb1d9
[ "Apache-2.0" ]
null
null
null
Tests/test_in.py
SueDou/python
cd620439f7e3d4aa98ba363314f11c5cf69cb1d9
[ "Apache-2.0" ]
null
null
null
Tests/test_in.py
SueDou/python
cd620439f7e3d4aa98ba363314f11c5cf69cb1d9
[ "Apache-2.0" ]
null
null
null
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of th...
29.88
96
0.578983
1c6c3dce142300bb6021261e6bb09ff990a5a8db
5,481
py
Python
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_08_01/aio/operations/_nodes_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_08_01/aio/operations/_nodes_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_08_01/aio/operations/_nodes_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.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.846154
207
0.660281
31c3646e6bfdc422b133f6b2a0e55dcf9e1d93ac
3,222
py
Python
webapp.py
AndreMiras/lbc-car-sorter
9f1539cfc56bcf4a35766ef8dbbb39763dfb9b1d
[ "MIT" ]
1
2017-03-13T23:35:43.000Z
2017-03-13T23:35:43.000Z
webapp.py
AndreMiras/lbc-car-sorter
9f1539cfc56bcf4a35766ef8dbbb39763dfb9b1d
[ "MIT" ]
null
null
null
webapp.py
AndreMiras/lbc-car-sorter
9f1539cfc56bcf4a35766ef8dbbb39763dfb9b1d
[ "MIT" ]
null
null
null
import os import json from subprocess import call from tempfile import NamedTemporaryFile from flask import Flask, request, render_template, url_for from flask_wtf import Form from wtforms import validators from wtforms.fields.html5 import URLField from flask_assets import Environment, Bundle app = Flask(__name__) a...
28.767857
71
0.611111
952d3d1bf9767beefe96e72588b207022996c967
1,558
py
Python
examples_websockets.py
lampshade9909/BinanceAPI
8080203573232ffbaf9cbeeefa63ddedce093222
[ "MIT" ]
3
2018-01-04T06:11:43.000Z
2018-04-10T13:06:51.000Z
examples_websockets.py
lampshade9909/BinanceAPI
8080203573232ffbaf9cbeeefa63ddedce093222
[ "MIT" ]
null
null
null
examples_websockets.py
lampshade9909/BinanceAPI
8080203573232ffbaf9cbeeefa63ddedce093222
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Joey Zacherl" __credits__ = ["Joey Zacherl", "https://pypi.python.org/pypi/websocket-client"] __license__ = "MIT" __version__ = "1.0.0" __description__ = "Binance API integration" __email__ = "Joey.Zacherl@gmail.com" import binance from loggingConfig import InitLogging, PrintAndLog...
28.327273
103
0.695764
e34bc223c807d3024a6c4b7e4c3a348793273abc
609
py
Python
photo/email.py
Mukantwarivirginie/Instagram
91cf561e696638ec0ef410cc6410b844cf9bc2e7
[ "MIT" ]
null
null
null
photo/email.py
Mukantwarivirginie/Instagram
91cf561e696638ec0ef410cc6410b844cf9bc2e7
[ "MIT" ]
null
null
null
photo/email.py
Mukantwarivirginie/Instagram
91cf561e696638ec0ef410cc6410b844cf9bc2e7
[ "MIT" ]
null
null
null
from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string def send_welcome_email(name,receiver): # Creating message subject and sender subject = 'Welcome to the Instagram PhotoLetter' sender = 'james@moringaschool.com' #passing in the context vairables ...
40.6
75
0.763547
4f942951f6b6d4b4990ccbe911a4f2e5dcb75bf0
7,726
py
Python
proof_of_concept_example/ode_demo_wind.py
whoiszyc/torchdiffeq
eb87a92beff6f5bb7c03e75cf1ba2e10ceef9063
[ "MIT" ]
null
null
null
proof_of_concept_example/ode_demo_wind.py
whoiszyc/torchdiffeq
eb87a92beff6f5bb7c03e75cf1ba2e10ceef9063
[ "MIT" ]
null
null
null
proof_of_concept_example/ode_demo_wind.py
whoiszyc/torchdiffeq
eb87a92beff6f5bb7c03e75cf1ba2e10ceef9063
[ "MIT" ]
null
null
null
import os import argparse import time import numpy as np import pandas as pd import torch import torch.nn as nn import torch.optim as optim import time parser = argparse.ArgumentParser('ODE demo') parser.add_argument('--method', type=str, choices=['dopri5', 'adams'], default='dopri5') parser.add_argument('--data_size'...
33.591304
147
0.569764
ec13d89734193f047d426d8b61f1d150c5c697cd
4,416
py
Python
loadcounter.py
CoreyBurger/bikecounter
b605b167aafceffced3c03477917fc9b5537e844
[ "MIT" ]
1
2021-11-04T16:20:20.000Z
2021-11-04T16:20:20.000Z
loadcounter.py
CoreyBurger/bikecounter
b605b167aafceffced3c03477917fc9b5537e844
[ "MIT" ]
null
null
null
loadcounter.py
CoreyBurger/bikecounter
b605b167aafceffced3c03477917fc9b5537e844
[ "MIT" ]
null
null
null
#! /usr/bin/python import csv from datetime import datetime,date, timedelta import json import urllib.request import os import pandas #define constants workingDir = os.getcwd() #urlBase = "http://www.eco-public.com/api/cw6Xk4jW4X4R/data/periode/" urlBase = "https://www.eco-visio.net/api/aladdin/1.0.0/pbl/publicwebpag...
37.74359
124
0.598279
01ba34fd37683e3cac3efc4e9df67986a62fc56c
2,595
py
Python
cscs-checks/mch/gpu_direct_acc.py
InternetUnexplorer/reframe
c5f59fa5aacc731b05874c43b322c651b8e4fe0e
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/mch/gpu_direct_acc.py
InternetUnexplorer/reframe
c5f59fa5aacc731b05874c43b322c651b8e4fe0e
[ "BSD-3-Clause" ]
1
2022-03-01T00:04:37.000Z
2022-03-01T00:04:37.000Z
cscs-checks/mch/gpu_direct_acc.py
casparvl/reframe
39c42bb4650dc6b8651ee9e7c909b387395f0fe3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import reframe as rfm import reframe.utility.osext as osext import reframe.utility.sanity as sn @rfm.simple_test class GpuDi...
38.161765
76
0.591522
bcbc87cb3edef82290dd80c9968a0ab089386f04
2,051
py
Python
Day_10/task10.py
irt21/AoC2020
292c6c7723f621a1b6a735e10dfa4bd605e68727
[ "MIT" ]
null
null
null
Day_10/task10.py
irt21/AoC2020
292c6c7723f621a1b6a735e10dfa4bd605e68727
[ "MIT" ]
null
null
null
Day_10/task10.py
irt21/AoC2020
292c6c7723f621a1b6a735e10dfa4bd605e68727
[ "MIT" ]
null
null
null
import numpy as np def valid_connection(j1, j2): diff = j2 - j1 if 0 < diff <= 3: return True return False def extend_chain(chain, avail, candidates): if len(candidates) == 1: return candidates for a_idx in range(len(avail)): if valid_connection(chain[-1], avail[a_idx]): ...
28.887324
91
0.629449
a5a9d3f2fd7f79e1d4e38e248704c80802f5a908
7,105
py
Python
crawlino/mini_lang.py
BBVA/crawlino
685f57e6b3e9356484ead2681bb178f651d2f371
[ "Apache-2.0" ]
1
2018-11-11T21:07:54.000Z
2018-11-11T21:07:54.000Z
crawlino/mini_lang.py
BBVA/crawlino
685f57e6b3e9356484ead2681bb178f651d2f371
[ "Apache-2.0" ]
null
null
null
crawlino/mini_lang.py
BBVA/crawlino
685f57e6b3e9356484ead2681bb178f651d2f371
[ "Apache-2.0" ]
null
null
null
import re import os.path as op from typing import Callable, List, Tuple, Any import os from crawlino.helpers import find_file from crawlino.exceptions import CrawlinoNotFoundError, CrawlinoValueError # # def import_action(source_file_name: str, *config_files): # # for l in config_files: # # # Try to res...
27.432432
77
0.493033
fc29602534b86fefd4efa6e7e14bf61c8bd4aedd
11,168
py
Python
config/settings/base.py
onyedikachi-david/dlcf_anonymous_request
73ae2288794f97e16c288f0fd9382a46f52b584d
[ "MIT" ]
null
null
null
config/settings/base.py
onyedikachi-david/dlcf_anonymous_request
73ae2288794f97e16c288f0fd9382a46f52b584d
[ "MIT" ]
null
null
null
config/settings/base.py
onyedikachi-david/dlcf_anonymous_request
73ae2288794f97e16c288f0fd9382a46f52b584d
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent # dlcf_anonymous_request/ APPS_DIR = ROOT_DIR / "dlcf_anonymous_request" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", d...
40.463768
93
0.636014
2125d0977db757a539a47193c78d67a210deb1eb
14,209
py
Python
cfn_policy_validator/tests/validation_tests/__init__.py
awslabs/aws-cloudformation-iam-policy-validator
52c1439e4d76d2c7d45c97563cc87f8458134e0b
[ "MIT-0" ]
41
2021-09-30T01:28:51.000Z
2022-03-24T09:42:09.000Z
cfn_policy_validator/tests/validation_tests/__init__.py
awslabs/aws-cloudformation-iam-policy-validator
52c1439e4d76d2c7d45c97563cc87f8458134e0b
[ "MIT-0" ]
10
2021-09-30T08:13:11.000Z
2022-03-22T07:34:41.000Z
cfn_policy_validator/tests/validation_tests/__init__.py
awslabs/aws-cloudformation-iam-policy-validator
52c1439e4d76d2c7d45c97563cc87f8458134e0b
[ "MIT-0" ]
3
2021-11-29T21:13:30.000Z
2022-02-04T12:49:40.000Z
import boto3 import uuid from datetime import datetime from unittest.mock import ANY from cfn_policy_validator.tests import account_config from cfn_policy_validator.tests.boto_mocks import mock_test_setup, BotoResponse, BotoClientError, get_test_mode, \ TEST_MODE analyzer_arn = 'arn:aws:access-analyzer:us-east-1:111...
30.040169
118
0.771272
df0ddfddd50943dab9c0c67538900e70da0a8687
63,981
py
Python
holoviews/plotting/bokeh/callbacks.py
cool-RR/holoviews
0693a07f2af1095bca84be9c9a8a2503d1ded9ab
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/bokeh/callbacks.py
cool-RR/holoviews
0693a07f2af1095bca84be9c9a8a2503d1ded9ab
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/bokeh/callbacks.py
cool-RR/holoviews
0693a07f2af1095bca84be9c9a8a2503d1ded9ab
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, unicode_literals import time from collections import defaultdict from functools import partial import numpy as np import panel as pn import param from bokeh.models import ( CustomJS, FactorRange, DatetimeAxis, ToolbarBox, Range1d, DataRange1d, PolyDrawTool, ...
34.621753
108
0.574889
499db89b24bf1cde7dda30441911448cd2669782
1,153
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Python-Brain-Teasers/wordPattern.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Python-Brain-Teasers/wordPattern.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/course-work/Python-Brain-Teasers/wordPattern.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Given a pattern and a string a, find if a follows the same pattern. # Here, to "follow" means a full match, such that there is a one-to-one correspondence between a letter in pattern and a non-empty word in a. # Example 1: # Input: # pattern = "abba" # a = "lambda school school lambda" # Output: true # Example 2:...
23.06
141
0.629662
492079221228233d4f7bc8c17d504314a6cb2a45
1,619
py
Python
xbox/nano/scripts/client.py
arix-dev/xbox-smartglass-nano-python
5377dc35d98cfba8748f405db9f19e851a6bbe68
[ "MIT" ]
100
2018-10-08T06:57:24.000Z
2022-02-24T18:16:25.000Z
xbox/nano/scripts/client.py
Meganium97/xbox-smartglass-nano-python
3066503e90234aa339a666b83f7277efd4ee838b
[ "MIT" ]
25
2018-09-30T00:45:43.000Z
2021-10-19T12:17:48.000Z
xbox/nano/scripts/client.py
Meganium97/xbox-smartglass-nano-python
3066503e90234aa339a666b83f7277efd4ee838b
[ "MIT" ]
38
2018-10-01T21:11:54.000Z
2022-03-28T00:55:59.000Z
import sys import logging import argparse import asyncio from xbox.webapi.authentication.manager import AuthenticationManager from xbox.sg.console import Console from xbox.sg.enum import ConnectionState from xbox.nano.manager import NanoManager from xbox.nano.render.client import SDLClient def on_gamestream_error(...
25.296875
80
0.666461
0f2ba89113366c14420bb4d93219c8969ff9d7f9
716
py
Python
hooks/pre_gen_project.py
wiredobjects/cookiecutter-ansible-role
8546bc99cbff6ab7bfb5a1395212f72f725b6ac9
[ "Apache-2.0" ]
null
null
null
hooks/pre_gen_project.py
wiredobjects/cookiecutter-ansible-role
8546bc99cbff6ab7bfb5a1395212f72f725b6ac9
[ "Apache-2.0" ]
null
null
null
hooks/pre_gen_project.py
wiredobjects/cookiecutter-ansible-role
8546bc99cbff6ab7bfb5a1395212f72f725b6ac9
[ "Apache-2.0" ]
null
null
null
import re import sys def sys_exit(msg): print(msg) sys.exit(1) REGEX_ANSIBLE_ROLE_SLUG = r'^[_a-zA-Z][-_a-zA-Z0-9]+$' REGEX_EMAIL = r'(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)' author_name = '{{ cookiecutter.author_name }}' email = '{{ cookiecutter.email }}' ansible_role_slug = '{{ cookiecutter.ansi...
29.833333
115
0.675978
c2ea2b789b3c3228db76ce99278a1d797f307480
31,268
py
Python
utils/afqmctools/afqmctools/hamiltonian/supercell.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
utils/afqmctools/afqmctools/hamiltonian/supercell.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
utils/afqmctools/afqmctools/hamiltonian/supercell.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
import time import os import sys import math import h5py import numpy from functools import reduce from pyscf import lib from pyscf.pbc import tools, df from mpi4py import MPI from afqmctools.utils.parallel import fair_share, bisect from afqmctools.utils.pyscf_utils import ( load_from_pyscf_chk ) from ...
38.460025
96
0.465972
6a79d2196761438bcdb0851ecc5488b7fffefc83
32,420
py
Python
python_modules/libraries/dagster-k8s/dagster_k8s/job.py
schrockn/dagster
3bb4e9247a693e48d84e9c86f73d83633d91a5c7
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s/job.py
schrockn/dagster
3bb4e9247a693e48d84e9c86f73d83633d91a5c7
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s/job.py
schrockn/dagster
3bb4e9247a693e48d84e9c86f73d83633d91a5c7
[ "Apache-2.0" ]
null
null
null
import copy import hashlib import json import random import string from collections import namedtuple from typing import Any, Dict, List, Optional import kubernetes import dagster._check as check from dagster import Array, BoolSource, Field, Noneable, StringSource from dagster import __version__ as dagster_version fr...
43.870095
198
0.640993
8189c9dc0e5c198cb83c9a8ca1d765dfdf36e585
11,480
py
Python
sawtooth/rest_api/rest_api/investigator.py
ravinayag/patient-consent
f011d8f80b171a4cc86d3208f26654623a3887e9
[ "Apache-2.0" ]
1
2021-10-29T20:56:18.000Z
2021-10-29T20:56:18.000Z
sawtooth/rest_api/rest_api/investigator.py
ravinayag/patient-consent
f011d8f80b171a4cc86d3208f26654623a3887e9
[ "Apache-2.0" ]
null
null
null
sawtooth/rest_api/rest_api/investigator.py
ravinayag/patient-consent
f011d8f80b171a4cc86d3208f26654623a3887e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
36.913183
109
0.676655
e898a4211e158e4f111826868df60963407daaa6
198
py
Python
office365/sharepoint/sharing/sharedWithUser.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
office365/sharepoint/sharing/sharedWithUser.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
office365/sharepoint/sharing/sharedWithUser.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
from office365.runtime.client_value import ClientValue class SharedWithUser(ClientValue): """Returns the array of users that have been shared in sharing action for the change log.""" pass
28.285714
96
0.772727
f56e0b0952b275d476e28d0ae9bde016ecd36726
761
py
Python
sistemaVacina/site_desafio_aula10/urls.py
reglabel/SistemaVacina
ed8f7940af66d51c780e843c1577848b2b3f8ea0
[ "MIT" ]
null
null
null
sistemaVacina/site_desafio_aula10/urls.py
reglabel/SistemaVacina
ed8f7940af66d51c780e843c1577848b2b3f8ea0
[ "MIT" ]
null
null
null
sistemaVacina/site_desafio_aula10/urls.py
reglabel/SistemaVacina
ed8f7940af66d51c780e843c1577848b2b3f8ea0
[ "MIT" ]
null
null
null
"""site_desafio_aula10 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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')...
34.590909
77
0.713535
fb06b1036c4ef21ae299601894578d2753ddf535
796
py
Python
apps/core/account/migrations/0009_auto_20210129_2058.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
apps/core/account/migrations/0009_auto_20210129_2058.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
apps/core/account/migrations/0009_auto_20210129_2058.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-29 14:58 import apps.core.account.manager from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0008_permission_resource'), ] operations = [ migrations.AlterModelManagers( name='us...
25.677419
95
0.569095
1e7a85dd0be52024395350c17542cceb615bd904
1,841
py
Python
graphs_trees/tree_height/height_solution.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
graphs_trees/tree_height/height_solution.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
graphs_trees/tree_height/height_solution.py
stephank007/python_challenges
dfd8d18c03a06735f6e4e02b0660007fe2d02f07
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). # # Solution Notebook # ## Problem: Determine the height of a tree. # # * [Constraints](#Constra...
24.878378
529
0.613797
05bfcac7597a9c9aae6e5ab9e131b9ba3974706c
7,775
py
Python
examples/misc/flaskexamples/flaskcors/public/services/jsonrpc/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
examples/misc/flaskexamples/flaskcors/public/services/jsonrpc/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
examples/misc/flaskexamples/flaskcors/public/services/jsonrpc/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
""" Copyright (c) 2006 Jan-Klaas Kollhof This file is part of jsonrpc. jsonrpc is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later ...
31.734694
108
0.600129
14d795b1e807759cb5bbe4176b93410f978797af
438
py
Python
angr/procedures/libstdcpp/std____throw_logic_error.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libstdcpp/std____throw_logic_error.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libstdcpp/std____throw_logic_error.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
import angr ###################################### # std::throw_logic_error ###################################### class std____throw_logic_error(angr.SimProcedure): #pylint:disable=redefined-builtin #pylint:disable=arguments-differ NO_RET = True ALT_NAMES = ('std::__throw_logic_error(char const*)', ) ...
27.375
84
0.582192
570f08311a3c7ad99c8d6dd914c43da227f1a1d6
2,308
py
Python
iCharacterBaseType.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
2
2019-08-01T15:08:25.000Z
2021-01-30T07:29:34.000Z
iCharacterBaseType.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
iCharacterBaseType.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
from .fsDumpInteger import fsDumpInteger; from .iUnsignedIntegerBaseType import iUnsignedIntegerBaseType; class iCharacterBaseType(iUnsignedIntegerBaseType): def __repr__(oSelf): sChar = chr(oSelf.value) if oSelf.value >= 0x20 and oSelf.value < 0x7F else None; return "<char %s:%d(%s%s%s) @ 0x%X>" % ( o...
37.836066
98
0.590555
bd8e41dc31c199f2856ede894874c76aea9a235c
11,581
py
Python
homeassistant/components/waze_travel_time/sensor.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
4
2020-08-10T20:02:24.000Z
2022-01-31T02:14:22.000Z
homeassistant/components/waze_travel_time/sensor.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
78
2020-07-23T07:13:08.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/waze_travel_time/sensor.py
DavidDeSloovere/core
909a20b36d4df6724c955c2ae28cb82fe6d50c2e
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Support for Waze travel time sensor.""" from __future__ import annotations from datetime import timedelta import logging import re from WazeRouteCalculator import WazeRouteCalculator, WRCError import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.con...
32.439776
88
0.625939
d1f6271c99fce0038b15a43d963f7bc6c601d748
7,893
py
Python
backend/docchat_33248/settings.py
crowdbotics-apps/docchat-33248
739992b58ed0118c23072f0b084bfea3b58029c3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/docchat_33248/settings.py
crowdbotics-apps/docchat-33248
739992b58ed0118c23072f0b084bfea3b58029c3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/docchat_33248/settings.py
crowdbotics-apps/docchat-33248
739992b58ed0118c23072f0b084bfea3b58029c3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for docchat_33248 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import...
30.357692
112
0.736602
63717b9f04018a7869dd61b62da55703bc9ed9a3
2,402
py
Python
internal/twirptest/no_package_name_importer/no_package_name_importer_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-19T15:57:43.000Z
2021-06-19T15:57:43.000Z
internal/twirptest/no_package_name_importer/no_package_name_importer_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
internal/twirptest/no_package_name_importer/no_package_name_importer_pb2_twirp.py
joshi4/twirp
677ba1a47ae278934e5911498e65f917c845dc69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Code generated by protoc-gen-twirp_python v5.8.0, DO NOT EDIT. # source: no_package_name_importer.proto try: import httplib from urllib2 import Request, HTTPError, urlopen except ImportError: import http.client as httplib from urllib.request import Request, urlopen from urllib.error import HTTPEr...
31.194805
79
0.609076
5596cdab68718f3a3aea4883f163e4af7420c462
1,481
py
Python
app/rez-maya/2019/package.py
chowooseoung/rez-packages
f9f89b0bb74f15a603e24978190e45ec7c70af19
[ "MIT" ]
null
null
null
app/rez-maya/2019/package.py
chowooseoung/rez-packages
f9f89b0bb74f15a603e24978190e45ec7c70af19
[ "MIT" ]
null
null
null
app/rez-maya/2019/package.py
chowooseoung/rez-packages
f9f89b0bb74f15a603e24978190e45ec7c70af19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- late = globals()["late"] name = "maya" version = "2019" description = "Autodesk Maya 2019" requires = [] _data = { # Allzpark "label": "Maya", "icon": "{root}/resources/mayaico.png" } tools = [ "maya", ] build_command = "python -m rezutil build {root}" private_build_requires...
25.982456
83
0.632005
968eb96c8bea822bf32bb836e5cd58e8b975de72
7,356
py
Python
csgostash_scraper/modules/objectfactory.py
Quentium-s-Forks/csgostash-scraper
cb75128215e208e49a29c54c142da1da6386f55a
[ "MIT" ]
6
2020-05-10T12:46:57.000Z
2022-03-25T17:14:54.000Z
csgostash_scraper/modules/objectfactory.py
Quentium-s-Forks/csgostash-scraper
cb75128215e208e49a29c54c142da1da6386f55a
[ "MIT" ]
1
2021-03-21T16:52:05.000Z
2021-03-21T16:52:05.000Z
csgostash_scraper/modules/objectfactory.py
Quentium-s-Forks/csgostash-scraper
cb75128215e208e49a29c54c142da1da6386f55a
[ "MIT" ]
4
2021-03-12T00:17:37.000Z
2021-07-16T15:27:37.000Z
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2020 supr3me 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 without limitation the rights to use, ...
36.78
206
0.632409
27a8a9d9abf5982e9877dea7a56c010a11717fc2
4,643
py
Python
stock-filters/Buildings/houseTerracotta.py
Chris-Drury/caMelGDMC
b7498fedb57837b18bbf172e3f34bc285559e3dd
[ "0BSD" ]
null
null
null
stock-filters/Buildings/houseTerracotta.py
Chris-Drury/caMelGDMC
b7498fedb57837b18bbf172e3f34bc285559e3dd
[ "0BSD" ]
null
null
null
stock-filters/Buildings/houseTerracotta.py
Chris-Drury/caMelGDMC
b7498fedb57837b18bbf172e3f34bc285559e3dd
[ "0BSD" ]
null
null
null
from Buildings.material import AIR, LOG, PLANK, STAIRS, BED, DOOR, STONE, SAPLING, TERRACOTTA, WINDOW temp = "placeholder" selections = TERRACOTTA.values() house_terracotta_template = [ [ [AIR, AIR, AIR, AIR, AIR, AIR, AIR, AIR], [AIR, LOG, STONE, STONE, STONE, STONE, LOG, AIR], [AIR, STON...
41.088496
101
0.524015
e7312838a026a31057a0b9021c47ae7bd15e88bb
18,389
py
Python
pex/pex_info.py
jjhelmus/pex
a25f1fed277e06552f5defd01a24fc744a61c322
[ "Apache-2.0" ]
null
null
null
pex/pex_info.py
jjhelmus/pex
a25f1fed277e06552f5defd01a24fc744a61c322
[ "Apache-2.0" ]
1
2019-12-04T03:46:37.000Z
2019-12-04T03:46:37.000Z
pex/pex_info.py
jsirois/pex
024845595473bb33102814dbcd37c1181e965d49
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import json import os from pex import pex_warnings, variables from pex.common import can_write_dir, open_zip, safe_mkdtemp from pex.compatibility i...
36.925703
102
0.63848
1956efbb15cbb6a21b58528af699d74d69e4f702
1,329
py
Python
tools/nntool/importer/tflite2/handlers/backend/exp.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
118
2018-05-22T08:45:59.000Z
2022-03-30T07:00:45.000Z
tools/nntool/importer/tflite2/handlers/backend/exp.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
213
2018-07-25T02:37:32.000Z
2022-03-30T18:04:01.000Z
tools/nntool/importer/tflite2/handlers/backend/exp.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
76
2018-07-04T08:19:27.000Z
2022-03-24T09:58:05.000Z
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
36.916667
74
0.687735
a88bb6899303e5a821501d53360de95deed9cccd
736
py
Python
manage.py
Nicholas-muchiri/Pitch
f6b223c14db219961cc8f8ad63c18436f051549e
[ "MIT" ]
null
null
null
manage.py
Nicholas-muchiri/Pitch
f6b223c14db219961cc8f8ad63c18436f051549e
[ "MIT" ]
null
null
null
manage.py
Nicholas-muchiri/Pitch
f6b223c14db219961cc8f8ad63c18436f051549e
[ "MIT" ]
null
null
null
from app import create_app, db from app.models import User, Role, Category, Pitch, Review from flask_migrate import Migrate, MigrateCommand from flask_script import Manager, Server app = create_app('development') # app = create_app("management") manager = Manager(app) manager.add_command('server', Server) @manager...
28.307692
114
0.736413
5c70873ddedce984dcb3bd906f4e59ce8ebe93fe
339
py
Python
setup.py
fim/dhall
92d938705e32a168aedec2413cdc715aa86fe935
[ "BSD-2-Clause" ]
null
null
null
setup.py
fim/dhall
92d938705e32a168aedec2413cdc715aa86fe935
[ "BSD-2-Clause" ]
null
null
null
setup.py
fim/dhall
92d938705e32a168aedec2413cdc715aa86fe935
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup execfile('modules/dhall/version.py') setup(name='dhall', version=__version__, description='Sign/Verify tool', author=__maintainer__, install_requires=[ 'ed25519==1.3' ], package_dir = {'': 'modules'}, packages=['dhall'], s...
18.833333
36
0.640118
9744d5b8cd77a9d46c8e9d581aa3d4bfcbe2c8b0
2,567
py
Python
plusminus/examples/business_arithmetic_parser.py
ptmcg/arithmetic_parsing
44984bb33115e9063a5cbace35bc5e9a55998411
[ "MIT" ]
7
2020-02-13T18:37:27.000Z
2021-10-11T05:50:43.000Z
plusminus/examples/business_arithmetic_parser.py
ptmcg/arithmetic_parsing
44984bb33115e9063a5cbace35bc5e9a55998411
[ "MIT" ]
14
2020-02-14T05:24:29.000Z
2021-09-29T03:42:35.000Z
plusminus/examples/business_arithmetic_parser.py
ptmcg/arithmetic_parsing
44984bb33115e9063a5cbace35bc5e9a55998411
[ "MIT" ]
17
2020-02-13T18:37:36.000Z
2021-05-11T12:54:44.000Z
# # business_arithmetic_parser.py # # Copyright 2021, Paul McGuire # from plusminus import BaseArithmeticParser, safe_pow class BusinessArithmeticParser(BaseArithmeticParser): """ A parser for evaluating common financial and retail calculations: 50% of 20 20 * (1-20%) (100-20)% of 20 ...
32.910256
102
0.593689
556dfd73c832b403880d44846586815999b56ff7
432
py
Python
bugTracking/bugs/migrations/0002_auto_20150712_1521.py
YikaiLee/bugTracker
3e848ffbb716d49561abfe4569337b327fb25715
[ "MIT" ]
null
null
null
bugTracking/bugs/migrations/0002_auto_20150712_1521.py
YikaiLee/bugTracker
3e848ffbb716d49561abfe4569337b327fb25715
[ "MIT" ]
null
null
null
bugTracking/bugs/migrations/0002_auto_20150712_1521.py
YikaiLee/bugTracker
3e848ffbb716d49561abfe4569337b327fb25715
[ "MIT" ]
1
2018-07-06T09:11:29.000Z
2018-07-06T09:11:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('bugs', '0001_initial'), ] operations = [ migrations.AlterField( model_name='bug...
20.571429
65
0.618056
e7374b0bf350fb2942c63c49508212cec28c1082
5,474
py
Python
layerpresets/singleShader.py
DrLuke/easyShader
418e483f8eed5cb933683324bc0ce07670c7fa5b
[ "MIT" ]
2
2018-01-22T11:18:47.000Z
2020-11-11T09:50:44.000Z
layerpresets/singleShader.py
DrLuke/easyShader
418e483f8eed5cb933683324bc0ce07670c7fa5b
[ "MIT" ]
null
null
null
layerpresets/singleShader.py
DrLuke/easyShader
418e483f8eed5cb933683324bc0ce07670c7fa5b
[ "MIT" ]
null
null
null
from layer import BaseLayer, FileWatch from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.arrays import * from OpenGL.GL import shaders import OpenGL import time import math import numpy as np import traceback, sys class Layer(BaseLayer): def init(self): self.level = 10 self.vao = Non...
30.076923
118
0.584947
3939e8fdc80e1fdceed3b77b05d39793704a4f43
1,507
py
Python
lintcode/393.2.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:49.000Z
2021-01-08T06:57:49.000Z
lintcode/393.2.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
null
null
null
lintcode/393.2.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:52.000Z
2021-01-08T06:57:52.000Z
""" 393. Best Time to Buy and Sell Stock IV dp[i][k][0] = max(dp[i - 1][k][0], dp[i - 1][k][1] + prices[i]) dp[i][k][1] = max(dp[i - 1][k][1], dp[i - 1][k - 1][0] - prices[i]) dp[-1][k][0] = 0 dp[-1][k][1] = -sys.maxsize dp[i][0][0] = 0 dp[i][0][1] = -sys.maxsize reference: https://leetcode.com/problems/best-time-to...
30.755102
174
0.525547
e78a3692ef6db0ff8f7f3480046b24c9315a6264
440
py
Python
setup.py
Rjdrenth/pre-commit-jupyter
37c00c7083fdc5b3f12d6f2f6cf560f7a1fe5034
[ "MIT" ]
11
2020-05-06T19:29:16.000Z
2022-03-14T09:40:50.000Z
setup.py
Rjdrenth/pre-commit-jupyter
37c00c7083fdc5b3f12d6f2f6cf560f7a1fe5034
[ "MIT" ]
5
2020-09-01T18:09:02.000Z
2021-06-27T19:59:50.000Z
setup.py
Rjdrenth/pre-commit-jupyter
37c00c7083fdc5b3f12d6f2f6cf560f7a1fe5034
[ "MIT" ]
5
2020-07-14T14:39:39.000Z
2021-09-07T12:40:26.000Z
from setuptools import find_packages, setup setup( name="jupyter-notebook-cleanup", version="1.2.1", description="Automagically remove notebook outputs for better security", author="Hiroyuki Tanaka", author_email="aflc0x@gmail.com", packages=find_packages(), python_requires=">=3", insta...
31.428571
101
0.727273
b2e02ffcb57405f8e68431156e6d70ac8d035655
58
py
Python
examples/recompile.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
examples/recompile.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
examples/recompile.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
import taichi as ti # TODO: fix excessive recompilation
11.6
35
0.775862
bf399d75defbff1bff1fee141e5e3c95ab744946
10,219
py
Python
smartsim/launcher/slurm/slurmLauncher.py
ashao/SmartSim
54ca7a72e4e19a167b67b8d16daf113e81f75817
[ "BSD-2-Clause" ]
null
null
null
smartsim/launcher/slurm/slurmLauncher.py
ashao/SmartSim
54ca7a72e4e19a167b67b8d16daf113e81f75817
[ "BSD-2-Clause" ]
null
null
null
smartsim/launcher/slurm/slurmLauncher.py
ashao/SmartSim
54ca7a72e4e19a167b67b8d16daf113e81f75817
[ "BSD-2-Clause" ]
null
null
null
# BSD 2-Clause License # # Copyright (c) 2021, Hewlett Packard Enterprise # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright noti...
37.708487
94
0.637244
025a2c626f7dccb0b65922196da6b74cb6de6bd4
581
py
Python
V2XMD/data_processing.py
mohammedLamine/Spatial-and-temporal-cross-validation-strategy-for-misbehavior-detection-in-C-ITS
26c084bd27054e24944216fa061c5361363be6c1
[ "MIT" ]
1
2022-03-05T23:23:52.000Z
2022-03-05T23:23:52.000Z
V2XMD/data_processing.py
mohammedLamine/Spatial-and-temporal-cross-validation-strategy-for-misbehavior-detection-in-C-ITS
26c084bd27054e24944216fa061c5361363be6c1
[ "MIT" ]
null
null
null
V2XMD/data_processing.py
mohammedLamine/Spatial-and-temporal-cross-validation-strategy-for-misbehavior-detection-in-C-ITS
26c084bd27054e24944216fa061c5361363be6c1
[ "MIT" ]
null
null
null
import numpy as np class DataProcessing: def __init__(self,df): self.df = df def add_speed(self): self.df = self.df.assign(speed =np.sqrt(self.df.transmitter_x_velocity**2 + self.df.transmitter_y_velocity**2)) def add_distance(self): self.df = self.df.assign(distance =DataProcessing...
52.818182
194
0.70568
d046b0f00dffb84e227d278bb821f08d01516a75
2,298
py
Python
openpose/utils/collections.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
openpose/utils/collections.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
openpose/utils/collections.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ############################################################################## """A simple attribute dictionary used for re...
29.844156
80
0.589643
ff59e1c371054f8c2bd4b5e8b6e5c14a63d9a91a
935
py
Python
migrations/versions/890c6b3e3f7a_.py
QualiChain/qualichain_backend
cc6dbf1ae5d09e8d01cccde94326563b25d28b58
[ "MIT" ]
null
null
null
migrations/versions/890c6b3e3f7a_.py
QualiChain/qualichain_backend
cc6dbf1ae5d09e8d01cccde94326563b25d28b58
[ "MIT" ]
null
null
null
migrations/versions/890c6b3e3f7a_.py
QualiChain/qualichain_backend
cc6dbf1ae5d09e8d01cccde94326563b25d28b58
[ "MIT" ]
null
null
null
"""empty message Revision ID: 890c6b3e3f7a Revises: 83beab9ed991 Create Date: 2021-05-18 15:47:06.533538 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '890c6b3e3f7a' down_revision = '83beab9ed991' branch_labels = None...
30.16129
164
0.718717
27387f70077d301a6ff7e16c3de0920f3f718f71
4,680
py
Python
lib/utils/jrdb_transforms.py
huzjkevin/PointRCNN
179e45a1e609eacd23b79d973243e3c9361849d8
[ "MIT" ]
null
null
null
lib/utils/jrdb_transforms.py
huzjkevin/PointRCNN
179e45a1e609eacd23b79d973243e3c9361849d8
[ "MIT" ]
null
null
null
lib/utils/jrdb_transforms.py
huzjkevin/PointRCNN
179e45a1e609eacd23b79d973243e3c9361849d8
[ "MIT" ]
null
null
null
import numpy as np """ Transformations. Following frames are defined: base: main frame where 3D annotations are done in, x-forward, y-left, z-up upper_lidar: x-forward, y-left, z-up lower_lidar: x-forward, y-left, z-up laser: x-forward, y-left, z-up """ def _get_R_z(rot_z): cs, ss = np.cos(rot_z), np.sin(rot_z)...
28.192771
83
0.577778
42a3e31bcafbf57147f5a1362cafd723e06a2d67
1,191
py
Python
leprikon/migrations/0016_school_year_divisions_cleanup.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
4
2018-10-29T17:46:09.000Z
2021-12-16T08:57:48.000Z
leprikon/migrations/0016_school_year_divisions_cleanup.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
68
2016-07-11T07:48:54.000Z
2022-03-18T01:32:06.000Z
leprikon/migrations/0016_school_year_divisions_cleanup.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
2
2016-07-12T20:39:53.000Z
2020-10-10T03:14:42.000Z
# Generated by Django 1.11.12 on 2018-08-29 09:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('leprikon', '0015_school_year_divisions'), ] operations = [ migrations.RemoveField( model_name...
32.189189
176
0.624685
cf122f5b78a949507c5b594af369c2e1f590face
2,027
py
Python
src/main/python/tools/json_builder.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/tools/json_builder.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/tools/json_builder.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
import numpy import json from cluster.json_viewer import ClusterViwer from context import resource_manager def cluster_view_json_builder(clusters=[]): """ 将用户传入的多个json格式的对象存储在json文件中 newlist【】作为list先读入文件中的数据以防止丢失,然后追加新加入的json对象(以list格式存入newlist) :param clusters...
37.537037
213
0.579674
d07c5c08b429e67af0bd7d2b41e8e7f4f477d9b5
98,007
py
Python
numpy/core/fromnumeric.py
ahojnnes/numpy
55b766d549dc7a9cd417de001a2f7ba8d445579f
[ "BSD-3-Clause" ]
null
null
null
numpy/core/fromnumeric.py
ahojnnes/numpy
55b766d549dc7a9cd417de001a2f7ba8d445579f
[ "BSD-3-Clause" ]
null
null
null
numpy/core/fromnumeric.py
ahojnnes/numpy
55b766d549dc7a9cd417de001a2f7ba8d445579f
[ "BSD-3-Clause" ]
null
null
null
"""Module containing non-deprecated functions borrowed from Numeric. """ from __future__ import division, absolute_import, print_function import types import warnings import numpy as np from .. import VisibleDeprecationWarning from . import multiarray as mu from . import umath as um from . import numerictypes as nt ...
31.372279
97
0.597406
a7c2b8e17ce58d332fd14b52e7f54ad5f06929a6
1,428
py
Python
make_average_video_dict.py
LisaAnne/LocalizingMoments
b6a555c8134581305d0ed4716fbc192860e0b88c
[ "BSD-2-Clause" ]
157
2017-08-04T21:56:46.000Z
2022-03-05T13:49:02.000Z
make_average_video_dict.py
LisaAnne/LocalizingMoments
b6a555c8134581305d0ed4716fbc192860e0b88c
[ "BSD-2-Clause" ]
19
2017-09-26T15:27:47.000Z
2022-02-27T23:21:00.000Z
make_average_video_dict.py
LisaAnne/LocalizingMoments
b6a555c8134581305d0ed4716fbc192860e0b88c
[ "BSD-2-Clause" ]
48
2017-08-08T11:18:39.000Z
2021-11-15T04:20:33.000Z
import os import numpy as np import h5py import pdb import sys feature_root = 'rgb_features/' #wherever your features are video_list = [feature_root + v for v in os.listdir(feature_root)] def make_h5_dict(name): seconds_per_chunk = 5 fps = 25. subsample = 5 h5_file = h5py.File(video_list[0]) feature...
29.142857
104
0.654762
350cf61e7b4b26555a0fae2b226a6a27fc4db804
5,620
py
Python
tests/test_detector_classifier_prev.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
8
2019-05-08T20:27:41.000Z
2021-04-19T15:17:22.000Z
tests/test_detector_classifier_prev.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
9
2019-05-17T19:16:50.000Z
2022-03-11T23:46:55.000Z
tests/test_detector_classifier_prev.py
keishinkickback/multivitamin
edc49267fc5a25182da0e7c7c8bba398225437e5
[ "Apache-2.0" ]
4
2019-05-07T18:00:51.000Z
2019-06-22T02:35:51.000Z
"""Test a 2 module sequence on a short video of cars 1) object detector 2) make-model classifier after filtering only for car detections TEST WHERE THERE IS NO PREV PROPERTIES OF INTEREST """ import os import sys import json import glog as log import requests import boto3 import zipfile from multivitamin.applicat...
30.543478
86
0.653559
8a59ae4969fd3b99bacc2a1a0046cc680b5b389d
747
py
Python
test/integration/test_currencies.py
dokka-ai/netsuite-sdk-py2.7
93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76
[ "MIT" ]
null
null
null
test/integration/test_currencies.py
dokka-ai/netsuite-sdk-py2.7
93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76
[ "MIT" ]
null
null
null
test/integration/test_currencies.py
dokka-ai/netsuite-sdk-py2.7
93260dea1f02a6b1785b77ffcdd7f8fe3c9d0b76
[ "MIT" ]
1
2021-02-22T11:52:20.000Z
2021-02-22T11:52:20.000Z
import logging import pytest logger = logging.getLogger(__name__) def test_get(nc): data = nc.currencies.get_all() logger.debug('data = %s', data) assert data, 'get all didnt work' internal_id = data[0]['internalId'] data = nc.currencies.get(internalId=internal_id) logger.debug('data = %s', d...
27.666667
82
0.678715
6c426dcb7ea7e33453f9fe3147a77dcdc1ba5f4e
1,841
py
Python
opsmop/providers/service/service.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/providers/service/service.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/providers/service/service.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Michael DeHaan LLC, <michael@michaeldehaan.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 app...
32.875
81
0.617599
5fcbed982a5ac7e7ac65d62bbbfef7ed1ce63539
13,940
py
Python
tools/mo/unit_tests/mo/back/ConvolutionNormalizer_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/unit_tests/mo/back/ConvolutionNormalizer_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/unit_tests/mo/back/ConvolutionNormalizer_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from openvino.tools.mo.back.ConvolutionNormalizer import PullReshapeThroughFQ, V7ConvolutionWithGroupsResolver, \ V10ConvolutionWithGroupsResolver from openvino.tools.mo.front.common.partial_infer...
41.861862
128
0.604591
d1650b7a9a6050d0db7fd8bc4526399b90be4e1c
1,149
py
Python
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0025_procs_config.py
rfraposa/hadoopbeat
884c0f8e0f2027cb4aa180d8f419f05b4d890e85
[ "Apache-2.0" ]
115
2015-11-30T13:42:27.000Z
2021-10-14T15:41:31.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0025_procs_config.py
rfraposa/hadoopbeat
884c0f8e0f2027cb4aa180d8f419f05b4d890e85
[ "Apache-2.0" ]
35
2016-02-14T18:47:27.000Z
2021-01-17T20:12:38.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0025_procs_config.py
rfraposa/hadoopbeat
884c0f8e0f2027cb4aa180d8f419f05b4d890e85
[ "Apache-2.0" ]
50
2015-11-28T18:43:19.000Z
2021-07-21T03:58:10.000Z
from packetbeat import BaseTest """ Tests for checking the procs monitoring configuration. """ class Test(BaseTest): MsgNotOnLinux = "Disabled /proc/ reading because not on linux" MsgEnabled = "Process matching enabled" def test_procs_default(self): """ Should be disabled by default. ...
28.02439
66
0.618799