hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
952e1f6c2ca3265eac4734dc70634e899623cadb
341
py
Python
Prog1-PUCRJ/Teste 01/Ex2_T01.py
JxVtrl/Problemas-Python
1a1e2a2a73524ae44808ea9e2708c2c34beec9d3
[ "MIT" ]
1
2021-05-18T20:22:04.000Z
2021-05-18T20:22:04.000Z
Prog1-PUCRJ/Teste 01/Ex2_T01.py
JxVtrl/Problemas-Python
1a1e2a2a73524ae44808ea9e2708c2c34beec9d3
[ "MIT" ]
null
null
null
Prog1-PUCRJ/Teste 01/Ex2_T01.py
JxVtrl/Problemas-Python
1a1e2a2a73524ae44808ea9e2708c2c34beec9d3
[ "MIT" ]
null
null
null
# @jxvtrl # import turtle def AP(x1, y1, x2, y2): print('Perimetro=',(2*(x2-x1)+ 2*(y2-y1))) print('Area=',(x2-x1)*(y2-y1)) return def Desenho(x1, y1, x2, y2): Ed=turtle.Turtle() Ed.up() Ed.goto(x1,y1) Ed.down() Ed.fd(x2-x1) Ed.lt(90) Ed.fd(y2-y1) Ed.lt(90) Ed.fd(x2-x1) Ed.lt(90) Ed.fd...
14.208333
46
0.545455
2bcc2a9f3486b60a4c62f7261a1015d1ca913307
2,377
py
Python
app.py
ringarochkryss/TimeWizard
557dd8384e2248f77c4ce11a4850e1f87c3f8138
[ "BSD-Source-Code" ]
null
null
null
app.py
ringarochkryss/TimeWizard
557dd8384e2248f77c4ce11a4850e1f87c3f8138
[ "BSD-Source-Code" ]
5
2020-02-12T02:36:05.000Z
2021-06-10T22:27:08.000Z
app.py
ringarochkryss/TimeWizard
557dd8384e2248f77c4ce11a4850e1f87c3f8138
[ "BSD-Source-Code" ]
1
2020-02-02T20:19:07.000Z
2020-02-02T20:19:07.000Z
import os from flask import Flask, render_template, redirect, request, url_for import env from flask_pymongo import PyMongo from bson.objectid import ObjectId app = Flask(__name__) app.config["MONGO_DBNAME"] = 'faq_manager' app.config["MONGO_URI"] = os.getenv('MONGO_URI', "Env value not loaded") mongo = PyMongo(app)...
33.957143
124
0.712242
f4d66f4a3ea6044e0524ffa515c447568e15ee4e
8,964
py
Python
devito/ir/clusters/algorithms.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
devito/ir/clusters/algorithms.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
devito/ir/clusters/algorithms.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
from collections import OrderedDict from devito.ir.support import (Scope, IterationSpace, detect_flow_directions, force_directions, group_expressions) from devito.ir.clusters.cluster import PartialCluster, ClusterGroup from devito.symbolics import CondEq, xreplace_indices from devito.typ...
34.476923
89
0.584449
9b0aa0f76aba20d60f0e7188fb603696590e1e98
5,499
py
Python
tensorflow/tf_regularization_3layer.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
1
2018-03-28T02:30:12.000Z
2018-03-28T02:30:12.000Z
tensorflow/tf_regularization_3layer.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
null
null
null
tensorflow/tf_regularization_3layer.py
abondar24/deepLearnPython
9325cd18458f66f9d90ebd044fb4c8b2c6d8abc0
[ "Apache-2.0" ]
2
2017-03-03T14:49:00.000Z
2018-03-28T02:30:16.000Z
from __future__ import print_function import numpy as np import tensorflow as tf import pickle image_size = 28 num_labels = 10 # Reformat data as a flat matrix # Reformat labels as float 1-hot encodings def reformant(dataset,labels): dataset = dataset.reshape((-1, image_size * image_size)).astype(np.float32) ...
44.707317
104
0.701582
43cd83857d40b90539fffc511616340fe1c9b4a6
90
py
Python
python-print.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
python-print.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
python-print.py
0xecho/HackerRankSolutions
2d525ca9f13297cbee0191e2c14a04208cb97a69
[ "BSD-3-Clause" ]
null
null
null
if __name__ == '__main__': n = int(input()) for i in range(n): print(i+1,end="")
15
26
0.544444
0bfcbba7c409d6998a60c15665475f4d920b47dc
15,238
py
Python
python/dazl/ledger/grpc/codec_aio.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
8
2019-09-08T09:41:03.000Z
2022-02-19T12:54:30.000Z
python/dazl/ledger/grpc/codec_aio.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
55
2019-05-30T23:00:31.000Z
2022-01-24T01:51:32.000Z
python/dazl/ledger/grpc/codec_aio.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
9
2019-06-30T18:15:27.000Z
2021-12-03T10:15:27.000Z
# Copyright (c) 2017-2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ This module contains the mapping between Protobuf objects and Python/dazl types. """ # Earlier versions of dazl (before v8) had an API that mapped less directly to the gRPC L...
40.962366
135
0.645163
c0507799aa94a17d88b676ffec897fab598ca386
9,166
py
Python
service_funcs.py
5lunk/psec
a6bec5102759057a15d39aed3de7a20aa878e55a
[ "CC0-1.0" ]
null
null
null
service_funcs.py
5lunk/psec
a6bec5102759057a15d39aed3de7a20aa878e55a
[ "CC0-1.0" ]
null
null
null
service_funcs.py
5lunk/psec
a6bec5102759057a15d39aed3de7a20aa878e55a
[ "CC0-1.0" ]
null
null
null
#! /usr/bin/env python3 import re import sys import os import subprocess import time import json import logging import smtplib import datetime import glob from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.application import MIMEApplication def log_rotation(config): ...
36.811245
116
0.602226
8c63901979fc8588cad1f5cb26f41e5f7d6dd9ef
1,705
py
Python
gdelt_v2/extract_data.py
smartdatalake/datasets
c6ad1f149363fb56eda214e8bcf79a2d6f99efee
[ "Apache-2.0" ]
5
2019-07-15T07:23:24.000Z
2021-12-10T11:34:19.000Z
gdelt_v2/extract_data.py
smartdatalake/datasets
c6ad1f149363fb56eda214e8bcf79a2d6f99efee
[ "Apache-2.0" ]
5
2020-03-04T22:47:02.000Z
2021-12-09T21:12:14.000Z
gdelt_v2/extract_data.py
smartdatalake/datasets
c6ad1f149363fb56eda214e8bcf79a2d6f99efee
[ "Apache-2.0" ]
2
2020-04-28T16:04:07.000Z
2021-10-01T12:32:44.000Z
from gdelt_networkx import GDELT_NetworkxImporter from time import time import pandas as pd import sys def read_data(path, chunksize): names = ['GKGRECORDID', 'DATE', 'SOURCECOLLECTIONIDENTIFIER', 'SOURCECOMMONNAME', 'DOCUMENTIDENTIFIER', 'COUNTS', 'COUNTS_2', 'THEMES', 'ENHANCEDTHEMES', ...
33.431373
81
0.61349
953a3e6b9c00857bf5d091786a25fbbc18f70a63
1,011
py
Python
smoke_test/data/create_graph.py
ZEROFAIL/zrpc_smoke_test
ffbed855a1bf851b53bbda6ac30e2fa850ac5d99
[ "MIT" ]
null
null
null
smoke_test/data/create_graph.py
ZEROFAIL/zrpc_smoke_test
ffbed855a1bf851b53bbda6ac30e2fa850ac5d99
[ "MIT" ]
null
null
null
smoke_test/data/create_graph.py
ZEROFAIL/zrpc_smoke_test
ffbed855a1bf851b53bbda6ac30e2fa850ac5d99
[ "MIT" ]
null
null
null
import logging import os import click import networkx as nx from smoke_test import constants logger = logging.getLogger(__name__) logging.basicConfig( format=constants.LOG_FORMAT, datefmt=constants.LOG_DATE_FORMAT, level=logging.INFO) dirname = os.path.dirname(os.path.dirname(__file__)) @click.comm...
28.083333
66
0.665678
65aabbe4a0f3fbbab5ca39d32a2c202872c0e414
38,747
py
Python
tfx_bsl/beam/run_inference_test.py
tensorflow/tfx-common
988549bb50c6174d1a2e2cb4208f355826724842
[ "Apache-2.0" ]
1
2019-08-14T20:40:29.000Z
2019-08-14T20:40:29.000Z
tfx_bsl/beam/run_inference_test.py
tensorflow/tfx-common
988549bb50c6174d1a2e2cb4208f355826724842
[ "Apache-2.0" ]
null
null
null
tfx_bsl/beam/run_inference_test.py
tensorflow/tfx-common
988549bb50c6174d1a2e2cb4208f355826724842
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.396368
80
0.672052
8835ed87915e74dd7035dac017e0aae767219b5c
109
py
Python
ext/voxelmorph/voxelmorph/tf/__init__.py
thomshaw92/Atlas-GAN
307146f369a6eab2ce2e15f6de0aa5eb34b1cb12
[ "MIT" ]
25
2021-05-11T06:58:32.000Z
2022-03-08T09:15:09.000Z
ext/voxelmorph/voxelmorph/tf/__init__.py
thomshaw92/Atlas-GAN
307146f369a6eab2ce2e15f6de0aa5eb34b1cb12
[ "MIT" ]
1
2022-01-05T12:19:37.000Z
2022-01-14T19:08:32.000Z
ext/voxelmorph/voxelmorph/tf/__init__.py
thomshaw92/Atlas-GAN
307146f369a6eab2ce2e15f6de0aa5eb34b1cb12
[ "MIT" ]
5
2021-06-18T13:30:04.000Z
2022-01-25T05:00:53.000Z
from . import synthseg from . import layers from . import networks from . import losses from . import utils
15.571429
22
0.761468
665a937f85f9d9b336bf602e03ba3080bbbffdc8
3,781
py
Python
provisioning/miniprov/hare_mp/types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
provisioning/miniprov/hare_mp/types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
provisioning/miniprov/hare_mp/types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, fields from enum import Enum from typing import Generic, List, Optional, Sequence, TypeVar A = TypeVar('A') @dataclass class Maybe(Generic[A]): value: Optional[A] comment: str def __str__(self): if self.value is None: return f'None ({self.comment})'...
19.09596
76
0.648506
b83c109a776a44b23e18ff6f72ae4a9962d2ab03
6,967
py
Python
rgd/geodata/filters.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
rgd/geodata/filters.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
rgd/geodata/filters.py
venkatabhishek/ResonantGeoData
4e946e25c194874c22f4ba2ab49d6f0cf803e673
[ "Apache-2.0" ]
null
null
null
from django.contrib.gis import forms from django.contrib.gis.db.models.functions import GeometryDistance from django.contrib.gis.measure import D from django.core.validators import RegexValidator from django.db.models import Q, Sum from django_filters import rest_framework as filters from rgd.geodata.models.common imp...
34.661692
100
0.613894
9306c20605d8c91546e700a7a35ebc683e68d446
368
py
Python
hasdrubal/lex/__init__.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
2
2021-06-25T15:46:16.000Z
2022-02-20T22:04:36.000Z
hasdrubal/lex/__init__.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
42
2021-07-06T05:38:23.000Z
2022-03-04T18:09:30.000Z
hasdrubal/lex/__init__.py
Armani-T/hasdrubal
7fac381b866114533e589e964ec7c27adbd1deff
[ "MIT" ]
null
null
null
from .eol_inference import can_add_eol, infer_eols from .main import lex, show_tokens, Stream, Token, TokenStream, TokenTypes from .preprocessing import normalise_newlines, to_utf8 __all__ = ( "can_add_eol", "infer_eols", "lex", "normalise_newlines", "show_tokens", "Stream", "Token", "T...
21.647059
74
0.682065
07e7e425dea4f51ef8a04d48344cff5a9508bad8
1,337
py
Python
userbot/plugins/deploy.py
LawdeKaBaal/IndianBot
d608bf3d5352838fba91027dc7a833735ad4e653
[ "MIT" ]
2
2020-04-29T13:06:02.000Z
2020-06-16T03:50:08.000Z
userbot/plugins/deploy.py
LawdeKaBaal/IndianBot
d608bf3d5352838fba91027dc7a833735ad4e653
[ "MIT" ]
null
null
null
userbot/plugins/deploy.py
LawdeKaBaal/IndianBot
d608bf3d5352838fba91027dc7a833735ad4e653
[ "MIT" ]
2
2020-06-08T11:46:11.000Z
2020-06-08T11:46:20.000Z
"""Emoji Available Commands: .deploy""" from telethon import events import asyncio from uniborg.util import admin_cmd from userbot import AUTONAME DEFAULTUSER = str(AUTONAME) if AUTONAME else "IndianBot" @borg.on(admin_cmd(pattern=r"deploy")) async def _(event): if event.fwd_from: return an...
23.051724
84
0.606582
6228f6309ab7ecc7f8d2d1873fce63c1a3b9d1eb
4,799
py
Python
djinja/template/defaultfilters.py
syrusakbary/Djinja
ca3824b70a561de97e0cf9cfbd21dd70997f5fad
[ "BSD-3-Clause" ]
2
2015-05-15T09:22:35.000Z
2015-12-12T02:00:08.000Z
djinja/template/defaultfilters.py
syrusakbary/Djinja
ca3824b70a561de97e0cf9cfbd21dd70997f5fad
[ "BSD-3-Clause" ]
null
null
null
djinja/template/defaultfilters.py
syrusakbary/Djinja
ca3824b70a561de97e0cf9cfbd21dd70997f5fad
[ "BSD-3-Clause" ]
1
2019-06-17T01:33:54.000Z
2019-06-17T01:33:54.000Z
"""Jinja2-ports of many of Django's default filters. TODO: Most of the filters in here need to be updated for autoescaping. TAKED FROM COFFIN: https://github.com/cdleary/coffin (and adapted for djinja library) """ from djinja.template.base import Library from jinja2.runtime import Undefined from django.utils.safestr...
32.208054
90
0.694103
ef303a9304466954fe71cfcd94eccda3dfa6be4e
1,150
py
Python
contract_api/domain/models/ui_content_banner.py
rajeevbbqq/snet-marketplace-service
49a3be1edd6f78e449fe6b8a827ffa006ea0c2be
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
contract_api/domain/models/ui_content_banner.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
contract_api/domain/models/ui_content_banner.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
class Banner(object): def __init__(self, id, image, image_alignment, alt_text, title, rank, description): self.__id = id self.__image = image self.__image_alignment = image_alignment self.__alt_text = alt_text self.__title = title self.__rank = rank ...
23
67
0.581739
4096955df82c77f9a287ceb153b37335f6574c79
6,333
py
Python
sdk/python/feast/types/FeatureRow_pb2.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/types/FeatureRow_pb2.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/types/FeatureRow_pb2.py
tims/feast
3499b6576b55afd5b37fa1b9a38c817ed6aa1b1a
[ "Apache-2.0" ]
1
2019-05-27T03:50:27.000Z
2019-05-27T03:50:27.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: feast/types/FeatureRow.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refle...
41.940397
732
0.764251
2db34ef775ff3f35363ff4e8026f2c8aefdd8208
9,196
py
Python
oslo_db/exception.py
calsoft-internal/oslo.db-internal
e26d400008c383f5d31c70e674259c902254f3d5
[ "Apache-2.0" ]
62
2015-01-29T20:10:46.000Z
2021-12-02T16:53:26.000Z
oslo_db/exception.py
calsoft-internal/oslo.db-internal
e26d400008c383f5d31c70e674259c902254f3d5
[ "Apache-2.0" ]
null
null
null
oslo_db/exception.py
calsoft-internal/oslo.db-internal
e26d400008c383f5d31c70e674259c902254f3d5
[ "Apache-2.0" ]
68
2015-01-13T07:05:13.000Z
2021-12-02T16:53:28.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
30.755853
79
0.71455
25f62c55236d43bc8db910c7fd8a48a1d2f61cc3
5,083
py
Python
python/onshape_client/oas/models/bt_part_appearance_info.py
toebes/onshape-clients
a26cf6a77cfc7901321e603d5a097e23eb51e35c
[ "MIT" ]
14
2019-06-23T08:47:41.000Z
2021-11-29T16:28:45.000Z
python/onshape_client/oas/models/bt_part_appearance_info.py
toebes/onshape-clients
a26cf6a77cfc7901321e603d5a097e23eb51e35c
[ "MIT" ]
40
2019-05-22T14:39:46.000Z
2022-03-10T10:36:17.000Z
python/onshape_client/oas/models/bt_part_appearance_info.py
toebes/onshape-clients
a26cf6a77cfc7901321e603d5a097e23eb51e35c
[ "MIT" ]
24
2019-06-02T01:03:41.000Z
2022-03-29T13:25:36.000Z
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 The version of the OpenAPI document: 1.113 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 im...
32.793548
84
0.602597
907b75b27e8ccbf7f4afdf131e7d5b789b7e778b
4,288
py
Python
model/upload_config.py
H3C/hdm-redfish-script
384b2f11de82c3681a435ffe3671dd215d1a0baa
[ "Apache-2.0" ]
4
2021-03-25T01:18:23.000Z
2022-03-09T03:43:52.000Z
model/upload_config.py
H3C/hdm-redfish-script
384b2f11de82c3681a435ffe3671dd215d1a0baa
[ "Apache-2.0" ]
null
null
null
model/upload_config.py
H3C/hdm-redfish-script
384b2f11de82c3681a435ffe3671dd215d1a0baa
[ "Apache-2.0" ]
1
2022-03-09T03:44:00.000Z
2022-03-09T03:44:00.000Z
### # Copyright 2021 New H3C Technologies Co., Ltd. # # 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 applicab...
38.981818
80
0.577192
0adfa237571ea4159f020e726bccb6b0db10a7bc
35,566
py
Python
toontown/coghq/DistributedLawbotCannon.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
8
2017-10-10T11:41:01.000Z
2021-02-23T12:55:47.000Z
toontown/coghq/DistributedLawbotCannon.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/coghq/DistributedLawbotCannon.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
2
2019-04-06T16:18:23.000Z
2021-02-25T06:25:01.000Z
from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.task.Task import Task from direct.distributed import DistributedObject from direct.directnotify import DirectNotifyGlobal from pandac.PandaModules import CollisionSphere, CollisionNode from toontown.toonbase import Toon...
40.142212
958
0.623348
21814bbc0f5f401c7d77a40ad51219a5792d4352
747
py
Python
bitbucket_cli/config.py
sbmueller/bitbucket-cli
fa81974bd3d4fcddcf975ea60b487dce93d4e597
[ "MIT" ]
1
2020-11-19T20:48:28.000Z
2020-11-19T20:48:28.000Z
bitbucket_cli/config.py
sbmueller/bitbucket-cli
fa81974bd3d4fcddcf975ea60b487dce93d4e597
[ "MIT" ]
null
null
null
bitbucket_cli/config.py
sbmueller/bitbucket-cli
fa81974bd3d4fcddcf975ea60b487dce93d4e597
[ "MIT" ]
null
null
null
import json import os from typing import Union class Config: """Represents a configuration database stored in a JSON file.""" def __init__(self, path: str): """ C'tor. :param str path: Path to the configuration file """ if not os.path.exists(path): raise F...
25.758621
76
0.585007
50ae8829f8cefecb48e2b7b9618f42735acfdb98
474
py
Python
Module2/assignment2.py
galinams/Programming-with-Python-for-Data-Science
9f37a6698b58becbfccc8ef44df73104c3f8e858
[ "MIT" ]
null
null
null
Module2/assignment2.py
galinams/Programming-with-Python-for-Data-Science
9f37a6698b58becbfccc8ef44df73104c3f8e858
[ "MIT" ]
null
null
null
Module2/assignment2.py
galinams/Programming-with-Python-for-Data-Science
9f37a6698b58becbfccc8ef44df73104c3f8e858
[ "MIT" ]
null
null
null
import pandas as pd # TODO: Load up the 'tutorial.csv' dataset # df = pd.read_csv('C:/DAT207x/Programming with Python for Data Science/Module2/Datasets/tutorials.csv') print df.head() print df.describe() print df.loc[2:4, 'col3'] # TODO: Print the results of the .describe() method # # .. your code here .. # TODO:...
20.608696
102
0.700422
2bc1e4bb334845943da069b15a656c66abfaa39c
6,494
py
Python
my_account/my_account/doctype/frappeclient.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
my_account/my_account/doctype/frappeclient.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
my_account/my_account/doctype/frappeclient.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
import requests import json from StringIO import StringIO import frappe class AuthError(Exception): pass class FrappeException(Exception): pass class NotUploadableException(FrappeException): def __init__(self, doctype): self.message = "The doctype `{1}` is not uploadable, so you can't download the template".for...
25.466667
106
0.68109
5419f4d5127f6f217ed5c1689bb9840d0bb2150c
21,539
py
Python
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/frame/test_block_internals.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/frame/test_block_internals.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/frame/test_block_internals.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime, timedelta import itertools import numpy as np import pytest from pandas.compat import StringIO import pandas as pd from pandas import ( Categorical, DataFrame, Series, Timestamp, compat, date_range, option_context)...
36.630952
79
0.559125
04177a064f92c5de0d93c7845d7daf5cd87669aa
7,583
py
Python
test/functional/test_framework/test_node.py
caapisas88/lukcore
08180eb199c61f6f6c26e13fb0f2a0463f7606a7
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
caapisas88/lukcore
08180eb199c61f6f6c26e13fb0f2a0463f7606a7
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
caapisas88/lukcore
08180eb199c61f6f6c26e13fb0f2a0463f7606a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for lukd node under test""" import decimal import errno import http.client import json import logging...
39.701571
248
0.63616
880e08a9c22c71702de9a8ff57fc35c2786af2d4
374
py
Python
build/chessbot/catkin_generated/pkg.installspace.context.pc.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
build/chessbot/catkin_generated/pkg.installspace.context.pc.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
build/chessbot/catkin_generated/pkg.installspace.context.pc.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "chessbot" PROJECT_SPACE_DIR = "/home/...
41.555556
68
0.705882
26dc92d41832b4f9f1e146bc0323c4b1211843a4
6,380
py
Python
postman/utils.py
wtayyeb/django-postman
8a822865fef5ac0938fbfbec246ea6918c78bd79
[ "BSD-3-Clause" ]
null
null
null
postman/utils.py
wtayyeb/django-postman
8a822865fef5ac0938fbfbec246ea6918c78bd79
[ "BSD-3-Clause" ]
null
null
null
postman/utils.py
wtayyeb/django-postman
8a822865fef5ac0938fbfbec246ea6918c78bd79
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals try: from importlib import import_module except ImportError: from django.utils.importlib import import_module # Django 1.6 / py2.6 import re import sys from textwrap import TextWrapper from django import VERSION from django.conf import settings from django.template impo...
44.305556
128
0.704075
43049687b6b22b7d2e24b3135a2d326359bdbeeb
793
py
Python
tourney/command.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
tourney/command.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
tourney/command.py
seangeggie/tourney
405b6abd35d7501a094b3fd4a8d5fd215f073912
[ "MIT" ]
null
null
null
import re from .config import Config from .constants import COMMAND_REGEX, PRIVILEGED_COMMANDS class Command: """Command encapsulates a command issued by a user and with optional arguments.""" def __init__(self, user_id, command, args=""): self.user_id = user_id self.command = command.strip().lower() ...
29.37037
84
0.684741
842a8a6704249711fc05e228b802842920da6b5b
4,296
py
Python
aepp/sensei.py
awiddie/aepp
44588a6a6345da6b729e8e5e08c9968741a450dc
[ "Apache-2.0" ]
null
null
null
aepp/sensei.py
awiddie/aepp
44588a6a6345da6b729e8e5e08c9968741a450dc
[ "Apache-2.0" ]
null
null
null
aepp/sensei.py
awiddie/aepp
44588a6a6345da6b729e8e5e08c9968741a450dc
[ "Apache-2.0" ]
1
2022-02-22T08:58:00.000Z
2022-02-22T08:58:00.000Z
# internal library import aepp from aepp import connector class Sensei: """ This module is based on the Sensei Machine Learning API from Adobe Experience Platform. You can find more documentation on the endpoints here : https://www.adobe.io/apis/experienceplatform/home/api-reference.html#/ """ def...
39.054545
130
0.596601
dd8dea979599c5ea5331d0926ea36b20426bb0b4
571
py
Python
bitmovin_api_sdk/general/error_definitions/api_error_definition_list_query_params.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/general/error_definitions/api_error_definition_list_query_params.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/general/error_definitions/api_error_definition_list_query_params.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
class ApiErrorDefinitionListQueryParams(object): def __init__(self, offset=None, limit=None): # type: (int, int) -> None super(ApiErrorDefinitionListQueryParams, self).__init__() self.offset = offset self.limit = limit @property def openapi_types(self): types = { ...
21.961538
65
0.541156
1bc6e62a974481704693ed29304a7f51e95f7cb5
36,213
py
Python
tests/viz_tests.py
cih999/incubator-superset
554d8d7698bb333070e8373491bc91c71eefc322
[ "Apache-2.0" ]
null
null
null
tests/viz_tests.py
cih999/incubator-superset
554d8d7698bb333070e8373491bc91c71eefc322
[ "Apache-2.0" ]
null
null
null
tests/viz_tests.py
cih999/incubator-superset
554d8d7698bb333070e8373491bc91c71eefc322
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime import unittest from mock import Mock, patch import pandas as pd from superset.utils import DTTM_ALIAS import supe...
38.401909
89
0.491371
509cb3daecb83b54c5d0553f50578717e9ae806a
1,339
py
Python
scripts/price_exercise_scripts/01_Deploy_PriceExercise.py
Bingyy/dev-bootcamp-brownie
aedec9f2dec156cb0c9af3ea41ab0cf63ae3faf7
[ "MIT" ]
null
null
null
scripts/price_exercise_scripts/01_Deploy_PriceExercise.py
Bingyy/dev-bootcamp-brownie
aedec9f2dec156cb0c9af3ea41ab0cf63ae3faf7
[ "MIT" ]
null
null
null
scripts/price_exercise_scripts/01_Deploy_PriceExercise.py
Bingyy/dev-bootcamp-brownie
aedec9f2dec156cb0c9af3ea41ab0cf63ae3faf7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from brownie import MockV3Aggregator, PriceExercise, LinkToken, MockOracle, config, network from scripts.helpful_scripts import ( get_account, get_verify_status, LOCAL_BLOCKCHAIN_ENVIRONMENTS, ) from scripts.deploy_mocks import deploy_mocks def deploy_price_exercise(): jobId = co...
31.139535
91
0.67065
6f58dc849b5894e18d0c26a1e6e2de7c64b1a551
117
py
Python
needle/kpi.py
prophile/needle-prototype
7536739bd3b865f2c793b7ac66c9835b2d64e70e
[ "MIT" ]
null
null
null
needle/kpi.py
prophile/needle-prototype
7536739bd3b865f2c793b7ac66c9835b2d64e70e
[ "MIT" ]
null
null
null
needle/kpi.py
prophile/needle-prototype
7536739bd3b865f2c793b7ac66c9835b2d64e70e
[ "MIT" ]
null
null
null
import collections KPI = collections.namedtuple('KPI', ( 'name', 'description', 'model', 'sql', ))
11.7
37
0.57265
4a4babf4f405d59b2b3e36ed74c61d5cd2578f56
22,429
py
Python
tests/test_project.py
marc-hb/west
57a913f90cc3847273069dc61e4a362fb15415ef
[ "Apache-2.0" ]
null
null
null
tests/test_project.py
marc-hb/west
57a913f90cc3847273069dc61e4a362fb15415ef
[ "Apache-2.0" ]
null
null
null
tests/test_project.py
marc-hb/west
57a913f90cc3847273069dc61e4a362fb15415ef
[ "Apache-2.0" ]
null
null
null
import os import re import subprocess import textwrap import pytest from west import configuration as config from conftest import create_repo, add_commit, check_output, cmd, GIT, rev_parse # # Test fixtures # @pytest.fixture def west_update_tmpdir(west_init_tmpdir): '''Like west_init_tmpdir, but also runs west ...
37.63255
138
0.578448
dd827bd4ca0517617d2129b778f31d591e4e5780
2,360
py
Python
src/zakhar_pycore/ros/get.py
an-dr/zakhar_pycore
eea81a7b47c1957ebb44d0bd5bc1929db852892a
[ "MIT" ]
null
null
null
src/zakhar_pycore/ros/get.py
an-dr/zakhar_pycore
eea81a7b47c1957ebb44d0bd5bc1929db852892a
[ "MIT" ]
1
2021-12-03T23:45:42.000Z
2021-12-03T23:45:42.000Z
src/zakhar_pycore/ros/get.py
an-dr/zakhar_pycore
eea81a7b47c1957ebb44d0bd5bc1929db852892a
[ "MIT" ]
null
null
null
import rospy from rospy.client import _unspecified from time import time, sleep from typing import Any def server(name, service, handle): """ Parameters ---------- name : str service : Any handle : fn(req)->resp """ rospy.logdebug("Service \'%s\' is loading..." % name) s = rospy.Se...
26.818182
77
0.588136
c55c8198409c1a539bb7c2b7e5cbeecc24a4bd1e
4,740
py
Python
model.py
KentonParton/autonomous_driving_behavior_cloning
be02950e943bd7a49bac3c48714f86a8e5e11b1f
[ "MIT" ]
1
2019-10-26T14:16:59.000Z
2019-10-26T14:16:59.000Z
model.py
KentonParton/autonomous_driving_behavior_cloning
be02950e943bd7a49bac3c48714f86a8e5e11b1f
[ "MIT" ]
null
null
null
model.py
KentonParton/autonomous_driving_behavior_cloning
be02950e943bd7a49bac3c48714f86a8e5e11b1f
[ "MIT" ]
null
null
null
import os import csv import cv2 import numpy as np import sklearn from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense, Lambda, Cropping2D, Flatten, Dropout from keras.layers.convolutional import Convolution2D from keras.regularizers import l2, activit...
32.916667
94
0.660338
345ebd2c9af9b4509e2d2ee019d2c8a4305044c3
22,393
py
Python
999dice.py
rafid1841/bot
92ea427ca0f70b092b5855b04f633d5b11b51463
[ "Unlicense" ]
null
null
null
999dice.py
rafid1841/bot
92ea427ca0f70b092b5855b04f633d5b11b51463
[ "Unlicense" ]
null
null
null
999dice.py
rafid1841/bot
92ea427ca0f70b092b5855b04f633d5b11b51463
[ "Unlicense" ]
null
null
null
import marshal #Premium Only exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sz\x04\x00\x00d\x00d\x01l\x00Z\x00d\x00d\x01l\x01Z\x01d\x00d\x01l\x02Z\x02d\x00d\x01l\x03Z\x03d\x00d\x01l\x04Z\x04d\x00d\x01l\x05Z\x05d\x00d\x01l\x06Z\x06d\x00d\x01l\x07Z\x0...
7,464.333333
22,362
0.750324
a2bb168c1e2daf64e3736540dc80bef1918c26e1
883
py
Python
pandas/_typing.py
HolgerSpernau/pandas
231a3ce467da04cdfe5bfb4ba37ef91610834ded
[ "BSD-3-Clause" ]
null
null
null
pandas/_typing.py
HolgerSpernau/pandas
231a3ce467da04cdfe5bfb4ba37ef91610834ded
[ "BSD-3-Clause" ]
null
null
null
pandas/_typing.py
HolgerSpernau/pandas
231a3ce467da04cdfe5bfb4ba37ef91610834ded
[ "BSD-3-Clause" ]
1
2020-08-21T08:00:10.000Z
2020-08-21T08:00:10.000Z
from pathlib import Path from typing import IO, AnyStr, TypeVar, Union import numpy as np from pandas._libs import Timestamp from pandas._libs.tslibs.period import Period from pandas._libs.tslibs.timedeltas import Timedelta from pandas.core.dtypes.dtypes import ExtensionDtype from pandas.core.dtypes.generic import (...
35.32
69
0.681767
a28d1e46834914c3ff32a1b0a97d4010cfdd99dd
39,784
py
Python
src/ccblade.py
andrewning/CCBlade
3dea2836e13d11427ae1704c370b16b5af2b13c5
[ "Apache-2.0" ]
1
2018-11-21T07:11:45.000Z
2018-11-21T07:11:45.000Z
src/ccblade.py
andrewning/CCBlade
3dea2836e13d11427ae1704c370b16b5af2b13c5
[ "Apache-2.0" ]
null
null
null
src/ccblade.py
andrewning/CCBlade
3dea2836e13d11427ae1704c370b16b5af2b13c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ ccblade.py Created by S. Andrew Ning on 5/11/2012 Copyright (c) NREL. All rights reserved. A blade element momentum method using theory detailed in [1]_. Has the advantages of guaranteed convergence and at a superlinear rate, and continuously differentiable output. .. [1]...
36.233151
133
0.552232
e6c708b858c57fd9885959655cca416a55f17d53
3,990
py
Python
tests/test_firstbook.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
16
2016-06-27T18:09:37.000Z
2021-12-07T15:20:52.000Z
tests/test_firstbook.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
809
2016-01-25T15:41:05.000Z
2022-03-29T16:12:38.000Z
tests/test_firstbook.py
tdilauro/simplified-circulation
f52d333616f63e2bff0cf1de98ef301bf152fba1
[ "Apache-2.0" ]
19
2016-05-06T16:18:50.000Z
2021-05-01T06:33:18.000Z
import pytest import os from api.authenticator import ( PatronData, ) from api.config import ( Configuration, temp_config, ) from api.firstbook import ( FirstBookAuthenticationAPI, MockFirstBookAuthenticationAPI, ) from api.circulation_exceptions import ( RemoteInitiatedServerError ) from c...
36.944444
91
0.680952
7d646769b5f5ff55d0c72046e3daabb126acb018
3,454
py
Python
main/libunwind-cross/template.py
mahiuchun/cports
37315875922d65a6d4f612cdc17bc0d88856d6d0
[ "BSD-2-Clause" ]
null
null
null
main/libunwind-cross/template.py
mahiuchun/cports
37315875922d65a6d4f612cdc17bc0d88856d6d0
[ "BSD-2-Clause" ]
null
null
null
main/libunwind-cross/template.py
mahiuchun/cports
37315875922d65a6d4f612cdc17bc0d88856d6d0
[ "BSD-2-Clause" ]
null
null
null
pkgname = "libunwind-cross" version = "12.0.0" revision = 0 build_style = "cmake" configure_args = [ "-DCMAKE_BUILD_TYPE=Release", "-Wno-dev", "-DCMAKE_C_COMPILER=/usr/bin/clang", "-DCMAKE_CXX_COMPILER=/usr/bin/clang++", "-DCMAKE_AR=/usr/bin/llvm-ar", "-DCMAKE_NM=/usr/bin/llvm-nm", "-DCMAKE_RANL...
31.117117
113
0.60857
5a948af67a089038dcc3c77c987be79e3614b656
296
py
Python
app/test_settings.py
aldookware/IT-Support-Tracker
3d9436d0612afed5be8885246b7c998523957d72
[ "Apache-2.0" ]
1
2018-10-12T18:15:28.000Z
2018-10-12T18:15:28.000Z
app/test_settings.py
aldookware/IT-Support-Tracker
3d9436d0612afed5be8885246b7c998523957d72
[ "Apache-2.0" ]
2
2018-11-12T19:31:45.000Z
2020-01-02T18:51:53.000Z
app/test_settings.py
aldookware/IT-Support-Tracker
3d9436d0612afed5be8885246b7c998523957d72
[ "Apache-2.0" ]
null
null
null
from .settings import * # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } EMAIL_BACKENDS = 'django.core.mail.backends.locmem.EmailBackend'
21.142857
65
0.625
66ce05132bb751be6e55c470e88cb650e02c0f5a
5,122
py
Python
app.py
Eson-Jia/flaskex
2dbdf2aab8d790e3a040ca41a8fc12f40ce890e9
[ "MIT" ]
null
null
null
app.py
Eson-Jia/flaskex
2dbdf2aab8d790e3a040ca41a8fc12f40ce890e9
[ "MIT" ]
null
null
null
app.py
Eson-Jia/flaskex
2dbdf2aab8d790e3a040ca41a8fc12f40ce890e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid import numpy as np from werkzeug.utils import secure_filename from scripts import tabledef from scripts import forms from scripts import helpers from flask import Flask, redirect, url_for, render_template, request, session, flash import json import sys import os import cv2 as cv f...
35.818182
84
0.561695
c21e81da59d97dfaeac10a9cfa7e59c4b4792784
7,631
py
Python
tests/unit/modules/test_supervisord.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_supervisord.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2017-07-10T21:44:39.000Z
2017-07-10T21:44:39.000Z
tests/unit/modules/test_supervisord.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
null
null
null
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import salt.modules.supervisord as supervisord from salt.exceptions import CommandExecutionError from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase class Supervi...
29.46332
99
0.543965
d1cb8996032d10b1c53ade6890f08c003170b695
368
py
Python
data_collection/data_collection/pipelines.py
Sirkirill/Stepik_data_process
20106cfb709b4bf10383054fa236c220cdc50c3e
[ "MIT" ]
1
2021-07-01T09:10:26.000Z
2021-07-01T09:10:26.000Z
data_collection/data_collection/pipelines.py
Sirkirill/Stepik_data_process
20106cfb709b4bf10383054fa236c220cdc50c3e
[ "MIT" ]
1
2021-06-30T18:36:56.000Z
2021-06-30T18:36:56.000Z
data_collection/data_collection/pipelines.py
Sirkirill/Stepik_data_process
20106cfb709b4bf10383054fa236c220cdc50c3e
[ "MIT" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class DataCollectionPipeline: def proces...
26.285714
66
0.771739
5d555f5bde8ec4a1c60762da25f4eccccc5dcc82
2,386
py
Python
catalyst/contrib/models/cv/segmentation/blocks/psp.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
1
2021-03-02T12:06:32.000Z
2021-03-02T12:06:32.000Z
catalyst/contrib/models/cv/segmentation/blocks/psp.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/models/cv/segmentation/blocks/psp.py
gr33n-made/catalyst
bd413abc908ef7cbdeab42b0e805277a791e3ddb
[ "Apache-2.0" ]
1
2021-06-11T16:33:30.000Z
2021-06-11T16:33:30.000Z
# flake8: noqa # @TODO: code formatting issue for 20.07 release from typing import Tuple from functools import partial import torch from torch import nn from torch.nn import functional as F from catalyst.contrib.models.cv.segmentation.abn import ABN from catalyst.contrib.models.cv.segmentation.blocks.core import _get...
28.404762
98
0.568734
800967f19b2b12494eeff41556b36cdf14a64da4
2,069
py
Python
tests/test_Atmosphere.py
ALR-Aerospace/pyAPP6Tools
4b95763d9d762b0a8dec2ff0642953f9038d0bed
[ "MIT" ]
3
2020-07-21T01:50:55.000Z
2021-09-04T03:13:57.000Z
tests/test_Atmosphere.py
ALR-Aerospace/pyAPP6Tools
4b95763d9d762b0a8dec2ff0642953f9038d0bed
[ "MIT" ]
1
2016-10-19T16:12:12.000Z
2016-10-19T16:12:12.000Z
tests/test_Atmosphere.py
ALR-Aerospace/pyAPP6Tools
4b95763d9d762b0a8dec2ff0642953f9038d0bed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 01 18:38:20 2016 @author: alr """ import unittest from pyAPP6Tools import Atmosphere class TestAtmosphere(unittest.TestCase): def setUp(self): pass def test_PressureAltitude_SLS(self): self.assertEqual(Atmosphere.getPressureAlt(...
35.672414
110
0.691155
be8911bf1786aade9ea70c8868ca41b3cdc58004
293
py
Python
utils/fasta.py
gurch101/rosalind
db41427e69ab4f1ee304b49c93ce23755cb36682
[ "MIT" ]
null
null
null
utils/fasta.py
gurch101/rosalind
db41427e69ab4f1ee304b49c93ce23755cb36682
[ "MIT" ]
null
null
null
utils/fasta.py
gurch101/rosalind
db41427e69ab4f1ee304b49c93ce23755cb36682
[ "MIT" ]
null
null
null
def read_samples(hdl): contents = hdl.read() matches = contents[1:].split('>') samples = [] for match in matches: sample = match.split('\n') samples.append({ 'id': sample[0], 'sequence': ''.join(sample[1:]) }) return samples
24.416667
43
0.508532
b600dbacc653691e294ecf0a17ec5844566503bc
76
py
Python
data/studio21_generated/interview/0384/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/0384/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/0384/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
class Solution: def sumSubseqWidths(self, A: List[int]) -> int:
25.333333
51
0.605263
0ec3063184c6880796c598061ccaf0e8f5f78548
10,699
py
Python
pgbedrock/attributes.py
KairosAerospace/pgbedrock
1dd953214df71f479642f5918b1bdd65d7f5bf5f
[ "Apache-2.0" ]
null
null
null
pgbedrock/attributes.py
KairosAerospace/pgbedrock
1dd953214df71f479642f5918b1bdd65d7f5bf5f
[ "Apache-2.0" ]
null
null
null
pgbedrock/attributes.py
KairosAerospace/pgbedrock
1dd953214df71f479642f5918b1bdd65d7f5bf5f
[ "Apache-2.0" ]
null
null
null
import copy import datetime as dt import hashlib import logging import click import psycopg2 from pgbedrock import common from pgbedrock.context import DatabaseContext logger = logging.getLogger(__name__) UNKNOWN_ATTRIBUTE_MSG = "Unknown attribute '{}' provided to ALTER ROLE" UNSUPPORTED_CHAR_MSG = 'Password for r...
41.30888
106
0.650341
3b3fa0fc4c1b1d05209259cd4ff91d0179927719
1,376
py
Python
app/contacts/contact_udp.py
mihaid-b/caldera
90af73188a9865757c167efd31cbd87a8e6160b1
[ "Apache-2.0" ]
3,385
2017-11-29T02:08:31.000Z
2022-03-31T13:38:11.000Z
app/contacts/contact_udp.py
mihaid-b/caldera
90af73188a9865757c167efd31cbd87a8e6160b1
[ "Apache-2.0" ]
1,283
2017-11-29T16:45:31.000Z
2022-03-31T20:10:04.000Z
app/contacts/contact_udp.py
mihaid-b/caldera
90af73188a9865757c167efd31cbd87a8e6160b1
[ "Apache-2.0" ]
800
2017-11-29T17:48:43.000Z
2022-03-30T22:39:40.000Z
import asyncio import json from app.contacts.handles.h_beacon import Handle from app.utility.base_world import BaseWorld class Contact(BaseWorld): def __init__(self, services): self.name = 'udp' self.description = 'Accept streaming messages via UDP' self.log = self.create_logger('contact...
32
102
0.626453
40b9b25adc9d8f0ffdc14315c16e26bc73df7efa
2,279
py
Python
test/field_range.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
test/field_range.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
test/field_range.py
LaudateCorpus1/nosql-python-sdk
e28a8742a99815c236647d55f425929c790408de
[ "UPL-1.0", "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved. # # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl/ # import unittest from borneo import FieldRange, IllegalArgumentException, MultiDeleteRequest from parameters import table_name,...
36.174603
78
0.690215
b092e114642279ff92d8e96c39ed2484b07e9299
864
py
Python
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/TestGAMBITReader.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2019-05-30T01:52:12.000Z
2021-09-29T21:12:13.000Z
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/TestGAMBITReader.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/TestGAMBITReader.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Read some Fluent GAMBIT in ASCII form reader = vtk.vtkGAMBITReader() reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/prism.neu") mapper = vtk.vtkDataSetMapper() mapper...
29.793103
66
0.751157
8f47c8aac84d3f044788d9f8f08fe5315205e0fd
13,207
py
Python
BigramModel_AutoCorrect/BigramModel.py
luisegarduno/NLP-Projects
f02924b5f6cbe47eb7e38794c709c1a906bb422d
[ "MIT" ]
1
2021-04-19T07:18:45.000Z
2021-04-19T07:18:45.000Z
BigramModel_AutoCorrect/BigramModel.py
luisegarduno/NLP-Projects
f02924b5f6cbe47eb7e38794c709c1a906bb422d
[ "MIT" ]
3
2021-04-28T06:59:43.000Z
2021-05-02T09:07:23.000Z
BigramModel_AutoCorrect/BigramModel.py
luisegarduno/NLP-Projects
f02924b5f6cbe47eb7e38794c709c1a906bb422d
[ "MIT" ]
null
null
null
import os import copy class BigramModel: corpus_files = [] full_dirName = '' total_words = 0 corpus = [{'w': '', 'f': 0}] corpus.pop() word_list_StartEnd = [] # ----------------------------------------------------------------------------------------------------- def __init__(self, name=...
41.015528
146
0.452109
a2c4b885fef3dee4c72ce7a5f958147e48b14d27
356
py
Python
src/fractal/world/fractum/placement/pulse/constant.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/fractum/placement/pulse/constant.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/world/fractum/placement/pulse/constant.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
""" *when smoothly...* """ class Smoothly( When, ): def when_smoothly(self): pass # struct ConstSchedule{R} <: AbstractSchedule{R} # value :: R # end # Base.getindex(s::ConstSchedule, i::Int) = s.value # Base.convert(::Type{ConstSchedule{R}}, x::R) where {R <: Number} = # ConstSchedule(x...
12.275862
68
0.573034
480e21fb3af61b040c7cc997a79233d84eaac82c
68
py
Python
tomaty-run.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
5
2018-03-29T16:27:36.000Z
2020-06-14T15:19:19.000Z
tomaty-run.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
29
2018-03-29T16:29:43.000Z
2018-04-24T02:03:13.000Z
tomaty-run.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
2
2018-03-29T16:27:39.000Z
2018-03-29T20:42:03.000Z
from tomaty.tomaty import run if __name__ == '__main__': run()
13.6
29
0.676471
80f15b7e958bb8c291fc796e1edc7cc873c5310b
7,653
py
Python
src/dataset_urban3d.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
1
2021-04-28T08:29:28.000Z
2021-04-28T08:29:28.000Z
src/dataset_urban3d.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
null
null
null
src/dataset_urban3d.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
1
2021-01-27T21:52:07.000Z
2021-01-27T21:52:07.000Z
import numpy as np from mrcnn import utils import skimage.io import src.dataset as ds import src.image_tools as it from mrcnn import visualize import os, random class Urban3dDataset(utils.Dataset): def __init__(self, imagetype = "rgb"): super().__init__() self.imagetype = imagetype.upper() ...
36.270142
152
0.623546
ad35a3d33f53574f9fa8ec51619fdb6b4847ba77
14,869
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aatp_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aatp_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aatp_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
44.651652
625
0.660905
b587521161838a7b5d4459241f6436de7da50b1a
7,936
py
Python
src/hieroglyph/tests/util.py
pydanny/hieroglyph
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
[ "BSD-3-Clause" ]
1
2018-07-24T12:06:20.000Z
2018-07-24T12:06:20.000Z
src/hieroglyph/tests/util.py
pydanny/hieroglyph
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
[ "BSD-3-Clause" ]
null
null
null
src/hieroglyph/tests/util.py
pydanny/hieroglyph
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
[ "BSD-3-Clause" ]
1
2018-07-24T12:05:59.000Z
2018-07-24T12:05:59.000Z
# -*- coding: utf-8 -*- """ Sphinx test suite utilities ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. This is largely lifted directly from the Sphinx repository, because the Sphinx test directory isn't inclu...
29.284133
80
0.594002
7a338c11e5bbf37f6b4c11e3c6f2d8b821d24718
12,653
py
Python
terra_notebook_utils/drs.py
Qi77Qi/terra-notebook-utils
3be1af56fb991a7f242c63b5a509675ac176f140
[ "MIT" ]
null
null
null
terra_notebook_utils/drs.py
Qi77Qi/terra-notebook-utils
3be1af56fb991a7f242c63b5a509675ac176f140
[ "MIT" ]
null
null
null
terra_notebook_utils/drs.py
Qi77Qi/terra-notebook-utils
3be1af56fb991a7f242c63b5a509675ac176f140
[ "MIT" ]
null
null
null
"""Utilities for working with DRS objects.""" import os import traceback from functools import lru_cache from collections import namedtuple from typing import Dict, List, Tuple, Optional, Union from requests import Response from terra_notebook_utils import utils, WORKSPACE_GOOGLE_PROJECT, WORKSPACE_BUCKET, WORKSPACE_...
41.759076
112
0.659844
6ce52e17eea83387eab473dbe1cb6f481b420ba7
393
py
Python
demo/myimages/asgi.py
ResonantGeoData/django-large-image
43c9ef62d83c4d6f33d3b49cc41f2c678f296584
[ "Apache-2.0" ]
4
2021-12-19T09:26:39.000Z
2022-02-14T07:34:39.000Z
demo/myimages/asgi.py
ResonantGeoData/django-large-image
43c9ef62d83c4d6f33d3b49cc41f2c678f296584
[ "Apache-2.0" ]
19
2021-12-19T10:01:25.000Z
2022-03-31T21:40:12.000Z
demo/myimages/asgi.py
ResonantGeoData/django-large-image
43c9ef62d83c4d6f33d3b49cc41f2c678f296584
[ "Apache-2.0" ]
null
null
null
""" ASGI config for myimages 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/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
d2f0ef8ee1fb1250340dee3bc64fb994fa5160e4
13,075
py
Python
rlchemy/lib/data/buffers.py
Ending2015a/rlchemy
42b1ed3d5654dd28cffd99de0db62584356228d4
[ "MIT" ]
null
null
null
rlchemy/lib/data/buffers.py
Ending2015a/rlchemy
42b1ed3d5654dd28cffd99de0db62584356228d4
[ "MIT" ]
null
null
null
rlchemy/lib/data/buffers.py
Ending2015a/rlchemy
42b1ed3d5654dd28cffd99de0db62584356228d4
[ "MIT" ]
null
null
null
# --- built in --- import abc import math from typing import ( Any, Dict, Iterable, KeysView, Optional, Tuple, Union ) import collections # --- 3rd party --- import numpy as np # --- my module --- from rlchemy.lib import utils as rl_utils from rlchemy.lib import registry as rl_registry f...
30.620609
78
0.632122
086103553423b50a9e35633497a137d23684c816
5,295
py
Python
polyglotdb/io/parsers/partitur.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
polyglotdb/io/parsers/partitur.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
polyglotdb/io/parsers/partitur.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
import re import os from polyglotdb.io.parsers.base import BaseParser # , PGAnnotation, PGAnnotationType, DiscourseData from .speaker import FilenameSpeakerParser from .speaker import DirectorySpeakerParser from .base import DiscourseData class PartiturParser(BaseParser): _extensions = ['.par,2'] def __in...
28.467742
100
0.550519
f62a9e24ca121bfd404ebd1939ba5fc51cde0cd2
67
py
Python
helloworld/cli.py
vitorbaptista/pyconuk-helloworld
d462a6c8e06e7fc7a3287c195bc37cd195f35436
[ "MIT" ]
1
2016-09-19T08:26:25.000Z
2016-09-19T08:26:25.000Z
helloworld/cli.py
vitorbaptista/pyconuk-helloworld
d462a6c8e06e7fc7a3287c195bc37cd195f35436
[ "MIT" ]
1
2017-12-21T18:43:36.000Z
2017-12-21T18:43:36.000Z
helloworld/cli.py
vitorbaptista/pyconuk-helloworld
d462a6c8e06e7fc7a3287c195bc37cd195f35436
[ "MIT" ]
null
null
null
import helloworld def main(): print(helloworld.helloworld())
11.166667
34
0.716418
3d5184cf101fe1761c4897977097dac68ee67cb6
2,312
py
Python
SVGVideoMaker/geo/point.py
evayann/svg_video_maker
bd2c28b125f47da82b1835e36fa6c1e078f5cba6
[ "MIT" ]
3
2020-07-16T09:46:41.000Z
2021-09-07T08:34:58.000Z
SVGVideoMaker/geo/point.py
evayann/SVGVideoMaker
bd2c28b125f47da82b1835e36fa6c1e078f5cba6
[ "MIT" ]
null
null
null
SVGVideoMaker/geo/point.py
evayann/SVGVideoMaker
bd2c28b125f47da82b1835e36fa6c1e078f5cba6
[ "MIT" ]
null
null
null
""" Multi dimensional point and 2D point """ # region Imports from SVGVideoMaker.geo.ellipse import Circle # endregion Imports class Point(Circle): """ Initialize 2D point Args: coordinates (list of float) : List of all coordinates on differents axes of point. id (str) :...
33.507246
105
0.597751
ed800e7b1521335f70347180ba48f8b24d10d6fc
7,875
py
Python
test/functional/rpc_users.py
diabloblack/tooncoin
3c7c73b4f5f3ab342e23c982d7c28fea1f549c98
[ "MIT" ]
1
2019-07-07T23:53:42.000Z
2019-07-07T23:53:42.000Z
test/functional/rpc_users.py
diabloblack/tooncoin
3c7c73b4f5f3ab342e23c982d7c28fea1f549c98
[ "MIT" ]
null
null
null
test/functional/rpc_users.py
diabloblack/tooncoin
3c7c73b4f5f3ab342e23c982d7c28fea1f549c98
[ "MIT" ]
3
2019-05-29T03:44:56.000Z
2019-11-08T20:47:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiple RPC users.""" from test_framework.test_framework import BitcoinTestFramework from test_f...
38.043478
129
0.614603
bcbc7160f19856cc1e17144df893003e9cc864c6
451
py
Python
volttrontesting/testutils/test_with_http.py
laroque/volttron
3ea851b718aa87d7f2c824298cf8a1a4c5920460
[ "Apache-2.0" ]
2
2019-10-03T17:00:34.000Z
2019-10-03T17:00:38.000Z
volttrontesting/testutils/test_with_http.py
laroque/volttron
3ea851b718aa87d7f2c824298cf8a1a4c5920460
[ "Apache-2.0" ]
2
2018-08-29T13:45:17.000Z
2018-09-06T12:34:23.000Z
volttrontesting/testutils/test_with_http.py
cbs-iiith/volttron
a676d4af19a808581dde172ab08820087854e157
[ "Apache-2.0" ]
1
2019-04-04T17:13:46.000Z
2019-04-04T17:13:46.000Z
import pytest import requests import gevent from volttrontesting.utils.platformwrapper import start_wrapper_platform from volttrontesting.utils.skip_if import skip_if_not_encrypted @pytest.mark.wrapper def test_can_start_webserver(get_volttron_instances): wrapper = get_volttron_instances(1, False) start_wra...
26.529412
72
0.829268
f8fae8f7d9a8869a9db03354b36080c8f1f6a859
962
py
Python
FacebookChatPhisher/seleniumUtil.py
AshrafTaifour/Private-Facebook-Scraper
0fc72414792ec7a04770364cb036a0f14767069c
[ "MIT" ]
2
2021-04-05T05:17:57.000Z
2021-06-27T07:46:32.000Z
FacebookChatPhisher/seleniumUtil.py
AshrafTaifour/Private-Facebook-Scraper
0fc72414792ec7a04770364cb036a0f14767069c
[ "MIT" ]
2
2021-05-16T21:16:36.000Z
2021-07-30T14:37:38.000Z
FacebookChatPhisher/seleniumUtil.py
AshrafTaifour/Private-Facebook-Scraper
0fc72414792ec7a04770364cb036a0f14767069c
[ "MIT" ]
null
null
null
from selenium.webdriver.common.keys import Keys import time #Helper function for Selenium # Scroll to end of page def scrollToBottomOfPage(driver, maxScrollAttempt: int, scrollPauseTime = 2): # Get scroll height last_height = driver.execute_script("return document.body.scrollHeight") elm = driver.find_el...
38.48
80
0.689189
25a6a05133a521d421d598d9eb37c5c7ffb5180c
15,022
py
Python
src/breathe_class.py
AliNuriGUNESDOGDU/breathe
512c987ffa8dfc01a0b94a2bf12f8d787d9730de
[ "MIT" ]
null
null
null
src/breathe_class.py
AliNuriGUNESDOGDU/breathe
512c987ffa8dfc01a0b94a2bf12f8d787d9730de
[ "MIT" ]
null
null
null
src/breathe_class.py
AliNuriGUNESDOGDU/breathe
512c987ffa8dfc01a0b94a2bf12f8d787d9730de
[ "MIT" ]
null
null
null
#!/usr/bin/env python # 34567891123456789212345678931234567894123456789512345678961234567897123456789 """Module to give UR5 ability to breathe This module uses PEP-8 as coding standard. """ import argparse import copy import math import numpy as np import os import sys import actionlib import actionlib_msgs.msg impor...
38.616967
97
0.575756
ba8c9acef6119e33cb4a19d424e3e25ea735ce3d
126
py
Python
index.py
conlee82/pythonstudy
c71bdd6404c0105a812043368f17b993a9d8a7c9
[ "Apache-2.0" ]
null
null
null
index.py
conlee82/pythonstudy
c71bdd6404c0105a812043368f17b993a9d8a7c9
[ "Apache-2.0" ]
null
null
null
index.py
conlee82/pythonstudy
c71bdd6404c0105a812043368f17b993a9d8a7c9
[ "Apache-2.0" ]
null
null
null
friends = ['john', 'pat', 'gary', 'michael'] for i in range(len(friends)): print("No.{0} is {1}".format(i,friends[i]))
31.5
47
0.571429
8e2112b0a23d654399f5e5b0131862c8ac462083
12,698
py
Python
qa/rpc-tests/smartfees.py
KemBits/stratis
13a11323e4e0a0fdf0ecf2b770c49f7021ea7bb5
[ "MIT" ]
2
2018-01-10T10:37:09.000Z
2018-02-06T08:55:05.000Z
qa/rpc-tests/smartfees.py
KemBits/stratis
13a11323e4e0a0fdf0ecf2b770c49f7021ea7bb5
[ "MIT" ]
null
null
null
qa/rpc-tests/smartfees.py
KemBits/stratis
13a11323e4e0a0fdf0ecf2b770c49f7021ea7bb5
[ "MIT" ]
2
2019-09-24T02:43:37.000Z
2020-04-01T08:31:02.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Stratis Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test fee estimation code # from collections import OrderedDict from test_framework.test_framework im...
47.380597
110
0.640731
5d04c1fb1bd0348b7c9ef9756a254638248a16e6
22,716
py
Python
tensorflow_io/arrow/python/ops/arrow_dataset_ops.py
gradienthealth/io
ddbfa5bb89f5556e19a4004352460caa47fa26e2
[ "Apache-2.0" ]
null
null
null
tensorflow_io/arrow/python/ops/arrow_dataset_ops.py
gradienthealth/io
ddbfa5bb89f5556e19a4004352460caa47fa26e2
[ "Apache-2.0" ]
null
null
null
tensorflow_io/arrow/python/ops/arrow_dataset_ops.py
gradienthealth/io
ddbfa5bb89f5556e19a4004352460caa47fa26e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.764505
82
0.639593
44cd30cec52f272f0ddc2a5aa4b2a64eb3cb1119
7,058
py
Python
backend/backend/views/admin.py
hdkeeper/DRF-Poll-Test
cbd59472ae6c9ce57469852a77e110abaa5f4241
[ "MIT" ]
1
2021-02-08T14:29:12.000Z
2021-02-08T14:29:12.000Z
backend/backend/views/admin.py
hdkeeper/DRF-Poll-Test
cbd59472ae6c9ce57469852a77e110abaa5f4241
[ "MIT" ]
5
2021-04-08T21:48:37.000Z
2022-02-10T12:02:10.000Z
backend/backend/views/admin.py
hdkeeper/DRF-Poll-Test
cbd59472ae6c9ce57469852a77e110abaa5f4241
[ "MIT" ]
6
2021-04-15T09:29:36.000Z
2022-01-12T12:25:40.000Z
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import authentication, permissions from rest_framework.exceptions import ParseError from django.http import Http404 from datetime import date from ..models import Poll, Question, Option, validateQuestionType from ...
35.29
105
0.575659
a6675a9887e3fe51fdc9630be9a977cf53990ee3
3,392
py
Python
works/train/work_fine_grained_sentiment/model/transformer/poistion_wise_feed_forward.py
aodiwei/Fine_Grained_Sentiment_Of_Chinese
d612e7ff780c615abe0bfc03f5adf7beff0941e9
[ "MIT" ]
null
null
null
works/train/work_fine_grained_sentiment/model/transformer/poistion_wise_feed_forward.py
aodiwei/Fine_Grained_Sentiment_Of_Chinese
d612e7ff780c615abe0bfc03f5adf7beff0941e9
[ "MIT" ]
null
null
null
works/train/work_fine_grained_sentiment/model/transformer/poistion_wise_feed_forward.py
aodiwei/Fine_Grained_Sentiment_Of_Chinese
d612e7ff780c615abe0bfc03f5adf7beff0941e9
[ "MIT" ]
1
2019-05-27T09:53:33.000Z
2019-05-27T09:53:33.000Z
# -*- coding: utf-8 -*- import tensorflow as tf import time """ Position-wise Feed-Forward Networks In addition to attention sub-layers, each of the layers in our encoder and decoder contains a fully connected feed-forward network, which is applied to each position separately and identically. This consists of two line...
41.876543
134
0.677182
880356bfa5ec669523dc12a5f0484f74376c454a
340
py
Python
ml_service/schema.py
newTypeGeek/ml-service
5717da24c6999207aa42343bb5680456f8c2bfdf
[ "MIT" ]
null
null
null
ml_service/schema.py
newTypeGeek/ml-service
5717da24c6999207aa42343bb5680456f8c2bfdf
[ "MIT" ]
null
null
null
ml_service/schema.py
newTypeGeek/ml-service
5717da24c6999207aa42343bb5680456f8c2bfdf
[ "MIT" ]
null
null
null
from typing import Optional, List from enum import Enum from pydantic import BaseModel class ModelFrameWork(str, Enum): sklearn = "sklearn" class ModelInput(BaseModel): framework: ModelFrameWork = ModelFrameWork.sklearn model_name: str params: dict = {} target_col: str feature_cols: Optional...
20
54
0.729412
62092fa89668d1cb09b819f2d852b5d4fbc8cdb1
4,870
py
Python
strongOnes.py
ErikHendriks/strongOnes
585be1b55ba2aa67a5cb1d4b9fc2ad7ba46e2224
[ "MIT" ]
1
2019-09-04T18:55:27.000Z
2019-09-04T18:55:27.000Z
strongOnes.py
ErikHendriks/strongOnes
585be1b55ba2aa67a5cb1d4b9fc2ad7ba46e2224
[ "MIT" ]
null
null
null
strongOnes.py
ErikHendriks/strongOnes
585be1b55ba2aa67a5cb1d4b9fc2ad7ba46e2224
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import datetime import json import logging import oandapyV20 import oandapyV20.endpoints.orders as orders import oandapyV20.endpoints.positions as positions import oandapyV20.endpoints.trades as trades import requests import time import urllib3 from decimal import Decimal from oandapyV20 import...
33.819444
258
0.648049
c218877743b510d32f27edef4dbe4e32cf58e9c6
1,813
py
Python
Scripts/Figure3/Figure3D-2.py
mirzakhalili/Mirzakhalili-et-al--CellSystem-2020
6242cddd8bdb2bfa5223e3dddc6190fceadc6238
[ "MIT" ]
3
2021-08-18T15:21:52.000Z
2022-03-26T16:02:07.000Z
Scripts/Figure3/Figure3D-2.py
mirzakhalili/Mirzakhalili-et-al--CellSystem-2020
6242cddd8bdb2bfa5223e3dddc6190fceadc6238
[ "MIT" ]
null
null
null
Scripts/Figure3/Figure3D-2.py
mirzakhalili/Mirzakhalili-et-al--CellSystem-2020
6242cddd8bdb2bfa5223e3dddc6190fceadc6238
[ "MIT" ]
3
2020-11-12T03:43:43.000Z
2021-05-07T17:04:00.000Z
import sys from neuron import h from scipy.signal import find_peaks import numpy as np import pickle import os import matplotlib.pyplot as plt h.load_file('stdrun.hoc') f1 = 1000+20 f2 = 1000 fs = 1000*50 # Hz, sampling rate N=100 Cycle=1/(f1-f2)*1000 fname='.\SubThreshold\Vs,1000.00,20.00-TI.p...
19.706522
75
0.650303
4c827b5e6bcf19c6e7f1de5a9dd7a69b2fb0af11
4,704
py
Python
tatapov/utils.py
Edinburgh-Genome-Foundry/tatapov
a8ca4ad59c0e8f023160e861a3f8acb66b3d0ce2
[ "MIT" ]
9
2018-09-26T03:40:50.000Z
2021-11-10T15:14:38.000Z
tatapov/utils.py
Edinburgh-Genome-Foundry/tatapov
a8ca4ad59c0e8f023160e861a3f8acb66b3d0ce2
[ "MIT" ]
1
2020-07-24T17:50:00.000Z
2020-07-24T17:50:00.000Z
tatapov/utils.py
Edinburgh-Genome-Foundry/tatapov
a8ca4ad59c0e8f023160e861a3f8acb66b3d0ce2
[ "MIT" ]
1
2021-05-07T18:36:52.000Z
2021-05-07T18:36:52.000Z
from functools import lru_cache import itertools import numpy as np try: import matplotlib.pyplot as plt MATPLOTLIB_AVAILABLE = True except ImportError: MATPLOTLIB_AVAILABLE = False def uniquify_list(l): return sorted(set(l), key=l.index) reverse_dict = dict(zip("ATGC", "TACG")) @lru_cache(maxsi...
29.4
88
0.686224
c5a994b4a476adda0faaa163dc3be2d2a8291d27
502
py
Python
push_notifications/migrations/0009_alter_apnsdevice_device_id.py
Volume-Tech/django-push-notifications
28fc7a44cef8edf7e90b3fa97c3a405aff843c78
[ "MIT" ]
2
2015-08-25T01:33:18.000Z
2015-10-08T21:04:30.000Z
push_notifications/migrations/0009_alter_apnsdevice_device_id.py
Volume-Tech/django-push-notifications
28fc7a44cef8edf7e90b3fa97c3a405aff843c78
[ "MIT" ]
null
null
null
push_notifications/migrations/0009_alter_apnsdevice_device_id.py
Volume-Tech/django-push-notifications
28fc7a44cef8edf7e90b3fa97c3a405aff843c78
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-10 09:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('push_notifications', '0008_webpush_add_edge'), ] operations = [ migrations.AlterField( model_name='apnsdevice', name...
26.421053
150
0.645418
0bcb1b2536ab2cf368d06b3db8433604cf411022
1,036
py
Python
auto_nag/scripts/summary_meta_missing.py
whimboo/relman-auto-nag
afab0df6c7c16a5c8d1b79d30233a8ef9777f477
[ "BSD-3-Clause" ]
1
2021-04-03T07:27:47.000Z
2021-04-03T07:27:47.000Z
auto_nag/scripts/summary_meta_missing.py
whimboo/relman-auto-nag
afab0df6c7c16a5c8d1b79d30233a8ef9777f477
[ "BSD-3-Clause" ]
119
2020-08-10T06:23:32.000Z
2022-03-28T04:01:08.000Z
auto_nag/scripts/summary_meta_missing.py
whimboo/relman-auto-nag
afab0df6c7c16a5c8d1b79d30233a8ef9777f477
[ "BSD-3-Clause" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from auto_nag.bzcleaner import BzCleaner class MetaSummaryMissing(BzCleaner): def __init__(self): super(Me...
30.470588
75
0.600386
bdedf4e08402386b23e4a2d5e0541906bae33367
1,446
py
Python
pos_product_available_negative/tests/test_quantities.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
null
null
null
pos_product_available_negative/tests/test_quantities.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
null
null
null
pos_product_available_negative/tests/test_quantities.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
4
2020-08-25T01:49:14.000Z
2021-04-04T10:29:04.000Z
# -*- coding: utf-8 -*- # Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr> # License MIT (https://opensource.org/licenses/MIT). import odoo.tests from odoo.api import Environment @odoo.tests.common.at_install(True) @odoo.tests.common.post_install(True) class TestUI(odoo.tests.HttpCas...
39.081081
104
0.640387
80b0599efb2992efe30122fd3dd3869104c70e9f
113
py
Python
yatube/posts/apps.py
SlavaBotnarenku/yatube_project
08e5176d60e5c5868f746080ed2cb74f77dfbdb7
[ "MIT" ]
null
null
null
yatube/posts/apps.py
SlavaBotnarenku/yatube_project
08e5176d60e5c5868f746080ed2cb74f77dfbdb7
[ "MIT" ]
null
null
null
yatube/posts/apps.py
SlavaBotnarenku/yatube_project
08e5176d60e5c5868f746080ed2cb74f77dfbdb7
[ "MIT" ]
1
2022-01-26T13:09:39.000Z
2022-01-26T13:09:39.000Z
from django.apps import AppConfig class PostsConfig(AppConfig): name = 'posts' verbose_name = 'Статьи'
16.142857
33
0.716814
432242db1335404944a867648a2846855ce14fa8
6,006
py
Python
libs/datasources/influxdbwrapper.py
meetri/cryptolib
e3dae68433aacf7663b68a7d0567849fb2ba4b99
[ "MIT" ]
null
null
null
libs/datasources/influxdbwrapper.py
meetri/cryptolib
e3dae68433aacf7663b68a7d0567849fb2ba4b99
[ "MIT" ]
null
null
null
libs/datasources/influxdbwrapper.py
meetri/cryptolib
e3dae68433aacf7663b68a7d0567849fb2ba4b99
[ "MIT" ]
null
null
null
import os,sys,time from influxdb import InfluxDBClient from threading import Lock from coincalc import CoinCalc class InfluxDbWrapper(object): _instance = None def __init__(self): #print("init influxdb") self.min_save_interval = 1 self.last_save_time = 0 args = { ...
35.329412
110
0.476024
a05bce3a96dd27153b9444db4dc46591122243e6
2,197
py
Python
backend/files/serializers.py
marakaci/Likemind
5066d934dae9d424db8c46d31f291ad4e560632a
[ "MIT" ]
1
2019-05-06T10:03:34.000Z
2019-05-06T10:03:34.000Z
backend/files/serializers.py
marakaci/Likemind
5066d934dae9d424db8c46d31f291ad4e560632a
[ "MIT" ]
null
null
null
backend/files/serializers.py
marakaci/Likemind
5066d934dae9d424db8c46d31f291ad4e560632a
[ "MIT" ]
1
2021-09-14T11:46:27.000Z
2021-09-14T11:46:27.000Z
from drf_queryfields import QueryFieldsMixin from rest_framework import serializers from chat.models import PrivateChat, GroupChat, EncryptedPrivateChat from chat.serializers import PrivateChatSerializer, EncryptedPrivateChatSerializer, GroupChatSerializer from files.models import ChatImage, ChatAudio, ChatVideo, ChatF...
37.237288
103
0.730997
30340456d9ab866f1653b62ed2c49e0a4b5d85de
6,854
py
Python
bokeh/tests/test_tile_providers.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
bokeh/tests/test_tile_providers.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
1
2020-09-05T02:46:20.000Z
2020-09-05T02:46:20.000Z
bokeh/tests/test_tile_providers.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
38.505618
146
0.522615
8f8ede77cb6adfed7a1816e25d4080f5ad355fb6
6,580
py
Python
notification/views.py
jcgalaz/django-notification
5bc9494785cfb65a5ef04d23daf53e1b6aa3cccc
[ "MIT" ]
1
2019-04-15T17:02:13.000Z
2019-04-15T17:02:13.000Z
notification/views.py
jcgalaz/django-notification
5bc9494785cfb65a5ef04d23daf53e1b6aa3cccc
[ "MIT" ]
null
null
null
notification/views.py
jcgalaz/django-notification
5bc9494785cfb65a5ef04d23daf53e1b6aa3cccc
[ "MIT" ]
1
2019-04-15T17:04:04.000Z
2019-04-15T17:04:04.000Z
from django.core.urlresolvers import reverse from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponseRedirect, Http404 from django.template import RequestContext from django.contrib.auth.decorators import login_required #from django.contrib.syndication.views import Feed ...
32.736318
79
0.629179
1b43a6dc3b6ac09c698024580057d31d4707b4a4
6,283
py
Python
sentiment_analyzer_svm_unigram.py
mmaghajani/sentiment-analysis
064240be94b323bbb167990a0dc94d140a7d8600
[ "Apache-2.0" ]
null
null
null
sentiment_analyzer_svm_unigram.py
mmaghajani/sentiment-analysis
064240be94b323bbb167990a0dc94d140a7d8600
[ "Apache-2.0" ]
null
null
null
sentiment_analyzer_svm_unigram.py
mmaghajani/sentiment-analysis
064240be94b323bbb167990a0dc94d140a7d8600
[ "Apache-2.0" ]
null
null
null
import copy import math import operator import random import pprint from sklearn import svm NUMBER_OF_LINE_IN_RAW_DATA = 519 DATA = dict() # A dictionary of sets for each class WORD_DATA = dict() # A dictionary for all words def read_data(): global DATA file_path = "dataset.txt" cnt = 0 with open(f...
33.068421
99
0.520929
13f634846ecf8fa7c2b49d53a7159d4c7f8ceb0b
1,094
py
Python
scrapers/peakbagger_scraper_coordinates.py
raymond-devries/skagit60-scraping
bea9c41c7bb650abe77ae6c1bfa9f755f1e65846
[ "MIT" ]
null
null
null
scrapers/peakbagger_scraper_coordinates.py
raymond-devries/skagit60-scraping
bea9c41c7bb650abe77ae6c1bfa9f755f1e65846
[ "MIT" ]
null
null
null
scrapers/peakbagger_scraper_coordinates.py
raymond-devries/skagit60-scraping
bea9c41c7bb650abe77ae6c1bfa9f755f1e65846
[ "MIT" ]
null
null
null
from scrapers import scraper_modules as sm import pandas as pd from bs4 import BeautifulSoup link1 = 'https://www.peakbagger.com/search.aspx?tid=R&lat=' link2 = '&lon=' def create_search_list(): search_list = pd.read_csv('../cleaned_data/locations.csv') search_list = search_list[['lat', 'long']] return s...
28.051282
87
0.684644
788b47f89c4e1baaa4e8057f3c138695218b7179
10,477
py
Python
gps_helper/kalman.py
Miguel-O-Matic/gps-helper
dae3f143281ef930de84a1b783d33aa6e4446040
[ "MIT" ]
null
null
null
gps_helper/kalman.py
Miguel-O-Matic/gps-helper
dae3f143281ef930de84a1b783d33aa6e4446040
[ "MIT" ]
null
null
null
gps_helper/kalman.py
Miguel-O-Matic/gps-helper
dae3f143281ef930de84a1b783d33aa6e4446040
[ "MIT" ]
null
null
null
import numpy as np from numpy.linalg import inv from numpy.linalg.linalg import cholesky class SimpleKalman(object): """ Kim Chapter 10.2 Battery voltage estimation with measurement noise Python > 3.5 is assumed so the operator @ can be used for matrix multiply Mark Wickert February 2018 """ ...
28.547684
82
0.517037
faa804d3921fb1873007d782f55d5f317b6aad95
13,709
py
Python
bondora/api/bondora_api.py
eaggy/bondora
d6e1f09f9904e4393110e71a478f04a6f9e1e079
[ "MIT" ]
null
null
null
bondora/api/bondora_api.py
eaggy/bondora
d6e1f09f9904e4393110e71a478f04a6f9e1e079
[ "MIT" ]
null
null
null
bondora/api/bondora_api.py
eaggy/bondora
d6e1f09f9904e4393110e71a478f04a6f9e1e079
[ "MIT" ]
1
2021-08-08T15:14:04.000Z
2021-08-08T15:14:04.000Z
# -*- coding: utf-8 -*- """The file contains the class definition of Bondora API.""" import json import time import requests import urllib3 import inspect import api.urls from setup_logger import logger urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class BondoraApi: """Class representation...
31.442661
84
0.498869
003e98288470f261136f281414fc592177ae3cdf
257
py
Python
dia2/5- sorteio.py
valteralvees/desafio21dias-python
92b1ef7e221da06250a6c29c8dd0cc3dc3942e3f
[ "MIT" ]
null
null
null
dia2/5- sorteio.py
valteralvees/desafio21dias-python
92b1ef7e221da06250a6c29c8dd0cc3dc3942e3f
[ "MIT" ]
null
null
null
dia2/5- sorteio.py
valteralvees/desafio21dias-python
92b1ef7e221da06250a6c29c8dd0cc3dc3942e3f
[ "MIT" ]
null
null
null
import random n1 = str(input('Primeiro aluno: ')) n2 = str(input('Primeiro aluno: ')) n3 = str(input('Primeiro aluno: ')) n4 = str(input('Primeiro aluno: ')) lista = [n1,n2,n3,n4] escolhido = random.choice(lista) print(f'O aluno escolhido foi {escolhido}')
28.555556
43
0.684825
375ac00542e586bf17a663ef3ee8a5acd6f1fe71
2,440
py
Python
shortcuts/actions/web.py
yy/python-shortcuts
025c54be965600fbe7ff6ec96f594efea503cbc3
[ "MIT" ]
1
2019-01-13T19:21:10.000Z
2019-01-13T19:21:10.000Z
shortcuts/actions/web.py
yy/python-shortcuts
025c54be965600fbe7ff6ec96f594efea503cbc3
[ "MIT" ]
null
null
null
shortcuts/actions/web.py
yy/python-shortcuts
025c54be965600fbe7ff6ec96f594efea503cbc3
[ "MIT" ]
null
null
null
from typing import Dict, Union from shortcuts.actions.base import BaseAction, BooleanField, DictionaryField, Field class URLAction(BaseAction): '''URL: returns url as an output''' itype = 'is.workflow.actions.url' keyword = 'url' url = Field('WFURLActionURL') class HTTPMethodField(Field): meth...
27.41573
94
0.657377
7c3fc4519ccf91ff60a693e054475a33edd999fa
3,205
py
Python
aiida/orm/data/parameter.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/data/parameter.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/data/parameter.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.385417
80
0.563183
a64eaec48fdc12908a2ee7cb6448344eba564d6b
3,218
py
Python
seahub/api2/endpoints/admin/org_repos.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
seahub/api2/endpoints/admin/org_repos.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
seahub/api2/endpoints/admin/org_repos.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
import logging from rest_framework.authentication import SessionAuthentication from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import status from seaserv import ccnet_api, seafile_api from seahub.api2.authent...
36.157303
99
0.676818
fb66c032a24dc87a4582c40087cd955591e44033
4,610
py
Python
otk/rt1/pgl.py
draustin/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
7
2020-05-17T14:26:42.000Z
2022-02-14T04:52:54.000Z
otk/rt1/pgl.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
17
2020-04-10T22:50:00.000Z
2020-06-18T04:54:19.000Z
otk/rt1/pgl.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
1
2022-02-14T04:52:45.000Z
2022-02-14T04:52:45.000Z
"""Pyqtgraph OpenGL extensions.""" import itertools from typing import Sequence, Tuple import numpy as np import pyqtgraph_extended as pg import pyqtgraph_extended.opengl as pgl from . import _surfaces from OpenGL import GL from .. import v4hb # class FlatSurfaceItem(pgl.GLGraphicsItem.GLGraphicsItem): # def __ini...
36.88
188
0.599566
041ada6759dc63d060cd9b2f176ecfc581c28f61
1,654
py
Python
tests/functional/test_history.py
panchiwalashivani/python
eacafb9c597d04da3ac306809939045a17611d69
[ "MIT" ]
1
2021-09-29T05:07:57.000Z
2021-09-29T05:07:57.000Z
tests/functional/test_history.py
panchiwalashivani/python
eacafb9c597d04da3ac306809939045a17611d69
[ "MIT" ]
null
null
null
tests/functional/test_history.py
panchiwalashivani/python
eacafb9c597d04da3ac306809939045a17611d69
[ "MIT" ]
null
null
null
import unittest try: from mock import MagicMock except ImportError: from unittest.mock import MagicMock from pubnub.endpoints.history import History from pubnub.pubnub import PubNub from tests.helper import pnconf_pam_copy, sdk_name from pubnub.managers import TelemetryManager pnconf = pnconf_pam_copy() pnco...
30.072727
108
0.628779
bb93c13b08e59983b9818d21e309fde3aa69fe34
1,740
py
Python
pyprobml-master/figgen/daft/deepKF.py
storopoli/Machine-Learning-Probalistic
f8617e7b81f4d6c71e72edc40ba11ac746794a95
[ "MIT" ]
1
2019-03-04T05:43:10.000Z
2019-03-04T05:43:10.000Z
figgen/daft/deepKF.py
tungk/pyprobml
fb939b92a61f7d3a7e6c28d0b14f58d99a0b07f1
[ "MIT" ]
null
null
null
figgen/daft/deepKF.py
tungk/pyprobml
fb939b92a61f7d3a7e6c28d0b14f58d99a0b07f1
[ "MIT" ]
null
null
null
from matplotlib import rc import matplotlib.pyplot as plt rc("font", family="serif", size=12) rc("text", usetex=True) #rc("text.latex", preamble=open("macros.tex").read()) #rc('text.latex', preamble="\usepackage{amssymb}\usepackage{amsmath}\usepackage{mathrsfs}") import os import imp daft = imp.load_source('daft...
31.636364
93
0.627011
a561f4e4f1064fa53a6e23254831d48224c7bdbc
4,329
py
Python
cloudphishlib/__init__.py
ace-ecosystem/cloudphishlib
b2ceb55871eca417b347ceae0552ee3aa9990b34
[ "Apache-2.0" ]
null
null
null
cloudphishlib/__init__.py
ace-ecosystem/cloudphishlib
b2ceb55871eca417b347ceae0552ee3aa9990b34
[ "Apache-2.0" ]
3
2018-09-25T18:39:32.000Z
2019-01-29T21:10:27.000Z
cloudphishlib/__init__.py
ace-ecosystem/cloudphishlib
b2ceb55871eca417b347ceae0552ee3aa9990b34
[ "Apache-2.0" ]
1
2018-08-06T22:57:00.000Z
2018-08-06T22:57:00.000Z
import os import sys import time import json import logging import requests from configparser import ConfigParser def load_config(required_keys=[]): """Load cloudphish configuration. Configuration files are looked for in the following locations:: /<python-lib-where-cloudphishlib-installed>/etc/ace_cloudph...
37.643478
120
0.656041